@univerjs-pro/sheets-sparkline 0.5.3 → 0.5.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/common/type.d.ts +117 -0
- package/lib/types/facade/f-enum.d.ts +12 -0
- package/lib/types/facade/f-event.d.ts +42 -0
- package/lib/types/facade/f-sparkline-group.d.ts +38 -9
- package/lib/types/facade/f-sparkline.d.ts +29 -3
- package/lib/types/facade/f-univer.d.ts +4 -0
- package/lib/types/facade/f-worksheet.d.ts +72 -11
- package/lib/types/facade/index.d.ts +3 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3ef231=_0x10c2;(function(_0x2e1370,_0x2648ce){const _0x23dcf5=_0x10c2,_0x20bbec=_0x2e1370();while(!![]){try{const _0x145f49=parseInt(_0x23dcf5(0x122))/0x1+-parseInt(_0x23dcf5(0x110))/0x2+-parseInt(_0x23dcf5(0xc0))/0x3*(parseInt(_0x23dcf5(0xa1))/0x4)+-parseInt(_0x23dcf5(0x97))/0x5*(parseInt(_0x23dcf5(0x123))/0x6)+-parseInt(_0x23dcf5(0xef))/0x7*(parseInt(_0x23dcf5(0x128))/0x8)+-parseInt(_0x23dcf5(0xf6))/0x9+parseInt(_0x23dcf5(0x131))/0xa*(parseInt(_0x23dcf5(0xb3))/0xb);if(_0x145f49===_0x2648ce)break;else _0x20bbec['push'](_0x20bbec['shift']());}catch(_0x5d95b7){_0x20bbec['push'](_0x20bbec['shift']());}}}(_0xfca2,0x6ebbe));var Qe=Object[_0x3ef231(0xc8)],et=(_0x8ae89d,_0x34b85e,_0x225646)=>_0x34b85e in _0x8ae89d?Qe(_0x8ae89d,_0x34b85e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x225646}):_0x8ae89d[_0x34b85e]=_0x225646,se=(_0x488d77,_0xb81766,_0x5595e3)=>et(_0x488d77,typeof _0xb81766!=_0x3ef231(0x12f)?_0xb81766+'':_0xb81766,_0x5595e3);import{UniverLicensePlugin as _0x43b521}from'@univerjs-pro/license';import{ObjectMatrix as _0x5a61fa,Inject as _0xb26d9c,IUniverInstanceService as _0x3dfacf,Disposable as _0xffa94b,isValidRange as _0x517946,CellValueType as _0x22352a,ColorKit as _0x42c7eb,CommandType as _0x1a5168,Range as _0x54550e,IUndoRedoService as _0x428786,generateRandomId as _0x4efc44,ICommandService as _0x5b60fe,Tools as _0x28ecba,sequenceExecute as _0x5049b8,Rectangle as _0x324b2d,cellToRange as _0x547d42,DisposableCollection as _0x2b100e,RANGE_TYPE as _0x401d67,UniverInstanceType as _0x40279d,IResourceManagerService as _0x334d71,DependentOn as _0x1884e7,Injector as _0x403276,Plugin as _0x2b59a7,touchDependencies as _0x5c1daf}from'@univerjs/core';import{getSheetCommandTarget as _0xa39883,SheetsSelectionsService as _0x5114b4,SheetInterceptorService as _0x394979,ClearSelectionAllCommand as _0x10e20e,CopySheetCommand as _0x593e4e,IExclusiveRangeService as _0x1ff52c,SetRangeValuesMutation as _0x22f901,ReorderRangeMutation as _0x2be9fa,SetRowHiddenMutation as _0xa028f2,SetColHiddenMutation as _0x1e89dc,SetRowVisibleMutation as _0x19694f,SetColVisibleMutation as _0x27cf73,AddWorksheetMergeCommand as _0x4dbfd6,RefRangeService as _0x20e1d9,SetWorksheetActivateCommand as _0x4187f8,RemoveRowCommand as _0x375f56,RemoveColCommand as _0x499904,adjustRangeOnMutation as _0x42d91e,RemoveRowMutation as _0x5ba849,RemoveColMutation as _0x37f67f,InsertColMutation as _0x56bfca,InsertRowMutation as _0x857f8f,MoveColsMutation as _0x26c42d,MoveRowsMutation as _0x4cf73b,MoveRangeMutation as _0x152322}from'@univerjs/sheets';import{Subject as _0x3adc9f}from'rxjs';function Fe(_0x274948,_0x535270){const _0x33acba=_0x3ef231,_0x1dbf02=new _0x5a61fa(),_0x598bc7=[],_0x105830=_0x274948[_0x33acba(0x113)]>0x1;let _0x12b805=0x0,_0x58fec8=0x0;for(const _0x3f4b52 of _0x274948)_0x12b805+=_0x3f4b52[_0x33acba(0x12d)]-_0x3f4b52[_0x33acba(0x136)]+0x1,_0x58fec8+=_0x3f4b52['endColumn']-_0x3f4b52[_0x33acba(0xda)]+0x1;for(const _0x89fd16 of _0x535270)for(let _0x44298e=_0x89fd16[_0x33acba(0x136)];_0x44298e<=_0x89fd16['endRow'];_0x44298e++)for(let _0x4fcc95=_0x89fd16[_0x33acba(0xda)];_0x4fcc95<=_0x89fd16[_0x33acba(0xf0)];_0x4fcc95++)_0x598bc7['push']({'row':_0x44298e,'column':_0x4fcc95});if(_0x598bc7[_0x33acba(0x113)]===_0x12b805)_0x105830?_0x598bc7[_0x33acba(0xa9)]((_0x19310a,_0x5b921e)=>{const _0x36481a=_0x33acba,_0x5d9308=_0x274948[_0x5b921e],_0x338921={'startRow':_0x5d9308[_0x36481a(0x136)],'startColumn':_0x5d9308[_0x36481a(0xda)],'endRow':_0x5d9308[_0x36481a(0x136)],'endColumn':_0x5d9308['endColumn']};_0x1dbf02[_0x36481a(0x11f)](_0x19310a[_0x36481a(0x100)],_0x19310a[_0x36481a(0xed)],_0x338921);}):_0x598bc7[_0x33acba(0xa9)]((_0x244c37,_0x9247eb)=>{const _0x12e8f6=_0x33acba,_0x49ef88=_0x274948[0x0],_0x55d7b2={'startRow':_0x49ef88[_0x12e8f6(0x136)]+_0x9247eb,'startColumn':_0x49ef88[_0x12e8f6(0xda)],'endRow':_0x49ef88[_0x12e8f6(0x136)]+_0x9247eb,'endColumn':_0x49ef88['endColumn']};_0x1dbf02[_0x12e8f6(0x11f)](_0x244c37[_0x12e8f6(0x100)],_0x244c37[_0x12e8f6(0xed)],_0x55d7b2);});else{if(_0x598bc7[_0x33acba(0x113)]===_0x58fec8)_0x105830?_0x598bc7[_0x33acba(0xa9)]((_0x112a24,_0x337abc)=>{const _0x520799=_0x33acba,_0x56a351=_0x274948[_0x337abc],_0x4ccf11={'startRow':_0x56a351['startRow'],'startColumn':_0x56a351['startColumn'],'endRow':_0x56a351['endRow'],'endColumn':_0x56a351['startColumn']};_0x1dbf02[_0x520799(0x11f)](_0x112a24['row'],_0x112a24[_0x520799(0xed)],_0x4ccf11);}):_0x598bc7['forEach']((_0x279ddf,_0x4b08ca)=>{const _0x4d7471=_0x33acba,_0x2f78f8=_0x274948[0x0],_0x31eb04={'startRow':_0x2f78f8[_0x4d7471(0x136)],'startColumn':_0x2f78f8[_0x4d7471(0xda)]+_0x4b08ca,'endRow':_0x2f78f8[_0x4d7471(0x12d)],'endColumn':_0x2f78f8[_0x4d7471(0xda)]+_0x4b08ca};_0x1dbf02[_0x4d7471(0x11f)](_0x279ddf[_0x4d7471(0x100)],_0x279ddf[_0x4d7471(0xed)],_0x31eb04);});else{if(_0x598bc7[_0x33acba(0x113)]===_0x274948[_0x33acba(0x113)])_0x274948['every'](_0x404099=>!(_0x404099[_0x33acba(0x136)]!==_0x404099[_0x33acba(0x12d)]&&_0x404099[_0x33acba(0xda)]!==_0x404099[_0x33acba(0xf0)]))&&_0x598bc7[_0x33acba(0xa9)]((_0x4ccc93,_0x50e7eb)=>{const _0x2c6bf1=_0x33acba,_0x368b89=_0x274948[_0x50e7eb];_0x1dbf02[_0x2c6bf1(0x11f)](_0x4ccc93[_0x2c6bf1(0x100)],_0x4ccc93[_0x2c6bf1(0xed)],_0x368b89);});else throw new Error(_0x33acba(0x92));}}return _0x1dbf02;}const Ke=_0x3ef231(0xa2),Le={'standard':[_0x3ef231(0x124),'rgb(236,100,169)'],'specialty':[_0x3ef231(0x114),'rgb(30,177,189)'],'distinctive':[_0x3ef231(0xc7),_0x3ef231(0xc3)],'soft':['rgb(80,102,248)','rgb(244,104,249)'],'fresh':[_0x3ef231(0xc5),'rgb(248,190,21)']},gn=[_0x3ef231(0x109),'firstPoint',_0x3ef231(0x8b),'lowPoint','negativePoint',_0x3ef231(0x10f)];var Xe=(_0x65c507=>(_0x65c507[_0x3ef231(0x9b)]=_0x3ef231(0x93),_0x65c507['SPECIALTY']=_0x3ef231(0x103),_0x65c507[_0x3ef231(0xca)]=_0x3ef231(0xbd),_0x65c507[_0x3ef231(0x9c)]=_0x3ef231(0x101),_0x65c507['FRESH']=_0x3ef231(0xbc),_0x65c507['CUSTOM']=_0x3ef231(0x9e),_0x65c507))(Xe||{}),Et=(_0x70544d=>(_0x70544d[_0x70544d[_0x3ef231(0x12b)]=0x1]=_0x3ef231(0x12b),_0x70544d[_0x70544d[_0x3ef231(0xbe)]=0x2]='BAR_CHART',_0x70544d[_0x70544d[_0x3ef231(0x89)]=0x3]=_0x3ef231(0x89),_0x70544d[_0x70544d[_0x3ef231(0xd5)]=0x4]='PIE_CHART',_0x70544d))(Et||{}),z=(_0x35f8b6=>(_0x35f8b6[_0x3ef231(0x111)]=_0x3ef231(0xf7),_0x35f8b6[_0x3ef231(0x11d)]=_0x3ef231(0x108),_0x35f8b6[_0x3ef231(0xe6)]=_0x3ef231(0x126),_0x35f8b6))(z||{}),Ee=(_0x4d80aa=>(_0x4d80aa[_0x4d80aa[_0x3ef231(0xe4)]=0x1]=_0x3ef231(0xe4),_0x4d80aa[_0x4d80aa['GROUP_EXTREMUM']=0x2]=_0x3ef231(0xf4),_0x4d80aa[_0x4d80aa[_0x3ef231(0xf2)]=0x3]=_0x3ef231(0xf2),_0x4d80aa))(Ee||{}),Vt=Object[_0x3ef231(0xc8)],Ot=Object[_0x3ef231(0x8a)],Nt=(_0x3c1ba9,_0x65ace,_0x302d36,_0x55e832)=>{const _0x2a82ec=_0x3ef231;for(var _0x1f3b69=_0x55e832>0x1?void 0x0:_0x55e832?Ot(_0x65ace,_0x302d36):_0x65ace,_0x41067f=_0x3c1ba9[_0x2a82ec(0x113)]-0x1,_0x412f94;_0x41067f>=0x0;_0x41067f--)(_0x412f94=_0x3c1ba9[_0x41067f])&&(_0x1f3b69=(_0x55e832?_0x412f94(_0x65ace,_0x302d36,_0x1f3b69):_0x412f94(_0x1f3b69))||_0x1f3b69);return _0x55e832&&_0x1f3b69&&Vt(_0x65ace,_0x302d36,_0x1f3b69),_0x1f3b69;},xt=(_0x4c12f1,_0x41a871)=>(_0x2002cb,_0x208844)=>_0x41a871(_0x2002cb,_0x208844,_0x4c12f1);let y=class extends _0xffa94b{constructor(_0x5b2af5){const _0x429535=_0x3ef231;super(),se(this,_0x429535(0xd3),new Map()),se(this,_0x429535(0xba),new Map()),se(this,_0x429535(0x12a),new _0x3adc9f()),se(this,'updateConfig$',this[_0x429535(0x12a)][_0x429535(0xd9)]()),this[_0x429535(0x10a)]=_0x5b2af5;}['_ensureConfigMap'](_0x54d34c,_0x35641a){const _0x2bb56f=_0x3ef231;let _0x1ad5e0=this[_0x2bb56f(0xd3)][_0x2bb56f(0xdf)](_0x54d34c);_0x1ad5e0||(_0x1ad5e0=new Map(),this[_0x2bb56f(0xd3)][_0x2bb56f(0x94)](_0x54d34c,_0x1ad5e0));let _0x3aa05f=_0x1ad5e0[_0x2bb56f(0xdf)](_0x35641a);return _0x3aa05f||(_0x3aa05f=new Map(),_0x1ad5e0[_0x2bb56f(0x94)](_0x35641a,_0x3aa05f)),_0x3aa05f;}[_0x3ef231(0xe2)](_0x28ecfb,_0x52cb5d){const _0x4631b6=_0x3ef231;let _0x442966=this[_0x4631b6(0xba)][_0x4631b6(0xdf)](_0x28ecfb);_0x442966||(_0x442966=new Map(),this[_0x4631b6(0xba)][_0x4631b6(0x94)](_0x28ecfb,_0x442966));let _0x3792e8=_0x442966[_0x4631b6(0xdf)](_0x52cb5d);return _0x3792e8||(_0x3792e8={'matrix':new _0x5a61fa(),'extra':{}},_0x442966[_0x4631b6(0x94)](_0x52cb5d,_0x3792e8)),_0x3792e8;}[_0x3ef231(0xe5)](_0x231076,_0x4847a9,_0x18e13f,_0x90f3f5=_0x3ef231(0x94)){const _0x5196ba=_0x3ef231;var _0xd355d7,_0x4d0706,_0x4f490f,_0x103eb4,_0x4d3611,_0x48ff88,_0x295417,_0x3f8a57,_0x44b1f8,_0xba9de6,_0x4a9908,_0x38bc80,_0x7bc228;const _0x397a55=(_0x4d0706=(_0xd355d7=this[_0x5196ba(0xd3)][_0x5196ba(0xdf)](_0x231076))==null?void 0x0:_0xd355d7[_0x5196ba(0xdf)](_0x4847a9))==null?void 0x0:_0x4d0706['get'](_0x18e13f);if(!_0x397a55)return;const _0x1398de=_0xa39883(this['_univerInstanceService'],{'unitId':_0x231076,'subUnitId':_0x4847a9});if(!_0x1398de)throw new Error(_0x5196ba(0xc9));const _0x3cc9f5=this[_0x5196ba(0xe2)](_0x231076,_0x4847a9),{extra:_0x55a9a4,matrix:_0x5e8212}=_0x3cc9f5,{worksheet:_0x295f1a}=_0x1398de;let _0xac8d4d=Number[_0x5196ba(0x10e)],_0x4224d5=Number[_0x5196ba(0x139)];const _0x387f7a=(_0x4f490f=_0x397a55[_0x5196ba(0x13b)][_0x5196ba(0xe8)])!=null?_0x4f490f:!0x1;_0x397a55[_0x5196ba(0xbf)]['forValue']((_0x19b881,_0x1cd9f2,_0x2ac210)=>{const _0x5d84ee=_0x5196ba;var _0x459d23,_0x31fa5f,_0x5519e1;const _0x468991=_0x2ac210;let _0xf643e1=Number[_0x5d84ee(0x10e)],_0x5ab10f=Number[_0x5d84ee(0x139)],_0x137d2d=0x0,_0x432a5c=0x0;const _0x3d6ce2=[];if(!_0x517946(_0x468991))_0x5e8212['setValue'](_0x19b881,_0x1cd9f2,{'groupId':_0x18e13f,'data':[],'max':_0xf643e1,'min':_0x5ab10f,'highIndex':_0x137d2d,'lowIndex':_0x432a5c,'negativeIndexes':_0x3d6ce2});else{const _0xbeb233=[];for(let _0x4b6533=_0x468991[_0x5d84ee(0x136)];_0x4b6533<=_0x468991[_0x5d84ee(0x12d)];_0x4b6533++){for(let _0x1ad22=_0x468991['startColumn'];_0x1ad22<=_0x468991['endColumn'];_0x1ad22++){const _0x59c92f=_0x295f1a[_0x5d84ee(0x13a)](_0x4b6533),_0x28b28c=_0x295f1a[_0x5d84ee(0x130)](_0x1ad22);if(!_0x387f7a&&(!_0x59c92f||!_0x28b28c))continue;let _0x4344a0=0x0;const _0x1f28f0=((_0x459d23=_0x295f1a[_0x5d84ee(0x107)](_0x4b6533,_0x1ad22))==null?void 0x0:_0x459d23['v'])!==void 0x0?_0x295f1a[_0x5d84ee(0x107)](_0x4b6533,_0x1ad22):_0x295f1a['getCell'](_0x4b6533,_0x1ad22);if(!_0x1f28f0||_0x1f28f0['v']===void 0x0||_0x1f28f0['v']===null){const _0x2f5c55=(_0x31fa5f=_0x397a55[_0x5d84ee(0x13b)]['emptyShowAs'])!=null?_0x31fa5f:z['SPACING'];_0x2f5c55===z[_0x5d84ee(0x11d)]?_0x4344a0=0x0:_0x2f5c55===z['SPACING']?_0x4344a0='u-spacing':_0x2f5c55===z[_0x5d84ee(0xe6)]&&(_0x4344a0='u-connect');}else{if(_0x1f28f0['t']===_0x22352a[_0x5d84ee(0xd1)]||_0x1f28f0['t']===_0x22352a[_0x5d84ee(0xb2)]){const _0x5e5705=(_0x5519e1=_0x397a55[_0x5d84ee(0x13b)][_0x5d84ee(0xae)])!=null?_0x5519e1:z[_0x5d84ee(0x111)];_0x5e5705===z[_0x5d84ee(0x11d)]?_0x4344a0=0x0:_0x5e5705===z['SPACING']?_0x4344a0=_0x5d84ee(0xcb):_0x5e5705===z['CONNECT_WITH_LINE']&&(_0x4344a0=_0x5d84ee(0xff));}else _0x1f28f0['t']===_0x22352a[_0x5d84ee(0xc1)]?_0x4344a0=_0x1f28f0['v']?0x1:0x0:_0x4344a0=_0x1f28f0['v'];}if(_0xbeb233[_0x5d84ee(0x117)](_0x4344a0),typeof _0x4344a0=='number'){_0xf643e1=Math[_0x5d84ee(0xfd)](_0xf643e1,_0x4344a0),_0xac8d4d=Math['max'](_0xac8d4d,_0x4344a0),_0x4224d5=Math['min'](_0x4224d5,_0x4344a0),_0x5ab10f=Math[_0x5d84ee(0x106)](_0x5ab10f,_0x4344a0);const _0x33bf85=typeof _0xbeb233[_0x137d2d]==_0x5d84ee(0x10c)?Number(_0xbeb233[_0x137d2d]):Number[_0x5d84ee(0x10e)];_0x4344a0>_0x33bf85&&(_0x137d2d=_0xbeb233[_0x5d84ee(0x113)]-0x1);const _0x55ef4d=typeof _0xbeb233[_0x432a5c]==_0x5d84ee(0x10c)?Number(_0xbeb233[_0x432a5c]):Number[_0x5d84ee(0x139)];_0x4344a0<_0x55ef4d&&(_0x432a5c=_0xbeb233[_0x5d84ee(0x113)]-0x1),_0x4344a0<0x0&&_0x3d6ce2['push'](_0xbeb233[_0x5d84ee(0x113)]-0x1);}}_0x5e8212[_0x5d84ee(0x11f)](_0x19b881,_0x1cd9f2,{'groupId':_0x18e13f,'data':_0xbeb233,'max':_0xf643e1,'min':_0x5ab10f,'highIndex':_0x137d2d,'lowIndex':_0x432a5c,'negativeIndexes':_0x3d6ce2});}}});let _0x17ffd4=_0xac8d4d;((_0x103eb4=_0x397a55[_0x5196ba(0x13b)][_0x5196ba(0x137)])==null?void 0x0:_0x103eb4['type'])===Ee['CUSTOM_EXTREMUM']&&(_0x17ffd4=(_0x48ff88=(_0x4d3611=_0x397a55[_0x5196ba(0x13b)][_0x5196ba(0x137)])==null?void 0x0:_0x4d3611[_0x5196ba(0xd8)])!=null?_0x48ff88:_0xac8d4d);let _0x129e73=_0x4224d5;((_0x295417=_0x397a55[_0x5196ba(0x13b)][_0x5196ba(0xfc)])==null?void 0x0:_0x295417[_0x5196ba(0x105)])===Ee['CUSTOM_EXTREMUM']&&(_0x129e73=(_0x44b1f8=(_0x3f8a57=_0x397a55[_0x5196ba(0x13b)][_0x5196ba(0xfc)])==null?void 0x0:_0x3f8a57[_0x5196ba(0xd8)])!=null?_0x44b1f8:_0x4224d5);const _0x22dcb1=(_0xba9de6=_0x397a55[_0x5196ba(0x13b)][_0x5196ba(0xe7)])!=null?_0xba9de6:Xe[_0x5196ba(0x9b)],_0x1aee10=(_0x7bc228=(_0x38bc80=_0x397a55[_0x5196ba(0x13b)][_0x5196ba(0xb6)])!=null?_0x38bc80:(_0x4a9908=Le[_0x22dcb1])==null?void 0x0:_0x4a9908[0x0])!=null?_0x7bc228:Le['standard'][0x0],_0x57cbb4=new _0x42c7eb(_0x1aee10),_0x586b17=_0x57cbb4['setAlpha'](0.2)[_0x5196ba(0xf9)](),_0x1a01b5=_0x57cbb4[_0x5196ba(0x11e)](0.05)[_0x5196ba(0xf9)]();_0x55a9a4[_0x18e13f]={'groupMax':_0xac8d4d,'groupMin':_0x4224d5,'showMax':_0x17ffd4,'showMin':_0x129e73,'startGradient':_0x586b17,'endGradient':_0x1a01b5},this[_0x5196ba(0x12a)][_0x5196ba(0xe1)]({'unitId':_0x231076,'subUnitId':_0x4847a9,'groupId':_0x18e13f,'config':_0x397a55,'type':_0x90f3f5});}[_0x3ef231(0x8d)](_0x3d63be,_0x2c7026,_0x16a489,_0x3a5560){const _0x5a547a=_0x3ef231;this[_0x5a547a(0x11c)](_0x3d63be,_0x2c7026)['set'](_0x16a489,_0x3a5560),this[_0x5a547a(0xe5)](_0x3d63be,_0x2c7026,_0x16a489,'add');}['setSparkline'](_0x36e67d,_0xb30fb,_0x3d2edf,_0x56b404){const _0x2067f4=_0x3ef231;var _0x51dfc9;const _0x2b7391=(_0x51dfc9=this[_0x2067f4(0xd3)][_0x2067f4(0xdf)](_0x36e67d))==null?void 0x0:_0x51dfc9[_0x2067f4(0xdf)](_0xb30fb);_0x3d2edf[_0x2067f4(0xa9)](_0x4286c8=>{const _0x577597=_0x2067f4;_0x2b7391!=null&&_0x2b7391[_0x577597(0x121)](_0x4286c8)&&(_0x2b7391[_0x577597(0x94)](_0x4286c8,_0x56b404),this[_0x577597(0xe5)](_0x36e67d,_0xb30fb,_0x4286c8));});}[_0x3ef231(0x10d)](_0x324c67,_0x3522a3,_0x2d432c){const _0xcd2cd5=_0x3ef231;var _0x2e6319,_0x2a9bec;const _0x50b20b=this[_0xcd2cd5(0xd3)][_0xcd2cd5(0xdf)](_0x324c67);if(_0x50b20b){const _0x69ad17=_0x50b20b['get'](_0x3522a3);if(_0x69ad17){_0x69ad17['delete'](_0x2d432c);const _0x3f1bd8=(_0x2e6319=this[_0xcd2cd5(0xba)][_0xcd2cd5(0xdf)](_0x324c67))==null?void 0x0:_0x2e6319[_0xcd2cd5(0xdf)](_0x3522a3);(_0x2a9bec=_0x3f1bd8==null?void 0x0:_0x3f1bd8[_0xcd2cd5(0xe9)])==null||_0x2a9bec['forValue']((_0xb74ac,_0x2505d1,_0x557132)=>{const _0x1eba9f=_0xcd2cd5;(_0x557132==null?void 0x0:_0x557132[_0x1eba9f(0xcc)])===_0x2d432c&&(_0x3f1bd8==null||_0x3f1bd8[_0x1eba9f(0xe9)][_0x1eba9f(0xa7)](_0xb74ac,_0x2505d1));}),this[_0xcd2cd5(0x12a)][_0xcd2cd5(0xe1)]({'unitId':_0x324c67,'subUnitId':_0x3522a3,'groupId':_0x2d432c,'type':_0xcd2cd5(0x11b)});}}}[_0x3ef231(0xb5)](_0x3a1b89,_0x556d83,_0x23749f,_0x4d736c){const _0x2183e2=_0x3ef231;var _0x9566cc,_0xb9af24,_0x33a0e2,_0x3e78d1;const _0x24e722=(_0x9566cc=this[_0x2183e2(0xba)][_0x2183e2(0xdf)](_0x3a1b89))==null?void 0x0:_0x9566cc[_0x2183e2(0xdf)](_0x556d83),_0x5c3d1c=_0x24e722==null?void 0x0:_0x24e722['matrix']['getValue'](_0x23749f,_0x4d736c);if(_0x5c3d1c){const {groupId:_0x3c0899}=_0x5c3d1c,_0x7dcfeb=(_0xb9af24=this[_0x2183e2(0xd3)]['get'](_0x3a1b89))==null?void 0x0:_0xb9af24['get'](_0x556d83);(_0x33a0e2=_0x7dcfeb==null?void 0x0:_0x7dcfeb[_0x2183e2(0xdf)](_0x3c0899))==null||_0x33a0e2[_0x2183e2(0xbf)][_0x2183e2(0xa7)](_0x23749f,_0x4d736c),(_0x3e78d1=_0x7dcfeb==null?void 0x0:_0x7dcfeb[_0x2183e2(0xdf)](_0x3c0899))!=null&&_0x3e78d1['sparklines']['hasValue']()||_0x7dcfeb==null||_0x7dcfeb[_0x2183e2(0x125)](_0x3c0899),_0x24e722==null||_0x24e722[_0x2183e2(0xe9)]['realDeleteValue'](_0x23749f,_0x4d736c),this[_0x2183e2(0x12a)][_0x2183e2(0xe1)]({'unitId':_0x3a1b89,'subUnitId':_0x556d83,'groupId':_0x3c0899,'type':'remove'});}}['clearSparklineCache'](_0x3a20d3,_0xdab6e1,_0x1b10f3){const _0x38db2b=_0x3ef231;var _0x5d32ee,_0x352a4a,_0x94660e,_0x30b7c4;const _0x42d24a=(_0x94660e=(_0x352a4a=(_0x5d32ee=this[_0x38db2b(0xd3)][_0x38db2b(0xdf)](_0x3a20d3))==null?void 0x0:_0x5d32ee[_0x38db2b(0xdf)](_0xdab6e1))==null?void 0x0:_0x352a4a[_0x38db2b(0xdf)](_0x1b10f3))==null?void 0x0:_0x94660e[_0x38db2b(0xbf)],_0xf4cd78=(_0x30b7c4=this[_0x38db2b(0xba)][_0x38db2b(0xdf)](_0x3a20d3))==null?void 0x0:_0x30b7c4[_0x38db2b(0xdf)](_0xdab6e1);if(_0x42d24a&&_0xf4cd78){const {matrix:_0x22570c,extra:_0x53f64c}=_0xf4cd78;_0x42d24a[_0x38db2b(0x8f)]((_0x13eb38,_0x486b7f,_0xe4e064)=>{const _0x47d9c9=_0x38db2b;_0x22570c[_0x47d9c9(0xa7)](_0x13eb38,_0x486b7f);}),delete _0x53f64c[_0x1b10f3];}}[_0x3ef231(0xaa)](_0x479170,_0x3079f5){const _0x1d2ebc=_0x3ef231;var _0x44f513;return(_0x44f513=this[_0x1d2ebc(0xd3)][_0x1d2ebc(0xdf)](_0x479170))==null?void 0x0:_0x44f513[_0x1d2ebc(0xdf)](_0x3079f5);}['getSparklineById'](_0x26ba45,_0x3d211d,_0x392d5b){const _0x2884ec=_0x3ef231;var _0x5a0d8d,_0x27866e;return(_0x27866e=(_0x5a0d8d=this[_0x2884ec(0xd3)][_0x2884ec(0xdf)](_0x26ba45))==null?void 0x0:_0x5a0d8d[_0x2884ec(0xdf)](_0x3d211d))==null?void 0x0:_0x27866e[_0x2884ec(0xdf)](_0x392d5b);}[_0x3ef231(0xec)](_0x2105f4,_0x3bae5b,_0x5e3125,_0x548ea2){const _0x3e2b51=_0x3ef231;var _0xe79c2e,_0x59d380,_0x4c4182;return(_0x4c4182=(_0x59d380=(_0xe79c2e=this['_sparklineAnchorMap'][_0x3e2b51(0xdf)](_0x2105f4))==null?void 0x0:_0xe79c2e[_0x3e2b51(0xdf)](_0x3bae5b))==null?void 0x0:_0x59d380[_0x3e2b51(0xe9)][_0x3e2b51(0xa8)](_0x5e3125,_0x548ea2))==null?void 0x0:_0x4c4182['groupId'];}['reBuildAnchorCache'](_0x3c1130,_0x33ce30){const _0x4be9de=_0x3ef231;var _0x23092d;const _0x126315=this[_0x4be9de(0xe2)](_0x3c1130,_0x33ce30);_0x126315['matrix'][_0x4be9de(0x8f)]((_0x448098,_0x180cb4,_0x54eeeb)=>{const _0x4da211=_0x4be9de;_0x126315[_0x4da211(0xe9)][_0x4da211(0xa7)](_0x448098,_0x180cb4);});const _0x546e36=(_0x23092d=this[_0x4be9de(0xd3)][_0x4be9de(0xdf)](_0x3c1130))==null?void 0x0:_0x23092d['get'](_0x33ce30);if(_0x546e36){for(const [_0x2cc64b,_0x13e0da]of _0x546e36)this['updateSparklineExtraNum'](_0x3c1130,_0x33ce30,_0x2cc64b);}}[_0x3ef231(0x87)](){const _0x3b8b07=_0x3ef231;return{'sparklineModel':this[_0x3b8b07(0xd3)],'sparklineAnchorMap':this[_0x3b8b07(0xba)]};}['toJSON'](_0x21c459){const _0x3b7ed9=_0x3ef231,_0x309d55={};if(this['_sparklineModel'][_0x3b7ed9(0x121)](_0x21c459)){_0x309d55[_0x21c459]={};const _0x466073=this['_sparklineModel'][_0x3b7ed9(0xdf)](_0x21c459);_0x466073!=null&&_0x466073[_0x3b7ed9(0xf3)]&&Array[_0x3b7ed9(0xa0)](_0x466073[_0x3b7ed9(0x142)]())[_0x3b7ed9(0xa9)](_0x37c775=>{const _0x1a173a=_0x3b7ed9;_0x309d55[_0x21c459][_0x37c775]={};const _0x366715=_0x466073[_0x1a173a(0xdf)](_0x37c775);_0x366715!=null&&_0x366715['size']&&Array[_0x1a173a(0xa0)](_0x366715[_0x1a173a(0x142)]())[_0x1a173a(0xa9)](_0x49b48e=>{const _0x23e98a=_0x1a173a,_0x29b4a1=_0x366715['get'](_0x49b48e);_0x29b4a1&&(_0x309d55[_0x21c459][_0x37c775][_0x49b48e]={'config':_0x29b4a1[_0x23e98a(0x13b)],'sparklines':_0x29b4a1[_0x23e98a(0xbf)][_0x23e98a(0xce)]()});});});}return _0x309d55;}[_0x3ef231(0x118)](_0x380d0b){const _0x309849=_0x3ef231;if(!_0x380d0b)return;Object[_0x309849(0x142)](_0x380d0b)[_0x309849(0xa9)](_0x40d21c=>{const _0x47470a=_0x309849,_0x4b5671=_0x380d0b[_0x40d21c];_0x4b5671&&Object[_0x47470a(0x142)](_0x4b5671)[_0x47470a(0xa9)](_0x3fc9b1=>{const _0x249310=_0x47470a,_0x43288c=_0x4b5671[_0x3fc9b1];_0x43288c&&Object[_0x249310(0x142)](_0x43288c)[_0x249310(0xa9)](_0x90e0d7=>{const _0x4075d0=_0x249310,_0x5081a3=_0x43288c[_0x90e0d7];if(_0x5081a3){const _0x11a5b4={'config':_0x5081a3[_0x4075d0(0x13b)],'sparklines':new _0x5a61fa(_0x5081a3[_0x4075d0(0xbf)])};this[_0x4075d0(0x8d)](_0x40d21c,_0x3fc9b1,_0x90e0d7,_0x11a5b4);}});});});}['deleteUnit'](_0x1ed792){const _0x4ca845=_0x3ef231,_0x392ed3=this[_0x4ca845(0xd3)][_0x4ca845(0xdf)](_0x1ed792);if(_0x392ed3){for(const [_0x264185]of _0x392ed3){const _0x1bda71=_0x392ed3[_0x4ca845(0xdf)](_0x264185);if(_0x1bda71){for(const [_0x5212ab]of _0x1bda71)this['clearSparklineCache'](_0x1ed792,_0x264185,_0x5212ab);}}this[_0x4ca845(0xd3)]['delete'](_0x1ed792);}}};y=Nt([xt(0x0,_0xb26d9c(_0x3dfacf))],y);const V={'id':_0x3ef231(0x12c),'type':_0x1a5168[_0x3ef231(0xc2)],'handler':(_0x479fb2,_0x200eeb)=>{const _0x1a38ce=_0x3ef231;if(!_0x200eeb)return!0x1;const {sparklineConfigMap:_0x449202,unitId:_0x2ab1d8,subUnitId:_0x13d6a3}=_0x200eeb,_0x17aedf=_0x479fb2[_0x1a38ce(0xdf)](y);return Object[_0x1a38ce(0x127)](_0x449202)[_0x1a38ce(0xa9)](([_0x4e4649,_0x461af7])=>{const _0x4608d3=_0x1a38ce,_0x15488c={'config':_0x461af7[_0x4608d3(0x13b)],'sparklines':new _0x5a61fa(_0x461af7[_0x4608d3(0xbf)])};_0x17aedf[_0x4608d3(0x8d)](_0x2ab1d8,_0x13d6a3,_0x4e4649,_0x15488c);}),!0x0;}},O={'id':_0x3ef231(0x129),'type':_0x1a5168[_0x3ef231(0xc2)],'handler':(_0x17eecf,_0x12a3c8)=>{const _0x51f5d0=_0x3ef231;if(!_0x12a3c8)return!0x1;const {unitId:_0x5d831c,subUnitId:_0x3109fa,ranges:_0x453d15,isSingle:_0x314c7b,groupIds:_0x2c15fb}=_0x12a3c8,_0x46dc8f=_0x17eecf[_0x51f5d0(0xdf)](y);return _0x2c15fb?(_0x2c15fb[_0x51f5d0(0xa9)](_0x1b75b2=>{const _0x10d278=_0x51f5d0;_0x46dc8f[_0x10d278(0x10d)](_0x5d831c,_0x3109fa,_0x1b75b2);}),!0x0):_0x453d15?(_0x453d15['forEach'](_0xddc0a=>{const _0x54ca0c=_0x51f5d0;_0x54550e[_0x54ca0c(0x9d)](_0xddc0a,(_0x4ebe2c,_0x5ee06b)=>{const _0x502d73=_0x54ca0c,_0x3421b1=_0x46dc8f[_0x502d73(0xec)](_0x5d831c,_0x3109fa,_0x4ebe2c,_0x5ee06b);_0x3421b1&&(_0x314c7b?_0x46dc8f['removePartSparkline'](_0x5d831c,_0x3109fa,_0x4ebe2c,_0x5ee06b):_0x46dc8f['removeSparkline'](_0x5d831c,_0x3109fa,_0x3421b1));});}),!0x0):!0x1;}},yt={'id':_0x3ef231(0x102),'type':_0x1a5168[_0x3ef231(0x11a)],'handler':(_0x15c3d9,_0x3a4515)=>{const _0x2e45ae=_0x3ef231;if(!_0x3a4515)return!0x1;const {sourceRanges:_0x112d6b,targetRanges:_0x2e6c1e,config:_0x361bc4}=_0x3a4515,_0x2ceb46=_0x15c3d9[_0x2e45ae(0xdf)](_0x428786),_0x20d08e='g_'+_0x4efc44(0x6),_0x2a7011=Fe(_0x112d6b,_0x2e6c1e),_0x3f3f81={'config':_0x361bc4!=null?_0x361bc4:{},'sparklines':_0x2a7011[_0x2e45ae(0xce)]()},_0x2f466c=_0x15c3d9[_0x2e45ae(0xdf)](_0x3dfacf),_0xdbfe71=_0x15c3d9[_0x2e45ae(0xdf)](y),_0xa4de06=_0xa39883(_0x2f466c);if(!_0xa4de06)return!0x1;const {unitId:_0x3fad82,subUnitId:_0x281984}=_0xa4de06,_0x2abe20=_0x15c3d9[_0x2e45ae(0xdf)](_0x5b60fe),_0x5ec487=[],_0x11afb7=[],_0x2c8241={},_0xa805d3={},_0x478584=new Set([_0x20d08e]);_0x2a7011[_0x2e45ae(0x8f)]((_0x386296,_0x4e6be6,_0x24e92b)=>{const _0x509770=_0x2e45ae,_0x63a735=_0xdbfe71[_0x509770(0xec)](_0x3fad82,_0x281984,_0x386296,_0x4e6be6);if(_0x63a735){const _0x356e8d=_0xdbfe71[_0x509770(0xf8)](_0x3fad82,_0x281984,_0x63a735);if(_0x356e8d){_0x478584[_0x509770(0xc6)](_0x63a735);let _0x136ff3=_0x2c8241[_0x63a735],_0x53584c=_0xa805d3[_0x63a735];_0x53584c||(_0x53584c={'config':_0x28ecba['deepClone'](_0x356e8d[_0x509770(0x13b)]),'sparklines':new _0x5a61fa(_0x356e8d[_0x509770(0xbf)]['clone']())},_0xa805d3[_0x63a735]=_0x53584c),_0x136ff3||(_0x136ff3={'config':_0x28ecba[_0x509770(0x141)](_0x356e8d[_0x509770(0x13b)]),'sparklines':_0x356e8d[_0x509770(0xbf)][_0x509770(0xb9)]()},_0x2c8241[_0x63a735]=_0x136ff3),_0x53584c['sparklines'][_0x509770(0xa7)](_0x386296,_0x4e6be6);}}});const _0x3b2017={};return Object[_0x2e45ae(0x127)](_0xa805d3)[_0x2e45ae(0xa9)](([_0x3c50da,_0x17149f])=>{const _0x459227=_0x2e45ae;_0x17149f['sparklines'][_0x459227(0xd0)]()&&(_0x3b2017[_0x3c50da]={'config':_0x17149f[_0x459227(0x13b)],'sparklines':_0x17149f['sparklines']['clone']()});}),_0x3b2017[_0x20d08e]=_0x3f3f81,_0x5ec487['push']({'id':O['id'],'params':{'unitId':_0x3fad82,'subUnitId':_0x281984,'groupIds':Array[_0x2e45ae(0xa0)](_0x478584),'isSingle':!0x1}}),_0x478584[_0x2e45ae(0xf3)]>0x1&&(_0x11afb7['push']({'id':O['id'],'params':{'unitId':_0x3fad82,'subUnitId':_0x281984,'groupIds':Array['from'](_0x478584),'isSingle':!0x1}}),_0x5ec487['push']({'id':V['id'],'params':{'unitId':_0x3fad82,'subUnitId':_0x281984,'sparklineConfigMap':_0x2c8241}})),_0x11afb7[_0x2e45ae(0x117)]({'id':V['id'],'params':{'unitId':_0x3fad82,'subUnitId':_0x281984,'sparklineConfigMap':_0x3b2017}}),_0x5049b8(_0x11afb7,_0x2abe20),_0x2ceb46[_0x2e45ae(0xd6)]({'unitID':_0x3fad82,'undoMutations':_0x5ec487,'redoMutations':_0x11afb7}),!0x0;}},Pt={'id':_0x3ef231(0xb8),'type':_0x1a5168['COMMAND'],'handler':(_0xea3cf0,_0x531801)=>{const _0x2ea4b9=_0x3ef231;var _0x2e40b0;const {isSingle:_0x947e12=!0x0}=_0x531801||{},_0x3bb362=_0xea3cf0[_0x2ea4b9(0xdf)](_0x5b60fe),_0x8b2b56=_0xea3cf0[_0x2ea4b9(0xdf)](_0x3dfacf),_0x393a1b=_0xea3cf0[_0x2ea4b9(0xdf)](y),_0x114f0f=_0xea3cf0[_0x2ea4b9(0xdf)](_0x428786),_0x2470bc=_0xa39883(_0x8b2b56);if(!_0x2470bc)return!0x1;const _0x5a162f=_0xea3cf0[_0x2ea4b9(0xdf)](_0x5114b4),_0x22cb71=(_0x2e40b0=_0x531801==null?void 0x0:_0x531801[_0x2ea4b9(0x135)])!=null?_0x2e40b0:_0x5a162f[_0x2ea4b9(0x99)]()[_0x2ea4b9(0x13e)](_0x2bd9a4=>_0x2bd9a4['range']),{unitId:_0x4ff9a5,subUnitId:_0x8d0eb0}=_0x2470bc,_0x34fbfc=[],_0x2e10c0=[];_0x34fbfc[_0x2ea4b9(0x117)]({'id':O['id'],'params':{'unitId':_0x4ff9a5,'subUnitId':_0x8d0eb0,'ranges':_0x22cb71,'isSingle':_0x947e12}});const _0x58ff72=[],_0x1ae216={};return _0x22cb71[_0x2ea4b9(0xa9)](_0x40fc8b=>{const _0x598286=_0x2ea4b9;_0x54550e[_0x598286(0x9d)](_0x40fc8b,(_0x18936e,_0x3b0fdd)=>{const _0x504ddb=_0x598286,_0x480b9a=_0x393a1b[_0x504ddb(0xec)](_0x4ff9a5,_0x8d0eb0,_0x18936e,_0x3b0fdd);if(_0x480b9a){const _0x14aafb=_0x393a1b[_0x504ddb(0xf8)](_0x4ff9a5,_0x8d0eb0,_0x480b9a);_0x14aafb&&(_0x58ff72[_0x504ddb(0x117)](_0x480b9a),_0x1ae216[_0x480b9a]={'config':_0x28ecba[_0x504ddb(0x141)](_0x14aafb[_0x504ddb(0x13b)]),'sparklines':_0x28ecba[_0x504ddb(0x141)](_0x14aafb['sparklines'][_0x504ddb(0xb9)]())});}});}),_0x2e10c0[_0x2ea4b9(0x117)]({'id':O['id'],'params':{'unitId':_0x4ff9a5,'subUnitId':_0x8d0eb0,'groupIds':_0x58ff72,'isSingle':!0x1}}),_0x2e10c0[_0x2ea4b9(0x117)]({'id':V['id'],'params':{'unitId':_0x4ff9a5,'subUnitId':_0x8d0eb0,'sparklineConfigMap':_0x1ae216}}),_0x5049b8(_0x34fbfc,_0x3bb362),_0x114f0f[_0x2ea4b9(0xd6)]({'unitID':_0x4ff9a5,'undoMutations':_0x2e10c0,'redoMutations':_0x34fbfc}),!0x0;}},xe={'id':'sheet.mutation.set-sparkline','type':_0x1a5168[_0x3ef231(0xc2)],'handler':(_0x305005,_0x55b3bb)=>{const _0x1da276=_0x3ef231;if(!_0x55b3bb)return!0x1;const {unitId:_0x28ac6a,subUnitId:_0x50812c,groupIds:_0x54b01e,config:_0x16d4d7}=_0x55b3bb,_0x55ef72=_0x305005[_0x1da276(0xdf)](y);return _0x54b01e[_0x1da276(0xa9)](_0x39e0d2=>{const _0xfb5d9=_0x1da276,_0x2cd977=_0x55ef72[_0xfb5d9(0xf8)](_0x28ac6a,_0x50812c,_0x39e0d2);if(_0x2cd977){const _0x413d9d={'config':Object[_0xfb5d9(0x133)]({},_0x2cd977['config'],_0x16d4d7[_0xfb5d9(0x13b)]),'sparklines':new _0x5a61fa(_0x2cd977['sparklines']['clone']())};_0x55ef72[_0xfb5d9(0x90)](_0x28ac6a,_0x50812c,[_0x39e0d2],_0x413d9d);}}),!0x0;}},Ut={'id':_0x3ef231(0x9a),'type':_0x1a5168['COMMAND'],'handler':(_0x45b7d5,_0x4eabcb)=>{const _0x29a273=_0x3ef231;var _0x436f0d,_0x277dd3,_0x5069ff,_0x23e871;if(!_0x4eabcb)return!0x1;const _0x5cb2ad=_0x45b7d5[_0x29a273(0xdf)](_0x5b60fe),_0x2cf29b=_0x45b7d5[_0x29a273(0xdf)](_0x5114b4),_0x39b7a6=_0x45b7d5[_0x29a273(0xdf)](y),_0x2af770=_0x45b7d5[_0x29a273(0xdf)](_0x3dfacf),_0x4c72f8=_0x45b7d5['get'](_0x428786),_0x4e5cf0=_0xa39883(_0x2af770);if(!_0x4e5cf0)return!0x1;const {unitId:_0x400abb,subUnitId:_0x3553b4}=_0x4e5cf0,_0x301c06=(_0x436f0d=_0x4eabcb==null?void 0x0:_0x4eabcb[_0x29a273(0x135)])!=null?_0x436f0d:_0x2cf29b[_0x29a273(0x99)]()['map'](_0x11813d=>_0x11813d[_0x29a273(0xad)]),_0x141914=(_0x277dd3=_0x39b7a6['getSparklineCache']()['sparklineAnchorMap'][_0x29a273(0xdf)](_0x400abb))==null?void 0x0:_0x277dd3['get'](_0x3553b4),{isChangeDataSource:_0xf7093a,config:_0x98434b,combine:_0x3fa827,unCombine:_0x536da4}=_0x4eabcb;if(_0x3fa827){const _0x296a0d=[],_0x3846ea=[];_0x296a0d[_0x29a273(0x117)]({'id':O['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'ranges':_0x301c06,'isSingle':!0x0}});const _0x10bace='g_'+_0x4efc44(0x6),_0x2446a3=new _0x5a61fa(),_0x5b9b33=(_0x5069ff=_0x39b7a6[_0x29a273(0x87)]()['sparklineModel']['get'](_0x400abb))==null?void 0x0:_0x5069ff['get'](_0x3553b4),_0x1d8a87=new Set([_0x10bace]),_0x2fcab1={};return _0x301c06[_0x29a273(0xa9)](_0x279556=>{const _0x30359c=_0x29a273;var _0x16f638,_0x43715;const {startRow:_0x567428,endRow:_0x3904df,startColumn:_0x5ce0a3,endColumn:_0x7a4f0b}=_0x279556;for(let _0x2fa196=_0x567428;_0x2fa196<=_0x3904df;_0x2fa196++)for(let _0x4d9362=_0x5ce0a3;_0x4d9362<=_0x7a4f0b;_0x4d9362++){const _0x3fe5cc=(_0x16f638=_0x141914==null?void 0x0:_0x141914[_0x30359c(0xe9)][_0x30359c(0xa8)](_0x2fa196,_0x4d9362))==null?void 0x0:_0x16f638[_0x30359c(0xcc)];if(_0x3fe5cc){_0x1d8a87[_0x30359c(0xc6)](_0x3fe5cc);const _0x516bff=_0x39b7a6['getSparklineById'](_0x400abb,_0x3553b4,_0x3fe5cc);_0x516bff&&(_0x2fcab1[_0x3fe5cc]={'config':_0x28ecba[_0x30359c(0x141)](_0x516bff[_0x30359c(0x13b)]),'sparklines':_0x28ecba['deepClone'](_0x516bff[_0x30359c(0xbf)][_0x30359c(0xb9)]())});const _0x195636=(_0x43715=_0x5b9b33==null?void 0x0:_0x5b9b33[_0x30359c(0xdf)](_0x3fe5cc))==null?void 0x0:_0x43715[_0x30359c(0xbf)][_0x30359c(0xa8)](_0x2fa196,_0x4d9362);_0x195636&&_0x2446a3[_0x30359c(0x11f)](_0x2fa196,_0x4d9362,_0x195636);}}}),_0x296a0d[_0x29a273(0x117)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x10bace]:{'config':_0x28ecba[_0x29a273(0x141)](_0x98434b['config']),'sparklines':_0x2446a3[_0x29a273(0xce)]()}},'unitId':_0x400abb,'subUnitId':_0x3553b4}}),_0x3846ea[_0x29a273(0x117)]({'id':O['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'isSingle':!0x1,'groupIds':Array['from'](_0x1d8a87)}}),_0x3846ea[_0x29a273(0x117)]({'id':V['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'sparklineConfigMap':_0x2fcab1}}),_0x5049b8(_0x296a0d,_0x5cb2ad),_0x4c72f8[_0x29a273(0xd6)]({'unitID':_0x400abb,'undoMutations':_0x3846ea,'redoMutations':_0x296a0d}),!0x0;}else{if(_0x536da4){const _0x9b1f45=[],_0x8776c6=[];_0x9b1f45['push']({'id':O['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'ranges':_0x301c06,'isSingle':!0x0}});const _0x54b36e=(_0x23e871=_0x39b7a6[_0x29a273(0x87)]()[_0x29a273(0x96)][_0x29a273(0xdf)](_0x400abb))==null?void 0x0:_0x23e871[_0x29a273(0xdf)](_0x3553b4),_0xe5c748={},_0x534c70=new Set(),_0x4096ce={};return _0x301c06[_0x29a273(0xa9)](_0x41eaf2=>{const _0x4abede=_0x29a273;var _0x2c5419,_0x31b4fa;const {startRow:_0x487deb,endRow:_0x30d531,startColumn:_0x4bf8da,endColumn:_0x35e74c}=_0x41eaf2;for(let _0x9f9134=_0x487deb;_0x9f9134<=_0x30d531;_0x9f9134++)for(let _0x3ef204=_0x4bf8da;_0x3ef204<=_0x35e74c;_0x3ef204++){const _0x3f8eef=(_0x2c5419=_0x141914==null?void 0x0:_0x141914[_0x4abede(0xe9)][_0x4abede(0xa8)](_0x9f9134,_0x3ef204))==null?void 0x0:_0x2c5419[_0x4abede(0xcc)];if(_0x3f8eef){const _0xb11533=new _0x5a61fa(),_0x5507f2='g_'+_0x4efc44(0x6);_0x534c70[_0x4abede(0xc6)](_0x3f8eef),_0x534c70[_0x4abede(0xc6)](_0x5507f2);const _0x477ef7=_0x39b7a6[_0x4abede(0xf8)](_0x400abb,_0x3553b4,_0x3f8eef);_0x477ef7&&(_0x4096ce[_0x3f8eef]={'config':_0x28ecba[_0x4abede(0x141)](_0x477ef7['config']),'sparklines':_0x28ecba[_0x4abede(0x141)](_0x477ef7[_0x4abede(0xbf)][_0x4abede(0xb9)]())});const _0x851add=(_0x31b4fa=_0x54b36e==null?void 0x0:_0x54b36e[_0x4abede(0xdf)](_0x3f8eef))==null?void 0x0:_0x31b4fa['sparklines'][_0x4abede(0xa8)](_0x9f9134,_0x3ef204);_0x851add&&_0xb11533['setValue'](_0x9f9134,_0x3ef204,_0x851add),_0xe5c748[_0x5507f2]={'sparklines':_0xb11533['getMatrix'](),'config':_0x28ecba[_0x4abede(0x141)](_0x98434b[_0x4abede(0x13b)])};}}}),_0x9b1f45[_0x29a273(0x117)]({'id':V['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'sparklineConfigMap':_0xe5c748}}),_0x8776c6[_0x29a273(0x117)]({'id':O['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'isSingle':!0x1,'groupIds':Array['from'](_0x534c70)}}),_0x8776c6['push']({'id':V['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'sparklineConfigMap':_0x4096ce}}),_0x5049b8(_0x9b1f45,_0x5cb2ad),_0x4c72f8['pushUndoRedo']({'unitID':_0x400abb,'undoMutations':_0x8776c6,'redoMutations':_0x9b1f45}),!0x0;}}if(_0xf7093a){const _0x1122f9=_0x4eabcb[_0x29a273(0xee)];if(!_0x1122f9)return!0x1;const {groupId:_0x2cceb6,sourceRanges:_0x1ebeb9,targetRanges:_0x4cbe60,resetType:_0x1fa55e,primary:_0x4c2246}=_0x1122f9,_0x131adf=[],_0x4dc878=[];_0x131adf[_0x29a273(0x117)]({'id':O['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'ranges':_0x301c06,'isSingle':!0x1,'groupIds':[_0x2cceb6]}}),_0x4dc878['push']({'id':O['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'ranges':_0x301c06,'isSingle':!0x1,'groupIds':[_0x2cceb6]}});let _0x6c3e54;_0x1fa55e===_0x29a273(0xd4)?(_0x6c3e54=new _0x5a61fa(_0x98434b[_0x29a273(0xbf)][_0x29a273(0xb9)]()),_0x6c3e54['realDeleteValue'](_0x4c2246['actualRow'],_0x4c2246[_0x29a273(0xfb)]),_0x6c3e54[_0x29a273(0x11f)](_0x4cbe60[0x0][_0x29a273(0x136)],_0x4cbe60[0x0][_0x29a273(0xda)],_0x1ebeb9[0x0])):_0x6c3e54=Fe(_0x1ebeb9,_0x4cbe60);const _0xbdaad2={'config':_0x28ecba[_0x29a273(0x141)](_0x98434b['config']),'sparklines':_0x6c3e54['getMatrix']()},_0x121d3b={'config':_0x28ecba['deepClone'](_0x98434b[_0x29a273(0x13b)]),'sparklines':_0x28ecba[_0x29a273(0x141)](_0x98434b[_0x29a273(0xbf)][_0x29a273(0xb9)]())};_0x131adf[_0x29a273(0x117)]({'id':V['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'sparklineConfigMap':{[_0x2cceb6]:_0xbdaad2}}}),_0x4dc878[_0x29a273(0x117)]({'id':V['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'sparklineConfigMap':{[_0x2cceb6]:_0x121d3b}}}),_0x5049b8(_0x131adf,_0x5cb2ad),_0x4c72f8[_0x29a273(0xd6)]({'unitID':_0x400abb,'undoMutations':_0x4dc878,'redoMutations':_0x131adf});}else{const _0x54edfa=[],_0x32554c=[],_0x2aec4d=new Set(),_0x501963={};_0x301c06[_0x29a273(0xa9)](_0x23adfc=>{const _0x17e4dc=_0x29a273;var _0x1615ef;const {startRow:_0x4f0873,endRow:_0x524ffc,startColumn:_0x55448f,endColumn:_0x39fdef}=_0x23adfc;for(let _0x34dd87=_0x4f0873;_0x34dd87<=_0x524ffc;_0x34dd87++)for(let _0x342477=_0x55448f;_0x342477<=_0x39fdef;_0x342477++){const _0x15e3a0=(_0x1615ef=_0x141914==null?void 0x0:_0x141914['matrix']['getValue'](_0x34dd87,_0x342477))==null?void 0x0:_0x1615ef['groupId'];if(_0x15e3a0){_0x2aec4d[_0x17e4dc(0xc6)](_0x15e3a0);const _0x59e90b=_0x39b7a6[_0x17e4dc(0xf8)](_0x400abb,_0x3553b4,_0x15e3a0);_0x59e90b&&(_0x501963[_0x15e3a0]={'config':_0x28ecba[_0x17e4dc(0x141)](_0x59e90b[_0x17e4dc(0x13b)]),'sparklines':_0x28ecba['deepClone'](_0x59e90b[_0x17e4dc(0xbf)]['clone']())});}}}),_0x32554c[_0x29a273(0x117)]({'id':xe['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'groupIds':Array[_0x29a273(0xa0)](_0x2aec4d),'config':{'config':_0x28ecba[_0x29a273(0x141)](_0x98434b[_0x29a273(0x13b)]),'sparklines':_0x98434b[_0x29a273(0xbf)][_0x29a273(0xce)]()}}}),_0x54edfa['push']({'id':O['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'isSingle':!0x1,'groupIds':Array['from'](_0x2aec4d)}}),_0x54edfa[_0x29a273(0x117)]({'id':V['id'],'params':{'unitId':_0x400abb,'subUnitId':_0x3553b4,'sparklineConfigMap':_0x501963}}),_0x5049b8(_0x32554c,_0x5cb2ad),_0x4c72f8[_0x29a273(0xd6)]({'unitID':_0x400abb,'undoMutations':_0x54edfa,'redoMutations':_0x32554c});}return!0x0;}};var Tt=Object[_0x3ef231(0xc8)],$t=Object[_0x3ef231(0x8a)],jt=(_0x2e89d7,_0x530686,_0x386774,_0x27d027)=>{const _0x35db48=_0x3ef231;for(var _0x250ba7=_0x27d027>0x1?void 0x0:_0x27d027?$t(_0x530686,_0x386774):_0x530686,_0x16bcb4=_0x2e89d7[_0x35db48(0x113)]-0x1,_0x141f43;_0x16bcb4>=0x0;_0x16bcb4--)(_0x141f43=_0x2e89d7[_0x16bcb4])&&(_0x250ba7=(_0x27d027?_0x141f43(_0x530686,_0x386774,_0x250ba7):_0x141f43(_0x250ba7))||_0x250ba7);return _0x27d027&&_0x250ba7&&Tt(_0x530686,_0x386774,_0x250ba7),_0x250ba7;},fe=(_0x26f4bf,_0x6caf81)=>(_0x447bd0,_0x52295b)=>_0x6caf81(_0x447bd0,_0x52295b,_0x26f4bf);let he=class extends _0xffa94b{constructor(_0x469376,_0x403e67,_0xe4db21,_0x863488){const _0x3bf497=_0x3ef231;super(),this['_sparklineDataSourceModel']=_0x469376,this[_0x3bf497(0xf1)]=_0x403e67,this[_0x3bf497(0x10a)]=_0xe4db21,this[_0x3bf497(0x10b)]=_0x863488,this[_0x3bf497(0x112)]();}[_0x3ef231(0x112)](){const _0x2ac74e=_0x3ef231;this[_0x2ac74e(0xc4)](this['_sheetInterceptorService'][_0x2ac74e(0x119)]({'getMutations':_0x2f9f81=>{const _0x32a56d=_0x2ac74e,_0x44bd48=[],_0x364554=[];if(_0x2f9f81['id']===_0x10e20e['id']){const _0x34c1e0=_0xa39883(this[_0x32a56d(0x10a)]);if(!_0x34c1e0)return{'redos':_0x44bd48,'undos':_0x364554};const {unitId:_0x50f32b,subUnitId:_0x428185,worksheet:_0x375aaf}=_0x34c1e0,_0x2db232=this[_0x32a56d(0x10b)][_0x32a56d(0x99)]()['map'](_0x29728c=>_0x29728c[_0x32a56d(0xad)]),_0xbeda9f=new Set(),_0x563318={},_0x23e2d9={};_0x2db232[_0x32a56d(0xa9)](_0x5e4df9=>{const _0x937e92=_0x32a56d;_0x54550e[_0x937e92(0x9d)](_0x5e4df9,(_0x155cdf,_0x21765b)=>{const _0x3edb86=_0x937e92,_0x244e03=this[_0x3edb86(0x115)][_0x3edb86(0xec)](_0x50f32b,_0x428185,_0x155cdf,_0x21765b);if(_0x244e03&&!_0xbeda9f[_0x3edb86(0x121)](_0x244e03)){const _0x479332=this[_0x3edb86(0x115)]['getSparklineById'](_0x50f32b,_0x428185,_0x244e03);_0x479332&&(_0xbeda9f['add'](_0x244e03),_0x563318[_0x244e03]={'config':_0x28ecba[_0x3edb86(0x141)](_0x479332[_0x3edb86(0x13b)]),'sparklines':_0x28ecba[_0x3edb86(0x141)](_0x479332[_0x3edb86(0xbf)][_0x3edb86(0xb9)]())},_0x23e2d9[_0x244e03]={'config':_0x28ecba[_0x3edb86(0x141)](_0x479332[_0x3edb86(0x13b)]),'sparklines':_0x28ecba[_0x3edb86(0x141)](_0x479332['sparklines'][_0x3edb86(0xb9)]())});}});}),Object[_0x32a56d(0x13c)](_0x23e2d9)[_0x32a56d(0xa9)](_0xf1f4e6=>{const _0x4aa54e=_0x32a56d,_0x46cca4=_0xf1f4e6[_0x4aa54e(0xbf)];new _0x5a61fa(_0x46cca4)[_0x4aa54e(0x8f)]((_0x31742a,_0x3bd59b,_0x580435)=>{const _0x19a39a=_0x4aa54e;_0x2db232['some'](_0x470969=>_0x324b2d[_0x19a39a(0xeb)](_0x470969,_0x547d42(_0x31742a,_0x3bd59b)))&&delete _0x46cca4[_0x31742a][_0x3bd59b];});}),_0x44bd48[_0x32a56d(0x117)]({'id':O['id'],'params':{'unitId':_0x50f32b,'subUnitId':_0x428185,'groupIds':Array[_0x32a56d(0xa0)](_0xbeda9f),'isSingle':!0x1}}),_0x44bd48[_0x32a56d(0x117)]({'id':V['id'],'params':{'unitId':_0x50f32b,'subUnitId':_0x428185,'sparklineConfigMap':_0x23e2d9}}),_0x364554[_0x32a56d(0x117)]({'id':O['id'],'params':{'unitId':_0x50f32b,'subUnitId':_0x428185,'groupIds':Array[_0x32a56d(0xa0)](_0xbeda9f),'isSingle':!0x1}}),_0x364554['push']({'id':V['id'],'params':{'unitId':_0x50f32b,'subUnitId':_0x428185,'sparklineConfigMap':_0x563318}});}return{'redos':_0x44bd48,'undos':_0x364554};}}));}};he=jt([fe(0x0,_0xb26d9c(y)),fe(0x1,_0xb26d9c(_0x394979)),fe(0x2,_0xb26d9c(_0x3dfacf)),fe(0x3,_0xb26d9c(_0x5114b4))],he);var Lt=Object[_0x3ef231(0xc8)],Gt=Object[_0x3ef231(0x8a)],Wt=(_0x200572,_0x2369e6,_0x46b014,_0x2e93ad)=>{for(var _0x2ca2b0=_0x2e93ad>0x1?void 0x0:_0x2e93ad?Gt(_0x2369e6,_0x46b014):_0x2369e6,_0x56c010=_0x200572['length']-0x1,_0x47f337;_0x56c010>=0x0;_0x56c010--)(_0x47f337=_0x200572[_0x56c010])&&(_0x2ca2b0=(_0x2e93ad?_0x47f337(_0x2369e6,_0x46b014,_0x2ca2b0):_0x47f337(_0x2ca2b0))||_0x2ca2b0);return _0x2e93ad&&_0x2ca2b0&&Lt(_0x2369e6,_0x46b014,_0x2ca2b0),_0x2ca2b0;},Ge=(_0x3c75b7,_0x58ee18)=>(_0x75f96e,_0x12e2aa)=>_0x58ee18(_0x75f96e,_0x12e2aa,_0x3c75b7);let Se=class extends _0xffa94b{constructor(_0x3f9e6c,_0x31a793){const _0x3db427=_0x3ef231;super(),this[_0x3db427(0xf1)]=_0x3f9e6c,this[_0x3db427(0x115)]=_0x31a793,this[_0x3db427(0x86)]();}['_initCopySheetWithSparkline'](){const _0x30ca5b=_0x3ef231;this[_0x30ca5b(0xc4)](this['_sheetInterceptorService'][_0x30ca5b(0x119)]({'getMutations':_0x265669=>{const _0x3ef193=_0x30ca5b,_0x5a1bd6=[],_0x2eb2d2=[];if(_0x265669['id']===_0x593e4e['id']){const _0x463346=_0x265669[_0x3ef193(0xde)];if(!_0x463346)return{'redos':_0x5a1bd6,'undos':_0x2eb2d2};const {unitId:_0x57c663,subUnitId:_0x29316c,targetSubUnitId:_0x3369f0}=_0x463346;if(!_0x57c663||!_0x29316c||!_0x3369f0)return{'redos':_0x5a1bd6,'undos':_0x2eb2d2};const _0x2d0f22=new Set(),_0x1099a1={},_0x3910b1=this[_0x3ef193(0x115)][_0x3ef193(0xaa)](_0x57c663,_0x29316c);if(!_0x3910b1)return{'redos':_0x5a1bd6,'undos':_0x2eb2d2};for(const [_0x42e9b6,_0x535924]of _0x3910b1){const _0x5f3fab='g_'+_0x4efc44(0x6);_0x2d0f22[_0x3ef193(0xc6)](_0x42e9b6),_0x1099a1[_0x5f3fab]={'config':_0x28ecba[_0x3ef193(0x141)](_0x535924[_0x3ef193(0x13b)]),'sparklines':_0x28ecba[_0x3ef193(0x141)](_0x535924[_0x3ef193(0xbf)]['clone']())};}_0x2d0f22[_0x3ef193(0xf3)]&&(_0x2eb2d2[_0x3ef193(0x117)]({'id':O['id'],'params':{'unitId':_0x57c663,'subUnitId':_0x3369f0,'groupIds':Array[_0x3ef193(0xa0)](_0x2d0f22),'isSingle':!0x1}}),_0x5a1bd6[_0x3ef193(0x117)]({'id':V['id'],'params':{'unitId':_0x57c663,'subUnitId':_0x3369f0,'sparklineConfigMap':_0x1099a1}}));}return{'redos':_0x5a1bd6,'undos':_0x2eb2d2};}}));}};Se=Wt([Ge(0x0,_0xb26d9c(_0x394979)),Ge(0x1,_0xb26d9c(y))],Se);var Ht=Object[_0x3ef231(0xc8)],Bt=Object[_0x3ef231(0x8a)],Ft=(_0xe29e27,_0x52827a,_0x1bbcc1,_0x2f531c)=>{const _0x5013e1=_0x3ef231;for(var _0x5db8a9=_0x2f531c>0x1?void 0x0:_0x2f531c?Bt(_0x52827a,_0x1bbcc1):_0x52827a,_0x57d025=_0xe29e27[_0x5013e1(0x113)]-0x1,_0x6d6990;_0x57d025>=0x0;_0x57d025--)(_0x6d6990=_0xe29e27[_0x57d025])&&(_0x5db8a9=(_0x2f531c?_0x6d6990(_0x52827a,_0x1bbcc1,_0x5db8a9):_0x6d6990(_0x5db8a9))||_0x5db8a9);return _0x2f531c&&_0x5db8a9&&Ht(_0x52827a,_0x1bbcc1,_0x5db8a9),_0x5db8a9;},be=(_0x5ed6d6,_0x1a627c)=>(_0x28088c,_0x11a99c)=>_0x1a627c(_0x28088c,_0x11a99c,_0x5ed6d6);function _0x10c2(_0x54928d,_0x325768){const _0xfca281=_0xfca2();return _0x10c2=function(_0x10c28b,_0xdc4674){_0x10c28b=_0x10c28b-0x85;let _0x39d34b=_0xfca281[_0x10c28b];return _0x39d34b;},_0x10c2(_0x54928d,_0x325768);}let ke=class extends _0xffa94b{constructor(_0x26c504,_0x406f20,_0x4f067a){const _0x110f9e=_0x3ef231;super(),this[_0x110f9e(0xaf)]=_0x26c504,this[_0x110f9e(0x115)]=_0x406f20,this['_exclusiveRangeService']=_0x4f067a,this[_0x110f9e(0xac)](),this['_initExclusiveRangeChange']();}[_0x3ef231(0xac)](){const _0x4302d7=_0x3ef231;this[_0x4302d7(0xc4)](this[_0x4302d7(0xaf)][_0x4302d7(0xdc)](_0x17cc85=>{const _0x1c72f1=_0x4302d7;if(_0x17cc85['id']===_0x22f901['id']){const _0x4811cf=_0x17cc85['params'],{cellValue:_0x34b0d1,unitId:_0xafa16e,subUnitId:_0x41d4e3}=_0x4811cf,_0x1dca55=new _0x5a61fa(_0x34b0d1),_0x5910af=new Set(),_0x210920=this['_sparklineDataSourceModel'][_0x1c72f1(0xaa)](_0xafa16e,_0x41d4e3);if(!_0x210920)return;const _0x2e7057=Array[_0x1c72f1(0xa0)](_0x210920);_0x1dca55[_0x1c72f1(0x8f)]((_0x4daec7,_0xf3ec81,_0x1e6936)=>{const _0x317e19=_0x1c72f1,_0x1768f7=_0x547d42(_0x4daec7,_0xf3ec81);for(let _0x20e190=0x0;_0x20e190<_0x2e7057['length'];_0x20e190++){const [_0x5724b7,_0x631894]=_0x2e7057[_0x20e190],_0x419bb5=_0x5910af['has'](_0x5724b7);_0x419bb5||_0x631894[_0x317e19(0xbf)][_0x317e19(0x8f)]((_0x38d04b,_0x2d1dea,_0x5385b0)=>{const _0x3e19aa=_0x317e19,_0x4e4c12=_0x5385b0;if(_0x4e4c12&&!_0x419bb5&&_0x324b2d[_0x3e19aa(0xeb)](_0x1768f7,_0x4e4c12))return _0x5910af[_0x3e19aa(0xc6)](_0x5724b7),!0x0;});}}),_0x5910af['forEach'](_0x3b10c4=>{const _0x54ae6d=_0x1c72f1;this[_0x54ae6d(0x115)][_0x54ae6d(0xe0)](_0xafa16e,_0x41d4e3,_0x3b10c4),this[_0x54ae6d(0x115)]['updateSparklineExtraNum'](_0xafa16e,_0x41d4e3,_0x3b10c4);});}else{if(_0x17cc85['id']===_0x2be9fa['id']){const _0xa99d6b=_0x17cc85[_0x1c72f1(0xde)],{range:_0x1a794e,unitId:_0x509822,subUnitId:_0x19b46e}=_0xa99d6b,_0x5cd24a=new Set(),_0x31847a=this[_0x1c72f1(0x115)][_0x1c72f1(0xaa)](_0x509822,_0x19b46e);if(!_0x31847a)return;const _0x39d485=Array[_0x1c72f1(0xa0)](_0x31847a);for(let _0x15481e=0x0;_0x15481e<_0x39d485[_0x1c72f1(0x113)];_0x15481e++){const [_0x5ad3b7,_0x3b3fc6]=_0x39d485[_0x15481e],_0x1cba80=_0x5cd24a['has'](_0x5ad3b7);_0x1cba80||_0x3b3fc6[_0x1c72f1(0xbf)][_0x1c72f1(0x8f)]((_0x1b2cd5,_0x2a37c0,_0x13f3f2)=>{const _0x2f66cf=_0x1c72f1,_0x3f4981=_0x13f3f2;if(_0x3f4981&&!_0x1cba80&&_0x324b2d['intersects'](_0x1a794e,_0x3f4981))return _0x5cd24a[_0x2f66cf(0xc6)](_0x5ad3b7),!0x0;});}_0x5cd24a[_0x1c72f1(0xa9)](_0x29d4e4=>{const _0x5212bf=_0x1c72f1;this[_0x5212bf(0x115)]['clearSparklineCache'](_0x509822,_0x19b46e,_0x29d4e4),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x509822,_0x19b46e,_0x29d4e4);});}}}));}[_0x3ef231(0xe3)](){const _0x2392f9=_0x3ef231;this[_0x2392f9(0xc4)](this[_0x2392f9(0x85)][_0x2392f9(0xa3)][_0x2392f9(0x13f)](_0x50f125=>{const _0xcb5a53=_0x2392f9,{unitId:_0x5d00bb,subUnitId:_0x583a0d,ranges:_0x3b6dc8}=_0x50f125,_0x43d7a9=this[_0xcb5a53(0x115)][_0xcb5a53(0xaa)](_0x5d00bb,_0x583a0d);if(!_0x43d7a9)return;const _0x109ad4=Array[_0xcb5a53(0xa0)](_0x43d7a9),_0x262cee=new Set();for(let _0x395b7d=0x0;_0x395b7d<_0x109ad4[_0xcb5a53(0x113)];_0x395b7d++){const [_0x4906ca,_0x44a8dd]=_0x109ad4[_0x395b7d],_0x13b6fb=_0x262cee[_0xcb5a53(0x121)](_0x4906ca);_0x13b6fb||_0x44a8dd[_0xcb5a53(0xbf)][_0xcb5a53(0x8f)]((_0x522eeb,_0x5ed1e0,_0x50260f)=>{const _0x5c291d=_0x50260f;if(_0x5c291d&&!_0x13b6fb){for(const _0x26c3fd of _0x3b6dc8)if(_0x324b2d['intersects'](_0x26c3fd,_0x5c291d)){_0x262cee['add'](_0x4906ca);break;}}});}_0x262cee[_0xcb5a53(0xa9)](_0x342bfa=>{const _0x5b26eb=_0xcb5a53;this[_0x5b26eb(0x115)][_0x5b26eb(0xe0)](_0x5d00bb,_0x583a0d,_0x342bfa),this[_0x5b26eb(0x115)]['updateSparklineExtraNum'](_0x5d00bb,_0x583a0d,_0x342bfa);});}));}};ke=Ft([be(0x0,_0xb26d9c(_0x5b60fe)),be(0x1,_0xb26d9c(y)),be(0x2,_0xb26d9c(_0x1ff52c))],ke);var Kt=Object[_0x3ef231(0xc8)],Xt=Object['getOwnPropertyDescriptor'],zt=(_0x3c28c7,_0x2ce8b8,_0x3872d4,_0x138414)=>{for(var _0x2dbd7b=_0x138414>0x1?void 0x0:_0x138414?Xt(_0x2ce8b8,_0x3872d4):_0x2ce8b8,_0x3be481=_0x3c28c7['length']-0x1,_0x268385;_0x3be481>=0x0;_0x3be481--)(_0x268385=_0x3c28c7[_0x3be481])&&(_0x2dbd7b=(_0x138414?_0x268385(_0x2ce8b8,_0x3872d4,_0x2dbd7b):_0x268385(_0x2dbd7b))||_0x2dbd7b);return _0x138414&&_0x2dbd7b&&Kt(_0x2ce8b8,_0x3872d4,_0x2dbd7b),_0x2dbd7b;},We=(_0x825d88,_0x1f4725)=>(_0x326a57,_0x4d6e69)=>_0x1f4725(_0x326a57,_0x4d6e69,_0x825d88);let me=class extends _0xffa94b{constructor(_0x368373,_0x2289c5){const _0x579d3d=_0x3ef231;super(),this[_0x579d3d(0xaf)]=_0x368373,this['_sparklineDataSourceModel']=_0x2289c5,this[_0x579d3d(0xab)]();}[_0x3ef231(0xab)](){const _0x3e4c68=_0x3ef231;this[_0x3e4c68(0xaf)][_0x3e4c68(0xdc)](_0x28bafd=>{const _0x3bf9cd=_0x3e4c68;if(_0x28bafd['id']===_0xa028f2['id']||_0x28bafd['id']===_0x1e89dc['id']||_0x28bafd['id']===_0x19694f['id']||_0x28bafd['id']===_0x27cf73['id']){const _0x535116=_0x28bafd[_0x3bf9cd(0xde)],{ranges:_0x542b2e,unitId:_0x1cfee4,subUnitId:_0x56d493}=_0x535116,_0x4ce63a=new Set(),_0x4ef442=this['_sparklineDataSourceModel'][_0x3bf9cd(0xaa)](_0x1cfee4,_0x56d493);if(!_0x4ef442)return;const _0x1cbb62=Array[_0x3bf9cd(0xa0)](_0x4ef442);_0x542b2e[_0x3bf9cd(0xa9)](_0x5aaebf=>{const _0x4d0ffe=_0x3bf9cd;_0x54550e[_0x4d0ffe(0x9d)](_0x5aaebf,(_0x151d3d,_0x5f58c5)=>{const _0x50aa38=_0x4d0ffe,_0x457079=_0x547d42(_0x151d3d,_0x5f58c5);for(let _0x4d13f4=0x0;_0x4d13f4<_0x1cbb62[_0x50aa38(0x113)];_0x4d13f4++){const [_0x2df3fb,_0x27ddab]=_0x1cbb62[_0x4d13f4],_0x19527e=_0x4ce63a['has'](_0x2df3fb);_0x19527e||_0x27ddab[_0x50aa38(0xbf)]['forValue']((_0x5d2b30,_0x265e90,_0x36a4c4)=>{const _0x5cfe58=_0x50aa38,_0x4bb33a=_0x36a4c4;if(_0x4bb33a&&!_0x19527e&&_0x324b2d[_0x5cfe58(0xeb)](_0x457079,_0x4bb33a))return _0x4ce63a[_0x5cfe58(0xc6)](_0x2df3fb),!0x0;});}});}),_0x4ce63a['forEach'](_0x24baf6=>{const _0x231651=_0x3bf9cd;this[_0x231651(0x115)][_0x231651(0xe0)](_0x1cfee4,_0x56d493,_0x24baf6),this['_sparklineDataSourceModel'][_0x231651(0xe5)](_0x1cfee4,_0x56d493,_0x24baf6);});}});}};me=zt([We(0x0,_0xb26d9c(_0x5b60fe)),We(0x1,_0xb26d9c(y))],me);var Jt=Object[_0x3ef231(0xc8)],Zt=Object[_0x3ef231(0x8a)],Yt=(_0x200984,_0x1e7d10,_0x3833b5,_0x342f44)=>{const _0x1944b8=_0x3ef231;for(var _0x543fab=_0x342f44>0x1?void 0x0:_0x342f44?Zt(_0x1e7d10,_0x3833b5):_0x1e7d10,_0x3e631d=_0x200984[_0x1944b8(0x113)]-0x1,_0x36f418;_0x3e631d>=0x0;_0x3e631d--)(_0x36f418=_0x200984[_0x3e631d])&&(_0x543fab=(_0x342f44?_0x36f418(_0x1e7d10,_0x3833b5,_0x543fab):_0x36f418(_0x543fab))||_0x543fab);return _0x342f44&&_0x543fab&&Jt(_0x1e7d10,_0x3833b5,_0x543fab),_0x543fab;},De=(_0x240844,_0x27af2d)=>(_0x52d28d,_0x2385dc)=>_0x27af2d(_0x52d28d,_0x2385dc,_0x240844);let Ce=class extends _0xffa94b{constructor(_0x62a33a,_0x32fe38,_0x114fa7){const _0x17b2cd=_0x3ef231;super(),this[_0x17b2cd(0xaf)]=_0x62a33a,this[_0x17b2cd(0xf1)]=_0x32fe38,this[_0x17b2cd(0x115)]=_0x114fa7,this[_0x17b2cd(0xb4)]();}[_0x3ef231(0xb4)](){const _0x54c8b8=_0x3ef231;this[_0x54c8b8(0xc4)](this['_sheetInterceptorService'][_0x54c8b8(0x119)]({'getMutations':_0x58ecd8=>{const _0x4162fe=_0x54c8b8,_0x5e02cb=[],_0x3fabb1=[];if(_0x58ecd8['id']===_0x4dbfd6['id']){const _0x370011=_0x58ecd8['params'];if(!_0x370011)return{'redos':_0x5e02cb,'undos':_0x3fabb1};const {unitId:_0x5aaa53,subUnitId:_0x35fb71,ranges:_0x206af9}=_0x370011,_0x1e08f1=this[_0x4162fe(0x115)][_0x4162fe(0xaa)](_0x5aaa53,_0x35fb71);if(!_0x1e08f1)return{'redos':_0x5e02cb,'undos':_0x3fabb1};const _0x3ea2fc={},_0x30b9bf={},_0x55300a=new Set();_0x206af9[_0x4162fe(0xa9)](_0x461dff=>{const _0x23c1f4=_0x4162fe,_0x4b2dbd=_0x461dff[_0x23c1f4(0x136)],_0x53b7d7=_0x461dff[_0x23c1f4(0xda)];_0x54550e['foreach'](_0x461dff,(_0x2424ea,_0x1f8aa7)=>{const _0x52ff8c=_0x23c1f4,_0x450d83=this[_0x52ff8c(0x115)][_0x52ff8c(0xec)](_0x5aaa53,_0x35fb71,_0x2424ea,_0x1f8aa7);if(_0x450d83&&!(_0x2424ea===_0x4b2dbd&&_0x1f8aa7===_0x53b7d7)){const _0x388a72=this[_0x52ff8c(0x115)][_0x52ff8c(0xf8)](_0x5aaa53,_0x35fb71,_0x450d83);if(_0x388a72){_0x55300a[_0x52ff8c(0xc6)](_0x450d83);let _0x2e92d1=_0x3ea2fc[_0x450d83];_0x2e92d1||(_0x2e92d1={'config':_0x28ecba[_0x52ff8c(0x141)](_0x388a72['config']),'sparklines':new _0x5a61fa(_0x388a72[_0x52ff8c(0xbf)]['clone']())},_0x3ea2fc[_0x450d83]=_0x2e92d1),_0x2e92d1[_0x52ff8c(0xbf)][_0x52ff8c(0xa7)](_0x2424ea,_0x1f8aa7),_0x30b9bf[_0x450d83]={'config':_0x28ecba['deepClone'](_0x388a72['config']),'sparklines':_0x28ecba[_0x52ff8c(0x141)](_0x388a72['sparklines']['clone']())};}}});});for(const [_0x650353,_0x32a8db]of _0x1e08f1){const _0x279163=_0x32a8db[_0x4162fe(0xbf)];_0x279163['forValue']((_0x5ce623,_0x17ac34,_0xb0d71b)=>{const _0x49d5d3=_0x4162fe;for(let _0x434445=0x0;_0x434445<_0x206af9[_0x49d5d3(0x113)];_0x434445++){const _0x59a994=_0x206af9[_0x434445];if(_0x324b2d['contains'](_0x59a994,_0xb0d71b)){_0x55300a['add'](_0x650353);let _0x375333=_0x3ea2fc[_0x650353];_0x375333||(_0x375333={'config':_0x28ecba[_0x49d5d3(0x141)](_0x32a8db[_0x49d5d3(0x13b)]),'sparklines':new _0x5a61fa(_0x279163[_0x49d5d3(0xb9)]())},_0x3ea2fc[_0x650353]=_0x375333),_0x375333[_0x49d5d3(0xbf)][_0x49d5d3(0xa7)](_0x5ce623,_0x17ac34),_0x30b9bf[_0x650353]||(_0x30b9bf[_0x650353]={'config':_0x28ecba['deepClone'](_0x32a8db['config']),'sparklines':_0x28ecba['deepClone'](_0x279163[_0x49d5d3(0xb9)]())});}}});}const _0x3f9951={};Object['entries'](_0x3ea2fc)['forEach'](([_0x476252,_0x4bd167])=>{const _0x35a363=_0x4162fe;_0x4bd167[_0x35a363(0xbf)][_0x35a363(0xd0)]()&&(_0x3f9951[_0x476252]={'config':_0x4bd167[_0x35a363(0x13b)],'sparklines':_0x4bd167[_0x35a363(0xbf)][_0x35a363(0xb9)]()});}),_0x55300a[_0x4162fe(0xf3)]&&(_0x5e02cb[_0x4162fe(0x117)]({'id':O['id'],'params':{'unitId':_0x5aaa53,'subUnitId':_0x35fb71,'groupIds':Array['from'](_0x55300a),'isSingle':!0x1}}),_0x3fabb1[_0x4162fe(0x117)]({'id':O['id'],'params':{'unitId':_0x5aaa53,'subUnitId':_0x35fb71,'groupIds':Array['from'](_0x55300a),'isSingle':!0x1}}),_0x5e02cb[_0x4162fe(0x117)]({'id':V['id'],'params':{'unitId':_0x5aaa53,'subUnitId':_0x35fb71,'sparklineConfigMap':_0x3f9951}}),_0x3fabb1[_0x4162fe(0x117)]({'id':V['id'],'params':{'unitId':_0x5aaa53,'subUnitId':_0x35fb71,'sparklineConfigMap':_0x30b9bf}}));}return{'redos':_0x5e02cb,'undos':_0x3fabb1};}}));}};Ce=Yt([De(0x0,_0xb26d9c(_0x5b60fe)),De(0x1,_0xb26d9c(_0x394979)),De(0x2,_0xb26d9c(y))],Ce);var qt=Object[_0x3ef231(0xc8)],Qt=Object[_0x3ef231(0x8a)],en=(_0x1f9714,_0x3d721f,_0x2cd63e,_0x1ce630)=>{const _0x4f83b0=_0x3ef231;for(var _0x5d10c9=_0x1ce630>0x1?void 0x0:_0x1ce630?Qt(_0x3d721f,_0x2cd63e):_0x3d721f,_0x72d907=_0x1f9714[_0x4f83b0(0x113)]-0x1,_0x8ad6f0;_0x72d907>=0x0;_0x72d907--)(_0x8ad6f0=_0x1f9714[_0x72d907])&&(_0x5d10c9=(_0x1ce630?_0x8ad6f0(_0x3d721f,_0x2cd63e,_0x5d10c9):_0x8ad6f0(_0x5d10c9))||_0x5d10c9);return _0x1ce630&&_0x5d10c9&&qt(_0x3d721f,_0x2cd63e,_0x5d10c9),_0x5d10c9;},de=(_0xe200c1,_0x376d8d)=>(_0x151e92,_0x1b988a)=>_0x376d8d(_0x151e92,_0x1b988a,_0xe200c1);let _e=class extends _0xffa94b{constructor(_0x14d710,_0x196118,_0x461237,_0x1a8574,_0x925180){const _0xaf72ff=_0x3ef231;super(),se(this,'disposableCollection',new _0x2b100e()),(this['_commandService']=_0x14d710,this[_0xaf72ff(0xf1)]=_0x196118,this[_0xaf72ff(0x8e)]=_0x461237,this['_univerInstanceService']=_0x1a8574,this['_sparklineDataSourceModel']=_0x925180,this[_0xaf72ff(0x116)](),this['_initCorrectRangeWithSparkline']());}['_onRefRangeChange'](){const _0x274b69=_0x3ef231,_0x44ffa3=(_0x34acc1,_0x23a687)=>{const _0x574d4a=_0x10c2,_0x5f52b8=this['_univerInstanceService'][_0x574d4a(0x134)](_0x40279d[_0x574d4a(0xa6)]);if(!_0x5f52b8||!(_0x5f52b8==null?void 0x0:_0x5f52b8[_0x574d4a(0xbb)](_0x23a687)))return;this[_0x574d4a(0x98)][_0x574d4a(0xb1)]();const _0x347099=_0x32509f=>this[_0x574d4a(0x95)](_0x32509f,_0x34acc1,_0x23a687),_0x5be005=[],_0x288940=this[_0x574d4a(0x115)][_0x574d4a(0xaa)](_0x34acc1,_0x23a687);if(_0x288940){for(const [_0x3aeb12,_0x333e44]of _0x288940)_0x333e44[_0x574d4a(0xbf)][_0x574d4a(0x8f)]((_0x534ada,_0x438406,_0x1569f1)=>{const _0xe1b402=_0x574d4a,_0x190130=_0x547d42(_0x534ada,_0x438406);_0x5be005[_0xe1b402(0x117)](_0x190130);});_0x5be005[_0x574d4a(0xa9)](_0x2d2ac2=>{const _0x9c99fe=_0x574d4a;this['disposableCollection'][_0x9c99fe(0xc6)](this[_0x9c99fe(0x8e)][_0x9c99fe(0x8c)](_0x2d2ac2,_0x347099,_0x34acc1,_0x23a687));});}};this[_0x274b69(0xc4)](this['_commandService']['onCommandExecuted'](_0x811c68=>{const _0x3eacb7=_0x274b69;if(_0x811c68['id']===_0x4187f8['id']){const _0x1cfec4=_0x811c68[_0x3eacb7(0xde)],_0x1f461f=_0x1cfec4[_0x3eacb7(0xcf)],_0x4674c5=_0x1cfec4[_0x3eacb7(0xf5)];if(!_0x1f461f||!_0x4674c5)return;_0x44ffa3(_0x4674c5,_0x1f461f);}if(_0x811c68['id']===xe['id']||_0x811c68['id']===V['id']){const _0x54cf2e=_0x811c68['params'],_0x54110d=_0x54cf2e['subUnitId'],_0x14cc97=_0x54cf2e[_0x3eacb7(0xf5)];if(!_0x54110d||!_0x14cc97)return;_0x44ffa3(_0x14cc97,_0x54110d);}}));}[_0x3ef231(0x95)](_0x3f25af,_0x3656ff,_0x4be384){const _0x432915=_0x3ef231;switch(_0x3f25af['id']){case _0x499904['id']:return this[_0x432915(0x104)](_0x3f25af[_0x432915(0xde)],_0x3656ff,_0x4be384);case _0x375f56['id']:return this[_0x432915(0x132)](_0x3f25af[_0x432915(0xde)],_0x3656ff,_0x4be384);}return{'redos':[],'undos':[]};}[_0x3ef231(0x132)](_0x486070,_0x1a389e,_0xf0edc7){const _0x55b51c=_0x3ef231;var _0x4dbaa8,_0x1b6a21;const {range:_0x3219bb}=_0x486070,_0x17f168=new Set(),_0x47e35f={},_0x482829={},_0x5a5ec9=[],_0x3cc1e5=[],_0x4c8424=[],_0x115152=[];if(!_0xa39883(this['_univerInstanceService'],{'unitId':_0x1a389e,'subUnitId':_0xf0edc7}))return{'redos':_0x3cc1e5,'undos':_0x5a5ec9};const _0x326249=this[_0x55b51c(0x115)][_0x55b51c(0xaa)](_0x1a389e,_0xf0edc7);if(!_0x326249)return{'redos':_0x3cc1e5,'undos':_0x5a5ec9};if(!((_0x1b6a21=(_0x4dbaa8=this[_0x55b51c(0x115)][_0x55b51c(0x87)]()['sparklineAnchorMap'][_0x55b51c(0xdf)](_0x1a389e))==null?void 0x0:_0x4dbaa8[_0x55b51c(0xdf)](_0xf0edc7))==null?void 0x0:_0x1b6a21[_0x55b51c(0xe9)]))return{'redos':_0x3cc1e5,'undos':_0x5a5ec9};for(const [_0x43502d,_0x34fcf8]of _0x326249){const _0x599da2=_0x34fcf8[_0x55b51c(0xbf)];_0x599da2[_0x55b51c(0x8f)]((_0x1f1c1e,_0x1a0970,_0x4205ec)=>{const _0x38484a=_0x55b51c;if(_0x324b2d[_0x38484a(0xeb)](_0x3219bb,_0x4205ec)){_0x17f168[_0x38484a(0xc6)](_0x43502d);let _0x480afa=_0x482829[_0x43502d];_0x480afa||(_0x480afa={'config':_0x34fcf8[_0x38484a(0x13b)],'sparklines':_0x34fcf8[_0x38484a(0xbf)][_0x38484a(0xb9)]()},_0x482829[_0x43502d]=_0x480afa);let _0x5eb0b9=_0x47e35f[_0x43502d];_0x5eb0b9||(_0x5eb0b9={'config':_0x34fcf8[_0x38484a(0x13b)],'sparklines':new _0x5a61fa(_0x34fcf8[_0x38484a(0xbf)][_0x38484a(0xb9)]())},_0x47e35f[_0x43502d]=_0x5eb0b9);const _0xbc0838=_0x42d91e(_0x4205ec,{'id':_0x5ba849['id'],'params':_0x486070});_0xbc0838?_0x5eb0b9[_0x38484a(0xbf)][_0x38484a(0x11f)](_0x1f1c1e,_0x1a0970,_0xbc0838):_0x5eb0b9['sparklines']['setValue'](_0x1f1c1e,_0x1a0970,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x401d67['NORMAL']});}}),_0x599da2[_0x55b51c(0x8f)]((_0x2a604c,_0x2cfa79,_0x43e47a)=>{const _0x1548f5=_0x55b51c;if(_0x2a604c<=_0x3219bb[_0x1548f5(0x12d)]&&_0x2a604c>=_0x3219bb[_0x1548f5(0x136)]){_0x17f168[_0x1548f5(0xc6)](_0x43502d);let _0x178d12=_0x482829[_0x43502d];_0x178d12||(_0x178d12={'config':_0x34fcf8[_0x1548f5(0x13b)],'sparklines':_0x34fcf8[_0x1548f5(0xbf)][_0x1548f5(0xb9)]()},_0x482829[_0x43502d]=_0x178d12);let _0x5325bf=_0x47e35f[_0x43502d];_0x5325bf||(_0x5325bf={'config':_0x34fcf8[_0x1548f5(0x13b)],'sparklines':new _0x5a61fa(_0x34fcf8[_0x1548f5(0xbf)][_0x1548f5(0xb9)]())},_0x47e35f[_0x43502d]=_0x5325bf);}});}_0x115152['push']({'id':O['id'],'params':{'unitId':_0x1a389e,'subUnitId':_0xf0edc7,'groupIds':Array[_0x55b51c(0xa0)](_0x17f168),'isSingle':!0x1}}),_0x4c8424['push']({'id':O['id'],'params':{'unitId':_0x1a389e,'subUnitId':_0xf0edc7,'groupIds':Array[_0x55b51c(0xa0)](_0x17f168),'isSingle':!0x1}});const _0x195ad0={};let _0x2eacb6=!0x1;return Object[_0x55b51c(0x127)](_0x47e35f)[_0x55b51c(0xa9)](([_0x2dad8b,_0x534421])=>{const _0x4f36ed=_0x55b51c;_0x534421[_0x4f36ed(0xbf)][_0x4f36ed(0xd0)]()&&(_0x2eacb6=!0x0,_0x534421[_0x4f36ed(0xbf)][_0x4f36ed(0xea)](_0x3219bb[_0x4f36ed(0x136)],_0x3219bb['endRow']-_0x3219bb['startRow']+0x1),_0x195ad0[_0x2dad8b]={'config':_0x534421[_0x4f36ed(0x13b)],'sparklines':_0x534421[_0x4f36ed(0xbf)][_0x4f36ed(0xb9)]()});}),_0x2eacb6&&_0x3cc1e5[_0x55b51c(0x117)]({'id':V['id'],'params':{'unitId':_0x1a389e,'subUnitId':_0xf0edc7,'sparklineConfigMap':_0x195ad0}}),_0x5a5ec9['push']({'id':V['id'],'params':{'unitId':_0x1a389e,'subUnitId':_0xf0edc7,'sparklineConfigMap':_0x482829}}),{'redos':_0x3cc1e5,'undos':_0x5a5ec9,'preRedos':_0x4c8424,'preUndos':_0x115152};}[_0x3ef231(0x104)](_0x87f637,_0x4d2879,_0x100d81){const _0x536d65=_0x3ef231;var _0x23b3d4,_0x1f6765;const {range:_0x2e3dc8}=_0x87f637,_0xc9c978=new Set(),_0x3ee01e={},_0x4c35a0={},_0x4a64d2=[],_0x5f3b79=[],_0x23d455=[],_0x5ade70=[];if(!_0xa39883(this[_0x536d65(0x10a)],{'unitId':_0x4d2879,'subUnitId':_0x100d81}))return{'redos':_0x5f3b79,'undos':_0x4a64d2};const _0xf3a6f4=this['_sparklineDataSourceModel'][_0x536d65(0xaa)](_0x4d2879,_0x100d81);if(!_0xf3a6f4)return{'redos':_0x5f3b79,'undos':_0x4a64d2};if(!((_0x1f6765=(_0x23b3d4=this[_0x536d65(0x115)][_0x536d65(0x87)]()[_0x536d65(0xd7)][_0x536d65(0xdf)](_0x4d2879))==null?void 0x0:_0x23b3d4[_0x536d65(0xdf)](_0x100d81))==null?void 0x0:_0x1f6765['matrix']))return{'redos':_0x5f3b79,'undos':_0x4a64d2};for(const [_0x19b435,_0x40aa1e]of _0xf3a6f4){const _0x448053=_0x40aa1e[_0x536d65(0xbf)];_0x448053[_0x536d65(0x8f)]((_0x1e82a8,_0x4b63db,_0x20fc26)=>{const _0x496ce7=_0x536d65;if(_0x324b2d[_0x496ce7(0xeb)](_0x2e3dc8,_0x20fc26)){_0xc9c978[_0x496ce7(0xc6)](_0x19b435);let _0x455c7a=_0x4c35a0[_0x19b435];_0x455c7a||(_0x455c7a={'config':_0x40aa1e[_0x496ce7(0x13b)],'sparklines':_0x40aa1e[_0x496ce7(0xbf)][_0x496ce7(0xb9)]()},_0x4c35a0[_0x19b435]=_0x455c7a);let _0x1ea8f6=_0x3ee01e[_0x19b435];_0x1ea8f6||(_0x1ea8f6={'config':_0x40aa1e[_0x496ce7(0x13b)],'sparklines':new _0x5a61fa(_0x40aa1e['sparklines']['clone']())},_0x3ee01e[_0x19b435]=_0x1ea8f6);const _0x52d737=_0x42d91e(_0x20fc26,{'id':_0x37f67f['id'],'params':_0x87f637});_0x52d737?_0x1ea8f6[_0x496ce7(0xbf)][_0x496ce7(0x11f)](_0x1e82a8,_0x4b63db,_0x52d737):_0x1ea8f6['sparklines'][_0x496ce7(0x11f)](_0x1e82a8,_0x4b63db,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x401d67[_0x496ce7(0xfe)]});}}),_0x448053[_0x536d65(0x8f)]((_0x7a0a53,_0x49f43f,_0x22ef31)=>{const _0x15d9cc=_0x536d65;if(_0x49f43f<=_0x2e3dc8[_0x15d9cc(0xf0)]&&_0x49f43f>=_0x2e3dc8[_0x15d9cc(0xda)]){_0xc9c978[_0x15d9cc(0xc6)](_0x19b435);let _0x2c1e25=_0x4c35a0[_0x19b435];_0x2c1e25||(_0x2c1e25={'config':_0x40aa1e['config'],'sparklines':_0x40aa1e[_0x15d9cc(0xbf)][_0x15d9cc(0xb9)]()},_0x4c35a0[_0x19b435]=_0x2c1e25);let _0x5ba02e=_0x3ee01e[_0x19b435];_0x5ba02e||(_0x5ba02e={'config':_0x40aa1e[_0x15d9cc(0x13b)],'sparklines':new _0x5a61fa(_0x40aa1e['sparklines']['clone']())},_0x3ee01e[_0x19b435]=_0x5ba02e);}});}_0x5ade70['push']({'id':O['id'],'params':{'unitId':_0x4d2879,'subUnitId':_0x100d81,'groupIds':Array[_0x536d65(0xa0)](_0xc9c978),'isSingle':!0x1}}),_0x23d455[_0x536d65(0x117)]({'id':O['id'],'params':{'unitId':_0x4d2879,'subUnitId':_0x100d81,'groupIds':Array['from'](_0xc9c978),'isSingle':!0x1}});const _0x561a83={};let _0x676351=!0x1;return Object[_0x536d65(0x127)](_0x3ee01e)[_0x536d65(0xa9)](([_0xc99b59,_0x5bbd49])=>{const _0x2273e0=_0x536d65;_0x5bbd49[_0x2273e0(0xbf)][_0x2273e0(0xd0)]()&&(_0x676351=!0x0,_0x5bbd49[_0x2273e0(0xbf)][_0x2273e0(0x140)](_0x2e3dc8[_0x2273e0(0xda)],_0x2e3dc8['endColumn']-_0x2e3dc8[_0x2273e0(0xda)]+0x1),_0x561a83[_0xc99b59]={'config':_0x5bbd49[_0x2273e0(0x13b)],'sparklines':_0x5bbd49['sparklines'][_0x2273e0(0xb9)]()});}),_0x676351&&_0x5f3b79[_0x536d65(0x117)]({'id':V['id'],'params':{'unitId':_0x4d2879,'subUnitId':_0x100d81,'sparklineConfigMap':_0x561a83}}),_0x4a64d2[_0x536d65(0x117)]({'id':V['id'],'params':{'unitId':_0x4d2879,'subUnitId':_0x100d81,'sparklineConfigMap':_0x4c35a0}}),{'redos':_0x5f3b79,'undos':_0x4a64d2,'preRedos':_0x23d455,'preUndos':_0x5ade70};}['_initCorrectRangeWithSparkline'](){const _0x191b02=_0x3ef231;this[_0x191b02(0xc4)](this[_0x191b02(0xaf)]['onCommandExecuted'](_0x968343=>{const _0x75f723=_0x191b02;if(_0x968343['id']===_0x56bfca['id']){const _0x47a5ae=_0x968343['params'],{unitId:_0x1dddd1,subUnitId:_0x12c840,range:_0x18db33}=_0x47a5ae,_0x3cede0=_0x18db33['startColumn'],_0x43cb28=_0x18db33['endColumn']-_0x18db33['startColumn']+0x1,_0x67a39b=this[_0x75f723(0x115)][_0x75f723(0xaa)](_0x1dddd1,_0x12c840);if(!_0x67a39b)return;for(const [_0x3bd558,_0x308f36]of _0x67a39b){this[_0x75f723(0x115)][_0x75f723(0xe0)](_0x1dddd1,_0x12c840,_0x3bd558);const _0x32ecae=_0x308f36[_0x75f723(0xbf)];_0x32ecae[_0x75f723(0x8f)]((_0x2f1ab8,_0x158b76,_0x5a2f03)=>{const _0xfc9adb=_0x75f723,_0x1f5fbe={..._0x5a2f03};_0x3cede0<=_0x1f5fbe['startColumn']?(_0x1f5fbe[_0xfc9adb(0xda)]+=_0x43cb28,_0x1f5fbe[_0xfc9adb(0xf0)]+=_0x43cb28):_0x3cede0>_0x1f5fbe[_0xfc9adb(0xf0)]||(_0x1f5fbe[_0xfc9adb(0xf0)]+=_0x43cb28),_0x32ecae[_0xfc9adb(0x11f)](_0x2f1ab8,_0x158b76,_0x1f5fbe);});const _0x154f20=_0x32ecae[_0x75f723(0xce)]();for(const _0x3f87f4 in _0x154f20){const _0x3d3dbe=_0x154f20[Number(_0x3f87f4)];if(!_0x3d3dbe)continue;const _0x3fab79=Object['keys'](_0x3d3dbe)[_0x75f723(0x13e)](Number),_0x23f711=Math[_0x75f723(0xfd)](..._0x3fab79);for(let _0x448bee=_0x23f711;_0x448bee>=_0x3cede0;_0x448bee--)_0x448bee>=_0x3cede0&&_0x3d3dbe[_0x448bee]&&(_0x3d3dbe[_0x448bee+_0x43cb28]=_0x3d3dbe[_0x448bee],delete _0x3d3dbe[_0x448bee]);}this[_0x75f723(0x115)][_0x75f723(0xe5)](_0x1dddd1,_0x12c840,_0x3bd558);}}else{if(_0x968343['id']===_0x857f8f['id']){const _0x420d8a=_0x968343[_0x75f723(0xde)],{unitId:_0x221ec0,subUnitId:_0x504b23,range:_0x5dc731}=_0x420d8a,_0x64f72a=_0x5dc731[_0x75f723(0x136)],_0x413841=_0x5dc731[_0x75f723(0x12d)]-_0x5dc731[_0x75f723(0x136)]+0x1,_0x6d4a66=this[_0x75f723(0x115)][_0x75f723(0xaa)](_0x221ec0,_0x504b23);if(!_0x6d4a66)return;for(const [_0x2a7189,_0x1ee606]of _0x6d4a66){this[_0x75f723(0x115)]['clearSparklineCache'](_0x221ec0,_0x504b23,_0x2a7189);const _0x2f1a6c=_0x1ee606[_0x75f723(0xbf)];_0x2f1a6c['forValue']((_0x27ecab,_0x2161db,_0x4b323f)=>{const _0x395f36=_0x75f723,_0x3d250d={..._0x4b323f};_0x64f72a<=_0x3d250d['startRow']?(_0x3d250d[_0x395f36(0x136)]+=_0x413841,_0x3d250d[_0x395f36(0x12d)]+=_0x413841):_0x64f72a>_0x3d250d[_0x395f36(0x12d)]||(_0x3d250d[_0x395f36(0x12d)]+=_0x413841),_0x2f1a6c[_0x395f36(0x11f)](_0x27ecab,_0x2161db,_0x3d250d);});const _0x4f448f=_0x2f1a6c[_0x75f723(0xce)](),_0x20c543=Object['keys'](_0x4f448f)[_0x75f723(0x13e)](Number),_0xf71970=Math[_0x75f723(0xfd)](..._0x20c543);for(let _0x4da7af=_0xf71970;_0x4da7af>=_0x64f72a;_0x4da7af--)_0x4da7af>=_0x64f72a&&_0x4f448f[_0x4da7af]&&(_0x4f448f[_0x4da7af+_0x413841]=_0x4f448f[_0x4da7af],delete _0x4f448f[_0x4da7af]);this[_0x75f723(0x115)]['updateSparklineExtraNum'](_0x221ec0,_0x504b23,_0x2a7189);}}else{if(_0x968343['id']===_0x37f67f['id']){const _0x209785=_0x968343[_0x75f723(0xde)],{range:_0x320f96,unitId:_0x3d6d68,subUnitId:_0x3caf67}=_0x209785,_0x571f30=this[_0x75f723(0x115)][_0x75f723(0xaa)](_0x3d6d68,_0x3caf67);if(!_0x571f30)return;for(const [_0x3b1ff3,_0x2c317a]of _0x571f30){const _0x5d153c=_0x2c317a[_0x75f723(0xbf)];_0x5d153c[_0x75f723(0x8f)]((_0x24615e,_0x22c40a,_0x531b40)=>{const _0x43b0f3=_0x75f723,_0x112a89=_0x42d91e(_0x531b40,_0x968343);_0x112a89?_0x5d153c[_0x43b0f3(0x11f)](_0x24615e,_0x22c40a,_0x112a89):_0x5d153c['setValue'](_0x24615e,_0x22c40a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x401d67[_0x43b0f3(0xfe)]});}),_0x5d153c[_0x75f723(0x140)](_0x320f96[_0x75f723(0xda)],_0x320f96[_0x75f723(0xf0)]-_0x320f96[_0x75f723(0xda)]+0x1);}this[_0x75f723(0x115)][_0x75f723(0xb7)](_0x3d6d68,_0x3caf67);}else{if(_0x968343['id']===_0x5ba849['id']){const _0x1fbdc9=_0x968343[_0x75f723(0xde)],{range:_0x5d181b,unitId:_0x3ff088,subUnitId:_0x221988}=_0x1fbdc9,_0x4e5718=this['_sparklineDataSourceModel'][_0x75f723(0xaa)](_0x3ff088,_0x221988);if(!_0x4e5718)return;for(const [_0x297fc6,_0x571861]of _0x4e5718){const _0x4aab64=_0x571861[_0x75f723(0xbf)];_0x4aab64[_0x75f723(0x8f)]((_0x1270e1,_0x3a0bf2,_0x579fe9)=>{const _0x1aa086=_0x75f723,_0x30cc2f=_0x42d91e(_0x579fe9,_0x968343);_0x30cc2f?_0x4aab64[_0x1aa086(0x11f)](_0x1270e1,_0x3a0bf2,_0x30cc2f):_0x4aab64['setValue'](_0x1270e1,_0x3a0bf2,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x401d67[_0x1aa086(0xfe)]});}),_0x4aab64[_0x75f723(0xea)](_0x5d181b['startRow'],_0x5d181b[_0x75f723(0x12d)]-_0x5d181b[_0x75f723(0x136)]+0x1);}this[_0x75f723(0x115)][_0x75f723(0xb7)](_0x3ff088,_0x221988);}else{if(_0x968343['id']===_0x26c42d['id']){const _0x4a3fa7=_0x968343[_0x75f723(0xde)],{unitId:_0x52469a,subUnitId:_0x1b055c,sourceRange:_0x44743d,targetRange:_0x2befc8}=_0x4a3fa7,_0xd7d68c=this[_0x75f723(0x115)]['getSubUnitSparkline'](_0x52469a,_0x1b055c);if(!_0xd7d68c)return;for(const [_0x2825d6,_0x8e3361]of _0xd7d68c){const _0x45b1c3=_0x8e3361['sparklines'];_0x45b1c3[_0x75f723(0x8f)]((_0x5d7fb5,_0x1ed72a,_0x232249)=>{const _0x1fb60a=_0x75f723,_0x1566a1=_0x42d91e(_0x232249,_0x968343);_0x1566a1?_0x45b1c3[_0x1fb60a(0x11f)](_0x5d7fb5,_0x1ed72a,_0x1566a1):_0x45b1c3['setValue'](_0x5d7fb5,_0x1ed72a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x401d67[_0x1fb60a(0xfe)]});}),_0x45b1c3[_0x75f723(0x91)](_0x44743d[_0x75f723(0xda)],_0x44743d['endColumn']-_0x44743d[_0x75f723(0xda)]+0x1,_0x2befc8['startColumn']);}this[_0x75f723(0x115)]['reBuildAnchorCache'](_0x52469a,_0x1b055c);}else{if(_0x968343['id']===_0x4cf73b['id']){const _0x3158b4=_0x968343[_0x75f723(0xde)],{unitId:_0x247f59,subUnitId:_0x1cd61c,sourceRange:_0x332fab,targetRange:_0x3d1178}=_0x3158b4,_0x40ecb5=this[_0x75f723(0x115)][_0x75f723(0xaa)](_0x247f59,_0x1cd61c);if(!_0x40ecb5)return;for(const [_0x21632b,_0x25a315]of _0x40ecb5){const _0x585b32=_0x25a315['sparklines'];_0x585b32[_0x75f723(0x8f)]((_0x35ded6,_0xcb3ae1,_0x15ec29)=>{const _0x424a72=_0x75f723,_0xf5d568=_0x42d91e(_0x15ec29,_0x968343);_0xf5d568?_0x585b32['setValue'](_0x35ded6,_0xcb3ae1,_0xf5d568):_0x585b32['setValue'](_0x35ded6,_0xcb3ae1,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x401d67[_0x424a72(0xfe)]});}),_0x585b32[_0x75f723(0xfa)](_0x332fab['startRow'],_0x332fab['endRow']-_0x332fab[_0x75f723(0x136)]+0x1,_0x3d1178[_0x75f723(0x136)]);}this['_sparklineDataSourceModel'][_0x75f723(0xb7)](_0x247f59,_0x1cd61c);}else{if(_0x968343['id']===_0x152322['id']){const _0x48dcb6=_0x968343[_0x75f723(0xde)],{fromRange:_0xeb8f73,toRange:_0x341e2a,unitId:_0x3c3f2a,from:_0x28c4a8,to:_0x1396cf}=_0x48dcb6;if(_0x28c4a8[_0x75f723(0xcf)]!==_0x1396cf[_0x75f723(0xcf)])return;const _0x160463=_0x28c4a8[_0x75f723(0xcf)],{startRow:_0x2cdb1c,endRow:_0x5efe73,startColumn:_0x216113,endColumn:_0x5822dc}=_0xeb8f73,{startRow:_0x4dd074,startColumn:_0x2ea4aa}=_0x341e2a,_0xcd1ced=_0x4dd074-_0x2cdb1c,_0xe4a124=_0x2ea4aa-_0x216113,_0x3108b4=this['_sparklineDataSourceModel'][_0x75f723(0xaa)](_0x3c3f2a,_0x160463);if(!(_0x3108b4!=null&&_0x3108b4[_0x75f723(0xf3)]))return;for(let _0x4d564a=_0x2cdb1c;_0x4d564a<=_0x5efe73;_0x4d564a++)for(let _0x387c75=_0x216113;_0x387c75<=_0x5822dc;_0x387c75++){const _0x2610fc=this['_sparklineDataSourceModel']['getSparkline'](_0x3c3f2a,_0x160463,_0x4d564a,_0x387c75);if(_0x2610fc){const _0x18f260=this['_sparklineDataSourceModel'][_0x75f723(0xf8)](_0x3c3f2a,_0x160463,_0x2610fc);if(_0x18f260){const _0x2f0099=_0x18f260[_0x75f723(0xbf)][_0x75f723(0xa8)](_0x4d564a,_0x387c75);_0x2f0099&&(_0x18f260['sparklines'][_0x75f723(0x11f)](_0x4d564a+_0xcd1ced,_0x387c75+_0xe4a124,_0x2f0099),_0x18f260['sparklines']['realDeleteValue'](_0x4d564a,_0x387c75));}}}for(const [_0x55b984,_0x1bfdd7]of _0x3108b4){const _0x38ae38=_0x1bfdd7[_0x75f723(0xbf)];_0x38ae38[_0x75f723(0x8f)]((_0x2c4a7f,_0x333a64,_0x37df2c)=>{const _0x524a8f=_0x75f723,_0x368ddd={..._0x37df2c};_0x324b2d[_0x524a8f(0x138)](_0xeb8f73,_0x37df2c)&&(_0x368ddd['startRow']+=_0xcd1ced,_0x368ddd[_0x524a8f(0x12d)]+=_0xcd1ced,_0x368ddd['startColumn']+=_0xe4a124,_0x368ddd[_0x524a8f(0xf0)]+=_0xe4a124),_0x38ae38[_0x524a8f(0x11f)](_0x2c4a7f,_0x333a64,_0x368ddd);});}this[_0x75f723(0x115)]['reBuildAnchorCache'](_0x3c3f2a,_0x160463);}}}}}}}}));}};_e=en([de(0x0,_0xb26d9c(_0x5b60fe)),de(0x1,_0xb26d9c(_0x394979)),de(0x2,_0xb26d9c(_0x20e1d9)),de(0x3,_0x3dfacf),de(0x4,_0xb26d9c(y))],_e);var tn=Object[_0x3ef231(0xc8)],nn=Object[_0x3ef231(0x8a)],sn=(_0x46a590,_0x540db0,_0x37e561,_0x5c3dd0)=>{for(var _0x4b4bc4=_0x5c3dd0>0x1?void 0x0:_0x5c3dd0?nn(_0x540db0,_0x37e561):_0x540db0,_0x45d2ab=_0x46a590['length']-0x1,_0x19a2f5;_0x45d2ab>=0x0;_0x45d2ab--)(_0x19a2f5=_0x46a590[_0x45d2ab])&&(_0x4b4bc4=(_0x5c3dd0?_0x19a2f5(_0x540db0,_0x37e561,_0x4b4bc4):_0x19a2f5(_0x4b4bc4))||_0x4b4bc4);return _0x5c3dd0&&_0x4b4bc4&&tn(_0x540db0,_0x37e561,_0x4b4bc4),_0x4b4bc4;},He=(_0x5ce0d0,_0x596cc2)=>(_0x11177a,_0x2507a2)=>_0x596cc2(_0x11177a,_0x2507a2,_0x5ce0d0);let Me=class extends _0xffa94b{constructor(_0x38667c,_0x3fbce2){const _0x4936de=_0x3ef231;super(),this['_resourceManagerService']=_0x38667c,this[_0x4936de(0x115)]=_0x3fbce2,this[_0x4936de(0xdb)]();}[_0x3ef231(0xdb)](){const _0xa37442=_0x3ef231,_0x94442d=_0x219207=>{const _0x3aafa6=_0x10c2,_0x290838=this['_sparklineDataSourceModel'][_0x3aafa6(0x88)](_0x219207);return _0x290838?JSON[_0x3aafa6(0xcd)](_0x290838):'';},_0x24ca38=_0x261207=>_0x261207?JSON[_0xa37442(0x13d)](_0x261207):{};this['disposeWithMe'](this['_resourceManagerService']['registerPluginResource']({'toJson':_0x94442d,'parseJson':_0x24ca38,'pluginName':Ke,'businesses':[_0x40279d[_0xa37442(0xa6)]],'onLoad':(_0x5247fb,_0x370273)=>{const _0x57e2f0=_0xa37442;this[_0x57e2f0(0x115)][_0x57e2f0(0x118)](_0x370273);},'onUnLoad':_0x27d569=>{const _0x192c05=_0xa37442;this[_0x192c05(0x115)][_0x192c05(0xd2)](_0x27d569);}}));}};Me=sn([He(0x0,_0xb26d9c(_0x334d71)),He(0x1,_0xb26d9c(y))],Me);function _0xfca2(){const _0x507eb5=['startColumn','_initSnapshot','onCommandExecuted','registerCommand','params','get','clearSparklineCache','next','_ensureAnchorMatrix','_initExclusiveRangeChange','SELF_EXTREMUM','updateSparklineExtraNum','CONNECT_WITH_LINE','themeType','containHiddenCells','matrix','removeRows','intersects','getSparkline','column','changeDataSourceInfo','21hkAyis','endColumn','_sheetInterceptorService','CUSTOM_EXTREMUM','size','GROUP_EXTREMUM','unitId','7824834TFjFkq','spacing','getSparklineById','toRgbString','moveRows','actualColumn','extremumMin','max','NORMAL','u-connect','row','soft','sheet.command.add-sparkline','specialty','_getRefRangeMutationsByDeleteCols','type','min','getCellRaw','zero_value','highPoint','_univerInstanceService','_sheetSelectionService','number','removeSparkline','MIN_SAFE_INTEGER','markersPoint','169510PbcsWp','SPACING','_initClearWithSparkline','length','rgb(49,106,246)','_sparklineDataSourceModel','_onRefRangeChange','push','fromJSON','interceptCommand','COMMAND','remove','_ensureConfigMap','ZERO_VALUE','setAlpha','setValue','_initDependencies','has','61035sCywmL','78pOuPNc','rgb(54,78,244)','delete','connect_with_line','entries','1122512NNFzIO','sheet.mutation.remove-sparkline','_updateConfig$','LINE_CHART','sheet.mutation.add-sparkline','endRow','_config','symbol','getColVisible','30oJcXXY','_getRefRangeMutationsByDeleteRows','assign','getCurrentUnitForType','ranges','startRow','extremumMax','contains','MAX_SAFE_INTEGER','getRowVisible','config','values','parse','map','subscribe','removeColumns','deepClone','keys','_exclusiveRangeService','_initCopySheetWithSparkline','getSparklineCache','toJSON','PROFIT_AND_LOSS_CHART','getOwnPropertyDescriptor','lastPoint','registerRefRange','addSparkline','_refRangeService','forValue','setSparkline','moveColumns','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','standard','set','refRangeHandle','sparklineModel','107935Wzjadp','disposableCollection','getCurrentSelections','sheet.command.set-sparkline','STANDARD','SOFT','foreach','custom','_injector','from','1437388fhKNMD','SHEET_SPARKLINE_PLUGIN','exclusiveRangesChange$','_initRegisterCommand','pluginName','UNIVER_SHEET','realDeleteValue','getValue','forEach','getSubUnitSparkline','_initHideRowColWithSparkline','_initDataChangeListener','range','nonNumShowAs','_commandService','onReady','dispose','FORCE_STRING','8827984oGAFSj','_initMergeWithSparkline','removePartSparkline','seriesColor','reBuildAnchorCache','sheet.command.remove-sparkline','clone','_sparklineAnchorMap','getSheetBySheetId','fresh','distinctive','BAR_CHART','sparklines','3qfemmk','BOOLEAN','MUTATION','rgb(252,117,60)','disposeWithMe','rgb(46,187,122)','add','rgb(124,66,147)','defineProperty','[Sheet\x20Sparkline]:\x20Invalid\x20target','DISTINCTIVE','u-spacing','groupId','stringify','getMatrix','subUnitId','getSizeOf','STRING','deleteUnit','_sparklineModel','item','PIE_CHART','pushUndoRedo','sparklineAnchorMap','value','asObservable'];_0xfca2=function(){return _0x507eb5;};return _0xfca2();}var ze=Object[_0x3ef231(0xc8)],rn=Object['getOwnPropertyDescriptor'],on=(_0x4b91ba,_0x13d9fb,_0x52cf74)=>_0x13d9fb in _0x4b91ba?ze(_0x4b91ba,_0x13d9fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x52cf74}):_0x4b91ba[_0x13d9fb]=_0x52cf74,an=(_0xa32a47,_0x410f83,_0x552803,_0x19f38b)=>{const _0x1bce34=_0x3ef231;for(var _0x27a390=_0x19f38b>0x1?void 0x0:_0x19f38b?rn(_0x410f83,_0x552803):_0x410f83,_0x518215=_0xa32a47[_0x1bce34(0x113)]-0x1,_0x449f9f;_0x518215>=0x0;_0x518215--)(_0x449f9f=_0xa32a47[_0x518215])&&(_0x27a390=(_0x19f38b?_0x449f9f(_0x410f83,_0x552803,_0x27a390):_0x449f9f(_0x27a390))||_0x27a390);return _0x19f38b&&_0x27a390&&ze(_0x410f83,_0x552803,_0x27a390),_0x27a390;},Be=(_0x5ba662,_0x41fadc)=>(_0x3e7bc8,_0x3e7fb2)=>_0x41fadc(_0x3e7bc8,_0x3e7fb2,_0x5ba662),Je=(_0x5ad920,_0xe75aae,_0x41afb8)=>on(_0x5ad920,typeof _0xe75aae!='symbol'?_0xe75aae+'':_0xe75aae,_0x41afb8);let Re=class extends _0x2b59a7{constructor(_0x5bf175={},_0x3951d2,_0x560cde){const _0x4d910c=_0x3ef231;super(),this[_0x4d910c(0x12e)]=_0x5bf175,this[_0x4d910c(0x9f)]=_0x3951d2,this['_commandService']=_0x560cde,this['_initDependencies'](),this[_0x4d910c(0xa4)]();}[_0x3ef231(0x120)](){const _0x28d993=_0x3ef231;[[y],[ke],[Ce],[he],[_e],[me],[Se],[Me]][_0x28d993(0xa9)](_0x1f1db8=>{const _0x1b2453=_0x28d993;this['_injector'][_0x1b2453(0xc6)](_0x1f1db8);}),_0x5c1daf(this[_0x28d993(0x9f)],[[Me]]);}[_0x3ef231(0xb0)](){const _0x3834ca=_0x3ef231;_0x5c1daf(this[_0x3834ca(0x9f)],[[ke],[Ce],[he],[_e],[me],[Se]]);}['_initRegisterCommand'](){const _0x4c8bf0=_0x3ef231;[yt,V,Pt,O,Ut,xe][_0x4c8bf0(0xa9)](_0x9d7122=>this[_0x4c8bf0(0xaf)][_0x4c8bf0(0xdd)](_0x9d7122));}};Je(Re,_0x3ef231(0xa5),Ke),Je(Re,'type',_0x40279d[_0x3ef231(0xa6)]),Re=an([_0x1884e7(_0x43b521),Be(0x1,_0xb26d9c(_0x403276)),Be(0x2,_0xb26d9c(_0x5b60fe))],Re);export{yt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Pt as RemoveSheetSparklineCommand,O as RemoveSheetSparklineMutation,Ut as SetSheetSparklineCommand,z as SpacialShowAsEnum,y as SparklineDataSourceModel,Ee as SparklineExtremumTypeEnum,gn as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Et as SparklineTypeEnum,Re as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
|
1
|
+
const _0x6f3a42=_0x1307;(function(_0x12193e,_0x4184e9){const _0x2ebccf=_0x1307,_0x2a1ca1=_0x12193e();while(!![]){try{const _0x6c0a7e=-parseInt(_0x2ebccf(0x1c0))/0x1*(parseInt(_0x2ebccf(0x1da))/0x2)+parseInt(_0x2ebccf(0x261))/0x3+parseInt(_0x2ebccf(0x24f))/0x4+-parseInt(_0x2ebccf(0x236))/0x5*(-parseInt(_0x2ebccf(0x277))/0x6)+parseInt(_0x2ebccf(0x25d))/0x7*(parseInt(_0x2ebccf(0x206))/0x8)+parseInt(_0x2ebccf(0x1c4))/0x9+parseInt(_0x2ebccf(0x1e7))/0xa*(-parseInt(_0x2ebccf(0x1f1))/0xb);if(_0x6c0a7e===_0x4184e9)break;else _0x2a1ca1['push'](_0x2a1ca1['shift']());}catch(_0x4a9867){_0x2a1ca1['push'](_0x2a1ca1['shift']());}}}(_0x402a,0x2e945));var Qe=Object[_0x6f3a42(0x243)],en=(_0x4b0e67,_0x4666b7,_0x579add)=>_0x4666b7 in _0x4b0e67?Qe(_0x4b0e67,_0x4666b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x579add}):_0x4b0e67[_0x4666b7]=_0x579add,se=(_0x23f7ca,_0x120c0b,_0x7df96e)=>en(_0x23f7ca,typeof _0x120c0b!=_0x6f3a42(0x21a)?_0x120c0b+'':_0x120c0b,_0x7df96e);import{UniverLicensePlugin as _0x3f8d64}from'@univerjs-pro/license';import{ObjectMatrix as _0x911435,Inject as _0x2262d0,IUniverInstanceService as _0x42589b,Disposable as _0x41dee9,isValidRange as _0x3ff188,CellValueType as _0x92aa6a,ColorKit as _0x3a9c54,CommandType as _0x41cf2d,Range as _0x3f9e81,IUndoRedoService as _0x57e53c,generateRandomId as _0x1baa41,ICommandService as _0x15d849,Tools as _0x39a929,sequenceExecute as _0x3c78b2,Rectangle as _0x26c517,cellToRange as _0x2b41c2,DisposableCollection as _0xe7ab60,RANGE_TYPE as _0x28cb99,UniverInstanceType as _0x51a80e,IResourceManagerService as _0x257dd7,DependentOn as _0x181f51,Injector as _0x3b7693,Plugin as _0x38a4d4,touchDependencies as _0x2e1870}from'@univerjs/core';import{getSheetCommandTarget as _0x2c2d6d,SheetsSelectionsService as _0x4d1630,SheetInterceptorService as _0x2343fc,ClearSelectionAllCommand as _0x41967e,CopySheetCommand as _0x4a02cf,IExclusiveRangeService as _0x41f826,SetRangeValuesMutation as _0x137e5a,ReorderRangeMutation as _0x218098,SetRowHiddenMutation as _0x1e4baf,SetColHiddenMutation as _0x2b275a,SetRowVisibleMutation as _0x125ba5,SetColVisibleMutation as _0x26b05f,AddWorksheetMergeCommand as _0x2fd0f1,RefRangeService as _0xa8ed5b,SetWorksheetActivateCommand as _0x42b32a,RemoveRowCommand as _0xf8b9aa,RemoveColCommand as _0x1bcf57,adjustRangeOnMutation as _0x3039b1,RemoveRowMutation as _0x426ec3,RemoveColMutation as _0xfff20f,InsertColMutation as _0x35d23f,InsertRowMutation as _0x109c08,MoveColsMutation as _0x3b3b3c,MoveRowsMutation as _0x4b597f,MoveRangeMutation as _0x411bde}from'@univerjs/sheets';import{Subject as _0x59ef3a}from'rxjs';function Fe(_0xd07bca,_0x5a9d3e){const _0x529c98=_0x6f3a42,_0x149d7e=new _0x911435(),_0xcac035=[],_0x142fe7=_0xd07bca['length']>0x1;let _0x461014=0x0,_0x29b37f=0x0;for(const _0x384446 of _0xd07bca)_0x461014+=_0x384446[_0x529c98(0x226)]-_0x384446[_0x529c98(0x1fd)]+0x1,_0x29b37f+=_0x384446[_0x529c98(0x249)]-_0x384446[_0x529c98(0x25e)]+0x1;for(const _0x139aff of _0x5a9d3e)for(let _0x5c9062=_0x139aff['startRow'];_0x5c9062<=_0x139aff[_0x529c98(0x226)];_0x5c9062++)for(let _0x150fb1=_0x139aff[_0x529c98(0x25e)];_0x150fb1<=_0x139aff['endColumn'];_0x150fb1++)_0xcac035[_0x529c98(0x202)]({'row':_0x5c9062,'column':_0x150fb1});if(_0xcac035[_0x529c98(0x255)]===_0x461014)_0x142fe7?_0xcac035[_0x529c98(0x273)]((_0x1501c3,_0x3b513b)=>{const _0xebe38c=_0x529c98,_0x53407f=_0xd07bca[_0x3b513b],_0xa6f1c2={'startRow':_0x53407f['startRow'],'startColumn':_0x53407f[_0xebe38c(0x25e)],'endRow':_0x53407f[_0xebe38c(0x1fd)],'endColumn':_0x53407f[_0xebe38c(0x249)]};_0x149d7e[_0xebe38c(0x26c)](_0x1501c3[_0xebe38c(0x1ed)],_0x1501c3[_0xebe38c(0x1c5)],_0xa6f1c2);}):_0xcac035['forEach']((_0x338cb2,_0x2a945d)=>{const _0x477311=_0x529c98,_0x373992=_0xd07bca[0x0],_0x2549a4={'startRow':_0x373992['startRow']+_0x2a945d,'startColumn':_0x373992[_0x477311(0x25e)],'endRow':_0x373992[_0x477311(0x1fd)]+_0x2a945d,'endColumn':_0x373992['endColumn']};_0x149d7e[_0x477311(0x26c)](_0x338cb2[_0x477311(0x1ed)],_0x338cb2['column'],_0x2549a4);});else{if(_0xcac035[_0x529c98(0x255)]===_0x29b37f)_0x142fe7?_0xcac035[_0x529c98(0x273)]((_0x5c751b,_0x54f7cb)=>{const _0x5d613e=_0x529c98,_0x5bdff2=_0xd07bca[_0x54f7cb],_0x252858={'startRow':_0x5bdff2[_0x5d613e(0x1fd)],'startColumn':_0x5bdff2[_0x5d613e(0x25e)],'endRow':_0x5bdff2[_0x5d613e(0x226)],'endColumn':_0x5bdff2[_0x5d613e(0x25e)]};_0x149d7e[_0x5d613e(0x26c)](_0x5c751b[_0x5d613e(0x1ed)],_0x5c751b[_0x5d613e(0x1c5)],_0x252858);}):_0xcac035[_0x529c98(0x273)]((_0x59741f,_0x5fcf48)=>{const _0x5cb1a9=_0x529c98,_0x37fdf8=_0xd07bca[0x0],_0x3bd18e={'startRow':_0x37fdf8[_0x5cb1a9(0x1fd)],'startColumn':_0x37fdf8['startColumn']+_0x5fcf48,'endRow':_0x37fdf8['endRow'],'endColumn':_0x37fdf8[_0x5cb1a9(0x25e)]+_0x5fcf48};_0x149d7e['setValue'](_0x59741f[_0x5cb1a9(0x1ed)],_0x59741f[_0x5cb1a9(0x1c5)],_0x3bd18e);});else{if(_0xcac035[_0x529c98(0x255)]===_0xd07bca[_0x529c98(0x255)])_0xd07bca[_0x529c98(0x1ca)](_0x46c707=>!(_0x46c707[_0x529c98(0x1fd)]!==_0x46c707['endRow']&&_0x46c707['startColumn']!==_0x46c707[_0x529c98(0x249)]))&&_0xcac035[_0x529c98(0x273)]((_0x25fbf9,_0x4c72cf)=>{const _0x5753a1=_0x529c98,_0x341588=_0xd07bca[_0x4c72cf];_0x149d7e['setValue'](_0x25fbf9[_0x5753a1(0x1ed)],_0x25fbf9[_0x5753a1(0x1c5)],_0x341588);});else throw new Error(_0x529c98(0x22c));}}return _0x149d7e;}const Ke=_0x6f3a42(0x20b),Le={'standard':[_0x6f3a42(0x1fc),_0x6f3a42(0x1c2)],'specialty':['rgb(49,106,246)',_0x6f3a42(0x1d6)],'distinctive':['rgb(124,66,147)',_0x6f3a42(0x227)],'soft':[_0x6f3a42(0x258),_0x6f3a42(0x21c)],'fresh':[_0x6f3a42(0x1fe),_0x6f3a42(0x238)]},gt=['highPoint','firstPoint',_0x6f3a42(0x201),_0x6f3a42(0x25b),'negativePoint',_0x6f3a42(0x1ea)];var Xe=(_0x360672=>(_0x360672[_0x6f3a42(0x1c9)]='standard',_0x360672['SPECIALTY']=_0x6f3a42(0x1ee),_0x360672[_0x6f3a42(0x220)]='distinctive',_0x360672[_0x6f3a42(0x1f8)]=_0x6f3a42(0x1f9),_0x360672[_0x6f3a42(0x251)]=_0x6f3a42(0x268),_0x360672[_0x6f3a42(0x21b)]='custom',_0x360672))(Xe||{}),Vn=(_0x5c72cc=>(_0x5c72cc[_0x5c72cc[_0x6f3a42(0x203)]=0x1]=_0x6f3a42(0x203),_0x5c72cc[_0x5c72cc[_0x6f3a42(0x248)]=0x2]=_0x6f3a42(0x248),_0x5c72cc[_0x5c72cc[_0x6f3a42(0x1f3)]=0x3]=_0x6f3a42(0x1f3),_0x5c72cc[_0x5c72cc['PIE_CHART']=0x4]=_0x6f3a42(0x20a),_0x5c72cc))(Vn||{}),z=(_0x162059=>(_0x162059[_0x6f3a42(0x252)]=_0x6f3a42(0x1e5),_0x162059['ZERO_VALUE']=_0x6f3a42(0x234),_0x162059['CONNECT_WITH_LINE']='connect_with_line',_0x162059))(z||{}),Ee=(_0x3a938c=>(_0x3a938c[_0x3a938c[_0x6f3a42(0x1f7)]=0x1]=_0x6f3a42(0x1f7),_0x3a938c[_0x3a938c[_0x6f3a42(0x21e)]=0x2]=_0x6f3a42(0x21e),_0x3a938c[_0x3a938c[_0x6f3a42(0x26b)]=0x3]='CUSTOM_EXTREMUM',_0x3a938c))(Ee||{}),On=Object[_0x6f3a42(0x243)],Nn=Object[_0x6f3a42(0x253)],xn=(_0xffded4,_0x13649f,_0x1f23db,_0x5cf299)=>{const _0x385b04=_0x6f3a42;for(var _0x4ba995=_0x5cf299>0x1?void 0x0:_0x5cf299?Nn(_0x13649f,_0x1f23db):_0x13649f,_0x5bb6f2=_0xffded4[_0x385b04(0x255)]-0x1,_0x4cd12e;_0x5bb6f2>=0x0;_0x5bb6f2--)(_0x4cd12e=_0xffded4[_0x5bb6f2])&&(_0x4ba995=(_0x5cf299?_0x4cd12e(_0x13649f,_0x1f23db,_0x4ba995):_0x4cd12e(_0x4ba995))||_0x4ba995);return _0x5cf299&&_0x4ba995&&On(_0x13649f,_0x1f23db,_0x4ba995),_0x4ba995;},yn=(_0x18a153,_0x3e9b52)=>(_0x2fe2dc,_0x11371a)=>_0x3e9b52(_0x2fe2dc,_0x11371a,_0x18a153);let y=class extends _0x41dee9{constructor(_0xa00bfd){const _0x1bad29=_0x6f3a42;super(),se(this,_0x1bad29(0x1dc),new Map()),se(this,_0x1bad29(0x22d),new Map()),se(this,_0x1bad29(0x266),new _0x59ef3a()),se(this,_0x1bad29(0x23f),this['_updateConfig$'][_0x1bad29(0x262)]()),this['_univerInstanceService']=_0xa00bfd;}['_ensureConfigMap'](_0x521b69,_0x53e281){const _0x552693=_0x6f3a42;let _0x2e2e7d=this['_sparklineModel'][_0x552693(0x22b)](_0x521b69);_0x2e2e7d||(_0x2e2e7d=new Map(),this[_0x552693(0x1dc)]['set'](_0x521b69,_0x2e2e7d));let _0x402a9a=_0x2e2e7d[_0x552693(0x22b)](_0x53e281);return _0x402a9a||(_0x402a9a=new Map(),_0x2e2e7d[_0x552693(0x1cc)](_0x53e281,_0x402a9a)),_0x402a9a;}[_0x6f3a42(0x1cf)](_0x283f62,_0x1e05a4){const _0xb7c673=_0x6f3a42;let _0x135c30=this['_sparklineAnchorMap'][_0xb7c673(0x22b)](_0x283f62);_0x135c30||(_0x135c30=new Map(),this[_0xb7c673(0x22d)][_0xb7c673(0x1cc)](_0x283f62,_0x135c30));let _0x3e86f8=_0x135c30[_0xb7c673(0x22b)](_0x1e05a4);return _0x3e86f8||(_0x3e86f8={'matrix':new _0x911435(),'extra':{}},_0x135c30['set'](_0x1e05a4,_0x3e86f8)),_0x3e86f8;}[_0x6f3a42(0x221)](_0x39428e,_0x2fe9bb,_0x3e0c37,_0x5c33fa=_0x6f3a42(0x1cc)){const _0x29b240=_0x6f3a42;var _0x530ae9,_0x25116a,_0x1bc852,_0x11e73b,_0x21fdb9,_0x32dd9a,_0x1d76e7,_0x188575,_0x52d04f,_0x3df074,_0x40ef5b,_0x37efa2,_0x1439e1;const _0x58557c=(_0x25116a=(_0x530ae9=this[_0x29b240(0x1dc)]['get'](_0x39428e))==null?void 0x0:_0x530ae9['get'](_0x2fe9bb))==null?void 0x0:_0x25116a[_0x29b240(0x22b)](_0x3e0c37);if(!_0x58557c)return;const _0x3fe3cd=_0x2c2d6d(this[_0x29b240(0x1eb)],{'unitId':_0x39428e,'subUnitId':_0x2fe9bb});if(!_0x3fe3cd)throw new Error(_0x29b240(0x1cd));const _0x4fe418=this['_ensureAnchorMatrix'](_0x39428e,_0x2fe9bb),{extra:_0x5de480,matrix:_0x366320}=_0x4fe418,{worksheet:_0x400e54}=_0x3fe3cd;let _0x74c719=Number['MIN_SAFE_INTEGER'],_0x5c5f9a=Number[_0x29b240(0x1ce)];const _0x3be762=(_0x1bc852=_0x58557c[_0x29b240(0x265)][_0x29b240(0x235)])!=null?_0x1bc852:!0x1;_0x58557c[_0x29b240(0x239)]['forValue']((_0x303ec2,_0x3c7f18,_0x4a69c3)=>{const _0x77c82e=_0x29b240;var _0x3fc030,_0x72a445,_0x5d2d0f;const _0x15deb3=_0x4a69c3;let _0x14d19f=Number[_0x77c82e(0x1bd)],_0x601cfc=Number[_0x77c82e(0x1ce)],_0x27b733=0x0,_0x53575b=0x0;const _0x236151=[];if(!_0x3ff188(_0x15deb3))_0x366320[_0x77c82e(0x26c)](_0x303ec2,_0x3c7f18,{'groupId':_0x3e0c37,'data':[],'max':_0x14d19f,'min':_0x601cfc,'highIndex':_0x27b733,'lowIndex':_0x53575b,'negativeIndexes':_0x236151});else{const _0x47620a=[];for(let _0x2d9d22=_0x15deb3[_0x77c82e(0x1fd)];_0x2d9d22<=_0x15deb3[_0x77c82e(0x226)];_0x2d9d22++){for(let _0x5c0e1f=_0x15deb3[_0x77c82e(0x25e)];_0x5c0e1f<=_0x15deb3[_0x77c82e(0x249)];_0x5c0e1f++){const _0x3a4ebf=_0x400e54['getRowVisible'](_0x2d9d22),_0x44bd37=_0x400e54[_0x77c82e(0x1f4)](_0x5c0e1f);if(!_0x3be762&&(!_0x3a4ebf||!_0x44bd37))continue;let _0xf48cc8=0x0;const _0x5ebe7c=((_0x3fc030=_0x400e54['getCellRaw'](_0x2d9d22,_0x5c0e1f))==null?void 0x0:_0x3fc030['v'])!==void 0x0?_0x400e54[_0x77c82e(0x24d)](_0x2d9d22,_0x5c0e1f):_0x400e54['getCell'](_0x2d9d22,_0x5c0e1f);if(!_0x5ebe7c||_0x5ebe7c['v']===void 0x0||_0x5ebe7c['v']===null){const _0x3e7606=(_0x72a445=_0x58557c[_0x77c82e(0x265)][_0x77c82e(0x1f0)])!=null?_0x72a445:z[_0x77c82e(0x252)];_0x3e7606===z[_0x77c82e(0x1e4)]?_0xf48cc8=0x0:_0x3e7606===z[_0x77c82e(0x252)]?_0xf48cc8='u-spacing':_0x3e7606===z['CONNECT_WITH_LINE']&&(_0xf48cc8=_0x77c82e(0x205));}else{if(_0x5ebe7c['t']===_0x92aa6a[_0x77c82e(0x1de)]||_0x5ebe7c['t']===_0x92aa6a['FORCE_STRING']){const _0x32fe01=(_0x5d2d0f=_0x58557c[_0x77c82e(0x265)][_0x77c82e(0x222)])!=null?_0x5d2d0f:z[_0x77c82e(0x252)];_0x32fe01===z['ZERO_VALUE']?_0xf48cc8=0x0:_0x32fe01===z[_0x77c82e(0x252)]?_0xf48cc8=_0x77c82e(0x1d7):_0x32fe01===z['CONNECT_WITH_LINE']&&(_0xf48cc8=_0x77c82e(0x205));}else _0x5ebe7c['t']===_0x92aa6a[_0x77c82e(0x23b)]?_0xf48cc8=_0x5ebe7c['v']?0x1:0x0:_0xf48cc8=_0x5ebe7c['v'];}if(_0x47620a['push'](_0xf48cc8),typeof _0xf48cc8==_0x77c82e(0x240)){_0x14d19f=Math[_0x77c82e(0x1c8)](_0x14d19f,_0xf48cc8),_0x74c719=Math[_0x77c82e(0x1c8)](_0x74c719,_0xf48cc8),_0x5c5f9a=Math[_0x77c82e(0x1ec)](_0x5c5f9a,_0xf48cc8),_0x601cfc=Math[_0x77c82e(0x1ec)](_0x601cfc,_0xf48cc8);const _0x29b78c=typeof _0x47620a[_0x27b733]=='number'?Number(_0x47620a[_0x27b733]):Number['MIN_SAFE_INTEGER'];_0xf48cc8>_0x29b78c&&(_0x27b733=_0x47620a[_0x77c82e(0x255)]-0x1);const _0x23c7b0=typeof _0x47620a[_0x53575b]==_0x77c82e(0x240)?Number(_0x47620a[_0x53575b]):Number[_0x77c82e(0x1ce)];_0xf48cc8<_0x23c7b0&&(_0x53575b=_0x47620a['length']-0x1),_0xf48cc8<0x0&&_0x236151[_0x77c82e(0x202)](_0x47620a['length']-0x1);}}_0x366320[_0x77c82e(0x26c)](_0x303ec2,_0x3c7f18,{'groupId':_0x3e0c37,'data':_0x47620a,'max':_0x14d19f,'min':_0x601cfc,'highIndex':_0x27b733,'lowIndex':_0x53575b,'negativeIndexes':_0x236151});}}});let _0x5d03b3=_0x74c719;((_0x11e73b=_0x58557c[_0x29b240(0x265)][_0x29b240(0x1c3)])==null?void 0x0:_0x11e73b[_0x29b240(0x200)])===Ee[_0x29b240(0x26b)]&&(_0x5d03b3=(_0x32dd9a=(_0x21fdb9=_0x58557c[_0x29b240(0x265)][_0x29b240(0x1c3)])==null?void 0x0:_0x21fdb9[_0x29b240(0x1fb)])!=null?_0x32dd9a:_0x74c719);let _0x4c85d0=_0x5c5f9a;((_0x1d76e7=_0x58557c['config'][_0x29b240(0x20e)])==null?void 0x0:_0x1d76e7[_0x29b240(0x200)])===Ee[_0x29b240(0x26b)]&&(_0x4c85d0=(_0x52d04f=(_0x188575=_0x58557c['config'][_0x29b240(0x20e)])==null?void 0x0:_0x188575[_0x29b240(0x1fb)])!=null?_0x52d04f:_0x5c5f9a);const _0x153b34=(_0x3df074=_0x58557c['config'][_0x29b240(0x20d)])!=null?_0x3df074:Xe['STANDARD'],_0x2ef46f=(_0x1439e1=(_0x37efa2=_0x58557c[_0x29b240(0x265)]['seriesColor'])!=null?_0x37efa2:(_0x40ef5b=Le[_0x153b34])==null?void 0x0:_0x40ef5b[0x0])!=null?_0x1439e1:Le[_0x29b240(0x228)][0x0],_0x519f2a=new _0x3a9c54(_0x2ef46f),_0x35d9df=_0x519f2a[_0x29b240(0x1d8)](0.2)[_0x29b240(0x210)](),_0x4739fa=_0x519f2a[_0x29b240(0x1d8)](0.05)['toRgbString']();_0x5de480[_0x3e0c37]={'groupMax':_0x74c719,'groupMin':_0x5c5f9a,'showMax':_0x5d03b3,'showMin':_0x4c85d0,'startGradient':_0x35d9df,'endGradient':_0x4739fa},this[_0x29b240(0x266)][_0x29b240(0x260)]({'unitId':_0x39428e,'subUnitId':_0x2fe9bb,'groupId':_0x3e0c37,'config':_0x58557c,'type':_0x5c33fa});}[_0x6f3a42(0x1c1)](_0x407e21,_0x123031,_0x5c08a4,_0x3310bf){const _0x878575=_0x6f3a42;this[_0x878575(0x1e2)](_0x407e21,_0x123031)[_0x878575(0x1cc)](_0x5c08a4,_0x3310bf),this[_0x878575(0x221)](_0x407e21,_0x123031,_0x5c08a4,_0x878575(0x1d4));}[_0x6f3a42(0x1db)](_0x3ccb70,_0x4686bb,_0x446aa8,_0x4b5fba){const _0x52ec34=_0x6f3a42;var _0xcb5d2a;const _0x14b0e0=(_0xcb5d2a=this['_sparklineModel'][_0x52ec34(0x22b)](_0x3ccb70))==null?void 0x0:_0xcb5d2a[_0x52ec34(0x22b)](_0x4686bb);_0x446aa8['forEach'](_0x7a3a9=>{const _0x16b929=_0x52ec34;_0x14b0e0!=null&&_0x14b0e0[_0x16b929(0x26a)](_0x7a3a9)&&(_0x14b0e0['set'](_0x7a3a9,_0x4b5fba),this['updateSparklineExtraNum'](_0x3ccb70,_0x4686bb,_0x7a3a9));});}[_0x6f3a42(0x275)](_0x3747fc,_0x480c65,_0x374d17){const _0x216cc2=_0x6f3a42;var _0x5f1ea7,_0x52df56;const _0x3f38d9=this[_0x216cc2(0x1dc)][_0x216cc2(0x22b)](_0x3747fc);if(_0x3f38d9){const _0x51a1e4=_0x3f38d9[_0x216cc2(0x22b)](_0x480c65);if(_0x51a1e4){_0x51a1e4['delete'](_0x374d17);const _0x5bf8fc=(_0x5f1ea7=this['_sparklineAnchorMap'][_0x216cc2(0x22b)](_0x3747fc))==null?void 0x0:_0x5f1ea7['get'](_0x480c65);(_0x52df56=_0x5bf8fc==null?void 0x0:_0x5bf8fc[_0x216cc2(0x25c)])==null||_0x52df56[_0x216cc2(0x263)]((_0x3eb5fd,_0x217128,_0x47f2ed)=>{const _0x41f220=_0x216cc2;(_0x47f2ed==null?void 0x0:_0x47f2ed[_0x41f220(0x204)])===_0x374d17&&(_0x5bf8fc==null||_0x5bf8fc[_0x41f220(0x25c)][_0x41f220(0x212)](_0x3eb5fd,_0x217128));}),this[_0x216cc2(0x266)][_0x216cc2(0x260)]({'unitId':_0x3747fc,'subUnitId':_0x480c65,'groupId':_0x374d17,'type':'remove'});}}}[_0x6f3a42(0x21f)](_0x2b8807,_0x3d90f4,_0x59175c,_0x1a77d9){const _0x1b2e23=_0x6f3a42;var _0xa77c2b,_0xb0fef5,_0x19c7f0,_0x1c51d9;const _0x4f0be6=(_0xa77c2b=this[_0x1b2e23(0x22d)]['get'](_0x2b8807))==null?void 0x0:_0xa77c2b[_0x1b2e23(0x22b)](_0x3d90f4),_0x1f5471=_0x4f0be6==null?void 0x0:_0x4f0be6[_0x1b2e23(0x25c)][_0x1b2e23(0x22a)](_0x59175c,_0x1a77d9);if(_0x1f5471){const {groupId:_0x3e3740}=_0x1f5471,_0x4bce26=(_0xb0fef5=this[_0x1b2e23(0x1dc)]['get'](_0x2b8807))==null?void 0x0:_0xb0fef5[_0x1b2e23(0x22b)](_0x3d90f4);(_0x19c7f0=_0x4bce26==null?void 0x0:_0x4bce26['get'](_0x3e3740))==null||_0x19c7f0['sparklines'][_0x1b2e23(0x212)](_0x59175c,_0x1a77d9),(_0x1c51d9=_0x4bce26==null?void 0x0:_0x4bce26['get'](_0x3e3740))!=null&&_0x1c51d9[_0x1b2e23(0x239)][_0x1b2e23(0x244)]()||_0x4bce26==null||_0x4bce26[_0x1b2e23(0x216)](_0x3e3740),_0x4f0be6==null||_0x4f0be6[_0x1b2e23(0x25c)][_0x1b2e23(0x212)](_0x59175c,_0x1a77d9),this[_0x1b2e23(0x266)][_0x1b2e23(0x260)]({'unitId':_0x2b8807,'subUnitId':_0x3d90f4,'groupId':_0x3e3740,'type':_0x1b2e23(0x267)});}}['clearSparklineCache'](_0x2d7dc8,_0x53fed7,_0x317f03){const _0x480da3=_0x6f3a42;var _0x7e3916,_0x4f3582,_0x6382ec,_0x20d171;const _0x1ae460=(_0x6382ec=(_0x4f3582=(_0x7e3916=this[_0x480da3(0x1dc)][_0x480da3(0x22b)](_0x2d7dc8))==null?void 0x0:_0x7e3916[_0x480da3(0x22b)](_0x53fed7))==null?void 0x0:_0x4f3582['get'](_0x317f03))==null?void 0x0:_0x6382ec[_0x480da3(0x239)],_0xbc4998=(_0x20d171=this['_sparklineAnchorMap'][_0x480da3(0x22b)](_0x2d7dc8))==null?void 0x0:_0x20d171['get'](_0x53fed7);if(_0x1ae460&&_0xbc4998){const {matrix:_0x11d279,extra:_0x2563ac}=_0xbc4998;_0x1ae460['forValue']((_0xfcfdbb,_0x4c21ad,_0x3e9224)=>{_0x11d279['realDeleteValue'](_0xfcfdbb,_0x4c21ad);}),delete _0x2563ac[_0x317f03];}}['getSubUnitSparkline'](_0x40a5d5,_0x37bd22){const _0x15a8f1=_0x6f3a42;var _0x1ef5ea;return(_0x1ef5ea=this[_0x15a8f1(0x1dc)][_0x15a8f1(0x22b)](_0x40a5d5))==null?void 0x0:_0x1ef5ea[_0x15a8f1(0x22b)](_0x37bd22);}[_0x6f3a42(0x231)](_0x1df825,_0x5199b0,_0x26ea69){const _0x4fd88b=_0x6f3a42;var _0x2366c9,_0x5edf40;return(_0x5edf40=(_0x2366c9=this['_sparklineModel'][_0x4fd88b(0x22b)](_0x1df825))==null?void 0x0:_0x2366c9[_0x4fd88b(0x22b)](_0x5199b0))==null?void 0x0:_0x5edf40[_0x4fd88b(0x22b)](_0x26ea69);}[_0x6f3a42(0x214)](_0x204af4,_0x45c350,_0x80cbf6,_0x110261){const _0x1fa165=_0x6f3a42;var _0x4a1b44,_0x2dd8fe,_0x3eca15;return(_0x3eca15=(_0x2dd8fe=(_0x4a1b44=this[_0x1fa165(0x22d)][_0x1fa165(0x22b)](_0x204af4))==null?void 0x0:_0x4a1b44[_0x1fa165(0x22b)](_0x45c350))==null?void 0x0:_0x2dd8fe[_0x1fa165(0x25c)][_0x1fa165(0x22a)](_0x80cbf6,_0x110261))==null?void 0x0:_0x3eca15['groupId'];}[_0x6f3a42(0x276)](_0x3ae51b,_0x5854c1){const _0x40ce3f=_0x6f3a42;var _0x50892c;const _0x47b492=this[_0x40ce3f(0x1cf)](_0x3ae51b,_0x5854c1);_0x47b492[_0x40ce3f(0x25c)]['forValue']((_0x29f241,_0x2537d1,_0x2d2ce6)=>{const _0x1f6a2c=_0x40ce3f;_0x47b492['matrix'][_0x1f6a2c(0x212)](_0x29f241,_0x2537d1);});const _0x27928a=(_0x50892c=this['_sparklineModel'][_0x40ce3f(0x22b)](_0x3ae51b))==null?void 0x0:_0x50892c[_0x40ce3f(0x22b)](_0x5854c1);if(_0x27928a){for(const [_0x4359d5,_0x1dc089]of _0x27928a)this[_0x40ce3f(0x221)](_0x3ae51b,_0x5854c1,_0x4359d5);}}[_0x6f3a42(0x25a)](){const _0x18de55=_0x6f3a42;return{'sparklineModel':this[_0x18de55(0x1dc)],'sparklineAnchorMap':this[_0x18de55(0x22d)]};}[_0x6f3a42(0x24a)](_0x50d37f){const _0x3b87de=_0x6f3a42,_0x16a394={};if(this[_0x3b87de(0x1dc)][_0x3b87de(0x26a)](_0x50d37f)){_0x16a394[_0x50d37f]={};const _0x18897a=this[_0x3b87de(0x1dc)][_0x3b87de(0x22b)](_0x50d37f);_0x18897a!=null&&_0x18897a['size']&&Array[_0x3b87de(0x224)](_0x18897a[_0x3b87de(0x232)]())[_0x3b87de(0x273)](_0x17d977=>{const _0x88c041=_0x3b87de;_0x16a394[_0x50d37f][_0x17d977]={};const _0x284d24=_0x18897a[_0x88c041(0x22b)](_0x17d977);_0x284d24!=null&&_0x284d24[_0x88c041(0x215)]&&Array[_0x88c041(0x224)](_0x284d24['keys']())[_0x88c041(0x273)](_0x269a47=>{const _0x16b6a6=_0x88c041,_0x3246f2=_0x284d24[_0x16b6a6(0x22b)](_0x269a47);_0x3246f2&&(_0x16a394[_0x50d37f][_0x17d977][_0x269a47]={'config':_0x3246f2[_0x16b6a6(0x265)],'sparklines':_0x3246f2['sparklines'][_0x16b6a6(0x23e)]()});});});}return _0x16a394;}[_0x6f3a42(0x1d1)](_0x4624f0){const _0x5dc073=_0x6f3a42;if(!_0x4624f0)return;Object['keys'](_0x4624f0)[_0x5dc073(0x273)](_0x486811=>{const _0x25a10c=_0x5dc073,_0x548347=_0x4624f0[_0x486811];_0x548347&&Object['keys'](_0x548347)[_0x25a10c(0x273)](_0x2687cb=>{const _0x2045ee=_0x25a10c,_0x53819c=_0x548347[_0x2687cb];_0x53819c&&Object[_0x2045ee(0x232)](_0x53819c)[_0x2045ee(0x273)](_0xeeb72d=>{const _0x1e44e3=_0x2045ee,_0x50475b=_0x53819c[_0xeeb72d];if(_0x50475b){const _0x32f425={'config':_0x50475b[_0x1e44e3(0x265)],'sparklines':new _0x911435(_0x50475b[_0x1e44e3(0x239)])};this['addSparkline'](_0x486811,_0x2687cb,_0xeeb72d,_0x32f425);}});});});}[_0x6f3a42(0x20c)](_0x14dc55){const _0x34e813=_0x6f3a42,_0x108620=this[_0x34e813(0x1dc)][_0x34e813(0x22b)](_0x14dc55);if(_0x108620){for(const [_0x570316]of _0x108620){const _0x2894be=_0x108620[_0x34e813(0x22b)](_0x570316);if(_0x2894be){for(const [_0x213e22]of _0x2894be)this[_0x34e813(0x1bf)](_0x14dc55,_0x570316,_0x213e22);}}this[_0x34e813(0x1dc)][_0x34e813(0x216)](_0x14dc55);}}};y=xn([yn(0x0,_0x2262d0(_0x42589b))],y);const V={'id':_0x6f3a42(0x22e),'type':_0x41cf2d[_0x6f3a42(0x1c7)],'handler':(_0x4c4777,_0x47ee36)=>{const _0x2dfd4a=_0x6f3a42;if(!_0x47ee36)return!0x1;const {sparklineConfigMap:_0x40feb1,unitId:_0x5ecc43,subUnitId:_0x4f96f6}=_0x47ee36,_0x50b243=_0x4c4777[_0x2dfd4a(0x22b)](y);return Object[_0x2dfd4a(0x25f)](_0x40feb1)[_0x2dfd4a(0x273)](([_0x1f6f17,_0x32a919])=>{const _0x5e058a=_0x2dfd4a,_0x279e51={'config':_0x32a919['config'],'sparklines':new _0x911435(_0x32a919['sparklines'])};_0x50b243[_0x5e058a(0x1c1)](_0x5ecc43,_0x4f96f6,_0x1f6f17,_0x279e51);}),!0x0;}},O={'id':_0x6f3a42(0x26e),'type':_0x41cf2d[_0x6f3a42(0x1c7)],'handler':(_0x5e173d,_0x3c07c2)=>{const _0x5e6068=_0x6f3a42;if(!_0x3c07c2)return!0x1;const {unitId:_0x37738e,subUnitId:_0x59b7f2,ranges:_0x3c01e7,isSingle:_0x1789aa,groupIds:_0x7570c0}=_0x3c07c2,_0x30eabe=_0x5e173d[_0x5e6068(0x22b)](y);return _0x7570c0?(_0x7570c0[_0x5e6068(0x273)](_0x173071=>{const _0xdaafa7=_0x5e6068;_0x30eabe[_0xdaafa7(0x275)](_0x37738e,_0x59b7f2,_0x173071);}),!0x0):_0x3c01e7?(_0x3c01e7[_0x5e6068(0x273)](_0x43f021=>{const _0x1e8194=_0x5e6068;_0x3f9e81[_0x1e8194(0x23d)](_0x43f021,(_0x253376,_0xf0f634)=>{const _0x279e14=_0x1e8194,_0x2cbbd2=_0x30eabe['getSparkline'](_0x37738e,_0x59b7f2,_0x253376,_0xf0f634);_0x2cbbd2&&(_0x1789aa?_0x30eabe['removePartSparkline'](_0x37738e,_0x59b7f2,_0x253376,_0xf0f634):_0x30eabe[_0x279e14(0x275)](_0x37738e,_0x59b7f2,_0x2cbbd2));});}),!0x0):!0x1;}},Pn={'id':_0x6f3a42(0x209),'type':_0x41cf2d[_0x6f3a42(0x1ff)],'handler':(_0xf7ce22,_0x13748b)=>{const _0x46615c=_0x6f3a42;if(!_0x13748b)return!0x1;const {sourceRanges:_0x57fcb8,targetRanges:_0x5e2cf1,config:_0x26b504}=_0x13748b,_0x3eb3a5=_0xf7ce22[_0x46615c(0x22b)](_0x57e53c),_0x3df08a='g_'+_0x1baa41(0x6),_0xbbedbf=Fe(_0x57fcb8,_0x5e2cf1),_0x290203={'config':_0x26b504!=null?_0x26b504:{},'sparklines':_0xbbedbf[_0x46615c(0x23e)]()},_0x3b4d8f=_0xf7ce22[_0x46615c(0x22b)](_0x42589b),_0x435d3c=_0xf7ce22[_0x46615c(0x22b)](y),_0x43454d=_0x2c2d6d(_0x3b4d8f);if(!_0x43454d)return!0x1;const {unitId:_0x37e35d,subUnitId:_0x2daabc}=_0x43454d,_0x47a56d=_0xf7ce22[_0x46615c(0x22b)](_0x15d849),_0x1372d6=[],_0x5c47ea=[],_0xbeb9fa={},_0x52c6b2={},_0x432feb=new Set([_0x3df08a]);_0xbbedbf['forValue']((_0x1483a0,_0x54d9c2,_0x4f680c)=>{const _0x460578=_0x46615c,_0x44eab9=_0x435d3c[_0x460578(0x214)](_0x37e35d,_0x2daabc,_0x1483a0,_0x54d9c2);if(_0x44eab9){const _0x5802cc=_0x435d3c[_0x460578(0x231)](_0x37e35d,_0x2daabc,_0x44eab9);if(_0x5802cc){_0x432feb['add'](_0x44eab9);let _0x3bee9b=_0xbeb9fa[_0x44eab9],_0xfbb39b=_0x52c6b2[_0x44eab9];_0xfbb39b||(_0xfbb39b={'config':_0x39a929[_0x460578(0x1d0)](_0x5802cc['config']),'sparklines':new _0x911435(_0x5802cc[_0x460578(0x239)][_0x460578(0x1be)]())},_0x52c6b2[_0x44eab9]=_0xfbb39b),_0x3bee9b||(_0x3bee9b={'config':_0x39a929['deepClone'](_0x5802cc[_0x460578(0x265)]),'sparklines':_0x5802cc[_0x460578(0x239)][_0x460578(0x1be)]()},_0xbeb9fa[_0x44eab9]=_0x3bee9b),_0xfbb39b['sparklines'][_0x460578(0x212)](_0x1483a0,_0x54d9c2);}}});const _0x3d6501={};return Object['entries'](_0x52c6b2)[_0x46615c(0x273)](([_0x858e4,_0x34f0b6])=>{const _0x1364ac=_0x46615c;_0x34f0b6['sparklines'][_0x1364ac(0x264)]()&&(_0x3d6501[_0x858e4]={'config':_0x34f0b6[_0x1364ac(0x265)],'sparklines':_0x34f0b6[_0x1364ac(0x239)][_0x1364ac(0x1be)]()});}),_0x3d6501[_0x3df08a]=_0x290203,_0x1372d6[_0x46615c(0x202)]({'id':O['id'],'params':{'unitId':_0x37e35d,'subUnitId':_0x2daabc,'groupIds':Array['from'](_0x432feb),'isSingle':!0x1}}),_0x432feb[_0x46615c(0x215)]>0x1&&(_0x5c47ea[_0x46615c(0x202)]({'id':O['id'],'params':{'unitId':_0x37e35d,'subUnitId':_0x2daabc,'groupIds':Array[_0x46615c(0x224)](_0x432feb),'isSingle':!0x1}}),_0x1372d6[_0x46615c(0x202)]({'id':V['id'],'params':{'unitId':_0x37e35d,'subUnitId':_0x2daabc,'sparklineConfigMap':_0xbeb9fa}})),_0x5c47ea['push']({'id':V['id'],'params':{'unitId':_0x37e35d,'subUnitId':_0x2daabc,'sparklineConfigMap':_0x3d6501}}),_0x3c78b2(_0x5c47ea,_0x47a56d),_0x3eb3a5['pushUndoRedo']({'unitID':_0x37e35d,'undoMutations':_0x1372d6,'redoMutations':_0x5c47ea}),!0x0;}},Un={'id':_0x6f3a42(0x1df),'type':_0x41cf2d[_0x6f3a42(0x1ff)],'handler':(_0x496348,_0x13f044)=>{const _0x5c6dfc=_0x6f3a42;var _0x3ea77c;const {isSingle:_0x4c801c=!0x0}=_0x13f044||{},_0x20d604=_0x496348[_0x5c6dfc(0x22b)](_0x15d849),_0x50bb61=_0x496348[_0x5c6dfc(0x22b)](_0x42589b),_0x4f576c=_0x496348[_0x5c6dfc(0x22b)](y),_0x51c951=_0x496348['get'](_0x57e53c),_0xca6b71=_0x2c2d6d(_0x50bb61);if(!_0xca6b71)return!0x1;const _0x3f79b0=_0x496348['get'](_0x4d1630),_0x180cac=(_0x3ea77c=_0x13f044==null?void 0x0:_0x13f044[_0x5c6dfc(0x208)])!=null?_0x3ea77c:_0x3f79b0[_0x5c6dfc(0x1fa)]()[_0x5c6dfc(0x24b)](_0x115337=>_0x115337[_0x5c6dfc(0x21d)]),{unitId:_0x2ac688,subUnitId:_0x7a56c}=_0xca6b71,_0x29e90b=[],_0x3ad12f=[];_0x29e90b[_0x5c6dfc(0x202)]({'id':O['id'],'params':{'unitId':_0x2ac688,'subUnitId':_0x7a56c,'ranges':_0x180cac,'isSingle':_0x4c801c}});const _0x38b1bc=[],_0x415f25={};return _0x180cac['forEach'](_0x14456f=>{const _0x26ace=_0x5c6dfc;_0x3f9e81[_0x26ace(0x23d)](_0x14456f,(_0x42a70e,_0x31fa7c)=>{const _0x202c0a=_0x26ace,_0x59c16e=_0x4f576c[_0x202c0a(0x214)](_0x2ac688,_0x7a56c,_0x42a70e,_0x31fa7c);if(_0x59c16e){const _0x2df6d9=_0x4f576c[_0x202c0a(0x231)](_0x2ac688,_0x7a56c,_0x59c16e);_0x2df6d9&&(_0x38b1bc[_0x202c0a(0x202)](_0x59c16e),_0x415f25[_0x59c16e]={'config':_0x39a929['deepClone'](_0x2df6d9['config']),'sparklines':_0x39a929[_0x202c0a(0x1d0)](_0x2df6d9[_0x202c0a(0x239)][_0x202c0a(0x1be)]())});}});}),_0x3ad12f['push']({'id':O['id'],'params':{'unitId':_0x2ac688,'subUnitId':_0x7a56c,'groupIds':_0x38b1bc,'isSingle':!0x1}}),_0x3ad12f[_0x5c6dfc(0x202)]({'id':V['id'],'params':{'unitId':_0x2ac688,'subUnitId':_0x7a56c,'sparklineConfigMap':_0x415f25}}),_0x3c78b2(_0x29e90b,_0x20d604),_0x51c951['pushUndoRedo']({'unitID':_0x2ac688,'undoMutations':_0x3ad12f,'redoMutations':_0x29e90b}),!0x0;}},xe={'id':'sheet.mutation.set-sparkline','type':_0x41cf2d[_0x6f3a42(0x1c7)],'handler':(_0x5285b8,_0x5c78d4)=>{const _0x451aca=_0x6f3a42;if(!_0x5c78d4)return!0x1;const {unitId:_0x48af51,subUnitId:_0x501745,groupIds:_0xc3cbc,config:_0xfa9176}=_0x5c78d4,_0x34980a=_0x5285b8['get'](y);return _0xc3cbc[_0x451aca(0x273)](_0xd1f408=>{const _0x463781=_0x451aca,_0x386ad6=_0x34980a['getSparklineById'](_0x48af51,_0x501745,_0xd1f408);if(_0x386ad6){const _0x40a947={'config':Object['assign']({},_0x386ad6[_0x463781(0x265)],_0xfa9176[_0x463781(0x265)]),'sparklines':new _0x911435(_0x386ad6[_0x463781(0x239)][_0x463781(0x1be)]())};_0x34980a[_0x463781(0x1db)](_0x48af51,_0x501745,[_0xd1f408],_0x40a947);}}),!0x0;}},Tn={'id':_0x6f3a42(0x246),'type':_0x41cf2d[_0x6f3a42(0x1ff)],'handler':(_0x12e260,_0x5c4699)=>{const _0x47b4f1=_0x6f3a42;var _0x5c6c64,_0x1bf54a,_0x34e9c8,_0x21d9ec;if(!_0x5c4699)return!0x1;const _0x450bbf=_0x12e260[_0x47b4f1(0x22b)](_0x15d849),_0x4d829d=_0x12e260[_0x47b4f1(0x22b)](_0x4d1630),_0x5c0d37=_0x12e260[_0x47b4f1(0x22b)](y),_0x15a066=_0x12e260[_0x47b4f1(0x22b)](_0x42589b),_0xcecd7f=_0x12e260[_0x47b4f1(0x22b)](_0x57e53c),_0x434048=_0x2c2d6d(_0x15a066);if(!_0x434048)return!0x1;const {unitId:_0xb8a345,subUnitId:_0x3b97ec}=_0x434048,_0x191298=(_0x5c6c64=_0x5c4699==null?void 0x0:_0x5c4699[_0x47b4f1(0x208)])!=null?_0x5c6c64:_0x4d829d[_0x47b4f1(0x1fa)]()[_0x47b4f1(0x24b)](_0x2dea45=>_0x2dea45[_0x47b4f1(0x21d)]),_0x47cbb4=(_0x1bf54a=_0x5c0d37[_0x47b4f1(0x25a)]()[_0x47b4f1(0x270)][_0x47b4f1(0x22b)](_0xb8a345))==null?void 0x0:_0x1bf54a[_0x47b4f1(0x22b)](_0x3b97ec),{isChangeDataSource:_0x3eab68,config:_0x1026a2,combine:_0x1f7e46,unCombine:_0x19ef5a}=_0x5c4699;if(_0x1f7e46){const _0x1f4d34=[],_0x4b6e16=[];_0x1f4d34[_0x47b4f1(0x202)]({'id':O['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'ranges':_0x191298,'isSingle':!0x0}});const _0x45eb00='g_'+_0x1baa41(0x6),_0x84cecc=new _0x911435(),_0x3395ca=(_0x34e9c8=_0x5c0d37[_0x47b4f1(0x25a)]()['sparklineModel'][_0x47b4f1(0x22b)](_0xb8a345))==null?void 0x0:_0x34e9c8[_0x47b4f1(0x22b)](_0x3b97ec),_0x485a8a=new Set([_0x45eb00]),_0x5df871={};return _0x191298[_0x47b4f1(0x273)](_0x19af34=>{const _0x2468ec=_0x47b4f1;var _0x3f5c99,_0x2d1558;const {startRow:_0x3b2505,endRow:_0x3ae19c,startColumn:_0x1500e1,endColumn:_0x254f6b}=_0x19af34;for(let _0x5e34d8=_0x3b2505;_0x5e34d8<=_0x3ae19c;_0x5e34d8++)for(let _0x4b8126=_0x1500e1;_0x4b8126<=_0x254f6b;_0x4b8126++){const _0x564eca=(_0x3f5c99=_0x47cbb4==null?void 0x0:_0x47cbb4[_0x2468ec(0x25c)][_0x2468ec(0x22a)](_0x5e34d8,_0x4b8126))==null?void 0x0:_0x3f5c99['groupId'];if(_0x564eca){_0x485a8a[_0x2468ec(0x1d4)](_0x564eca);const _0x26dfb1=_0x5c0d37['getSparklineById'](_0xb8a345,_0x3b97ec,_0x564eca);_0x26dfb1&&(_0x5df871[_0x564eca]={'config':_0x39a929[_0x2468ec(0x1d0)](_0x26dfb1[_0x2468ec(0x265)]),'sparklines':_0x39a929[_0x2468ec(0x1d0)](_0x26dfb1[_0x2468ec(0x239)][_0x2468ec(0x1be)]())});const _0x3daa28=(_0x2d1558=_0x3395ca==null?void 0x0:_0x3395ca[_0x2468ec(0x22b)](_0x564eca))==null?void 0x0:_0x2d1558[_0x2468ec(0x239)][_0x2468ec(0x22a)](_0x5e34d8,_0x4b8126);_0x3daa28&&_0x84cecc[_0x2468ec(0x26c)](_0x5e34d8,_0x4b8126,_0x3daa28);}}}),_0x1f4d34[_0x47b4f1(0x202)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x45eb00]:{'config':_0x39a929[_0x47b4f1(0x1d0)](_0x1026a2[_0x47b4f1(0x265)]),'sparklines':_0x84cecc[_0x47b4f1(0x23e)]()}},'unitId':_0xb8a345,'subUnitId':_0x3b97ec}}),_0x4b6e16[_0x47b4f1(0x202)]({'id':O['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'isSingle':!0x1,'groupIds':Array[_0x47b4f1(0x224)](_0x485a8a)}}),_0x4b6e16[_0x47b4f1(0x202)]({'id':V['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'sparklineConfigMap':_0x5df871}}),_0x3c78b2(_0x1f4d34,_0x450bbf),_0xcecd7f['pushUndoRedo']({'unitID':_0xb8a345,'undoMutations':_0x4b6e16,'redoMutations':_0x1f4d34}),!0x0;}else{if(_0x19ef5a){const _0x3f612c=[],_0x4a8354=[];_0x3f612c['push']({'id':O['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'ranges':_0x191298,'isSingle':!0x0}});const _0x301e0c=(_0x21d9ec=_0x5c0d37[_0x47b4f1(0x25a)]()[_0x47b4f1(0x241)][_0x47b4f1(0x22b)](_0xb8a345))==null?void 0x0:_0x21d9ec['get'](_0x3b97ec),_0x22df94={},_0x54d8e1=new Set(),_0x2cd5cf={};return _0x191298[_0x47b4f1(0x273)](_0x599a72=>{const _0x1c7cae=_0x47b4f1;var _0x496ec,_0xa9a67e;const {startRow:_0x4aa895,endRow:_0x13f4a7,startColumn:_0x1f921d,endColumn:_0x32379a}=_0x599a72;for(let _0x180c16=_0x4aa895;_0x180c16<=_0x13f4a7;_0x180c16++)for(let _0x4d3bb4=_0x1f921d;_0x4d3bb4<=_0x32379a;_0x4d3bb4++){const _0xceb601=(_0x496ec=_0x47cbb4==null?void 0x0:_0x47cbb4['matrix']['getValue'](_0x180c16,_0x4d3bb4))==null?void 0x0:_0x496ec[_0x1c7cae(0x204)];if(_0xceb601){const _0x113dfe=new _0x911435(),_0x21f44f='g_'+_0x1baa41(0x6);_0x54d8e1[_0x1c7cae(0x1d4)](_0xceb601),_0x54d8e1['add'](_0x21f44f);const _0x56907a=_0x5c0d37[_0x1c7cae(0x231)](_0xb8a345,_0x3b97ec,_0xceb601);_0x56907a&&(_0x2cd5cf[_0xceb601]={'config':_0x39a929[_0x1c7cae(0x1d0)](_0x56907a[_0x1c7cae(0x265)]),'sparklines':_0x39a929[_0x1c7cae(0x1d0)](_0x56907a[_0x1c7cae(0x239)][_0x1c7cae(0x1be)]())});const _0x4afbb4=(_0xa9a67e=_0x301e0c==null?void 0x0:_0x301e0c[_0x1c7cae(0x22b)](_0xceb601))==null?void 0x0:_0xa9a67e[_0x1c7cae(0x239)][_0x1c7cae(0x22a)](_0x180c16,_0x4d3bb4);_0x4afbb4&&_0x113dfe[_0x1c7cae(0x26c)](_0x180c16,_0x4d3bb4,_0x4afbb4),_0x22df94[_0x21f44f]={'sparklines':_0x113dfe[_0x1c7cae(0x23e)](),'config':_0x39a929[_0x1c7cae(0x1d0)](_0x1026a2['config'])};}}}),_0x3f612c['push']({'id':V['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'sparklineConfigMap':_0x22df94}}),_0x4a8354[_0x47b4f1(0x202)]({'id':O['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'isSingle':!0x1,'groupIds':Array['from'](_0x54d8e1)}}),_0x4a8354[_0x47b4f1(0x202)]({'id':V['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'sparklineConfigMap':_0x2cd5cf}}),_0x3c78b2(_0x3f612c,_0x450bbf),_0xcecd7f[_0x47b4f1(0x24c)]({'unitID':_0xb8a345,'undoMutations':_0x4a8354,'redoMutations':_0x3f612c}),!0x0;}}if(_0x3eab68){const _0x3974fb=_0x5c4699['changeDataSourceInfo'];if(!_0x3974fb)return!0x1;const {groupId:_0x4cdc12,sourceRanges:_0x5bbd33,targetRanges:_0x4bf8fa,resetType:_0x5ce391,primary:_0x12017e}=_0x3974fb,_0x4ea71d=[],_0x21ec1b=[];_0x4ea71d[_0x47b4f1(0x202)]({'id':O['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'ranges':_0x191298,'isSingle':!0x1,'groupIds':[_0x4cdc12]}}),_0x21ec1b['push']({'id':O['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'ranges':_0x191298,'isSingle':!0x1,'groupIds':[_0x4cdc12]}});let _0x274a16;_0x5ce391==='item'?(_0x274a16=new _0x911435(_0x1026a2[_0x47b4f1(0x239)][_0x47b4f1(0x1be)]()),_0x274a16['realDeleteValue'](_0x12017e['actualRow'],_0x12017e[_0x47b4f1(0x1d9)]),_0x274a16['setValue'](_0x4bf8fa[0x0]['startRow'],_0x4bf8fa[0x0][_0x47b4f1(0x25e)],_0x5bbd33[0x0])):_0x274a16=Fe(_0x5bbd33,_0x4bf8fa);const _0x38ba5c={'config':_0x39a929[_0x47b4f1(0x1d0)](_0x1026a2['config']),'sparklines':_0x274a16[_0x47b4f1(0x23e)]()},_0x5e3025={'config':_0x39a929['deepClone'](_0x1026a2['config']),'sparklines':_0x39a929['deepClone'](_0x1026a2[_0x47b4f1(0x239)][_0x47b4f1(0x1be)]())};_0x4ea71d[_0x47b4f1(0x202)]({'id':V['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'sparklineConfigMap':{[_0x4cdc12]:_0x38ba5c}}}),_0x21ec1b[_0x47b4f1(0x202)]({'id':V['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'sparklineConfigMap':{[_0x4cdc12]:_0x5e3025}}}),_0x3c78b2(_0x4ea71d,_0x450bbf),_0xcecd7f[_0x47b4f1(0x24c)]({'unitID':_0xb8a345,'undoMutations':_0x21ec1b,'redoMutations':_0x4ea71d});}else{const _0x52ea61=[],_0x20b430=[],_0x191f3e=new Set(),_0x3474af={};_0x191298['forEach'](_0x319aae=>{const _0x5909e5=_0x47b4f1;var _0x3da06e;const {startRow:_0x3d4cca,endRow:_0xe40cfb,startColumn:_0x188f9e,endColumn:_0x2ed464}=_0x319aae;for(let _0x827ea0=_0x3d4cca;_0x827ea0<=_0xe40cfb;_0x827ea0++)for(let _0x353660=_0x188f9e;_0x353660<=_0x2ed464;_0x353660++){const _0xdd60dd=(_0x3da06e=_0x47cbb4==null?void 0x0:_0x47cbb4[_0x5909e5(0x25c)][_0x5909e5(0x22a)](_0x827ea0,_0x353660))==null?void 0x0:_0x3da06e[_0x5909e5(0x204)];if(_0xdd60dd){_0x191f3e['add'](_0xdd60dd);const _0x5b3cd4=_0x5c0d37[_0x5909e5(0x231)](_0xb8a345,_0x3b97ec,_0xdd60dd);_0x5b3cd4&&(_0x3474af[_0xdd60dd]={'config':_0x39a929[_0x5909e5(0x1d0)](_0x5b3cd4['config']),'sparklines':_0x39a929[_0x5909e5(0x1d0)](_0x5b3cd4[_0x5909e5(0x239)][_0x5909e5(0x1be)]())});}}}),_0x20b430[_0x47b4f1(0x202)]({'id':xe['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'groupIds':Array[_0x47b4f1(0x224)](_0x191f3e),'config':{'config':_0x39a929[_0x47b4f1(0x1d0)](_0x1026a2[_0x47b4f1(0x265)]),'sparklines':_0x1026a2['sparklines'][_0x47b4f1(0x23e)]()}}}),_0x52ea61[_0x47b4f1(0x202)]({'id':O['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'isSingle':!0x1,'groupIds':Array['from'](_0x191f3e)}}),_0x52ea61[_0x47b4f1(0x202)]({'id':V['id'],'params':{'unitId':_0xb8a345,'subUnitId':_0x3b97ec,'sparklineConfigMap':_0x3474af}}),_0x3c78b2(_0x20b430,_0x450bbf),_0xcecd7f[_0x47b4f1(0x24c)]({'unitID':_0xb8a345,'undoMutations':_0x52ea61,'redoMutations':_0x20b430});}return!0x0;}};var $n=Object[_0x6f3a42(0x243)],jn=Object[_0x6f3a42(0x253)],Ln=(_0x2040cc,_0x158db2,_0x6717f5,_0x517cfc)=>{for(var _0x7df281=_0x517cfc>0x1?void 0x0:_0x517cfc?jn(_0x158db2,_0x6717f5):_0x158db2,_0x3187a0=_0x2040cc['length']-0x1,_0x33ccf1;_0x3187a0>=0x0;_0x3187a0--)(_0x33ccf1=_0x2040cc[_0x3187a0])&&(_0x7df281=(_0x517cfc?_0x33ccf1(_0x158db2,_0x6717f5,_0x7df281):_0x33ccf1(_0x7df281))||_0x7df281);return _0x517cfc&&_0x7df281&&$n(_0x158db2,_0x6717f5,_0x7df281),_0x7df281;},fe=(_0x336b6d,_0x5c4741)=>(_0x4d0b07,_0x3f309a)=>_0x5c4741(_0x4d0b07,_0x3f309a,_0x336b6d);let he=class extends _0x41dee9{constructor(_0x4bee95,_0x2d977c,_0x520d59,_0x17a0ab){const _0xde08f2=_0x6f3a42;super(),this[_0xde08f2(0x247)]=_0x4bee95,this[_0xde08f2(0x24e)]=_0x2d977c,this['_univerInstanceService']=_0x520d59,this[_0xde08f2(0x26f)]=_0x17a0ab,this['_initClearWithSparkline']();}[_0x6f3a42(0x23a)](){const _0x16c2f9=_0x6f3a42;this['disposeWithMe'](this[_0x16c2f9(0x24e)][_0x16c2f9(0x250)]({'getMutations':_0x2b30a2=>{const _0x498c53=_0x16c2f9,_0x4be5d8=[],_0x1af7b2=[];if(_0x2b30a2['id']===_0x41967e['id']){const _0x5d057a=_0x2c2d6d(this[_0x498c53(0x1eb)]);if(!_0x5d057a)return{'redos':_0x4be5d8,'undos':_0x1af7b2};const {unitId:_0x2d8fe8,subUnitId:_0x1fc28c,worksheet:_0x1785ab}=_0x5d057a,_0x2592c6=this['_sheetSelectionService']['getCurrentSelections']()[_0x498c53(0x24b)](_0x1ccd0b=>_0x1ccd0b[_0x498c53(0x21d)]),_0x3be344=new Set(),_0x1ad889={},_0x42f6ac={};_0x2592c6[_0x498c53(0x273)](_0x74288d=>{const _0x426f96=_0x498c53;_0x3f9e81[_0x426f96(0x23d)](_0x74288d,(_0x58666a,_0x50aa4d)=>{const _0x46c72a=_0x426f96,_0x5b693d=this[_0x46c72a(0x247)][_0x46c72a(0x214)](_0x2d8fe8,_0x1fc28c,_0x58666a,_0x50aa4d);if(_0x5b693d&&!_0x3be344[_0x46c72a(0x26a)](_0x5b693d)){const _0x3d5c4f=this[_0x46c72a(0x247)][_0x46c72a(0x231)](_0x2d8fe8,_0x1fc28c,_0x5b693d);_0x3d5c4f&&(_0x3be344[_0x46c72a(0x1d4)](_0x5b693d),_0x1ad889[_0x5b693d]={'config':_0x39a929['deepClone'](_0x3d5c4f['config']),'sparklines':_0x39a929[_0x46c72a(0x1d0)](_0x3d5c4f[_0x46c72a(0x239)][_0x46c72a(0x1be)]())},_0x42f6ac[_0x5b693d]={'config':_0x39a929[_0x46c72a(0x1d0)](_0x3d5c4f[_0x46c72a(0x265)]),'sparklines':_0x39a929[_0x46c72a(0x1d0)](_0x3d5c4f['sparklines'][_0x46c72a(0x1be)]())});}});}),Object['values'](_0x42f6ac)[_0x498c53(0x273)](_0x35ffb5=>{const _0x36ad3b=_0x498c53,_0x163414=_0x35ffb5[_0x36ad3b(0x239)];new _0x911435(_0x163414)['forValue']((_0x11ba1e,_0x16dba5,_0x320889)=>{const _0xc0d413=_0x36ad3b;_0x2592c6[_0xc0d413(0x23c)](_0x5ed07b=>_0x26c517[_0xc0d413(0x1e6)](_0x5ed07b,_0x2b41c2(_0x11ba1e,_0x16dba5)))&&delete _0x163414[_0x11ba1e][_0x16dba5];});}),_0x4be5d8[_0x498c53(0x202)]({'id':O['id'],'params':{'unitId':_0x2d8fe8,'subUnitId':_0x1fc28c,'groupIds':Array[_0x498c53(0x224)](_0x3be344),'isSingle':!0x1}}),_0x4be5d8[_0x498c53(0x202)]({'id':V['id'],'params':{'unitId':_0x2d8fe8,'subUnitId':_0x1fc28c,'sparklineConfigMap':_0x42f6ac}}),_0x1af7b2[_0x498c53(0x202)]({'id':O['id'],'params':{'unitId':_0x2d8fe8,'subUnitId':_0x1fc28c,'groupIds':Array[_0x498c53(0x224)](_0x3be344),'isSingle':!0x1}}),_0x1af7b2[_0x498c53(0x202)]({'id':V['id'],'params':{'unitId':_0x2d8fe8,'subUnitId':_0x1fc28c,'sparklineConfigMap':_0x1ad889}});}return{'redos':_0x4be5d8,'undos':_0x1af7b2};}}));}};he=Ln([fe(0x0,_0x2262d0(y)),fe(0x1,_0x2262d0(_0x2343fc)),fe(0x2,_0x2262d0(_0x42589b)),fe(0x3,_0x2262d0(_0x4d1630))],he);function _0x1307(_0x1b4cfd,_0x5e8315){const _0x402a7b=_0x402a();return _0x1307=function(_0x13078a,_0x52ac54){_0x13078a=_0x13078a-0x1bd;let _0x4c43df=_0x402a7b[_0x13078a];return _0x4c43df;},_0x1307(_0x1b4cfd,_0x5e8315);}var Gn=Object['defineProperty'],Wn=Object[_0x6f3a42(0x253)],Hn=(_0x4291f2,_0x5b1c04,_0x52f301,_0x4a11f5)=>{const _0x1adc73=_0x6f3a42;for(var _0x450103=_0x4a11f5>0x1?void 0x0:_0x4a11f5?Wn(_0x5b1c04,_0x52f301):_0x5b1c04,_0x159471=_0x4291f2[_0x1adc73(0x255)]-0x1,_0x2ccfd2;_0x159471>=0x0;_0x159471--)(_0x2ccfd2=_0x4291f2[_0x159471])&&(_0x450103=(_0x4a11f5?_0x2ccfd2(_0x5b1c04,_0x52f301,_0x450103):_0x2ccfd2(_0x450103))||_0x450103);return _0x4a11f5&&_0x450103&&Gn(_0x5b1c04,_0x52f301,_0x450103),_0x450103;},Ge=(_0x2992fe,_0x3cca2b)=>(_0x59765c,_0x5a20b3)=>_0x3cca2b(_0x59765c,_0x5a20b3,_0x2992fe);let Se=class extends _0x41dee9{constructor(_0x28744d,_0x5857ec){const _0x34e858=_0x6f3a42;super(),this['_sheetInterceptorService']=_0x28744d,this[_0x34e858(0x247)]=_0x5857ec,this[_0x34e858(0x1e8)]();}[_0x6f3a42(0x1e8)](){const _0x1b820d=_0x6f3a42;this[_0x1b820d(0x254)](this[_0x1b820d(0x24e)]['interceptCommand']({'getMutations':_0x4ab429=>{const _0x1e6b62=_0x1b820d,_0x7d6c89=[],_0x5b76ad=[];if(_0x4ab429['id']===_0x4a02cf['id']){const _0x19a62a=_0x4ab429['params'];if(!_0x19a62a)return{'redos':_0x7d6c89,'undos':_0x5b76ad};const {unitId:_0x2a94d7,subUnitId:_0xc6b5f1,targetSubUnitId:_0x3639f1}=_0x19a62a;if(!_0x2a94d7||!_0xc6b5f1||!_0x3639f1)return{'redos':_0x7d6c89,'undos':_0x5b76ad};const _0x248205=new Set(),_0xaedf83={},_0x31bbf0=this['_sparklineDataSourceModel'][_0x1e6b62(0x257)](_0x2a94d7,_0xc6b5f1);if(!_0x31bbf0)return{'redos':_0x7d6c89,'undos':_0x5b76ad};for(const [_0x3980f1,_0x412d91]of _0x31bbf0){const _0x25f278='g_'+_0x1baa41(0x6);_0x248205[_0x1e6b62(0x1d4)](_0x3980f1),_0xaedf83[_0x25f278]={'config':_0x39a929['deepClone'](_0x412d91[_0x1e6b62(0x265)]),'sparklines':_0x39a929[_0x1e6b62(0x1d0)](_0x412d91[_0x1e6b62(0x239)][_0x1e6b62(0x1be)]())};}_0x248205[_0x1e6b62(0x215)]&&(_0x5b76ad['push']({'id':O['id'],'params':{'unitId':_0x2a94d7,'subUnitId':_0x3639f1,'groupIds':Array['from'](_0x248205),'isSingle':!0x1}}),_0x7d6c89[_0x1e6b62(0x202)]({'id':V['id'],'params':{'unitId':_0x2a94d7,'subUnitId':_0x3639f1,'sparklineConfigMap':_0xaedf83}}));}return{'redos':_0x7d6c89,'undos':_0x5b76ad};}}));}};Se=Hn([Ge(0x0,_0x2262d0(_0x2343fc)),Ge(0x1,_0x2262d0(y))],Se);var Bn=Object['defineProperty'],Fn=Object[_0x6f3a42(0x253)],Kn=(_0x2605fb,_0xd2468,_0x1f5c4a,_0x545330)=>{const _0x206bbb=_0x6f3a42;for(var _0x1f8a02=_0x545330>0x1?void 0x0:_0x545330?Fn(_0xd2468,_0x1f5c4a):_0xd2468,_0x240b91=_0x2605fb[_0x206bbb(0x255)]-0x1,_0x12c585;_0x240b91>=0x0;_0x240b91--)(_0x12c585=_0x2605fb[_0x240b91])&&(_0x1f8a02=(_0x545330?_0x12c585(_0xd2468,_0x1f5c4a,_0x1f8a02):_0x12c585(_0x1f8a02))||_0x1f8a02);return _0x545330&&_0x1f8a02&&Bn(_0xd2468,_0x1f5c4a,_0x1f8a02),_0x1f8a02;},be=(_0x5adda0,_0x296f1e)=>(_0x3d5f5a,_0x2da04d)=>_0x296f1e(_0x3d5f5a,_0x2da04d,_0x5adda0);let ke=class extends _0x41dee9{constructor(_0x239b64,_0x2d25d0,_0x6b2df7){const _0x43afbe=_0x6f3a42;super(),this[_0x43afbe(0x274)]=_0x239b64,this[_0x43afbe(0x247)]=_0x2d25d0,this[_0x43afbe(0x256)]=_0x6b2df7,this[_0x43afbe(0x26d)](),this[_0x43afbe(0x219)]();}[_0x6f3a42(0x26d)](){const _0x34eef5=_0x6f3a42;this[_0x34eef5(0x254)](this[_0x34eef5(0x274)][_0x34eef5(0x1d2)](_0x29ce0d=>{const _0x1de43b=_0x34eef5;if(_0x29ce0d['id']===_0x137e5a['id']){const _0x41113e=_0x29ce0d[_0x1de43b(0x1d3)],{cellValue:_0x1dd7c5,unitId:_0x1f91ba,subUnitId:_0x46466c}=_0x41113e,_0x1417c1=new _0x911435(_0x1dd7c5),_0x2197ee=new Set(),_0x332e1e=this[_0x1de43b(0x247)][_0x1de43b(0x257)](_0x1f91ba,_0x46466c);if(!_0x332e1e)return;const _0x317f26=Array[_0x1de43b(0x224)](_0x332e1e);_0x1417c1[_0x1de43b(0x263)]((_0x4b8f87,_0x515047,_0x466d8a)=>{const _0x5b8157=_0x1de43b,_0x103ac4=_0x2b41c2(_0x4b8f87,_0x515047);for(let _0x22b059=0x0;_0x22b059<_0x317f26[_0x5b8157(0x255)];_0x22b059++){const [_0x57c8d8,_0x360e23]=_0x317f26[_0x22b059],_0x196343=_0x2197ee['has'](_0x57c8d8);_0x196343||_0x360e23[_0x5b8157(0x239)][_0x5b8157(0x263)]((_0x4fe495,_0x1ee6de,_0x30b0da)=>{const _0x55574d=_0x5b8157,_0x55c5fc=_0x30b0da;if(_0x55c5fc&&!_0x196343&&_0x26c517[_0x55574d(0x1e6)](_0x103ac4,_0x55c5fc))return _0x2197ee[_0x55574d(0x1d4)](_0x57c8d8),!0x0;});}}),_0x2197ee[_0x1de43b(0x273)](_0x525900=>{const _0xb449ef=_0x1de43b;this[_0xb449ef(0x247)][_0xb449ef(0x1bf)](_0x1f91ba,_0x46466c,_0x525900),this[_0xb449ef(0x247)]['updateSparklineExtraNum'](_0x1f91ba,_0x46466c,_0x525900);});}else{if(_0x29ce0d['id']===_0x218098['id']){const _0x11691b=_0x29ce0d[_0x1de43b(0x1d3)],{range:_0x4661c0,unitId:_0xd47029,subUnitId:_0x1032d1}=_0x11691b,_0x355f8a=new Set(),_0x320833=this[_0x1de43b(0x247)]['getSubUnitSparkline'](_0xd47029,_0x1032d1);if(!_0x320833)return;const _0xb491b2=Array[_0x1de43b(0x224)](_0x320833);for(let _0x2f5b4e=0x0;_0x2f5b4e<_0xb491b2[_0x1de43b(0x255)];_0x2f5b4e++){const [_0x4ba678,_0x2ac21d]=_0xb491b2[_0x2f5b4e],_0x2c65d3=_0x355f8a['has'](_0x4ba678);_0x2c65d3||_0x2ac21d['sparklines'][_0x1de43b(0x263)]((_0x20a15c,_0x278e23,_0x534c39)=>{const _0x5821ef=_0x1de43b,_0x36831d=_0x534c39;if(_0x36831d&&!_0x2c65d3&&_0x26c517[_0x5821ef(0x1e6)](_0x4661c0,_0x36831d))return _0x355f8a[_0x5821ef(0x1d4)](_0x4ba678),!0x0;});}_0x355f8a[_0x1de43b(0x273)](_0xe37241=>{const _0x5a400d=_0x1de43b;this['_sparklineDataSourceModel']['clearSparklineCache'](_0xd47029,_0x1032d1,_0xe37241),this[_0x5a400d(0x247)][_0x5a400d(0x221)](_0xd47029,_0x1032d1,_0xe37241);});}}}));}[_0x6f3a42(0x219)](){const _0x10b7af=_0x6f3a42;this['disposeWithMe'](this[_0x10b7af(0x256)]['exclusiveRangesChange$'][_0x10b7af(0x1ef)](_0x21eabf=>{const _0x4d1a86=_0x10b7af,{unitId:_0x309650,subUnitId:_0x302b27,ranges:_0x1ccad4}=_0x21eabf,_0x16a7c9=this[_0x4d1a86(0x247)][_0x4d1a86(0x257)](_0x309650,_0x302b27);if(!_0x16a7c9)return;const _0x3cfa26=Array[_0x4d1a86(0x224)](_0x16a7c9),_0x3ade0a=new Set();for(let _0x1bc8a3=0x0;_0x1bc8a3<_0x3cfa26[_0x4d1a86(0x255)];_0x1bc8a3++){const [_0x2e9458,_0x3d6a10]=_0x3cfa26[_0x1bc8a3],_0x3ccb79=_0x3ade0a[_0x4d1a86(0x26a)](_0x2e9458);_0x3ccb79||_0x3d6a10[_0x4d1a86(0x239)][_0x4d1a86(0x263)]((_0x4e39b9,_0x5246db,_0x2dc8ab)=>{const _0x53e84d=_0x4d1a86,_0x3b1706=_0x2dc8ab;if(_0x3b1706&&!_0x3ccb79){for(const _0x203d43 of _0x1ccad4)if(_0x26c517[_0x53e84d(0x1e6)](_0x203d43,_0x3b1706)){_0x3ade0a[_0x53e84d(0x1d4)](_0x2e9458);break;}}});}_0x3ade0a['forEach'](_0x4d27ae=>{const _0x94f22e=_0x4d1a86;this[_0x94f22e(0x247)][_0x94f22e(0x1bf)](_0x309650,_0x302b27,_0x4d27ae),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x309650,_0x302b27,_0x4d27ae);});}));}};ke=Kn([be(0x0,_0x2262d0(_0x15d849)),be(0x1,_0x2262d0(y)),be(0x2,_0x2262d0(_0x41f826))],ke);var Xn=Object[_0x6f3a42(0x243)],zn=Object[_0x6f3a42(0x253)],Jn=(_0x4f2664,_0x5cfefd,_0x22fc6f,_0x423e4a)=>{const _0x17cadc=_0x6f3a42;for(var _0x37f321=_0x423e4a>0x1?void 0x0:_0x423e4a?zn(_0x5cfefd,_0x22fc6f):_0x5cfefd,_0x20a511=_0x4f2664[_0x17cadc(0x255)]-0x1,_0x326bab;_0x20a511>=0x0;_0x20a511--)(_0x326bab=_0x4f2664[_0x20a511])&&(_0x37f321=(_0x423e4a?_0x326bab(_0x5cfefd,_0x22fc6f,_0x37f321):_0x326bab(_0x37f321))||_0x37f321);return _0x423e4a&&_0x37f321&&Xn(_0x5cfefd,_0x22fc6f,_0x37f321),_0x37f321;},We=(_0x1b0c58,_0x5467de)=>(_0x453f1b,_0x385703)=>_0x5467de(_0x453f1b,_0x385703,_0x1b0c58);let me=class extends _0x41dee9{constructor(_0x3fd1df,_0x4dc4c3){const _0xdcd982=_0x6f3a42;super(),this['_commandService']=_0x3fd1df,this[_0xdcd982(0x247)]=_0x4dc4c3,this[_0xdcd982(0x218)]();}[_0x6f3a42(0x218)](){this['_commandService']['onCommandExecuted'](_0x32f4d9=>{const _0x59df67=_0x1307;if(_0x32f4d9['id']===_0x1e4baf['id']||_0x32f4d9['id']===_0x2b275a['id']||_0x32f4d9['id']===_0x125ba5['id']||_0x32f4d9['id']===_0x26b05f['id']){const _0x3f88f5=_0x32f4d9[_0x59df67(0x1d3)],{ranges:_0x220058,unitId:_0x67114f,subUnitId:_0x5f54bd}=_0x3f88f5,_0x9aa76d=new Set(),_0x19d2d7=this[_0x59df67(0x247)]['getSubUnitSparkline'](_0x67114f,_0x5f54bd);if(!_0x19d2d7)return;const _0x3ace95=Array[_0x59df67(0x224)](_0x19d2d7);_0x220058[_0x59df67(0x273)](_0x38b733=>{const _0x362611=_0x59df67;_0x3f9e81[_0x362611(0x23d)](_0x38b733,(_0x4e8291,_0x49be37)=>{const _0x44093a=_0x362611,_0x3ab559=_0x2b41c2(_0x4e8291,_0x49be37);for(let _0x5dece4=0x0;_0x5dece4<_0x3ace95['length'];_0x5dece4++){const [_0x90c291,_0x40dc1a]=_0x3ace95[_0x5dece4],_0x66dbdd=_0x9aa76d[_0x44093a(0x26a)](_0x90c291);_0x66dbdd||_0x40dc1a[_0x44093a(0x239)][_0x44093a(0x263)]((_0x56a5b4,_0xa213f4,_0x487ad4)=>{const _0x5288c3=_0x44093a,_0x49f137=_0x487ad4;if(_0x49f137&&!_0x66dbdd&&_0x26c517[_0x5288c3(0x1e6)](_0x3ab559,_0x49f137))return _0x9aa76d['add'](_0x90c291),!0x0;});}});}),_0x9aa76d['forEach'](_0x39e1ae=>{const _0x1a5728=_0x59df67;this[_0x1a5728(0x247)][_0x1a5728(0x1bf)](_0x67114f,_0x5f54bd,_0x39e1ae),this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x67114f,_0x5f54bd,_0x39e1ae);});}});}};me=Jn([We(0x0,_0x2262d0(_0x15d849)),We(0x1,_0x2262d0(y))],me);var Zn=Object[_0x6f3a42(0x243)],Yn=Object['getOwnPropertyDescriptor'],qn=(_0x3854bd,_0x38dcb0,_0x41c5b1,_0x2dbdad)=>{for(var _0x20b3c4=_0x2dbdad>0x1?void 0x0:_0x2dbdad?Yn(_0x38dcb0,_0x41c5b1):_0x38dcb0,_0x538c8a=_0x3854bd['length']-0x1,_0x1b2230;_0x538c8a>=0x0;_0x538c8a--)(_0x1b2230=_0x3854bd[_0x538c8a])&&(_0x20b3c4=(_0x2dbdad?_0x1b2230(_0x38dcb0,_0x41c5b1,_0x20b3c4):_0x1b2230(_0x20b3c4))||_0x20b3c4);return _0x2dbdad&&_0x20b3c4&&Zn(_0x38dcb0,_0x41c5b1,_0x20b3c4),_0x20b3c4;},De=(_0x56cacc,_0x96c3a3)=>(_0x27f1cc,_0x52f111)=>_0x96c3a3(_0x27f1cc,_0x52f111,_0x56cacc);let Ce=class extends _0x41dee9{constructor(_0x5d2092,_0x5b8e69,_0x2009c1){const _0x24480a=_0x6f3a42;super(),this[_0x24480a(0x274)]=_0x5d2092,this[_0x24480a(0x24e)]=_0x5b8e69,this['_sparklineDataSourceModel']=_0x2009c1,this[_0x24480a(0x207)]();}[_0x6f3a42(0x207)](){const _0x4451c5=_0x6f3a42;this['disposeWithMe'](this['_sheetInterceptorService'][_0x4451c5(0x250)]({'getMutations':_0x136e65=>{const _0x31d8b6=_0x4451c5,_0x3a0023=[],_0xd1c02=[];if(_0x136e65['id']===_0x2fd0f1['id']){const _0x3dc53a=_0x136e65[_0x31d8b6(0x1d3)];if(!_0x3dc53a)return{'redos':_0x3a0023,'undos':_0xd1c02};const {unitId:_0x1766a3,subUnitId:_0x19af0f,ranges:_0x15228a}=_0x3dc53a,_0x59f4c6=this[_0x31d8b6(0x247)][_0x31d8b6(0x257)](_0x1766a3,_0x19af0f);if(!_0x59f4c6)return{'redos':_0x3a0023,'undos':_0xd1c02};const _0x25ba51={},_0x41983d={},_0x31a170=new Set();_0x15228a[_0x31d8b6(0x273)](_0x1ddaf3=>{const _0x567bb7=_0x31d8b6,_0x2d5e88=_0x1ddaf3['startRow'],_0x190253=_0x1ddaf3[_0x567bb7(0x25e)];_0x3f9e81[_0x567bb7(0x23d)](_0x1ddaf3,(_0x9bbdca,_0x4e0017)=>{const _0x5b7f9b=_0x567bb7,_0x1a40f5=this[_0x5b7f9b(0x247)][_0x5b7f9b(0x214)](_0x1766a3,_0x19af0f,_0x9bbdca,_0x4e0017);if(_0x1a40f5&&!(_0x9bbdca===_0x2d5e88&&_0x4e0017===_0x190253)){const _0x30271d=this[_0x5b7f9b(0x247)][_0x5b7f9b(0x231)](_0x1766a3,_0x19af0f,_0x1a40f5);if(_0x30271d){_0x31a170[_0x5b7f9b(0x1d4)](_0x1a40f5);let _0x45406d=_0x25ba51[_0x1a40f5];_0x45406d||(_0x45406d={'config':_0x39a929[_0x5b7f9b(0x1d0)](_0x30271d[_0x5b7f9b(0x265)]),'sparklines':new _0x911435(_0x30271d[_0x5b7f9b(0x239)][_0x5b7f9b(0x1be)]())},_0x25ba51[_0x1a40f5]=_0x45406d),_0x45406d[_0x5b7f9b(0x239)][_0x5b7f9b(0x212)](_0x9bbdca,_0x4e0017),_0x41983d[_0x1a40f5]={'config':_0x39a929[_0x5b7f9b(0x1d0)](_0x30271d[_0x5b7f9b(0x265)]),'sparklines':_0x39a929[_0x5b7f9b(0x1d0)](_0x30271d['sparklines'][_0x5b7f9b(0x1be)]())};}}});});for(const [_0x26d747,_0x1c4954]of _0x59f4c6){const _0x3f4a81=_0x1c4954[_0x31d8b6(0x239)];_0x3f4a81[_0x31d8b6(0x263)]((_0x273d75,_0x3acd28,_0x40a4b6)=>{const _0x3c89d6=_0x31d8b6;for(let _0x32a258=0x0;_0x32a258<_0x15228a[_0x3c89d6(0x255)];_0x32a258++){const _0x17cfe2=_0x15228a[_0x32a258];if(_0x26c517['contains'](_0x17cfe2,_0x40a4b6)){_0x31a170[_0x3c89d6(0x1d4)](_0x26d747);let _0x454475=_0x25ba51[_0x26d747];_0x454475||(_0x454475={'config':_0x39a929[_0x3c89d6(0x1d0)](_0x1c4954[_0x3c89d6(0x265)]),'sparklines':new _0x911435(_0x3f4a81[_0x3c89d6(0x1be)]())},_0x25ba51[_0x26d747]=_0x454475),_0x454475[_0x3c89d6(0x239)]['realDeleteValue'](_0x273d75,_0x3acd28),_0x41983d[_0x26d747]||(_0x41983d[_0x26d747]={'config':_0x39a929['deepClone'](_0x1c4954[_0x3c89d6(0x265)]),'sparklines':_0x39a929[_0x3c89d6(0x1d0)](_0x3f4a81[_0x3c89d6(0x1be)]())});}}});}const _0x1906cd={};Object[_0x31d8b6(0x25f)](_0x25ba51)['forEach'](([_0x198875,_0x49e0c5])=>{const _0xc3eb61=_0x31d8b6;_0x49e0c5[_0xc3eb61(0x239)][_0xc3eb61(0x264)]()&&(_0x1906cd[_0x198875]={'config':_0x49e0c5[_0xc3eb61(0x265)],'sparklines':_0x49e0c5['sparklines'][_0xc3eb61(0x1be)]()});}),_0x31a170[_0x31d8b6(0x215)]&&(_0x3a0023[_0x31d8b6(0x202)]({'id':O['id'],'params':{'unitId':_0x1766a3,'subUnitId':_0x19af0f,'groupIds':Array[_0x31d8b6(0x224)](_0x31a170),'isSingle':!0x1}}),_0xd1c02['push']({'id':O['id'],'params':{'unitId':_0x1766a3,'subUnitId':_0x19af0f,'groupIds':Array[_0x31d8b6(0x224)](_0x31a170),'isSingle':!0x1}}),_0x3a0023[_0x31d8b6(0x202)]({'id':V['id'],'params':{'unitId':_0x1766a3,'subUnitId':_0x19af0f,'sparklineConfigMap':_0x1906cd}}),_0xd1c02['push']({'id':V['id'],'params':{'unitId':_0x1766a3,'subUnitId':_0x19af0f,'sparklineConfigMap':_0x41983d}}));}return{'redos':_0x3a0023,'undos':_0xd1c02};}}));}};Ce=qn([De(0x0,_0x2262d0(_0x15d849)),De(0x1,_0x2262d0(_0x2343fc)),De(0x2,_0x2262d0(y))],Ce);var Qn=Object['defineProperty'],et=Object[_0x6f3a42(0x253)],nt=(_0x443141,_0x1ae254,_0x1fc099,_0x339281)=>{const _0x48cb9f=_0x6f3a42;for(var _0x3165ee=_0x339281>0x1?void 0x0:_0x339281?et(_0x1ae254,_0x1fc099):_0x1ae254,_0x1a64b1=_0x443141[_0x48cb9f(0x255)]-0x1,_0x3e8e5b;_0x1a64b1>=0x0;_0x1a64b1--)(_0x3e8e5b=_0x443141[_0x1a64b1])&&(_0x3165ee=(_0x339281?_0x3e8e5b(_0x1ae254,_0x1fc099,_0x3165ee):_0x3e8e5b(_0x3165ee))||_0x3165ee);return _0x339281&&_0x3165ee&&Qn(_0x1ae254,_0x1fc099,_0x3165ee),_0x3165ee;},ue=(_0x3de129,_0x42147e)=>(_0x33c372,_0x349003)=>_0x42147e(_0x33c372,_0x349003,_0x3de129);let _e=class extends _0x41dee9{constructor(_0x3a5db8,_0x12f293,_0x9ba98c,_0x21c91f,_0x58d549){const _0x3bf78d=_0x6f3a42;super(),se(this,_0x3bf78d(0x259),new _0xe7ab60()),(this['_commandService']=_0x3a5db8,this['_sheetInterceptorService']=_0x12f293,this[_0x3bf78d(0x217)]=_0x9ba98c,this['_univerInstanceService']=_0x21c91f,this[_0x3bf78d(0x247)]=_0x58d549,this[_0x3bf78d(0x1f5)](),this[_0x3bf78d(0x237)]());}[_0x6f3a42(0x1f5)](){const _0x4dbdc0=(_0x1caad9,_0x530250)=>{const _0x209ef7=_0x1307,_0x40c2fb=this[_0x209ef7(0x1eb)][_0x209ef7(0x230)](_0x51a80e[_0x209ef7(0x272)]);if(!_0x40c2fb||!(_0x40c2fb==null?void 0x0:_0x40c2fb[_0x209ef7(0x1f6)](_0x530250)))return;this[_0x209ef7(0x259)]['dispose']();const _0x2aa957=_0x487e82=>this['refRangeHandle'](_0x487e82,_0x1caad9,_0x530250),_0x206a04=[],_0x4e53a2=this[_0x209ef7(0x247)]['getSubUnitSparkline'](_0x1caad9,_0x530250);if(_0x4e53a2){for(const [_0x3a1fdd,_0x45847d]of _0x4e53a2)_0x45847d[_0x209ef7(0x239)][_0x209ef7(0x263)]((_0x58c6d0,_0x7d359b,_0x40ad6a)=>{const _0x92ee4a=_0x209ef7,_0x59327b=_0x2b41c2(_0x58c6d0,_0x7d359b);_0x206a04[_0x92ee4a(0x202)](_0x59327b);});_0x206a04[_0x209ef7(0x273)](_0x1c976f=>{const _0x27a786=_0x209ef7;this[_0x27a786(0x259)][_0x27a786(0x1d4)](this['_refRangeService'][_0x27a786(0x1f2)](_0x1c976f,_0x2aa957,_0x1caad9,_0x530250));});}};this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0xebdbc6=>{const _0x1a9431=_0x1307;if(_0xebdbc6['id']===_0x42b32a['id']){const _0x3bd82d=_0xebdbc6[_0x1a9431(0x1d3)],_0x480fef=_0x3bd82d[_0x1a9431(0x1d5)],_0x3a4550=_0x3bd82d[_0x1a9431(0x213)];if(!_0x480fef||!_0x3a4550)return;_0x4dbdc0(_0x3a4550,_0x480fef);}if(_0xebdbc6['id']===xe['id']||_0xebdbc6['id']===V['id']){const _0x2018e8=_0xebdbc6[_0x1a9431(0x1d3)],_0x31fa8d=_0x2018e8[_0x1a9431(0x1d5)],_0x42ee8e=_0x2018e8[_0x1a9431(0x213)];if(!_0x31fa8d||!_0x42ee8e)return;_0x4dbdc0(_0x42ee8e,_0x31fa8d);}}));}[_0x6f3a42(0x20f)](_0x58404f,_0x5f5a5c,_0xd7f58d){const _0x3692ea=_0x6f3a42;switch(_0x58404f['id']){case _0x1bcf57['id']:return this[_0x3692ea(0x1dd)](_0x58404f['params'],_0x5f5a5c,_0xd7f58d);case _0xf8b9aa['id']:return this[_0x3692ea(0x1e9)](_0x58404f[_0x3692ea(0x1d3)],_0x5f5a5c,_0xd7f58d);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x48140e,_0x3fb96c,_0x4e2ef2){const _0x86f80a=_0x6f3a42;var _0x2b998c,_0xd53e30;const {range:_0x359ed5}=_0x48140e,_0x40d118=new Set(),_0x21a9d5={},_0x46759e={},_0x5172e9=[],_0x47e010=[],_0x5a4395=[],_0x572438=[];if(!_0x2c2d6d(this[_0x86f80a(0x1eb)],{'unitId':_0x3fb96c,'subUnitId':_0x4e2ef2}))return{'redos':_0x47e010,'undos':_0x5172e9};const _0x194b38=this['_sparklineDataSourceModel'][_0x86f80a(0x257)](_0x3fb96c,_0x4e2ef2);if(!_0x194b38)return{'redos':_0x47e010,'undos':_0x5172e9};if(!((_0xd53e30=(_0x2b998c=this[_0x86f80a(0x247)][_0x86f80a(0x25a)]()[_0x86f80a(0x270)]['get'](_0x3fb96c))==null?void 0x0:_0x2b998c[_0x86f80a(0x22b)](_0x4e2ef2))==null?void 0x0:_0xd53e30[_0x86f80a(0x25c)]))return{'redos':_0x47e010,'undos':_0x5172e9};for(const [_0x2d1ada,_0x27419c]of _0x194b38){const _0x5d7932=_0x27419c[_0x86f80a(0x239)];_0x5d7932[_0x86f80a(0x263)]((_0x164882,_0x463d57,_0x4369ea)=>{const _0x483bc7=_0x86f80a;if(_0x26c517[_0x483bc7(0x1e6)](_0x359ed5,_0x4369ea)){_0x40d118[_0x483bc7(0x1d4)](_0x2d1ada);let _0x21484e=_0x46759e[_0x2d1ada];_0x21484e||(_0x21484e={'config':_0x27419c[_0x483bc7(0x265)],'sparklines':_0x27419c['sparklines']['clone']()},_0x46759e[_0x2d1ada]=_0x21484e);let _0xb6ed0e=_0x21a9d5[_0x2d1ada];_0xb6ed0e||(_0xb6ed0e={'config':_0x27419c[_0x483bc7(0x265)],'sparklines':new _0x911435(_0x27419c[_0x483bc7(0x239)][_0x483bc7(0x1be)]())},_0x21a9d5[_0x2d1ada]=_0xb6ed0e);const _0x2388be=_0x3039b1(_0x4369ea,{'id':_0x426ec3['id'],'params':_0x48140e});_0x2388be?_0xb6ed0e[_0x483bc7(0x239)][_0x483bc7(0x26c)](_0x164882,_0x463d57,_0x2388be):_0xb6ed0e[_0x483bc7(0x239)][_0x483bc7(0x26c)](_0x164882,_0x463d57,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28cb99[_0x483bc7(0x1e1)]});}}),_0x5d7932[_0x86f80a(0x263)]((_0xcfb864,_0x1c69dd,_0x33276d)=>{const _0x896ba4=_0x86f80a;if(_0xcfb864<=_0x359ed5[_0x896ba4(0x226)]&&_0xcfb864>=_0x359ed5['startRow']){_0x40d118['add'](_0x2d1ada);let _0x489c24=_0x46759e[_0x2d1ada];_0x489c24||(_0x489c24={'config':_0x27419c['config'],'sparklines':_0x27419c[_0x896ba4(0x239)][_0x896ba4(0x1be)]()},_0x46759e[_0x2d1ada]=_0x489c24);let _0x1a8b2d=_0x21a9d5[_0x2d1ada];_0x1a8b2d||(_0x1a8b2d={'config':_0x27419c[_0x896ba4(0x265)],'sparklines':new _0x911435(_0x27419c[_0x896ba4(0x239)]['clone']())},_0x21a9d5[_0x2d1ada]=_0x1a8b2d);}});}_0x572438[_0x86f80a(0x202)]({'id':O['id'],'params':{'unitId':_0x3fb96c,'subUnitId':_0x4e2ef2,'groupIds':Array[_0x86f80a(0x224)](_0x40d118),'isSingle':!0x1}}),_0x5a4395[_0x86f80a(0x202)]({'id':O['id'],'params':{'unitId':_0x3fb96c,'subUnitId':_0x4e2ef2,'groupIds':Array[_0x86f80a(0x224)](_0x40d118),'isSingle':!0x1}});const _0x192115={};let _0x4a4193=!0x1;return Object['entries'](_0x21a9d5)[_0x86f80a(0x273)](([_0x2f1e7d,_0x8cfbad])=>{const _0x3df5d8=_0x86f80a;_0x8cfbad[_0x3df5d8(0x239)][_0x3df5d8(0x264)]()&&(_0x4a4193=!0x0,_0x8cfbad['sparklines'][_0x3df5d8(0x229)](_0x359ed5[_0x3df5d8(0x1fd)],_0x359ed5[_0x3df5d8(0x226)]-_0x359ed5[_0x3df5d8(0x1fd)]+0x1),_0x192115[_0x2f1e7d]={'config':_0x8cfbad[_0x3df5d8(0x265)],'sparklines':_0x8cfbad['sparklines'][_0x3df5d8(0x1be)]()});}),_0x4a4193&&_0x47e010[_0x86f80a(0x202)]({'id':V['id'],'params':{'unitId':_0x3fb96c,'subUnitId':_0x4e2ef2,'sparklineConfigMap':_0x192115}}),_0x5172e9[_0x86f80a(0x202)]({'id':V['id'],'params':{'unitId':_0x3fb96c,'subUnitId':_0x4e2ef2,'sparklineConfigMap':_0x46759e}}),{'redos':_0x47e010,'undos':_0x5172e9,'preRedos':_0x5a4395,'preUndos':_0x572438};}[_0x6f3a42(0x1dd)](_0x336c5c,_0x292dcf,_0xdb6741){const _0x1905a3=_0x6f3a42;var _0x577d7b,_0x32f00f;const {range:_0x102609}=_0x336c5c,_0x5649ba=new Set(),_0xe22597={},_0x2b54bc={},_0x325f11=[],_0x5082d3=[],_0xef19d6=[],_0x2ba3cb=[];if(!_0x2c2d6d(this['_univerInstanceService'],{'unitId':_0x292dcf,'subUnitId':_0xdb6741}))return{'redos':_0x5082d3,'undos':_0x325f11};const _0x1683f2=this['_sparklineDataSourceModel'][_0x1905a3(0x257)](_0x292dcf,_0xdb6741);if(!_0x1683f2)return{'redos':_0x5082d3,'undos':_0x325f11};if(!((_0x32f00f=(_0x577d7b=this['_sparklineDataSourceModel'][_0x1905a3(0x25a)]()[_0x1905a3(0x270)][_0x1905a3(0x22b)](_0x292dcf))==null?void 0x0:_0x577d7b[_0x1905a3(0x22b)](_0xdb6741))==null?void 0x0:_0x32f00f[_0x1905a3(0x25c)]))return{'redos':_0x5082d3,'undos':_0x325f11};for(const [_0x45fb80,_0x130abd]of _0x1683f2){const _0x27b370=_0x130abd[_0x1905a3(0x239)];_0x27b370[_0x1905a3(0x263)]((_0x458b35,_0x59b828,_0x1ed6f6)=>{const _0x33a541=_0x1905a3;if(_0x26c517[_0x33a541(0x1e6)](_0x102609,_0x1ed6f6)){_0x5649ba[_0x33a541(0x1d4)](_0x45fb80);let _0x8540f0=_0x2b54bc[_0x45fb80];_0x8540f0||(_0x8540f0={'config':_0x130abd['config'],'sparklines':_0x130abd[_0x33a541(0x239)]['clone']()},_0x2b54bc[_0x45fb80]=_0x8540f0);let _0x1fa554=_0xe22597[_0x45fb80];_0x1fa554||(_0x1fa554={'config':_0x130abd[_0x33a541(0x265)],'sparklines':new _0x911435(_0x130abd[_0x33a541(0x239)]['clone']())},_0xe22597[_0x45fb80]=_0x1fa554);const _0x3c67f2=_0x3039b1(_0x1ed6f6,{'id':_0xfff20f['id'],'params':_0x336c5c});_0x3c67f2?_0x1fa554[_0x33a541(0x239)][_0x33a541(0x26c)](_0x458b35,_0x59b828,_0x3c67f2):_0x1fa554[_0x33a541(0x239)][_0x33a541(0x26c)](_0x458b35,_0x59b828,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28cb99[_0x33a541(0x1e1)]});}}),_0x27b370[_0x1905a3(0x263)]((_0x8bed88,_0x45e70a,_0xf3113f)=>{const _0x785cef=_0x1905a3;if(_0x45e70a<=_0x102609[_0x785cef(0x249)]&&_0x45e70a>=_0x102609[_0x785cef(0x25e)]){_0x5649ba[_0x785cef(0x1d4)](_0x45fb80);let _0x2e8b50=_0x2b54bc[_0x45fb80];_0x2e8b50||(_0x2e8b50={'config':_0x130abd[_0x785cef(0x265)],'sparklines':_0x130abd[_0x785cef(0x239)][_0x785cef(0x1be)]()},_0x2b54bc[_0x45fb80]=_0x2e8b50);let _0x3acb9b=_0xe22597[_0x45fb80];_0x3acb9b||(_0x3acb9b={'config':_0x130abd['config'],'sparklines':new _0x911435(_0x130abd[_0x785cef(0x239)][_0x785cef(0x1be)]())},_0xe22597[_0x45fb80]=_0x3acb9b);}});}_0x2ba3cb[_0x1905a3(0x202)]({'id':O['id'],'params':{'unitId':_0x292dcf,'subUnitId':_0xdb6741,'groupIds':Array[_0x1905a3(0x224)](_0x5649ba),'isSingle':!0x1}}),_0xef19d6['push']({'id':O['id'],'params':{'unitId':_0x292dcf,'subUnitId':_0xdb6741,'groupIds':Array['from'](_0x5649ba),'isSingle':!0x1}});const _0x2456fd={};let _0x292d25=!0x1;return Object[_0x1905a3(0x25f)](_0xe22597)['forEach'](([_0xc95084,_0x343169])=>{const _0x313656=_0x1905a3;_0x343169[_0x313656(0x239)][_0x313656(0x264)]()&&(_0x292d25=!0x0,_0x343169[_0x313656(0x239)][_0x313656(0x1e0)](_0x102609[_0x313656(0x25e)],_0x102609[_0x313656(0x249)]-_0x102609[_0x313656(0x25e)]+0x1),_0x2456fd[_0xc95084]={'config':_0x343169[_0x313656(0x265)],'sparklines':_0x343169[_0x313656(0x239)]['clone']()});}),_0x292d25&&_0x5082d3[_0x1905a3(0x202)]({'id':V['id'],'params':{'unitId':_0x292dcf,'subUnitId':_0xdb6741,'sparklineConfigMap':_0x2456fd}}),_0x325f11[_0x1905a3(0x202)]({'id':V['id'],'params':{'unitId':_0x292dcf,'subUnitId':_0xdb6741,'sparklineConfigMap':_0x2b54bc}}),{'redos':_0x5082d3,'undos':_0x325f11,'preRedos':_0xef19d6,'preUndos':_0x2ba3cb};}[_0x6f3a42(0x237)](){const _0x23d99d=_0x6f3a42;this[_0x23d99d(0x254)](this[_0x23d99d(0x274)]['onCommandExecuted'](_0x3f208d=>{const _0x1772f2=_0x23d99d;if(_0x3f208d['id']===_0x35d23f['id']){const _0x23c9fc=_0x3f208d['params'],{unitId:_0x2b2ed5,subUnitId:_0x1e6bc3,range:_0x5cf904}=_0x23c9fc,_0x4aa3c4=_0x5cf904['startColumn'],_0x8ef52a=_0x5cf904[_0x1772f2(0x249)]-_0x5cf904[_0x1772f2(0x25e)]+0x1,_0x4a13c6=this[_0x1772f2(0x247)][_0x1772f2(0x257)](_0x2b2ed5,_0x1e6bc3);if(!_0x4a13c6)return;for(const [_0x4a991c,_0x2d0de5]of _0x4a13c6){this[_0x1772f2(0x247)][_0x1772f2(0x1bf)](_0x2b2ed5,_0x1e6bc3,_0x4a991c);const _0x627b3b=_0x2d0de5['sparklines'];_0x627b3b[_0x1772f2(0x263)]((_0xe7638d,_0x2e7a9b,_0x3bdd1c)=>{const _0x242dc1=_0x1772f2,_0x63ce18={..._0x3bdd1c};_0x4aa3c4<=_0x63ce18[_0x242dc1(0x25e)]?(_0x63ce18[_0x242dc1(0x25e)]+=_0x8ef52a,_0x63ce18[_0x242dc1(0x249)]+=_0x8ef52a):_0x4aa3c4>_0x63ce18[_0x242dc1(0x249)]||(_0x63ce18[_0x242dc1(0x249)]+=_0x8ef52a),_0x627b3b[_0x242dc1(0x26c)](_0xe7638d,_0x2e7a9b,_0x63ce18);});const _0x4316ba=_0x627b3b['getMatrix']();for(const _0x1aa0a1 in _0x4316ba){const _0x1a605d=_0x4316ba[Number(_0x1aa0a1)];if(!_0x1a605d)continue;const _0x1068f7=Object['keys'](_0x1a605d)['map'](Number),_0x3b0d10=Math[_0x1772f2(0x1c8)](..._0x1068f7);for(let _0x3316ae=_0x3b0d10;_0x3316ae>=_0x4aa3c4;_0x3316ae--)_0x3316ae>=_0x4aa3c4&&_0x1a605d[_0x3316ae]&&(_0x1a605d[_0x3316ae+_0x8ef52a]=_0x1a605d[_0x3316ae],delete _0x1a605d[_0x3316ae]);}this['_sparklineDataSourceModel'][_0x1772f2(0x221)](_0x2b2ed5,_0x1e6bc3,_0x4a991c);}}else{if(_0x3f208d['id']===_0x109c08['id']){const _0xb72121=_0x3f208d[_0x1772f2(0x1d3)],{unitId:_0x10513c,subUnitId:_0x17e7c8,range:_0x336991}=_0xb72121,_0x386ee8=_0x336991[_0x1772f2(0x1fd)],_0x671fb4=_0x336991[_0x1772f2(0x226)]-_0x336991[_0x1772f2(0x1fd)]+0x1,_0xb9ec6e=this[_0x1772f2(0x247)][_0x1772f2(0x257)](_0x10513c,_0x17e7c8);if(!_0xb9ec6e)return;for(const [_0x7c5e4e,_0x1ed843]of _0xb9ec6e){this[_0x1772f2(0x247)]['clearSparklineCache'](_0x10513c,_0x17e7c8,_0x7c5e4e);const _0x382a61=_0x1ed843[_0x1772f2(0x239)];_0x382a61[_0x1772f2(0x263)]((_0x871449,_0x3ef408,_0x9e3127)=>{const _0x367040=_0x1772f2,_0x9359c5={..._0x9e3127};_0x386ee8<=_0x9359c5['startRow']?(_0x9359c5[_0x367040(0x1fd)]+=_0x671fb4,_0x9359c5[_0x367040(0x226)]+=_0x671fb4):_0x386ee8>_0x9359c5[_0x367040(0x226)]||(_0x9359c5[_0x367040(0x226)]+=_0x671fb4),_0x382a61['setValue'](_0x871449,_0x3ef408,_0x9359c5);});const _0x582a32=_0x382a61[_0x1772f2(0x23e)](),_0x398b9d=Object[_0x1772f2(0x232)](_0x582a32)[_0x1772f2(0x24b)](Number),_0x4acd9a=Math[_0x1772f2(0x1c8)](..._0x398b9d);for(let _0x536a2a=_0x4acd9a;_0x536a2a>=_0x386ee8;_0x536a2a--)_0x536a2a>=_0x386ee8&&_0x582a32[_0x536a2a]&&(_0x582a32[_0x536a2a+_0x671fb4]=_0x582a32[_0x536a2a],delete _0x582a32[_0x536a2a]);this['_sparklineDataSourceModel']['updateSparklineExtraNum'](_0x10513c,_0x17e7c8,_0x7c5e4e);}}else{if(_0x3f208d['id']===_0xfff20f['id']){const _0x111e86=_0x3f208d[_0x1772f2(0x1d3)],{range:_0x1cbbc5,unitId:_0x3fb2b6,subUnitId:_0x3cb81e}=_0x111e86,_0x1ab257=this[_0x1772f2(0x247)][_0x1772f2(0x257)](_0x3fb2b6,_0x3cb81e);if(!_0x1ab257)return;for(const [_0x10bb97,_0x3dc4c8]of _0x1ab257){const _0x4b33ee=_0x3dc4c8['sparklines'];_0x4b33ee[_0x1772f2(0x263)]((_0x213adb,_0x41277e,_0x6d73aa)=>{const _0x54330c=_0x1772f2,_0x20b433=_0x3039b1(_0x6d73aa,_0x3f208d);_0x20b433?_0x4b33ee[_0x54330c(0x26c)](_0x213adb,_0x41277e,_0x20b433):_0x4b33ee['setValue'](_0x213adb,_0x41277e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28cb99['NORMAL']});}),_0x4b33ee[_0x1772f2(0x1e0)](_0x1cbbc5[_0x1772f2(0x25e)],_0x1cbbc5[_0x1772f2(0x249)]-_0x1cbbc5['startColumn']+0x1);}this[_0x1772f2(0x247)][_0x1772f2(0x276)](_0x3fb2b6,_0x3cb81e);}else{if(_0x3f208d['id']===_0x426ec3['id']){const _0x273423=_0x3f208d[_0x1772f2(0x1d3)],{range:_0x498380,unitId:_0x199117,subUnitId:_0x3de483}=_0x273423,_0x4a023d=this['_sparklineDataSourceModel'][_0x1772f2(0x257)](_0x199117,_0x3de483);if(!_0x4a023d)return;for(const [_0x3f14ff,_0x3c0f93]of _0x4a023d){const _0x4d94d8=_0x3c0f93['sparklines'];_0x4d94d8[_0x1772f2(0x263)]((_0xb2d471,_0x5447f2,_0x5875e0)=>{const _0xd6ea13=_0x1772f2,_0x418ae8=_0x3039b1(_0x5875e0,_0x3f208d);_0x418ae8?_0x4d94d8[_0xd6ea13(0x26c)](_0xb2d471,_0x5447f2,_0x418ae8):_0x4d94d8[_0xd6ea13(0x26c)](_0xb2d471,_0x5447f2,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28cb99[_0xd6ea13(0x1e1)]});}),_0x4d94d8['removeRows'](_0x498380[_0x1772f2(0x1fd)],_0x498380[_0x1772f2(0x226)]-_0x498380[_0x1772f2(0x1fd)]+0x1);}this['_sparklineDataSourceModel'][_0x1772f2(0x276)](_0x199117,_0x3de483);}else{if(_0x3f208d['id']===_0x3b3b3c['id']){const _0x5c8d47=_0x3f208d[_0x1772f2(0x1d3)],{unitId:_0x2ea83a,subUnitId:_0x213cf4,sourceRange:_0x3cc847,targetRange:_0x55cb9d}=_0x5c8d47,_0x29ab7c=this[_0x1772f2(0x247)][_0x1772f2(0x257)](_0x2ea83a,_0x213cf4);if(!_0x29ab7c)return;for(const [_0x48d8d2,_0x18aaf8]of _0x29ab7c){const _0x5d6cc3=_0x18aaf8['sparklines'];_0x5d6cc3['forValue']((_0x93f42a,_0x36108d,_0x30ad23)=>{const _0x4af4ea=_0x1772f2,_0x1ff14b=_0x3039b1(_0x30ad23,_0x3f208d);_0x1ff14b?_0x5d6cc3[_0x4af4ea(0x26c)](_0x93f42a,_0x36108d,_0x1ff14b):_0x5d6cc3[_0x4af4ea(0x26c)](_0x93f42a,_0x36108d,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28cb99[_0x4af4ea(0x1e1)]});}),_0x5d6cc3[_0x1772f2(0x245)](_0x3cc847[_0x1772f2(0x25e)],_0x3cc847[_0x1772f2(0x249)]-_0x3cc847[_0x1772f2(0x25e)]+0x1,_0x55cb9d[_0x1772f2(0x25e)]);}this[_0x1772f2(0x247)][_0x1772f2(0x276)](_0x2ea83a,_0x213cf4);}else{if(_0x3f208d['id']===_0x4b597f['id']){const _0x3612f1=_0x3f208d['params'],{unitId:_0x3f0437,subUnitId:_0x18fcfa,sourceRange:_0x140d6c,targetRange:_0x308b44}=_0x3612f1,_0x31b26c=this[_0x1772f2(0x247)][_0x1772f2(0x257)](_0x3f0437,_0x18fcfa);if(!_0x31b26c)return;for(const [_0x3adac5,_0x498d8d]of _0x31b26c){const _0x3b6026=_0x498d8d[_0x1772f2(0x239)];_0x3b6026[_0x1772f2(0x263)]((_0x22d717,_0xfdd200,_0x3f49b6)=>{const _0x11a681=_0x1772f2,_0x399dd5=_0x3039b1(_0x3f49b6,_0x3f208d);_0x399dd5?_0x3b6026[_0x11a681(0x26c)](_0x22d717,_0xfdd200,_0x399dd5):_0x3b6026[_0x11a681(0x26c)](_0x22d717,_0xfdd200,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x28cb99[_0x11a681(0x1e1)]});}),_0x3b6026[_0x1772f2(0x211)](_0x140d6c[_0x1772f2(0x1fd)],_0x140d6c[_0x1772f2(0x226)]-_0x140d6c[_0x1772f2(0x1fd)]+0x1,_0x308b44[_0x1772f2(0x1fd)]);}this[_0x1772f2(0x247)][_0x1772f2(0x276)](_0x3f0437,_0x18fcfa);}else{if(_0x3f208d['id']===_0x411bde['id']){const _0x10f69c=_0x3f208d['params'],{fromRange:_0x376713,toRange:_0x1a14ad,unitId:_0x545338,from:_0x5414fa,to:_0x5875f7}=_0x10f69c;if(_0x5414fa[_0x1772f2(0x1d5)]!==_0x5875f7[_0x1772f2(0x1d5)])return;const _0x353526=_0x5414fa['subUnitId'],{startRow:_0x488691,endRow:_0x3c5d3e,startColumn:_0x184dba,endColumn:_0x22fd6f}=_0x376713,{startRow:_0x23b696,startColumn:_0xc2a011}=_0x1a14ad,_0x3716e0=_0x23b696-_0x488691,_0x52f938=_0xc2a011-_0x184dba,_0x1e36f1=this[_0x1772f2(0x247)]['getSubUnitSparkline'](_0x545338,_0x353526);if(!(_0x1e36f1!=null&&_0x1e36f1[_0x1772f2(0x215)]))return;for(let _0x4b6778=_0x488691;_0x4b6778<=_0x3c5d3e;_0x4b6778++)for(let _0x2fada5=_0x184dba;_0x2fada5<=_0x22fd6f;_0x2fada5++){const _0x3072b2=this[_0x1772f2(0x247)][_0x1772f2(0x214)](_0x545338,_0x353526,_0x4b6778,_0x2fada5);if(_0x3072b2){const _0x53b300=this[_0x1772f2(0x247)][_0x1772f2(0x231)](_0x545338,_0x353526,_0x3072b2);if(_0x53b300){const _0x12a047=_0x53b300[_0x1772f2(0x239)][_0x1772f2(0x22a)](_0x4b6778,_0x2fada5);_0x12a047&&(_0x53b300[_0x1772f2(0x239)][_0x1772f2(0x26c)](_0x4b6778+_0x3716e0,_0x2fada5+_0x52f938,_0x12a047),_0x53b300[_0x1772f2(0x239)][_0x1772f2(0x212)](_0x4b6778,_0x2fada5));}}}for(const [_0x22a987,_0x41d3ea]of _0x1e36f1){const _0x1ed6f4=_0x41d3ea[_0x1772f2(0x239)];_0x1ed6f4[_0x1772f2(0x263)]((_0x66638a,_0x43773f,_0x53505d)=>{const _0xa3708b=_0x1772f2,_0x5be693={..._0x53505d};_0x26c517[_0xa3708b(0x1c6)](_0x376713,_0x53505d)&&(_0x5be693[_0xa3708b(0x1fd)]+=_0x3716e0,_0x5be693[_0xa3708b(0x226)]+=_0x3716e0,_0x5be693['startColumn']+=_0x52f938,_0x5be693['endColumn']+=_0x52f938),_0x1ed6f4[_0xa3708b(0x26c)](_0x66638a,_0x43773f,_0x5be693);});}this[_0x1772f2(0x247)][_0x1772f2(0x276)](_0x545338,_0x353526);}}}}}}}}));}};_e=nt([ue(0x0,_0x2262d0(_0x15d849)),ue(0x1,_0x2262d0(_0x2343fc)),ue(0x2,_0x2262d0(_0xa8ed5b)),ue(0x3,_0x42589b),ue(0x4,_0x2262d0(y))],_e);var tt=Object[_0x6f3a42(0x243)],st=Object[_0x6f3a42(0x253)],rt=(_0x477a88,_0x285e1e,_0x3c1aa0,_0x4e93e4)=>{for(var _0x5dacd2=_0x4e93e4>0x1?void 0x0:_0x4e93e4?st(_0x285e1e,_0x3c1aa0):_0x285e1e,_0x878cdf=_0x477a88['length']-0x1,_0x434578;_0x878cdf>=0x0;_0x878cdf--)(_0x434578=_0x477a88[_0x878cdf])&&(_0x5dacd2=(_0x4e93e4?_0x434578(_0x285e1e,_0x3c1aa0,_0x5dacd2):_0x434578(_0x5dacd2))||_0x5dacd2);return _0x4e93e4&&_0x5dacd2&&tt(_0x285e1e,_0x3c1aa0,_0x5dacd2),_0x5dacd2;},He=(_0xab38f,_0x21d1a1)=>(_0x5887b9,_0x20239a)=>_0x21d1a1(_0x5887b9,_0x20239a,_0xab38f);let Me=class extends _0x41dee9{constructor(_0x1bae89,_0x29e9b8){const _0x5346dd=_0x6f3a42;super(),this['_resourceManagerService']=_0x1bae89,this[_0x5346dd(0x247)]=_0x29e9b8,this['_initSnapshot']();}[_0x6f3a42(0x242)](){const _0x51cec1=_0x6f3a42,_0x82c35f=_0x4ab523=>{const _0x3936c4=_0x1307,_0x57e08a=this['_sparklineDataSourceModel'][_0x3936c4(0x24a)](_0x4ab523);return _0x57e08a?JSON[_0x3936c4(0x1e3)](_0x57e08a):'';},_0x17bf30=_0x3de691=>_0x3de691?JSON[_0x51cec1(0x269)](_0x3de691):{};this['disposeWithMe'](this[_0x51cec1(0x223)][_0x51cec1(0x1cb)]({'toJson':_0x82c35f,'parseJson':_0x17bf30,'pluginName':Ke,'businesses':[_0x51a80e[_0x51cec1(0x272)]],'onLoad':(_0x314485,_0x457e4a)=>{const _0x157165=_0x51cec1;this[_0x157165(0x247)]['fromJSON'](_0x457e4a);},'onUnLoad':_0x4c6f2e=>{const _0x138814=_0x51cec1;this[_0x138814(0x247)][_0x138814(0x20c)](_0x4c6f2e);}}));}};Me=rt([He(0x0,_0x2262d0(_0x257dd7)),He(0x1,_0x2262d0(y))],Me);var ze=Object['defineProperty'],ot=Object[_0x6f3a42(0x253)],it=(_0x1d6292,_0x3cb434,_0x5cf0bc)=>_0x3cb434 in _0x1d6292?ze(_0x1d6292,_0x3cb434,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5cf0bc}):_0x1d6292[_0x3cb434]=_0x5cf0bc,at=(_0x327aa6,_0x3ca0df,_0x5f7749,_0x37e0d8)=>{for(var _0x2cdf3f=_0x37e0d8>0x1?void 0x0:_0x37e0d8?ot(_0x3ca0df,_0x5f7749):_0x3ca0df,_0x1d8232=_0x327aa6['length']-0x1,_0x2b0d3d;_0x1d8232>=0x0;_0x1d8232--)(_0x2b0d3d=_0x327aa6[_0x1d8232])&&(_0x2cdf3f=(_0x37e0d8?_0x2b0d3d(_0x3ca0df,_0x5f7749,_0x2cdf3f):_0x2b0d3d(_0x2cdf3f))||_0x2cdf3f);return _0x37e0d8&&_0x2cdf3f&&ze(_0x3ca0df,_0x5f7749,_0x2cdf3f),_0x2cdf3f;},Be=(_0x36a4dd,_0x471ed7)=>(_0x2b6e40,_0x1af528)=>_0x471ed7(_0x2b6e40,_0x1af528,_0x36a4dd),Je=(_0x44b739,_0x3621f5,_0x5940e9)=>it(_0x44b739,typeof _0x3621f5!=_0x6f3a42(0x21a)?_0x3621f5+'':_0x3621f5,_0x5940e9);let Re=class extends _0x38a4d4{constructor(_0x31c98a={},_0x184b8a,_0x23dd6f){const _0x681d0f=_0x6f3a42;super(),this['_config']=_0x31c98a,this[_0x681d0f(0x233)]=_0x184b8a,this[_0x681d0f(0x274)]=_0x23dd6f,this['_initDependencies'](),this['_initRegisterCommand']();}['_initDependencies'](){const _0x5761f1=_0x6f3a42;[[y],[ke],[Ce],[he],[_e],[me],[Se],[Me]][_0x5761f1(0x273)](_0x570b36=>{const _0x4a6d0d=_0x5761f1;this[_0x4a6d0d(0x233)][_0x4a6d0d(0x1d4)](_0x570b36);}),_0x2e1870(this['_injector'],[[Me]]);}[_0x6f3a42(0x225)](){const _0x522d04=_0x6f3a42;_0x2e1870(this[_0x522d04(0x233)],[[ke],[Ce],[he],[_e],[me],[Se]]);}[_0x6f3a42(0x271)](){[Pn,V,Un,O,Tn,xe]['forEach'](_0x31b9a1=>this['_commandService']['registerCommand'](_0x31b9a1));}};Je(Re,_0x6f3a42(0x22f),Ke),Je(Re,_0x6f3a42(0x200),_0x51a80e['UNIVER_SHEET']),Re=at([_0x181f51(_0x3f8d64),Be(0x1,_0x2262d0(_0x3b7693)),Be(0x2,_0x2262d0(_0x15d849))],Re);function _0x402a(){const _0xaa8619=['every','registerPluginResource','set','[Sheet\x20Sparkline]:\x20Invalid\x20target','MAX_SAFE_INTEGER','_ensureAnchorMatrix','deepClone','fromJSON','onCommandExecuted','params','add','subUnitId','rgb(30,177,189)','u-spacing','setAlpha','actualColumn','140694oYHOgE','setSparkline','_sparklineModel','_getRefRangeMutationsByDeleteCols','STRING','sheet.command.remove-sparkline','removeColumns','NORMAL','_ensureConfigMap','stringify','ZERO_VALUE','spacing','intersects','10810EplzrO','_initCopySheetWithSparkline','_getRefRangeMutationsByDeleteRows','markersPoint','_univerInstanceService','min','row','specialty','subscribe','emptyShowAs','2959CAlaXf','registerRefRange','PROFIT_AND_LOSS_CHART','getColVisible','_onRefRangeChange','getSheetBySheetId','SELF_EXTREMUM','SOFT','soft','getCurrentSelections','value','rgb(54,78,244)','startRow','rgb(46,187,122)','COMMAND','type','lastPoint','push','LINE_CHART','groupId','u-connect','16sRujKy','_initMergeWithSparkline','ranges','sheet.command.add-sparkline','PIE_CHART','SHEET_SPARKLINE_PLUGIN','deleteUnit','themeType','extremumMin','refRangeHandle','toRgbString','moveRows','realDeleteValue','unitId','getSparkline','size','delete','_refRangeService','_initHideRowColWithSparkline','_initExclusiveRangeChange','symbol','CUSTOM','rgb(244,104,249)','range','GROUP_EXTREMUM','removePartSparkline','DISTINCTIVE','updateSparklineExtraNum','nonNumShowAs','_resourceManagerService','from','onReady','endRow','rgb(252,117,60)','standard','removeRows','getValue','get','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','_sparklineAnchorMap','sheet.mutation.add-sparkline','pluginName','getCurrentUnitForType','getSparklineById','keys','_injector','zero_value','containHiddenCells','593825fcNIuG','_initCorrectRangeWithSparkline','rgb(248,190,21)','sparklines','_initClearWithSparkline','BOOLEAN','some','foreach','getMatrix','updateConfig$','number','sparklineModel','_initSnapshot','defineProperty','hasValue','moveColumns','sheet.command.set-sparkline','_sparklineDataSourceModel','BAR_CHART','endColumn','toJSON','map','pushUndoRedo','getCellRaw','_sheetInterceptorService','484332JznypU','interceptCommand','FRESH','SPACING','getOwnPropertyDescriptor','disposeWithMe','length','_exclusiveRangeService','getSubUnitSparkline','rgb(80,102,248)','disposableCollection','getSparklineCache','lowPoint','matrix','768607vjxAsj','startColumn','entries','next','66240WLZzVm','asObservable','forValue','getSizeOf','config','_updateConfig$','remove','fresh','parse','has','CUSTOM_EXTREMUM','setValue','_initDataChangeListener','sheet.mutation.remove-sparkline','_sheetSelectionService','sparklineAnchorMap','_initRegisterCommand','UNIVER_SHEET','forEach','_commandService','removeSparkline','reBuildAnchorCache','6CHSdRd','MIN_SAFE_INTEGER','clone','clearSparklineCache','3EGzQdJ','addSparkline','rgb(236,100,169)','extremumMax','1899801HYmDNr','column','contains','MUTATION','max','STANDARD'];_0x402a=function(){return _0xaa8619;};return _0x402a();}export{Pn as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Un as RemoveSheetSparklineCommand,O as RemoveSheetSparklineMutation,Tn as SetSheetSparklineCommand,xe as SetSheetSparklineMutation,z as SpacialShowAsEnum,y as SparklineDataSourceModel,Ee as SparklineExtremumTypeEnum,gt as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Vn as SparklineTypeEnum,Re as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
|
|
@@ -24,19 +24,61 @@ export interface ISparklineGroupExtra {
|
|
|
24
24
|
}
|
|
25
25
|
export interface ISparklineDataSource {
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the configuration for a sparkline group.
|
|
29
|
+
*/
|
|
27
30
|
export interface ISparklineGroupConfig {
|
|
31
|
+
/**
|
|
32
|
+
* The type of sparkline
|
|
33
|
+
*/
|
|
28
34
|
type?: SparklineTypeEnum;
|
|
35
|
+
/**
|
|
36
|
+
* The axis configuration of the sparkline
|
|
37
|
+
*/
|
|
29
38
|
axis?: ISparklineAxisConfig;
|
|
39
|
+
/**
|
|
40
|
+
* The max extremum configuration of the sparkline
|
|
41
|
+
*/
|
|
30
42
|
extremumMax?: ISparklineExtremumConfig;
|
|
43
|
+
/**
|
|
44
|
+
* The min extremum configuration of the sparkline
|
|
45
|
+
*/
|
|
31
46
|
extremumMin?: ISparklineExtremumConfig;
|
|
47
|
+
/**
|
|
48
|
+
* The theme of the sparkline
|
|
49
|
+
*/
|
|
32
50
|
themeType?: SparklineThemeTypeEnum;
|
|
51
|
+
/**
|
|
52
|
+
* How to display non-numeric values
|
|
53
|
+
*/
|
|
33
54
|
nonNumShowAs?: SpacialShowAsEnum;
|
|
55
|
+
/**
|
|
56
|
+
* How to display empty values
|
|
57
|
+
*/
|
|
34
58
|
emptyShowAs?: SpacialShowAsEnum;
|
|
59
|
+
/**
|
|
60
|
+
* Whether to display hidden cells
|
|
61
|
+
*/
|
|
35
62
|
containHiddenCells?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The color of the sparkline
|
|
65
|
+
*/
|
|
36
66
|
seriesColor?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The point configuration in sparklines
|
|
69
|
+
*/
|
|
37
70
|
points?: ISparklinePoints;
|
|
71
|
+
/**
|
|
72
|
+
* The line width of the sparkline
|
|
73
|
+
*/
|
|
38
74
|
lineWidth?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Whether to display the gradient of the line chart
|
|
77
|
+
*/
|
|
39
78
|
showGradient?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether to display rounded corners of bar charts and profit and loss charts
|
|
81
|
+
*/
|
|
40
82
|
showRadius?: boolean;
|
|
41
83
|
}
|
|
42
84
|
export declare enum SparklineThemeTypeEnum {
|
|
@@ -48,41 +90,110 @@ export declare enum SparklineThemeTypeEnum {
|
|
|
48
90
|
CUSTOM = "custom"
|
|
49
91
|
}
|
|
50
92
|
export type IExcludeCustom = Exclude<SparklineThemeTypeEnum, SparklineThemeTypeEnum.CUSTOM>;
|
|
93
|
+
/**
|
|
94
|
+
* Enumerates various sparkline types.
|
|
95
|
+
*/
|
|
51
96
|
export declare enum SparklineTypeEnum {
|
|
97
|
+
/**
|
|
98
|
+
* Line Sparkline
|
|
99
|
+
*/
|
|
52
100
|
LINE_CHART = 1,
|
|
101
|
+
/**
|
|
102
|
+
* Bar Sparkline
|
|
103
|
+
*/
|
|
53
104
|
BAR_CHART = 2,
|
|
105
|
+
/**
|
|
106
|
+
* Profit and Loss Sparkline
|
|
107
|
+
*/
|
|
54
108
|
PROFIT_AND_LOSS_CHART = 3,
|
|
109
|
+
/**
|
|
110
|
+
* Pie Sparkline
|
|
111
|
+
*/
|
|
55
112
|
PIE_CHART = 4
|
|
56
113
|
}
|
|
57
114
|
export declare enum SpacialShowAsEnum {
|
|
115
|
+
/**
|
|
116
|
+
* Display as a spacing
|
|
117
|
+
*/
|
|
58
118
|
SPACING = "spacing",
|
|
119
|
+
/**
|
|
120
|
+
* Display as a zero value
|
|
121
|
+
*/
|
|
59
122
|
ZERO_VALUE = "zero_value",
|
|
123
|
+
/**
|
|
124
|
+
* Display as a connect with line
|
|
125
|
+
*/
|
|
60
126
|
CONNECT_WITH_LINE = "connect_with_line"
|
|
61
127
|
}
|
|
62
128
|
export interface ISparklinePoints {
|
|
129
|
+
/**
|
|
130
|
+
* The configuration of the high point
|
|
131
|
+
*/
|
|
63
132
|
highPoint?: ISparklinePointConfig;
|
|
133
|
+
/**
|
|
134
|
+
* The configuration of the low point
|
|
135
|
+
*/
|
|
64
136
|
lowPoint?: ISparklinePointConfig;
|
|
137
|
+
/**
|
|
138
|
+
* The configuration of the first point
|
|
139
|
+
*/
|
|
65
140
|
firstPoint?: ISparklinePointConfig;
|
|
141
|
+
/**
|
|
142
|
+
* The configuration of the last point
|
|
143
|
+
*/
|
|
66
144
|
lastPoint?: ISparklinePointConfig;
|
|
145
|
+
/**
|
|
146
|
+
* The configuration of the negative point
|
|
147
|
+
*/
|
|
67
148
|
negativePoint?: ISparklinePointConfig;
|
|
149
|
+
/**
|
|
150
|
+
* The configuration of the markers point
|
|
151
|
+
*/
|
|
68
152
|
markersPoint?: ISparklinePointConfig;
|
|
69
153
|
}
|
|
70
154
|
export interface ISparklinePointConfig {
|
|
155
|
+
/**
|
|
156
|
+
* Display the point
|
|
157
|
+
*/
|
|
71
158
|
visible?: boolean;
|
|
159
|
+
/**
|
|
160
|
+
* The color of the point
|
|
161
|
+
*/
|
|
72
162
|
color?: string;
|
|
73
163
|
}
|
|
74
164
|
export interface ISparklineAxisConfig {
|
|
165
|
+
/**
|
|
166
|
+
* The color of the axis
|
|
167
|
+
*/
|
|
75
168
|
color?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Display from right to left
|
|
171
|
+
*/
|
|
76
172
|
reverse?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Display the axis
|
|
175
|
+
*/
|
|
77
176
|
visible?: boolean;
|
|
78
177
|
}
|
|
79
178
|
export interface ISparklineExtremumConfig {
|
|
179
|
+
/**
|
|
180
|
+
* The type of extremum
|
|
181
|
+
*/
|
|
80
182
|
type?: SparklineExtremumTypeEnum;
|
|
81
183
|
value?: number;
|
|
82
184
|
}
|
|
83
185
|
export declare enum SparklineExtremumTypeEnum {
|
|
186
|
+
/**
|
|
187
|
+
* Maximum value in a single sparkline
|
|
188
|
+
*/
|
|
84
189
|
SELF_EXTREMUM = 1,
|
|
190
|
+
/**
|
|
191
|
+
* Maximum value in a group of sparklines
|
|
192
|
+
*/
|
|
85
193
|
GROUP_EXTREMUM = 2,
|
|
194
|
+
/**
|
|
195
|
+
* Custom maximum value
|
|
196
|
+
*/
|
|
86
197
|
CUSTOM_EXTREMUM = 3
|
|
87
198
|
}
|
|
88
199
|
export interface ISparklineItem {
|
|
@@ -93,6 +204,12 @@ export interface ISparklinePosition {
|
|
|
93
204
|
row: number;
|
|
94
205
|
col: number;
|
|
95
206
|
}
|
|
207
|
+
/**
|
|
208
|
+
* Represents a sparkline group.
|
|
209
|
+
*
|
|
210
|
+
* @property {ISparklineGroupConfig} config - The configuration for this sparkline group.
|
|
211
|
+
* @property {ObjectMatrix<IRange>} sparklines - The matrix of defined ranges for this group.
|
|
212
|
+
*/
|
|
96
213
|
export interface ISparklineGroup {
|
|
97
214
|
config: ISparklineGroupConfig;
|
|
98
215
|
sparklines: ObjectMatrix<IRange>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SparklineTypeEnum } from '@univerjs-pro/sheets-sparkline';
|
|
2
|
+
import { FEnum } from '@univerjs/core';
|
|
3
|
+
export interface IFSparklineEnumMixin {
|
|
4
|
+
SparklineTypeEnum: typeof SparklineTypeEnum;
|
|
5
|
+
}
|
|
6
|
+
export declare class FSparklineEnum extends FEnum implements IFSparklineEnumMixin {
|
|
7
|
+
get SparklineTypeEnum(): typeof SparklineTypeEnum;
|
|
8
|
+
}
|
|
9
|
+
declare module '@univerjs/core' {
|
|
10
|
+
interface FEnum extends IFSparklineEnumMixin {
|
|
11
|
+
}
|
|
12
|
+
}
|