@univerjs-pro/sheets-sparkline 0.6.3 → 0.6.4
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/types/facade/f-event.d.ts +5 -2
- package/lib/types/facade/f-sparkline-group.d.ts +49 -19
- package/lib/types/facade/f-sparkline.d.ts +23 -18
- package/lib/types/facade/f-worksheet.d.ts +84 -52
- 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
|
-
const _0x56d897=_0x30c8;function _0x30c8(_0x33a7ee,_0x277c82){const _0x243649=_0x2436();return _0x30c8=function(_0x30c8b4,_0x1bda8d){_0x30c8b4=_0x30c8b4-0x1ac;let _0x43b09a=_0x243649[_0x30c8b4];return _0x43b09a;},_0x30c8(_0x33a7ee,_0x277c82);}(function(_0x3befff,_0x48815f){const _0x3c10f1=_0x30c8,_0x37176e=_0x3befff();while(!![]){try{const _0x59e67f=-parseInt(_0x3c10f1(0x1c4))/0x1+-parseInt(_0x3c10f1(0x25c))/0x2*(-parseInt(_0x3c10f1(0x220))/0x3)+parseInt(_0x3c10f1(0x1d1))/0x4+-parseInt(_0x3c10f1(0x1cb))/0x5*(parseInt(_0x3c10f1(0x1ea))/0x6)+-parseInt(_0x3c10f1(0x1b2))/0x7*(parseInt(_0x3c10f1(0x1e9))/0x8)+-parseInt(_0x3c10f1(0x223))/0x9+parseInt(_0x3c10f1(0x23a))/0xa;if(_0x59e67f===_0x48815f)break;else _0x37176e['push'](_0x37176e['shift']());}catch(_0x260fed){_0x37176e['push'](_0x37176e['shift']());}}}(_0x2436,0xdfd92));var qe=Object[_0x56d897(0x203)],Qe=(_0x468878,_0x1fc04c,_0xb14ac2)=>_0x1fc04c in _0x468878?qe(_0x468878,_0x1fc04c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb14ac2}):_0x468878[_0x1fc04c]=_0xb14ac2,se=(_0x50048f,_0x1bc0f8,_0x3a1755)=>Qe(_0x50048f,typeof _0x1bc0f8!=_0x56d897(0x20d)?_0x1bc0f8+'':_0x1bc0f8,_0x3a1755);import{UniverLicensePlugin as _0x525b1b}from'@univerjs-pro/license';import{ObjectMatrix as _0x1f7ee4,Inject as _0x3b19d5,IUniverInstanceService as _0x2a8d55,Disposable as _0x1a99b7,isValidRange as _0x2034ad,CellValueType as _0x11015d,ColorKit as _0x2af62e,CommandType as _0xf041c8,Range as _0x7aad20,IUndoRedoService as _0x514840,generateRandomId as _0x4a9ed1,ICommandService as _0x12c58b,Tools as _0x57048e,sequenceExecute as _0x2f224d,Rectangle as _0x6f8ace,cellToRange as _0x217cdd,DisposableCollection as _0x3247f5,RANGE_TYPE as _0x45ee70,UniverInstanceType as _0x57b9c6,IResourceManagerService as _0x3b9b0d,DependentOn as _0x5289f3,Injector as _0x58eee3,Plugin as _0x2cecd9,touchDependencies as _0x1cce8f}from'@univerjs/core';import{getSheetCommandTarget as _0x3ff7f5,SheetsSelectionsService as _0x1974d4,SheetInterceptorService as _0x2b1f4e,ClearSelectionAllCommand as _0x13d72c,CopySheetCommand as _0x23496c,IExclusiveRangeService as _0x183cb2,SetRangeValuesMutation as _0x475b9b,ReorderRangeMutation as _0x23a376,SetRowHiddenMutation as _0x3134c0,SetColHiddenMutation as _0x19c7f8,SetRowVisibleMutation as _0x832edf,SetColVisibleMutation as _0x40d7d2,AddWorksheetMergeCommand as _0x3c5a4d,RefRangeService as _0x4c800f,SetWorksheetActivateCommand as _0x1fc2fd,RemoveRowCommand as _0xb260ae,RemoveColCommand as _0x2c060b,adjustRangeOnMutation as _0x5716f0,RemoveRowMutation as _0x4c70ad,RemoveColMutation as _0x3fc8cc,InsertColMutation as _0x10a3db,InsertRowMutation as _0x5bcb04,MoveColsMutation as _0x585718,MoveRowsMutation as _0x489d60,MoveRangeMutation as _0x43b2dc}from'@univerjs/sheets';import{Subject as _0x41adef}from'rxjs';function Fe(_0x563b22,_0x530427){const _0xdb5b9f=_0x56d897,_0x586674=new _0x1f7ee4(),_0xaffdd0=[],_0xc71d47=_0x563b22[_0xdb5b9f(0x25f)]>0x1;let _0x2dfa60=0x0,_0x43bd6e=0x0;for(const _0x1f0d12 of _0x563b22)_0x2dfa60+=_0x1f0d12[_0xdb5b9f(0x1dd)]-_0x1f0d12[_0xdb5b9f(0x1f4)]+0x1,_0x43bd6e+=_0x1f0d12[_0xdb5b9f(0x1e3)]-_0x1f0d12['startColumn']+0x1;for(const _0x10458b of _0x530427)for(let _0x12b3fe=_0x10458b[_0xdb5b9f(0x1f4)];_0x12b3fe<=_0x10458b[_0xdb5b9f(0x1dd)];_0x12b3fe++)for(let _0x74aae7=_0x10458b[_0xdb5b9f(0x1af)];_0x74aae7<=_0x10458b[_0xdb5b9f(0x1e3)];_0x74aae7++)_0xaffdd0[_0xdb5b9f(0x237)]({'row':_0x12b3fe,'column':_0x74aae7});if(_0xaffdd0[_0xdb5b9f(0x25f)]===_0x2dfa60)_0xc71d47?_0xaffdd0[_0xdb5b9f(0x1fd)]((_0x52ce12,_0x3aacbc)=>{const _0x57ac71=_0xdb5b9f,_0x4c396c=_0x563b22[_0x3aacbc],_0xcb0fb0={'startRow':_0x4c396c[_0x57ac71(0x1f4)],'startColumn':_0x4c396c[_0x57ac71(0x1af)],'endRow':_0x4c396c['startRow'],'endColumn':_0x4c396c[_0x57ac71(0x1e3)]};_0x586674[_0x57ac71(0x1f2)](_0x52ce12[_0x57ac71(0x1c5)],_0x52ce12[_0x57ac71(0x250)],_0xcb0fb0);}):_0xaffdd0[_0xdb5b9f(0x1fd)]((_0x350d1e,_0x594bb3)=>{const _0x5f045e=_0xdb5b9f,_0x89498c=_0x563b22[0x0],_0x18fc0a={'startRow':_0x89498c[_0x5f045e(0x1f4)]+_0x594bb3,'startColumn':_0x89498c['startColumn'],'endRow':_0x89498c[_0x5f045e(0x1f4)]+_0x594bb3,'endColumn':_0x89498c[_0x5f045e(0x1e3)]};_0x586674['setValue'](_0x350d1e[_0x5f045e(0x1c5)],_0x350d1e[_0x5f045e(0x250)],_0x18fc0a);});else{if(_0xaffdd0['length']===_0x43bd6e)_0xc71d47?_0xaffdd0[_0xdb5b9f(0x1fd)]((_0x20ad26,_0x501a75)=>{const _0x20f3fe=_0xdb5b9f,_0x144821=_0x563b22[_0x501a75],_0x21a559={'startRow':_0x144821[_0x20f3fe(0x1f4)],'startColumn':_0x144821['startColumn'],'endRow':_0x144821[_0x20f3fe(0x1dd)],'endColumn':_0x144821['startColumn']};_0x586674[_0x20f3fe(0x1f2)](_0x20ad26[_0x20f3fe(0x1c5)],_0x20ad26[_0x20f3fe(0x250)],_0x21a559);}):_0xaffdd0[_0xdb5b9f(0x1fd)]((_0x352da6,_0x598381)=>{const _0x5430ae=_0xdb5b9f,_0x5d5c99=_0x563b22[0x0],_0x10092c={'startRow':_0x5d5c99[_0x5430ae(0x1f4)],'startColumn':_0x5d5c99[_0x5430ae(0x1af)]+_0x598381,'endRow':_0x5d5c99['endRow'],'endColumn':_0x5d5c99['startColumn']+_0x598381};_0x586674[_0x5430ae(0x1f2)](_0x352da6[_0x5430ae(0x1c5)],_0x352da6[_0x5430ae(0x250)],_0x10092c);});else{if(_0xaffdd0['length']===_0x563b22[_0xdb5b9f(0x25f)])_0x563b22[_0xdb5b9f(0x1d0)](_0x2562b7=>!(_0x2562b7[_0xdb5b9f(0x1f4)]!==_0x2562b7['endRow']&&_0x2562b7['startColumn']!==_0x2562b7['endColumn']))&&_0xaffdd0['forEach']((_0x381d7a,_0xd2cbe9)=>{const _0x4b7c12=_0xdb5b9f,_0x6d82b4=_0x563b22[_0xd2cbe9];_0x586674[_0x4b7c12(0x1f2)](_0x381d7a['row'],_0x381d7a[_0x4b7c12(0x250)],_0x6d82b4);});else throw new Error(_0xdb5b9f(0x257));}}return _0x586674;}const Ke='SHEET_SPARKLINE_PLUGIN',Le={'standard':[_0x56d897(0x259),_0x56d897(0x1bd)],'specialty':[_0x56d897(0x1fa),_0x56d897(0x1fe)],'distinctive':[_0x56d897(0x20e),_0x56d897(0x264)],'soft':['rgb(80,102,248)',_0x56d897(0x225)],'fresh':[_0x56d897(0x22c),_0x56d897(0x21d)]},on=['highPoint',_0x56d897(0x232),_0x56d897(0x229),_0x56d897(0x245),'negativePoint','markersPoint'];var Xe=(_0x7c32b6=>(_0x7c32b6[_0x56d897(0x23f)]=_0x56d897(0x1b8),_0x7c32b6['SPECIALTY']=_0x56d897(0x221),_0x7c32b6[_0x56d897(0x23c)]='distinctive',_0x7c32b6['SOFT']=_0x56d897(0x263),_0x7c32b6['FRESH']=_0x56d897(0x25e),_0x7c32b6[_0x56d897(0x1f3)]=_0x56d897(0x262),_0x7c32b6))(Xe||{}),Dt=(_0x2524e5=>(_0x2524e5[_0x2524e5['LINE_CHART']=0x1]=_0x56d897(0x252),_0x2524e5[_0x2524e5[_0x56d897(0x20a)]=0x2]=_0x56d897(0x20a),_0x2524e5[_0x2524e5['PROFIT_AND_LOSS_CHART']=0x3]=_0x56d897(0x1ca),_0x2524e5[_0x2524e5['PIE_CHART']=0x4]=_0x56d897(0x238),_0x2524e5))(Dt||{}),z=(_0x3a0b3f=>(_0x3a0b3f[_0x56d897(0x255)]=_0x56d897(0x1c1),_0x3a0b3f[_0x56d897(0x1d6)]=_0x56d897(0x249),_0x3a0b3f[_0x56d897(0x1fc)]=_0x56d897(0x1ef),_0x3a0b3f))(z||{}),Ee=(_0x38f985=>(_0x38f985[_0x38f985[_0x56d897(0x1e0)]=0x1]=_0x56d897(0x1e0),_0x38f985[_0x38f985[_0x56d897(0x22d)]=0x2]=_0x56d897(0x22d),_0x38f985[_0x38f985['CUSTOM_EXTREMUM']=0x3]=_0x56d897(0x224),_0x38f985))(Ee||{}),Et=Object[_0x56d897(0x239)],Vt=(_0x496274,_0x4cb0d4,_0x5aff14,_0x2195d5)=>{for(var _0x436d6e=_0x2195d5>0x1?void 0x0:_0x2195d5?Et(_0x4cb0d4,_0x5aff14):_0x4cb0d4,_0x3ddbc1=_0x496274['length']-0x1,_0x1288c0;_0x3ddbc1>=0x0;_0x3ddbc1--)(_0x1288c0=_0x496274[_0x3ddbc1])&&(_0x436d6e=_0x1288c0(_0x436d6e)||_0x436d6e);return _0x436d6e;},yt=(_0x18f470,_0x2f6bf7)=>(_0x379370,_0x480dde)=>_0x2f6bf7(_0x379370,_0x480dde,_0x18f470);let x=class extends _0x1a99b7{constructor(_0x5872ca){const _0x16bb7a=_0x56d897;super(),se(this,_0x16bb7a(0x1f5),new Map()),se(this,'_sparklineAnchorMap',new Map()),se(this,_0x16bb7a(0x1ce),new _0x41adef()),se(this,_0x16bb7a(0x1b5),this['_updateConfig$'][_0x16bb7a(0x20f)]()),this[_0x16bb7a(0x248)]=_0x5872ca;}[_0x56d897(0x24a)](_0x32a50b,_0x1acbc9){const _0x5920ea=_0x56d897;let _0x1e4072=this['_sparklineModel'][_0x5920ea(0x1d8)](_0x32a50b);_0x1e4072||(_0x1e4072=new Map(),this[_0x5920ea(0x1f5)][_0x5920ea(0x1c9)](_0x32a50b,_0x1e4072));let _0x5f3f38=_0x1e4072[_0x5920ea(0x1d8)](_0x1acbc9);return _0x5f3f38||(_0x5f3f38=new Map(),_0x1e4072[_0x5920ea(0x1c9)](_0x1acbc9,_0x5f3f38)),_0x5f3f38;}['_ensureAnchorMatrix'](_0x4d7376,_0x348aff){const _0x3ab603=_0x56d897;let _0x2b2eff=this[_0x3ab603(0x217)]['get'](_0x4d7376);_0x2b2eff||(_0x2b2eff=new Map(),this['_sparklineAnchorMap'][_0x3ab603(0x1c9)](_0x4d7376,_0x2b2eff));let _0x5519eb=_0x2b2eff['get'](_0x348aff);return _0x5519eb||(_0x5519eb={'matrix':new _0x1f7ee4(),'extra':{}},_0x2b2eff['set'](_0x348aff,_0x5519eb)),_0x5519eb;}['updateSparklineExtraNum'](_0x31708a,_0x4861d1,_0x3f295b,_0xde191a=_0x56d897(0x1c9)){const _0x1f9571=_0x56d897;var _0x34a74e,_0x1a6aaf,_0x3c79c5,_0x396c07,_0x54cbc9,_0x20013a,_0x1c2b9a,_0x2cac49,_0x57e5cd,_0x520b8e,_0x37eebc,_0x5a2b71,_0x157bce;const _0x5bbb36=(_0x1a6aaf=(_0x34a74e=this[_0x1f9571(0x1f5)][_0x1f9571(0x1d8)](_0x31708a))==null?void 0x0:_0x34a74e[_0x1f9571(0x1d8)](_0x4861d1))==null?void 0x0:_0x1a6aaf['get'](_0x3f295b);if(!_0x5bbb36)return;const _0x42035a=_0x3ff7f5(this['_univerInstanceService'],{'unitId':_0x31708a,'subUnitId':_0x4861d1});if(!_0x42035a)throw new Error(_0x1f9571(0x242));const _0x5f3e6a=this[_0x1f9571(0x231)](_0x31708a,_0x4861d1),{extra:_0x2d0c1b,matrix:_0x39a2a6}=_0x5f3e6a,{worksheet:_0x5dc9be}=_0x42035a;let _0x11c44f=Number[_0x1f9571(0x1e5)],_0x46ab05=Number['MAX_SAFE_INTEGER'];const _0x17f277=(_0x3c79c5=_0x5bbb36[_0x1f9571(0x256)][_0x1f9571(0x233)])!=null?_0x3c79c5:!0x1;_0x5bbb36['sparklines'][_0x1f9571(0x1df)]((_0x45251b,_0x3e6c67,_0x435369)=>{const _0x1fcc76=_0x1f9571;var _0x399563,_0x18b703,_0x4ed024;const _0x3530bc=_0x435369;let _0xbfe4f=Number[_0x1fcc76(0x1e5)],_0x5ec027=Number[_0x1fcc76(0x234)],_0x5137e5=0x0,_0x1c6e05=0x0;const _0x26b3ba=[];if(!_0x2034ad(_0x3530bc))_0x39a2a6[_0x1fcc76(0x1f2)](_0x45251b,_0x3e6c67,{'groupId':_0x3f295b,'data':[],'max':_0xbfe4f,'min':_0x5ec027,'highIndex':_0x5137e5,'lowIndex':_0x1c6e05,'negativeIndexes':_0x26b3ba});else{const _0x2ca705=[];for(let _0x4b8670=_0x3530bc[_0x1fcc76(0x1f4)];_0x4b8670<=_0x3530bc[_0x1fcc76(0x1dd)];_0x4b8670++){for(let _0x3852b8=_0x3530bc[_0x1fcc76(0x1af)];_0x3852b8<=_0x3530bc[_0x1fcc76(0x1e3)];_0x3852b8++){const _0x4369ef=_0x5dc9be[_0x1fcc76(0x22f)](_0x4b8670),_0x299031=_0x5dc9be['getColVisible'](_0x3852b8);if(!_0x17f277&&(!_0x4369ef||!_0x299031))continue;let _0x19feba=0x0;const _0x287e84=((_0x399563=_0x5dc9be[_0x1fcc76(0x23d)](_0x4b8670,_0x3852b8))==null?void 0x0:_0x399563['v'])!==void 0x0?_0x5dc9be[_0x1fcc76(0x23d)](_0x4b8670,_0x3852b8):_0x5dc9be[_0x1fcc76(0x1f9)](_0x4b8670,_0x3852b8);if(!_0x287e84||_0x287e84['v']===void 0x0||_0x287e84['v']===null){const _0x116193=(_0x18b703=_0x5bbb36['config']['emptyShowAs'])!=null?_0x18b703:z['SPACING'];_0x116193===z['ZERO_VALUE']?_0x19feba=0x0:_0x116193===z[_0x1fcc76(0x255)]?_0x19feba=_0x1fcc76(0x244):_0x116193===z[_0x1fcc76(0x1fc)]&&(_0x19feba=_0x1fcc76(0x216));}else{if(_0x287e84['t']===_0x11015d[_0x1fcc76(0x21a)]||_0x287e84['t']===_0x11015d[_0x1fcc76(0x210)]){const _0x4c4020=(_0x4ed024=_0x5bbb36[_0x1fcc76(0x256)][_0x1fcc76(0x236)])!=null?_0x4ed024:z[_0x1fcc76(0x255)];_0x4c4020===z[_0x1fcc76(0x1d6)]?_0x19feba=0x0:_0x4c4020===z[_0x1fcc76(0x255)]?_0x19feba=_0x1fcc76(0x244):_0x4c4020===z[_0x1fcc76(0x1fc)]&&(_0x19feba='u-connect');}else _0x287e84['t']===_0x11015d[_0x1fcc76(0x24d)]?_0x19feba=_0x287e84['v']?0x1:0x0:_0x19feba=_0x287e84['v'];}if(_0x2ca705[_0x1fcc76(0x237)](_0x19feba),typeof _0x19feba==_0x1fcc76(0x1ba)){_0xbfe4f=Math[_0x1fcc76(0x1e2)](_0xbfe4f,_0x19feba),_0x11c44f=Math[_0x1fcc76(0x1e2)](_0x11c44f,_0x19feba),_0x46ab05=Math[_0x1fcc76(0x1bb)](_0x46ab05,_0x19feba),_0x5ec027=Math[_0x1fcc76(0x1bb)](_0x5ec027,_0x19feba);const _0x41d751=typeof _0x2ca705[_0x5137e5]==_0x1fcc76(0x1ba)?Number(_0x2ca705[_0x5137e5]):Number[_0x1fcc76(0x1e5)];_0x19feba>_0x41d751&&(_0x5137e5=_0x2ca705[_0x1fcc76(0x25f)]-0x1);const _0x11a713=typeof _0x2ca705[_0x1c6e05]=='number'?Number(_0x2ca705[_0x1c6e05]):Number[_0x1fcc76(0x234)];_0x19feba<_0x11a713&&(_0x1c6e05=_0x2ca705[_0x1fcc76(0x25f)]-0x1),_0x19feba<0x0&&_0x26b3ba['push'](_0x2ca705[_0x1fcc76(0x25f)]-0x1);}}_0x39a2a6[_0x1fcc76(0x1f2)](_0x45251b,_0x3e6c67,{'groupId':_0x3f295b,'data':_0x2ca705,'max':_0xbfe4f,'min':_0x5ec027,'highIndex':_0x5137e5,'lowIndex':_0x1c6e05,'negativeIndexes':_0x26b3ba});}}});let _0x19b056=_0x11c44f;((_0x396c07=_0x5bbb36[_0x1f9571(0x256)]['extremumMax'])==null?void 0x0:_0x396c07[_0x1f9571(0x25b)])===Ee[_0x1f9571(0x224)]&&(_0x19b056=(_0x20013a=(_0x54cbc9=_0x5bbb36[_0x1f9571(0x256)][_0x1f9571(0x1c6)])==null?void 0x0:_0x54cbc9['value'])!=null?_0x20013a:_0x11c44f);let _0x3cf5d0=_0x46ab05;((_0x1c2b9a=_0x5bbb36[_0x1f9571(0x256)][_0x1f9571(0x1ad)])==null?void 0x0:_0x1c2b9a[_0x1f9571(0x25b)])===Ee['CUSTOM_EXTREMUM']&&(_0x3cf5d0=(_0x57e5cd=(_0x2cac49=_0x5bbb36[_0x1f9571(0x256)][_0x1f9571(0x1ad)])==null?void 0x0:_0x2cac49[_0x1f9571(0x23e)])!=null?_0x57e5cd:_0x46ab05);const _0x4ea076=(_0x520b8e=_0x5bbb36[_0x1f9571(0x256)][_0x1f9571(0x241)])!=null?_0x520b8e:Xe[_0x1f9571(0x23f)],_0x29421d=(_0x157bce=(_0x5a2b71=_0x5bbb36[_0x1f9571(0x256)]['seriesColor'])!=null?_0x5a2b71:(_0x37eebc=Le[_0x4ea076])==null?void 0x0:_0x37eebc[0x0])!=null?_0x157bce:Le[_0x1f9571(0x1b8)][0x0],_0x549e69=new _0x2af62e(_0x29421d),_0x196f1d=_0x549e69[_0x1f9571(0x1f6)](0.2)[_0x1f9571(0x1d3)](),_0x429ff8=_0x549e69[_0x1f9571(0x1f6)](0.05)[_0x1f9571(0x1d3)]();_0x2d0c1b[_0x3f295b]={'groupMax':_0x11c44f,'groupMin':_0x46ab05,'showMax':_0x19b056,'showMin':_0x3cf5d0,'startGradient':_0x196f1d,'endGradient':_0x429ff8},this[_0x1f9571(0x1ce)][_0x1f9571(0x1ac)]({'unitId':_0x31708a,'subUnitId':_0x4861d1,'groupId':_0x3f295b,'config':_0x5bbb36,'type':_0xde191a});}['addSparkline'](_0x446d5e,_0x5ccc2d,_0x450fc6,_0x1bb2ab){const _0x414d63=_0x56d897;this[_0x414d63(0x24a)](_0x446d5e,_0x5ccc2d)[_0x414d63(0x1c9)](_0x450fc6,_0x1bb2ab),this[_0x414d63(0x218)](_0x446d5e,_0x5ccc2d,_0x450fc6,'add');}['setSparkline'](_0x2b229f,_0x397476,_0x2e5d67,_0x201a06){const _0x3ed271=_0x56d897;var _0x3164b6;const _0x54d754=(_0x3164b6=this[_0x3ed271(0x1f5)][_0x3ed271(0x1d8)](_0x2b229f))==null?void 0x0:_0x3164b6['get'](_0x397476);_0x2e5d67[_0x3ed271(0x1fd)](_0x487d62=>{const _0x3dcb4f=_0x3ed271;_0x54d754!=null&&_0x54d754[_0x3dcb4f(0x24f)](_0x487d62)&&(_0x54d754[_0x3dcb4f(0x1c9)](_0x487d62,_0x201a06),this[_0x3dcb4f(0x218)](_0x2b229f,_0x397476,_0x487d62));});}[_0x56d897(0x1bc)](_0xff413b,_0x87a69b,_0x2256c0){const _0x48a1b3=_0x56d897;var _0x9e5e50,_0x41dda6;const _0x419a91=this[_0x48a1b3(0x1f5)][_0x48a1b3(0x1d8)](_0xff413b);if(_0x419a91){const _0x3ac1f1=_0x419a91[_0x48a1b3(0x1d8)](_0x87a69b);if(_0x3ac1f1){_0x3ac1f1[_0x48a1b3(0x22a)](_0x2256c0);const _0x40a601=(_0x9e5e50=this[_0x48a1b3(0x217)]['get'](_0xff413b))==null?void 0x0:_0x9e5e50['get'](_0x87a69b);(_0x41dda6=_0x40a601==null?void 0x0:_0x40a601[_0x48a1b3(0x211)])==null||_0x41dda6[_0x48a1b3(0x1df)]((_0x23652a,_0xb6a23f,_0x4a7e40)=>{const _0x36d41f=_0x48a1b3;(_0x4a7e40==null?void 0x0:_0x4a7e40[_0x36d41f(0x1ae)])===_0x2256c0&&(_0x40a601==null||_0x40a601['matrix']['realDeleteValue'](_0x23652a,_0xb6a23f));}),this['_updateConfig$'][_0x48a1b3(0x1ac)]({'unitId':_0xff413b,'subUnitId':_0x87a69b,'groupId':_0x2256c0,'type':_0x48a1b3(0x253)});}}}[_0x56d897(0x24c)](_0x482524,_0x17ae77,_0xc8eb9e,_0x144ff4){const _0x496086=_0x56d897;var _0x31e75b,_0x30ceea,_0x2875ff,_0x456713;const _0x23120a=(_0x31e75b=this['_sparklineAnchorMap'][_0x496086(0x1d8)](_0x482524))==null?void 0x0:_0x31e75b[_0x496086(0x1d8)](_0x17ae77),_0x5ed4bc=_0x23120a==null?void 0x0:_0x23120a[_0x496086(0x211)][_0x496086(0x260)](_0xc8eb9e,_0x144ff4);if(_0x5ed4bc){const {groupId:_0x24951b}=_0x5ed4bc,_0x149dc7=(_0x30ceea=this[_0x496086(0x1f5)][_0x496086(0x1d8)](_0x482524))==null?void 0x0:_0x30ceea[_0x496086(0x1d8)](_0x17ae77);(_0x2875ff=_0x149dc7==null?void 0x0:_0x149dc7['get'](_0x24951b))==null||_0x2875ff[_0x496086(0x23b)][_0x496086(0x215)](_0xc8eb9e,_0x144ff4),(_0x456713=_0x149dc7==null?void 0x0:_0x149dc7[_0x496086(0x1d8)](_0x24951b))!=null&&_0x456713[_0x496086(0x23b)]['hasValue']()||_0x149dc7==null||_0x149dc7[_0x496086(0x22a)](_0x24951b),_0x23120a==null||_0x23120a[_0x496086(0x211)][_0x496086(0x215)](_0xc8eb9e,_0x144ff4),this[_0x496086(0x1ce)][_0x496086(0x1ac)]({'unitId':_0x482524,'subUnitId':_0x17ae77,'groupId':_0x24951b,'type':_0x496086(0x253)});}}[_0x56d897(0x222)](_0x51ea2d,_0x5487a7,_0x30ac80){const _0x909351=_0x56d897;var _0x2019c0,_0x2548d9,_0x2a8a00,_0x15f0f8;const _0x15bc05=(_0x2a8a00=(_0x2548d9=(_0x2019c0=this['_sparklineModel'][_0x909351(0x1d8)](_0x51ea2d))==null?void 0x0:_0x2019c0[_0x909351(0x1d8)](_0x5487a7))==null?void 0x0:_0x2548d9['get'](_0x30ac80))==null?void 0x0:_0x2a8a00['sparklines'],_0x15b124=(_0x15f0f8=this[_0x909351(0x217)]['get'](_0x51ea2d))==null?void 0x0:_0x15f0f8[_0x909351(0x1d8)](_0x5487a7);if(_0x15bc05&&_0x15b124){const {matrix:_0x40321e,extra:_0x40dde4}=_0x15b124;_0x15bc05[_0x909351(0x1df)]((_0x48a9fa,_0x2fd872,_0x3b3c2a)=>{const _0x3206fd=_0x909351;_0x40321e[_0x3206fd(0x215)](_0x48a9fa,_0x2fd872);}),delete _0x40dde4[_0x30ac80];}}['getSubUnitSparkline'](_0x41dec9,_0x128a4b){const _0x1f4d9a=_0x56d897;var _0x9e9890;return(_0x9e9890=this['_sparklineModel']['get'](_0x41dec9))==null?void 0x0:_0x9e9890[_0x1f4d9a(0x1d8)](_0x128a4b);}[_0x56d897(0x1ee)](_0x49eb92,_0x3582c5,_0x24eeb5){const _0x41de78=_0x56d897;var _0x2259fb,_0x533450;return(_0x533450=(_0x2259fb=this[_0x41de78(0x1f5)][_0x41de78(0x1d8)](_0x49eb92))==null?void 0x0:_0x2259fb[_0x41de78(0x1d8)](_0x3582c5))==null?void 0x0:_0x533450[_0x41de78(0x1d8)](_0x24eeb5);}['getSparkline'](_0x27334f,_0x3593af,_0x9f27c1,_0x195728){const _0x2fb37b=_0x56d897;var _0x2ecaeb,_0xb005c1,_0x5e3385;return(_0x5e3385=(_0xb005c1=(_0x2ecaeb=this[_0x2fb37b(0x217)]['get'](_0x27334f))==null?void 0x0:_0x2ecaeb[_0x2fb37b(0x1d8)](_0x3593af))==null?void 0x0:_0xb005c1[_0x2fb37b(0x211)]['getValue'](_0x9f27c1,_0x195728))==null?void 0x0:_0x5e3385[_0x2fb37b(0x1ae)];}['reBuildAnchorCache'](_0x20bf03,_0x1bf266){const _0xcde97f=_0x56d897;var _0x2a0285;const _0x5811b8=this[_0xcde97f(0x231)](_0x20bf03,_0x1bf266);_0x5811b8[_0xcde97f(0x211)]['forValue']((_0x53e21e,_0x2ffc00,_0x487354)=>{const _0xae689=_0xcde97f;_0x5811b8[_0xae689(0x211)]['realDeleteValue'](_0x53e21e,_0x2ffc00);});const _0x34f37a=(_0x2a0285=this['_sparklineModel'][_0xcde97f(0x1d8)](_0x20bf03))==null?void 0x0:_0x2a0285[_0xcde97f(0x1d8)](_0x1bf266);if(_0x34f37a){for(const [_0x4eb5a9,_0x16aa2a]of _0x34f37a)this[_0xcde97f(0x218)](_0x20bf03,_0x1bf266,_0x4eb5a9);}}[_0x56d897(0x1d4)](){const _0x274e7b=_0x56d897;return{'sparklineModel':this[_0x274e7b(0x1f5)],'sparklineAnchorMap':this['_sparklineAnchorMap']};}['toJSON'](_0x34ff3){const _0x39f6f5=_0x56d897,_0x456606={};if(this[_0x39f6f5(0x1f5)][_0x39f6f5(0x24f)](_0x34ff3)){_0x456606[_0x34ff3]={};const _0x1a0a0a=this['_sparklineModel'][_0x39f6f5(0x1d8)](_0x34ff3);_0x1a0a0a!=null&&_0x1a0a0a[_0x39f6f5(0x212)]&&Array[_0x39f6f5(0x207)](_0x1a0a0a[_0x39f6f5(0x1ec)]())[_0x39f6f5(0x1fd)](_0x46e3c8=>{const _0x80733b=_0x39f6f5;_0x456606[_0x34ff3][_0x46e3c8]={};const _0x256b66=_0x1a0a0a['get'](_0x46e3c8);_0x256b66!=null&&_0x256b66[_0x80733b(0x212)]&&Array[_0x80733b(0x207)](_0x256b66[_0x80733b(0x1ec)]())[_0x80733b(0x1fd)](_0x27a859=>{const _0xb67bec=_0x80733b,_0x34549b=_0x256b66[_0xb67bec(0x1d8)](_0x27a859);_0x34549b&&(_0x456606[_0x34ff3][_0x46e3c8][_0x27a859]={'config':_0x34549b[_0xb67bec(0x256)],'sparklines':_0x34549b['sparklines'][_0xb67bec(0x209)]()});});});}return _0x456606;}[_0x56d897(0x21c)](_0x2cb0ea){if(!_0x2cb0ea)return;Object['keys'](_0x2cb0ea)['forEach'](_0x3c93ee=>{const _0xc08df6=_0x30c8,_0xbeb7fa=_0x2cb0ea[_0x3c93ee];_0xbeb7fa&&Object[_0xc08df6(0x1ec)](_0xbeb7fa)[_0xc08df6(0x1fd)](_0x1cfca3=>{const _0x85e77a=_0xc08df6,_0x35d0f8=_0xbeb7fa[_0x1cfca3];_0x35d0f8&&Object['keys'](_0x35d0f8)[_0x85e77a(0x1fd)](_0x1c6584=>{const _0x460294=_0x85e77a,_0x52cb1a=_0x35d0f8[_0x1c6584];if(_0x52cb1a){const _0x5c3022={'config':_0x52cb1a['config'],'sparklines':new _0x1f7ee4(_0x52cb1a[_0x460294(0x23b)])};this[_0x460294(0x235)](_0x3c93ee,_0x1cfca3,_0x1c6584,_0x5c3022);}});});});}[_0x56d897(0x1e6)](_0x2b97f8){const _0x5ca911=_0x56d897,_0x19ed0e=this[_0x5ca911(0x1f5)][_0x5ca911(0x1d8)](_0x2b97f8);if(_0x19ed0e){for(const [_0xe87e51]of _0x19ed0e){const _0x316543=_0x19ed0e[_0x5ca911(0x1d8)](_0xe87e51);if(_0x316543){for(const [_0x2ac897]of _0x316543)this[_0x5ca911(0x222)](_0x2b97f8,_0xe87e51,_0x2ac897);}}this[_0x5ca911(0x1f5)][_0x5ca911(0x22a)](_0x2b97f8);}}};x=Vt([yt(0x0,_0x3b19d5(_0x2a8d55))],x);const V={'id':_0x56d897(0x265),'type':_0xf041c8[_0x56d897(0x20c)],'handler':(_0x3a95d6,_0x2b166e)=>{const _0x3c59c0=_0x56d897;if(!_0x2b166e)return!0x1;const {sparklineConfigMap:_0x4a9f24,unitId:_0x55eff0,subUnitId:_0x3a6f33}=_0x2b166e,_0x4cfb1f=_0x3a95d6['get'](x);return Object[_0x3c59c0(0x1d7)](_0x4a9f24)[_0x3c59c0(0x1fd)](([_0x2380b7,_0x1ef36e])=>{const _0x130c93=_0x3c59c0,_0x131228={'config':_0x1ef36e[_0x130c93(0x256)],'sparklines':new _0x1f7ee4(_0x1ef36e['sparklines'])};_0x4cfb1f['addSparkline'](_0x55eff0,_0x3a6f33,_0x2380b7,_0x131228);}),!0x0;}},y={'id':'sheet.mutation.remove-sparkline','type':_0xf041c8[_0x56d897(0x20c)],'handler':(_0x99323a,_0x6d5606)=>{const _0x194fc1=_0x56d897;if(!_0x6d5606)return!0x1;const {unitId:_0x4edfb3,subUnitId:_0x3c3319,ranges:_0x4ea131,isSingle:_0x2731f2,groupIds:_0x1101ef}=_0x6d5606,_0x1ea226=_0x99323a[_0x194fc1(0x1d8)](x);return _0x1101ef?(_0x1101ef[_0x194fc1(0x1fd)](_0x4c7e00=>{const _0x39506d=_0x194fc1;_0x1ea226[_0x39506d(0x1bc)](_0x4edfb3,_0x3c3319,_0x4c7e00);}),!0x0):_0x4ea131?(_0x4ea131[_0x194fc1(0x1fd)](_0x33b105=>{const _0xeec2ba=_0x194fc1;_0x7aad20[_0xeec2ba(0x261)](_0x33b105,(_0x303b6c,_0x279d75)=>{const _0x24402c=_0xeec2ba,_0x13a32e=_0x1ea226[_0x24402c(0x258)](_0x4edfb3,_0x3c3319,_0x303b6c,_0x279d75);_0x13a32e&&(_0x2731f2?_0x1ea226[_0x24402c(0x24c)](_0x4edfb3,_0x3c3319,_0x303b6c,_0x279d75):_0x1ea226['removeSparkline'](_0x4edfb3,_0x3c3319,_0x13a32e));});}),!0x0):!0x1;}},Nt={'id':_0x56d897(0x1d9),'type':_0xf041c8['COMMAND'],'handler':(_0x4f4705,_0x5b6dbe)=>{const _0x539340=_0x56d897;if(!_0x5b6dbe)return!0x1;const {sourceRanges:_0x435531,targetRanges:_0x1b8e99,config:_0xeadb1}=_0x5b6dbe,_0x1a5112=_0x4f4705[_0x539340(0x1d8)](_0x514840),_0x19e747='g_'+_0x4a9ed1(0x6),_0x3f1ba2=Fe(_0x435531,_0x1b8e99),_0x301387={'config':_0xeadb1!=null?_0xeadb1:{},'sparklines':_0x3f1ba2[_0x539340(0x209)]()},_0x558f53=_0x4f4705[_0x539340(0x1d8)](_0x2a8d55),_0x1dae28=_0x4f4705[_0x539340(0x1d8)](x),_0x5da6b4=_0x3ff7f5(_0x558f53);if(!_0x5da6b4)return!0x1;const {unitId:_0x2e360d,subUnitId:_0x1a38bc}=_0x5da6b4,_0x2006ce=_0x4f4705[_0x539340(0x1d8)](_0x12c58b),_0x55292c=[],_0x54f9ae=[],_0xa8bc0a={},_0x2fafca={},_0x13b51b=new Set([_0x19e747]);_0x3f1ba2[_0x539340(0x1df)]((_0x250b44,_0x1f641b,_0x5bbd2b)=>{const _0xeac2bb=_0x539340,_0x8c8efd=_0x1dae28[_0xeac2bb(0x258)](_0x2e360d,_0x1a38bc,_0x250b44,_0x1f641b);if(_0x8c8efd){const _0x59185c=_0x1dae28[_0xeac2bb(0x1ee)](_0x2e360d,_0x1a38bc,_0x8c8efd);if(_0x59185c){_0x13b51b['add'](_0x8c8efd);let _0x104f85=_0xa8bc0a[_0x8c8efd],_0x4b547f=_0x2fafca[_0x8c8efd];_0x4b547f||(_0x4b547f={'config':_0x57048e[_0xeac2bb(0x206)](_0x59185c[_0xeac2bb(0x256)]),'sparklines':new _0x1f7ee4(_0x59185c[_0xeac2bb(0x23b)]['clone']())},_0x2fafca[_0x8c8efd]=_0x4b547f),_0x104f85||(_0x104f85={'config':_0x57048e[_0xeac2bb(0x206)](_0x59185c[_0xeac2bb(0x256)]),'sparklines':_0x59185c[_0xeac2bb(0x23b)][_0xeac2bb(0x1da)]()},_0xa8bc0a[_0x8c8efd]=_0x104f85),_0x4b547f[_0xeac2bb(0x23b)][_0xeac2bb(0x215)](_0x250b44,_0x1f641b);}}});const _0x451ac3={};return Object[_0x539340(0x1d7)](_0x2fafca)[_0x539340(0x1fd)](([_0x4b411b,_0x588324])=>{const _0x3de84b=_0x539340;_0x588324[_0x3de84b(0x23b)][_0x3de84b(0x1cf)]()&&(_0x451ac3[_0x4b411b]={'config':_0x588324[_0x3de84b(0x256)],'sparklines':_0x588324['sparklines'][_0x3de84b(0x1da)]()});}),_0x451ac3[_0x19e747]=_0x301387,_0x55292c[_0x539340(0x237)]({'id':y['id'],'params':{'unitId':_0x2e360d,'subUnitId':_0x1a38bc,'groupIds':Array[_0x539340(0x207)](_0x13b51b),'isSingle':!0x1}}),_0x13b51b['size']>0x1&&(_0x54f9ae[_0x539340(0x237)]({'id':y['id'],'params':{'unitId':_0x2e360d,'subUnitId':_0x1a38bc,'groupIds':Array['from'](_0x13b51b),'isSingle':!0x1}}),_0x55292c[_0x539340(0x237)]({'id':V['id'],'params':{'unitId':_0x2e360d,'subUnitId':_0x1a38bc,'sparklineConfigMap':_0xa8bc0a}})),_0x54f9ae[_0x539340(0x237)]({'id':V['id'],'params':{'unitId':_0x2e360d,'subUnitId':_0x1a38bc,'sparklineConfigMap':_0x451ac3}}),_0x2f224d(_0x54f9ae,_0x2006ce),_0x1a5112[_0x539340(0x1cd)]({'unitID':_0x2e360d,'undoMutations':_0x55292c,'redoMutations':_0x54f9ae}),!0x0;}},Ot={'id':_0x56d897(0x20b),'type':_0xf041c8[_0x56d897(0x1e8)],'handler':(_0x1eb767,_0x1b7dbb)=>{const _0x55d435=_0x56d897;var _0x2e00a4;const {isSingle:_0x1cedc5=!0x0}=_0x1b7dbb||{},_0x5b2cb6=_0x1eb767['get'](_0x12c58b),_0x3433bb=_0x1eb767[_0x55d435(0x1d8)](_0x2a8d55),_0x17b3a7=_0x1eb767[_0x55d435(0x1d8)](x),_0x1e9389=_0x1eb767[_0x55d435(0x1d8)](_0x514840),_0x4a8d36=_0x3ff7f5(_0x3433bb);if(!_0x4a8d36)return!0x1;const _0x5e69ac=_0x1eb767['get'](_0x1974d4),_0x42f79e=(_0x2e00a4=_0x1b7dbb==null?void 0x0:_0x1b7dbb[_0x55d435(0x1b7)])!=null?_0x2e00a4:_0x5e69ac['getCurrentSelections']()['map'](_0x1112a0=>_0x1112a0[_0x55d435(0x219)]),{unitId:_0x18aeb5,subUnitId:_0x2ee3b8}=_0x4a8d36,_0x2c2057=[],_0x59d128=[];_0x2c2057[_0x55d435(0x237)]({'id':y['id'],'params':{'unitId':_0x18aeb5,'subUnitId':_0x2ee3b8,'ranges':_0x42f79e,'isSingle':_0x1cedc5}});const _0x5c4f3c=[],_0x316b3a={};return _0x42f79e[_0x55d435(0x1fd)](_0x5d8b38=>{const _0xabb62c=_0x55d435;_0x7aad20[_0xabb62c(0x261)](_0x5d8b38,(_0xeed24,_0x199232)=>{const _0x570fe3=_0xabb62c,_0x1b7cb2=_0x17b3a7[_0x570fe3(0x258)](_0x18aeb5,_0x2ee3b8,_0xeed24,_0x199232);if(_0x1b7cb2){const _0x42aa39=_0x17b3a7[_0x570fe3(0x1ee)](_0x18aeb5,_0x2ee3b8,_0x1b7cb2);_0x42aa39&&(_0x5c4f3c[_0x570fe3(0x237)](_0x1b7cb2),_0x316b3a[_0x1b7cb2]={'config':_0x57048e[_0x570fe3(0x206)](_0x42aa39[_0x570fe3(0x256)]),'sparklines':_0x57048e[_0x570fe3(0x206)](_0x42aa39[_0x570fe3(0x23b)][_0x570fe3(0x1da)]())});}});}),_0x59d128[_0x55d435(0x237)]({'id':y['id'],'params':{'unitId':_0x18aeb5,'subUnitId':_0x2ee3b8,'groupIds':_0x5c4f3c,'isSingle':!0x1}}),_0x59d128[_0x55d435(0x237)]({'id':V['id'],'params':{'unitId':_0x18aeb5,'subUnitId':_0x2ee3b8,'sparklineConfigMap':_0x316b3a}}),_0x2f224d(_0x2c2057,_0x5b2cb6),_0x1e9389[_0x55d435(0x1cd)]({'unitID':_0x18aeb5,'undoMutations':_0x59d128,'redoMutations':_0x2c2057}),!0x0;}},Oe={'id':'sheet.mutation.set-sparkline','type':_0xf041c8[_0x56d897(0x20c)],'handler':(_0x5e4c15,_0x40e2e9)=>{const _0x22f3e4=_0x56d897;if(!_0x40e2e9)return!0x1;const {unitId:_0x2413da,subUnitId:_0x205173,groupIds:_0x5af355,config:_0x530b17}=_0x40e2e9,_0x5f3ba7=_0x5e4c15[_0x22f3e4(0x1d8)](x);return _0x5af355[_0x22f3e4(0x1fd)](_0x258597=>{const _0x22eb74=_0x22f3e4,_0x41a7ed=_0x5f3ba7['getSparklineById'](_0x2413da,_0x205173,_0x258597);if(_0x41a7ed){const _0x5e7d3a={'config':Object['assign']({},_0x41a7ed['config'],_0x530b17['config']),'sparklines':new _0x1f7ee4(_0x41a7ed[_0x22eb74(0x23b)]['clone']())};_0x5f3ba7['setSparkline'](_0x2413da,_0x205173,[_0x258597],_0x5e7d3a);}}),!0x0;}},xt={'id':'sheet.command.set-sparkline','type':_0xf041c8['COMMAND'],'handler':(_0x4f9dbc,_0xa203c7)=>{const _0x3b14f4=_0x56d897;var _0x3e8460,_0x30e40b,_0x328817,_0x1f77f7;if(!_0xa203c7)return!0x1;const _0x652d12=_0x4f9dbc[_0x3b14f4(0x1d8)](_0x12c58b),_0x104245=_0x4f9dbc['get'](_0x1974d4),_0x5f5249=_0x4f9dbc[_0x3b14f4(0x1d8)](x),_0x7e0176=_0x4f9dbc['get'](_0x2a8d55),_0x57d893=_0x4f9dbc[_0x3b14f4(0x1d8)](_0x514840),_0x367ded=_0x3ff7f5(_0x7e0176);if(!_0x367ded)return!0x1;const {unitId:_0x3d6ac9,subUnitId:_0x594a91}=_0x367ded,_0x2f5f22=(_0x3e8460=_0xa203c7==null?void 0x0:_0xa203c7[_0x3b14f4(0x1b7)])!=null?_0x3e8460:_0x104245['getCurrentSelections']()[_0x3b14f4(0x1b6)](_0x567d44=>_0x567d44[_0x3b14f4(0x219)]),_0x426965=(_0x30e40b=_0x5f5249['getSparklineCache']()[_0x3b14f4(0x214)][_0x3b14f4(0x1d8)](_0x3d6ac9))==null?void 0x0:_0x30e40b[_0x3b14f4(0x1d8)](_0x594a91),{isChangeDataSource:_0x5c60d7,config:_0x523323,combine:_0x1e8260,unCombine:_0x4594a3}=_0xa203c7;if(_0x1e8260){const _0x524735=[],_0x218c8d=[];_0x524735[_0x3b14f4(0x237)]({'id':y['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'ranges':_0x2f5f22,'isSingle':!0x0}});const _0x3d08f2='g_'+_0x4a9ed1(0x6),_0x2d5a5f=new _0x1f7ee4(),_0x44e2f5=(_0x328817=_0x5f5249['getSparklineCache']()[_0x3b14f4(0x251)][_0x3b14f4(0x1d8)](_0x3d6ac9))==null?void 0x0:_0x328817[_0x3b14f4(0x1d8)](_0x594a91),_0x2217e1=new Set([_0x3d08f2]),_0x3d193d={};return _0x2f5f22[_0x3b14f4(0x1fd)](_0x330ef8=>{const _0x14e28b=_0x3b14f4;var _0x23af91,_0x26f451;const {startRow:_0x399a16,endRow:_0x2f6ed6,startColumn:_0x2a8d4a,endColumn:_0x446469}=_0x330ef8;for(let _0x4756f2=_0x399a16;_0x4756f2<=_0x2f6ed6;_0x4756f2++)for(let _0x1f1475=_0x2a8d4a;_0x1f1475<=_0x446469;_0x1f1475++){const _0x186d50=(_0x23af91=_0x426965==null?void 0x0:_0x426965[_0x14e28b(0x211)][_0x14e28b(0x260)](_0x4756f2,_0x1f1475))==null?void 0x0:_0x23af91['groupId'];if(_0x186d50){_0x2217e1['add'](_0x186d50);const _0x30c8e0=_0x5f5249['getSparklineById'](_0x3d6ac9,_0x594a91,_0x186d50);_0x30c8e0&&(_0x3d193d[_0x186d50]={'config':_0x57048e[_0x14e28b(0x206)](_0x30c8e0[_0x14e28b(0x256)]),'sparklines':_0x57048e[_0x14e28b(0x206)](_0x30c8e0[_0x14e28b(0x23b)][_0x14e28b(0x1da)]())});const _0x1d6bfb=(_0x26f451=_0x44e2f5==null?void 0x0:_0x44e2f5['get'](_0x186d50))==null?void 0x0:_0x26f451[_0x14e28b(0x23b)]['getValue'](_0x4756f2,_0x1f1475);_0x1d6bfb&&_0x2d5a5f[_0x14e28b(0x1f2)](_0x4756f2,_0x1f1475,_0x1d6bfb);}}}),_0x524735[_0x3b14f4(0x237)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x3d08f2]:{'config':_0x57048e['deepClone'](_0x523323[_0x3b14f4(0x256)]),'sparklines':_0x2d5a5f['getMatrix']()}},'unitId':_0x3d6ac9,'subUnitId':_0x594a91}}),_0x218c8d[_0x3b14f4(0x237)]({'id':y['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'isSingle':!0x1,'groupIds':Array[_0x3b14f4(0x207)](_0x2217e1)}}),_0x218c8d[_0x3b14f4(0x237)]({'id':V['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'sparklineConfigMap':_0x3d193d}}),_0x2f224d(_0x524735,_0x652d12),_0x57d893[_0x3b14f4(0x1cd)]({'unitID':_0x3d6ac9,'undoMutations':_0x218c8d,'redoMutations':_0x524735}),!0x0;}else{if(_0x4594a3){const _0x3090ee=[],_0x463f4d=[];_0x3090ee[_0x3b14f4(0x237)]({'id':y['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'ranges':_0x2f5f22,'isSingle':!0x0}});const _0xc0e0e9=(_0x1f77f7=_0x5f5249[_0x3b14f4(0x1d4)]()[_0x3b14f4(0x251)]['get'](_0x3d6ac9))==null?void 0x0:_0x1f77f7[_0x3b14f4(0x1d8)](_0x594a91),_0x4d2205={},_0x45b5f3=new Set(),_0x434475={};return _0x2f5f22['forEach'](_0x1c9d99=>{const _0x3b631f=_0x3b14f4;var _0x47c8c5,_0x2941ab;const {startRow:_0x4f593d,endRow:_0x7916c1,startColumn:_0x12c0d9,endColumn:_0x91b766}=_0x1c9d99;for(let _0x2aa981=_0x4f593d;_0x2aa981<=_0x7916c1;_0x2aa981++)for(let _0x4605cd=_0x12c0d9;_0x4605cd<=_0x91b766;_0x4605cd++){const _0xf383b5=(_0x47c8c5=_0x426965==null?void 0x0:_0x426965[_0x3b631f(0x211)][_0x3b631f(0x260)](_0x2aa981,_0x4605cd))==null?void 0x0:_0x47c8c5[_0x3b631f(0x1ae)];if(_0xf383b5){const _0x306d55=new _0x1f7ee4(),_0x24c2fa='g_'+_0x4a9ed1(0x6);_0x45b5f3[_0x3b631f(0x1ed)](_0xf383b5),_0x45b5f3[_0x3b631f(0x1ed)](_0x24c2fa);const _0x1f050e=_0x5f5249[_0x3b631f(0x1ee)](_0x3d6ac9,_0x594a91,_0xf383b5);_0x1f050e&&(_0x434475[_0xf383b5]={'config':_0x57048e[_0x3b631f(0x206)](_0x1f050e['config']),'sparklines':_0x57048e[_0x3b631f(0x206)](_0x1f050e[_0x3b631f(0x23b)][_0x3b631f(0x1da)]())});const _0x5671fa=(_0x2941ab=_0xc0e0e9==null?void 0x0:_0xc0e0e9[_0x3b631f(0x1d8)](_0xf383b5))==null?void 0x0:_0x2941ab[_0x3b631f(0x23b)]['getValue'](_0x2aa981,_0x4605cd);_0x5671fa&&_0x306d55[_0x3b631f(0x1f2)](_0x2aa981,_0x4605cd,_0x5671fa),_0x4d2205[_0x24c2fa]={'sparklines':_0x306d55['getMatrix'](),'config':_0x57048e[_0x3b631f(0x206)](_0x523323[_0x3b631f(0x256)])};}}}),_0x3090ee['push']({'id':V['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'sparklineConfigMap':_0x4d2205}}),_0x463f4d[_0x3b14f4(0x237)]({'id':y['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'isSingle':!0x1,'groupIds':Array[_0x3b14f4(0x207)](_0x45b5f3)}}),_0x463f4d[_0x3b14f4(0x237)]({'id':V['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'sparklineConfigMap':_0x434475}}),_0x2f224d(_0x3090ee,_0x652d12),_0x57d893['pushUndoRedo']({'unitID':_0x3d6ac9,'undoMutations':_0x463f4d,'redoMutations':_0x3090ee}),!0x0;}}if(_0x5c60d7){const _0x748526=_0xa203c7[_0x3b14f4(0x24e)];if(!_0x748526)return!0x1;const {groupId:_0x186d0b,sourceRanges:_0x49a8fa,targetRanges:_0x43b462,resetType:_0x28f961,primary:_0x1c2fc0}=_0x748526,_0x3742d6=[],_0x26bc94=[];_0x3742d6[_0x3b14f4(0x237)]({'id':y['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'ranges':_0x2f5f22,'isSingle':!0x1,'groupIds':[_0x186d0b]}}),_0x26bc94[_0x3b14f4(0x237)]({'id':y['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'ranges':_0x2f5f22,'isSingle':!0x1,'groupIds':[_0x186d0b]}});let _0x49fafd;_0x28f961==='item'?(_0x49fafd=new _0x1f7ee4(_0x523323[_0x3b14f4(0x23b)]['clone']()),_0x49fafd[_0x3b14f4(0x215)](_0x1c2fc0[_0x3b14f4(0x1c2)],_0x1c2fc0[_0x3b14f4(0x1f7)]),_0x49fafd['setValue'](_0x43b462[0x0]['startRow'],_0x43b462[0x0]['startColumn'],_0x49a8fa[0x0])):_0x49fafd=Fe(_0x49a8fa,_0x43b462);const _0x3ecc25={'config':_0x57048e['deepClone'](_0x523323['config']),'sparklines':_0x49fafd[_0x3b14f4(0x209)]()},_0x578624={'config':_0x57048e[_0x3b14f4(0x206)](_0x523323[_0x3b14f4(0x256)]),'sparklines':_0x57048e['deepClone'](_0x523323[_0x3b14f4(0x23b)][_0x3b14f4(0x1da)]())};_0x3742d6[_0x3b14f4(0x237)]({'id':V['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'sparklineConfigMap':{[_0x186d0b]:_0x3ecc25}}}),_0x26bc94[_0x3b14f4(0x237)]({'id':V['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'sparklineConfigMap':{[_0x186d0b]:_0x578624}}}),_0x2f224d(_0x3742d6,_0x652d12),_0x57d893[_0x3b14f4(0x1cd)]({'unitID':_0x3d6ac9,'undoMutations':_0x26bc94,'redoMutations':_0x3742d6});}else{const _0x130da5=[],_0x3c143b=[],_0x44ac53=new Set(),_0x5e5795={};_0x2f5f22[_0x3b14f4(0x1fd)](_0x21b9e1=>{const _0x2a69ce=_0x3b14f4;var _0x46a850;const {startRow:_0x4fea74,endRow:_0x237ac9,startColumn:_0x558a38,endColumn:_0x17bcdb}=_0x21b9e1;for(let _0x162eff=_0x4fea74;_0x162eff<=_0x237ac9;_0x162eff++)for(let _0x16c634=_0x558a38;_0x16c634<=_0x17bcdb;_0x16c634++){const _0x2c1ee8=(_0x46a850=_0x426965==null?void 0x0:_0x426965[_0x2a69ce(0x211)]['getValue'](_0x162eff,_0x16c634))==null?void 0x0:_0x46a850['groupId'];if(_0x2c1ee8){_0x44ac53[_0x2a69ce(0x1ed)](_0x2c1ee8);const _0x1dedc0=_0x5f5249[_0x2a69ce(0x1ee)](_0x3d6ac9,_0x594a91,_0x2c1ee8);_0x1dedc0&&(_0x5e5795[_0x2c1ee8]={'config':_0x57048e['deepClone'](_0x1dedc0[_0x2a69ce(0x256)]),'sparklines':_0x57048e[_0x2a69ce(0x206)](_0x1dedc0['sparklines'][_0x2a69ce(0x1da)]())});}}}),_0x3c143b[_0x3b14f4(0x237)]({'id':Oe['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'groupIds':Array['from'](_0x44ac53),'config':{'config':_0x57048e[_0x3b14f4(0x206)](_0x523323[_0x3b14f4(0x256)]),'sparklines':_0x523323[_0x3b14f4(0x23b)][_0x3b14f4(0x209)]()}}}),_0x130da5['push']({'id':y['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'isSingle':!0x1,'groupIds':Array['from'](_0x44ac53)}}),_0x130da5[_0x3b14f4(0x237)]({'id':V['id'],'params':{'unitId':_0x3d6ac9,'subUnitId':_0x594a91,'sparklineConfigMap':_0x5e5795}}),_0x2f224d(_0x3c143b,_0x652d12),_0x57d893[_0x3b14f4(0x1cd)]({'unitID':_0x3d6ac9,'undoMutations':_0x130da5,'redoMutations':_0x3c143b});}return!0x0;}};var Ut=Object[_0x56d897(0x239)],Pt=(_0x5613c0,_0x216aca,_0x79e24c,_0x4ea4ae)=>{const _0x57f8d2=_0x56d897;for(var _0x1f6351=_0x4ea4ae>0x1?void 0x0:_0x4ea4ae?Ut(_0x216aca,_0x79e24c):_0x216aca,_0x32733f=_0x5613c0[_0x57f8d2(0x25f)]-0x1,_0x15a427;_0x32733f>=0x0;_0x32733f--)(_0x15a427=_0x5613c0[_0x32733f])&&(_0x1f6351=_0x15a427(_0x1f6351)||_0x1f6351);return _0x1f6351;},fe=(_0x50d293,_0x11fa32)=>(_0x358d07,_0x2391d5)=>_0x11fa32(_0x358d07,_0x2391d5,_0x50d293);let he=class extends _0x1a99b7{constructor(_0x4fc14f,_0x3507fa,_0x59ca45,_0x5db4de){const _0x43b8ce=_0x56d897;super(),this['_sparklineDataSourceModel']=_0x4fc14f,this[_0x43b8ce(0x1eb)]=_0x3507fa,this[_0x43b8ce(0x248)]=_0x59ca45,this[_0x43b8ce(0x1c0)]=_0x5db4de,this['_initClearWithSparkline']();}[_0x56d897(0x1b9)](){const _0x1c37ff=_0x56d897;this[_0x1c37ff(0x1e4)](this[_0x1c37ff(0x1eb)][_0x1c37ff(0x1f1)]({'getMutations':_0x59ef61=>{const _0x1ff107=_0x1c37ff,_0xbe8bd7=[],_0x89fa94=[];if(_0x59ef61['id']===_0x13d72c['id']){const _0x56a96a=_0x3ff7f5(this['_univerInstanceService']);if(!_0x56a96a)return{'redos':_0xbe8bd7,'undos':_0x89fa94};const {unitId:_0x4d31c7,subUnitId:_0x21eab6,worksheet:_0x19a7ea}=_0x56a96a,_0x144d2e=this[_0x1ff107(0x1c0)][_0x1ff107(0x1e1)]()[_0x1ff107(0x1b6)](_0x93549=>_0x93549[_0x1ff107(0x219)]),_0x46b023=new Set(),_0xa0ca75={},_0x418caa={};_0x144d2e[_0x1ff107(0x1fd)](_0x269e18=>{_0x7aad20['foreach'](_0x269e18,(_0xf369db,_0xb0298)=>{const _0x5bae7c=_0x30c8,_0x35133c=this[_0x5bae7c(0x1b0)]['getSparkline'](_0x4d31c7,_0x21eab6,_0xf369db,_0xb0298);if(_0x35133c&&!_0x46b023[_0x5bae7c(0x24f)](_0x35133c)){const _0x2dacfe=this[_0x5bae7c(0x1b0)]['getSparklineById'](_0x4d31c7,_0x21eab6,_0x35133c);_0x2dacfe&&(_0x46b023[_0x5bae7c(0x1ed)](_0x35133c),_0xa0ca75[_0x35133c]={'config':_0x57048e['deepClone'](_0x2dacfe[_0x5bae7c(0x256)]),'sparklines':_0x57048e[_0x5bae7c(0x206)](_0x2dacfe[_0x5bae7c(0x23b)]['clone']())},_0x418caa[_0x35133c]={'config':_0x57048e['deepClone'](_0x2dacfe[_0x5bae7c(0x256)]),'sparklines':_0x57048e[_0x5bae7c(0x206)](_0x2dacfe['sparklines'][_0x5bae7c(0x1da)]())});}});}),Object[_0x1ff107(0x1fb)](_0x418caa)['forEach'](_0x209902=>{const _0xeb9408=_0x1ff107,_0x4fdabc=_0x209902[_0xeb9408(0x23b)];new _0x1f7ee4(_0x4fdabc)['forValue']((_0xcfa7a2,_0x2a254e,_0x4757c3)=>{const _0x4c9f99=_0xeb9408;_0x144d2e[_0x4c9f99(0x1b1)](_0x47f184=>_0x6f8ace[_0x4c9f99(0x204)](_0x47f184,_0x217cdd(_0xcfa7a2,_0x2a254e)))&&delete _0x4fdabc[_0xcfa7a2][_0x2a254e];});}),_0xbe8bd7[_0x1ff107(0x237)]({'id':y['id'],'params':{'unitId':_0x4d31c7,'subUnitId':_0x21eab6,'groupIds':Array['from'](_0x46b023),'isSingle':!0x1}}),_0xbe8bd7[_0x1ff107(0x237)]({'id':V['id'],'params':{'unitId':_0x4d31c7,'subUnitId':_0x21eab6,'sparklineConfigMap':_0x418caa}}),_0x89fa94['push']({'id':y['id'],'params':{'unitId':_0x4d31c7,'subUnitId':_0x21eab6,'groupIds':Array['from'](_0x46b023),'isSingle':!0x1}}),_0x89fa94[_0x1ff107(0x237)]({'id':V['id'],'params':{'unitId':_0x4d31c7,'subUnitId':_0x21eab6,'sparklineConfigMap':_0xa0ca75}});}return{'redos':_0xbe8bd7,'undos':_0x89fa94};}}));}};function _0x2436(){const _0x1547a2=['contains','_onRefRangeChange','defineProperty','intersects','removeRows','deepClone','from','disposableCollection','getMatrix','BAR_CHART','sheet.command.remove-sparkline','MUTATION','symbol','rgb(124,66,147)','asObservable','FORCE_STRING','matrix','size','getSubUnitSparkline','sparklineAnchorMap','realDeleteValue','u-connect','_sparklineAnchorMap','updateSparklineExtraNum','range','STRING','registerCommand','fromJSON','rgb(248,190,21)','UNIVER_SHEET','_initMergeWithSparkline','468723LBeyiB','specialty','clearSparklineCache','16338348yJnfJQ','CUSTOM_EXTREMUM','rgb(244,104,249)','refRangeHandle','_initCopySheetWithSparkline','subscribe','lastPoint','delete','onReady','rgb(46,187,122)','GROUP_EXTREMUM','subUnitId','getRowVisible','pluginName','_ensureAnchorMatrix','firstPoint','containHiddenCells','MAX_SAFE_INTEGER','addSparkline','nonNumShowAs','push','PIE_CHART','getOwnPropertyDescriptor','64538340ghwEUh','sparklines','DISTINCTIVE','getCellRaw','value','STANDARD','_initHideRowColWithSparkline','themeType','[Sheet\x20Sparkline]:\x20Invalid\x20target','_getRefRangeMutationsByDeleteRows','u-spacing','lowPoint','_config','_commandService','_univerInstanceService','zero_value','_ensureConfigMap','onCommandExecuted','removePartSparkline','BOOLEAN','changeDataSourceInfo','has','column','sparklineModel','LINE_CHART','remove','_exclusiveRangeService','SPACING','config','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','getSparkline','rgb(54,78,244)','reBuildAnchorCache','type','2kvYBFl','_initSnapshot','fresh','length','getValue','foreach','custom','soft','rgb(252,117,60)','sheet.mutation.add-sparkline','next','extremumMin','groupId','startColumn','_sparklineDataSourceModel','some','12334091dKcWVr','dispose','_initRegisterCommand','updateConfig$','map','ranges','standard','_initClearWithSparkline','number','min','removeSparkline','rgb(236,100,169)','_resourceManagerService','getSheetBySheetId','_sheetSelectionService','spacing','actualRow','registerPluginResource','1368624mntHos','row','extremumMax','getCurrentUnitForType','removeColumns','set','PROFIT_AND_LOSS_CHART','59320mzFSCc','_getRefRangeMutationsByDeleteCols','pushUndoRedo','_updateConfig$','getSizeOf','every','523008kCrtyY','_initDependencies','toRgbString','getSparklineCache','_injector','ZERO_VALUE','entries','get','sheet.command.add-sparkline','clone','_initDataChangeListener','_initCorrectRangeWithSparkline','endRow','exclusiveRangesChange$','forValue','SELF_EXTREMUM','getCurrentSelections','max','endColumn','disposeWithMe','MIN_SAFE_INTEGER','deleteUnit','moveColumns','COMMAND','8XFRZxA','444uctjVd','_sheetInterceptorService','keys','add','getSparklineById','connect_with_line','parse','interceptCommand','setValue','CUSTOM','startRow','_sparklineModel','setAlpha','actualColumn','params','getCell','rgb(49,106,246)','values','CONNECT_WITH_LINE','forEach','rgb(30,177,189)','NORMAL','_initExclusiveRangeChange'];_0x2436=function(){return _0x1547a2;};return _0x2436();}he=Pt([fe(0x0,_0x3b19d5(x)),fe(0x1,_0x3b19d5(_0x2b1f4e)),fe(0x2,_0x3b19d5(_0x2a8d55)),fe(0x3,_0x3b19d5(_0x1974d4))],he);var Tt=Object[_0x56d897(0x239)],$t=(_0x18744c,_0x2fb25b,_0x292070,_0x1fa32a)=>{const _0x52a87f=_0x56d897;for(var _0x37a7ef=_0x1fa32a>0x1?void 0x0:_0x1fa32a?Tt(_0x2fb25b,_0x292070):_0x2fb25b,_0x1461da=_0x18744c[_0x52a87f(0x25f)]-0x1,_0xb9c076;_0x1461da>=0x0;_0x1461da--)(_0xb9c076=_0x18744c[_0x1461da])&&(_0x37a7ef=_0xb9c076(_0x37a7ef)||_0x37a7ef);return _0x37a7ef;},Ge=(_0x1ad6df,_0x9e95a6)=>(_0x43d73f,_0x44f816)=>_0x9e95a6(_0x43d73f,_0x44f816,_0x1ad6df);let Se=class extends _0x1a99b7{constructor(_0x5a77c0,_0x1f2a9b){const _0x154f56=_0x56d897;super(),this['_sheetInterceptorService']=_0x5a77c0,this[_0x154f56(0x1b0)]=_0x1f2a9b,this[_0x154f56(0x227)]();}[_0x56d897(0x227)](){const _0x720893=_0x56d897;this[_0x720893(0x1e4)](this[_0x720893(0x1eb)][_0x720893(0x1f1)]({'getMutations':_0x503914=>{const _0x3102e0=_0x720893,_0x3c5bc3=[],_0xc44c61=[];if(_0x503914['id']===_0x23496c['id']){const _0x901cdb=_0x503914[_0x3102e0(0x1f8)];if(!_0x901cdb)return{'redos':_0x3c5bc3,'undos':_0xc44c61};const {unitId:_0x1f430b,subUnitId:_0x5bf40f,targetSubUnitId:_0x571dc6}=_0x901cdb;if(!_0x1f430b||!_0x5bf40f||!_0x571dc6)return{'redos':_0x3c5bc3,'undos':_0xc44c61};const _0x3652a0=new Set(),_0x5926ec={},_0x171fb1=this[_0x3102e0(0x1b0)][_0x3102e0(0x213)](_0x1f430b,_0x5bf40f);if(!_0x171fb1)return{'redos':_0x3c5bc3,'undos':_0xc44c61};for(const [_0x45c013,_0x4967a9]of _0x171fb1){const _0x1797ee='g_'+_0x4a9ed1(0x6);_0x3652a0[_0x3102e0(0x1ed)](_0x45c013),_0x5926ec[_0x1797ee]={'config':_0x57048e[_0x3102e0(0x206)](_0x4967a9[_0x3102e0(0x256)]),'sparklines':_0x57048e[_0x3102e0(0x206)](_0x4967a9[_0x3102e0(0x23b)]['clone']())};}_0x3652a0[_0x3102e0(0x212)]&&(_0xc44c61[_0x3102e0(0x237)]({'id':y['id'],'params':{'unitId':_0x1f430b,'subUnitId':_0x571dc6,'groupIds':Array[_0x3102e0(0x207)](_0x3652a0),'isSingle':!0x1}}),_0x3c5bc3[_0x3102e0(0x237)]({'id':V['id'],'params':{'unitId':_0x1f430b,'subUnitId':_0x571dc6,'sparklineConfigMap':_0x5926ec}}));}return{'redos':_0x3c5bc3,'undos':_0xc44c61};}}));}};Se=$t([Ge(0x0,_0x3b19d5(_0x2b1f4e)),Ge(0x1,_0x3b19d5(x))],Se);var jt=Object['getOwnPropertyDescriptor'],Lt=(_0x558198,_0x40c709,_0x315a72,_0x59d6e0)=>{const _0x37b455=_0x56d897;for(var _0x5e7ce4=_0x59d6e0>0x1?void 0x0:_0x59d6e0?jt(_0x40c709,_0x315a72):_0x40c709,_0xb0a182=_0x558198[_0x37b455(0x25f)]-0x1,_0x428b85;_0xb0a182>=0x0;_0xb0a182--)(_0x428b85=_0x558198[_0xb0a182])&&(_0x5e7ce4=_0x428b85(_0x5e7ce4)||_0x5e7ce4);return _0x5e7ce4;},be=(_0x3b1230,_0x4d9a2f)=>(_0x3cffb9,_0x2a066b)=>_0x4d9a2f(_0x3cffb9,_0x2a066b,_0x3b1230);let ke=class extends _0x1a99b7{constructor(_0x5940fe,_0x5138af,_0x317207){const _0x4a83f5=_0x56d897;super(),this[_0x4a83f5(0x247)]=_0x5940fe,this[_0x4a83f5(0x1b0)]=_0x5138af,this[_0x4a83f5(0x254)]=_0x317207,this[_0x4a83f5(0x1db)](),this[_0x4a83f5(0x200)]();}[_0x56d897(0x1db)](){const _0x5f0d95=_0x56d897;this[_0x5f0d95(0x1e4)](this['_commandService'][_0x5f0d95(0x24b)](_0x1d2009=>{const _0x4e99f7=_0x5f0d95;if(_0x1d2009['id']===_0x475b9b['id']){const _0x25cdf3=_0x1d2009['params'],{cellValue:_0xc1249b,unitId:_0x5d3455,subUnitId:_0x583e6e}=_0x25cdf3,_0x802874=new _0x1f7ee4(_0xc1249b),_0x4d6843=new Set(),_0x258d5a=this[_0x4e99f7(0x1b0)][_0x4e99f7(0x213)](_0x5d3455,_0x583e6e);if(!_0x258d5a)return;const _0x2ddfad=Array[_0x4e99f7(0x207)](_0x258d5a);_0x802874[_0x4e99f7(0x1df)]((_0x26300a,_0x2bb4e7,_0x32a177)=>{const _0x33b247=_0x4e99f7,_0x485e50=_0x217cdd(_0x26300a,_0x2bb4e7);for(let _0x45c1f6=0x0;_0x45c1f6<_0x2ddfad[_0x33b247(0x25f)];_0x45c1f6++){const [_0x2c2ec5,_0x143245]=_0x2ddfad[_0x45c1f6],_0x2c6935=_0x4d6843[_0x33b247(0x24f)](_0x2c2ec5);_0x2c6935||_0x143245[_0x33b247(0x23b)][_0x33b247(0x1df)]((_0x38471e,_0x20ae69,_0x10833f)=>{const _0x44866a=_0x33b247,_0x31f5dc=_0x10833f;if(_0x31f5dc&&!_0x2c6935&&_0x6f8ace[_0x44866a(0x204)](_0x485e50,_0x31f5dc))return _0x4d6843['add'](_0x2c2ec5),!0x0;});}}),_0x4d6843[_0x4e99f7(0x1fd)](_0x4c0f46=>{const _0x39689b=_0x4e99f7;this[_0x39689b(0x1b0)][_0x39689b(0x222)](_0x5d3455,_0x583e6e,_0x4c0f46),this[_0x39689b(0x1b0)]['updateSparklineExtraNum'](_0x5d3455,_0x583e6e,_0x4c0f46);});}else{if(_0x1d2009['id']===_0x23a376['id']){const _0x475312=_0x1d2009[_0x4e99f7(0x1f8)],{range:_0x9d9aab,unitId:_0x3aa489,subUnitId:_0x35052d}=_0x475312,_0x34760a=new Set(),_0x320c79=this[_0x4e99f7(0x1b0)][_0x4e99f7(0x213)](_0x3aa489,_0x35052d);if(!_0x320c79)return;const _0x15e8ed=Array[_0x4e99f7(0x207)](_0x320c79);for(let _0x48243b=0x0;_0x48243b<_0x15e8ed[_0x4e99f7(0x25f)];_0x48243b++){const [_0x1b1c71,_0x59441c]=_0x15e8ed[_0x48243b],_0x2521a3=_0x34760a[_0x4e99f7(0x24f)](_0x1b1c71);_0x2521a3||_0x59441c[_0x4e99f7(0x23b)][_0x4e99f7(0x1df)]((_0xf09af8,_0x3e93c2,_0x25f11d)=>{const _0x58c0b1=_0x25f11d;if(_0x58c0b1&&!_0x2521a3&&_0x6f8ace['intersects'](_0x9d9aab,_0x58c0b1))return _0x34760a['add'](_0x1b1c71),!0x0;});}_0x34760a[_0x4e99f7(0x1fd)](_0x1fe38a=>{const _0x48e17d=_0x4e99f7;this[_0x48e17d(0x1b0)][_0x48e17d(0x222)](_0x3aa489,_0x35052d,_0x1fe38a),this[_0x48e17d(0x1b0)][_0x48e17d(0x218)](_0x3aa489,_0x35052d,_0x1fe38a);});}}}));}[_0x56d897(0x200)](){const _0x5b487b=_0x56d897;this['disposeWithMe'](this[_0x5b487b(0x254)][_0x5b487b(0x1de)][_0x5b487b(0x228)](_0x20be71=>{const _0x3765d7=_0x5b487b,{unitId:_0x293f8d,subUnitId:_0x19b952,ranges:_0x1201a9}=_0x20be71,_0x5e4aeb=this['_sparklineDataSourceModel'][_0x3765d7(0x213)](_0x293f8d,_0x19b952);if(!_0x5e4aeb)return;const _0xfdb688=Array[_0x3765d7(0x207)](_0x5e4aeb),_0x24d1a7=new Set();for(let _0x193263=0x0;_0x193263<_0xfdb688[_0x3765d7(0x25f)];_0x193263++){const [_0x1a80de,_0x1fffe5]=_0xfdb688[_0x193263],_0x30104b=_0x24d1a7[_0x3765d7(0x24f)](_0x1a80de);_0x30104b||_0x1fffe5[_0x3765d7(0x23b)]['forValue']((_0x5636b4,_0xd3af81,_0x4a9cf1)=>{const _0x181e74=_0x3765d7,_0x232d3f=_0x4a9cf1;if(_0x232d3f&&!_0x30104b){for(const _0x36836c of _0x1201a9)if(_0x6f8ace[_0x181e74(0x204)](_0x36836c,_0x232d3f)){_0x24d1a7[_0x181e74(0x1ed)](_0x1a80de);break;}}});}_0x24d1a7[_0x3765d7(0x1fd)](_0x59cd80=>{const _0x31cbe=_0x3765d7;this[_0x31cbe(0x1b0)][_0x31cbe(0x222)](_0x293f8d,_0x19b952,_0x59cd80),this['_sparklineDataSourceModel'][_0x31cbe(0x218)](_0x293f8d,_0x19b952,_0x59cd80);});}));}};ke=Lt([be(0x0,_0x3b19d5(_0x12c58b)),be(0x1,_0x3b19d5(x)),be(0x2,_0x3b19d5(_0x183cb2))],ke);var Gt=Object[_0x56d897(0x239)],Wt=(_0x242132,_0x5e500d,_0xd1c1ba,_0x3beafa)=>{for(var _0x3c8861=_0x3beafa>0x1?void 0x0:_0x3beafa?Gt(_0x5e500d,_0xd1c1ba):_0x5e500d,_0xb906be=_0x242132['length']-0x1,_0x3fae08;_0xb906be>=0x0;_0xb906be--)(_0x3fae08=_0x242132[_0xb906be])&&(_0x3c8861=_0x3fae08(_0x3c8861)||_0x3c8861);return _0x3c8861;},We=(_0x2d2261,_0x6ec134)=>(_0x12e358,_0x34f1e7)=>_0x6ec134(_0x12e358,_0x34f1e7,_0x2d2261);let me=class extends _0x1a99b7{constructor(_0x58db56,_0x292ac6){const _0x5f005d=_0x56d897;super(),this[_0x5f005d(0x247)]=_0x58db56,this[_0x5f005d(0x1b0)]=_0x292ac6,this['_initHideRowColWithSparkline']();}[_0x56d897(0x240)](){const _0x4b02a2=_0x56d897;this[_0x4b02a2(0x247)][_0x4b02a2(0x24b)](_0x52b0a9=>{const _0x1fcf8a=_0x4b02a2;if(_0x52b0a9['id']===_0x3134c0['id']||_0x52b0a9['id']===_0x19c7f8['id']||_0x52b0a9['id']===_0x832edf['id']||_0x52b0a9['id']===_0x40d7d2['id']){const _0x17d81c=_0x52b0a9[_0x1fcf8a(0x1f8)],{ranges:_0x726f83,unitId:_0x47a892,subUnitId:_0xb777a0}=_0x17d81c,_0x59d412=new Set(),_0x4a2151=this[_0x1fcf8a(0x1b0)][_0x1fcf8a(0x213)](_0x47a892,_0xb777a0);if(!_0x4a2151)return;const _0x46cde6=Array[_0x1fcf8a(0x207)](_0x4a2151);_0x726f83[_0x1fcf8a(0x1fd)](_0x3c0793=>{const _0x88da70=_0x1fcf8a;_0x7aad20[_0x88da70(0x261)](_0x3c0793,(_0x4300ae,_0x11f99f)=>{const _0x48ae35=_0x88da70,_0x380939=_0x217cdd(_0x4300ae,_0x11f99f);for(let _0x44cc8a=0x0;_0x44cc8a<_0x46cde6[_0x48ae35(0x25f)];_0x44cc8a++){const [_0x2e90cc,_0x26b58b]=_0x46cde6[_0x44cc8a],_0x36cc40=_0x59d412[_0x48ae35(0x24f)](_0x2e90cc);_0x36cc40||_0x26b58b[_0x48ae35(0x23b)]['forValue']((_0x335249,_0x103682,_0x1ca5cb)=>{const _0x22d7fa=_0x1ca5cb;if(_0x22d7fa&&!_0x36cc40&&_0x6f8ace['intersects'](_0x380939,_0x22d7fa))return _0x59d412['add'](_0x2e90cc),!0x0;});}});}),_0x59d412[_0x1fcf8a(0x1fd)](_0x1fce1f=>{const _0x200772=_0x1fcf8a;this[_0x200772(0x1b0)]['clearSparklineCache'](_0x47a892,_0xb777a0,_0x1fce1f),this[_0x200772(0x1b0)][_0x200772(0x218)](_0x47a892,_0xb777a0,_0x1fce1f);});}});}};me=Wt([We(0x0,_0x3b19d5(_0x12c58b)),We(0x1,_0x3b19d5(x))],me);var Ht=Object[_0x56d897(0x239)],Bt=(_0x2a1b11,_0x214d1d,_0x54c18b,_0x1ca0ca)=>{for(var _0x20293a=_0x1ca0ca>0x1?void 0x0:_0x1ca0ca?Ht(_0x214d1d,_0x54c18b):_0x214d1d,_0x204650=_0x2a1b11['length']-0x1,_0x49a7e5;_0x204650>=0x0;_0x204650--)(_0x49a7e5=_0x2a1b11[_0x204650])&&(_0x20293a=_0x49a7e5(_0x20293a)||_0x20293a);return _0x20293a;},De=(_0xeea068,_0x5f5146)=>(_0x38e19c,_0x2c70b3)=>_0x5f5146(_0x38e19c,_0x2c70b3,_0xeea068);let Ce=class extends _0x1a99b7{constructor(_0x22b8f8,_0x51e371,_0x191208){const _0x13acf7=_0x56d897;super(),this[_0x13acf7(0x247)]=_0x22b8f8,this[_0x13acf7(0x1eb)]=_0x51e371,this[_0x13acf7(0x1b0)]=_0x191208,this[_0x13acf7(0x21f)]();}[_0x56d897(0x21f)](){const _0x33d6dd=_0x56d897;this[_0x33d6dd(0x1e4)](this[_0x33d6dd(0x1eb)]['interceptCommand']({'getMutations':_0x450c6c=>{const _0x1e72a4=_0x33d6dd,_0x5d54fe=[],_0x3c0ef3=[];if(_0x450c6c['id']===_0x3c5a4d['id']){const _0x3fa10f=_0x450c6c[_0x1e72a4(0x1f8)];if(!_0x3fa10f)return{'redos':_0x5d54fe,'undos':_0x3c0ef3};const {unitId:_0x51684f,subUnitId:_0x1f58d2,ranges:_0x119a21}=_0x3fa10f,_0x381f60=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x51684f,_0x1f58d2);if(!_0x381f60)return{'redos':_0x5d54fe,'undos':_0x3c0ef3};const _0x198c22={},_0x5cd6d9={},_0x389a6b=new Set();_0x119a21[_0x1e72a4(0x1fd)](_0x44ca2d=>{const _0x139e2b=_0x1e72a4,_0x3fd8ea=_0x44ca2d[_0x139e2b(0x1f4)],_0x389c89=_0x44ca2d[_0x139e2b(0x1af)];_0x7aad20[_0x139e2b(0x261)](_0x44ca2d,(_0x4c2485,_0x5a265c)=>{const _0x536c92=_0x139e2b,_0x1792cf=this[_0x536c92(0x1b0)][_0x536c92(0x258)](_0x51684f,_0x1f58d2,_0x4c2485,_0x5a265c);if(_0x1792cf&&!(_0x4c2485===_0x3fd8ea&&_0x5a265c===_0x389c89)){const _0x18153d=this[_0x536c92(0x1b0)][_0x536c92(0x1ee)](_0x51684f,_0x1f58d2,_0x1792cf);if(_0x18153d){_0x389a6b[_0x536c92(0x1ed)](_0x1792cf);let _0x2d74d2=_0x198c22[_0x1792cf];_0x2d74d2||(_0x2d74d2={'config':_0x57048e[_0x536c92(0x206)](_0x18153d[_0x536c92(0x256)]),'sparklines':new _0x1f7ee4(_0x18153d['sparklines']['clone']())},_0x198c22[_0x1792cf]=_0x2d74d2),_0x2d74d2[_0x536c92(0x23b)]['realDeleteValue'](_0x4c2485,_0x5a265c),_0x5cd6d9[_0x1792cf]={'config':_0x57048e[_0x536c92(0x206)](_0x18153d[_0x536c92(0x256)]),'sparklines':_0x57048e[_0x536c92(0x206)](_0x18153d[_0x536c92(0x23b)][_0x536c92(0x1da)]())};}}});});for(const [_0x14ff9c,_0x482f46]of _0x381f60){const _0x1f709c=_0x482f46['sparklines'];_0x1f709c[_0x1e72a4(0x1df)]((_0x3647e8,_0x280001,_0x5b0cae)=>{const _0xfd5e02=_0x1e72a4;for(let _0x28afb8=0x0;_0x28afb8<_0x119a21[_0xfd5e02(0x25f)];_0x28afb8++){const _0x42b513=_0x119a21[_0x28afb8];if(_0x6f8ace[_0xfd5e02(0x201)](_0x42b513,_0x5b0cae)){_0x389a6b[_0xfd5e02(0x1ed)](_0x14ff9c);let _0x2a2f79=_0x198c22[_0x14ff9c];_0x2a2f79||(_0x2a2f79={'config':_0x57048e['deepClone'](_0x482f46[_0xfd5e02(0x256)]),'sparklines':new _0x1f7ee4(_0x1f709c['clone']())},_0x198c22[_0x14ff9c]=_0x2a2f79),_0x2a2f79[_0xfd5e02(0x23b)][_0xfd5e02(0x215)](_0x3647e8,_0x280001),_0x5cd6d9[_0x14ff9c]||(_0x5cd6d9[_0x14ff9c]={'config':_0x57048e[_0xfd5e02(0x206)](_0x482f46[_0xfd5e02(0x256)]),'sparklines':_0x57048e[_0xfd5e02(0x206)](_0x1f709c[_0xfd5e02(0x1da)]())});}}});}const _0x27e9f5={};Object[_0x1e72a4(0x1d7)](_0x198c22)[_0x1e72a4(0x1fd)](([_0x36bbf0,_0x492d2d])=>{const _0x22cf42=_0x1e72a4;_0x492d2d[_0x22cf42(0x23b)]['getSizeOf']()&&(_0x27e9f5[_0x36bbf0]={'config':_0x492d2d['config'],'sparklines':_0x492d2d[_0x22cf42(0x23b)][_0x22cf42(0x1da)]()});}),_0x389a6b[_0x1e72a4(0x212)]&&(_0x5d54fe[_0x1e72a4(0x237)]({'id':y['id'],'params':{'unitId':_0x51684f,'subUnitId':_0x1f58d2,'groupIds':Array[_0x1e72a4(0x207)](_0x389a6b),'isSingle':!0x1}}),_0x3c0ef3[_0x1e72a4(0x237)]({'id':y['id'],'params':{'unitId':_0x51684f,'subUnitId':_0x1f58d2,'groupIds':Array['from'](_0x389a6b),'isSingle':!0x1}}),_0x5d54fe[_0x1e72a4(0x237)]({'id':V['id'],'params':{'unitId':_0x51684f,'subUnitId':_0x1f58d2,'sparklineConfigMap':_0x27e9f5}}),_0x3c0ef3[_0x1e72a4(0x237)]({'id':V['id'],'params':{'unitId':_0x51684f,'subUnitId':_0x1f58d2,'sparklineConfigMap':_0x5cd6d9}}));}return{'redos':_0x5d54fe,'undos':_0x3c0ef3};}}));}};Ce=Bt([De(0x0,_0x3b19d5(_0x12c58b)),De(0x1,_0x3b19d5(_0x2b1f4e)),De(0x2,_0x3b19d5(x))],Ce);var Ft=Object['getOwnPropertyDescriptor'],Kt=(_0x53201d,_0x323d49,_0x5ca626,_0x2aca9a)=>{for(var _0xcf5b08=_0x2aca9a>0x1?void 0x0:_0x2aca9a?Ft(_0x323d49,_0x5ca626):_0x323d49,_0x164030=_0x53201d['length']-0x1,_0x53c716;_0x164030>=0x0;_0x164030--)(_0x53c716=_0x53201d[_0x164030])&&(_0xcf5b08=_0x53c716(_0xcf5b08)||_0xcf5b08);return _0xcf5b08;},ue=(_0x2520f,_0x273a4b)=>(_0x3458db,_0x3f70e5)=>_0x273a4b(_0x3458db,_0x3f70e5,_0x2520f);let _e=class extends _0x1a99b7{constructor(_0x5ec15a,_0x543530,_0x6f3447,_0x2f1112,_0x1e6433){const _0x1516e5=_0x56d897;super(),se(this,_0x1516e5(0x208),new _0x3247f5()),(this[_0x1516e5(0x247)]=_0x5ec15a,this[_0x1516e5(0x1eb)]=_0x543530,this['_refRangeService']=_0x6f3447,this['_univerInstanceService']=_0x2f1112,this[_0x1516e5(0x1b0)]=_0x1e6433,this[_0x1516e5(0x202)](),this['_initCorrectRangeWithSparkline']());}[_0x56d897(0x202)](){const _0x533ec8=_0x56d897,_0x5624cd=(_0x3c3a03,_0x42b75f)=>{const _0x5a46b0=_0x30c8,_0x295f5e=this['_univerInstanceService'][_0x5a46b0(0x1c7)](_0x57b9c6[_0x5a46b0(0x21e)]);if(!_0x295f5e||!(_0x295f5e==null?void 0x0:_0x295f5e[_0x5a46b0(0x1bf)](_0x42b75f)))return;this[_0x5a46b0(0x208)][_0x5a46b0(0x1b3)]();const _0x3267f8=_0x50a255=>this[_0x5a46b0(0x226)](_0x50a255,_0x3c3a03,_0x42b75f),_0x4c27b2=[],_0x393452=this[_0x5a46b0(0x1b0)][_0x5a46b0(0x213)](_0x3c3a03,_0x42b75f);if(_0x393452){for(const [_0x58f6dd,_0x151369]of _0x393452)_0x151369[_0x5a46b0(0x23b)][_0x5a46b0(0x1df)]((_0x2609e5,_0x1aee26,_0xcb1b89)=>{const _0x509757=_0x217cdd(_0x2609e5,_0x1aee26);_0x4c27b2['push'](_0x509757);});_0x4c27b2[_0x5a46b0(0x1fd)](_0xd26c19=>{const _0x1db280=_0x5a46b0;this['disposableCollection'][_0x1db280(0x1ed)](this['_refRangeService']['registerRefRange'](_0xd26c19,_0x3267f8,_0x3c3a03,_0x42b75f));});}};this[_0x533ec8(0x1e4)](this['_commandService'][_0x533ec8(0x24b)](_0x93dce2=>{const _0x495a00=_0x533ec8;if(_0x93dce2['id']===_0x1fc2fd['id']){const _0x4245f3=_0x93dce2[_0x495a00(0x1f8)],_0x27300e=_0x4245f3[_0x495a00(0x22e)],_0xecc004=_0x4245f3['unitId'];if(!_0x27300e||!_0xecc004)return;_0x5624cd(_0xecc004,_0x27300e);}if(_0x93dce2['id']===Oe['id']||_0x93dce2['id']===V['id']){const _0xe3109f=_0x93dce2[_0x495a00(0x1f8)],_0x95695c=_0xe3109f[_0x495a00(0x22e)],_0x39d010=_0xe3109f['unitId'];if(!_0x95695c||!_0x39d010)return;_0x5624cd(_0x39d010,_0x95695c);}}));}[_0x56d897(0x226)](_0x525df6,_0x4a4bb0,_0x57c23e){const _0x1fd676=_0x56d897;switch(_0x525df6['id']){case _0x2c060b['id']:return this[_0x1fd676(0x1cc)](_0x525df6['params'],_0x4a4bb0,_0x57c23e);case _0xb260ae['id']:return this['_getRefRangeMutationsByDeleteRows'](_0x525df6[_0x1fd676(0x1f8)],_0x4a4bb0,_0x57c23e);}return{'redos':[],'undos':[]};}[_0x56d897(0x243)](_0xe34837,_0x3e676f,_0x2a4cdb){const _0x2dd102=_0x56d897;var _0xad87e,_0x293fb8;const {range:_0x446987}=_0xe34837,_0x360007=new Set(),_0x3d4741={},_0x3b9bef={},_0x593650=[],_0x5a7bd8=[],_0x3113a6=[],_0x5781f5=[];if(!_0x3ff7f5(this['_univerInstanceService'],{'unitId':_0x3e676f,'subUnitId':_0x2a4cdb}))return{'redos':_0x5a7bd8,'undos':_0x593650};const _0x1b06f2=this['_sparklineDataSourceModel'][_0x2dd102(0x213)](_0x3e676f,_0x2a4cdb);if(!_0x1b06f2)return{'redos':_0x5a7bd8,'undos':_0x593650};if(!((_0x293fb8=(_0xad87e=this[_0x2dd102(0x1b0)]['getSparklineCache']()[_0x2dd102(0x214)]['get'](_0x3e676f))==null?void 0x0:_0xad87e['get'](_0x2a4cdb))==null?void 0x0:_0x293fb8['matrix']))return{'redos':_0x5a7bd8,'undos':_0x593650};for(const [_0x52e0ea,_0x56a27e]of _0x1b06f2){const _0x5567cc=_0x56a27e[_0x2dd102(0x23b)];_0x5567cc[_0x2dd102(0x1df)]((_0x44d4c7,_0x1f2ca4,_0x1ea35c)=>{const _0x2cbf44=_0x2dd102;if(_0x6f8ace[_0x2cbf44(0x204)](_0x446987,_0x1ea35c)){_0x360007[_0x2cbf44(0x1ed)](_0x52e0ea);let _0x59189e=_0x3b9bef[_0x52e0ea];_0x59189e||(_0x59189e={'config':_0x56a27e['config'],'sparklines':_0x56a27e[_0x2cbf44(0x23b)]['clone']()},_0x3b9bef[_0x52e0ea]=_0x59189e);let _0x8032d7=_0x3d4741[_0x52e0ea];_0x8032d7||(_0x8032d7={'config':_0x56a27e[_0x2cbf44(0x256)],'sparklines':new _0x1f7ee4(_0x56a27e[_0x2cbf44(0x23b)][_0x2cbf44(0x1da)]())},_0x3d4741[_0x52e0ea]=_0x8032d7);const _0x40e9e0=_0x5716f0(_0x1ea35c,{'id':_0x4c70ad['id'],'params':_0xe34837});_0x40e9e0?_0x8032d7[_0x2cbf44(0x23b)][_0x2cbf44(0x1f2)](_0x44d4c7,_0x1f2ca4,_0x40e9e0):_0x8032d7['sparklines']['setValue'](_0x44d4c7,_0x1f2ca4,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x45ee70[_0x2cbf44(0x1ff)]});}}),_0x5567cc['forValue']((_0x3e7d39,_0x30a724,_0x5b8d6b)=>{const _0x53fc31=_0x2dd102;if(_0x3e7d39<=_0x446987[_0x53fc31(0x1dd)]&&_0x3e7d39>=_0x446987[_0x53fc31(0x1f4)]){_0x360007['add'](_0x52e0ea);let _0x40343c=_0x3b9bef[_0x52e0ea];_0x40343c||(_0x40343c={'config':_0x56a27e[_0x53fc31(0x256)],'sparklines':_0x56a27e[_0x53fc31(0x23b)][_0x53fc31(0x1da)]()},_0x3b9bef[_0x52e0ea]=_0x40343c);let _0x3540cc=_0x3d4741[_0x52e0ea];_0x3540cc||(_0x3540cc={'config':_0x56a27e['config'],'sparklines':new _0x1f7ee4(_0x56a27e['sparklines']['clone']())},_0x3d4741[_0x52e0ea]=_0x3540cc);}});}_0x5781f5[_0x2dd102(0x237)]({'id':y['id'],'params':{'unitId':_0x3e676f,'subUnitId':_0x2a4cdb,'groupIds':Array[_0x2dd102(0x207)](_0x360007),'isSingle':!0x1}}),_0x3113a6['push']({'id':y['id'],'params':{'unitId':_0x3e676f,'subUnitId':_0x2a4cdb,'groupIds':Array['from'](_0x360007),'isSingle':!0x1}});const _0x180eb9={};let _0x20fc0c=!0x1;return Object['entries'](_0x3d4741)[_0x2dd102(0x1fd)](([_0x2089d9,_0x537ca6])=>{const _0xa58393=_0x2dd102;_0x537ca6[_0xa58393(0x23b)][_0xa58393(0x1cf)]()&&(_0x20fc0c=!0x0,_0x537ca6[_0xa58393(0x23b)]['removeRows'](_0x446987['startRow'],_0x446987[_0xa58393(0x1dd)]-_0x446987[_0xa58393(0x1f4)]+0x1),_0x180eb9[_0x2089d9]={'config':_0x537ca6[_0xa58393(0x256)],'sparklines':_0x537ca6[_0xa58393(0x23b)][_0xa58393(0x1da)]()});}),_0x20fc0c&&_0x5a7bd8[_0x2dd102(0x237)]({'id':V['id'],'params':{'unitId':_0x3e676f,'subUnitId':_0x2a4cdb,'sparklineConfigMap':_0x180eb9}}),_0x593650[_0x2dd102(0x237)]({'id':V['id'],'params':{'unitId':_0x3e676f,'subUnitId':_0x2a4cdb,'sparklineConfigMap':_0x3b9bef}}),{'redos':_0x5a7bd8,'undos':_0x593650,'preRedos':_0x3113a6,'preUndos':_0x5781f5};}['_getRefRangeMutationsByDeleteCols'](_0x1486be,_0x87fd25,_0x64d2e3){const _0x2c28f6=_0x56d897;var _0x54e309,_0x4a58a0;const {range:_0x42c9e1}=_0x1486be,_0xa807d6=new Set(),_0x38a09c={},_0x295606={},_0x10cb1b=[],_0x5f458a=[],_0x3b38e2=[],_0x127492=[];if(!_0x3ff7f5(this[_0x2c28f6(0x248)],{'unitId':_0x87fd25,'subUnitId':_0x64d2e3}))return{'redos':_0x5f458a,'undos':_0x10cb1b};const _0x246b67=this[_0x2c28f6(0x1b0)]['getSubUnitSparkline'](_0x87fd25,_0x64d2e3);if(!_0x246b67)return{'redos':_0x5f458a,'undos':_0x10cb1b};if(!((_0x4a58a0=(_0x54e309=this[_0x2c28f6(0x1b0)][_0x2c28f6(0x1d4)]()[_0x2c28f6(0x214)]['get'](_0x87fd25))==null?void 0x0:_0x54e309[_0x2c28f6(0x1d8)](_0x64d2e3))==null?void 0x0:_0x4a58a0['matrix']))return{'redos':_0x5f458a,'undos':_0x10cb1b};for(const [_0x119ec1,_0x2ee41b]of _0x246b67){const _0x18e834=_0x2ee41b[_0x2c28f6(0x23b)];_0x18e834[_0x2c28f6(0x1df)]((_0x51ba4e,_0x5b9864,_0x1b4d69)=>{const _0x48e7d0=_0x2c28f6;if(_0x6f8ace[_0x48e7d0(0x204)](_0x42c9e1,_0x1b4d69)){_0xa807d6[_0x48e7d0(0x1ed)](_0x119ec1);let _0x5c3184=_0x295606[_0x119ec1];_0x5c3184||(_0x5c3184={'config':_0x2ee41b[_0x48e7d0(0x256)],'sparklines':_0x2ee41b['sparklines'][_0x48e7d0(0x1da)]()},_0x295606[_0x119ec1]=_0x5c3184);let _0x2054a8=_0x38a09c[_0x119ec1];_0x2054a8||(_0x2054a8={'config':_0x2ee41b['config'],'sparklines':new _0x1f7ee4(_0x2ee41b[_0x48e7d0(0x23b)][_0x48e7d0(0x1da)]())},_0x38a09c[_0x119ec1]=_0x2054a8);const _0x391cd8=_0x5716f0(_0x1b4d69,{'id':_0x3fc8cc['id'],'params':_0x1486be});_0x391cd8?_0x2054a8['sparklines'][_0x48e7d0(0x1f2)](_0x51ba4e,_0x5b9864,_0x391cd8):_0x2054a8[_0x48e7d0(0x23b)][_0x48e7d0(0x1f2)](_0x51ba4e,_0x5b9864,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x45ee70['NORMAL']});}}),_0x18e834[_0x2c28f6(0x1df)]((_0x1f4379,_0x3212ea,_0x4562e7)=>{const _0x40775f=_0x2c28f6;if(_0x3212ea<=_0x42c9e1[_0x40775f(0x1e3)]&&_0x3212ea>=_0x42c9e1['startColumn']){_0xa807d6[_0x40775f(0x1ed)](_0x119ec1);let _0x226abf=_0x295606[_0x119ec1];_0x226abf||(_0x226abf={'config':_0x2ee41b['config'],'sparklines':_0x2ee41b['sparklines'][_0x40775f(0x1da)]()},_0x295606[_0x119ec1]=_0x226abf);let _0x2bc010=_0x38a09c[_0x119ec1];_0x2bc010||(_0x2bc010={'config':_0x2ee41b[_0x40775f(0x256)],'sparklines':new _0x1f7ee4(_0x2ee41b[_0x40775f(0x23b)][_0x40775f(0x1da)]())},_0x38a09c[_0x119ec1]=_0x2bc010);}});}_0x127492[_0x2c28f6(0x237)]({'id':y['id'],'params':{'unitId':_0x87fd25,'subUnitId':_0x64d2e3,'groupIds':Array['from'](_0xa807d6),'isSingle':!0x1}}),_0x3b38e2[_0x2c28f6(0x237)]({'id':y['id'],'params':{'unitId':_0x87fd25,'subUnitId':_0x64d2e3,'groupIds':Array[_0x2c28f6(0x207)](_0xa807d6),'isSingle':!0x1}});const _0x436c3e={};let _0x26ae1b=!0x1;return Object['entries'](_0x38a09c)[_0x2c28f6(0x1fd)](([_0x2db623,_0x68666b])=>{const _0x470b7a=_0x2c28f6;_0x68666b[_0x470b7a(0x23b)]['getSizeOf']()&&(_0x26ae1b=!0x0,_0x68666b[_0x470b7a(0x23b)][_0x470b7a(0x1c8)](_0x42c9e1[_0x470b7a(0x1af)],_0x42c9e1[_0x470b7a(0x1e3)]-_0x42c9e1['startColumn']+0x1),_0x436c3e[_0x2db623]={'config':_0x68666b['config'],'sparklines':_0x68666b[_0x470b7a(0x23b)][_0x470b7a(0x1da)]()});}),_0x26ae1b&&_0x5f458a['push']({'id':V['id'],'params':{'unitId':_0x87fd25,'subUnitId':_0x64d2e3,'sparklineConfigMap':_0x436c3e}}),_0x10cb1b[_0x2c28f6(0x237)]({'id':V['id'],'params':{'unitId':_0x87fd25,'subUnitId':_0x64d2e3,'sparklineConfigMap':_0x295606}}),{'redos':_0x5f458a,'undos':_0x10cb1b,'preRedos':_0x3b38e2,'preUndos':_0x127492};}[_0x56d897(0x1dc)](){const _0xb229d3=_0x56d897;this[_0xb229d3(0x1e4)](this[_0xb229d3(0x247)][_0xb229d3(0x24b)](_0x45ee9a=>{const _0x4abca0=_0xb229d3;if(_0x45ee9a['id']===_0x10a3db['id']){const _0x21ae40=_0x45ee9a[_0x4abca0(0x1f8)],{unitId:_0x23b1bd,subUnitId:_0x1ffdf4,range:_0x5d2c3a}=_0x21ae40,_0x299401=_0x5d2c3a[_0x4abca0(0x1af)],_0x21ae13=_0x5d2c3a[_0x4abca0(0x1e3)]-_0x5d2c3a[_0x4abca0(0x1af)]+0x1,_0x5c6bd2=this[_0x4abca0(0x1b0)][_0x4abca0(0x213)](_0x23b1bd,_0x1ffdf4);if(!_0x5c6bd2)return;for(const [_0x588e54,_0x3aff02]of _0x5c6bd2){this[_0x4abca0(0x1b0)][_0x4abca0(0x222)](_0x23b1bd,_0x1ffdf4,_0x588e54);const _0x2d174c=_0x3aff02[_0x4abca0(0x23b)];_0x2d174c[_0x4abca0(0x1df)]((_0x17a6cf,_0x43ac6b,_0x3ea447)=>{const _0x3a0885=_0x4abca0,_0x1db51e={..._0x3ea447};_0x299401<=_0x1db51e[_0x3a0885(0x1af)]?(_0x1db51e['startColumn']+=_0x21ae13,_0x1db51e[_0x3a0885(0x1e3)]+=_0x21ae13):_0x299401>_0x1db51e['endColumn']||(_0x1db51e[_0x3a0885(0x1e3)]+=_0x21ae13),_0x2d174c[_0x3a0885(0x1f2)](_0x17a6cf,_0x43ac6b,_0x1db51e);});const _0x372b8c=_0x2d174c[_0x4abca0(0x209)]();for(const _0xcab9c1 in _0x372b8c){const _0x146abe=_0x372b8c[Number(_0xcab9c1)];if(!_0x146abe)continue;const _0xa58b67=Object[_0x4abca0(0x1ec)](_0x146abe)[_0x4abca0(0x1b6)](Number),_0x1234e3=Math[_0x4abca0(0x1e2)](..._0xa58b67);for(let _0xe7016a=_0x1234e3;_0xe7016a>=_0x299401;_0xe7016a--)_0xe7016a>=_0x299401&&_0x146abe[_0xe7016a]&&(_0x146abe[_0xe7016a+_0x21ae13]=_0x146abe[_0xe7016a],delete _0x146abe[_0xe7016a]);}this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x23b1bd,_0x1ffdf4,_0x588e54);}}else{if(_0x45ee9a['id']===_0x5bcb04['id']){const _0x5a2839=_0x45ee9a[_0x4abca0(0x1f8)],{unitId:_0x3bb0e6,subUnitId:_0x5df504,range:_0x4f46c7}=_0x5a2839,_0x265f41=_0x4f46c7[_0x4abca0(0x1f4)],_0x6911d0=_0x4f46c7['endRow']-_0x4f46c7['startRow']+0x1,_0x334bc5=this[_0x4abca0(0x1b0)][_0x4abca0(0x213)](_0x3bb0e6,_0x5df504);if(!_0x334bc5)return;for(const [_0x4b68ef,_0x2a570b]of _0x334bc5){this[_0x4abca0(0x1b0)]['clearSparklineCache'](_0x3bb0e6,_0x5df504,_0x4b68ef);const _0x30f4dc=_0x2a570b['sparklines'];_0x30f4dc['forValue']((_0x497fa3,_0x1a50e9,_0xfb053f)=>{const _0x2d73e0=_0x4abca0,_0x452c95={..._0xfb053f};_0x265f41<=_0x452c95[_0x2d73e0(0x1f4)]?(_0x452c95[_0x2d73e0(0x1f4)]+=_0x6911d0,_0x452c95[_0x2d73e0(0x1dd)]+=_0x6911d0):_0x265f41>_0x452c95[_0x2d73e0(0x1dd)]||(_0x452c95[_0x2d73e0(0x1dd)]+=_0x6911d0),_0x30f4dc[_0x2d73e0(0x1f2)](_0x497fa3,_0x1a50e9,_0x452c95);});const _0x32484a=_0x30f4dc[_0x4abca0(0x209)](),_0x4f805a=Object['keys'](_0x32484a)[_0x4abca0(0x1b6)](Number),_0xd227=Math[_0x4abca0(0x1e2)](..._0x4f805a);for(let _0x164b02=_0xd227;_0x164b02>=_0x265f41;_0x164b02--)_0x164b02>=_0x265f41&&_0x32484a[_0x164b02]&&(_0x32484a[_0x164b02+_0x6911d0]=_0x32484a[_0x164b02],delete _0x32484a[_0x164b02]);this[_0x4abca0(0x1b0)][_0x4abca0(0x218)](_0x3bb0e6,_0x5df504,_0x4b68ef);}}else{if(_0x45ee9a['id']===_0x3fc8cc['id']){const _0x215633=_0x45ee9a[_0x4abca0(0x1f8)],{range:_0x4999a8,unitId:_0x38d185,subUnitId:_0x482ad8}=_0x215633,_0x2a889d=this[_0x4abca0(0x1b0)][_0x4abca0(0x213)](_0x38d185,_0x482ad8);if(!_0x2a889d)return;for(const [_0x17f6ea,_0x3b37ae]of _0x2a889d){const _0x1bfef1=_0x3b37ae[_0x4abca0(0x23b)];_0x1bfef1['forValue']((_0x4ce3d0,_0x464dd5,_0x101448)=>{const _0xba866=_0x4abca0,_0x121537=_0x5716f0(_0x101448,_0x45ee9a);_0x121537?_0x1bfef1['setValue'](_0x4ce3d0,_0x464dd5,_0x121537):_0x1bfef1[_0xba866(0x1f2)](_0x4ce3d0,_0x464dd5,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x45ee70[_0xba866(0x1ff)]});}),_0x1bfef1[_0x4abca0(0x1c8)](_0x4999a8[_0x4abca0(0x1af)],_0x4999a8[_0x4abca0(0x1e3)]-_0x4999a8[_0x4abca0(0x1af)]+0x1);}this[_0x4abca0(0x1b0)][_0x4abca0(0x25a)](_0x38d185,_0x482ad8);}else{if(_0x45ee9a['id']===_0x4c70ad['id']){const _0x54745a=_0x45ee9a[_0x4abca0(0x1f8)],{range:_0x72d126,unitId:_0x514931,subUnitId:_0xf7123c}=_0x54745a,_0x234cc4=this[_0x4abca0(0x1b0)][_0x4abca0(0x213)](_0x514931,_0xf7123c);if(!_0x234cc4)return;for(const [_0x33aae5,_0x29b53a]of _0x234cc4){const _0xe25bf2=_0x29b53a['sparklines'];_0xe25bf2['forValue']((_0xafeace,_0x471f86,_0x2efe89)=>{const _0x43c1f2=_0x4abca0,_0x4dc5ec=_0x5716f0(_0x2efe89,_0x45ee9a);_0x4dc5ec?_0xe25bf2['setValue'](_0xafeace,_0x471f86,_0x4dc5ec):_0xe25bf2[_0x43c1f2(0x1f2)](_0xafeace,_0x471f86,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x45ee70[_0x43c1f2(0x1ff)]});}),_0xe25bf2[_0x4abca0(0x205)](_0x72d126[_0x4abca0(0x1f4)],_0x72d126[_0x4abca0(0x1dd)]-_0x72d126[_0x4abca0(0x1f4)]+0x1);}this[_0x4abca0(0x1b0)][_0x4abca0(0x25a)](_0x514931,_0xf7123c);}else{if(_0x45ee9a['id']===_0x585718['id']){const _0x30ff13=_0x45ee9a[_0x4abca0(0x1f8)],{unitId:_0xf89b5,subUnitId:_0x46e3e7,sourceRange:_0x53f311,targetRange:_0x24d38f}=_0x30ff13,_0x4d5839=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0xf89b5,_0x46e3e7);if(!_0x4d5839)return;for(const [_0x293c5b,_0x221059]of _0x4d5839){const _0x5220c3=_0x221059['sparklines'];_0x5220c3[_0x4abca0(0x1df)]((_0x38175d,_0x5753a5,_0x22c19d)=>{const _0x44585e=_0x4abca0,_0x1530cf=_0x5716f0(_0x22c19d,_0x45ee9a);_0x1530cf?_0x5220c3['setValue'](_0x38175d,_0x5753a5,_0x1530cf):_0x5220c3['setValue'](_0x38175d,_0x5753a5,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x45ee70[_0x44585e(0x1ff)]});}),_0x5220c3[_0x4abca0(0x1e7)](_0x53f311[_0x4abca0(0x1af)],_0x53f311[_0x4abca0(0x1e3)]-_0x53f311[_0x4abca0(0x1af)]+0x1,_0x24d38f[_0x4abca0(0x1af)]);}this[_0x4abca0(0x1b0)]['reBuildAnchorCache'](_0xf89b5,_0x46e3e7);}else{if(_0x45ee9a['id']===_0x489d60['id']){const _0x52533b=_0x45ee9a['params'],{unitId:_0x222ec4,subUnitId:_0x538e4b,sourceRange:_0x3e84f6,targetRange:_0x154add}=_0x52533b,_0x467bda=this[_0x4abca0(0x1b0)][_0x4abca0(0x213)](_0x222ec4,_0x538e4b);if(!_0x467bda)return;for(const [_0x3f6b89,_0x4273df]of _0x467bda){const _0x2732a3=_0x4273df['sparklines'];_0x2732a3[_0x4abca0(0x1df)]((_0x59ef19,_0x4c9f27,_0x14e681)=>{const _0x1591eb=_0x4abca0,_0x5e704c=_0x5716f0(_0x14e681,_0x45ee9a);_0x5e704c?_0x2732a3[_0x1591eb(0x1f2)](_0x59ef19,_0x4c9f27,_0x5e704c):_0x2732a3['setValue'](_0x59ef19,_0x4c9f27,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x45ee70[_0x1591eb(0x1ff)]});}),_0x2732a3['moveRows'](_0x3e84f6[_0x4abca0(0x1f4)],_0x3e84f6[_0x4abca0(0x1dd)]-_0x3e84f6[_0x4abca0(0x1f4)]+0x1,_0x154add[_0x4abca0(0x1f4)]);}this['_sparklineDataSourceModel'][_0x4abca0(0x25a)](_0x222ec4,_0x538e4b);}else{if(_0x45ee9a['id']===_0x43b2dc['id']){const _0xa7c464=_0x45ee9a[_0x4abca0(0x1f8)],{fromRange:_0x1cd87d,toRange:_0x688dd5,unitId:_0x2cecbc,from:_0x45a17b,to:_0x995299}=_0xa7c464;if(_0x45a17b[_0x4abca0(0x22e)]!==_0x995299['subUnitId'])return;const _0x3631ca=_0x45a17b[_0x4abca0(0x22e)],{startRow:_0x494e61,endRow:_0x4ef274,startColumn:_0x439edf,endColumn:_0x218e91}=_0x1cd87d,{startRow:_0x2466b7,startColumn:_0x2498a8}=_0x688dd5,_0x5d4264=_0x2466b7-_0x494e61,_0x22b604=_0x2498a8-_0x439edf,_0x52f482=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x2cecbc,_0x3631ca);if(!(_0x52f482!=null&&_0x52f482['size']))return;for(let _0xbe23c=_0x494e61;_0xbe23c<=_0x4ef274;_0xbe23c++)for(let _0x5e1ba8=_0x439edf;_0x5e1ba8<=_0x218e91;_0x5e1ba8++){const _0x49f4b3=this[_0x4abca0(0x1b0)][_0x4abca0(0x258)](_0x2cecbc,_0x3631ca,_0xbe23c,_0x5e1ba8);if(_0x49f4b3){const _0x49751e=this[_0x4abca0(0x1b0)][_0x4abca0(0x1ee)](_0x2cecbc,_0x3631ca,_0x49f4b3);if(_0x49751e){const _0x105737=_0x49751e['sparklines']['getValue'](_0xbe23c,_0x5e1ba8);_0x105737&&(_0x49751e[_0x4abca0(0x23b)]['setValue'](_0xbe23c+_0x5d4264,_0x5e1ba8+_0x22b604,_0x105737),_0x49751e['sparklines']['realDeleteValue'](_0xbe23c,_0x5e1ba8));}}}for(const [_0x349dd2,_0x4bf316]of _0x52f482){const _0x542337=_0x4bf316[_0x4abca0(0x23b)];_0x542337['forValue']((_0x1f5fc9,_0x56d0e5,_0x4f8a96)=>{const _0x24bb93=_0x4abca0,_0x24a6ed={..._0x4f8a96};_0x6f8ace['contains'](_0x1cd87d,_0x4f8a96)&&(_0x24a6ed['startRow']+=_0x5d4264,_0x24a6ed['endRow']+=_0x5d4264,_0x24a6ed[_0x24bb93(0x1af)]+=_0x22b604,_0x24a6ed[_0x24bb93(0x1e3)]+=_0x22b604),_0x542337[_0x24bb93(0x1f2)](_0x1f5fc9,_0x56d0e5,_0x24a6ed);});}this[_0x4abca0(0x1b0)]['reBuildAnchorCache'](_0x2cecbc,_0x3631ca);}}}}}}}}));}};_e=Kt([ue(0x0,_0x3b19d5(_0x12c58b)),ue(0x1,_0x3b19d5(_0x2b1f4e)),ue(0x2,_0x3b19d5(_0x4c800f)),ue(0x3,_0x2a8d55),ue(0x4,_0x3b19d5(x))],_e);var Xt=Object['getOwnPropertyDescriptor'],zt=(_0x9b7fc4,_0x2f9693,_0x233a7d,_0x51e3e6)=>{for(var _0x41f279=_0x51e3e6>0x1?void 0x0:_0x51e3e6?Xt(_0x2f9693,_0x233a7d):_0x2f9693,_0x474eac=_0x9b7fc4['length']-0x1,_0x3faa8c;_0x474eac>=0x0;_0x474eac--)(_0x3faa8c=_0x9b7fc4[_0x474eac])&&(_0x41f279=_0x3faa8c(_0x41f279)||_0x41f279);return _0x41f279;},He=(_0x5d7728,_0x3d9923)=>(_0x1fa913,_0x2a7377)=>_0x3d9923(_0x1fa913,_0x2a7377,_0x5d7728);let Me=class extends _0x1a99b7{constructor(_0x3c9139,_0x5241ae){const _0x4d620f=_0x56d897;super(),this[_0x4d620f(0x1be)]=_0x3c9139,this['_sparklineDataSourceModel']=_0x5241ae,this[_0x4d620f(0x25d)]();}[_0x56d897(0x25d)](){const _0x2b12f2=_0x56d897,_0x42cf8f=_0x16da85=>{const _0x4587fa=_0x30c8,_0x10a084=this[_0x4587fa(0x1b0)]['toJSON'](_0x16da85);return _0x10a084?JSON['stringify'](_0x10a084):'';},_0x9cab57=_0x40192f=>_0x40192f?JSON[_0x2b12f2(0x1f0)](_0x40192f):{};this[_0x2b12f2(0x1e4)](this[_0x2b12f2(0x1be)][_0x2b12f2(0x1c3)]({'toJson':_0x42cf8f,'parseJson':_0x9cab57,'pluginName':Ke,'businesses':[_0x57b9c6[_0x2b12f2(0x21e)]],'onLoad':(_0x2371e4,_0x3b4b40)=>{const _0x5a1a7e=_0x2b12f2;this['_sparklineDataSourceModel'][_0x5a1a7e(0x21c)](_0x3b4b40);},'onUnLoad':_0x2f1e22=>{const _0x1f8dd7=_0x2b12f2;this[_0x1f8dd7(0x1b0)][_0x1f8dd7(0x1e6)](_0x2f1e22);}}));}};Me=zt([He(0x0,_0x3b19d5(_0x3b9b0d)),He(0x1,_0x3b19d5(x))],Me);var Jt=Object[_0x56d897(0x203)],Zt=Object[_0x56d897(0x239)],Yt=(_0x54ec31,_0x3b260f,_0x57ab1a)=>_0x3b260f in _0x54ec31?Jt(_0x54ec31,_0x3b260f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ab1a}):_0x54ec31[_0x3b260f]=_0x57ab1a,qt=(_0x312c0f,_0x46ccc2,_0xd03efd,_0x2e1f92)=>{const _0x55b10c=_0x56d897;for(var _0x9352c4=_0x2e1f92>0x1?void 0x0:_0x2e1f92?Zt(_0x46ccc2,_0xd03efd):_0x46ccc2,_0x1ef466=_0x312c0f[_0x55b10c(0x25f)]-0x1,_0x2f2708;_0x1ef466>=0x0;_0x1ef466--)(_0x2f2708=_0x312c0f[_0x1ef466])&&(_0x9352c4=_0x2f2708(_0x9352c4)||_0x9352c4);return _0x9352c4;},Be=(_0x2c0a0e,_0x438098)=>(_0x21f3e8,_0x516895)=>_0x438098(_0x21f3e8,_0x516895,_0x2c0a0e),ze=(_0x13969f,_0x17e8d5,_0x23c38a)=>Yt(_0x13969f,typeof _0x17e8d5!=_0x56d897(0x20d)?_0x17e8d5+'':_0x17e8d5,_0x23c38a);let Re=class extends _0x2cecd9{constructor(_0x18bdf0={},_0x262823,_0x1727ac){const _0x28f6b2=_0x56d897;super(),this[_0x28f6b2(0x246)]=_0x18bdf0,this[_0x28f6b2(0x1d5)]=_0x262823,this['_commandService']=_0x1727ac,this[_0x28f6b2(0x1d2)](),this['_initRegisterCommand']();}[_0x56d897(0x1d2)](){const _0x273ce0=_0x56d897;[[x],[ke],[Ce],[he],[_e],[me],[Se],[Me]][_0x273ce0(0x1fd)](_0x5298e2=>{const _0x248e8b=_0x273ce0;this[_0x248e8b(0x1d5)][_0x248e8b(0x1ed)](_0x5298e2);}),_0x1cce8f(this[_0x273ce0(0x1d5)],[[Me]]);}[_0x56d897(0x22b)](){const _0x37eca4=_0x56d897;_0x1cce8f(this[_0x37eca4(0x1d5)],[[ke],[Ce],[he],[_e],[me],[Se]]);}[_0x56d897(0x1b4)](){const _0x418054=_0x56d897;[Nt,V,Ot,y,xt,Oe][_0x418054(0x1fd)](_0x391000=>this[_0x418054(0x247)][_0x418054(0x21b)](_0x391000));}};ze(Re,_0x56d897(0x230),Ke),ze(Re,_0x56d897(0x25b),_0x57b9c6[_0x56d897(0x21e)]),Re=qt([_0x5289f3(_0x525b1b),Be(0x1,_0x3b19d5(_0x58eee3)),Be(0x2,_0x3b19d5(_0x12c58b))],Re);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,z as SpacialShowAsEnum,x as SparklineDataSourceModel,Ee as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,Re as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
|
1
|
+
const _0x526a21=_0x3e0e;(function(_0x14bf80,_0x5bc547){const _0x1d0d9e=_0x3e0e,_0x27ceeb=_0x14bf80();while(!![]){try{const _0xc5bec=parseInt(_0x1d0d9e(0x1c1))/0x1+-parseInt(_0x1d0d9e(0x192))/0x2+-parseInt(_0x1d0d9e(0x1bc))/0x3+-parseInt(_0x1d0d9e(0x215))/0x4*(-parseInt(_0x1d0d9e(0x1a2))/0x5)+parseInt(_0x1d0d9e(0x1e5))/0x6+parseInt(_0x1d0d9e(0x1d6))/0x7*(-parseInt(_0x1d0d9e(0x1c4))/0x8)+parseInt(_0x1d0d9e(0x1ab))/0x9*(parseInt(_0x1d0d9e(0x1da))/0xa);if(_0xc5bec===_0x5bc547)break;else _0x27ceeb['push'](_0x27ceeb['shift']());}catch(_0x28e33c){_0x27ceeb['push'](_0x27ceeb['shift']());}}}(_0x41ee,0x3495a));var qe=Object[_0x526a21(0x167)],Qe=(_0x4912c0,_0xace048,_0x428e02)=>_0xace048 in _0x4912c0?qe(_0x4912c0,_0xace048,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x428e02}):_0x4912c0[_0xace048]=_0x428e02,se=(_0x474a32,_0x1223f0,_0x1f48a3)=>Qe(_0x474a32,typeof _0x1223f0!=_0x526a21(0x211)?_0x1223f0+'':_0x1223f0,_0x1f48a3);function _0x41ee(){const _0x33eaa9=['NORMAL','_config','row','from','matrix','_getRefRangeMutationsByDeleteRows','_sheetSelectionService','pushUndoRedo','endRow','removePartSparkline','nonNumShowAs','u-connect','size','getCellRaw','clone','setSparkline','actualRow','removeRows','config','interceptCommand','type','assign','PROFIT_AND_LOSS_CHART','SPECIALTY','realDeleteValue','subscribe','COMMAND','deleteUnit','keys','clearSparklineCache','soft','symbol','SHEET_SPARKLINE_PLUGIN','fromJSON','zero_value','128UOjjqe','setValue','reBuildAnchorCache','pluginName','_initExclusiveRangeChange','deepClone','add','length','_initCopySheetWithSparkline','emptyShowAs','PIE_CHART','stringify','map','refRangeHandle','standard','CUSTOM_EXTREMUM','u-spacing','defineProperty','getSparklineById','getCurrentUnitForType','rgb(54,78,244)','seriesColor','fresh','_initRegisterCommand','registerCommand','max','ZERO_VALUE','forEach','number','MIN_SAFE_INTEGER','disposeWithMe','moveColumns','sparklineModel','markersPoint','every','LINE_CHART','getSubUnitSparkline','highPoint','dispose','forValue','MUTATION','extremumMin','endColumn','distinctive','params','has','ranges','registerPluginResource','SPACING','STANDARD','rgb(248,190,21)','value','next','sheet.mutation.set-sparkline','_initDataChangeListener','_initClearWithSparkline','getCell','exclusiveRangesChange$','_initMergeWithSparkline','min','70092FLTzMF','sparklineAnchorMap','delete','CONNECT_WITH_LINE','rgb(252,117,60)','item','push','removeSparkline','groupId','setAlpha','startColumn','SELF_EXTREMUM','_initHideRowColWithSparkline','unitId','getSheetBySheetId','_ensureAnchorMatrix','32215TUPwsp','getValue','updateSparklineExtraNum','entries','registerRefRange','extremumMax','BOOLEAN','DISTINCTIVE','getSparklineCache','4401rZicss','connect_with_line','getSparkline','lastPoint','set','disposableCollection','updateConfig$','toRgbString','_commandService','_initCorrectRangeWithSparkline','getColVisible','BAR_CHART','sparklines','rgb(30,177,189)','negativePoint','_updateConfig$','get','192813zAJPJY','intersects','startRow','range','getSizeOf','281864SMUCgn','_refRangeService','subUnitId','3496XFXZOq','sheet.mutation.remove-sparkline','_initDependencies','hasValue','rgb(236,100,169)','themeType','foreach','_exclusiveRangeService','MAX_SAFE_INTEGER','FORCE_STRING','addSparkline','_getRefRangeMutationsByDeleteCols','_onRefRangeChange','some','getCurrentSelections','_injector','_sheetInterceptorService','rgb(46,187,122)','5404ONyZTy','UNIVER_SHEET','_univerInstanceService','_initSnapshot','960igEfuB','_resourceManagerService','onCommandExecuted','getOwnPropertyDescriptor','_sparklineModel','getMatrix','getRowVisible','CUSTOM','_sparklineAnchorMap','_ensureConfigMap','removeColumns','702498yfQiHt','GROUP_EXTREMUM','_sparklineDataSourceModel','custom','sheet.command.add-sparkline','contains','changeDataSourceInfo','column','sheet.command.remove-sparkline','actualColumn','toJSON','firstPoint','SOFT'];_0x41ee=function(){return _0x33eaa9;};return _0x41ee();}import{UniverLicensePlugin as _0x56acad}from'@univerjs-pro/license';function _0x3e0e(_0x29e286,_0x4671d6){const _0x41eef3=_0x41ee();return _0x3e0e=function(_0x3e0e77,_0x465370){_0x3e0e77=_0x3e0e77-0x15f;let _0x4dd0c9=_0x41eef3[_0x3e0e77];return _0x4dd0c9;},_0x3e0e(_0x29e286,_0x4671d6);}import{ObjectMatrix as _0x33c5b5,Inject as _0x17f73d,IUniverInstanceService as _0x130024,Disposable as _0x5a770f,isValidRange as _0x127438,CellValueType as _0x285d62,ColorKit as _0x476136,CommandType as _0xefe616,Range as _0x474673,IUndoRedoService as _0x3b3e5c,generateRandomId as _0x279c2d,ICommandService as _0x42b904,Tools as _0x179598,sequenceExecute as _0x569c9c,Rectangle as _0x35a2af,cellToRange as _0x34b6dc,DisposableCollection as _0x5ad48a,RANGE_TYPE as _0x3c5267,UniverInstanceType as _0x1bef9b,IResourceManagerService as _0x5a3fc0,DependentOn as _0x3bdb59,Injector as _0x12a2f1,Plugin as _0x392d0b,touchDependencies as _0x497851}from'@univerjs/core';import{getSheetCommandTarget as _0x1a212e,SheetsSelectionsService as _0x306724,SheetInterceptorService as _0x19f245,ClearSelectionAllCommand as _0x3b882a,CopySheetCommand as _0x98f212,IExclusiveRangeService as _0xe77feb,SetRangeValuesMutation as _0x30442b,ReorderRangeMutation as _0x237a84,SetRowHiddenMutation as _0x5ece9c,SetColHiddenMutation as _0x3820b4,SetRowVisibleMutation as _0x54be23,SetColVisibleMutation as _0x5493e9,AddWorksheetMergeCommand as _0x58840b,RefRangeService as _0x17db45,SetWorksheetActivateCommand as _0x2552ee,RemoveRowCommand as _0x1c3873,RemoveColCommand as _0x1eb794,adjustRangeOnMutation as _0x26b750,RemoveRowMutation as _0xce5075,RemoveColMutation as _0xe5b986,InsertColMutation as _0x2e2bda,InsertRowMutation as _0x4f3a7a,MoveColsMutation as _0x252ae2,MoveRowsMutation as _0xba5f6e,MoveRangeMutation as _0x5efdcb}from'@univerjs/sheets';import{Subject as _0x1fdb22}from'rxjs';function Fe(_0xc07eb4,_0x5147ca){const _0xa6efee=_0x526a21,_0x757d92=new _0x33c5b5(),_0x2967ed=[],_0x27a5e0=_0xc07eb4[_0xa6efee(0x21c)]>0x1;let _0x2fd0e9=0x0,_0x2e03dc=0x0;for(const _0x4e3576 of _0xc07eb4)_0x2fd0e9+=_0x4e3576['endRow']-_0x4e3576['startRow']+0x1,_0x2e03dc+=_0x4e3576[_0xa6efee(0x180)]-_0x4e3576[_0xa6efee(0x19c)]+0x1;for(const _0x3f027e of _0x5147ca)for(let _0xccc2f2=_0x3f027e[_0xa6efee(0x1be)];_0xccc2f2<=_0x3f027e[_0xa6efee(0x1fa)];_0xccc2f2++)for(let _0x279761=_0x3f027e['startColumn'];_0x279761<=_0x3f027e['endColumn'];_0x279761++)_0x2967ed[_0xa6efee(0x198)]({'row':_0xccc2f2,'column':_0x279761});if(_0x2967ed[_0xa6efee(0x21c)]===_0x2fd0e9)_0x27a5e0?_0x2967ed[_0xa6efee(0x171)]((_0x29a653,_0x41ea7d)=>{const _0x1a187c=_0xa6efee,_0x27376f=_0xc07eb4[_0x41ea7d],_0x27e48a={'startRow':_0x27376f[_0x1a187c(0x1be)],'startColumn':_0x27376f[_0x1a187c(0x19c)],'endRow':_0x27376f['startRow'],'endColumn':_0x27376f[_0x1a187c(0x180)]};_0x757d92[_0x1a187c(0x216)](_0x29a653['row'],_0x29a653[_0x1a187c(0x1ec)],_0x27e48a);}):_0x2967ed[_0xa6efee(0x171)]((_0x3301d9,_0x51ce62)=>{const _0x41a1e8=_0xa6efee,_0x62799=_0xc07eb4[0x0],_0x70d7e8={'startRow':_0x62799[_0x41a1e8(0x1be)]+_0x51ce62,'startColumn':_0x62799['startColumn'],'endRow':_0x62799[_0x41a1e8(0x1be)]+_0x51ce62,'endColumn':_0x62799[_0x41a1e8(0x180)]};_0x757d92[_0x41a1e8(0x216)](_0x3301d9['row'],_0x3301d9[_0x41a1e8(0x1ec)],_0x70d7e8);});else{if(_0x2967ed[_0xa6efee(0x21c)]===_0x2e03dc)_0x27a5e0?_0x2967ed[_0xa6efee(0x171)]((_0xa4af10,_0x2d1256)=>{const _0x3e1137=_0xa6efee,_0x2a42b8=_0xc07eb4[_0x2d1256],_0x3be818={'startRow':_0x2a42b8['startRow'],'startColumn':_0x2a42b8[_0x3e1137(0x19c)],'endRow':_0x2a42b8[_0x3e1137(0x1fa)],'endColumn':_0x2a42b8[_0x3e1137(0x19c)]};_0x757d92['setValue'](_0xa4af10[_0x3e1137(0x1f4)],_0xa4af10[_0x3e1137(0x1ec)],_0x3be818);}):_0x2967ed['forEach']((_0x204399,_0x306782)=>{const _0xd5f00=_0xa6efee,_0x75a7b2=_0xc07eb4[0x0],_0x3a9e33={'startRow':_0x75a7b2[_0xd5f00(0x1be)],'startColumn':_0x75a7b2[_0xd5f00(0x19c)]+_0x306782,'endRow':_0x75a7b2[_0xd5f00(0x1fa)],'endColumn':_0x75a7b2[_0xd5f00(0x19c)]+_0x306782};_0x757d92[_0xd5f00(0x216)](_0x204399[_0xd5f00(0x1f4)],_0x204399[_0xd5f00(0x1ec)],_0x3a9e33);});else{if(_0x2967ed[_0xa6efee(0x21c)]===_0xc07eb4['length'])_0xc07eb4[_0xa6efee(0x178)](_0x36d9e3=>!(_0x36d9e3[_0xa6efee(0x1be)]!==_0x36d9e3[_0xa6efee(0x1fa)]&&_0x36d9e3[_0xa6efee(0x19c)]!==_0x36d9e3[_0xa6efee(0x180)]))&&_0x2967ed[_0xa6efee(0x171)]((_0x15e39,_0x4c05c5)=>{const _0x3f197f=_0xa6efee,_0x2e815b=_0xc07eb4[_0x4c05c5];_0x757d92[_0x3f197f(0x216)](_0x15e39[_0x3f197f(0x1f4)],_0x15e39[_0x3f197f(0x1ec)],_0x2e815b);});else throw new Error('Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.');}}return _0x757d92;}const Ke=_0x526a21(0x212),Le={'standard':[_0x526a21(0x16a),_0x526a21(0x1c8)],'specialty':['rgb(49,106,246)',_0x526a21(0x1b8)],'distinctive':['rgb(124,66,147)',_0x526a21(0x196)],'soft':['rgb(80,102,248)','rgb(244,104,249)'],'fresh':[_0x526a21(0x1d5),_0x526a21(0x188)]},on=[_0x526a21(0x17b),_0x526a21(0x1f0),_0x526a21(0x1ae),'lowPoint',_0x526a21(0x1b9),_0x526a21(0x177)];var Xe=(_0x2924af=>(_0x2924af['STANDARD']=_0x526a21(0x164),_0x2924af[_0x526a21(0x209)]='specialty',_0x2924af[_0x526a21(0x1a9)]=_0x526a21(0x181),_0x2924af[_0x526a21(0x1f1)]=_0x526a21(0x210),_0x2924af['FRESH']=_0x526a21(0x16c),_0x2924af[_0x526a21(0x1e1)]=_0x526a21(0x1e8),_0x2924af))(Xe||{}),Dt=(_0x2ea468=>(_0x2ea468[_0x2ea468[_0x526a21(0x179)]=0x1]=_0x526a21(0x179),_0x2ea468[_0x2ea468[_0x526a21(0x1b6)]=0x2]=_0x526a21(0x1b6),_0x2ea468[_0x2ea468['PROFIT_AND_LOSS_CHART']=0x3]=_0x526a21(0x208),_0x2ea468[_0x2ea468[_0x526a21(0x160)]=0x4]='PIE_CHART',_0x2ea468))(Dt||{}),z=(_0x3682c7=>(_0x3682c7[_0x526a21(0x186)]='spacing',_0x3682c7[_0x526a21(0x170)]=_0x526a21(0x214),_0x3682c7[_0x526a21(0x195)]=_0x526a21(0x1ac),_0x3682c7))(z||{}),Ee=(_0x47023b=>(_0x47023b[_0x47023b['SELF_EXTREMUM']=0x1]=_0x526a21(0x19d),_0x47023b[_0x47023b[_0x526a21(0x1e6)]=0x2]=_0x526a21(0x1e6),_0x47023b[_0x47023b[_0x526a21(0x165)]=0x3]=_0x526a21(0x165),_0x47023b))(Ee||{}),Et=Object['getOwnPropertyDescriptor'],Vt=(_0x29403e,_0x3f8078,_0x8a93ad,_0x917162)=>{const _0x42c036=_0x526a21;for(var _0x41b60f=_0x917162>0x1?void 0x0:_0x917162?Et(_0x3f8078,_0x8a93ad):_0x3f8078,_0x1f8cd9=_0x29403e[_0x42c036(0x21c)]-0x1,_0x28a80c;_0x1f8cd9>=0x0;_0x1f8cd9--)(_0x28a80c=_0x29403e[_0x1f8cd9])&&(_0x41b60f=_0x28a80c(_0x41b60f)||_0x41b60f);return _0x41b60f;},yt=(_0x55311a,_0x94175a)=>(_0x170797,_0xa503c7)=>_0x94175a(_0x170797,_0xa503c7,_0x55311a);let x=class extends _0x5a770f{constructor(_0x59d17a){const _0x1f0e50=_0x526a21;super(),se(this,_0x1f0e50(0x1de),new Map()),se(this,_0x1f0e50(0x1e2),new Map()),se(this,'_updateConfig$',new _0x1fdb22()),se(this,_0x1f0e50(0x1b1),this['_updateConfig$']['asObservable']()),this[_0x1f0e50(0x1d8)]=_0x59d17a;}[_0x526a21(0x1e3)](_0x123420,_0x2e5e3b){const _0xb8dab3=_0x526a21;let _0x2555a8=this[_0xb8dab3(0x1de)][_0xb8dab3(0x1bb)](_0x123420);_0x2555a8||(_0x2555a8=new Map(),this['_sparklineModel']['set'](_0x123420,_0x2555a8));let _0x36056=_0x2555a8['get'](_0x2e5e3b);return _0x36056||(_0x36056=new Map(),_0x2555a8[_0xb8dab3(0x1af)](_0x2e5e3b,_0x36056)),_0x36056;}['_ensureAnchorMatrix'](_0x2f5731,_0x56f141){const _0x22c2be=_0x526a21;let _0x16eba0=this[_0x22c2be(0x1e2)][_0x22c2be(0x1bb)](_0x2f5731);_0x16eba0||(_0x16eba0=new Map(),this[_0x22c2be(0x1e2)][_0x22c2be(0x1af)](_0x2f5731,_0x16eba0));let _0x7f6924=_0x16eba0[_0x22c2be(0x1bb)](_0x56f141);return _0x7f6924||(_0x7f6924={'matrix':new _0x33c5b5(),'extra':{}},_0x16eba0[_0x22c2be(0x1af)](_0x56f141,_0x7f6924)),_0x7f6924;}['updateSparklineExtraNum'](_0x36ce44,_0x3b5bfa,_0x582600,_0x20bab2='set'){const _0x2d8036=_0x526a21;var _0x5e0370,_0x39ce3e,_0x3f980e,_0x11a0b5,_0x2329f8,_0x8da4fb,_0x423ebc,_0x870eb4,_0x554a77,_0x426e42,_0x2eb8fd,_0x478f72,_0x4fb4af;const _0x5c4177=(_0x39ce3e=(_0x5e0370=this[_0x2d8036(0x1de)]['get'](_0x36ce44))==null?void 0x0:_0x5e0370[_0x2d8036(0x1bb)](_0x3b5bfa))==null?void 0x0:_0x39ce3e[_0x2d8036(0x1bb)](_0x582600);if(!_0x5c4177)return;const _0x2cb701=_0x1a212e(this['_univerInstanceService'],{'unitId':_0x36ce44,'subUnitId':_0x3b5bfa});if(!_0x2cb701)throw new Error('[Sheet\x20Sparkline]:\x20Invalid\x20target');const _0x3a8834=this[_0x2d8036(0x1a1)](_0x36ce44,_0x3b5bfa),{extra:_0x330906,matrix:_0x28a5b3}=_0x3a8834,{worksheet:_0x8164cf}=_0x2cb701;let _0x2d1916=Number[_0x2d8036(0x173)],_0x92fd41=Number['MAX_SAFE_INTEGER'];const _0x8f0652=(_0x3f980e=_0x5c4177[_0x2d8036(0x204)]['containHiddenCells'])!=null?_0x3f980e:!0x1;_0x5c4177[_0x2d8036(0x1b7)]['forValue']((_0x33bf9e,_0xa1e782,_0x105ac3)=>{const _0x48f4f7=_0x2d8036;var _0x2bf5f0,_0x484951,_0x547cf4;const _0x14d29d=_0x105ac3;let _0xc858a5=Number[_0x48f4f7(0x173)],_0x5b66da=Number[_0x48f4f7(0x1cc)],_0x428cc8=0x0,_0x4e826d=0x0;const _0x5ceb5c=[];if(!_0x127438(_0x14d29d))_0x28a5b3[_0x48f4f7(0x216)](_0x33bf9e,_0xa1e782,{'groupId':_0x582600,'data':[],'max':_0xc858a5,'min':_0x5b66da,'highIndex':_0x428cc8,'lowIndex':_0x4e826d,'negativeIndexes':_0x5ceb5c});else{const _0x1121c7=[];for(let _0xb04a32=_0x14d29d['startRow'];_0xb04a32<=_0x14d29d['endRow'];_0xb04a32++){for(let _0x487586=_0x14d29d[_0x48f4f7(0x19c)];_0x487586<=_0x14d29d['endColumn'];_0x487586++){const _0x519932=_0x8164cf[_0x48f4f7(0x1e0)](_0xb04a32),_0x54fb86=_0x8164cf[_0x48f4f7(0x1b5)](_0x487586);if(!_0x8f0652&&(!_0x519932||!_0x54fb86))continue;let _0xf5508c=0x0;const _0x196091=((_0x2bf5f0=_0x8164cf[_0x48f4f7(0x1ff)](_0xb04a32,_0x487586))==null?void 0x0:_0x2bf5f0['v'])!==void 0x0?_0x8164cf[_0x48f4f7(0x1ff)](_0xb04a32,_0x487586):_0x8164cf[_0x48f4f7(0x18e)](_0xb04a32,_0x487586);if(!_0x196091||_0x196091['v']===void 0x0||_0x196091['v']===null){const _0x4620e6=(_0x484951=_0x5c4177[_0x48f4f7(0x204)][_0x48f4f7(0x15f)])!=null?_0x484951:z['SPACING'];_0x4620e6===z['ZERO_VALUE']?_0xf5508c=0x0:_0x4620e6===z[_0x48f4f7(0x186)]?_0xf5508c=_0x48f4f7(0x166):_0x4620e6===z['CONNECT_WITH_LINE']&&(_0xf5508c=_0x48f4f7(0x1fd));}else{if(_0x196091['t']===_0x285d62['STRING']||_0x196091['t']===_0x285d62[_0x48f4f7(0x1cd)]){const _0x27b462=(_0x547cf4=_0x5c4177[_0x48f4f7(0x204)][_0x48f4f7(0x1fc)])!=null?_0x547cf4:z[_0x48f4f7(0x186)];_0x27b462===z[_0x48f4f7(0x170)]?_0xf5508c=0x0:_0x27b462===z[_0x48f4f7(0x186)]?_0xf5508c=_0x48f4f7(0x166):_0x27b462===z[_0x48f4f7(0x195)]&&(_0xf5508c='u-connect');}else _0x196091['t']===_0x285d62[_0x48f4f7(0x1a8)]?_0xf5508c=_0x196091['v']?0x1:0x0:_0xf5508c=_0x196091['v'];}if(_0x1121c7[_0x48f4f7(0x198)](_0xf5508c),typeof _0xf5508c==_0x48f4f7(0x172)){_0xc858a5=Math[_0x48f4f7(0x16f)](_0xc858a5,_0xf5508c),_0x2d1916=Math['max'](_0x2d1916,_0xf5508c),_0x92fd41=Math[_0x48f4f7(0x191)](_0x92fd41,_0xf5508c),_0x5b66da=Math['min'](_0x5b66da,_0xf5508c);const _0x1a705c=typeof _0x1121c7[_0x428cc8]==_0x48f4f7(0x172)?Number(_0x1121c7[_0x428cc8]):Number[_0x48f4f7(0x173)];_0xf5508c>_0x1a705c&&(_0x428cc8=_0x1121c7['length']-0x1);const _0x334608=typeof _0x1121c7[_0x4e826d]=='number'?Number(_0x1121c7[_0x4e826d]):Number[_0x48f4f7(0x1cc)];_0xf5508c<_0x334608&&(_0x4e826d=_0x1121c7[_0x48f4f7(0x21c)]-0x1),_0xf5508c<0x0&&_0x5ceb5c['push'](_0x1121c7[_0x48f4f7(0x21c)]-0x1);}}_0x28a5b3[_0x48f4f7(0x216)](_0x33bf9e,_0xa1e782,{'groupId':_0x582600,'data':_0x1121c7,'max':_0xc858a5,'min':_0x5b66da,'highIndex':_0x428cc8,'lowIndex':_0x4e826d,'negativeIndexes':_0x5ceb5c});}}});let _0x36f134=_0x2d1916;((_0x11a0b5=_0x5c4177[_0x2d8036(0x204)][_0x2d8036(0x1a7)])==null?void 0x0:_0x11a0b5[_0x2d8036(0x206)])===Ee[_0x2d8036(0x165)]&&(_0x36f134=(_0x8da4fb=(_0x2329f8=_0x5c4177[_0x2d8036(0x204)][_0x2d8036(0x1a7)])==null?void 0x0:_0x2329f8[_0x2d8036(0x189)])!=null?_0x8da4fb:_0x2d1916);let _0x23e4bb=_0x92fd41;((_0x423ebc=_0x5c4177[_0x2d8036(0x204)][_0x2d8036(0x17f)])==null?void 0x0:_0x423ebc[_0x2d8036(0x206)])===Ee[_0x2d8036(0x165)]&&(_0x23e4bb=(_0x554a77=(_0x870eb4=_0x5c4177[_0x2d8036(0x204)][_0x2d8036(0x17f)])==null?void 0x0:_0x870eb4['value'])!=null?_0x554a77:_0x92fd41);const _0x492752=(_0x426e42=_0x5c4177[_0x2d8036(0x204)][_0x2d8036(0x1c9)])!=null?_0x426e42:Xe[_0x2d8036(0x187)],_0x21fc9e=(_0x4fb4af=(_0x478f72=_0x5c4177[_0x2d8036(0x204)][_0x2d8036(0x16b)])!=null?_0x478f72:(_0x2eb8fd=Le[_0x492752])==null?void 0x0:_0x2eb8fd[0x0])!=null?_0x4fb4af:Le[_0x2d8036(0x164)][0x0],_0x36d4d9=new _0x476136(_0x21fc9e),_0x3c0640=_0x36d4d9['setAlpha'](0.2)[_0x2d8036(0x1b2)](),_0xac1706=_0x36d4d9[_0x2d8036(0x19b)](0.05)[_0x2d8036(0x1b2)]();_0x330906[_0x582600]={'groupMax':_0x2d1916,'groupMin':_0x92fd41,'showMax':_0x36f134,'showMin':_0x23e4bb,'startGradient':_0x3c0640,'endGradient':_0xac1706},this[_0x2d8036(0x1ba)][_0x2d8036(0x18a)]({'unitId':_0x36ce44,'subUnitId':_0x3b5bfa,'groupId':_0x582600,'config':_0x5c4177,'type':_0x20bab2});}[_0x526a21(0x1ce)](_0x1e79bd,_0x17e66e,_0x2f1a23,_0x2a7e66){const _0x42a61a=_0x526a21;this[_0x42a61a(0x1e3)](_0x1e79bd,_0x17e66e)[_0x42a61a(0x1af)](_0x2f1a23,_0x2a7e66),this[_0x42a61a(0x1a4)](_0x1e79bd,_0x17e66e,_0x2f1a23,_0x42a61a(0x21b));}['setSparkline'](_0x5eafae,_0x5f468c,_0x371e33,_0x162803){const _0x180e8a=_0x526a21;var _0x19eb02;const _0x5c2cf0=(_0x19eb02=this[_0x180e8a(0x1de)][_0x180e8a(0x1bb)](_0x5eafae))==null?void 0x0:_0x19eb02[_0x180e8a(0x1bb)](_0x5f468c);_0x371e33[_0x180e8a(0x171)](_0x5c9389=>{const _0x899d7e=_0x180e8a;_0x5c2cf0!=null&&_0x5c2cf0[_0x899d7e(0x183)](_0x5c9389)&&(_0x5c2cf0['set'](_0x5c9389,_0x162803),this[_0x899d7e(0x1a4)](_0x5eafae,_0x5f468c,_0x5c9389));});}[_0x526a21(0x199)](_0x525e13,_0x26fb33,_0x3526d1){const _0x342648=_0x526a21;var _0x2c4a57,_0x2c0db7;const _0x3ff388=this[_0x342648(0x1de)]['get'](_0x525e13);if(_0x3ff388){const _0x4accae=_0x3ff388[_0x342648(0x1bb)](_0x26fb33);if(_0x4accae){_0x4accae['delete'](_0x3526d1);const _0xa38751=(_0x2c4a57=this[_0x342648(0x1e2)][_0x342648(0x1bb)](_0x525e13))==null?void 0x0:_0x2c4a57['get'](_0x26fb33);(_0x2c0db7=_0xa38751==null?void 0x0:_0xa38751[_0x342648(0x1f6)])==null||_0x2c0db7['forValue']((_0x390bc8,_0x5f3ca3,_0x4f86fb)=>{const _0x30f141=_0x342648;(_0x4f86fb==null?void 0x0:_0x4f86fb[_0x30f141(0x19a)])===_0x3526d1&&(_0xa38751==null||_0xa38751[_0x30f141(0x1f6)][_0x30f141(0x20a)](_0x390bc8,_0x5f3ca3));}),this['_updateConfig$'][_0x342648(0x18a)]({'unitId':_0x525e13,'subUnitId':_0x26fb33,'groupId':_0x3526d1,'type':'remove'});}}}[_0x526a21(0x1fb)](_0x420e9a,_0x1c03df,_0x49491b,_0x2983f4){const _0xaa413f=_0x526a21;var _0x35aa3b,_0x292e33,_0x288d3b,_0x2f7dc0;const _0x4aab56=(_0x35aa3b=this[_0xaa413f(0x1e2)]['get'](_0x420e9a))==null?void 0x0:_0x35aa3b['get'](_0x1c03df),_0xda9136=_0x4aab56==null?void 0x0:_0x4aab56[_0xaa413f(0x1f6)]['getValue'](_0x49491b,_0x2983f4);if(_0xda9136){const {groupId:_0xbf5fb6}=_0xda9136,_0xb2a49a=(_0x292e33=this[_0xaa413f(0x1de)][_0xaa413f(0x1bb)](_0x420e9a))==null?void 0x0:_0x292e33[_0xaa413f(0x1bb)](_0x1c03df);(_0x288d3b=_0xb2a49a==null?void 0x0:_0xb2a49a['get'](_0xbf5fb6))==null||_0x288d3b[_0xaa413f(0x1b7)]['realDeleteValue'](_0x49491b,_0x2983f4),(_0x2f7dc0=_0xb2a49a==null?void 0x0:_0xb2a49a[_0xaa413f(0x1bb)](_0xbf5fb6))!=null&&_0x2f7dc0['sparklines'][_0xaa413f(0x1c7)]()||_0xb2a49a==null||_0xb2a49a[_0xaa413f(0x194)](_0xbf5fb6),_0x4aab56==null||_0x4aab56[_0xaa413f(0x1f6)][_0xaa413f(0x20a)](_0x49491b,_0x2983f4),this[_0xaa413f(0x1ba)]['next']({'unitId':_0x420e9a,'subUnitId':_0x1c03df,'groupId':_0xbf5fb6,'type':'remove'});}}[_0x526a21(0x20f)](_0x38415e,_0xee3948,_0x5f1519){const _0x5a9d47=_0x526a21;var _0x5c4e3b,_0x33bb19,_0x42e5ef,_0x10d85d;const _0x2d3e75=(_0x42e5ef=(_0x33bb19=(_0x5c4e3b=this[_0x5a9d47(0x1de)][_0x5a9d47(0x1bb)](_0x38415e))==null?void 0x0:_0x5c4e3b[_0x5a9d47(0x1bb)](_0xee3948))==null?void 0x0:_0x33bb19[_0x5a9d47(0x1bb)](_0x5f1519))==null?void 0x0:_0x42e5ef['sparklines'],_0x35c0f9=(_0x10d85d=this['_sparklineAnchorMap'][_0x5a9d47(0x1bb)](_0x38415e))==null?void 0x0:_0x10d85d[_0x5a9d47(0x1bb)](_0xee3948);if(_0x2d3e75&&_0x35c0f9){const {matrix:_0x41c913,extra:_0x2cf454}=_0x35c0f9;_0x2d3e75[_0x5a9d47(0x17d)]((_0x4019a1,_0x3c0150,_0x137938)=>{const _0x525f02=_0x5a9d47;_0x41c913[_0x525f02(0x20a)](_0x4019a1,_0x3c0150);}),delete _0x2cf454[_0x5f1519];}}[_0x526a21(0x17a)](_0x4709d8,_0x314956){const _0x151a83=_0x526a21;var _0x3e3012;return(_0x3e3012=this[_0x151a83(0x1de)][_0x151a83(0x1bb)](_0x4709d8))==null?void 0x0:_0x3e3012[_0x151a83(0x1bb)](_0x314956);}['getSparklineById'](_0x426915,_0x122de4,_0x1605cc){const _0x26465d=_0x526a21;var _0x3b72dc,_0x4d0c75;return(_0x4d0c75=(_0x3b72dc=this[_0x26465d(0x1de)][_0x26465d(0x1bb)](_0x426915))==null?void 0x0:_0x3b72dc[_0x26465d(0x1bb)](_0x122de4))==null?void 0x0:_0x4d0c75[_0x26465d(0x1bb)](_0x1605cc);}[_0x526a21(0x1ad)](_0x404d61,_0x58c47c,_0x1aeef7,_0x267808){const _0x2414a1=_0x526a21;var _0x199e46,_0x15a63f,_0x5bb0c6;return(_0x5bb0c6=(_0x15a63f=(_0x199e46=this[_0x2414a1(0x1e2)][_0x2414a1(0x1bb)](_0x404d61))==null?void 0x0:_0x199e46[_0x2414a1(0x1bb)](_0x58c47c))==null?void 0x0:_0x15a63f[_0x2414a1(0x1f6)]['getValue'](_0x1aeef7,_0x267808))==null?void 0x0:_0x5bb0c6[_0x2414a1(0x19a)];}[_0x526a21(0x217)](_0x1ff836,_0x580f71){const _0x33a7c4=_0x526a21;var _0x24d886;const _0x4418ab=this[_0x33a7c4(0x1a1)](_0x1ff836,_0x580f71);_0x4418ab[_0x33a7c4(0x1f6)][_0x33a7c4(0x17d)]((_0x92007f,_0x323302,_0x5a0028)=>{const _0x553f32=_0x33a7c4;_0x4418ab[_0x553f32(0x1f6)]['realDeleteValue'](_0x92007f,_0x323302);});const _0x33a22c=(_0x24d886=this[_0x33a7c4(0x1de)][_0x33a7c4(0x1bb)](_0x1ff836))==null?void 0x0:_0x24d886['get'](_0x580f71);if(_0x33a22c){for(const [_0x1f7c76,_0x116040]of _0x33a22c)this[_0x33a7c4(0x1a4)](_0x1ff836,_0x580f71,_0x1f7c76);}}[_0x526a21(0x1aa)](){const _0x598156=_0x526a21;return{'sparklineModel':this[_0x598156(0x1de)],'sparklineAnchorMap':this['_sparklineAnchorMap']};}['toJSON'](_0x23292d){const _0x1434f1=_0x526a21,_0x52dcf2={};if(this['_sparklineModel'][_0x1434f1(0x183)](_0x23292d)){_0x52dcf2[_0x23292d]={};const _0x489111=this['_sparklineModel'][_0x1434f1(0x1bb)](_0x23292d);_0x489111!=null&&_0x489111[_0x1434f1(0x1fe)]&&Array[_0x1434f1(0x1f5)](_0x489111[_0x1434f1(0x20e)]())[_0x1434f1(0x171)](_0x4bed66=>{const _0x131497=_0x1434f1;_0x52dcf2[_0x23292d][_0x4bed66]={};const _0x364667=_0x489111['get'](_0x4bed66);_0x364667!=null&&_0x364667[_0x131497(0x1fe)]&&Array['from'](_0x364667[_0x131497(0x20e)]())[_0x131497(0x171)](_0x6249a3=>{const _0xa87359=_0x131497,_0x15d981=_0x364667[_0xa87359(0x1bb)](_0x6249a3);_0x15d981&&(_0x52dcf2[_0x23292d][_0x4bed66][_0x6249a3]={'config':_0x15d981[_0xa87359(0x204)],'sparklines':_0x15d981[_0xa87359(0x1b7)][_0xa87359(0x1df)]()});});});}return _0x52dcf2;}['fromJSON'](_0x7ca307){const _0x5a9557=_0x526a21;if(!_0x7ca307)return;Object[_0x5a9557(0x20e)](_0x7ca307)['forEach'](_0x37ce7c=>{const _0x3edf7d=_0x5a9557,_0xe2da00=_0x7ca307[_0x37ce7c];_0xe2da00&&Object[_0x3edf7d(0x20e)](_0xe2da00)[_0x3edf7d(0x171)](_0x32a4a8=>{const _0x488012=_0x3edf7d,_0x42101f=_0xe2da00[_0x32a4a8];_0x42101f&&Object[_0x488012(0x20e)](_0x42101f)['forEach'](_0x477748=>{const _0x33f48d=_0x488012,_0x584e83=_0x42101f[_0x477748];if(_0x584e83){const _0x4a23cb={'config':_0x584e83[_0x33f48d(0x204)],'sparklines':new _0x33c5b5(_0x584e83[_0x33f48d(0x1b7)])};this[_0x33f48d(0x1ce)](_0x37ce7c,_0x32a4a8,_0x477748,_0x4a23cb);}});});});}[_0x526a21(0x20d)](_0x2cf9dc){const _0x397f3f=_0x526a21,_0x96dd5f=this[_0x397f3f(0x1de)][_0x397f3f(0x1bb)](_0x2cf9dc);if(_0x96dd5f){for(const [_0x339e3b]of _0x96dd5f){const _0x1fb1c0=_0x96dd5f[_0x397f3f(0x1bb)](_0x339e3b);if(_0x1fb1c0){for(const [_0x56c3b5]of _0x1fb1c0)this['clearSparklineCache'](_0x2cf9dc,_0x339e3b,_0x56c3b5);}}this[_0x397f3f(0x1de)][_0x397f3f(0x194)](_0x2cf9dc);}}};x=Vt([yt(0x0,_0x17f73d(_0x130024))],x);const V={'id':'sheet.mutation.add-sparkline','type':_0xefe616[_0x526a21(0x17e)],'handler':(_0x457a96,_0x1e6333)=>{const _0x3aa45a=_0x526a21;if(!_0x1e6333)return!0x1;const {sparklineConfigMap:_0x4f6d74,unitId:_0x4b3578,subUnitId:_0x5c7ac5}=_0x1e6333,_0x5e1754=_0x457a96[_0x3aa45a(0x1bb)](x);return Object[_0x3aa45a(0x1a5)](_0x4f6d74)[_0x3aa45a(0x171)](([_0x152ed7,_0x1b96ea])=>{const _0x1bcd12=_0x3aa45a,_0x1bb68a={'config':_0x1b96ea[_0x1bcd12(0x204)],'sparklines':new _0x33c5b5(_0x1b96ea[_0x1bcd12(0x1b7)])};_0x5e1754[_0x1bcd12(0x1ce)](_0x4b3578,_0x5c7ac5,_0x152ed7,_0x1bb68a);}),!0x0;}},y={'id':_0x526a21(0x1c5),'type':_0xefe616[_0x526a21(0x17e)],'handler':(_0x46e15e,_0x5a6f79)=>{const _0x3d3fff=_0x526a21;if(!_0x5a6f79)return!0x1;const {unitId:_0xcd1664,subUnitId:_0x13478d,ranges:_0x4c0bdf,isSingle:_0x250dad,groupIds:_0x245b8c}=_0x5a6f79,_0x5739e9=_0x46e15e[_0x3d3fff(0x1bb)](x);return _0x245b8c?(_0x245b8c['forEach'](_0x44ca1d=>{const _0x397e02=_0x3d3fff;_0x5739e9[_0x397e02(0x199)](_0xcd1664,_0x13478d,_0x44ca1d);}),!0x0):_0x4c0bdf?(_0x4c0bdf[_0x3d3fff(0x171)](_0x16058b=>{const _0x251fd9=_0x3d3fff;_0x474673[_0x251fd9(0x1ca)](_0x16058b,(_0x846b6c,_0x491724)=>{const _0x5d0029=_0x251fd9,_0x161987=_0x5739e9[_0x5d0029(0x1ad)](_0xcd1664,_0x13478d,_0x846b6c,_0x491724);_0x161987&&(_0x250dad?_0x5739e9[_0x5d0029(0x1fb)](_0xcd1664,_0x13478d,_0x846b6c,_0x491724):_0x5739e9[_0x5d0029(0x199)](_0xcd1664,_0x13478d,_0x161987));});}),!0x0):!0x1;}},Nt={'id':_0x526a21(0x1e9),'type':_0xefe616[_0x526a21(0x20c)],'handler':(_0x44a8d9,_0x10fd1d)=>{const _0x12d511=_0x526a21;if(!_0x10fd1d)return!0x1;const {sourceRanges:_0x3d271d,targetRanges:_0x32bc40,config:_0x53310b}=_0x10fd1d,_0x2fc3dc=_0x44a8d9[_0x12d511(0x1bb)](_0x3b3e5c),_0x3b2551='g_'+_0x279c2d(0x6),_0x1bc76c=Fe(_0x3d271d,_0x32bc40),_0x4fdd4c={'config':_0x53310b!=null?_0x53310b:{},'sparklines':_0x1bc76c[_0x12d511(0x1df)]()},_0x505b05=_0x44a8d9['get'](_0x130024),_0x17aabb=_0x44a8d9[_0x12d511(0x1bb)](x),_0x1971a9=_0x1a212e(_0x505b05);if(!_0x1971a9)return!0x1;const {unitId:_0x10acb9,subUnitId:_0x1f6631}=_0x1971a9,_0x3feb46=_0x44a8d9[_0x12d511(0x1bb)](_0x42b904),_0x44069c=[],_0x5919fe=[],_0x1af4f4={},_0x476409={},_0x78673b=new Set([_0x3b2551]);_0x1bc76c[_0x12d511(0x17d)]((_0x24aad5,_0x1bf685,_0x561d70)=>{const _0x5acda7=_0x12d511,_0x513f47=_0x17aabb[_0x5acda7(0x1ad)](_0x10acb9,_0x1f6631,_0x24aad5,_0x1bf685);if(_0x513f47){const _0xde04d9=_0x17aabb[_0x5acda7(0x168)](_0x10acb9,_0x1f6631,_0x513f47);if(_0xde04d9){_0x78673b[_0x5acda7(0x21b)](_0x513f47);let _0x3c3b4c=_0x1af4f4[_0x513f47],_0x484214=_0x476409[_0x513f47];_0x484214||(_0x484214={'config':_0x179598[_0x5acda7(0x21a)](_0xde04d9[_0x5acda7(0x204)]),'sparklines':new _0x33c5b5(_0xde04d9['sparklines']['clone']())},_0x476409[_0x513f47]=_0x484214),_0x3c3b4c||(_0x3c3b4c={'config':_0x179598[_0x5acda7(0x21a)](_0xde04d9[_0x5acda7(0x204)]),'sparklines':_0xde04d9[_0x5acda7(0x1b7)][_0x5acda7(0x200)]()},_0x1af4f4[_0x513f47]=_0x3c3b4c),_0x484214[_0x5acda7(0x1b7)][_0x5acda7(0x20a)](_0x24aad5,_0x1bf685);}}});const _0x29a236={};return Object[_0x12d511(0x1a5)](_0x476409)[_0x12d511(0x171)](([_0x45a664,_0x2e11e7])=>{const _0x3e6e79=_0x12d511;_0x2e11e7[_0x3e6e79(0x1b7)][_0x3e6e79(0x1c0)]()&&(_0x29a236[_0x45a664]={'config':_0x2e11e7[_0x3e6e79(0x204)],'sparklines':_0x2e11e7[_0x3e6e79(0x1b7)]['clone']()});}),_0x29a236[_0x3b2551]=_0x4fdd4c,_0x44069c[_0x12d511(0x198)]({'id':y['id'],'params':{'unitId':_0x10acb9,'subUnitId':_0x1f6631,'groupIds':Array[_0x12d511(0x1f5)](_0x78673b),'isSingle':!0x1}}),_0x78673b[_0x12d511(0x1fe)]>0x1&&(_0x5919fe[_0x12d511(0x198)]({'id':y['id'],'params':{'unitId':_0x10acb9,'subUnitId':_0x1f6631,'groupIds':Array[_0x12d511(0x1f5)](_0x78673b),'isSingle':!0x1}}),_0x44069c[_0x12d511(0x198)]({'id':V['id'],'params':{'unitId':_0x10acb9,'subUnitId':_0x1f6631,'sparklineConfigMap':_0x1af4f4}})),_0x5919fe[_0x12d511(0x198)]({'id':V['id'],'params':{'unitId':_0x10acb9,'subUnitId':_0x1f6631,'sparklineConfigMap':_0x29a236}}),_0x569c9c(_0x5919fe,_0x3feb46),_0x2fc3dc[_0x12d511(0x1f9)]({'unitID':_0x10acb9,'undoMutations':_0x44069c,'redoMutations':_0x5919fe}),!0x0;}},Ot={'id':_0x526a21(0x1ed),'type':_0xefe616[_0x526a21(0x20c)],'handler':(_0x566168,_0x613e7)=>{const _0x51b34c=_0x526a21;var _0xe551d;const {isSingle:_0x28d374=!0x0}=_0x613e7||{},_0x43510e=_0x566168[_0x51b34c(0x1bb)](_0x42b904),_0x48171b=_0x566168['get'](_0x130024),_0x1dbfb8=_0x566168[_0x51b34c(0x1bb)](x),_0x29b68b=_0x566168[_0x51b34c(0x1bb)](_0x3b3e5c),_0x2fb859=_0x1a212e(_0x48171b);if(!_0x2fb859)return!0x1;const _0x368f5c=_0x566168['get'](_0x306724),_0x1a8914=(_0xe551d=_0x613e7==null?void 0x0:_0x613e7[_0x51b34c(0x184)])!=null?_0xe551d:_0x368f5c[_0x51b34c(0x1d2)]()[_0x51b34c(0x162)](_0x4ba16a=>_0x4ba16a[_0x51b34c(0x1bf)]),{unitId:_0x21c09d,subUnitId:_0x37bec9}=_0x2fb859,_0x202eb5=[],_0x12a41a=[];_0x202eb5[_0x51b34c(0x198)]({'id':y['id'],'params':{'unitId':_0x21c09d,'subUnitId':_0x37bec9,'ranges':_0x1a8914,'isSingle':_0x28d374}});const _0x47598d=[],_0x2da99c={};return _0x1a8914['forEach'](_0xe9a340=>{const _0x4a2d82=_0x51b34c;_0x474673[_0x4a2d82(0x1ca)](_0xe9a340,(_0x23bffb,_0x26d84d)=>{const _0xd061b6=_0x4a2d82,_0x3c0a11=_0x1dbfb8[_0xd061b6(0x1ad)](_0x21c09d,_0x37bec9,_0x23bffb,_0x26d84d);if(_0x3c0a11){const _0x2ad684=_0x1dbfb8[_0xd061b6(0x168)](_0x21c09d,_0x37bec9,_0x3c0a11);_0x2ad684&&(_0x47598d[_0xd061b6(0x198)](_0x3c0a11),_0x2da99c[_0x3c0a11]={'config':_0x179598[_0xd061b6(0x21a)](_0x2ad684[_0xd061b6(0x204)]),'sparklines':_0x179598[_0xd061b6(0x21a)](_0x2ad684[_0xd061b6(0x1b7)][_0xd061b6(0x200)]())});}});}),_0x12a41a[_0x51b34c(0x198)]({'id':y['id'],'params':{'unitId':_0x21c09d,'subUnitId':_0x37bec9,'groupIds':_0x47598d,'isSingle':!0x1}}),_0x12a41a[_0x51b34c(0x198)]({'id':V['id'],'params':{'unitId':_0x21c09d,'subUnitId':_0x37bec9,'sparklineConfigMap':_0x2da99c}}),_0x569c9c(_0x202eb5,_0x43510e),_0x29b68b[_0x51b34c(0x1f9)]({'unitID':_0x21c09d,'undoMutations':_0x12a41a,'redoMutations':_0x202eb5}),!0x0;}},Oe={'id':_0x526a21(0x18b),'type':_0xefe616[_0x526a21(0x17e)],'handler':(_0x37d8f6,_0x186aee)=>{const _0x3ef729=_0x526a21;if(!_0x186aee)return!0x1;const {unitId:_0x2cf046,subUnitId:_0x5bcedd,groupIds:_0x20689f,config:_0xd3000f}=_0x186aee,_0xbe1f2b=_0x37d8f6[_0x3ef729(0x1bb)](x);return _0x20689f['forEach'](_0x177392=>{const _0x550918=_0x3ef729,_0x4e95d8=_0xbe1f2b[_0x550918(0x168)](_0x2cf046,_0x5bcedd,_0x177392);if(_0x4e95d8){const _0x5ae92c={'config':Object[_0x550918(0x207)]({},_0x4e95d8[_0x550918(0x204)],_0xd3000f['config']),'sparklines':new _0x33c5b5(_0x4e95d8['sparklines'][_0x550918(0x200)]())};_0xbe1f2b[_0x550918(0x201)](_0x2cf046,_0x5bcedd,[_0x177392],_0x5ae92c);}}),!0x0;}},xt={'id':'sheet.command.set-sparkline','type':_0xefe616[_0x526a21(0x20c)],'handler':(_0x54e8a1,_0x19ee0e)=>{const _0x7c74a7=_0x526a21;var _0xba6efd,_0x34f57f,_0x5c91d8,_0x297778;if(!_0x19ee0e)return!0x1;const _0xb1ed9a=_0x54e8a1[_0x7c74a7(0x1bb)](_0x42b904),_0x5d2d2d=_0x54e8a1[_0x7c74a7(0x1bb)](_0x306724),_0x3d210c=_0x54e8a1[_0x7c74a7(0x1bb)](x),_0x252314=_0x54e8a1[_0x7c74a7(0x1bb)](_0x130024),_0x25e6af=_0x54e8a1[_0x7c74a7(0x1bb)](_0x3b3e5c),_0x785406=_0x1a212e(_0x252314);if(!_0x785406)return!0x1;const {unitId:_0xdaf88,subUnitId:_0x3be8b6}=_0x785406,_0x4c51d0=(_0xba6efd=_0x19ee0e==null?void 0x0:_0x19ee0e[_0x7c74a7(0x184)])!=null?_0xba6efd:_0x5d2d2d[_0x7c74a7(0x1d2)]()[_0x7c74a7(0x162)](_0x4451f5=>_0x4451f5[_0x7c74a7(0x1bf)]),_0x25084f=(_0x34f57f=_0x3d210c[_0x7c74a7(0x1aa)]()[_0x7c74a7(0x193)][_0x7c74a7(0x1bb)](_0xdaf88))==null?void 0x0:_0x34f57f['get'](_0x3be8b6),{isChangeDataSource:_0x442dc3,config:_0x1891bc,combine:_0x4f3d36,unCombine:_0x3c8e6c}=_0x19ee0e;if(_0x4f3d36){const _0x29cd15=[],_0x5c0e52=[];_0x29cd15[_0x7c74a7(0x198)]({'id':y['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'ranges':_0x4c51d0,'isSingle':!0x0}});const _0x46fa2c='g_'+_0x279c2d(0x6),_0x3f2866=new _0x33c5b5(),_0x25654b=(_0x5c91d8=_0x3d210c[_0x7c74a7(0x1aa)]()['sparklineModel'][_0x7c74a7(0x1bb)](_0xdaf88))==null?void 0x0:_0x5c91d8[_0x7c74a7(0x1bb)](_0x3be8b6),_0x548504=new Set([_0x46fa2c]),_0x2a1dfd={};return _0x4c51d0['forEach'](_0x361e31=>{const _0x38918c=_0x7c74a7;var _0x53d4f0,_0x28f31c;const {startRow:_0x5b4124,endRow:_0x1c2e2d,startColumn:_0x3c85df,endColumn:_0x4e893e}=_0x361e31;for(let _0x1b9935=_0x5b4124;_0x1b9935<=_0x1c2e2d;_0x1b9935++)for(let _0x1e7f6e=_0x3c85df;_0x1e7f6e<=_0x4e893e;_0x1e7f6e++){const _0x3c36a0=(_0x53d4f0=_0x25084f==null?void 0x0:_0x25084f[_0x38918c(0x1f6)][_0x38918c(0x1a3)](_0x1b9935,_0x1e7f6e))==null?void 0x0:_0x53d4f0['groupId'];if(_0x3c36a0){_0x548504['add'](_0x3c36a0);const _0x3fb465=_0x3d210c['getSparklineById'](_0xdaf88,_0x3be8b6,_0x3c36a0);_0x3fb465&&(_0x2a1dfd[_0x3c36a0]={'config':_0x179598[_0x38918c(0x21a)](_0x3fb465['config']),'sparklines':_0x179598[_0x38918c(0x21a)](_0x3fb465['sparklines']['clone']())});const _0x3d47f8=(_0x28f31c=_0x25654b==null?void 0x0:_0x25654b[_0x38918c(0x1bb)](_0x3c36a0))==null?void 0x0:_0x28f31c['sparklines'][_0x38918c(0x1a3)](_0x1b9935,_0x1e7f6e);_0x3d47f8&&_0x3f2866['setValue'](_0x1b9935,_0x1e7f6e,_0x3d47f8);}}}),_0x29cd15[_0x7c74a7(0x198)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x46fa2c]:{'config':_0x179598[_0x7c74a7(0x21a)](_0x1891bc[_0x7c74a7(0x204)]),'sparklines':_0x3f2866[_0x7c74a7(0x1df)]()}},'unitId':_0xdaf88,'subUnitId':_0x3be8b6}}),_0x5c0e52[_0x7c74a7(0x198)]({'id':y['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'isSingle':!0x1,'groupIds':Array[_0x7c74a7(0x1f5)](_0x548504)}}),_0x5c0e52['push']({'id':V['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'sparklineConfigMap':_0x2a1dfd}}),_0x569c9c(_0x29cd15,_0xb1ed9a),_0x25e6af[_0x7c74a7(0x1f9)]({'unitID':_0xdaf88,'undoMutations':_0x5c0e52,'redoMutations':_0x29cd15}),!0x0;}else{if(_0x3c8e6c){const _0x575f25=[],_0x45979f=[];_0x575f25[_0x7c74a7(0x198)]({'id':y['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'ranges':_0x4c51d0,'isSingle':!0x0}});const _0x8c36a9=(_0x297778=_0x3d210c['getSparklineCache']()[_0x7c74a7(0x176)][_0x7c74a7(0x1bb)](_0xdaf88))==null?void 0x0:_0x297778[_0x7c74a7(0x1bb)](_0x3be8b6),_0x4b6027={},_0x424441=new Set(),_0x355706={};return _0x4c51d0[_0x7c74a7(0x171)](_0x248895=>{const _0xb3ecce=_0x7c74a7;var _0x300095,_0x2c95cf;const {startRow:_0x331df7,endRow:_0x3341ca,startColumn:_0x27110a,endColumn:_0x58c0fe}=_0x248895;for(let _0x5b0676=_0x331df7;_0x5b0676<=_0x3341ca;_0x5b0676++)for(let _0x6c9a39=_0x27110a;_0x6c9a39<=_0x58c0fe;_0x6c9a39++){const _0x4dfd21=(_0x300095=_0x25084f==null?void 0x0:_0x25084f['matrix'][_0xb3ecce(0x1a3)](_0x5b0676,_0x6c9a39))==null?void 0x0:_0x300095[_0xb3ecce(0x19a)];if(_0x4dfd21){const _0x59c74b=new _0x33c5b5(),_0x1639ba='g_'+_0x279c2d(0x6);_0x424441[_0xb3ecce(0x21b)](_0x4dfd21),_0x424441[_0xb3ecce(0x21b)](_0x1639ba);const _0x4dc782=_0x3d210c[_0xb3ecce(0x168)](_0xdaf88,_0x3be8b6,_0x4dfd21);_0x4dc782&&(_0x355706[_0x4dfd21]={'config':_0x179598[_0xb3ecce(0x21a)](_0x4dc782[_0xb3ecce(0x204)]),'sparklines':_0x179598[_0xb3ecce(0x21a)](_0x4dc782[_0xb3ecce(0x1b7)][_0xb3ecce(0x200)]())});const _0x5bfd09=(_0x2c95cf=_0x8c36a9==null?void 0x0:_0x8c36a9[_0xb3ecce(0x1bb)](_0x4dfd21))==null?void 0x0:_0x2c95cf['sparklines'][_0xb3ecce(0x1a3)](_0x5b0676,_0x6c9a39);_0x5bfd09&&_0x59c74b[_0xb3ecce(0x216)](_0x5b0676,_0x6c9a39,_0x5bfd09),_0x4b6027[_0x1639ba]={'sparklines':_0x59c74b[_0xb3ecce(0x1df)](),'config':_0x179598[_0xb3ecce(0x21a)](_0x1891bc['config'])};}}}),_0x575f25[_0x7c74a7(0x198)]({'id':V['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'sparklineConfigMap':_0x4b6027}}),_0x45979f[_0x7c74a7(0x198)]({'id':y['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'isSingle':!0x1,'groupIds':Array[_0x7c74a7(0x1f5)](_0x424441)}}),_0x45979f['push']({'id':V['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'sparklineConfigMap':_0x355706}}),_0x569c9c(_0x575f25,_0xb1ed9a),_0x25e6af[_0x7c74a7(0x1f9)]({'unitID':_0xdaf88,'undoMutations':_0x45979f,'redoMutations':_0x575f25}),!0x0;}}if(_0x442dc3){const _0x49aff2=_0x19ee0e[_0x7c74a7(0x1eb)];if(!_0x49aff2)return!0x1;const {groupId:_0x1fc87b,sourceRanges:_0xac8dfa,targetRanges:_0x41936d,resetType:_0x1fee24,primary:_0x52b0fb}=_0x49aff2,_0x3530d4=[],_0x54fe7e=[];_0x3530d4['push']({'id':y['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'ranges':_0x4c51d0,'isSingle':!0x1,'groupIds':[_0x1fc87b]}}),_0x54fe7e[_0x7c74a7(0x198)]({'id':y['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'ranges':_0x4c51d0,'isSingle':!0x1,'groupIds':[_0x1fc87b]}});let _0x4a1329;_0x1fee24===_0x7c74a7(0x197)?(_0x4a1329=new _0x33c5b5(_0x1891bc[_0x7c74a7(0x1b7)][_0x7c74a7(0x200)]()),_0x4a1329[_0x7c74a7(0x20a)](_0x52b0fb[_0x7c74a7(0x202)],_0x52b0fb[_0x7c74a7(0x1ee)]),_0x4a1329[_0x7c74a7(0x216)](_0x41936d[0x0]['startRow'],_0x41936d[0x0][_0x7c74a7(0x19c)],_0xac8dfa[0x0])):_0x4a1329=Fe(_0xac8dfa,_0x41936d);const _0x1068a2={'config':_0x179598[_0x7c74a7(0x21a)](_0x1891bc[_0x7c74a7(0x204)]),'sparklines':_0x4a1329[_0x7c74a7(0x1df)]()},_0xcf3382={'config':_0x179598[_0x7c74a7(0x21a)](_0x1891bc[_0x7c74a7(0x204)]),'sparklines':_0x179598[_0x7c74a7(0x21a)](_0x1891bc[_0x7c74a7(0x1b7)][_0x7c74a7(0x200)]())};_0x3530d4['push']({'id':V['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'sparklineConfigMap':{[_0x1fc87b]:_0x1068a2}}}),_0x54fe7e[_0x7c74a7(0x198)]({'id':V['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'sparklineConfigMap':{[_0x1fc87b]:_0xcf3382}}}),_0x569c9c(_0x3530d4,_0xb1ed9a),_0x25e6af[_0x7c74a7(0x1f9)]({'unitID':_0xdaf88,'undoMutations':_0x54fe7e,'redoMutations':_0x3530d4});}else{const _0x292db4=[],_0x14c51d=[],_0x487b57=new Set(),_0x15f0b0={};_0x4c51d0[_0x7c74a7(0x171)](_0x261dc3=>{const _0x42218f=_0x7c74a7;var _0x31b304;const {startRow:_0x5467a6,endRow:_0x1f5273,startColumn:_0x30e0f4,endColumn:_0x29596a}=_0x261dc3;for(let _0x5e50ac=_0x5467a6;_0x5e50ac<=_0x1f5273;_0x5e50ac++)for(let _0x3b8b06=_0x30e0f4;_0x3b8b06<=_0x29596a;_0x3b8b06++){const _0x1d35c=(_0x31b304=_0x25084f==null?void 0x0:_0x25084f['matrix'][_0x42218f(0x1a3)](_0x5e50ac,_0x3b8b06))==null?void 0x0:_0x31b304[_0x42218f(0x19a)];if(_0x1d35c){_0x487b57[_0x42218f(0x21b)](_0x1d35c);const _0x5730a2=_0x3d210c[_0x42218f(0x168)](_0xdaf88,_0x3be8b6,_0x1d35c);_0x5730a2&&(_0x15f0b0[_0x1d35c]={'config':_0x179598[_0x42218f(0x21a)](_0x5730a2[_0x42218f(0x204)]),'sparklines':_0x179598[_0x42218f(0x21a)](_0x5730a2['sparklines'][_0x42218f(0x200)]())});}}}),_0x14c51d[_0x7c74a7(0x198)]({'id':Oe['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'groupIds':Array['from'](_0x487b57),'config':{'config':_0x179598[_0x7c74a7(0x21a)](_0x1891bc[_0x7c74a7(0x204)]),'sparklines':_0x1891bc[_0x7c74a7(0x1b7)][_0x7c74a7(0x1df)]()}}}),_0x292db4[_0x7c74a7(0x198)]({'id':y['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'isSingle':!0x1,'groupIds':Array[_0x7c74a7(0x1f5)](_0x487b57)}}),_0x292db4['push']({'id':V['id'],'params':{'unitId':_0xdaf88,'subUnitId':_0x3be8b6,'sparklineConfigMap':_0x15f0b0}}),_0x569c9c(_0x14c51d,_0xb1ed9a),_0x25e6af[_0x7c74a7(0x1f9)]({'unitID':_0xdaf88,'undoMutations':_0x292db4,'redoMutations':_0x14c51d});}return!0x0;}};var Ut=Object[_0x526a21(0x1dd)],Pt=(_0x516910,_0x26a7d8,_0x4e3b65,_0x35200c)=>{const _0x2c6506=_0x526a21;for(var _0x3555bb=_0x35200c>0x1?void 0x0:_0x35200c?Ut(_0x26a7d8,_0x4e3b65):_0x26a7d8,_0x150a78=_0x516910[_0x2c6506(0x21c)]-0x1,_0x510a58;_0x150a78>=0x0;_0x150a78--)(_0x510a58=_0x516910[_0x150a78])&&(_0x3555bb=_0x510a58(_0x3555bb)||_0x3555bb);return _0x3555bb;},fe=(_0x355967,_0x257683)=>(_0x79e84a,_0x20a30b)=>_0x257683(_0x79e84a,_0x20a30b,_0x355967);let he=class extends _0x5a770f{constructor(_0x249b1e,_0x51a184,_0x479233,_0x721880){const _0x586acc=_0x526a21;super(),this[_0x586acc(0x1e7)]=_0x249b1e,this[_0x586acc(0x1d4)]=_0x51a184,this['_univerInstanceService']=_0x479233,this['_sheetSelectionService']=_0x721880,this[_0x586acc(0x18d)]();}[_0x526a21(0x18d)](){const _0x4c5f77=_0x526a21;this[_0x4c5f77(0x174)](this[_0x4c5f77(0x1d4)][_0x4c5f77(0x205)]({'getMutations':_0x430a97=>{const _0x58cbb9=_0x4c5f77,_0x3ffb04=[],_0x14bc9c=[];if(_0x430a97['id']===_0x3b882a['id']){const _0x54fcb3=_0x1a212e(this[_0x58cbb9(0x1d8)]);if(!_0x54fcb3)return{'redos':_0x3ffb04,'undos':_0x14bc9c};const {unitId:_0xd8bd37,subUnitId:_0x44ea6c,worksheet:_0x5814cc}=_0x54fcb3,_0x504661=this[_0x58cbb9(0x1f8)][_0x58cbb9(0x1d2)]()['map'](_0x9cbe9f=>_0x9cbe9f['range']),_0x200e66=new Set(),_0x1efc88={},_0x4841fb={};_0x504661[_0x58cbb9(0x171)](_0x168163=>{const _0x477f74=_0x58cbb9;_0x474673[_0x477f74(0x1ca)](_0x168163,(_0x2f6faf,_0x4e701f)=>{const _0x3c7708=_0x477f74,_0xd0e470=this[_0x3c7708(0x1e7)][_0x3c7708(0x1ad)](_0xd8bd37,_0x44ea6c,_0x2f6faf,_0x4e701f);if(_0xd0e470&&!_0x200e66[_0x3c7708(0x183)](_0xd0e470)){const _0xe3cfab=this[_0x3c7708(0x1e7)][_0x3c7708(0x168)](_0xd8bd37,_0x44ea6c,_0xd0e470);_0xe3cfab&&(_0x200e66['add'](_0xd0e470),_0x1efc88[_0xd0e470]={'config':_0x179598[_0x3c7708(0x21a)](_0xe3cfab[_0x3c7708(0x204)]),'sparklines':_0x179598[_0x3c7708(0x21a)](_0xe3cfab['sparklines']['clone']())},_0x4841fb[_0xd0e470]={'config':_0x179598[_0x3c7708(0x21a)](_0xe3cfab[_0x3c7708(0x204)]),'sparklines':_0x179598[_0x3c7708(0x21a)](_0xe3cfab[_0x3c7708(0x1b7)]['clone']())});}});}),Object['values'](_0x4841fb)[_0x58cbb9(0x171)](_0x1c0a1d=>{const _0x25ed7c=_0x58cbb9,_0x29a74b=_0x1c0a1d[_0x25ed7c(0x1b7)];new _0x33c5b5(_0x29a74b)[_0x25ed7c(0x17d)]((_0x2c75d2,_0x46bc8e,_0x40fb75)=>{const _0x25ad9f=_0x25ed7c;_0x504661[_0x25ad9f(0x1d1)](_0x1a45d6=>_0x35a2af[_0x25ad9f(0x1bd)](_0x1a45d6,_0x34b6dc(_0x2c75d2,_0x46bc8e)))&&delete _0x29a74b[_0x2c75d2][_0x46bc8e];});}),_0x3ffb04[_0x58cbb9(0x198)]({'id':y['id'],'params':{'unitId':_0xd8bd37,'subUnitId':_0x44ea6c,'groupIds':Array[_0x58cbb9(0x1f5)](_0x200e66),'isSingle':!0x1}}),_0x3ffb04['push']({'id':V['id'],'params':{'unitId':_0xd8bd37,'subUnitId':_0x44ea6c,'sparklineConfigMap':_0x4841fb}}),_0x14bc9c['push']({'id':y['id'],'params':{'unitId':_0xd8bd37,'subUnitId':_0x44ea6c,'groupIds':Array[_0x58cbb9(0x1f5)](_0x200e66),'isSingle':!0x1}}),_0x14bc9c[_0x58cbb9(0x198)]({'id':V['id'],'params':{'unitId':_0xd8bd37,'subUnitId':_0x44ea6c,'sparklineConfigMap':_0x1efc88}});}return{'redos':_0x3ffb04,'undos':_0x14bc9c};}}));}};he=Pt([fe(0x0,_0x17f73d(x)),fe(0x1,_0x17f73d(_0x19f245)),fe(0x2,_0x17f73d(_0x130024)),fe(0x3,_0x17f73d(_0x306724))],he);var Tt=Object[_0x526a21(0x1dd)],$t=(_0x517c40,_0x5756c1,_0x1c5599,_0x56bd91)=>{const _0x2a2c75=_0x526a21;for(var _0x4f9ad6=_0x56bd91>0x1?void 0x0:_0x56bd91?Tt(_0x5756c1,_0x1c5599):_0x5756c1,_0x5106b1=_0x517c40[_0x2a2c75(0x21c)]-0x1,_0x44556f;_0x5106b1>=0x0;_0x5106b1--)(_0x44556f=_0x517c40[_0x5106b1])&&(_0x4f9ad6=_0x44556f(_0x4f9ad6)||_0x4f9ad6);return _0x4f9ad6;},Ge=(_0x1983d0,_0x1764ef)=>(_0x5004cf,_0x2a17eb)=>_0x1764ef(_0x5004cf,_0x2a17eb,_0x1983d0);let Se=class extends _0x5a770f{constructor(_0x51f619,_0x4cb269){const _0x573f4a=_0x526a21;super(),this[_0x573f4a(0x1d4)]=_0x51f619,this[_0x573f4a(0x1e7)]=_0x4cb269,this[_0x573f4a(0x21d)]();}[_0x526a21(0x21d)](){const _0x4a4ce7=_0x526a21;this['disposeWithMe'](this[_0x4a4ce7(0x1d4)][_0x4a4ce7(0x205)]({'getMutations':_0x3694a5=>{const _0xbd1594=_0x4a4ce7,_0x2dc1f2=[],_0x9c692=[];if(_0x3694a5['id']===_0x98f212['id']){const _0x49d942=_0x3694a5[_0xbd1594(0x182)];if(!_0x49d942)return{'redos':_0x2dc1f2,'undos':_0x9c692};const {unitId:_0x563e84,subUnitId:_0x52fb68,targetSubUnitId:_0x297fbd}=_0x49d942;if(!_0x563e84||!_0x52fb68||!_0x297fbd)return{'redos':_0x2dc1f2,'undos':_0x9c692};const _0x3bbcc3=new Set(),_0x44952d={},_0x2b76fa=this[_0xbd1594(0x1e7)][_0xbd1594(0x17a)](_0x563e84,_0x52fb68);if(!_0x2b76fa)return{'redos':_0x2dc1f2,'undos':_0x9c692};for(const [_0x5f1c5b,_0x3e4acc]of _0x2b76fa){const _0x3a0a95='g_'+_0x279c2d(0x6);_0x3bbcc3[_0xbd1594(0x21b)](_0x5f1c5b),_0x44952d[_0x3a0a95]={'config':_0x179598['deepClone'](_0x3e4acc[_0xbd1594(0x204)]),'sparklines':_0x179598[_0xbd1594(0x21a)](_0x3e4acc[_0xbd1594(0x1b7)][_0xbd1594(0x200)]())};}_0x3bbcc3[_0xbd1594(0x1fe)]&&(_0x9c692['push']({'id':y['id'],'params':{'unitId':_0x563e84,'subUnitId':_0x297fbd,'groupIds':Array[_0xbd1594(0x1f5)](_0x3bbcc3),'isSingle':!0x1}}),_0x2dc1f2[_0xbd1594(0x198)]({'id':V['id'],'params':{'unitId':_0x563e84,'subUnitId':_0x297fbd,'sparklineConfigMap':_0x44952d}}));}return{'redos':_0x2dc1f2,'undos':_0x9c692};}}));}};Se=$t([Ge(0x0,_0x17f73d(_0x19f245)),Ge(0x1,_0x17f73d(x))],Se);var jt=Object[_0x526a21(0x1dd)],Lt=(_0x2f1501,_0x278560,_0x29f6b9,_0x3b2d8c)=>{const _0x5d055d=_0x526a21;for(var _0x36b25f=_0x3b2d8c>0x1?void 0x0:_0x3b2d8c?jt(_0x278560,_0x29f6b9):_0x278560,_0x2924f0=_0x2f1501[_0x5d055d(0x21c)]-0x1,_0x2f7776;_0x2924f0>=0x0;_0x2924f0--)(_0x2f7776=_0x2f1501[_0x2924f0])&&(_0x36b25f=_0x2f7776(_0x36b25f)||_0x36b25f);return _0x36b25f;},be=(_0x14858b,_0x410d75)=>(_0x38d3e2,_0x3ec6ff)=>_0x410d75(_0x38d3e2,_0x3ec6ff,_0x14858b);let ke=class extends _0x5a770f{constructor(_0x39d82c,_0x551485,_0x2378d4){const _0x4b2fba=_0x526a21;super(),this[_0x4b2fba(0x1b3)]=_0x39d82c,this[_0x4b2fba(0x1e7)]=_0x551485,this['_exclusiveRangeService']=_0x2378d4,this['_initDataChangeListener'](),this[_0x4b2fba(0x219)]();}[_0x526a21(0x18c)](){const _0x1020de=_0x526a21;this[_0x1020de(0x174)](this['_commandService'][_0x1020de(0x1dc)](_0x328423=>{const _0x587b1a=_0x1020de;if(_0x328423['id']===_0x30442b['id']){const _0xf3f69c=_0x328423[_0x587b1a(0x182)],{cellValue:_0x436fdc,unitId:_0x55388f,subUnitId:_0x3f4065}=_0xf3f69c,_0x38451f=new _0x33c5b5(_0x436fdc),_0x27ea1b=new Set(),_0x346b0c=this['_sparklineDataSourceModel'][_0x587b1a(0x17a)](_0x55388f,_0x3f4065);if(!_0x346b0c)return;const _0x5df851=Array[_0x587b1a(0x1f5)](_0x346b0c);_0x38451f['forValue']((_0x5e8d1b,_0x3ddd9d,_0x43340c)=>{const _0x35538f=_0x587b1a,_0x12111a=_0x34b6dc(_0x5e8d1b,_0x3ddd9d);for(let _0x3815ed=0x0;_0x3815ed<_0x5df851[_0x35538f(0x21c)];_0x3815ed++){const [_0x4adf60,_0x511c71]=_0x5df851[_0x3815ed],_0x2bdee5=_0x27ea1b[_0x35538f(0x183)](_0x4adf60);_0x2bdee5||_0x511c71[_0x35538f(0x1b7)][_0x35538f(0x17d)]((_0x3e09e0,_0x3a3b77,_0x50572c)=>{const _0x51a20b=_0x35538f,_0x36f13e=_0x50572c;if(_0x36f13e&&!_0x2bdee5&&_0x35a2af[_0x51a20b(0x1bd)](_0x12111a,_0x36f13e))return _0x27ea1b[_0x51a20b(0x21b)](_0x4adf60),!0x0;});}}),_0x27ea1b[_0x587b1a(0x171)](_0x39f89f=>{const _0x436be3=_0x587b1a;this[_0x436be3(0x1e7)]['clearSparklineCache'](_0x55388f,_0x3f4065,_0x39f89f),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x55388f,_0x3f4065,_0x39f89f);});}else{if(_0x328423['id']===_0x237a84['id']){const _0x50a694=_0x328423['params'],{range:_0x570b32,unitId:_0xceb20d,subUnitId:_0x14ccf0}=_0x50a694,_0x2db0e0=new Set(),_0x586ce5=this[_0x587b1a(0x1e7)][_0x587b1a(0x17a)](_0xceb20d,_0x14ccf0);if(!_0x586ce5)return;const _0x3d4792=Array['from'](_0x586ce5);for(let _0x290892=0x0;_0x290892<_0x3d4792[_0x587b1a(0x21c)];_0x290892++){const [_0x37b229,_0x4f516c]=_0x3d4792[_0x290892],_0x13f0c8=_0x2db0e0[_0x587b1a(0x183)](_0x37b229);_0x13f0c8||_0x4f516c['sparklines'][_0x587b1a(0x17d)]((_0x3acb76,_0x53b791,_0x4fa895)=>{const _0x7e6a33=_0x587b1a,_0x5b802f=_0x4fa895;if(_0x5b802f&&!_0x13f0c8&&_0x35a2af[_0x7e6a33(0x1bd)](_0x570b32,_0x5b802f))return _0x2db0e0['add'](_0x37b229),!0x0;});}_0x2db0e0[_0x587b1a(0x171)](_0x3fe932=>{const _0x2f9095=_0x587b1a;this[_0x2f9095(0x1e7)][_0x2f9095(0x20f)](_0xceb20d,_0x14ccf0,_0x3fe932),this[_0x2f9095(0x1e7)]['updateSparklineExtraNum'](_0xceb20d,_0x14ccf0,_0x3fe932);});}}}));}['_initExclusiveRangeChange'](){const _0x27fb75=_0x526a21;this['disposeWithMe'](this[_0x27fb75(0x1cb)][_0x27fb75(0x18f)][_0x27fb75(0x20b)](_0x2f03e1=>{const _0xf6cc33=_0x27fb75,{unitId:_0x55e8db,subUnitId:_0x166c09,ranges:_0x1c55a5}=_0x2f03e1,_0x2fadf4=this[_0xf6cc33(0x1e7)]['getSubUnitSparkline'](_0x55e8db,_0x166c09);if(!_0x2fadf4)return;const _0xe8eec2=Array[_0xf6cc33(0x1f5)](_0x2fadf4),_0x1b08ce=new Set();for(let _0x23de4a=0x0;_0x23de4a<_0xe8eec2['length'];_0x23de4a++){const [_0x55b20d,_0x470962]=_0xe8eec2[_0x23de4a],_0x259961=_0x1b08ce[_0xf6cc33(0x183)](_0x55b20d);_0x259961||_0x470962[_0xf6cc33(0x1b7)][_0xf6cc33(0x17d)]((_0xfdfb95,_0x2ad682,_0xe88b1e)=>{const _0x5e33e9=_0xf6cc33,_0x437c44=_0xe88b1e;if(_0x437c44&&!_0x259961){for(const _0x1bafa3 of _0x1c55a5)if(_0x35a2af[_0x5e33e9(0x1bd)](_0x1bafa3,_0x437c44)){_0x1b08ce[_0x5e33e9(0x21b)](_0x55b20d);break;}}});}_0x1b08ce[_0xf6cc33(0x171)](_0x10dc54=>{const _0x29eb58=_0xf6cc33;this['_sparklineDataSourceModel'][_0x29eb58(0x20f)](_0x55e8db,_0x166c09,_0x10dc54),this[_0x29eb58(0x1e7)][_0x29eb58(0x1a4)](_0x55e8db,_0x166c09,_0x10dc54);});}));}};ke=Lt([be(0x0,_0x17f73d(_0x42b904)),be(0x1,_0x17f73d(x)),be(0x2,_0x17f73d(_0xe77feb))],ke);var Gt=Object['getOwnPropertyDescriptor'],Wt=(_0x359c5c,_0x37e204,_0x455946,_0x34fc39)=>{const _0x3886ab=_0x526a21;for(var _0x5dc60d=_0x34fc39>0x1?void 0x0:_0x34fc39?Gt(_0x37e204,_0x455946):_0x37e204,_0x3c7c34=_0x359c5c[_0x3886ab(0x21c)]-0x1,_0x66cba7;_0x3c7c34>=0x0;_0x3c7c34--)(_0x66cba7=_0x359c5c[_0x3c7c34])&&(_0x5dc60d=_0x66cba7(_0x5dc60d)||_0x5dc60d);return _0x5dc60d;},We=(_0x2dfac3,_0x2a67cf)=>(_0x741399,_0x38bffa)=>_0x2a67cf(_0x741399,_0x38bffa,_0x2dfac3);let me=class extends _0x5a770f{constructor(_0x367f32,_0x1b2758){const _0x36a86a=_0x526a21;super(),this[_0x36a86a(0x1b3)]=_0x367f32,this[_0x36a86a(0x1e7)]=_0x1b2758,this[_0x36a86a(0x19e)]();}['_initHideRowColWithSparkline'](){const _0x5a4aae=_0x526a21;this['_commandService'][_0x5a4aae(0x1dc)](_0x17f394=>{const _0x25784e=_0x5a4aae;if(_0x17f394['id']===_0x5ece9c['id']||_0x17f394['id']===_0x3820b4['id']||_0x17f394['id']===_0x54be23['id']||_0x17f394['id']===_0x5493e9['id']){const _0xcfb215=_0x17f394[_0x25784e(0x182)],{ranges:_0x5f159e,unitId:_0x1f317a,subUnitId:_0x73127c}=_0xcfb215,_0x15dc0e=new Set(),_0x3d2321=this[_0x25784e(0x1e7)][_0x25784e(0x17a)](_0x1f317a,_0x73127c);if(!_0x3d2321)return;const _0x3229cb=Array[_0x25784e(0x1f5)](_0x3d2321);_0x5f159e[_0x25784e(0x171)](_0x156a1b=>{_0x474673['foreach'](_0x156a1b,(_0x1337b0,_0xb8fe37)=>{const _0x4da51f=_0x3e0e,_0x971c31=_0x34b6dc(_0x1337b0,_0xb8fe37);for(let _0x328854=0x0;_0x328854<_0x3229cb[_0x4da51f(0x21c)];_0x328854++){const [_0xd6aa7f,_0x438774]=_0x3229cb[_0x328854],_0x194dde=_0x15dc0e['has'](_0xd6aa7f);_0x194dde||_0x438774[_0x4da51f(0x1b7)][_0x4da51f(0x17d)]((_0x4459ea,_0x11a709,_0x5d3b42)=>{const _0x14436d=_0x4da51f,_0x30adca=_0x5d3b42;if(_0x30adca&&!_0x194dde&&_0x35a2af[_0x14436d(0x1bd)](_0x971c31,_0x30adca))return _0x15dc0e['add'](_0xd6aa7f),!0x0;});}});}),_0x15dc0e['forEach'](_0x4f3dd1=>{const _0x5b8cb1=_0x25784e;this[_0x5b8cb1(0x1e7)]['clearSparklineCache'](_0x1f317a,_0x73127c,_0x4f3dd1),this[_0x5b8cb1(0x1e7)][_0x5b8cb1(0x1a4)](_0x1f317a,_0x73127c,_0x4f3dd1);});}});}};me=Wt([We(0x0,_0x17f73d(_0x42b904)),We(0x1,_0x17f73d(x))],me);var Ht=Object[_0x526a21(0x1dd)],Bt=(_0x2c9cb1,_0x332903,_0x2aa540,_0x1de25c)=>{const _0x155737=_0x526a21;for(var _0x595b1e=_0x1de25c>0x1?void 0x0:_0x1de25c?Ht(_0x332903,_0x2aa540):_0x332903,_0x322dcd=_0x2c9cb1[_0x155737(0x21c)]-0x1,_0x2652fe;_0x322dcd>=0x0;_0x322dcd--)(_0x2652fe=_0x2c9cb1[_0x322dcd])&&(_0x595b1e=_0x2652fe(_0x595b1e)||_0x595b1e);return _0x595b1e;},De=(_0x497c98,_0x194bf1)=>(_0x375edf,_0x4099b5)=>_0x194bf1(_0x375edf,_0x4099b5,_0x497c98);let Ce=class extends _0x5a770f{constructor(_0x55f5a1,_0xb1bb3f,_0x57d16e){const _0x1956f8=_0x526a21;super(),this[_0x1956f8(0x1b3)]=_0x55f5a1,this[_0x1956f8(0x1d4)]=_0xb1bb3f,this['_sparklineDataSourceModel']=_0x57d16e,this[_0x1956f8(0x190)]();}['_initMergeWithSparkline'](){const _0x90f3e4=_0x526a21;this[_0x90f3e4(0x174)](this['_sheetInterceptorService'][_0x90f3e4(0x205)]({'getMutations':_0x218a83=>{const _0x31a8fd=_0x90f3e4,_0x5d6a07=[],_0xb5db15=[];if(_0x218a83['id']===_0x58840b['id']){const _0x584775=_0x218a83['params'];if(!_0x584775)return{'redos':_0x5d6a07,'undos':_0xb5db15};const {unitId:_0x50bdcc,subUnitId:_0x4e52b8,ranges:_0x25adc1}=_0x584775,_0x527e34=this['_sparklineDataSourceModel'][_0x31a8fd(0x17a)](_0x50bdcc,_0x4e52b8);if(!_0x527e34)return{'redos':_0x5d6a07,'undos':_0xb5db15};const _0x38d985={},_0x91e63e={},_0x1de37b=new Set();_0x25adc1[_0x31a8fd(0x171)](_0x40e8f2=>{const _0x3d4935=_0x31a8fd,_0x3c577f=_0x40e8f2[_0x3d4935(0x1be)],_0x1f4a07=_0x40e8f2[_0x3d4935(0x19c)];_0x474673['foreach'](_0x40e8f2,(_0x217b5b,_0x4a6db2)=>{const _0xfe5825=_0x3d4935,_0x36f1c5=this[_0xfe5825(0x1e7)]['getSparkline'](_0x50bdcc,_0x4e52b8,_0x217b5b,_0x4a6db2);if(_0x36f1c5&&!(_0x217b5b===_0x3c577f&&_0x4a6db2===_0x1f4a07)){const _0x455ef1=this[_0xfe5825(0x1e7)][_0xfe5825(0x168)](_0x50bdcc,_0x4e52b8,_0x36f1c5);if(_0x455ef1){_0x1de37b[_0xfe5825(0x21b)](_0x36f1c5);let _0x3c5a48=_0x38d985[_0x36f1c5];_0x3c5a48||(_0x3c5a48={'config':_0x179598[_0xfe5825(0x21a)](_0x455ef1[_0xfe5825(0x204)]),'sparklines':new _0x33c5b5(_0x455ef1[_0xfe5825(0x1b7)][_0xfe5825(0x200)]())},_0x38d985[_0x36f1c5]=_0x3c5a48),_0x3c5a48[_0xfe5825(0x1b7)][_0xfe5825(0x20a)](_0x217b5b,_0x4a6db2),_0x91e63e[_0x36f1c5]={'config':_0x179598[_0xfe5825(0x21a)](_0x455ef1['config']),'sparklines':_0x179598['deepClone'](_0x455ef1[_0xfe5825(0x1b7)][_0xfe5825(0x200)]())};}}});});for(const [_0x10af65,_0x24cf40]of _0x527e34){const _0x5c8015=_0x24cf40[_0x31a8fd(0x1b7)];_0x5c8015['forValue']((_0x240a97,_0x17417b,_0x104a57)=>{const _0x48118b=_0x31a8fd;for(let _0x46a3e0=0x0;_0x46a3e0<_0x25adc1['length'];_0x46a3e0++){const _0x509660=_0x25adc1[_0x46a3e0];if(_0x35a2af[_0x48118b(0x1ea)](_0x509660,_0x104a57)){_0x1de37b[_0x48118b(0x21b)](_0x10af65);let _0x383e8d=_0x38d985[_0x10af65];_0x383e8d||(_0x383e8d={'config':_0x179598[_0x48118b(0x21a)](_0x24cf40[_0x48118b(0x204)]),'sparklines':new _0x33c5b5(_0x5c8015['clone']())},_0x38d985[_0x10af65]=_0x383e8d),_0x383e8d[_0x48118b(0x1b7)][_0x48118b(0x20a)](_0x240a97,_0x17417b),_0x91e63e[_0x10af65]||(_0x91e63e[_0x10af65]={'config':_0x179598[_0x48118b(0x21a)](_0x24cf40[_0x48118b(0x204)]),'sparklines':_0x179598['deepClone'](_0x5c8015['clone']())});}}});}const _0xabdc66={};Object[_0x31a8fd(0x1a5)](_0x38d985)[_0x31a8fd(0x171)](([_0x5ba7a8,_0x402c70])=>{const _0xb3551e=_0x31a8fd;_0x402c70[_0xb3551e(0x1b7)]['getSizeOf']()&&(_0xabdc66[_0x5ba7a8]={'config':_0x402c70[_0xb3551e(0x204)],'sparklines':_0x402c70[_0xb3551e(0x1b7)][_0xb3551e(0x200)]()});}),_0x1de37b['size']&&(_0x5d6a07[_0x31a8fd(0x198)]({'id':y['id'],'params':{'unitId':_0x50bdcc,'subUnitId':_0x4e52b8,'groupIds':Array[_0x31a8fd(0x1f5)](_0x1de37b),'isSingle':!0x1}}),_0xb5db15['push']({'id':y['id'],'params':{'unitId':_0x50bdcc,'subUnitId':_0x4e52b8,'groupIds':Array['from'](_0x1de37b),'isSingle':!0x1}}),_0x5d6a07[_0x31a8fd(0x198)]({'id':V['id'],'params':{'unitId':_0x50bdcc,'subUnitId':_0x4e52b8,'sparklineConfigMap':_0xabdc66}}),_0xb5db15[_0x31a8fd(0x198)]({'id':V['id'],'params':{'unitId':_0x50bdcc,'subUnitId':_0x4e52b8,'sparklineConfigMap':_0x91e63e}}));}return{'redos':_0x5d6a07,'undos':_0xb5db15};}}));}};Ce=Bt([De(0x0,_0x17f73d(_0x42b904)),De(0x1,_0x17f73d(_0x19f245)),De(0x2,_0x17f73d(x))],Ce);var Ft=Object['getOwnPropertyDescriptor'],Kt=(_0x4fc298,_0x4ccc51,_0x45882a,_0x2e75f9)=>{const _0x470c8c=_0x526a21;for(var _0x18d5a3=_0x2e75f9>0x1?void 0x0:_0x2e75f9?Ft(_0x4ccc51,_0x45882a):_0x4ccc51,_0x3bf66a=_0x4fc298[_0x470c8c(0x21c)]-0x1,_0x4fbecb;_0x3bf66a>=0x0;_0x3bf66a--)(_0x4fbecb=_0x4fc298[_0x3bf66a])&&(_0x18d5a3=_0x4fbecb(_0x18d5a3)||_0x18d5a3);return _0x18d5a3;},ue=(_0x5e7635,_0x10e082)=>(_0x391c58,_0x266606)=>_0x10e082(_0x391c58,_0x266606,_0x5e7635);let _e=class extends _0x5a770f{constructor(_0x32d5ce,_0x3eea49,_0x8061a1,_0x2ac6e5,_0xb2df0c){const _0x34816c=_0x526a21;super(),se(this,'disposableCollection',new _0x5ad48a()),(this[_0x34816c(0x1b3)]=_0x32d5ce,this['_sheetInterceptorService']=_0x3eea49,this[_0x34816c(0x1c2)]=_0x8061a1,this['_univerInstanceService']=_0x2ac6e5,this[_0x34816c(0x1e7)]=_0xb2df0c,this[_0x34816c(0x1d0)](),this[_0x34816c(0x1b4)]());}[_0x526a21(0x1d0)](){const _0x156f90=_0x526a21,_0x4a9d64=(_0x5a1649,_0xcd493d)=>{const _0x17ba08=_0x3e0e,_0x46a479=this['_univerInstanceService'][_0x17ba08(0x169)](_0x1bef9b[_0x17ba08(0x1d7)]);if(!_0x46a479||!(_0x46a479==null?void 0x0:_0x46a479[_0x17ba08(0x1a0)](_0xcd493d)))return;this[_0x17ba08(0x1b0)][_0x17ba08(0x17c)]();const _0x48e209=_0x10e0ac=>this[_0x17ba08(0x163)](_0x10e0ac,_0x5a1649,_0xcd493d),_0xa1f6e8=[],_0x4e0550=this[_0x17ba08(0x1e7)][_0x17ba08(0x17a)](_0x5a1649,_0xcd493d);if(_0x4e0550){for(const [_0x98fce0,_0x3e0cf5]of _0x4e0550)_0x3e0cf5[_0x17ba08(0x1b7)][_0x17ba08(0x17d)]((_0x2272bf,_0x32a260,_0x163297)=>{const _0x1cffb6=_0x34b6dc(_0x2272bf,_0x32a260);_0xa1f6e8['push'](_0x1cffb6);});_0xa1f6e8[_0x17ba08(0x171)](_0x2f52cb=>{const _0x17ebaf=_0x17ba08;this[_0x17ebaf(0x1b0)][_0x17ebaf(0x21b)](this[_0x17ebaf(0x1c2)][_0x17ebaf(0x1a6)](_0x2f52cb,_0x48e209,_0x5a1649,_0xcd493d));});}};this['disposeWithMe'](this[_0x156f90(0x1b3)][_0x156f90(0x1dc)](_0x137b5a=>{const _0x1c2f66=_0x156f90;if(_0x137b5a['id']===_0x2552ee['id']){const _0x537b71=_0x137b5a['params'],_0x4dd37e=_0x537b71[_0x1c2f66(0x1c3)],_0x4ea4d6=_0x537b71[_0x1c2f66(0x19f)];if(!_0x4dd37e||!_0x4ea4d6)return;_0x4a9d64(_0x4ea4d6,_0x4dd37e);}if(_0x137b5a['id']===Oe['id']||_0x137b5a['id']===V['id']){const _0x40053a=_0x137b5a[_0x1c2f66(0x182)],_0x59e8a7=_0x40053a[_0x1c2f66(0x1c3)],_0x4a511c=_0x40053a['unitId'];if(!_0x59e8a7||!_0x4a511c)return;_0x4a9d64(_0x4a511c,_0x59e8a7);}}));}['refRangeHandle'](_0x3c941c,_0x288c71,_0x123100){const _0x2952aa=_0x526a21;switch(_0x3c941c['id']){case _0x1eb794['id']:return this[_0x2952aa(0x1cf)](_0x3c941c[_0x2952aa(0x182)],_0x288c71,_0x123100);case _0x1c3873['id']:return this[_0x2952aa(0x1f7)](_0x3c941c[_0x2952aa(0x182)],_0x288c71,_0x123100);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0xb0e25b,_0xeeeb4b,_0x41cf5b){const _0x3124ef=_0x526a21;var _0x481a8e,_0x372973;const {range:_0x39e3b7}=_0xb0e25b,_0x4685b0=new Set(),_0xb9ef78={},_0x47075a={},_0x324b1c=[],_0x5560f9=[],_0x32d369=[],_0xbec06e=[];if(!_0x1a212e(this[_0x3124ef(0x1d8)],{'unitId':_0xeeeb4b,'subUnitId':_0x41cf5b}))return{'redos':_0x5560f9,'undos':_0x324b1c};const _0x175021=this[_0x3124ef(0x1e7)][_0x3124ef(0x17a)](_0xeeeb4b,_0x41cf5b);if(!_0x175021)return{'redos':_0x5560f9,'undos':_0x324b1c};if(!((_0x372973=(_0x481a8e=this[_0x3124ef(0x1e7)][_0x3124ef(0x1aa)]()['sparklineAnchorMap']['get'](_0xeeeb4b))==null?void 0x0:_0x481a8e[_0x3124ef(0x1bb)](_0x41cf5b))==null?void 0x0:_0x372973[_0x3124ef(0x1f6)]))return{'redos':_0x5560f9,'undos':_0x324b1c};for(const [_0x1b26a8,_0x6946c6]of _0x175021){const _0x4a3392=_0x6946c6[_0x3124ef(0x1b7)];_0x4a3392['forValue']((_0x4674fe,_0x576b00,_0x52465f)=>{const _0x51cac1=_0x3124ef;if(_0x35a2af[_0x51cac1(0x1bd)](_0x39e3b7,_0x52465f)){_0x4685b0[_0x51cac1(0x21b)](_0x1b26a8);let _0x1dbbf7=_0x47075a[_0x1b26a8];_0x1dbbf7||(_0x1dbbf7={'config':_0x6946c6['config'],'sparklines':_0x6946c6[_0x51cac1(0x1b7)][_0x51cac1(0x200)]()},_0x47075a[_0x1b26a8]=_0x1dbbf7);let _0x40ccbf=_0xb9ef78[_0x1b26a8];_0x40ccbf||(_0x40ccbf={'config':_0x6946c6[_0x51cac1(0x204)],'sparklines':new _0x33c5b5(_0x6946c6[_0x51cac1(0x1b7)]['clone']())},_0xb9ef78[_0x1b26a8]=_0x40ccbf);const _0x4b4bd4=_0x26b750(_0x52465f,{'id':_0xce5075['id'],'params':_0xb0e25b});_0x4b4bd4?_0x40ccbf[_0x51cac1(0x1b7)][_0x51cac1(0x216)](_0x4674fe,_0x576b00,_0x4b4bd4):_0x40ccbf[_0x51cac1(0x1b7)][_0x51cac1(0x216)](_0x4674fe,_0x576b00,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3c5267[_0x51cac1(0x1f2)]});}}),_0x4a3392[_0x3124ef(0x17d)]((_0x1530c5,_0xaa982d,_0x9b03a9)=>{const _0x129157=_0x3124ef;if(_0x1530c5<=_0x39e3b7[_0x129157(0x1fa)]&&_0x1530c5>=_0x39e3b7[_0x129157(0x1be)]){_0x4685b0[_0x129157(0x21b)](_0x1b26a8);let _0x658702=_0x47075a[_0x1b26a8];_0x658702||(_0x658702={'config':_0x6946c6[_0x129157(0x204)],'sparklines':_0x6946c6[_0x129157(0x1b7)]['clone']()},_0x47075a[_0x1b26a8]=_0x658702);let _0x57b774=_0xb9ef78[_0x1b26a8];_0x57b774||(_0x57b774={'config':_0x6946c6[_0x129157(0x204)],'sparklines':new _0x33c5b5(_0x6946c6[_0x129157(0x1b7)]['clone']())},_0xb9ef78[_0x1b26a8]=_0x57b774);}});}_0xbec06e[_0x3124ef(0x198)]({'id':y['id'],'params':{'unitId':_0xeeeb4b,'subUnitId':_0x41cf5b,'groupIds':Array[_0x3124ef(0x1f5)](_0x4685b0),'isSingle':!0x1}}),_0x32d369[_0x3124ef(0x198)]({'id':y['id'],'params':{'unitId':_0xeeeb4b,'subUnitId':_0x41cf5b,'groupIds':Array['from'](_0x4685b0),'isSingle':!0x1}});const _0x2acd1a={};let _0x21c418=!0x1;return Object[_0x3124ef(0x1a5)](_0xb9ef78)[_0x3124ef(0x171)](([_0x16b3ae,_0x31e838])=>{const _0x363fe7=_0x3124ef;_0x31e838[_0x363fe7(0x1b7)][_0x363fe7(0x1c0)]()&&(_0x21c418=!0x0,_0x31e838[_0x363fe7(0x1b7)]['removeRows'](_0x39e3b7[_0x363fe7(0x1be)],_0x39e3b7[_0x363fe7(0x1fa)]-_0x39e3b7['startRow']+0x1),_0x2acd1a[_0x16b3ae]={'config':_0x31e838[_0x363fe7(0x204)],'sparklines':_0x31e838[_0x363fe7(0x1b7)][_0x363fe7(0x200)]()});}),_0x21c418&&_0x5560f9[_0x3124ef(0x198)]({'id':V['id'],'params':{'unitId':_0xeeeb4b,'subUnitId':_0x41cf5b,'sparklineConfigMap':_0x2acd1a}}),_0x324b1c[_0x3124ef(0x198)]({'id':V['id'],'params':{'unitId':_0xeeeb4b,'subUnitId':_0x41cf5b,'sparklineConfigMap':_0x47075a}}),{'redos':_0x5560f9,'undos':_0x324b1c,'preRedos':_0x32d369,'preUndos':_0xbec06e};}[_0x526a21(0x1cf)](_0x3b51d4,_0x17c668,_0x2bb0fc){const _0xd33d64=_0x526a21;var _0x4abe53,_0x28e22b;const {range:_0x2b1f9f}=_0x3b51d4,_0x31db88=new Set(),_0x36b2e5={},_0x2d35e1={},_0x4f20fd=[],_0x49865e=[],_0x59fb70=[],_0x1684c3=[];if(!_0x1a212e(this['_univerInstanceService'],{'unitId':_0x17c668,'subUnitId':_0x2bb0fc}))return{'redos':_0x49865e,'undos':_0x4f20fd};const _0x47ece5=this['_sparklineDataSourceModel'][_0xd33d64(0x17a)](_0x17c668,_0x2bb0fc);if(!_0x47ece5)return{'redos':_0x49865e,'undos':_0x4f20fd};if(!((_0x28e22b=(_0x4abe53=this['_sparklineDataSourceModel'][_0xd33d64(0x1aa)]()[_0xd33d64(0x193)]['get'](_0x17c668))==null?void 0x0:_0x4abe53[_0xd33d64(0x1bb)](_0x2bb0fc))==null?void 0x0:_0x28e22b[_0xd33d64(0x1f6)]))return{'redos':_0x49865e,'undos':_0x4f20fd};for(const [_0x1e38d4,_0x4b277d]of _0x47ece5){const _0x530c33=_0x4b277d[_0xd33d64(0x1b7)];_0x530c33['forValue']((_0x52b270,_0x126797,_0x50deea)=>{const _0x441fdf=_0xd33d64;if(_0x35a2af['intersects'](_0x2b1f9f,_0x50deea)){_0x31db88[_0x441fdf(0x21b)](_0x1e38d4);let _0x523bc0=_0x2d35e1[_0x1e38d4];_0x523bc0||(_0x523bc0={'config':_0x4b277d[_0x441fdf(0x204)],'sparklines':_0x4b277d[_0x441fdf(0x1b7)]['clone']()},_0x2d35e1[_0x1e38d4]=_0x523bc0);let _0x11eb60=_0x36b2e5[_0x1e38d4];_0x11eb60||(_0x11eb60={'config':_0x4b277d[_0x441fdf(0x204)],'sparklines':new _0x33c5b5(_0x4b277d[_0x441fdf(0x1b7)]['clone']())},_0x36b2e5[_0x1e38d4]=_0x11eb60);const _0x1c142f=_0x26b750(_0x50deea,{'id':_0xe5b986['id'],'params':_0x3b51d4});_0x1c142f?_0x11eb60[_0x441fdf(0x1b7)][_0x441fdf(0x216)](_0x52b270,_0x126797,_0x1c142f):_0x11eb60[_0x441fdf(0x1b7)][_0x441fdf(0x216)](_0x52b270,_0x126797,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3c5267[_0x441fdf(0x1f2)]});}}),_0x530c33['forValue']((_0x23e62b,_0x40b2ae,_0x5a8ea5)=>{const _0x5f28a6=_0xd33d64;if(_0x40b2ae<=_0x2b1f9f[_0x5f28a6(0x180)]&&_0x40b2ae>=_0x2b1f9f[_0x5f28a6(0x19c)]){_0x31db88[_0x5f28a6(0x21b)](_0x1e38d4);let _0x51a792=_0x2d35e1[_0x1e38d4];_0x51a792||(_0x51a792={'config':_0x4b277d[_0x5f28a6(0x204)],'sparklines':_0x4b277d[_0x5f28a6(0x1b7)][_0x5f28a6(0x200)]()},_0x2d35e1[_0x1e38d4]=_0x51a792);let _0x4e98d0=_0x36b2e5[_0x1e38d4];_0x4e98d0||(_0x4e98d0={'config':_0x4b277d[_0x5f28a6(0x204)],'sparklines':new _0x33c5b5(_0x4b277d['sparklines'][_0x5f28a6(0x200)]())},_0x36b2e5[_0x1e38d4]=_0x4e98d0);}});}_0x1684c3[_0xd33d64(0x198)]({'id':y['id'],'params':{'unitId':_0x17c668,'subUnitId':_0x2bb0fc,'groupIds':Array[_0xd33d64(0x1f5)](_0x31db88),'isSingle':!0x1}}),_0x59fb70[_0xd33d64(0x198)]({'id':y['id'],'params':{'unitId':_0x17c668,'subUnitId':_0x2bb0fc,'groupIds':Array['from'](_0x31db88),'isSingle':!0x1}});const _0x376572={};let _0x50e96b=!0x1;return Object[_0xd33d64(0x1a5)](_0x36b2e5)[_0xd33d64(0x171)](([_0x4bd2d1,_0x4f0a55])=>{const _0x444ac8=_0xd33d64;_0x4f0a55[_0x444ac8(0x1b7)]['getSizeOf']()&&(_0x50e96b=!0x0,_0x4f0a55[_0x444ac8(0x1b7)][_0x444ac8(0x1e4)](_0x2b1f9f[_0x444ac8(0x19c)],_0x2b1f9f[_0x444ac8(0x180)]-_0x2b1f9f[_0x444ac8(0x19c)]+0x1),_0x376572[_0x4bd2d1]={'config':_0x4f0a55[_0x444ac8(0x204)],'sparklines':_0x4f0a55[_0x444ac8(0x1b7)][_0x444ac8(0x200)]()});}),_0x50e96b&&_0x49865e[_0xd33d64(0x198)]({'id':V['id'],'params':{'unitId':_0x17c668,'subUnitId':_0x2bb0fc,'sparklineConfigMap':_0x376572}}),_0x4f20fd[_0xd33d64(0x198)]({'id':V['id'],'params':{'unitId':_0x17c668,'subUnitId':_0x2bb0fc,'sparklineConfigMap':_0x2d35e1}}),{'redos':_0x49865e,'undos':_0x4f20fd,'preRedos':_0x59fb70,'preUndos':_0x1684c3};}['_initCorrectRangeWithSparkline'](){const _0x17e993=_0x526a21;this[_0x17e993(0x174)](this[_0x17e993(0x1b3)][_0x17e993(0x1dc)](_0x537ea9=>{const _0x50de2d=_0x17e993;if(_0x537ea9['id']===_0x2e2bda['id']){const _0x3269ac=_0x537ea9[_0x50de2d(0x182)],{unitId:_0x400d62,subUnitId:_0x109738,range:_0xb8c550}=_0x3269ac,_0x3f8736=_0xb8c550[_0x50de2d(0x19c)],_0x4f0151=_0xb8c550[_0x50de2d(0x180)]-_0xb8c550['startColumn']+0x1,_0x205003=this[_0x50de2d(0x1e7)][_0x50de2d(0x17a)](_0x400d62,_0x109738);if(!_0x205003)return;for(const [_0x13af5c,_0x257608]of _0x205003){this['_sparklineDataSourceModel']['clearSparklineCache'](_0x400d62,_0x109738,_0x13af5c);const _0x2eb6d8=_0x257608[_0x50de2d(0x1b7)];_0x2eb6d8[_0x50de2d(0x17d)]((_0x2bee85,_0x3c6916,_0x1d8754)=>{const _0x8647c1=_0x50de2d,_0x2ea418={..._0x1d8754};_0x3f8736<=_0x2ea418[_0x8647c1(0x19c)]?(_0x2ea418[_0x8647c1(0x19c)]+=_0x4f0151,_0x2ea418[_0x8647c1(0x180)]+=_0x4f0151):_0x3f8736>_0x2ea418[_0x8647c1(0x180)]||(_0x2ea418['endColumn']+=_0x4f0151),_0x2eb6d8[_0x8647c1(0x216)](_0x2bee85,_0x3c6916,_0x2ea418);});const _0x418184=_0x2eb6d8[_0x50de2d(0x1df)]();for(const _0x19fb41 in _0x418184){const _0x5c7127=_0x418184[Number(_0x19fb41)];if(!_0x5c7127)continue;const _0x21f0e5=Object['keys'](_0x5c7127)[_0x50de2d(0x162)](Number),_0x2fb4b3=Math[_0x50de2d(0x16f)](..._0x21f0e5);for(let _0x4a3c2e=_0x2fb4b3;_0x4a3c2e>=_0x3f8736;_0x4a3c2e--)_0x4a3c2e>=_0x3f8736&&_0x5c7127[_0x4a3c2e]&&(_0x5c7127[_0x4a3c2e+_0x4f0151]=_0x5c7127[_0x4a3c2e],delete _0x5c7127[_0x4a3c2e]);}this['_sparklineDataSourceModel'][_0x50de2d(0x1a4)](_0x400d62,_0x109738,_0x13af5c);}}else{if(_0x537ea9['id']===_0x4f3a7a['id']){const _0x32ce60=_0x537ea9[_0x50de2d(0x182)],{unitId:_0xd9a886,subUnitId:_0x495068,range:_0x4849cb}=_0x32ce60,_0x2137f3=_0x4849cb[_0x50de2d(0x1be)],_0x4d0f56=_0x4849cb['endRow']-_0x4849cb['startRow']+0x1,_0x9a1c1f=this['_sparklineDataSourceModel'][_0x50de2d(0x17a)](_0xd9a886,_0x495068);if(!_0x9a1c1f)return;for(const [_0x40348b,_0x24fc50]of _0x9a1c1f){this[_0x50de2d(0x1e7)][_0x50de2d(0x20f)](_0xd9a886,_0x495068,_0x40348b);const _0x72333c=_0x24fc50[_0x50de2d(0x1b7)];_0x72333c[_0x50de2d(0x17d)]((_0x1733f4,_0x4cb26b,_0x2fb36d)=>{const _0x3634a4=_0x50de2d,_0x3af6e5={..._0x2fb36d};_0x2137f3<=_0x3af6e5[_0x3634a4(0x1be)]?(_0x3af6e5[_0x3634a4(0x1be)]+=_0x4d0f56,_0x3af6e5['endRow']+=_0x4d0f56):_0x2137f3>_0x3af6e5[_0x3634a4(0x1fa)]||(_0x3af6e5[_0x3634a4(0x1fa)]+=_0x4d0f56),_0x72333c['setValue'](_0x1733f4,_0x4cb26b,_0x3af6e5);});const _0x5812b8=_0x72333c[_0x50de2d(0x1df)](),_0xc3663b=Object[_0x50de2d(0x20e)](_0x5812b8)[_0x50de2d(0x162)](Number),_0x4c8670=Math['max'](..._0xc3663b);for(let _0x43c361=_0x4c8670;_0x43c361>=_0x2137f3;_0x43c361--)_0x43c361>=_0x2137f3&&_0x5812b8[_0x43c361]&&(_0x5812b8[_0x43c361+_0x4d0f56]=_0x5812b8[_0x43c361],delete _0x5812b8[_0x43c361]);this[_0x50de2d(0x1e7)][_0x50de2d(0x1a4)](_0xd9a886,_0x495068,_0x40348b);}}else{if(_0x537ea9['id']===_0xe5b986['id']){const _0x2a09b9=_0x537ea9[_0x50de2d(0x182)],{range:_0x564fd9,unitId:_0x3946d5,subUnitId:_0x573996}=_0x2a09b9,_0xd04e60=this[_0x50de2d(0x1e7)]['getSubUnitSparkline'](_0x3946d5,_0x573996);if(!_0xd04e60)return;for(const [_0x50e74d,_0x41e51d]of _0xd04e60){const _0x3bff06=_0x41e51d[_0x50de2d(0x1b7)];_0x3bff06['forValue']((_0x18c6c6,_0x44c64a,_0x3b4147)=>{const _0x2abe11=_0x50de2d,_0x2ded4d=_0x26b750(_0x3b4147,_0x537ea9);_0x2ded4d?_0x3bff06[_0x2abe11(0x216)](_0x18c6c6,_0x44c64a,_0x2ded4d):_0x3bff06[_0x2abe11(0x216)](_0x18c6c6,_0x44c64a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3c5267[_0x2abe11(0x1f2)]});}),_0x3bff06[_0x50de2d(0x1e4)](_0x564fd9['startColumn'],_0x564fd9['endColumn']-_0x564fd9['startColumn']+0x1);}this[_0x50de2d(0x1e7)][_0x50de2d(0x217)](_0x3946d5,_0x573996);}else{if(_0x537ea9['id']===_0xce5075['id']){const _0x45ae5a=_0x537ea9[_0x50de2d(0x182)],{range:_0x5e1870,unitId:_0x570fe0,subUnitId:_0x32942e}=_0x45ae5a,_0x3dde65=this[_0x50de2d(0x1e7)][_0x50de2d(0x17a)](_0x570fe0,_0x32942e);if(!_0x3dde65)return;for(const [_0x4585f5,_0x351dda]of _0x3dde65){const _0x51d7b2=_0x351dda[_0x50de2d(0x1b7)];_0x51d7b2[_0x50de2d(0x17d)]((_0x4601e3,_0x3aa99d,_0x2b2d7e)=>{const _0x325315=_0x50de2d,_0xfc1a9f=_0x26b750(_0x2b2d7e,_0x537ea9);_0xfc1a9f?_0x51d7b2['setValue'](_0x4601e3,_0x3aa99d,_0xfc1a9f):_0x51d7b2[_0x325315(0x216)](_0x4601e3,_0x3aa99d,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3c5267['NORMAL']});}),_0x51d7b2[_0x50de2d(0x203)](_0x5e1870[_0x50de2d(0x1be)],_0x5e1870['endRow']-_0x5e1870[_0x50de2d(0x1be)]+0x1);}this['_sparklineDataSourceModel']['reBuildAnchorCache'](_0x570fe0,_0x32942e);}else{if(_0x537ea9['id']===_0x252ae2['id']){const _0xf44035=_0x537ea9[_0x50de2d(0x182)],{unitId:_0x1531b3,subUnitId:_0x1b937f,sourceRange:_0x298e19,targetRange:_0x37b9c7}=_0xf44035,_0x4b21b9=this[_0x50de2d(0x1e7)][_0x50de2d(0x17a)](_0x1531b3,_0x1b937f);if(!_0x4b21b9)return;for(const [_0x473d40,_0x237a26]of _0x4b21b9){const _0x457e71=_0x237a26[_0x50de2d(0x1b7)];_0x457e71['forValue']((_0x1a3166,_0x58f792,_0x32b4a8)=>{const _0x280305=_0x50de2d,_0x5a9b27=_0x26b750(_0x32b4a8,_0x537ea9);_0x5a9b27?_0x457e71[_0x280305(0x216)](_0x1a3166,_0x58f792,_0x5a9b27):_0x457e71[_0x280305(0x216)](_0x1a3166,_0x58f792,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3c5267[_0x280305(0x1f2)]});}),_0x457e71[_0x50de2d(0x175)](_0x298e19['startColumn'],_0x298e19[_0x50de2d(0x180)]-_0x298e19[_0x50de2d(0x19c)]+0x1,_0x37b9c7[_0x50de2d(0x19c)]);}this[_0x50de2d(0x1e7)][_0x50de2d(0x217)](_0x1531b3,_0x1b937f);}else{if(_0x537ea9['id']===_0xba5f6e['id']){const _0x35afa6=_0x537ea9[_0x50de2d(0x182)],{unitId:_0x5a2162,subUnitId:_0x1dbe6d,sourceRange:_0x5a4be9,targetRange:_0x40ced7}=_0x35afa6,_0xafc807=this[_0x50de2d(0x1e7)][_0x50de2d(0x17a)](_0x5a2162,_0x1dbe6d);if(!_0xafc807)return;for(const [_0x490ef1,_0x51b5d4]of _0xafc807){const _0x377f0d=_0x51b5d4[_0x50de2d(0x1b7)];_0x377f0d[_0x50de2d(0x17d)]((_0x566057,_0x3b8f79,_0x47399b)=>{const _0x3a81a8=_0x50de2d,_0x26f1b7=_0x26b750(_0x47399b,_0x537ea9);_0x26f1b7?_0x377f0d['setValue'](_0x566057,_0x3b8f79,_0x26f1b7):_0x377f0d[_0x3a81a8(0x216)](_0x566057,_0x3b8f79,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x3c5267['NORMAL']});}),_0x377f0d['moveRows'](_0x5a4be9[_0x50de2d(0x1be)],_0x5a4be9['endRow']-_0x5a4be9[_0x50de2d(0x1be)]+0x1,_0x40ced7[_0x50de2d(0x1be)]);}this['_sparklineDataSourceModel']['reBuildAnchorCache'](_0x5a2162,_0x1dbe6d);}else{if(_0x537ea9['id']===_0x5efdcb['id']){const _0x567280=_0x537ea9['params'],{fromRange:_0xc99e68,toRange:_0x4ca4b1,unitId:_0x288801,from:_0x325fb0,to:_0x381224}=_0x567280;if(_0x325fb0[_0x50de2d(0x1c3)]!==_0x381224[_0x50de2d(0x1c3)])return;const _0x39351f=_0x325fb0['subUnitId'],{startRow:_0x59b285,endRow:_0x5100bd,startColumn:_0x52d167,endColumn:_0x5b9fa8}=_0xc99e68,{startRow:_0x270f4f,startColumn:_0x4a9674}=_0x4ca4b1,_0x3870bc=_0x270f4f-_0x59b285,_0x1ae269=_0x4a9674-_0x52d167,_0x1ed5d3=this[_0x50de2d(0x1e7)][_0x50de2d(0x17a)](_0x288801,_0x39351f);if(!(_0x1ed5d3!=null&&_0x1ed5d3[_0x50de2d(0x1fe)]))return;for(let _0x321391=_0x59b285;_0x321391<=_0x5100bd;_0x321391++)for(let _0x2fbc4f=_0x52d167;_0x2fbc4f<=_0x5b9fa8;_0x2fbc4f++){const _0x1e2674=this[_0x50de2d(0x1e7)][_0x50de2d(0x1ad)](_0x288801,_0x39351f,_0x321391,_0x2fbc4f);if(_0x1e2674){const _0x5298e1=this[_0x50de2d(0x1e7)][_0x50de2d(0x168)](_0x288801,_0x39351f,_0x1e2674);if(_0x5298e1){const _0x4790dd=_0x5298e1[_0x50de2d(0x1b7)][_0x50de2d(0x1a3)](_0x321391,_0x2fbc4f);_0x4790dd&&(_0x5298e1[_0x50de2d(0x1b7)][_0x50de2d(0x216)](_0x321391+_0x3870bc,_0x2fbc4f+_0x1ae269,_0x4790dd),_0x5298e1[_0x50de2d(0x1b7)][_0x50de2d(0x20a)](_0x321391,_0x2fbc4f));}}}for(const [_0x578b8e,_0x16785c]of _0x1ed5d3){const _0xdd16f7=_0x16785c['sparklines'];_0xdd16f7[_0x50de2d(0x17d)]((_0x1d606f,_0x274d2a,_0x30b6c1)=>{const _0x187dc0=_0x50de2d,_0x4ce799={..._0x30b6c1};_0x35a2af[_0x187dc0(0x1ea)](_0xc99e68,_0x30b6c1)&&(_0x4ce799[_0x187dc0(0x1be)]+=_0x3870bc,_0x4ce799['endRow']+=_0x3870bc,_0x4ce799[_0x187dc0(0x19c)]+=_0x1ae269,_0x4ce799[_0x187dc0(0x180)]+=_0x1ae269),_0xdd16f7['setValue'](_0x1d606f,_0x274d2a,_0x4ce799);});}this[_0x50de2d(0x1e7)][_0x50de2d(0x217)](_0x288801,_0x39351f);}}}}}}}}));}};_e=Kt([ue(0x0,_0x17f73d(_0x42b904)),ue(0x1,_0x17f73d(_0x19f245)),ue(0x2,_0x17f73d(_0x17db45)),ue(0x3,_0x130024),ue(0x4,_0x17f73d(x))],_e);var Xt=Object[_0x526a21(0x1dd)],zt=(_0xef067c,_0x541edb,_0x3b0ad4,_0x3500db)=>{const _0x593fe8=_0x526a21;for(var _0x37f217=_0x3500db>0x1?void 0x0:_0x3500db?Xt(_0x541edb,_0x3b0ad4):_0x541edb,_0x1bea0f=_0xef067c[_0x593fe8(0x21c)]-0x1,_0x1a6a98;_0x1bea0f>=0x0;_0x1bea0f--)(_0x1a6a98=_0xef067c[_0x1bea0f])&&(_0x37f217=_0x1a6a98(_0x37f217)||_0x37f217);return _0x37f217;},He=(_0x7020b0,_0x198fb4)=>(_0x540b1d,_0x3c4fa6)=>_0x198fb4(_0x540b1d,_0x3c4fa6,_0x7020b0);let Me=class extends _0x5a770f{constructor(_0x67e2b,_0x3b1b44){const _0x213f35=_0x526a21;super(),this[_0x213f35(0x1db)]=_0x67e2b,this[_0x213f35(0x1e7)]=_0x3b1b44,this['_initSnapshot']();}[_0x526a21(0x1d9)](){const _0x3cec1e=_0x526a21,_0x35ba76=_0x20b73a=>{const _0x125ff3=_0x3e0e,_0xe462e1=this['_sparklineDataSourceModel'][_0x125ff3(0x1ef)](_0x20b73a);return _0xe462e1?JSON[_0x125ff3(0x161)](_0xe462e1):'';},_0x5e47c8=_0x81fe24=>_0x81fe24?JSON['parse'](_0x81fe24):{};this[_0x3cec1e(0x174)](this[_0x3cec1e(0x1db)][_0x3cec1e(0x185)]({'toJson':_0x35ba76,'parseJson':_0x5e47c8,'pluginName':Ke,'businesses':[_0x1bef9b['UNIVER_SHEET']],'onLoad':(_0x5b05d8,_0x25cdc0)=>{const _0x3d16d1=_0x3cec1e;this[_0x3d16d1(0x1e7)][_0x3d16d1(0x213)](_0x25cdc0);},'onUnLoad':_0xf36373=>{const _0x5f00b9=_0x3cec1e;this[_0x5f00b9(0x1e7)]['deleteUnit'](_0xf36373);}}));}};Me=zt([He(0x0,_0x17f73d(_0x5a3fc0)),He(0x1,_0x17f73d(x))],Me);var Jt=Object['defineProperty'],Zt=Object[_0x526a21(0x1dd)],Yt=(_0x149dd5,_0x43ab97,_0x79fdda)=>_0x43ab97 in _0x149dd5?Jt(_0x149dd5,_0x43ab97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x79fdda}):_0x149dd5[_0x43ab97]=_0x79fdda,qt=(_0x39a8d0,_0x16079c,_0x1f3893,_0xdcf90b)=>{const _0x70ebc7=_0x526a21;for(var _0x29e271=_0xdcf90b>0x1?void 0x0:_0xdcf90b?Zt(_0x16079c,_0x1f3893):_0x16079c,_0x49457b=_0x39a8d0[_0x70ebc7(0x21c)]-0x1,_0x5515a2;_0x49457b>=0x0;_0x49457b--)(_0x5515a2=_0x39a8d0[_0x49457b])&&(_0x29e271=_0x5515a2(_0x29e271)||_0x29e271);return _0x29e271;},Be=(_0x39702c,_0x4b920a)=>(_0x171d24,_0x97a048)=>_0x4b920a(_0x171d24,_0x97a048,_0x39702c),ze=(_0x537ed4,_0x2d8207,_0x51702f)=>Yt(_0x537ed4,typeof _0x2d8207!=_0x526a21(0x211)?_0x2d8207+'':_0x2d8207,_0x51702f);let Re=class extends _0x392d0b{constructor(_0x2032f7={},_0x53bd10,_0x58350e){const _0x22a73a=_0x526a21;super(),this[_0x22a73a(0x1f3)]=_0x2032f7,this[_0x22a73a(0x1d3)]=_0x53bd10,this['_commandService']=_0x58350e,this[_0x22a73a(0x1c6)](),this[_0x22a73a(0x16d)]();}[_0x526a21(0x1c6)](){const _0x10241c=_0x526a21;[[x],[ke],[Ce],[he],[_e],[me],[Se],[Me]]['forEach'](_0x5078fb=>{const _0x5c7975=_0x3e0e;this['_injector'][_0x5c7975(0x21b)](_0x5078fb);}),_0x497851(this[_0x10241c(0x1d3)],[[Me]]);}['onReady'](){_0x497851(this['_injector'],[[ke],[Ce],[he],[_e],[me],[Se]]);}[_0x526a21(0x16d)](){const _0x2115ea=_0x526a21;[Nt,V,Ot,y,xt,Oe][_0x2115ea(0x171)](_0x415f78=>this[_0x2115ea(0x1b3)][_0x2115ea(0x16e)](_0x415f78));}};ze(Re,_0x526a21(0x218),Ke),ze(Re,_0x526a21(0x206),_0x1bef9b[_0x526a21(0x1d7)]),Re=qt([_0x3bdb59(_0x56acad),Be(0x1,_0x17f73d(_0x12a2f1)),Be(0x2,_0x17f73d(_0x42b904))],Re);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,z as SpacialShowAsEnum,x as SparklineDataSourceModel,Ee as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,Re as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
|
@@ -11,9 +11,12 @@ export interface IFSheetSparklineEventMixin {
|
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
14
|
-
* univerAPI.addEvent(univerAPI.Event.SheetSparklineChanged, (params) => {
|
|
14
|
+
* const disposable = univerAPI.addEvent(univerAPI.Event.SheetSparklineChanged, (params) => {
|
|
15
15
|
* console.log('SheetSparklineChanged', params);
|
|
16
|
-
* }
|
|
16
|
+
* const { workbook, worksheet, sparklines } = params;
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* // Remove the event listener, use `disposable.dispose()`.
|
|
17
20
|
* ```
|
|
18
21
|
*/
|
|
19
22
|
readonly SheetSparklineChanged: 'SheetSparklineChanged';
|
|
@@ -20,15 +20,25 @@ export declare class FSparklineGroup {
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
23
|
-
* const
|
|
24
|
-
* const
|
|
23
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
24
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
25
25
|
*
|
|
26
|
-
* //
|
|
27
|
-
* const
|
|
28
|
-
*
|
|
29
|
-
* [
|
|
30
|
-
* [{ startRow: 9, endRow: 9, startColumn: 0, endColumn: 0 }]
|
|
26
|
+
* // Create a sparkline in the range A10, with the data source in the range A1:A7.
|
|
27
|
+
* const sparkline = fWorksheet.addSparkline(
|
|
28
|
+
* [fWorksheet.getRange('A1:A7').getRange()],
|
|
29
|
+
* [fWorksheet.getRange('A10').getRange()]
|
|
31
30
|
* );
|
|
31
|
+
*
|
|
32
|
+
* // Get sparkline group by cell A10
|
|
33
|
+
* const sparklineGroup = fWorksheet.getSparklineGroupByCell(9, 0);
|
|
34
|
+
*
|
|
35
|
+
* setTimeout(() => {
|
|
36
|
+
* // Modify the data source of the sparkline group to the range B1:B7 after 3 seconds.
|
|
37
|
+
* sparklineGroup.changeDataSource(
|
|
38
|
+
* [fWorksheet.getRange('B1:B7').getRange()],
|
|
39
|
+
* [fWorksheet.getRange('A10').getRange()]
|
|
40
|
+
* );
|
|
41
|
+
* }, 3000);
|
|
32
42
|
* ```
|
|
33
43
|
*/
|
|
34
44
|
changeDataSource(sourceRanges: IRange[], targetRanges: IRange[]): FSparklineGroup | undefined;
|
|
@@ -38,30 +48,50 @@ export declare class FSparklineGroup {
|
|
|
38
48
|
*
|
|
39
49
|
* @example
|
|
40
50
|
* ```ts
|
|
41
|
-
* const
|
|
42
|
-
* const
|
|
51
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
52
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
53
|
+
*
|
|
54
|
+
* // Create a sparkline in the range A10, with the data source in the range A1:A7.
|
|
55
|
+
* const sparkline = fWorksheet.addSparkline(
|
|
56
|
+
* [fWorksheet.getRange('A1:A7').getRange()],
|
|
57
|
+
* [fWorksheet.getRange('A10').getRange()]
|
|
58
|
+
* );
|
|
43
59
|
*
|
|
44
|
-
* //
|
|
45
|
-
* const sparklineGroup =
|
|
60
|
+
* // Get sparkline group by cell A10
|
|
61
|
+
* const sparklineGroup = fWorksheet.getSparklineGroupByCell(9, 0);
|
|
46
62
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
63
|
+
* setTimeout(() => {
|
|
64
|
+
* // Remove sparkline group after 3 seconds.
|
|
65
|
+
* sparklineGroup.removeSparklineGroup();
|
|
66
|
+
* }, 3000);
|
|
49
67
|
* ```
|
|
50
68
|
*/
|
|
51
69
|
removeSparklineGroup(): void;
|
|
52
70
|
/**
|
|
53
71
|
* @description Modify the configuration of the current sparkline group
|
|
54
72
|
* @param {ISparklineGroupConfig} config new sparkline group config
|
|
55
|
-
* @returns {FSparklineGroup} Return this, for chaining
|
|
73
|
+
* @returns {FSparklineGroup} Return this instance, for chaining
|
|
56
74
|
*
|
|
57
75
|
* @example
|
|
58
76
|
* ```ts
|
|
59
|
-
* const
|
|
60
|
-
* const
|
|
77
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
78
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
79
|
+
*
|
|
80
|
+
* // Create a sparkline in the range A10, with the data source in the range A1:A7.
|
|
81
|
+
* const sparkline = fWorksheet.addSparkline(
|
|
82
|
+
* [fWorksheet.getRange('A1:A7').getRange()],
|
|
83
|
+
* [fWorksheet.getRange('A10').getRange()]
|
|
84
|
+
* );
|
|
85
|
+
*
|
|
86
|
+
* // Get sparkline group by cell A10
|
|
87
|
+
* const sparklineGroup = fWorksheet.getSparklineGroupByCell(9, 0);
|
|
61
88
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
89
|
+
* // Set sparkline type to bar chart after 3 seconds
|
|
90
|
+
* setTimeout(() => {
|
|
91
|
+
* sparklineGroup.setConfig({
|
|
92
|
+
* type: univerAPI.Enum.SparklineTypeEnum.BAR_CHART
|
|
93
|
+
* });
|
|
94
|
+
* }, 3000);
|
|
65
95
|
* ```
|
|
66
96
|
*/
|
|
67
97
|
setConfig(config: ISparklineGroupConfig): FSparklineGroup;
|
|
@@ -19,38 +19,43 @@ export declare class FSparkline {
|
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
22
|
-
* const
|
|
23
|
-
* const
|
|
22
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
23
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
24
24
|
*
|
|
25
|
-
* //
|
|
26
|
-
* const sparkline =
|
|
27
|
-
* [
|
|
28
|
-
* [
|
|
25
|
+
* // Create a sparkline in the range A10, with the data source in the range A1:A7.
|
|
26
|
+
* const sparkline = fWorksheet.addSparkline(
|
|
27
|
+
* [fWorksheet.getRange('A1:A7').getRange()],
|
|
28
|
+
* [fWorksheet.getRange('A10').getRange()]
|
|
29
29
|
* );
|
|
30
30
|
*
|
|
31
|
-
* //
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
31
|
+
* // Modify the data source of the sparkline to the range B1:B7, and move it to the range B10 after 3 seconds.
|
|
32
|
+
* setTimeout(() => {
|
|
33
|
+
* sparkline.changeDataSource(
|
|
34
|
+
* fWorksheet.getRange('B1:B7').getRange(),
|
|
35
|
+
* fWorksheet.getRange('B10').getRange()
|
|
36
|
+
* );
|
|
37
|
+
* }, 3000);
|
|
36
38
|
* ```
|
|
37
39
|
*/
|
|
38
40
|
changeDataSource(sourceRange: IRange, targetRange: IRange): FSparkline | undefined;
|
|
39
41
|
/**
|
|
40
42
|
* @description Delete the sparkline in the current cell
|
|
41
|
-
* @returns {void}
|
|
42
43
|
*
|
|
43
44
|
* @example
|
|
44
45
|
* ```ts
|
|
45
|
-
* const
|
|
46
|
-
* const
|
|
46
|
+
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
47
|
+
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
47
48
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
* [
|
|
49
|
+
* // Create a sparkline in the range A10, with the data source in the range A1:A7.
|
|
50
|
+
* const sparkline = fWorksheet.addSparkline(
|
|
51
|
+
* [fWorksheet.getRange('A1:A7').getRange()],
|
|
52
|
+
* [fWorksheet.getRange('A10').getRange()]
|
|
51
53
|
* );
|
|
52
54
|
*
|
|
53
|
-
* sparkline.
|
|
55
|
+
* // Remove the sparkline after 3 seconds.
|
|
56
|
+
* setTimeout(() => {
|
|
57
|
+
* sparkline.removeSparkline();
|
|
58
|
+
* }, 3000);
|
|
54
59
|
* ```
|
|
55
60
|
*/
|
|
56
61
|
removeSparkline(): void;
|