@univerjs-pro/sheets-sparkline 0.10.3-experimental.20250812-b4b6f1a → 0.10.3-nightly.202508150623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x506be5=_0x786d;(function(_0x794098,_0x5d0461){const _0x1a1ac7=_0x786d,_0x556f63=_0x794098();while(!![]){try{const _0x4a557e=parseInt(_0x1a1ac7(0x279))/0x1+-parseInt(_0x1a1ac7(0x24a))/0x2+-parseInt(_0x1a1ac7(0x20a))/0x3*(parseInt(_0x1a1ac7(0x298))/0x4)+parseInt(_0x1a1ac7(0x264))/0x5+parseInt(_0x1a1ac7(0x293))/0x6+-parseInt(_0x1a1ac7(0x250))/0x7+parseInt(_0x1a1ac7(0x270))/0x8*(parseInt(_0x1a1ac7(0x251))/0x9);if(_0x4a557e===_0x5d0461)break;else _0x556f63['push'](_0x556f63['shift']());}catch(_0x1f7995){_0x556f63['push'](_0x556f63['shift']());}}}(_0x4179,0xc760b));var qe=Object[_0x506be5(0x275)],Qe=(_0x371c0b,_0x48c4dc,_0x1180ea)=>_0x48c4dc in _0x371c0b?qe(_0x371c0b,_0x48c4dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1180ea}):_0x371c0b[_0x48c4dc]=_0x1180ea,se=(_0x14cff0,_0x3e13a1,_0x17c096)=>Qe(_0x14cff0,typeof _0x3e13a1!=_0x506be5(0x285)?_0x3e13a1+'':_0x3e13a1,_0x17c096);import{ObjectMatrix as _0x511bad,Inject as _0x35e0bc,IUniverInstanceService as _0xa3f451,Disposable as _0x15073f,isValidRange as _0x4a3971,CellValueType as _0x3e399b,ColorKit as _0x41f430,CommandType as _0x346e4f,Range as _0x1c6f28,IUndoRedoService as _0x210161,generateRandomId as _0x477ba9,ICommandService as _0x45232d,Tools as _0x58f4fe,sequenceExecute as _0xa3f1c3,Rectangle as _0x2b6864,cellToRange as _0x50c798,DisposableCollection as _0x124002,RANGE_TYPE as _0x73f19b,UniverInstanceType as _0x56cc67,IResourceManagerService as _0x3bf991,DependentOn as _0x57780b,Injector as _0x1942c1,Plugin as _0x43085f,touchDependencies as _0x1686c8}from'@univerjs/core';import{getSheetCommandTarget as _0x1665cf,SheetsSelectionsService as _0x4dd9cc,SheetInterceptorService as _0x3ca65a,ClearSelectionAllCommand as _0x5de6aa,CopySheetCommand as _0x2f60b4,IExclusiveRangeService as _0x50e798,SetRangeValuesMutation as _0x3e28b0,ReorderRangeMutation as _0x99b852,SetRowHiddenMutation as _0x1081ff,SetColHiddenMutation as _0xa5df8c,SetRowVisibleMutation as _0x177482,SetColVisibleMutation as _0x573af4,AddWorksheetMergeCommand as _0x20597f,RefRangeService as _0x2d35b7,SetWorksheetActivateCommand as _0x485939,RemoveRowCommand as _0x597740,RemoveColCommand as _0x3d2c7f,adjustRangeOnMutation as _0x2f10d6,RemoveRowMutation as _0x3eef21,RemoveColMutation as _0xa0e473,InsertColMutation as _0x376745,InsertRowMutation as _0x419566,MoveColsMutation as _0x249374,MoveRowsMutation as _0x2ac477,MoveRangeMutation as _0x5b99ae}from'@univerjs/sheets';import{Subject as _0xa11be7}from'rxjs';import{UniverLicensePlugin as _0x1359dc}from'@univerjs-pro/license';function Fe(_0x5b9235,_0x514f34){const _0x41caa6=_0x506be5,_0xf5e7a6=new _0x511bad(),_0x93ccee=[],_0x45511e=_0x5b9235[_0x41caa6(0x1ee)]>0x1;let _0xf67f08=0x0,_0x4d723a=0x0;for(const _0x42f482 of _0x5b9235)_0xf67f08+=_0x42f482['endRow']-_0x42f482[_0x41caa6(0x273)]+0x1,_0x4d723a+=_0x42f482['endColumn']-_0x42f482[_0x41caa6(0x276)]+0x1;for(const _0xc0b971 of _0x514f34)for(let _0x3f2aac=_0xc0b971[_0x41caa6(0x273)];_0x3f2aac<=_0xc0b971[_0x41caa6(0x26a)];_0x3f2aac++)for(let _0x2bad9d=_0xc0b971['startColumn'];_0x2bad9d<=_0xc0b971[_0x41caa6(0x282)];_0x2bad9d++)_0x93ccee[_0x41caa6(0x27f)]({'row':_0x3f2aac,'column':_0x2bad9d});if(_0x93ccee[_0x41caa6(0x1ee)]===_0xf67f08)_0x45511e?_0x93ccee[_0x41caa6(0x1f6)]((_0x995b11,_0x287bc7)=>{const _0x87bd8f=_0x41caa6,_0x2fefa4=_0x5b9235[_0x287bc7],_0x556c55={'startRow':_0x2fefa4[_0x87bd8f(0x273)],'startColumn':_0x2fefa4[_0x87bd8f(0x276)],'endRow':_0x2fefa4['startRow'],'endColumn':_0x2fefa4[_0x87bd8f(0x282)]};_0xf5e7a6['setValue'](_0x995b11['row'],_0x995b11['column'],_0x556c55);}):_0x93ccee[_0x41caa6(0x1f6)]((_0x5cc275,_0x20797c)=>{const _0x49794a=_0x41caa6,_0x30f0de=_0x5b9235[0x0],_0x2ca55a={'startRow':_0x30f0de['startRow']+_0x20797c,'startColumn':_0x30f0de['startColumn'],'endRow':_0x30f0de[_0x49794a(0x273)]+_0x20797c,'endColumn':_0x30f0de[_0x49794a(0x282)]};_0xf5e7a6[_0x49794a(0x27c)](_0x5cc275['row'],_0x5cc275[_0x49794a(0x283)],_0x2ca55a);});else{if(_0x93ccee[_0x41caa6(0x1ee)]===_0x4d723a)_0x45511e?_0x93ccee[_0x41caa6(0x1f6)]((_0x527385,_0xd4b4ff)=>{const _0x5482f0=_0x41caa6,_0x464880=_0x5b9235[_0xd4b4ff],_0xeb03db={'startRow':_0x464880[_0x5482f0(0x273)],'startColumn':_0x464880['startColumn'],'endRow':_0x464880['endRow'],'endColumn':_0x464880[_0x5482f0(0x276)]};_0xf5e7a6[_0x5482f0(0x27c)](_0x527385['row'],_0x527385[_0x5482f0(0x283)],_0xeb03db);}):_0x93ccee[_0x41caa6(0x1f6)]((_0x91eb04,_0x4b0c7d)=>{const _0x50937e=_0x41caa6,_0x19eea6=_0x5b9235[0x0],_0x52739c={'startRow':_0x19eea6[_0x50937e(0x273)],'startColumn':_0x19eea6[_0x50937e(0x276)]+_0x4b0c7d,'endRow':_0x19eea6[_0x50937e(0x26a)],'endColumn':_0x19eea6[_0x50937e(0x276)]+_0x4b0c7d};_0xf5e7a6[_0x50937e(0x27c)](_0x91eb04[_0x50937e(0x262)],_0x91eb04[_0x50937e(0x283)],_0x52739c);});else{if(_0x93ccee[_0x41caa6(0x1ee)]===_0x5b9235['length'])_0x5b9235['every'](_0x3c1d7e=>!(_0x3c1d7e[_0x41caa6(0x273)]!==_0x3c1d7e[_0x41caa6(0x26a)]&&_0x3c1d7e['startColumn']!==_0x3c1d7e[_0x41caa6(0x282)]))&&_0x93ccee['forEach']((_0x3de1ca,_0x36c143)=>{const _0x450f0d=_0x41caa6,_0x5de63a=_0x5b9235[_0x36c143];_0xf5e7a6[_0x450f0d(0x27c)](_0x3de1ca[_0x450f0d(0x262)],_0x3de1ca[_0x450f0d(0x283)],_0x5de63a);});else throw new Error(_0x41caa6(0x24c));}}return _0xf5e7a6;}const Ke=_0x506be5(0x211),Le={'standard':['rgb(54,78,244)',_0x506be5(0x29f)],'specialty':[_0x506be5(0x21c),_0x506be5(0x24f)],'distinctive':[_0x506be5(0x215),_0x506be5(0x21a)],'soft':['rgb(80,102,248)',_0x506be5(0x222)],'fresh':['rgb(46,187,122)',_0x506be5(0x1fc)]},on=['highPoint',_0x506be5(0x26c),_0x506be5(0x246),_0x506be5(0x26f),_0x506be5(0x249),_0x506be5(0x277)];var Xe=(_0xf0fb05=>(_0xf0fb05[_0x506be5(0x1f5)]='standard',_0xf0fb05[_0x506be5(0x20b)]=_0x506be5(0x23c),_0xf0fb05[_0x506be5(0x237)]='distinctive',_0xf0fb05[_0x506be5(0x28c)]=_0x506be5(0x2a1),_0xf0fb05[_0x506be5(0x214)]=_0x506be5(0x234),_0xf0fb05['CUSTOM']='custom',_0xf0fb05))(Xe||{}),Dt=(_0x330d9c=>(_0x330d9c[_0x330d9c[_0x506be5(0x226)]=0x1]=_0x506be5(0x226),_0x330d9c[_0x330d9c[_0x506be5(0x281)]=0x2]='BAR_CHART',_0x330d9c[_0x330d9c[_0x506be5(0x201)]=0x3]=_0x506be5(0x201),_0x330d9c[_0x330d9c[_0x506be5(0x220)]=0x4]=_0x506be5(0x220),_0x330d9c))(Dt||{}),J=(_0x3fc3af=>(_0x3fc3af[_0x506be5(0x255)]=_0x506be5(0x295),_0x3fc3af['ZERO_VALUE']=_0x506be5(0x27a),_0x3fc3af[_0x506be5(0x241)]=_0x506be5(0x207),_0x3fc3af))(J||{}),De=(_0x5c74a0=>(_0x5c74a0[_0x5c74a0[_0x506be5(0x29b)]=0x1]=_0x506be5(0x29b),_0x5c74a0[_0x5c74a0['GROUP_EXTREMUM']=0x2]='GROUP_EXTREMUM',_0x5c74a0[_0x5c74a0['CUSTOM_EXTREMUM']=0x3]='CUSTOM_EXTREMUM',_0x5c74a0))(De||{}),Et=Object[_0x506be5(0x25b)],Vt=(_0x35b2d5,_0x1d2299,_0x1328a7,_0x370b51)=>{const _0x1fa175=_0x506be5;for(var _0x1dff23=_0x370b51>0x1?void 0x0:_0x370b51?Et(_0x1d2299,_0x1328a7):_0x1d2299,_0x4ce9c9=_0x35b2d5[_0x1fa175(0x1ee)]-0x1,_0x262323;_0x4ce9c9>=0x0;_0x4ce9c9--)(_0x262323=_0x35b2d5[_0x4ce9c9])&&(_0x1dff23=_0x262323(_0x1dff23)||_0x1dff23);return _0x1dff23;},yt=(_0x56c6f9,_0xc9e85d)=>(_0x2b7520,_0x5c52b1)=>_0xc9e85d(_0x2b7520,_0x5c52b1,_0x56c6f9);let x=class extends _0x15073f{constructor(_0x49b511){const _0x59d206=_0x506be5;super(),se(this,_0x59d206(0x200),new Map()),se(this,_0x59d206(0x265),new Map()),se(this,_0x59d206(0x254),new _0xa11be7()),se(this,_0x59d206(0x287),this[_0x59d206(0x254)][_0x59d206(0x297)]()),this[_0x59d206(0x236)]=_0x49b511;}[_0x506be5(0x291)](_0x1123be,_0x1e2fd3){const _0x3e2b9a=_0x506be5;let _0x23f78c=this[_0x3e2b9a(0x200)][_0x3e2b9a(0x25a)](_0x1123be);_0x23f78c||(_0x23f78c=new Map(),this[_0x3e2b9a(0x200)][_0x3e2b9a(0x203)](_0x1123be,_0x23f78c));let _0x7b6a93=_0x23f78c[_0x3e2b9a(0x25a)](_0x1e2fd3);return _0x7b6a93||(_0x7b6a93=new Map(),_0x23f78c[_0x3e2b9a(0x203)](_0x1e2fd3,_0x7b6a93)),_0x7b6a93;}[_0x506be5(0x229)](_0x46bd18,_0x3f17a4){const _0x5a3f49=_0x506be5;let _0x3ff866=this[_0x5a3f49(0x265)][_0x5a3f49(0x25a)](_0x46bd18);_0x3ff866||(_0x3ff866=new Map(),this[_0x5a3f49(0x265)][_0x5a3f49(0x203)](_0x46bd18,_0x3ff866));let _0x4c30c6=_0x3ff866[_0x5a3f49(0x25a)](_0x3f17a4);return _0x4c30c6||(_0x4c30c6={'matrix':new _0x511bad(),'extra':{}},_0x3ff866[_0x5a3f49(0x203)](_0x3f17a4,_0x4c30c6)),_0x4c30c6;}[_0x506be5(0x1fa)](_0x10c99a,_0x2802af,_0x364cf9,_0x1549d3=_0x506be5(0x203)){const _0x2a38a1=_0x506be5;var _0x254940,_0x589446,_0x13e31c,_0x333d47,_0x269858,_0x578ef3,_0x30f8c2,_0x18ad84,_0x34eec6,_0x4d28c2,_0x38b7ef,_0x1b924b,_0x163f39;const _0x14bff2=(_0x589446=(_0x254940=this[_0x2a38a1(0x200)][_0x2a38a1(0x25a)](_0x10c99a))==null?void 0x0:_0x254940[_0x2a38a1(0x25a)](_0x2802af))==null?void 0x0:_0x589446[_0x2a38a1(0x25a)](_0x364cf9);if(!_0x14bff2)return;const _0x4de61d=_0x1665cf(this[_0x2a38a1(0x236)],{'unitId':_0x10c99a,'subUnitId':_0x2802af});if(!_0x4de61d)return;const _0x16d843=this[_0x2a38a1(0x229)](_0x10c99a,_0x2802af),{extra:_0x7d9a94,matrix:_0x534b7f}=_0x16d843,{worksheet:_0x2c4420}=_0x4de61d;let _0x53b099=Number[_0x2a38a1(0x204)],_0x2fc49e=Number['MAX_SAFE_INTEGER'];const _0x2dc51e=(_0x13e31c=_0x14bff2[_0x2a38a1(0x221)][_0x2a38a1(0x274)])!=null?_0x13e31c:!0x1;_0x14bff2[_0x2a38a1(0x23b)][_0x2a38a1(0x208)]((_0x437c20,_0x51ce1d,_0x1dfd73)=>{const _0x47f707=_0x2a38a1;var _0x1f821f,_0x2fadee,_0x1be250;const _0x42f4fd=_0x1dfd73;let _0x3a06d5=Number[_0x47f707(0x204)],_0x2e5a04=Number[_0x47f707(0x27b)],_0x1b4207=0x0,_0x1c37c0=0x0;const _0x7ee6d8=[];if(!_0x4a3971(_0x42f4fd))_0x534b7f[_0x47f707(0x27c)](_0x437c20,_0x51ce1d,{'groupId':_0x364cf9,'data':[],'max':_0x3a06d5,'min':_0x2e5a04,'highIndex':_0x1b4207,'lowIndex':_0x1c37c0,'negativeIndexes':_0x7ee6d8});else{const _0x3ede05=[];for(let _0x38f75e=_0x42f4fd[_0x47f707(0x273)];_0x38f75e<=_0x42f4fd[_0x47f707(0x26a)];_0x38f75e++){for(let _0x22c460=_0x42f4fd[_0x47f707(0x276)];_0x22c460<=_0x42f4fd[_0x47f707(0x282)];_0x22c460++){const _0x3a2d27=_0x2c4420[_0x47f707(0x21d)](_0x38f75e),_0x3a1b79=_0x2c4420[_0x47f707(0x28a)](_0x22c460);if(!_0x2dc51e&&(!_0x3a2d27||!_0x3a1b79))continue;let _0x44345c=0x0;const _0x2ba9a7=((_0x1f821f=_0x2c4420[_0x47f707(0x223)](_0x38f75e,_0x22c460))==null?void 0x0:_0x1f821f['v'])!==void 0x0?_0x2c4420[_0x47f707(0x223)](_0x38f75e,_0x22c460):_0x2c4420[_0x47f707(0x205)](_0x38f75e,_0x22c460);if(!_0x2ba9a7||_0x2ba9a7['v']===void 0x0||_0x2ba9a7['v']===null){const _0x3380d3=(_0x2fadee=_0x14bff2[_0x47f707(0x221)]['emptyShowAs'])!=null?_0x2fadee:J[_0x47f707(0x255)];_0x3380d3===J[_0x47f707(0x235)]?_0x44345c=0x0:_0x3380d3===J[_0x47f707(0x255)]?_0x44345c=_0x47f707(0x22d):_0x3380d3===J[_0x47f707(0x241)]&&(_0x44345c='u-connect');}else{if(_0x2ba9a7['t']===_0x3e399b['STRING']||_0x2ba9a7['t']===_0x3e399b[_0x47f707(0x242)]){const _0x5664ba=(_0x1be250=_0x14bff2[_0x47f707(0x221)][_0x47f707(0x29c)])!=null?_0x1be250:J[_0x47f707(0x255)];_0x5664ba===J[_0x47f707(0x235)]?_0x44345c=0x0:_0x5664ba===J[_0x47f707(0x255)]?_0x44345c=_0x47f707(0x22d):_0x5664ba===J[_0x47f707(0x241)]&&(_0x44345c=_0x47f707(0x228));}else _0x2ba9a7['t']===_0x3e399b['BOOLEAN']?_0x44345c=_0x2ba9a7['v']?0x1:0x0:_0x2ba9a7['t']===_0x3e399b[_0x47f707(0x243)]?_0x44345c=Number(_0x2ba9a7['v']):_0x44345c=_0x2ba9a7['v'];}if(_0x3ede05[_0x47f707(0x27f)](_0x44345c),typeof _0x44345c=='number'){_0x3a06d5=Math[_0x47f707(0x238)](_0x3a06d5,_0x44345c),_0x53b099=Math['max'](_0x53b099,_0x44345c),_0x2fc49e=Math['min'](_0x2fc49e,_0x44345c),_0x2e5a04=Math[_0x47f707(0x248)](_0x2e5a04,_0x44345c);const _0x13f1cb=typeof _0x3ede05[_0x1b4207]==_0x47f707(0x240)?Number(_0x3ede05[_0x1b4207]):Number[_0x47f707(0x204)];_0x44345c>_0x13f1cb&&(_0x1b4207=_0x3ede05[_0x47f707(0x1ee)]-0x1);const _0x1186b7=typeof _0x3ede05[_0x1c37c0]==_0x47f707(0x240)?Number(_0x3ede05[_0x1c37c0]):Number['MAX_SAFE_INTEGER'];_0x44345c<_0x1186b7&&(_0x1c37c0=_0x3ede05['length']-0x1),_0x44345c<0x0&&_0x7ee6d8['push'](_0x3ede05['length']-0x1);}}_0x534b7f['setValue'](_0x437c20,_0x51ce1d,{'groupId':_0x364cf9,'data':_0x3ede05,'max':_0x3a06d5,'min':_0x2e5a04,'highIndex':_0x1b4207,'lowIndex':_0x1c37c0,'negativeIndexes':_0x7ee6d8});}}});let _0x5ef7b9=_0x53b099;((_0x333d47=_0x14bff2[_0x2a38a1(0x221)][_0x2a38a1(0x272)])==null?void 0x0:_0x333d47['type'])===De[_0x2a38a1(0x289)]&&(_0x5ef7b9=(_0x578ef3=(_0x269858=_0x14bff2[_0x2a38a1(0x221)][_0x2a38a1(0x272)])==null?void 0x0:_0x269858[_0x2a38a1(0x253)])!=null?_0x578ef3:_0x53b099);let _0x45da33=_0x2fc49e;((_0x30f8c2=_0x14bff2[_0x2a38a1(0x221)]['extremumMin'])==null?void 0x0:_0x30f8c2[_0x2a38a1(0x233)])===De[_0x2a38a1(0x289)]&&(_0x45da33=(_0x34eec6=(_0x18ad84=_0x14bff2[_0x2a38a1(0x221)]['extremumMin'])==null?void 0x0:_0x18ad84[_0x2a38a1(0x253)])!=null?_0x34eec6:_0x2fc49e);const _0x45d5bf=(_0x4d28c2=_0x14bff2[_0x2a38a1(0x221)]['themeType'])!=null?_0x4d28c2:Xe[_0x2a38a1(0x1f5)],_0x3a713a=(_0x163f39=(_0x1b924b=_0x14bff2['config'][_0x2a38a1(0x1ff)])!=null?_0x1b924b:(_0x38b7ef=Le[_0x45d5bf])==null?void 0x0:_0x38b7ef[0x0])!=null?_0x163f39:Le['standard'][0x0],_0x11ccdd=new _0x41f430(_0x3a713a),_0x2110a4=_0x11ccdd[_0x2a38a1(0x20d)](0.2)[_0x2a38a1(0x23e)](),_0x5d3f78=_0x11ccdd[_0x2a38a1(0x20d)](0.05)[_0x2a38a1(0x23e)]();_0x7d9a94[_0x364cf9]={'groupMax':_0x53b099,'groupMin':_0x2fc49e,'showMax':_0x5ef7b9,'showMin':_0x45da33,'startGradient':_0x2110a4,'endGradient':_0x5d3f78},this[_0x2a38a1(0x254)][_0x2a38a1(0x22e)]({'unitId':_0x10c99a,'subUnitId':_0x2802af,'groupId':_0x364cf9,'config':_0x14bff2,'type':_0x1549d3});}[_0x506be5(0x22c)](_0x4169ac,_0x41916a,_0x35586f,_0xb0c980){const _0x3f6a2b=_0x506be5;this[_0x3f6a2b(0x291)](_0x4169ac,_0x41916a)[_0x3f6a2b(0x203)](_0x35586f,_0xb0c980),this[_0x3f6a2b(0x1fa)](_0x4169ac,_0x41916a,_0x35586f,_0x3f6a2b(0x260));}[_0x506be5(0x271)](_0x42a8e1,_0x1d5e03,_0x1f62dc,_0x139587){const _0x3326b8=_0x506be5;var _0x4cf93a;const _0xdcb02=(_0x4cf93a=this[_0x3326b8(0x200)][_0x3326b8(0x25a)](_0x42a8e1))==null?void 0x0:_0x4cf93a['get'](_0x1d5e03);_0x1f62dc['forEach'](_0x8d185f=>{const _0x58d1f8=_0x3326b8;_0xdcb02!=null&&_0xdcb02[_0x58d1f8(0x1f3)](_0x8d185f)&&(_0xdcb02['set'](_0x8d185f,_0x139587),this[_0x58d1f8(0x1fa)](_0x42a8e1,_0x1d5e03,_0x8d185f));});}[_0x506be5(0x292)](_0x5f3cdb,_0x4c4321,_0x397310){const _0x5d66f5=_0x506be5;var _0x33ea74,_0x4a585b;const _0x159e68=this['_sparklineModel']['get'](_0x5f3cdb);if(_0x159e68){const _0x4b4901=_0x159e68[_0x5d66f5(0x25a)](_0x4c4321);if(_0x4b4901){_0x4b4901[_0x5d66f5(0x25d)](_0x397310);const _0x1c21b8=(_0x33ea74=this[_0x5d66f5(0x265)][_0x5d66f5(0x25a)](_0x5f3cdb))==null?void 0x0:_0x33ea74['get'](_0x4c4321);(_0x4a585b=_0x1c21b8==null?void 0x0:_0x1c21b8[_0x5d66f5(0x299)])==null||_0x4a585b[_0x5d66f5(0x208)]((_0x35ab18,_0xb10c49,_0x289a5e)=>{const _0x522d69=_0x5d66f5;(_0x289a5e==null?void 0x0:_0x289a5e[_0x522d69(0x20c)])===_0x397310&&(_0x1c21b8==null||_0x1c21b8['matrix']['realDeleteValue'](_0x35ab18,_0xb10c49));}),this['_updateConfig$']['next']({'unitId':_0x5f3cdb,'subUnitId':_0x4c4321,'groupId':_0x397310,'type':_0x5d66f5(0x1f0)});}}}[_0x506be5(0x1f4)](_0x41e8ef,_0x387a99,_0x351b92,_0x2222a9){const _0x24cfda=_0x506be5;var _0x3ffa74,_0x17bc94,_0x477ac3,_0x15d9f1;const _0x20ccf0=(_0x3ffa74=this[_0x24cfda(0x265)]['get'](_0x41e8ef))==null?void 0x0:_0x3ffa74[_0x24cfda(0x25a)](_0x387a99),_0x3fdc1c=_0x20ccf0==null?void 0x0:_0x20ccf0[_0x24cfda(0x299)][_0x24cfda(0x1fd)](_0x351b92,_0x2222a9);if(_0x3fdc1c){const {groupId:_0x501ed5}=_0x3fdc1c,_0x2154a8=(_0x17bc94=this[_0x24cfda(0x200)][_0x24cfda(0x25a)](_0x41e8ef))==null?void 0x0:_0x17bc94[_0x24cfda(0x25a)](_0x387a99);(_0x477ac3=_0x2154a8==null?void 0x0:_0x2154a8['get'](_0x501ed5))==null||_0x477ac3[_0x24cfda(0x23b)][_0x24cfda(0x210)](_0x351b92,_0x2222a9),(_0x15d9f1=_0x2154a8==null?void 0x0:_0x2154a8[_0x24cfda(0x25a)](_0x501ed5))!=null&&_0x15d9f1[_0x24cfda(0x23b)]['hasValue']()||_0x2154a8==null||_0x2154a8[_0x24cfda(0x25d)](_0x501ed5),_0x20ccf0==null||_0x20ccf0['matrix'][_0x24cfda(0x210)](_0x351b92,_0x2222a9),this[_0x24cfda(0x254)][_0x24cfda(0x22e)]({'unitId':_0x41e8ef,'subUnitId':_0x387a99,'groupId':_0x501ed5,'type':_0x24cfda(0x1f0)});}}[_0x506be5(0x288)](_0x25824a,_0x3c70ea,_0x30f863){const _0x3789ee=_0x506be5;var _0xb47f1b,_0x257740,_0x564f41,_0x25c3c5;const _0x107847=(_0x564f41=(_0x257740=(_0xb47f1b=this[_0x3789ee(0x200)][_0x3789ee(0x25a)](_0x25824a))==null?void 0x0:_0xb47f1b['get'](_0x3c70ea))==null?void 0x0:_0x257740[_0x3789ee(0x25a)](_0x30f863))==null?void 0x0:_0x564f41[_0x3789ee(0x23b)],_0x123984=(_0x25c3c5=this[_0x3789ee(0x265)]['get'](_0x25824a))==null?void 0x0:_0x25c3c5[_0x3789ee(0x25a)](_0x3c70ea);if(_0x107847&&_0x123984){const {matrix:_0x4e02b2,extra:_0x193e5c}=_0x123984;_0x107847['forValue']((_0x3f294b,_0x2ba24d,_0x1d4f5c)=>{const _0x53012f=_0x3789ee;_0x4e02b2[_0x53012f(0x210)](_0x3f294b,_0x2ba24d);}),delete _0x193e5c[_0x30f863];}}[_0x506be5(0x1fb)](_0x2b4763,_0x16756b){const _0x4536bd=_0x506be5;var _0x15b812;return(_0x15b812=this[_0x4536bd(0x200)]['get'](_0x2b4763))==null?void 0x0:_0x15b812[_0x4536bd(0x25a)](_0x16756b);}['getSparklineById'](_0x416975,_0x1745d0,_0x497772){const _0x314e6d=_0x506be5;var _0x347f0f,_0x2656d9;return(_0x2656d9=(_0x347f0f=this[_0x314e6d(0x200)]['get'](_0x416975))==null?void 0x0:_0x347f0f[_0x314e6d(0x25a)](_0x1745d0))==null?void 0x0:_0x2656d9[_0x314e6d(0x25a)](_0x497772);}[_0x506be5(0x20f)](_0x22456a,_0x4d403f,_0x1993d2,_0x341f24){const _0xc5a084=_0x506be5;var _0x42dda4,_0x5f3eca,_0x2d234a;return(_0x2d234a=(_0x5f3eca=(_0x42dda4=this[_0xc5a084(0x265)][_0xc5a084(0x25a)](_0x22456a))==null?void 0x0:_0x42dda4[_0xc5a084(0x25a)](_0x4d403f))==null?void 0x0:_0x5f3eca['matrix'][_0xc5a084(0x1fd)](_0x1993d2,_0x341f24))==null?void 0x0:_0x2d234a[_0xc5a084(0x20c)];}[_0x506be5(0x218)](_0x1390c5,_0x4c87d0){const _0xef223c=_0x506be5;var _0x169626;const _0x2736b0=this[_0xef223c(0x229)](_0x1390c5,_0x4c87d0);_0x2736b0['matrix']['forValue']((_0x652f87,_0x317ae0)=>{const _0x1eb703=_0xef223c;_0x2736b0['matrix'][_0x1eb703(0x210)](_0x652f87,_0x317ae0);});const _0x229abb=(_0x169626=this[_0xef223c(0x200)][_0xef223c(0x25a)](_0x1390c5))==null?void 0x0:_0x169626['get'](_0x4c87d0);if(_0x229abb){for(const [_0x6aa4bf]of _0x229abb)this[_0xef223c(0x1fa)](_0x1390c5,_0x4c87d0,_0x6aa4bf);}}[_0x506be5(0x224)](){const _0x5ef934=_0x506be5;return{'sparklineModel':this[_0x5ef934(0x200)],'sparklineAnchorMap':this['_sparklineAnchorMap']};}[_0x506be5(0x290)](_0x50b072){const _0x5e42eb=_0x506be5,_0x28881a={};if(this[_0x5e42eb(0x200)][_0x5e42eb(0x1f3)](_0x50b072)){_0x28881a[_0x50b072]={};const _0x56b670=this[_0x5e42eb(0x200)][_0x5e42eb(0x25a)](_0x50b072);_0x56b670!=null&&_0x56b670[_0x5e42eb(0x24b)]&&Array['from'](_0x56b670[_0x5e42eb(0x256)]())[_0x5e42eb(0x1f6)](_0x51cf45=>{const _0x545d39=_0x5e42eb;_0x28881a[_0x50b072][_0x51cf45]={};const _0x2e9d82=_0x56b670['get'](_0x51cf45);_0x2e9d82!=null&&_0x2e9d82[_0x545d39(0x24b)]&&Array['from'](_0x2e9d82['keys']())[_0x545d39(0x1f6)](_0x395729=>{const _0x41b256=_0x545d39,_0x15ddf2=_0x2e9d82[_0x41b256(0x25a)](_0x395729);_0x15ddf2&&(_0x28881a[_0x50b072][_0x51cf45][_0x395729]={'config':_0x15ddf2[_0x41b256(0x221)],'sparklines':_0x15ddf2[_0x41b256(0x23b)]['getMatrix']()});});});}return _0x28881a;}[_0x506be5(0x245)](_0x100ade){const _0x19bc03=_0x506be5;if(!_0x100ade)return;Object['keys'](_0x100ade)[_0x19bc03(0x1f6)](_0x40dc52=>{const _0x5e75a4=_0x19bc03,_0x2dc5ee=_0x100ade[_0x40dc52];_0x2dc5ee&&Object[_0x5e75a4(0x256)](_0x2dc5ee)[_0x5e75a4(0x1f6)](_0xdab69c=>{const _0x1d9607=_0x5e75a4,_0x41c77a=_0x2dc5ee[_0xdab69c];_0x41c77a&&Object[_0x1d9607(0x256)](_0x41c77a)['forEach'](_0x580c4a=>{const _0x5cac53=_0x1d9607,_0x2c42e6=_0x41c77a[_0x580c4a];if(_0x2c42e6){const _0x3aa030={'config':_0x2c42e6[_0x5cac53(0x221)],'sparklines':new _0x511bad(_0x2c42e6['sparklines'])};this[_0x5cac53(0x22c)](_0x40dc52,_0xdab69c,_0x580c4a,_0x3aa030);}});});});}['deleteUnit'](_0x2d5421){const _0x134c89=_0x506be5,_0x20380b=this[_0x134c89(0x200)][_0x134c89(0x25a)](_0x2d5421);if(_0x20380b){for(const [_0x5332da]of _0x20380b){const _0x1a8e45=_0x20380b[_0x134c89(0x25a)](_0x5332da);if(_0x1a8e45){for(const [_0x2a0df7]of _0x1a8e45)this[_0x134c89(0x288)](_0x2d5421,_0x5332da,_0x2a0df7);}}this[_0x134c89(0x200)][_0x134c89(0x25d)](_0x2d5421);}}};x=Vt([yt(0x0,_0x35e0bc(_0xa3f451))],x);function _0x786d(_0x13c30d,_0x364f25){const _0x417979=_0x4179();return _0x786d=function(_0x786de1,_0xeee2d6){_0x786de1=_0x786de1-0x1ec;let _0x4e1fac=_0x417979[_0x786de1];return _0x4e1fac;},_0x786d(_0x13c30d,_0x364f25);}const V={'id':_0x506be5(0x1fe),'type':_0x346e4f[_0x506be5(0x263)],'handler':(_0x168564,_0x2d2979)=>{const _0x55c292=_0x506be5;if(!_0x2d2979)return!0x1;const {sparklineConfigMap:_0x78d058,unitId:_0x3dbeaf,subUnitId:_0x1824e8}=_0x2d2979,_0x302adf=_0x168564[_0x55c292(0x25a)](x);return Object[_0x55c292(0x1f7)](_0x78d058)[_0x55c292(0x1f6)](([_0x2ebcbf,_0x4ed6f8])=>{const _0x569eb1=_0x55c292,_0xe42a8b={'config':_0x4ed6f8[_0x569eb1(0x221)],'sparklines':new _0x511bad(_0x4ed6f8[_0x569eb1(0x23b)])};_0x302adf[_0x569eb1(0x22c)](_0x3dbeaf,_0x1824e8,_0x2ebcbf,_0xe42a8b);}),!0x0;}},y={'id':'sheet.mutation.remove-sparkline','type':_0x346e4f[_0x506be5(0x263)],'handler':(_0x5b6c2d,_0x526202)=>{const _0x3b510d=_0x506be5;if(!_0x526202)return!0x1;const {unitId:_0x5d7a11,subUnitId:_0x2dd808,ranges:_0x9b83c9,isSingle:_0x4ad314,groupIds:_0xcd5c42}=_0x526202,_0xfbe21a=_0x5b6c2d[_0x3b510d(0x25a)](x);return _0xcd5c42?(_0xcd5c42[_0x3b510d(0x1f6)](_0xdb2314=>{const _0x3539a5=_0x3b510d;_0xfbe21a[_0x3539a5(0x292)](_0x5d7a11,_0x2dd808,_0xdb2314);}),!0x0):_0x9b83c9?(_0x9b83c9['forEach'](_0x44b30f=>{_0x1c6f28['foreach'](_0x44b30f,(_0x464778,_0x27ce74)=>{const _0x2c4af4=_0x786d,_0x1ac7e9=_0xfbe21a[_0x2c4af4(0x20f)](_0x5d7a11,_0x2dd808,_0x464778,_0x27ce74);_0x1ac7e9&&(_0x4ad314?_0xfbe21a['removePartSparkline'](_0x5d7a11,_0x2dd808,_0x464778,_0x27ce74):_0xfbe21a[_0x2c4af4(0x292)](_0x5d7a11,_0x2dd808,_0x1ac7e9));});}),!0x0):!0x1;}},Nt={'id':_0x506be5(0x24d),'type':_0x346e4f[_0x506be5(0x28e)],'handler':(_0xf8b8e1,_0x54537b)=>{const _0x1087cd=_0x506be5;if(!_0x54537b)return!0x1;const {sourceRanges:_0x441135,targetRanges:_0x3e5636,config:_0x55f633}=_0x54537b,_0x9608f0=_0xf8b8e1[_0x1087cd(0x25a)](_0x210161),_0x3b98ce='g_'+_0x477ba9(0x6),_0x4df9f7=Fe(_0x441135,_0x3e5636),_0x2e9706={'config':_0x55f633!=null?_0x55f633:{},'sparklines':_0x4df9f7['getMatrix']()},_0x272967=_0xf8b8e1[_0x1087cd(0x25a)](_0xa3f451),_0x375689=_0xf8b8e1[_0x1087cd(0x25a)](x),_0x4b26cd=_0x1665cf(_0x272967);if(!_0x4b26cd)return!0x1;const {unitId:_0x4dd8dd,subUnitId:_0x1044aa}=_0x4b26cd,_0x3905c3=_0xf8b8e1['get'](_0x45232d),_0x500143=[],_0x53faf7=[],_0x59907d={},_0x2ee640={},_0x2b88d1=new Set([_0x3b98ce]);_0x4df9f7[_0x1087cd(0x208)]((_0x164f3d,_0x458434,_0x5f378b)=>{const _0x471cbd=_0x1087cd,_0x3cc153=_0x375689[_0x471cbd(0x20f)](_0x4dd8dd,_0x1044aa,_0x164f3d,_0x458434);if(_0x3cc153){const _0x2317d1=_0x375689[_0x471cbd(0x202)](_0x4dd8dd,_0x1044aa,_0x3cc153);if(_0x2317d1){_0x2b88d1['add'](_0x3cc153);let _0x4719fb=_0x59907d[_0x3cc153],_0x2baded=_0x2ee640[_0x3cc153];_0x2baded||(_0x2baded={'config':_0x58f4fe[_0x471cbd(0x25e)](_0x2317d1[_0x471cbd(0x221)]),'sparklines':new _0x511bad(_0x2317d1[_0x471cbd(0x23b)][_0x471cbd(0x22b)]())},_0x2ee640[_0x3cc153]=_0x2baded),_0x4719fb||(_0x4719fb={'config':_0x58f4fe[_0x471cbd(0x25e)](_0x2317d1['config']),'sparklines':_0x2317d1['sparklines']['clone']()},_0x59907d[_0x3cc153]=_0x4719fb),_0x2baded[_0x471cbd(0x23b)][_0x471cbd(0x210)](_0x164f3d,_0x458434);}}});const _0x9544c2={};return Object[_0x1087cd(0x1f7)](_0x2ee640)[_0x1087cd(0x1f6)](([_0x146437,_0x27ac20])=>{const _0x1e32b4=_0x1087cd;_0x27ac20[_0x1e32b4(0x23b)]['getSizeOf']()&&(_0x9544c2[_0x146437]={'config':_0x27ac20[_0x1e32b4(0x221)],'sparklines':_0x27ac20['sparklines'][_0x1e32b4(0x22b)]()});}),_0x9544c2[_0x3b98ce]=_0x2e9706,_0x500143[_0x1087cd(0x27f)]({'id':y['id'],'params':{'unitId':_0x4dd8dd,'subUnitId':_0x1044aa,'groupIds':Array[_0x1087cd(0x294)](_0x2b88d1),'isSingle':!0x1}}),_0x2b88d1['size']>0x1&&(_0x53faf7['push']({'id':y['id'],'params':{'unitId':_0x4dd8dd,'subUnitId':_0x1044aa,'groupIds':Array[_0x1087cd(0x294)](_0x2b88d1),'isSingle':!0x1}}),_0x500143['push']({'id':V['id'],'params':{'unitId':_0x4dd8dd,'subUnitId':_0x1044aa,'sparklineConfigMap':_0x59907d}})),_0x53faf7['push']({'id':V['id'],'params':{'unitId':_0x4dd8dd,'subUnitId':_0x1044aa,'sparklineConfigMap':_0x9544c2}}),_0xa3f1c3(_0x53faf7,_0x3905c3),_0x9608f0[_0x1087cd(0x259)]({'unitID':_0x4dd8dd,'undoMutations':_0x500143,'redoMutations':_0x53faf7}),!0x0;}},Ot={'id':'sheet.command.remove-sparkline','type':_0x346e4f[_0x506be5(0x28e)],'handler':(_0x12147c,_0xdc804c)=>{const _0x40db65=_0x506be5;var _0x7340ec;const {isSingle:_0x3b773d=!0x0}=_0xdc804c||{},_0x45a4c5=_0x12147c[_0x40db65(0x25a)](_0x45232d),_0x2bf8d2=_0x12147c['get'](_0xa3f451),_0x4b8854=_0x12147c['get'](x),_0x2180d=_0x12147c[_0x40db65(0x25a)](_0x210161),_0x4a9163=_0x1665cf(_0x2bf8d2);if(!_0x4a9163)return!0x1;const _0x5a19a1=_0x12147c['get'](_0x4dd9cc),_0x19aa1e=(_0x7340ec=_0xdc804c==null?void 0x0:_0xdc804c[_0x40db65(0x286)])!=null?_0x7340ec:_0x5a19a1[_0x40db65(0x22f)]()[_0x40db65(0x26b)](_0x1b062d=>_0x1b062d['range']),{unitId:_0x541b61,subUnitId:_0x553864}=_0x4a9163,_0x1ec3a8=[],_0x4eeec0=[];_0x1ec3a8[_0x40db65(0x27f)]({'id':y['id'],'params':{'unitId':_0x541b61,'subUnitId':_0x553864,'ranges':_0x19aa1e,'isSingle':_0x3b773d}});const _0x1486f5=[],_0x180404={};return _0x19aa1e['forEach'](_0x56639c=>{const _0x4d758a=_0x40db65;_0x1c6f28[_0x4d758a(0x212)](_0x56639c,(_0xd304d2,_0x14523f)=>{const _0xcd4dad=_0x4d758a,_0x4f0ca8=_0x4b8854[_0xcd4dad(0x20f)](_0x541b61,_0x553864,_0xd304d2,_0x14523f);if(_0x4f0ca8){const _0x5da385=_0x4b8854[_0xcd4dad(0x202)](_0x541b61,_0x553864,_0x4f0ca8);_0x5da385&&(_0x1486f5[_0xcd4dad(0x27f)](_0x4f0ca8),_0x180404[_0x4f0ca8]={'config':_0x58f4fe[_0xcd4dad(0x25e)](_0x5da385[_0xcd4dad(0x221)]),'sparklines':_0x58f4fe[_0xcd4dad(0x25e)](_0x5da385['sparklines'][_0xcd4dad(0x22b)]())});}});}),_0x4eeec0[_0x40db65(0x27f)]({'id':y['id'],'params':{'unitId':_0x541b61,'subUnitId':_0x553864,'groupIds':_0x1486f5,'isSingle':!0x1}}),_0x4eeec0['push']({'id':V['id'],'params':{'unitId':_0x541b61,'subUnitId':_0x553864,'sparklineConfigMap':_0x180404}}),_0xa3f1c3(_0x1ec3a8,_0x45a4c5),_0x2180d[_0x40db65(0x259)]({'unitID':_0x541b61,'undoMutations':_0x4eeec0,'redoMutations':_0x1ec3a8}),!0x0;}},Oe={'id':'sheet.mutation.set-sparkline','type':_0x346e4f[_0x506be5(0x263)],'handler':(_0x5cf253,_0x234cee)=>{const _0x214c6b=_0x506be5;if(!_0x234cee)return!0x1;const {unitId:_0x25be79,subUnitId:_0x4bdf08,groupIds:_0x2de07e,config:_0x284285}=_0x234cee,_0x40906b=_0x5cf253[_0x214c6b(0x25a)](x);return _0x2de07e['forEach'](_0x5b4c41=>{const _0x41f281=_0x214c6b,_0x60c951=_0x40906b['getSparklineById'](_0x25be79,_0x4bdf08,_0x5b4c41);if(_0x60c951){const _0x5334a2={'config':Object[_0x41f281(0x29e)]({},_0x60c951[_0x41f281(0x221)],_0x284285[_0x41f281(0x221)]),'sparklines':new _0x511bad(_0x60c951[_0x41f281(0x23b)][_0x41f281(0x22b)]())};_0x40906b['setSparkline'](_0x25be79,_0x4bdf08,[_0x5b4c41],_0x5334a2);}}),!0x0;}},xt={'id':_0x506be5(0x25c),'type':_0x346e4f[_0x506be5(0x28e)],'handler':(_0x3fcb67,_0x3b8041)=>{const _0x408005=_0x506be5;var _0xfadf97,_0x56df21,_0x3e68f9,_0x57903d;if(!_0x3b8041)return!0x1;const _0x35eb8a=_0x3fcb67[_0x408005(0x25a)](_0x45232d),_0x141948=_0x3fcb67[_0x408005(0x25a)](_0x4dd9cc),_0x453624=_0x3fcb67[_0x408005(0x25a)](x),_0x2ee460=_0x3fcb67[_0x408005(0x25a)](_0xa3f451),_0xde543e=_0x3fcb67[_0x408005(0x25a)](_0x210161),_0xfcf4fc=_0x1665cf(_0x2ee460);if(!_0xfcf4fc)return!0x1;const {unitId:_0x52b20f,subUnitId:_0x1baf90}=_0xfcf4fc,_0x23b783=(_0xfadf97=_0x3b8041==null?void 0x0:_0x3b8041[_0x408005(0x286)])!=null?_0xfadf97:_0x141948[_0x408005(0x22f)]()['map'](_0x423da6=>_0x423da6['range']),_0x29f458=(_0x56df21=_0x453624['getSparklineCache']()['sparklineAnchorMap'][_0x408005(0x25a)](_0x52b20f))==null?void 0x0:_0x56df21[_0x408005(0x25a)](_0x1baf90),{isChangeDataSource:_0xdb14b0,config:_0x1abb7c,combine:_0x17d44e,unCombine:_0x25fd66}=_0x3b8041;if(_0x17d44e){const _0x593dad=[],_0x5de415=[];_0x593dad[_0x408005(0x27f)]({'id':y['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'ranges':_0x23b783,'isSingle':!0x0}});const _0x46eb76='g_'+_0x477ba9(0x6),_0x20da5e=new _0x511bad(),_0x431d1a=(_0x3e68f9=_0x453624['getSparklineCache']()['sparklineModel']['get'](_0x52b20f))==null?void 0x0:_0x3e68f9[_0x408005(0x25a)](_0x1baf90),_0xc78c48=new Set([_0x46eb76]),_0x50c302={};return _0x23b783[_0x408005(0x1f6)](_0x43ea1e=>{const _0x56d118=_0x408005;var _0x214849,_0x968698;const {startRow:_0x5b73d3,endRow:_0x4df4e8,startColumn:_0x253a4d,endColumn:_0x30e123}=_0x43ea1e;for(let _0x3f8c02=_0x5b73d3;_0x3f8c02<=_0x4df4e8;_0x3f8c02++)for(let _0x178d6b=_0x253a4d;_0x178d6b<=_0x30e123;_0x178d6b++){const _0x4dcdbd=(_0x214849=_0x29f458==null?void 0x0:_0x29f458[_0x56d118(0x299)][_0x56d118(0x1fd)](_0x3f8c02,_0x178d6b))==null?void 0x0:_0x214849[_0x56d118(0x20c)];if(_0x4dcdbd){_0xc78c48[_0x56d118(0x260)](_0x4dcdbd);const _0x2e99ab=_0x453624[_0x56d118(0x202)](_0x52b20f,_0x1baf90,_0x4dcdbd);_0x2e99ab&&(_0x50c302[_0x4dcdbd]={'config':_0x58f4fe['deepClone'](_0x2e99ab[_0x56d118(0x221)]),'sparklines':_0x58f4fe[_0x56d118(0x25e)](_0x2e99ab['sparklines'][_0x56d118(0x22b)]())});const _0x4a193c=(_0x968698=_0x431d1a==null?void 0x0:_0x431d1a[_0x56d118(0x25a)](_0x4dcdbd))==null?void 0x0:_0x968698[_0x56d118(0x23b)][_0x56d118(0x1fd)](_0x3f8c02,_0x178d6b);_0x4a193c&&_0x20da5e['setValue'](_0x3f8c02,_0x178d6b,_0x4a193c);}}}),_0x593dad[_0x408005(0x27f)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x46eb76]:{'config':_0x58f4fe[_0x408005(0x25e)](_0x1abb7c[_0x408005(0x221)]),'sparklines':_0x20da5e[_0x408005(0x213)]()}},'unitId':_0x52b20f,'subUnitId':_0x1baf90}}),_0x5de415['push']({'id':y['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'isSingle':!0x1,'groupIds':Array[_0x408005(0x294)](_0xc78c48)}}),_0x5de415[_0x408005(0x27f)]({'id':V['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'sparklineConfigMap':_0x50c302}}),_0xa3f1c3(_0x593dad,_0x35eb8a),_0xde543e[_0x408005(0x259)]({'unitID':_0x52b20f,'undoMutations':_0x5de415,'redoMutations':_0x593dad}),!0x0;}else{if(_0x25fd66){const _0x3e33ce=[],_0x1e419c=[];_0x3e33ce[_0x408005(0x27f)]({'id':y['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'ranges':_0x23b783,'isSingle':!0x0}});const _0x56e856=(_0x57903d=_0x453624[_0x408005(0x224)]()[_0x408005(0x27e)][_0x408005(0x25a)](_0x52b20f))==null?void 0x0:_0x57903d[_0x408005(0x25a)](_0x1baf90),_0x506b46={},_0x3b9ef0=new Set(),_0x362ca0={};return _0x23b783[_0x408005(0x1f6)](_0x39aa75=>{const _0x4f22f5=_0x408005;var _0x4d14d9,_0x5aac0d;const {startRow:_0x4c9862,endRow:_0x5e290e,startColumn:_0x52e728,endColumn:_0x4c6fbc}=_0x39aa75;for(let _0x3311fe=_0x4c9862;_0x3311fe<=_0x5e290e;_0x3311fe++)for(let _0x5c3b43=_0x52e728;_0x5c3b43<=_0x4c6fbc;_0x5c3b43++){const _0x5226eb=(_0x4d14d9=_0x29f458==null?void 0x0:_0x29f458[_0x4f22f5(0x299)][_0x4f22f5(0x1fd)](_0x3311fe,_0x5c3b43))==null?void 0x0:_0x4d14d9[_0x4f22f5(0x20c)];if(_0x5226eb){const _0x3df2d4=new _0x511bad(),_0x48774b='g_'+_0x477ba9(0x6);_0x3b9ef0[_0x4f22f5(0x260)](_0x5226eb),_0x3b9ef0[_0x4f22f5(0x260)](_0x48774b);const _0x3fcd43=_0x453624[_0x4f22f5(0x202)](_0x52b20f,_0x1baf90,_0x5226eb);_0x3fcd43&&(_0x362ca0[_0x5226eb]={'config':_0x58f4fe[_0x4f22f5(0x25e)](_0x3fcd43[_0x4f22f5(0x221)]),'sparklines':_0x58f4fe[_0x4f22f5(0x25e)](_0x3fcd43['sparklines'][_0x4f22f5(0x22b)]())});const _0x2a5b3b=(_0x5aac0d=_0x56e856==null?void 0x0:_0x56e856[_0x4f22f5(0x25a)](_0x5226eb))==null?void 0x0:_0x5aac0d[_0x4f22f5(0x23b)]['getValue'](_0x3311fe,_0x5c3b43);_0x2a5b3b&&_0x3df2d4[_0x4f22f5(0x27c)](_0x3311fe,_0x5c3b43,_0x2a5b3b),_0x506b46[_0x48774b]={'sparklines':_0x3df2d4['getMatrix'](),'config':_0x58f4fe[_0x4f22f5(0x25e)](_0x1abb7c[_0x4f22f5(0x221)])};}}}),_0x3e33ce[_0x408005(0x27f)]({'id':V['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'sparklineConfigMap':_0x506b46}}),_0x1e419c[_0x408005(0x27f)]({'id':y['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'isSingle':!0x1,'groupIds':Array[_0x408005(0x294)](_0x3b9ef0)}}),_0x1e419c[_0x408005(0x27f)]({'id':V['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'sparklineConfigMap':_0x362ca0}}),_0xa3f1c3(_0x3e33ce,_0x35eb8a),_0xde543e[_0x408005(0x259)]({'unitID':_0x52b20f,'undoMutations':_0x1e419c,'redoMutations':_0x3e33ce}),!0x0;}}if(_0xdb14b0){const _0x57d87b=_0x3b8041[_0x408005(0x216)];if(!_0x57d87b)return!0x1;const {groupId:_0x4b7d91,sourceRanges:_0x2d0c2b,targetRanges:_0x193cab,resetType:_0x165c65,primary:_0x51278f}=_0x57d87b,_0x5c55a8=[],_0x44cf9a=[];_0x5c55a8['push']({'id':y['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'ranges':_0x23b783,'isSingle':!0x1,'groupIds':[_0x4b7d91]}}),_0x44cf9a['push']({'id':y['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'ranges':_0x23b783,'isSingle':!0x1,'groupIds':[_0x4b7d91]}});let _0x93e1ad;_0x165c65===_0x408005(0x29a)?(_0x93e1ad=new _0x511bad(_0x1abb7c['sparklines']['clone']()),_0x93e1ad[_0x408005(0x210)](_0x51278f['actualRow'],_0x51278f[_0x408005(0x22a)]),_0x93e1ad['setValue'](_0x193cab[0x0][_0x408005(0x273)],_0x193cab[0x0][_0x408005(0x276)],_0x2d0c2b[0x0])):_0x93e1ad=Fe(_0x2d0c2b,_0x193cab);const _0x471962={'config':_0x58f4fe[_0x408005(0x25e)](_0x1abb7c['config']),'sparklines':_0x93e1ad[_0x408005(0x213)]()},_0x3bdc6a={'config':_0x58f4fe[_0x408005(0x25e)](_0x1abb7c['config']),'sparklines':_0x58f4fe[_0x408005(0x25e)](_0x1abb7c[_0x408005(0x23b)][_0x408005(0x22b)]())};_0x5c55a8[_0x408005(0x27f)]({'id':V['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'sparklineConfigMap':{[_0x4b7d91]:_0x471962}}}),_0x44cf9a[_0x408005(0x27f)]({'id':V['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'sparklineConfigMap':{[_0x4b7d91]:_0x3bdc6a}}}),_0xa3f1c3(_0x5c55a8,_0x35eb8a),_0xde543e['pushUndoRedo']({'unitID':_0x52b20f,'undoMutations':_0x44cf9a,'redoMutations':_0x5c55a8});}else{const _0x132ac9=[],_0x488efc=[],_0x529958=new Set(),_0x103cf4={};_0x23b783[_0x408005(0x1f6)](_0x542781=>{const _0x133eab=_0x408005;var _0x3e441b;const {startRow:_0x21d94f,endRow:_0x1cbc89,startColumn:_0x1dfc8d,endColumn:_0x548648}=_0x542781;for(let _0x2eec66=_0x21d94f;_0x2eec66<=_0x1cbc89;_0x2eec66++)for(let _0x221f08=_0x1dfc8d;_0x221f08<=_0x548648;_0x221f08++){const _0x359e7b=(_0x3e441b=_0x29f458==null?void 0x0:_0x29f458[_0x133eab(0x299)][_0x133eab(0x1fd)](_0x2eec66,_0x221f08))==null?void 0x0:_0x3e441b['groupId'];if(_0x359e7b){_0x529958[_0x133eab(0x260)](_0x359e7b);const _0x54c524=_0x453624[_0x133eab(0x202)](_0x52b20f,_0x1baf90,_0x359e7b);_0x54c524&&(_0x103cf4[_0x359e7b]={'config':_0x58f4fe[_0x133eab(0x25e)](_0x54c524[_0x133eab(0x221)]),'sparklines':_0x58f4fe[_0x133eab(0x25e)](_0x54c524['sparklines'][_0x133eab(0x22b)]())});}}}),_0x488efc[_0x408005(0x27f)]({'id':Oe['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'groupIds':Array['from'](_0x529958),'config':{'config':_0x58f4fe['deepClone'](_0x1abb7c[_0x408005(0x221)]),'sparklines':_0x1abb7c[_0x408005(0x23b)]['getMatrix']()}}}),_0x132ac9[_0x408005(0x27f)]({'id':y['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'isSingle':!0x1,'groupIds':Array[_0x408005(0x294)](_0x529958)}}),_0x132ac9[_0x408005(0x27f)]({'id':V['id'],'params':{'unitId':_0x52b20f,'subUnitId':_0x1baf90,'sparklineConfigMap':_0x103cf4}}),_0xa3f1c3(_0x488efc,_0x35eb8a),_0xde543e[_0x408005(0x259)]({'unitID':_0x52b20f,'undoMutations':_0x132ac9,'redoMutations':_0x488efc});}return!0x0;}};var Ut=Object[_0x506be5(0x25b)],Pt=(_0x51bcb1,_0x215ff7,_0x4e0365,_0x583478)=>{for(var _0x1c6dfd=_0x583478>0x1?void 0x0:_0x583478?Ut(_0x215ff7,_0x4e0365):_0x215ff7,_0x2417f4=_0x51bcb1['length']-0x1,_0xa3fdde;_0x2417f4>=0x0;_0x2417f4--)(_0xa3fdde=_0x51bcb1[_0x2417f4])&&(_0x1c6dfd=_0xa3fdde(_0x1c6dfd)||_0x1c6dfd);return _0x1c6dfd;},fe=(_0x24a21d,_0x2444d6)=>(_0xda13bc,_0x4a0af8)=>_0x2444d6(_0xda13bc,_0x4a0af8,_0x24a21d);let Se=class extends _0x15073f{constructor(_0x2b31f1,_0x446556,_0xeebe3,_0x58fbe5){const _0x59f628=_0x506be5;super(),this[_0x59f628(0x21b)]=_0x2b31f1,this['_sheetInterceptorService']=_0x446556,this['_univerInstanceService']=_0xeebe3,this[_0x59f628(0x21e)]=_0x58fbe5,this[_0x59f628(0x2a0)]();}[_0x506be5(0x2a0)](){const _0x15e712=_0x506be5;this[_0x15e712(0x269)](this[_0x15e712(0x206)][_0x15e712(0x239)]({'getMutations':_0x228eef=>{const _0x547f6a=_0x15e712,_0x3066c0=[],_0x1b6620=[];if(_0x228eef['id']===_0x5de6aa['id']){const _0x29bdca=_0x1665cf(this['_univerInstanceService']);if(!_0x29bdca)return{'redos':_0x3066c0,'undos':_0x1b6620};const {unitId:_0x284101,subUnitId:_0x5ce7e3,worksheet:_0x55739c}=_0x29bdca,_0x31121a=this[_0x547f6a(0x21e)]['getCurrentSelections']()[_0x547f6a(0x26b)](_0x4d341d=>_0x4d341d[_0x547f6a(0x230)]),_0x29fcbf=new Set(),_0x1d80d={},_0x28bfe4={};_0x31121a[_0x547f6a(0x1f6)](_0x1fa56b=>{_0x1c6f28['foreach'](_0x1fa56b,(_0x51d276,_0x3af22c)=>{const _0x407332=_0x786d,_0x2ef5f8=this[_0x407332(0x21b)]['getSparkline'](_0x284101,_0x5ce7e3,_0x51d276,_0x3af22c);if(_0x2ef5f8&&!_0x29fcbf[_0x407332(0x1f3)](_0x2ef5f8)){const _0x28c9be=this['_sparklineDataSourceModel'][_0x407332(0x202)](_0x284101,_0x5ce7e3,_0x2ef5f8);_0x28c9be&&(_0x29fcbf['add'](_0x2ef5f8),_0x1d80d[_0x2ef5f8]={'config':_0x58f4fe[_0x407332(0x25e)](_0x28c9be['config']),'sparklines':_0x58f4fe[_0x407332(0x25e)](_0x28c9be[_0x407332(0x23b)][_0x407332(0x22b)]())},_0x28bfe4[_0x2ef5f8]={'config':_0x58f4fe[_0x407332(0x25e)](_0x28c9be[_0x407332(0x221)]),'sparklines':_0x58f4fe[_0x407332(0x25e)](_0x28c9be[_0x407332(0x23b)][_0x407332(0x22b)]())});}});}),Object['values'](_0x28bfe4)[_0x547f6a(0x1f6)](_0x3e2395=>{const _0x39c804=_0x547f6a,_0x106d0c=_0x3e2395[_0x39c804(0x23b)];new _0x511bad(_0x106d0c)[_0x39c804(0x208)]((_0x55f586,_0x21ec46,_0x43ac8f)=>{const _0xae9b69=_0x39c804;_0x31121a['some'](_0x116803=>_0x2b6864[_0xae9b69(0x267)](_0x116803,_0x50c798(_0x55f586,_0x21ec46)))&&delete _0x106d0c[_0x55f586][_0x21ec46];});}),_0x3066c0[_0x547f6a(0x27f)]({'id':y['id'],'params':{'unitId':_0x284101,'subUnitId':_0x5ce7e3,'groupIds':Array[_0x547f6a(0x294)](_0x29fcbf),'isSingle':!0x1}}),_0x3066c0[_0x547f6a(0x27f)]({'id':V['id'],'params':{'unitId':_0x284101,'subUnitId':_0x5ce7e3,'sparklineConfigMap':_0x28bfe4}}),_0x1b6620[_0x547f6a(0x27f)]({'id':y['id'],'params':{'unitId':_0x284101,'subUnitId':_0x5ce7e3,'groupIds':Array[_0x547f6a(0x294)](_0x29fcbf),'isSingle':!0x1}}),_0x1b6620[_0x547f6a(0x27f)]({'id':V['id'],'params':{'unitId':_0x284101,'subUnitId':_0x5ce7e3,'sparklineConfigMap':_0x1d80d}});}return{'redos':_0x3066c0,'undos':_0x1b6620};}}));}};Se=Pt([fe(0x0,_0x35e0bc(x)),fe(0x1,_0x35e0bc(_0x3ca65a)),fe(0x2,_0x35e0bc(_0xa3f451)),fe(0x3,_0x35e0bc(_0x4dd9cc))],Se);var Tt=Object[_0x506be5(0x25b)],$t=(_0x5943f3,_0x2495fa,_0x457b99,_0x3aba17)=>{const _0x558f73=_0x506be5;for(var _0x21263d=_0x3aba17>0x1?void 0x0:_0x3aba17?Tt(_0x2495fa,_0x457b99):_0x2495fa,_0x21565d=_0x5943f3[_0x558f73(0x1ee)]-0x1,_0xbdc994;_0x21565d>=0x0;_0x21565d--)(_0xbdc994=_0x5943f3[_0x21565d])&&(_0x21263d=_0xbdc994(_0x21263d)||_0x21263d);return _0x21263d;},Ge=(_0x129e17,_0x309003)=>(_0x52534f,_0x5ad4e5)=>_0x309003(_0x52534f,_0x5ad4e5,_0x129e17);let ke=class extends _0x15073f{constructor(_0x4ce94a,_0x2e9f9b){const _0x3bc2bc=_0x506be5;super(),this[_0x3bc2bc(0x206)]=_0x4ce94a,this[_0x3bc2bc(0x21b)]=_0x2e9f9b,this['_initCopySheetWithSparkline']();}[_0x506be5(0x23f)](){const _0x29cc3b=_0x506be5;this['disposeWithMe'](this['_sheetInterceptorService'][_0x29cc3b(0x239)]({'getMutations':_0xc23063=>{const _0x3a2f09=_0x29cc3b,_0x2fb720=[],_0x5dd769=[];if(_0xc23063['id']===_0x2f60b4['id']){const _0x52dfcf=_0xc23063['params'];if(!_0x52dfcf)return{'redos':_0x2fb720,'undos':_0x5dd769};const {unitId:_0x1ccc2d,subUnitId:_0xd6f5f7,targetSubUnitId:_0x34d1d9}=_0x52dfcf;if(!_0x1ccc2d||!_0xd6f5f7||!_0x34d1d9)return{'redos':_0x2fb720,'undos':_0x5dd769};const _0x57a797=new Set(),_0x512858={},_0x3e43fa=this[_0x3a2f09(0x21b)][_0x3a2f09(0x1fb)](_0x1ccc2d,_0xd6f5f7);if(!_0x3e43fa)return{'redos':_0x2fb720,'undos':_0x5dd769};for(const [_0x1f4fb2,_0xf5f147]of _0x3e43fa){const _0x367742='g_'+_0x477ba9(0x6);_0x57a797[_0x3a2f09(0x260)](_0x1f4fb2),_0x512858[_0x367742]={'config':_0x58f4fe['deepClone'](_0xf5f147['config']),'sparklines':_0x58f4fe['deepClone'](_0xf5f147['sparklines'][_0x3a2f09(0x22b)]())};}_0x57a797['size']&&(_0x5dd769[_0x3a2f09(0x27f)]({'id':y['id'],'params':{'unitId':_0x1ccc2d,'subUnitId':_0x34d1d9,'groupIds':Array['from'](_0x57a797),'isSingle':!0x1}}),_0x2fb720[_0x3a2f09(0x27f)]({'id':V['id'],'params':{'unitId':_0x1ccc2d,'subUnitId':_0x34d1d9,'sparklineConfigMap':_0x512858}}));}return{'redos':_0x2fb720,'undos':_0x5dd769};}}));}};function _0x4179(){const _0x244c8c=['containHiddenCells','defineProperty','startColumn','markersPoint','contains','716304dXpfbD','zero_value','MAX_SAFE_INTEGER','setValue','refRangeHandle','sparklineModel','push','_initSnapshot','BAR_CHART','endColumn','column','_initDependencies','symbol','ranges','updateConfig$','clearSparklineCache','CUSTOM_EXTREMUM','getColVisible','_initHideRowColWithSparkline','SOFT','_getRefRangeMutationsByDeleteCols','COMMAND','getSizeOf','toJSON','_ensureConfigMap','removeSparkline','3559938MxVntU','from','spacing','subUnitId','asObservable','10204unJAZd','matrix','item','SELF_EXTREMUM','nonNumShowAs','subscribe','assign','rgb(236,100,169)','_initClearWithSparkline','soft','_injector','getSheetBySheetId','length','_initDataChangeListener','remove','params','removeColumns','has','removePartSparkline','STANDARD','forEach','entries','UNIVER_SHEET','sparklineAnchorMap','updateSparklineExtraNum','getSubUnitSparkline','rgb(248,190,21)','getValue','sheet.mutation.add-sparkline','seriesColor','_sparklineModel','PROFIT_AND_LOSS_CHART','getSparklineById','set','MIN_SAFE_INTEGER','getCell','_sheetInterceptorService','connect_with_line','forValue','onCommandExecuted','219OjpwUJ','SPECIALTY','groupId','setAlpha','moveRows','getSparkline','realDeleteValue','SHEET_SPARKLINE_PLUGIN','foreach','getMatrix','FRESH','rgb(124,66,147)','changeDataSourceInfo','parse','reBuildAnchorCache','registerPluginResource','rgb(252,117,60)','_sparklineDataSourceModel','rgb(49,106,246)','getRowVisible','_sheetSelectionService','pluginName','PIE_CHART','config','rgb(244,104,249)','getCellRaw','getSparklineCache','unitId','LINE_CHART','_onRefRangeChange','u-connect','_ensureAnchorMatrix','actualColumn','clone','addSparkline','u-spacing','next','getCurrentSelections','range','_initExclusiveRangeChange','_refRangeService','type','fresh','ZERO_VALUE','_univerInstanceService','DISTINCTIVE','max','interceptCommand','_initRegisterCommand','sparklines','specialty','stringify','toRgbString','_initCopySheetWithSparkline','number','CONNECT_WITH_LINE','FORCE_STRING','NUMBER','exclusiveRangesChange$','fromJSON','lastPoint','_initCorrectRangeWithSparkline','min','negativePoint','3070560pwnXPl','size','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','sheet.command.add-sparkline','removeRows','rgb(30,177,189)','7045682VpvJRt','64863WOhkZv','_resourceManagerService','value','_updateConfig$','SPACING','keys','NORMAL','_commandService','pushUndoRedo','get','getOwnPropertyDescriptor','sheet.command.set-sparkline','delete','deepClone','deleteUnit','add','_initMergeWithSparkline','row','MUTATION','6238470PBeNAF','_sparklineAnchorMap','dispose','intersects','_getRefRangeMutationsByDeleteRows','disposeWithMe','endRow','map','firstPoint','_exclusiveRangeService','registerCommand','lowPoint','1096DpQCCe','setSparkline','extremumMax','startRow'];_0x4179=function(){return _0x244c8c;};return _0x4179();}ke=$t([Ge(0x0,_0x35e0bc(_0x3ca65a)),Ge(0x1,_0x35e0bc(x))],ke);var jt=Object[_0x506be5(0x25b)],Lt=(_0x5c652d,_0x2cba44,_0x521620,_0x473fa1)=>{const _0x2a6c72=_0x506be5;for(var _0x485274=_0x473fa1>0x1?void 0x0:_0x473fa1?jt(_0x2cba44,_0x521620):_0x2cba44,_0x39f031=_0x5c652d[_0x2a6c72(0x1ee)]-0x1,_0x554aec;_0x39f031>=0x0;_0x39f031--)(_0x554aec=_0x5c652d[_0x39f031])&&(_0x485274=_0x554aec(_0x485274)||_0x485274);return _0x485274;},Ie=(_0x1f9c54,_0x363108)=>(_0x8a4f2f,_0x19d421)=>_0x363108(_0x8a4f2f,_0x19d421,_0x1f9c54);let me=class extends _0x15073f{constructor(_0x251fc8,_0x28510c,_0x3b2720){const _0xfeb886=_0x506be5;super(),this['_commandService']=_0x251fc8,this[_0xfeb886(0x21b)]=_0x28510c,this['_exclusiveRangeService']=_0x3b2720,this[_0xfeb886(0x1ef)](),this[_0xfeb886(0x231)]();}[_0x506be5(0x1ef)](){const _0x1a8089=_0x506be5;this[_0x1a8089(0x269)](this['_commandService']['onCommandExecuted'](_0x1318d5=>{const _0x5c1bdc=_0x1a8089;if(_0x1318d5['id']===_0x3e28b0['id']){const _0x24b576=_0x1318d5[_0x5c1bdc(0x1f1)],{cellValue:_0x19cb76,unitId:_0xae1191,subUnitId:_0x7e3fe6}=_0x24b576,_0x1da7ae=new _0x511bad(_0x19cb76),_0x562cca=new Set(),_0x1642b1=this[_0x5c1bdc(0x21b)]['getSubUnitSparkline'](_0xae1191,_0x7e3fe6);if(!_0x1642b1)return;const _0x3071b3=Array[_0x5c1bdc(0x294)](_0x1642b1);_0x1da7ae[_0x5c1bdc(0x208)]((_0x1f8c44,_0x3aae82,_0x2cef05)=>{const _0xd692a2=_0x50c798(_0x1f8c44,_0x3aae82);for(let _0xe47164=0x0;_0xe47164<_0x3071b3['length'];_0xe47164++){const [_0x2dbf52,_0x46a3e5]=_0x3071b3[_0xe47164],_0xd5b25a=_0x562cca['has'](_0x2dbf52);_0xd5b25a||_0x46a3e5['sparklines']['forValue']((_0x17dea8,_0x5c94a9,_0x2e99c6)=>{const _0x345e65=_0x786d,_0x59f5a0=_0x2e99c6;if(_0x59f5a0&&!_0xd5b25a&&_0x2b6864[_0x345e65(0x267)](_0xd692a2,_0x59f5a0))return _0x562cca[_0x345e65(0x260)](_0x2dbf52),!0x0;});}}),_0x562cca[_0x5c1bdc(0x1f6)](_0x1bad45=>{const _0x1320a9=_0x5c1bdc;this[_0x1320a9(0x21b)][_0x1320a9(0x288)](_0xae1191,_0x7e3fe6,_0x1bad45),this[_0x1320a9(0x21b)][_0x1320a9(0x1fa)](_0xae1191,_0x7e3fe6,_0x1bad45);});}else{if(_0x1318d5['id']===_0x99b852['id']){const _0x2b9898=_0x1318d5[_0x5c1bdc(0x1f1)],{range:_0x2e86e3,unitId:_0x1e6b93,subUnitId:_0x125ccb}=_0x2b9898,_0x24ff6f=new Set(),_0x2abdd8=this['_sparklineDataSourceModel'][_0x5c1bdc(0x1fb)](_0x1e6b93,_0x125ccb);if(!_0x2abdd8)return;const _0x589043=Array['from'](_0x2abdd8);for(let _0x1a3b72=0x0;_0x1a3b72<_0x589043[_0x5c1bdc(0x1ee)];_0x1a3b72++){const [_0x54dbc1,_0x4b5f90]=_0x589043[_0x1a3b72],_0x784bef=_0x24ff6f[_0x5c1bdc(0x1f3)](_0x54dbc1);_0x784bef||_0x4b5f90[_0x5c1bdc(0x23b)][_0x5c1bdc(0x208)]((_0x315bf4,_0x257e60,_0x58543c)=>{const _0x4b0e2b=_0x5c1bdc,_0x24298b=_0x58543c;if(_0x24298b&&!_0x784bef&&_0x2b6864[_0x4b0e2b(0x267)](_0x2e86e3,_0x24298b))return _0x24ff6f['add'](_0x54dbc1),!0x0;});}_0x24ff6f[_0x5c1bdc(0x1f6)](_0x4ce1fa=>{const _0x34b604=_0x5c1bdc;this[_0x34b604(0x21b)]['clearSparklineCache'](_0x1e6b93,_0x125ccb,_0x4ce1fa),this[_0x34b604(0x21b)][_0x34b604(0x1fa)](_0x1e6b93,_0x125ccb,_0x4ce1fa);});}}}));}[_0x506be5(0x231)](){const _0xaba96b=_0x506be5;this[_0xaba96b(0x269)](this[_0xaba96b(0x26d)][_0xaba96b(0x244)][_0xaba96b(0x29d)](_0x9d40ca=>{const _0x1b4e4a=_0xaba96b,{unitId:_0x1c779b,subUnitId:_0x13ad15,ranges:_0x1ab29b}=_0x9d40ca,_0xeb8ea8=this[_0x1b4e4a(0x21b)][_0x1b4e4a(0x1fb)](_0x1c779b,_0x13ad15);if(!_0xeb8ea8)return;const _0x25d517=Array[_0x1b4e4a(0x294)](_0xeb8ea8),_0x1f01ae=new Set();for(let _0x50f99d=0x0;_0x50f99d<_0x25d517[_0x1b4e4a(0x1ee)];_0x50f99d++){const [_0xe84807,_0x1a003d]=_0x25d517[_0x50f99d],_0x4e4c5a=_0x1f01ae['has'](_0xe84807);_0x4e4c5a||_0x1a003d[_0x1b4e4a(0x23b)][_0x1b4e4a(0x208)]((_0x541fdb,_0xc8802a,_0x4c6125)=>{const _0x23bb30=_0x1b4e4a,_0x1e70bb=_0x4c6125;if(_0x1e70bb&&!_0x4e4c5a){for(const _0x3c8d6f of _0x1ab29b)if(_0x2b6864[_0x23bb30(0x267)](_0x3c8d6f,_0x1e70bb)){_0x1f01ae['add'](_0xe84807);break;}}});}_0x1f01ae[_0x1b4e4a(0x1f6)](_0x141add=>{const _0x1abbe8=_0x1b4e4a;this[_0x1abbe8(0x21b)][_0x1abbe8(0x288)](_0x1c779b,_0x13ad15,_0x141add),this['_sparklineDataSourceModel'][_0x1abbe8(0x1fa)](_0x1c779b,_0x13ad15,_0x141add);});}));}};me=Lt([Ie(0x0,_0x35e0bc(_0x45232d)),Ie(0x1,_0x35e0bc(x)),Ie(0x2,_0x35e0bc(_0x50e798))],me);var Gt=Object[_0x506be5(0x25b)],Wt=(_0x2539d0,_0xd7653f,_0x5ab9fc,_0x247f4a)=>{const _0x3ec750=_0x506be5;for(var _0x5f126d=_0x247f4a>0x1?void 0x0:_0x247f4a?Gt(_0xd7653f,_0x5ab9fc):_0xd7653f,_0x141fa4=_0x2539d0[_0x3ec750(0x1ee)]-0x1,_0x2076d2;_0x141fa4>=0x0;_0x141fa4--)(_0x2076d2=_0x2539d0[_0x141fa4])&&(_0x5f126d=_0x2076d2(_0x5f126d)||_0x5f126d);return _0x5f126d;},We=(_0x45e770,_0x1cf28b)=>(_0x46e683,_0x1f1fae)=>_0x1cf28b(_0x46e683,_0x1f1fae,_0x45e770);let Ce=class extends _0x15073f{constructor(_0x18887b,_0x43fa61){const _0x22e4e7=_0x506be5;super(),this[_0x22e4e7(0x258)]=_0x18887b,this['_sparklineDataSourceModel']=_0x43fa61,this[_0x22e4e7(0x28b)]();}[_0x506be5(0x28b)](){const _0x308f91=_0x506be5;this[_0x308f91(0x258)][_0x308f91(0x209)](_0x4f5447=>{const _0x3f04ee=_0x308f91;if(_0x4f5447['id']===_0x1081ff['id']||_0x4f5447['id']===_0xa5df8c['id']||_0x4f5447['id']===_0x177482['id']||_0x4f5447['id']===_0x573af4['id']){const _0x4e4326=_0x4f5447[_0x3f04ee(0x1f1)],{ranges:_0x1ea461,unitId:_0x45f7b2,subUnitId:_0x482b4d}=_0x4e4326,_0x2b9ee1=new Set(),_0x5b553f=this[_0x3f04ee(0x21b)][_0x3f04ee(0x1fb)](_0x45f7b2,_0x482b4d);if(!_0x5b553f)return;const _0x3ff8a7=Array[_0x3f04ee(0x294)](_0x5b553f);_0x1ea461[_0x3f04ee(0x1f6)](_0x4e1746=>{const _0x5f39b6=_0x3f04ee;_0x1c6f28[_0x5f39b6(0x212)](_0x4e1746,(_0x201474,_0x2d802a)=>{const _0x22cd93=_0x5f39b6,_0x3199a3=_0x50c798(_0x201474,_0x2d802a);for(let _0x470b9f=0x0;_0x470b9f<_0x3ff8a7[_0x22cd93(0x1ee)];_0x470b9f++){const [_0xdb5317,_0x128e13]=_0x3ff8a7[_0x470b9f],_0x1e4b38=_0x2b9ee1['has'](_0xdb5317);_0x1e4b38||_0x128e13[_0x22cd93(0x23b)][_0x22cd93(0x208)]((_0x4d7fa8,_0x471bb5,_0x4a440a)=>{const _0x16f4f4=_0x22cd93,_0x2e70a3=_0x4a440a;if(_0x2e70a3&&!_0x1e4b38&&_0x2b6864[_0x16f4f4(0x267)](_0x3199a3,_0x2e70a3))return _0x2b9ee1[_0x16f4f4(0x260)](_0xdb5317),!0x0;});}});}),_0x2b9ee1[_0x3f04ee(0x1f6)](_0x589428=>{const _0x389741=_0x3f04ee;this['_sparklineDataSourceModel']['clearSparklineCache'](_0x45f7b2,_0x482b4d,_0x589428),this[_0x389741(0x21b)][_0x389741(0x1fa)](_0x45f7b2,_0x482b4d,_0x589428);});}});}};Ce=Wt([We(0x0,_0x35e0bc(_0x45232d)),We(0x1,_0x35e0bc(x))],Ce);var Bt=Object[_0x506be5(0x25b)],Ht=(_0x623caa,_0x27205c,_0x196a33,_0x1f91bb)=>{const _0x5581f7=_0x506be5;for(var _0x282029=_0x1f91bb>0x1?void 0x0:_0x1f91bb?Bt(_0x27205c,_0x196a33):_0x27205c,_0x3b1f5b=_0x623caa[_0x5581f7(0x1ee)]-0x1,_0x540f8f;_0x3b1f5b>=0x0;_0x3b1f5b--)(_0x540f8f=_0x623caa[_0x3b1f5b])&&(_0x282029=_0x540f8f(_0x282029)||_0x282029);return _0x282029;},be=(_0x5d4fce,_0x46c1de)=>(_0x95c7a8,_0x36bd12)=>_0x46c1de(_0x95c7a8,_0x36bd12,_0x5d4fce);let _e=class extends _0x15073f{constructor(_0x1dba7d,_0x468bef,_0x4dc5ad){const _0x2eea4a=_0x506be5;super(),this[_0x2eea4a(0x258)]=_0x1dba7d,this['_sheetInterceptorService']=_0x468bef,this[_0x2eea4a(0x21b)]=_0x4dc5ad,this[_0x2eea4a(0x261)]();}[_0x506be5(0x261)](){const _0xd0fcaa=_0x506be5;this[_0xd0fcaa(0x269)](this['_sheetInterceptorService'][_0xd0fcaa(0x239)]({'getMutations':_0x2cc995=>{const _0x214628=_0xd0fcaa,_0x5d3a13=[],_0x21a2fc=[];if(_0x2cc995['id']===_0x20597f['id']){const _0x2137f5=_0x2cc995[_0x214628(0x1f1)];if(!_0x2137f5)return{'redos':_0x5d3a13,'undos':_0x21a2fc};const {unitId:_0x5eebae,subUnitId:_0x33ab9a,ranges:_0x58c85c}=_0x2137f5,_0x2ead8c=this['_sparklineDataSourceModel'][_0x214628(0x1fb)](_0x5eebae,_0x33ab9a);if(!_0x2ead8c)return{'redos':_0x5d3a13,'undos':_0x21a2fc};const _0x4ab4a4={},_0x188030={},_0x37b447=new Set();_0x58c85c[_0x214628(0x1f6)](_0x5da80f=>{const _0x5ab3ba=_0x214628,_0x8256fa=_0x5da80f[_0x5ab3ba(0x273)],_0x4cf33c=_0x5da80f[_0x5ab3ba(0x276)];_0x1c6f28[_0x5ab3ba(0x212)](_0x5da80f,(_0x4dcba6,_0x4e4b90)=>{const _0x3fbc6d=_0x5ab3ba,_0x40be74=this[_0x3fbc6d(0x21b)][_0x3fbc6d(0x20f)](_0x5eebae,_0x33ab9a,_0x4dcba6,_0x4e4b90);if(_0x40be74&&!(_0x4dcba6===_0x8256fa&&_0x4e4b90===_0x4cf33c)){const _0xe58bce=this[_0x3fbc6d(0x21b)][_0x3fbc6d(0x202)](_0x5eebae,_0x33ab9a,_0x40be74);if(_0xe58bce){_0x37b447[_0x3fbc6d(0x260)](_0x40be74);let _0x18f4c4=_0x4ab4a4[_0x40be74];_0x18f4c4||(_0x18f4c4={'config':_0x58f4fe[_0x3fbc6d(0x25e)](_0xe58bce[_0x3fbc6d(0x221)]),'sparklines':new _0x511bad(_0xe58bce[_0x3fbc6d(0x23b)][_0x3fbc6d(0x22b)]())},_0x4ab4a4[_0x40be74]=_0x18f4c4),_0x18f4c4[_0x3fbc6d(0x23b)]['realDeleteValue'](_0x4dcba6,_0x4e4b90),_0x188030[_0x40be74]={'config':_0x58f4fe[_0x3fbc6d(0x25e)](_0xe58bce['config']),'sparklines':_0x58f4fe[_0x3fbc6d(0x25e)](_0xe58bce['sparklines'][_0x3fbc6d(0x22b)]())};}}});});for(const [_0x95086c,_0x2de1c3]of _0x2ead8c){const _0x62c1db=_0x2de1c3['sparklines'];_0x62c1db[_0x214628(0x208)]((_0x42cd27,_0x16ebf7,_0x3244dc)=>{const _0x4102a4=_0x214628;for(let _0x24b085=0x0;_0x24b085<_0x58c85c[_0x4102a4(0x1ee)];_0x24b085++){const _0x30aeb8=_0x58c85c[_0x24b085];if(_0x2b6864[_0x4102a4(0x278)](_0x30aeb8,_0x3244dc)){_0x37b447[_0x4102a4(0x260)](_0x95086c);let _0x3e4f4b=_0x4ab4a4[_0x95086c];_0x3e4f4b||(_0x3e4f4b={'config':_0x58f4fe['deepClone'](_0x2de1c3[_0x4102a4(0x221)]),'sparklines':new _0x511bad(_0x62c1db[_0x4102a4(0x22b)]())},_0x4ab4a4[_0x95086c]=_0x3e4f4b),_0x3e4f4b[_0x4102a4(0x23b)][_0x4102a4(0x210)](_0x42cd27,_0x16ebf7),_0x188030[_0x95086c]||(_0x188030[_0x95086c]={'config':_0x58f4fe['deepClone'](_0x2de1c3[_0x4102a4(0x221)]),'sparklines':_0x58f4fe[_0x4102a4(0x25e)](_0x62c1db[_0x4102a4(0x22b)]())});}}});}const _0x27eec5={};Object[_0x214628(0x1f7)](_0x4ab4a4)[_0x214628(0x1f6)](([_0x29bce4,_0x1e445a])=>{const _0x158d14=_0x214628;_0x1e445a[_0x158d14(0x23b)][_0x158d14(0x28f)]()&&(_0x27eec5[_0x29bce4]={'config':_0x1e445a[_0x158d14(0x221)],'sparklines':_0x1e445a[_0x158d14(0x23b)]['clone']()});}),_0x37b447['size']&&(_0x5d3a13[_0x214628(0x27f)]({'id':y['id'],'params':{'unitId':_0x5eebae,'subUnitId':_0x33ab9a,'groupIds':Array[_0x214628(0x294)](_0x37b447),'isSingle':!0x1}}),_0x21a2fc[_0x214628(0x27f)]({'id':y['id'],'params':{'unitId':_0x5eebae,'subUnitId':_0x33ab9a,'groupIds':Array[_0x214628(0x294)](_0x37b447),'isSingle':!0x1}}),_0x5d3a13['push']({'id':V['id'],'params':{'unitId':_0x5eebae,'subUnitId':_0x33ab9a,'sparklineConfigMap':_0x27eec5}}),_0x21a2fc[_0x214628(0x27f)]({'id':V['id'],'params':{'unitId':_0x5eebae,'subUnitId':_0x33ab9a,'sparklineConfigMap':_0x188030}}));}return{'redos':_0x5d3a13,'undos':_0x21a2fc};}}));}};_e=Ht([be(0x0,_0x35e0bc(_0x45232d)),be(0x1,_0x35e0bc(_0x3ca65a)),be(0x2,_0x35e0bc(x))],_e);var Ft=Object[_0x506be5(0x25b)],Kt=(_0x423eab,_0x41bfaa,_0x2317f5,_0x5e3b07)=>{const _0x5ce43f=_0x506be5;for(var _0x388033=_0x5e3b07>0x1?void 0x0:_0x5e3b07?Ft(_0x41bfaa,_0x2317f5):_0x41bfaa,_0x3bbda6=_0x423eab[_0x5ce43f(0x1ee)]-0x1,_0x516160;_0x3bbda6>=0x0;_0x3bbda6--)(_0x516160=_0x423eab[_0x3bbda6])&&(_0x388033=_0x516160(_0x388033)||_0x388033);return _0x388033;},ge=(_0x5804b7,_0xae3c34)=>(_0x4396e1,_0x181d92)=>_0xae3c34(_0x4396e1,_0x181d92,_0x5804b7);let Me=class extends _0x15073f{constructor(_0x48fa40,_0x2244d5,_0x2f3e51,_0x3694e7){const _0x3fdbbd=_0x506be5;super(),se(this,'disposableCollection',new _0x124002()),(this[_0x3fdbbd(0x258)]=_0x48fa40,this[_0x3fdbbd(0x232)]=_0x2244d5,this[_0x3fdbbd(0x236)]=_0x2f3e51,this[_0x3fdbbd(0x21b)]=_0x3694e7,this[_0x3fdbbd(0x227)](),this[_0x3fdbbd(0x247)]());}[_0x506be5(0x227)](){const _0x5921a7=_0x506be5,_0x4d2ff0=(_0x5cad68,_0x29d3a5)=>{const _0x2c33b2=_0x786d,_0x4456a9=this[_0x2c33b2(0x236)]['getCurrentUnitForType'](_0x56cc67[_0x2c33b2(0x1f8)]);if(!_0x4456a9||!(_0x4456a9==null?void 0x0:_0x4456a9[_0x2c33b2(0x1ed)](_0x29d3a5)))return;this['disposableCollection'][_0x2c33b2(0x266)]();const _0x525993=_0x1d32e4=>this[_0x2c33b2(0x27d)](_0x1d32e4,_0x5cad68,_0x29d3a5),_0x2e3343=[],_0x8aec5a=this[_0x2c33b2(0x21b)][_0x2c33b2(0x1fb)](_0x5cad68,_0x29d3a5);if(_0x8aec5a){for(const [_0x35fa31,_0x59f748]of _0x8aec5a)_0x59f748[_0x2c33b2(0x23b)][_0x2c33b2(0x208)]((_0x370d2c,_0x22ce36,_0x10957f)=>{const _0xb9d62d=_0x2c33b2,_0x486712=_0x50c798(_0x370d2c,_0x22ce36);_0x2e3343[_0xb9d62d(0x27f)](_0x486712);});_0x2e3343[_0x2c33b2(0x1f6)](_0x387370=>{const _0x52cd42=_0x2c33b2;this['disposableCollection'][_0x52cd42(0x260)](this[_0x52cd42(0x232)]['registerRefRange'](_0x387370,_0x525993,_0x5cad68,_0x29d3a5));});}};this[_0x5921a7(0x269)](this['_commandService'][_0x5921a7(0x209)](_0x269a8e=>{const _0x487081=_0x5921a7;if(_0x269a8e['id']===_0x485939['id']){const _0x42bd11=_0x269a8e['params'],_0x2e244d=_0x42bd11[_0x487081(0x296)],_0x242c89=_0x42bd11[_0x487081(0x225)];if(!_0x2e244d||!_0x242c89)return;_0x4d2ff0(_0x242c89,_0x2e244d);}if(_0x269a8e['id']===Oe['id']||_0x269a8e['id']===V['id']){const _0x56bbe3=_0x269a8e[_0x487081(0x1f1)],_0x104a74=_0x56bbe3[_0x487081(0x296)],_0x3de029=_0x56bbe3[_0x487081(0x225)];if(!_0x104a74||!_0x3de029)return;_0x4d2ff0(_0x3de029,_0x104a74);}}));}['refRangeHandle'](_0x185a55,_0x24a5da,_0x5e8f59){const _0xbedf64=_0x506be5;switch(_0x185a55['id']){case _0x3d2c7f['id']:return this[_0xbedf64(0x28d)](_0x185a55[_0xbedf64(0x1f1)],_0x24a5da,_0x5e8f59);case _0x597740['id']:return this[_0xbedf64(0x268)](_0x185a55['params'],_0x24a5da,_0x5e8f59);}return{'redos':[],'undos':[]};}[_0x506be5(0x268)](_0x28d88e,_0x41ea6b,_0x231b86){const _0x4f0422=_0x506be5;var _0x309702,_0x5acaa1;const {range:_0x3b9b9d}=_0x28d88e,_0x40391a=new Set(),_0x2b108b={},_0x4bb75a={},_0x372f38=[],_0x4bece3=[],_0x428cf0=[],_0x4c4ebc=[];if(!_0x1665cf(this[_0x4f0422(0x236)],{'unitId':_0x41ea6b,'subUnitId':_0x231b86}))return{'redos':_0x4bece3,'undos':_0x372f38};const _0x41d0f9=this[_0x4f0422(0x21b)]['getSubUnitSparkline'](_0x41ea6b,_0x231b86);if(!_0x41d0f9)return{'redos':_0x4bece3,'undos':_0x372f38};if(!((_0x5acaa1=(_0x309702=this['_sparklineDataSourceModel'][_0x4f0422(0x224)]()[_0x4f0422(0x1f9)]['get'](_0x41ea6b))==null?void 0x0:_0x309702[_0x4f0422(0x25a)](_0x231b86))==null?void 0x0:_0x5acaa1[_0x4f0422(0x299)]))return{'redos':_0x4bece3,'undos':_0x372f38};for(const [_0x200f5f,_0x186a58]of _0x41d0f9){const _0x417704=_0x186a58[_0x4f0422(0x23b)];_0x417704[_0x4f0422(0x208)]((_0xd19283,_0xa124f6,_0x459215)=>{const _0x289e4c=_0x4f0422;if(_0x2b6864[_0x289e4c(0x267)](_0x3b9b9d,_0x459215)){_0x40391a['add'](_0x200f5f);let _0x3225c5=_0x4bb75a[_0x200f5f];_0x3225c5||(_0x3225c5={'config':_0x186a58['config'],'sparklines':_0x186a58[_0x289e4c(0x23b)]['clone']()},_0x4bb75a[_0x200f5f]=_0x3225c5);let _0x268512=_0x2b108b[_0x200f5f];_0x268512||(_0x268512={'config':_0x186a58['config'],'sparklines':new _0x511bad(_0x186a58[_0x289e4c(0x23b)][_0x289e4c(0x22b)]())},_0x2b108b[_0x200f5f]=_0x268512);const _0x5ab4a4=_0x2f10d6(_0x459215,{'id':_0x3eef21['id'],'params':_0x28d88e});_0x5ab4a4?_0x268512['sparklines'][_0x289e4c(0x27c)](_0xd19283,_0xa124f6,_0x5ab4a4):_0x268512['sparklines']['setValue'](_0xd19283,_0xa124f6,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x73f19b[_0x289e4c(0x257)]});}}),_0x417704[_0x4f0422(0x208)]((_0x1798de,_0x2f08d6,_0x27349a)=>{const _0x4edbf2=_0x4f0422;if(_0x1798de<=_0x3b9b9d[_0x4edbf2(0x26a)]&&_0x1798de>=_0x3b9b9d['startRow']){_0x40391a[_0x4edbf2(0x260)](_0x200f5f);let _0x1acd9c=_0x4bb75a[_0x200f5f];_0x1acd9c||(_0x1acd9c={'config':_0x186a58[_0x4edbf2(0x221)],'sparklines':_0x186a58[_0x4edbf2(0x23b)][_0x4edbf2(0x22b)]()},_0x4bb75a[_0x200f5f]=_0x1acd9c);let _0x2f245f=_0x2b108b[_0x200f5f];_0x2f245f||(_0x2f245f={'config':_0x186a58[_0x4edbf2(0x221)],'sparklines':new _0x511bad(_0x186a58[_0x4edbf2(0x23b)][_0x4edbf2(0x22b)]())},_0x2b108b[_0x200f5f]=_0x2f245f);}});}_0x4c4ebc[_0x4f0422(0x27f)]({'id':y['id'],'params':{'unitId':_0x41ea6b,'subUnitId':_0x231b86,'groupIds':Array[_0x4f0422(0x294)](_0x40391a),'isSingle':!0x1}}),_0x428cf0[_0x4f0422(0x27f)]({'id':y['id'],'params':{'unitId':_0x41ea6b,'subUnitId':_0x231b86,'groupIds':Array['from'](_0x40391a),'isSingle':!0x1}});const _0x84682f={};let _0x1565dc=!0x1;return Object[_0x4f0422(0x1f7)](_0x2b108b)['forEach'](([_0x2e6bf0,_0x4c9f25])=>{const _0x5aa4de=_0x4f0422;_0x4c9f25[_0x5aa4de(0x23b)][_0x5aa4de(0x28f)]()&&(_0x1565dc=!0x0,_0x4c9f25[_0x5aa4de(0x23b)][_0x5aa4de(0x24e)](_0x3b9b9d[_0x5aa4de(0x273)],_0x3b9b9d['endRow']-_0x3b9b9d[_0x5aa4de(0x273)]+0x1),_0x84682f[_0x2e6bf0]={'config':_0x4c9f25[_0x5aa4de(0x221)],'sparklines':_0x4c9f25[_0x5aa4de(0x23b)][_0x5aa4de(0x22b)]()});}),_0x1565dc&&_0x4bece3[_0x4f0422(0x27f)]({'id':V['id'],'params':{'unitId':_0x41ea6b,'subUnitId':_0x231b86,'sparklineConfigMap':_0x84682f}}),_0x372f38[_0x4f0422(0x27f)]({'id':V['id'],'params':{'unitId':_0x41ea6b,'subUnitId':_0x231b86,'sparklineConfigMap':_0x4bb75a}}),{'redos':_0x4bece3,'undos':_0x372f38,'preRedos':_0x428cf0,'preUndos':_0x4c4ebc};}[_0x506be5(0x28d)](_0x54af27,_0x68a986,_0x3f4b1f){const _0x19ff20=_0x506be5;var _0x1f4782,_0x1619c0;const {range:_0x490b77}=_0x54af27,_0x407741=new Set(),_0x49b3cd={},_0x44c9a0={},_0x37c4f4=[],_0x408681=[],_0x499ec5=[],_0x2c2f82=[];if(!_0x1665cf(this[_0x19ff20(0x236)],{'unitId':_0x68a986,'subUnitId':_0x3f4b1f}))return{'redos':_0x408681,'undos':_0x37c4f4};const _0x677f02=this[_0x19ff20(0x21b)][_0x19ff20(0x1fb)](_0x68a986,_0x3f4b1f);if(!_0x677f02)return{'redos':_0x408681,'undos':_0x37c4f4};if(!((_0x1619c0=(_0x1f4782=this[_0x19ff20(0x21b)]['getSparklineCache']()['sparklineAnchorMap'][_0x19ff20(0x25a)](_0x68a986))==null?void 0x0:_0x1f4782['get'](_0x3f4b1f))==null?void 0x0:_0x1619c0[_0x19ff20(0x299)]))return{'redos':_0x408681,'undos':_0x37c4f4};for(const [_0x368e63,_0x1d7b5f]of _0x677f02){const _0x5812dc=_0x1d7b5f[_0x19ff20(0x23b)];_0x5812dc[_0x19ff20(0x208)]((_0x4730b5,_0x548702,_0x1931c8)=>{const _0x52c17a=_0x19ff20;if(_0x2b6864[_0x52c17a(0x267)](_0x490b77,_0x1931c8)){_0x407741[_0x52c17a(0x260)](_0x368e63);let _0x283521=_0x44c9a0[_0x368e63];_0x283521||(_0x283521={'config':_0x1d7b5f[_0x52c17a(0x221)],'sparklines':_0x1d7b5f[_0x52c17a(0x23b)]['clone']()},_0x44c9a0[_0x368e63]=_0x283521);let _0xd0ff0c=_0x49b3cd[_0x368e63];_0xd0ff0c||(_0xd0ff0c={'config':_0x1d7b5f['config'],'sparklines':new _0x511bad(_0x1d7b5f['sparklines'][_0x52c17a(0x22b)]())},_0x49b3cd[_0x368e63]=_0xd0ff0c);const _0x241aef=_0x2f10d6(_0x1931c8,{'id':_0xa0e473['id'],'params':_0x54af27});_0x241aef?_0xd0ff0c[_0x52c17a(0x23b)][_0x52c17a(0x27c)](_0x4730b5,_0x548702,_0x241aef):_0xd0ff0c[_0x52c17a(0x23b)][_0x52c17a(0x27c)](_0x4730b5,_0x548702,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x73f19b[_0x52c17a(0x257)]});}}),_0x5812dc['forValue']((_0x5b3531,_0x2ab80b,_0x7eafc7)=>{const _0x357abd=_0x19ff20;if(_0x2ab80b<=_0x490b77[_0x357abd(0x282)]&&_0x2ab80b>=_0x490b77[_0x357abd(0x276)]){_0x407741['add'](_0x368e63);let _0x28977f=_0x44c9a0[_0x368e63];_0x28977f||(_0x28977f={'config':_0x1d7b5f[_0x357abd(0x221)],'sparklines':_0x1d7b5f[_0x357abd(0x23b)]['clone']()},_0x44c9a0[_0x368e63]=_0x28977f);let _0x435d2a=_0x49b3cd[_0x368e63];_0x435d2a||(_0x435d2a={'config':_0x1d7b5f['config'],'sparklines':new _0x511bad(_0x1d7b5f['sparklines']['clone']())},_0x49b3cd[_0x368e63]=_0x435d2a);}});}_0x2c2f82[_0x19ff20(0x27f)]({'id':y['id'],'params':{'unitId':_0x68a986,'subUnitId':_0x3f4b1f,'groupIds':Array[_0x19ff20(0x294)](_0x407741),'isSingle':!0x1}}),_0x499ec5['push']({'id':y['id'],'params':{'unitId':_0x68a986,'subUnitId':_0x3f4b1f,'groupIds':Array[_0x19ff20(0x294)](_0x407741),'isSingle':!0x1}});const _0x54b131={};let _0x5c648d=!0x1;return Object[_0x19ff20(0x1f7)](_0x49b3cd)[_0x19ff20(0x1f6)](([_0x1a6ed0,_0x266985])=>{const _0xab7387=_0x19ff20;_0x266985[_0xab7387(0x23b)][_0xab7387(0x28f)]()&&(_0x5c648d=!0x0,_0x266985[_0xab7387(0x23b)][_0xab7387(0x1f2)](_0x490b77['startColumn'],_0x490b77[_0xab7387(0x282)]-_0x490b77[_0xab7387(0x276)]+0x1),_0x54b131[_0x1a6ed0]={'config':_0x266985[_0xab7387(0x221)],'sparklines':_0x266985[_0xab7387(0x23b)]['clone']()});}),_0x5c648d&&_0x408681[_0x19ff20(0x27f)]({'id':V['id'],'params':{'unitId':_0x68a986,'subUnitId':_0x3f4b1f,'sparklineConfigMap':_0x54b131}}),_0x37c4f4[_0x19ff20(0x27f)]({'id':V['id'],'params':{'unitId':_0x68a986,'subUnitId':_0x3f4b1f,'sparklineConfigMap':_0x44c9a0}}),{'redos':_0x408681,'undos':_0x37c4f4,'preRedos':_0x499ec5,'preUndos':_0x2c2f82};}[_0x506be5(0x247)](){const _0x316ff5=_0x506be5;this['disposeWithMe'](this[_0x316ff5(0x258)][_0x316ff5(0x209)](_0x273167=>{const _0x342696=_0x316ff5;if(_0x273167['id']===_0x376745['id']){const _0x296e3c=_0x273167[_0x342696(0x1f1)],{unitId:_0x45fc0e,subUnitId:_0x4dcf90,range:_0x441a01}=_0x296e3c,_0x13f6c6=_0x441a01['startColumn'],_0x4998b9=_0x441a01['endColumn']-_0x441a01[_0x342696(0x276)]+0x1,_0x6e3e93=this[_0x342696(0x21b)][_0x342696(0x1fb)](_0x45fc0e,_0x4dcf90);if(!_0x6e3e93)return;for(const [_0x189e74,_0x1cc8fd]of _0x6e3e93){this[_0x342696(0x21b)][_0x342696(0x288)](_0x45fc0e,_0x4dcf90,_0x189e74);const _0x49057f=_0x1cc8fd[_0x342696(0x23b)];_0x49057f[_0x342696(0x208)]((_0xfb675c,_0x48fd6e,_0x2ff840)=>{const _0x3d21f4=_0x342696,_0x255d9a={..._0x2ff840};_0x13f6c6<=_0x255d9a[_0x3d21f4(0x276)]?(_0x255d9a['startColumn']+=_0x4998b9,_0x255d9a[_0x3d21f4(0x282)]+=_0x4998b9):_0x13f6c6>_0x255d9a['endColumn']||(_0x255d9a['endColumn']+=_0x4998b9),_0x49057f[_0x3d21f4(0x27c)](_0xfb675c,_0x48fd6e,_0x255d9a);});const _0x46bd3d=_0x49057f[_0x342696(0x213)]();for(const _0x1b265d in _0x46bd3d){const _0x5519ab=_0x46bd3d[Number(_0x1b265d)];if(!_0x5519ab)continue;const _0x3bb629=Object[_0x342696(0x256)](_0x5519ab)[_0x342696(0x26b)](Number),_0x1664cb=Math['max'](..._0x3bb629);for(let _0x2694f1=_0x1664cb;_0x2694f1>=_0x13f6c6;_0x2694f1--)_0x2694f1>=_0x13f6c6&&_0x5519ab[_0x2694f1]&&(_0x5519ab[_0x2694f1+_0x4998b9]=_0x5519ab[_0x2694f1],delete _0x5519ab[_0x2694f1]);}this[_0x342696(0x21b)]['updateSparklineExtraNum'](_0x45fc0e,_0x4dcf90,_0x189e74);}}else{if(_0x273167['id']===_0x419566['id']){const _0x174e01=_0x273167[_0x342696(0x1f1)],{unitId:_0x25a3d9,subUnitId:_0x3d082e,range:_0x572bb7}=_0x174e01,_0x5a9933=_0x572bb7['startRow'],_0x5375f8=_0x572bb7['endRow']-_0x572bb7['startRow']+0x1,_0x40adb9=this[_0x342696(0x21b)][_0x342696(0x1fb)](_0x25a3d9,_0x3d082e);if(!_0x40adb9)return;for(const [_0x479eb7,_0x21fddb]of _0x40adb9){this[_0x342696(0x21b)]['clearSparklineCache'](_0x25a3d9,_0x3d082e,_0x479eb7);const _0xe9bb78=_0x21fddb[_0x342696(0x23b)];_0xe9bb78[_0x342696(0x208)]((_0x4e97d9,_0x4008a6,_0x40ee4c)=>{const _0x4e4aba=_0x342696,_0xcbd0b4={..._0x40ee4c};_0x5a9933<=_0xcbd0b4['startRow']?(_0xcbd0b4[_0x4e4aba(0x273)]+=_0x5375f8,_0xcbd0b4[_0x4e4aba(0x26a)]+=_0x5375f8):_0x5a9933>_0xcbd0b4[_0x4e4aba(0x26a)]||(_0xcbd0b4[_0x4e4aba(0x26a)]+=_0x5375f8),_0xe9bb78[_0x4e4aba(0x27c)](_0x4e97d9,_0x4008a6,_0xcbd0b4);});const _0x53ccbe=_0xe9bb78[_0x342696(0x213)](),_0x31d4f8=Object['keys'](_0x53ccbe)[_0x342696(0x26b)](Number),_0x2878ab=Math[_0x342696(0x238)](..._0x31d4f8);for(let _0x2b8890=_0x2878ab;_0x2b8890>=_0x5a9933;_0x2b8890--)_0x2b8890>=_0x5a9933&&_0x53ccbe[_0x2b8890]&&(_0x53ccbe[_0x2b8890+_0x5375f8]=_0x53ccbe[_0x2b8890],delete _0x53ccbe[_0x2b8890]);this[_0x342696(0x21b)][_0x342696(0x1fa)](_0x25a3d9,_0x3d082e,_0x479eb7);}}else{if(_0x273167['id']===_0xa0e473['id']){const _0x3da6c4=_0x273167[_0x342696(0x1f1)],{range:_0x2eb13c,unitId:_0x2a34dc,subUnitId:_0x20b3bb}=_0x3da6c4,_0x4ecbc5=this[_0x342696(0x21b)][_0x342696(0x1fb)](_0x2a34dc,_0x20b3bb);if(!_0x4ecbc5)return;for(const [_0x2a7629,_0x4dc3af]of _0x4ecbc5){const _0x29c06f=_0x4dc3af['sparklines'];_0x29c06f[_0x342696(0x208)]((_0x432ce8,_0x15ecbd,_0x3e4e9a)=>{const _0x49584d=_0x342696,_0x15162d=_0x2f10d6(_0x3e4e9a,_0x273167);_0x15162d?_0x29c06f[_0x49584d(0x27c)](_0x432ce8,_0x15ecbd,_0x15162d):_0x29c06f['setValue'](_0x432ce8,_0x15ecbd,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x73f19b[_0x49584d(0x257)]});}),_0x29c06f[_0x342696(0x1f2)](_0x2eb13c[_0x342696(0x276)],_0x2eb13c[_0x342696(0x282)]-_0x2eb13c[_0x342696(0x276)]+0x1);}this['_sparklineDataSourceModel'][_0x342696(0x218)](_0x2a34dc,_0x20b3bb);}else{if(_0x273167['id']===_0x3eef21['id']){const _0x22dd15=_0x273167[_0x342696(0x1f1)],{range:_0x1840f0,unitId:_0xdc5a50,subUnitId:_0x23c0d9}=_0x22dd15,_0x2c5fd1=this['_sparklineDataSourceModel'][_0x342696(0x1fb)](_0xdc5a50,_0x23c0d9);if(!_0x2c5fd1)return;for(const [_0x8cc31a,_0x187b3c]of _0x2c5fd1){const _0x28ac50=_0x187b3c[_0x342696(0x23b)];_0x28ac50[_0x342696(0x208)]((_0x4a6b02,_0x6a7941,_0x420edc)=>{const _0x77fcc2=_0x342696,_0x29a0bf=_0x2f10d6(_0x420edc,_0x273167);_0x29a0bf?_0x28ac50[_0x77fcc2(0x27c)](_0x4a6b02,_0x6a7941,_0x29a0bf):_0x28ac50[_0x77fcc2(0x27c)](_0x4a6b02,_0x6a7941,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x73f19b[_0x77fcc2(0x257)]});}),_0x28ac50[_0x342696(0x24e)](_0x1840f0[_0x342696(0x273)],_0x1840f0[_0x342696(0x26a)]-_0x1840f0[_0x342696(0x273)]+0x1);}this[_0x342696(0x21b)][_0x342696(0x218)](_0xdc5a50,_0x23c0d9);}else{if(_0x273167['id']===_0x249374['id']){const _0xe65b2=_0x273167[_0x342696(0x1f1)],{unitId:_0x4a930f,subUnitId:_0x44250b,sourceRange:_0xa5988b,targetRange:_0x383cb}=_0xe65b2,_0x481dde=this[_0x342696(0x21b)][_0x342696(0x1fb)](_0x4a930f,_0x44250b);if(!_0x481dde)return;for(const [_0x2fd7a3,_0x5df1ad]of _0x481dde){const _0x59b987=_0x5df1ad[_0x342696(0x23b)];_0x59b987[_0x342696(0x208)]((_0x5b5f06,_0x4519fc,_0x5f2f18)=>{const _0x3b61d8=_0x342696,_0x315e1b=_0x2f10d6(_0x5f2f18,_0x273167);_0x315e1b?_0x59b987[_0x3b61d8(0x27c)](_0x5b5f06,_0x4519fc,_0x315e1b):_0x59b987[_0x3b61d8(0x27c)](_0x5b5f06,_0x4519fc,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x73f19b[_0x3b61d8(0x257)]});}),_0x59b987['moveColumns'](_0xa5988b['startColumn'],_0xa5988b[_0x342696(0x282)]-_0xa5988b[_0x342696(0x276)]+0x1,_0x383cb[_0x342696(0x276)]);}this['_sparklineDataSourceModel'][_0x342696(0x218)](_0x4a930f,_0x44250b);}else{if(_0x273167['id']===_0x2ac477['id']){const _0x5ac713=_0x273167[_0x342696(0x1f1)],{unitId:_0x58b5bc,subUnitId:_0x3cfcb3,sourceRange:_0x1efd91,targetRange:_0xdbc1a7}=_0x5ac713,_0x3c81ed=this[_0x342696(0x21b)][_0x342696(0x1fb)](_0x58b5bc,_0x3cfcb3);if(!_0x3c81ed)return;for(const [_0x2d3c80,_0x419661]of _0x3c81ed){const _0x2688fd=_0x419661['sparklines'];_0x2688fd[_0x342696(0x208)]((_0x27571e,_0x15d620,_0x4a5de0)=>{const _0x53c893=_0x342696,_0x809bf1=_0x2f10d6(_0x4a5de0,_0x273167);_0x809bf1?_0x2688fd[_0x53c893(0x27c)](_0x27571e,_0x15d620,_0x809bf1):_0x2688fd[_0x53c893(0x27c)](_0x27571e,_0x15d620,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x73f19b[_0x53c893(0x257)]});}),_0x2688fd[_0x342696(0x20e)](_0x1efd91[_0x342696(0x273)],_0x1efd91[_0x342696(0x26a)]-_0x1efd91[_0x342696(0x273)]+0x1,_0xdbc1a7[_0x342696(0x273)]);}this['_sparklineDataSourceModel'][_0x342696(0x218)](_0x58b5bc,_0x3cfcb3);}else{if(_0x273167['id']===_0x5b99ae['id']){const _0xfcfab7=_0x273167['params'],{fromRange:_0x1bd664,toRange:_0x38e91f,unitId:_0x35c0e8,from:_0x4d3162,to:_0x31b687}=_0xfcfab7;if(_0x4d3162[_0x342696(0x296)]!==_0x31b687[_0x342696(0x296)])return;const _0x4e4e58=_0x4d3162[_0x342696(0x296)],{startRow:_0x175741,endRow:_0x4fd7e6,startColumn:_0xc89c3e,endColumn:_0x916b37}=_0x1bd664,{startRow:_0x332bc0,startColumn:_0x485c90}=_0x38e91f,_0x1ff695=_0x332bc0-_0x175741,_0x20370d=_0x485c90-_0xc89c3e,_0x262a51=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x35c0e8,_0x4e4e58);if(!(_0x262a51!=null&&_0x262a51[_0x342696(0x24b)]))return;for(let _0x36dd4a=_0x175741;_0x36dd4a<=_0x4fd7e6;_0x36dd4a++)for(let _0x1233a1=_0xc89c3e;_0x1233a1<=_0x916b37;_0x1233a1++){const _0xf052c6=this[_0x342696(0x21b)]['getSparkline'](_0x35c0e8,_0x4e4e58,_0x36dd4a,_0x1233a1);if(_0xf052c6){const _0x3d8539=this[_0x342696(0x21b)][_0x342696(0x202)](_0x35c0e8,_0x4e4e58,_0xf052c6);if(_0x3d8539){const _0x207ab0=_0x3d8539['sparklines'][_0x342696(0x1fd)](_0x36dd4a,_0x1233a1);_0x207ab0&&(_0x3d8539[_0x342696(0x23b)][_0x342696(0x27c)](_0x36dd4a+_0x1ff695,_0x1233a1+_0x20370d,_0x207ab0),_0x3d8539[_0x342696(0x23b)][_0x342696(0x210)](_0x36dd4a,_0x1233a1));}}}for(const [_0x35baa3,_0x1d307e]of _0x262a51){const _0x1e311a=_0x1d307e[_0x342696(0x23b)];_0x1e311a['forValue']((_0x26b613,_0x4c4cfa,_0x38d45b)=>{const _0x444007=_0x342696,_0x4e8cc6={..._0x38d45b};_0x2b6864[_0x444007(0x278)](_0x1bd664,_0x38d45b)&&(_0x4e8cc6[_0x444007(0x273)]+=_0x1ff695,_0x4e8cc6[_0x444007(0x26a)]+=_0x1ff695,_0x4e8cc6['startColumn']+=_0x20370d,_0x4e8cc6[_0x444007(0x282)]+=_0x20370d),_0x1e311a['setValue'](_0x26b613,_0x4c4cfa,_0x4e8cc6);});}this['_sparklineDataSourceModel'][_0x342696(0x218)](_0x35c0e8,_0x4e4e58);}}}}}}}}));}};Me=Kt([ge(0x0,_0x35e0bc(_0x45232d)),ge(0x1,_0x35e0bc(_0x2d35b7)),ge(0x2,_0xa3f451),ge(0x3,_0x35e0bc(x))],Me);var Xt=Object['getOwnPropertyDescriptor'],zt=(_0x31ea2e,_0x3d0834,_0xc3346b,_0x350a7b)=>{const _0x3df73e=_0x506be5;for(var _0x557c7d=_0x350a7b>0x1?void 0x0:_0x350a7b?Xt(_0x3d0834,_0xc3346b):_0x3d0834,_0x4e6c8b=_0x31ea2e[_0x3df73e(0x1ee)]-0x1,_0x245430;_0x4e6c8b>=0x0;_0x4e6c8b--)(_0x245430=_0x31ea2e[_0x4e6c8b])&&(_0x557c7d=_0x245430(_0x557c7d)||_0x557c7d);return _0x557c7d;},Be=(_0x912d7,_0x16c38f)=>(_0x14677e,_0x1a11e7)=>_0x16c38f(_0x14677e,_0x1a11e7,_0x912d7);let Re=class extends _0x15073f{constructor(_0x4912a7,_0x2cc90f){const _0xaf6b99=_0x506be5;super(),this['_resourceManagerService']=_0x4912a7,this[_0xaf6b99(0x21b)]=_0x2cc90f,this[_0xaf6b99(0x280)]();}['_initSnapshot'](){const _0x509658=_0x506be5,_0x17aab3=_0x551b68=>{const _0x47e6b7=_0x786d,_0x463cf1=this[_0x47e6b7(0x21b)][_0x47e6b7(0x290)](_0x551b68);return _0x463cf1?JSON[_0x47e6b7(0x23d)](_0x463cf1):'';},_0x530b0c=_0x20800e=>_0x20800e?JSON[_0x509658(0x217)](_0x20800e):{};this['disposeWithMe'](this[_0x509658(0x252)][_0x509658(0x219)]({'toJson':_0x17aab3,'parseJson':_0x530b0c,'pluginName':Ke,'businesses':[_0x56cc67['UNIVER_SHEET']],'onLoad':(_0x226b32,_0x329c3e)=>{const _0x22485b=_0x509658;this[_0x22485b(0x21b)][_0x22485b(0x245)](_0x329c3e);},'onUnLoad':_0x535670=>{const _0xd5f5bd=_0x509658;this[_0xd5f5bd(0x21b)][_0xd5f5bd(0x25f)](_0x535670);}}));}};Re=zt([Be(0x0,_0x35e0bc(_0x3bf991)),Be(0x1,_0x35e0bc(x))],Re);var Jt=Object[_0x506be5(0x275)],Zt=Object[_0x506be5(0x25b)],Yt=(_0x5b667b,_0x563679,_0x3a0ea0)=>_0x563679 in _0x5b667b?Jt(_0x5b667b,_0x563679,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a0ea0}):_0x5b667b[_0x563679]=_0x3a0ea0,qt=(_0x1c7a97,_0x337123,_0x232093,_0x3755b9)=>{const _0x8d9bec=_0x506be5;for(var _0x514d46=_0x3755b9>0x1?void 0x0:_0x3755b9?Zt(_0x337123,_0x232093):_0x337123,_0x5a408c=_0x1c7a97[_0x8d9bec(0x1ee)]-0x1,_0x57da05;_0x5a408c>=0x0;_0x5a408c--)(_0x57da05=_0x1c7a97[_0x5a408c])&&(_0x514d46=_0x57da05(_0x514d46)||_0x514d46);return _0x514d46;},He=(_0x5cb004,_0x577607)=>(_0x50b195,_0x347799)=>_0x577607(_0x50b195,_0x347799,_0x5cb004),ze=(_0x4d0ca5,_0x44d72b,_0x579e77)=>Yt(_0x4d0ca5,typeof _0x44d72b!=_0x506be5(0x285)?_0x44d72b+'':_0x44d72b,_0x579e77);let ve=class extends _0x43085f{constructor(_0x636225={},_0x3598b,_0xc78b5b){const _0x20593d=_0x506be5;super(),this['_config']=_0x636225,this[_0x20593d(0x1ec)]=_0x3598b,this['_commandService']=_0xc78b5b,this[_0x20593d(0x284)](),this['_initRegisterCommand']();}['_initDependencies'](){const _0x533794=_0x506be5;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x533794(0x1f6)](_0x52895f=>{const _0x16f0e3=_0x533794;this[_0x16f0e3(0x1ec)][_0x16f0e3(0x260)](_0x52895f);}),_0x1686c8(this[_0x533794(0x1ec)],[[Re]]);}['onReady'](){const _0x38c385=_0x506be5;_0x1686c8(this[_0x38c385(0x1ec)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x506be5(0x23a)](){const _0x3d099f=_0x506be5;[Nt,V,Ot,y,xt,Oe][_0x3d099f(0x1f6)](_0x39e55b=>this[_0x3d099f(0x258)][_0x3d099f(0x26e)](_0x39e55b));}};ze(ve,_0x506be5(0x21f),Ke),ze(ve,_0x506be5(0x233),_0x56cc67[_0x506be5(0x1f8)]),ve=qt([_0x57780b(_0x1359dc),He(0x1,_0x35e0bc(_0x1942c1)),He(0x2,_0x35e0bc(_0x45232d))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,De as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
1
+ const _0x34bf9f=_0x37ff;(function(_0x53cd4d,_0x5f5514){const _0x3a887b=_0x37ff,_0x1489d5=_0x53cd4d();while(!![]){try{const _0x8dc72f=-parseInt(_0x3a887b(0x247))/0x1+parseInt(_0x3a887b(0x215))/0x2+parseInt(_0x3a887b(0x1d9))/0x3*(parseInt(_0x3a887b(0x257))/0x4)+-parseInt(_0x3a887b(0x25e))/0x5*(parseInt(_0x3a887b(0x1c4))/0x6)+parseInt(_0x3a887b(0x1c7))/0x7+parseInt(_0x3a887b(0x1cc))/0x8*(-parseInt(_0x3a887b(0x275))/0x9)+parseInt(_0x3a887b(0x1dd))/0xa*(parseInt(_0x3a887b(0x208))/0xb);if(_0x8dc72f===_0x5f5514)break;else _0x1489d5['push'](_0x1489d5['shift']());}catch(_0xb7cbd0){_0x1489d5['push'](_0x1489d5['shift']());}}}(_0x19cc,0x465c2));var qe=Object['defineProperty'],Qe=(_0x1e5199,_0x5e5cb2,_0x462239)=>_0x5e5cb2 in _0x1e5199?qe(_0x1e5199,_0x5e5cb2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x462239}):_0x1e5199[_0x5e5cb2]=_0x462239,se=(_0x1e0f34,_0x3ab5df,_0x4a60d4)=>Qe(_0x1e0f34,typeof _0x3ab5df!=_0x34bf9f(0x232)?_0x3ab5df+'':_0x3ab5df,_0x4a60d4);import{ObjectMatrix as _0x4cad04,Inject as _0x1e65e0,IUniverInstanceService as _0x51752c,Disposable as _0x28508e,isValidRange as _0x433a93,CellValueType as _0x46099a,ColorKit as _0x3d0f1f,CommandType as _0x5dc7cc,Range as _0x459ee4,IUndoRedoService as _0x4c7d13,generateRandomId as _0x44e3c6,ICommandService as _0x256d0c,Tools as _0x133618,sequenceExecute as _0x3eccd5,Rectangle as _0xc9f892,cellToRange as _0x37445c,DisposableCollection as _0x52a40b,RANGE_TYPE as _0x5d5af2,UniverInstanceType as _0x3ba247,IResourceManagerService as _0x1b9d06,DependentOn as _0x2844f4,Injector as _0x340827,Plugin as _0x500994,touchDependencies as _0x283139}from'@univerjs/core';import{getSheetCommandTarget as _0x51b81d,SheetsSelectionsService as _0x517659,SheetInterceptorService as _0x544e12,ClearSelectionAllCommand as _0x14af5e,CopySheetCommand as _0x563ea2,IExclusiveRangeService as _0x451941,SetRangeValuesMutation as _0x27c461,ReorderRangeMutation as _0x543ab9,SetRowHiddenMutation as _0x2cbf9e,SetColHiddenMutation as _0x5e5635,SetRowVisibleMutation as _0x15228f,SetColVisibleMutation as _0xf3c91e,AddWorksheetMergeCommand as _0x35cc57,RefRangeService as _0x2ba726,SetWorksheetActivateCommand as _0x8bd257,RemoveRowCommand as _0x43c4b2,RemoveColCommand as _0x5cbe96,adjustRangeOnMutation as _0x5d0834,RemoveRowMutation as _0x1600f6,RemoveColMutation as _0x428336,InsertColMutation as _0x14c159,InsertRowMutation as _0x2a0f6c,MoveColsMutation as _0x4ebc33,MoveRowsMutation as _0x1fac21,MoveRangeMutation as _0x263646}from'@univerjs/sheets';import{Subject as _0x4a836a}from'rxjs';import{UniverLicensePlugin as _0x456979}from'@univerjs-pro/license';function Fe(_0x2417d2,_0x2e2190){const _0x61cf81=_0x34bf9f,_0x5395e=new _0x4cad04(),_0x5d5c2e=[],_0x3f4abe=_0x2417d2['length']>0x1;let _0x405a8b=0x0,_0x58c970=0x0;for(const _0x2b6f5a of _0x2417d2)_0x405a8b+=_0x2b6f5a[_0x61cf81(0x24f)]-_0x2b6f5a[_0x61cf81(0x279)]+0x1,_0x58c970+=_0x2b6f5a['endColumn']-_0x2b6f5a[_0x61cf81(0x1fa)]+0x1;for(const _0x2b812b of _0x2e2190)for(let _0x7abea1=_0x2b812b['startRow'];_0x7abea1<=_0x2b812b[_0x61cf81(0x24f)];_0x7abea1++)for(let _0x4605d7=_0x2b812b[_0x61cf81(0x1fa)];_0x4605d7<=_0x2b812b['endColumn'];_0x4605d7++)_0x5d5c2e[_0x61cf81(0x1f3)]({'row':_0x7abea1,'column':_0x4605d7});if(_0x5d5c2e[_0x61cf81(0x223)]===_0x405a8b)_0x3f4abe?_0x5d5c2e[_0x61cf81(0x226)]((_0x563867,_0x33c1b7)=>{const _0x31053a=_0x61cf81,_0x192d5d=_0x2417d2[_0x33c1b7],_0x1e8b07={'startRow':_0x192d5d[_0x31053a(0x279)],'startColumn':_0x192d5d[_0x31053a(0x1fa)],'endRow':_0x192d5d[_0x31053a(0x279)],'endColumn':_0x192d5d['endColumn']};_0x5395e['setValue'](_0x563867['row'],_0x563867[_0x31053a(0x261)],_0x1e8b07);}):_0x5d5c2e[_0x61cf81(0x226)]((_0x11865a,_0x306cdf)=>{const _0x533647=_0x61cf81,_0x30bfc0=_0x2417d2[0x0],_0x57c78b={'startRow':_0x30bfc0[_0x533647(0x279)]+_0x306cdf,'startColumn':_0x30bfc0['startColumn'],'endRow':_0x30bfc0['startRow']+_0x306cdf,'endColumn':_0x30bfc0[_0x533647(0x1e6)]};_0x5395e[_0x533647(0x1f4)](_0x11865a['row'],_0x11865a[_0x533647(0x261)],_0x57c78b);});else{if(_0x5d5c2e[_0x61cf81(0x223)]===_0x58c970)_0x3f4abe?_0x5d5c2e[_0x61cf81(0x226)]((_0x358dcc,_0x15f4ba)=>{const _0x4b5ce2=_0x61cf81,_0x36b2b1=_0x2417d2[_0x15f4ba],_0x30f84d={'startRow':_0x36b2b1['startRow'],'startColumn':_0x36b2b1[_0x4b5ce2(0x1fa)],'endRow':_0x36b2b1[_0x4b5ce2(0x24f)],'endColumn':_0x36b2b1[_0x4b5ce2(0x1fa)]};_0x5395e['setValue'](_0x358dcc[_0x4b5ce2(0x231)],_0x358dcc[_0x4b5ce2(0x261)],_0x30f84d);}):_0x5d5c2e['forEach']((_0x84c04e,_0x29934e)=>{const _0x2220f8=_0x61cf81,_0x54b5e4=_0x2417d2[0x0],_0x17fa4f={'startRow':_0x54b5e4[_0x2220f8(0x279)],'startColumn':_0x54b5e4[_0x2220f8(0x1fa)]+_0x29934e,'endRow':_0x54b5e4['endRow'],'endColumn':_0x54b5e4[_0x2220f8(0x1fa)]+_0x29934e};_0x5395e[_0x2220f8(0x1f4)](_0x84c04e[_0x2220f8(0x231)],_0x84c04e[_0x2220f8(0x261)],_0x17fa4f);});else{if(_0x5d5c2e[_0x61cf81(0x223)]===_0x2417d2['length'])_0x2417d2[_0x61cf81(0x1c6)](_0x5bfc4a=>!(_0x5bfc4a[_0x61cf81(0x279)]!==_0x5bfc4a['endRow']&&_0x5bfc4a[_0x61cf81(0x1fa)]!==_0x5bfc4a[_0x61cf81(0x1e6)]))&&_0x5d5c2e[_0x61cf81(0x226)]((_0x3ebc72,_0x555eb6)=>{const _0x2d253a=_0x61cf81,_0x82b8fb=_0x2417d2[_0x555eb6];_0x5395e[_0x2d253a(0x1f4)](_0x3ebc72[_0x2d253a(0x231)],_0x3ebc72['column'],_0x82b8fb);});else throw new Error(_0x61cf81(0x1ee));}}return _0x5395e;}const Ke=_0x34bf9f(0x245),Le={'standard':[_0x34bf9f(0x1e8),'rgb(236,100,169)'],'specialty':[_0x34bf9f(0x1ca),_0x34bf9f(0x246)],'distinctive':[_0x34bf9f(0x25c),_0x34bf9f(0x24e)],'soft':[_0x34bf9f(0x203),_0x34bf9f(0x1c2)],'fresh':[_0x34bf9f(0x270),'rgb(248,190,21)']},on=['highPoint',_0x34bf9f(0x1d7),'lastPoint',_0x34bf9f(0x1ef),_0x34bf9f(0x27d),_0x34bf9f(0x259)];var Xe=(_0x839e5f=>(_0x839e5f[_0x34bf9f(0x1e4)]=_0x34bf9f(0x255),_0x839e5f[_0x34bf9f(0x1ed)]='specialty',_0x839e5f[_0x34bf9f(0x23f)]=_0x34bf9f(0x235),_0x839e5f[_0x34bf9f(0x238)]=_0x34bf9f(0x1de),_0x839e5f[_0x34bf9f(0x1f0)]='fresh',_0x839e5f[_0x34bf9f(0x26a)]='custom',_0x839e5f))(Xe||{}),Dt=(_0x5d47f8=>(_0x5d47f8[_0x5d47f8[_0x34bf9f(0x1e7)]=0x1]=_0x34bf9f(0x1e7),_0x5d47f8[_0x5d47f8[_0x34bf9f(0x210)]=0x2]=_0x34bf9f(0x210),_0x5d47f8[_0x5d47f8[_0x34bf9f(0x244)]=0x3]=_0x34bf9f(0x244),_0x5d47f8[_0x5d47f8['PIE_CHART']=0x4]='PIE_CHART',_0x5d47f8))(Dt||{}),J=(_0x469a98=>(_0x469a98['SPACING']=_0x34bf9f(0x268),_0x469a98['ZERO_VALUE']='zero_value',_0x469a98[_0x34bf9f(0x211)]=_0x34bf9f(0x266),_0x469a98))(J||{}),De=(_0x3e2e23=>(_0x3e2e23[_0x3e2e23[_0x34bf9f(0x1dc)]=0x1]=_0x34bf9f(0x1dc),_0x3e2e23[_0x3e2e23[_0x34bf9f(0x1f6)]=0x2]=_0x34bf9f(0x1f6),_0x3e2e23[_0x3e2e23[_0x34bf9f(0x1e0)]=0x3]=_0x34bf9f(0x1e0),_0x3e2e23))(De||{}),Et=Object[_0x34bf9f(0x22e)],Vt=(_0x325e3c,_0x40e9b9,_0x51166e,_0x1d41b7)=>{const _0x2361d0=_0x34bf9f;for(var _0x4b9e35=_0x1d41b7>0x1?void 0x0:_0x1d41b7?Et(_0x40e9b9,_0x51166e):_0x40e9b9,_0x561dc4=_0x325e3c[_0x2361d0(0x223)]-0x1,_0x471777;_0x561dc4>=0x0;_0x561dc4--)(_0x471777=_0x325e3c[_0x561dc4])&&(_0x4b9e35=_0x471777(_0x4b9e35)||_0x4b9e35);return _0x4b9e35;},yt=(_0x400034,_0x1a5aac)=>(_0x29ac42,_0x22aca7)=>_0x1a5aac(_0x29ac42,_0x22aca7,_0x400034);let x=class extends _0x28508e{constructor(_0x502852){const _0x43188f=_0x34bf9f;super(),se(this,_0x43188f(0x1c9),new Map()),se(this,_0x43188f(0x260),new Map()),se(this,_0x43188f(0x204),new _0x4a836a()),se(this,_0x43188f(0x1f9),this[_0x43188f(0x204)][_0x43188f(0x26e)]()),this['_univerInstanceService']=_0x502852;}[_0x34bf9f(0x1fb)](_0x468ccb,_0x48f0d5){const _0x388489=_0x34bf9f;let _0x3bace2=this[_0x388489(0x1c9)][_0x388489(0x217)](_0x468ccb);_0x3bace2||(_0x3bace2=new Map(),this['_sparklineModel'][_0x388489(0x1df)](_0x468ccb,_0x3bace2));let _0x2a2465=_0x3bace2[_0x388489(0x217)](_0x48f0d5);return _0x2a2465||(_0x2a2465=new Map(),_0x3bace2[_0x388489(0x1df)](_0x48f0d5,_0x2a2465)),_0x2a2465;}[_0x34bf9f(0x22d)](_0x32c2c7,_0x18c652){const _0x57798b=_0x34bf9f;let _0x572656=this[_0x57798b(0x260)]['get'](_0x32c2c7);_0x572656||(_0x572656=new Map(),this[_0x57798b(0x260)]['set'](_0x32c2c7,_0x572656));let _0xa07233=_0x572656[_0x57798b(0x217)](_0x18c652);return _0xa07233||(_0xa07233={'matrix':new _0x4cad04(),'extra':{}},_0x572656[_0x57798b(0x1df)](_0x18c652,_0xa07233)),_0xa07233;}['updateSparklineExtraNum'](_0x1ace11,_0x47b2db,_0xeb82c9,_0x3c115f=_0x34bf9f(0x1df)){const _0xeaab88=_0x34bf9f;var _0x3c87d5,_0xee548b,_0x79e467,_0x45538e,_0x474fff,_0x1de9c0,_0x57aa71,_0x3cb1b5,_0x24deea,_0x3bc903,_0x4ceae4,_0x37ea4e,_0x1876cb;const _0x2e88ef=(_0xee548b=(_0x3c87d5=this[_0xeaab88(0x1c9)][_0xeaab88(0x217)](_0x1ace11))==null?void 0x0:_0x3c87d5[_0xeaab88(0x217)](_0x47b2db))==null?void 0x0:_0xee548b[_0xeaab88(0x217)](_0xeb82c9);if(!_0x2e88ef)return;const _0x4877af=_0x51b81d(this['_univerInstanceService'],{'unitId':_0x1ace11,'subUnitId':_0x47b2db});if(!_0x4877af)return;const _0x41473d=this['_ensureAnchorMatrix'](_0x1ace11,_0x47b2db),{extra:_0x495aeb,matrix:_0x6d90e2}=_0x41473d,{worksheet:_0x21cc87}=_0x4877af;let _0x188c2d=Number['MIN_SAFE_INTEGER'],_0x37acc5=Number[_0xeaab88(0x212)];const _0x2607b4=(_0x79e467=_0x2e88ef[_0xeaab88(0x25b)][_0xeaab88(0x265)])!=null?_0x79e467:!0x1;_0x2e88ef[_0xeaab88(0x278)][_0xeaab88(0x269)]((_0x8afb71,_0x4e6ecf,_0x3c5c50)=>{const _0x5f0738=_0xeaab88;var _0x197b19,_0x2e2b69,_0x345c78;const _0x462941=_0x3c5c50;let _0x116a62=Number[_0x5f0738(0x248)],_0x5edfec=Number[_0x5f0738(0x212)],_0x20f422=0x0,_0x3bde72=0x0;const _0x366d76=[];if(!_0x433a93(_0x462941))_0x6d90e2['setValue'](_0x8afb71,_0x4e6ecf,{'groupId':_0xeb82c9,'data':[],'max':_0x116a62,'min':_0x5edfec,'highIndex':_0x20f422,'lowIndex':_0x3bde72,'negativeIndexes':_0x366d76});else{const _0x1e6e01=[];for(let _0x16657a=_0x462941[_0x5f0738(0x279)];_0x16657a<=_0x462941[_0x5f0738(0x24f)];_0x16657a++){for(let _0x89db31=_0x462941[_0x5f0738(0x1fa)];_0x89db31<=_0x462941['endColumn'];_0x89db31++){const _0x55d215=_0x21cc87[_0x5f0738(0x214)](_0x16657a),_0x1b2415=_0x21cc87[_0x5f0738(0x249)](_0x89db31);if(!_0x2607b4&&(!_0x55d215||!_0x1b2415))continue;let _0x14bdc8=0x0;const _0x3dcaaa=((_0x197b19=_0x21cc87['getCellRaw'](_0x16657a,_0x89db31))==null?void 0x0:_0x197b19['v'])!==void 0x0?_0x21cc87[_0x5f0738(0x1d2)](_0x16657a,_0x89db31):_0x21cc87['getCell'](_0x16657a,_0x89db31);if(!_0x3dcaaa||_0x3dcaaa['v']===void 0x0||_0x3dcaaa['v']===null){const _0x2c0f2b=(_0x2e2b69=_0x2e88ef[_0x5f0738(0x25b)][_0x5f0738(0x23a)])!=null?_0x2e2b69:J[_0x5f0738(0x242)];_0x2c0f2b===J['ZERO_VALUE']?_0x14bdc8=0x0:_0x2c0f2b===J[_0x5f0738(0x242)]?_0x14bdc8=_0x5f0738(0x21b):_0x2c0f2b===J[_0x5f0738(0x211)]&&(_0x14bdc8=_0x5f0738(0x267));}else{if(_0x3dcaaa['t']===_0x46099a[_0x5f0738(0x23e)]||_0x3dcaaa['t']===_0x46099a[_0x5f0738(0x26d)]){const _0x4f6006=(_0x345c78=_0x2e88ef[_0x5f0738(0x25b)][_0x5f0738(0x1f2)])!=null?_0x345c78:J[_0x5f0738(0x242)];_0x4f6006===J[_0x5f0738(0x1e3)]?_0x14bdc8=0x0:_0x4f6006===J[_0x5f0738(0x242)]?_0x14bdc8='u-spacing':_0x4f6006===J[_0x5f0738(0x211)]&&(_0x14bdc8=_0x5f0738(0x267));}else _0x3dcaaa['t']===_0x46099a[_0x5f0738(0x1e2)]?_0x14bdc8=_0x3dcaaa['v']?0x1:0x0:_0x3dcaaa['t']===_0x46099a[_0x5f0738(0x22a)]?_0x14bdc8=Number(_0x3dcaaa['v']):_0x14bdc8=_0x3dcaaa['v'];}if(_0x1e6e01[_0x5f0738(0x1f3)](_0x14bdc8),typeof _0x14bdc8=='number'){_0x116a62=Math[_0x5f0738(0x202)](_0x116a62,_0x14bdc8),_0x188c2d=Math['max'](_0x188c2d,_0x14bdc8),_0x37acc5=Math[_0x5f0738(0x27b)](_0x37acc5,_0x14bdc8),_0x5edfec=Math[_0x5f0738(0x27b)](_0x5edfec,_0x14bdc8);const _0x24e294=typeof _0x1e6e01[_0x20f422]==_0x5f0738(0x27a)?Number(_0x1e6e01[_0x20f422]):Number[_0x5f0738(0x248)];_0x14bdc8>_0x24e294&&(_0x20f422=_0x1e6e01[_0x5f0738(0x223)]-0x1);const _0x553ff0=typeof _0x1e6e01[_0x3bde72]==_0x5f0738(0x27a)?Number(_0x1e6e01[_0x3bde72]):Number['MAX_SAFE_INTEGER'];_0x14bdc8<_0x553ff0&&(_0x3bde72=_0x1e6e01[_0x5f0738(0x223)]-0x1),_0x14bdc8<0x0&&_0x366d76[_0x5f0738(0x1f3)](_0x1e6e01[_0x5f0738(0x223)]-0x1);}}_0x6d90e2[_0x5f0738(0x1f4)](_0x8afb71,_0x4e6ecf,{'groupId':_0xeb82c9,'data':_0x1e6e01,'max':_0x116a62,'min':_0x5edfec,'highIndex':_0x20f422,'lowIndex':_0x3bde72,'negativeIndexes':_0x366d76});}}});let _0x45eff5=_0x188c2d;((_0x45538e=_0x2e88ef[_0xeaab88(0x25b)][_0xeaab88(0x20b)])==null?void 0x0:_0x45538e[_0xeaab88(0x236)])===De[_0xeaab88(0x1e0)]&&(_0x45eff5=(_0x1de9c0=(_0x474fff=_0x2e88ef[_0xeaab88(0x25b)][_0xeaab88(0x20b)])==null?void 0x0:_0x474fff[_0xeaab88(0x25f)])!=null?_0x1de9c0:_0x188c2d);let _0x56bad5=_0x37acc5;((_0x57aa71=_0x2e88ef['config'][_0xeaab88(0x1c8)])==null?void 0x0:_0x57aa71['type'])===De['CUSTOM_EXTREMUM']&&(_0x56bad5=(_0x24deea=(_0x3cb1b5=_0x2e88ef['config']['extremumMin'])==null?void 0x0:_0x3cb1b5[_0xeaab88(0x25f)])!=null?_0x24deea:_0x37acc5);const _0x15f581=(_0x3bc903=_0x2e88ef[_0xeaab88(0x25b)][_0xeaab88(0x227)])!=null?_0x3bc903:Xe[_0xeaab88(0x1e4)],_0x20288c=(_0x1876cb=(_0x37ea4e=_0x2e88ef[_0xeaab88(0x25b)][_0xeaab88(0x24a)])!=null?_0x37ea4e:(_0x4ceae4=Le[_0x15f581])==null?void 0x0:_0x4ceae4[0x0])!=null?_0x1876cb:Le['standard'][0x0],_0x40e4fd=new _0x3d0f1f(_0x20288c),_0x5dff97=_0x40e4fd['setAlpha'](0.2)['toRgbString'](),_0x12354d=_0x40e4fd[_0xeaab88(0x24b)](0.05)[_0xeaab88(0x20f)]();_0x495aeb[_0xeb82c9]={'groupMax':_0x188c2d,'groupMin':_0x37acc5,'showMax':_0x45eff5,'showMin':_0x56bad5,'startGradient':_0x5dff97,'endGradient':_0x12354d},this[_0xeaab88(0x204)][_0xeaab88(0x20d)]({'unitId':_0x1ace11,'subUnitId':_0x47b2db,'groupId':_0xeb82c9,'config':_0x2e88ef,'type':_0x3c115f});}[_0x34bf9f(0x1c5)](_0x3c3709,_0x3786b3,_0x3abba2,_0x14a7b1){const _0x5c792b=_0x34bf9f;this['_ensureConfigMap'](_0x3c3709,_0x3786b3)[_0x5c792b(0x1df)](_0x3abba2,_0x14a7b1),this[_0x5c792b(0x21d)](_0x3c3709,_0x3786b3,_0x3abba2,_0x5c792b(0x1e5));}['setSparkline'](_0xaa9bf1,_0x5e7bfa,_0x1dc2a4,_0x407129){const _0x360cfa=_0x34bf9f;var _0xb54605;const _0x5de537=(_0xb54605=this[_0x360cfa(0x1c9)]['get'](_0xaa9bf1))==null?void 0x0:_0xb54605[_0x360cfa(0x217)](_0x5e7bfa);_0x1dc2a4[_0x360cfa(0x226)](_0x5e8295=>{const _0x4393d5=_0x360cfa;_0x5de537!=null&&_0x5de537[_0x4393d5(0x25a)](_0x5e8295)&&(_0x5de537[_0x4393d5(0x1df)](_0x5e8295,_0x407129),this[_0x4393d5(0x21d)](_0xaa9bf1,_0x5e7bfa,_0x5e8295));});}[_0x34bf9f(0x1d4)](_0x4c0ac5,_0x59ea4b,_0x159803){const _0x28e290=_0x34bf9f;var _0x4f90b3,_0x18ba7b;const _0xd75529=this[_0x28e290(0x1c9)][_0x28e290(0x217)](_0x4c0ac5);if(_0xd75529){const _0xeb8371=_0xd75529[_0x28e290(0x217)](_0x59ea4b);if(_0xeb8371){_0xeb8371[_0x28e290(0x205)](_0x159803);const _0x5470d6=(_0x4f90b3=this[_0x28e290(0x260)][_0x28e290(0x217)](_0x4c0ac5))==null?void 0x0:_0x4f90b3[_0x28e290(0x217)](_0x59ea4b);(_0x18ba7b=_0x5470d6==null?void 0x0:_0x5470d6[_0x28e290(0x230)])==null||_0x18ba7b[_0x28e290(0x269)]((_0x1ebe99,_0x39c896,_0x79ef01)=>{const _0x4b4d8e=_0x28e290;(_0x79ef01==null?void 0x0:_0x79ef01[_0x4b4d8e(0x234)])===_0x159803&&(_0x5470d6==null||_0x5470d6['matrix'][_0x4b4d8e(0x258)](_0x1ebe99,_0x39c896));}),this[_0x28e290(0x204)][_0x28e290(0x20d)]({'unitId':_0x4c0ac5,'subUnitId':_0x59ea4b,'groupId':_0x159803,'type':_0x28e290(0x1f7)});}}}[_0x34bf9f(0x229)](_0x13a054,_0x17e1c9,_0x35e382,_0x1dc5df){const _0x77e49d=_0x34bf9f;var _0x13e5f2,_0x158978,_0x478c2a,_0x43a10a;const _0x10c2c2=(_0x13e5f2=this[_0x77e49d(0x260)][_0x77e49d(0x217)](_0x13a054))==null?void 0x0:_0x13e5f2[_0x77e49d(0x217)](_0x17e1c9),_0x5ce1d0=_0x10c2c2==null?void 0x0:_0x10c2c2['matrix']['getValue'](_0x35e382,_0x1dc5df);if(_0x5ce1d0){const {groupId:_0x4a01ab}=_0x5ce1d0,_0x3a7e33=(_0x158978=this['_sparklineModel'][_0x77e49d(0x217)](_0x13a054))==null?void 0x0:_0x158978['get'](_0x17e1c9);(_0x478c2a=_0x3a7e33==null?void 0x0:_0x3a7e33[_0x77e49d(0x217)](_0x4a01ab))==null||_0x478c2a[_0x77e49d(0x278)][_0x77e49d(0x258)](_0x35e382,_0x1dc5df),(_0x43a10a=_0x3a7e33==null?void 0x0:_0x3a7e33['get'](_0x4a01ab))!=null&&_0x43a10a[_0x77e49d(0x278)][_0x77e49d(0x1fe)]()||_0x3a7e33==null||_0x3a7e33['delete'](_0x4a01ab),_0x10c2c2==null||_0x10c2c2[_0x77e49d(0x230)]['realDeleteValue'](_0x35e382,_0x1dc5df),this[_0x77e49d(0x204)]['next']({'unitId':_0x13a054,'subUnitId':_0x17e1c9,'groupId':_0x4a01ab,'type':'remove'});}}[_0x34bf9f(0x219)](_0x202b4f,_0x38fe54,_0x7c353b){const _0x46f5de=_0x34bf9f;var _0x1ad026,_0x5e16b4,_0x3208c6,_0x2b087f;const _0xaaa1b7=(_0x3208c6=(_0x5e16b4=(_0x1ad026=this[_0x46f5de(0x1c9)][_0x46f5de(0x217)](_0x202b4f))==null?void 0x0:_0x1ad026[_0x46f5de(0x217)](_0x38fe54))==null?void 0x0:_0x5e16b4[_0x46f5de(0x217)](_0x7c353b))==null?void 0x0:_0x3208c6[_0x46f5de(0x278)],_0x3e9cf2=(_0x2b087f=this[_0x46f5de(0x260)][_0x46f5de(0x217)](_0x202b4f))==null?void 0x0:_0x2b087f['get'](_0x38fe54);if(_0xaaa1b7&&_0x3e9cf2){const {matrix:_0x5e1b2a,extra:_0x36cc68}=_0x3e9cf2;_0xaaa1b7[_0x46f5de(0x269)]((_0x123066,_0x104376,_0x3739b9)=>{const _0x2ed504=_0x46f5de;_0x5e1b2a[_0x2ed504(0x258)](_0x123066,_0x104376);}),delete _0x36cc68[_0x7c353b];}}['getSubUnitSparkline'](_0x785c0,_0x4a57a6){const _0x35c336=_0x34bf9f;var _0x38f6c6;return(_0x38f6c6=this[_0x35c336(0x1c9)][_0x35c336(0x217)](_0x785c0))==null?void 0x0:_0x38f6c6['get'](_0x4a57a6);}[_0x34bf9f(0x1eb)](_0x380cb4,_0x273529,_0x343c75){const _0x481f74=_0x34bf9f;var _0x33727f,_0x34b3d3;return(_0x34b3d3=(_0x33727f=this[_0x481f74(0x1c9)][_0x481f74(0x217)](_0x380cb4))==null?void 0x0:_0x33727f['get'](_0x273529))==null?void 0x0:_0x34b3d3[_0x481f74(0x217)](_0x343c75);}['getSparkline'](_0x406528,_0x3dc028,_0x1ef1bf,_0x11ab99){const _0x4ec524=_0x34bf9f;var _0x451485,_0x36745b,_0x557a35;return(_0x557a35=(_0x36745b=(_0x451485=this[_0x4ec524(0x260)][_0x4ec524(0x217)](_0x406528))==null?void 0x0:_0x451485['get'](_0x3dc028))==null?void 0x0:_0x36745b[_0x4ec524(0x230)]['getValue'](_0x1ef1bf,_0x11ab99))==null?void 0x0:_0x557a35['groupId'];}[_0x34bf9f(0x216)](_0x1e360d,_0x3e6308){const _0x9e9b16=_0x34bf9f;var _0x693894;const _0xad303b=this[_0x9e9b16(0x22d)](_0x1e360d,_0x3e6308);_0xad303b[_0x9e9b16(0x230)]['forValue']((_0x28022f,_0x40e599)=>{_0xad303b['matrix']['realDeleteValue'](_0x28022f,_0x40e599);});const _0x15e355=(_0x693894=this[_0x9e9b16(0x1c9)][_0x9e9b16(0x217)](_0x1e360d))==null?void 0x0:_0x693894['get'](_0x3e6308);if(_0x15e355){for(const [_0x2e7a17]of _0x15e355)this[_0x9e9b16(0x21d)](_0x1e360d,_0x3e6308,_0x2e7a17);}}[_0x34bf9f(0x21e)](){const _0x460eb4=_0x34bf9f;return{'sparklineModel':this[_0x460eb4(0x1c9)],'sparklineAnchorMap':this['_sparklineAnchorMap']};}[_0x34bf9f(0x25d)](_0x3ea5ff){const _0x1cdb98=_0x34bf9f,_0x218a8d={};if(this[_0x1cdb98(0x1c9)][_0x1cdb98(0x25a)](_0x3ea5ff)){_0x218a8d[_0x3ea5ff]={};const _0x37f763=this[_0x1cdb98(0x1c9)][_0x1cdb98(0x217)](_0x3ea5ff);_0x37f763!=null&&_0x37f763[_0x1cdb98(0x1e1)]&&Array[_0x1cdb98(0x26f)](_0x37f763[_0x1cdb98(0x20e)]())[_0x1cdb98(0x226)](_0x22dc6d=>{const _0x517b2e=_0x1cdb98;_0x218a8d[_0x3ea5ff][_0x22dc6d]={};const _0xbfdfd5=_0x37f763['get'](_0x22dc6d);_0xbfdfd5!=null&&_0xbfdfd5['size']&&Array[_0x517b2e(0x26f)](_0xbfdfd5[_0x517b2e(0x20e)]())[_0x517b2e(0x226)](_0x4b180b=>{const _0x1e48f5=_0x517b2e,_0x14fcec=_0xbfdfd5[_0x1e48f5(0x217)](_0x4b180b);_0x14fcec&&(_0x218a8d[_0x3ea5ff][_0x22dc6d][_0x4b180b]={'config':_0x14fcec[_0x1e48f5(0x25b)],'sparklines':_0x14fcec[_0x1e48f5(0x278)]['getMatrix']()});});});}return _0x218a8d;}[_0x34bf9f(0x1f8)](_0x5e0960){const _0x47cd8c=_0x34bf9f;if(!_0x5e0960)return;Object[_0x47cd8c(0x20e)](_0x5e0960)[_0x47cd8c(0x226)](_0x1649f8=>{const _0x54013f=_0x47cd8c,_0x32521b=_0x5e0960[_0x1649f8];_0x32521b&&Object[_0x54013f(0x20e)](_0x32521b)[_0x54013f(0x226)](_0x3831b6=>{const _0x3da6b1=_0x54013f,_0x2911e3=_0x32521b[_0x3831b6];_0x2911e3&&Object[_0x3da6b1(0x20e)](_0x2911e3)[_0x3da6b1(0x226)](_0x499677=>{const _0xf7e1c1=_0x3da6b1,_0x55c3f9=_0x2911e3[_0x499677];if(_0x55c3f9){const _0x497da8={'config':_0x55c3f9['config'],'sparklines':new _0x4cad04(_0x55c3f9[_0xf7e1c1(0x278)])};this[_0xf7e1c1(0x1c5)](_0x1649f8,_0x3831b6,_0x499677,_0x497da8);}});});});}[_0x34bf9f(0x21f)](_0x3a7083){const _0x177885=_0x34bf9f,_0x2e17a4=this[_0x177885(0x1c9)]['get'](_0x3a7083);if(_0x2e17a4){for(const [_0x28dc20]of _0x2e17a4){const _0x2a52f4=_0x2e17a4[_0x177885(0x217)](_0x28dc20);if(_0x2a52f4){for(const [_0x1c23fa]of _0x2a52f4)this[_0x177885(0x219)](_0x3a7083,_0x28dc20,_0x1c23fa);}}this[_0x177885(0x1c9)][_0x177885(0x205)](_0x3a7083);}}};x=Vt([yt(0x0,_0x1e65e0(_0x51752c))],x);function _0x19cc(){const _0x568b8d=['changeDataSourceInfo','length','deepClone','_sheetInterceptorService','forEach','themeType','_initCopySheetWithSparkline','removePartSparkline','NUMBER','_initHideRowColWithSparkline','moveRows','_ensureAnchorMatrix','getOwnPropertyDescriptor','UNIVER_SHEET','matrix','row','symbol','params','groupId','distinctive','type','sheet.mutation.add-sparkline','SOFT','subUnitId','emptyShowAs','_initRegisterCommand','sheet.command.remove-sparkline','entries','STRING','DISTINCTIVE','ranges','_resourceManagerService','SPACING','_initClearWithSparkline','PROFIT_AND_LOSS_CHART','SHEET_SPARKLINE_PLUGIN','rgb(30,177,189)','195035BCHjqs','MIN_SAFE_INTEGER','getColVisible','seriesColor','setAlpha','range','_initSnapshot','rgb(252,117,60)','endRow','_sparklineDataSourceModel','_initCorrectRangeWithSparkline','stringify','interceptCommand','registerRefRange','standard','_injector','2536yzVweJ','realDeleteValue','markersPoint','has','config','rgb(124,66,147)','toJSON','125410MCqfXI','value','_sparklineAnchorMap','column','exclusiveRangesChange$','defineProperty','removeColumns','containHiddenCells','connect_with_line','u-connect','spacing','forValue','CUSTOM','refRangeHandle','moveColumns','FORCE_STRING','asObservable','from','rgb(46,187,122)','_initDependencies','MUTATION','_initExclusiveRangeChange','getSubUnitSparkline','153PtluVk','NORMAL','getSizeOf','sparklines','startRow','number','min','COMMAND','negativePoint','sparklineModel','rgb(244,104,249)','_onRefRangeChange','42PgzZaK','addSparkline','every','2705619qsVzPc','extremumMin','_sparklineModel','rgb(49,106,246)','onCommandExecuted','185048avQeHI','map','values','_getRefRangeMutationsByDeleteCols','_univerInstanceService','onReady','getCellRaw','_sheetSelectionService','removeSparkline','getSheetBySheetId','_initMergeWithSparkline','firstPoint','_commandService','258ZFtGNi','_refRangeService','_exclusiveRangeService','SELF_EXTREMUM','30admdTb','soft','set','CUSTOM_EXTREMUM','size','BOOLEAN','ZERO_VALUE','STANDARD','add','endColumn','LINE_CHART','rgb(54,78,244)','unitId','sheet.mutation.remove-sparkline','getSparklineById','actualRow','SPECIALTY','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','lowPoint','FRESH','pushUndoRedo','nonNumShowAs','push','setValue','registerCommand','GROUP_EXTREMUM','remove','fromJSON','updateConfig$','startColumn','_ensureConfigMap','getValue','foreach','hasValue','removeRows','clone','intersects','max','rgb(80,102,248)','_updateConfig$','delete','sparklineAnchorMap','getCurrentSelections','2153679FKgbFF','_getRefRangeMutationsByDeleteRows','subscribe','extremumMax','getMatrix','next','keys','toRgbString','BAR_CHART','CONNECT_WITH_LINE','MAX_SAFE_INTEGER','disposeWithMe','getRowVisible','47244FuGQEs','reBuildAnchorCache','get','pluginName','clearSparklineCache','actualColumn','u-spacing','getSparkline','updateSparklineExtraNum','getSparklineCache','deleteUnit','disposableCollection','_config'];_0x19cc=function(){return _0x568b8d;};return _0x19cc();}function _0x37ff(_0x4df9e0,_0x49f8eb){const _0x19cc7a=_0x19cc();return _0x37ff=function(_0x37ff74,_0x10520d){_0x37ff74=_0x37ff74-0x1c1;let _0xbbac5e=_0x19cc7a[_0x37ff74];return _0xbbac5e;},_0x37ff(_0x4df9e0,_0x49f8eb);}const V={'id':_0x34bf9f(0x237),'type':_0x5dc7cc[_0x34bf9f(0x272)],'handler':(_0x1f2416,_0x5d0332)=>{const _0x1509f9=_0x34bf9f;if(!_0x5d0332)return!0x1;const {sparklineConfigMap:_0x53c88a,unitId:_0xdce403,subUnitId:_0xb30fd2}=_0x5d0332,_0x355bd7=_0x1f2416[_0x1509f9(0x217)](x);return Object['entries'](_0x53c88a)[_0x1509f9(0x226)](([_0x267cd0,_0x57ca7a])=>{const _0x1a898b=_0x1509f9,_0x17bf78={'config':_0x57ca7a[_0x1a898b(0x25b)],'sparklines':new _0x4cad04(_0x57ca7a[_0x1a898b(0x278)])};_0x355bd7['addSparkline'](_0xdce403,_0xb30fd2,_0x267cd0,_0x17bf78);}),!0x0;}},y={'id':_0x34bf9f(0x1ea),'type':_0x5dc7cc[_0x34bf9f(0x272)],'handler':(_0x2636b7,_0x5bad22)=>{if(!_0x5bad22)return!0x1;const {unitId:_0x4a78c1,subUnitId:_0x46a794,ranges:_0x568559,isSingle:_0x48549b,groupIds:_0x402175}=_0x5bad22,_0x55fea6=_0x2636b7['get'](x);return _0x402175?(_0x402175['forEach'](_0x4107be=>{const _0x16ad1e=_0x37ff;_0x55fea6[_0x16ad1e(0x1d4)](_0x4a78c1,_0x46a794,_0x4107be);}),!0x0):_0x568559?(_0x568559['forEach'](_0x595d6a=>{const _0x42976d=_0x37ff;_0x459ee4[_0x42976d(0x1fd)](_0x595d6a,(_0x6cbc2b,_0x5d4616)=>{const _0xc37b37=_0x42976d,_0x513f2d=_0x55fea6[_0xc37b37(0x21c)](_0x4a78c1,_0x46a794,_0x6cbc2b,_0x5d4616);_0x513f2d&&(_0x48549b?_0x55fea6[_0xc37b37(0x229)](_0x4a78c1,_0x46a794,_0x6cbc2b,_0x5d4616):_0x55fea6[_0xc37b37(0x1d4)](_0x4a78c1,_0x46a794,_0x513f2d));});}),!0x0):!0x1;}},Nt={'id':'sheet.command.add-sparkline','type':_0x5dc7cc[_0x34bf9f(0x27c)],'handler':(_0x78b89a,_0x2897ee)=>{const _0x305416=_0x34bf9f;if(!_0x2897ee)return!0x1;const {sourceRanges:_0x3915dc,targetRanges:_0x53f612,config:_0x2f1513}=_0x2897ee,_0x5a6f1b=_0x78b89a['get'](_0x4c7d13),_0x5389fe='g_'+_0x44e3c6(0x6),_0x11482b=Fe(_0x3915dc,_0x53f612),_0x1135fc={'config':_0x2f1513!=null?_0x2f1513:{},'sparklines':_0x11482b['getMatrix']()},_0x370e5a=_0x78b89a[_0x305416(0x217)](_0x51752c),_0x4a8acf=_0x78b89a[_0x305416(0x217)](x),_0x1aa9c7=_0x51b81d(_0x370e5a);if(!_0x1aa9c7)return!0x1;const {unitId:_0x8adcd4,subUnitId:_0x55f226}=_0x1aa9c7,_0x186e1e=_0x78b89a['get'](_0x256d0c),_0x172d8c=[],_0x388a9b=[],_0x418589={},_0x593110={},_0x3e541e=new Set([_0x5389fe]);_0x11482b[_0x305416(0x269)]((_0x4e3b89,_0x3ae586,_0x565d7f)=>{const _0x47fc62=_0x305416,_0x24c235=_0x4a8acf[_0x47fc62(0x21c)](_0x8adcd4,_0x55f226,_0x4e3b89,_0x3ae586);if(_0x24c235){const _0x3d6808=_0x4a8acf['getSparklineById'](_0x8adcd4,_0x55f226,_0x24c235);if(_0x3d6808){_0x3e541e[_0x47fc62(0x1e5)](_0x24c235);let _0x5a9ad5=_0x418589[_0x24c235],_0x457ba8=_0x593110[_0x24c235];_0x457ba8||(_0x457ba8={'config':_0x133618[_0x47fc62(0x224)](_0x3d6808[_0x47fc62(0x25b)]),'sparklines':new _0x4cad04(_0x3d6808['sparklines'][_0x47fc62(0x200)]())},_0x593110[_0x24c235]=_0x457ba8),_0x5a9ad5||(_0x5a9ad5={'config':_0x133618[_0x47fc62(0x224)](_0x3d6808[_0x47fc62(0x25b)]),'sparklines':_0x3d6808[_0x47fc62(0x278)]['clone']()},_0x418589[_0x24c235]=_0x5a9ad5),_0x457ba8['sparklines'][_0x47fc62(0x258)](_0x4e3b89,_0x3ae586);}}});const _0x555fd7={};return Object['entries'](_0x593110)[_0x305416(0x226)](([_0x40f647,_0x469212])=>{const _0x3a48e4=_0x305416;_0x469212[_0x3a48e4(0x278)]['getSizeOf']()&&(_0x555fd7[_0x40f647]={'config':_0x469212[_0x3a48e4(0x25b)],'sparklines':_0x469212[_0x3a48e4(0x278)]['clone']()});}),_0x555fd7[_0x5389fe]=_0x1135fc,_0x172d8c['push']({'id':y['id'],'params':{'unitId':_0x8adcd4,'subUnitId':_0x55f226,'groupIds':Array[_0x305416(0x26f)](_0x3e541e),'isSingle':!0x1}}),_0x3e541e[_0x305416(0x1e1)]>0x1&&(_0x388a9b[_0x305416(0x1f3)]({'id':y['id'],'params':{'unitId':_0x8adcd4,'subUnitId':_0x55f226,'groupIds':Array[_0x305416(0x26f)](_0x3e541e),'isSingle':!0x1}}),_0x172d8c['push']({'id':V['id'],'params':{'unitId':_0x8adcd4,'subUnitId':_0x55f226,'sparklineConfigMap':_0x418589}})),_0x388a9b[_0x305416(0x1f3)]({'id':V['id'],'params':{'unitId':_0x8adcd4,'subUnitId':_0x55f226,'sparklineConfigMap':_0x555fd7}}),_0x3eccd5(_0x388a9b,_0x186e1e),_0x5a6f1b['pushUndoRedo']({'unitID':_0x8adcd4,'undoMutations':_0x172d8c,'redoMutations':_0x388a9b}),!0x0;}},Ot={'id':_0x34bf9f(0x23c),'type':_0x5dc7cc[_0x34bf9f(0x27c)],'handler':(_0x4201a5,_0x3c5997)=>{const _0x419589=_0x34bf9f;var _0x1f532e;const {isSingle:_0x4d2d4a=!0x0}=_0x3c5997||{},_0x56392c=_0x4201a5[_0x419589(0x217)](_0x256d0c),_0x49bdd1=_0x4201a5[_0x419589(0x217)](_0x51752c),_0x31052c=_0x4201a5[_0x419589(0x217)](x),_0x368f48=_0x4201a5[_0x419589(0x217)](_0x4c7d13),_0x5ebb06=_0x51b81d(_0x49bdd1);if(!_0x5ebb06)return!0x1;const _0x1620c0=_0x4201a5[_0x419589(0x217)](_0x517659),_0x5c8992=(_0x1f532e=_0x3c5997==null?void 0x0:_0x3c5997[_0x419589(0x240)])!=null?_0x1f532e:_0x1620c0['getCurrentSelections']()[_0x419589(0x1cd)](_0x42b24e=>_0x42b24e[_0x419589(0x24c)]),{unitId:_0x31ceb8,subUnitId:_0x33d75e}=_0x5ebb06,_0x4e4f52=[],_0x401132=[];_0x4e4f52[_0x419589(0x1f3)]({'id':y['id'],'params':{'unitId':_0x31ceb8,'subUnitId':_0x33d75e,'ranges':_0x5c8992,'isSingle':_0x4d2d4a}});const _0x25977f=[],_0x11fff6={};return _0x5c8992[_0x419589(0x226)](_0x2ba98c=>{const _0xc18445=_0x419589;_0x459ee4[_0xc18445(0x1fd)](_0x2ba98c,(_0x5f4817,_0x2750a2)=>{const _0x5b67fb=_0xc18445,_0x56ac2a=_0x31052c[_0x5b67fb(0x21c)](_0x31ceb8,_0x33d75e,_0x5f4817,_0x2750a2);if(_0x56ac2a){const _0x56d74f=_0x31052c[_0x5b67fb(0x1eb)](_0x31ceb8,_0x33d75e,_0x56ac2a);_0x56d74f&&(_0x25977f['push'](_0x56ac2a),_0x11fff6[_0x56ac2a]={'config':_0x133618[_0x5b67fb(0x224)](_0x56d74f[_0x5b67fb(0x25b)]),'sparklines':_0x133618[_0x5b67fb(0x224)](_0x56d74f[_0x5b67fb(0x278)][_0x5b67fb(0x200)]())});}});}),_0x401132[_0x419589(0x1f3)]({'id':y['id'],'params':{'unitId':_0x31ceb8,'subUnitId':_0x33d75e,'groupIds':_0x25977f,'isSingle':!0x1}}),_0x401132[_0x419589(0x1f3)]({'id':V['id'],'params':{'unitId':_0x31ceb8,'subUnitId':_0x33d75e,'sparklineConfigMap':_0x11fff6}}),_0x3eccd5(_0x4e4f52,_0x56392c),_0x368f48[_0x419589(0x1f1)]({'unitID':_0x31ceb8,'undoMutations':_0x401132,'redoMutations':_0x4e4f52}),!0x0;}},Oe={'id':'sheet.mutation.set-sparkline','type':_0x5dc7cc['MUTATION'],'handler':(_0x4e9c61,_0x34568a)=>{const _0x1020f0=_0x34bf9f;if(!_0x34568a)return!0x1;const {unitId:_0x50726f,subUnitId:_0x36d7d2,groupIds:_0x1f1299,config:_0x1ada16}=_0x34568a,_0x57f7d=_0x4e9c61[_0x1020f0(0x217)](x);return _0x1f1299[_0x1020f0(0x226)](_0x2faf0d=>{const _0x160b95=_0x1020f0,_0xee1840=_0x57f7d[_0x160b95(0x1eb)](_0x50726f,_0x36d7d2,_0x2faf0d);if(_0xee1840){const _0x361f17={'config':Object['assign']({},_0xee1840['config'],_0x1ada16[_0x160b95(0x25b)]),'sparklines':new _0x4cad04(_0xee1840[_0x160b95(0x278)]['clone']())};_0x57f7d['setSparkline'](_0x50726f,_0x36d7d2,[_0x2faf0d],_0x361f17);}}),!0x0;}},xt={'id':'sheet.command.set-sparkline','type':_0x5dc7cc[_0x34bf9f(0x27c)],'handler':(_0x1ccefc,_0x1c94a0)=>{const _0x3ec44b=_0x34bf9f;var _0x1a1e3c,_0x2c2dc7,_0x48a111,_0x2ed773;if(!_0x1c94a0)return!0x1;const _0x31eacf=_0x1ccefc[_0x3ec44b(0x217)](_0x256d0c),_0x454ff9=_0x1ccefc[_0x3ec44b(0x217)](_0x517659),_0x57eb0e=_0x1ccefc[_0x3ec44b(0x217)](x),_0x4eeea8=_0x1ccefc[_0x3ec44b(0x217)](_0x51752c),_0x1c1fc4=_0x1ccefc[_0x3ec44b(0x217)](_0x4c7d13),_0x5c569e=_0x51b81d(_0x4eeea8);if(!_0x5c569e)return!0x1;const {unitId:_0x35ff90,subUnitId:_0xb07956}=_0x5c569e,_0x2bbef8=(_0x1a1e3c=_0x1c94a0==null?void 0x0:_0x1c94a0[_0x3ec44b(0x240)])!=null?_0x1a1e3c:_0x454ff9[_0x3ec44b(0x207)]()[_0x3ec44b(0x1cd)](_0x3c359d=>_0x3c359d['range']),_0x402f59=(_0x2c2dc7=_0x57eb0e['getSparklineCache']()['sparklineAnchorMap']['get'](_0x35ff90))==null?void 0x0:_0x2c2dc7[_0x3ec44b(0x217)](_0xb07956),{isChangeDataSource:_0x50380,config:_0x36ad8d,combine:_0x4000e2,unCombine:_0x31ae42}=_0x1c94a0;if(_0x4000e2){const _0x4ae7f8=[],_0x350793=[];_0x4ae7f8[_0x3ec44b(0x1f3)]({'id':y['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'ranges':_0x2bbef8,'isSingle':!0x0}});const _0x5e350b='g_'+_0x44e3c6(0x6),_0x5da7a6=new _0x4cad04(),_0x17452a=(_0x48a111=_0x57eb0e[_0x3ec44b(0x21e)]()[_0x3ec44b(0x1c1)][_0x3ec44b(0x217)](_0x35ff90))==null?void 0x0:_0x48a111[_0x3ec44b(0x217)](_0xb07956),_0x2a8fee=new Set([_0x5e350b]),_0x43405e={};return _0x2bbef8[_0x3ec44b(0x226)](_0x138d34=>{const _0x217359=_0x3ec44b;var _0xecfda3,_0x6e7ca1;const {startRow:_0x4a9ca0,endRow:_0x4636ce,startColumn:_0x3b983b,endColumn:_0x34316d}=_0x138d34;for(let _0x631d9f=_0x4a9ca0;_0x631d9f<=_0x4636ce;_0x631d9f++)for(let _0x209926=_0x3b983b;_0x209926<=_0x34316d;_0x209926++){const _0x65ef5c=(_0xecfda3=_0x402f59==null?void 0x0:_0x402f59['matrix']['getValue'](_0x631d9f,_0x209926))==null?void 0x0:_0xecfda3['groupId'];if(_0x65ef5c){_0x2a8fee[_0x217359(0x1e5)](_0x65ef5c);const _0x3989a8=_0x57eb0e[_0x217359(0x1eb)](_0x35ff90,_0xb07956,_0x65ef5c);_0x3989a8&&(_0x43405e[_0x65ef5c]={'config':_0x133618[_0x217359(0x224)](_0x3989a8[_0x217359(0x25b)]),'sparklines':_0x133618[_0x217359(0x224)](_0x3989a8['sparklines'][_0x217359(0x200)]())});const _0x28d1d9=(_0x6e7ca1=_0x17452a==null?void 0x0:_0x17452a[_0x217359(0x217)](_0x65ef5c))==null?void 0x0:_0x6e7ca1[_0x217359(0x278)][_0x217359(0x1fc)](_0x631d9f,_0x209926);_0x28d1d9&&_0x5da7a6['setValue'](_0x631d9f,_0x209926,_0x28d1d9);}}}),_0x4ae7f8[_0x3ec44b(0x1f3)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x5e350b]:{'config':_0x133618[_0x3ec44b(0x224)](_0x36ad8d['config']),'sparklines':_0x5da7a6[_0x3ec44b(0x20c)]()}},'unitId':_0x35ff90,'subUnitId':_0xb07956}}),_0x350793[_0x3ec44b(0x1f3)]({'id':y['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'isSingle':!0x1,'groupIds':Array[_0x3ec44b(0x26f)](_0x2a8fee)}}),_0x350793[_0x3ec44b(0x1f3)]({'id':V['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'sparklineConfigMap':_0x43405e}}),_0x3eccd5(_0x4ae7f8,_0x31eacf),_0x1c1fc4[_0x3ec44b(0x1f1)]({'unitID':_0x35ff90,'undoMutations':_0x350793,'redoMutations':_0x4ae7f8}),!0x0;}else{if(_0x31ae42){const _0x13f949=[],_0x415104=[];_0x13f949[_0x3ec44b(0x1f3)]({'id':y['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'ranges':_0x2bbef8,'isSingle':!0x0}});const _0x4e1ad1=(_0x2ed773=_0x57eb0e[_0x3ec44b(0x21e)]()[_0x3ec44b(0x1c1)][_0x3ec44b(0x217)](_0x35ff90))==null?void 0x0:_0x2ed773[_0x3ec44b(0x217)](_0xb07956),_0x53210e={},_0x59d583=new Set(),_0x4fea08={};return _0x2bbef8[_0x3ec44b(0x226)](_0x1beb6c=>{const _0x42ed5b=_0x3ec44b;var _0x49cbdb,_0x218996;const {startRow:_0x10d49b,endRow:_0xc9511c,startColumn:_0xbd1016,endColumn:_0x4831c3}=_0x1beb6c;for(let _0x99f91=_0x10d49b;_0x99f91<=_0xc9511c;_0x99f91++)for(let _0x5299f1=_0xbd1016;_0x5299f1<=_0x4831c3;_0x5299f1++){const _0x53c863=(_0x49cbdb=_0x402f59==null?void 0x0:_0x402f59[_0x42ed5b(0x230)]['getValue'](_0x99f91,_0x5299f1))==null?void 0x0:_0x49cbdb[_0x42ed5b(0x234)];if(_0x53c863){const _0x18ef21=new _0x4cad04(),_0x56a189='g_'+_0x44e3c6(0x6);_0x59d583[_0x42ed5b(0x1e5)](_0x53c863),_0x59d583[_0x42ed5b(0x1e5)](_0x56a189);const _0x2cf7bd=_0x57eb0e[_0x42ed5b(0x1eb)](_0x35ff90,_0xb07956,_0x53c863);_0x2cf7bd&&(_0x4fea08[_0x53c863]={'config':_0x133618[_0x42ed5b(0x224)](_0x2cf7bd['config']),'sparklines':_0x133618[_0x42ed5b(0x224)](_0x2cf7bd[_0x42ed5b(0x278)]['clone']())});const _0x1b4f4a=(_0x218996=_0x4e1ad1==null?void 0x0:_0x4e1ad1[_0x42ed5b(0x217)](_0x53c863))==null?void 0x0:_0x218996[_0x42ed5b(0x278)][_0x42ed5b(0x1fc)](_0x99f91,_0x5299f1);_0x1b4f4a&&_0x18ef21[_0x42ed5b(0x1f4)](_0x99f91,_0x5299f1,_0x1b4f4a),_0x53210e[_0x56a189]={'sparklines':_0x18ef21['getMatrix'](),'config':_0x133618[_0x42ed5b(0x224)](_0x36ad8d['config'])};}}}),_0x13f949[_0x3ec44b(0x1f3)]({'id':V['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'sparklineConfigMap':_0x53210e}}),_0x415104[_0x3ec44b(0x1f3)]({'id':y['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'isSingle':!0x1,'groupIds':Array['from'](_0x59d583)}}),_0x415104[_0x3ec44b(0x1f3)]({'id':V['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'sparklineConfigMap':_0x4fea08}}),_0x3eccd5(_0x13f949,_0x31eacf),_0x1c1fc4[_0x3ec44b(0x1f1)]({'unitID':_0x35ff90,'undoMutations':_0x415104,'redoMutations':_0x13f949}),!0x0;}}if(_0x50380){const _0x2e69e3=_0x1c94a0[_0x3ec44b(0x222)];if(!_0x2e69e3)return!0x1;const {groupId:_0x416b8c,sourceRanges:_0x39bdcf,targetRanges:_0x49688f,resetType:_0x2acc76,primary:_0x45b14e}=_0x2e69e3,_0x25c861=[],_0x5c1334=[];_0x25c861[_0x3ec44b(0x1f3)]({'id':y['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'ranges':_0x2bbef8,'isSingle':!0x1,'groupIds':[_0x416b8c]}}),_0x5c1334[_0x3ec44b(0x1f3)]({'id':y['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'ranges':_0x2bbef8,'isSingle':!0x1,'groupIds':[_0x416b8c]}});let _0x3b166b;_0x2acc76==='item'?(_0x3b166b=new _0x4cad04(_0x36ad8d[_0x3ec44b(0x278)][_0x3ec44b(0x200)]()),_0x3b166b['realDeleteValue'](_0x45b14e[_0x3ec44b(0x1ec)],_0x45b14e[_0x3ec44b(0x21a)]),_0x3b166b['setValue'](_0x49688f[0x0][_0x3ec44b(0x279)],_0x49688f[0x0]['startColumn'],_0x39bdcf[0x0])):_0x3b166b=Fe(_0x39bdcf,_0x49688f);const _0x48d6df={'config':_0x133618[_0x3ec44b(0x224)](_0x36ad8d[_0x3ec44b(0x25b)]),'sparklines':_0x3b166b[_0x3ec44b(0x20c)]()},_0x908f6b={'config':_0x133618['deepClone'](_0x36ad8d[_0x3ec44b(0x25b)]),'sparklines':_0x133618[_0x3ec44b(0x224)](_0x36ad8d['sparklines'][_0x3ec44b(0x200)]())};_0x25c861[_0x3ec44b(0x1f3)]({'id':V['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'sparklineConfigMap':{[_0x416b8c]:_0x48d6df}}}),_0x5c1334[_0x3ec44b(0x1f3)]({'id':V['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'sparklineConfigMap':{[_0x416b8c]:_0x908f6b}}}),_0x3eccd5(_0x25c861,_0x31eacf),_0x1c1fc4[_0x3ec44b(0x1f1)]({'unitID':_0x35ff90,'undoMutations':_0x5c1334,'redoMutations':_0x25c861});}else{const _0x9428ce=[],_0x1ca499=[],_0x33034b=new Set(),_0x384889={};_0x2bbef8['forEach'](_0x32a1ca=>{const _0x3ecc14=_0x3ec44b;var _0xb09e33;const {startRow:_0x5158db,endRow:_0x5a01f7,startColumn:_0x51154b,endColumn:_0x1aea53}=_0x32a1ca;for(let _0x54a4e3=_0x5158db;_0x54a4e3<=_0x5a01f7;_0x54a4e3++)for(let _0xab33ba=_0x51154b;_0xab33ba<=_0x1aea53;_0xab33ba++){const _0x288f56=(_0xb09e33=_0x402f59==null?void 0x0:_0x402f59['matrix'][_0x3ecc14(0x1fc)](_0x54a4e3,_0xab33ba))==null?void 0x0:_0xb09e33[_0x3ecc14(0x234)];if(_0x288f56){_0x33034b[_0x3ecc14(0x1e5)](_0x288f56);const _0x24def4=_0x57eb0e[_0x3ecc14(0x1eb)](_0x35ff90,_0xb07956,_0x288f56);_0x24def4&&(_0x384889[_0x288f56]={'config':_0x133618['deepClone'](_0x24def4[_0x3ecc14(0x25b)]),'sparklines':_0x133618['deepClone'](_0x24def4['sparklines'][_0x3ecc14(0x200)]())});}}}),_0x1ca499['push']({'id':Oe['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'groupIds':Array[_0x3ec44b(0x26f)](_0x33034b),'config':{'config':_0x133618[_0x3ec44b(0x224)](_0x36ad8d[_0x3ec44b(0x25b)]),'sparklines':_0x36ad8d[_0x3ec44b(0x278)][_0x3ec44b(0x20c)]()}}}),_0x9428ce['push']({'id':y['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'isSingle':!0x1,'groupIds':Array[_0x3ec44b(0x26f)](_0x33034b)}}),_0x9428ce[_0x3ec44b(0x1f3)]({'id':V['id'],'params':{'unitId':_0x35ff90,'subUnitId':_0xb07956,'sparklineConfigMap':_0x384889}}),_0x3eccd5(_0x1ca499,_0x31eacf),_0x1c1fc4[_0x3ec44b(0x1f1)]({'unitID':_0x35ff90,'undoMutations':_0x9428ce,'redoMutations':_0x1ca499});}return!0x0;}};var Ut=Object[_0x34bf9f(0x22e)],Pt=(_0x1e7d4e,_0x500ff3,_0x11369e,_0x39acc7)=>{for(var _0x378b38=_0x39acc7>0x1?void 0x0:_0x39acc7?Ut(_0x500ff3,_0x11369e):_0x500ff3,_0x4a7530=_0x1e7d4e['length']-0x1,_0xea8c1f;_0x4a7530>=0x0;_0x4a7530--)(_0xea8c1f=_0x1e7d4e[_0x4a7530])&&(_0x378b38=_0xea8c1f(_0x378b38)||_0x378b38);return _0x378b38;},fe=(_0x345735,_0x370952)=>(_0x45e627,_0x36e1c7)=>_0x370952(_0x45e627,_0x36e1c7,_0x345735);let Se=class extends _0x28508e{constructor(_0x3bbbf9,_0x519d96,_0x58aa1c,_0x1c210d){const _0x3a7c04=_0x34bf9f;super(),this[_0x3a7c04(0x250)]=_0x3bbbf9,this[_0x3a7c04(0x225)]=_0x519d96,this[_0x3a7c04(0x1d0)]=_0x58aa1c,this[_0x3a7c04(0x1d3)]=_0x1c210d,this[_0x3a7c04(0x243)]();}[_0x34bf9f(0x243)](){const _0x38e715=_0x34bf9f;this[_0x38e715(0x213)](this[_0x38e715(0x225)][_0x38e715(0x253)]({'getMutations':_0x5a612e=>{const _0x383e86=_0x38e715,_0xc510ac=[],_0x1225dd=[];if(_0x5a612e['id']===_0x14af5e['id']){const _0x663c7b=_0x51b81d(this['_univerInstanceService']);if(!_0x663c7b)return{'redos':_0xc510ac,'undos':_0x1225dd};const {unitId:_0x2600dc,subUnitId:_0x596f7c,worksheet:_0x179aa9}=_0x663c7b,_0x41c7b4=this[_0x383e86(0x1d3)][_0x383e86(0x207)]()[_0x383e86(0x1cd)](_0x570661=>_0x570661[_0x383e86(0x24c)]),_0x19fe72=new Set(),_0x533574={},_0x4a2652={};_0x41c7b4[_0x383e86(0x226)](_0x2be4d6=>{const _0xbca5c8=_0x383e86;_0x459ee4[_0xbca5c8(0x1fd)](_0x2be4d6,(_0x53f5d9,_0x3e3edb)=>{const _0x4bbd81=_0xbca5c8,_0x2c3be6=this[_0x4bbd81(0x250)][_0x4bbd81(0x21c)](_0x2600dc,_0x596f7c,_0x53f5d9,_0x3e3edb);if(_0x2c3be6&&!_0x19fe72[_0x4bbd81(0x25a)](_0x2c3be6)){const _0x523786=this[_0x4bbd81(0x250)][_0x4bbd81(0x1eb)](_0x2600dc,_0x596f7c,_0x2c3be6);_0x523786&&(_0x19fe72['add'](_0x2c3be6),_0x533574[_0x2c3be6]={'config':_0x133618['deepClone'](_0x523786['config']),'sparklines':_0x133618[_0x4bbd81(0x224)](_0x523786[_0x4bbd81(0x278)][_0x4bbd81(0x200)]())},_0x4a2652[_0x2c3be6]={'config':_0x133618[_0x4bbd81(0x224)](_0x523786['config']),'sparklines':_0x133618[_0x4bbd81(0x224)](_0x523786[_0x4bbd81(0x278)][_0x4bbd81(0x200)]())});}});}),Object[_0x383e86(0x1ce)](_0x4a2652)['forEach'](_0x54071e=>{const _0x12fd92=_0x383e86,_0x308d7e=_0x54071e[_0x12fd92(0x278)];new _0x4cad04(_0x308d7e)[_0x12fd92(0x269)]((_0x216cce,_0x38f552,_0xc04d3b)=>{_0x41c7b4['some'](_0x384d1d=>_0xc9f892['intersects'](_0x384d1d,_0x37445c(_0x216cce,_0x38f552)))&&delete _0x308d7e[_0x216cce][_0x38f552];});}),_0xc510ac[_0x383e86(0x1f3)]({'id':y['id'],'params':{'unitId':_0x2600dc,'subUnitId':_0x596f7c,'groupIds':Array[_0x383e86(0x26f)](_0x19fe72),'isSingle':!0x1}}),_0xc510ac[_0x383e86(0x1f3)]({'id':V['id'],'params':{'unitId':_0x2600dc,'subUnitId':_0x596f7c,'sparklineConfigMap':_0x4a2652}}),_0x1225dd[_0x383e86(0x1f3)]({'id':y['id'],'params':{'unitId':_0x2600dc,'subUnitId':_0x596f7c,'groupIds':Array['from'](_0x19fe72),'isSingle':!0x1}}),_0x1225dd[_0x383e86(0x1f3)]({'id':V['id'],'params':{'unitId':_0x2600dc,'subUnitId':_0x596f7c,'sparklineConfigMap':_0x533574}});}return{'redos':_0xc510ac,'undos':_0x1225dd};}}));}};Se=Pt([fe(0x0,_0x1e65e0(x)),fe(0x1,_0x1e65e0(_0x544e12)),fe(0x2,_0x1e65e0(_0x51752c)),fe(0x3,_0x1e65e0(_0x517659))],Se);var Tt=Object[_0x34bf9f(0x22e)],$t=(_0x3e0d8e,_0x532d01,_0x409c0f,_0x9e8b74)=>{const _0x3dbcbb=_0x34bf9f;for(var _0x5870e3=_0x9e8b74>0x1?void 0x0:_0x9e8b74?Tt(_0x532d01,_0x409c0f):_0x532d01,_0x904b47=_0x3e0d8e[_0x3dbcbb(0x223)]-0x1,_0x1fbbd6;_0x904b47>=0x0;_0x904b47--)(_0x1fbbd6=_0x3e0d8e[_0x904b47])&&(_0x5870e3=_0x1fbbd6(_0x5870e3)||_0x5870e3);return _0x5870e3;},Ge=(_0xa9558e,_0x327540)=>(_0x3735a5,_0x333a5d)=>_0x327540(_0x3735a5,_0x333a5d,_0xa9558e);let ke=class extends _0x28508e{constructor(_0x4eb58f,_0x59fc0f){const _0x4c5e35=_0x34bf9f;super(),this[_0x4c5e35(0x225)]=_0x4eb58f,this['_sparklineDataSourceModel']=_0x59fc0f,this[_0x4c5e35(0x228)]();}['_initCopySheetWithSparkline'](){const _0x1b2f72=_0x34bf9f;this[_0x1b2f72(0x213)](this[_0x1b2f72(0x225)][_0x1b2f72(0x253)]({'getMutations':_0x38ec1a=>{const _0xc4422c=_0x1b2f72,_0x5c367d=[],_0x2b14a8=[];if(_0x38ec1a['id']===_0x563ea2['id']){const _0x3df69d=_0x38ec1a['params'];if(!_0x3df69d)return{'redos':_0x5c367d,'undos':_0x2b14a8};const {unitId:_0x311a15,subUnitId:_0x24262c,targetSubUnitId:_0x5f201f}=_0x3df69d;if(!_0x311a15||!_0x24262c||!_0x5f201f)return{'redos':_0x5c367d,'undos':_0x2b14a8};const _0x273999=new Set(),_0x61888={},_0x9ae808=this['_sparklineDataSourceModel'][_0xc4422c(0x274)](_0x311a15,_0x24262c);if(!_0x9ae808)return{'redos':_0x5c367d,'undos':_0x2b14a8};for(const [_0x1c2a03,_0x267050]of _0x9ae808){const _0x186cde='g_'+_0x44e3c6(0x6);_0x273999[_0xc4422c(0x1e5)](_0x1c2a03),_0x61888[_0x186cde]={'config':_0x133618[_0xc4422c(0x224)](_0x267050[_0xc4422c(0x25b)]),'sparklines':_0x133618[_0xc4422c(0x224)](_0x267050['sparklines']['clone']())};}_0x273999[_0xc4422c(0x1e1)]&&(_0x2b14a8[_0xc4422c(0x1f3)]({'id':y['id'],'params':{'unitId':_0x311a15,'subUnitId':_0x5f201f,'groupIds':Array[_0xc4422c(0x26f)](_0x273999),'isSingle':!0x1}}),_0x5c367d[_0xc4422c(0x1f3)]({'id':V['id'],'params':{'unitId':_0x311a15,'subUnitId':_0x5f201f,'sparklineConfigMap':_0x61888}}));}return{'redos':_0x5c367d,'undos':_0x2b14a8};}}));}};ke=$t([Ge(0x0,_0x1e65e0(_0x544e12)),Ge(0x1,_0x1e65e0(x))],ke);var jt=Object['getOwnPropertyDescriptor'],Lt=(_0x1b7195,_0x36471c,_0x2dd945,_0x29f3d3)=>{const _0x4e02ee=_0x34bf9f;for(var _0x5ed2bf=_0x29f3d3>0x1?void 0x0:_0x29f3d3?jt(_0x36471c,_0x2dd945):_0x36471c,_0x5f2ddd=_0x1b7195[_0x4e02ee(0x223)]-0x1,_0x386284;_0x5f2ddd>=0x0;_0x5f2ddd--)(_0x386284=_0x1b7195[_0x5f2ddd])&&(_0x5ed2bf=_0x386284(_0x5ed2bf)||_0x5ed2bf);return _0x5ed2bf;},Ie=(_0xfcce26,_0xe12959)=>(_0x56eb12,_0x4bff79)=>_0xe12959(_0x56eb12,_0x4bff79,_0xfcce26);let me=class extends _0x28508e{constructor(_0x4288c5,_0x55d231,_0xeb1a2d){const _0x5de4f6=_0x34bf9f;super(),this[_0x5de4f6(0x1d8)]=_0x4288c5,this[_0x5de4f6(0x250)]=_0x55d231,this[_0x5de4f6(0x1db)]=_0xeb1a2d,this['_initDataChangeListener'](),this['_initExclusiveRangeChange']();}['_initDataChangeListener'](){const _0x2f8217=_0x34bf9f;this['disposeWithMe'](this[_0x2f8217(0x1d8)]['onCommandExecuted'](_0xcf1bb=>{const _0x1e4842=_0x2f8217;if(_0xcf1bb['id']===_0x27c461['id']){const _0x320a93=_0xcf1bb[_0x1e4842(0x233)],{cellValue:_0x113d78,unitId:_0x582903,subUnitId:_0x2e48fb}=_0x320a93,_0x510d9c=new _0x4cad04(_0x113d78),_0x4f6deb=new Set(),_0x18ad7b=this[_0x1e4842(0x250)][_0x1e4842(0x274)](_0x582903,_0x2e48fb);if(!_0x18ad7b)return;const _0x5302bd=Array[_0x1e4842(0x26f)](_0x18ad7b);_0x510d9c[_0x1e4842(0x269)]((_0xe97f51,_0x254081,_0x2e6cb7)=>{const _0x110110=_0x1e4842,_0x49a587=_0x37445c(_0xe97f51,_0x254081);for(let _0x30bdf3=0x0;_0x30bdf3<_0x5302bd[_0x110110(0x223)];_0x30bdf3++){const [_0x427ae1,_0x390f90]=_0x5302bd[_0x30bdf3],_0x126f1d=_0x4f6deb[_0x110110(0x25a)](_0x427ae1);_0x126f1d||_0x390f90[_0x110110(0x278)][_0x110110(0x269)]((_0x4582a1,_0x2aba79,_0xfedac8)=>{const _0x52a804=_0x110110,_0xf3abd5=_0xfedac8;if(_0xf3abd5&&!_0x126f1d&&_0xc9f892[_0x52a804(0x201)](_0x49a587,_0xf3abd5))return _0x4f6deb[_0x52a804(0x1e5)](_0x427ae1),!0x0;});}}),_0x4f6deb[_0x1e4842(0x226)](_0x46ec05=>{const _0x3a99c7=_0x1e4842;this[_0x3a99c7(0x250)][_0x3a99c7(0x219)](_0x582903,_0x2e48fb,_0x46ec05),this['_sparklineDataSourceModel'][_0x3a99c7(0x21d)](_0x582903,_0x2e48fb,_0x46ec05);});}else{if(_0xcf1bb['id']===_0x543ab9['id']){const _0x2bcf25=_0xcf1bb[_0x1e4842(0x233)],{range:_0x209650,unitId:_0x48499a,subUnitId:_0x539b94}=_0x2bcf25,_0x44bf1c=new Set(),_0x300e73=this[_0x1e4842(0x250)]['getSubUnitSparkline'](_0x48499a,_0x539b94);if(!_0x300e73)return;const _0x2e62a3=Array[_0x1e4842(0x26f)](_0x300e73);for(let _0x22ce65=0x0;_0x22ce65<_0x2e62a3['length'];_0x22ce65++){const [_0x4399c0,_0x1b8435]=_0x2e62a3[_0x22ce65],_0x525a68=_0x44bf1c['has'](_0x4399c0);_0x525a68||_0x1b8435[_0x1e4842(0x278)][_0x1e4842(0x269)]((_0x24cb0a,_0x93a35a,_0x189aef)=>{const _0x102364=_0x1e4842,_0x1e6313=_0x189aef;if(_0x1e6313&&!_0x525a68&&_0xc9f892[_0x102364(0x201)](_0x209650,_0x1e6313))return _0x44bf1c[_0x102364(0x1e5)](_0x4399c0),!0x0;});}_0x44bf1c[_0x1e4842(0x226)](_0x284743=>{const _0x295d19=_0x1e4842;this['_sparklineDataSourceModel'][_0x295d19(0x219)](_0x48499a,_0x539b94,_0x284743),this['_sparklineDataSourceModel'][_0x295d19(0x21d)](_0x48499a,_0x539b94,_0x284743);});}}}));}[_0x34bf9f(0x273)](){const _0x54c195=_0x34bf9f;this[_0x54c195(0x213)](this[_0x54c195(0x1db)][_0x54c195(0x262)][_0x54c195(0x20a)](_0x2252e6=>{const _0x6705af=_0x54c195,{unitId:_0x1437b8,subUnitId:_0x1bfd52,ranges:_0x5ca5fa}=_0x2252e6,_0x7e91af=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x1437b8,_0x1bfd52);if(!_0x7e91af)return;const _0x2e3bdb=Array[_0x6705af(0x26f)](_0x7e91af),_0x4d358b=new Set();for(let _0x2a4193=0x0;_0x2a4193<_0x2e3bdb[_0x6705af(0x223)];_0x2a4193++){const [_0x221321,_0x2465f5]=_0x2e3bdb[_0x2a4193],_0x29252f=_0x4d358b[_0x6705af(0x25a)](_0x221321);_0x29252f||_0x2465f5['sparklines'][_0x6705af(0x269)]((_0x5741fd,_0x5b12d9,_0x39a541)=>{const _0x31dfac=_0x39a541;if(_0x31dfac&&!_0x29252f){for(const _0x34e968 of _0x5ca5fa)if(_0xc9f892['intersects'](_0x34e968,_0x31dfac)){_0x4d358b['add'](_0x221321);break;}}});}_0x4d358b[_0x6705af(0x226)](_0x89ef7c=>{const _0x4a3992=_0x6705af;this[_0x4a3992(0x250)][_0x4a3992(0x219)](_0x1437b8,_0x1bfd52,_0x89ef7c),this[_0x4a3992(0x250)][_0x4a3992(0x21d)](_0x1437b8,_0x1bfd52,_0x89ef7c);});}));}};me=Lt([Ie(0x0,_0x1e65e0(_0x256d0c)),Ie(0x1,_0x1e65e0(x)),Ie(0x2,_0x1e65e0(_0x451941))],me);var Gt=Object['getOwnPropertyDescriptor'],Wt=(_0x4b5bdb,_0x3c48d7,_0x3aacb3,_0x5e3924)=>{const _0x2c9d25=_0x34bf9f;for(var _0x1eed1d=_0x5e3924>0x1?void 0x0:_0x5e3924?Gt(_0x3c48d7,_0x3aacb3):_0x3c48d7,_0x19ad5f=_0x4b5bdb[_0x2c9d25(0x223)]-0x1,_0x4e27f4;_0x19ad5f>=0x0;_0x19ad5f--)(_0x4e27f4=_0x4b5bdb[_0x19ad5f])&&(_0x1eed1d=_0x4e27f4(_0x1eed1d)||_0x1eed1d);return _0x1eed1d;},We=(_0x50a262,_0x435d76)=>(_0x2cc025,_0x1dd2f7)=>_0x435d76(_0x2cc025,_0x1dd2f7,_0x50a262);let Ce=class extends _0x28508e{constructor(_0x26dec4,_0x162544){const _0x46a5ab=_0x34bf9f;super(),this[_0x46a5ab(0x1d8)]=_0x26dec4,this[_0x46a5ab(0x250)]=_0x162544,this[_0x46a5ab(0x22b)]();}[_0x34bf9f(0x22b)](){const _0x7eb46=_0x34bf9f;this[_0x7eb46(0x1d8)]['onCommandExecuted'](_0x5c58ba=>{const _0x2805b2=_0x7eb46;if(_0x5c58ba['id']===_0x2cbf9e['id']||_0x5c58ba['id']===_0x5e5635['id']||_0x5c58ba['id']===_0x15228f['id']||_0x5c58ba['id']===_0xf3c91e['id']){const _0x3f6bd9=_0x5c58ba['params'],{ranges:_0x11b93c,unitId:_0x17a4ab,subUnitId:_0x417517}=_0x3f6bd9,_0x1ea3e9=new Set(),_0x152c1c=this[_0x2805b2(0x250)][_0x2805b2(0x274)](_0x17a4ab,_0x417517);if(!_0x152c1c)return;const _0x63fb58=Array[_0x2805b2(0x26f)](_0x152c1c);_0x11b93c[_0x2805b2(0x226)](_0x3bd1ed=>{_0x459ee4['foreach'](_0x3bd1ed,(_0x2f8366,_0x27b390)=>{const _0x59a888=_0x37ff,_0x5ca30e=_0x37445c(_0x2f8366,_0x27b390);for(let _0x6fed75=0x0;_0x6fed75<_0x63fb58[_0x59a888(0x223)];_0x6fed75++){const [_0x49686f,_0x22a678]=_0x63fb58[_0x6fed75],_0x587fd1=_0x1ea3e9[_0x59a888(0x25a)](_0x49686f);_0x587fd1||_0x22a678[_0x59a888(0x278)][_0x59a888(0x269)]((_0x52fbb9,_0x36f72b,_0x37aa34)=>{const _0x3c5caa=_0x59a888,_0x3436ba=_0x37aa34;if(_0x3436ba&&!_0x587fd1&&_0xc9f892[_0x3c5caa(0x201)](_0x5ca30e,_0x3436ba))return _0x1ea3e9['add'](_0x49686f),!0x0;});}});}),_0x1ea3e9[_0x2805b2(0x226)](_0x3b5ba6=>{const _0x17e13b=_0x2805b2;this[_0x17e13b(0x250)]['clearSparklineCache'](_0x17a4ab,_0x417517,_0x3b5ba6),this[_0x17e13b(0x250)][_0x17e13b(0x21d)](_0x17a4ab,_0x417517,_0x3b5ba6);});}});}};Ce=Wt([We(0x0,_0x1e65e0(_0x256d0c)),We(0x1,_0x1e65e0(x))],Ce);var Bt=Object[_0x34bf9f(0x22e)],Ht=(_0x29aa08,_0x5e93ff,_0x3d50df,_0x1b4bea)=>{const _0x41e521=_0x34bf9f;for(var _0x18564b=_0x1b4bea>0x1?void 0x0:_0x1b4bea?Bt(_0x5e93ff,_0x3d50df):_0x5e93ff,_0x2cc13a=_0x29aa08[_0x41e521(0x223)]-0x1,_0x4bbea7;_0x2cc13a>=0x0;_0x2cc13a--)(_0x4bbea7=_0x29aa08[_0x2cc13a])&&(_0x18564b=_0x4bbea7(_0x18564b)||_0x18564b);return _0x18564b;},be=(_0x1f95d0,_0x5d05dd)=>(_0x4e40d7,_0x2a1a44)=>_0x5d05dd(_0x4e40d7,_0x2a1a44,_0x1f95d0);let _e=class extends _0x28508e{constructor(_0x34f635,_0x38c8d3,_0x148826){const _0x5e3271=_0x34bf9f;super(),this[_0x5e3271(0x1d8)]=_0x34f635,this[_0x5e3271(0x225)]=_0x38c8d3,this[_0x5e3271(0x250)]=_0x148826,this[_0x5e3271(0x1d6)]();}[_0x34bf9f(0x1d6)](){const _0x5bff50=_0x34bf9f;this[_0x5bff50(0x213)](this[_0x5bff50(0x225)][_0x5bff50(0x253)]({'getMutations':_0x3d29f7=>{const _0x331c9f=_0x5bff50,_0x1161ea=[],_0x3bb97e=[];if(_0x3d29f7['id']===_0x35cc57['id']){const _0xb5346c=_0x3d29f7[_0x331c9f(0x233)];if(!_0xb5346c)return{'redos':_0x1161ea,'undos':_0x3bb97e};const {unitId:_0x59e0cc,subUnitId:_0x475754,ranges:_0x8b8e24}=_0xb5346c,_0xe85292=this['_sparklineDataSourceModel'][_0x331c9f(0x274)](_0x59e0cc,_0x475754);if(!_0xe85292)return{'redos':_0x1161ea,'undos':_0x3bb97e};const _0x1669fd={},_0x15f287={},_0x284297=new Set();_0x8b8e24['forEach'](_0x6c3d02=>{const _0x30b9c4=_0x331c9f,_0x1dae52=_0x6c3d02[_0x30b9c4(0x279)],_0x1b3af5=_0x6c3d02[_0x30b9c4(0x1fa)];_0x459ee4[_0x30b9c4(0x1fd)](_0x6c3d02,(_0x174151,_0x975b33)=>{const _0x555ec0=_0x30b9c4,_0x25862d=this['_sparklineDataSourceModel'][_0x555ec0(0x21c)](_0x59e0cc,_0x475754,_0x174151,_0x975b33);if(_0x25862d&&!(_0x174151===_0x1dae52&&_0x975b33===_0x1b3af5)){const _0xaaeeb=this[_0x555ec0(0x250)][_0x555ec0(0x1eb)](_0x59e0cc,_0x475754,_0x25862d);if(_0xaaeeb){_0x284297[_0x555ec0(0x1e5)](_0x25862d);let _0x5442e3=_0x1669fd[_0x25862d];_0x5442e3||(_0x5442e3={'config':_0x133618[_0x555ec0(0x224)](_0xaaeeb[_0x555ec0(0x25b)]),'sparklines':new _0x4cad04(_0xaaeeb['sparklines'][_0x555ec0(0x200)]())},_0x1669fd[_0x25862d]=_0x5442e3),_0x5442e3[_0x555ec0(0x278)][_0x555ec0(0x258)](_0x174151,_0x975b33),_0x15f287[_0x25862d]={'config':_0x133618[_0x555ec0(0x224)](_0xaaeeb[_0x555ec0(0x25b)]),'sparklines':_0x133618[_0x555ec0(0x224)](_0xaaeeb['sparklines'][_0x555ec0(0x200)]())};}}});});for(const [_0x1b9a06,_0x524d23]of _0xe85292){const _0xc4abe8=_0x524d23['sparklines'];_0xc4abe8[_0x331c9f(0x269)]((_0x224960,_0xff896,_0x353934)=>{const _0x50f69e=_0x331c9f;for(let _0x565c54=0x0;_0x565c54<_0x8b8e24[_0x50f69e(0x223)];_0x565c54++){const _0x5600da=_0x8b8e24[_0x565c54];if(_0xc9f892['contains'](_0x5600da,_0x353934)){_0x284297[_0x50f69e(0x1e5)](_0x1b9a06);let _0x82dfa4=_0x1669fd[_0x1b9a06];_0x82dfa4||(_0x82dfa4={'config':_0x133618['deepClone'](_0x524d23[_0x50f69e(0x25b)]),'sparklines':new _0x4cad04(_0xc4abe8[_0x50f69e(0x200)]())},_0x1669fd[_0x1b9a06]=_0x82dfa4),_0x82dfa4['sparklines'][_0x50f69e(0x258)](_0x224960,_0xff896),_0x15f287[_0x1b9a06]||(_0x15f287[_0x1b9a06]={'config':_0x133618[_0x50f69e(0x224)](_0x524d23[_0x50f69e(0x25b)]),'sparklines':_0x133618[_0x50f69e(0x224)](_0xc4abe8[_0x50f69e(0x200)]())});}}});}const _0x264b42={};Object[_0x331c9f(0x23d)](_0x1669fd)[_0x331c9f(0x226)](([_0x622301,_0x1683e6])=>{const _0x426b40=_0x331c9f;_0x1683e6[_0x426b40(0x278)][_0x426b40(0x277)]()&&(_0x264b42[_0x622301]={'config':_0x1683e6['config'],'sparklines':_0x1683e6[_0x426b40(0x278)][_0x426b40(0x200)]()});}),_0x284297[_0x331c9f(0x1e1)]&&(_0x1161ea['push']({'id':y['id'],'params':{'unitId':_0x59e0cc,'subUnitId':_0x475754,'groupIds':Array[_0x331c9f(0x26f)](_0x284297),'isSingle':!0x1}}),_0x3bb97e[_0x331c9f(0x1f3)]({'id':y['id'],'params':{'unitId':_0x59e0cc,'subUnitId':_0x475754,'groupIds':Array['from'](_0x284297),'isSingle':!0x1}}),_0x1161ea['push']({'id':V['id'],'params':{'unitId':_0x59e0cc,'subUnitId':_0x475754,'sparklineConfigMap':_0x264b42}}),_0x3bb97e[_0x331c9f(0x1f3)]({'id':V['id'],'params':{'unitId':_0x59e0cc,'subUnitId':_0x475754,'sparklineConfigMap':_0x15f287}}));}return{'redos':_0x1161ea,'undos':_0x3bb97e};}}));}};_e=Ht([be(0x0,_0x1e65e0(_0x256d0c)),be(0x1,_0x1e65e0(_0x544e12)),be(0x2,_0x1e65e0(x))],_e);var Ft=Object[_0x34bf9f(0x22e)],Kt=(_0x322bf1,_0x1736e0,_0x58a58e,_0x3d3f98)=>{for(var _0x1d2271=_0x3d3f98>0x1?void 0x0:_0x3d3f98?Ft(_0x1736e0,_0x58a58e):_0x1736e0,_0x12f881=_0x322bf1['length']-0x1,_0x4e698a;_0x12f881>=0x0;_0x12f881--)(_0x4e698a=_0x322bf1[_0x12f881])&&(_0x1d2271=_0x4e698a(_0x1d2271)||_0x1d2271);return _0x1d2271;},ge=(_0x4740e4,_0x44b488)=>(_0x51c70d,_0x30266b)=>_0x44b488(_0x51c70d,_0x30266b,_0x4740e4);let Me=class extends _0x28508e{constructor(_0xdb37e3,_0x38c12b,_0x46de46,_0xc1bfb1){const _0x5082cb=_0x34bf9f;super(),se(this,_0x5082cb(0x220),new _0x52a40b()),(this['_commandService']=_0xdb37e3,this[_0x5082cb(0x1da)]=_0x38c12b,this['_univerInstanceService']=_0x46de46,this[_0x5082cb(0x250)]=_0xc1bfb1,this[_0x5082cb(0x1c3)](),this[_0x5082cb(0x251)]());}[_0x34bf9f(0x1c3)](){const _0x37726f=_0x34bf9f,_0x302ff8=(_0x224dc7,_0x1574d8)=>{const _0x41f3ea=_0x37ff,_0x40a828=this[_0x41f3ea(0x1d0)]['getCurrentUnitForType'](_0x3ba247[_0x41f3ea(0x22f)]);if(!_0x40a828||!(_0x40a828==null?void 0x0:_0x40a828[_0x41f3ea(0x1d5)](_0x1574d8)))return;this[_0x41f3ea(0x220)]['dispose']();const _0x56f737=_0x3c6e7e=>this['refRangeHandle'](_0x3c6e7e,_0x224dc7,_0x1574d8),_0x3f71f4=[],_0x1ffb4d=this['_sparklineDataSourceModel'][_0x41f3ea(0x274)](_0x224dc7,_0x1574d8);if(_0x1ffb4d){for(const [_0x2da36b,_0x5974fe]of _0x1ffb4d)_0x5974fe['sparklines'][_0x41f3ea(0x269)]((_0x160ed2,_0x1868f9,_0x504ff9)=>{const _0x522ead=_0x41f3ea,_0x2167d6=_0x37445c(_0x160ed2,_0x1868f9);_0x3f71f4[_0x522ead(0x1f3)](_0x2167d6);});_0x3f71f4[_0x41f3ea(0x226)](_0x408147=>{const _0x3158b1=_0x41f3ea;this[_0x3158b1(0x220)][_0x3158b1(0x1e5)](this[_0x3158b1(0x1da)][_0x3158b1(0x254)](_0x408147,_0x56f737,_0x224dc7,_0x1574d8));});}};this[_0x37726f(0x213)](this[_0x37726f(0x1d8)][_0x37726f(0x1cb)](_0x84734c=>{const _0x2bbb0c=_0x37726f;if(_0x84734c['id']===_0x8bd257['id']){const _0x42d9fa=_0x84734c[_0x2bbb0c(0x233)],_0x98a02e=_0x42d9fa[_0x2bbb0c(0x239)],_0xa6d28e=_0x42d9fa[_0x2bbb0c(0x1e9)];if(!_0x98a02e||!_0xa6d28e)return;_0x302ff8(_0xa6d28e,_0x98a02e);}if(_0x84734c['id']===Oe['id']||_0x84734c['id']===V['id']){const _0x45d32=_0x84734c[_0x2bbb0c(0x233)],_0x5cd226=_0x45d32[_0x2bbb0c(0x239)],_0x17d861=_0x45d32['unitId'];if(!_0x5cd226||!_0x17d861)return;_0x302ff8(_0x17d861,_0x5cd226);}}));}[_0x34bf9f(0x26b)](_0x4db7a3,_0x555e46,_0x4c647f){const _0x33f57c=_0x34bf9f;switch(_0x4db7a3['id']){case _0x5cbe96['id']:return this[_0x33f57c(0x1cf)](_0x4db7a3['params'],_0x555e46,_0x4c647f);case _0x43c4b2['id']:return this[_0x33f57c(0x209)](_0x4db7a3[_0x33f57c(0x233)],_0x555e46,_0x4c647f);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x1d0313,_0x1a0921,_0x13e953){const _0x6f47b1=_0x34bf9f;var _0x1a0833,_0x59dd26;const {range:_0xfbcf82}=_0x1d0313,_0xcdbd86=new Set(),_0x5936e2={},_0x4074f6={},_0x306f43=[],_0x30b617=[],_0x35da95=[],_0x1d05a3=[];if(!_0x51b81d(this[_0x6f47b1(0x1d0)],{'unitId':_0x1a0921,'subUnitId':_0x13e953}))return{'redos':_0x30b617,'undos':_0x306f43};const _0x3b9b4c=this['_sparklineDataSourceModel'][_0x6f47b1(0x274)](_0x1a0921,_0x13e953);if(!_0x3b9b4c)return{'redos':_0x30b617,'undos':_0x306f43};if(!((_0x59dd26=(_0x1a0833=this['_sparklineDataSourceModel'][_0x6f47b1(0x21e)]()[_0x6f47b1(0x206)][_0x6f47b1(0x217)](_0x1a0921))==null?void 0x0:_0x1a0833[_0x6f47b1(0x217)](_0x13e953))==null?void 0x0:_0x59dd26[_0x6f47b1(0x230)]))return{'redos':_0x30b617,'undos':_0x306f43};for(const [_0x35f4eb,_0x2b2e0e]of _0x3b9b4c){const _0x32a610=_0x2b2e0e[_0x6f47b1(0x278)];_0x32a610[_0x6f47b1(0x269)]((_0x1d75b1,_0x505762,_0x186e10)=>{const _0x3cdd27=_0x6f47b1;if(_0xc9f892[_0x3cdd27(0x201)](_0xfbcf82,_0x186e10)){_0xcdbd86[_0x3cdd27(0x1e5)](_0x35f4eb);let _0x474edb=_0x4074f6[_0x35f4eb];_0x474edb||(_0x474edb={'config':_0x2b2e0e[_0x3cdd27(0x25b)],'sparklines':_0x2b2e0e[_0x3cdd27(0x278)][_0x3cdd27(0x200)]()},_0x4074f6[_0x35f4eb]=_0x474edb);let _0xefd6bb=_0x5936e2[_0x35f4eb];_0xefd6bb||(_0xefd6bb={'config':_0x2b2e0e['config'],'sparklines':new _0x4cad04(_0x2b2e0e[_0x3cdd27(0x278)][_0x3cdd27(0x200)]())},_0x5936e2[_0x35f4eb]=_0xefd6bb);const _0x20d992=_0x5d0834(_0x186e10,{'id':_0x1600f6['id'],'params':_0x1d0313});_0x20d992?_0xefd6bb['sparklines']['setValue'](_0x1d75b1,_0x505762,_0x20d992):_0xefd6bb[_0x3cdd27(0x278)][_0x3cdd27(0x1f4)](_0x1d75b1,_0x505762,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x5d5af2[_0x3cdd27(0x276)]});}}),_0x32a610[_0x6f47b1(0x269)]((_0x199013,_0x307edd,_0x2162c5)=>{const _0x29cbbb=_0x6f47b1;if(_0x199013<=_0xfbcf82[_0x29cbbb(0x24f)]&&_0x199013>=_0xfbcf82[_0x29cbbb(0x279)]){_0xcdbd86[_0x29cbbb(0x1e5)](_0x35f4eb);let _0x5d7f8f=_0x4074f6[_0x35f4eb];_0x5d7f8f||(_0x5d7f8f={'config':_0x2b2e0e[_0x29cbbb(0x25b)],'sparklines':_0x2b2e0e[_0x29cbbb(0x278)][_0x29cbbb(0x200)]()},_0x4074f6[_0x35f4eb]=_0x5d7f8f);let _0x121b53=_0x5936e2[_0x35f4eb];_0x121b53||(_0x121b53={'config':_0x2b2e0e[_0x29cbbb(0x25b)],'sparklines':new _0x4cad04(_0x2b2e0e[_0x29cbbb(0x278)][_0x29cbbb(0x200)]())},_0x5936e2[_0x35f4eb]=_0x121b53);}});}_0x1d05a3[_0x6f47b1(0x1f3)]({'id':y['id'],'params':{'unitId':_0x1a0921,'subUnitId':_0x13e953,'groupIds':Array[_0x6f47b1(0x26f)](_0xcdbd86),'isSingle':!0x1}}),_0x35da95[_0x6f47b1(0x1f3)]({'id':y['id'],'params':{'unitId':_0x1a0921,'subUnitId':_0x13e953,'groupIds':Array[_0x6f47b1(0x26f)](_0xcdbd86),'isSingle':!0x1}});const _0x4735e0={};let _0x5f1590=!0x1;return Object['entries'](_0x5936e2)[_0x6f47b1(0x226)](([_0x49dd6f,_0x485f85])=>{const _0x271748=_0x6f47b1;_0x485f85['sparklines']['getSizeOf']()&&(_0x5f1590=!0x0,_0x485f85['sparklines'][_0x271748(0x1ff)](_0xfbcf82[_0x271748(0x279)],_0xfbcf82[_0x271748(0x24f)]-_0xfbcf82[_0x271748(0x279)]+0x1),_0x4735e0[_0x49dd6f]={'config':_0x485f85[_0x271748(0x25b)],'sparklines':_0x485f85[_0x271748(0x278)]['clone']()});}),_0x5f1590&&_0x30b617[_0x6f47b1(0x1f3)]({'id':V['id'],'params':{'unitId':_0x1a0921,'subUnitId':_0x13e953,'sparklineConfigMap':_0x4735e0}}),_0x306f43[_0x6f47b1(0x1f3)]({'id':V['id'],'params':{'unitId':_0x1a0921,'subUnitId':_0x13e953,'sparklineConfigMap':_0x4074f6}}),{'redos':_0x30b617,'undos':_0x306f43,'preRedos':_0x35da95,'preUndos':_0x1d05a3};}[_0x34bf9f(0x1cf)](_0x4a2f06,_0x335d83,_0xc5866f){const _0x5d35b2=_0x34bf9f;var _0x1644c6,_0x54204d;const {range:_0x19342d}=_0x4a2f06,_0x4800f9=new Set(),_0x2a128a={},_0x1d985c={},_0x14a44e=[],_0x1e8245=[],_0x56f0c8=[],_0x68a9d=[];if(!_0x51b81d(this[_0x5d35b2(0x1d0)],{'unitId':_0x335d83,'subUnitId':_0xc5866f}))return{'redos':_0x1e8245,'undos':_0x14a44e};const _0x40298c=this['_sparklineDataSourceModel'][_0x5d35b2(0x274)](_0x335d83,_0xc5866f);if(!_0x40298c)return{'redos':_0x1e8245,'undos':_0x14a44e};if(!((_0x54204d=(_0x1644c6=this[_0x5d35b2(0x250)]['getSparklineCache']()[_0x5d35b2(0x206)][_0x5d35b2(0x217)](_0x335d83))==null?void 0x0:_0x1644c6[_0x5d35b2(0x217)](_0xc5866f))==null?void 0x0:_0x54204d[_0x5d35b2(0x230)]))return{'redos':_0x1e8245,'undos':_0x14a44e};for(const [_0x10aad1,_0x4cfc82]of _0x40298c){const _0x172b86=_0x4cfc82[_0x5d35b2(0x278)];_0x172b86[_0x5d35b2(0x269)]((_0x534b65,_0x44c27a,_0x303cf7)=>{const _0x41fc77=_0x5d35b2;if(_0xc9f892[_0x41fc77(0x201)](_0x19342d,_0x303cf7)){_0x4800f9[_0x41fc77(0x1e5)](_0x10aad1);let _0x2cb2f2=_0x1d985c[_0x10aad1];_0x2cb2f2||(_0x2cb2f2={'config':_0x4cfc82[_0x41fc77(0x25b)],'sparklines':_0x4cfc82[_0x41fc77(0x278)][_0x41fc77(0x200)]()},_0x1d985c[_0x10aad1]=_0x2cb2f2);let _0x32e29a=_0x2a128a[_0x10aad1];_0x32e29a||(_0x32e29a={'config':_0x4cfc82[_0x41fc77(0x25b)],'sparklines':new _0x4cad04(_0x4cfc82[_0x41fc77(0x278)][_0x41fc77(0x200)]())},_0x2a128a[_0x10aad1]=_0x32e29a);const _0x5d7d7e=_0x5d0834(_0x303cf7,{'id':_0x428336['id'],'params':_0x4a2f06});_0x5d7d7e?_0x32e29a['sparklines'][_0x41fc77(0x1f4)](_0x534b65,_0x44c27a,_0x5d7d7e):_0x32e29a[_0x41fc77(0x278)]['setValue'](_0x534b65,_0x44c27a,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x5d5af2['NORMAL']});}}),_0x172b86['forValue']((_0xed1b11,_0x3af542,_0x17f909)=>{const _0x666e3d=_0x5d35b2;if(_0x3af542<=_0x19342d[_0x666e3d(0x1e6)]&&_0x3af542>=_0x19342d[_0x666e3d(0x1fa)]){_0x4800f9[_0x666e3d(0x1e5)](_0x10aad1);let _0x5943cc=_0x1d985c[_0x10aad1];_0x5943cc||(_0x5943cc={'config':_0x4cfc82[_0x666e3d(0x25b)],'sparklines':_0x4cfc82[_0x666e3d(0x278)][_0x666e3d(0x200)]()},_0x1d985c[_0x10aad1]=_0x5943cc);let _0x46546a=_0x2a128a[_0x10aad1];_0x46546a||(_0x46546a={'config':_0x4cfc82[_0x666e3d(0x25b)],'sparklines':new _0x4cad04(_0x4cfc82[_0x666e3d(0x278)][_0x666e3d(0x200)]())},_0x2a128a[_0x10aad1]=_0x46546a);}});}_0x68a9d['push']({'id':y['id'],'params':{'unitId':_0x335d83,'subUnitId':_0xc5866f,'groupIds':Array[_0x5d35b2(0x26f)](_0x4800f9),'isSingle':!0x1}}),_0x56f0c8[_0x5d35b2(0x1f3)]({'id':y['id'],'params':{'unitId':_0x335d83,'subUnitId':_0xc5866f,'groupIds':Array[_0x5d35b2(0x26f)](_0x4800f9),'isSingle':!0x1}});const _0x362d7c={};let _0x177177=!0x1;return Object['entries'](_0x2a128a)[_0x5d35b2(0x226)](([_0x5a1966,_0x8275a5])=>{const _0x36f531=_0x5d35b2;_0x8275a5[_0x36f531(0x278)][_0x36f531(0x277)]()&&(_0x177177=!0x0,_0x8275a5[_0x36f531(0x278)][_0x36f531(0x264)](_0x19342d[_0x36f531(0x1fa)],_0x19342d[_0x36f531(0x1e6)]-_0x19342d[_0x36f531(0x1fa)]+0x1),_0x362d7c[_0x5a1966]={'config':_0x8275a5[_0x36f531(0x25b)],'sparklines':_0x8275a5[_0x36f531(0x278)]['clone']()});}),_0x177177&&_0x1e8245[_0x5d35b2(0x1f3)]({'id':V['id'],'params':{'unitId':_0x335d83,'subUnitId':_0xc5866f,'sparklineConfigMap':_0x362d7c}}),_0x14a44e[_0x5d35b2(0x1f3)]({'id':V['id'],'params':{'unitId':_0x335d83,'subUnitId':_0xc5866f,'sparklineConfigMap':_0x1d985c}}),{'redos':_0x1e8245,'undos':_0x14a44e,'preRedos':_0x56f0c8,'preUndos':_0x68a9d};}['_initCorrectRangeWithSparkline'](){const _0x1af0e6=_0x34bf9f;this[_0x1af0e6(0x213)](this['_commandService'][_0x1af0e6(0x1cb)](_0x181f9b=>{const _0x10673a=_0x1af0e6;if(_0x181f9b['id']===_0x14c159['id']){const _0x3a5d58=_0x181f9b[_0x10673a(0x233)],{unitId:_0x3bc0bc,subUnitId:_0x48f9fb,range:_0x2112da}=_0x3a5d58,_0x2dc147=_0x2112da[_0x10673a(0x1fa)],_0x2a56bc=_0x2112da[_0x10673a(0x1e6)]-_0x2112da[_0x10673a(0x1fa)]+0x1,_0x524c6c=this[_0x10673a(0x250)][_0x10673a(0x274)](_0x3bc0bc,_0x48f9fb);if(!_0x524c6c)return;for(const [_0x3a7672,_0x50f199]of _0x524c6c){this[_0x10673a(0x250)][_0x10673a(0x219)](_0x3bc0bc,_0x48f9fb,_0x3a7672);const _0x5572a3=_0x50f199[_0x10673a(0x278)];_0x5572a3[_0x10673a(0x269)]((_0x18c329,_0x8d0243,_0x2602b)=>{const _0x2f3ab2=_0x10673a,_0x58eb74={..._0x2602b};_0x2dc147<=_0x58eb74[_0x2f3ab2(0x1fa)]?(_0x58eb74['startColumn']+=_0x2a56bc,_0x58eb74['endColumn']+=_0x2a56bc):_0x2dc147>_0x58eb74[_0x2f3ab2(0x1e6)]||(_0x58eb74[_0x2f3ab2(0x1e6)]+=_0x2a56bc),_0x5572a3[_0x2f3ab2(0x1f4)](_0x18c329,_0x8d0243,_0x58eb74);});const _0x104a1a=_0x5572a3[_0x10673a(0x20c)]();for(const _0x96c233 in _0x104a1a){const _0xb7e838=_0x104a1a[Number(_0x96c233)];if(!_0xb7e838)continue;const _0x5e2d28=Object[_0x10673a(0x20e)](_0xb7e838)[_0x10673a(0x1cd)](Number),_0x543083=Math['max'](..._0x5e2d28);for(let _0x2a50d9=_0x543083;_0x2a50d9>=_0x2dc147;_0x2a50d9--)_0x2a50d9>=_0x2dc147&&_0xb7e838[_0x2a50d9]&&(_0xb7e838[_0x2a50d9+_0x2a56bc]=_0xb7e838[_0x2a50d9],delete _0xb7e838[_0x2a50d9]);}this[_0x10673a(0x250)]['updateSparklineExtraNum'](_0x3bc0bc,_0x48f9fb,_0x3a7672);}}else{if(_0x181f9b['id']===_0x2a0f6c['id']){const _0x122909=_0x181f9b['params'],{unitId:_0x45cfe4,subUnitId:_0xca2e80,range:_0x3de42c}=_0x122909,_0x19e127=_0x3de42c[_0x10673a(0x279)],_0xf20635=_0x3de42c['endRow']-_0x3de42c['startRow']+0x1,_0x30e0f3=this[_0x10673a(0x250)][_0x10673a(0x274)](_0x45cfe4,_0xca2e80);if(!_0x30e0f3)return;for(const [_0x2808ac,_0x5ed8cd]of _0x30e0f3){this[_0x10673a(0x250)][_0x10673a(0x219)](_0x45cfe4,_0xca2e80,_0x2808ac);const _0x1eff24=_0x5ed8cd[_0x10673a(0x278)];_0x1eff24['forValue']((_0x4595e5,_0x4bce99,_0x521fe2)=>{const _0x2f31da=_0x10673a,_0xcdf3df={..._0x521fe2};_0x19e127<=_0xcdf3df['startRow']?(_0xcdf3df[_0x2f31da(0x279)]+=_0xf20635,_0xcdf3df[_0x2f31da(0x24f)]+=_0xf20635):_0x19e127>_0xcdf3df['endRow']||(_0xcdf3df[_0x2f31da(0x24f)]+=_0xf20635),_0x1eff24[_0x2f31da(0x1f4)](_0x4595e5,_0x4bce99,_0xcdf3df);});const _0x1edf80=_0x1eff24[_0x10673a(0x20c)](),_0xdaecaf=Object[_0x10673a(0x20e)](_0x1edf80)['map'](Number),_0x5dd3dc=Math['max'](..._0xdaecaf);for(let _0xc8139a=_0x5dd3dc;_0xc8139a>=_0x19e127;_0xc8139a--)_0xc8139a>=_0x19e127&&_0x1edf80[_0xc8139a]&&(_0x1edf80[_0xc8139a+_0xf20635]=_0x1edf80[_0xc8139a],delete _0x1edf80[_0xc8139a]);this[_0x10673a(0x250)][_0x10673a(0x21d)](_0x45cfe4,_0xca2e80,_0x2808ac);}}else{if(_0x181f9b['id']===_0x428336['id']){const _0x238c15=_0x181f9b[_0x10673a(0x233)],{range:_0x20b1f8,unitId:_0x553cb4,subUnitId:_0x4ef688}=_0x238c15,_0x4594b3=this[_0x10673a(0x250)]['getSubUnitSparkline'](_0x553cb4,_0x4ef688);if(!_0x4594b3)return;for(const [_0x1514a5,_0x12c163]of _0x4594b3){const _0x26ba49=_0x12c163[_0x10673a(0x278)];_0x26ba49[_0x10673a(0x269)]((_0x4fed64,_0x35bdea,_0x43fd05)=>{const _0x929090=_0x10673a,_0x59eddf=_0x5d0834(_0x43fd05,_0x181f9b);_0x59eddf?_0x26ba49[_0x929090(0x1f4)](_0x4fed64,_0x35bdea,_0x59eddf):_0x26ba49[_0x929090(0x1f4)](_0x4fed64,_0x35bdea,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x5d5af2['NORMAL']});}),_0x26ba49[_0x10673a(0x264)](_0x20b1f8['startColumn'],_0x20b1f8['endColumn']-_0x20b1f8['startColumn']+0x1);}this['_sparklineDataSourceModel'][_0x10673a(0x216)](_0x553cb4,_0x4ef688);}else{if(_0x181f9b['id']===_0x1600f6['id']){const _0x477546=_0x181f9b[_0x10673a(0x233)],{range:_0x267094,unitId:_0x13007e,subUnitId:_0x2a4eb3}=_0x477546,_0x31a3bc=this[_0x10673a(0x250)][_0x10673a(0x274)](_0x13007e,_0x2a4eb3);if(!_0x31a3bc)return;for(const [_0x44cfaa,_0x15df84]of _0x31a3bc){const _0x1881ff=_0x15df84[_0x10673a(0x278)];_0x1881ff['forValue']((_0x1086cb,_0x448c4c,_0x340402)=>{const _0x4917b9=_0x10673a,_0x239022=_0x5d0834(_0x340402,_0x181f9b);_0x239022?_0x1881ff[_0x4917b9(0x1f4)](_0x1086cb,_0x448c4c,_0x239022):_0x1881ff[_0x4917b9(0x1f4)](_0x1086cb,_0x448c4c,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x5d5af2['NORMAL']});}),_0x1881ff[_0x10673a(0x1ff)](_0x267094['startRow'],_0x267094[_0x10673a(0x24f)]-_0x267094[_0x10673a(0x279)]+0x1);}this[_0x10673a(0x250)][_0x10673a(0x216)](_0x13007e,_0x2a4eb3);}else{if(_0x181f9b['id']===_0x4ebc33['id']){const _0x6d5be4=_0x181f9b[_0x10673a(0x233)],{unitId:_0xdb7fcd,subUnitId:_0x489ce2,sourceRange:_0x22419a,targetRange:_0xaf8051}=_0x6d5be4,_0x278702=this[_0x10673a(0x250)][_0x10673a(0x274)](_0xdb7fcd,_0x489ce2);if(!_0x278702)return;for(const [_0x5ad4f0,_0x5d07a4]of _0x278702){const _0x15af96=_0x5d07a4['sparklines'];_0x15af96['forValue']((_0x5f0017,_0x236116,_0x35e8f5)=>{const _0x582416=_0x10673a,_0x169be3=_0x5d0834(_0x35e8f5,_0x181f9b);_0x169be3?_0x15af96[_0x582416(0x1f4)](_0x5f0017,_0x236116,_0x169be3):_0x15af96[_0x582416(0x1f4)](_0x5f0017,_0x236116,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x5d5af2[_0x582416(0x276)]});}),_0x15af96[_0x10673a(0x26c)](_0x22419a[_0x10673a(0x1fa)],_0x22419a[_0x10673a(0x1e6)]-_0x22419a[_0x10673a(0x1fa)]+0x1,_0xaf8051[_0x10673a(0x1fa)]);}this[_0x10673a(0x250)][_0x10673a(0x216)](_0xdb7fcd,_0x489ce2);}else{if(_0x181f9b['id']===_0x1fac21['id']){const _0x3c2828=_0x181f9b['params'],{unitId:_0x53445a,subUnitId:_0x393d89,sourceRange:_0x3354da,targetRange:_0x2ce88a}=_0x3c2828,_0x4a2f37=this[_0x10673a(0x250)][_0x10673a(0x274)](_0x53445a,_0x393d89);if(!_0x4a2f37)return;for(const [_0x212c5a,_0x400ac5]of _0x4a2f37){const _0x1c88e5=_0x400ac5[_0x10673a(0x278)];_0x1c88e5['forValue']((_0x5d8e69,_0x2291f5,_0x4be470)=>{const _0x2aacd9=_0x10673a,_0xe49371=_0x5d0834(_0x4be470,_0x181f9b);_0xe49371?_0x1c88e5[_0x2aacd9(0x1f4)](_0x5d8e69,_0x2291f5,_0xe49371):_0x1c88e5[_0x2aacd9(0x1f4)](_0x5d8e69,_0x2291f5,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x5d5af2[_0x2aacd9(0x276)]});}),_0x1c88e5[_0x10673a(0x22c)](_0x3354da['startRow'],_0x3354da['endRow']-_0x3354da[_0x10673a(0x279)]+0x1,_0x2ce88a[_0x10673a(0x279)]);}this[_0x10673a(0x250)][_0x10673a(0x216)](_0x53445a,_0x393d89);}else{if(_0x181f9b['id']===_0x263646['id']){const _0x1318aa=_0x181f9b[_0x10673a(0x233)],{fromRange:_0x5ac6b7,toRange:_0x414192,unitId:_0x3dcb05,from:_0x330a5e,to:_0x1290ac}=_0x1318aa;if(_0x330a5e[_0x10673a(0x239)]!==_0x1290ac[_0x10673a(0x239)])return;const _0xaeef19=_0x330a5e[_0x10673a(0x239)],{startRow:_0xa0738f,endRow:_0x57e9ac,startColumn:_0x1abc3a,endColumn:_0x1c8d0a}=_0x5ac6b7,{startRow:_0x375062,startColumn:_0x1bd2a4}=_0x414192,_0x20b943=_0x375062-_0xa0738f,_0x1cb0c3=_0x1bd2a4-_0x1abc3a,_0x1f7362=this[_0x10673a(0x250)][_0x10673a(0x274)](_0x3dcb05,_0xaeef19);if(!(_0x1f7362!=null&&_0x1f7362['size']))return;for(let _0x2af3a8=_0xa0738f;_0x2af3a8<=_0x57e9ac;_0x2af3a8++)for(let _0x3920df=_0x1abc3a;_0x3920df<=_0x1c8d0a;_0x3920df++){const _0x536b5e=this[_0x10673a(0x250)][_0x10673a(0x21c)](_0x3dcb05,_0xaeef19,_0x2af3a8,_0x3920df);if(_0x536b5e){const _0x1a31b7=this[_0x10673a(0x250)][_0x10673a(0x1eb)](_0x3dcb05,_0xaeef19,_0x536b5e);if(_0x1a31b7){const _0x34cdbf=_0x1a31b7['sparklines'][_0x10673a(0x1fc)](_0x2af3a8,_0x3920df);_0x34cdbf&&(_0x1a31b7['sparklines'][_0x10673a(0x1f4)](_0x2af3a8+_0x20b943,_0x3920df+_0x1cb0c3,_0x34cdbf),_0x1a31b7[_0x10673a(0x278)][_0x10673a(0x258)](_0x2af3a8,_0x3920df));}}}for(const [_0x418cb0,_0x1831fa]of _0x1f7362){const _0xc08a1=_0x1831fa[_0x10673a(0x278)];_0xc08a1['forValue']((_0x102e3d,_0x18ec52,_0x48fb5b)=>{const _0x1723f1=_0x10673a,_0x281556={..._0x48fb5b};_0xc9f892['contains'](_0x5ac6b7,_0x48fb5b)&&(_0x281556[_0x1723f1(0x279)]+=_0x20b943,_0x281556[_0x1723f1(0x24f)]+=_0x20b943,_0x281556['startColumn']+=_0x1cb0c3,_0x281556[_0x1723f1(0x1e6)]+=_0x1cb0c3),_0xc08a1[_0x1723f1(0x1f4)](_0x102e3d,_0x18ec52,_0x281556);});}this[_0x10673a(0x250)]['reBuildAnchorCache'](_0x3dcb05,_0xaeef19);}}}}}}}}));}};Me=Kt([ge(0x0,_0x1e65e0(_0x256d0c)),ge(0x1,_0x1e65e0(_0x2ba726)),ge(0x2,_0x51752c),ge(0x3,_0x1e65e0(x))],Me);var Xt=Object[_0x34bf9f(0x22e)],zt=(_0x320019,_0x1cfd27,_0x151ded,_0x6f22bc)=>{const _0x1a060d=_0x34bf9f;for(var _0x14b5f2=_0x6f22bc>0x1?void 0x0:_0x6f22bc?Xt(_0x1cfd27,_0x151ded):_0x1cfd27,_0x3d9a22=_0x320019[_0x1a060d(0x223)]-0x1,_0xa9c08b;_0x3d9a22>=0x0;_0x3d9a22--)(_0xa9c08b=_0x320019[_0x3d9a22])&&(_0x14b5f2=_0xa9c08b(_0x14b5f2)||_0x14b5f2);return _0x14b5f2;},Be=(_0x38a212,_0x3e2012)=>(_0x287f4f,_0x2408d8)=>_0x3e2012(_0x287f4f,_0x2408d8,_0x38a212);let Re=class extends _0x28508e{constructor(_0x3fbc56,_0x56178f){const _0x1d8ecf=_0x34bf9f;super(),this[_0x1d8ecf(0x241)]=_0x3fbc56,this['_sparklineDataSourceModel']=_0x56178f,this[_0x1d8ecf(0x24d)]();}[_0x34bf9f(0x24d)](){const _0x29b887=_0x34bf9f,_0x3015f1=_0x9a47d2=>{const _0x162223=_0x37ff,_0x316cbb=this['_sparklineDataSourceModel'][_0x162223(0x25d)](_0x9a47d2);return _0x316cbb?JSON[_0x162223(0x252)](_0x316cbb):'';},_0x28091c=_0x18f469=>_0x18f469?JSON['parse'](_0x18f469):{};this[_0x29b887(0x213)](this[_0x29b887(0x241)]['registerPluginResource']({'toJson':_0x3015f1,'parseJson':_0x28091c,'pluginName':Ke,'businesses':[_0x3ba247['UNIVER_SHEET']],'onLoad':(_0x34f426,_0x2fb9d1)=>{const _0x8273d0=_0x29b887;this[_0x8273d0(0x250)][_0x8273d0(0x1f8)](_0x2fb9d1);},'onUnLoad':_0x4458a1=>{const _0x578a0e=_0x29b887;this[_0x578a0e(0x250)][_0x578a0e(0x21f)](_0x4458a1);}}));}};Re=zt([Be(0x0,_0x1e65e0(_0x1b9d06)),Be(0x1,_0x1e65e0(x))],Re);var Jt=Object[_0x34bf9f(0x263)],Zt=Object[_0x34bf9f(0x22e)],Yt=(_0x17944c,_0x44f939,_0x1da3c1)=>_0x44f939 in _0x17944c?Jt(_0x17944c,_0x44f939,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1da3c1}):_0x17944c[_0x44f939]=_0x1da3c1,qt=(_0x2b556c,_0x4322bf,_0x4efa2b,_0x19f50f)=>{for(var _0x37fdaf=_0x19f50f>0x1?void 0x0:_0x19f50f?Zt(_0x4322bf,_0x4efa2b):_0x4322bf,_0xe21668=_0x2b556c['length']-0x1,_0x215e50;_0xe21668>=0x0;_0xe21668--)(_0x215e50=_0x2b556c[_0xe21668])&&(_0x37fdaf=_0x215e50(_0x37fdaf)||_0x37fdaf);return _0x37fdaf;},He=(_0x177732,_0x35ceef)=>(_0x169c11,_0x492dbd)=>_0x35ceef(_0x169c11,_0x492dbd,_0x177732),ze=(_0x5f0f95,_0x1172fd,_0x13048a)=>Yt(_0x5f0f95,typeof _0x1172fd!=_0x34bf9f(0x232)?_0x1172fd+'':_0x1172fd,_0x13048a);let ve=class extends _0x500994{constructor(_0x46fe1c={},_0x2f743f,_0x59587d){const _0x326058=_0x34bf9f;super(),this[_0x326058(0x221)]=_0x46fe1c,this[_0x326058(0x256)]=_0x2f743f,this[_0x326058(0x1d8)]=_0x59587d,this[_0x326058(0x271)](),this[_0x326058(0x23b)]();}[_0x34bf9f(0x271)](){const _0x4e84e7=_0x34bf9f;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x4e84e7(0x226)](_0x522eb0=>{const _0xdc0a2f=_0x4e84e7;this[_0xdc0a2f(0x256)][_0xdc0a2f(0x1e5)](_0x522eb0);}),_0x283139(this['_injector'],[[Re]]);}[_0x34bf9f(0x1d1)](){const _0x3bc191=_0x34bf9f;_0x283139(this[_0x3bc191(0x256)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x34bf9f(0x23b)](){const _0x3943b4=_0x34bf9f;[Nt,V,Ot,y,xt,Oe][_0x3943b4(0x226)](_0x19b326=>this['_commandService'][_0x3943b4(0x1f5)](_0x19b326));}};ze(ve,_0x34bf9f(0x218),Ke),ze(ve,_0x34bf9f(0x236),_0x3ba247[_0x34bf9f(0x22f)]),ve=qt([_0x2844f4(_0x456979),He(0x1,_0x1e65e0(_0x340827)),He(0x2,_0x1e65e0(_0x256d0c))],ve);export{Nt as AddSheetSparklineCommand,V as AddSheetSparklineMutation,Ke as PLUGIN_NAME,Ot as RemoveSheetSparklineCommand,y as RemoveSheetSparklineMutation,xt as SetSheetSparklineCommand,Oe as SetSheetSparklineMutation,J as SpacialShowAsEnum,x as SparklineDataSourceModel,De as SparklineExtremumTypeEnum,on as SparklinePointsNames,Le as SparklineThemeMapping,Xe as SparklineThemeTypeEnum,Dt as SparklineTypeEnum,ve as UniverSheetSparklinePlugin,Fe as getSparklinePlacement};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x224da7=_0x39f1;(function(_0x10ef9c,_0x4af84c){const _0x4cfc1c=_0x39f1,_0xb15311=_0x10ef9c();while(!![]){try{const _0x2c4f5b=-parseInt(_0x4cfc1c(0x15f))/0x1+parseInt(_0x4cfc1c(0x14e))/0x2*(parseInt(_0x4cfc1c(0x132))/0x3)+parseInt(_0x4cfc1c(0x136))/0x4*(-parseInt(_0x4cfc1c(0x139))/0x5)+parseInt(_0x4cfc1c(0x160))/0x6+parseInt(_0x4cfc1c(0x14d))/0x7*(-parseInt(_0x4cfc1c(0x166))/0x8)+-parseInt(_0x4cfc1c(0x140))/0x9*(parseInt(_0x4cfc1c(0x137))/0xa)+parseInt(_0x4cfc1c(0x15e))/0xb;if(_0x2c4f5b===_0x4af84c)break;else _0xb15311['push'](_0xb15311['shift']());}catch(_0x1a3d4c){_0xb15311['push'](_0xb15311['shift']());}}}(_0x4a1e,0xdb683));import{SparklineDataSourceModel as _0x1db6c4,SetSheetSparklineCommand as _0x518e5e,RemoveSheetSparklineCommand as _0x3f7779,AddSheetSparklineCommand as _0x42c7d1,SparklineTypeEnum as _0x55c0b3}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x4ac145,Injector as _0x35cb56,ICommandService as _0x3fa536,Tools as _0x6f6a14}from'@univerjs/core';import{FWorksheet as _0x448d08}from'@univerjs/sheets/facade';import{FEnum as _0x50079f,FEventName as _0x5424b5,FUniver as _0x2a828f}from'@univerjs/core/facade';import{SheetsSelectionsService as _0xf66158}from'@univerjs/sheets';var z=Object[_0x224da7(0x148)],H=(_0x5f68fd,_0x85866e,_0x2ba1bb,_0x4cc40d)=>{const _0x4df118=_0x224da7;for(var _0x355a48=_0x4cc40d>0x1?void 0x0:_0x4cc40d?z(_0x85866e,_0x2ba1bb):_0x85866e,_0x5b9bcf=_0x5f68fd[_0x4df118(0x15b)]-0x1,_0x16b1c1;_0x5b9bcf>=0x0;_0x5b9bcf--)(_0x16b1c1=_0x5f68fd[_0x5b9bcf])&&(_0x355a48=_0x16b1c1(_0x355a48)||_0x355a48);return _0x355a48;},V=(_0x598a50,_0x3f6fc8)=>(_0x5a80c4,_0x3c242a)=>_0x3f6fc8(_0x5a80c4,_0x3c242a,_0x598a50);let C=class{constructor(_0x458059,_0x2d7804,_0x2009ee,_0x529d71,_0x193b8d,_0x197384){const _0x5c33d6=_0x224da7;this[_0x5c33d6(0x15c)]=_0x458059,this[_0x5c33d6(0x130)]=_0x2d7804,this[_0x5c33d6(0x154)]=_0x2009ee,this['_row']=_0x529d71,this[_0x5c33d6(0x165)]=_0x193b8d,this['_injector']=_0x197384;}['changeDataSource'](_0x15a850,_0x46054b){const _0x531d1e=_0x224da7,_0xd7d386=this[_0x531d1e(0x138)][_0x531d1e(0x163)](_0x1db6c4),_0x1fa256=this[_0x531d1e(0x138)]['get'](_0x3fa536),_0x4c1a69=_0xd7d386[_0x531d1e(0x133)](this[_0x531d1e(0x15c)],this[_0x531d1e(0x130)],this[_0x531d1e(0x154)]);if(!_0x4c1a69)return;const _0x2589ca={'config':_0x4c1a69,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x531d1e(0x154)],'resetType':_0x531d1e(0x13f),'sourceRanges':[_0x15a850],'targetRanges':[_0x46054b],'primary':{'startRow':this[_0x531d1e(0x16a)],'startColumn':this[_0x531d1e(0x165)],'endRow':this[_0x531d1e(0x16a)],'endColumn':this[_0x531d1e(0x165)],'actualRow':this[_0x531d1e(0x16a)],'actualColumn':this[_0x531d1e(0x165)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x1fa256['syncExecuteCommand'](_0x518e5e['id'],_0x2589ca),this[_0x531d1e(0x16a)]=_0x46054b[_0x531d1e(0x14b)],this[_0x531d1e(0x165)]=_0x46054b[_0x531d1e(0x16b)],this;}['removeSparkline'](){const _0x903843=_0x224da7,_0x5831a6=this['_injector'][_0x903843(0x163)](_0x3fa536),_0x292a9b={'isSingle':!0x0,'ranges':[{'startRow':this[_0x903843(0x16a)],'startColumn':this['_col'],'endRow':this[_0x903843(0x16a)],'endColumn':this[_0x903843(0x165)]}]};_0x5831a6['syncExecuteCommand'](_0x3f7779['id'],_0x292a9b);}};C=H([V(0x5,_0x4ac145(_0x35cb56))],C);function _0x39f1(_0xa108f,_0x3b959b){const _0x4a1ec5=_0x4a1e();return _0x39f1=function(_0x39f193,_0x1a14d2){_0x39f193=_0x39f193-0x12f;let _0x361224=_0x4a1ec5[_0x39f193];return _0x361224;},_0x39f1(_0xa108f,_0x3b959b);}var q=Object[_0x224da7(0x148)],J=(_0xdf3e5,_0x52cdc9,_0x1b614b,_0xda54ad)=>{for(var _0x4d2503=_0xda54ad>0x1?void 0x0:_0xda54ad?q(_0x52cdc9,_0x1b614b):_0x52cdc9,_0x94c3d=_0xdf3e5['length']-0x1,_0x2b20f7;_0x94c3d>=0x0;_0x94c3d--)(_0x2b20f7=_0xdf3e5[_0x94c3d])&&(_0x4d2503=_0x2b20f7(_0x4d2503)||_0x4d2503);return _0x4d2503;},K=(_0x5711b6,_0x40e34b)=>(_0x4c5e72,_0x1c506c)=>_0x40e34b(_0x4c5e72,_0x1c506c,_0x5711b6);let w=class{constructor(_0x1c966f,_0x2ca652,_0x2dbd2a,_0x4d0191,_0x225ae0,_0x3be5af){const _0x3ddbc8=_0x224da7;this[_0x3ddbc8(0x15c)]=_0x1c966f,this[_0x3ddbc8(0x130)]=_0x2ca652,this[_0x3ddbc8(0x154)]=_0x2dbd2a,this['_row']=_0x4d0191,this[_0x3ddbc8(0x165)]=_0x225ae0,this['_injector']=_0x3be5af;}[_0x224da7(0x159)](_0x4cfad1,_0x34a65f){const _0x2e8ec5=_0x224da7,_0x80498e=this[_0x2e8ec5(0x138)][_0x2e8ec5(0x163)](_0x1db6c4),_0x7cd526=this[_0x2e8ec5(0x138)]['get'](_0x3fa536),_0x224650=_0x80498e['getSparklineById'](this['_unitId'],this[_0x2e8ec5(0x130)],this[_0x2e8ec5(0x154)]);if(!_0x224650)return;const _0x14d9f7={'config':_0x224650,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x2e8ec5(0x154)],'resetType':_0x2e8ec5(0x14a),'sourceRanges':_0x4cfad1,'targetRanges':_0x34a65f,'primary':{'startRow':this['_row'],'startColumn':this['_col'],'endRow':this[_0x2e8ec5(0x16a)],'endColumn':this[_0x2e8ec5(0x165)],'actualRow':this[_0x2e8ec5(0x16a)],'actualColumn':this[_0x2e8ec5(0x165)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x7cd526[_0x2e8ec5(0x16d)](_0x518e5e['id'],_0x14d9f7),this[_0x2e8ec5(0x16a)]=_0x34a65f[0x0]['startRow'],this[_0x2e8ec5(0x165)]=_0x34a65f[0x0]['startColumn'],this;}['removeSparklineGroup'](){const _0x35d881=_0x224da7,_0xb72e7a=this[_0x35d881(0x138)][_0x35d881(0x163)](_0x3fa536),_0x4176b={'isSingle':!0x1,'ranges':[{'startRow':this[_0x35d881(0x16a)],'startColumn':this[_0x35d881(0x165)],'endRow':this[_0x35d881(0x16a)],'endColumn':this[_0x35d881(0x165)]}]};_0xb72e7a['syncExecuteCommand'](_0x3f7779['id'],_0x4176b);}[_0x224da7(0x161)](_0x4b9aaf){const _0x2d2537=_0x224da7,_0x12f8cb=this[_0x2d2537(0x138)][_0x2d2537(0x163)](_0x1db6c4)[_0x2d2537(0x133)](this[_0x2d2537(0x15c)],this['_subUnitId'],this['_groupId']);if(_0x12f8cb){const _0x579390={'config':{'config':_0x4b9aaf,'sparklines':_0x12f8cb[_0x2d2537(0x153)]},'isChangeDataSource':!0x1};this[_0x2d2537(0x138)][_0x2d2537(0x163)](_0x3fa536)[_0x2d2537(0x16d)](_0x518e5e['id'],_0x579390);}return this;}};w=J([K(0x5,_0x4ac145(_0x35cb56))],w);class L extends _0x448d08{[_0x224da7(0x13e)](_0x146db2,_0x4872d9,_0x54f461){const _0x5027b2=_0x224da7;if(this[_0x5027b2(0x131)]['syncExecuteCommand'](_0x42c7d1['id'],{'sourceRanges':_0x146db2,'targetRanges':_0x4872d9,'targetInfo':{'unitId':this[_0x5027b2(0x13b)][_0x5027b2(0x155)](),'subUnitId':this[_0x5027b2(0x162)][_0x5027b2(0x158)]()},'config':{'type':_0x54f461}})){const {startRow:_0x2f5692,startColumn:_0x184e44}=_0x4872d9[0x0];return this[_0x5027b2(0x150)](_0x2f5692,_0x184e44);}}[_0x224da7(0x144)](){const _0x109534=_0x224da7;return this[_0x109534(0x138)]['get'](_0x1db6c4)['getSubUnitSparkline'](this[_0x109534(0x13b)][_0x109534(0x155)](),this[_0x109534(0x162)][_0x109534(0x158)]());}[_0x224da7(0x135)](_0x1ee1c6){const _0x4e8ae4=_0x224da7,_0x342d2f=this['_injector'][_0x4e8ae4(0x163)](_0x1db6c4);let _0x344492;for(let _0x185fd9=0x0;_0x185fd9<_0x1ee1c6[_0x4e8ae4(0x15b)];_0x185fd9++){const _0x5b721e=_0x1ee1c6[_0x185fd9],{startRow:_0x11f75b,endRow:_0x263371,startColumn:_0x5051dc,endColumn:_0x2e3a2a}=_0x5b721e;for(let _0x4d782d=_0x11f75b;_0x4d782d<=_0x263371;_0x4d782d++)for(let _0x468f87=_0x5051dc;_0x468f87<=_0x2e3a2a;_0x468f87++){const _0x101e6e=_0x342d2f[_0x4e8ae4(0x151)](this['_workbook'][_0x4e8ae4(0x155)](),this[_0x4e8ae4(0x162)][_0x4e8ae4(0x158)](),_0x4d782d,_0x468f87);if(_0x101e6e){const _0x7f5cc4=_0x342d2f[_0x4e8ae4(0x133)](this[_0x4e8ae4(0x13b)][_0x4e8ae4(0x155)](),this[_0x4e8ae4(0x162)][_0x4e8ae4(0x158)](),_0x101e6e);if(_0x7f5cc4){_0x344492=_0x6f6a14[_0x4e8ae4(0x167)](_0x7f5cc4);break;}}}}_0x344492&&this[_0x4e8ae4(0x131)][_0x4e8ae4(0x13d)](_0x518e5e['id'],{'ranges':_0x1ee1c6,'combine':!0x0,'config':_0x344492,'isChangeDataSource':!0x1});}[_0x224da7(0x14f)](_0x4a377c){const _0x16dbf5=_0x224da7,_0x456e20=this[_0x16dbf5(0x138)][_0x16dbf5(0x163)](_0x1db6c4);let _0x3889fe;for(let _0x5c9d6c=0x0;_0x5c9d6c<_0x4a377c['length'];_0x5c9d6c++){const _0x288341=_0x4a377c[_0x5c9d6c],{startRow:_0x233d65,endRow:_0x52819e,startColumn:_0x22f44e,endColumn:_0x2ae066}=_0x288341;for(let _0x2337a0=_0x233d65;_0x2337a0<=_0x52819e;_0x2337a0++)for(let _0x10da04=_0x22f44e;_0x10da04<=_0x2ae066;_0x10da04++){const _0x7c786a=_0x456e20[_0x16dbf5(0x151)](this[_0x16dbf5(0x13b)][_0x16dbf5(0x155)](),this[_0x16dbf5(0x162)][_0x16dbf5(0x158)](),_0x2337a0,_0x10da04);if(_0x7c786a){const _0xa109e7=_0x456e20['getSparklineById'](this[_0x16dbf5(0x13b)][_0x16dbf5(0x155)](),this[_0x16dbf5(0x162)][_0x16dbf5(0x158)](),_0x7c786a);if(_0xa109e7){_0x3889fe=_0x6f6a14[_0x16dbf5(0x167)](_0xa109e7);break;}}}}_0x3889fe||this['_commandService'][_0x16dbf5(0x13d)](_0x518e5e['id'],{'ranges':_0x4a377c,'unCombine':!0x0,'config':_0x3889fe,'isChangeDataSource':!0x1});}[_0x224da7(0x150)](_0xd003af,_0x3d737c){const _0x1db648=_0x224da7,_0x3a4fd4=this[_0x1db648(0x138)][_0x1db648(0x163)](_0x1db6c4),_0x1edb16=this[_0x1db648(0x13b)][_0x1db648(0x155)](),_0x1cf758=this[_0x1db648(0x162)][_0x1db648(0x158)](),_0x3d3e89=_0x3a4fd4[_0x1db648(0x151)](_0x1edb16,_0x1cf758,_0xd003af,_0x3d737c);if(_0x3d3e89)return this[_0x1db648(0x138)][_0x1db648(0x169)](C,_0x1edb16,_0x1cf758,_0x3d3e89,_0xd003af,_0x3d737c);}['getSparklineGroupByCell'](_0x53404f,_0x4e192c){const _0x4ea848=_0x224da7,_0x43f66e=this['_injector']['get'](_0x1db6c4),_0x526728=this[_0x4ea848(0x13b)][_0x4ea848(0x155)](),_0x33f698=this[_0x4ea848(0x162)]['getSheetId'](),_0x520214=_0x43f66e[_0x4ea848(0x151)](_0x526728,_0x33f698,_0x53404f,_0x4e192c);if(_0x520214)return this[_0x4ea848(0x138)][_0x4ea848(0x169)](w,_0x526728,_0x33f698,_0x520214,_0x53404f,_0x4e192c);}}_0x448d08[_0x224da7(0x141)](L);class Q extends _0x50079f{get[_0x224da7(0x14c)](){return _0x55c0b3;}}_0x50079f['extend'](Q);class X extends _0x5424b5{get[_0x224da7(0x12f)](){const _0x4a064c=_0x224da7;return _0x4a064c(0x12f);}}_0x5424b5[_0x224da7(0x141)](X);class Y extends _0x2a828f{[_0x224da7(0x168)](_0xaf5fcc){const _0x57aced=_0x224da7,_0x4762e3=_0xaf5fcc[_0x57aced(0x163)](_0x3fa536);this['registerEventHandler'](this[_0x57aced(0x147)][_0x57aced(0x12f)],()=>_0x4762e3[_0x57aced(0x143)](_0x4fcf99=>{const _0x419287=_0x57aced;var _0x33eab7,_0x3cc14a;if(_0x4fcf99['id']===_0x518e5e['id']){const _0x2a11c0=_0x4fcf99['params'];if(!_0x2a11c0[_0x419287(0x146)]){const _0x522891=this[_0x419287(0x156)](),_0x38bb7d=_0x522891==null?void 0x0:_0x522891['getActiveSheet']();if(!_0x522891||!_0x38bb7d)return;const _0x237019=_0x522891[_0x419287(0x134)](),_0x1dcfff=_0x38bb7d[_0x419287(0x158)](),_0x525acd=this['_injector'][_0x419287(0x163)](_0xf66158),_0x3d3a78=this[_0x419287(0x138)][_0x419287(0x163)](_0x1db6c4),_0x25e4de=(_0x33eab7=_0x2a11c0==null?void 0x0:_0x2a11c0[_0x419287(0x164)])!=null?_0x33eab7:_0x525acd[_0x419287(0x145)]()[_0x419287(0x142)](_0x248ffa=>_0x248ffa['range']),_0x343656=(_0x3cc14a=_0x3d3a78['getSparklineCache']()[_0x419287(0x149)]['get'](_0x237019))==null?void 0x0:_0x3cc14a[_0x419287(0x163)](_0x1dcfff),_0xc1eebc=new Set();_0x25e4de['forEach'](_0x5eb0df=>{const _0xc9860=_0x419287;var _0x1959d7;const {startRow:_0x58129a,endRow:_0xcb4ba8,startColumn:_0x2ad284,endColumn:_0x460846}=_0x5eb0df;for(let _0x28e6a6=_0x58129a;_0x28e6a6<=_0xcb4ba8;_0x28e6a6++)for(let _0x4ce5c7=_0x2ad284;_0x4ce5c7<=_0x460846;_0x4ce5c7++){const _0x435412=(_0x1959d7=_0x343656==null?void 0x0:_0x343656[_0xc9860(0x13a)]['getValue'](_0x28e6a6,_0x4ce5c7))==null?void 0x0:_0x1959d7[_0xc9860(0x152)];_0x435412&&_0xc1eebc[_0xc9860(0x13c)](_0x435412);}});const _0x17bda0=Array[_0x419287(0x16c)](_0xc1eebc)['map'](_0x5a4a2b=>_0x3d3a78[_0x419287(0x133)](_0x237019,_0x1dcfff,_0x5a4a2b))[_0x419287(0x15d)](_0x55f5a8=>!!_0x55f5a8),_0x49a894={'workbook':_0x522891,'worksheet':_0x38bb7d,'sparklines':_0x17bda0};if(this[_0x419287(0x157)](this[_0x419287(0x147)][_0x419287(0x12f)],_0x49a894),_0x49a894[_0x419287(0x15a)])throw new Error('Sheet\x20create\x20canceled\x20by\x20facade\x20api.');}}}));}}function _0x4a1e(){const _0x3bec4b=['setConfig','_worksheet','get','ranges','_col','1219080KriEmk','deepClone','_initialize','createInstance','_row','startColumn','from','syncExecuteCommand','SheetSparklineChanged','_subUnitId','_commandService','6078TrUUaV','getSparklineById','getId','composeSparkline','22144OmpbcU','4060wuEJTT','_injector','1600KRBuwr','matrix','_workbook','add','executeCommand','addSparkline','item','36711czThUq','extend','map','onCommandExecuted','getAllSubSparkline','getCurrentSelections','isChangeDataSource','Event','getOwnPropertyDescriptor','sparklineAnchorMap','group','startRow','SparklineTypeEnum','7XCJOEB','312tddQlt','unComposeSparkline','getSparklineByCell','getSparkline','groupId','sparklines','_groupId','getUnitId','getActiveWorkbook','fireEvent','getSheetId','changeDataSource','cancel','length','_unitId','filter','38157526gEoOTb','457084ooLSbA','6904992kksrpw'];_0x4a1e=function(){return _0x3bec4b;};return _0x4a1e();}_0x2a828f[_0x224da7(0x141)](Y);export{C as FSparkline,w as FSparklineGroup};
1
+ const _0x16b416=_0x5b2b;(function(_0x56259c,_0x448aa2){const _0x3b4cb1=_0x5b2b,_0x542b16=_0x56259c();while(!![]){try{const _0x322115=parseInt(_0x3b4cb1(0xfa))/0x1*(parseInt(_0x3b4cb1(0x103))/0x2)+-parseInt(_0x3b4cb1(0xf3))/0x3*(-parseInt(_0x3b4cb1(0xf6))/0x4)+-parseInt(_0x3b4cb1(0xe2))/0x5+-parseInt(_0x3b4cb1(0x119))/0x6+parseInt(_0x3b4cb1(0x10b))/0x7+parseInt(_0x3b4cb1(0xee))/0x8*(-parseInt(_0x3b4cb1(0x107))/0x9)+parseInt(_0x3b4cb1(0x10f))/0xa*(parseInt(_0x3b4cb1(0x109))/0xb);if(_0x322115===_0x448aa2)break;else _0x542b16['push'](_0x542b16['shift']());}catch(_0x4399e1){_0x542b16['push'](_0x542b16['shift']());}}}(_0x122d,0xc2310));import{SparklineDataSourceModel as _0x5433f1,SetSheetSparklineCommand as _0x36a5cd,RemoveSheetSparklineCommand as _0x276281,AddSheetSparklineCommand as _0x47ef97,SparklineTypeEnum as _0x2ebc54}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x1a8512,Injector as _0x106248,ICommandService as _0x57f900,Tools as _0x2f11bc}from'@univerjs/core';import{FWorksheet as _0xb2993d}from'@univerjs/sheets/facade';function _0x5b2b(_0x216192,_0x1a9938){const _0x122da8=_0x122d();return _0x5b2b=function(_0x5b2bae,_0x42934d){_0x5b2bae=_0x5b2bae-0xdc;let _0x32a204=_0x122da8[_0x5b2bae];return _0x32a204;},_0x5b2b(_0x216192,_0x1a9938);}import{FEnum as _0x371748,FEventName as _0x52547b,FUniver as _0x3d0b10}from'@univerjs/core/facade';import{SheetsSelectionsService as _0x2f0e71}from'@univerjs/sheets';var z=Object[_0x16b416(0x115)],H=(_0x3a0c33,_0x56c5ff,_0x4b0e5a,_0x165e88)=>{const _0x226dd8=_0x16b416;for(var _0x386966=_0x165e88>0x1?void 0x0:_0x165e88?z(_0x56c5ff,_0x4b0e5a):_0x56c5ff,_0x5a510c=_0x3a0c33[_0x226dd8(0x111)]-0x1,_0x210e3f;_0x5a510c>=0x0;_0x5a510c--)(_0x210e3f=_0x3a0c33[_0x5a510c])&&(_0x386966=_0x210e3f(_0x386966)||_0x386966);return _0x386966;},V=(_0x21bbb7,_0x51879d)=>(_0x38624c,_0x231dc4)=>_0x51879d(_0x38624c,_0x231dc4,_0x21bbb7);function _0x122d(){const _0x2411c6=['getOwnPropertyDescriptor','_groupId','createInstance','composeSparkline','2543880nnaWqx','group','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','extend','_row','getActiveWorkbook','SparklineTypeEnum','5971300AyUhZo','changeDataSource','cancel','forEach','getSubUnitSparkline','_subUnitId','SheetSparklineChanged','deepClone','map','groupId','range','_workbook','488SsoGNj','syncExecuteCommand','removeSparkline','_worksheet','params','3SgzRaP','onCommandExecuted','getSparkline','888032vDVrde','getCurrentSelections','executeCommand','_unitId','1JTfWWy','startColumn','_initialize','getSparklineByCell','getSparklineCache','_injector','get','getSparklineGroupByCell','getActiveSheet','1357178EChOOn','isChangeDataSource','_col','getSheetId','153045xjRQVw','startRow','143cBINSM','Event','1702722HlLrAi','getUnitId','_commandService','filter','1774700FJXFjL','getSparklineById','length','unComposeSparkline','ranges','fireEvent'];_0x122d=function(){return _0x2411c6;};return _0x122d();}let C=class{constructor(_0x324d9b,_0x552750,_0xfd4fb8,_0x2a62a8,_0x32315e,_0x5e2c09){const _0x3b7329=_0x16b416;this['_unitId']=_0x324d9b,this[_0x3b7329(0xe7)]=_0x552750,this[_0x3b7329(0x116)]=_0xfd4fb8,this[_0x3b7329(0xdf)]=_0x2a62a8,this[_0x3b7329(0x105)]=_0x32315e,this[_0x3b7329(0xff)]=_0x5e2c09;}[_0x16b416(0xe3)](_0x5ca91f,_0x33fb7c){const _0x2ee8f9=_0x16b416,_0x4cf01e=this[_0x2ee8f9(0xff)]['get'](_0x5433f1),_0x4b5d72=this[_0x2ee8f9(0xff)]['get'](_0x57f900),_0x3a448b=_0x4cf01e[_0x2ee8f9(0x110)](this[_0x2ee8f9(0xf9)],this[_0x2ee8f9(0xe7)],this[_0x2ee8f9(0x116)]);if(!_0x3a448b)return;const _0x3beb11={'config':_0x3a448b,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x2ee8f9(0x116)],'resetType':'item','sourceRanges':[_0x5ca91f],'targetRanges':[_0x33fb7c],'primary':{'startRow':this[_0x2ee8f9(0xdf)],'startColumn':this[_0x2ee8f9(0x105)],'endRow':this[_0x2ee8f9(0xdf)],'endColumn':this[_0x2ee8f9(0x105)],'actualRow':this['_row'],'actualColumn':this[_0x2ee8f9(0x105)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4b5d72[_0x2ee8f9(0xef)](_0x36a5cd['id'],_0x3beb11),this[_0x2ee8f9(0xdf)]=_0x33fb7c['startRow'],this[_0x2ee8f9(0x105)]=_0x33fb7c[_0x2ee8f9(0xfb)],this;}[_0x16b416(0xf0)](){const _0x498997=_0x16b416,_0x5a721e=this[_0x498997(0xff)][_0x498997(0x100)](_0x57f900),_0x38e912={'isSingle':!0x0,'ranges':[{'startRow':this[_0x498997(0xdf)],'startColumn':this['_col'],'endRow':this[_0x498997(0xdf)],'endColumn':this[_0x498997(0x105)]}]};_0x5a721e['syncExecuteCommand'](_0x276281['id'],_0x38e912);}};C=H([V(0x5,_0x1a8512(_0x106248))],C);var q=Object[_0x16b416(0x115)],J=(_0x51f930,_0x130dfc,_0x2e31dd,_0x30abaa)=>{const _0x26f63b=_0x16b416;for(var _0xa47c4d=_0x30abaa>0x1?void 0x0:_0x30abaa?q(_0x130dfc,_0x2e31dd):_0x130dfc,_0x218fe8=_0x51f930[_0x26f63b(0x111)]-0x1,_0x4a0816;_0x218fe8>=0x0;_0x218fe8--)(_0x4a0816=_0x51f930[_0x218fe8])&&(_0xa47c4d=_0x4a0816(_0xa47c4d)||_0xa47c4d);return _0xa47c4d;},K=(_0x38be4d,_0x13179c)=>(_0x44c963,_0x121b3b)=>_0x13179c(_0x44c963,_0x121b3b,_0x38be4d);let w=class{constructor(_0x20a58d,_0x203603,_0x35df3a,_0xa2bca,_0x24f389,_0x13a3c8){const _0x45e4af=_0x16b416;this[_0x45e4af(0xf9)]=_0x20a58d,this['_subUnitId']=_0x203603,this[_0x45e4af(0x116)]=_0x35df3a,this[_0x45e4af(0xdf)]=_0xa2bca,this['_col']=_0x24f389,this['_injector']=_0x13a3c8;}[_0x16b416(0xe3)](_0x20f98a,_0x225ec4){const _0x112cc0=_0x16b416,_0x5a7a73=this['_injector'][_0x112cc0(0x100)](_0x5433f1),_0x10fd97=this[_0x112cc0(0xff)][_0x112cc0(0x100)](_0x57f900),_0x32dfd6=_0x5a7a73['getSparklineById'](this[_0x112cc0(0xf9)],this['_subUnitId'],this['_groupId']);if(!_0x32dfd6)return;const _0x305dfe={'config':_0x32dfd6,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x112cc0(0x116)],'resetType':_0x112cc0(0xdc),'sourceRanges':_0x20f98a,'targetRanges':_0x225ec4,'primary':{'startRow':this[_0x112cc0(0xdf)],'startColumn':this[_0x112cc0(0x105)],'endRow':this['_row'],'endColumn':this[_0x112cc0(0x105)],'actualRow':this[_0x112cc0(0xdf)],'actualColumn':this[_0x112cc0(0x105)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x10fd97['syncExecuteCommand'](_0x36a5cd['id'],_0x305dfe),this[_0x112cc0(0xdf)]=_0x225ec4[0x0][_0x112cc0(0x108)],this['_col']=_0x225ec4[0x0]['startColumn'],this;}['removeSparklineGroup'](){const _0x3dfaa1=_0x16b416,_0x3e3ac6=this['_injector'][_0x3dfaa1(0x100)](_0x57f900),_0x35c9ce={'isSingle':!0x1,'ranges':[{'startRow':this['_row'],'startColumn':this[_0x3dfaa1(0x105)],'endRow':this[_0x3dfaa1(0xdf)],'endColumn':this[_0x3dfaa1(0x105)]}]};_0x3e3ac6[_0x3dfaa1(0xef)](_0x276281['id'],_0x35c9ce);}['setConfig'](_0x1995af){const _0x33b4f1=_0x16b416,_0x5d8a60=this[_0x33b4f1(0xff)][_0x33b4f1(0x100)](_0x5433f1)[_0x33b4f1(0x110)](this[_0x33b4f1(0xf9)],this['_subUnitId'],this[_0x33b4f1(0x116)]);if(_0x5d8a60){const _0x1c2ece={'config':{'config':_0x1995af,'sparklines':_0x5d8a60['sparklines']},'isChangeDataSource':!0x1};this[_0x33b4f1(0xff)][_0x33b4f1(0x100)](_0x57f900)[_0x33b4f1(0xef)](_0x36a5cd['id'],_0x1c2ece);}return this;}};w=J([K(0x5,_0x1a8512(_0x106248))],w);class L extends _0xb2993d{['addSparkline'](_0xb32717,_0x1bc181,_0x3f9985){const _0x159a04=_0x16b416;if(this[_0x159a04(0x10d)][_0x159a04(0xef)](_0x47ef97['id'],{'sourceRanges':_0xb32717,'targetRanges':_0x1bc181,'targetInfo':{'unitId':this[_0x159a04(0xed)][_0x159a04(0x10c)](),'subUnitId':this[_0x159a04(0xf1)][_0x159a04(0x106)]()},'config':{'type':_0x3f9985}})){const {startRow:_0x2482a8,startColumn:_0x15b17d}=_0x1bc181[0x0];return this['getSparklineByCell'](_0x2482a8,_0x15b17d);}}['getAllSubSparkline'](){const _0x2f7b1d=_0x16b416;return this['_injector'][_0x2f7b1d(0x100)](_0x5433f1)[_0x2f7b1d(0xe6)](this[_0x2f7b1d(0xed)][_0x2f7b1d(0x10c)](),this['_worksheet'][_0x2f7b1d(0x106)]());}[_0x16b416(0x118)](_0x2a9384){const _0x83439f=_0x16b416,_0x4ef73c=this[_0x83439f(0xff)]['get'](_0x5433f1);let _0x313d41;for(let _0x2d7ab4=0x0;_0x2d7ab4<_0x2a9384[_0x83439f(0x111)];_0x2d7ab4++){const _0x446c6b=_0x2a9384[_0x2d7ab4],{startRow:_0x445f88,endRow:_0x42c289,startColumn:_0xfa7a55,endColumn:_0x28c96b}=_0x446c6b;for(let _0x25500c=_0x445f88;_0x25500c<=_0x42c289;_0x25500c++)for(let _0x17a656=_0xfa7a55;_0x17a656<=_0x28c96b;_0x17a656++){const _0x261780=_0x4ef73c[_0x83439f(0xf5)](this['_workbook'][_0x83439f(0x10c)](),this[_0x83439f(0xf1)][_0x83439f(0x106)](),_0x25500c,_0x17a656);if(_0x261780){const _0x53b779=_0x4ef73c['getSparklineById'](this[_0x83439f(0xed)][_0x83439f(0x10c)](),this['_worksheet'][_0x83439f(0x106)](),_0x261780);if(_0x53b779){_0x313d41=_0x2f11bc[_0x83439f(0xe9)](_0x53b779);break;}}}}_0x313d41&&this[_0x83439f(0x10d)][_0x83439f(0xf8)](_0x36a5cd['id'],{'ranges':_0x2a9384,'combine':!0x0,'config':_0x313d41,'isChangeDataSource':!0x1});}[_0x16b416(0x112)](_0x575314){const _0x92212f=_0x16b416,_0x26c948=this[_0x92212f(0xff)]['get'](_0x5433f1);let _0x295e1a;for(let _0xd19051=0x0;_0xd19051<_0x575314[_0x92212f(0x111)];_0xd19051++){const _0x569574=_0x575314[_0xd19051],{startRow:_0x58a681,endRow:_0x302e86,startColumn:_0x3941c0,endColumn:_0x5224e4}=_0x569574;for(let _0x390e4f=_0x58a681;_0x390e4f<=_0x302e86;_0x390e4f++)for(let _0x199b81=_0x3941c0;_0x199b81<=_0x5224e4;_0x199b81++){const _0x2c415a=_0x26c948['getSparkline'](this['_workbook'][_0x92212f(0x10c)](),this[_0x92212f(0xf1)][_0x92212f(0x106)](),_0x390e4f,_0x199b81);if(_0x2c415a){const _0x5f2397=_0x26c948['getSparklineById'](this[_0x92212f(0xed)][_0x92212f(0x10c)](),this[_0x92212f(0xf1)][_0x92212f(0x106)](),_0x2c415a);if(_0x5f2397){_0x295e1a=_0x2f11bc['deepClone'](_0x5f2397);break;}}}}_0x295e1a||this[_0x92212f(0x10d)][_0x92212f(0xf8)](_0x36a5cd['id'],{'ranges':_0x575314,'unCombine':!0x0,'config':_0x295e1a,'isChangeDataSource':!0x1});}[_0x16b416(0xfd)](_0x5ad379,_0x298b35){const _0x44e8c4=_0x16b416,_0x4f0f67=this['_injector'][_0x44e8c4(0x100)](_0x5433f1),_0x1f9dd7=this[_0x44e8c4(0xed)][_0x44e8c4(0x10c)](),_0x414b4c=this[_0x44e8c4(0xf1)]['getSheetId'](),_0x4a0c83=_0x4f0f67['getSparkline'](_0x1f9dd7,_0x414b4c,_0x5ad379,_0x298b35);if(_0x4a0c83)return this[_0x44e8c4(0xff)][_0x44e8c4(0x117)](C,_0x1f9dd7,_0x414b4c,_0x4a0c83,_0x5ad379,_0x298b35);}[_0x16b416(0x101)](_0x3ef829,_0x33fcc5){const _0x531290=_0x16b416,_0x1aa7cb=this[_0x531290(0xff)][_0x531290(0x100)](_0x5433f1),_0x44dd9e=this['_workbook'][_0x531290(0x10c)](),_0x2773f1=this[_0x531290(0xf1)][_0x531290(0x106)](),_0x172043=_0x1aa7cb['getSparkline'](_0x44dd9e,_0x2773f1,_0x3ef829,_0x33fcc5);if(_0x172043)return this[_0x531290(0xff)][_0x531290(0x117)](w,_0x44dd9e,_0x2773f1,_0x172043,_0x3ef829,_0x33fcc5);}}_0xb2993d['extend'](L);class Q extends _0x371748{get[_0x16b416(0xe1)](){return _0x2ebc54;}}_0x371748[_0x16b416(0xde)](Q);class X extends _0x52547b{get[_0x16b416(0xe8)](){const _0x33a0b3=_0x16b416;return _0x33a0b3(0xe8);}}_0x52547b[_0x16b416(0xde)](X);class Y extends _0x3d0b10{[_0x16b416(0xfc)](_0x1659fe){const _0x32cc09=_0x16b416,_0x22fa72=_0x1659fe[_0x32cc09(0x100)](_0x57f900);this['registerEventHandler'](this[_0x32cc09(0x10a)][_0x32cc09(0xe8)],()=>_0x22fa72[_0x32cc09(0xf4)](_0x156a8a=>{const _0x39e609=_0x32cc09;var _0x7233e,_0x577ae3;if(_0x156a8a['id']===_0x36a5cd['id']){const _0x130c66=_0x156a8a[_0x39e609(0xf2)];if(!_0x130c66[_0x39e609(0x104)]){const _0x32d619=this[_0x39e609(0xe0)](),_0xe158ad=_0x32d619==null?void 0x0:_0x32d619[_0x39e609(0x102)]();if(!_0x32d619||!_0xe158ad)return;const _0xe6e8e4=_0x32d619['getId'](),_0x1a79e9=_0xe158ad['getSheetId'](),_0x3b2483=this[_0x39e609(0xff)]['get'](_0x2f0e71),_0x5208a9=this[_0x39e609(0xff)][_0x39e609(0x100)](_0x5433f1),_0x4b7c10=(_0x7233e=_0x130c66==null?void 0x0:_0x130c66[_0x39e609(0x113)])!=null?_0x7233e:_0x3b2483[_0x39e609(0xf7)]()[_0x39e609(0xea)](_0x33df2d=>_0x33df2d[_0x39e609(0xec)]),_0x3572f3=(_0x577ae3=_0x5208a9[_0x39e609(0xfe)]()['sparklineAnchorMap'][_0x39e609(0x100)](_0xe6e8e4))==null?void 0x0:_0x577ae3[_0x39e609(0x100)](_0x1a79e9),_0x222445=new Set();_0x4b7c10[_0x39e609(0xe5)](_0x4fb6d0=>{const _0x54a804=_0x39e609;var _0xd55ece;const {startRow:_0x25cd71,endRow:_0x4d67ef,startColumn:_0x1348cb,endColumn:_0x1d8a03}=_0x4fb6d0;for(let _0x2f582=_0x25cd71;_0x2f582<=_0x4d67ef;_0x2f582++)for(let _0x4baaba=_0x1348cb;_0x4baaba<=_0x1d8a03;_0x4baaba++){const _0x5c7066=(_0xd55ece=_0x3572f3==null?void 0x0:_0x3572f3['matrix']['getValue'](_0x2f582,_0x4baaba))==null?void 0x0:_0xd55ece[_0x54a804(0xeb)];_0x5c7066&&_0x222445['add'](_0x5c7066);}});const _0x1b3594=Array['from'](_0x222445)[_0x39e609(0xea)](_0x35dfc8=>_0x5208a9[_0x39e609(0x110)](_0xe6e8e4,_0x1a79e9,_0x35dfc8))[_0x39e609(0x10e)](_0x15c271=>!!_0x15c271),_0x1f060d={'workbook':_0x32d619,'worksheet':_0xe158ad,'sparklines':_0x1b3594};if(this[_0x39e609(0x114)](this[_0x39e609(0x10a)][_0x39e609(0xe8)],_0x1f060d),_0x1f060d[_0x39e609(0xe4)])throw new Error(_0x39e609(0xdd));}}}));}}_0x3d0b10[_0x16b416(0xde)](Y);export{C as FSparkline,w as FSparklineGroup};