@univerjs-pro/sheets-sparkline 0.15.1 → 0.15.2-insiders.20260122-b1556b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x27ae(_0x59afd8,_0x28bd6a){_0x59afd8=_0x59afd8-0x9c;const _0x3f2102=_0x3f21();let _0x27ae09=_0x3f2102[_0x59afd8];return _0x27ae09;}const _0xf597b3=_0x27ae;(function(_0x5db564,_0x4da564){const _0x429d2a=_0x27ae,_0x1d9a9e=_0x5db564();while(!![]){try{const _0x3e4216=-parseInt(_0x429d2a(0x129))/0x1*(parseInt(_0x429d2a(0xed))/0x2)+-parseInt(_0x429d2a(0xd8))/0x3+-parseInt(_0x429d2a(0xfc))/0x4*(-parseInt(_0x429d2a(0x14f))/0x5)+parseInt(_0x429d2a(0x145))/0x6+-parseInt(_0x429d2a(0x121))/0x7*(parseInt(_0x429d2a(0x9c))/0x8)+parseInt(_0x429d2a(0x155))/0x9+-parseInt(_0x429d2a(0x105))/0xa*(-parseInt(_0x429d2a(0x14b))/0xb);if(_0x3e4216===_0x4da564)break;else _0x1d9a9e['push'](_0x1d9a9e['shift']());}catch(_0x56dd30){_0x1d9a9e['push'](_0x1d9a9e['shift']());}}}(_0x3f21,0x366fa));var qe=Object[_0xf597b3(0x109)],Qe=(_0x5366f2,_0x1dfe14,_0x667993)=>_0x1dfe14 in _0x5366f2?qe(_0x5366f2,_0x1dfe14,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x667993}):_0x5366f2[_0x1dfe14]=_0x667993,re=(_0x417459,_0xa6af98,_0x574ad9)=>Qe(_0x417459,typeof _0xa6af98!=_0xf597b3(0xff)?_0xa6af98+'':_0xa6af98,_0x574ad9);import{ObjectMatrix as _0x55e27e,Inject as _0x4e801a,IUniverInstanceService as _0x365c9a,Disposable as _0x2fa4b9,isValidRange as _0x57a12a,CellValueType as _0xf0fccf,ColorKit as _0x457d3b,CommandType as _0x555e05,Range as _0x37bef3,IUndoRedoService as _0x1689f0,generateRandomId as _0x462565,ICommandService as _0x4db5c9,Tools as _0x3e7a9c,sequenceExecute as _0x113504,Rectangle as _0x59cebe,cellToRange as _0x3906a2,DisposableCollection as _0x3a7b71,RANGE_TYPE as _0x581c04,UniverInstanceType as _0x3a4645,IResourceManagerService as _0x8f661e,DependentOn as _0xb964e6,Injector as _0x5c157e,Plugin as _0xf3d5c2,touchDependencies as _0x2f8f06}from'@univerjs/core';import{getSheetCommandTarget as _0x3b8a67,SheetsSelectionsService as _0x556b37,SheetInterceptorService as _0x1b0c00,ClearSelectionAllCommand as _0x203386,IExclusiveRangeService as _0x1dcd0c,SetRangeValuesMutation as _0x29ecf8,ReorderRangeMutation as _0x546f77,SetRowHiddenMutation as _0x4b2e9d,SetColHiddenMutation as _0x5264b3,SetRowVisibleMutation as _0xfe9f28,SetColVisibleMutation as _0x4bd4b9,AddWorksheetMergeCommand as _0x5decc2,RefRangeService as _0x4fbcd2,SetWorksheetActivateCommand as _0x4834fe,RemoveRowCommand as _0x56b963,RemoveColCommand as _0x3a3049,adjustRangeOnMutation as _0x58005b,RemoveRowMutation as _0x15176b,RemoveColMutation as _0x42d9f1,InsertColMutation as _0x6e97a2,InsertRowMutation as _0x1274f0,MoveColsMutation as _0x144753,MoveRowsMutation as _0x11fb6b,MoveRangeMutation as _0x52fad2,RemoveSheetCommand as _0x1d0c51,CopySheetCommand as _0x5c5a48}from'@univerjs/sheets';import{Subject as _0x1ebc86}from'rxjs';import{UniverLicensePlugin as _0x3d2c40}from'@univerjs-pro/license';function Fe(_0x25ae6f,_0x415ec3){const _0xa47bc7=_0xf597b3,_0x2694f5=new _0x55e27e(),_0x2ddb7c=[],_0x2aafd2=_0x25ae6f[_0xa47bc7(0x9e)]>0x1;let _0x4596ed=0x0,_0x526ec4=0x0;for(const _0x1cd331 of _0x25ae6f)_0x4596ed+=_0x1cd331['endRow']-_0x1cd331[_0xa47bc7(0xc6)]+0x1,_0x526ec4+=_0x1cd331[_0xa47bc7(0x10b)]-_0x1cd331[_0xa47bc7(0xc9)]+0x1;for(const _0x27379d of _0x415ec3)for(let _0x3973dc=_0x27379d[_0xa47bc7(0xc6)];_0x3973dc<=_0x27379d['endRow'];_0x3973dc++)for(let _0x452ffd=_0x27379d['startColumn'];_0x452ffd<=_0x27379d[_0xa47bc7(0x10b)];_0x452ffd++)_0x2ddb7c[_0xa47bc7(0xda)]({'row':_0x3973dc,'column':_0x452ffd});if(_0x2ddb7c[_0xa47bc7(0x9e)]===_0x4596ed)_0x2aafd2?_0x2ddb7c[_0xa47bc7(0x139)]((_0x51ca2e,_0x4b0b1a)=>{const _0x21d118=_0xa47bc7,_0x2c9b4d=_0x25ae6f[_0x4b0b1a],_0x58fa82={'startRow':_0x2c9b4d[_0x21d118(0xc6)],'startColumn':_0x2c9b4d[_0x21d118(0xc9)],'endRow':_0x2c9b4d[_0x21d118(0xc6)],'endColumn':_0x2c9b4d['endColumn']};_0x2694f5[_0x21d118(0xd7)](_0x51ca2e[_0x21d118(0x118)],_0x51ca2e[_0x21d118(0x11e)],_0x58fa82);}):_0x2ddb7c[_0xa47bc7(0x139)]((_0x429d41,_0x391e26)=>{const _0x4212e9=_0xa47bc7,_0x54be9f=_0x25ae6f[0x0],_0x1ec957={'startRow':_0x54be9f[_0x4212e9(0xc6)]+_0x391e26,'startColumn':_0x54be9f[_0x4212e9(0xc9)],'endRow':_0x54be9f[_0x4212e9(0xc6)]+_0x391e26,'endColumn':_0x54be9f[_0x4212e9(0x10b)]};_0x2694f5[_0x4212e9(0xd7)](_0x429d41[_0x4212e9(0x118)],_0x429d41[_0x4212e9(0x11e)],_0x1ec957);});else{if(_0x2ddb7c[_0xa47bc7(0x9e)]===_0x526ec4)_0x2aafd2?_0x2ddb7c[_0xa47bc7(0x139)]((_0x599ac5,_0x548f05)=>{const _0x2a5412=_0xa47bc7,_0x2f9841=_0x25ae6f[_0x548f05],_0x1bcb27={'startRow':_0x2f9841[_0x2a5412(0xc6)],'startColumn':_0x2f9841[_0x2a5412(0xc9)],'endRow':_0x2f9841[_0x2a5412(0xab)],'endColumn':_0x2f9841[_0x2a5412(0xc9)]};_0x2694f5[_0x2a5412(0xd7)](_0x599ac5['row'],_0x599ac5[_0x2a5412(0x11e)],_0x1bcb27);}):_0x2ddb7c['forEach']((_0x59170b,_0x46176a)=>{const _0x4f2c5f=_0xa47bc7,_0x36fcdb=_0x25ae6f[0x0],_0x5c0ac7={'startRow':_0x36fcdb[_0x4f2c5f(0xc6)],'startColumn':_0x36fcdb[_0x4f2c5f(0xc9)]+_0x46176a,'endRow':_0x36fcdb[_0x4f2c5f(0xab)],'endColumn':_0x36fcdb['startColumn']+_0x46176a};_0x2694f5[_0x4f2c5f(0xd7)](_0x59170b[_0x4f2c5f(0x118)],_0x59170b[_0x4f2c5f(0x11e)],_0x5c0ac7);});else{if(_0x2ddb7c[_0xa47bc7(0x9e)]===_0x25ae6f[_0xa47bc7(0x9e)])_0x25ae6f[_0xa47bc7(0xf0)](_0x2ece22=>!(_0x2ece22[_0xa47bc7(0xc6)]!==_0x2ece22[_0xa47bc7(0xab)]&&_0x2ece22['startColumn']!==_0x2ece22[_0xa47bc7(0x10b)]))&&_0x2ddb7c[_0xa47bc7(0x139)]((_0x1ce7d6,_0x4a3c5c)=>{const _0x3371b8=_0xa47bc7,_0x1ffe5e=_0x25ae6f[_0x4a3c5c];_0x2694f5[_0x3371b8(0xd7)](_0x1ce7d6[_0x3371b8(0x118)],_0x1ce7d6[_0x3371b8(0x11e)],_0x1ffe5e);});else throw new Error(_0xa47bc7(0x114));}}return _0x2694f5;}const Ke='SHEET_SPARKLINE_PLUGIN',Ge={'standard':[_0xf597b3(0xbb),_0xf597b3(0x158)],'specialty':[_0xf597b3(0xfb),_0xf597b3(0x120)],'distinctive':[_0xf597b3(0x106),_0xf597b3(0x117)],'soft':[_0xf597b3(0x11d),_0xf597b3(0xae)],'fresh':[_0xf597b3(0xf7),_0xf597b3(0x147)]},an=[_0xf597b3(0x102),_0xf597b3(0xad),_0xf597b3(0x12d),_0xf597b3(0x107),'negativePoint',_0xf597b3(0xdb)];var ze=(_0x1315a7=>(_0x1315a7[_0xf597b3(0x159)]='standard',_0x1315a7[_0xf597b3(0x153)]='specialty',_0x1315a7[_0xf597b3(0x13f)]=_0xf597b3(0xaa),_0x1315a7[_0xf597b3(0xa0)]=_0xf597b3(0xc2),_0x1315a7[_0xf597b3(0x11a)]=_0xf597b3(0x115),_0x1315a7[_0xf597b3(0xaf)]=_0xf597b3(0xa7),_0x1315a7))(ze||{}),Et=(_0x1f0f6a=>(_0x1f0f6a[_0x1f0f6a[_0xf597b3(0x11c)]=0x1]='LINE_CHART',_0x1f0f6a[_0x1f0f6a[_0xf597b3(0xb8)]=0x2]='BAR_CHART',_0x1f0f6a[_0x1f0f6a[_0xf597b3(0x148)]=0x3]=_0xf597b3(0x148),_0x1f0f6a[_0x1f0f6a['PIE_CHART']=0x4]=_0xf597b3(0x130),_0x1f0f6a))(Et||{}),J=(_0x5dd17f=>(_0x5dd17f[_0xf597b3(0x14c)]='spacing',_0x5dd17f[_0xf597b3(0xcf)]=_0xf597b3(0xc4),_0x5dd17f[_0xf597b3(0xc1)]=_0xf597b3(0xfd),_0x5dd17f))(J||{}),Ve=(_0x9b6938=>(_0x9b6938[_0x9b6938[_0xf597b3(0x156)]=0x1]=_0xf597b3(0x156),_0x9b6938[_0x9b6938['GROUP_EXTREMUM']=0x2]=_0xf597b3(0xe1),_0x9b6938[_0x9b6938['CUSTOM_EXTREMUM']=0x3]=_0xf597b3(0xe7),_0x9b6938))(Ve||{}),Vt=Object['getOwnPropertyDescriptor'],yt=(_0x204096,_0x504fdb,_0x4adfd6,_0x1304ef)=>{const _0x5bae14=_0xf597b3;for(var _0x49d90=_0x1304ef>0x1?void 0x0:_0x1304ef?Vt(_0x504fdb,_0x4adfd6):_0x504fdb,_0x443fbc=_0x204096[_0x5bae14(0x9e)]-0x1,_0x3a82c6;_0x443fbc>=0x0;_0x443fbc--)(_0x3a82c6=_0x204096[_0x443fbc])&&(_0x49d90=_0x3a82c6(_0x49d90)||_0x49d90);return _0x49d90;},Nt=(_0x9003d2,_0x48ce85)=>(_0x453c32,_0x4392f3)=>_0x48ce85(_0x453c32,_0x4392f3,_0x9003d2);let x=class extends _0x2fa4b9{constructor(_0x1ec4f3){const _0x501e1d=_0xf597b3;super(),re(this,_0x501e1d(0xf5),new Map()),re(this,_0x501e1d(0x128),new Map()),re(this,'_updateConfig$',new _0x1ebc86()),re(this,'updateConfig$',this[_0x501e1d(0x12f)]['asObservable']()),this[_0x501e1d(0xd3)]=_0x1ec4f3;}[_0xf597b3(0xd5)](_0x3ea0f1,_0x1a38f4){const _0x8a1002=_0xf597b3;let _0x3dd6bd=this[_0x8a1002(0xf5)][_0x8a1002(0x15b)](_0x3ea0f1);_0x3dd6bd||(_0x3dd6bd=new Map(),this[_0x8a1002(0xf5)]['set'](_0x3ea0f1,_0x3dd6bd));let _0x48a97f=_0x3dd6bd[_0x8a1002(0x15b)](_0x1a38f4);return _0x48a97f||(_0x48a97f=new Map(),_0x3dd6bd[_0x8a1002(0xee)](_0x1a38f4,_0x48a97f)),_0x48a97f;}['_ensureAnchorMatrix'](_0x589071,_0x27898f){const _0x283f53=_0xf597b3;let _0x25d1db=this[_0x283f53(0x128)][_0x283f53(0x15b)](_0x589071);_0x25d1db||(_0x25d1db=new Map(),this[_0x283f53(0x128)][_0x283f53(0xee)](_0x589071,_0x25d1db));let _0x42ac4b=_0x25d1db[_0x283f53(0x15b)](_0x27898f);return _0x42ac4b||(_0x42ac4b={'matrix':new _0x55e27e(),'extra':{}},_0x25d1db[_0x283f53(0xee)](_0x27898f,_0x42ac4b)),_0x42ac4b;}[_0xf597b3(0x122)](_0x858b5c,_0x39704f,_0x5d6841,_0x52cca9=_0xf597b3(0xee)){const _0x178032=_0xf597b3;var _0x39da62,_0x238bf1,_0x4b1b80,_0x4f3c1b,_0x4edd59,_0x593067,_0xbe8adf,_0x5dde54,_0x3e220b,_0x21cc33,_0x1fae75,_0x5de5d4,_0x43d074;const _0x791c43=(_0x238bf1=(_0x39da62=this['_sparklineModel'][_0x178032(0x15b)](_0x858b5c))==null?void 0x0:_0x39da62['get'](_0x39704f))==null?void 0x0:_0x238bf1[_0x178032(0x15b)](_0x5d6841);if(!_0x791c43)return;const _0x7b7d51=_0x3b8a67(this['_univerInstanceService'],{'unitId':_0x858b5c,'subUnitId':_0x39704f});if(!_0x7b7d51)return;const _0x2cbfcb=this[_0x178032(0x12e)](_0x858b5c,_0x39704f),{extra:_0xb1a630,matrix:_0x288089}=_0x2cbfcb,{worksheet:_0x206c42}=_0x7b7d51;let _0x10bfcb=Number[_0x178032(0x14d)],_0x49b8ff=Number[_0x178032(0x141)];const _0x541350=(_0x4b1b80=_0x791c43['config'][_0x178032(0x150)])!=null?_0x4b1b80:!0x1;_0x791c43[_0x178032(0xd4)][_0x178032(0xb9)]((_0x29536f,_0x4ccb3c,_0x244c9b)=>{const _0x473d5b=_0x178032;var _0x524631,_0x373095,_0x4692ad;const _0x54838d=_0x244c9b;let _0x193f82=Number[_0x473d5b(0x14d)],_0x2bf21a=Number[_0x473d5b(0x141)],_0x5626a9=0x0,_0x3a2059=0x0;const _0x2e3e42=[];if(!_0x57a12a(_0x54838d))_0x288089[_0x473d5b(0xd7)](_0x29536f,_0x4ccb3c,{'groupId':_0x5d6841,'data':[],'max':_0x193f82,'min':_0x2bf21a,'highIndex':_0x5626a9,'lowIndex':_0x3a2059,'negativeIndexes':_0x2e3e42});else{const _0x1297c7=[];for(let _0x30dd34=_0x54838d[_0x473d5b(0xc6)];_0x30dd34<=_0x54838d[_0x473d5b(0xab)];_0x30dd34++){for(let _0x3ef608=_0x54838d[_0x473d5b(0xc9)];_0x3ef608<=_0x54838d[_0x473d5b(0x10b)];_0x3ef608++){const _0x474c3d=_0x206c42['getRowVisible'](_0x30dd34),_0x2fd311=_0x206c42[_0x473d5b(0x138)](_0x3ef608);if(!_0x541350&&(!_0x474c3d||!_0x2fd311))continue;let _0x721d63=0x0;const _0x4ef648=((_0x524631=_0x206c42[_0x473d5b(0x11f)](_0x30dd34,_0x3ef608))==null?void 0x0:_0x524631['v'])!==void 0x0?_0x206c42[_0x473d5b(0x11f)](_0x30dd34,_0x3ef608):_0x206c42[_0x473d5b(0xf2)](_0x30dd34,_0x3ef608);if(!_0x4ef648||_0x4ef648['v']===void 0x0||_0x4ef648['v']===null){const _0x2259e5=(_0x373095=_0x791c43[_0x473d5b(0xa3)]['emptyShowAs'])!=null?_0x373095:J[_0x473d5b(0x14c)];_0x2259e5===J['ZERO_VALUE']?_0x721d63=0x0:_0x2259e5===J[_0x473d5b(0x14c)]?_0x721d63=_0x473d5b(0x9f):_0x2259e5===J[_0x473d5b(0xc1)]&&(_0x721d63=_0x473d5b(0xe5));}else{if(_0x4ef648['t']===_0xf0fccf['STRING']||_0x4ef648['t']===_0xf0fccf['FORCE_STRING']){const _0x1f064d=(_0x4692ad=_0x791c43[_0x473d5b(0xa3)][_0x473d5b(0xb1)])!=null?_0x4692ad:J[_0x473d5b(0x14c)];_0x1f064d===J[_0x473d5b(0xcf)]?_0x721d63=0x0:_0x1f064d===J[_0x473d5b(0x14c)]?_0x721d63=_0x473d5b(0x9f):_0x1f064d===J['CONNECT_WITH_LINE']&&(_0x721d63='u-connect');}else _0x4ef648['t']===_0xf0fccf[_0x473d5b(0x127)]?_0x721d63=_0x4ef648['v']?0x1:0x0:_0x4ef648['t']===_0xf0fccf[_0x473d5b(0x146)]?_0x721d63=Number(_0x4ef648['v']):_0x721d63=_0x4ef648['v'];}if(_0x1297c7[_0x473d5b(0xda)](_0x721d63),typeof _0x721d63=='number'){_0x193f82=Math[_0x473d5b(0x112)](_0x193f82,_0x721d63),_0x10bfcb=Math['max'](_0x10bfcb,_0x721d63),_0x49b8ff=Math[_0x473d5b(0xb0)](_0x49b8ff,_0x721d63),_0x2bf21a=Math[_0x473d5b(0xb0)](_0x2bf21a,_0x721d63);const _0x3cbd97=typeof _0x1297c7[_0x5626a9]=='number'?Number(_0x1297c7[_0x5626a9]):Number['MIN_SAFE_INTEGER'];_0x721d63>_0x3cbd97&&(_0x5626a9=_0x1297c7[_0x473d5b(0x9e)]-0x1);const _0x1f803c=typeof _0x1297c7[_0x3a2059]==_0x473d5b(0xbd)?Number(_0x1297c7[_0x3a2059]):Number['MAX_SAFE_INTEGER'];_0x721d63<_0x1f803c&&(_0x3a2059=_0x1297c7[_0x473d5b(0x9e)]-0x1),_0x721d63<0x0&&_0x2e3e42['push'](_0x1297c7['length']-0x1);}}_0x288089[_0x473d5b(0xd7)](_0x29536f,_0x4ccb3c,{'groupId':_0x5d6841,'data':_0x1297c7,'max':_0x193f82,'min':_0x2bf21a,'highIndex':_0x5626a9,'lowIndex':_0x3a2059,'negativeIndexes':_0x2e3e42});}}});let _0x95e3d3=_0x10bfcb;((_0x4f3c1b=_0x791c43['config'][_0x178032(0xc3)])==null?void 0x0:_0x4f3c1b['type'])===Ve[_0x178032(0xe7)]&&(_0x95e3d3=(_0x593067=(_0x4edd59=_0x791c43[_0x178032(0xa3)][_0x178032(0xc3)])==null?void 0x0:_0x4edd59['value'])!=null?_0x593067:_0x10bfcb);let _0x57bc8e=_0x49b8ff;((_0xbe8adf=_0x791c43[_0x178032(0xa3)]['extremumMin'])==null?void 0x0:_0xbe8adf[_0x178032(0xa4)])===Ve[_0x178032(0xe7)]&&(_0x57bc8e=(_0x3e220b=(_0x5dde54=_0x791c43[_0x178032(0xa3)]['extremumMin'])==null?void 0x0:_0x5dde54[_0x178032(0x110)])!=null?_0x3e220b:_0x49b8ff);const _0x28b960=(_0x21cc33=_0x791c43[_0x178032(0xa3)]['themeType'])!=null?_0x21cc33:ze['STANDARD'],_0x597d3e=(_0x43d074=(_0x5de5d4=_0x791c43['config'][_0x178032(0x116)])!=null?_0x5de5d4:(_0x1fae75=Ge[_0x28b960])==null?void 0x0:_0x1fae75[0x0])!=null?_0x43d074:Ge[_0x178032(0x13a)][0x0],_0x1f90df=new _0x457d3b(_0x597d3e),_0x822fb5=_0x1f90df[_0x178032(0x108)](0.2)['toRgbString'](),_0x51472e=_0x1f90df[_0x178032(0x108)](0.05)[_0x178032(0x133)]();_0xb1a630[_0x5d6841]={'groupMax':_0x10bfcb,'groupMin':_0x49b8ff,'showMax':_0x95e3d3,'showMin':_0x57bc8e,'startGradient':_0x822fb5,'endGradient':_0x51472e},this[_0x178032(0x12f)]['next']({'unitId':_0x858b5c,'subUnitId':_0x39704f,'groupId':_0x5d6841,'config':_0x791c43,'type':_0x52cca9});}[_0xf597b3(0x152)](_0x5c32b2,_0x5921b8,_0x31b1c6,_0x5b861c){const _0x363939=_0xf597b3;this[_0x363939(0xd5)](_0x5c32b2,_0x5921b8)[_0x363939(0xee)](_0x31b1c6,_0x5b861c),this[_0x363939(0x122)](_0x5c32b2,_0x5921b8,_0x31b1c6,_0x363939(0x13d));}[_0xf597b3(0x131)](_0x43895d,_0x58143e,_0x4827de,_0x42d57b){const _0x5d7ca1=_0xf597b3;var _0x1979ee;const _0x325df5=(_0x1979ee=this[_0x5d7ca1(0xf5)][_0x5d7ca1(0x15b)](_0x43895d))==null?void 0x0:_0x1979ee[_0x5d7ca1(0x15b)](_0x58143e);_0x4827de[_0x5d7ca1(0x139)](_0x58ae81=>{const _0x11ed09=_0x5d7ca1;_0x325df5!=null&&_0x325df5[_0x11ed09(0x104)](_0x58ae81)&&(_0x325df5['set'](_0x58ae81,_0x42d57b),this['updateSparklineExtraNum'](_0x43895d,_0x58143e,_0x58ae81));});}[_0xf597b3(0xf9)](_0x2307d3,_0x460644,_0x2db846){const _0x34bf12=_0xf597b3;var _0x4db189,_0x3d13e5;const _0x3529a9=this['_sparklineModel'][_0x34bf12(0x15b)](_0x2307d3);if(_0x3529a9){const _0x3c6bc6=_0x3529a9[_0x34bf12(0x15b)](_0x460644);if(_0x3c6bc6){_0x3c6bc6['delete'](_0x2db846);const _0x3445d6=(_0x4db189=this['_sparklineAnchorMap'][_0x34bf12(0x15b)](_0x2307d3))==null?void 0x0:_0x4db189[_0x34bf12(0x15b)](_0x460644);(_0x3d13e5=_0x3445d6==null?void 0x0:_0x3445d6[_0x34bf12(0xb3)])==null||_0x3d13e5[_0x34bf12(0xb9)]((_0x20e95b,_0x4bcc5b,_0x4a3eea)=>{const _0x25a619=_0x34bf12;(_0x4a3eea==null?void 0x0:_0x4a3eea['groupId'])===_0x2db846&&(_0x3445d6==null||_0x3445d6['matrix'][_0x25a619(0xca)](_0x20e95b,_0x4bcc5b));}),this[_0x34bf12(0x12f)][_0x34bf12(0xe4)]({'unitId':_0x2307d3,'subUnitId':_0x460644,'groupId':_0x2db846,'type':_0x34bf12(0x135)}),_0x3c6bc6['size']===0x0&&_0x3529a9[_0x34bf12(0xf4)](_0x460644);}}}[_0xf597b3(0xec)](_0x2224fd,_0x2fc994,_0x400d6d,_0x44d361){const _0x8622fe=_0xf597b3;var _0x4d562f,_0x40d28a,_0x21f28f,_0x5362a7;const _0x2bce85=(_0x4d562f=this[_0x8622fe(0x128)]['get'](_0x2224fd))==null?void 0x0:_0x4d562f['get'](_0x2fc994),_0x23145f=_0x2bce85==null?void 0x0:_0x2bce85['matrix'][_0x8622fe(0xcb)](_0x400d6d,_0x44d361);if(_0x23145f){const {groupId:_0x235322}=_0x23145f,_0x11a104=(_0x40d28a=this['_sparklineModel'][_0x8622fe(0x15b)](_0x2224fd))==null?void 0x0:_0x40d28a[_0x8622fe(0x15b)](_0x2fc994);(_0x21f28f=_0x11a104==null?void 0x0:_0x11a104[_0x8622fe(0x15b)](_0x235322))==null||_0x21f28f['sparklines'][_0x8622fe(0xca)](_0x400d6d,_0x44d361),(_0x5362a7=_0x11a104==null?void 0x0:_0x11a104[_0x8622fe(0x15b)](_0x235322))!=null&&_0x5362a7[_0x8622fe(0xd4)][_0x8622fe(0x10d)]()||_0x11a104==null||_0x11a104['delete'](_0x235322),_0x2bce85==null||_0x2bce85[_0x8622fe(0xb3)][_0x8622fe(0xca)](_0x400d6d,_0x44d361),this['_updateConfig$'][_0x8622fe(0xe4)]({'unitId':_0x2224fd,'subUnitId':_0x2fc994,'groupId':_0x235322,'type':'remove'});}}['clearSparklineCache'](_0x1c2e32,_0xf4a09a,_0x1b0fd4){const _0x23d17f=_0xf597b3;var _0x36962c,_0x6de5b5,_0x213240,_0x45d3c0;const _0x2d51fb=(_0x213240=(_0x6de5b5=(_0x36962c=this[_0x23d17f(0xf5)][_0x23d17f(0x15b)](_0x1c2e32))==null?void 0x0:_0x36962c[_0x23d17f(0x15b)](_0xf4a09a))==null?void 0x0:_0x6de5b5[_0x23d17f(0x15b)](_0x1b0fd4))==null?void 0x0:_0x213240[_0x23d17f(0xd4)],_0x265ea8=(_0x45d3c0=this[_0x23d17f(0x128)]['get'](_0x1c2e32))==null?void 0x0:_0x45d3c0[_0x23d17f(0x15b)](_0xf4a09a);if(_0x2d51fb&&_0x265ea8){const {matrix:_0x55107d,extra:_0x511a50}=_0x265ea8;_0x2d51fb[_0x23d17f(0xb9)]((_0x272bda,_0x130fde,_0x5f61a0)=>{const _0x1dbac9=_0x23d17f;_0x55107d[_0x1dbac9(0xca)](_0x272bda,_0x130fde);}),delete _0x511a50[_0x1b0fd4];}}['getSubUnitSparkline'](_0x38123f,_0x176b4c){const _0x12a642=_0xf597b3;var _0x41ff7e;return(_0x41ff7e=this[_0x12a642(0xf5)][_0x12a642(0x15b)](_0x38123f))==null?void 0x0:_0x41ff7e[_0x12a642(0x15b)](_0x176b4c);}[_0xf597b3(0xdf)](_0x444036,_0x1ab79a,_0x488fcf){const _0x277aad=_0xf597b3;var _0x1429d7,_0x293056;return(_0x293056=(_0x1429d7=this['_sparklineModel'][_0x277aad(0x15b)](_0x444036))==null?void 0x0:_0x1429d7['get'](_0x1ab79a))==null?void 0x0:_0x293056['get'](_0x488fcf);}[_0xf597b3(0xb5)](_0x223ff0,_0x2338be,_0x5a85be,_0x3d5972){const _0x55124a=_0xf597b3;var _0x297de6,_0x238a96,_0x53207b;return(_0x53207b=(_0x238a96=(_0x297de6=this['_sparklineAnchorMap'][_0x55124a(0x15b)](_0x223ff0))==null?void 0x0:_0x297de6[_0x55124a(0x15b)](_0x2338be))==null?void 0x0:_0x238a96[_0x55124a(0xb3)][_0x55124a(0xcb)](_0x5a85be,_0x3d5972))==null?void 0x0:_0x53207b['groupId'];}[_0xf597b3(0x151)](_0x94dcfa,_0x223826){const _0x1b6709=_0xf597b3;var _0x435fc0;const _0x4e0b4d=this[_0x1b6709(0x12e)](_0x94dcfa,_0x223826);_0x4e0b4d[_0x1b6709(0xb3)]['forValue']((_0x469d68,_0x353e0d)=>{const _0x2e52ec=_0x1b6709;_0x4e0b4d[_0x2e52ec(0xb3)]['realDeleteValue'](_0x469d68,_0x353e0d);});const _0x488a06=(_0x435fc0=this[_0x1b6709(0xf5)]['get'](_0x94dcfa))==null?void 0x0:_0x435fc0[_0x1b6709(0x15b)](_0x223826);if(_0x488a06){for(const [_0x20fe00]of _0x488a06)this[_0x1b6709(0x122)](_0x94dcfa,_0x223826,_0x20fe00);}}[_0xf597b3(0xd9)](){const _0x21ba36=_0xf597b3;return{'sparklineModel':this['_sparklineModel'],'sparklineAnchorMap':this[_0x21ba36(0x128)]};}[_0xf597b3(0x11b)](_0x23bf55){const _0x11a7eb=_0xf597b3,_0x1ec29f={};if(this['_sparklineModel']['has'](_0x23bf55)){_0x1ec29f[_0x23bf55]={};const _0xf7fef3=this[_0x11a7eb(0xf5)][_0x11a7eb(0x15b)](_0x23bf55);_0xf7fef3!=null&&_0xf7fef3[_0x11a7eb(0xf6)]&&Array[_0x11a7eb(0xf3)](_0xf7fef3['keys']())[_0x11a7eb(0x139)](_0xf69013=>{const _0x3c0e65=_0x11a7eb;_0x1ec29f[_0x23bf55][_0xf69013]={};const _0x45368c=_0xf7fef3[_0x3c0e65(0x15b)](_0xf69013);_0x45368c!=null&&_0x45368c[_0x3c0e65(0xf6)]&&Array['from'](_0x45368c['keys']())[_0x3c0e65(0x139)](_0x503019=>{const _0x314f48=_0x3c0e65,_0x5b573c=_0x45368c[_0x314f48(0x15b)](_0x503019);_0x5b573c&&(_0x1ec29f[_0x23bf55][_0xf69013][_0x503019]={'config':_0x5b573c['config'],'sparklines':_0x5b573c[_0x314f48(0xd4)][_0x314f48(0x149)]()});});});}return _0x1ec29f;}[_0xf597b3(0xa1)](_0x379724){const _0x597799=_0xf597b3;if(!_0x379724)return;Object[_0x597799(0xd2)](_0x379724)[_0x597799(0x139)](_0x46e2ba=>{const _0x504088=_0x597799,_0xa591a7=_0x379724[_0x46e2ba];_0xa591a7&&Object[_0x504088(0xd2)](_0xa591a7)[_0x504088(0x139)](_0x27b2d2=>{const _0x36401a=_0x504088,_0x1e7518=_0xa591a7[_0x27b2d2];_0x1e7518&&Object['keys'](_0x1e7518)[_0x36401a(0x139)](_0x571f61=>{const _0x29e08c=_0x36401a,_0x512bb0=_0x1e7518[_0x571f61];if(_0x512bb0){const _0x5864a3={'config':_0x512bb0[_0x29e08c(0xa3)],'sparklines':new _0x55e27e(_0x512bb0[_0x29e08c(0xd4)])};this[_0x29e08c(0x152)](_0x46e2ba,_0x27b2d2,_0x571f61,_0x5864a3);}});});});}[_0xf597b3(0x101)](_0x48fe48){const _0x4f9653=_0xf597b3,_0x3eed3d=this['_sparklineModel'][_0x4f9653(0x15b)](_0x48fe48);if(_0x3eed3d){for(const [_0x5c77f3]of _0x3eed3d){const _0x5438ae=_0x3eed3d['get'](_0x5c77f3);if(_0x5438ae){for(const [_0x244730]of _0x5438ae)this[_0x4f9653(0x12c)](_0x48fe48,_0x5c77f3,_0x244730);}}this[_0x4f9653(0xf5)][_0x4f9653(0xf4)](_0x48fe48);}}};x=yt([Nt(0x0,_0x4e801a(_0x365c9a))],x);const V={'id':'sheet.mutation.add-sparkline','type':_0x555e05[_0xf597b3(0xce)],'handler':(_0x2e3850,_0x1b36ab)=>{const _0x2848e8=_0xf597b3;if(!_0x1b36ab)return!0x1;const {sparklineConfigMap:_0x57e8ff,unitId:_0x337ef8,subUnitId:_0x16a1d2}=_0x1b36ab,_0x4b0a0e=_0x2e3850[_0x2848e8(0x15b)](x);return Object[_0x2848e8(0x157)](_0x57e8ff)['forEach'](([_0x71d72a,_0x54c3df])=>{const _0x3c53eb=_0x2848e8,_0x846a87={'config':_0x54c3df[_0x3c53eb(0xa3)],'sparklines':new _0x55e27e(_0x54c3df[_0x3c53eb(0xd4)])};_0x4b0a0e[_0x3c53eb(0x152)](_0x337ef8,_0x16a1d2,_0x71d72a,_0x846a87);}),!0x0;}},y={'id':'sheet.mutation.remove-sparkline','type':_0x555e05['MUTATION'],'handler':(_0x44b54b,_0x17622b)=>{const _0x3b6a24=_0xf597b3;if(!_0x17622b)return!0x1;const {unitId:_0x35e7d2,subUnitId:_0x49558e,ranges:_0x4e19db,isSingle:_0x37de31,groupIds:_0x54c670}=_0x17622b,_0x11120b=_0x44b54b[_0x3b6a24(0x15b)](x);return _0x54c670?(_0x54c670[_0x3b6a24(0x139)](_0x413c4f=>{const _0x1882dc=_0x3b6a24;_0x11120b[_0x1882dc(0xf9)](_0x35e7d2,_0x49558e,_0x413c4f);}),!0x0):_0x4e19db?(_0x4e19db['forEach'](_0x2c03cd=>{_0x37bef3['foreach'](_0x2c03cd,(_0xba29be,_0x20515f)=>{const _0x33005f=_0x27ae,_0x4937b8=_0x11120b[_0x33005f(0xb5)](_0x35e7d2,_0x49558e,_0xba29be,_0x20515f);_0x4937b8&&(_0x37de31?_0x11120b[_0x33005f(0xec)](_0x35e7d2,_0x49558e,_0xba29be,_0x20515f):_0x11120b[_0x33005f(0xf9)](_0x35e7d2,_0x49558e,_0x4937b8));});}),!0x0):!0x1;}},Ot={'id':_0xf597b3(0x140),'type':_0x555e05['COMMAND'],'handler':(_0x22b4e0,_0x168fde)=>{const _0x75c483=_0xf597b3;if(!_0x168fde)return!0x1;const {sourceRanges:_0x3e7c17,targetRanges:_0x5ad884,config:_0x262ce4}=_0x168fde,_0xef6f68=_0x22b4e0['get'](_0x1689f0),_0x4ddbcb='g_'+_0x462565(0x6),_0xf0572f=Fe(_0x3e7c17,_0x5ad884),_0x1e7938={'config':_0x262ce4!=null?_0x262ce4:{},'sparklines':_0xf0572f['getMatrix']()},_0x757c4c=_0x22b4e0[_0x75c483(0x15b)](_0x365c9a),_0x2f050b=_0x22b4e0[_0x75c483(0x15b)](x),_0x1016e1=_0x3b8a67(_0x757c4c);if(!_0x1016e1)return!0x1;const {unitId:_0x2bb8aa,subUnitId:_0x520d37}=_0x1016e1,_0x342c9d=_0x22b4e0['get'](_0x4db5c9),_0x32c81e=[],_0x484ab6=[],_0x364899={},_0x5639a9={},_0x27a7ed=new Set([_0x4ddbcb]);_0xf0572f[_0x75c483(0xb9)]((_0x366a67,_0x258829,_0x537d18)=>{const _0x436428=_0x75c483,_0x1e092=_0x2f050b['getSparkline'](_0x2bb8aa,_0x520d37,_0x366a67,_0x258829);if(_0x1e092){const _0x2b9c4a=_0x2f050b[_0x436428(0xdf)](_0x2bb8aa,_0x520d37,_0x1e092);if(_0x2b9c4a){_0x27a7ed['add'](_0x1e092);let _0x11d1cc=_0x364899[_0x1e092],_0x433911=_0x5639a9[_0x1e092];_0x433911||(_0x433911={'config':_0x3e7a9c[_0x436428(0xa5)](_0x2b9c4a[_0x436428(0xa3)]),'sparklines':new _0x55e27e(_0x2b9c4a[_0x436428(0xd4)][_0x436428(0xa6)]())},_0x5639a9[_0x1e092]=_0x433911),_0x11d1cc||(_0x11d1cc={'config':_0x3e7a9c['deepClone'](_0x2b9c4a[_0x436428(0xa3)]),'sparklines':_0x2b9c4a[_0x436428(0xd4)][_0x436428(0xa6)]()},_0x364899[_0x1e092]=_0x11d1cc),_0x433911[_0x436428(0xd4)][_0x436428(0xca)](_0x366a67,_0x258829);}}});const _0x2c3d00={};return Object[_0x75c483(0x157)](_0x5639a9)[_0x75c483(0x139)](([_0x4451d9,_0x42f928])=>{const _0x312026=_0x75c483;_0x42f928[_0x312026(0xd4)][_0x312026(0x136)]()&&(_0x2c3d00[_0x4451d9]={'config':_0x42f928[_0x312026(0xa3)],'sparklines':_0x42f928[_0x312026(0xd4)][_0x312026(0xa6)]()});}),_0x2c3d00[_0x4ddbcb]=_0x1e7938,_0x32c81e['push']({'id':y['id'],'params':{'unitId':_0x2bb8aa,'subUnitId':_0x520d37,'groupIds':Array[_0x75c483(0xf3)](_0x27a7ed),'isSingle':!0x1}}),_0x27a7ed[_0x75c483(0xf6)]>0x1&&(_0x484ab6[_0x75c483(0xda)]({'id':y['id'],'params':{'unitId':_0x2bb8aa,'subUnitId':_0x520d37,'groupIds':Array[_0x75c483(0xf3)](_0x27a7ed),'isSingle':!0x1}}),_0x32c81e[_0x75c483(0xda)]({'id':V['id'],'params':{'unitId':_0x2bb8aa,'subUnitId':_0x520d37,'sparklineConfigMap':_0x364899}})),_0x484ab6[_0x75c483(0xda)]({'id':V['id'],'params':{'unitId':_0x2bb8aa,'subUnitId':_0x520d37,'sparklineConfigMap':_0x2c3d00}}),_0x113504(_0x484ab6,_0x342c9d),_0xef6f68[_0x75c483(0xb4)]({'unitID':_0x2bb8aa,'undoMutations':_0x32c81e,'redoMutations':_0x484ab6}),!0x0;}},xt={'id':_0xf597b3(0xbe),'type':_0x555e05[_0xf597b3(0x134)],'handler':(_0x4ab39c,_0x167e29)=>{const _0x363e88=_0xf597b3;var _0xf78958;const {isSingle:_0x2c89b1=!0x0}=_0x167e29||{},_0x5c165f=_0x4ab39c['get'](_0x4db5c9),_0x141e43=_0x4ab39c['get'](_0x365c9a),_0x3c99ab=_0x4ab39c[_0x363e88(0x15b)](x),_0x644dac=_0x4ab39c[_0x363e88(0x15b)](_0x1689f0),_0xde8691=_0x3b8a67(_0x141e43);if(!_0xde8691)return!0x1;const _0x119700=_0x4ab39c['get'](_0x556b37),_0x4bd96f=(_0xf78958=_0x167e29==null?void 0x0:_0x167e29[_0x363e88(0x15a)])!=null?_0xf78958:_0x119700[_0x363e88(0x15c)]()[_0x363e88(0xb7)](_0x3d037b=>_0x3d037b['range']),{unitId:_0x44dfe9,subUnitId:_0x50d8c4}=_0xde8691,_0x1de7ef=[],_0x4d3a43=[];_0x1de7ef['push']({'id':y['id'],'params':{'unitId':_0x44dfe9,'subUnitId':_0x50d8c4,'ranges':_0x4bd96f,'isSingle':_0x2c89b1}});const _0x2a4722=[],_0x3122b9={};return _0x4bd96f[_0x363e88(0x139)](_0x3dab3e=>{const _0x3586c4=_0x363e88;_0x37bef3[_0x3586c4(0x111)](_0x3dab3e,(_0x55eacd,_0x2983a9)=>{const _0x4d9114=_0x3586c4,_0x113b4e=_0x3c99ab[_0x4d9114(0xb5)](_0x44dfe9,_0x50d8c4,_0x55eacd,_0x2983a9);if(_0x113b4e){const _0x4f390f=_0x3c99ab[_0x4d9114(0xdf)](_0x44dfe9,_0x50d8c4,_0x113b4e);_0x4f390f&&(_0x2a4722['push'](_0x113b4e),_0x3122b9[_0x113b4e]={'config':_0x3e7a9c[_0x4d9114(0xa5)](_0x4f390f['config']),'sparklines':_0x3e7a9c[_0x4d9114(0xa5)](_0x4f390f[_0x4d9114(0xd4)][_0x4d9114(0xa6)]())});}});}),_0x4d3a43[_0x363e88(0xda)]({'id':y['id'],'params':{'unitId':_0x44dfe9,'subUnitId':_0x50d8c4,'groupIds':_0x2a4722,'isSingle':!0x1}}),_0x4d3a43[_0x363e88(0xda)]({'id':V['id'],'params':{'unitId':_0x44dfe9,'subUnitId':_0x50d8c4,'sparklineConfigMap':_0x3122b9}}),_0x113504(_0x1de7ef,_0x5c165f),_0x644dac['pushUndoRedo']({'unitID':_0x44dfe9,'undoMutations':_0x4d3a43,'redoMutations':_0x1de7ef}),!0x0;}},xe={'id':'sheet.mutation.set-sparkline','type':_0x555e05[_0xf597b3(0xce)],'handler':(_0x5fa1b7,_0x438ff8)=>{const _0x184e9c=_0xf597b3;if(!_0x438ff8)return!0x1;const {unitId:_0x32bcf5,subUnitId:_0x59bab4,groupIds:_0x194a8c,config:_0x5a7672}=_0x438ff8,_0x45d477=_0x5fa1b7[_0x184e9c(0x15b)](x);return _0x194a8c[_0x184e9c(0x139)](_0x1c5379=>{const _0x44b600=_0x184e9c,_0x37407c=_0x45d477[_0x44b600(0xdf)](_0x32bcf5,_0x59bab4,_0x1c5379);if(_0x37407c){const _0x1a649f={'config':Object[_0x44b600(0xdc)]({},_0x37407c['config'],_0x5a7672['config']),'sparklines':new _0x55e27e(_0x37407c[_0x44b600(0xd4)][_0x44b600(0xa6)]())};_0x45d477[_0x44b600(0x131)](_0x32bcf5,_0x59bab4,[_0x1c5379],_0x1a649f);}}),!0x0;}},Ut={'id':_0xf597b3(0xe6),'type':_0x555e05[_0xf597b3(0x134)],'handler':(_0x36841b,_0x2aa63a)=>{const _0x1b49a2=_0xf597b3;var _0x55550b,_0x2253e8,_0x41f498,_0x33b094;if(!_0x2aa63a)return!0x1;const _0x4b1dff=_0x36841b[_0x1b49a2(0x15b)](_0x4db5c9),_0x2525d8=_0x36841b[_0x1b49a2(0x15b)](_0x556b37),_0x5555ef=_0x36841b[_0x1b49a2(0x15b)](x),_0x4bfac1=_0x36841b[_0x1b49a2(0x15b)](_0x365c9a),_0x84c852=_0x36841b[_0x1b49a2(0x15b)](_0x1689f0),_0x2613c7=_0x3b8a67(_0x4bfac1);if(!_0x2613c7)return!0x1;const {unitId:_0x4dbccd,subUnitId:_0x42a297}=_0x2613c7,_0x1eb171=(_0x55550b=_0x2aa63a==null?void 0x0:_0x2aa63a['ranges'])!=null?_0x55550b:_0x2525d8[_0x1b49a2(0x15c)]()[_0x1b49a2(0xb7)](_0x422873=>_0x422873[_0x1b49a2(0x113)]),_0x3e76c3=(_0x2253e8=_0x5555ef[_0x1b49a2(0xd9)]()[_0x1b49a2(0xc7)][_0x1b49a2(0x15b)](_0x4dbccd))==null?void 0x0:_0x2253e8['get'](_0x42a297),{isChangeDataSource:_0x3db3c0,config:_0x5391e6,combine:_0x9c114b,unCombine:_0x2aa2d8}=_0x2aa63a;if(_0x9c114b){const _0x23ab7d=[],_0x40b097=[];_0x23ab7d[_0x1b49a2(0xda)]({'id':y['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'ranges':_0x1eb171,'isSingle':!0x0}});const _0x4f03bb='g_'+_0x462565(0x6),_0x585089=new _0x55e27e(),_0x2563cd=(_0x41f498=_0x5555ef[_0x1b49a2(0xd9)]()[_0x1b49a2(0xdd)]['get'](_0x4dbccd))==null?void 0x0:_0x41f498['get'](_0x42a297),_0x1f6ecc=new Set([_0x4f03bb]),_0x59b6ad={};return _0x1eb171[_0x1b49a2(0x139)](_0x2f4747=>{const _0x3916b1=_0x1b49a2;var _0x4cae0e,_0x2d5ac6;const {startRow:_0x3e5bfa,endRow:_0x518d0e,startColumn:_0x3782ad,endColumn:_0x12b85c}=_0x2f4747;for(let _0x548363=_0x3e5bfa;_0x548363<=_0x518d0e;_0x548363++)for(let _0x47cb6b=_0x3782ad;_0x47cb6b<=_0x12b85c;_0x47cb6b++){const _0x38d792=(_0x4cae0e=_0x3e76c3==null?void 0x0:_0x3e76c3[_0x3916b1(0xb3)]['getValue'](_0x548363,_0x47cb6b))==null?void 0x0:_0x4cae0e[_0x3916b1(0xd6)];if(_0x38d792){_0x1f6ecc[_0x3916b1(0x13d)](_0x38d792);const _0x485b1c=_0x5555ef[_0x3916b1(0xdf)](_0x4dbccd,_0x42a297,_0x38d792);_0x485b1c&&(_0x59b6ad[_0x38d792]={'config':_0x3e7a9c[_0x3916b1(0xa5)](_0x485b1c['config']),'sparklines':_0x3e7a9c[_0x3916b1(0xa5)](_0x485b1c[_0x3916b1(0xd4)][_0x3916b1(0xa6)]())});const _0x34e51f=(_0x2d5ac6=_0x2563cd==null?void 0x0:_0x2563cd[_0x3916b1(0x15b)](_0x38d792))==null?void 0x0:_0x2d5ac6[_0x3916b1(0xd4)][_0x3916b1(0xcb)](_0x548363,_0x47cb6b);_0x34e51f&&_0x585089[_0x3916b1(0xd7)](_0x548363,_0x47cb6b,_0x34e51f);}}}),_0x23ab7d[_0x1b49a2(0xda)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x4f03bb]:{'config':_0x3e7a9c[_0x1b49a2(0xa5)](_0x5391e6[_0x1b49a2(0xa3)]),'sparklines':_0x585089[_0x1b49a2(0x149)]()}},'unitId':_0x4dbccd,'subUnitId':_0x42a297}}),_0x40b097['push']({'id':y['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'isSingle':!0x1,'groupIds':Array[_0x1b49a2(0xf3)](_0x1f6ecc)}}),_0x40b097[_0x1b49a2(0xda)]({'id':V['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'sparklineConfigMap':_0x59b6ad}}),_0x113504(_0x23ab7d,_0x4b1dff),_0x84c852['pushUndoRedo']({'unitID':_0x4dbccd,'undoMutations':_0x40b097,'redoMutations':_0x23ab7d}),!0x0;}else{if(_0x2aa2d8){const _0x7d3860=[],_0x41aeaf=[];_0x7d3860[_0x1b49a2(0xda)]({'id':y['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'ranges':_0x1eb171,'isSingle':!0x0}});const _0x21772d=(_0x33b094=_0x5555ef['getSparklineCache']()[_0x1b49a2(0xdd)][_0x1b49a2(0x15b)](_0x4dbccd))==null?void 0x0:_0x33b094[_0x1b49a2(0x15b)](_0x42a297),_0x39abae={},_0x3256e6=new Set(),_0x1effcf={};return _0x1eb171['forEach'](_0x55d774=>{const _0x4272e4=_0x1b49a2;var _0x24624f,_0x3b9c7c;const {startRow:_0x3d045b,endRow:_0x41ee51,startColumn:_0x233a7b,endColumn:_0x49a603}=_0x55d774;for(let _0x3a1b1f=_0x3d045b;_0x3a1b1f<=_0x41ee51;_0x3a1b1f++)for(let _0x929128=_0x233a7b;_0x929128<=_0x49a603;_0x929128++){const _0x240cae=(_0x24624f=_0x3e76c3==null?void 0x0:_0x3e76c3[_0x4272e4(0xb3)][_0x4272e4(0xcb)](_0x3a1b1f,_0x929128))==null?void 0x0:_0x24624f[_0x4272e4(0xd6)];if(_0x240cae){const _0x504031=new _0x55e27e(),_0x1f0e58='g_'+_0x462565(0x6);_0x3256e6[_0x4272e4(0x13d)](_0x240cae),_0x3256e6[_0x4272e4(0x13d)](_0x1f0e58);const _0x1ed410=_0x5555ef[_0x4272e4(0xdf)](_0x4dbccd,_0x42a297,_0x240cae);_0x1ed410&&(_0x1effcf[_0x240cae]={'config':_0x3e7a9c[_0x4272e4(0xa5)](_0x1ed410[_0x4272e4(0xa3)]),'sparklines':_0x3e7a9c[_0x4272e4(0xa5)](_0x1ed410[_0x4272e4(0xd4)]['clone']())});const _0x1e4521=(_0x3b9c7c=_0x21772d==null?void 0x0:_0x21772d[_0x4272e4(0x15b)](_0x240cae))==null?void 0x0:_0x3b9c7c['sparklines'][_0x4272e4(0xcb)](_0x3a1b1f,_0x929128);_0x1e4521&&_0x504031[_0x4272e4(0xd7)](_0x3a1b1f,_0x929128,_0x1e4521),_0x39abae[_0x1f0e58]={'sparklines':_0x504031[_0x4272e4(0x149)](),'config':_0x3e7a9c[_0x4272e4(0xa5)](_0x5391e6[_0x4272e4(0xa3)])};}}}),_0x7d3860[_0x1b49a2(0xda)]({'id':V['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'sparklineConfigMap':_0x39abae}}),_0x41aeaf[_0x1b49a2(0xda)]({'id':y['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'isSingle':!0x1,'groupIds':Array[_0x1b49a2(0xf3)](_0x3256e6)}}),_0x41aeaf['push']({'id':V['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'sparklineConfigMap':_0x1effcf}}),_0x113504(_0x7d3860,_0x4b1dff),_0x84c852['pushUndoRedo']({'unitID':_0x4dbccd,'undoMutations':_0x41aeaf,'redoMutations':_0x7d3860}),!0x0;}}if(_0x3db3c0){const _0x1704f3=_0x2aa63a[_0x1b49a2(0xe0)];if(!_0x1704f3)return!0x1;const {groupId:_0x355c0d,sourceRanges:_0x372545,targetRanges:_0x512134,resetType:_0x22254e,primary:_0x41b850}=_0x1704f3,_0xbf874=[],_0x3785b1=[];_0xbf874['push']({'id':y['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'ranges':_0x1eb171,'isSingle':!0x1,'groupIds':[_0x355c0d]}}),_0x3785b1['push']({'id':y['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'ranges':_0x1eb171,'isSingle':!0x1,'groupIds':[_0x355c0d]}});let _0x387e86;_0x22254e===_0x1b49a2(0x13c)?(_0x387e86=new _0x55e27e(_0x5391e6['sparklines'][_0x1b49a2(0xa6)]()),_0x387e86[_0x1b49a2(0xca)](_0x41b850[_0x1b49a2(0xac)],_0x41b850[_0x1b49a2(0x103)]),_0x387e86[_0x1b49a2(0xd7)](_0x512134[0x0][_0x1b49a2(0xc6)],_0x512134[0x0][_0x1b49a2(0xc9)],_0x372545[0x0])):_0x387e86=Fe(_0x372545,_0x512134);const _0x43ebb4={'config':_0x3e7a9c[_0x1b49a2(0xa5)](_0x5391e6['config']),'sparklines':_0x387e86[_0x1b49a2(0x149)]()},_0x39c472={'config':_0x3e7a9c[_0x1b49a2(0xa5)](_0x5391e6[_0x1b49a2(0xa3)]),'sparklines':_0x3e7a9c[_0x1b49a2(0xa5)](_0x5391e6[_0x1b49a2(0xd4)]['clone']())};_0xbf874[_0x1b49a2(0xda)]({'id':V['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'sparklineConfigMap':{[_0x355c0d]:_0x43ebb4}}}),_0x3785b1[_0x1b49a2(0xda)]({'id':V['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'sparklineConfigMap':{[_0x355c0d]:_0x39c472}}}),_0x113504(_0xbf874,_0x4b1dff),_0x84c852['pushUndoRedo']({'unitID':_0x4dbccd,'undoMutations':_0x3785b1,'redoMutations':_0xbf874});}else{const _0x457b0e=[],_0x243aa7=[],_0x1afe73=new Set(),_0xc1a433={};_0x1eb171['forEach'](_0x1944ea=>{const _0x5d13ce=_0x1b49a2;var _0x9ef6ce;const {startRow:_0x5b99f4,endRow:_0x2899ec,startColumn:_0x3a83fa,endColumn:_0x3db252}=_0x1944ea;for(let _0x284f0a=_0x5b99f4;_0x284f0a<=_0x2899ec;_0x284f0a++)for(let _0xe48612=_0x3a83fa;_0xe48612<=_0x3db252;_0xe48612++){const _0x2e4ceb=(_0x9ef6ce=_0x3e76c3==null?void 0x0:_0x3e76c3['matrix'][_0x5d13ce(0xcb)](_0x284f0a,_0xe48612))==null?void 0x0:_0x9ef6ce[_0x5d13ce(0xd6)];if(_0x2e4ceb){_0x1afe73[_0x5d13ce(0x13d)](_0x2e4ceb);const _0x277615=_0x5555ef[_0x5d13ce(0xdf)](_0x4dbccd,_0x42a297,_0x2e4ceb);_0x277615&&(_0xc1a433[_0x2e4ceb]={'config':_0x3e7a9c[_0x5d13ce(0xa5)](_0x277615[_0x5d13ce(0xa3)]),'sparklines':_0x3e7a9c[_0x5d13ce(0xa5)](_0x277615[_0x5d13ce(0xd4)][_0x5d13ce(0xa6)]())});}}}),_0x243aa7[_0x1b49a2(0xda)]({'id':xe['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'groupIds':Array['from'](_0x1afe73),'config':{'config':_0x3e7a9c[_0x1b49a2(0xa5)](_0x5391e6[_0x1b49a2(0xa3)]),'sparklines':_0x5391e6[_0x1b49a2(0xd4)][_0x1b49a2(0x149)]()}}}),_0x457b0e[_0x1b49a2(0xda)]({'id':y['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'isSingle':!0x1,'groupIds':Array[_0x1b49a2(0xf3)](_0x1afe73)}}),_0x457b0e[_0x1b49a2(0xda)]({'id':V['id'],'params':{'unitId':_0x4dbccd,'subUnitId':_0x42a297,'sparklineConfigMap':_0xc1a433}}),_0x113504(_0x243aa7,_0x4b1dff),_0x84c852[_0x1b49a2(0xb4)]({'unitID':_0x4dbccd,'undoMutations':_0x457b0e,'redoMutations':_0x243aa7});}return!0x0;}};var Pt=Object[_0xf597b3(0xcd)],Tt=(_0x301281,_0x36c767,_0x356105,_0xa8bc44)=>{for(var _0x22db5d=_0xa8bc44>0x1?void 0x0:_0xa8bc44?Pt(_0x36c767,_0x356105):_0x36c767,_0x2f9f15=_0x301281['length']-0x1,_0x509501;_0x2f9f15>=0x0;_0x2f9f15--)(_0x509501=_0x301281[_0x2f9f15])&&(_0x22db5d=_0x509501(_0x22db5d)||_0x22db5d);return _0x22db5d;},ge=(_0x28e7df,_0x515475)=>(_0x35938f,_0x2edeb0)=>_0x515475(_0x35938f,_0x2edeb0,_0x28e7df);let ke=class extends _0x2fa4b9{constructor(_0x36d45d,_0x36a2da,_0x1cb513,_0x26b481){const _0x37f2fc=_0xf597b3;super(),this['_sparklineDataSourceModel']=_0x36d45d,this[_0x37f2fc(0xc0)]=_0x36a2da,this['_univerInstanceService']=_0x1cb513,this[_0x37f2fc(0xd0)]=_0x26b481,this[_0x37f2fc(0xa9)]();}['_initClearWithSparkline'](){const _0x392360=_0xf597b3;this[_0x392360(0xd1)](this[_0x392360(0xc0)][_0x392360(0x14e)]({'getMutations':_0x1f2e4c=>{const _0x27b1f2=_0x392360,_0x59d877=[],_0x4e6577=[];if(_0x1f2e4c['id']===_0x203386['id']){const _0x8bc679=_0x3b8a67(this['_univerInstanceService'],_0x1f2e4c[_0x27b1f2(0x13b)]);if(!_0x8bc679)return{'redos':_0x59d877,'undos':_0x4e6577};const {unitId:_0x26bf64,subUnitId:_0x3aac57,worksheet:_0x54a684}=_0x8bc679,_0x41da5d=this['_sheetSelectionService'][_0x27b1f2(0x15c)]()[_0x27b1f2(0xb7)](_0x28ac2d=>_0x28ac2d[_0x27b1f2(0x113)]),_0x26e519=new Set(),_0x57ce9d={},_0x48712f={};_0x41da5d[_0x27b1f2(0x139)](_0x23a0df=>{const _0x240b4e=_0x27b1f2;_0x37bef3[_0x240b4e(0x111)](_0x23a0df,(_0x4b8772,_0x324b48)=>{const _0x3aaad3=_0x240b4e,_0x5c62d1=this[_0x3aaad3(0xcc)][_0x3aaad3(0xb5)](_0x26bf64,_0x3aac57,_0x4b8772,_0x324b48);if(_0x5c62d1&&!_0x26e519[_0x3aaad3(0x104)](_0x5c62d1)){const _0x22ccf4=this[_0x3aaad3(0xcc)][_0x3aaad3(0xdf)](_0x26bf64,_0x3aac57,_0x5c62d1);_0x22ccf4&&(_0x26e519[_0x3aaad3(0x13d)](_0x5c62d1),_0x57ce9d[_0x5c62d1]={'config':_0x3e7a9c[_0x3aaad3(0xa5)](_0x22ccf4[_0x3aaad3(0xa3)]),'sparklines':_0x3e7a9c[_0x3aaad3(0xa5)](_0x22ccf4[_0x3aaad3(0xd4)][_0x3aaad3(0xa6)]())},_0x48712f[_0x5c62d1]={'config':_0x3e7a9c[_0x3aaad3(0xa5)](_0x22ccf4[_0x3aaad3(0xa3)]),'sparklines':_0x3e7a9c[_0x3aaad3(0xa5)](_0x22ccf4['sparklines']['clone']())});}});}),Object[_0x27b1f2(0x142)](_0x48712f)[_0x27b1f2(0x139)](_0x20ad99=>{const _0x261072=_0x27b1f2,_0x37fd02=_0x20ad99[_0x261072(0xd4)];new _0x55e27e(_0x37fd02)[_0x261072(0xb9)]((_0x59b4f3,_0x4abd96,_0x18cb81)=>{_0x41da5d['some'](_0x46a3ab=>_0x59cebe['intersects'](_0x46a3ab,_0x3906a2(_0x59b4f3,_0x4abd96)))&&delete _0x37fd02[_0x59b4f3][_0x4abd96];});}),_0x59d877[_0x27b1f2(0xda)]({'id':y['id'],'params':{'unitId':_0x26bf64,'subUnitId':_0x3aac57,'groupIds':Array['from'](_0x26e519),'isSingle':!0x1}}),_0x59d877[_0x27b1f2(0xda)]({'id':V['id'],'params':{'unitId':_0x26bf64,'subUnitId':_0x3aac57,'sparklineConfigMap':_0x48712f}}),_0x4e6577[_0x27b1f2(0xda)]({'id':y['id'],'params':{'unitId':_0x26bf64,'subUnitId':_0x3aac57,'groupIds':Array[_0x27b1f2(0xf3)](_0x26e519),'isSingle':!0x1}}),_0x4e6577['push']({'id':V['id'],'params':{'unitId':_0x26bf64,'subUnitId':_0x3aac57,'sparklineConfigMap':_0x57ce9d}});}return{'redos':_0x59d877,'undos':_0x4e6577};}}));}};ke=Tt([ge(0x0,_0x4e801a(x)),ge(0x1,_0x4e801a(_0x1b0c00)),ge(0x2,_0x4e801a(_0x365c9a)),ge(0x3,_0x4e801a(_0x556b37))],ke);var $t=Object[_0xf597b3(0xcd)],jt=(_0x20f0cd,_0x585bfd,_0x4030bc,_0x2a4e17)=>{const _0x4dcefc=_0xf597b3;for(var _0x451901=_0x2a4e17>0x1?void 0x0:_0x2a4e17?$t(_0x585bfd,_0x4030bc):_0x585bfd,_0x5d5a40=_0x20f0cd[_0x4dcefc(0x9e)]-0x1,_0x2b0138;_0x5d5a40>=0x0;_0x5d5a40--)(_0x2b0138=_0x20f0cd[_0x5d5a40])&&(_0x451901=_0x2b0138(_0x451901)||_0x451901);return _0x451901;},be=(_0x1350aa,_0x1e1e78)=>(_0x1ca467,_0x2aee8f)=>_0x1e1e78(_0x1ca467,_0x2aee8f,_0x1350aa);let me=class extends _0x2fa4b9{constructor(_0x3de5fb,_0xb7cb77,_0xeb5a7c){const _0x521d13=_0xf597b3;super(),this[_0x521d13(0xbc)]=_0x3de5fb,this['_sparklineDataSourceModel']=_0xb7cb77,this[_0x521d13(0x9d)]=_0xeb5a7c,this[_0x521d13(0xa8)](),this[_0x521d13(0xf8)]();}[_0xf597b3(0xa8)](){const _0x46c12f=_0xf597b3;this[_0x46c12f(0xd1)](this[_0x46c12f(0xbc)][_0x46c12f(0x12b)](_0x4ea141=>{const _0x1895ad=_0x46c12f;if(_0x4ea141['id']===_0x29ecf8['id']){const _0x5c499b=_0x4ea141[_0x1895ad(0x13b)],{cellValue:_0x25ef16,unitId:_0x59c3e0,subUnitId:_0x148bc7}=_0x5c499b,_0x3d8ff3=new _0x55e27e(_0x25ef16),_0x325e5a=new Set(),_0x33df18=this[_0x1895ad(0xcc)]['getSubUnitSparkline'](_0x59c3e0,_0x148bc7);if(!_0x33df18)return;const _0x17bec5=Array[_0x1895ad(0xf3)](_0x33df18);_0x3d8ff3['forValue']((_0x549d98,_0x4cc323,_0x351c69)=>{const _0x1926ea=_0x1895ad,_0x4a944f=_0x3906a2(_0x549d98,_0x4cc323);for(let _0x5d6c83=0x0;_0x5d6c83<_0x17bec5[_0x1926ea(0x9e)];_0x5d6c83++){const [_0x217ecc,_0x4494ca]=_0x17bec5[_0x5d6c83],_0x446dea=_0x325e5a[_0x1926ea(0x104)](_0x217ecc);_0x446dea||_0x4494ca[_0x1926ea(0xd4)][_0x1926ea(0xb9)]((_0x3fcc39,_0x2b75d6,_0x60d91d)=>{const _0x2a471e=_0x1926ea,_0x331797=_0x60d91d;if(_0x331797&&!_0x446dea&&_0x59cebe[_0x2a471e(0xe3)](_0x4a944f,_0x331797))return _0x325e5a[_0x2a471e(0x13d)](_0x217ecc),!0x0;});}}),_0x325e5a[_0x1895ad(0x139)](_0x297001=>{const _0x5621a2=_0x1895ad;this[_0x5621a2(0xcc)][_0x5621a2(0x12c)](_0x59c3e0,_0x148bc7,_0x297001),this[_0x5621a2(0xcc)][_0x5621a2(0x122)](_0x59c3e0,_0x148bc7,_0x297001);});}else{if(_0x4ea141['id']===_0x546f77['id']){const _0x2bf7f7=_0x4ea141[_0x1895ad(0x13b)],{range:_0x3df6e1,unitId:_0x2eebb8,subUnitId:_0x30710d}=_0x2bf7f7,_0x3750f8=new Set(),_0x3f5a08=this[_0x1895ad(0xcc)][_0x1895ad(0xe9)](_0x2eebb8,_0x30710d);if(!_0x3f5a08)return;const _0x225ff3=Array[_0x1895ad(0xf3)](_0x3f5a08);for(let _0x56b861=0x0;_0x56b861<_0x225ff3[_0x1895ad(0x9e)];_0x56b861++){const [_0x2a2b45,_0x4c8fbe]=_0x225ff3[_0x56b861],_0x16edcc=_0x3750f8[_0x1895ad(0x104)](_0x2a2b45);_0x16edcc||_0x4c8fbe['sparklines'][_0x1895ad(0xb9)]((_0x3a58ee,_0x222d70,_0x4c5692)=>{const _0x911288=_0x1895ad,_0x27fa7c=_0x4c5692;if(_0x27fa7c&&!_0x16edcc&&_0x59cebe['intersects'](_0x3df6e1,_0x27fa7c))return _0x3750f8[_0x911288(0x13d)](_0x2a2b45),!0x0;});}_0x3750f8[_0x1895ad(0x139)](_0x3bf62e=>{const _0x4b3302=_0x1895ad;this['_sparklineDataSourceModel'][_0x4b3302(0x12c)](_0x2eebb8,_0x30710d,_0x3bf62e),this[_0x4b3302(0xcc)][_0x4b3302(0x122)](_0x2eebb8,_0x30710d,_0x3bf62e);});}}}));}['_initExclusiveRangeChange'](){const _0x5e545b=_0xf597b3;this['disposeWithMe'](this[_0x5e545b(0x9d)][_0x5e545b(0x124)][_0x5e545b(0x10c)](_0x430cb5=>{const _0xa6466c=_0x5e545b,{unitId:_0x392759,subUnitId:_0x124621,ranges:_0x5a61b3}=_0x430cb5,_0x18e46e=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x392759,_0x124621);if(!_0x18e46e)return;const _0x467ad4=Array[_0xa6466c(0xf3)](_0x18e46e),_0x2e7e01=new Set();for(let _0x4e685c=0x0;_0x4e685c<_0x467ad4['length'];_0x4e685c++){const [_0x4d5ec7,_0x23dba9]=_0x467ad4[_0x4e685c],_0x3c6ece=_0x2e7e01[_0xa6466c(0x104)](_0x4d5ec7);_0x3c6ece||_0x23dba9[_0xa6466c(0xd4)][_0xa6466c(0xb9)]((_0x4a8110,_0x279855,_0x582659)=>{const _0x5e6388=_0xa6466c,_0x1666de=_0x582659;if(_0x1666de&&!_0x3c6ece){for(const _0x5ae8f8 of _0x5a61b3)if(_0x59cebe[_0x5e6388(0xe3)](_0x5ae8f8,_0x1666de)){_0x2e7e01[_0x5e6388(0x13d)](_0x4d5ec7);break;}}});}_0x2e7e01[_0xa6466c(0x139)](_0x4f8c6c=>{const _0x3ed376=_0xa6466c;this[_0x3ed376(0xcc)][_0x3ed376(0x12c)](_0x392759,_0x124621,_0x4f8c6c),this[_0x3ed376(0xcc)][_0x3ed376(0x122)](_0x392759,_0x124621,_0x4f8c6c);});}));}};me=jt([be(0x0,_0x4e801a(_0x4db5c9)),be(0x1,_0x4e801a(x)),be(0x2,_0x4e801a(_0x1dcd0c))],me);var Lt=Object[_0xf597b3(0xcd)],Gt=(_0x382627,_0x3959ee,_0x160af6,_0x39902c)=>{const _0x2084e2=_0xf597b3;for(var _0xd59a48=_0x39902c>0x1?void 0x0:_0x39902c?Lt(_0x3959ee,_0x160af6):_0x3959ee,_0x55d858=_0x382627[_0x2084e2(0x9e)]-0x1,_0x23c179;_0x55d858>=0x0;_0x55d858--)(_0x23c179=_0x382627[_0x55d858])&&(_0xd59a48=_0x23c179(_0xd59a48)||_0xd59a48);return _0xd59a48;},He=(_0x43594e,_0x2e72c0)=>(_0x1dca1,_0x1fe79e)=>_0x2e72c0(_0x1dca1,_0x1fe79e,_0x43594e);let Ce=class extends _0x2fa4b9{constructor(_0x383426,_0x249180){const _0x1b34d7=_0xf597b3;super(),this[_0x1b34d7(0xbc)]=_0x383426,this[_0x1b34d7(0xcc)]=_0x249180,this[_0x1b34d7(0x143)]();}[_0xf597b3(0x143)](){const _0x344eac=_0xf597b3;this[_0x344eac(0xbc)][_0x344eac(0x12b)](_0x57ec9d=>{const _0x4e3405=_0x344eac;if(_0x57ec9d['id']===_0x4b2e9d['id']||_0x57ec9d['id']===_0x5264b3['id']||_0x57ec9d['id']===_0xfe9f28['id']||_0x57ec9d['id']===_0x4bd4b9['id']){const _0x3bf8b8=_0x57ec9d['params'],{ranges:_0xc02e3e,unitId:_0x247be3,subUnitId:_0x543f48}=_0x3bf8b8,_0x263af6=new Set(),_0x33ea1c=this[_0x4e3405(0xcc)]['getSubUnitSparkline'](_0x247be3,_0x543f48);if(!_0x33ea1c)return;const _0xf5aed1=Array[_0x4e3405(0xf3)](_0x33ea1c);_0xc02e3e[_0x4e3405(0x139)](_0x2eb334=>{const _0x36c5da=_0x4e3405;_0x37bef3[_0x36c5da(0x111)](_0x2eb334,(_0x10c28f,_0x135da1)=>{const _0x33e98b=_0x36c5da,_0xf5cde3=_0x3906a2(_0x10c28f,_0x135da1);for(let _0x5ea33b=0x0;_0x5ea33b<_0xf5aed1[_0x33e98b(0x9e)];_0x5ea33b++){const [_0x1aed20,_0xa5806f]=_0xf5aed1[_0x5ea33b],_0x4d9203=_0x263af6[_0x33e98b(0x104)](_0x1aed20);_0x4d9203||_0xa5806f[_0x33e98b(0xd4)][_0x33e98b(0xb9)]((_0x580759,_0x5ab136,_0x530036)=>{const _0x17d319=_0x33e98b,_0x22860b=_0x530036;if(_0x22860b&&!_0x4d9203&&_0x59cebe[_0x17d319(0xe3)](_0xf5cde3,_0x22860b))return _0x263af6[_0x17d319(0x13d)](_0x1aed20),!0x0;});}});}),_0x263af6[_0x4e3405(0x139)](_0x42e2c6=>{const _0x4741b8=_0x4e3405;this[_0x4741b8(0xcc)][_0x4741b8(0x12c)](_0x247be3,_0x543f48,_0x42e2c6),this[_0x4741b8(0xcc)][_0x4741b8(0x122)](_0x247be3,_0x543f48,_0x42e2c6);});}});}};Ce=Gt([He(0x0,_0x4e801a(_0x4db5c9)),He(0x1,_0x4e801a(x))],Ce);var Ht=Object[_0xf597b3(0xcd)],Bt=(_0x379cc5,_0x23ff63,_0x21715c,_0x497661)=>{const _0x20fc73=_0xf597b3;for(var _0xaf20e3=_0x497661>0x1?void 0x0:_0x497661?Ht(_0x23ff63,_0x21715c):_0x23ff63,_0x5466ce=_0x379cc5[_0x20fc73(0x9e)]-0x1,_0x214c56;_0x5466ce>=0x0;_0x5466ce--)(_0x214c56=_0x379cc5[_0x5466ce])&&(_0xaf20e3=_0x214c56(_0xaf20e3)||_0xaf20e3);return _0xaf20e3;},De=(_0x510772,_0x51dc14)=>(_0x52d9ea,_0x4e8f71)=>_0x51dc14(_0x52d9ea,_0x4e8f71,_0x510772);let _e=class extends _0x2fa4b9{constructor(_0xafd7e3,_0x45015e,_0x4d8fed){const _0x2cd045=_0xf597b3;super(),this[_0x2cd045(0xbc)]=_0xafd7e3,this['_sheetInterceptorService']=_0x45015e,this[_0x2cd045(0xcc)]=_0x4d8fed,this[_0x2cd045(0x125)]();}[_0xf597b3(0x125)](){const _0x411297=_0xf597b3;this[_0x411297(0xd1)](this[_0x411297(0xc0)][_0x411297(0x14e)]({'getMutations':_0x22a715=>{const _0x1aafc1=_0x411297,_0x3bbfca=[],_0x3c6694=[];if(_0x22a715['id']===_0x5decc2['id']){const _0x466f7d=_0x22a715['params'];if(!_0x466f7d)return{'redos':_0x3bbfca,'undos':_0x3c6694};const {unitId:_0x5549fc,subUnitId:_0x5c0ce9,ranges:_0x2116bb}=_0x466f7d,_0x319329=this[_0x1aafc1(0xcc)]['getSubUnitSparkline'](_0x5549fc,_0x5c0ce9);if(!_0x319329)return{'redos':_0x3bbfca,'undos':_0x3c6694};const _0x2b157d={},_0x1d3cce={},_0x1ef2f3=new Set();_0x2116bb[_0x1aafc1(0x139)](_0x5b7141=>{const _0x46f193=_0x1aafc1,_0x473a99=_0x5b7141['startRow'],_0x300b94=_0x5b7141[_0x46f193(0xc9)];_0x37bef3[_0x46f193(0x111)](_0x5b7141,(_0x535c58,_0x1a8945)=>{const _0x553759=_0x46f193,_0x19427b=this[_0x553759(0xcc)][_0x553759(0xb5)](_0x5549fc,_0x5c0ce9,_0x535c58,_0x1a8945);if(_0x19427b&&!(_0x535c58===_0x473a99&&_0x1a8945===_0x300b94)){const _0x1bd5a5=this[_0x553759(0xcc)][_0x553759(0xdf)](_0x5549fc,_0x5c0ce9,_0x19427b);if(_0x1bd5a5){_0x1ef2f3[_0x553759(0x13d)](_0x19427b);let _0x2ccbbc=_0x2b157d[_0x19427b];_0x2ccbbc||(_0x2ccbbc={'config':_0x3e7a9c['deepClone'](_0x1bd5a5[_0x553759(0xa3)]),'sparklines':new _0x55e27e(_0x1bd5a5[_0x553759(0xd4)][_0x553759(0xa6)]())},_0x2b157d[_0x19427b]=_0x2ccbbc),_0x2ccbbc[_0x553759(0xd4)][_0x553759(0xca)](_0x535c58,_0x1a8945),_0x1d3cce[_0x19427b]={'config':_0x3e7a9c[_0x553759(0xa5)](_0x1bd5a5['config']),'sparklines':_0x3e7a9c[_0x553759(0xa5)](_0x1bd5a5[_0x553759(0xd4)][_0x553759(0xa6)]())};}}});});for(const [_0x5df272,_0x1c743f]of _0x319329){const _0x576dda=_0x1c743f['sparklines'];_0x576dda[_0x1aafc1(0xb9)]((_0x35ae4b,_0x3c6c6f,_0x30ca73)=>{const _0x34e6ec=_0x1aafc1;for(let _0xcc1ed2=0x0;_0xcc1ed2<_0x2116bb['length'];_0xcc1ed2++){const _0x343679=_0x2116bb[_0xcc1ed2];if(_0x59cebe['contains'](_0x343679,_0x30ca73)){_0x1ef2f3['add'](_0x5df272);let _0x177110=_0x2b157d[_0x5df272];_0x177110||(_0x177110={'config':_0x3e7a9c[_0x34e6ec(0xa5)](_0x1c743f[_0x34e6ec(0xa3)]),'sparklines':new _0x55e27e(_0x576dda[_0x34e6ec(0xa6)]())},_0x2b157d[_0x5df272]=_0x177110),_0x177110['sparklines']['realDeleteValue'](_0x35ae4b,_0x3c6c6f),_0x1d3cce[_0x5df272]||(_0x1d3cce[_0x5df272]={'config':_0x3e7a9c[_0x34e6ec(0xa5)](_0x1c743f['config']),'sparklines':_0x3e7a9c[_0x34e6ec(0xa5)](_0x576dda['clone']())});}}});}const _0x370c94={};Object['entries'](_0x2b157d)['forEach'](([_0x1dd524,_0x43f230])=>{const _0xbc340f=_0x1aafc1;_0x43f230[_0xbc340f(0xd4)][_0xbc340f(0x136)]()&&(_0x370c94[_0x1dd524]={'config':_0x43f230['config'],'sparklines':_0x43f230[_0xbc340f(0xd4)]['clone']()});}),_0x1ef2f3[_0x1aafc1(0xf6)]&&(_0x3bbfca[_0x1aafc1(0xda)]({'id':y['id'],'params':{'unitId':_0x5549fc,'subUnitId':_0x5c0ce9,'groupIds':Array[_0x1aafc1(0xf3)](_0x1ef2f3),'isSingle':!0x1}}),_0x3c6694[_0x1aafc1(0xda)]({'id':y['id'],'params':{'unitId':_0x5549fc,'subUnitId':_0x5c0ce9,'groupIds':Array['from'](_0x1ef2f3),'isSingle':!0x1}}),_0x3bbfca[_0x1aafc1(0xda)]({'id':V['id'],'params':{'unitId':_0x5549fc,'subUnitId':_0x5c0ce9,'sparklineConfigMap':_0x370c94}}),_0x3c6694[_0x1aafc1(0xda)]({'id':V['id'],'params':{'unitId':_0x5549fc,'subUnitId':_0x5c0ce9,'sparklineConfigMap':_0x1d3cce}}));}return{'redos':_0x3bbfca,'undos':_0x3c6694};}}));}};_e=Bt([De(0x0,_0x4e801a(_0x4db5c9)),De(0x1,_0x4e801a(_0x1b0c00)),De(0x2,_0x4e801a(x))],_e);var Wt=Object[_0xf597b3(0xcd)],Ft=(_0x4fa748,_0x26a642,_0x22778d,_0x4c5caf)=>{for(var _0x33dd9a=_0x4c5caf>0x1?void 0x0:_0x4c5caf?Wt(_0x26a642,_0x22778d):_0x26a642,_0xa8b158=_0x4fa748['length']-0x1,_0xba2381;_0xa8b158>=0x0;_0xa8b158--)(_0xba2381=_0x4fa748[_0xa8b158])&&(_0x33dd9a=_0xba2381(_0x33dd9a)||_0x33dd9a);return _0x33dd9a;},he=(_0x2cda9d,_0x164008)=>(_0x33ce82,_0x5c907d)=>_0x164008(_0x33ce82,_0x5c907d,_0x2cda9d);let Me=class extends _0x2fa4b9{constructor(_0x4058c4,_0x3a7575,_0x3bcb43,_0x15c56f){const _0x6f19c0=_0xf597b3;super(),re(this,_0x6f19c0(0xef),new _0x3a7b71()),(this[_0x6f19c0(0xbc)]=_0x4058c4,this[_0x6f19c0(0xc8)]=_0x3a7575,this[_0x6f19c0(0xd3)]=_0x3bcb43,this[_0x6f19c0(0xcc)]=_0x15c56f,this[_0x6f19c0(0x137)](),this['_initCorrectRangeWithSparkline']());}[_0xf597b3(0x137)](){const _0xb58c2c=_0xf597b3,_0x304e35=(_0x518df8,_0x57e6b6)=>{const _0x1ca1b8=_0x27ae,_0x5b03cc=this[_0x1ca1b8(0xd3)][_0x1ca1b8(0x10a)](_0x3a4645[_0x1ca1b8(0x10e)]);if(!_0x5b03cc||!(_0x5b03cc==null?void 0x0:_0x5b03cc[_0x1ca1b8(0xba)](_0x57e6b6)))return;this[_0x1ca1b8(0xef)]['dispose']();const _0x4b264d=_0x9e20d9=>this[_0x1ca1b8(0xf1)](_0x9e20d9,_0x518df8,_0x57e6b6),_0x16904b=[],_0xca0a2d=this[_0x1ca1b8(0xcc)]['getSubUnitSparkline'](_0x518df8,_0x57e6b6);if(_0xca0a2d){for(const [_0x239807,_0x1df0b6]of _0xca0a2d)_0x1df0b6['sparklines']['forValue']((_0x41adad,_0xa0aca1,_0x55fbe1)=>{const _0x2d6a6e=_0x3906a2(_0x41adad,_0xa0aca1);_0x16904b['push'](_0x2d6a6e);});_0x16904b[_0x1ca1b8(0x139)](_0x41f253=>{const _0xa62ca3=_0x1ca1b8;this[_0xa62ca3(0xef)]['add'](this[_0xa62ca3(0xc8)]['registerRefRange'](_0x41f253,_0x4b264d,_0x518df8,_0x57e6b6));});}};this['disposeWithMe'](this[_0xb58c2c(0xbc)][_0xb58c2c(0x12b)](_0x5a01b4=>{const _0x3f57d2=_0xb58c2c;if(_0x5a01b4['id']===_0x4834fe['id']){const _0x11774b=_0x5a01b4['params'],_0xcfd686=_0x11774b[_0x3f57d2(0xe2)],_0x73575b=_0x11774b[_0x3f57d2(0xe8)];if(!_0xcfd686||!_0x73575b)return;_0x304e35(_0x73575b,_0xcfd686);}if(_0x5a01b4['id']===xe['id']||_0x5a01b4['id']===V['id']){const _0x5668cb=_0x5a01b4['params'],_0x34ed48=_0x5668cb['subUnitId'],_0x5b7a90=_0x5668cb[_0x3f57d2(0xe8)];if(!_0x34ed48||!_0x5b7a90)return;_0x304e35(_0x5b7a90,_0x34ed48);}}));}[_0xf597b3(0xf1)](_0x211d86,_0x14e097,_0x9d135d){const _0x1372ab=_0xf597b3;switch(_0x211d86['id']){case _0x3a3049['id']:return this[_0x1372ab(0xbf)](_0x211d86[_0x1372ab(0x13b)],_0x14e097,_0x9d135d);case _0x56b963['id']:return this[_0x1372ab(0xc5)](_0x211d86[_0x1372ab(0x13b)],_0x14e097,_0x9d135d);}return{'redos':[],'undos':[]};}[_0xf597b3(0xc5)](_0x25f0ef,_0x4cfeff,_0x13212a){const _0x36fc74=_0xf597b3;var _0x4d350d,_0x2d2a0e;const {range:_0x25b369}=_0x25f0ef,_0x56d796=new Set(),_0x378af7={},_0x3110ca={},_0x5b8112=[],_0x51701c=[],_0x5f7d36=[],_0x51e3fb=[];if(!_0x3b8a67(this[_0x36fc74(0xd3)],{'unitId':_0x4cfeff,'subUnitId':_0x13212a}))return{'redos':_0x51701c,'undos':_0x5b8112};const _0x1c87db=this[_0x36fc74(0xcc)][_0x36fc74(0xe9)](_0x4cfeff,_0x13212a);if(!_0x1c87db)return{'redos':_0x51701c,'undos':_0x5b8112};if(!((_0x2d2a0e=(_0x4d350d=this['_sparklineDataSourceModel'][_0x36fc74(0xd9)]()[_0x36fc74(0xc7)][_0x36fc74(0x15b)](_0x4cfeff))==null?void 0x0:_0x4d350d[_0x36fc74(0x15b)](_0x13212a))==null?void 0x0:_0x2d2a0e[_0x36fc74(0xb3)]))return{'redos':_0x51701c,'undos':_0x5b8112};for(const [_0x260e4d,_0x5adf92]of _0x1c87db){const _0x214628=_0x5adf92[_0x36fc74(0xd4)];_0x214628[_0x36fc74(0xb9)]((_0x1251b2,_0x3a066e,_0x3cf681)=>{const _0x542a44=_0x36fc74;if(_0x59cebe[_0x542a44(0xe3)](_0x25b369,_0x3cf681)){_0x56d796['add'](_0x260e4d);let _0x3c305=_0x3110ca[_0x260e4d];_0x3c305||(_0x3c305={'config':_0x5adf92[_0x542a44(0xa3)],'sparklines':_0x5adf92[_0x542a44(0xd4)][_0x542a44(0xa6)]()},_0x3110ca[_0x260e4d]=_0x3c305);let _0x3e9d60=_0x378af7[_0x260e4d];_0x3e9d60||(_0x3e9d60={'config':_0x5adf92['config'],'sparklines':new _0x55e27e(_0x5adf92[_0x542a44(0xd4)][_0x542a44(0xa6)]())},_0x378af7[_0x260e4d]=_0x3e9d60);const _0x34a3df=_0x58005b(_0x3cf681,{'id':_0x15176b['id'],'params':_0x25f0ef});_0x34a3df?_0x3e9d60[_0x542a44(0xd4)][_0x542a44(0xd7)](_0x1251b2,_0x3a066e,_0x34a3df):_0x3e9d60['sparklines']['setValue'](_0x1251b2,_0x3a066e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x581c04[_0x542a44(0xfe)]});}}),_0x214628[_0x36fc74(0xb9)]((_0x6898a9,_0x57edd1,_0x183f79)=>{const _0x2de8b0=_0x36fc74;if(_0x6898a9<=_0x25b369[_0x2de8b0(0xab)]&&_0x6898a9>=_0x25b369[_0x2de8b0(0xc6)]){_0x56d796['add'](_0x260e4d);let _0x201488=_0x3110ca[_0x260e4d];_0x201488||(_0x201488={'config':_0x5adf92['config'],'sparklines':_0x5adf92[_0x2de8b0(0xd4)][_0x2de8b0(0xa6)]()},_0x3110ca[_0x260e4d]=_0x201488);let _0x93575b=_0x378af7[_0x260e4d];_0x93575b||(_0x93575b={'config':_0x5adf92['config'],'sparklines':new _0x55e27e(_0x5adf92[_0x2de8b0(0xd4)][_0x2de8b0(0xa6)]())},_0x378af7[_0x260e4d]=_0x93575b);}});}_0x51e3fb['push']({'id':y['id'],'params':{'unitId':_0x4cfeff,'subUnitId':_0x13212a,'groupIds':Array['from'](_0x56d796),'isSingle':!0x1}}),_0x5f7d36[_0x36fc74(0xda)]({'id':y['id'],'params':{'unitId':_0x4cfeff,'subUnitId':_0x13212a,'groupIds':Array[_0x36fc74(0xf3)](_0x56d796),'isSingle':!0x1}});const _0x20dd4f={};let _0x5f20f5=!0x1;return Object['entries'](_0x378af7)[_0x36fc74(0x139)](([_0x2f1c05,_0xa95cf8])=>{const _0x55ed67=_0x36fc74;_0xa95cf8['sparklines']['getSizeOf']()&&(_0x5f20f5=!0x0,_0xa95cf8[_0x55ed67(0xd4)][_0x55ed67(0x119)](_0x25b369['startRow'],_0x25b369[_0x55ed67(0xab)]-_0x25b369['startRow']+0x1),_0x20dd4f[_0x2f1c05]={'config':_0xa95cf8['config'],'sparklines':_0xa95cf8['sparklines'][_0x55ed67(0xa6)]()});}),_0x5f20f5&&_0x51701c[_0x36fc74(0xda)]({'id':V['id'],'params':{'unitId':_0x4cfeff,'subUnitId':_0x13212a,'sparklineConfigMap':_0x20dd4f}}),_0x5b8112['push']({'id':V['id'],'params':{'unitId':_0x4cfeff,'subUnitId':_0x13212a,'sparklineConfigMap':_0x3110ca}}),{'redos':_0x51701c,'undos':_0x5b8112,'preRedos':_0x5f7d36,'preUndos':_0x51e3fb};}['_getRefRangeMutationsByDeleteCols'](_0x3c9d00,_0x5bdf43,_0x5a6c62){const _0x3bc914=_0xf597b3;var _0x5a74fe,_0x1ed4b5;const {range:_0x469ddd}=_0x3c9d00,_0x41872e=new Set(),_0x4666fd={},_0x220499={},_0x1ab211=[],_0x44fb06=[],_0x3c4854=[],_0xf36690=[];if(!_0x3b8a67(this[_0x3bc914(0xd3)],{'unitId':_0x5bdf43,'subUnitId':_0x5a6c62}))return{'redos':_0x44fb06,'undos':_0x1ab211};const _0x56b596=this[_0x3bc914(0xcc)][_0x3bc914(0xe9)](_0x5bdf43,_0x5a6c62);if(!_0x56b596)return{'redos':_0x44fb06,'undos':_0x1ab211};if(!((_0x1ed4b5=(_0x5a74fe=this['_sparklineDataSourceModel'][_0x3bc914(0xd9)]()[_0x3bc914(0xc7)]['get'](_0x5bdf43))==null?void 0x0:_0x5a74fe[_0x3bc914(0x15b)](_0x5a6c62))==null?void 0x0:_0x1ed4b5['matrix']))return{'redos':_0x44fb06,'undos':_0x1ab211};for(const [_0x5598f5,_0x29834c]of _0x56b596){const _0x483086=_0x29834c[_0x3bc914(0xd4)];_0x483086[_0x3bc914(0xb9)]((_0x346559,_0x4b11b4,_0x3681c8)=>{const _0xc179e8=_0x3bc914;if(_0x59cebe['intersects'](_0x469ddd,_0x3681c8)){_0x41872e[_0xc179e8(0x13d)](_0x5598f5);let _0x725edf=_0x220499[_0x5598f5];_0x725edf||(_0x725edf={'config':_0x29834c[_0xc179e8(0xa3)],'sparklines':_0x29834c[_0xc179e8(0xd4)][_0xc179e8(0xa6)]()},_0x220499[_0x5598f5]=_0x725edf);let _0x43638f=_0x4666fd[_0x5598f5];_0x43638f||(_0x43638f={'config':_0x29834c[_0xc179e8(0xa3)],'sparklines':new _0x55e27e(_0x29834c[_0xc179e8(0xd4)][_0xc179e8(0xa6)]())},_0x4666fd[_0x5598f5]=_0x43638f);const _0x3b730c=_0x58005b(_0x3681c8,{'id':_0x42d9f1['id'],'params':_0x3c9d00});_0x3b730c?_0x43638f[_0xc179e8(0xd4)][_0xc179e8(0xd7)](_0x346559,_0x4b11b4,_0x3b730c):_0x43638f[_0xc179e8(0xd4)][_0xc179e8(0xd7)](_0x346559,_0x4b11b4,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x581c04[_0xc179e8(0xfe)]});}}),_0x483086[_0x3bc914(0xb9)]((_0x1cc7de,_0x10a150,_0x3baa2a)=>{const _0x11b419=_0x3bc914;if(_0x10a150<=_0x469ddd[_0x11b419(0x10b)]&&_0x10a150>=_0x469ddd['startColumn']){_0x41872e[_0x11b419(0x13d)](_0x5598f5);let _0x2f6cce=_0x220499[_0x5598f5];_0x2f6cce||(_0x2f6cce={'config':_0x29834c[_0x11b419(0xa3)],'sparklines':_0x29834c[_0x11b419(0xd4)][_0x11b419(0xa6)]()},_0x220499[_0x5598f5]=_0x2f6cce);let _0x1de5c8=_0x4666fd[_0x5598f5];_0x1de5c8||(_0x1de5c8={'config':_0x29834c[_0x11b419(0xa3)],'sparklines':new _0x55e27e(_0x29834c[_0x11b419(0xd4)]['clone']())},_0x4666fd[_0x5598f5]=_0x1de5c8);}});}_0xf36690[_0x3bc914(0xda)]({'id':y['id'],'params':{'unitId':_0x5bdf43,'subUnitId':_0x5a6c62,'groupIds':Array[_0x3bc914(0xf3)](_0x41872e),'isSingle':!0x1}}),_0x3c4854[_0x3bc914(0xda)]({'id':y['id'],'params':{'unitId':_0x5bdf43,'subUnitId':_0x5a6c62,'groupIds':Array['from'](_0x41872e),'isSingle':!0x1}});const _0x3d9a79={};let _0x13b4d7=!0x1;return Object['entries'](_0x4666fd)['forEach'](([_0x26c221,_0x388222])=>{const _0x51e758=_0x3bc914;_0x388222['sparklines'][_0x51e758(0x136)]()&&(_0x13b4d7=!0x0,_0x388222[_0x51e758(0xd4)][_0x51e758(0xea)](_0x469ddd[_0x51e758(0xc9)],_0x469ddd['endColumn']-_0x469ddd[_0x51e758(0xc9)]+0x1),_0x3d9a79[_0x26c221]={'config':_0x388222[_0x51e758(0xa3)],'sparklines':_0x388222['sparklines'][_0x51e758(0xa6)]()});}),_0x13b4d7&&_0x44fb06[_0x3bc914(0xda)]({'id':V['id'],'params':{'unitId':_0x5bdf43,'subUnitId':_0x5a6c62,'sparklineConfigMap':_0x3d9a79}}),_0x1ab211[_0x3bc914(0xda)]({'id':V['id'],'params':{'unitId':_0x5bdf43,'subUnitId':_0x5a6c62,'sparklineConfigMap':_0x220499}}),{'redos':_0x44fb06,'undos':_0x1ab211,'preRedos':_0x3c4854,'preUndos':_0xf36690};}[_0xf597b3(0x123)](){const _0xdb43b2=_0xf597b3;this['disposeWithMe'](this[_0xdb43b2(0xbc)][_0xdb43b2(0x12b)](_0x3dc867=>{const _0x4a4614=_0xdb43b2;if(_0x3dc867['id']===_0x6e97a2['id']){const _0x566305=_0x3dc867[_0x4a4614(0x13b)],{unitId:_0x57a03c,subUnitId:_0x23d140,range:_0xd57ed}=_0x566305,_0x6fa231=_0xd57ed[_0x4a4614(0xc9)],_0x214854=_0xd57ed['endColumn']-_0xd57ed[_0x4a4614(0xc9)]+0x1,_0xc37682=this['_sparklineDataSourceModel'][_0x4a4614(0xe9)](_0x57a03c,_0x23d140);if(!_0xc37682)return;for(const [_0x1f9911,_0x4bfe3e]of _0xc37682){this[_0x4a4614(0xcc)][_0x4a4614(0x12c)](_0x57a03c,_0x23d140,_0x1f9911);const _0x10d1c4=_0x4bfe3e['sparklines'];_0x10d1c4['forValue']((_0x59181d,_0x598519,_0x5f5bff)=>{const _0x2c40ec=_0x4a4614,_0x3cad5f={..._0x5f5bff};_0x6fa231<=_0x3cad5f[_0x2c40ec(0xc9)]?(_0x3cad5f[_0x2c40ec(0xc9)]+=_0x214854,_0x3cad5f[_0x2c40ec(0x10b)]+=_0x214854):_0x6fa231>_0x3cad5f[_0x2c40ec(0x10b)]||(_0x3cad5f[_0x2c40ec(0x10b)]+=_0x214854),_0x10d1c4['setValue'](_0x59181d,_0x598519,_0x3cad5f);});const _0x56f079=_0x10d1c4['getMatrix']();for(const _0x4f738f in _0x56f079){const _0x393742=_0x56f079[Number(_0x4f738f)];if(!_0x393742)continue;const _0x34f150=Object['keys'](_0x393742)[_0x4a4614(0xb7)](Number),_0x4204ff=Math['max'](..._0x34f150);for(let _0x220075=_0x4204ff;_0x220075>=_0x6fa231;_0x220075--)_0x220075>=_0x6fa231&&_0x393742[_0x220075]&&(_0x393742[_0x220075+_0x214854]=_0x393742[_0x220075],delete _0x393742[_0x220075]);}this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x57a03c,_0x23d140,_0x1f9911);}}else{if(_0x3dc867['id']===_0x1274f0['id']){const _0x3b319f=_0x3dc867[_0x4a4614(0x13b)],{unitId:_0x30bad4,subUnitId:_0x4b5beb,range:_0xb9f4de}=_0x3b319f,_0x2c27b3=_0xb9f4de['startRow'],_0x1abac3=_0xb9f4de[_0x4a4614(0xab)]-_0xb9f4de[_0x4a4614(0xc6)]+0x1,_0x89bd77=this['_sparklineDataSourceModel'][_0x4a4614(0xe9)](_0x30bad4,_0x4b5beb);if(!_0x89bd77)return;for(const [_0x3e839b,_0x4a0aa1]of _0x89bd77){this[_0x4a4614(0xcc)][_0x4a4614(0x12c)](_0x30bad4,_0x4b5beb,_0x3e839b);const _0x1e0b7c=_0x4a0aa1['sparklines'];_0x1e0b7c[_0x4a4614(0xb9)]((_0x20ef1c,_0x5d9791,_0x2da188)=>{const _0x219f0f=_0x4a4614,_0x5925d3={..._0x2da188};_0x2c27b3<=_0x5925d3['startRow']?(_0x5925d3[_0x219f0f(0xc6)]+=_0x1abac3,_0x5925d3[_0x219f0f(0xab)]+=_0x1abac3):_0x2c27b3>_0x5925d3[_0x219f0f(0xab)]||(_0x5925d3[_0x219f0f(0xab)]+=_0x1abac3),_0x1e0b7c['setValue'](_0x20ef1c,_0x5d9791,_0x5925d3);});const _0x576820=_0x1e0b7c[_0x4a4614(0x149)](),_0x474113=Object[_0x4a4614(0xd2)](_0x576820)['map'](Number),_0x4cdb5f=Math[_0x4a4614(0x112)](..._0x474113);for(let _0x197752=_0x4cdb5f;_0x197752>=_0x2c27b3;_0x197752--)_0x197752>=_0x2c27b3&&_0x576820[_0x197752]&&(_0x576820[_0x197752+_0x1abac3]=_0x576820[_0x197752],delete _0x576820[_0x197752]);this[_0x4a4614(0xcc)]['updateSparklineExtraNum'](_0x30bad4,_0x4b5beb,_0x3e839b);}}else{if(_0x3dc867['id']===_0x42d9f1['id']){const _0x36878a=_0x3dc867[_0x4a4614(0x13b)],{range:_0x23f5b1,unitId:_0x3cd004,subUnitId:_0x6fbb2a}=_0x36878a,_0x348645=this[_0x4a4614(0xcc)][_0x4a4614(0xe9)](_0x3cd004,_0x6fbb2a);if(!_0x348645)return;for(const [_0x403791,_0x4b243e]of _0x348645){const _0x2596cf=_0x4b243e['sparklines'];_0x2596cf[_0x4a4614(0xb9)]((_0x3265d7,_0x4e8306,_0x32dd6a)=>{const _0xb5914c=_0x4a4614,_0x15038d=_0x58005b(_0x32dd6a,_0x3dc867);_0x15038d?_0x2596cf[_0xb5914c(0xd7)](_0x3265d7,_0x4e8306,_0x15038d):_0x2596cf['setValue'](_0x3265d7,_0x4e8306,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x581c04[_0xb5914c(0xfe)]});}),_0x2596cf['removeColumns'](_0x23f5b1[_0x4a4614(0xc9)],_0x23f5b1[_0x4a4614(0x10b)]-_0x23f5b1[_0x4a4614(0xc9)]+0x1);}this[_0x4a4614(0xcc)][_0x4a4614(0x151)](_0x3cd004,_0x6fbb2a);}else{if(_0x3dc867['id']===_0x15176b['id']){const _0x4c2554=_0x3dc867[_0x4a4614(0x13b)],{range:_0x4ed0a8,unitId:_0x57f567,subUnitId:_0x7ced4d}=_0x4c2554,_0x5f9218=this[_0x4a4614(0xcc)][_0x4a4614(0xe9)](_0x57f567,_0x7ced4d);if(!_0x5f9218)return;for(const [_0x22a895,_0xaf9fcc]of _0x5f9218){const _0x1bfb10=_0xaf9fcc[_0x4a4614(0xd4)];_0x1bfb10[_0x4a4614(0xb9)]((_0x2b2983,_0x18c345,_0x212b86)=>{const _0x51b3c1=_0x4a4614,_0x3b36e0=_0x58005b(_0x212b86,_0x3dc867);_0x3b36e0?_0x1bfb10['setValue'](_0x2b2983,_0x18c345,_0x3b36e0):_0x1bfb10[_0x51b3c1(0xd7)](_0x2b2983,_0x18c345,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x581c04[_0x51b3c1(0xfe)]});}),_0x1bfb10['removeRows'](_0x4ed0a8['startRow'],_0x4ed0a8[_0x4a4614(0xab)]-_0x4ed0a8[_0x4a4614(0xc6)]+0x1);}this[_0x4a4614(0xcc)][_0x4a4614(0x151)](_0x57f567,_0x7ced4d);}else{if(_0x3dc867['id']===_0x144753['id']){const _0x505416=_0x3dc867[_0x4a4614(0x13b)],{unitId:_0xb8d7f3,subUnitId:_0x1978d7,sourceRange:_0x3f5c55,targetRange:_0x5af402}=_0x505416,_0x13d2af=this[_0x4a4614(0xcc)][_0x4a4614(0xe9)](_0xb8d7f3,_0x1978d7);if(!_0x13d2af)return;for(const [_0x521c2f,_0x28861c]of _0x13d2af){const _0x179248=_0x28861c[_0x4a4614(0xd4)];_0x179248[_0x4a4614(0xb9)]((_0x3650a8,_0x3ed682,_0x3b1ccb)=>{const _0x9d5723=_0x4a4614,_0x401dc8=_0x58005b(_0x3b1ccb,_0x3dc867);_0x401dc8?_0x179248[_0x9d5723(0xd7)](_0x3650a8,_0x3ed682,_0x401dc8):_0x179248[_0x9d5723(0xd7)](_0x3650a8,_0x3ed682,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x581c04[_0x9d5723(0xfe)]});}),_0x179248[_0x4a4614(0xeb)](_0x3f5c55[_0x4a4614(0xc9)],_0x3f5c55[_0x4a4614(0x10b)]-_0x3f5c55['startColumn']+0x1,_0x5af402[_0x4a4614(0xc9)]);}this['_sparklineDataSourceModel'][_0x4a4614(0x151)](_0xb8d7f3,_0x1978d7);}else{if(_0x3dc867['id']===_0x11fb6b['id']){const _0x4b4d1a=_0x3dc867[_0x4a4614(0x13b)],{unitId:_0x5ef031,subUnitId:_0xa410f4,sourceRange:_0x320071,targetRange:_0x20bc07}=_0x4b4d1a,_0x1408c9=this['_sparklineDataSourceModel'][_0x4a4614(0xe9)](_0x5ef031,_0xa410f4);if(!_0x1408c9)return;for(const [_0x259e85,_0x1413b0]of _0x1408c9){const _0x351bbb=_0x1413b0['sparklines'];_0x351bbb['forValue']((_0x3ed923,_0x2176ec,_0x4205bd)=>{const _0x1c6a49=_0x4a4614,_0xba8487=_0x58005b(_0x4205bd,_0x3dc867);_0xba8487?_0x351bbb[_0x1c6a49(0xd7)](_0x3ed923,_0x2176ec,_0xba8487):_0x351bbb[_0x1c6a49(0xd7)](_0x3ed923,_0x2176ec,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x581c04['NORMAL']});}),_0x351bbb['moveRows'](_0x320071[_0x4a4614(0xc6)],_0x320071[_0x4a4614(0xab)]-_0x320071['startRow']+0x1,_0x20bc07[_0x4a4614(0xc6)]);}this[_0x4a4614(0xcc)]['reBuildAnchorCache'](_0x5ef031,_0xa410f4);}else{if(_0x3dc867['id']===_0x52fad2['id']){const _0x11eb15=_0x3dc867[_0x4a4614(0x13b)],{fromRange:_0x4258f2,toRange:_0x5a7ac1,unitId:_0x479a70,from:_0x5c86af,to:_0x33c61e}=_0x11eb15;if(_0x5c86af[_0x4a4614(0xe2)]!==_0x33c61e[_0x4a4614(0xe2)])return;const _0x701420=_0x5c86af[_0x4a4614(0xe2)],{startRow:_0xff5d2,endRow:_0x40833e,startColumn:_0x8d9a93,endColumn:_0x471a90}=_0x4258f2,{startRow:_0x12ad2e,startColumn:_0x54904c}=_0x5a7ac1,_0x393c26=_0x12ad2e-_0xff5d2,_0x110e3a=_0x54904c-_0x8d9a93,_0x4aeb2a=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x479a70,_0x701420);if(!(_0x4aeb2a!=null&&_0x4aeb2a[_0x4a4614(0xf6)]))return;for(let _0x16ad6e=_0xff5d2;_0x16ad6e<=_0x40833e;_0x16ad6e++)for(let _0x513e49=_0x8d9a93;_0x513e49<=_0x471a90;_0x513e49++){const _0x23df8b=this[_0x4a4614(0xcc)][_0x4a4614(0xb5)](_0x479a70,_0x701420,_0x16ad6e,_0x513e49);if(_0x23df8b){const _0x3b7b55=this[_0x4a4614(0xcc)][_0x4a4614(0xdf)](_0x479a70,_0x701420,_0x23df8b);if(_0x3b7b55){const _0x2bb99f=_0x3b7b55['sparklines'][_0x4a4614(0xcb)](_0x16ad6e,_0x513e49);_0x2bb99f&&(_0x3b7b55[_0x4a4614(0xd4)][_0x4a4614(0xd7)](_0x16ad6e+_0x393c26,_0x513e49+_0x110e3a,_0x2bb99f),_0x3b7b55[_0x4a4614(0xd4)][_0x4a4614(0xca)](_0x16ad6e,_0x513e49));}}}for(const [_0x5a3b41,_0xf48845]of _0x4aeb2a){const _0x422f46=_0xf48845[_0x4a4614(0xd4)];_0x422f46[_0x4a4614(0xb9)]((_0x214367,_0x30a031,_0x2f5d2f)=>{const _0x2e1490=_0x4a4614,_0x507494={..._0x2f5d2f};_0x59cebe[_0x2e1490(0xa2)](_0x4258f2,_0x2f5d2f)&&(_0x507494['startRow']+=_0x393c26,_0x507494['endRow']+=_0x393c26,_0x507494[_0x2e1490(0xc9)]+=_0x110e3a,_0x507494[_0x2e1490(0x10b)]+=_0x110e3a),_0x422f46[_0x2e1490(0xd7)](_0x214367,_0x30a031,_0x507494);});}this['_sparklineDataSourceModel'][_0x4a4614(0x151)](_0x479a70,_0x701420);}}}}}}}}));}};Me=Ft([he(0x0,_0x4e801a(_0x4db5c9)),he(0x1,_0x4e801a(_0x4fbcd2)),he(0x2,_0x365c9a),he(0x3,_0x4e801a(x))],Me);var Kt=Object['getOwnPropertyDescriptor'],zt=(_0x4bbcf5,_0x330bb8,_0x5e6e9f,_0x2e233)=>{const _0x3db425=_0xf597b3;for(var _0x310b8b=_0x2e233>0x1?void 0x0:_0x2e233?Kt(_0x330bb8,_0x5e6e9f):_0x330bb8,_0x17dc87=_0x4bbcf5[_0x3db425(0x9e)]-0x1,_0x1b2198;_0x17dc87>=0x0;_0x17dc87--)(_0x1b2198=_0x4bbcf5[_0x17dc87])&&(_0x310b8b=_0x1b2198(_0x310b8b)||_0x310b8b);return _0x310b8b;},Ee=(_0x34de1b,_0x5e30b6)=>(_0x40225b,_0x2c7d9e)=>_0x5e30b6(_0x40225b,_0x2c7d9e,_0x34de1b);let Re=class extends _0x2fa4b9{constructor(_0x25e191,_0x4df333,_0x155431){const _0x5eeda4=_0xf597b3;super(),this[_0x5eeda4(0xd3)]=_0x25e191,this[_0x5eeda4(0xc0)]=_0x4df333,this['_sparklineDataSourceModel']=_0x155431,this[_0x5eeda4(0x13e)]();}[_0xf597b3(0x13e)](){const _0x6df230=_0xf597b3;this[_0x6df230(0xd1)](this['_sheetInterceptorService'][_0x6df230(0x14e)]({'getMutations':_0x57427a=>{const _0x4ea42c=_0x6df230;var _0x380f5b;if(_0x57427a['id']===_0x1d0c51['id']){const _0x48b3e0=_0x57427a[_0x4ea42c(0x13b)],_0x3e07f2=_0x48b3e0['unitId']||this[_0x4ea42c(0xd3)]['getCurrentUnitOfType'](_0x3a4645[_0x4ea42c(0x10e)])[_0x4ea42c(0x10f)](),_0x4d08cd=_0x48b3e0[_0x4ea42c(0xe2)]||((_0x380f5b=this[_0x4ea42c(0xd3)]['getCurrentUnitOfType'](_0x3a4645[_0x4ea42c(0x10e)])['getActiveSheet']())==null?void 0x0:_0x380f5b[_0x4ea42c(0xb2)]());if(!_0x3e07f2||!_0x4d08cd)return{'redos':[],'undos':[]};const _0x4098b8=this[_0x4ea42c(0xcc)]['getSubUnitSparkline'](_0x3e07f2,_0x4d08cd);if(!_0x4098b8)return{'redos':[],'undos':[]};const _0x4e33de=new Set(),_0x3b803f={};for(const [_0x54e672,_0x151bcd]of _0x4098b8)_0x4e33de['add'](_0x54e672),_0x3b803f[_0x54e672]={'config':_0x3e7a9c['deepClone'](_0x151bcd[_0x4ea42c(0xa3)]),'sparklines':_0x3e7a9c[_0x4ea42c(0xa5)](_0x151bcd[_0x4ea42c(0xd4)]['clone']())};if(_0x4e33de[_0x4ea42c(0xf6)])return{'redos':[{'id':y['id'],'params':{'unitId':_0x3e07f2,'subUnitId':_0x4d08cd,'groupIds':Array[_0x4ea42c(0xf3)](_0x4e33de),'isSingle':!0x1}}],'undos':[{'id':V['id'],'params':{'unitId':_0x3e07f2,'subUnitId':_0x4d08cd,'sparklineConfigMap':_0x3b803f}}]};}else{if(_0x57427a['id']===_0x5c5a48['id']){const _0x4e81aa=_0x57427a[_0x4ea42c(0x13b)],{unitId:_0x2e12f5,subUnitId:_0x2e5e86,targetSubUnitId:_0xf6fe6f}=_0x4e81aa;if(!_0x2e12f5||!_0x2e5e86||!_0xf6fe6f)return{'redos':[],'undos':[]};const _0x496c4c=this['_sparklineDataSourceModel'][_0x4ea42c(0xe9)](_0x2e12f5,_0x2e5e86);if(!_0x496c4c)return{'redos':[],'undos':[]};const _0x16d8ec=new Set(),_0x48de33={};for(const [_0x3dd2fb,_0x1cf32a]of _0x496c4c){const _0x4b492e='g_'+_0x462565(0x6);_0x16d8ec[_0x4ea42c(0x13d)](_0x3dd2fb),_0x48de33[_0x4b492e]={'config':_0x3e7a9c['deepClone'](_0x1cf32a[_0x4ea42c(0xa3)]),'sparklines':_0x3e7a9c[_0x4ea42c(0xa5)](_0x1cf32a['sparklines'][_0x4ea42c(0xa6)]())};}if(_0x16d8ec[_0x4ea42c(0xf6)])return{'redos':[{'id':V['id'],'params':{'unitId':_0x2e12f5,'subUnitId':_0xf6fe6f,'sparklineConfigMap':_0x48de33}}],'undos':[{'id':y['id'],'params':{'unitId':_0x2e12f5,'subUnitId':_0xf6fe6f,'groupIds':Array['from'](_0x16d8ec),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Re=zt([Ee(0x0,_0x4e801a(_0x365c9a)),Ee(0x1,_0x4e801a(_0x1b0c00)),Ee(0x2,_0x4e801a(x))],Re);var Xt=Object['getOwnPropertyDescriptor'],Jt=(_0x2c26ae,_0x9b82f5,_0x454ecf,_0x5b4790)=>{for(var _0x4b21a2=_0x5b4790>0x1?void 0x0:_0x5b4790?Xt(_0x9b82f5,_0x454ecf):_0x9b82f5,_0x192f17=_0x2c26ae['length']-0x1,_0x2a7841;_0x192f17>=0x0;_0x192f17--)(_0x2a7841=_0x2c26ae[_0x192f17])&&(_0x4b21a2=_0x2a7841(_0x4b21a2)||_0x4b21a2);return _0x4b21a2;},Be=(_0x535171,_0x5d4a64)=>(_0x18b32e,_0x323ff4)=>_0x5d4a64(_0x18b32e,_0x323ff4,_0x535171);let ve=class extends _0x2fa4b9{constructor(_0x42764b,_0x2c3169){const _0x47de6d=_0xf597b3;super(),this[_0x47de6d(0x144)]=_0x42764b,this['_sparklineDataSourceModel']=_0x2c3169,this[_0x47de6d(0xde)]();}[_0xf597b3(0xde)](){const _0x2fc3ce=_0xf597b3,_0x11a4b1=_0x2187d0=>{const _0x1a22bc=_0x27ae,_0x2f2ef8=this[_0x1a22bc(0xcc)][_0x1a22bc(0x11b)](_0x2187d0);return _0x2f2ef8?JSON[_0x1a22bc(0x132)](_0x2f2ef8):'';},_0x38d696=_0x15ffd6=>_0x15ffd6?JSON[_0x2fc3ce(0x12a)](_0x15ffd6):{};this[_0x2fc3ce(0xd1)](this[_0x2fc3ce(0x144)]['registerPluginResource']({'toJson':_0x11a4b1,'parseJson':_0x38d696,'pluginName':Ke,'businesses':[_0x3a4645['UNIVER_SHEET']],'onLoad':(_0x222ff6,_0xfaa8ae)=>{const _0x26100a=_0x2fc3ce;this[_0x26100a(0xcc)][_0x26100a(0xa1)](_0xfaa8ae);},'onUnLoad':_0x18b836=>{const _0xba383c=_0x2fc3ce;this[_0xba383c(0xcc)][_0xba383c(0x101)](_0x18b836);}}));}};ve=Jt([Be(0x0,_0x4e801a(_0x8f661e)),Be(0x1,_0x4e801a(x))],ve);var Zt=Object[_0xf597b3(0x109)],Yt=Object[_0xf597b3(0xcd)],qt=(_0x1784b4,_0x1cc192,_0x4ab77a)=>_0x1cc192 in _0x1784b4?Zt(_0x1784b4,_0x1cc192,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ab77a}):_0x1784b4[_0x1cc192]=_0x4ab77a,Qt=(_0x3211dd,_0x3ca347,_0x564f47,_0x4f661d)=>{for(var _0x207bf9=_0x4f661d>0x1?void 0x0:_0x4f661d?Yt(_0x3ca347,_0x564f47):_0x3ca347,_0x179c6c=_0x3211dd['length']-0x1,_0x62f2cc;_0x179c6c>=0x0;_0x179c6c--)(_0x62f2cc=_0x3211dd[_0x179c6c])&&(_0x207bf9=_0x62f2cc(_0x207bf9)||_0x207bf9);return _0x207bf9;},We=(_0x4d46c7,_0x169246)=>(_0xeb50f,_0x31aed2)=>_0x169246(_0xeb50f,_0x31aed2,_0x4d46c7),Xe=(_0x379f74,_0x4ec380,_0x22c36f)=>qt(_0x379f74,typeof _0x4ec380!='symbol'?_0x4ec380+'':_0x4ec380,_0x22c36f);let we=class extends _0xf3d5c2{constructor(_0xacca9f={},_0x48065f,_0x2a088a){const _0x2c2725=_0xf597b3;super(),this[_0x2c2725(0x14a)]=_0xacca9f,this['_injector']=_0x48065f,this['_commandService']=_0x2a088a,this['_initDependencies'](),this[_0x2c2725(0xb6)]();}[_0xf597b3(0x126)](){const _0x2b6d58=_0xf597b3;[[x],[me],[_e],[ke],[Me],[Ce],[Re],[ve]][_0x2b6d58(0x139)](_0x32a7ba=>{const _0x3b833d=_0x2b6d58;this[_0x3b833d(0xfa)][_0x3b833d(0x13d)](_0x32a7ba);}),_0x2f8f06(this[_0x2b6d58(0xfa)],[[ve]]);}[_0xf597b3(0x100)](){const _0x4ab85d=_0xf597b3;_0x2f8f06(this[_0x4ab85d(0xfa)],[[me],[_e],[ke],[Me],[Ce],[Re]]);}[_0xf597b3(0xb6)](){const _0x57838=_0xf597b3;[Ot,V,xt,y,Ut,xe][_0x57838(0x139)](_0x54a094=>this['_commandService'][_0x57838(0x154)](_0x54a094));}};Xe(we,'pluginName',Ke),Xe(we,_0xf597b3(0xa4),_0x3a4645['UNIVER_SHEET']),we=Qt([_0xb964e6(_0x3d2c40),We(0x1,_0x4e801a(_0x5c157e)),We(0x2,_0x4e801a(_0x4db5c9))],we);export{Ot as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,xt as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,Ut as SetSheetSparklineCommand,xe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,Ve as SparklineExtremumTypeEnum,an as SparklinePointsNames,Ge as SparklineThemeMapping,ze as SparklineThemeTypeEnum,Et as SparklineTypeEnum,we as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};function _0x3f21(){const _0x42258c=['CONNECT_WITH_LINE','soft','extremumMax','zero_value','_getRefRangeMutationsByDeleteRows','startRow','sparklineAnchorMap','_refRangeService','startColumn','realDeleteValue','getValue','_sparklineDataSourceModel','getOwnPropertyDescriptor','MUTATION','ZERO_VALUE','_sheetSelectionService','disposeWithMe','keys','_univerInstanceService','sparklines','_ensureConfigMap','groupId','setValue','1227015QDWfOL','getSparklineCache','push','markersPoint','assign','sparklineModel','_initSnapshot','getSparklineById','changeDataSourceInfo','GROUP_EXTREMUM','subUnitId','intersects','next','u-connect','sheet.command.set-sparkline','CUSTOM_EXTREMUM','unitId','getSubUnitSparkline','removeColumns','moveColumns','removePartSparkline','559938HNcPsB','set','disposableCollection','every','refRangeHandle','getCell','from','delete','_sparklineModel','size','rgb(46,187,122)','_initExclusiveRangeChange','removeSparkline','_injector','rgb(49,106,246)','463988nEbMmf','connect_with_line','NORMAL','symbol','onReady','deleteUnit','highPoint','actualColumn','has','60kXbvzz','rgb(124,66,147)','lowPoint','setAlpha','defineProperty','getCurrentUnitForType','endColumn','subscribe','hasValue','UNIVER_SHEET','getUnitId','value','foreach','max','range','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','fresh','seriesColor','rgb(252,117,60)','row','removeRows','FRESH','toJSON','LINE_CHART','rgb(80,102,248)','column','getCellRaw','rgb(30,177,189)','161VXSCXP','updateSparklineExtraNum','_initCorrectRangeWithSparkline','exclusiveRangesChange$','_initMergeWithSparkline','_initDependencies','BOOLEAN','_sparklineAnchorMap','1AQvpRJ','parse','onCommandExecuted','clearSparklineCache','lastPoint','_ensureAnchorMatrix','_updateConfig$','PIE_CHART','setSparkline','stringify','toRgbString','COMMAND','remove','getSizeOf','_onRefRangeChange','getColVisible','forEach','standard','params','item','add','_initSheetChange','DISTINCTIVE','sheet.command.add-sparkline','MAX_SAFE_INTEGER','values','_initHideRowColWithSparkline','_resourceManagerService','2404524nsRmxw','NUMBER','rgb(248,190,21)','PROFIT_AND_LOSS_CHART','getMatrix','_config','1425655UeFGVV','SPACING','MIN_SAFE_INTEGER','interceptCommand','5VRCVxt','containHiddenCells','reBuildAnchorCache','addSparkline','SPECIALTY','registerCommand','508869DPqdUc','SELF_EXTREMUM','entries','rgb(236,100,169)','STANDARD','ranges','get','getCurrentSelections','152688FdGOPD','_exclusiveRangeService','length','u-spacing','SOFT','fromJSON','contains','config','type','deepClone','clone','custom','_initDataChangeListener','_initClearWithSparkline','distinctive','endRow','actualRow','firstPoint','rgb(244,104,249)','CUSTOM','min','nonNumShowAs','getSheetId','matrix','pushUndoRedo','getSparkline','_initRegisterCommand','map','BAR_CHART','forValue','getSheetBySheetId','rgb(54,78,244)','_commandService','number','sheet.command.remove-sparkline','_getRefRangeMutationsByDeleteCols','_sheetInterceptorService'];_0x3f21=function(){return _0x42258c;};return _0x3f21();}
|
|
1
|
+
const _0x1488ec=_0x1cf0;(function(_0x15880a,_0x4955c5){const _0x5f23cf=_0x1cf0,_0x21c269=_0x15880a();while(!![]){try{const _0x3a8285=-parseInt(_0x5f23cf(0x1f4))/0x1*(-parseInt(_0x5f23cf(0x1ff))/0x2)+parseInt(_0x5f23cf(0x211))/0x3*(parseInt(_0x5f23cf(0x1fa))/0x4)+-parseInt(_0x5f23cf(0x151))/0x5*(-parseInt(_0x5f23cf(0x1e9))/0x6)+-parseInt(_0x5f23cf(0x163))/0x7*(parseInt(_0x5f23cf(0x1c5))/0x8)+parseInt(_0x5f23cf(0x215))/0x9+parseInt(_0x5f23cf(0x1fc))/0xa+parseInt(_0x5f23cf(0x1fd))/0xb*(-parseInt(_0x5f23cf(0x1a4))/0xc);if(_0x3a8285===_0x4955c5)break;else _0x21c269['push'](_0x21c269['shift']());}catch(_0x47f78f){_0x21c269['push'](_0x21c269['shift']());}}}(_0x2a92,0xce39f));var qe=Object[_0x1488ec(0x1c1)],Qe=(_0x389555,_0x2c6191,_0x5dabdd)=>_0x2c6191 in _0x389555?qe(_0x389555,_0x2c6191,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dabdd}):_0x389555[_0x2c6191]=_0x5dabdd,re=(_0xf1825a,_0x1c3f6d,_0x3d439c)=>Qe(_0xf1825a,typeof _0x1c3f6d!=_0x1488ec(0x1b9)?_0x1c3f6d+'':_0x1c3f6d,_0x3d439c);import{ObjectMatrix as _0x1ad7d5,Inject as _0x198b99,IUniverInstanceService as _0x3c6e7c,Disposable as _0x6679b3,isValidRange as _0x4ef62f,CellValueType as _0x3506a8,ColorKit as _0x39ea73,CommandType as _0x253586,Range as _0x2f4394,IUndoRedoService as _0x2e44ca,generateRandomId as _0x4e40ec,ICommandService as _0x2cd540,Tools as _0x4da646,sequenceExecute as _0x11c623,Rectangle as _0x39cc3e,cellToRange as _0x5196d3,DisposableCollection as _0x3c510a,RANGE_TYPE as _0xe38960,UniverInstanceType as _0x48879a,IResourceManagerService as _0x3e3f76,DependentOn as _0x2b50de,Injector as _0x3d602b,Plugin as _0x440648,touchDependencies as _0x4df474}from'@univerjs/core';import{getSheetCommandTarget as _0x26b75a,SheetsSelectionsService as _0x5116da,SheetInterceptorService as _0x5ca745,ClearSelectionAllCommand as _0x3be2e0,IExclusiveRangeService as _0x352db2,SetRangeValuesMutation as _0x5abcab,ReorderRangeMutation as _0x2041ed,SetRowHiddenMutation as _0x2a0961,SetColHiddenMutation as _0x95244c,SetRowVisibleMutation as _0x3e3f8e,SetColVisibleMutation as _0x42de88,AddWorksheetMergeCommand as _0x23653d,RefRangeService as _0x35c7e5,SetWorksheetActivateCommand as _0x1b3f93,RemoveRowCommand as _0x5f5c22,RemoveColCommand as _0xf4ce59,adjustRangeOnMutation as _0x1b6eac,RemoveRowMutation as _0x133d29,RemoveColMutation as _0x106639,InsertColMutation as _0x5864b8,InsertRowMutation as _0x40d8bd,MoveColsMutation as _0x3826e1,MoveRowsMutation as _0x1e47ac,MoveRangeMutation as _0x3ff915,RemoveSheetCommand as _0x798696,CopySheetCommand as _0x4897c3}from'@univerjs/sheets';import{Subject as _0xdd91be}from'rxjs';import{UniverLicensePlugin as _0x2849e7}from'@univerjs-pro/license';function _0x2a92(){const _0x51aded=['startColumn','14628519WpwXRf','ZERO_VALUE','registerPluginResource','5795IJWWhd','spacing','standard','get','endRow','CONNECT_WITH_LINE','CUSTOM','getSheetBySheetId','_exclusiveRangeService','getSubUnitSparkline','range','subscribe','_initDataChangeListener','getActiveSheet','setSparkline','intersects','rgb(252,117,60)','_initRegisterCommand','7yRLFAk','endColumn','getSparklineCache','row','actualRow','rgb(54,78,244)','FORCE_STRING','extremumMax','fromJSON','u-connect','getCell','specialty','sheet.mutation.remove-sparkline','startRow','_getRefRangeMutationsByDeleteCols','_sparklineDataSourceModel','removeRows','next','MAX_SAFE_INTEGER','UNIVER_SHEET','sheet.mutation.add-sparkline','rgb(248,190,21)','negativePoint','extremumMin','setAlpha','highPoint','forEach','pushUndoRedo','STRING','custom','forValue','_ensureConfigMap','hasValue','getSizeOf','_univerInstanceService','min','dispose','rgb(49,106,246)','rgb(80,102,248)','_initClearWithSparkline','SPECIALTY','sparklineAnchorMap','_refRangeService','_getRefRangeMutationsByDeleteRows','remove','SPACING','getColVisible','toRgbString','getOwnPropertyDescriptor','getCellRaw','sparklines','PIE_CHART','addSparkline','rgb(236,100,169)','NORMAL','getMatrix','realDeleteValue','FRESH','lowPoint','type','_commandService','config','setValue','_sparklineModel','asObservable','276iAYfQr','foreach','soft','_config','stringify','actualColumn','MUTATION','themeType','keys','deepClone','getSparklineById','toJSON','clearSparklineCache','_initSnapshot','deleteUnit','add','clone','firstPoint','ranges','DISTINCTIVE','interceptCommand','symbol','has','column','SOFT','COMMAND','_resourceManagerService','push','u-spacing','defineProperty','getCurrentSelections','containHiddenCells','assign','11390024qwTkxj','matrix','NUMBER','CUSTOM_EXTREMUM','params','subUnitId','SHEET_SPARKLINE_PLUGIN','removePartSparkline','values','some','_initSheetChange','MIN_SAFE_INTEGER','delete','disposableCollection','removeColumns','length','reBuildAnchorCache','connect_with_line','size','_injector','_sparklineAnchorMap','_initHideRowColWithSparkline','rgb(244,104,249)','groupId','_sheetSelectionService','getSparkline','pluginName','sheet.mutation.set-sparkline','LINE_CHART','_initCorrectRangeWithSparkline','number','_updateConfig$','registerRefRange','rgb(124,66,147)','removeSparkline','_ensureAnchorMatrix','3462NVCNdc','PROFIT_AND_LOSS_CHART','SELF_EXTREMUM','_initDependencies','getRowVisible','from','_onRefRangeChange','every','nonNumShowAs','moveColumns','seriesColor','1488427wNHccW','entries','contains','refRangeHandle','getSheetId','rgb(46,187,122)','4fpnnYj','sparklineModel','590260LWLGFK','1428614mzOpeT','sheet.command.set-sparkline','2iCdruU','item','map','distinctive','onCommandExecuted','disposeWithMe','registerCommand','max','unitId','set','markersPoint','getValue','BOOLEAN','BAR_CHART','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','moveRows','_sheetInterceptorService','updateSparklineExtraNum','4241913hdfclD','getCurrentUnitOfType','GROUP_EXTREMUM'];_0x2a92=function(){return _0x51aded;};return _0x2a92();}function ze(_0x2526dc,_0x408003){const _0x1f5001=_0x1488ec,_0x108349=new _0x1ad7d5(),_0x5507ff=[],_0x15e825=_0x2526dc[_0x1f5001(0x1d4)]>0x1;let _0xeb5352=0x0,_0x299f02=0x0;for(const _0x176332 of _0x2526dc)_0xeb5352+=_0x176332[_0x1f5001(0x155)]-_0x176332['startRow']+0x1,_0x299f02+=_0x176332['endColumn']-_0x176332[_0x1f5001(0x214)]+0x1;for(const _0x32313d of _0x408003)for(let _0x3af8fe=_0x32313d['startRow'];_0x3af8fe<=_0x32313d['endRow'];_0x3af8fe++)for(let _0x355986=_0x32313d[_0x1f5001(0x214)];_0x355986<=_0x32313d[_0x1f5001(0x164)];_0x355986++)_0x5507ff[_0x1f5001(0x1bf)]({'row':_0x3af8fe,'column':_0x355986});if(_0x5507ff[_0x1f5001(0x1d4)]===_0xeb5352)_0x15e825?_0x5507ff[_0x1f5001(0x17d)]((_0x4bc5c9,_0x5e2f35)=>{const _0x1c558e=_0x1f5001,_0x10d9ff=_0x2526dc[_0x5e2f35],_0x1c2392={'startRow':_0x10d9ff[_0x1c558e(0x170)],'startColumn':_0x10d9ff[_0x1c558e(0x214)],'endRow':_0x10d9ff[_0x1c558e(0x170)],'endColumn':_0x10d9ff[_0x1c558e(0x164)]};_0x108349[_0x1c558e(0x1a1)](_0x4bc5c9[_0x1c558e(0x166)],_0x4bc5c9[_0x1c558e(0x1bb)],_0x1c2392);}):_0x5507ff[_0x1f5001(0x17d)]((_0x1ed6de,_0x567785)=>{const _0x1e5640=_0x1f5001,_0x5ce898=_0x2526dc[0x0],_0x4a5a79={'startRow':_0x5ce898['startRow']+_0x567785,'startColumn':_0x5ce898[_0x1e5640(0x214)],'endRow':_0x5ce898[_0x1e5640(0x170)]+_0x567785,'endColumn':_0x5ce898[_0x1e5640(0x164)]};_0x108349[_0x1e5640(0x1a1)](_0x1ed6de[_0x1e5640(0x166)],_0x1ed6de[_0x1e5640(0x1bb)],_0x4a5a79);});else{if(_0x5507ff['length']===_0x299f02)_0x15e825?_0x5507ff[_0x1f5001(0x17d)]((_0x1fbb67,_0x10d9a5)=>{const _0x12f4a8=_0x1f5001,_0x11da6a=_0x2526dc[_0x10d9a5],_0x43c5ce={'startRow':_0x11da6a[_0x12f4a8(0x170)],'startColumn':_0x11da6a[_0x12f4a8(0x214)],'endRow':_0x11da6a[_0x12f4a8(0x155)],'endColumn':_0x11da6a[_0x12f4a8(0x214)]};_0x108349[_0x12f4a8(0x1a1)](_0x1fbb67[_0x12f4a8(0x166)],_0x1fbb67['column'],_0x43c5ce);}):_0x5507ff['forEach']((_0x4bb677,_0xd243ff)=>{const _0x4b8dab=_0x1f5001,_0x18ea54=_0x2526dc[0x0],_0x7cdb69={'startRow':_0x18ea54[_0x4b8dab(0x170)],'startColumn':_0x18ea54[_0x4b8dab(0x214)]+_0xd243ff,'endRow':_0x18ea54['endRow'],'endColumn':_0x18ea54[_0x4b8dab(0x214)]+_0xd243ff};_0x108349[_0x4b8dab(0x1a1)](_0x4bb677[_0x4b8dab(0x166)],_0x4bb677[_0x4b8dab(0x1bb)],_0x7cdb69);});else{if(_0x5507ff['length']===_0x2526dc['length'])_0x2526dc[_0x1f5001(0x1f0)](_0xf123eb=>!(_0xf123eb[_0x1f5001(0x170)]!==_0xf123eb[_0x1f5001(0x155)]&&_0xf123eb[_0x1f5001(0x214)]!==_0xf123eb[_0x1f5001(0x164)]))&&_0x5507ff[_0x1f5001(0x17d)]((_0x4e5517,_0x42915c)=>{const _0x6a1e23=_0x1f5001,_0x158a40=_0x2526dc[_0x42915c];_0x108349[_0x6a1e23(0x1a1)](_0x4e5517[_0x6a1e23(0x166)],_0x4e5517[_0x6a1e23(0x1bb)],_0x158a40);});else throw new Error(_0x1f5001(0x20d));}}return _0x108349;}function _0x1cf0(_0x305fd5,_0x229617){_0x305fd5=_0x305fd5-0x14f;const _0x2a9238=_0x2a92();let _0x1cf0f=_0x2a9238[_0x305fd5];return _0x1cf0f;}const Fe=_0x1488ec(0x1cb),Ge={'standard':[_0x1488ec(0x168),_0x1488ec(0x198)],'specialty':[_0x1488ec(0x188),'rgb(30,177,189)'],'distinctive':[_0x1488ec(0x1e6),_0x1488ec(0x161)],'soft':[_0x1488ec(0x189),_0x1488ec(0x1db)],'fresh':[_0x1488ec(0x1f9),_0x1488ec(0x178)]},an=[_0x1488ec(0x17c),_0x1488ec(0x1b5),'lastPoint',_0x1488ec(0x19d),_0x1488ec(0x179),_0x1488ec(0x209)];var Ke=(_0x34ba85=>(_0x34ba85['STANDARD']=_0x1488ec(0x153),_0x34ba85[_0x1488ec(0x18b)]=_0x1488ec(0x16e),_0x34ba85[_0x1488ec(0x1b7)]=_0x1488ec(0x202),_0x34ba85[_0x1488ec(0x1bc)]=_0x1488ec(0x1a6),_0x34ba85[_0x1488ec(0x19c)]='fresh',_0x34ba85[_0x1488ec(0x157)]=_0x1488ec(0x180),_0x34ba85))(Ke||{}),Et=(_0x225347=>(_0x225347[_0x225347[_0x1488ec(0x1e1)]=0x1]=_0x1488ec(0x1e1),_0x225347[_0x225347[_0x1488ec(0x20c)]=0x2]=_0x1488ec(0x20c),_0x225347[_0x225347[_0x1488ec(0x1ea)]=0x3]='PROFIT_AND_LOSS_CHART',_0x225347[_0x225347[_0x1488ec(0x196)]=0x4]=_0x1488ec(0x196),_0x225347))(Et||{}),J=(_0x11c1a1=>(_0x11c1a1[_0x1488ec(0x190)]=_0x1488ec(0x152),_0x11c1a1[_0x1488ec(0x14f)]='zero_value',_0x11c1a1[_0x1488ec(0x156)]=_0x1488ec(0x1d6),_0x11c1a1))(J||{}),Ve=(_0x48c911=>(_0x48c911[_0x48c911[_0x1488ec(0x1eb)]=0x1]=_0x1488ec(0x1eb),_0x48c911[_0x48c911['GROUP_EXTREMUM']=0x2]=_0x1488ec(0x213),_0x48c911[_0x48c911[_0x1488ec(0x1c8)]=0x3]='CUSTOM_EXTREMUM',_0x48c911))(Ve||{}),Vt=Object[_0x1488ec(0x193)],yt=(_0x39ea20,_0x4f8884,_0x522ed4,_0x28b1b8)=>{const _0x149eb3=_0x1488ec;for(var _0x440b16=_0x28b1b8>0x1?void 0x0:_0x28b1b8?Vt(_0x4f8884,_0x522ed4):_0x4f8884,_0x14ddc0=_0x39ea20[_0x149eb3(0x1d4)]-0x1,_0x68dc52;_0x14ddc0>=0x0;_0x14ddc0--)(_0x68dc52=_0x39ea20[_0x14ddc0])&&(_0x440b16=_0x68dc52(_0x440b16)||_0x440b16);return _0x440b16;},Ot=(_0x576489,_0xcecb16)=>(_0x2d4a69,_0x1ce73f)=>_0xcecb16(_0x2d4a69,_0x1ce73f,_0x576489);let x=class extends _0x6679b3{constructor(_0x4bb914){const _0x525bb7=_0x1488ec;super(),re(this,_0x525bb7(0x1a2),new Map()),re(this,_0x525bb7(0x1d9),new Map()),re(this,'_updateConfig$',new _0xdd91be()),re(this,'updateConfig$',this['_updateConfig$'][_0x525bb7(0x1a3)]()),this[_0x525bb7(0x185)]=_0x4bb914;}[_0x1488ec(0x182)](_0x143db1,_0x13d41f){const _0x423cca=_0x1488ec;let _0x2de281=this[_0x423cca(0x1a2)][_0x423cca(0x154)](_0x143db1);_0x2de281||(_0x2de281=new Map(),this[_0x423cca(0x1a2)][_0x423cca(0x208)](_0x143db1,_0x2de281));let _0x173d80=_0x2de281[_0x423cca(0x154)](_0x13d41f);return _0x173d80||(_0x173d80=new Map(),_0x2de281[_0x423cca(0x208)](_0x13d41f,_0x173d80)),_0x173d80;}[_0x1488ec(0x1e8)](_0x31fd5c,_0x1ca528){const _0x3cfd08=_0x1488ec;let _0x3260d1=this[_0x3cfd08(0x1d9)]['get'](_0x31fd5c);_0x3260d1||(_0x3260d1=new Map(),this[_0x3cfd08(0x1d9)][_0x3cfd08(0x208)](_0x31fd5c,_0x3260d1));let _0x1cf8c8=_0x3260d1[_0x3cfd08(0x154)](_0x1ca528);return _0x1cf8c8||(_0x1cf8c8={'matrix':new _0x1ad7d5(),'extra':{}},_0x3260d1[_0x3cfd08(0x208)](_0x1ca528,_0x1cf8c8)),_0x1cf8c8;}[_0x1488ec(0x210)](_0xb7fe37,_0x2ffe85,_0x19002e,_0xdc987a=_0x1488ec(0x208)){const _0xd466f4=_0x1488ec;var _0xdbd5f2,_0x3031c2,_0x26273c,_0x4536cf,_0xa3fcb7,_0x3b64bf,_0x214883,_0x4429f0,_0x5ab2a9,_0xd9f510,_0x1ba860,_0x3990c4,_0xf42681;const _0x30f11d=(_0x3031c2=(_0xdbd5f2=this[_0xd466f4(0x1a2)]['get'](_0xb7fe37))==null?void 0x0:_0xdbd5f2[_0xd466f4(0x154)](_0x2ffe85))==null?void 0x0:_0x3031c2[_0xd466f4(0x154)](_0x19002e);if(!_0x30f11d)return;const _0x4acca9=_0x26b75a(this[_0xd466f4(0x185)],{'unitId':_0xb7fe37,'subUnitId':_0x2ffe85});if(!_0x4acca9)return;const _0x24e274=this[_0xd466f4(0x1e8)](_0xb7fe37,_0x2ffe85),{extra:_0x20dc66,matrix:_0x4772d1}=_0x24e274,{worksheet:_0x18c39e}=_0x4acca9;let _0x463a46=Number[_0xd466f4(0x1d0)],_0x266fe1=Number[_0xd466f4(0x175)];const _0x277d9d=(_0x26273c=_0x30f11d[_0xd466f4(0x1a0)][_0xd466f4(0x1c3)])!=null?_0x26273c:!0x1;_0x30f11d[_0xd466f4(0x195)][_0xd466f4(0x181)]((_0x26dbd8,_0x27efa8,_0x3b2769)=>{const _0x43a538=_0xd466f4;var _0x303b96,_0xd77feb,_0x1c0a0f;const _0x4e7ef6=_0x3b2769;let _0x339d31=Number[_0x43a538(0x1d0)],_0x2e8d4f=Number[_0x43a538(0x175)],_0x22b9dd=0x0,_0x5edc19=0x0;const _0x31d6e5=[];if(!_0x4ef62f(_0x4e7ef6))_0x4772d1['setValue'](_0x26dbd8,_0x27efa8,{'groupId':_0x19002e,'data':[],'max':_0x339d31,'min':_0x2e8d4f,'highIndex':_0x22b9dd,'lowIndex':_0x5edc19,'negativeIndexes':_0x31d6e5});else{const _0x5de5c2=[];for(let _0x305591=_0x4e7ef6['startRow'];_0x305591<=_0x4e7ef6['endRow'];_0x305591++){for(let _0x5272fc=_0x4e7ef6[_0x43a538(0x214)];_0x5272fc<=_0x4e7ef6['endColumn'];_0x5272fc++){const _0x3c1e63=_0x18c39e[_0x43a538(0x1ed)](_0x305591),_0x476a90=_0x18c39e[_0x43a538(0x191)](_0x5272fc);if(!_0x277d9d&&(!_0x3c1e63||!_0x476a90))continue;let _0x2a14a4=0x0;const _0x45d0d2=((_0x303b96=_0x18c39e[_0x43a538(0x194)](_0x305591,_0x5272fc))==null?void 0x0:_0x303b96['v'])!==void 0x0?_0x18c39e[_0x43a538(0x194)](_0x305591,_0x5272fc):_0x18c39e[_0x43a538(0x16d)](_0x305591,_0x5272fc);if(!_0x45d0d2||_0x45d0d2['v']===void 0x0||_0x45d0d2['v']===null){const _0x2481e9=(_0xd77feb=_0x30f11d[_0x43a538(0x1a0)]['emptyShowAs'])!=null?_0xd77feb:J[_0x43a538(0x190)];_0x2481e9===J[_0x43a538(0x14f)]?_0x2a14a4=0x0:_0x2481e9===J[_0x43a538(0x190)]?_0x2a14a4=_0x43a538(0x1c0):_0x2481e9===J[_0x43a538(0x156)]&&(_0x2a14a4=_0x43a538(0x16c));}else{if(_0x45d0d2['t']===_0x3506a8[_0x43a538(0x17f)]||_0x45d0d2['t']===_0x3506a8[_0x43a538(0x169)]){const _0x5c7ae9=(_0x1c0a0f=_0x30f11d['config'][_0x43a538(0x1f1)])!=null?_0x1c0a0f:J[_0x43a538(0x190)];_0x5c7ae9===J[_0x43a538(0x14f)]?_0x2a14a4=0x0:_0x5c7ae9===J[_0x43a538(0x190)]?_0x2a14a4=_0x43a538(0x1c0):_0x5c7ae9===J['CONNECT_WITH_LINE']&&(_0x2a14a4=_0x43a538(0x16c));}else _0x45d0d2['t']===_0x3506a8[_0x43a538(0x20b)]?_0x2a14a4=_0x45d0d2['v']?0x1:0x0:_0x45d0d2['t']===_0x3506a8[_0x43a538(0x1c7)]?_0x2a14a4=Number(_0x45d0d2['v']):_0x2a14a4=_0x45d0d2['v'];}if(_0x5de5c2[_0x43a538(0x1bf)](_0x2a14a4),typeof _0x2a14a4==_0x43a538(0x1e3)){_0x339d31=Math[_0x43a538(0x206)](_0x339d31,_0x2a14a4),_0x463a46=Math[_0x43a538(0x206)](_0x463a46,_0x2a14a4),_0x266fe1=Math[_0x43a538(0x186)](_0x266fe1,_0x2a14a4),_0x2e8d4f=Math[_0x43a538(0x186)](_0x2e8d4f,_0x2a14a4);const _0x308596=typeof _0x5de5c2[_0x22b9dd]==_0x43a538(0x1e3)?Number(_0x5de5c2[_0x22b9dd]):Number[_0x43a538(0x1d0)];_0x2a14a4>_0x308596&&(_0x22b9dd=_0x5de5c2['length']-0x1);const _0x4b09c3=typeof _0x5de5c2[_0x5edc19]==_0x43a538(0x1e3)?Number(_0x5de5c2[_0x5edc19]):Number[_0x43a538(0x175)];_0x2a14a4<_0x4b09c3&&(_0x5edc19=_0x5de5c2['length']-0x1),_0x2a14a4<0x0&&_0x31d6e5[_0x43a538(0x1bf)](_0x5de5c2[_0x43a538(0x1d4)]-0x1);}}_0x4772d1[_0x43a538(0x1a1)](_0x26dbd8,_0x27efa8,{'groupId':_0x19002e,'data':_0x5de5c2,'max':_0x339d31,'min':_0x2e8d4f,'highIndex':_0x22b9dd,'lowIndex':_0x5edc19,'negativeIndexes':_0x31d6e5});}}});let _0x5e29d8=_0x463a46;((_0x4536cf=_0x30f11d[_0xd466f4(0x1a0)][_0xd466f4(0x16a)])==null?void 0x0:_0x4536cf[_0xd466f4(0x19e)])===Ve[_0xd466f4(0x1c8)]&&(_0x5e29d8=(_0x3b64bf=(_0xa3fcb7=_0x30f11d[_0xd466f4(0x1a0)]['extremumMax'])==null?void 0x0:_0xa3fcb7['value'])!=null?_0x3b64bf:_0x463a46);let _0x59cfc6=_0x266fe1;((_0x214883=_0x30f11d['config']['extremumMin'])==null?void 0x0:_0x214883[_0xd466f4(0x19e)])===Ve[_0xd466f4(0x1c8)]&&(_0x59cfc6=(_0x5ab2a9=(_0x4429f0=_0x30f11d['config'][_0xd466f4(0x17a)])==null?void 0x0:_0x4429f0['value'])!=null?_0x5ab2a9:_0x266fe1);const _0x45a7e6=(_0xd9f510=_0x30f11d['config'][_0xd466f4(0x1ab)])!=null?_0xd9f510:Ke['STANDARD'],_0x314959=(_0xf42681=(_0x3990c4=_0x30f11d[_0xd466f4(0x1a0)][_0xd466f4(0x1f3)])!=null?_0x3990c4:(_0x1ba860=Ge[_0x45a7e6])==null?void 0x0:_0x1ba860[0x0])!=null?_0xf42681:Ge['standard'][0x0],_0x3648cf=new _0x39ea73(_0x314959),_0x4505b3=_0x3648cf[_0xd466f4(0x17b)](0.2)['toRgbString'](),_0xd57b82=_0x3648cf[_0xd466f4(0x17b)](0.05)[_0xd466f4(0x192)]();_0x20dc66[_0x19002e]={'groupMax':_0x463a46,'groupMin':_0x266fe1,'showMax':_0x5e29d8,'showMin':_0x59cfc6,'startGradient':_0x4505b3,'endGradient':_0xd57b82},this[_0xd466f4(0x1e4)]['next']({'unitId':_0xb7fe37,'subUnitId':_0x2ffe85,'groupId':_0x19002e,'config':_0x30f11d,'type':_0xdc987a});}[_0x1488ec(0x197)](_0x589d93,_0x41e138,_0x2e2d4d,_0x36a6bf){const _0x482146=_0x1488ec;this[_0x482146(0x182)](_0x589d93,_0x41e138)['set'](_0x2e2d4d,_0x36a6bf),this[_0x482146(0x210)](_0x589d93,_0x41e138,_0x2e2d4d,_0x482146(0x1b3));}[_0x1488ec(0x15f)](_0x279f8b,_0xd02c60,_0x58caec,_0x1de098){const _0x738883=_0x1488ec;var _0x751a22;const _0x497389=(_0x751a22=this[_0x738883(0x1a2)]['get'](_0x279f8b))==null?void 0x0:_0x751a22[_0x738883(0x154)](_0xd02c60);_0x58caec[_0x738883(0x17d)](_0x50bd7a=>{const _0x457572=_0x738883;_0x497389!=null&&_0x497389[_0x457572(0x1ba)](_0x50bd7a)&&(_0x497389[_0x457572(0x208)](_0x50bd7a,_0x1de098),this['updateSparklineExtraNum'](_0x279f8b,_0xd02c60,_0x50bd7a));});}['removeSparkline'](_0x4e9cfb,_0x561fd4,_0x306e3b){const _0x2fc696=_0x1488ec;var _0x22d19a,_0x15e70e;const _0x15a726=this[_0x2fc696(0x1a2)][_0x2fc696(0x154)](_0x4e9cfb);if(_0x15a726){const _0x521eb1=_0x15a726['get'](_0x561fd4);if(_0x521eb1){_0x521eb1[_0x2fc696(0x1d1)](_0x306e3b);const _0x42ac1f=(_0x22d19a=this['_sparklineAnchorMap'][_0x2fc696(0x154)](_0x4e9cfb))==null?void 0x0:_0x22d19a[_0x2fc696(0x154)](_0x561fd4);(_0x15e70e=_0x42ac1f==null?void 0x0:_0x42ac1f[_0x2fc696(0x1c6)])==null||_0x15e70e['forValue']((_0x563ff2,_0x1fd2bf,_0x4a9f06)=>{const _0x5c916a=_0x2fc696;(_0x4a9f06==null?void 0x0:_0x4a9f06[_0x5c916a(0x1dc)])===_0x306e3b&&(_0x42ac1f==null||_0x42ac1f[_0x5c916a(0x1c6)]['realDeleteValue'](_0x563ff2,_0x1fd2bf));}),this[_0x2fc696(0x1e4)][_0x2fc696(0x174)]({'unitId':_0x4e9cfb,'subUnitId':_0x561fd4,'groupId':_0x306e3b,'type':_0x2fc696(0x18f)}),_0x521eb1[_0x2fc696(0x1d7)]===0x0&&_0x15a726['delete'](_0x561fd4);}}}[_0x1488ec(0x1cc)](_0x463000,_0x3b463f,_0x5841f2,_0x483c71){const _0x36edc7=_0x1488ec;var _0x3d57a7,_0x27a545,_0x20dd1f,_0x2b515d;const _0x182583=(_0x3d57a7=this[_0x36edc7(0x1d9)]['get'](_0x463000))==null?void 0x0:_0x3d57a7[_0x36edc7(0x154)](_0x3b463f),_0x1c2d6a=_0x182583==null?void 0x0:_0x182583[_0x36edc7(0x1c6)][_0x36edc7(0x20a)](_0x5841f2,_0x483c71);if(_0x1c2d6a){const {groupId:_0x887e8e}=_0x1c2d6a,_0xcd90aa=(_0x27a545=this[_0x36edc7(0x1a2)][_0x36edc7(0x154)](_0x463000))==null?void 0x0:_0x27a545[_0x36edc7(0x154)](_0x3b463f);(_0x20dd1f=_0xcd90aa==null?void 0x0:_0xcd90aa[_0x36edc7(0x154)](_0x887e8e))==null||_0x20dd1f[_0x36edc7(0x195)][_0x36edc7(0x19b)](_0x5841f2,_0x483c71),(_0x2b515d=_0xcd90aa==null?void 0x0:_0xcd90aa[_0x36edc7(0x154)](_0x887e8e))!=null&&_0x2b515d[_0x36edc7(0x195)][_0x36edc7(0x183)]()||_0xcd90aa==null||_0xcd90aa[_0x36edc7(0x1d1)](_0x887e8e),_0x182583==null||_0x182583[_0x36edc7(0x1c6)][_0x36edc7(0x19b)](_0x5841f2,_0x483c71),this[_0x36edc7(0x1e4)][_0x36edc7(0x174)]({'unitId':_0x463000,'subUnitId':_0x3b463f,'groupId':_0x887e8e,'type':'remove'});}}['clearSparklineCache'](_0x38e481,_0x5c0b39,_0x2bd8ff){const _0x4ad4de=_0x1488ec;var _0x21e96d,_0x4d7e02,_0x1bbc2d,_0x158757;const _0x1d8386=(_0x1bbc2d=(_0x4d7e02=(_0x21e96d=this['_sparklineModel'][_0x4ad4de(0x154)](_0x38e481))==null?void 0x0:_0x21e96d[_0x4ad4de(0x154)](_0x5c0b39))==null?void 0x0:_0x4d7e02[_0x4ad4de(0x154)](_0x2bd8ff))==null?void 0x0:_0x1bbc2d[_0x4ad4de(0x195)],_0x5828cd=(_0x158757=this['_sparklineAnchorMap'][_0x4ad4de(0x154)](_0x38e481))==null?void 0x0:_0x158757[_0x4ad4de(0x154)](_0x5c0b39);if(_0x1d8386&&_0x5828cd){const {matrix:_0x9d0323,extra:_0xbce73a}=_0x5828cd;_0x1d8386[_0x4ad4de(0x181)]((_0x4e3339,_0x4f6f40,_0x432d77)=>{const _0x2ff510=_0x4ad4de;_0x9d0323[_0x2ff510(0x19b)](_0x4e3339,_0x4f6f40);}),delete _0xbce73a[_0x2bd8ff];}}['getSubUnitSparkline'](_0x874532,_0x48395f){const _0x3725e9=_0x1488ec;var _0x36a18b;return(_0x36a18b=this['_sparklineModel'][_0x3725e9(0x154)](_0x874532))==null?void 0x0:_0x36a18b['get'](_0x48395f);}[_0x1488ec(0x1ae)](_0x376ced,_0x1fbaff,_0x3d6278){const _0xa34374=_0x1488ec;var _0x5c69a9,_0xe72c07;return(_0xe72c07=(_0x5c69a9=this[_0xa34374(0x1a2)]['get'](_0x376ced))==null?void 0x0:_0x5c69a9['get'](_0x1fbaff))==null?void 0x0:_0xe72c07[_0xa34374(0x154)](_0x3d6278);}[_0x1488ec(0x1de)](_0x1b14ad,_0x379174,_0x43e2c4,_0x420bad){const _0x44c699=_0x1488ec;var _0x566447,_0x485383,_0x483b57;return(_0x483b57=(_0x485383=(_0x566447=this[_0x44c699(0x1d9)][_0x44c699(0x154)](_0x1b14ad))==null?void 0x0:_0x566447[_0x44c699(0x154)](_0x379174))==null?void 0x0:_0x485383[_0x44c699(0x1c6)]['getValue'](_0x43e2c4,_0x420bad))==null?void 0x0:_0x483b57[_0x44c699(0x1dc)];}['reBuildAnchorCache'](_0x3a195b,_0x62175d){const _0x9b4068=_0x1488ec;var _0x1a7a8c;const _0x5b8e9f=this['_ensureAnchorMatrix'](_0x3a195b,_0x62175d);_0x5b8e9f['matrix']['forValue']((_0x387557,_0x912db)=>{const _0x417ae9=_0x1cf0;_0x5b8e9f[_0x417ae9(0x1c6)][_0x417ae9(0x19b)](_0x387557,_0x912db);});const _0x1645e1=(_0x1a7a8c=this[_0x9b4068(0x1a2)][_0x9b4068(0x154)](_0x3a195b))==null?void 0x0:_0x1a7a8c['get'](_0x62175d);if(_0x1645e1){for(const [_0xec164c]of _0x1645e1)this[_0x9b4068(0x210)](_0x3a195b,_0x62175d,_0xec164c);}}[_0x1488ec(0x165)](){const _0x45599f=_0x1488ec;return{'sparklineModel':this['_sparklineModel'],'sparklineAnchorMap':this[_0x45599f(0x1d9)]};}['toJSON'](_0xe3ce2b){const _0x147ace=_0x1488ec,_0xcb8965={};if(this[_0x147ace(0x1a2)]['has'](_0xe3ce2b)){_0xcb8965[_0xe3ce2b]={};const _0x4c89c0=this['_sparklineModel'][_0x147ace(0x154)](_0xe3ce2b);_0x4c89c0!=null&&_0x4c89c0[_0x147ace(0x1d7)]&&Array[_0x147ace(0x1ee)](_0x4c89c0[_0x147ace(0x1ac)]())['forEach'](_0x28a3db=>{const _0x1d7c9c=_0x147ace;_0xcb8965[_0xe3ce2b][_0x28a3db]={};const _0x34fa58=_0x4c89c0[_0x1d7c9c(0x154)](_0x28a3db);_0x34fa58!=null&&_0x34fa58[_0x1d7c9c(0x1d7)]&&Array[_0x1d7c9c(0x1ee)](_0x34fa58['keys']())[_0x1d7c9c(0x17d)](_0xb49f11=>{const _0x52e3cd=_0x1d7c9c,_0x3db47c=_0x34fa58[_0x52e3cd(0x154)](_0xb49f11);_0x3db47c&&(_0xcb8965[_0xe3ce2b][_0x28a3db][_0xb49f11]={'config':_0x3db47c[_0x52e3cd(0x1a0)],'sparklines':_0x3db47c[_0x52e3cd(0x195)][_0x52e3cd(0x19a)]()});});});}return _0xcb8965;}[_0x1488ec(0x16b)](_0x2440fd){const _0x3d0b8b=_0x1488ec;if(!_0x2440fd)return;Object[_0x3d0b8b(0x1ac)](_0x2440fd)[_0x3d0b8b(0x17d)](_0x56d8a2=>{const _0x42b7ae=_0x3d0b8b,_0x24832c=_0x2440fd[_0x56d8a2];_0x24832c&&Object['keys'](_0x24832c)[_0x42b7ae(0x17d)](_0x12f503=>{const _0x774d50=_0x42b7ae,_0x535eef=_0x24832c[_0x12f503];_0x535eef&&Object[_0x774d50(0x1ac)](_0x535eef)['forEach'](_0x521db3=>{const _0x152f29=_0x774d50,_0xc6ae49=_0x535eef[_0x521db3];if(_0xc6ae49){const _0x2ece3a={'config':_0xc6ae49[_0x152f29(0x1a0)],'sparklines':new _0x1ad7d5(_0xc6ae49['sparklines'])};this[_0x152f29(0x197)](_0x56d8a2,_0x12f503,_0x521db3,_0x2ece3a);}});});});}[_0x1488ec(0x1b2)](_0x372db6){const _0x40848d=_0x1488ec,_0x19ed57=this[_0x40848d(0x1a2)]['get'](_0x372db6);if(_0x19ed57){for(const [_0x324434]of _0x19ed57){const _0x349e05=_0x19ed57[_0x40848d(0x154)](_0x324434);if(_0x349e05){for(const [_0x48bf79]of _0x349e05)this[_0x40848d(0x1b0)](_0x372db6,_0x324434,_0x48bf79);}}this[_0x40848d(0x1a2)]['delete'](_0x372db6);}}};x=yt([Ot(0x0,_0x198b99(_0x3c6e7c))],x);const V={'id':_0x1488ec(0x177),'type':_0x253586[_0x1488ec(0x1aa)],'handler':(_0x166b26,_0x16f115)=>{const _0x5df5fb=_0x1488ec;if(!_0x16f115)return!0x1;const {sparklineConfigMap:_0x4c5ba3,unitId:_0x2e9457,subUnitId:_0x12088e}=_0x16f115,_0x28eaea=_0x166b26[_0x5df5fb(0x154)](x);return Object['entries'](_0x4c5ba3)[_0x5df5fb(0x17d)](([_0x2b0610,_0x2328f7])=>{const _0x4041d4=_0x5df5fb,_0x4f8631={'config':_0x2328f7[_0x4041d4(0x1a0)],'sparklines':new _0x1ad7d5(_0x2328f7[_0x4041d4(0x195)])};_0x28eaea[_0x4041d4(0x197)](_0x2e9457,_0x12088e,_0x2b0610,_0x4f8631);}),!0x0;}},y={'id':_0x1488ec(0x16f),'type':_0x253586[_0x1488ec(0x1aa)],'handler':(_0x2685b6,_0x5429a3)=>{const _0x5e2bcd=_0x1488ec;if(!_0x5429a3)return!0x1;const {unitId:_0x1d21da,subUnitId:_0x5f321,ranges:_0x29668e,isSingle:_0x3a0068,groupIds:_0x440838}=_0x5429a3,_0x2cbfa1=_0x2685b6[_0x5e2bcd(0x154)](x);return _0x440838?(_0x440838[_0x5e2bcd(0x17d)](_0x2556b0=>{const _0x59faa6=_0x5e2bcd;_0x2cbfa1[_0x59faa6(0x1e7)](_0x1d21da,_0x5f321,_0x2556b0);}),!0x0):_0x29668e?(_0x29668e['forEach'](_0x16a245=>{const _0x546cda=_0x5e2bcd;_0x2f4394[_0x546cda(0x1a5)](_0x16a245,(_0x49f1d2,_0x5608b8)=>{const _0xc47378=_0x546cda,_0x30220f=_0x2cbfa1[_0xc47378(0x1de)](_0x1d21da,_0x5f321,_0x49f1d2,_0x5608b8);_0x30220f&&(_0x3a0068?_0x2cbfa1['removePartSparkline'](_0x1d21da,_0x5f321,_0x49f1d2,_0x5608b8):_0x2cbfa1[_0xc47378(0x1e7)](_0x1d21da,_0x5f321,_0x30220f));});}),!0x0):!0x1;}},Nt={'id':'sheet.command.add-sparkline','type':_0x253586[_0x1488ec(0x1bd)],'handler':(_0x5d21f8,_0x476ab6)=>{const _0x54b5d0=_0x1488ec;if(!_0x476ab6)return!0x1;const {sourceRanges:_0x4ad399,targetRanges:_0x596f93,config:_0x47f87b}=_0x476ab6,_0x53d001=_0x5d21f8[_0x54b5d0(0x154)](_0x2e44ca),_0x4f1abf='g_'+_0x4e40ec(0x6),_0xeb179e=ze(_0x4ad399,_0x596f93),_0x4cef0b={'config':_0x47f87b!=null?_0x47f87b:{},'sparklines':_0xeb179e['getMatrix']()},_0x3bedf3=_0x5d21f8[_0x54b5d0(0x154)](_0x3c6e7c),_0x45f67b=_0x5d21f8[_0x54b5d0(0x154)](x),_0x4e75a6=_0x26b75a(_0x3bedf3);if(!_0x4e75a6)return!0x1;const {unitId:_0x56d735,subUnitId:_0x484456}=_0x4e75a6,_0x1dfd80=_0x5d21f8[_0x54b5d0(0x154)](_0x2cd540),_0x420439=[],_0x4a6725=[],_0x577ac4={},_0x4293e5={},_0x58769f=new Set([_0x4f1abf]);_0xeb179e[_0x54b5d0(0x181)]((_0x4a7255,_0x39d774,_0x16e3e3)=>{const _0x377cfa=_0x54b5d0,_0x15e4ce=_0x45f67b['getSparkline'](_0x56d735,_0x484456,_0x4a7255,_0x39d774);if(_0x15e4ce){const _0x5f510b=_0x45f67b['getSparklineById'](_0x56d735,_0x484456,_0x15e4ce);if(_0x5f510b){_0x58769f[_0x377cfa(0x1b3)](_0x15e4ce);let _0x4210c9=_0x577ac4[_0x15e4ce],_0xacfe71=_0x4293e5[_0x15e4ce];_0xacfe71||(_0xacfe71={'config':_0x4da646[_0x377cfa(0x1ad)](_0x5f510b[_0x377cfa(0x1a0)]),'sparklines':new _0x1ad7d5(_0x5f510b[_0x377cfa(0x195)]['clone']())},_0x4293e5[_0x15e4ce]=_0xacfe71),_0x4210c9||(_0x4210c9={'config':_0x4da646[_0x377cfa(0x1ad)](_0x5f510b[_0x377cfa(0x1a0)]),'sparklines':_0x5f510b['sparklines'][_0x377cfa(0x1b4)]()},_0x577ac4[_0x15e4ce]=_0x4210c9),_0xacfe71[_0x377cfa(0x195)][_0x377cfa(0x19b)](_0x4a7255,_0x39d774);}}});const _0x210a61={};return Object[_0x54b5d0(0x1f5)](_0x4293e5)[_0x54b5d0(0x17d)](([_0x2c995c,_0x225109])=>{const _0x342ebf=_0x54b5d0;_0x225109[_0x342ebf(0x195)]['getSizeOf']()&&(_0x210a61[_0x2c995c]={'config':_0x225109[_0x342ebf(0x1a0)],'sparklines':_0x225109[_0x342ebf(0x195)][_0x342ebf(0x1b4)]()});}),_0x210a61[_0x4f1abf]=_0x4cef0b,_0x420439[_0x54b5d0(0x1bf)]({'id':y['id'],'params':{'unitId':_0x56d735,'subUnitId':_0x484456,'groupIds':Array[_0x54b5d0(0x1ee)](_0x58769f),'isSingle':!0x1}}),_0x58769f['size']>0x1&&(_0x4a6725[_0x54b5d0(0x1bf)]({'id':y['id'],'params':{'unitId':_0x56d735,'subUnitId':_0x484456,'groupIds':Array['from'](_0x58769f),'isSingle':!0x1}}),_0x420439[_0x54b5d0(0x1bf)]({'id':V['id'],'params':{'unitId':_0x56d735,'subUnitId':_0x484456,'sparklineConfigMap':_0x577ac4}})),_0x4a6725[_0x54b5d0(0x1bf)]({'id':V['id'],'params':{'unitId':_0x56d735,'subUnitId':_0x484456,'sparklineConfigMap':_0x210a61}}),_0x11c623(_0x4a6725,_0x1dfd80),_0x53d001[_0x54b5d0(0x17e)]({'unitID':_0x56d735,'undoMutations':_0x420439,'redoMutations':_0x4a6725}),!0x0;}},xt={'id':'sheet.command.remove-sparkline','type':_0x253586['COMMAND'],'handler':(_0x330054,_0x44c92a)=>{const _0x2a3352=_0x1488ec;var _0x38f208;const {isSingle:_0x169712=!0x0}=_0x44c92a||{},_0x5de186=_0x330054[_0x2a3352(0x154)](_0x2cd540),_0x260c6c=_0x330054[_0x2a3352(0x154)](_0x3c6e7c),_0x5d4601=_0x330054[_0x2a3352(0x154)](x),_0x28759f=_0x330054[_0x2a3352(0x154)](_0x2e44ca),_0x3cd44b=_0x26b75a(_0x260c6c);if(!_0x3cd44b)return!0x1;const _0x3fb560=_0x330054[_0x2a3352(0x154)](_0x5116da),_0x3bab8b=(_0x38f208=_0x44c92a==null?void 0x0:_0x44c92a[_0x2a3352(0x1b6)])!=null?_0x38f208:_0x3fb560['getCurrentSelections']()[_0x2a3352(0x201)](_0x1b65af=>_0x1b65af['range']),{unitId:_0x489f0b,subUnitId:_0x34bb42}=_0x3cd44b,_0x52601b=[],_0x29d82c=[];_0x52601b[_0x2a3352(0x1bf)]({'id':y['id'],'params':{'unitId':_0x489f0b,'subUnitId':_0x34bb42,'ranges':_0x3bab8b,'isSingle':_0x169712}});const _0x5412c5=[],_0xb5dc88={};return _0x3bab8b[_0x2a3352(0x17d)](_0x39ac0b=>{const _0x53f9a4=_0x2a3352;_0x2f4394[_0x53f9a4(0x1a5)](_0x39ac0b,(_0x3a52f9,_0xf0b625)=>{const _0x2c5a9f=_0x53f9a4,_0x34dc6e=_0x5d4601[_0x2c5a9f(0x1de)](_0x489f0b,_0x34bb42,_0x3a52f9,_0xf0b625);if(_0x34dc6e){const _0x4aaa89=_0x5d4601[_0x2c5a9f(0x1ae)](_0x489f0b,_0x34bb42,_0x34dc6e);_0x4aaa89&&(_0x5412c5[_0x2c5a9f(0x1bf)](_0x34dc6e),_0xb5dc88[_0x34dc6e]={'config':_0x4da646[_0x2c5a9f(0x1ad)](_0x4aaa89[_0x2c5a9f(0x1a0)]),'sparklines':_0x4da646[_0x2c5a9f(0x1ad)](_0x4aaa89[_0x2c5a9f(0x195)][_0x2c5a9f(0x1b4)]())});}});}),_0x29d82c[_0x2a3352(0x1bf)]({'id':y['id'],'params':{'unitId':_0x489f0b,'subUnitId':_0x34bb42,'groupIds':_0x5412c5,'isSingle':!0x1}}),_0x29d82c[_0x2a3352(0x1bf)]({'id':V['id'],'params':{'unitId':_0x489f0b,'subUnitId':_0x34bb42,'sparklineConfigMap':_0xb5dc88}}),_0x11c623(_0x52601b,_0x5de186),_0x28759f['pushUndoRedo']({'unitID':_0x489f0b,'undoMutations':_0x29d82c,'redoMutations':_0x52601b}),!0x0;}},xe={'id':_0x1488ec(0x1e0),'type':_0x253586[_0x1488ec(0x1aa)],'handler':(_0x574f14,_0x5320e1)=>{const _0x2ede34=_0x1488ec;if(!_0x5320e1)return!0x1;const {unitId:_0x434d13,subUnitId:_0x29c61f,groupIds:_0x27747d,config:_0x155f86}=_0x5320e1,_0x285230=_0x574f14[_0x2ede34(0x154)](x);return _0x27747d['forEach'](_0x4dfb24=>{const _0x1acb11=_0x2ede34,_0x208794=_0x285230[_0x1acb11(0x1ae)](_0x434d13,_0x29c61f,_0x4dfb24);if(_0x208794){const _0x52b394={'config':Object[_0x1acb11(0x1c4)]({},_0x208794['config'],_0x155f86[_0x1acb11(0x1a0)]),'sparklines':new _0x1ad7d5(_0x208794[_0x1acb11(0x195)][_0x1acb11(0x1b4)]())};_0x285230[_0x1acb11(0x15f)](_0x434d13,_0x29c61f,[_0x4dfb24],_0x52b394);}}),!0x0;}},Ut={'id':_0x1488ec(0x1fe),'type':_0x253586[_0x1488ec(0x1bd)],'handler':(_0xd21892,_0x5e832c)=>{const _0x197f63=_0x1488ec;var _0x25926c,_0x36d42e,_0x5b061f,_0x503bde;if(!_0x5e832c)return!0x1;const _0x5340a5=_0xd21892[_0x197f63(0x154)](_0x2cd540),_0x12de11=_0xd21892['get'](_0x5116da),_0x28df95=_0xd21892['get'](x),_0x2a79d4=_0xd21892[_0x197f63(0x154)](_0x3c6e7c),_0x4c0359=_0xd21892['get'](_0x2e44ca),_0x518b46=_0x26b75a(_0x2a79d4);if(!_0x518b46)return!0x1;const {unitId:_0x5d26cd,subUnitId:_0x5ca90e}=_0x518b46,_0x2c95c8=(_0x25926c=_0x5e832c==null?void 0x0:_0x5e832c[_0x197f63(0x1b6)])!=null?_0x25926c:_0x12de11[_0x197f63(0x1c2)]()[_0x197f63(0x201)](_0x531529=>_0x531529[_0x197f63(0x15b)]),_0x1de163=(_0x36d42e=_0x28df95['getSparklineCache']()[_0x197f63(0x18c)][_0x197f63(0x154)](_0x5d26cd))==null?void 0x0:_0x36d42e[_0x197f63(0x154)](_0x5ca90e),{isChangeDataSource:_0x3643ab,config:_0x563343,combine:_0x352f01,unCombine:_0x3adfea}=_0x5e832c;if(_0x352f01){const _0x1c6431=[],_0xdf4ca6=[];_0x1c6431['push']({'id':y['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'ranges':_0x2c95c8,'isSingle':!0x0}});const _0x178d66='g_'+_0x4e40ec(0x6),_0x5bf630=new _0x1ad7d5(),_0x206b76=(_0x5b061f=_0x28df95[_0x197f63(0x165)]()[_0x197f63(0x1fb)][_0x197f63(0x154)](_0x5d26cd))==null?void 0x0:_0x5b061f[_0x197f63(0x154)](_0x5ca90e),_0x2e1a8b=new Set([_0x178d66]),_0x563b1a={};return _0x2c95c8[_0x197f63(0x17d)](_0x33233d=>{const _0x450514=_0x197f63;var _0x595932,_0x15f939;const {startRow:_0x1ce741,endRow:_0x4219eb,startColumn:_0xf3fc29,endColumn:_0xdfbcb8}=_0x33233d;for(let _0x42529a=_0x1ce741;_0x42529a<=_0x4219eb;_0x42529a++)for(let _0x50628d=_0xf3fc29;_0x50628d<=_0xdfbcb8;_0x50628d++){const _0x47f156=(_0x595932=_0x1de163==null?void 0x0:_0x1de163['matrix'][_0x450514(0x20a)](_0x42529a,_0x50628d))==null?void 0x0:_0x595932['groupId'];if(_0x47f156){_0x2e1a8b[_0x450514(0x1b3)](_0x47f156);const _0x51c339=_0x28df95[_0x450514(0x1ae)](_0x5d26cd,_0x5ca90e,_0x47f156);_0x51c339&&(_0x563b1a[_0x47f156]={'config':_0x4da646['deepClone'](_0x51c339['config']),'sparklines':_0x4da646[_0x450514(0x1ad)](_0x51c339['sparklines'][_0x450514(0x1b4)]())});const _0x53a539=(_0x15f939=_0x206b76==null?void 0x0:_0x206b76[_0x450514(0x154)](_0x47f156))==null?void 0x0:_0x15f939[_0x450514(0x195)][_0x450514(0x20a)](_0x42529a,_0x50628d);_0x53a539&&_0x5bf630[_0x450514(0x1a1)](_0x42529a,_0x50628d,_0x53a539);}}}),_0x1c6431['push']({'id':V['id'],'params':{'sparklineConfigMap':{[_0x178d66]:{'config':_0x4da646[_0x197f63(0x1ad)](_0x563343['config']),'sparklines':_0x5bf630[_0x197f63(0x19a)]()}},'unitId':_0x5d26cd,'subUnitId':_0x5ca90e}}),_0xdf4ca6[_0x197f63(0x1bf)]({'id':y['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'isSingle':!0x1,'groupIds':Array['from'](_0x2e1a8b)}}),_0xdf4ca6['push']({'id':V['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'sparklineConfigMap':_0x563b1a}}),_0x11c623(_0x1c6431,_0x5340a5),_0x4c0359['pushUndoRedo']({'unitID':_0x5d26cd,'undoMutations':_0xdf4ca6,'redoMutations':_0x1c6431}),!0x0;}else{if(_0x3adfea){const _0xbf48b4=[],_0x350f02=[];_0xbf48b4[_0x197f63(0x1bf)]({'id':y['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'ranges':_0x2c95c8,'isSingle':!0x0}});const _0x5aae8c=(_0x503bde=_0x28df95[_0x197f63(0x165)]()[_0x197f63(0x1fb)][_0x197f63(0x154)](_0x5d26cd))==null?void 0x0:_0x503bde['get'](_0x5ca90e),_0x19e6f1={},_0x5c5d53=new Set(),_0x4a5172={};return _0x2c95c8[_0x197f63(0x17d)](_0x109ff7=>{const _0x5f50f1=_0x197f63;var _0x43bad,_0x878841;const {startRow:_0x55d0e8,endRow:_0x3e893b,startColumn:_0x27e665,endColumn:_0xe1647e}=_0x109ff7;for(let _0x22e81b=_0x55d0e8;_0x22e81b<=_0x3e893b;_0x22e81b++)for(let _0x217bcb=_0x27e665;_0x217bcb<=_0xe1647e;_0x217bcb++){const _0x4375a0=(_0x43bad=_0x1de163==null?void 0x0:_0x1de163[_0x5f50f1(0x1c6)][_0x5f50f1(0x20a)](_0x22e81b,_0x217bcb))==null?void 0x0:_0x43bad[_0x5f50f1(0x1dc)];if(_0x4375a0){const _0x2a428c=new _0x1ad7d5(),_0x591345='g_'+_0x4e40ec(0x6);_0x5c5d53[_0x5f50f1(0x1b3)](_0x4375a0),_0x5c5d53[_0x5f50f1(0x1b3)](_0x591345);const _0x25e8b5=_0x28df95[_0x5f50f1(0x1ae)](_0x5d26cd,_0x5ca90e,_0x4375a0);_0x25e8b5&&(_0x4a5172[_0x4375a0]={'config':_0x4da646[_0x5f50f1(0x1ad)](_0x25e8b5['config']),'sparklines':_0x4da646[_0x5f50f1(0x1ad)](_0x25e8b5['sparklines']['clone']())});const _0x5103ee=(_0x878841=_0x5aae8c==null?void 0x0:_0x5aae8c['get'](_0x4375a0))==null?void 0x0:_0x878841['sparklines'][_0x5f50f1(0x20a)](_0x22e81b,_0x217bcb);_0x5103ee&&_0x2a428c[_0x5f50f1(0x1a1)](_0x22e81b,_0x217bcb,_0x5103ee),_0x19e6f1[_0x591345]={'sparklines':_0x2a428c[_0x5f50f1(0x19a)](),'config':_0x4da646['deepClone'](_0x563343[_0x5f50f1(0x1a0)])};}}}),_0xbf48b4[_0x197f63(0x1bf)]({'id':V['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'sparklineConfigMap':_0x19e6f1}}),_0x350f02['push']({'id':y['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'isSingle':!0x1,'groupIds':Array['from'](_0x5c5d53)}}),_0x350f02[_0x197f63(0x1bf)]({'id':V['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'sparklineConfigMap':_0x4a5172}}),_0x11c623(_0xbf48b4,_0x5340a5),_0x4c0359[_0x197f63(0x17e)]({'unitID':_0x5d26cd,'undoMutations':_0x350f02,'redoMutations':_0xbf48b4}),!0x0;}}if(_0x3643ab){const _0x4f02ad=_0x5e832c['changeDataSourceInfo'];if(!_0x4f02ad)return!0x1;const {groupId:_0x158ded,sourceRanges:_0x535045,targetRanges:_0xca5777,resetType:_0x43ce91,primary:_0x382ffb}=_0x4f02ad,_0x3dfde1=[],_0x40d3cd=[];_0x3dfde1[_0x197f63(0x1bf)]({'id':y['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'ranges':_0x2c95c8,'isSingle':!0x1,'groupIds':[_0x158ded]}}),_0x40d3cd[_0x197f63(0x1bf)]({'id':y['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'ranges':_0x2c95c8,'isSingle':!0x1,'groupIds':[_0x158ded]}});let _0x2ad296;_0x43ce91===_0x197f63(0x200)?(_0x2ad296=new _0x1ad7d5(_0x563343[_0x197f63(0x195)][_0x197f63(0x1b4)]()),_0x2ad296[_0x197f63(0x19b)](_0x382ffb[_0x197f63(0x167)],_0x382ffb[_0x197f63(0x1a9)]),_0x2ad296['setValue'](_0xca5777[0x0]['startRow'],_0xca5777[0x0][_0x197f63(0x214)],_0x535045[0x0])):_0x2ad296=ze(_0x535045,_0xca5777);const _0x2bb3cd={'config':_0x4da646[_0x197f63(0x1ad)](_0x563343[_0x197f63(0x1a0)]),'sparklines':_0x2ad296['getMatrix']()},_0x39640c={'config':_0x4da646[_0x197f63(0x1ad)](_0x563343['config']),'sparklines':_0x4da646['deepClone'](_0x563343[_0x197f63(0x195)][_0x197f63(0x1b4)]())};_0x3dfde1[_0x197f63(0x1bf)]({'id':V['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'sparklineConfigMap':{[_0x158ded]:_0x2bb3cd}}}),_0x40d3cd[_0x197f63(0x1bf)]({'id':V['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'sparklineConfigMap':{[_0x158ded]:_0x39640c}}}),_0x11c623(_0x3dfde1,_0x5340a5),_0x4c0359['pushUndoRedo']({'unitID':_0x5d26cd,'undoMutations':_0x40d3cd,'redoMutations':_0x3dfde1});}else{const _0x95fa80=[],_0x32f2d8=[],_0x2b2227=new Set(),_0x296220={};_0x2c95c8['forEach'](_0x29c9e9=>{const _0x441908=_0x197f63;var _0x51a6e1;const {startRow:_0x377e60,endRow:_0xdf32b7,startColumn:_0x26ac7e,endColumn:_0x2cb9c7}=_0x29c9e9;for(let _0x366201=_0x377e60;_0x366201<=_0xdf32b7;_0x366201++)for(let _0x5c2f07=_0x26ac7e;_0x5c2f07<=_0x2cb9c7;_0x5c2f07++){const _0x51c8dd=(_0x51a6e1=_0x1de163==null?void 0x0:_0x1de163[_0x441908(0x1c6)][_0x441908(0x20a)](_0x366201,_0x5c2f07))==null?void 0x0:_0x51a6e1['groupId'];if(_0x51c8dd){_0x2b2227[_0x441908(0x1b3)](_0x51c8dd);const _0x1274ad=_0x28df95[_0x441908(0x1ae)](_0x5d26cd,_0x5ca90e,_0x51c8dd);_0x1274ad&&(_0x296220[_0x51c8dd]={'config':_0x4da646[_0x441908(0x1ad)](_0x1274ad[_0x441908(0x1a0)]),'sparklines':_0x4da646[_0x441908(0x1ad)](_0x1274ad[_0x441908(0x195)][_0x441908(0x1b4)]())});}}}),_0x32f2d8[_0x197f63(0x1bf)]({'id':xe['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'groupIds':Array['from'](_0x2b2227),'config':{'config':_0x4da646[_0x197f63(0x1ad)](_0x563343[_0x197f63(0x1a0)]),'sparklines':_0x563343[_0x197f63(0x195)][_0x197f63(0x19a)]()}}}),_0x95fa80[_0x197f63(0x1bf)]({'id':y['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'isSingle':!0x1,'groupIds':Array[_0x197f63(0x1ee)](_0x2b2227)}}),_0x95fa80[_0x197f63(0x1bf)]({'id':V['id'],'params':{'unitId':_0x5d26cd,'subUnitId':_0x5ca90e,'sparklineConfigMap':_0x296220}}),_0x11c623(_0x32f2d8,_0x5340a5),_0x4c0359['pushUndoRedo']({'unitID':_0x5d26cd,'undoMutations':_0x95fa80,'redoMutations':_0x32f2d8});}return!0x0;}};var Pt=Object[_0x1488ec(0x193)],Tt=(_0x2e784a,_0x1d993d,_0x478049,_0x8fc3fe)=>{const _0x5661d=_0x1488ec;for(var _0x5d6420=_0x8fc3fe>0x1?void 0x0:_0x8fc3fe?Pt(_0x1d993d,_0x478049):_0x1d993d,_0xc6889a=_0x2e784a[_0x5661d(0x1d4)]-0x1,_0x35befc;_0xc6889a>=0x0;_0xc6889a--)(_0x35befc=_0x2e784a[_0xc6889a])&&(_0x5d6420=_0x35befc(_0x5d6420)||_0x5d6420);return _0x5d6420;},ge=(_0x499588,_0x5985d3)=>(_0x1cdc9c,_0x3b91db)=>_0x5985d3(_0x1cdc9c,_0x3b91db,_0x499588);let ke=class extends _0x6679b3{constructor(_0x660c59,_0x130b5a,_0x1b6d30,_0x89bfc0){const _0x2f52ec=_0x1488ec;super(),this['_sparklineDataSourceModel']=_0x660c59,this['_sheetInterceptorService']=_0x130b5a,this[_0x2f52ec(0x185)]=_0x1b6d30,this['_sheetSelectionService']=_0x89bfc0,this[_0x2f52ec(0x18a)]();}[_0x1488ec(0x18a)](){const _0xce8e14=_0x1488ec;this['disposeWithMe'](this['_sheetInterceptorService'][_0xce8e14(0x1b8)]({'getMutations':_0x2b2994=>{const _0xa6d2f9=_0xce8e14,_0x3e269e=[],_0x4d534c=[];if(_0x2b2994['id']===_0x3be2e0['id']){const _0x2a9fd7=_0x26b75a(this[_0xa6d2f9(0x185)],_0x2b2994[_0xa6d2f9(0x1c9)]);if(!_0x2a9fd7)return{'redos':_0x3e269e,'undos':_0x4d534c};const {unitId:_0x5040fd,subUnitId:_0x9fafc1}=_0x2a9fd7,_0x36ae48=this[_0xa6d2f9(0x1dd)][_0xa6d2f9(0x1c2)]()[_0xa6d2f9(0x201)](_0x38a8a6=>_0x38a8a6[_0xa6d2f9(0x15b)]),_0x47cc87=new Set(),_0x172e70={},_0x467f7d={};_0x36ae48[_0xa6d2f9(0x17d)](_0xcfb535=>{const _0xeb0855=_0xa6d2f9;_0x2f4394[_0xeb0855(0x1a5)](_0xcfb535,(_0x1c6210,_0xa55feb)=>{const _0x1baa42=_0xeb0855,_0x1b6b90=this[_0x1baa42(0x172)]['getSparkline'](_0x5040fd,_0x9fafc1,_0x1c6210,_0xa55feb);if(_0x1b6b90&&!_0x47cc87[_0x1baa42(0x1ba)](_0x1b6b90)){const _0x43035c=this['_sparklineDataSourceModel']['getSparklineById'](_0x5040fd,_0x9fafc1,_0x1b6b90);_0x43035c&&(_0x47cc87[_0x1baa42(0x1b3)](_0x1b6b90),_0x172e70[_0x1b6b90]={'config':_0x4da646[_0x1baa42(0x1ad)](_0x43035c[_0x1baa42(0x1a0)]),'sparklines':_0x4da646[_0x1baa42(0x1ad)](_0x43035c[_0x1baa42(0x195)][_0x1baa42(0x1b4)]())},_0x467f7d[_0x1b6b90]={'config':_0x4da646[_0x1baa42(0x1ad)](_0x43035c[_0x1baa42(0x1a0)]),'sparklines':_0x4da646[_0x1baa42(0x1ad)](_0x43035c[_0x1baa42(0x195)]['clone']())});}});}),Object[_0xa6d2f9(0x1cd)](_0x467f7d)['forEach'](_0x10b8f4=>{const _0x3de666=_0x10b8f4['sparklines'];new _0x1ad7d5(_0x3de666)['forValue']((_0x506e5d,_0x535c53,_0xabe824)=>{const _0x26afdd=_0x1cf0;_0x36ae48[_0x26afdd(0x1ce)](_0x3afc0b=>_0x39cc3e['intersects'](_0x3afc0b,_0x5196d3(_0x506e5d,_0x535c53)))&&delete _0x3de666[_0x506e5d][_0x535c53];});}),_0x47cc87[_0xa6d2f9(0x1d7)]>0x0&&(_0x3e269e['push']({'id':y['id'],'params':{'unitId':_0x5040fd,'subUnitId':_0x9fafc1,'groupIds':Array[_0xa6d2f9(0x1ee)](_0x47cc87),'isSingle':!0x1}}),_0x4d534c[_0xa6d2f9(0x1bf)]({'id':y['id'],'params':{'unitId':_0x5040fd,'subUnitId':_0x9fafc1,'groupIds':Array[_0xa6d2f9(0x1ee)](_0x47cc87),'isSingle':!0x1}})),Object['keys'](_0x467f7d)[_0xa6d2f9(0x1d4)]>0x0&&_0x3e269e[_0xa6d2f9(0x1bf)]({'id':V['id'],'params':{'unitId':_0x5040fd,'subUnitId':_0x9fafc1,'sparklineConfigMap':_0x467f7d}}),Object[_0xa6d2f9(0x1ac)](_0x172e70)[_0xa6d2f9(0x1d4)]>0x0&&_0x4d534c[_0xa6d2f9(0x1bf)]({'id':V['id'],'params':{'unitId':_0x5040fd,'subUnitId':_0x9fafc1,'sparklineConfigMap':_0x172e70}});}return{'redos':_0x3e269e,'undos':_0x4d534c};}}));}};ke=Tt([ge(0x0,_0x198b99(x)),ge(0x1,_0x198b99(_0x5ca745)),ge(0x2,_0x198b99(_0x3c6e7c)),ge(0x3,_0x198b99(_0x5116da))],ke);var jt=Object[_0x1488ec(0x193)],$t=(_0x2269e6,_0x232251,_0x37425e,_0x3eee11)=>{const _0x42a844=_0x1488ec;for(var _0x4705ab=_0x3eee11>0x1?void 0x0:_0x3eee11?jt(_0x232251,_0x37425e):_0x232251,_0x3f8a5a=_0x2269e6[_0x42a844(0x1d4)]-0x1,_0x1e7ae9;_0x3f8a5a>=0x0;_0x3f8a5a--)(_0x1e7ae9=_0x2269e6[_0x3f8a5a])&&(_0x4705ab=_0x1e7ae9(_0x4705ab)||_0x4705ab);return _0x4705ab;},be=(_0xcdc921,_0x56e23a)=>(_0x8dca15,_0xf94a97)=>_0x56e23a(_0x8dca15,_0xf94a97,_0xcdc921);let me=class extends _0x6679b3{constructor(_0x4c0a0c,_0xc7bad0,_0x223a85){const _0x1fc739=_0x1488ec;super(),this['_commandService']=_0x4c0a0c,this[_0x1fc739(0x172)]=_0xc7bad0,this[_0x1fc739(0x159)]=_0x223a85,this[_0x1fc739(0x15d)](),this['_initExclusiveRangeChange']();}[_0x1488ec(0x15d)](){const _0x8634ca=_0x1488ec;this['disposeWithMe'](this[_0x8634ca(0x19f)][_0x8634ca(0x203)](_0x68120c=>{const _0x1f3392=_0x8634ca;if(_0x68120c['id']===_0x5abcab['id']){const _0xd914c7=_0x68120c[_0x1f3392(0x1c9)],{cellValue:_0x4f48e0,unitId:_0x248ee6,subUnitId:_0x4dd607}=_0xd914c7,_0x4c741c=new _0x1ad7d5(_0x4f48e0),_0x3db6bf=new Set(),_0x45e1a2=this[_0x1f3392(0x172)][_0x1f3392(0x15a)](_0x248ee6,_0x4dd607);if(!_0x45e1a2)return;const _0x26858d=Array['from'](_0x45e1a2);_0x4c741c[_0x1f3392(0x181)]((_0x3990cc,_0x432d32,_0xa5efab)=>{const _0x3f3ea3=_0x1f3392,_0x173d0c=_0x5196d3(_0x3990cc,_0x432d32);for(let _0x70dd05=0x0;_0x70dd05<_0x26858d['length'];_0x70dd05++){const [_0x132bb8,_0x2aa511]=_0x26858d[_0x70dd05],_0x1e4fbf=_0x3db6bf[_0x3f3ea3(0x1ba)](_0x132bb8);_0x1e4fbf||_0x2aa511[_0x3f3ea3(0x195)][_0x3f3ea3(0x181)]((_0xb7fd99,_0x430674,_0x426227)=>{const _0x371828=_0x3f3ea3,_0x3b279e=_0x426227;if(_0x3b279e&&!_0x1e4fbf&&_0x39cc3e[_0x371828(0x160)](_0x173d0c,_0x3b279e))return _0x3db6bf[_0x371828(0x1b3)](_0x132bb8),!0x0;});}}),_0x3db6bf[_0x1f3392(0x17d)](_0x450ed4=>{const _0x5b9fee=_0x1f3392;this['_sparklineDataSourceModel']['clearSparklineCache'](_0x248ee6,_0x4dd607,_0x450ed4),this[_0x5b9fee(0x172)][_0x5b9fee(0x210)](_0x248ee6,_0x4dd607,_0x450ed4);});}else{if(_0x68120c['id']===_0x2041ed['id']){const _0x416a10=_0x68120c[_0x1f3392(0x1c9)],{range:_0x1b8e77,unitId:_0x5ae3fa,subUnitId:_0x4b44ea}=_0x416a10,_0x131375=new Set(),_0x244c6d=this[_0x1f3392(0x172)][_0x1f3392(0x15a)](_0x5ae3fa,_0x4b44ea);if(!_0x244c6d)return;const _0x3c6dfa=Array['from'](_0x244c6d);for(let _0x186485=0x0;_0x186485<_0x3c6dfa[_0x1f3392(0x1d4)];_0x186485++){const [_0x384bef,_0x577510]=_0x3c6dfa[_0x186485],_0x3b4f3d=_0x131375['has'](_0x384bef);_0x3b4f3d||_0x577510['sparklines'][_0x1f3392(0x181)]((_0x1ad789,_0x3aea20,_0x340b14)=>{const _0x2adc34=_0x1f3392,_0x630552=_0x340b14;if(_0x630552&&!_0x3b4f3d&&_0x39cc3e[_0x2adc34(0x160)](_0x1b8e77,_0x630552))return _0x131375[_0x2adc34(0x1b3)](_0x384bef),!0x0;});}_0x131375['forEach'](_0x4c013b=>{const _0xb10272=_0x1f3392;this[_0xb10272(0x172)][_0xb10272(0x1b0)](_0x5ae3fa,_0x4b44ea,_0x4c013b),this[_0xb10272(0x172)][_0xb10272(0x210)](_0x5ae3fa,_0x4b44ea,_0x4c013b);});}}}));}['_initExclusiveRangeChange'](){const _0x4e01cf=_0x1488ec;this[_0x4e01cf(0x204)](this['_exclusiveRangeService']['exclusiveRangesChange$'][_0x4e01cf(0x15c)](_0x53b5ac=>{const _0xcb841e=_0x4e01cf,{unitId:_0x1b2a3e,subUnitId:_0x57a3c4,ranges:_0x162ca0}=_0x53b5ac,_0x14b887=this[_0xcb841e(0x172)][_0xcb841e(0x15a)](_0x1b2a3e,_0x57a3c4);if(!_0x14b887)return;const _0x44363a=Array[_0xcb841e(0x1ee)](_0x14b887),_0x32ca11=new Set();for(let _0x1e01f3=0x0;_0x1e01f3<_0x44363a[_0xcb841e(0x1d4)];_0x1e01f3++){const [_0x4334c4,_0x46bf6d]=_0x44363a[_0x1e01f3],_0x1707fa=_0x32ca11[_0xcb841e(0x1ba)](_0x4334c4);_0x1707fa||_0x46bf6d[_0xcb841e(0x195)][_0xcb841e(0x181)]((_0x39fe22,_0x17ef01,_0x335835)=>{const _0x1c188a=_0xcb841e,_0x40883f=_0x335835;if(_0x40883f&&!_0x1707fa){for(const _0x9b2522 of _0x162ca0)if(_0x39cc3e[_0x1c188a(0x160)](_0x9b2522,_0x40883f)){_0x32ca11[_0x1c188a(0x1b3)](_0x4334c4);break;}}});}_0x32ca11['forEach'](_0x917b74=>{const _0x46e505=_0xcb841e;this[_0x46e505(0x172)][_0x46e505(0x1b0)](_0x1b2a3e,_0x57a3c4,_0x917b74),this[_0x46e505(0x172)][_0x46e505(0x210)](_0x1b2a3e,_0x57a3c4,_0x917b74);});}));}};me=$t([be(0x0,_0x198b99(_0x2cd540)),be(0x1,_0x198b99(x)),be(0x2,_0x198b99(_0x352db2))],me);var Lt=Object['getOwnPropertyDescriptor'],Gt=(_0x5321da,_0x1c003a,_0x229069,_0x580bf4)=>{const _0x4fa585=_0x1488ec;for(var _0x2ef1a0=_0x580bf4>0x1?void 0x0:_0x580bf4?Lt(_0x1c003a,_0x229069):_0x1c003a,_0xd593ef=_0x5321da[_0x4fa585(0x1d4)]-0x1,_0x5a0b79;_0xd593ef>=0x0;_0xd593ef--)(_0x5a0b79=_0x5321da[_0xd593ef])&&(_0x2ef1a0=_0x5a0b79(_0x2ef1a0)||_0x2ef1a0);return _0x2ef1a0;},He=(_0x494db6,_0x4e84aa)=>(_0xd91710,_0xd49215)=>_0x4e84aa(_0xd91710,_0xd49215,_0x494db6);let Ce=class extends _0x6679b3{constructor(_0x2af076,_0x13c274){const _0x1d7df3=_0x1488ec;super(),this[_0x1d7df3(0x19f)]=_0x2af076,this['_sparklineDataSourceModel']=_0x13c274,this[_0x1d7df3(0x1da)]();}[_0x1488ec(0x1da)](){const _0x5afda0=_0x1488ec;this['_commandService'][_0x5afda0(0x203)](_0x4451ee=>{const _0x5bd0f9=_0x5afda0;if(_0x4451ee['id']===_0x2a0961['id']||_0x4451ee['id']===_0x95244c['id']||_0x4451ee['id']===_0x3e3f8e['id']||_0x4451ee['id']===_0x42de88['id']){const _0x26053e=_0x4451ee[_0x5bd0f9(0x1c9)],{ranges:_0x1b62c0,unitId:_0x209369,subUnitId:_0x4be8a2}=_0x26053e,_0x3daded=new Set(),_0x5e89b0=this[_0x5bd0f9(0x172)][_0x5bd0f9(0x15a)](_0x209369,_0x4be8a2);if(!_0x5e89b0)return;const _0x380976=Array['from'](_0x5e89b0);_0x1b62c0[_0x5bd0f9(0x17d)](_0x4972c5=>{const _0x1500dc=_0x5bd0f9;_0x2f4394[_0x1500dc(0x1a5)](_0x4972c5,(_0x1528c4,_0x401cd6)=>{const _0x2269f2=_0x1500dc,_0x15d10f=_0x5196d3(_0x1528c4,_0x401cd6);for(let _0x1384be=0x0;_0x1384be<_0x380976['length'];_0x1384be++){const [_0x513151,_0x668273]=_0x380976[_0x1384be],_0x489977=_0x3daded[_0x2269f2(0x1ba)](_0x513151);_0x489977||_0x668273[_0x2269f2(0x195)][_0x2269f2(0x181)]((_0x2ba309,_0x124209,_0x5f0a9d)=>{const _0x1bd6d8=_0x2269f2,_0x4690d1=_0x5f0a9d;if(_0x4690d1&&!_0x489977&&_0x39cc3e[_0x1bd6d8(0x160)](_0x15d10f,_0x4690d1))return _0x3daded[_0x1bd6d8(0x1b3)](_0x513151),!0x0;});}});}),_0x3daded['forEach'](_0x32ab01=>{const _0x2e2464=_0x5bd0f9;this['_sparklineDataSourceModel'][_0x2e2464(0x1b0)](_0x209369,_0x4be8a2,_0x32ab01),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x209369,_0x4be8a2,_0x32ab01);});}});}};Ce=Gt([He(0x0,_0x198b99(_0x2cd540)),He(0x1,_0x198b99(x))],Ce);var Ht=Object[_0x1488ec(0x193)],Bt=(_0x30141b,_0x5e4452,_0x2506e4,_0x14be65)=>{const _0x5160a9=_0x1488ec;for(var _0x1eca33=_0x14be65>0x1?void 0x0:_0x14be65?Ht(_0x5e4452,_0x2506e4):_0x5e4452,_0x8c905d=_0x30141b[_0x5160a9(0x1d4)]-0x1,_0x12b670;_0x8c905d>=0x0;_0x8c905d--)(_0x12b670=_0x30141b[_0x8c905d])&&(_0x1eca33=_0x12b670(_0x1eca33)||_0x1eca33);return _0x1eca33;},De=(_0x1a1b8f,_0x494bf6)=>(_0x5068d2,_0xa05054)=>_0x494bf6(_0x5068d2,_0xa05054,_0x1a1b8f);let _e=class extends _0x6679b3{constructor(_0x201f7d,_0x3a039b,_0x2c1ef5){const _0x19b612=_0x1488ec;super(),this['_commandService']=_0x201f7d,this[_0x19b612(0x20f)]=_0x3a039b,this['_sparklineDataSourceModel']=_0x2c1ef5,this['_initMergeWithSparkline']();}['_initMergeWithSparkline'](){const _0x39bbb6=_0x1488ec;this[_0x39bbb6(0x204)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x139756=>{const _0x45d56f=_0x39bbb6,_0x2285e8=[],_0x57fecd=[];if(_0x139756['id']===_0x23653d['id']){const _0x50f12c=_0x139756[_0x45d56f(0x1c9)];if(!_0x50f12c)return{'redos':_0x2285e8,'undos':_0x57fecd};const {unitId:_0x425399,subUnitId:_0x32e15b,ranges:_0x477631}=_0x50f12c,_0x168ec6=this[_0x45d56f(0x172)][_0x45d56f(0x15a)](_0x425399,_0x32e15b);if(!_0x168ec6)return{'redos':_0x2285e8,'undos':_0x57fecd};const _0x5f5baa={},_0x6292a7={},_0x270ef8=new Set();_0x477631[_0x45d56f(0x17d)](_0x424165=>{const _0x561139=_0x45d56f,_0x5e0041=_0x424165[_0x561139(0x170)],_0x353880=_0x424165['startColumn'];_0x2f4394[_0x561139(0x1a5)](_0x424165,(_0x1555f8,_0x4027f1)=>{const _0x4726bb=_0x561139,_0x320dcc=this[_0x4726bb(0x172)][_0x4726bb(0x1de)](_0x425399,_0x32e15b,_0x1555f8,_0x4027f1);if(_0x320dcc&&!(_0x1555f8===_0x5e0041&&_0x4027f1===_0x353880)){const _0x202986=this[_0x4726bb(0x172)][_0x4726bb(0x1ae)](_0x425399,_0x32e15b,_0x320dcc);if(_0x202986){_0x270ef8[_0x4726bb(0x1b3)](_0x320dcc);let _0x2b2d47=_0x5f5baa[_0x320dcc];_0x2b2d47||(_0x2b2d47={'config':_0x4da646['deepClone'](_0x202986[_0x4726bb(0x1a0)]),'sparklines':new _0x1ad7d5(_0x202986[_0x4726bb(0x195)][_0x4726bb(0x1b4)]())},_0x5f5baa[_0x320dcc]=_0x2b2d47),_0x2b2d47[_0x4726bb(0x195)]['realDeleteValue'](_0x1555f8,_0x4027f1),_0x6292a7[_0x320dcc]={'config':_0x4da646['deepClone'](_0x202986[_0x4726bb(0x1a0)]),'sparklines':_0x4da646['deepClone'](_0x202986[_0x4726bb(0x195)][_0x4726bb(0x1b4)]())};}}});});for(const [_0x1c73c5,_0x1ddaa2]of _0x168ec6){const _0x37357e=_0x1ddaa2[_0x45d56f(0x195)];_0x37357e[_0x45d56f(0x181)]((_0x228cc3,_0x27c3d1,_0x471d25)=>{const _0xd9f035=_0x45d56f;for(let _0x126034=0x0;_0x126034<_0x477631[_0xd9f035(0x1d4)];_0x126034++){const _0x3852f6=_0x477631[_0x126034];if(_0x39cc3e['contains'](_0x3852f6,_0x471d25)){_0x270ef8[_0xd9f035(0x1b3)](_0x1c73c5);let _0x3e1ba0=_0x5f5baa[_0x1c73c5];_0x3e1ba0||(_0x3e1ba0={'config':_0x4da646[_0xd9f035(0x1ad)](_0x1ddaa2['config']),'sparklines':new _0x1ad7d5(_0x37357e[_0xd9f035(0x1b4)]())},_0x5f5baa[_0x1c73c5]=_0x3e1ba0),_0x3e1ba0['sparklines'][_0xd9f035(0x19b)](_0x228cc3,_0x27c3d1),_0x6292a7[_0x1c73c5]||(_0x6292a7[_0x1c73c5]={'config':_0x4da646['deepClone'](_0x1ddaa2[_0xd9f035(0x1a0)]),'sparklines':_0x4da646[_0xd9f035(0x1ad)](_0x37357e['clone']())});}}});}const _0x314309={};Object[_0x45d56f(0x1f5)](_0x5f5baa)[_0x45d56f(0x17d)](([_0x1813e6,_0x150273])=>{const _0x37f059=_0x45d56f;_0x150273[_0x37f059(0x195)]['getSizeOf']()&&(_0x314309[_0x1813e6]={'config':_0x150273[_0x37f059(0x1a0)],'sparklines':_0x150273[_0x37f059(0x195)][_0x37f059(0x1b4)]()});}),_0x270ef8[_0x45d56f(0x1d7)]&&(_0x2285e8['push']({'id':y['id'],'params':{'unitId':_0x425399,'subUnitId':_0x32e15b,'groupIds':Array[_0x45d56f(0x1ee)](_0x270ef8),'isSingle':!0x1}}),_0x57fecd[_0x45d56f(0x1bf)]({'id':y['id'],'params':{'unitId':_0x425399,'subUnitId':_0x32e15b,'groupIds':Array['from'](_0x270ef8),'isSingle':!0x1}}),_0x2285e8[_0x45d56f(0x1bf)]({'id':V['id'],'params':{'unitId':_0x425399,'subUnitId':_0x32e15b,'sparklineConfigMap':_0x314309}}),_0x57fecd[_0x45d56f(0x1bf)]({'id':V['id'],'params':{'unitId':_0x425399,'subUnitId':_0x32e15b,'sparklineConfigMap':_0x6292a7}}));}return{'redos':_0x2285e8,'undos':_0x57fecd};}}));}};_e=Bt([De(0x0,_0x198b99(_0x2cd540)),De(0x1,_0x198b99(_0x5ca745)),De(0x2,_0x198b99(x))],_e);var Wt=Object[_0x1488ec(0x193)],zt=(_0x16a334,_0x55c96c,_0x1bc763,_0xbb5292)=>{const _0x5432fd=_0x1488ec;for(var _0x84a8c1=_0xbb5292>0x1?void 0x0:_0xbb5292?Wt(_0x55c96c,_0x1bc763):_0x55c96c,_0x75f954=_0x16a334[_0x5432fd(0x1d4)]-0x1,_0x4e53eb;_0x75f954>=0x0;_0x75f954--)(_0x4e53eb=_0x16a334[_0x75f954])&&(_0x84a8c1=_0x4e53eb(_0x84a8c1)||_0x84a8c1);return _0x84a8c1;},he=(_0x2e30ba,_0x536e6d)=>(_0x2342e4,_0x17295f)=>_0x536e6d(_0x2342e4,_0x17295f,_0x2e30ba);let Me=class extends _0x6679b3{constructor(_0x14cb6d,_0x252583,_0x45c40d,_0x32b828){const _0x3ff92a=_0x1488ec;super(),re(this,_0x3ff92a(0x1d2),new _0x3c510a()),(this[_0x3ff92a(0x19f)]=_0x14cb6d,this[_0x3ff92a(0x18d)]=_0x252583,this['_univerInstanceService']=_0x45c40d,this['_sparklineDataSourceModel']=_0x32b828,this['_onRefRangeChange'](),this[_0x3ff92a(0x1e2)]());}[_0x1488ec(0x1ef)](){const _0x199d4d=_0x1488ec,_0x5c4f03=(_0x1a2f3d,_0x5ccf66)=>{const _0x2ca657=_0x1cf0,_0x83b2a=this[_0x2ca657(0x185)]['getCurrentUnitForType'](_0x48879a[_0x2ca657(0x176)]);if(!_0x83b2a||!(_0x83b2a==null?void 0x0:_0x83b2a[_0x2ca657(0x158)](_0x5ccf66)))return;this[_0x2ca657(0x1d2)][_0x2ca657(0x187)]();const _0x129e44=_0x5a5feb=>this['refRangeHandle'](_0x5a5feb,_0x1a2f3d,_0x5ccf66),_0x26b345=[],_0x1dd218=this[_0x2ca657(0x172)][_0x2ca657(0x15a)](_0x1a2f3d,_0x5ccf66);if(_0x1dd218){for(const [_0x30e8e3,_0x381e0e]of _0x1dd218)_0x381e0e[_0x2ca657(0x195)]['forValue']((_0x1055ca,_0x586408,_0x29a2ae)=>{const _0x15d856=_0x2ca657,_0x1bd935=_0x5196d3(_0x1055ca,_0x586408);_0x26b345[_0x15d856(0x1bf)](_0x1bd935);});_0x26b345['forEach'](_0x365229=>{const _0x288dea=_0x2ca657;this[_0x288dea(0x1d2)][_0x288dea(0x1b3)](this[_0x288dea(0x18d)][_0x288dea(0x1e5)](_0x365229,_0x129e44,_0x1a2f3d,_0x5ccf66));});}};this[_0x199d4d(0x204)](this[_0x199d4d(0x19f)][_0x199d4d(0x203)](_0x5eb6e8=>{const _0x14c71b=_0x199d4d;if(_0x5eb6e8['id']===_0x1b3f93['id']){const _0x1e1044=_0x5eb6e8[_0x14c71b(0x1c9)],_0x73718c=_0x1e1044[_0x14c71b(0x1ca)],_0x37c5f3=_0x1e1044[_0x14c71b(0x207)];if(!_0x73718c||!_0x37c5f3)return;_0x5c4f03(_0x37c5f3,_0x73718c);}if(_0x5eb6e8['id']===xe['id']||_0x5eb6e8['id']===V['id']){const _0xd4cbd5=_0x5eb6e8[_0x14c71b(0x1c9)],_0x2d916f=_0xd4cbd5['subUnitId'],_0x33e7ef=_0xd4cbd5[_0x14c71b(0x207)];if(!_0x2d916f||!_0x33e7ef)return;_0x5c4f03(_0x33e7ef,_0x2d916f);}}));}[_0x1488ec(0x1f7)](_0x10207f,_0x2bc681,_0x12ff36){const _0xbabb79=_0x1488ec;switch(_0x10207f['id']){case _0xf4ce59['id']:return this[_0xbabb79(0x171)](_0x10207f['params'],_0x2bc681,_0x12ff36);case _0x5f5c22['id']:return this[_0xbabb79(0x18e)](_0x10207f[_0xbabb79(0x1c9)],_0x2bc681,_0x12ff36);}return{'redos':[],'undos':[]};}[_0x1488ec(0x18e)](_0xaa86f0,_0x59f21b,_0x5bc760){const _0x2e420d=_0x1488ec;var _0x4b1c11,_0x20add3;const {range:_0x2ff4be}=_0xaa86f0,_0x38b793=new Set(),_0x54d134={},_0x5e6d8a={},_0x3ee8c1=[],_0x1a74c5=[],_0x520ac3=[],_0x1c85a=[];if(!_0x26b75a(this[_0x2e420d(0x185)],{'unitId':_0x59f21b,'subUnitId':_0x5bc760}))return{'redos':_0x1a74c5,'undos':_0x3ee8c1};const _0x67e789=this['_sparklineDataSourceModel'][_0x2e420d(0x15a)](_0x59f21b,_0x5bc760);if(!_0x67e789)return{'redos':_0x1a74c5,'undos':_0x3ee8c1};if(!((_0x20add3=(_0x4b1c11=this['_sparklineDataSourceModel'][_0x2e420d(0x165)]()[_0x2e420d(0x18c)][_0x2e420d(0x154)](_0x59f21b))==null?void 0x0:_0x4b1c11['get'](_0x5bc760))==null?void 0x0:_0x20add3[_0x2e420d(0x1c6)]))return{'redos':_0x1a74c5,'undos':_0x3ee8c1};for(const [_0x21fea9,_0x290d44]of _0x67e789){const _0x4eeee8=_0x290d44['sparklines'];_0x4eeee8['forValue']((_0x9fdf01,_0x832fbe,_0x2a848b)=>{const _0x5080b2=_0x2e420d;if(_0x39cc3e[_0x5080b2(0x160)](_0x2ff4be,_0x2a848b)){_0x38b793[_0x5080b2(0x1b3)](_0x21fea9);let _0x364f65=_0x5e6d8a[_0x21fea9];_0x364f65||(_0x364f65={'config':_0x290d44[_0x5080b2(0x1a0)],'sparklines':_0x290d44[_0x5080b2(0x195)][_0x5080b2(0x1b4)]()},_0x5e6d8a[_0x21fea9]=_0x364f65);let _0x5b6bac=_0x54d134[_0x21fea9];_0x5b6bac||(_0x5b6bac={'config':_0x290d44[_0x5080b2(0x1a0)],'sparklines':new _0x1ad7d5(_0x290d44[_0x5080b2(0x195)][_0x5080b2(0x1b4)]())},_0x54d134[_0x21fea9]=_0x5b6bac);const _0x477547=_0x1b6eac(_0x2a848b,{'id':_0x133d29['id'],'params':_0xaa86f0});_0x477547?_0x5b6bac[_0x5080b2(0x195)][_0x5080b2(0x1a1)](_0x9fdf01,_0x832fbe,_0x477547):_0x5b6bac[_0x5080b2(0x195)][_0x5080b2(0x1a1)](_0x9fdf01,_0x832fbe,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xe38960[_0x5080b2(0x199)]});}}),_0x4eeee8[_0x2e420d(0x181)](_0x25ceca=>{const _0x165e70=_0x2e420d;if(_0x25ceca<=_0x2ff4be['endRow']&&_0x25ceca>=_0x2ff4be['startRow']){_0x38b793['add'](_0x21fea9);let _0x340ecf=_0x5e6d8a[_0x21fea9];_0x340ecf||(_0x340ecf={'config':_0x290d44[_0x165e70(0x1a0)],'sparklines':_0x290d44[_0x165e70(0x195)][_0x165e70(0x1b4)]()},_0x5e6d8a[_0x21fea9]=_0x340ecf);let _0x49b2f3=_0x54d134[_0x21fea9];_0x49b2f3||(_0x49b2f3={'config':_0x290d44['config'],'sparklines':new _0x1ad7d5(_0x290d44[_0x165e70(0x195)][_0x165e70(0x1b4)]())},_0x54d134[_0x21fea9]=_0x49b2f3);}});}_0x38b793[_0x2e420d(0x1d7)]>0x0&&(_0x1c85a[_0x2e420d(0x1bf)]({'id':y['id'],'params':{'unitId':_0x59f21b,'subUnitId':_0x5bc760,'groupIds':Array['from'](_0x38b793),'isSingle':!0x1}}),_0x520ac3[_0x2e420d(0x1bf)]({'id':y['id'],'params':{'unitId':_0x59f21b,'subUnitId':_0x5bc760,'groupIds':Array[_0x2e420d(0x1ee)](_0x38b793),'isSingle':!0x1}}));const _0x5a8cdb={};let _0x4b2ddf=!0x1;return Object[_0x2e420d(0x1f5)](_0x54d134)['forEach'](([_0x587fe4,_0xd79246])=>{const _0x12b20f=_0x2e420d;_0xd79246[_0x12b20f(0x195)]['getSizeOf']()&&(_0x4b2ddf=!0x0,_0xd79246['sparklines'][_0x12b20f(0x173)](_0x2ff4be[_0x12b20f(0x170)],_0x2ff4be[_0x12b20f(0x155)]-_0x2ff4be[_0x12b20f(0x170)]+0x1),_0x5a8cdb[_0x587fe4]={'config':_0xd79246[_0x12b20f(0x1a0)],'sparklines':_0xd79246[_0x12b20f(0x195)]['clone']()});}),_0x4b2ddf&&_0x1a74c5['push']({'id':V['id'],'params':{'unitId':_0x59f21b,'subUnitId':_0x5bc760,'sparklineConfigMap':_0x5a8cdb}}),Object[_0x2e420d(0x1ac)](_0x5e6d8a)[_0x2e420d(0x1d4)]>0x0&&_0x3ee8c1['push']({'id':V['id'],'params':{'unitId':_0x59f21b,'subUnitId':_0x5bc760,'sparklineConfigMap':_0x5e6d8a}}),{'redos':_0x1a74c5,'undos':_0x3ee8c1,'preRedos':_0x520ac3,'preUndos':_0x1c85a};}[_0x1488ec(0x171)](_0x5268a3,_0x12f588,_0xf4b0bc){const _0x61f4ae=_0x1488ec;var _0x335ca8,_0x45278e;const {range:_0x26c2b5}=_0x5268a3,_0x4098df=new Set(),_0x49ef7c={},_0x1a6017={},_0x4d1287=[],_0x21e3c8=[],_0x17b814=[],_0x29f51c=[];if(!_0x26b75a(this[_0x61f4ae(0x185)],{'unitId':_0x12f588,'subUnitId':_0xf4b0bc}))return{'redos':_0x21e3c8,'undos':_0x4d1287};const _0x312f82=this['_sparklineDataSourceModel'][_0x61f4ae(0x15a)](_0x12f588,_0xf4b0bc);if(!_0x312f82)return{'redos':_0x21e3c8,'undos':_0x4d1287};if(!((_0x45278e=(_0x335ca8=this[_0x61f4ae(0x172)]['getSparklineCache']()['sparklineAnchorMap'][_0x61f4ae(0x154)](_0x12f588))==null?void 0x0:_0x335ca8[_0x61f4ae(0x154)](_0xf4b0bc))==null?void 0x0:_0x45278e[_0x61f4ae(0x1c6)]))return{'redos':_0x21e3c8,'undos':_0x4d1287};for(const [_0x48e067,_0x1b1c2b]of _0x312f82){const _0x3c94f5=_0x1b1c2b[_0x61f4ae(0x195)];_0x3c94f5[_0x61f4ae(0x181)]((_0x42c283,_0x3c7b9d,_0x30370e)=>{const _0x34022d=_0x61f4ae;if(_0x39cc3e[_0x34022d(0x160)](_0x26c2b5,_0x30370e)){_0x4098df[_0x34022d(0x1b3)](_0x48e067);let _0x272f1c=_0x1a6017[_0x48e067];_0x272f1c||(_0x272f1c={'config':_0x1b1c2b[_0x34022d(0x1a0)],'sparklines':_0x1b1c2b['sparklines'][_0x34022d(0x1b4)]()},_0x1a6017[_0x48e067]=_0x272f1c);let _0x5754b5=_0x49ef7c[_0x48e067];_0x5754b5||(_0x5754b5={'config':_0x1b1c2b[_0x34022d(0x1a0)],'sparklines':new _0x1ad7d5(_0x1b1c2b['sparklines'][_0x34022d(0x1b4)]())},_0x49ef7c[_0x48e067]=_0x5754b5);const _0x3312aa=_0x1b6eac(_0x30370e,{'id':_0x106639['id'],'params':_0x5268a3});_0x3312aa?_0x5754b5['sparklines']['setValue'](_0x42c283,_0x3c7b9d,_0x3312aa):_0x5754b5[_0x34022d(0x195)][_0x34022d(0x1a1)](_0x42c283,_0x3c7b9d,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xe38960[_0x34022d(0x199)]});}}),_0x3c94f5['forValue']((_0x8a96b4,_0x80bd87,_0x3cc21)=>{const _0x47be9c=_0x61f4ae;if(_0x80bd87<=_0x26c2b5[_0x47be9c(0x164)]&&_0x80bd87>=_0x26c2b5[_0x47be9c(0x214)]){_0x4098df['add'](_0x48e067);let _0x1e4475=_0x1a6017[_0x48e067];_0x1e4475||(_0x1e4475={'config':_0x1b1c2b[_0x47be9c(0x1a0)],'sparklines':_0x1b1c2b['sparklines'][_0x47be9c(0x1b4)]()},_0x1a6017[_0x48e067]=_0x1e4475);let _0x4835ce=_0x49ef7c[_0x48e067];_0x4835ce||(_0x4835ce={'config':_0x1b1c2b[_0x47be9c(0x1a0)],'sparklines':new _0x1ad7d5(_0x1b1c2b[_0x47be9c(0x195)][_0x47be9c(0x1b4)]())},_0x49ef7c[_0x48e067]=_0x4835ce);}});}_0x4098df[_0x61f4ae(0x1d7)]>0x0&&(_0x29f51c[_0x61f4ae(0x1bf)]({'id':y['id'],'params':{'unitId':_0x12f588,'subUnitId':_0xf4b0bc,'groupIds':Array[_0x61f4ae(0x1ee)](_0x4098df),'isSingle':!0x1}}),_0x17b814[_0x61f4ae(0x1bf)]({'id':y['id'],'params':{'unitId':_0x12f588,'subUnitId':_0xf4b0bc,'groupIds':Array['from'](_0x4098df),'isSingle':!0x1}}));const _0x4628f4={};let _0x13119a=!0x1;return Object[_0x61f4ae(0x1f5)](_0x49ef7c)[_0x61f4ae(0x17d)](([_0x4a14d5,_0x56e58b])=>{const _0x58845e=_0x61f4ae;_0x56e58b[_0x58845e(0x195)][_0x58845e(0x184)]()&&(_0x13119a=!0x0,_0x56e58b[_0x58845e(0x195)][_0x58845e(0x1d3)](_0x26c2b5[_0x58845e(0x214)],_0x26c2b5[_0x58845e(0x164)]-_0x26c2b5[_0x58845e(0x214)]+0x1),_0x4628f4[_0x4a14d5]={'config':_0x56e58b['config'],'sparklines':_0x56e58b['sparklines']['clone']()});}),_0x13119a&&_0x21e3c8[_0x61f4ae(0x1bf)]({'id':V['id'],'params':{'unitId':_0x12f588,'subUnitId':_0xf4b0bc,'sparklineConfigMap':_0x4628f4}}),Object[_0x61f4ae(0x1ac)](_0x1a6017)['length']>0x0&&_0x4d1287['push']({'id':V['id'],'params':{'unitId':_0x12f588,'subUnitId':_0xf4b0bc,'sparklineConfigMap':_0x1a6017}}),{'redos':_0x21e3c8,'undos':_0x4d1287,'preRedos':_0x17b814,'preUndos':_0x29f51c};}[_0x1488ec(0x1e2)](){const _0x3a717b=_0x1488ec;this[_0x3a717b(0x204)](this['_commandService']['onCommandExecuted'](_0x50bcb1=>{const _0x4bfbb9=_0x3a717b;if(_0x50bcb1['id']===_0x5864b8['id']){const _0x1766c3=_0x50bcb1[_0x4bfbb9(0x1c9)],{unitId:_0x2d0111,subUnitId:_0x3af27f,range:_0x2ff79a}=_0x1766c3,_0x4a4187=_0x2ff79a[_0x4bfbb9(0x214)],_0xe086c7=_0x2ff79a[_0x4bfbb9(0x164)]-_0x2ff79a[_0x4bfbb9(0x214)]+0x1,_0x27771f=this['_sparklineDataSourceModel'][_0x4bfbb9(0x15a)](_0x2d0111,_0x3af27f);if(!_0x27771f)return;for(const [_0x57584c,_0x1c24a0]of _0x27771f){this['_sparklineDataSourceModel'][_0x4bfbb9(0x1b0)](_0x2d0111,_0x3af27f,_0x57584c);const _0x17c725=_0x1c24a0['sparklines'];_0x17c725['forValue']((_0x5158b8,_0x41ee86,_0x3469a7)=>{const _0x2a3f02=_0x4bfbb9,_0x51bf96={..._0x3469a7};_0x4a4187<=_0x51bf96[_0x2a3f02(0x214)]?(_0x51bf96[_0x2a3f02(0x214)]+=_0xe086c7,_0x51bf96[_0x2a3f02(0x164)]+=_0xe086c7):_0x4a4187>_0x51bf96[_0x2a3f02(0x164)]||(_0x51bf96[_0x2a3f02(0x164)]+=_0xe086c7),_0x17c725[_0x2a3f02(0x1a1)](_0x5158b8,_0x41ee86,_0x51bf96);});const _0x43fd4c=_0x17c725['getMatrix']();for(const _0x508782 in _0x43fd4c){const _0x2aaab4=_0x43fd4c[Number(_0x508782)];if(!_0x2aaab4)continue;const _0x576650=Object[_0x4bfbb9(0x1ac)](_0x2aaab4)['map'](Number),_0x38f03f=Math[_0x4bfbb9(0x206)](..._0x576650);for(let _0x527eb8=_0x38f03f;_0x527eb8>=_0x4a4187;_0x527eb8--)_0x527eb8>=_0x4a4187&&_0x2aaab4[_0x527eb8]&&(_0x2aaab4[_0x527eb8+_0xe086c7]=_0x2aaab4[_0x527eb8],delete _0x2aaab4[_0x527eb8]);}this[_0x4bfbb9(0x172)][_0x4bfbb9(0x210)](_0x2d0111,_0x3af27f,_0x57584c);}}else{if(_0x50bcb1['id']===_0x40d8bd['id']){const _0x1b9057=_0x50bcb1[_0x4bfbb9(0x1c9)],{unitId:_0x5b2fd7,subUnitId:_0x2da443,range:_0x197d37}=_0x1b9057,_0x3e3fae=_0x197d37['startRow'],_0x41346d=_0x197d37[_0x4bfbb9(0x155)]-_0x197d37[_0x4bfbb9(0x170)]+0x1,_0x4b4aec=this[_0x4bfbb9(0x172)][_0x4bfbb9(0x15a)](_0x5b2fd7,_0x2da443);if(!_0x4b4aec)return;for(const [_0x427d4f,_0x8018a5]of _0x4b4aec){this[_0x4bfbb9(0x172)][_0x4bfbb9(0x1b0)](_0x5b2fd7,_0x2da443,_0x427d4f);const _0x2b24f5=_0x8018a5[_0x4bfbb9(0x195)];_0x2b24f5[_0x4bfbb9(0x181)]((_0x1a9db7,_0x5907af,_0x533b44)=>{const _0x4cd153=_0x4bfbb9,_0x4d41f4={..._0x533b44};_0x3e3fae<=_0x4d41f4[_0x4cd153(0x170)]?(_0x4d41f4[_0x4cd153(0x170)]+=_0x41346d,_0x4d41f4[_0x4cd153(0x155)]+=_0x41346d):_0x3e3fae>_0x4d41f4[_0x4cd153(0x155)]||(_0x4d41f4[_0x4cd153(0x155)]+=_0x41346d),_0x2b24f5['setValue'](_0x1a9db7,_0x5907af,_0x4d41f4);});const _0x5c6e68=_0x2b24f5[_0x4bfbb9(0x19a)](),_0x495519=Object[_0x4bfbb9(0x1ac)](_0x5c6e68)[_0x4bfbb9(0x201)](Number),_0x30f58e=Math['max'](..._0x495519);for(let _0x98e6bf=_0x30f58e;_0x98e6bf>=_0x3e3fae;_0x98e6bf--)_0x98e6bf>=_0x3e3fae&&_0x5c6e68[_0x98e6bf]&&(_0x5c6e68[_0x98e6bf+_0x41346d]=_0x5c6e68[_0x98e6bf],delete _0x5c6e68[_0x98e6bf]);this[_0x4bfbb9(0x172)][_0x4bfbb9(0x210)](_0x5b2fd7,_0x2da443,_0x427d4f);}}else{if(_0x50bcb1['id']===_0x106639['id']){const _0xe61500=_0x50bcb1[_0x4bfbb9(0x1c9)],{range:_0x58ed0a,unitId:_0x515872,subUnitId:_0x254142}=_0xe61500,_0x5d00f5=this[_0x4bfbb9(0x172)][_0x4bfbb9(0x15a)](_0x515872,_0x254142);if(!_0x5d00f5)return;for(const [_0x453f91,_0x195d3b]of _0x5d00f5){const _0x51477=_0x195d3b['sparklines'];_0x51477[_0x4bfbb9(0x181)]((_0x5dea27,_0x11dc25,_0x371d37)=>{const _0x193e7e=_0x4bfbb9,_0x397957=_0x1b6eac(_0x371d37,_0x50bcb1);_0x397957?_0x51477[_0x193e7e(0x1a1)](_0x5dea27,_0x11dc25,_0x397957):_0x51477[_0x193e7e(0x1a1)](_0x5dea27,_0x11dc25,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xe38960[_0x193e7e(0x199)]});}),_0x51477[_0x4bfbb9(0x1d3)](_0x58ed0a[_0x4bfbb9(0x214)],_0x58ed0a[_0x4bfbb9(0x164)]-_0x58ed0a['startColumn']+0x1);}this[_0x4bfbb9(0x172)][_0x4bfbb9(0x1d5)](_0x515872,_0x254142);}else{if(_0x50bcb1['id']===_0x133d29['id']){const _0x2ffd32=_0x50bcb1[_0x4bfbb9(0x1c9)],{range:_0x3dd1da,unitId:_0xd988bc,subUnitId:_0x217358}=_0x2ffd32,_0x159d57=this[_0x4bfbb9(0x172)][_0x4bfbb9(0x15a)](_0xd988bc,_0x217358);if(!_0x159d57)return;for(const [_0x431bfd,_0x36c9f5]of _0x159d57){const _0x21e35d=_0x36c9f5[_0x4bfbb9(0x195)];_0x21e35d['forValue']((_0x29e54a,_0x17b0f7,_0xbbaf87)=>{const _0x5b0256=_0x4bfbb9,_0xe90ae0=_0x1b6eac(_0xbbaf87,_0x50bcb1);_0xe90ae0?_0x21e35d[_0x5b0256(0x1a1)](_0x29e54a,_0x17b0f7,_0xe90ae0):_0x21e35d[_0x5b0256(0x1a1)](_0x29e54a,_0x17b0f7,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xe38960[_0x5b0256(0x199)]});}),_0x21e35d[_0x4bfbb9(0x173)](_0x3dd1da[_0x4bfbb9(0x170)],_0x3dd1da[_0x4bfbb9(0x155)]-_0x3dd1da[_0x4bfbb9(0x170)]+0x1);}this[_0x4bfbb9(0x172)][_0x4bfbb9(0x1d5)](_0xd988bc,_0x217358);}else{if(_0x50bcb1['id']===_0x3826e1['id']){const _0x304ed6=_0x50bcb1['params'],{unitId:_0x260121,subUnitId:_0x4a05b4,sourceRange:_0x38f8c8,targetRange:_0x564fc5}=_0x304ed6,_0xc86f6e=this[_0x4bfbb9(0x172)]['getSubUnitSparkline'](_0x260121,_0x4a05b4);if(!_0xc86f6e)return;for(const [_0x5a1bb1,_0x54a231]of _0xc86f6e){const _0x2227fa=_0x54a231[_0x4bfbb9(0x195)];_0x2227fa[_0x4bfbb9(0x181)]((_0x1e5c81,_0x2983f6,_0x3db82f)=>{const _0x5d2283=_0x4bfbb9,_0x2c2fee=_0x1b6eac(_0x3db82f,_0x50bcb1);_0x2c2fee?_0x2227fa[_0x5d2283(0x1a1)](_0x1e5c81,_0x2983f6,_0x2c2fee):_0x2227fa[_0x5d2283(0x1a1)](_0x1e5c81,_0x2983f6,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xe38960[_0x5d2283(0x199)]});}),_0x2227fa[_0x4bfbb9(0x1f2)](_0x38f8c8[_0x4bfbb9(0x214)],_0x38f8c8[_0x4bfbb9(0x164)]-_0x38f8c8[_0x4bfbb9(0x214)]+0x1,_0x564fc5['startColumn']);}this['_sparklineDataSourceModel'][_0x4bfbb9(0x1d5)](_0x260121,_0x4a05b4);}else{if(_0x50bcb1['id']===_0x1e47ac['id']){const _0x57675f=_0x50bcb1[_0x4bfbb9(0x1c9)],{unitId:_0x9d4b11,subUnitId:_0x46cc91,sourceRange:_0x22c838,targetRange:_0xa8c175}=_0x57675f,_0x2750e6=this['_sparklineDataSourceModel'][_0x4bfbb9(0x15a)](_0x9d4b11,_0x46cc91);if(!_0x2750e6)return;for(const [_0x4ba110,_0x2e8310]of _0x2750e6){const _0x1dd094=_0x2e8310[_0x4bfbb9(0x195)];_0x1dd094['forValue']((_0x55851d,_0x4d3cc5,_0x17f3b3)=>{const _0x352453=_0x4bfbb9,_0x559154=_0x1b6eac(_0x17f3b3,_0x50bcb1);_0x559154?_0x1dd094[_0x352453(0x1a1)](_0x55851d,_0x4d3cc5,_0x559154):_0x1dd094['setValue'](_0x55851d,_0x4d3cc5,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0xe38960['NORMAL']});}),_0x1dd094[_0x4bfbb9(0x20e)](_0x22c838[_0x4bfbb9(0x170)],_0x22c838['endRow']-_0x22c838[_0x4bfbb9(0x170)]+0x1,_0xa8c175[_0x4bfbb9(0x170)]);}this[_0x4bfbb9(0x172)]['reBuildAnchorCache'](_0x9d4b11,_0x46cc91);}else{if(_0x50bcb1['id']===_0x3ff915['id']){const _0x336acd=_0x50bcb1['params'],{fromRange:_0x21fd45,toRange:_0x1f8d5f,unitId:_0x282a3e,from:_0xfa5c81,to:_0x2fa45d}=_0x336acd;if(_0xfa5c81['subUnitId']!==_0x2fa45d[_0x4bfbb9(0x1ca)])return;const _0x5b2a77=_0xfa5c81[_0x4bfbb9(0x1ca)],{startRow:_0x513828,endRow:_0x137e95,startColumn:_0x41a0bb,endColumn:_0x53c1bf}=_0x21fd45,{startRow:_0xce19c2,startColumn:_0x421c2c}=_0x1f8d5f,_0x220575=_0xce19c2-_0x513828,_0x2f79bf=_0x421c2c-_0x41a0bb,_0x3f9766=this['_sparklineDataSourceModel'][_0x4bfbb9(0x15a)](_0x282a3e,_0x5b2a77);if(!(_0x3f9766!=null&&_0x3f9766[_0x4bfbb9(0x1d7)]))return;for(let _0x350283=_0x513828;_0x350283<=_0x137e95;_0x350283++)for(let _0x5e9682=_0x41a0bb;_0x5e9682<=_0x53c1bf;_0x5e9682++){const _0x1a1463=this['_sparklineDataSourceModel'][_0x4bfbb9(0x1de)](_0x282a3e,_0x5b2a77,_0x350283,_0x5e9682);if(_0x1a1463){const _0x30e9b8=this[_0x4bfbb9(0x172)][_0x4bfbb9(0x1ae)](_0x282a3e,_0x5b2a77,_0x1a1463);if(_0x30e9b8){const _0x323197=_0x30e9b8['sparklines'][_0x4bfbb9(0x20a)](_0x350283,_0x5e9682);_0x323197&&(_0x30e9b8[_0x4bfbb9(0x195)][_0x4bfbb9(0x1a1)](_0x350283+_0x220575,_0x5e9682+_0x2f79bf,_0x323197),_0x30e9b8[_0x4bfbb9(0x195)]['realDeleteValue'](_0x350283,_0x5e9682));}}}for(const [_0x2dea9d,_0x3c23b4]of _0x3f9766){const _0x1ad9f6=_0x3c23b4['sparklines'];_0x1ad9f6[_0x4bfbb9(0x181)]((_0x1b4fcf,_0x370dfd,_0x50613f)=>{const _0x436fe8=_0x4bfbb9,_0x29ad80={..._0x50613f};_0x39cc3e[_0x436fe8(0x1f6)](_0x21fd45,_0x50613f)&&(_0x29ad80[_0x436fe8(0x170)]+=_0x220575,_0x29ad80[_0x436fe8(0x155)]+=_0x220575,_0x29ad80[_0x436fe8(0x214)]+=_0x2f79bf,_0x29ad80['endColumn']+=_0x2f79bf),_0x1ad9f6[_0x436fe8(0x1a1)](_0x1b4fcf,_0x370dfd,_0x29ad80);});}this[_0x4bfbb9(0x172)][_0x4bfbb9(0x1d5)](_0x282a3e,_0x5b2a77);}}}}}}}}));}};Me=zt([he(0x0,_0x198b99(_0x2cd540)),he(0x1,_0x198b99(_0x35c7e5)),he(0x2,_0x3c6e7c),he(0x3,_0x198b99(x))],Me);var Ft=Object[_0x1488ec(0x193)],Kt=(_0x1abdc2,_0x1c7c9d,_0x585336,_0x3844db)=>{const _0x488cb5=_0x1488ec;for(var _0x4109e8=_0x3844db>0x1?void 0x0:_0x3844db?Ft(_0x1c7c9d,_0x585336):_0x1c7c9d,_0x1852ad=_0x1abdc2[_0x488cb5(0x1d4)]-0x1,_0x24e232;_0x1852ad>=0x0;_0x1852ad--)(_0x24e232=_0x1abdc2[_0x1852ad])&&(_0x4109e8=_0x24e232(_0x4109e8)||_0x4109e8);return _0x4109e8;},Ee=(_0x1fa181,_0x84de38)=>(_0xbd1eb3,_0x2436a1)=>_0x84de38(_0xbd1eb3,_0x2436a1,_0x1fa181);let Re=class extends _0x6679b3{constructor(_0x2f945e,_0x15cd1e,_0x3548fe){const _0x4bc67a=_0x1488ec;super(),this[_0x4bc67a(0x185)]=_0x2f945e,this[_0x4bc67a(0x20f)]=_0x15cd1e,this[_0x4bc67a(0x172)]=_0x3548fe,this['_initSheetChange']();}[_0x1488ec(0x1cf)](){const _0x5c1896=_0x1488ec;this[_0x5c1896(0x204)](this[_0x5c1896(0x20f)][_0x5c1896(0x1b8)]({'getMutations':_0x234aa9=>{const _0x2fba98=_0x5c1896;var _0x2a17f8;if(_0x234aa9['id']===_0x798696['id']){const _0x47eb08=_0x234aa9[_0x2fba98(0x1c9)],_0x5ac845=_0x47eb08[_0x2fba98(0x207)]||this['_univerInstanceService'][_0x2fba98(0x212)](_0x48879a[_0x2fba98(0x176)])['getUnitId'](),_0x1d841d=_0x47eb08['subUnitId']||((_0x2a17f8=this['_univerInstanceService'][_0x2fba98(0x212)](_0x48879a[_0x2fba98(0x176)])[_0x2fba98(0x15e)]())==null?void 0x0:_0x2a17f8[_0x2fba98(0x1f8)]());if(!_0x5ac845||!_0x1d841d)return{'redos':[],'undos':[]};const _0x13f3fd=this[_0x2fba98(0x172)][_0x2fba98(0x15a)](_0x5ac845,_0x1d841d);if(!_0x13f3fd)return{'redos':[],'undos':[]};const _0x42b3f6=new Set(),_0x1b1bde={};for(const [_0x2660ef,_0x582fa7]of _0x13f3fd)_0x42b3f6[_0x2fba98(0x1b3)](_0x2660ef),_0x1b1bde[_0x2660ef]={'config':_0x4da646[_0x2fba98(0x1ad)](_0x582fa7['config']),'sparklines':_0x4da646[_0x2fba98(0x1ad)](_0x582fa7[_0x2fba98(0x195)][_0x2fba98(0x1b4)]())};if(_0x42b3f6[_0x2fba98(0x1d7)])return{'redos':[{'id':y['id'],'params':{'unitId':_0x5ac845,'subUnitId':_0x1d841d,'groupIds':Array[_0x2fba98(0x1ee)](_0x42b3f6),'isSingle':!0x1}}],'undos':[{'id':V['id'],'params':{'unitId':_0x5ac845,'subUnitId':_0x1d841d,'sparklineConfigMap':_0x1b1bde}}]};}else{if(_0x234aa9['id']===_0x4897c3['id']){const _0x2c39f9=_0x234aa9[_0x2fba98(0x1c9)],{unitId:_0x368df5,subUnitId:_0x348f3c,targetSubUnitId:_0x25db94}=_0x2c39f9;if(!_0x368df5||!_0x348f3c||!_0x25db94)return{'redos':[],'undos':[]};const _0x5e5f56=this[_0x2fba98(0x172)][_0x2fba98(0x15a)](_0x368df5,_0x348f3c);if(!_0x5e5f56)return{'redos':[],'undos':[]};const _0x1dde46=new Set(),_0x142a98={};for(const [_0x1ce9fe,_0x8656dd]of _0x5e5f56){const _0x4f10c1='g_'+_0x4e40ec(0x6);_0x1dde46[_0x2fba98(0x1b3)](_0x1ce9fe),_0x142a98[_0x4f10c1]={'config':_0x4da646[_0x2fba98(0x1ad)](_0x8656dd['config']),'sparklines':_0x4da646[_0x2fba98(0x1ad)](_0x8656dd[_0x2fba98(0x195)]['clone']())};}if(_0x1dde46[_0x2fba98(0x1d7)])return{'redos':[{'id':V['id'],'params':{'unitId':_0x368df5,'subUnitId':_0x25db94,'sparklineConfigMap':_0x142a98}}],'undos':[{'id':y['id'],'params':{'unitId':_0x368df5,'subUnitId':_0x25db94,'groupIds':Array[_0x2fba98(0x1ee)](_0x1dde46),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Re=Kt([Ee(0x0,_0x198b99(_0x3c6e7c)),Ee(0x1,_0x198b99(_0x5ca745)),Ee(0x2,_0x198b99(x))],Re);var Xt=Object[_0x1488ec(0x193)],Jt=(_0x519ff6,_0x38734a,_0x16b234,_0x3a6fd8)=>{const _0x1cffa2=_0x1488ec;for(var _0x5655b7=_0x3a6fd8>0x1?void 0x0:_0x3a6fd8?Xt(_0x38734a,_0x16b234):_0x38734a,_0x31114a=_0x519ff6[_0x1cffa2(0x1d4)]-0x1,_0x48e166;_0x31114a>=0x0;_0x31114a--)(_0x48e166=_0x519ff6[_0x31114a])&&(_0x5655b7=_0x48e166(_0x5655b7)||_0x5655b7);return _0x5655b7;},Be=(_0x20a13b,_0x2de0b3)=>(_0x54a27f,_0x515e9a)=>_0x2de0b3(_0x54a27f,_0x515e9a,_0x20a13b);let ve=class extends _0x6679b3{constructor(_0x3837d5,_0xa45ae4){const _0x382b54=_0x1488ec;super(),this[_0x382b54(0x1be)]=_0x3837d5,this[_0x382b54(0x172)]=_0xa45ae4,this[_0x382b54(0x1b1)]();}[_0x1488ec(0x1b1)](){const _0x283fee=_0x1488ec,_0x58313f=_0x371987=>{const _0x136d7e=_0x1cf0,_0x158f42=this[_0x136d7e(0x172)][_0x136d7e(0x1af)](_0x371987);return _0x158f42?JSON[_0x136d7e(0x1a8)](_0x158f42):'';},_0x37ec67=_0x5d443c=>_0x5d443c?JSON['parse'](_0x5d443c):{};this[_0x283fee(0x204)](this[_0x283fee(0x1be)][_0x283fee(0x150)]({'toJson':_0x58313f,'parseJson':_0x37ec67,'pluginName':Fe,'businesses':[_0x48879a['UNIVER_SHEET']],'onLoad':(_0x28122f,_0x2c4635)=>{const _0x43edfe=_0x283fee;this[_0x43edfe(0x172)]['fromJSON'](_0x2c4635);},'onUnLoad':_0x1eade8=>{const _0x475f84=_0x283fee;this[_0x475f84(0x172)]['deleteUnit'](_0x1eade8);}}));}};ve=Jt([Be(0x0,_0x198b99(_0x3e3f76)),Be(0x1,_0x198b99(x))],ve);var Zt=Object[_0x1488ec(0x1c1)],Yt=Object[_0x1488ec(0x193)],qt=(_0x19e641,_0xc75b01,_0x5a6075)=>_0xc75b01 in _0x19e641?Zt(_0x19e641,_0xc75b01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a6075}):_0x19e641[_0xc75b01]=_0x5a6075,Qt=(_0x4eb783,_0x4cf615,_0x8f1b0,_0x588bca)=>{for(var _0x2bb0bd=_0x588bca>0x1?void 0x0:_0x588bca?Yt(_0x4cf615,_0x8f1b0):_0x4cf615,_0x7e6e95=_0x4eb783['length']-0x1,_0x395d98;_0x7e6e95>=0x0;_0x7e6e95--)(_0x395d98=_0x4eb783[_0x7e6e95])&&(_0x2bb0bd=_0x395d98(_0x2bb0bd)||_0x2bb0bd);return _0x2bb0bd;},We=(_0x3bf938,_0x2ff87f)=>(_0x514e58,_0x54b4b6)=>_0x2ff87f(_0x514e58,_0x54b4b6,_0x3bf938),Xe=(_0x24e0fe,_0x5d3279,_0x32c18f)=>qt(_0x24e0fe,typeof _0x5d3279!=_0x1488ec(0x1b9)?_0x5d3279+'':_0x5d3279,_0x32c18f);let we=class extends _0x440648{constructor(_0x299ec5={},_0x2458f2,_0x27cc15){const _0x3473eb=_0x1488ec;super(),this[_0x3473eb(0x1a7)]=_0x299ec5,this['_injector']=_0x2458f2,this[_0x3473eb(0x19f)]=_0x27cc15,this[_0x3473eb(0x1ec)](),this[_0x3473eb(0x162)]();}[_0x1488ec(0x1ec)](){const _0x42564f=_0x1488ec;[[x],[me],[_e],[ke],[Me],[Ce],[Re],[ve]][_0x42564f(0x17d)](_0x29f543=>{this['_injector']['add'](_0x29f543);}),_0x4df474(this[_0x42564f(0x1d8)],[[ve]]);}['onReady'](){const _0x48222f=_0x1488ec;_0x4df474(this[_0x48222f(0x1d8)],[[me],[_e],[ke],[Me],[Ce],[Re]]);}[_0x1488ec(0x162)](){const _0xf0be18=_0x1488ec;[Nt,V,xt,y,Ut,xe]['forEach'](_0x43f1ed=>this['_commandService'][_0xf0be18(0x205)](_0x43f1ed));}};Xe(we,_0x1488ec(0x1df),Fe),Xe(we,_0x1488ec(0x19e),_0x48879a[_0x1488ec(0x176)]),we=Qt([_0x2b50de(_0x2849e7),We(0x1,_0x198b99(_0x3d602b)),We(0x2,_0x198b99(_0x2cd540))],we);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Fe as PLUGIN_NAME,xt as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,Ut as SetSheetSparklineCommand,xe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,Ve as SparklineExtremumTypeEnum,an as SparklinePointsNames,Ge as SparklineThemeMapping,Ke as SparklineThemeTypeEnum,Et as SparklineTypeEnum,we as UniverSheetSparklinePlugin,ze as getSparklinePlacement};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x62a27c=_0x41ed;(function(_0x5e5bbf,_0x11afbe){const _0x4bac36=_0x41ed,_0x5e08fa=_0x5e5bbf();while(!![]){try{const _0x3afb0e=parseInt(_0x4bac36(0x1cf))/0x1+-parseInt(_0x4bac36(0x1fd))/0x2*(-parseInt(_0x4bac36(0x1c9))/0x3)+parseInt(_0x4bac36(0x1da))/0x4*(-parseInt(_0x4bac36(0x1fe))/0x5)+parseInt(_0x4bac36(0x1f9))/0x6+-parseInt(_0x4bac36(0x1f4))/0x7*(-parseInt(_0x4bac36(0x203))/0x8)+-parseInt(_0x4bac36(0x1e1))/0x9*(parseInt(_0x4bac36(0x200))/0xa)+-parseInt(_0x4bac36(0x1d3))/0xb*(-parseInt(_0x4bac36(0x1cc))/0xc);if(_0x3afb0e===_0x11afbe)break;else _0x5e08fa['push'](_0x5e08fa['shift']());}catch(_0x20f64c){_0x5e08fa['push'](_0x5e08fa['shift']());}}}(_0x4957,0x593f9));import{SparklineDataSourceModel as _0x322fa5,SetSheetSparklineCommand as _0x46fd8a,RemoveSheetSparklineCommand as _0x4e63d0,AddSheetSparklineCommand as _0x277f01,SparklineTypeEnum as _0x2f9c58}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x2ee30b,Injector as _0x21320a,ICommandService as _0x35894d,Tools as _0x164dac}from'@univerjs/core';import{FWorksheet as _0x4fbdd9}from'@univerjs/sheets/facade';import{FEnum as _0x3e6964,FEventName as _0x2e6c10,FUniver as _0x16f680}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x441487}from'@univerjs/sheets';var z=Object[_0x62a27c(0x1e3)],H=(_0x27458d,_0x120cfb,_0x83c3f1,_0x43c125)=>{const _0x3a3ac0=_0x62a27c;for(var _0x2dff4a=_0x43c125>0x1?void 0x0:_0x43c125?z(_0x120cfb,_0x83c3f1):_0x120cfb,_0x329cfe=_0x27458d[_0x3a3ac0(0x1d2)]-0x1,_0x1ca132;_0x329cfe>=0x0;_0x329cfe--)(_0x1ca132=_0x27458d[_0x329cfe])&&(_0x2dff4a=_0x1ca132(_0x2dff4a)||_0x2dff4a);return _0x2dff4a;},V=(_0x821ef8,_0x44feeb)=>(_0xb903b2,_0x1eaff5)=>_0x44feeb(_0xb903b2,_0x1eaff5,_0x821ef8);let C=class{constructor(_0x5d0495,_0x3f2d22,_0x4a20fb,_0x4ac4ab,_0x1e0950,_0x432e4f){const _0x4b974c=_0x62a27c;this[_0x4b974c(0x1eb)]=_0x5d0495,this[_0x4b974c(0x1ef)]=_0x3f2d22,this[_0x4b974c(0x1e0)]=_0x4a20fb,this[_0x4b974c(0x1e7)]=_0x4ac4ab,this[_0x4b974c(0x1ed)]=_0x1e0950,this[_0x4b974c(0x1e2)]=_0x432e4f;}[_0x62a27c(0x1c4)](_0x23b4e3,_0x5dc7a7){const _0x309897=_0x62a27c,_0x2c77e2=this['_injector'][_0x309897(0x1cb)](_0x322fa5),_0x6578b3=this[_0x309897(0x1e2)][_0x309897(0x1cb)](_0x35894d),_0x2d1ca6=_0x2c77e2[_0x309897(0x1de)](this['_unitId'],this[_0x309897(0x1ef)],this[_0x309897(0x1e0)]);if(!_0x2d1ca6)return;const _0x4cd96b={'config':_0x2d1ca6,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x309897(0x1e0)],'resetType':_0x309897(0x1f3),'sourceRanges':[_0x23b4e3],'targetRanges':[_0x5dc7a7],'primary':{'startRow':this[_0x309897(0x1e7)],'startColumn':this[_0x309897(0x1ed)],'endRow':this[_0x309897(0x1e7)],'endColumn':this[_0x309897(0x1ed)],'actualRow':this['_row'],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x6578b3[_0x309897(0x1c1)](_0x46fd8a['id'],_0x4cd96b),this[_0x309897(0x1e7)]=_0x5dc7a7[_0x309897(0x1df)],this[_0x309897(0x1ed)]=_0x5dc7a7[_0x309897(0x1c3)],this;}['removeSparkline'](){const _0x5e6795=_0x62a27c,_0x164d98=this[_0x5e6795(0x1e2)][_0x5e6795(0x1cb)](_0x35894d),_0x203cb3={'isSingle':!0x0,'ranges':[{'startRow':this[_0x5e6795(0x1e7)],'startColumn':this[_0x5e6795(0x1ed)],'endRow':this['_row'],'endColumn':this[_0x5e6795(0x1ed)]}]};_0x164d98[_0x5e6795(0x1c1)](_0x4e63d0['id'],_0x203cb3);}};C=H([V(0x5,_0x2ee30b(_0x21320a))],C);var q=Object[_0x62a27c(0x1e3)],J=(_0x15bce2,_0x1c1e0c,_0x35b7d4,_0x5eaef6)=>{const _0x53dfe7=_0x62a27c;for(var _0x2e5c56=_0x5eaef6>0x1?void 0x0:_0x5eaef6?q(_0x1c1e0c,_0x35b7d4):_0x1c1e0c,_0x31c950=_0x15bce2[_0x53dfe7(0x1d2)]-0x1,_0x2c5011;_0x31c950>=0x0;_0x31c950--)(_0x2c5011=_0x15bce2[_0x31c950])&&(_0x2e5c56=_0x2c5011(_0x2e5c56)||_0x2e5c56);return _0x2e5c56;},K=(_0x22188f,_0x60861c)=>(_0xede63,_0x2bf06b)=>_0x60861c(_0xede63,_0x2bf06b,_0x22188f);let w=class{constructor(_0x433fb6,_0x592a7f,_0x1a3b6e,_0x72a7d3,_0x28d48b,_0x1d08a2){const _0x2eb2af=_0x62a27c;this['_unitId']=_0x433fb6,this[_0x2eb2af(0x1ef)]=_0x592a7f,this[_0x2eb2af(0x1e0)]=_0x1a3b6e,this[_0x2eb2af(0x1e7)]=_0x72a7d3,this[_0x2eb2af(0x1ed)]=_0x28d48b,this[_0x2eb2af(0x1e2)]=_0x1d08a2;}[_0x62a27c(0x1c4)](_0x5891dc,_0x1fa69f){const _0x4fe854=_0x62a27c,_0x341c5f=this[_0x4fe854(0x1e2)][_0x4fe854(0x1cb)](_0x322fa5),_0x5d7bbc=this[_0x4fe854(0x1e2)]['get'](_0x35894d),_0x3ad6ed=_0x341c5f['getSparklineById'](this['_unitId'],this['_subUnitId'],this[_0x4fe854(0x1e0)]);if(!_0x3ad6ed)return;const _0x1af06c={'config':_0x3ad6ed,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':_0x4fe854(0x1d0),'sourceRanges':_0x5891dc,'targetRanges':_0x1fa69f,'primary':{'startRow':this[_0x4fe854(0x1e7)],'startColumn':this[_0x4fe854(0x1ed)],'endRow':this[_0x4fe854(0x1e7)],'endColumn':this[_0x4fe854(0x1ed)],'actualRow':this[_0x4fe854(0x1e7)],'actualColumn':this[_0x4fe854(0x1ed)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x5d7bbc[_0x4fe854(0x1c1)](_0x46fd8a['id'],_0x1af06c),this[_0x4fe854(0x1e7)]=_0x1fa69f[0x0]['startRow'],this[_0x4fe854(0x1ed)]=_0x1fa69f[0x0][_0x4fe854(0x1c3)],this;}['removeSparklineGroup'](){const _0xc7df06=_0x62a27c,_0x1ff3e8=this[_0xc7df06(0x1e2)]['get'](_0x35894d),_0x345b26={'isSingle':!0x1,'ranges':[{'startRow':this[_0xc7df06(0x1e7)],'startColumn':this[_0xc7df06(0x1ed)],'endRow':this['_row'],'endColumn':this[_0xc7df06(0x1ed)]}]};_0x1ff3e8[_0xc7df06(0x1c1)](_0x4e63d0['id'],_0x345b26);}[_0x62a27c(0x1f2)](_0x24e108){const _0xfe8070=_0x62a27c,_0x82554d=this['_injector']['get'](_0x322fa5)[_0xfe8070(0x1de)](this[_0xfe8070(0x1eb)],this['_subUnitId'],this[_0xfe8070(0x1e0)]);if(_0x82554d){const _0x363730={'config':{'config':_0x24e108,'sparklines':_0x82554d[_0xfe8070(0x1f5)]},'isChangeDataSource':!0x1};this[_0xfe8070(0x1e2)]['get'](_0x35894d)[_0xfe8070(0x1c1)](_0x46fd8a['id'],_0x363730);}return this;}};w=J([K(0x5,_0x2ee30b(_0x21320a))],w);class L extends _0x4fbdd9{[_0x62a27c(0x1ce)](_0x222064,_0x39feab,_0x3769ac){const _0x204d29=_0x62a27c;if(this[_0x204d29(0x1e4)][_0x204d29(0x1c1)](_0x277f01['id'],{'sourceRanges':_0x222064,'targetRanges':_0x39feab,'targetInfo':{'unitId':this[_0x204d29(0x1ff)]['getUnitId'](),'subUnitId':this[_0x204d29(0x1e5)][_0x204d29(0x1d4)]()},'config':{'type':_0x3769ac}})){const {startRow:_0x2ed0b5,startColumn:_0x5c13bd}=_0x39feab[0x0];return this['getSparklineByCell'](_0x2ed0b5,_0x5c13bd);}}[_0x62a27c(0x1dd)](){const _0x74ff1c=_0x62a27c;return this[_0x74ff1c(0x1e2)][_0x74ff1c(0x1cb)](_0x322fa5)[_0x74ff1c(0x1c8)](this[_0x74ff1c(0x1ff)][_0x74ff1c(0x1cd)](),this[_0x74ff1c(0x1e5)][_0x74ff1c(0x1d4)]());}[_0x62a27c(0x1fa)](_0x4f0851){const _0x26e1e0=_0x62a27c,_0x5b9c25=this[_0x26e1e0(0x1e2)][_0x26e1e0(0x1cb)](_0x322fa5);let _0x56c04a;for(let _0x578103=0x0;_0x578103<_0x4f0851[_0x26e1e0(0x1d2)];_0x578103++){const _0x1bfd18=_0x4f0851[_0x578103],{startRow:_0x473696,endRow:_0x480e96,startColumn:_0x10841f,endColumn:_0x431036}=_0x1bfd18;for(let _0x3c058a=_0x473696;_0x3c058a<=_0x480e96;_0x3c058a++)for(let _0x4073cd=_0x10841f;_0x4073cd<=_0x431036;_0x4073cd++){const _0xda1e87=_0x5b9c25[_0x26e1e0(0x201)](this['_workbook'][_0x26e1e0(0x1cd)](),this['_worksheet'][_0x26e1e0(0x1d4)](),_0x3c058a,_0x4073cd);if(_0xda1e87){const _0x52f791=_0x5b9c25[_0x26e1e0(0x1de)](this[_0x26e1e0(0x1ff)][_0x26e1e0(0x1cd)](),this[_0x26e1e0(0x1e5)]['getSheetId'](),_0xda1e87);if(_0x52f791){_0x56c04a=_0x164dac[_0x26e1e0(0x1fc)](_0x52f791);break;}}}}_0x56c04a&&this[_0x26e1e0(0x1e4)]['executeCommand'](_0x46fd8a['id'],{'ranges':_0x4f0851,'combine':!0x0,'config':_0x56c04a,'isChangeDataSource':!0x1});}[_0x62a27c(0x1c5)](_0x5bea44){const _0x5d74b4=_0x62a27c,_0x403c29=this['_injector'][_0x5d74b4(0x1cb)](_0x322fa5);let _0x50e218;for(let _0xe0b496=0x0;_0xe0b496<_0x5bea44[_0x5d74b4(0x1d2)];_0xe0b496++){const _0x196a41=_0x5bea44[_0xe0b496],{startRow:_0x10aaf6,endRow:_0x44060b,startColumn:_0x25ef8c,endColumn:_0x4c8d2b}=_0x196a41;for(let _0x142c2d=_0x10aaf6;_0x142c2d<=_0x44060b;_0x142c2d++)for(let _0x502629=_0x25ef8c;_0x502629<=_0x4c8d2b;_0x502629++){const _0x10b557=_0x403c29['getSparkline'](this[_0x5d74b4(0x1ff)]['getUnitId'](),this['_worksheet'][_0x5d74b4(0x1d4)](),_0x142c2d,_0x502629);if(_0x10b557){const _0x32e33f=_0x403c29['getSparklineById'](this[_0x5d74b4(0x1ff)]['getUnitId'](),this['_worksheet'][_0x5d74b4(0x1d4)](),_0x10b557);if(_0x32e33f){_0x50e218=_0x164dac[_0x5d74b4(0x1fc)](_0x32e33f);break;}}}}_0x50e218||this[_0x5d74b4(0x1e4)][_0x5d74b4(0x1c2)](_0x46fd8a['id'],{'ranges':_0x5bea44,'unCombine':!0x0,'config':_0x50e218,'isChangeDataSource':!0x1});}[_0x62a27c(0x1e6)](_0x4bce22,_0x469923){const _0x432b25=_0x62a27c,_0x23236a=this[_0x432b25(0x1e2)][_0x432b25(0x1cb)](_0x322fa5),_0xc061d9=this['_workbook']['getUnitId'](),_0xc2a721=this[_0x432b25(0x1e5)]['getSheetId'](),_0x315b82=_0x23236a['getSparkline'](_0xc061d9,_0xc2a721,_0x4bce22,_0x469923);if(_0x315b82)return this['_injector']['createInstance'](C,_0xc061d9,_0xc2a721,_0x315b82,_0x4bce22,_0x469923);}[_0x62a27c(0x1ea)](_0x4cdd85,_0x372d4b){const _0x54dff0=_0x62a27c,_0x249347=this['_injector'][_0x54dff0(0x1cb)](_0x322fa5),_0x2b2219=this[_0x54dff0(0x1ff)][_0x54dff0(0x1cd)](),_0x518939=this['_worksheet'][_0x54dff0(0x1d4)](),_0x18b306=_0x249347[_0x54dff0(0x201)](_0x2b2219,_0x518939,_0x4cdd85,_0x372d4b);if(_0x18b306)return this[_0x54dff0(0x1e2)]['createInstance'](w,_0x2b2219,_0x518939,_0x18b306,_0x4cdd85,_0x372d4b);}}_0x4fbdd9['extend'](L);class Q extends _0x3e6964{get[_0x62a27c(0x1f1)](){return _0x2f9c58;}}function _0x41ed(_0x259008,_0xb2eaff){_0x259008=_0x259008-0x1c1;const _0x4957b6=_0x4957();let _0x41edda=_0x4957b6[_0x259008];return _0x41edda;}_0x3e6964['extend'](Q);class X extends _0x2e6c10{get['SheetSparklineChanged'](){return'SheetSparklineChanged';}}_0x2e6c10[_0x62a27c(0x202)](X);class Y extends _0x16f680{[_0x62a27c(0x1c6)](_0x26641f){const _0x22b7af=_0x62a27c,_0x25aea0=_0x26641f[_0x22b7af(0x1cb)](_0x35894d);this[_0x22b7af(0x1d1)](this[_0x22b7af(0x1e8)]['SheetSparklineChanged'],()=>_0x25aea0[_0x22b7af(0x1ca)](_0x54ec29=>{const _0xa303f6=_0x22b7af;var _0x5d2117,_0x1a19b8;if(_0x54ec29['id']===_0x46fd8a['id']){const _0x163b5c=_0x54ec29[_0xa303f6(0x1d6)];if(!_0x163b5c['isChangeDataSource']){const _0x1a2e50=this[_0xa303f6(0x1d7)](),_0x28f474=_0x1a2e50==null?void 0x0:_0x1a2e50[_0xa303f6(0x1c7)]();if(!_0x1a2e50||!_0x28f474)return;const _0xf219ad=_0x1a2e50['getId'](),_0x144e49=_0x28f474[_0xa303f6(0x1d4)](),_0x4a4e0b=this[_0xa303f6(0x1e2)][_0xa303f6(0x1cb)](_0x441487),_0x322476=this['_injector'][_0xa303f6(0x1cb)](_0x322fa5),_0x3fa9ec=(_0x5d2117=_0x163b5c==null?void 0x0:_0x163b5c[_0xa303f6(0x1db)])!=null?_0x5d2117:_0x4a4e0b['getCurrentSelections']()['map'](_0x366a0f=>_0x366a0f[_0xa303f6(0x1f0)]),_0x247688=(_0x1a19b8=_0x322476[_0xa303f6(0x1d8)]()[_0xa303f6(0x1ee)][_0xa303f6(0x1cb)](_0xf219ad))==null?void 0x0:_0x1a19b8['get'](_0x144e49),_0x4b7759=new Set();_0x3fa9ec['forEach'](_0x1bd5ad=>{const _0x579ced=_0xa303f6;var _0x3828f0;const {startRow:_0x469624,endRow:_0xa26d91,startColumn:_0x1cc8d7,endColumn:_0x46e642}=_0x1bd5ad;for(let _0x3a1e02=_0x469624;_0x3a1e02<=_0xa26d91;_0x3a1e02++)for(let _0x2dfa28=_0x1cc8d7;_0x2dfa28<=_0x46e642;_0x2dfa28++){const _0x5996b9=(_0x3828f0=_0x247688==null?void 0x0:_0x247688[_0x579ced(0x1d5)]['getValue'](_0x3a1e02,_0x2dfa28))==null?void 0x0:_0x3828f0[_0x579ced(0x1dc)];_0x5996b9&&_0x4b7759[_0x579ced(0x1ec)](_0x5996b9);}});const _0x3ea934=Array['from'](_0x4b7759)[_0xa303f6(0x1e9)](_0x497808=>_0x322476[_0xa303f6(0x1de)](_0xf219ad,_0x144e49,_0x497808))[_0xa303f6(0x1f8)](_0x5e9ad1=>!!_0x5e9ad1),_0x462902={'workbook':_0x1a2e50,'worksheet':_0x28f474,'sparklines':_0x3ea934};if(this[_0xa303f6(0x1fb)](this[_0xa303f6(0x1e8)][_0xa303f6(0x1d9)],_0x462902),_0x462902[_0xa303f6(0x1f6)])throw new Error(_0xa303f6(0x1f7));}}}));}}_0x16f680['extend'](Y);function _0x4957(){const _0x46e027=['map','getSparklineGroupByCell','_unitId','add','_col','sparklineAnchorMap','_subUnitId','range','SparklineTypeEnum','setConfig','item','266567oMPuwv','sparklines','cancel','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','filter','29826itrtVj','composeSparkline','fireEvent','deepClone','236OvHObV','10IozzOi','_workbook','30kklEID','getSparkline','extend','8LuNSjx','syncExecuteCommand','executeCommand','startColumn','changeDataSource','unComposeSparkline','_initialize','getActiveSheet','getSubUnitSparkline','1923HjLkco','onCommandExecuted','get','48drhupT','getUnitId','addSparkline','17707wBVhQf','group','registerEventHandler','length','1824713MYHRyL','getSheetId','matrix','params','getActiveWorkbook','getSparklineCache','SheetSparklineChanged','15908oBzhOb','ranges','groupId','getAllSubSparkline','getSparklineById','startRow','_groupId','1279242vjGBrQ','_injector','getOwnPropertyDescriptor','_commandService','_worksheet','getSparklineByCell','_row','Event'];_0x4957=function(){return _0x46e027;};return _0x4957();}export{C as FSparkline,w as FSparklineGroup};
|
|
1
|
+
const _0x3ae3d5=_0x2d3d;(function(_0x430184,_0x1e3c2c){const _0x546746=_0x2d3d,_0x54806a=_0x430184();while(!![]){try{const _0x2bc3a9=parseInt(_0x546746(0xe7))/0x1+parseInt(_0x546746(0xc7))/0x2*(parseInt(_0x546746(0xc2))/0x3)+parseInt(_0x546746(0xf1))/0x4+-parseInt(_0x546746(0xe4))/0x5+-parseInt(_0x546746(0xe6))/0x6*(parseInt(_0x546746(0xc4))/0x7)+parseInt(_0x546746(0xcd))/0x8+-parseInt(_0x546746(0xd1))/0x9;if(_0x2bc3a9===_0x1e3c2c)break;else _0x54806a['push'](_0x54806a['shift']());}catch(_0x279eb5){_0x54806a['push'](_0x54806a['shift']());}}}(_0x8f6f,0x65b24));import{SparklineDataSourceModel as _0x5adcd5,SetSheetSparklineCommand as _0x663f7,RemoveSheetSparklineCommand as _0xce3f4b,AddSheetSparklineCommand as _0x14846a,SparklineTypeEnum as _0x207616}from'@univerjs-pro/sheets-sparkline';import{Inject as _0xc88fe5,Injector as _0x27dd0c,ICommandService as _0x565179,Tools as _0x4cc8ca}from'@univerjs/core';import{FWorksheet as _0x4294e8}from'@univerjs/sheets/facade';import{FEnum as _0x1745e2,FEventName as _0x1ee0b6,FUniver as _0x10df0b}from'@univerjs/core/facade';function _0x2d3d(_0x579333,_0xf0eecc){_0x579333=_0x579333-0xb7;const _0x8f6fa7=_0x8f6f();let _0x2d3d43=_0x8f6fa7[_0x579333];return _0x2d3d43;}import{SheetsSelectionsService as _0x29bd44}from'@univerjs/sheets';function _0x8f6f(){const _0x1700e6=['12cBSHZi','441857pttVbc','_unitId','registerEventHandler','Event','length','add','from','sparklineAnchorMap','_commandService','getValue','1820928lTnAcR','getCurrentSelections','getSparklineById','_workbook','getSparklineCache','matrix','changeDataSource','_row','getSheetId','getSparklineGroupByCell','group','params','51mnwYQr','_injector','910840KIEGWf','range','isChangeDataSource','28658jMIwgj','SparklineTypeEnum','executeCommand','map','_subUnitId','_col','961752vFzUxB','getUnitId','_groupId','addSparkline','1095993CTAzuV','extend','unComposeSparkline','getOwnPropertyDescriptor','fireEvent','_initialize','getActiveWorkbook','startColumn','SheetSparklineChanged','getSparkline','syncExecuteCommand','getAllSubSparkline','getId','setConfig','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','startRow','sparklines','removeSparklineGroup','get','2311680cWMnXZ','_worksheet'];_0x8f6f=function(){return _0x1700e6;};return _0x8f6f();}var z=Object[_0x3ae3d5(0xd4)],H=(_0x4ae063,_0x97ada3,_0x145935,_0x5954e6)=>{const _0x49c588=_0x3ae3d5;for(var _0x413d99=_0x5954e6>0x1?void 0x0:_0x5954e6?z(_0x97ada3,_0x145935):_0x97ada3,_0x45ed01=_0x4ae063[_0x49c588(0xeb)]-0x1,_0x260eb7;_0x45ed01>=0x0;_0x45ed01--)(_0x260eb7=_0x4ae063[_0x45ed01])&&(_0x413d99=_0x260eb7(_0x413d99)||_0x413d99);return _0x413d99;},V=(_0x3c81f8,_0x128bc2)=>(_0x1d5f0c,_0x452c09)=>_0x128bc2(_0x1d5f0c,_0x452c09,_0x3c81f8);let C=class{constructor(_0x15028b,_0x25c93f,_0x258687,_0xc3e40e,_0x3142c1,_0x58b8d5){const _0x409617=_0x3ae3d5;this[_0x409617(0xe8)]=_0x15028b,this[_0x409617(0xcb)]=_0x25c93f,this[_0x409617(0xcf)]=_0x258687,this[_0x409617(0xbd)]=_0xc3e40e,this['_col']=_0x3142c1,this['_injector']=_0x58b8d5;}[_0x3ae3d5(0xbc)](_0x4ae3f3,_0x3dbb3f){const _0x2527f2=_0x3ae3d5,_0x15829b=this[_0x2527f2(0xc3)][_0x2527f2(0xe3)](_0x5adcd5),_0x26e954=this['_injector'][_0x2527f2(0xe3)](_0x565179),_0x493d09=_0x15829b[_0x2527f2(0xb8)](this[_0x2527f2(0xe8)],this[_0x2527f2(0xcb)],this[_0x2527f2(0xcf)]);if(!_0x493d09)return;const _0x2fb2fd={'config':_0x493d09,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':'item','sourceRanges':[_0x4ae3f3],'targetRanges':[_0x3dbb3f],'primary':{'startRow':this[_0x2527f2(0xbd)],'startColumn':this[_0x2527f2(0xcc)],'endRow':this['_row'],'endColumn':this['_col'],'actualRow':this[_0x2527f2(0xbd)],'actualColumn':this[_0x2527f2(0xcc)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x26e954[_0x2527f2(0xdb)](_0x663f7['id'],_0x2fb2fd),this[_0x2527f2(0xbd)]=_0x3dbb3f[_0x2527f2(0xe0)],this[_0x2527f2(0xcc)]=_0x3dbb3f[_0x2527f2(0xd8)],this;}['removeSparkline'](){const _0x47bed0=_0x3ae3d5,_0x529373=this[_0x47bed0(0xc3)]['get'](_0x565179),_0x482a98={'isSingle':!0x0,'ranges':[{'startRow':this[_0x47bed0(0xbd)],'startColumn':this[_0x47bed0(0xcc)],'endRow':this[_0x47bed0(0xbd)],'endColumn':this[_0x47bed0(0xcc)]}]};_0x529373[_0x47bed0(0xdb)](_0xce3f4b['id'],_0x482a98);}};C=H([V(0x5,_0xc88fe5(_0x27dd0c))],C);var q=Object[_0x3ae3d5(0xd4)],J=(_0x2b59b0,_0x4b7976,_0x12a364,_0x4a788c)=>{const _0x1257e4=_0x3ae3d5;for(var _0x274208=_0x4a788c>0x1?void 0x0:_0x4a788c?q(_0x4b7976,_0x12a364):_0x4b7976,_0xf0eae9=_0x2b59b0[_0x1257e4(0xeb)]-0x1,_0x13922b;_0xf0eae9>=0x0;_0xf0eae9--)(_0x13922b=_0x2b59b0[_0xf0eae9])&&(_0x274208=_0x13922b(_0x274208)||_0x274208);return _0x274208;},K=(_0x4e6419,_0xb90eab)=>(_0x241711,_0x3e3952)=>_0xb90eab(_0x241711,_0x3e3952,_0x4e6419);let w=class{constructor(_0xc6c6c5,_0x2fcbc6,_0x1a5ae5,_0x4ef6dc,_0x27a54d,_0x5866c5){const _0x341035=_0x3ae3d5;this[_0x341035(0xe8)]=_0xc6c6c5,this[_0x341035(0xcb)]=_0x2fcbc6,this[_0x341035(0xcf)]=_0x1a5ae5,this[_0x341035(0xbd)]=_0x4ef6dc,this[_0x341035(0xcc)]=_0x27a54d,this[_0x341035(0xc3)]=_0x5866c5;}['changeDataSource'](_0xa33d1c,_0x102b47){const _0x39a9ef=_0x3ae3d5,_0x52d186=this[_0x39a9ef(0xc3)][_0x39a9ef(0xe3)](_0x5adcd5),_0x5d97a5=this['_injector'][_0x39a9ef(0xe3)](_0x565179),_0x5bc60b=_0x52d186[_0x39a9ef(0xb8)](this[_0x39a9ef(0xe8)],this[_0x39a9ef(0xcb)],this['_groupId']);if(!_0x5bc60b)return;const _0xfc9f1b={'config':_0x5bc60b,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x39a9ef(0xcf)],'resetType':_0x39a9ef(0xc0),'sourceRanges':_0xa33d1c,'targetRanges':_0x102b47,'primary':{'startRow':this[_0x39a9ef(0xbd)],'startColumn':this[_0x39a9ef(0xcc)],'endRow':this[_0x39a9ef(0xbd)],'endColumn':this[_0x39a9ef(0xcc)],'actualRow':this[_0x39a9ef(0xbd)],'actualColumn':this[_0x39a9ef(0xcc)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x5d97a5['syncExecuteCommand'](_0x663f7['id'],_0xfc9f1b),this[_0x39a9ef(0xbd)]=_0x102b47[0x0]['startRow'],this['_col']=_0x102b47[0x0]['startColumn'],this;}[_0x3ae3d5(0xe2)](){const _0x1b84fd=_0x3ae3d5,_0xb3e570=this[_0x1b84fd(0xc3)]['get'](_0x565179),_0x35af28={'isSingle':!0x1,'ranges':[{'startRow':this[_0x1b84fd(0xbd)],'startColumn':this[_0x1b84fd(0xcc)],'endRow':this[_0x1b84fd(0xbd)],'endColumn':this[_0x1b84fd(0xcc)]}]};_0xb3e570['syncExecuteCommand'](_0xce3f4b['id'],_0x35af28);}[_0x3ae3d5(0xde)](_0x1e7c9f){const _0x40fecd=_0x3ae3d5,_0x530368=this[_0x40fecd(0xc3)]['get'](_0x5adcd5)['getSparklineById'](this[_0x40fecd(0xe8)],this[_0x40fecd(0xcb)],this['_groupId']);if(_0x530368){const _0xcb4ec2={'config':{'config':_0x1e7c9f,'sparklines':_0x530368[_0x40fecd(0xe1)]},'isChangeDataSource':!0x1};this[_0x40fecd(0xc3)][_0x40fecd(0xe3)](_0x565179)[_0x40fecd(0xdb)](_0x663f7['id'],_0xcb4ec2);}return this;}};w=J([K(0x5,_0xc88fe5(_0x27dd0c))],w);class L extends _0x4294e8{[_0x3ae3d5(0xd0)](_0xee5292,_0x775a50,_0x23ee48){const _0x900797=_0x3ae3d5;if(this[_0x900797(0xef)][_0x900797(0xdb)](_0x14846a['id'],{'sourceRanges':_0xee5292,'targetRanges':_0x775a50,'targetInfo':{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x900797(0xe5)][_0x900797(0xbe)]()},'config':{'type':_0x23ee48}})){const {startRow:_0x5b2c69,startColumn:_0x436ebc}=_0x775a50[0x0];return this['getSparklineByCell'](_0x5b2c69,_0x436ebc);}}[_0x3ae3d5(0xdc)](){const _0x562fc3=_0x3ae3d5;return this[_0x562fc3(0xc3)][_0x562fc3(0xe3)](_0x5adcd5)['getSubUnitSparkline'](this['_workbook'][_0x562fc3(0xce)](),this[_0x562fc3(0xe5)][_0x562fc3(0xbe)]());}['composeSparkline'](_0x1edd12){const _0x24f548=_0x3ae3d5,_0x58f387=this['_injector'][_0x24f548(0xe3)](_0x5adcd5);let _0x5bec81;for(let _0x1614d7=0x0;_0x1614d7<_0x1edd12[_0x24f548(0xeb)];_0x1614d7++){const _0x1d53f9=_0x1edd12[_0x1614d7],{startRow:_0x106e4c,endRow:_0x4c736e,startColumn:_0x270578,endColumn:_0x42ba92}=_0x1d53f9;for(let _0x80bae4=_0x106e4c;_0x80bae4<=_0x4c736e;_0x80bae4++)for(let _0x1baf85=_0x270578;_0x1baf85<=_0x42ba92;_0x1baf85++){const _0x2cd582=_0x58f387[_0x24f548(0xda)](this[_0x24f548(0xb9)][_0x24f548(0xce)](),this[_0x24f548(0xe5)]['getSheetId'](),_0x80bae4,_0x1baf85);if(_0x2cd582){const _0x192eb4=_0x58f387['getSparklineById'](this[_0x24f548(0xb9)]['getUnitId'](),this[_0x24f548(0xe5)]['getSheetId'](),_0x2cd582);if(_0x192eb4){_0x5bec81=_0x4cc8ca['deepClone'](_0x192eb4);break;}}}}_0x5bec81&&this['_commandService']['executeCommand'](_0x663f7['id'],{'ranges':_0x1edd12,'combine':!0x0,'config':_0x5bec81,'isChangeDataSource':!0x1});}[_0x3ae3d5(0xd3)](_0x162899){const _0x3fdad5=_0x3ae3d5,_0x17b207=this[_0x3fdad5(0xc3)]['get'](_0x5adcd5);let _0xbff7ad;for(let _0x4c85b7=0x0;_0x4c85b7<_0x162899['length'];_0x4c85b7++){const _0x55e017=_0x162899[_0x4c85b7],{startRow:_0x638d9,endRow:_0x557ba8,startColumn:_0x34f09b,endColumn:_0x5a692a}=_0x55e017;for(let _0x3eb7c1=_0x638d9;_0x3eb7c1<=_0x557ba8;_0x3eb7c1++)for(let _0x6dc9c2=_0x34f09b;_0x6dc9c2<=_0x5a692a;_0x6dc9c2++){const _0x3b17a1=_0x17b207[_0x3fdad5(0xda)](this['_workbook']['getUnitId'](),this[_0x3fdad5(0xe5)][_0x3fdad5(0xbe)](),_0x3eb7c1,_0x6dc9c2);if(_0x3b17a1){const _0xb994de=_0x17b207[_0x3fdad5(0xb8)](this[_0x3fdad5(0xb9)][_0x3fdad5(0xce)](),this[_0x3fdad5(0xe5)][_0x3fdad5(0xbe)](),_0x3b17a1);if(_0xb994de){_0xbff7ad=_0x4cc8ca['deepClone'](_0xb994de);break;}}}}_0xbff7ad||this[_0x3fdad5(0xef)][_0x3fdad5(0xc9)](_0x663f7['id'],{'ranges':_0x162899,'unCombine':!0x0,'config':_0xbff7ad,'isChangeDataSource':!0x1});}['getSparklineByCell'](_0x2a2095,_0x5b124e){const _0x6b4123=_0x3ae3d5,_0x14ebed=this[_0x6b4123(0xc3)][_0x6b4123(0xe3)](_0x5adcd5),_0x5680e2=this['_workbook'][_0x6b4123(0xce)](),_0x5c7745=this[_0x6b4123(0xe5)][_0x6b4123(0xbe)](),_0x5bfc05=_0x14ebed[_0x6b4123(0xda)](_0x5680e2,_0x5c7745,_0x2a2095,_0x5b124e);if(_0x5bfc05)return this[_0x6b4123(0xc3)]['createInstance'](C,_0x5680e2,_0x5c7745,_0x5bfc05,_0x2a2095,_0x5b124e);}[_0x3ae3d5(0xbf)](_0x4fbc35,_0xcbddf){const _0x3bcbc6=_0x3ae3d5,_0xf7fa38=this[_0x3bcbc6(0xc3)][_0x3bcbc6(0xe3)](_0x5adcd5),_0x196c9e=this['_workbook'][_0x3bcbc6(0xce)](),_0x6f9ab8=this[_0x3bcbc6(0xe5)][_0x3bcbc6(0xbe)](),_0x580d01=_0xf7fa38[_0x3bcbc6(0xda)](_0x196c9e,_0x6f9ab8,_0x4fbc35,_0xcbddf);if(_0x580d01)return this[_0x3bcbc6(0xc3)]['createInstance'](w,_0x196c9e,_0x6f9ab8,_0x580d01,_0x4fbc35,_0xcbddf);}}_0x4294e8[_0x3ae3d5(0xd2)](L);class Q extends _0x1745e2{get[_0x3ae3d5(0xc8)](){return _0x207616;}}_0x1745e2[_0x3ae3d5(0xd2)](Q);class X extends _0x1ee0b6{get[_0x3ae3d5(0xd9)](){const _0x8630ed=_0x3ae3d5;return _0x8630ed(0xd9);}}_0x1ee0b6['extend'](X);class Y extends _0x10df0b{[_0x3ae3d5(0xd6)](_0x25069b){const _0x466de5=_0x3ae3d5,_0x1274cb=_0x25069b[_0x466de5(0xe3)](_0x565179);this[_0x466de5(0xe9)](this['Event']['SheetSparklineChanged'],()=>_0x1274cb['onCommandExecuted'](_0xd5bae3=>{const _0xe4b922=_0x466de5;var _0x196efb,_0x9491c;if(_0xd5bae3['id']===_0x663f7['id']){const _0x289f37=_0xd5bae3[_0xe4b922(0xc1)];if(!_0x289f37[_0xe4b922(0xc6)]){const _0x282724=this[_0xe4b922(0xd7)](),_0x3f0cf9=_0x282724==null?void 0x0:_0x282724['getActiveSheet']();if(!_0x282724||!_0x3f0cf9)return;const _0x43771e=_0x282724[_0xe4b922(0xdd)](),_0x4aef6c=_0x3f0cf9[_0xe4b922(0xbe)](),_0x444551=this['_injector'][_0xe4b922(0xe3)](_0x29bd44),_0x12fbab=this[_0xe4b922(0xc3)][_0xe4b922(0xe3)](_0x5adcd5),_0x2fe580=(_0x196efb=_0x289f37==null?void 0x0:_0x289f37['ranges'])!=null?_0x196efb:_0x444551[_0xe4b922(0xb7)]()[_0xe4b922(0xca)](_0x4f7ec3=>_0x4f7ec3[_0xe4b922(0xc5)]),_0x1b4012=(_0x9491c=_0x12fbab[_0xe4b922(0xba)]()[_0xe4b922(0xee)]['get'](_0x43771e))==null?void 0x0:_0x9491c['get'](_0x4aef6c),_0xf179dd=new Set();_0x2fe580['forEach'](_0x54315c=>{const _0x4e5429=_0xe4b922;var _0x3af699;const {startRow:_0x23936a,endRow:_0x557024,startColumn:_0x4596b4,endColumn:_0x227905}=_0x54315c;for(let _0x32b8a3=_0x23936a;_0x32b8a3<=_0x557024;_0x32b8a3++)for(let _0x1bd229=_0x4596b4;_0x1bd229<=_0x227905;_0x1bd229++){const _0x2696f1=(_0x3af699=_0x1b4012==null?void 0x0:_0x1b4012[_0x4e5429(0xbb)][_0x4e5429(0xf0)](_0x32b8a3,_0x1bd229))==null?void 0x0:_0x3af699['groupId'];_0x2696f1&&_0xf179dd[_0x4e5429(0xec)](_0x2696f1);}});const _0x2c9ed1=Array[_0xe4b922(0xed)](_0xf179dd)['map'](_0x357f07=>_0x12fbab[_0xe4b922(0xb8)](_0x43771e,_0x4aef6c,_0x357f07))['filter'](_0x37b568=>!!_0x37b568),_0x4a8a49={'workbook':_0x282724,'worksheet':_0x3f0cf9,'sparklines':_0x2c9ed1};if(this[_0xe4b922(0xd5)](this[_0xe4b922(0xea)][_0xe4b922(0xd9)],_0x4a8a49),_0x4a8a49['cancel'])throw new Error(_0xe4b922(0xdf));}}}));}}_0x10df0b[_0x3ae3d5(0xd2)](Y);export{C as FSparkline,w as FSparklineGroup};
|