@univerjs-pro/sheets-sparkline 0.12.1 → 0.12.2-nightly.202511241159

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 _0x58b8b9=_0x1eaa;(function(_0xe16f2a,_0x4cf253){const _0x125683=_0x1eaa,_0x28c08c=_0xe16f2a();while(!![]){try{const _0x4b97b0=-parseInt(_0x125683(0xf4))/0x1*(-parseInt(_0x125683(0xdb))/0x2)+-parseInt(_0x125683(0x112))/0x3*(-parseInt(_0x125683(0xa9))/0x4)+parseInt(_0x125683(0xe6))/0x5+-parseInt(_0x125683(0xfa))/0x6+parseInt(_0x125683(0x74))/0x7*(parseInt(_0x125683(0xf7))/0x8)+parseInt(_0x125683(0xaf))/0x9*(parseInt(_0x125683(0xf5))/0xa)+parseInt(_0x125683(0xac))/0xb*(-parseInt(_0x125683(0x111))/0xc);if(_0x4b97b0===_0x4cf253)break;else _0x28c08c['push'](_0x28c08c['shift']());}catch(_0x56ef8d){_0x28c08c['push'](_0x28c08c['shift']());}}}(_0x3d75,0x9d21d));var qe=Object[_0x58b8b9(0xee)],Qe=(_0x3cc349,_0x44a496,_0x59dd11)=>_0x44a496 in _0x3cc349?qe(_0x3cc349,_0x44a496,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59dd11}):_0x3cc349[_0x44a496]=_0x59dd11,se=(_0x563d5b,_0x1b6e54,_0x33e1b0)=>Qe(_0x563d5b,typeof _0x1b6e54!=_0x58b8b9(0xb5)?_0x1b6e54+'':_0x1b6e54,_0x33e1b0);import{ObjectMatrix as _0x4c97f1,Inject as _0x2cf83a,IUniverInstanceService as _0x3eea3e,Disposable as _0x2406d1,isValidRange as _0x4a6da3,CellValueType as _0x5e86b2,ColorKit as _0x1c58bf,CommandType as _0x5d2db6,Range as _0x5508db,IUndoRedoService as _0x4e8b3d,generateRandomId as _0x55bbe9,ICommandService as _0x4c768d,Tools as _0x443595,sequenceExecute as _0x59dc33,Rectangle as _0x2e01c8,cellToRange as _0x3a0057,DisposableCollection as _0x56e47d,RANGE_TYPE as _0x8f2544,UniverInstanceType as _0x66a4f2,IResourceManagerService as _0x460bba,DependentOn as _0x4deddf,Injector as _0x35a4a6,Plugin as _0x5f0837,touchDependencies as _0x1dbe46}from'@univerjs/core';import{getSheetCommandTarget as _0x3bb214,SheetsSelectionsService as _0x523dca,SheetInterceptorService as _0x5e9342,ClearSelectionAllCommand as _0xaa3274,CopySheetCommand as _0x16d6ef,IExclusiveRangeService as _0x371fe4,SetRangeValuesMutation as _0x1aca92,ReorderRangeMutation as _0x42e3f3,SetRowHiddenMutation as _0x2c2988,SetColHiddenMutation as _0x5357c6,SetRowVisibleMutation as _0x32bfb9,SetColVisibleMutation as _0x239155,AddWorksheetMergeCommand as _0x579ab8,RefRangeService as _0x295a71,SetWorksheetActivateCommand as _0x4db921,RemoveRowCommand as _0x5c5af8,RemoveColCommand as _0x4e4387,adjustRangeOnMutation as _0x390bae,RemoveRowMutation as _0x1d50e2,RemoveColMutation as _0x434f82,InsertColMutation as _0x10e8ac,InsertRowMutation as _0x479c63,MoveColsMutation as _0x393e23,MoveRowsMutation as _0x5daf06,MoveRangeMutation as _0xced34e}from'@univerjs/sheets';import{Subject as _0x20287c}from'rxjs';import{UniverLicensePlugin as _0x49b819}from'@univerjs-pro/license';function _0x1eaa(_0x3d7877,_0x333056){const _0x3d751c=_0x3d75();return _0x1eaa=function(_0x1eaae6,_0x1be472){_0x1eaae6=_0x1eaae6-0x6e;let _0x5e70bd=_0x3d751c[_0x1eaae6];return _0x5e70bd;},_0x1eaa(_0x3d7877,_0x333056);}function Fe(_0x2d96fa,_0x41d076){const _0x42f8ee=_0x58b8b9,_0x20e3d7=new _0x4c97f1(),_0x36f702=[],_0x338cb1=_0x2d96fa[_0x42f8ee(0x71)]>0x1;let _0x565e56=0x0,_0x5dc7f6=0x0;for(const _0x4f0514 of _0x2d96fa)_0x565e56+=_0x4f0514['endRow']-_0x4f0514[_0x42f8ee(0x9e)]+0x1,_0x5dc7f6+=_0x4f0514[_0x42f8ee(0x97)]-_0x4f0514['startColumn']+0x1;for(const _0x25ec00 of _0x41d076)for(let _0x3ad064=_0x25ec00['startRow'];_0x3ad064<=_0x25ec00[_0x42f8ee(0xa5)];_0x3ad064++)for(let _0x4f9f4c=_0x25ec00[_0x42f8ee(0xc3)];_0x4f9f4c<=_0x25ec00['endColumn'];_0x4f9f4c++)_0x36f702[_0x42f8ee(0xea)]({'row':_0x3ad064,'column':_0x4f9f4c});if(_0x36f702['length']===_0x565e56)_0x338cb1?_0x36f702['forEach']((_0x3db7ac,_0x3407ab)=>{const _0xe79e55=_0x42f8ee,_0x4211e6=_0x2d96fa[_0x3407ab],_0x5bd71f={'startRow':_0x4211e6['startRow'],'startColumn':_0x4211e6[_0xe79e55(0xc3)],'endRow':_0x4211e6[_0xe79e55(0x9e)],'endColumn':_0x4211e6[_0xe79e55(0x97)]};_0x20e3d7['setValue'](_0x3db7ac[_0xe79e55(0x10e)],_0x3db7ac['column'],_0x5bd71f);}):_0x36f702[_0x42f8ee(0xc2)]((_0xee5bb1,_0x2f5704)=>{const _0x29caa2=_0x42f8ee,_0x4c57e1=_0x2d96fa[0x0],_0x4e5cc4={'startRow':_0x4c57e1[_0x29caa2(0x9e)]+_0x2f5704,'startColumn':_0x4c57e1[_0x29caa2(0xc3)],'endRow':_0x4c57e1['startRow']+_0x2f5704,'endColumn':_0x4c57e1[_0x29caa2(0x97)]};_0x20e3d7[_0x29caa2(0x8a)](_0xee5bb1[_0x29caa2(0x10e)],_0xee5bb1['column'],_0x4e5cc4);});else{if(_0x36f702[_0x42f8ee(0x71)]===_0x5dc7f6)_0x338cb1?_0x36f702[_0x42f8ee(0xc2)]((_0x5e9489,_0x4b6aff)=>{const _0x3c7ac9=_0x42f8ee,_0x380fb1=_0x2d96fa[_0x4b6aff],_0x2b6503={'startRow':_0x380fb1[_0x3c7ac9(0x9e)],'startColumn':_0x380fb1[_0x3c7ac9(0xc3)],'endRow':_0x380fb1[_0x3c7ac9(0xa5)],'endColumn':_0x380fb1[_0x3c7ac9(0xc3)]};_0x20e3d7['setValue'](_0x5e9489[_0x3c7ac9(0x10e)],_0x5e9489[_0x3c7ac9(0x6f)],_0x2b6503);}):_0x36f702[_0x42f8ee(0xc2)]((_0xa9a836,_0x59a568)=>{const _0x1e06e5=_0x42f8ee,_0x35d73b=_0x2d96fa[0x0],_0x21796b={'startRow':_0x35d73b[_0x1e06e5(0x9e)],'startColumn':_0x35d73b[_0x1e06e5(0xc3)]+_0x59a568,'endRow':_0x35d73b[_0x1e06e5(0xa5)],'endColumn':_0x35d73b[_0x1e06e5(0xc3)]+_0x59a568};_0x20e3d7[_0x1e06e5(0x8a)](_0xa9a836[_0x1e06e5(0x10e)],_0xa9a836[_0x1e06e5(0x6f)],_0x21796b);});else{if(_0x36f702[_0x42f8ee(0x71)]===_0x2d96fa['length'])_0x2d96fa[_0x42f8ee(0xab)](_0x22a0c3=>!(_0x22a0c3[_0x42f8ee(0x9e)]!==_0x22a0c3[_0x42f8ee(0xa5)]&&_0x22a0c3['startColumn']!==_0x22a0c3[_0x42f8ee(0x97)]))&&_0x36f702[_0x42f8ee(0xc2)]((_0x2e256d,_0x5e347e)=>{const _0x5bdef7=_0x42f8ee,_0x529923=_0x2d96fa[_0x5e347e];_0x20e3d7['setValue'](_0x2e256d[_0x5bdef7(0x10e)],_0x2e256d[_0x5bdef7(0x6f)],_0x529923);});else throw new Error(_0x42f8ee(0x96));}}return _0x20e3d7;}const Ke=_0x58b8b9(0x89),Le={'standard':[_0x58b8b9(0xec),'rgb(236,100,169)'],'specialty':[_0x58b8b9(0x100),'rgb(30,177,189)'],'distinctive':[_0x58b8b9(0xef),_0x58b8b9(0x83)],'soft':['rgb(80,102,248)',_0x58b8b9(0xc5)],'fresh':[_0x58b8b9(0x107),'rgb(248,190,21)']},on=['highPoint',_0x58b8b9(0x98),_0x58b8b9(0x7f),_0x58b8b9(0x11a),_0x58b8b9(0x128),'markersPoint'];var Xe=(_0x5bd24b=>(_0x5bd24b['STANDARD']=_0x58b8b9(0x102),_0x5bd24b['SPECIALTY']=_0x58b8b9(0x70),_0x5bd24b[_0x58b8b9(0xa2)]=_0x58b8b9(0x9c),_0x5bd24b[_0x58b8b9(0xe2)]='soft',_0x5bd24b[_0x58b8b9(0xb4)]=_0x58b8b9(0x99),_0x5bd24b[_0x58b8b9(0xcc)]=_0x58b8b9(0xf0),_0x5bd24b))(Xe||{}),Dt=(_0x3be4a2=>(_0x3be4a2[_0x3be4a2[_0x58b8b9(0xb3)]=0x1]=_0x58b8b9(0xb3),_0x3be4a2[_0x3be4a2['BAR_CHART']=0x2]=_0x58b8b9(0x129),_0x3be4a2[_0x3be4a2[_0x58b8b9(0xfd)]=0x3]=_0x58b8b9(0xfd),_0x3be4a2[_0x3be4a2['PIE_CHART']=0x4]='PIE_CHART',_0x3be4a2))(Dt||{}),J=(_0x3392ea=>(_0x3392ea[_0x58b8b9(0x11c)]=_0x58b8b9(0xad),_0x3392ea[_0x58b8b9(0xa0)]=_0x58b8b9(0x7a),_0x3392ea[_0x58b8b9(0x8d)]='connect_with_line',_0x3392ea))(J||{}),De=(_0x1389a2=>(_0x1389a2[_0x1389a2['SELF_EXTREMUM']=0x1]=_0x58b8b9(0xca),_0x1389a2[_0x1389a2[_0x58b8b9(0xae)]=0x2]=_0x58b8b9(0xae),_0x1389a2[_0x1389a2[_0x58b8b9(0xd1)]=0x3]=_0x58b8b9(0xd1),_0x1389a2))(De||{}),Et=Object[_0x58b8b9(0xb6)],Vt=(_0x33830e,_0x4759a8,_0x192807,_0xc51467)=>{for(var _0x5022e4=_0xc51467>0x1?void 0x0:_0xc51467?Et(_0x4759a8,_0x192807):_0x4759a8,_0x57f7ea=_0x33830e['length']-0x1,_0x58e9f5;_0x57f7ea>=0x0;_0x57f7ea--)(_0x58e9f5=_0x33830e[_0x57f7ea])&&(_0x5022e4=_0x58e9f5(_0x5022e4)||_0x5022e4);return _0x5022e4;},yt=(_0x1cff9b,_0x40e01d)=>(_0x2efb6e,_0x326e38)=>_0x40e01d(_0x2efb6e,_0x326e38,_0x1cff9b);let x=class extends _0x2406d1{constructor(_0x21c357){const _0x34f410=_0x58b8b9;super(),se(this,_0x34f410(0xb0),new Map()),se(this,_0x34f410(0xa8),new Map()),se(this,_0x34f410(0x76),new _0x20287c()),se(this,'updateConfig$',this['_updateConfig$'][_0x34f410(0x86)]()),this[_0x34f410(0xe5)]=_0x21c357;}[_0x58b8b9(0xe7)](_0x4bbc48,_0x2d36bc){const _0x3675e2=_0x58b8b9;let _0x545e21=this[_0x3675e2(0xb0)][_0x3675e2(0x11e)](_0x4bbc48);_0x545e21||(_0x545e21=new Map(),this['_sparklineModel'][_0x3675e2(0x10a)](_0x4bbc48,_0x545e21));let _0x8bf9=_0x545e21[_0x3675e2(0x11e)](_0x2d36bc);return _0x8bf9||(_0x8bf9=new Map(),_0x545e21[_0x3675e2(0x10a)](_0x2d36bc,_0x8bf9)),_0x8bf9;}['_ensureAnchorMatrix'](_0x2e7e34,_0x3743fa){const _0x28d512=_0x58b8b9;let _0x1591e0=this[_0x28d512(0xa8)][_0x28d512(0x11e)](_0x2e7e34);_0x1591e0||(_0x1591e0=new Map(),this[_0x28d512(0xa8)]['set'](_0x2e7e34,_0x1591e0));let _0x1af4fc=_0x1591e0[_0x28d512(0x11e)](_0x3743fa);return _0x1af4fc||(_0x1af4fc={'matrix':new _0x4c97f1(),'extra':{}},_0x1591e0[_0x28d512(0x10a)](_0x3743fa,_0x1af4fc)),_0x1af4fc;}['updateSparklineExtraNum'](_0x54d509,_0x16c9d3,_0x36ccf5,_0xad1246=_0x58b8b9(0x10a)){const _0xff5b8f=_0x58b8b9;var _0x1d44c5,_0x414dcf,_0xf4ca6f,_0x55bda0,_0x5ce0fd,_0x140da9,_0x4d6340,_0x18859d,_0x6afb19,_0x4956be,_0x32c778,_0x40ccf2,_0x2cbea1;const _0x32bef4=(_0x414dcf=(_0x1d44c5=this[_0xff5b8f(0xb0)]['get'](_0x54d509))==null?void 0x0:_0x1d44c5[_0xff5b8f(0x11e)](_0x16c9d3))==null?void 0x0:_0x414dcf[_0xff5b8f(0x11e)](_0x36ccf5);if(!_0x32bef4)return;const _0x3da3b9=_0x3bb214(this[_0xff5b8f(0xe5)],{'unitId':_0x54d509,'subUnitId':_0x16c9d3});if(!_0x3da3b9)return;const _0x12bbbf=this['_ensureAnchorMatrix'](_0x54d509,_0x16c9d3),{extra:_0x5853c5,matrix:_0x1d88f1}=_0x12bbbf,{worksheet:_0x34a4ff}=_0x3da3b9;let _0x3da8fa=Number[_0xff5b8f(0xc0)],_0x4552ca=Number[_0xff5b8f(0xda)];const _0x4022f2=(_0xf4ca6f=_0x32bef4[_0xff5b8f(0x10c)]['containHiddenCells'])!=null?_0xf4ca6f:!0x1;_0x32bef4[_0xff5b8f(0xb9)][_0xff5b8f(0xc4)]((_0x3d44ef,_0x3e06fd,_0x5dae51)=>{const _0x2610ae=_0xff5b8f;var _0x48fcde,_0x1e996a,_0x2c5c57;const _0x2810c3=_0x5dae51;let _0x56ce5f=Number[_0x2610ae(0xc0)],_0xdcc8f7=Number['MAX_SAFE_INTEGER'],_0x3cf0be=0x0,_0x37e672=0x0;const _0x44cf98=[];if(!_0x4a6da3(_0x2810c3))_0x1d88f1[_0x2610ae(0x8a)](_0x3d44ef,_0x3e06fd,{'groupId':_0x36ccf5,'data':[],'max':_0x56ce5f,'min':_0xdcc8f7,'highIndex':_0x3cf0be,'lowIndex':_0x37e672,'negativeIndexes':_0x44cf98});else{const _0x4a4966=[];for(let _0x7e49d3=_0x2810c3['startRow'];_0x7e49d3<=_0x2810c3[_0x2610ae(0xa5)];_0x7e49d3++){for(let _0x263b43=_0x2810c3['startColumn'];_0x263b43<=_0x2810c3[_0x2610ae(0x97)];_0x263b43++){const _0x4d502a=_0x34a4ff[_0x2610ae(0x8b)](_0x7e49d3),_0x1013be=_0x34a4ff[_0x2610ae(0x78)](_0x263b43);if(!_0x4022f2&&(!_0x4d502a||!_0x1013be))continue;let _0x55bbfa=0x0;const _0x26967c=((_0x48fcde=_0x34a4ff[_0x2610ae(0x92)](_0x7e49d3,_0x263b43))==null?void 0x0:_0x48fcde['v'])!==void 0x0?_0x34a4ff[_0x2610ae(0x92)](_0x7e49d3,_0x263b43):_0x34a4ff['getCell'](_0x7e49d3,_0x263b43);if(!_0x26967c||_0x26967c['v']===void 0x0||_0x26967c['v']===null){const _0x5e5990=(_0x1e996a=_0x32bef4[_0x2610ae(0x10c)][_0x2610ae(0xbd)])!=null?_0x1e996a:J[_0x2610ae(0x11c)];_0x5e5990===J[_0x2610ae(0xa0)]?_0x55bbfa=0x0:_0x5e5990===J['SPACING']?_0x55bbfa=_0x2610ae(0xd9):_0x5e5990===J['CONNECT_WITH_LINE']&&(_0x55bbfa=_0x2610ae(0x94));}else{if(_0x26967c['t']===_0x5e86b2[_0x2610ae(0x126)]||_0x26967c['t']===_0x5e86b2[_0x2610ae(0xa6)]){const _0x34e297=(_0x2c5c57=_0x32bef4[_0x2610ae(0x10c)][_0x2610ae(0xcf)])!=null?_0x2c5c57:J[_0x2610ae(0x11c)];_0x34e297===J[_0x2610ae(0xa0)]?_0x55bbfa=0x0:_0x34e297===J[_0x2610ae(0x11c)]?_0x55bbfa=_0x2610ae(0xd9):_0x34e297===J[_0x2610ae(0x8d)]&&(_0x55bbfa=_0x2610ae(0x94));}else _0x26967c['t']===_0x5e86b2['BOOLEAN']?_0x55bbfa=_0x26967c['v']?0x1:0x0:_0x26967c['t']===_0x5e86b2[_0x2610ae(0xbe)]?_0x55bbfa=Number(_0x26967c['v']):_0x55bbfa=_0x26967c['v'];}if(_0x4a4966[_0x2610ae(0xea)](_0x55bbfa),typeof _0x55bbfa=='number'){_0x56ce5f=Math[_0x2610ae(0xfe)](_0x56ce5f,_0x55bbfa),_0x3da8fa=Math['max'](_0x3da8fa,_0x55bbfa),_0x4552ca=Math[_0x2610ae(0x110)](_0x4552ca,_0x55bbfa),_0xdcc8f7=Math['min'](_0xdcc8f7,_0x55bbfa);const _0x1cc481=typeof _0x4a4966[_0x3cf0be]==_0x2610ae(0x104)?Number(_0x4a4966[_0x3cf0be]):Number['MIN_SAFE_INTEGER'];_0x55bbfa>_0x1cc481&&(_0x3cf0be=_0x4a4966['length']-0x1);const _0xcfb101=typeof _0x4a4966[_0x37e672]==_0x2610ae(0x104)?Number(_0x4a4966[_0x37e672]):Number['MAX_SAFE_INTEGER'];_0x55bbfa<_0xcfb101&&(_0x37e672=_0x4a4966[_0x2610ae(0x71)]-0x1),_0x55bbfa<0x0&&_0x44cf98[_0x2610ae(0xea)](_0x4a4966[_0x2610ae(0x71)]-0x1);}}_0x1d88f1['setValue'](_0x3d44ef,_0x3e06fd,{'groupId':_0x36ccf5,'data':_0x4a4966,'max':_0x56ce5f,'min':_0xdcc8f7,'highIndex':_0x3cf0be,'lowIndex':_0x37e672,'negativeIndexes':_0x44cf98});}}});let _0x5c5ce4=_0x3da8fa;((_0x55bda0=_0x32bef4[_0xff5b8f(0x10c)][_0xff5b8f(0xa4)])==null?void 0x0:_0x55bda0[_0xff5b8f(0xe1)])===De['CUSTOM_EXTREMUM']&&(_0x5c5ce4=(_0x140da9=(_0x5ce0fd=_0x32bef4[_0xff5b8f(0x10c)][_0xff5b8f(0xa4)])==null?void 0x0:_0x5ce0fd['value'])!=null?_0x140da9:_0x3da8fa);let _0x498b49=_0x4552ca;((_0x4d6340=_0x32bef4['config']['extremumMin'])==null?void 0x0:_0x4d6340[_0xff5b8f(0xe1)])===De['CUSTOM_EXTREMUM']&&(_0x498b49=(_0x6afb19=(_0x18859d=_0x32bef4[_0xff5b8f(0x10c)][_0xff5b8f(0xcd)])==null?void 0x0:_0x18859d[_0xff5b8f(0xbb)])!=null?_0x6afb19:_0x4552ca);const _0x1404ff=(_0x4956be=_0x32bef4['config'][_0xff5b8f(0x10b)])!=null?_0x4956be:Xe[_0xff5b8f(0xc1)],_0x41b73c=(_0x2cbea1=(_0x40ccf2=_0x32bef4['config'][_0xff5b8f(0xb8)])!=null?_0x40ccf2:(_0x32c778=Le[_0x1404ff])==null?void 0x0:_0x32c778[0x0])!=null?_0x2cbea1:Le[_0xff5b8f(0x102)][0x0],_0x5a8b9d=new _0x1c58bf(_0x41b73c),_0x2ca592=_0x5a8b9d[_0xff5b8f(0xd3)](0.2)[_0xff5b8f(0x9d)](),_0x4fcc37=_0x5a8b9d[_0xff5b8f(0xd3)](0.05)['toRgbString']();_0x5853c5[_0x36ccf5]={'groupMax':_0x3da8fa,'groupMin':_0x4552ca,'showMax':_0x5c5ce4,'showMin':_0x498b49,'startGradient':_0x2ca592,'endGradient':_0x4fcc37},this[_0xff5b8f(0x76)][_0xff5b8f(0xbc)]({'unitId':_0x54d509,'subUnitId':_0x16c9d3,'groupId':_0x36ccf5,'config':_0x32bef4,'type':_0xad1246});}[_0x58b8b9(0xeb)](_0x3ca565,_0x275bd3,_0x1b9684,_0x1241f6){const _0x54ecbc=_0x58b8b9;this[_0x54ecbc(0xe7)](_0x3ca565,_0x275bd3)[_0x54ecbc(0x10a)](_0x1b9684,_0x1241f6),this[_0x54ecbc(0x77)](_0x3ca565,_0x275bd3,_0x1b9684,_0x54ecbc(0xc9));}[_0x58b8b9(0x121)](_0x5bc446,_0x10bf10,_0x48e4df,_0x1ec330){const _0x1fca91=_0x58b8b9;var _0x3f9a86;const _0x53ddbd=(_0x3f9a86=this[_0x1fca91(0xb0)][_0x1fca91(0x11e)](_0x5bc446))==null?void 0x0:_0x3f9a86[_0x1fca91(0x11e)](_0x10bf10);_0x48e4df['forEach'](_0x2fddf5=>{const _0x102488=_0x1fca91;_0x53ddbd!=null&&_0x53ddbd[_0x102488(0x6e)](_0x2fddf5)&&(_0x53ddbd[_0x102488(0x10a)](_0x2fddf5,_0x1ec330),this['updateSparklineExtraNum'](_0x5bc446,_0x10bf10,_0x2fddf5));});}[_0x58b8b9(0xe0)](_0x26f4a1,_0x1fd172,_0x5316f4){const _0x1560f5=_0x58b8b9;var _0x5c0090,_0x11b18d;const _0x1562af=this['_sparklineModel'][_0x1560f5(0x11e)](_0x26f4a1);if(_0x1562af){const _0x201ea5=_0x1562af['get'](_0x1fd172);if(_0x201ea5){_0x201ea5[_0x1560f5(0x7d)](_0x5316f4);const _0x5d56c8=(_0x5c0090=this[_0x1560f5(0xa8)][_0x1560f5(0x11e)](_0x26f4a1))==null?void 0x0:_0x5c0090[_0x1560f5(0x11e)](_0x1fd172);(_0x11b18d=_0x5d56c8==null?void 0x0:_0x5d56c8[_0x1560f5(0xe8)])==null||_0x11b18d[_0x1560f5(0xc4)]((_0x3456b3,_0x3537ac,_0x59899d)=>{const _0x2d0979=_0x1560f5;(_0x59899d==null?void 0x0:_0x59899d['groupId'])===_0x5316f4&&(_0x5d56c8==null||_0x5d56c8[_0x2d0979(0xe8)][_0x2d0979(0xdf)](_0x3456b3,_0x3537ac));}),this[_0x1560f5(0x76)][_0x1560f5(0xbc)]({'unitId':_0x26f4a1,'subUnitId':_0x1fd172,'groupId':_0x5316f4,'type':_0x1560f5(0xf3)});}}}[_0x58b8b9(0xf1)](_0x13593b,_0x1697d9,_0x3bbe5a,_0x1f138f){const _0x47003d=_0x58b8b9;var _0x52a17,_0x5a5564,_0xe01d3b,_0x49adf2;const _0x49be8f=(_0x52a17=this['_sparklineAnchorMap'][_0x47003d(0x11e)](_0x13593b))==null?void 0x0:_0x52a17['get'](_0x1697d9),_0x210283=_0x49be8f==null?void 0x0:_0x49be8f['matrix'][_0x47003d(0xd8)](_0x3bbe5a,_0x1f138f);if(_0x210283){const {groupId:_0xf97fb1}=_0x210283,_0x498268=(_0x5a5564=this[_0x47003d(0xb0)]['get'](_0x13593b))==null?void 0x0:_0x5a5564[_0x47003d(0x11e)](_0x1697d9);(_0xe01d3b=_0x498268==null?void 0x0:_0x498268[_0x47003d(0x11e)](_0xf97fb1))==null||_0xe01d3b[_0x47003d(0xb9)][_0x47003d(0xdf)](_0x3bbe5a,_0x1f138f),(_0x49adf2=_0x498268==null?void 0x0:_0x498268[_0x47003d(0x11e)](_0xf97fb1))!=null&&_0x49adf2['sparklines']['hasValue']()||_0x498268==null||_0x498268[_0x47003d(0x7d)](_0xf97fb1),_0x49be8f==null||_0x49be8f['matrix'][_0x47003d(0xdf)](_0x3bbe5a,_0x1f138f),this[_0x47003d(0x76)][_0x47003d(0xbc)]({'unitId':_0x13593b,'subUnitId':_0x1697d9,'groupId':_0xf97fb1,'type':_0x47003d(0xf3)});}}['clearSparklineCache'](_0x550c94,_0x3c4aa6,_0x2fa88c){const _0x4e3160=_0x58b8b9;var _0x3696fe,_0x218514,_0x1802da,_0x39cb39;const _0x366616=(_0x1802da=(_0x218514=(_0x3696fe=this['_sparklineModel']['get'](_0x550c94))==null?void 0x0:_0x3696fe['get'](_0x3c4aa6))==null?void 0x0:_0x218514[_0x4e3160(0x11e)](_0x2fa88c))==null?void 0x0:_0x1802da[_0x4e3160(0xb9)],_0x437064=(_0x39cb39=this[_0x4e3160(0xa8)][_0x4e3160(0x11e)](_0x550c94))==null?void 0x0:_0x39cb39[_0x4e3160(0x11e)](_0x3c4aa6);if(_0x366616&&_0x437064){const {matrix:_0x554787,extra:_0x301bb5}=_0x437064;_0x366616[_0x4e3160(0xc4)]((_0x130c5b,_0x179829,_0x2a17a9)=>{const _0x3fb123=_0x4e3160;_0x554787[_0x3fb123(0xdf)](_0x130c5b,_0x179829);}),delete _0x301bb5[_0x2fa88c];}}[_0x58b8b9(0x72)](_0x42e9fb,_0x3eebfb){const _0xb98849=_0x58b8b9;var _0x4156b7;return(_0x4156b7=this[_0xb98849(0xb0)][_0xb98849(0x11e)](_0x42e9fb))==null?void 0x0:_0x4156b7[_0xb98849(0x11e)](_0x3eebfb);}[_0x58b8b9(0xd4)](_0x58e69b,_0x488093,_0x1ec133){const _0x5339bc=_0x58b8b9;var _0x5cc155,_0x4eeb68;return(_0x4eeb68=(_0x5cc155=this['_sparklineModel'][_0x5339bc(0x11e)](_0x58e69b))==null?void 0x0:_0x5cc155[_0x5339bc(0x11e)](_0x488093))==null?void 0x0:_0x4eeb68['get'](_0x1ec133);}[_0x58b8b9(0xff)](_0x28a90d,_0x230790,_0x316181,_0x476685){const _0x1e3781=_0x58b8b9;var _0xfe1d4,_0x3eaa3a,_0x4e4543;return(_0x4e4543=(_0x3eaa3a=(_0xfe1d4=this[_0x1e3781(0xa8)][_0x1e3781(0x11e)](_0x28a90d))==null?void 0x0:_0xfe1d4[_0x1e3781(0x11e)](_0x230790))==null?void 0x0:_0x3eaa3a['matrix'][_0x1e3781(0xd8)](_0x316181,_0x476685))==null?void 0x0:_0x4e4543[_0x1e3781(0xe9)];}['reBuildAnchorCache'](_0x21646a,_0x3793d7){var _0x11ee4e;const _0x265f87=this['_ensureAnchorMatrix'](_0x21646a,_0x3793d7);_0x265f87['matrix']['forValue']((_0x132edc,_0x2613de)=>{const _0x25b601=_0x1eaa;_0x265f87[_0x25b601(0xe8)][_0x25b601(0xdf)](_0x132edc,_0x2613de);});const _0x37cb19=(_0x11ee4e=this['_sparklineModel']['get'](_0x21646a))==null?void 0x0:_0x11ee4e['get'](_0x3793d7);if(_0x37cb19){for(const [_0x929d7c]of _0x37cb19)this['updateSparklineExtraNum'](_0x21646a,_0x3793d7,_0x929d7c);}}[_0x58b8b9(0x105)](){const _0x8b3234=_0x58b8b9;return{'sparklineModel':this[_0x8b3234(0xb0)],'sparklineAnchorMap':this[_0x8b3234(0xa8)]};}['toJSON'](_0x5ca865){const _0x40a02c=_0x58b8b9,_0x335221={};if(this['_sparklineModel'][_0x40a02c(0x6e)](_0x5ca865)){_0x335221[_0x5ca865]={};const _0x560d63=this[_0x40a02c(0xb0)][_0x40a02c(0x11e)](_0x5ca865);_0x560d63!=null&&_0x560d63[_0x40a02c(0xe4)]&&Array[_0x40a02c(0x106)](_0x560d63[_0x40a02c(0x119)]())[_0x40a02c(0xc2)](_0x4567b2=>{const _0x163276=_0x40a02c;_0x335221[_0x5ca865][_0x4567b2]={};const _0x7c2e4d=_0x560d63[_0x163276(0x11e)](_0x4567b2);_0x7c2e4d!=null&&_0x7c2e4d[_0x163276(0xe4)]&&Array[_0x163276(0x106)](_0x7c2e4d[_0x163276(0x119)]())['forEach'](_0x24843e=>{const _0x5a4cff=_0x163276,_0x2f417a=_0x7c2e4d[_0x5a4cff(0x11e)](_0x24843e);_0x2f417a&&(_0x335221[_0x5ca865][_0x4567b2][_0x24843e]={'config':_0x2f417a['config'],'sparklines':_0x2f417a[_0x5a4cff(0xb9)][_0x5a4cff(0x95)]()});});});}return _0x335221;}[_0x58b8b9(0x75)](_0x392137){const _0x543dec=_0x58b8b9;if(!_0x392137)return;Object[_0x543dec(0x119)](_0x392137)[_0x543dec(0xc2)](_0x345ea4=>{const _0x3b928e=_0x543dec,_0x351068=_0x392137[_0x345ea4];_0x351068&&Object['keys'](_0x351068)[_0x3b928e(0xc2)](_0xc2ae4f=>{const _0x34cca0=_0x3b928e,_0x1ef632=_0x351068[_0xc2ae4f];_0x1ef632&&Object[_0x34cca0(0x119)](_0x1ef632)[_0x34cca0(0xc2)](_0x3f1fc3=>{const _0x5a6cb5=_0x34cca0,_0x2420d3=_0x1ef632[_0x3f1fc3];if(_0x2420d3){const _0xb0718d={'config':_0x2420d3[_0x5a6cb5(0x10c)],'sparklines':new _0x4c97f1(_0x2420d3[_0x5a6cb5(0xb9)])};this[_0x5a6cb5(0xeb)](_0x345ea4,_0xc2ae4f,_0x3f1fc3,_0xb0718d);}});});});}[_0x58b8b9(0xdc)](_0x21a146){const _0x54fe4d=_0x58b8b9,_0x2dabd4=this['_sparklineModel'][_0x54fe4d(0x11e)](_0x21a146);if(_0x2dabd4){for(const [_0x309629]of _0x2dabd4){const _0x44b4b2=_0x2dabd4[_0x54fe4d(0x11e)](_0x309629);if(_0x44b4b2){for(const [_0x190b5f]of _0x44b4b2)this[_0x54fe4d(0xbf)](_0x21a146,_0x309629,_0x190b5f);}}this[_0x54fe4d(0xb0)][_0x54fe4d(0x7d)](_0x21a146);}}};x=Vt([yt(0x0,_0x2cf83a(_0x3eea3e))],x);const V={'id':_0x58b8b9(0xb7),'type':_0x5d2db6[_0x58b8b9(0x114)],'handler':(_0x5a943b,_0x315857)=>{const _0x3742b8=_0x58b8b9;if(!_0x315857)return!0x1;const {sparklineConfigMap:_0x59cd15,unitId:_0x2694b5,subUnitId:_0x2bf5fc}=_0x315857,_0x41ca8d=_0x5a943b['get'](x);return Object[_0x3742b8(0xc7)](_0x59cd15)['forEach'](([_0x3e6fbc,_0x2910bc])=>{const _0x2e3f25=_0x3742b8,_0x449ecf={'config':_0x2910bc[_0x2e3f25(0x10c)],'sparklines':new _0x4c97f1(_0x2910bc['sparklines'])};_0x41ca8d[_0x2e3f25(0xeb)](_0x2694b5,_0x2bf5fc,_0x3e6fbc,_0x449ecf);}),!0x0;}},y={'id':_0x58b8b9(0xe3),'type':_0x5d2db6[_0x58b8b9(0x114)],'handler':(_0x59a770,_0xa6eb68)=>{const _0x39141d=_0x58b8b9;if(!_0xa6eb68)return!0x1;const {unitId:_0x49afab,subUnitId:_0x18befd,ranges:_0x5e618c,isSingle:_0x162a27,groupIds:_0x4c12e9}=_0xa6eb68,_0x56f2c9=_0x59a770[_0x39141d(0x11e)](x);return _0x4c12e9?(_0x4c12e9['forEach'](_0x21da16=>{const _0x40d0c6=_0x39141d;_0x56f2c9[_0x40d0c6(0xe0)](_0x49afab,_0x18befd,_0x21da16);}),!0x0):_0x5e618c?(_0x5e618c[_0x39141d(0xc2)](_0x334fdb=>{const _0x38c83a=_0x39141d;_0x5508db[_0x38c83a(0x103)](_0x334fdb,(_0x132bd8,_0x272921)=>{const _0x2d15b0=_0x38c83a,_0x1d72e1=_0x56f2c9['getSparkline'](_0x49afab,_0x18befd,_0x132bd8,_0x272921);_0x1d72e1&&(_0x162a27?_0x56f2c9[_0x2d15b0(0xf1)](_0x49afab,_0x18befd,_0x132bd8,_0x272921):_0x56f2c9['removeSparkline'](_0x49afab,_0x18befd,_0x1d72e1));});}),!0x0):!0x1;}},Nt={'id':_0x58b8b9(0x73),'type':_0x5d2db6[_0x58b8b9(0x11f)],'handler':(_0x4975df,_0x2232c3)=>{const _0xc7cbd4=_0x58b8b9;if(!_0x2232c3)return!0x1;const {sourceRanges:_0x3009cc,targetRanges:_0x133649,config:_0x1373f6}=_0x2232c3,_0x3b36a2=_0x4975df[_0xc7cbd4(0x11e)](_0x4e8b3d),_0x42402e='g_'+_0x55bbe9(0x6),_0x273545=Fe(_0x3009cc,_0x133649),_0x37923a={'config':_0x1373f6!=null?_0x1373f6:{},'sparklines':_0x273545[_0xc7cbd4(0x95)]()},_0x161a45=_0x4975df['get'](_0x3eea3e),_0xcc6116=_0x4975df['get'](x),_0x21de94=_0x3bb214(_0x161a45);if(!_0x21de94)return!0x1;const {unitId:_0x2cfb9e,subUnitId:_0x406cbd}=_0x21de94,_0x4955d7=_0x4975df[_0xc7cbd4(0x11e)](_0x4c768d),_0x51c9e6=[],_0x5a3f9c=[],_0x17f44d={},_0x54dbcd={},_0x5c2e26=new Set([_0x42402e]);_0x273545[_0xc7cbd4(0xc4)]((_0x39bbf1,_0x5cd699,_0x4eb592)=>{const _0x564cde=_0xc7cbd4,_0x197050=_0xcc6116[_0x564cde(0xff)](_0x2cfb9e,_0x406cbd,_0x39bbf1,_0x5cd699);if(_0x197050){const _0x1dcade=_0xcc6116[_0x564cde(0xd4)](_0x2cfb9e,_0x406cbd,_0x197050);if(_0x1dcade){_0x5c2e26['add'](_0x197050);let _0x4a702f=_0x17f44d[_0x197050],_0x5b7147=_0x54dbcd[_0x197050];_0x5b7147||(_0x5b7147={'config':_0x443595['deepClone'](_0x1dcade[_0x564cde(0x10c)]),'sparklines':new _0x4c97f1(_0x1dcade[_0x564cde(0xb9)]['clone']())},_0x54dbcd[_0x197050]=_0x5b7147),_0x4a702f||(_0x4a702f={'config':_0x443595['deepClone'](_0x1dcade[_0x564cde(0x10c)]),'sparklines':_0x1dcade[_0x564cde(0xb9)]['clone']()},_0x17f44d[_0x197050]=_0x4a702f),_0x5b7147[_0x564cde(0xb9)][_0x564cde(0xdf)](_0x39bbf1,_0x5cd699);}}});const _0x441325={};return Object[_0xc7cbd4(0xc7)](_0x54dbcd)[_0xc7cbd4(0xc2)](([_0xc9fed1,_0x53d46a])=>{const _0x2b673b=_0xc7cbd4;_0x53d46a['sparklines'][_0x2b673b(0xb2)]()&&(_0x441325[_0xc9fed1]={'config':_0x53d46a['config'],'sparklines':_0x53d46a['sparklines'][_0x2b673b(0x87)]()});}),_0x441325[_0x42402e]=_0x37923a,_0x51c9e6[_0xc7cbd4(0xea)]({'id':y['id'],'params':{'unitId':_0x2cfb9e,'subUnitId':_0x406cbd,'groupIds':Array[_0xc7cbd4(0x106)](_0x5c2e26),'isSingle':!0x1}}),_0x5c2e26[_0xc7cbd4(0xe4)]>0x1&&(_0x5a3f9c[_0xc7cbd4(0xea)]({'id':y['id'],'params':{'unitId':_0x2cfb9e,'subUnitId':_0x406cbd,'groupIds':Array[_0xc7cbd4(0x106)](_0x5c2e26),'isSingle':!0x1}}),_0x51c9e6['push']({'id':V['id'],'params':{'unitId':_0x2cfb9e,'subUnitId':_0x406cbd,'sparklineConfigMap':_0x17f44d}})),_0x5a3f9c['push']({'id':V['id'],'params':{'unitId':_0x2cfb9e,'subUnitId':_0x406cbd,'sparklineConfigMap':_0x441325}}),_0x59dc33(_0x5a3f9c,_0x4955d7),_0x3b36a2['pushUndoRedo']({'unitID':_0x2cfb9e,'undoMutations':_0x51c9e6,'redoMutations':_0x5a3f9c}),!0x0;}},Ot={'id':_0x58b8b9(0x109),'type':_0x5d2db6[_0x58b8b9(0x11f)],'handler':(_0x47c4b3,_0x5f2ec8)=>{const _0xeacf0f=_0x58b8b9;var _0x1064e7;const {isSingle:_0x23a636=!0x0}=_0x5f2ec8||{},_0xf74777=_0x47c4b3['get'](_0x4c768d),_0x59fe3b=_0x47c4b3[_0xeacf0f(0x11e)](_0x3eea3e),_0x552060=_0x47c4b3['get'](x),_0x321426=_0x47c4b3[_0xeacf0f(0x11e)](_0x4e8b3d),_0x123c23=_0x3bb214(_0x59fe3b);if(!_0x123c23)return!0x1;const _0xf19018=_0x47c4b3['get'](_0x523dca),_0x4fc440=(_0x1064e7=_0x5f2ec8==null?void 0x0:_0x5f2ec8[_0xeacf0f(0x88)])!=null?_0x1064e7:_0xf19018[_0xeacf0f(0x118)]()[_0xeacf0f(0x11d)](_0x5ab458=>_0x5ab458[_0xeacf0f(0xf9)]),{unitId:_0x436930,subUnitId:_0x451526}=_0x123c23,_0x5d2e22=[],_0x573b1d=[];_0x5d2e22['push']({'id':y['id'],'params':{'unitId':_0x436930,'subUnitId':_0x451526,'ranges':_0x4fc440,'isSingle':_0x23a636}});const _0x4fadf3=[],_0x5e3e4f={};return _0x4fc440[_0xeacf0f(0xc2)](_0x4a65fd=>{const _0x8f7157=_0xeacf0f;_0x5508db[_0x8f7157(0x103)](_0x4a65fd,(_0x22755e,_0x1e4ee5)=>{const _0x3a1cd1=_0x8f7157,_0xa6583d=_0x552060[_0x3a1cd1(0xff)](_0x436930,_0x451526,_0x22755e,_0x1e4ee5);if(_0xa6583d){const _0x5eb5ce=_0x552060[_0x3a1cd1(0xd4)](_0x436930,_0x451526,_0xa6583d);_0x5eb5ce&&(_0x4fadf3['push'](_0xa6583d),_0x5e3e4f[_0xa6583d]={'config':_0x443595[_0x3a1cd1(0x9b)](_0x5eb5ce['config']),'sparklines':_0x443595[_0x3a1cd1(0x9b)](_0x5eb5ce[_0x3a1cd1(0xb9)][_0x3a1cd1(0x87)]())});}});}),_0x573b1d[_0xeacf0f(0xea)]({'id':y['id'],'params':{'unitId':_0x436930,'subUnitId':_0x451526,'groupIds':_0x4fadf3,'isSingle':!0x1}}),_0x573b1d[_0xeacf0f(0xea)]({'id':V['id'],'params':{'unitId':_0x436930,'subUnitId':_0x451526,'sparklineConfigMap':_0x5e3e4f}}),_0x59dc33(_0x5d2e22,_0xf74777),_0x321426[_0xeacf0f(0x90)]({'unitID':_0x436930,'undoMutations':_0x573b1d,'redoMutations':_0x5d2e22}),!0x0;}},Oe={'id':_0x58b8b9(0x11b),'type':_0x5d2db6[_0x58b8b9(0x114)],'handler':(_0x303d02,_0x4bb7d3)=>{const _0x1b73f4=_0x58b8b9;if(!_0x4bb7d3)return!0x1;const {unitId:_0x4686eb,subUnitId:_0x129c65,groupIds:_0x8c39b4,config:_0x3770e8}=_0x4bb7d3,_0x30a1b4=_0x303d02[_0x1b73f4(0x11e)](x);return _0x8c39b4[_0x1b73f4(0xc2)](_0x7d3051=>{const _0x11fcf5=_0x1b73f4,_0x29555d=_0x30a1b4[_0x11fcf5(0xd4)](_0x4686eb,_0x129c65,_0x7d3051);if(_0x29555d){const _0x2623ca={'config':Object[_0x11fcf5(0xb1)]({},_0x29555d['config'],_0x3770e8['config']),'sparklines':new _0x4c97f1(_0x29555d['sparklines'][_0x11fcf5(0x87)]())};_0x30a1b4[_0x11fcf5(0x121)](_0x4686eb,_0x129c65,[_0x7d3051],_0x2623ca);}}),!0x0;}},xt={'id':_0x58b8b9(0x120),'type':_0x5d2db6['COMMAND'],'handler':(_0x1d7d9b,_0x57c073)=>{const _0x51d894=_0x58b8b9;var _0x4d4886,_0x10472a,_0x26b6b9,_0x7efbf4;if(!_0x57c073)return!0x1;const _0x16c4ea=_0x1d7d9b['get'](_0x4c768d),_0x3672e6=_0x1d7d9b[_0x51d894(0x11e)](_0x523dca),_0x34ffec=_0x1d7d9b[_0x51d894(0x11e)](x),_0x4f233c=_0x1d7d9b[_0x51d894(0x11e)](_0x3eea3e),_0x5d9a16=_0x1d7d9b[_0x51d894(0x11e)](_0x4e8b3d),_0x2c7859=_0x3bb214(_0x4f233c);if(!_0x2c7859)return!0x1;const {unitId:_0x122f90,subUnitId:_0x5ce64a}=_0x2c7859,_0x5e89a9=(_0x4d4886=_0x57c073==null?void 0x0:_0x57c073[_0x51d894(0x88)])!=null?_0x4d4886:_0x3672e6[_0x51d894(0x118)]()[_0x51d894(0x11d)](_0x509e49=>_0x509e49[_0x51d894(0xf9)]),_0xed9414=(_0x10472a=_0x34ffec[_0x51d894(0x105)]()[_0x51d894(0x93)][_0x51d894(0x11e)](_0x122f90))==null?void 0x0:_0x10472a[_0x51d894(0x11e)](_0x5ce64a),{isChangeDataSource:_0xfc42ba,config:_0x1f1953,combine:_0x3b769a,unCombine:_0x1ec5ec}=_0x57c073;if(_0x3b769a){const _0x58fedc=[],_0x70aad1=[];_0x58fedc[_0x51d894(0xea)]({'id':y['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'ranges':_0x5e89a9,'isSingle':!0x0}});const _0x321613='g_'+_0x55bbe9(0x6),_0xfd3d35=new _0x4c97f1(),_0x8d163d=(_0x26b6b9=_0x34ffec[_0x51d894(0x105)]()[_0x51d894(0x123)][_0x51d894(0x11e)](_0x122f90))==null?void 0x0:_0x26b6b9[_0x51d894(0x11e)](_0x5ce64a),_0x2f271a=new Set([_0x321613]),_0x359bf8={};return _0x5e89a9[_0x51d894(0xc2)](_0x526ba2=>{const _0x4c080d=_0x51d894;var _0x3459a4,_0x4e7c54;const {startRow:_0xd3fa56,endRow:_0x10cec7,startColumn:_0x27a6df,endColumn:_0x4feb7b}=_0x526ba2;for(let _0x39115f=_0xd3fa56;_0x39115f<=_0x10cec7;_0x39115f++)for(let _0x139dab=_0x27a6df;_0x139dab<=_0x4feb7b;_0x139dab++){const _0x28f6e4=(_0x3459a4=_0xed9414==null?void 0x0:_0xed9414[_0x4c080d(0xe8)][_0x4c080d(0xd8)](_0x39115f,_0x139dab))==null?void 0x0:_0x3459a4[_0x4c080d(0xe9)];if(_0x28f6e4){_0x2f271a[_0x4c080d(0xc9)](_0x28f6e4);const _0x59015d=_0x34ffec['getSparklineById'](_0x122f90,_0x5ce64a,_0x28f6e4);_0x59015d&&(_0x359bf8[_0x28f6e4]={'config':_0x443595[_0x4c080d(0x9b)](_0x59015d[_0x4c080d(0x10c)]),'sparklines':_0x443595[_0x4c080d(0x9b)](_0x59015d[_0x4c080d(0xb9)][_0x4c080d(0x87)]())});const _0x1c6804=(_0x4e7c54=_0x8d163d==null?void 0x0:_0x8d163d[_0x4c080d(0x11e)](_0x28f6e4))==null?void 0x0:_0x4e7c54[_0x4c080d(0xb9)]['getValue'](_0x39115f,_0x139dab);_0x1c6804&&_0xfd3d35[_0x4c080d(0x8a)](_0x39115f,_0x139dab,_0x1c6804);}}}),_0x58fedc['push']({'id':V['id'],'params':{'sparklineConfigMap':{[_0x321613]:{'config':_0x443595[_0x51d894(0x9b)](_0x1f1953[_0x51d894(0x10c)]),'sparklines':_0xfd3d35['getMatrix']()}},'unitId':_0x122f90,'subUnitId':_0x5ce64a}}),_0x70aad1[_0x51d894(0xea)]({'id':y['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'isSingle':!0x1,'groupIds':Array['from'](_0x2f271a)}}),_0x70aad1[_0x51d894(0xea)]({'id':V['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'sparklineConfigMap':_0x359bf8}}),_0x59dc33(_0x58fedc,_0x16c4ea),_0x5d9a16[_0x51d894(0x90)]({'unitID':_0x122f90,'undoMutations':_0x70aad1,'redoMutations':_0x58fedc}),!0x0;}else{if(_0x1ec5ec){const _0xcdd56=[],_0x2e2d3e=[];_0xcdd56['push']({'id':y['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'ranges':_0x5e89a9,'isSingle':!0x0}});const _0x48b5e7=(_0x7efbf4=_0x34ffec[_0x51d894(0x105)]()[_0x51d894(0x123)][_0x51d894(0x11e)](_0x122f90))==null?void 0x0:_0x7efbf4[_0x51d894(0x11e)](_0x5ce64a),_0x20269c={},_0x37c5a4=new Set(),_0x3ae0c8={};return _0x5e89a9['forEach'](_0x25a12e=>{const _0x218936=_0x51d894;var _0x2e35bb,_0x38fb0c;const {startRow:_0x1e4b60,endRow:_0x4207cd,startColumn:_0x3bac9c,endColumn:_0x143ff8}=_0x25a12e;for(let _0x35236e=_0x1e4b60;_0x35236e<=_0x4207cd;_0x35236e++)for(let _0x14fdc5=_0x3bac9c;_0x14fdc5<=_0x143ff8;_0x14fdc5++){const _0x2dced7=(_0x2e35bb=_0xed9414==null?void 0x0:_0xed9414[_0x218936(0xe8)][_0x218936(0xd8)](_0x35236e,_0x14fdc5))==null?void 0x0:_0x2e35bb[_0x218936(0xe9)];if(_0x2dced7){const _0x1c7368=new _0x4c97f1(),_0x108aca='g_'+_0x55bbe9(0x6);_0x37c5a4[_0x218936(0xc9)](_0x2dced7),_0x37c5a4[_0x218936(0xc9)](_0x108aca);const _0x344a3e=_0x34ffec[_0x218936(0xd4)](_0x122f90,_0x5ce64a,_0x2dced7);_0x344a3e&&(_0x3ae0c8[_0x2dced7]={'config':_0x443595['deepClone'](_0x344a3e[_0x218936(0x10c)]),'sparklines':_0x443595['deepClone'](_0x344a3e['sparklines'][_0x218936(0x87)]())});const _0x54f116=(_0x38fb0c=_0x48b5e7==null?void 0x0:_0x48b5e7[_0x218936(0x11e)](_0x2dced7))==null?void 0x0:_0x38fb0c[_0x218936(0xb9)][_0x218936(0xd8)](_0x35236e,_0x14fdc5);_0x54f116&&_0x1c7368[_0x218936(0x8a)](_0x35236e,_0x14fdc5,_0x54f116),_0x20269c[_0x108aca]={'sparklines':_0x1c7368[_0x218936(0x95)](),'config':_0x443595[_0x218936(0x9b)](_0x1f1953[_0x218936(0x10c)])};}}}),_0xcdd56[_0x51d894(0xea)]({'id':V['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'sparklineConfigMap':_0x20269c}}),_0x2e2d3e[_0x51d894(0xea)]({'id':y['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'isSingle':!0x1,'groupIds':Array['from'](_0x37c5a4)}}),_0x2e2d3e['push']({'id':V['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'sparklineConfigMap':_0x3ae0c8}}),_0x59dc33(_0xcdd56,_0x16c4ea),_0x5d9a16[_0x51d894(0x90)]({'unitID':_0x122f90,'undoMutations':_0x2e2d3e,'redoMutations':_0xcdd56}),!0x0;}}if(_0xfc42ba){const _0x50cec8=_0x57c073[_0x51d894(0x8f)];if(!_0x50cec8)return!0x1;const {groupId:_0x1c0835,sourceRanges:_0x39c636,targetRanges:_0x4251ac,resetType:_0x4502d5,primary:_0x446a07}=_0x50cec8,_0x106e20=[],_0x44b34c=[];_0x106e20[_0x51d894(0xea)]({'id':y['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'ranges':_0x5e89a9,'isSingle':!0x1,'groupIds':[_0x1c0835]}}),_0x44b34c[_0x51d894(0xea)]({'id':y['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'ranges':_0x5e89a9,'isSingle':!0x1,'groupIds':[_0x1c0835]}});let _0x994dfe;_0x4502d5===_0x51d894(0xf2)?(_0x994dfe=new _0x4c97f1(_0x1f1953[_0x51d894(0xb9)][_0x51d894(0x87)]()),_0x994dfe[_0x51d894(0xdf)](_0x446a07['actualRow'],_0x446a07[_0x51d894(0xd5)]),_0x994dfe[_0x51d894(0x8a)](_0x4251ac[0x0][_0x51d894(0x9e)],_0x4251ac[0x0][_0x51d894(0xc3)],_0x39c636[0x0])):_0x994dfe=Fe(_0x39c636,_0x4251ac);const _0x4810de={'config':_0x443595[_0x51d894(0x9b)](_0x1f1953[_0x51d894(0x10c)]),'sparklines':_0x994dfe['getMatrix']()},_0x5645ea={'config':_0x443595[_0x51d894(0x9b)](_0x1f1953[_0x51d894(0x10c)]),'sparklines':_0x443595['deepClone'](_0x1f1953[_0x51d894(0xb9)][_0x51d894(0x87)]())};_0x106e20[_0x51d894(0xea)]({'id':V['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'sparklineConfigMap':{[_0x1c0835]:_0x4810de}}}),_0x44b34c[_0x51d894(0xea)]({'id':V['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'sparklineConfigMap':{[_0x1c0835]:_0x5645ea}}}),_0x59dc33(_0x106e20,_0x16c4ea),_0x5d9a16['pushUndoRedo']({'unitID':_0x122f90,'undoMutations':_0x44b34c,'redoMutations':_0x106e20});}else{const _0x2e6f52=[],_0x220369=[],_0x4de443=new Set(),_0x5aae07={};_0x5e89a9[_0x51d894(0xc2)](_0x3dcbf3=>{const _0x2e19d8=_0x51d894;var _0x581bf1;const {startRow:_0x290338,endRow:_0x1b65f5,startColumn:_0x4e6c7d,endColumn:_0x150db2}=_0x3dcbf3;for(let _0x5acb5c=_0x290338;_0x5acb5c<=_0x1b65f5;_0x5acb5c++)for(let _0x436ea3=_0x4e6c7d;_0x436ea3<=_0x150db2;_0x436ea3++){const _0x5aa7e9=(_0x581bf1=_0xed9414==null?void 0x0:_0xed9414[_0x2e19d8(0xe8)][_0x2e19d8(0xd8)](_0x5acb5c,_0x436ea3))==null?void 0x0:_0x581bf1[_0x2e19d8(0xe9)];if(_0x5aa7e9){_0x4de443[_0x2e19d8(0xc9)](_0x5aa7e9);const _0x5d4ba1=_0x34ffec['getSparklineById'](_0x122f90,_0x5ce64a,_0x5aa7e9);_0x5d4ba1&&(_0x5aae07[_0x5aa7e9]={'config':_0x443595['deepClone'](_0x5d4ba1[_0x2e19d8(0x10c)]),'sparklines':_0x443595[_0x2e19d8(0x9b)](_0x5d4ba1[_0x2e19d8(0xb9)][_0x2e19d8(0x87)]())});}}}),_0x220369[_0x51d894(0xea)]({'id':Oe['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'groupIds':Array['from'](_0x4de443),'config':{'config':_0x443595[_0x51d894(0x9b)](_0x1f1953[_0x51d894(0x10c)]),'sparklines':_0x1f1953['sparklines']['getMatrix']()}}}),_0x2e6f52['push']({'id':y['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'isSingle':!0x1,'groupIds':Array[_0x51d894(0x106)](_0x4de443)}}),_0x2e6f52[_0x51d894(0xea)]({'id':V['id'],'params':{'unitId':_0x122f90,'subUnitId':_0x5ce64a,'sparklineConfigMap':_0x5aae07}}),_0x59dc33(_0x220369,_0x16c4ea),_0x5d9a16['pushUndoRedo']({'unitID':_0x122f90,'undoMutations':_0x2e6f52,'redoMutations':_0x220369});}return!0x0;}};var Ut=Object[_0x58b8b9(0xb6)],Pt=(_0x361c6a,_0x35f258,_0x235bd9,_0x21dae4)=>{const _0x167c30=_0x58b8b9;for(var _0x201c2a=_0x21dae4>0x1?void 0x0:_0x21dae4?Ut(_0x35f258,_0x235bd9):_0x35f258,_0x38ef56=_0x361c6a[_0x167c30(0x71)]-0x1,_0x5ba8da;_0x38ef56>=0x0;_0x38ef56--)(_0x5ba8da=_0x361c6a[_0x38ef56])&&(_0x201c2a=_0x5ba8da(_0x201c2a)||_0x201c2a);return _0x201c2a;},fe=(_0x4eca9f,_0x383181)=>(_0x261671,_0x3c34a2)=>_0x383181(_0x261671,_0x3c34a2,_0x4eca9f);let Se=class extends _0x2406d1{constructor(_0x500c5a,_0x34c9ec,_0x569192,_0x8d70be){const _0x5716d0=_0x58b8b9;super(),this[_0x5716d0(0x122)]=_0x500c5a,this[_0x5716d0(0x80)]=_0x34c9ec,this[_0x5716d0(0xe5)]=_0x569192,this[_0x5716d0(0x113)]=_0x8d70be,this[_0x5716d0(0xf8)]();}[_0x58b8b9(0xf8)](){const _0x5b26de=_0x58b8b9;this[_0x5b26de(0x8c)](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x454c29=>{const _0x245203=_0x5b26de,_0x2c4c98=[],_0x27e31f=[];if(_0x454c29['id']===_0xaa3274['id']){const _0xcdcf4a=_0x3bb214(this['_univerInstanceService']);if(!_0xcdcf4a)return{'redos':_0x2c4c98,'undos':_0x27e31f};const {unitId:_0x5053be,subUnitId:_0x3f39c4,worksheet:_0x11c023}=_0xcdcf4a,_0x2d4d86=this[_0x245203(0x113)]['getCurrentSelections']()[_0x245203(0x11d)](_0x726af3=>_0x726af3[_0x245203(0xf9)]),_0x375d70=new Set(),_0x588bc2={},_0x74f462={};_0x2d4d86['forEach'](_0x4bc641=>{const _0x367ea3=_0x245203;_0x5508db[_0x367ea3(0x103)](_0x4bc641,(_0x4b07b4,_0x40ecfc)=>{const _0x4c3b8f=_0x367ea3,_0x24b6c3=this['_sparklineDataSourceModel']['getSparkline'](_0x5053be,_0x3f39c4,_0x4b07b4,_0x40ecfc);if(_0x24b6c3&&!_0x375d70[_0x4c3b8f(0x6e)](_0x24b6c3)){const _0x7dca2d=this[_0x4c3b8f(0x122)]['getSparklineById'](_0x5053be,_0x3f39c4,_0x24b6c3);_0x7dca2d&&(_0x375d70[_0x4c3b8f(0xc9)](_0x24b6c3),_0x588bc2[_0x24b6c3]={'config':_0x443595[_0x4c3b8f(0x9b)](_0x7dca2d[_0x4c3b8f(0x10c)]),'sparklines':_0x443595[_0x4c3b8f(0x9b)](_0x7dca2d[_0x4c3b8f(0xb9)]['clone']())},_0x74f462[_0x24b6c3]={'config':_0x443595[_0x4c3b8f(0x9b)](_0x7dca2d[_0x4c3b8f(0x10c)]),'sparklines':_0x443595[_0x4c3b8f(0x9b)](_0x7dca2d[_0x4c3b8f(0xb9)]['clone']())});}});}),Object[_0x245203(0xde)](_0x74f462)['forEach'](_0x182026=>{const _0x4bdfbd=_0x245203,_0x1bfdc1=_0x182026[_0x4bdfbd(0xb9)];new _0x4c97f1(_0x1bfdc1)['forValue']((_0x45cdbc,_0x48e291,_0x4e33ad)=>{const _0xc24605=_0x4bdfbd;_0x2d4d86[_0xc24605(0xf6)](_0x18c030=>_0x2e01c8['intersects'](_0x18c030,_0x3a0057(_0x45cdbc,_0x48e291)))&&delete _0x1bfdc1[_0x45cdbc][_0x48e291];});}),_0x2c4c98[_0x245203(0xea)]({'id':y['id'],'params':{'unitId':_0x5053be,'subUnitId':_0x3f39c4,'groupIds':Array[_0x245203(0x106)](_0x375d70),'isSingle':!0x1}}),_0x2c4c98[_0x245203(0xea)]({'id':V['id'],'params':{'unitId':_0x5053be,'subUnitId':_0x3f39c4,'sparklineConfigMap':_0x74f462}}),_0x27e31f['push']({'id':y['id'],'params':{'unitId':_0x5053be,'subUnitId':_0x3f39c4,'groupIds':Array[_0x245203(0x106)](_0x375d70),'isSingle':!0x1}}),_0x27e31f['push']({'id':V['id'],'params':{'unitId':_0x5053be,'subUnitId':_0x3f39c4,'sparklineConfigMap':_0x588bc2}});}return{'redos':_0x2c4c98,'undos':_0x27e31f};}}));}};Se=Pt([fe(0x0,_0x2cf83a(x)),fe(0x1,_0x2cf83a(_0x5e9342)),fe(0x2,_0x2cf83a(_0x3eea3e)),fe(0x3,_0x2cf83a(_0x523dca))],Se);var Tt=Object[_0x58b8b9(0xb6)],$t=(_0x304077,_0x555330,_0x1846f3,_0x2233ec)=>{const _0xeb9097=_0x58b8b9;for(var _0x72a5a9=_0x2233ec>0x1?void 0x0:_0x2233ec?Tt(_0x555330,_0x1846f3):_0x555330,_0x23490c=_0x304077[_0xeb9097(0x71)]-0x1,_0x442e05;_0x23490c>=0x0;_0x23490c--)(_0x442e05=_0x304077[_0x23490c])&&(_0x72a5a9=_0x442e05(_0x72a5a9)||_0x72a5a9);return _0x72a5a9;},Ge=(_0x3fbf6d,_0x5ed8ec)=>(_0x2c8ec6,_0x2364c0)=>_0x5ed8ec(_0x2c8ec6,_0x2364c0,_0x3fbf6d);let ke=class extends _0x2406d1{constructor(_0x1ad556,_0x4d4d59){const _0x243210=_0x58b8b9;super(),this[_0x243210(0x80)]=_0x1ad556,this[_0x243210(0x122)]=_0x4d4d59,this[_0x243210(0xa1)]();}[_0x58b8b9(0xa1)](){const _0x29a815=_0x58b8b9;this[_0x29a815(0x8c)](this[_0x29a815(0x80)][_0x29a815(0x79)]({'getMutations':_0x9f8180=>{const _0x53a505=_0x29a815,_0x5cf3e9=[],_0x2041f1=[];if(_0x9f8180['id']===_0x16d6ef['id']){const _0xe38b1b=_0x9f8180[_0x53a505(0x9a)];if(!_0xe38b1b)return{'redos':_0x5cf3e9,'undos':_0x2041f1};const {unitId:_0x4117b6,subUnitId:_0x34d24e,targetSubUnitId:_0x453da8}=_0xe38b1b;if(!_0x4117b6||!_0x34d24e||!_0x453da8)return{'redos':_0x5cf3e9,'undos':_0x2041f1};const _0x268394=new Set(),_0x3ca927={},_0x568217=this[_0x53a505(0x122)][_0x53a505(0x72)](_0x4117b6,_0x34d24e);if(!_0x568217)return{'redos':_0x5cf3e9,'undos':_0x2041f1};for(const [_0x2d99ca,_0x5d6ca7]of _0x568217){const _0x6d5e78='g_'+_0x55bbe9(0x6);_0x268394[_0x53a505(0xc9)](_0x2d99ca),_0x3ca927[_0x6d5e78]={'config':_0x443595[_0x53a505(0x9b)](_0x5d6ca7[_0x53a505(0x10c)]),'sparklines':_0x443595[_0x53a505(0x9b)](_0x5d6ca7[_0x53a505(0xb9)][_0x53a505(0x87)]())};}_0x268394[_0x53a505(0xe4)]&&(_0x2041f1[_0x53a505(0xea)]({'id':y['id'],'params':{'unitId':_0x4117b6,'subUnitId':_0x453da8,'groupIds':Array[_0x53a505(0x106)](_0x268394),'isSingle':!0x1}}),_0x5cf3e9[_0x53a505(0xea)]({'id':V['id'],'params':{'unitId':_0x4117b6,'subUnitId':_0x453da8,'sparklineConfigMap':_0x3ca927}}));}return{'redos':_0x5cf3e9,'undos':_0x2041f1};}}));}};ke=$t([Ge(0x0,_0x2cf83a(_0x5e9342)),Ge(0x1,_0x2cf83a(x))],ke);var jt=Object[_0x58b8b9(0xb6)],Lt=(_0x35d0c9,_0x409a1a,_0x8bb32e,_0x1d0e48)=>{const _0x14afff=_0x58b8b9;for(var _0x23df22=_0x1d0e48>0x1?void 0x0:_0x1d0e48?jt(_0x409a1a,_0x8bb32e):_0x409a1a,_0x478209=_0x35d0c9[_0x14afff(0x71)]-0x1,_0x3bb2f5;_0x478209>=0x0;_0x478209--)(_0x3bb2f5=_0x35d0c9[_0x478209])&&(_0x23df22=_0x3bb2f5(_0x23df22)||_0x23df22);return _0x23df22;},Ie=(_0x4141f1,_0x41c6a0)=>(_0x513c23,_0x3c2246)=>_0x41c6a0(_0x513c23,_0x3c2246,_0x4141f1);let me=class extends _0x2406d1{constructor(_0x1b2bae,_0x5c0a95,_0x1808aa){const _0xdbf6f8=_0x58b8b9;super(),this['_commandService']=_0x1b2bae,this[_0xdbf6f8(0x122)]=_0x5c0a95,this[_0xdbf6f8(0x7b)]=_0x1808aa,this[_0xdbf6f8(0x85)](),this['_initExclusiveRangeChange']();}[_0x58b8b9(0x85)](){const _0x49b7be=_0x58b8b9;this[_0x49b7be(0x8c)](this[_0x49b7be(0x10d)][_0x49b7be(0xd6)](_0x247001=>{const _0x6c1f93=_0x49b7be;if(_0x247001['id']===_0x1aca92['id']){const _0x48dbae=_0x247001[_0x6c1f93(0x9a)],{cellValue:_0x54e0fa,unitId:_0x3a67f6,subUnitId:_0x98dcca}=_0x48dbae,_0x32a979=new _0x4c97f1(_0x54e0fa),_0x40c75d=new Set(),_0x292ff0=this[_0x6c1f93(0x122)][_0x6c1f93(0x72)](_0x3a67f6,_0x98dcca);if(!_0x292ff0)return;const _0x4baaf3=Array[_0x6c1f93(0x106)](_0x292ff0);_0x32a979[_0x6c1f93(0xc4)]((_0x2f22b0,_0x5972ba,_0x187bc4)=>{const _0x51ae1a=_0x6c1f93,_0x5c8180=_0x3a0057(_0x2f22b0,_0x5972ba);for(let _0x56af6b=0x0;_0x56af6b<_0x4baaf3['length'];_0x56af6b++){const [_0x3aa019,_0x49905a]=_0x4baaf3[_0x56af6b],_0x3009d4=_0x40c75d[_0x51ae1a(0x6e)](_0x3aa019);_0x3009d4||_0x49905a[_0x51ae1a(0xb9)][_0x51ae1a(0xc4)]((_0x34eb5d,_0xd7e900,_0x4fc805)=>{const _0x755eb6=_0x51ae1a,_0x340b1d=_0x4fc805;if(_0x340b1d&&!_0x3009d4&&_0x2e01c8[_0x755eb6(0x127)](_0x5c8180,_0x340b1d))return _0x40c75d[_0x755eb6(0xc9)](_0x3aa019),!0x0;});}}),_0x40c75d[_0x6c1f93(0xc2)](_0x37c660=>{const _0x2f737e=_0x6c1f93;this[_0x2f737e(0x122)]['clearSparklineCache'](_0x3a67f6,_0x98dcca,_0x37c660),this[_0x2f737e(0x122)]['updateSparklineExtraNum'](_0x3a67f6,_0x98dcca,_0x37c660);});}else{if(_0x247001['id']===_0x42e3f3['id']){const _0x4ada4a=_0x247001[_0x6c1f93(0x9a)],{range:_0x3a22f0,unitId:_0x3c100c,subUnitId:_0x19e090}=_0x4ada4a,_0x59c422=new Set(),_0x26ced3=this[_0x6c1f93(0x122)][_0x6c1f93(0x72)](_0x3c100c,_0x19e090);if(!_0x26ced3)return;const _0xe9f8ff=Array['from'](_0x26ced3);for(let _0x40635c=0x0;_0x40635c<_0xe9f8ff[_0x6c1f93(0x71)];_0x40635c++){const [_0x1acc60,_0x1bfc1c]=_0xe9f8ff[_0x40635c],_0x259621=_0x59c422['has'](_0x1acc60);_0x259621||_0x1bfc1c[_0x6c1f93(0xb9)]['forValue']((_0x3d0a68,_0x3ea368,_0x5ae893)=>{const _0x8061ef=_0x6c1f93,_0xc7dca2=_0x5ae893;if(_0xc7dca2&&!_0x259621&&_0x2e01c8[_0x8061ef(0x127)](_0x3a22f0,_0xc7dca2))return _0x59c422[_0x8061ef(0xc9)](_0x1acc60),!0x0;});}_0x59c422[_0x6c1f93(0xc2)](_0x2dac45=>{const _0x5377cd=_0x6c1f93;this[_0x5377cd(0x122)][_0x5377cd(0xbf)](_0x3c100c,_0x19e090,_0x2dac45),this[_0x5377cd(0x122)]['updateSparklineExtraNum'](_0x3c100c,_0x19e090,_0x2dac45);});}}}));}[_0x58b8b9(0xc6)](){const _0x4f950e=_0x58b8b9;this[_0x4f950e(0x8c)](this['_exclusiveRangeService'][_0x4f950e(0x7c)][_0x4f950e(0x9f)](_0x219213=>{const _0x58e347=_0x4f950e,{unitId:_0x140d29,subUnitId:_0x15b25d,ranges:_0x21dfa2}=_0x219213,_0x826d9a=this['_sparklineDataSourceModel'][_0x58e347(0x72)](_0x140d29,_0x15b25d);if(!_0x826d9a)return;const _0x30481b=Array[_0x58e347(0x106)](_0x826d9a),_0x468a7d=new Set();for(let _0x559331=0x0;_0x559331<_0x30481b[_0x58e347(0x71)];_0x559331++){const [_0x1d812d,_0x2e6942]=_0x30481b[_0x559331],_0x44fa0e=_0x468a7d['has'](_0x1d812d);_0x44fa0e||_0x2e6942[_0x58e347(0xb9)][_0x58e347(0xc4)]((_0x47b037,_0x217105,_0x4ae396)=>{const _0xe5252a=_0x58e347,_0x1c5e32=_0x4ae396;if(_0x1c5e32&&!_0x44fa0e){for(const _0x2041a6 of _0x21dfa2)if(_0x2e01c8[_0xe5252a(0x127)](_0x2041a6,_0x1c5e32)){_0x468a7d[_0xe5252a(0xc9)](_0x1d812d);break;}}});}_0x468a7d[_0x58e347(0xc2)](_0xb7afe2=>{const _0x30de12=_0x58e347;this[_0x30de12(0x122)][_0x30de12(0xbf)](_0x140d29,_0x15b25d,_0xb7afe2),this[_0x30de12(0x122)]['updateSparklineExtraNum'](_0x140d29,_0x15b25d,_0xb7afe2);});}));}};me=Lt([Ie(0x0,_0x2cf83a(_0x4c768d)),Ie(0x1,_0x2cf83a(x)),Ie(0x2,_0x2cf83a(_0x371fe4))],me);var Gt=Object[_0x58b8b9(0xb6)],Wt=(_0x47f7df,_0x32f201,_0xa9a038,_0xfcb09f)=>{const _0x5149b5=_0x58b8b9;for(var _0x2291cc=_0xfcb09f>0x1?void 0x0:_0xfcb09f?Gt(_0x32f201,_0xa9a038):_0x32f201,_0x27da8d=_0x47f7df[_0x5149b5(0x71)]-0x1,_0x11eb6e;_0x27da8d>=0x0;_0x27da8d--)(_0x11eb6e=_0x47f7df[_0x27da8d])&&(_0x2291cc=_0x11eb6e(_0x2291cc)||_0x2291cc);return _0x2291cc;},We=(_0x40a8e8,_0x5433bb)=>(_0x338475,_0x805935)=>_0x5433bb(_0x338475,_0x805935,_0x40a8e8);let Ce=class extends _0x2406d1{constructor(_0x64b4b4,_0x5efeb9){const _0x38c85a=_0x58b8b9;super(),this[_0x38c85a(0x10d)]=_0x64b4b4,this[_0x38c85a(0x122)]=_0x5efeb9,this['_initHideRowColWithSparkline']();}[_0x58b8b9(0xed)](){const _0x18baee=_0x58b8b9;this[_0x18baee(0x10d)][_0x18baee(0xd6)](_0xfeaf18=>{const _0x3affe1=_0x18baee;if(_0xfeaf18['id']===_0x2c2988['id']||_0xfeaf18['id']===_0x5357c6['id']||_0xfeaf18['id']===_0x32bfb9['id']||_0xfeaf18['id']===_0x239155['id']){const _0x1d94d5=_0xfeaf18['params'],{ranges:_0x3b2868,unitId:_0x5d420e,subUnitId:_0xc3b9d0}=_0x1d94d5,_0x3da557=new Set(),_0x36084c=this[_0x3affe1(0x122)]['getSubUnitSparkline'](_0x5d420e,_0xc3b9d0);if(!_0x36084c)return;const _0x466fe2=Array[_0x3affe1(0x106)](_0x36084c);_0x3b2868[_0x3affe1(0xc2)](_0x449dd5=>{const _0x46b8a8=_0x3affe1;_0x5508db[_0x46b8a8(0x103)](_0x449dd5,(_0x4a1927,_0x351353)=>{const _0x10270b=_0x46b8a8,_0x11a6d3=_0x3a0057(_0x4a1927,_0x351353);for(let _0x1eb2f1=0x0;_0x1eb2f1<_0x466fe2['length'];_0x1eb2f1++){const [_0x17289f,_0x538954]=_0x466fe2[_0x1eb2f1],_0x48dc06=_0x3da557[_0x10270b(0x6e)](_0x17289f);_0x48dc06||_0x538954['sparklines']['forValue']((_0x3c436f,_0x44d5ab,_0xf07902)=>{const _0x3f062b=_0x10270b,_0x24b039=_0xf07902;if(_0x24b039&&!_0x48dc06&&_0x2e01c8['intersects'](_0x11a6d3,_0x24b039))return _0x3da557[_0x3f062b(0xc9)](_0x17289f),!0x0;});}});}),_0x3da557[_0x3affe1(0xc2)](_0x29014d=>{const _0x22cd19=_0x3affe1;this[_0x22cd19(0x122)][_0x22cd19(0xbf)](_0x5d420e,_0xc3b9d0,_0x29014d),this[_0x22cd19(0x122)][_0x22cd19(0x77)](_0x5d420e,_0xc3b9d0,_0x29014d);});}});}};Ce=Wt([We(0x0,_0x2cf83a(_0x4c768d)),We(0x1,_0x2cf83a(x))],Ce);var Bt=Object[_0x58b8b9(0xb6)],Ht=(_0x2f747d,_0x35cb99,_0x30efc9,_0x398bb6)=>{const _0x192c93=_0x58b8b9;for(var _0x286428=_0x398bb6>0x1?void 0x0:_0x398bb6?Bt(_0x35cb99,_0x30efc9):_0x35cb99,_0x23aea2=_0x2f747d[_0x192c93(0x71)]-0x1,_0xcc84c;_0x23aea2>=0x0;_0x23aea2--)(_0xcc84c=_0x2f747d[_0x23aea2])&&(_0x286428=_0xcc84c(_0x286428)||_0x286428);return _0x286428;},be=(_0x291a3d,_0x22c8db)=>(_0x5488e5,_0x566546)=>_0x22c8db(_0x5488e5,_0x566546,_0x291a3d);function _0x3d75(){const _0xa90d=['min','580932WFHfwO','3wKJSIA','_sheetSelectionService','MUTATION','removeRows','registerRefRange','unitId','getCurrentSelections','keys','lowPoint','sheet.mutation.set-sparkline','SPACING','map','get','COMMAND','sheet.command.set-sparkline','setSparkline','_sparklineDataSourceModel','sparklineModel','_initMergeWithSparkline','UNIVER_SHEET','STRING','intersects','negativePoint','BAR_CHART','has','column','specialty','length','getSubUnitSparkline','sheet.command.add-sparkline','4487HFANKS','fromJSON','_updateConfig$','updateSparklineExtraNum','getColVisible','interceptCommand','zero_value','_exclusiveRangeService','exclusiveRangesChange$','delete','_getRefRangeMutationsByDeleteCols','lastPoint','_sheetInterceptorService','_injector','registerPluginResource','rgb(252,117,60)','_initDependencies','_initDataChangeListener','asObservable','clone','ranges','SHEET_SPARKLINE_PLUGIN','setValue','getRowVisible','disposeWithMe','CONNECT_WITH_LINE','getSheetBySheetId','changeDataSourceInfo','pushUndoRedo','contains','getCellRaw','sparklineAnchorMap','u-connect','getMatrix','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','endColumn','firstPoint','fresh','params','deepClone','distinctive','toRgbString','startRow','subscribe','ZERO_VALUE','_initCopySheetWithSparkline','DISTINCTIVE','moveColumns','extremumMax','endRow','FORCE_STRING','_initCorrectRangeWithSparkline','_sparklineAnchorMap','510524TOJRLr','moveRows','every','187euCCeW','spacing','GROUP_EXTREMUM','1152GtfnyR','_sparklineModel','assign','getSizeOf','LINE_CHART','FRESH','symbol','getOwnPropertyDescriptor','sheet.mutation.add-sparkline','seriesColor','sparklines','onReady','value','next','emptyShowAs','NUMBER','clearSparklineCache','MIN_SAFE_INTEGER','STANDARD','forEach','startColumn','forValue','rgb(244,104,249)','_initExclusiveRangeChange','entries','NORMAL','add','SELF_EXTREMUM','refRangeHandle','CUSTOM','extremumMin','removeColumns','nonNumShowAs','_config','CUSTOM_EXTREMUM','_getRefRangeMutationsByDeleteRows','setAlpha','getSparklineById','actualColumn','onCommandExecuted','getCurrentUnitForType','getValue','u-spacing','MAX_SAFE_INTEGER','600GRyaoD','deleteUnit','_initSnapshot','values','realDeleteValue','removeSparkline','type','SOFT','sheet.mutation.remove-sparkline','size','_univerInstanceService','5890165VGoIdQ','_ensureConfigMap','matrix','groupId','push','addSparkline','rgb(54,78,244)','_initHideRowColWithSparkline','defineProperty','rgb(124,66,147)','custom','removePartSparkline','item','remove','512cLaUwj','10240dOtrJK','some','456HyIalh','_initClearWithSparkline','range','961638qfFnBS','_resourceManagerService','disposableCollection','PROFIT_AND_LOSS_CHART','max','getSparkline','rgb(49,106,246)','reBuildAnchorCache','standard','foreach','number','getSparklineCache','from','rgb(46,187,122)','subUnitId','sheet.command.remove-sparkline','set','themeType','config','_commandService','row','_onRefRangeChange'];_0x3d75=function(){return _0xa90d;};return _0x3d75();}let _e=class extends _0x2406d1{constructor(_0x272004,_0x3b3798,_0x513423){const _0x346743=_0x58b8b9;super(),this[_0x346743(0x10d)]=_0x272004,this['_sheetInterceptorService']=_0x3b3798,this['_sparklineDataSourceModel']=_0x513423,this['_initMergeWithSparkline']();}[_0x58b8b9(0x124)](){const _0x115a56=_0x58b8b9;this['disposeWithMe'](this[_0x115a56(0x80)]['interceptCommand']({'getMutations':_0xc61bcf=>{const _0x95491=_0x115a56,_0x2c710=[],_0x4f0b40=[];if(_0xc61bcf['id']===_0x579ab8['id']){const _0x143de3=_0xc61bcf['params'];if(!_0x143de3)return{'redos':_0x2c710,'undos':_0x4f0b40};const {unitId:_0x1b0a57,subUnitId:_0x40e234,ranges:_0x151243}=_0x143de3,_0x50b898=this[_0x95491(0x122)][_0x95491(0x72)](_0x1b0a57,_0x40e234);if(!_0x50b898)return{'redos':_0x2c710,'undos':_0x4f0b40};const _0x3ef7a4={},_0x4461c4={},_0x42ea50=new Set();_0x151243['forEach'](_0xdf5bbf=>{const _0x5426e4=_0x95491,_0x39c0e1=_0xdf5bbf[_0x5426e4(0x9e)],_0x240ed2=_0xdf5bbf[_0x5426e4(0xc3)];_0x5508db['foreach'](_0xdf5bbf,(_0x2bf870,_0xb532c7)=>{const _0x2c1b18=_0x5426e4,_0x2218bc=this['_sparklineDataSourceModel']['getSparkline'](_0x1b0a57,_0x40e234,_0x2bf870,_0xb532c7);if(_0x2218bc&&!(_0x2bf870===_0x39c0e1&&_0xb532c7===_0x240ed2)){const _0x49197a=this[_0x2c1b18(0x122)][_0x2c1b18(0xd4)](_0x1b0a57,_0x40e234,_0x2218bc);if(_0x49197a){_0x42ea50[_0x2c1b18(0xc9)](_0x2218bc);let _0x432ea2=_0x3ef7a4[_0x2218bc];_0x432ea2||(_0x432ea2={'config':_0x443595[_0x2c1b18(0x9b)](_0x49197a[_0x2c1b18(0x10c)]),'sparklines':new _0x4c97f1(_0x49197a[_0x2c1b18(0xb9)][_0x2c1b18(0x87)]())},_0x3ef7a4[_0x2218bc]=_0x432ea2),_0x432ea2[_0x2c1b18(0xb9)][_0x2c1b18(0xdf)](_0x2bf870,_0xb532c7),_0x4461c4[_0x2218bc]={'config':_0x443595[_0x2c1b18(0x9b)](_0x49197a[_0x2c1b18(0x10c)]),'sparklines':_0x443595[_0x2c1b18(0x9b)](_0x49197a[_0x2c1b18(0xb9)][_0x2c1b18(0x87)]())};}}});});for(const [_0x12591c,_0x3d1f65]of _0x50b898){const _0x4c10b3=_0x3d1f65[_0x95491(0xb9)];_0x4c10b3[_0x95491(0xc4)]((_0x2441cb,_0xd287e7,_0x32b9f1)=>{const _0x1f9e9b=_0x95491;for(let _0x423f50=0x0;_0x423f50<_0x151243['length'];_0x423f50++){const _0x5ee03e=_0x151243[_0x423f50];if(_0x2e01c8['contains'](_0x5ee03e,_0x32b9f1)){_0x42ea50[_0x1f9e9b(0xc9)](_0x12591c);let _0xcc0d7d=_0x3ef7a4[_0x12591c];_0xcc0d7d||(_0xcc0d7d={'config':_0x443595['deepClone'](_0x3d1f65[_0x1f9e9b(0x10c)]),'sparklines':new _0x4c97f1(_0x4c10b3[_0x1f9e9b(0x87)]())},_0x3ef7a4[_0x12591c]=_0xcc0d7d),_0xcc0d7d[_0x1f9e9b(0xb9)][_0x1f9e9b(0xdf)](_0x2441cb,_0xd287e7),_0x4461c4[_0x12591c]||(_0x4461c4[_0x12591c]={'config':_0x443595[_0x1f9e9b(0x9b)](_0x3d1f65['config']),'sparklines':_0x443595['deepClone'](_0x4c10b3[_0x1f9e9b(0x87)]())});}}});}const _0x105851={};Object[_0x95491(0xc7)](_0x3ef7a4)[_0x95491(0xc2)](([_0x4a4a1f,_0x214337])=>{const _0x43e3fd=_0x95491;_0x214337[_0x43e3fd(0xb9)][_0x43e3fd(0xb2)]()&&(_0x105851[_0x4a4a1f]={'config':_0x214337['config'],'sparklines':_0x214337[_0x43e3fd(0xb9)][_0x43e3fd(0x87)]()});}),_0x42ea50[_0x95491(0xe4)]&&(_0x2c710[_0x95491(0xea)]({'id':y['id'],'params':{'unitId':_0x1b0a57,'subUnitId':_0x40e234,'groupIds':Array[_0x95491(0x106)](_0x42ea50),'isSingle':!0x1}}),_0x4f0b40[_0x95491(0xea)]({'id':y['id'],'params':{'unitId':_0x1b0a57,'subUnitId':_0x40e234,'groupIds':Array['from'](_0x42ea50),'isSingle':!0x1}}),_0x2c710[_0x95491(0xea)]({'id':V['id'],'params':{'unitId':_0x1b0a57,'subUnitId':_0x40e234,'sparklineConfigMap':_0x105851}}),_0x4f0b40['push']({'id':V['id'],'params':{'unitId':_0x1b0a57,'subUnitId':_0x40e234,'sparklineConfigMap':_0x4461c4}}));}return{'redos':_0x2c710,'undos':_0x4f0b40};}}));}};_e=Ht([be(0x0,_0x2cf83a(_0x4c768d)),be(0x1,_0x2cf83a(_0x5e9342)),be(0x2,_0x2cf83a(x))],_e);var Ft=Object[_0x58b8b9(0xb6)],Kt=(_0x3a07c5,_0x367f95,_0x320696,_0x12595b)=>{const _0x12b3d4=_0x58b8b9;for(var _0x587b02=_0x12595b>0x1?void 0x0:_0x12595b?Ft(_0x367f95,_0x320696):_0x367f95,_0x586316=_0x3a07c5[_0x12b3d4(0x71)]-0x1,_0x57260d;_0x586316>=0x0;_0x586316--)(_0x57260d=_0x3a07c5[_0x586316])&&(_0x587b02=_0x57260d(_0x587b02)||_0x587b02);return _0x587b02;},ge=(_0x20a21e,_0xdddb59)=>(_0x5e68d3,_0x548a26)=>_0xdddb59(_0x5e68d3,_0x548a26,_0x20a21e);let Me=class extends _0x2406d1{constructor(_0x4c55e8,_0x137ba5,_0x6af6b4,_0x40696f){const _0x3b0226=_0x58b8b9;super(),se(this,_0x3b0226(0xfc),new _0x56e47d()),(this['_commandService']=_0x4c55e8,this['_refRangeService']=_0x137ba5,this[_0x3b0226(0xe5)]=_0x6af6b4,this[_0x3b0226(0x122)]=_0x40696f,this[_0x3b0226(0x10f)](),this['_initCorrectRangeWithSparkline']());}['_onRefRangeChange'](){const _0x4f6201=_0x58b8b9,_0x2ee1b6=(_0x5842eb,_0x1918db)=>{const _0x5559bc=_0x1eaa,_0x483244=this[_0x5559bc(0xe5)][_0x5559bc(0xd7)](_0x66a4f2[_0x5559bc(0x125)]);if(!_0x483244||!(_0x483244==null?void 0x0:_0x483244[_0x5559bc(0x8e)](_0x1918db)))return;this['disposableCollection']['dispose']();const _0x3ab11c=_0x152bcd=>this[_0x5559bc(0xcb)](_0x152bcd,_0x5842eb,_0x1918db),_0x5dc5f2=[],_0xbff9d8=this[_0x5559bc(0x122)]['getSubUnitSparkline'](_0x5842eb,_0x1918db);if(_0xbff9d8){for(const [_0x2edf4e,_0x23fe85]of _0xbff9d8)_0x23fe85[_0x5559bc(0xb9)][_0x5559bc(0xc4)]((_0x5cc822,_0x221dfe,_0x26d9b4)=>{const _0x84e3=_0x3a0057(_0x5cc822,_0x221dfe);_0x5dc5f2['push'](_0x84e3);});_0x5dc5f2[_0x5559bc(0xc2)](_0x5593ca=>{const _0x4d793e=_0x5559bc;this[_0x4d793e(0xfc)][_0x4d793e(0xc9)](this['_refRangeService'][_0x4d793e(0x116)](_0x5593ca,_0x3ab11c,_0x5842eb,_0x1918db));});}};this[_0x4f6201(0x8c)](this['_commandService'][_0x4f6201(0xd6)](_0x319c46=>{const _0x1b1d6f=_0x4f6201;if(_0x319c46['id']===_0x4db921['id']){const _0x483839=_0x319c46[_0x1b1d6f(0x9a)],_0xa09da0=_0x483839[_0x1b1d6f(0x108)],_0xd68eb1=_0x483839['unitId'];if(!_0xa09da0||!_0xd68eb1)return;_0x2ee1b6(_0xd68eb1,_0xa09da0);}if(_0x319c46['id']===Oe['id']||_0x319c46['id']===V['id']){const _0x2b7cbf=_0x319c46[_0x1b1d6f(0x9a)],_0x26588b=_0x2b7cbf['subUnitId'],_0x1262b1=_0x2b7cbf[_0x1b1d6f(0x117)];if(!_0x26588b||!_0x1262b1)return;_0x2ee1b6(_0x1262b1,_0x26588b);}}));}[_0x58b8b9(0xcb)](_0x3ec9bc,_0x53e990,_0x49032b){const _0x318737=_0x58b8b9;switch(_0x3ec9bc['id']){case _0x4e4387['id']:return this[_0x318737(0x7e)](_0x3ec9bc[_0x318737(0x9a)],_0x53e990,_0x49032b);case _0x5c5af8['id']:return this[_0x318737(0xd2)](_0x3ec9bc['params'],_0x53e990,_0x49032b);}return{'redos':[],'undos':[]};}[_0x58b8b9(0xd2)](_0x15013f,_0x9dac24,_0x431f2b){const _0x568465=_0x58b8b9;var _0x6254c2,_0x30707d;const {range:_0x39bed4}=_0x15013f,_0x471c70=new Set(),_0x5aa2e7={},_0x291a90={},_0x5116d5=[],_0x31c715=[],_0x1207f1=[],_0x1fe03c=[];if(!_0x3bb214(this[_0x568465(0xe5)],{'unitId':_0x9dac24,'subUnitId':_0x431f2b}))return{'redos':_0x31c715,'undos':_0x5116d5};const _0x71aa3=this[_0x568465(0x122)][_0x568465(0x72)](_0x9dac24,_0x431f2b);if(!_0x71aa3)return{'redos':_0x31c715,'undos':_0x5116d5};if(!((_0x30707d=(_0x6254c2=this[_0x568465(0x122)]['getSparklineCache']()[_0x568465(0x93)]['get'](_0x9dac24))==null?void 0x0:_0x6254c2['get'](_0x431f2b))==null?void 0x0:_0x30707d['matrix']))return{'redos':_0x31c715,'undos':_0x5116d5};for(const [_0x6b26ba,_0x277d8e]of _0x71aa3){const _0x3045ab=_0x277d8e[_0x568465(0xb9)];_0x3045ab['forValue']((_0x13b3a0,_0x2376a7,_0x39205b)=>{const _0x4d1d77=_0x568465;if(_0x2e01c8[_0x4d1d77(0x127)](_0x39bed4,_0x39205b)){_0x471c70[_0x4d1d77(0xc9)](_0x6b26ba);let _0x58af6d=_0x291a90[_0x6b26ba];_0x58af6d||(_0x58af6d={'config':_0x277d8e[_0x4d1d77(0x10c)],'sparklines':_0x277d8e['sparklines'][_0x4d1d77(0x87)]()},_0x291a90[_0x6b26ba]=_0x58af6d);let _0x3c2d25=_0x5aa2e7[_0x6b26ba];_0x3c2d25||(_0x3c2d25={'config':_0x277d8e[_0x4d1d77(0x10c)],'sparklines':new _0x4c97f1(_0x277d8e[_0x4d1d77(0xb9)]['clone']())},_0x5aa2e7[_0x6b26ba]=_0x3c2d25);const _0x152c42=_0x390bae(_0x39205b,{'id':_0x1d50e2['id'],'params':_0x15013f});_0x152c42?_0x3c2d25[_0x4d1d77(0xb9)]['setValue'](_0x13b3a0,_0x2376a7,_0x152c42):_0x3c2d25['sparklines']['setValue'](_0x13b3a0,_0x2376a7,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x8f2544[_0x4d1d77(0xc8)]});}}),_0x3045ab[_0x568465(0xc4)]((_0x1ae2d0,_0x52489c,_0x104889)=>{const _0x264b34=_0x568465;if(_0x1ae2d0<=_0x39bed4['endRow']&&_0x1ae2d0>=_0x39bed4['startRow']){_0x471c70['add'](_0x6b26ba);let _0x52acd2=_0x291a90[_0x6b26ba];_0x52acd2||(_0x52acd2={'config':_0x277d8e['config'],'sparklines':_0x277d8e['sparklines']['clone']()},_0x291a90[_0x6b26ba]=_0x52acd2);let _0x2cb37a=_0x5aa2e7[_0x6b26ba];_0x2cb37a||(_0x2cb37a={'config':_0x277d8e[_0x264b34(0x10c)],'sparklines':new _0x4c97f1(_0x277d8e['sparklines'][_0x264b34(0x87)]())},_0x5aa2e7[_0x6b26ba]=_0x2cb37a);}});}_0x1fe03c[_0x568465(0xea)]({'id':y['id'],'params':{'unitId':_0x9dac24,'subUnitId':_0x431f2b,'groupIds':Array[_0x568465(0x106)](_0x471c70),'isSingle':!0x1}}),_0x1207f1[_0x568465(0xea)]({'id':y['id'],'params':{'unitId':_0x9dac24,'subUnitId':_0x431f2b,'groupIds':Array[_0x568465(0x106)](_0x471c70),'isSingle':!0x1}});const _0x1f0a0e={};let _0x473514=!0x1;return Object[_0x568465(0xc7)](_0x5aa2e7)[_0x568465(0xc2)](([_0x1a0c85,_0x3117fd])=>{const _0x317e39=_0x568465;_0x3117fd[_0x317e39(0xb9)][_0x317e39(0xb2)]()&&(_0x473514=!0x0,_0x3117fd['sparklines'][_0x317e39(0x115)](_0x39bed4[_0x317e39(0x9e)],_0x39bed4[_0x317e39(0xa5)]-_0x39bed4['startRow']+0x1),_0x1f0a0e[_0x1a0c85]={'config':_0x3117fd[_0x317e39(0x10c)],'sparklines':_0x3117fd[_0x317e39(0xb9)][_0x317e39(0x87)]()});}),_0x473514&&_0x31c715[_0x568465(0xea)]({'id':V['id'],'params':{'unitId':_0x9dac24,'subUnitId':_0x431f2b,'sparklineConfigMap':_0x1f0a0e}}),_0x5116d5['push']({'id':V['id'],'params':{'unitId':_0x9dac24,'subUnitId':_0x431f2b,'sparklineConfigMap':_0x291a90}}),{'redos':_0x31c715,'undos':_0x5116d5,'preRedos':_0x1207f1,'preUndos':_0x1fe03c};}[_0x58b8b9(0x7e)](_0x121d94,_0x53350c,_0x5a9b62){const _0x1560e1=_0x58b8b9;var _0x3b90b8,_0x3c22a6;const {range:_0x26d3df}=_0x121d94,_0x2de9ca=new Set(),_0x5cd953={},_0x1165af={},_0xa608d4=[],_0x1390a5=[],_0x50b763=[],_0x385042=[];if(!_0x3bb214(this['_univerInstanceService'],{'unitId':_0x53350c,'subUnitId':_0x5a9b62}))return{'redos':_0x1390a5,'undos':_0xa608d4};const _0x293c01=this['_sparklineDataSourceModel'][_0x1560e1(0x72)](_0x53350c,_0x5a9b62);if(!_0x293c01)return{'redos':_0x1390a5,'undos':_0xa608d4};if(!((_0x3c22a6=(_0x3b90b8=this[_0x1560e1(0x122)]['getSparklineCache']()['sparklineAnchorMap'][_0x1560e1(0x11e)](_0x53350c))==null?void 0x0:_0x3b90b8[_0x1560e1(0x11e)](_0x5a9b62))==null?void 0x0:_0x3c22a6[_0x1560e1(0xe8)]))return{'redos':_0x1390a5,'undos':_0xa608d4};for(const [_0x4706e3,_0x272f15]of _0x293c01){const _0x3aa01e=_0x272f15[_0x1560e1(0xb9)];_0x3aa01e[_0x1560e1(0xc4)]((_0x358f38,_0x1e817e,_0x5f11c9)=>{const _0xf84d7d=_0x1560e1;if(_0x2e01c8[_0xf84d7d(0x127)](_0x26d3df,_0x5f11c9)){_0x2de9ca[_0xf84d7d(0xc9)](_0x4706e3);let _0x6570dd=_0x1165af[_0x4706e3];_0x6570dd||(_0x6570dd={'config':_0x272f15[_0xf84d7d(0x10c)],'sparklines':_0x272f15['sparklines'][_0xf84d7d(0x87)]()},_0x1165af[_0x4706e3]=_0x6570dd);let _0x627103=_0x5cd953[_0x4706e3];_0x627103||(_0x627103={'config':_0x272f15[_0xf84d7d(0x10c)],'sparklines':new _0x4c97f1(_0x272f15[_0xf84d7d(0xb9)][_0xf84d7d(0x87)]())},_0x5cd953[_0x4706e3]=_0x627103);const _0x4cb71f=_0x390bae(_0x5f11c9,{'id':_0x434f82['id'],'params':_0x121d94});_0x4cb71f?_0x627103[_0xf84d7d(0xb9)][_0xf84d7d(0x8a)](_0x358f38,_0x1e817e,_0x4cb71f):_0x627103[_0xf84d7d(0xb9)][_0xf84d7d(0x8a)](_0x358f38,_0x1e817e,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x8f2544[_0xf84d7d(0xc8)]});}}),_0x3aa01e[_0x1560e1(0xc4)]((_0x33d5db,_0x5ca9ec,_0x46a191)=>{const _0x455e9e=_0x1560e1;if(_0x5ca9ec<=_0x26d3df[_0x455e9e(0x97)]&&_0x5ca9ec>=_0x26d3df[_0x455e9e(0xc3)]){_0x2de9ca[_0x455e9e(0xc9)](_0x4706e3);let _0x305852=_0x1165af[_0x4706e3];_0x305852||(_0x305852={'config':_0x272f15['config'],'sparklines':_0x272f15[_0x455e9e(0xb9)][_0x455e9e(0x87)]()},_0x1165af[_0x4706e3]=_0x305852);let _0x56eb25=_0x5cd953[_0x4706e3];_0x56eb25||(_0x56eb25={'config':_0x272f15[_0x455e9e(0x10c)],'sparklines':new _0x4c97f1(_0x272f15[_0x455e9e(0xb9)][_0x455e9e(0x87)]())},_0x5cd953[_0x4706e3]=_0x56eb25);}});}_0x385042[_0x1560e1(0xea)]({'id':y['id'],'params':{'unitId':_0x53350c,'subUnitId':_0x5a9b62,'groupIds':Array[_0x1560e1(0x106)](_0x2de9ca),'isSingle':!0x1}}),_0x50b763[_0x1560e1(0xea)]({'id':y['id'],'params':{'unitId':_0x53350c,'subUnitId':_0x5a9b62,'groupIds':Array[_0x1560e1(0x106)](_0x2de9ca),'isSingle':!0x1}});const _0x4358dd={};let _0x3d003f=!0x1;return Object['entries'](_0x5cd953)[_0x1560e1(0xc2)](([_0x12233c,_0x422d1a])=>{const _0x21aa7e=_0x1560e1;_0x422d1a[_0x21aa7e(0xb9)]['getSizeOf']()&&(_0x3d003f=!0x0,_0x422d1a['sparklines'][_0x21aa7e(0xce)](_0x26d3df[_0x21aa7e(0xc3)],_0x26d3df[_0x21aa7e(0x97)]-_0x26d3df[_0x21aa7e(0xc3)]+0x1),_0x4358dd[_0x12233c]={'config':_0x422d1a['config'],'sparklines':_0x422d1a[_0x21aa7e(0xb9)]['clone']()});}),_0x3d003f&&_0x1390a5[_0x1560e1(0xea)]({'id':V['id'],'params':{'unitId':_0x53350c,'subUnitId':_0x5a9b62,'sparklineConfigMap':_0x4358dd}}),_0xa608d4[_0x1560e1(0xea)]({'id':V['id'],'params':{'unitId':_0x53350c,'subUnitId':_0x5a9b62,'sparklineConfigMap':_0x1165af}}),{'redos':_0x1390a5,'undos':_0xa608d4,'preRedos':_0x50b763,'preUndos':_0x385042};}[_0x58b8b9(0xa7)](){const _0x3e20c0=_0x58b8b9;this[_0x3e20c0(0x8c)](this[_0x3e20c0(0x10d)]['onCommandExecuted'](_0x482486=>{const _0x414718=_0x3e20c0;if(_0x482486['id']===_0x10e8ac['id']){const _0x158659=_0x482486['params'],{unitId:_0x23572e,subUnitId:_0x49e4a5,range:_0x505ea4}=_0x158659,_0x224a04=_0x505ea4['startColumn'],_0x260027=_0x505ea4[_0x414718(0x97)]-_0x505ea4[_0x414718(0xc3)]+0x1,_0xbc89fd=this[_0x414718(0x122)][_0x414718(0x72)](_0x23572e,_0x49e4a5);if(!_0xbc89fd)return;for(const [_0x2f1710,_0x351af8]of _0xbc89fd){this[_0x414718(0x122)]['clearSparklineCache'](_0x23572e,_0x49e4a5,_0x2f1710);const _0x4d2559=_0x351af8['sparklines'];_0x4d2559['forValue']((_0x1bfeda,_0x4700a5,_0x47f00a)=>{const _0x2f42b5=_0x414718,_0x29b44d={..._0x47f00a};_0x224a04<=_0x29b44d[_0x2f42b5(0xc3)]?(_0x29b44d[_0x2f42b5(0xc3)]+=_0x260027,_0x29b44d[_0x2f42b5(0x97)]+=_0x260027):_0x224a04>_0x29b44d[_0x2f42b5(0x97)]||(_0x29b44d[_0x2f42b5(0x97)]+=_0x260027),_0x4d2559[_0x2f42b5(0x8a)](_0x1bfeda,_0x4700a5,_0x29b44d);});const _0x1dc757=_0x4d2559['getMatrix']();for(const _0x1f7e9f in _0x1dc757){const _0x4c4ba9=_0x1dc757[Number(_0x1f7e9f)];if(!_0x4c4ba9)continue;const _0x1e9975=Object['keys'](_0x4c4ba9)[_0x414718(0x11d)](Number),_0x1bb1c7=Math[_0x414718(0xfe)](..._0x1e9975);for(let _0xdcb827=_0x1bb1c7;_0xdcb827>=_0x224a04;_0xdcb827--)_0xdcb827>=_0x224a04&&_0x4c4ba9[_0xdcb827]&&(_0x4c4ba9[_0xdcb827+_0x260027]=_0x4c4ba9[_0xdcb827],delete _0x4c4ba9[_0xdcb827]);}this[_0x414718(0x122)]['updateSparklineExtraNum'](_0x23572e,_0x49e4a5,_0x2f1710);}}else{if(_0x482486['id']===_0x479c63['id']){const _0x4ffdab=_0x482486[_0x414718(0x9a)],{unitId:_0x151e58,subUnitId:_0x49196d,range:_0x25c16b}=_0x4ffdab,_0x521846=_0x25c16b[_0x414718(0x9e)],_0x448e60=_0x25c16b[_0x414718(0xa5)]-_0x25c16b[_0x414718(0x9e)]+0x1,_0x43016f=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x151e58,_0x49196d);if(!_0x43016f)return;for(const [_0x107f86,_0x4b2206]of _0x43016f){this[_0x414718(0x122)][_0x414718(0xbf)](_0x151e58,_0x49196d,_0x107f86);const _0x3ee7d7=_0x4b2206['sparklines'];_0x3ee7d7[_0x414718(0xc4)]((_0x17dc7b,_0x1c5e69,_0x5052a4)=>{const _0x1a2f2c=_0x414718,_0xca4e11={..._0x5052a4};_0x521846<=_0xca4e11['startRow']?(_0xca4e11[_0x1a2f2c(0x9e)]+=_0x448e60,_0xca4e11[_0x1a2f2c(0xa5)]+=_0x448e60):_0x521846>_0xca4e11[_0x1a2f2c(0xa5)]||(_0xca4e11[_0x1a2f2c(0xa5)]+=_0x448e60),_0x3ee7d7[_0x1a2f2c(0x8a)](_0x17dc7b,_0x1c5e69,_0xca4e11);});const _0x4119b0=_0x3ee7d7[_0x414718(0x95)](),_0x19b665=Object[_0x414718(0x119)](_0x4119b0)[_0x414718(0x11d)](Number),_0x13c3ae=Math['max'](..._0x19b665);for(let _0xce37a4=_0x13c3ae;_0xce37a4>=_0x521846;_0xce37a4--)_0xce37a4>=_0x521846&&_0x4119b0[_0xce37a4]&&(_0x4119b0[_0xce37a4+_0x448e60]=_0x4119b0[_0xce37a4],delete _0x4119b0[_0xce37a4]);this[_0x414718(0x122)][_0x414718(0x77)](_0x151e58,_0x49196d,_0x107f86);}}else{if(_0x482486['id']===_0x434f82['id']){const _0x1cf638=_0x482486['params'],{range:_0x428f36,unitId:_0x9bdf31,subUnitId:_0x955c42}=_0x1cf638,_0x1f45d6=this[_0x414718(0x122)][_0x414718(0x72)](_0x9bdf31,_0x955c42);if(!_0x1f45d6)return;for(const [_0x11bde5,_0x3bc05b]of _0x1f45d6){const _0x480450=_0x3bc05b[_0x414718(0xb9)];_0x480450['forValue']((_0xc6c42,_0x217f17,_0x5c2db3)=>{const _0x1f4fac=_0x390bae(_0x5c2db3,_0x482486);_0x1f4fac?_0x480450['setValue'](_0xc6c42,_0x217f17,_0x1f4fac):_0x480450['setValue'](_0xc6c42,_0x217f17,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x8f2544['NORMAL']});}),_0x480450['removeColumns'](_0x428f36[_0x414718(0xc3)],_0x428f36[_0x414718(0x97)]-_0x428f36[_0x414718(0xc3)]+0x1);}this[_0x414718(0x122)][_0x414718(0x101)](_0x9bdf31,_0x955c42);}else{if(_0x482486['id']===_0x1d50e2['id']){const _0x2277f8=_0x482486[_0x414718(0x9a)],{range:_0x5bf7da,unitId:_0x3528b1,subUnitId:_0x1b234a}=_0x2277f8,_0x2501e9=this[_0x414718(0x122)]['getSubUnitSparkline'](_0x3528b1,_0x1b234a);if(!_0x2501e9)return;for(const [_0x2d5070,_0x521c5f]of _0x2501e9){const _0x501e10=_0x521c5f[_0x414718(0xb9)];_0x501e10[_0x414718(0xc4)]((_0x4494b0,_0x169b79,_0x26d867)=>{const _0x847c8f=_0x414718,_0xedf544=_0x390bae(_0x26d867,_0x482486);_0xedf544?_0x501e10[_0x847c8f(0x8a)](_0x4494b0,_0x169b79,_0xedf544):_0x501e10[_0x847c8f(0x8a)](_0x4494b0,_0x169b79,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x8f2544[_0x847c8f(0xc8)]});}),_0x501e10[_0x414718(0x115)](_0x5bf7da[_0x414718(0x9e)],_0x5bf7da['endRow']-_0x5bf7da[_0x414718(0x9e)]+0x1);}this[_0x414718(0x122)]['reBuildAnchorCache'](_0x3528b1,_0x1b234a);}else{if(_0x482486['id']===_0x393e23['id']){const _0x50396f=_0x482486[_0x414718(0x9a)],{unitId:_0x2cc494,subUnitId:_0x2ef26f,sourceRange:_0x463bb0,targetRange:_0x55be05}=_0x50396f,_0x50100b=this[_0x414718(0x122)][_0x414718(0x72)](_0x2cc494,_0x2ef26f);if(!_0x50100b)return;for(const [_0xa311d5,_0x14bc19]of _0x50100b){const _0x2004d9=_0x14bc19[_0x414718(0xb9)];_0x2004d9[_0x414718(0xc4)]((_0x3c0d3c,_0x1e0b85,_0x5caad2)=>{const _0x3a176d=_0x414718,_0x382730=_0x390bae(_0x5caad2,_0x482486);_0x382730?_0x2004d9['setValue'](_0x3c0d3c,_0x1e0b85,_0x382730):_0x2004d9[_0x3a176d(0x8a)](_0x3c0d3c,_0x1e0b85,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x8f2544[_0x3a176d(0xc8)]});}),_0x2004d9[_0x414718(0xa3)](_0x463bb0[_0x414718(0xc3)],_0x463bb0[_0x414718(0x97)]-_0x463bb0[_0x414718(0xc3)]+0x1,_0x55be05['startColumn']);}this[_0x414718(0x122)][_0x414718(0x101)](_0x2cc494,_0x2ef26f);}else{if(_0x482486['id']===_0x5daf06['id']){const _0x3d32d4=_0x482486[_0x414718(0x9a)],{unitId:_0x5b487a,subUnitId:_0x444dfe,sourceRange:_0x4645bf,targetRange:_0x47e797}=_0x3d32d4,_0x4b539e=this[_0x414718(0x122)]['getSubUnitSparkline'](_0x5b487a,_0x444dfe);if(!_0x4b539e)return;for(const [_0x345d6b,_0x360242]of _0x4b539e){const _0x1813f1=_0x360242['sparklines'];_0x1813f1[_0x414718(0xc4)]((_0x40b86c,_0x526bdb,_0x19bcac)=>{const _0x480eed=_0x414718,_0x4276f6=_0x390bae(_0x19bcac,_0x482486);_0x4276f6?_0x1813f1[_0x480eed(0x8a)](_0x40b86c,_0x526bdb,_0x4276f6):_0x1813f1[_0x480eed(0x8a)](_0x40b86c,_0x526bdb,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x8f2544['NORMAL']});}),_0x1813f1[_0x414718(0xaa)](_0x4645bf[_0x414718(0x9e)],_0x4645bf[_0x414718(0xa5)]-_0x4645bf['startRow']+0x1,_0x47e797[_0x414718(0x9e)]);}this[_0x414718(0x122)][_0x414718(0x101)](_0x5b487a,_0x444dfe);}else{if(_0x482486['id']===_0xced34e['id']){const _0x57d86b=_0x482486['params'],{fromRange:_0x3d41e1,toRange:_0x576a86,unitId:_0x113956,from:_0x287673,to:_0x6a7af5}=_0x57d86b;if(_0x287673['subUnitId']!==_0x6a7af5[_0x414718(0x108)])return;const _0x3a7fe9=_0x287673[_0x414718(0x108)],{startRow:_0x34f72f,endRow:_0x3a3a92,startColumn:_0x499f73,endColumn:_0xc418aa}=_0x3d41e1,{startRow:_0x2c50fe,startColumn:_0x5bb76d}=_0x576a86,_0x2111b0=_0x2c50fe-_0x34f72f,_0x33c60f=_0x5bb76d-_0x499f73,_0x30140e=this['_sparklineDataSourceModel'][_0x414718(0x72)](_0x113956,_0x3a7fe9);if(!(_0x30140e!=null&&_0x30140e['size']))return;for(let _0xc34b9c=_0x34f72f;_0xc34b9c<=_0x3a3a92;_0xc34b9c++)for(let _0x430e14=_0x499f73;_0x430e14<=_0xc418aa;_0x430e14++){const _0x2e2229=this[_0x414718(0x122)][_0x414718(0xff)](_0x113956,_0x3a7fe9,_0xc34b9c,_0x430e14);if(_0x2e2229){const _0x2423c8=this[_0x414718(0x122)][_0x414718(0xd4)](_0x113956,_0x3a7fe9,_0x2e2229);if(_0x2423c8){const _0x14c211=_0x2423c8[_0x414718(0xb9)][_0x414718(0xd8)](_0xc34b9c,_0x430e14);_0x14c211&&(_0x2423c8['sparklines']['setValue'](_0xc34b9c+_0x2111b0,_0x430e14+_0x33c60f,_0x14c211),_0x2423c8[_0x414718(0xb9)][_0x414718(0xdf)](_0xc34b9c,_0x430e14));}}}for(const [_0x5c554c,_0x3da0cf]of _0x30140e){const _0x1bc53b=_0x3da0cf[_0x414718(0xb9)];_0x1bc53b[_0x414718(0xc4)]((_0x1e0815,_0x246054,_0xbda809)=>{const _0x43f741=_0x414718,_0x28cda4={..._0xbda809};_0x2e01c8[_0x43f741(0x91)](_0x3d41e1,_0xbda809)&&(_0x28cda4['startRow']+=_0x2111b0,_0x28cda4[_0x43f741(0xa5)]+=_0x2111b0,_0x28cda4[_0x43f741(0xc3)]+=_0x33c60f,_0x28cda4[_0x43f741(0x97)]+=_0x33c60f),_0x1bc53b['setValue'](_0x1e0815,_0x246054,_0x28cda4);});}this[_0x414718(0x122)][_0x414718(0x101)](_0x113956,_0x3a7fe9);}}}}}}}}));}};Me=Kt([ge(0x0,_0x2cf83a(_0x4c768d)),ge(0x1,_0x2cf83a(_0x295a71)),ge(0x2,_0x3eea3e),ge(0x3,_0x2cf83a(x))],Me);var Xt=Object[_0x58b8b9(0xb6)],zt=(_0x319318,_0x5bb8e2,_0x246fb0,_0x1086e9)=>{const _0x53e1cf=_0x58b8b9;for(var _0x12a75b=_0x1086e9>0x1?void 0x0:_0x1086e9?Xt(_0x5bb8e2,_0x246fb0):_0x5bb8e2,_0x598cfd=_0x319318[_0x53e1cf(0x71)]-0x1,_0x289056;_0x598cfd>=0x0;_0x598cfd--)(_0x289056=_0x319318[_0x598cfd])&&(_0x12a75b=_0x289056(_0x12a75b)||_0x12a75b);return _0x12a75b;},Be=(_0x9a15ba,_0x5e521c)=>(_0x3088fe,_0x3098d1)=>_0x5e521c(_0x3088fe,_0x3098d1,_0x9a15ba);let Re=class extends _0x2406d1{constructor(_0x57e42d,_0x463ce3){const _0x575028=_0x58b8b9;super(),this[_0x575028(0xfb)]=_0x57e42d,this['_sparklineDataSourceModel']=_0x463ce3,this['_initSnapshot']();}[_0x58b8b9(0xdd)](){const _0x33c043=_0x58b8b9,_0x254dad=_0xa696bb=>{const _0x4a98bd=_0x1eaa,_0x57a73d=this[_0x4a98bd(0x122)]['toJSON'](_0xa696bb);return _0x57a73d?JSON['stringify'](_0x57a73d):'';},_0x281252=_0x7f4bf=>_0x7f4bf?JSON['parse'](_0x7f4bf):{};this[_0x33c043(0x8c)](this[_0x33c043(0xfb)][_0x33c043(0x82)]({'toJson':_0x254dad,'parseJson':_0x281252,'pluginName':Ke,'businesses':[_0x66a4f2[_0x33c043(0x125)]],'onLoad':(_0x232281,_0x135c0d)=>{const _0x8d8205=_0x33c043;this[_0x8d8205(0x122)][_0x8d8205(0x75)](_0x135c0d);},'onUnLoad':_0x40ceaf=>{this['_sparklineDataSourceModel']['deleteUnit'](_0x40ceaf);}}));}};Re=zt([Be(0x0,_0x2cf83a(_0x460bba)),Be(0x1,_0x2cf83a(x))],Re);var Jt=Object[_0x58b8b9(0xee)],Zt=Object['getOwnPropertyDescriptor'],Yt=(_0x543120,_0x5ab61a,_0x2a98f8)=>_0x5ab61a in _0x543120?Jt(_0x543120,_0x5ab61a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a98f8}):_0x543120[_0x5ab61a]=_0x2a98f8,qt=(_0x5281de,_0x3edc86,_0x36da34,_0xe26208)=>{const _0x4d46f9=_0x58b8b9;for(var _0x342c82=_0xe26208>0x1?void 0x0:_0xe26208?Zt(_0x3edc86,_0x36da34):_0x3edc86,_0x918486=_0x5281de[_0x4d46f9(0x71)]-0x1,_0x5c7620;_0x918486>=0x0;_0x918486--)(_0x5c7620=_0x5281de[_0x918486])&&(_0x342c82=_0x5c7620(_0x342c82)||_0x342c82);return _0x342c82;},He=(_0xa3fcec,_0x5b63b5)=>(_0x39bff4,_0x4e09e5)=>_0x5b63b5(_0x39bff4,_0x4e09e5,_0xa3fcec),ze=(_0x597ece,_0x290ba4,_0x2c98ea)=>Yt(_0x597ece,typeof _0x290ba4!='symbol'?_0x290ba4+'':_0x290ba4,_0x2c98ea);let ve=class extends _0x5f0837{constructor(_0x1e4dd0={},_0x4323c1,_0x5e8bc9){const _0x139dae=_0x58b8b9;super(),this[_0x139dae(0xd0)]=_0x1e4dd0,this[_0x139dae(0x81)]=_0x4323c1,this[_0x139dae(0x10d)]=_0x5e8bc9,this[_0x139dae(0x84)](),this['_initRegisterCommand']();}['_initDependencies'](){const _0x101c2f=_0x58b8b9;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x101c2f(0xc2)](_0x1efc40=>{const _0x1ddf6a=_0x101c2f;this[_0x1ddf6a(0x81)][_0x1ddf6a(0xc9)](_0x1efc40);}),_0x1dbe46(this[_0x101c2f(0x81)],[[Re]]);}[_0x58b8b9(0xba)](){_0x1dbe46(this['_injector'],[[me],[_e],[Se],[Me],[Ce],[ke]]);}['_initRegisterCommand'](){const _0x511fe4=_0x58b8b9;[Nt,V,Ot,y,xt,Oe][_0x511fe4(0xc2)](_0x280056=>this[_0x511fe4(0x10d)]['registerCommand'](_0x280056));}};ze(ve,'pluginName',Ke),ze(ve,_0x58b8b9(0xe1),_0x66a4f2[_0x58b8b9(0x125)]),ve=qt([_0x4deddf(_0x49b819),He(0x1,_0x2cf83a(_0x35a4a6)),He(0x2,_0x2cf83a(_0x4c768d))],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 _0x50ed10=_0x2175;(function(_0x1b4b42,_0x43d6ff){const _0x5976f4=_0x2175,_0x2b4932=_0x1b4b42();while(!![]){try{const _0x15c103=parseInt(_0x5976f4(0x1e9))/0x1+-parseInt(_0x5976f4(0x183))/0x2+-parseInt(_0x5976f4(0x18c))/0x3+-parseInt(_0x5976f4(0x1ad))/0x4*(parseInt(_0x5976f4(0x1eb))/0x5)+parseInt(_0x5976f4(0x21f))/0x6+parseInt(_0x5976f4(0x1a4))/0x7*(parseInt(_0x5976f4(0x1ef))/0x8)+parseInt(_0x5976f4(0x190))/0x9;if(_0x15c103===_0x43d6ff)break;else _0x2b4932['push'](_0x2b4932['shift']());}catch(_0x50b421){_0x2b4932['push'](_0x2b4932['shift']());}}}(_0x1858,0xf2b28));var qe=Object[_0x50ed10(0x224)],Qe=(_0x2348f8,_0x1fca59,_0x1b216f)=>_0x1fca59 in _0x2348f8?qe(_0x2348f8,_0x1fca59,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b216f}):_0x2348f8[_0x1fca59]=_0x1b216f,se=(_0xaed67,_0x434b9a,_0x14cf37)=>Qe(_0xaed67,typeof _0x434b9a!='symbol'?_0x434b9a+'':_0x434b9a,_0x14cf37);import{ObjectMatrix as _0x4bef43,Inject as _0x2faf1d,IUniverInstanceService as _0x2f6da6,Disposable as _0x3343ec,isValidRange as _0x482e2f,CellValueType as _0x5c222a,ColorKit as _0xde648d,CommandType as _0x40fc04,Range as _0x42b586,IUndoRedoService as _0x4fac18,generateRandomId as _0x1af252,ICommandService as _0xde7cb6,Tools as _0x4918ed,sequenceExecute as _0x1517b6,Rectangle as _0x5b874d,cellToRange as _0x257a64,DisposableCollection as _0x3dc490,RANGE_TYPE as _0x225eb7,UniverInstanceType as _0x122023,IResourceManagerService as _0x9606e,DependentOn as _0x2fe288,Injector as _0x3b8395,Plugin as _0x4a84bc,touchDependencies as _0x4be062}from'@univerjs/core';import{getSheetCommandTarget as _0x2dcb92,SheetsSelectionsService as _0x5585b0,SheetInterceptorService as _0x297daa,ClearSelectionAllCommand as _0x9066c4,CopySheetCommand as _0x5077a8,IExclusiveRangeService as _0x472c63,SetRangeValuesMutation as _0x4d5298,ReorderRangeMutation as _0x354d09,SetRowHiddenMutation as _0x3881b3,SetColHiddenMutation as _0xbe1112,SetRowVisibleMutation as _0x4f0128,SetColVisibleMutation as _0x1748f7,AddWorksheetMergeCommand as _0x1bf707,RefRangeService as _0x5bf560,SetWorksheetActivateCommand as _0x54d414,RemoveRowCommand as _0x267ae8,RemoveColCommand as _0x55a7d0,adjustRangeOnMutation as _0x20f85c,RemoveRowMutation as _0x4228f5,RemoveColMutation as _0x44c03b,InsertColMutation as _0x2b9448,InsertRowMutation as _0x2cc34d,MoveColsMutation as _0x2053a3,MoveRowsMutation as _0x3e660e,MoveRangeMutation as _0x4e91f0}from'@univerjs/sheets';import{Subject as _0x4f7b46}from'rxjs';import{UniverLicensePlugin as _0x239314}from'@univerjs-pro/license';function Fe(_0x31e8a7,_0x565295){const _0x595180=_0x50ed10,_0x59576d=new _0x4bef43(),_0x530db9=[],_0x1fb5e5=_0x31e8a7[_0x595180(0x1e0)]>0x1;let _0x2ff912=0x0,_0x2bfc1e=0x0;for(const _0x2fc4a3 of _0x31e8a7)_0x2ff912+=_0x2fc4a3[_0x595180(0x1ec)]-_0x2fc4a3[_0x595180(0x1f4)]+0x1,_0x2bfc1e+=_0x2fc4a3['endColumn']-_0x2fc4a3[_0x595180(0x1d7)]+0x1;for(const _0x30ed9c of _0x565295)for(let _0x912640=_0x30ed9c[_0x595180(0x1f4)];_0x912640<=_0x30ed9c[_0x595180(0x1ec)];_0x912640++)for(let _0xdb06ac=_0x30ed9c[_0x595180(0x1d7)];_0xdb06ac<=_0x30ed9c[_0x595180(0x1ac)];_0xdb06ac++)_0x530db9[_0x595180(0x223)]({'row':_0x912640,'column':_0xdb06ac});if(_0x530db9[_0x595180(0x1e0)]===_0x2ff912)_0x1fb5e5?_0x530db9[_0x595180(0x1fd)]((_0x1aa6d8,_0x177899)=>{const _0x1651a4=_0x595180,_0x185e87=_0x31e8a7[_0x177899],_0x455129={'startRow':_0x185e87[_0x1651a4(0x1f4)],'startColumn':_0x185e87['startColumn'],'endRow':_0x185e87[_0x1651a4(0x1f4)],'endColumn':_0x185e87['endColumn']};_0x59576d[_0x1651a4(0x1ae)](_0x1aa6d8['row'],_0x1aa6d8[_0x1651a4(0x187)],_0x455129);}):_0x530db9['forEach']((_0x3fa700,_0x5c97f4)=>{const _0x595bad=_0x595180,_0x24fcd4=_0x31e8a7[0x0],_0x2e42c1={'startRow':_0x24fcd4['startRow']+_0x5c97f4,'startColumn':_0x24fcd4[_0x595bad(0x1d7)],'endRow':_0x24fcd4[_0x595bad(0x1f4)]+_0x5c97f4,'endColumn':_0x24fcd4[_0x595bad(0x1ac)]};_0x59576d[_0x595bad(0x1ae)](_0x3fa700['row'],_0x3fa700['column'],_0x2e42c1);});else{if(_0x530db9[_0x595180(0x1e0)]===_0x2bfc1e)_0x1fb5e5?_0x530db9['forEach']((_0x1a019e,_0x13acea)=>{const _0x3af211=_0x595180,_0x1b2e8c=_0x31e8a7[_0x13acea],_0x105823={'startRow':_0x1b2e8c[_0x3af211(0x1f4)],'startColumn':_0x1b2e8c[_0x3af211(0x1d7)],'endRow':_0x1b2e8c[_0x3af211(0x1ec)],'endColumn':_0x1b2e8c[_0x3af211(0x1d7)]};_0x59576d[_0x3af211(0x1ae)](_0x1a019e[_0x3af211(0x1ba)],_0x1a019e[_0x3af211(0x187)],_0x105823);}):_0x530db9['forEach']((_0x25273a,_0x5991cd)=>{const _0x34c098=_0x595180,_0x1052e0=_0x31e8a7[0x0],_0x50f13f={'startRow':_0x1052e0[_0x34c098(0x1f4)],'startColumn':_0x1052e0[_0x34c098(0x1d7)]+_0x5991cd,'endRow':_0x1052e0[_0x34c098(0x1ec)],'endColumn':_0x1052e0[_0x34c098(0x1d7)]+_0x5991cd};_0x59576d['setValue'](_0x25273a[_0x34c098(0x1ba)],_0x25273a['column'],_0x50f13f);});else{if(_0x530db9[_0x595180(0x1e0)]===_0x31e8a7['length'])_0x31e8a7[_0x595180(0x202)](_0x1578dd=>!(_0x1578dd[_0x595180(0x1f4)]!==_0x1578dd[_0x595180(0x1ec)]&&_0x1578dd['startColumn']!==_0x1578dd['endColumn']))&&_0x530db9[_0x595180(0x1fd)]((_0x43b02d,_0x252d26)=>{const _0x210b13=_0x595180,_0xc1a367=_0x31e8a7[_0x252d26];_0x59576d[_0x210b13(0x1ae)](_0x43b02d[_0x210b13(0x1ba)],_0x43b02d[_0x210b13(0x187)],_0xc1a367);});else throw new Error(_0x595180(0x22e));}}return _0x59576d;}const Ke=_0x50ed10(0x204),Le={'standard':[_0x50ed10(0x1fb),_0x50ed10(0x186)],'specialty':[_0x50ed10(0x228),'rgb(30,177,189)'],'distinctive':[_0x50ed10(0x1a5),_0x50ed10(0x1dc)],'soft':[_0x50ed10(0x1a6),_0x50ed10(0x1a8)],'fresh':[_0x50ed10(0x22b),_0x50ed10(0x1d8)]},on=[_0x50ed10(0x193),_0x50ed10(0x185),_0x50ed10(0x1c9),_0x50ed10(0x1c5),'negativePoint',_0x50ed10(0x1dd)];var Xe=(_0x363499=>(_0x363499['STANDARD']=_0x50ed10(0x206),_0x363499[_0x50ed10(0x201)]=_0x50ed10(0x19d),_0x363499['DISTINCTIVE']=_0x50ed10(0x219),_0x363499[_0x50ed10(0x19c)]=_0x50ed10(0x23c),_0x363499[_0x50ed10(0x1b1)]=_0x50ed10(0x21c),_0x363499[_0x50ed10(0x1d3)]='custom',_0x363499))(Xe||{}),Dt=(_0x42d92a=>(_0x42d92a[_0x42d92a[_0x50ed10(0x21d)]=0x1]=_0x50ed10(0x21d),_0x42d92a[_0x42d92a[_0x50ed10(0x1f7)]=0x2]=_0x50ed10(0x1f7),_0x42d92a[_0x42d92a[_0x50ed10(0x192)]=0x3]=_0x50ed10(0x192),_0x42d92a[_0x42d92a[_0x50ed10(0x1cf)]=0x4]=_0x50ed10(0x1cf),_0x42d92a))(Dt||{}),J=(_0x12c289=>(_0x12c289[_0x50ed10(0x19b)]=_0x50ed10(0x1c0),_0x12c289[_0x50ed10(0x1e2)]=_0x50ed10(0x20a),_0x12c289[_0x50ed10(0x218)]=_0x50ed10(0x225),_0x12c289))(J||{}),De=(_0x5bfded=>(_0x5bfded[_0x5bfded[_0x50ed10(0x22a)]=0x1]=_0x50ed10(0x22a),_0x5bfded[_0x5bfded['GROUP_EXTREMUM']=0x2]='GROUP_EXTREMUM',_0x5bfded[_0x5bfded[_0x50ed10(0x213)]=0x3]='CUSTOM_EXTREMUM',_0x5bfded))(De||{}),Et=Object[_0x50ed10(0x1df)],Vt=(_0x516972,_0x5bbc9a,_0x301ff5,_0x3d29b4)=>{for(var _0x28bc8b=_0x3d29b4>0x1?void 0x0:_0x3d29b4?Et(_0x5bbc9a,_0x301ff5):_0x5bbc9a,_0x537816=_0x516972['length']-0x1,_0x3a0c3f;_0x537816>=0x0;_0x537816--)(_0x3a0c3f=_0x516972[_0x537816])&&(_0x28bc8b=_0x3a0c3f(_0x28bc8b)||_0x28bc8b);return _0x28bc8b;},yt=(_0x19f43a,_0x1781d2)=>(_0x237fc4,_0x69428)=>_0x1781d2(_0x237fc4,_0x69428,_0x19f43a);let x=class extends _0x3343ec{constructor(_0x38d7d8){const _0x29926f=_0x50ed10;super(),se(this,_0x29926f(0x1a2),new Map()),se(this,'_sparklineAnchorMap',new Map()),se(this,_0x29926f(0x19a),new _0x4f7b46()),se(this,'updateConfig$',this[_0x29926f(0x19a)][_0x29926f(0x1b0)]()),this[_0x29926f(0x189)]=_0x38d7d8;}['_ensureConfigMap'](_0x33ee60,_0x2940fb){const _0x2504fc=_0x50ed10;let _0x3012c3=this[_0x2504fc(0x1a2)][_0x2504fc(0x1ee)](_0x33ee60);_0x3012c3||(_0x3012c3=new Map(),this[_0x2504fc(0x1a2)]['set'](_0x33ee60,_0x3012c3));let _0x22f300=_0x3012c3[_0x2504fc(0x1ee)](_0x2940fb);return _0x22f300||(_0x22f300=new Map(),_0x3012c3[_0x2504fc(0x217)](_0x2940fb,_0x22f300)),_0x22f300;}['_ensureAnchorMatrix'](_0xfba906,_0x4fab6c){const _0x1fb6a0=_0x50ed10;let _0x232d95=this['_sparklineAnchorMap'][_0x1fb6a0(0x1ee)](_0xfba906);_0x232d95||(_0x232d95=new Map(),this['_sparklineAnchorMap'][_0x1fb6a0(0x217)](_0xfba906,_0x232d95));let _0x222f80=_0x232d95['get'](_0x4fab6c);return _0x222f80||(_0x222f80={'matrix':new _0x4bef43(),'extra':{}},_0x232d95[_0x1fb6a0(0x217)](_0x4fab6c,_0x222f80)),_0x222f80;}[_0x50ed10(0x221)](_0x1a4120,_0x5b160e,_0x4a284a,_0x4a93bb=_0x50ed10(0x217)){const _0x378f3b=_0x50ed10;var _0x2688ed,_0x4ad2ff,_0x4713ac,_0x2b7217,_0x4b63e3,_0x167d61,_0x4860f6,_0x2c9fc4,_0x540cd7,_0x2640f0,_0x343129,_0x36b360,_0x599f57;const _0x4a8d0d=(_0x4ad2ff=(_0x2688ed=this[_0x378f3b(0x1a2)][_0x378f3b(0x1ee)](_0x1a4120))==null?void 0x0:_0x2688ed[_0x378f3b(0x1ee)](_0x5b160e))==null?void 0x0:_0x4ad2ff[_0x378f3b(0x1ee)](_0x4a284a);if(!_0x4a8d0d)return;const _0x270831=_0x2dcb92(this[_0x378f3b(0x189)],{'unitId':_0x1a4120,'subUnitId':_0x5b160e});if(!_0x270831)return;const _0x3a6993=this[_0x378f3b(0x1b5)](_0x1a4120,_0x5b160e),{extra:_0xe024d6,matrix:_0x4b7941}=_0x3a6993,{worksheet:_0x5cca03}=_0x270831;let _0x8ea77e=Number[_0x378f3b(0x1a0)],_0x542e0e=Number[_0x378f3b(0x1e3)];const _0x29aa8f=(_0x4713ac=_0x4a8d0d[_0x378f3b(0x1d2)][_0x378f3b(0x19f)])!=null?_0x4713ac:!0x1;_0x4a8d0d[_0x378f3b(0x1fe)][_0x378f3b(0x1b3)]((_0x29bfcb,_0xf7abbe,_0x937b28)=>{const _0x1b6bfc=_0x378f3b;var _0x2981d7,_0x322221,_0x427347;const _0x4d59b8=_0x937b28;let _0x2c866f=Number[_0x1b6bfc(0x1a0)],_0x1b9349=Number[_0x1b6bfc(0x1e3)],_0x24f8a4=0x0,_0x208f97=0x0;const _0x44a007=[];if(!_0x482e2f(_0x4d59b8))_0x4b7941[_0x1b6bfc(0x1ae)](_0x29bfcb,_0xf7abbe,{'groupId':_0x4a284a,'data':[],'max':_0x2c866f,'min':_0x1b9349,'highIndex':_0x24f8a4,'lowIndex':_0x208f97,'negativeIndexes':_0x44a007});else{const _0x1384a0=[];for(let _0x303dad=_0x4d59b8[_0x1b6bfc(0x1f4)];_0x303dad<=_0x4d59b8[_0x1b6bfc(0x1ec)];_0x303dad++){for(let _0x53c14d=_0x4d59b8[_0x1b6bfc(0x1d7)];_0x53c14d<=_0x4d59b8[_0x1b6bfc(0x1ac)];_0x53c14d++){const _0x5c8a18=_0x5cca03[_0x1b6bfc(0x195)](_0x303dad),_0x3e0515=_0x5cca03[_0x1b6bfc(0x1ff)](_0x53c14d);if(!_0x29aa8f&&(!_0x5c8a18||!_0x3e0515))continue;let _0xc5796c=0x0;const _0x1e4a4d=((_0x2981d7=_0x5cca03[_0x1b6bfc(0x1ab)](_0x303dad,_0x53c14d))==null?void 0x0:_0x2981d7['v'])!==void 0x0?_0x5cca03['getCellRaw'](_0x303dad,_0x53c14d):_0x5cca03[_0x1b6bfc(0x1e1)](_0x303dad,_0x53c14d);if(!_0x1e4a4d||_0x1e4a4d['v']===void 0x0||_0x1e4a4d['v']===null){const _0x15ee3e=(_0x322221=_0x4a8d0d[_0x1b6bfc(0x1d2)][_0x1b6bfc(0x239)])!=null?_0x322221:J[_0x1b6bfc(0x19b)];_0x15ee3e===J[_0x1b6bfc(0x1e2)]?_0xc5796c=0x0:_0x15ee3e===J[_0x1b6bfc(0x19b)]?_0xc5796c=_0x1b6bfc(0x17c):_0x15ee3e===J[_0x1b6bfc(0x218)]&&(_0xc5796c=_0x1b6bfc(0x1ca));}else{if(_0x1e4a4d['t']===_0x5c222a[_0x1b6bfc(0x19e)]||_0x1e4a4d['t']===_0x5c222a['FORCE_STRING']){const _0x2f466f=(_0x427347=_0x4a8d0d['config'][_0x1b6bfc(0x184)])!=null?_0x427347:J[_0x1b6bfc(0x19b)];_0x2f466f===J[_0x1b6bfc(0x1e2)]?_0xc5796c=0x0:_0x2f466f===J[_0x1b6bfc(0x19b)]?_0xc5796c='u-spacing':_0x2f466f===J['CONNECT_WITH_LINE']&&(_0xc5796c=_0x1b6bfc(0x1ca));}else _0x1e4a4d['t']===_0x5c222a[_0x1b6bfc(0x1cc)]?_0xc5796c=_0x1e4a4d['v']?0x1:0x0:_0x1e4a4d['t']===_0x5c222a[_0x1b6bfc(0x20c)]?_0xc5796c=Number(_0x1e4a4d['v']):_0xc5796c=_0x1e4a4d['v'];}if(_0x1384a0['push'](_0xc5796c),typeof _0xc5796c=='number'){_0x2c866f=Math[_0x1b6bfc(0x1bf)](_0x2c866f,_0xc5796c),_0x8ea77e=Math[_0x1b6bfc(0x1bf)](_0x8ea77e,_0xc5796c),_0x542e0e=Math[_0x1b6bfc(0x1b2)](_0x542e0e,_0xc5796c),_0x1b9349=Math['min'](_0x1b9349,_0xc5796c);const _0x9453d0=typeof _0x1384a0[_0x24f8a4]==_0x1b6bfc(0x18e)?Number(_0x1384a0[_0x24f8a4]):Number[_0x1b6bfc(0x1a0)];_0xc5796c>_0x9453d0&&(_0x24f8a4=_0x1384a0[_0x1b6bfc(0x1e0)]-0x1);const _0x36ca81=typeof _0x1384a0[_0x208f97]=='number'?Number(_0x1384a0[_0x208f97]):Number[_0x1b6bfc(0x1e3)];_0xc5796c<_0x36ca81&&(_0x208f97=_0x1384a0['length']-0x1),_0xc5796c<0x0&&_0x44a007['push'](_0x1384a0[_0x1b6bfc(0x1e0)]-0x1);}}_0x4b7941[_0x1b6bfc(0x1ae)](_0x29bfcb,_0xf7abbe,{'groupId':_0x4a284a,'data':_0x1384a0,'max':_0x2c866f,'min':_0x1b9349,'highIndex':_0x24f8a4,'lowIndex':_0x208f97,'negativeIndexes':_0x44a007});}}});let _0x5944ac=_0x8ea77e;((_0x2b7217=_0x4a8d0d[_0x378f3b(0x1d2)][_0x378f3b(0x182)])==null?void 0x0:_0x2b7217['type'])===De[_0x378f3b(0x213)]&&(_0x5944ac=(_0x167d61=(_0x4b63e3=_0x4a8d0d[_0x378f3b(0x1d2)][_0x378f3b(0x182)])==null?void 0x0:_0x4b63e3[_0x378f3b(0x208)])!=null?_0x167d61:_0x8ea77e);let _0x2cd2ca=_0x542e0e;((_0x4860f6=_0x4a8d0d[_0x378f3b(0x1d2)][_0x378f3b(0x1b9)])==null?void 0x0:_0x4860f6[_0x378f3b(0x18b)])===De[_0x378f3b(0x213)]&&(_0x2cd2ca=(_0x540cd7=(_0x2c9fc4=_0x4a8d0d['config'][_0x378f3b(0x1b9)])==null?void 0x0:_0x2c9fc4['value'])!=null?_0x540cd7:_0x542e0e);const _0x268d37=(_0x2640f0=_0x4a8d0d['config'][_0x378f3b(0x1ed)])!=null?_0x2640f0:Xe[_0x378f3b(0x181)],_0x4955ff=(_0x599f57=(_0x36b360=_0x4a8d0d[_0x378f3b(0x1d2)][_0x378f3b(0x236)])!=null?_0x36b360:(_0x343129=Le[_0x268d37])==null?void 0x0:_0x343129[0x0])!=null?_0x599f57:Le[_0x378f3b(0x206)][0x0],_0x4552cb=new _0xde648d(_0x4955ff),_0x2dcfa4=_0x4552cb[_0x378f3b(0x1af)](0.2)[_0x378f3b(0x18f)](),_0x24b697=_0x4552cb[_0x378f3b(0x1af)](0.05)['toRgbString']();_0xe024d6[_0x4a284a]={'groupMax':_0x8ea77e,'groupMin':_0x542e0e,'showMax':_0x5944ac,'showMin':_0x2cd2ca,'startGradient':_0x2dcfa4,'endGradient':_0x24b697},this[_0x378f3b(0x19a)]['next']({'unitId':_0x1a4120,'subUnitId':_0x5b160e,'groupId':_0x4a284a,'config':_0x4a8d0d,'type':_0x4a93bb});}['addSparkline'](_0x584196,_0xc541bd,_0x12dd36,_0x62058c){const _0x416637=_0x50ed10;this[_0x416637(0x1cd)](_0x584196,_0xc541bd)[_0x416637(0x217)](_0x12dd36,_0x62058c),this[_0x416637(0x221)](_0x584196,_0xc541bd,_0x12dd36,_0x416637(0x216));}[_0x50ed10(0x1b6)](_0xfaa513,_0x5db04e,_0x1916f8,_0x505305){const _0x30b173=_0x50ed10;var _0x2b5f70;const _0x5ecdf0=(_0x2b5f70=this[_0x30b173(0x1a2)][_0x30b173(0x1ee)](_0xfaa513))==null?void 0x0:_0x2b5f70[_0x30b173(0x1ee)](_0x5db04e);_0x1916f8[_0x30b173(0x1fd)](_0x307f57=>{const _0x2da160=_0x30b173;_0x5ecdf0!=null&&_0x5ecdf0[_0x2da160(0x240)](_0x307f57)&&(_0x5ecdf0[_0x2da160(0x217)](_0x307f57,_0x505305),this['updateSparklineExtraNum'](_0xfaa513,_0x5db04e,_0x307f57));});}[_0x50ed10(0x1a9)](_0x312897,_0x26b594,_0x31db9d){const _0x53f2c5=_0x50ed10;var _0x180c11,_0x944b4f;const _0xcddb62=this[_0x53f2c5(0x1a2)]['get'](_0x312897);if(_0xcddb62){const _0x2de2e7=_0xcddb62[_0x53f2c5(0x1ee)](_0x26b594);if(_0x2de2e7){_0x2de2e7[_0x53f2c5(0x233)](_0x31db9d);const _0x51a06e=(_0x180c11=this[_0x53f2c5(0x23d)][_0x53f2c5(0x1ee)](_0x312897))==null?void 0x0:_0x180c11[_0x53f2c5(0x1ee)](_0x26b594);(_0x944b4f=_0x51a06e==null?void 0x0:_0x51a06e[_0x53f2c5(0x1f6)])==null||_0x944b4f[_0x53f2c5(0x1b3)]((_0x96b762,_0x38087d,_0x44c6da)=>{const _0x49685b=_0x53f2c5;(_0x44c6da==null?void 0x0:_0x44c6da[_0x49685b(0x1a3)])===_0x31db9d&&(_0x51a06e==null||_0x51a06e[_0x49685b(0x1f6)][_0x49685b(0x1e4)](_0x96b762,_0x38087d));}),this[_0x53f2c5(0x19a)]['next']({'unitId':_0x312897,'subUnitId':_0x26b594,'groupId':_0x31db9d,'type':'remove'});}}}[_0x50ed10(0x226)](_0x30c2c7,_0x3c6855,_0x22e4b1,_0x48ecfc){const _0x575c95=_0x50ed10;var _0x477109,_0x3fbbc5,_0x43a1de,_0x16195d;const _0x3b0d4f=(_0x477109=this[_0x575c95(0x23d)][_0x575c95(0x1ee)](_0x30c2c7))==null?void 0x0:_0x477109[_0x575c95(0x1ee)](_0x3c6855),_0x3ecf8a=_0x3b0d4f==null?void 0x0:_0x3b0d4f['matrix'][_0x575c95(0x21a)](_0x22e4b1,_0x48ecfc);if(_0x3ecf8a){const {groupId:_0xd18ae1}=_0x3ecf8a,_0x500f8e=(_0x3fbbc5=this['_sparklineModel'][_0x575c95(0x1ee)](_0x30c2c7))==null?void 0x0:_0x3fbbc5[_0x575c95(0x1ee)](_0x3c6855);(_0x43a1de=_0x500f8e==null?void 0x0:_0x500f8e['get'](_0xd18ae1))==null||_0x43a1de['sparklines']['realDeleteValue'](_0x22e4b1,_0x48ecfc),(_0x16195d=_0x500f8e==null?void 0x0:_0x500f8e[_0x575c95(0x1ee)](_0xd18ae1))!=null&&_0x16195d['sparklines'][_0x575c95(0x20f)]()||_0x500f8e==null||_0x500f8e[_0x575c95(0x233)](_0xd18ae1),_0x3b0d4f==null||_0x3b0d4f['matrix'][_0x575c95(0x1e4)](_0x22e4b1,_0x48ecfc),this[_0x575c95(0x19a)][_0x575c95(0x22f)]({'unitId':_0x30c2c7,'subUnitId':_0x3c6855,'groupId':_0xd18ae1,'type':_0x575c95(0x237)});}}[_0x50ed10(0x1c8)](_0x5bea0c,_0x230148,_0x25ae70){const _0x36bf0e=_0x50ed10;var _0x4156d3,_0x4ddd5e,_0x41b471,_0x5f3b00;const _0x39f3e2=(_0x41b471=(_0x4ddd5e=(_0x4156d3=this[_0x36bf0e(0x1a2)][_0x36bf0e(0x1ee)](_0x5bea0c))==null?void 0x0:_0x4156d3[_0x36bf0e(0x1ee)](_0x230148))==null?void 0x0:_0x4ddd5e[_0x36bf0e(0x1ee)](_0x25ae70))==null?void 0x0:_0x41b471[_0x36bf0e(0x1fe)],_0x15ee86=(_0x5f3b00=this[_0x36bf0e(0x23d)]['get'](_0x5bea0c))==null?void 0x0:_0x5f3b00['get'](_0x230148);if(_0x39f3e2&&_0x15ee86){const {matrix:_0x3649de,extra:_0x1b7d62}=_0x15ee86;_0x39f3e2['forValue']((_0x16c267,_0x4f49e0,_0xbc5a60)=>{const _0x3e77df=_0x36bf0e;_0x3649de[_0x3e77df(0x1e4)](_0x16c267,_0x4f49e0);}),delete _0x1b7d62[_0x25ae70];}}[_0x50ed10(0x194)](_0x3e059d,_0x246c02){const _0xc9febf=_0x50ed10;var _0x5143d6;return(_0x5143d6=this[_0xc9febf(0x1a2)][_0xc9febf(0x1ee)](_0x3e059d))==null?void 0x0:_0x5143d6['get'](_0x246c02);}[_0x50ed10(0x199)](_0x1c5dd0,_0x54bf77,_0x2af7f9){const _0x128694=_0x50ed10;var _0x174d6e,_0x305b57;return(_0x305b57=(_0x174d6e=this[_0x128694(0x1a2)][_0x128694(0x1ee)](_0x1c5dd0))==null?void 0x0:_0x174d6e['get'](_0x54bf77))==null?void 0x0:_0x305b57['get'](_0x2af7f9);}[_0x50ed10(0x1cb)](_0x5c516d,_0xcfafcb,_0x5d0488,_0x32a374){const _0x57c6bc=_0x50ed10;var _0x2352a1,_0xc536c7,_0x1dd216;return(_0x1dd216=(_0xc536c7=(_0x2352a1=this[_0x57c6bc(0x23d)][_0x57c6bc(0x1ee)](_0x5c516d))==null?void 0x0:_0x2352a1[_0x57c6bc(0x1ee)](_0xcfafcb))==null?void 0x0:_0xc536c7[_0x57c6bc(0x1f6)][_0x57c6bc(0x21a)](_0x5d0488,_0x32a374))==null?void 0x0:_0x1dd216[_0x57c6bc(0x1a3)];}[_0x50ed10(0x1da)](_0x59fdb6,_0x42ff14){const _0x3919d2=_0x50ed10;var _0x595ad3;const _0x8156e2=this[_0x3919d2(0x1b5)](_0x59fdb6,_0x42ff14);_0x8156e2['matrix']['forValue']((_0x3ced44,_0x3ecf0f)=>{const _0xedc1a1=_0x3919d2;_0x8156e2[_0xedc1a1(0x1f6)][_0xedc1a1(0x1e4)](_0x3ced44,_0x3ecf0f);});const _0x49833a=(_0x595ad3=this[_0x3919d2(0x1a2)][_0x3919d2(0x1ee)](_0x59fdb6))==null?void 0x0:_0x595ad3[_0x3919d2(0x1ee)](_0x42ff14);if(_0x49833a){for(const [_0x1952cb]of _0x49833a)this[_0x3919d2(0x221)](_0x59fdb6,_0x42ff14,_0x1952cb);}}[_0x50ed10(0x211)](){const _0x5af7b6=_0x50ed10;return{'sparklineModel':this[_0x5af7b6(0x1a2)],'sparklineAnchorMap':this['_sparklineAnchorMap']};}[_0x50ed10(0x209)](_0x3517ad){const _0xfac7cc=_0x50ed10,_0x1efa91={};if(this['_sparklineModel'][_0xfac7cc(0x240)](_0x3517ad)){_0x1efa91[_0x3517ad]={};const _0x506084=this[_0xfac7cc(0x1a2)][_0xfac7cc(0x1ee)](_0x3517ad);_0x506084!=null&&_0x506084[_0xfac7cc(0x188)]&&Array[_0xfac7cc(0x197)](_0x506084['keys']())[_0xfac7cc(0x1fd)](_0x30448b=>{const _0x5ca0c8=_0xfac7cc;_0x1efa91[_0x3517ad][_0x30448b]={};const _0x12a544=_0x506084[_0x5ca0c8(0x1ee)](_0x30448b);_0x12a544!=null&&_0x12a544[_0x5ca0c8(0x188)]&&Array[_0x5ca0c8(0x197)](_0x12a544[_0x5ca0c8(0x230)]())[_0x5ca0c8(0x1fd)](_0x18ef61=>{const _0x4ba099=_0x5ca0c8,_0x3dcbe8=_0x12a544[_0x4ba099(0x1ee)](_0x18ef61);_0x3dcbe8&&(_0x1efa91[_0x3517ad][_0x30448b][_0x18ef61]={'config':_0x3dcbe8[_0x4ba099(0x1d2)],'sparklines':_0x3dcbe8['sparklines'][_0x4ba099(0x227)]()});});});}return _0x1efa91;}[_0x50ed10(0x180)](_0x384795){const _0x2d99e3=_0x50ed10;if(!_0x384795)return;Object['keys'](_0x384795)[_0x2d99e3(0x1fd)](_0x393255=>{const _0x5be65e=_0x2d99e3,_0x53aed3=_0x384795[_0x393255];_0x53aed3&&Object[_0x5be65e(0x230)](_0x53aed3)[_0x5be65e(0x1fd)](_0x2df844=>{const _0x58ad9f=_0x5be65e,_0x36affc=_0x53aed3[_0x2df844];_0x36affc&&Object[_0x58ad9f(0x230)](_0x36affc)[_0x58ad9f(0x1fd)](_0xec63bc=>{const _0x2dee60=_0x58ad9f,_0x28414a=_0x36affc[_0xec63bc];if(_0x28414a){const _0x55f868={'config':_0x28414a[_0x2dee60(0x1d2)],'sparklines':new _0x4bef43(_0x28414a[_0x2dee60(0x1fe)])};this[_0x2dee60(0x17e)](_0x393255,_0x2df844,_0xec63bc,_0x55f868);}});});});}[_0x50ed10(0x1de)](_0x33e07c){const _0x49fa46=_0x50ed10,_0x5ce360=this[_0x49fa46(0x1a2)][_0x49fa46(0x1ee)](_0x33e07c);if(_0x5ce360){for(const [_0xaa6543]of _0x5ce360){const _0x4610b1=_0x5ce360['get'](_0xaa6543);if(_0x4610b1){for(const [_0x41f972]of _0x4610b1)this[_0x49fa46(0x1c8)](_0x33e07c,_0xaa6543,_0x41f972);}}this['_sparklineModel'][_0x49fa46(0x233)](_0x33e07c);}}};x=Vt([yt(0x0,_0x2faf1d(_0x2f6da6))],x);const V={'id':'sheet.mutation.add-sparkline','type':_0x40fc04[_0x50ed10(0x196)],'handler':(_0x300c87,_0x3e6a08)=>{const _0x19b291=_0x50ed10;if(!_0x3e6a08)return!0x1;const {sparklineConfigMap:_0x43a507,unitId:_0x422ce0,subUnitId:_0x46ade8}=_0x3e6a08,_0x1334ef=_0x300c87[_0x19b291(0x1ee)](x);return Object[_0x19b291(0x198)](_0x43a507)['forEach'](([_0x89768d,_0x2bf76b])=>{const _0x27f33a=_0x19b291,_0xd87268={'config':_0x2bf76b['config'],'sparklines':new _0x4bef43(_0x2bf76b[_0x27f33a(0x1fe)])};_0x1334ef[_0x27f33a(0x17e)](_0x422ce0,_0x46ade8,_0x89768d,_0xd87268);}),!0x0;}},y={'id':_0x50ed10(0x1c7),'type':_0x40fc04[_0x50ed10(0x196)],'handler':(_0x2da11e,_0x2f810d)=>{const _0x3eea86=_0x50ed10;if(!_0x2f810d)return!0x1;const {unitId:_0x5e8452,subUnitId:_0x34a82e,ranges:_0x4c0dfc,isSingle:_0xe8cef,groupIds:_0x35a198}=_0x2f810d,_0xbadfa7=_0x2da11e['get'](x);return _0x35a198?(_0x35a198[_0x3eea86(0x1fd)](_0x1c6f41=>{const _0xd7304e=_0x3eea86;_0xbadfa7[_0xd7304e(0x1a9)](_0x5e8452,_0x34a82e,_0x1c6f41);}),!0x0):_0x4c0dfc?(_0x4c0dfc['forEach'](_0x3907ce=>{const _0x3de64d=_0x3eea86;_0x42b586[_0x3de64d(0x1d4)](_0x3907ce,(_0x1fd036,_0x505b91)=>{const _0x30cdb5=_0x3de64d,_0x5e07b9=_0xbadfa7['getSparkline'](_0x5e8452,_0x34a82e,_0x1fd036,_0x505b91);_0x5e07b9&&(_0xe8cef?_0xbadfa7[_0x30cdb5(0x226)](_0x5e8452,_0x34a82e,_0x1fd036,_0x505b91):_0xbadfa7[_0x30cdb5(0x1a9)](_0x5e8452,_0x34a82e,_0x5e07b9));});}),!0x0):!0x1;}},Nt={'id':_0x50ed10(0x205),'type':_0x40fc04[_0x50ed10(0x22d)],'handler':(_0x177b5f,_0x24c99c)=>{const _0xf358a9=_0x50ed10;if(!_0x24c99c)return!0x1;const {sourceRanges:_0x49c3c4,targetRanges:_0x4f95b0,config:_0x5d1ef8}=_0x24c99c,_0x17e5e5=_0x177b5f['get'](_0x4fac18),_0xc1db27='g_'+_0x1af252(0x6),_0x4133e8=Fe(_0x49c3c4,_0x4f95b0),_0x5a93ce={'config':_0x5d1ef8!=null?_0x5d1ef8:{},'sparklines':_0x4133e8[_0xf358a9(0x227)]()},_0x198122=_0x177b5f[_0xf358a9(0x1ee)](_0x2f6da6),_0x3f42f4=_0x177b5f[_0xf358a9(0x1ee)](x),_0x57d814=_0x2dcb92(_0x198122);if(!_0x57d814)return!0x1;const {unitId:_0x267922,subUnitId:_0x265c72}=_0x57d814,_0x378310=_0x177b5f[_0xf358a9(0x1ee)](_0xde7cb6),_0x58070d=[],_0x323361=[],_0x43728a={},_0x5e635c={},_0xbc5656=new Set([_0xc1db27]);_0x4133e8[_0xf358a9(0x1b3)]((_0x20921f,_0x45b5fb,_0x135d75)=>{const _0x46e741=_0xf358a9,_0x2f5395=_0x3f42f4[_0x46e741(0x1cb)](_0x267922,_0x265c72,_0x20921f,_0x45b5fb);if(_0x2f5395){const _0x4458bc=_0x3f42f4[_0x46e741(0x199)](_0x267922,_0x265c72,_0x2f5395);if(_0x4458bc){_0xbc5656[_0x46e741(0x216)](_0x2f5395);let _0x80be18=_0x43728a[_0x2f5395],_0x4a4d2e=_0x5e635c[_0x2f5395];_0x4a4d2e||(_0x4a4d2e={'config':_0x4918ed[_0x46e741(0x203)](_0x4458bc['config']),'sparklines':new _0x4bef43(_0x4458bc[_0x46e741(0x1fe)]['clone']())},_0x5e635c[_0x2f5395]=_0x4a4d2e),_0x80be18||(_0x80be18={'config':_0x4918ed['deepClone'](_0x4458bc[_0x46e741(0x1d2)]),'sparklines':_0x4458bc[_0x46e741(0x1fe)][_0x46e741(0x1db)]()},_0x43728a[_0x2f5395]=_0x80be18),_0x4a4d2e[_0x46e741(0x1fe)][_0x46e741(0x1e4)](_0x20921f,_0x45b5fb);}}});const _0x12f8eb={};return Object['entries'](_0x5e635c)['forEach'](([_0x259c71,_0x11d0d0])=>{const _0x413854=_0xf358a9;_0x11d0d0[_0x413854(0x1fe)][_0x413854(0x1b4)]()&&(_0x12f8eb[_0x259c71]={'config':_0x11d0d0[_0x413854(0x1d2)],'sparklines':_0x11d0d0[_0x413854(0x1fe)]['clone']()});}),_0x12f8eb[_0xc1db27]=_0x5a93ce,_0x58070d[_0xf358a9(0x223)]({'id':y['id'],'params':{'unitId':_0x267922,'subUnitId':_0x265c72,'groupIds':Array[_0xf358a9(0x197)](_0xbc5656),'isSingle':!0x1}}),_0xbc5656[_0xf358a9(0x188)]>0x1&&(_0x323361[_0xf358a9(0x223)]({'id':y['id'],'params':{'unitId':_0x267922,'subUnitId':_0x265c72,'groupIds':Array[_0xf358a9(0x197)](_0xbc5656),'isSingle':!0x1}}),_0x58070d[_0xf358a9(0x223)]({'id':V['id'],'params':{'unitId':_0x267922,'subUnitId':_0x265c72,'sparklineConfigMap':_0x43728a}})),_0x323361[_0xf358a9(0x223)]({'id':V['id'],'params':{'unitId':_0x267922,'subUnitId':_0x265c72,'sparklineConfigMap':_0x12f8eb}}),_0x1517b6(_0x323361,_0x378310),_0x17e5e5[_0xf358a9(0x23f)]({'unitID':_0x267922,'undoMutations':_0x58070d,'redoMutations':_0x323361}),!0x0;}},Ot={'id':_0x50ed10(0x231),'type':_0x40fc04['COMMAND'],'handler':(_0x2282cc,_0x569dcd)=>{const _0x3ed107=_0x50ed10;var _0x42545b;const {isSingle:_0x5ea2d8=!0x0}=_0x569dcd||{},_0x3b402d=_0x2282cc[_0x3ed107(0x1ee)](_0xde7cb6),_0x7231c1=_0x2282cc[_0x3ed107(0x1ee)](_0x2f6da6),_0x296abf=_0x2282cc[_0x3ed107(0x1ee)](x),_0x1af491=_0x2282cc[_0x3ed107(0x1ee)](_0x4fac18),_0x1ff24f=_0x2dcb92(_0x7231c1);if(!_0x1ff24f)return!0x1;const _0x23157a=_0x2282cc[_0x3ed107(0x1ee)](_0x5585b0),_0x39fa56=(_0x42545b=_0x569dcd==null?void 0x0:_0x569dcd['ranges'])!=null?_0x42545b:_0x23157a['getCurrentSelections']()['map'](_0x43d18=>_0x43d18[_0x3ed107(0x1ce)]),{unitId:_0x22b259,subUnitId:_0x4bd3cc}=_0x1ff24f,_0x4037f=[],_0x42261e=[];_0x4037f[_0x3ed107(0x223)]({'id':y['id'],'params':{'unitId':_0x22b259,'subUnitId':_0x4bd3cc,'ranges':_0x39fa56,'isSingle':_0x5ea2d8}});const _0x3215a5=[],_0x3300bb={};return _0x39fa56[_0x3ed107(0x1fd)](_0x33ec27=>{const _0x5a289c=_0x3ed107;_0x42b586[_0x5a289c(0x1d4)](_0x33ec27,(_0x1c0e32,_0x6e4db3)=>{const _0x15f8c5=_0x5a289c,_0x805f06=_0x296abf['getSparkline'](_0x22b259,_0x4bd3cc,_0x1c0e32,_0x6e4db3);if(_0x805f06){const _0x3d016b=_0x296abf[_0x15f8c5(0x199)](_0x22b259,_0x4bd3cc,_0x805f06);_0x3d016b&&(_0x3215a5[_0x15f8c5(0x223)](_0x805f06),_0x3300bb[_0x805f06]={'config':_0x4918ed['deepClone'](_0x3d016b[_0x15f8c5(0x1d2)]),'sparklines':_0x4918ed['deepClone'](_0x3d016b['sparklines']['clone']())});}});}),_0x42261e[_0x3ed107(0x223)]({'id':y['id'],'params':{'unitId':_0x22b259,'subUnitId':_0x4bd3cc,'groupIds':_0x3215a5,'isSingle':!0x1}}),_0x42261e[_0x3ed107(0x223)]({'id':V['id'],'params':{'unitId':_0x22b259,'subUnitId':_0x4bd3cc,'sparklineConfigMap':_0x3300bb}}),_0x1517b6(_0x4037f,_0x3b402d),_0x1af491[_0x3ed107(0x23f)]({'unitID':_0x22b259,'undoMutations':_0x42261e,'redoMutations':_0x4037f}),!0x0;}},Oe={'id':_0x50ed10(0x1c4),'type':_0x40fc04[_0x50ed10(0x196)],'handler':(_0x471233,_0x4efda5)=>{const _0x24f265=_0x50ed10;if(!_0x4efda5)return!0x1;const {unitId:_0x32306a,subUnitId:_0x19eb39,groupIds:_0x60e58b,config:_0x2b242d}=_0x4efda5,_0x3cf0d1=_0x471233[_0x24f265(0x1ee)](x);return _0x60e58b[_0x24f265(0x1fd)](_0x3ec009=>{const _0xf21936=_0x24f265,_0x4ef15a=_0x3cf0d1[_0xf21936(0x199)](_0x32306a,_0x19eb39,_0x3ec009);if(_0x4ef15a){const _0x50e9ed={'config':Object[_0xf21936(0x23b)]({},_0x4ef15a[_0xf21936(0x1d2)],_0x2b242d['config']),'sparklines':new _0x4bef43(_0x4ef15a[_0xf21936(0x1fe)][_0xf21936(0x1db)]())};_0x3cf0d1[_0xf21936(0x1b6)](_0x32306a,_0x19eb39,[_0x3ec009],_0x50e9ed);}}),!0x0;}},xt={'id':_0x50ed10(0x1f2),'type':_0x40fc04[_0x50ed10(0x22d)],'handler':(_0x552044,_0x2a7504)=>{const _0x502bd1=_0x50ed10;var _0xd9d848,_0x59dab3,_0x529734,_0x3bfeb9;if(!_0x2a7504)return!0x1;const _0x1836f5=_0x552044['get'](_0xde7cb6),_0x4f61fa=_0x552044[_0x502bd1(0x1ee)](_0x5585b0),_0x4a5dae=_0x552044[_0x502bd1(0x1ee)](x),_0x32198a=_0x552044[_0x502bd1(0x1ee)](_0x2f6da6),_0x1c35ac=_0x552044[_0x502bd1(0x1ee)](_0x4fac18),_0x2b067f=_0x2dcb92(_0x32198a);if(!_0x2b067f)return!0x1;const {unitId:_0x518d6d,subUnitId:_0x43a17f}=_0x2b067f,_0x433363=(_0xd9d848=_0x2a7504==null?void 0x0:_0x2a7504[_0x502bd1(0x1fa)])!=null?_0xd9d848:_0x4f61fa[_0x502bd1(0x1f3)]()[_0x502bd1(0x210)](_0x50eb1e=>_0x50eb1e['range']),_0x47aec4=(_0x59dab3=_0x4a5dae['getSparklineCache']()[_0x502bd1(0x1d1)][_0x502bd1(0x1ee)](_0x518d6d))==null?void 0x0:_0x59dab3[_0x502bd1(0x1ee)](_0x43a17f),{isChangeDataSource:_0x487b9b,config:_0x7c5d5f,combine:_0x27d2b5,unCombine:_0x5d2431}=_0x2a7504;if(_0x27d2b5){const _0xde51fe=[],_0x16b8ca=[];_0xde51fe[_0x502bd1(0x223)]({'id':y['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'ranges':_0x433363,'isSingle':!0x0}});const _0x47ac5c='g_'+_0x1af252(0x6),_0x128116=new _0x4bef43(),_0x525f2c=(_0x529734=_0x4a5dae[_0x502bd1(0x211)]()[_0x502bd1(0x17f)][_0x502bd1(0x1ee)](_0x518d6d))==null?void 0x0:_0x529734[_0x502bd1(0x1ee)](_0x43a17f),_0x523ee0=new Set([_0x47ac5c]),_0x1a9e54={};return _0x433363[_0x502bd1(0x1fd)](_0x49c545=>{const _0x1d3899=_0x502bd1;var _0x5e93fc,_0x303f9b;const {startRow:_0x55cc06,endRow:_0x40360f,startColumn:_0x317a1e,endColumn:_0x39dcc9}=_0x49c545;for(let _0xbb9b31=_0x55cc06;_0xbb9b31<=_0x40360f;_0xbb9b31++)for(let _0x4ce7b8=_0x317a1e;_0x4ce7b8<=_0x39dcc9;_0x4ce7b8++){const _0x25559e=(_0x5e93fc=_0x47aec4==null?void 0x0:_0x47aec4[_0x1d3899(0x1f6)][_0x1d3899(0x21a)](_0xbb9b31,_0x4ce7b8))==null?void 0x0:_0x5e93fc[_0x1d3899(0x1a3)];if(_0x25559e){_0x523ee0[_0x1d3899(0x216)](_0x25559e);const _0x5a48b1=_0x4a5dae[_0x1d3899(0x199)](_0x518d6d,_0x43a17f,_0x25559e);_0x5a48b1&&(_0x1a9e54[_0x25559e]={'config':_0x4918ed[_0x1d3899(0x203)](_0x5a48b1[_0x1d3899(0x1d2)]),'sparklines':_0x4918ed[_0x1d3899(0x203)](_0x5a48b1[_0x1d3899(0x1fe)][_0x1d3899(0x1db)]())});const _0x95135a=(_0x303f9b=_0x525f2c==null?void 0x0:_0x525f2c['get'](_0x25559e))==null?void 0x0:_0x303f9b['sparklines']['getValue'](_0xbb9b31,_0x4ce7b8);_0x95135a&&_0x128116[_0x1d3899(0x1ae)](_0xbb9b31,_0x4ce7b8,_0x95135a);}}}),_0xde51fe[_0x502bd1(0x223)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x47ac5c]:{'config':_0x4918ed[_0x502bd1(0x203)](_0x7c5d5f[_0x502bd1(0x1d2)]),'sparklines':_0x128116[_0x502bd1(0x227)]()}},'unitId':_0x518d6d,'subUnitId':_0x43a17f}}),_0x16b8ca['push']({'id':y['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'isSingle':!0x1,'groupIds':Array[_0x502bd1(0x197)](_0x523ee0)}}),_0x16b8ca[_0x502bd1(0x223)]({'id':V['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'sparklineConfigMap':_0x1a9e54}}),_0x1517b6(_0xde51fe,_0x1836f5),_0x1c35ac[_0x502bd1(0x23f)]({'unitID':_0x518d6d,'undoMutations':_0x16b8ca,'redoMutations':_0xde51fe}),!0x0;}else{if(_0x5d2431){const _0x993e78=[],_0x23f0cc=[];_0x993e78['push']({'id':y['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'ranges':_0x433363,'isSingle':!0x0}});const _0x26cd2b=(_0x3bfeb9=_0x4a5dae['getSparklineCache']()[_0x502bd1(0x17f)][_0x502bd1(0x1ee)](_0x518d6d))==null?void 0x0:_0x3bfeb9[_0x502bd1(0x1ee)](_0x43a17f),_0x15d89e={},_0x55f794=new Set(),_0x16fe89={};return _0x433363['forEach'](_0x58ff6d=>{const _0x5d495a=_0x502bd1;var _0x4a5d6d,_0x1d94a9;const {startRow:_0x4df580,endRow:_0x8d06b9,startColumn:_0x1e4f84,endColumn:_0x292e81}=_0x58ff6d;for(let _0x2196c1=_0x4df580;_0x2196c1<=_0x8d06b9;_0x2196c1++)for(let _0x3a098d=_0x1e4f84;_0x3a098d<=_0x292e81;_0x3a098d++){const _0x5a1205=(_0x4a5d6d=_0x47aec4==null?void 0x0:_0x47aec4[_0x5d495a(0x1f6)][_0x5d495a(0x21a)](_0x2196c1,_0x3a098d))==null?void 0x0:_0x4a5d6d['groupId'];if(_0x5a1205){const _0x167484=new _0x4bef43(),_0x59f208='g_'+_0x1af252(0x6);_0x55f794['add'](_0x5a1205),_0x55f794['add'](_0x59f208);const _0x4ef456=_0x4a5dae[_0x5d495a(0x199)](_0x518d6d,_0x43a17f,_0x5a1205);_0x4ef456&&(_0x16fe89[_0x5a1205]={'config':_0x4918ed['deepClone'](_0x4ef456['config']),'sparklines':_0x4918ed['deepClone'](_0x4ef456['sparklines'][_0x5d495a(0x1db)]())});const _0x23e911=(_0x1d94a9=_0x26cd2b==null?void 0x0:_0x26cd2b[_0x5d495a(0x1ee)](_0x5a1205))==null?void 0x0:_0x1d94a9['sparklines'][_0x5d495a(0x21a)](_0x2196c1,_0x3a098d);_0x23e911&&_0x167484[_0x5d495a(0x1ae)](_0x2196c1,_0x3a098d,_0x23e911),_0x15d89e[_0x59f208]={'sparklines':_0x167484[_0x5d495a(0x227)](),'config':_0x4918ed[_0x5d495a(0x203)](_0x7c5d5f['config'])};}}}),_0x993e78[_0x502bd1(0x223)]({'id':V['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'sparklineConfigMap':_0x15d89e}}),_0x23f0cc[_0x502bd1(0x223)]({'id':y['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'isSingle':!0x1,'groupIds':Array['from'](_0x55f794)}}),_0x23f0cc['push']({'id':V['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'sparklineConfigMap':_0x16fe89}}),_0x1517b6(_0x993e78,_0x1836f5),_0x1c35ac['pushUndoRedo']({'unitID':_0x518d6d,'undoMutations':_0x23f0cc,'redoMutations':_0x993e78}),!0x0;}}if(_0x487b9b){const _0x3eec69=_0x2a7504[_0x502bd1(0x212)];if(!_0x3eec69)return!0x1;const {groupId:_0x547f27,sourceRanges:_0x422511,targetRanges:_0x525d36,resetType:_0x487bf8,primary:_0x2abcc8}=_0x3eec69,_0x3ef30b=[],_0x55e3a6=[];_0x3ef30b[_0x502bd1(0x223)]({'id':y['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'ranges':_0x433363,'isSingle':!0x1,'groupIds':[_0x547f27]}}),_0x55e3a6[_0x502bd1(0x223)]({'id':y['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'ranges':_0x433363,'isSingle':!0x1,'groupIds':[_0x547f27]}});let _0xc84e76;_0x487bf8==='item'?(_0xc84e76=new _0x4bef43(_0x7c5d5f[_0x502bd1(0x1fe)][_0x502bd1(0x1db)]()),_0xc84e76[_0x502bd1(0x1e4)](_0x2abcc8[_0x502bd1(0x1c3)],_0x2abcc8[_0x502bd1(0x222)]),_0xc84e76[_0x502bd1(0x1ae)](_0x525d36[0x0]['startRow'],_0x525d36[0x0]['startColumn'],_0x422511[0x0])):_0xc84e76=Fe(_0x422511,_0x525d36);const _0x4ff204={'config':_0x4918ed['deepClone'](_0x7c5d5f[_0x502bd1(0x1d2)]),'sparklines':_0xc84e76[_0x502bd1(0x227)]()},_0x2bf5ae={'config':_0x4918ed[_0x502bd1(0x203)](_0x7c5d5f[_0x502bd1(0x1d2)]),'sparklines':_0x4918ed[_0x502bd1(0x203)](_0x7c5d5f[_0x502bd1(0x1fe)]['clone']())};_0x3ef30b[_0x502bd1(0x223)]({'id':V['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'sparklineConfigMap':{[_0x547f27]:_0x4ff204}}}),_0x55e3a6[_0x502bd1(0x223)]({'id':V['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'sparklineConfigMap':{[_0x547f27]:_0x2bf5ae}}}),_0x1517b6(_0x3ef30b,_0x1836f5),_0x1c35ac[_0x502bd1(0x23f)]({'unitID':_0x518d6d,'undoMutations':_0x55e3a6,'redoMutations':_0x3ef30b});}else{const _0x2b1355=[],_0x273547=[],_0x214bfc=new Set(),_0x43fc1d={};_0x433363['forEach'](_0x2f9f46=>{const _0x100fb5=_0x502bd1;var _0x1825fd;const {startRow:_0x392480,endRow:_0x599c23,startColumn:_0x1973d1,endColumn:_0x426d9c}=_0x2f9f46;for(let _0x22a6c7=_0x392480;_0x22a6c7<=_0x599c23;_0x22a6c7++)for(let _0x2366bc=_0x1973d1;_0x2366bc<=_0x426d9c;_0x2366bc++){const _0xebd391=(_0x1825fd=_0x47aec4==null?void 0x0:_0x47aec4['matrix'][_0x100fb5(0x21a)](_0x22a6c7,_0x2366bc))==null?void 0x0:_0x1825fd[_0x100fb5(0x1a3)];if(_0xebd391){_0x214bfc[_0x100fb5(0x216)](_0xebd391);const _0x39d134=_0x4a5dae['getSparklineById'](_0x518d6d,_0x43a17f,_0xebd391);_0x39d134&&(_0x43fc1d[_0xebd391]={'config':_0x4918ed[_0x100fb5(0x203)](_0x39d134[_0x100fb5(0x1d2)]),'sparklines':_0x4918ed['deepClone'](_0x39d134[_0x100fb5(0x1fe)][_0x100fb5(0x1db)]())});}}}),_0x273547['push']({'id':Oe['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'groupIds':Array['from'](_0x214bfc),'config':{'config':_0x4918ed[_0x502bd1(0x203)](_0x7c5d5f[_0x502bd1(0x1d2)]),'sparklines':_0x7c5d5f['sparklines']['getMatrix']()}}}),_0x2b1355[_0x502bd1(0x223)]({'id':y['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'isSingle':!0x1,'groupIds':Array[_0x502bd1(0x197)](_0x214bfc)}}),_0x2b1355[_0x502bd1(0x223)]({'id':V['id'],'params':{'unitId':_0x518d6d,'subUnitId':_0x43a17f,'sparklineConfigMap':_0x43fc1d}}),_0x1517b6(_0x273547,_0x1836f5),_0x1c35ac[_0x502bd1(0x23f)]({'unitID':_0x518d6d,'undoMutations':_0x2b1355,'redoMutations':_0x273547});}return!0x0;}};var Ut=Object['getOwnPropertyDescriptor'],Pt=(_0x16d126,_0x155f1e,_0x55edb2,_0x217a6c)=>{const _0x376bbe=_0x50ed10;for(var _0x404ff8=_0x217a6c>0x1?void 0x0:_0x217a6c?Ut(_0x155f1e,_0x55edb2):_0x155f1e,_0x2e3ee1=_0x16d126[_0x376bbe(0x1e0)]-0x1,_0x5571a4;_0x2e3ee1>=0x0;_0x2e3ee1--)(_0x5571a4=_0x16d126[_0x2e3ee1])&&(_0x404ff8=_0x5571a4(_0x404ff8)||_0x404ff8);return _0x404ff8;},fe=(_0x14dfd8,_0x4b3667)=>(_0x214206,_0x46bb51)=>_0x4b3667(_0x214206,_0x46bb51,_0x14dfd8);let Se=class extends _0x3343ec{constructor(_0x3c253c,_0x3465c5,_0x76c87d,_0x3e58a5){const _0x279bf2=_0x50ed10;super(),this[_0x279bf2(0x1bc)]=_0x3c253c,this[_0x279bf2(0x1d9)]=_0x3465c5,this['_univerInstanceService']=_0x76c87d,this[_0x279bf2(0x1f9)]=_0x3e58a5,this['_initClearWithSparkline']();}[_0x50ed10(0x191)](){const _0x1c26fe=_0x50ed10;this['disposeWithMe'](this[_0x1c26fe(0x1d9)][_0x1c26fe(0x1c6)]({'getMutations':_0x427a61=>{const _0x295fa2=_0x1c26fe,_0x5d4870=[],_0x36503c=[];if(_0x427a61['id']===_0x9066c4['id']){const _0x47c12b=_0x2dcb92(this[_0x295fa2(0x189)]);if(!_0x47c12b)return{'redos':_0x5d4870,'undos':_0x36503c};const {unitId:_0x282d75,subUnitId:_0xbfee64,worksheet:_0xf7c32}=_0x47c12b,_0x3328c5=this[_0x295fa2(0x1f9)][_0x295fa2(0x1f3)]()[_0x295fa2(0x210)](_0x29a111=>_0x29a111[_0x295fa2(0x1ce)]),_0x581756=new Set(),_0x4cb773={},_0x516c1e={};_0x3328c5['forEach'](_0x1aae34=>{_0x42b586['foreach'](_0x1aae34,(_0x85131e,_0x3cca1f)=>{const _0x286046=_0x2175,_0x1dc207=this[_0x286046(0x1bc)][_0x286046(0x1cb)](_0x282d75,_0xbfee64,_0x85131e,_0x3cca1f);if(_0x1dc207&&!_0x581756[_0x286046(0x240)](_0x1dc207)){const _0x48c482=this[_0x286046(0x1bc)][_0x286046(0x199)](_0x282d75,_0xbfee64,_0x1dc207);_0x48c482&&(_0x581756[_0x286046(0x216)](_0x1dc207),_0x4cb773[_0x1dc207]={'config':_0x4918ed[_0x286046(0x203)](_0x48c482[_0x286046(0x1d2)]),'sparklines':_0x4918ed[_0x286046(0x203)](_0x48c482[_0x286046(0x1fe)][_0x286046(0x1db)]())},_0x516c1e[_0x1dc207]={'config':_0x4918ed[_0x286046(0x203)](_0x48c482[_0x286046(0x1d2)]),'sparklines':_0x4918ed[_0x286046(0x203)](_0x48c482['sparklines'][_0x286046(0x1db)]())});}});}),Object[_0x295fa2(0x200)](_0x516c1e)['forEach'](_0x4366b6=>{const _0x14f361=_0x295fa2,_0x5ce942=_0x4366b6[_0x14f361(0x1fe)];new _0x4bef43(_0x5ce942)[_0x14f361(0x1b3)]((_0x56b5a3,_0x5531af,_0x51aecf)=>{const _0x2d2128=_0x14f361;_0x3328c5[_0x2d2128(0x20b)](_0x7c8d22=>_0x5b874d[_0x2d2128(0x1aa)](_0x7c8d22,_0x257a64(_0x56b5a3,_0x5531af)))&&delete _0x5ce942[_0x56b5a3][_0x5531af];});}),_0x5d4870[_0x295fa2(0x223)]({'id':y['id'],'params':{'unitId':_0x282d75,'subUnitId':_0xbfee64,'groupIds':Array['from'](_0x581756),'isSingle':!0x1}}),_0x5d4870[_0x295fa2(0x223)]({'id':V['id'],'params':{'unitId':_0x282d75,'subUnitId':_0xbfee64,'sparklineConfigMap':_0x516c1e}}),_0x36503c[_0x295fa2(0x223)]({'id':y['id'],'params':{'unitId':_0x282d75,'subUnitId':_0xbfee64,'groupIds':Array[_0x295fa2(0x197)](_0x581756),'isSingle':!0x1}}),_0x36503c[_0x295fa2(0x223)]({'id':V['id'],'params':{'unitId':_0x282d75,'subUnitId':_0xbfee64,'sparklineConfigMap':_0x4cb773}});}return{'redos':_0x5d4870,'undos':_0x36503c};}}));}};Se=Pt([fe(0x0,_0x2faf1d(x)),fe(0x1,_0x2faf1d(_0x297daa)),fe(0x2,_0x2faf1d(_0x2f6da6)),fe(0x3,_0x2faf1d(_0x5585b0))],Se);var Tt=Object[_0x50ed10(0x1df)],$t=(_0x374287,_0x522a9e,_0x36ba34,_0xa1d7ed)=>{const _0x26823a=_0x50ed10;for(var _0x17dad7=_0xa1d7ed>0x1?void 0x0:_0xa1d7ed?Tt(_0x522a9e,_0x36ba34):_0x522a9e,_0x583fdc=_0x374287[_0x26823a(0x1e0)]-0x1,_0x518f6f;_0x583fdc>=0x0;_0x583fdc--)(_0x518f6f=_0x374287[_0x583fdc])&&(_0x17dad7=_0x518f6f(_0x17dad7)||_0x17dad7);return _0x17dad7;},Ge=(_0x430de8,_0xeda480)=>(_0x496d9b,_0x39477f)=>_0xeda480(_0x496d9b,_0x39477f,_0x430de8);let ke=class extends _0x3343ec{constructor(_0x4a95c2,_0x39bdfd){const _0x2670f0=_0x50ed10;super(),this[_0x2670f0(0x1d9)]=_0x4a95c2,this[_0x2670f0(0x1bc)]=_0x39bdfd,this['_initCopySheetWithSparkline']();}['_initCopySheetWithSparkline'](){const _0x9bac49=_0x50ed10;this['disposeWithMe'](this[_0x9bac49(0x1d9)][_0x9bac49(0x1c6)]({'getMutations':_0x1c9690=>{const _0x4d4b11=_0x9bac49,_0x52fc7c=[],_0x4a8e86=[];if(_0x1c9690['id']===_0x5077a8['id']){const _0x52f778=_0x1c9690[_0x4d4b11(0x234)];if(!_0x52f778)return{'redos':_0x52fc7c,'undos':_0x4a8e86};const {unitId:_0x194d14,subUnitId:_0x32f507,targetSubUnitId:_0x3698ff}=_0x52f778;if(!_0x194d14||!_0x32f507||!_0x3698ff)return{'redos':_0x52fc7c,'undos':_0x4a8e86};const _0x499bb1=new Set(),_0x1cea9f={},_0x393bfb=this['_sparklineDataSourceModel'][_0x4d4b11(0x194)](_0x194d14,_0x32f507);if(!_0x393bfb)return{'redos':_0x52fc7c,'undos':_0x4a8e86};for(const [_0x435ce7,_0x13b636]of _0x393bfb){const _0x36c659='g_'+_0x1af252(0x6);_0x499bb1[_0x4d4b11(0x216)](_0x435ce7),_0x1cea9f[_0x36c659]={'config':_0x4918ed[_0x4d4b11(0x203)](_0x13b636[_0x4d4b11(0x1d2)]),'sparklines':_0x4918ed[_0x4d4b11(0x203)](_0x13b636[_0x4d4b11(0x1fe)][_0x4d4b11(0x1db)]())};}_0x499bb1[_0x4d4b11(0x188)]&&(_0x4a8e86[_0x4d4b11(0x223)]({'id':y['id'],'params':{'unitId':_0x194d14,'subUnitId':_0x3698ff,'groupIds':Array['from'](_0x499bb1),'isSingle':!0x1}}),_0x52fc7c['push']({'id':V['id'],'params':{'unitId':_0x194d14,'subUnitId':_0x3698ff,'sparklineConfigMap':_0x1cea9f}}));}return{'redos':_0x52fc7c,'undos':_0x4a8e86};}}));}};ke=$t([Ge(0x0,_0x2faf1d(_0x297daa)),Ge(0x1,_0x2faf1d(x))],ke);var jt=Object['getOwnPropertyDescriptor'],Lt=(_0x7f2ad6,_0x19aa9a,_0x3c92f8,_0x187a50)=>{const _0x215ed3=_0x50ed10;for(var _0x111d83=_0x187a50>0x1?void 0x0:_0x187a50?jt(_0x19aa9a,_0x3c92f8):_0x19aa9a,_0x37263e=_0x7f2ad6[_0x215ed3(0x1e0)]-0x1,_0x2c4e17;_0x37263e>=0x0;_0x37263e--)(_0x2c4e17=_0x7f2ad6[_0x37263e])&&(_0x111d83=_0x2c4e17(_0x111d83)||_0x111d83);return _0x111d83;},Ie=(_0xe2eeda,_0x1cf24c)=>(_0x1d4638,_0x236d53)=>_0x1cf24c(_0x1d4638,_0x236d53,_0xe2eeda);let me=class extends _0x3343ec{constructor(_0xd68b57,_0x1f3ce5,_0x1a587d){const _0x300d3d=_0x50ed10;super(),this[_0x300d3d(0x22c)]=_0xd68b57,this[_0x300d3d(0x1bc)]=_0x1f3ce5,this['_exclusiveRangeService']=_0x1a587d,this['_initDataChangeListener'](),this['_initExclusiveRangeChange']();}[_0x50ed10(0x23e)](){const _0xea07ea=_0x50ed10;this[_0xea07ea(0x17d)](this['_commandService'][_0xea07ea(0x1f8)](_0x51a015=>{const _0x45539a=_0xea07ea;if(_0x51a015['id']===_0x4d5298['id']){const _0x524ffa=_0x51a015[_0x45539a(0x234)],{cellValue:_0x3522f2,unitId:_0x31d0ab,subUnitId:_0x1292b5}=_0x524ffa,_0x340166=new _0x4bef43(_0x3522f2),_0x14141f=new Set(),_0x11aed5=this[_0x45539a(0x1bc)]['getSubUnitSparkline'](_0x31d0ab,_0x1292b5);if(!_0x11aed5)return;const _0x484d4f=Array[_0x45539a(0x197)](_0x11aed5);_0x340166[_0x45539a(0x1b3)]((_0x544050,_0x383646,_0x127c01)=>{const _0x306895=_0x45539a,_0x40689d=_0x257a64(_0x544050,_0x383646);for(let _0x184f1b=0x0;_0x184f1b<_0x484d4f[_0x306895(0x1e0)];_0x184f1b++){const [_0x5a9e05,_0x47db03]=_0x484d4f[_0x184f1b],_0x158aa5=_0x14141f['has'](_0x5a9e05);_0x158aa5||_0x47db03[_0x306895(0x1fe)]['forValue']((_0x2c87af,_0x2d0e6d,_0xced2ec)=>{const _0x570abe=_0x306895,_0x17ba7b=_0xced2ec;if(_0x17ba7b&&!_0x158aa5&&_0x5b874d[_0x570abe(0x1aa)](_0x40689d,_0x17ba7b))return _0x14141f[_0x570abe(0x216)](_0x5a9e05),!0x0;});}}),_0x14141f[_0x45539a(0x1fd)](_0x830e3=>{const _0x4b7bb1=_0x45539a;this[_0x4b7bb1(0x1bc)][_0x4b7bb1(0x1c8)](_0x31d0ab,_0x1292b5,_0x830e3),this[_0x4b7bb1(0x1bc)]['updateSparklineExtraNum'](_0x31d0ab,_0x1292b5,_0x830e3);});}else{if(_0x51a015['id']===_0x354d09['id']){const _0x50c112=_0x51a015[_0x45539a(0x234)],{range:_0x56cee7,unitId:_0x4db0b4,subUnitId:_0x356676}=_0x50c112,_0x496de2=new Set(),_0x387fbe=this[_0x45539a(0x1bc)][_0x45539a(0x194)](_0x4db0b4,_0x356676);if(!_0x387fbe)return;const _0x3c52d2=Array[_0x45539a(0x197)](_0x387fbe);for(let _0x56a370=0x0;_0x56a370<_0x3c52d2[_0x45539a(0x1e0)];_0x56a370++){const [_0x27671d,_0x320711]=_0x3c52d2[_0x56a370],_0x364ae8=_0x496de2[_0x45539a(0x240)](_0x27671d);_0x364ae8||_0x320711[_0x45539a(0x1fe)][_0x45539a(0x1b3)]((_0x5cb540,_0x508111,_0x3f0f50)=>{const _0x109f90=_0x45539a,_0x1b801f=_0x3f0f50;if(_0x1b801f&&!_0x364ae8&&_0x5b874d[_0x109f90(0x1aa)](_0x56cee7,_0x1b801f))return _0x496de2[_0x109f90(0x216)](_0x27671d),!0x0;});}_0x496de2['forEach'](_0x54a54f=>{const _0x3316b8=_0x45539a;this['_sparklineDataSourceModel'][_0x3316b8(0x1c8)](_0x4db0b4,_0x356676,_0x54a54f),this[_0x3316b8(0x1bc)][_0x3316b8(0x221)](_0x4db0b4,_0x356676,_0x54a54f);});}}}));}[_0x50ed10(0x220)](){const _0x44bf42=_0x50ed10;this[_0x44bf42(0x17d)](this[_0x44bf42(0x1c2)][_0x44bf42(0x1d5)][_0x44bf42(0x1bb)](_0x118457=>{const _0x56ef5f=_0x44bf42,{unitId:_0x2f9ec1,subUnitId:_0x50bf86,ranges:_0x34e39d}=_0x118457,_0x36da8b=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x2f9ec1,_0x50bf86);if(!_0x36da8b)return;const _0x3ea829=Array[_0x56ef5f(0x197)](_0x36da8b),_0x1c81d7=new Set();for(let _0x248eb1=0x0;_0x248eb1<_0x3ea829['length'];_0x248eb1++){const [_0x4338a8,_0x3b0af2]=_0x3ea829[_0x248eb1],_0x476930=_0x1c81d7[_0x56ef5f(0x240)](_0x4338a8);_0x476930||_0x3b0af2[_0x56ef5f(0x1fe)][_0x56ef5f(0x1b3)]((_0x353359,_0x48f5d1,_0x283ab4)=>{const _0x2b8215=_0x56ef5f,_0x315e37=_0x283ab4;if(_0x315e37&&!_0x476930){for(const _0x280f4e of _0x34e39d)if(_0x5b874d[_0x2b8215(0x1aa)](_0x280f4e,_0x315e37)){_0x1c81d7[_0x2b8215(0x216)](_0x4338a8);break;}}});}_0x1c81d7[_0x56ef5f(0x1fd)](_0xe0dac5=>{const _0xa4b6ca=_0x56ef5f;this[_0xa4b6ca(0x1bc)][_0xa4b6ca(0x1c8)](_0x2f9ec1,_0x50bf86,_0xe0dac5),this[_0xa4b6ca(0x1bc)][_0xa4b6ca(0x221)](_0x2f9ec1,_0x50bf86,_0xe0dac5);});}));}};function _0x1858(){const _0x103bf6=['getRowVisible','MUTATION','from','entries','getSparklineById','_updateConfig$','SPACING','SOFT','specialty','STRING','containHiddenCells','MIN_SAFE_INTEGER','_initDependencies','_sparklineModel','groupId','7742833iejJOx','rgb(124,66,147)','rgb(80,102,248)','getSheetBySheetId','rgb(244,104,249)','removeSparkline','intersects','getCellRaw','endColumn','4cesMlU','setValue','setAlpha','asObservable','FRESH','min','forValue','getSizeOf','_ensureAnchorMatrix','setSparkline','parse','symbol','extremumMin','row','subscribe','_sparklineDataSourceModel','registerRefRange','_refRangeService','max','spacing','_onRefRangeChange','_exclusiveRangeService','actualRow','sheet.mutation.set-sparkline','lowPoint','interceptCommand','sheet.mutation.remove-sparkline','clearSparklineCache','lastPoint','u-connect','getSparkline','BOOLEAN','_ensureConfigMap','range','PIE_CHART','disposableCollection','sparklineAnchorMap','config','CUSTOM','foreach','exclusiveRangesChange$','_initRegisterCommand','startColumn','rgb(248,190,21)','_sheetInterceptorService','reBuildAnchorCache','clone','rgb(252,117,60)','markersPoint','deleteUnit','getOwnPropertyDescriptor','length','getCell','ZERO_VALUE','MAX_SAFE_INTEGER','realDeleteValue','unitId','onReady','getCurrentUnitForType','_injector','1169588zBoIRr','_initCorrectRangeWithSparkline','7741745kjMpFd','endRow','themeType','get','8SvPxQn','pluginName','contains','sheet.command.set-sparkline','getCurrentSelections','startRow','registerPluginResource','matrix','BAR_CHART','onCommandExecuted','_sheetSelectionService','ranges','rgb(54,78,244)','_getRefRangeMutationsByDeleteCols','forEach','sparklines','getColVisible','values','SPECIALTY','every','deepClone','SHEET_SPARKLINE_PLUGIN','sheet.command.add-sparkline','standard','removeRows','value','toJSON','zero_value','some','NUMBER','_resourceManagerService','_getRefRangeMutationsByDeleteRows','hasValue','map','getSparklineCache','changeDataSourceInfo','CUSTOM_EXTREMUM','registerCommand','NORMAL','add','set','CONNECT_WITH_LINE','distinctive','getValue','_initMergeWithSparkline','fresh','LINE_CHART','_initSnapshot','10614654tmLKJB','_initExclusiveRangeChange','updateSparklineExtraNum','actualColumn','push','defineProperty','connect_with_line','removePartSparkline','getMatrix','rgb(49,106,246)','moveRows','SELF_EXTREMUM','rgb(46,187,122)','_commandService','COMMAND','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','next','keys','sheet.command.remove-sparkline','subUnitId','delete','params','dispose','seriesColor','remove','UNIVER_SHEET','emptyShowAs','removeColumns','assign','soft','_sparklineAnchorMap','_initDataChangeListener','pushUndoRedo','has','u-spacing','disposeWithMe','addSparkline','sparklineModel','fromJSON','STANDARD','extremumMax','3187406elkQAC','nonNumShowAs','firstPoint','rgb(236,100,169)','column','size','_univerInstanceService','refRangeHandle','type','5348031ZdChwQ','_initHideRowColWithSparkline','number','toRgbString','16866009lcGJOA','_initClearWithSparkline','PROFIT_AND_LOSS_CHART','highPoint','getSubUnitSparkline'];_0x1858=function(){return _0x103bf6;};return _0x1858();}me=Lt([Ie(0x0,_0x2faf1d(_0xde7cb6)),Ie(0x1,_0x2faf1d(x)),Ie(0x2,_0x2faf1d(_0x472c63))],me);var Gt=Object[_0x50ed10(0x1df)],Wt=(_0x1a3a94,_0x1519ae,_0x41cc23,_0x58a1d7)=>{const _0x25719f=_0x50ed10;for(var _0x31805f=_0x58a1d7>0x1?void 0x0:_0x58a1d7?Gt(_0x1519ae,_0x41cc23):_0x1519ae,_0x471ea0=_0x1a3a94[_0x25719f(0x1e0)]-0x1,_0x3631ae;_0x471ea0>=0x0;_0x471ea0--)(_0x3631ae=_0x1a3a94[_0x471ea0])&&(_0x31805f=_0x3631ae(_0x31805f)||_0x31805f);return _0x31805f;},We=(_0x32fba7,_0x57db34)=>(_0x119d19,_0x2590a4)=>_0x57db34(_0x119d19,_0x2590a4,_0x32fba7);let Ce=class extends _0x3343ec{constructor(_0x5b461e,_0x3950f2){const _0x453e0b=_0x50ed10;super(),this['_commandService']=_0x5b461e,this[_0x453e0b(0x1bc)]=_0x3950f2,this[_0x453e0b(0x18d)]();}[_0x50ed10(0x18d)](){const _0x3c2ea0=_0x50ed10;this['_commandService'][_0x3c2ea0(0x1f8)](_0x19c72a=>{const _0x348e71=_0x3c2ea0;if(_0x19c72a['id']===_0x3881b3['id']||_0x19c72a['id']===_0xbe1112['id']||_0x19c72a['id']===_0x4f0128['id']||_0x19c72a['id']===_0x1748f7['id']){const _0x3aa70b=_0x19c72a[_0x348e71(0x234)],{ranges:_0x2d8b94,unitId:_0x38533e,subUnitId:_0x40263c}=_0x3aa70b,_0x4c74d0=new Set(),_0x5e46a1=this[_0x348e71(0x1bc)][_0x348e71(0x194)](_0x38533e,_0x40263c);if(!_0x5e46a1)return;const _0x3d97ac=Array[_0x348e71(0x197)](_0x5e46a1);_0x2d8b94[_0x348e71(0x1fd)](_0x24e902=>{const _0x5f470f=_0x348e71;_0x42b586[_0x5f470f(0x1d4)](_0x24e902,(_0x25b009,_0x804ce7)=>{const _0x553fb3=_0x5f470f,_0x35d924=_0x257a64(_0x25b009,_0x804ce7);for(let _0x3e4502=0x0;_0x3e4502<_0x3d97ac[_0x553fb3(0x1e0)];_0x3e4502++){const [_0x3f17d6,_0x44f71f]=_0x3d97ac[_0x3e4502],_0x5b5bb4=_0x4c74d0[_0x553fb3(0x240)](_0x3f17d6);_0x5b5bb4||_0x44f71f[_0x553fb3(0x1fe)][_0x553fb3(0x1b3)]((_0x59781d,_0x113ba2,_0x13aeb1)=>{const _0x11762a=_0x553fb3,_0x1d6e41=_0x13aeb1;if(_0x1d6e41&&!_0x5b5bb4&&_0x5b874d[_0x11762a(0x1aa)](_0x35d924,_0x1d6e41))return _0x4c74d0[_0x11762a(0x216)](_0x3f17d6),!0x0;});}});}),_0x4c74d0[_0x348e71(0x1fd)](_0x4b92f9=>{const _0x9c6864=_0x348e71;this[_0x9c6864(0x1bc)][_0x9c6864(0x1c8)](_0x38533e,_0x40263c,_0x4b92f9),this[_0x9c6864(0x1bc)]['updateSparklineExtraNum'](_0x38533e,_0x40263c,_0x4b92f9);});}});}};Ce=Wt([We(0x0,_0x2faf1d(_0xde7cb6)),We(0x1,_0x2faf1d(x))],Ce);function _0x2175(_0x3ca32e,_0x53ccd0){const _0x185893=_0x1858();return _0x2175=function(_0x217509,_0x25804c){_0x217509=_0x217509-0x17c;let _0x310f8f=_0x185893[_0x217509];return _0x310f8f;},_0x2175(_0x3ca32e,_0x53ccd0);}var Bt=Object[_0x50ed10(0x1df)],Ht=(_0xcd879e,_0xbab779,_0x174708,_0x163dd2)=>{const _0x27bf26=_0x50ed10;for(var _0x2056a9=_0x163dd2>0x1?void 0x0:_0x163dd2?Bt(_0xbab779,_0x174708):_0xbab779,_0x179802=_0xcd879e[_0x27bf26(0x1e0)]-0x1,_0x2f8707;_0x179802>=0x0;_0x179802--)(_0x2f8707=_0xcd879e[_0x179802])&&(_0x2056a9=_0x2f8707(_0x2056a9)||_0x2056a9);return _0x2056a9;},be=(_0x2be20d,_0x2a903a)=>(_0x561853,_0x583ba8)=>_0x2a903a(_0x561853,_0x583ba8,_0x2be20d);let _e=class extends _0x3343ec{constructor(_0x3aa255,_0x21ce12,_0x5f3513){const _0x888918=_0x50ed10;super(),this[_0x888918(0x22c)]=_0x3aa255,this[_0x888918(0x1d9)]=_0x21ce12,this[_0x888918(0x1bc)]=_0x5f3513,this[_0x888918(0x21b)]();}[_0x50ed10(0x21b)](){const _0x300c21=_0x50ed10;this[_0x300c21(0x17d)](this[_0x300c21(0x1d9)]['interceptCommand']({'getMutations':_0x50b442=>{const _0x3c2342=_0x300c21,_0x2c00fa=[],_0x4d9f5c=[];if(_0x50b442['id']===_0x1bf707['id']){const _0x44c65a=_0x50b442[_0x3c2342(0x234)];if(!_0x44c65a)return{'redos':_0x2c00fa,'undos':_0x4d9f5c};const {unitId:_0x59b47a,subUnitId:_0x1a6885,ranges:_0xde6315}=_0x44c65a,_0x373d90=this[_0x3c2342(0x1bc)]['getSubUnitSparkline'](_0x59b47a,_0x1a6885);if(!_0x373d90)return{'redos':_0x2c00fa,'undos':_0x4d9f5c};const _0x3719d8={},_0x49506e={},_0x1fc583=new Set();_0xde6315['forEach'](_0x39edbe=>{const _0x3f619f=_0x3c2342,_0x2bc670=_0x39edbe['startRow'],_0x3f4e0b=_0x39edbe[_0x3f619f(0x1d7)];_0x42b586[_0x3f619f(0x1d4)](_0x39edbe,(_0x139318,_0x24de99)=>{const _0x562e2a=_0x3f619f,_0x379f4d=this['_sparklineDataSourceModel'][_0x562e2a(0x1cb)](_0x59b47a,_0x1a6885,_0x139318,_0x24de99);if(_0x379f4d&&!(_0x139318===_0x2bc670&&_0x24de99===_0x3f4e0b)){const _0x17bd29=this['_sparklineDataSourceModel'][_0x562e2a(0x199)](_0x59b47a,_0x1a6885,_0x379f4d);if(_0x17bd29){_0x1fc583[_0x562e2a(0x216)](_0x379f4d);let _0x56d337=_0x3719d8[_0x379f4d];_0x56d337||(_0x56d337={'config':_0x4918ed[_0x562e2a(0x203)](_0x17bd29[_0x562e2a(0x1d2)]),'sparklines':new _0x4bef43(_0x17bd29[_0x562e2a(0x1fe)]['clone']())},_0x3719d8[_0x379f4d]=_0x56d337),_0x56d337[_0x562e2a(0x1fe)][_0x562e2a(0x1e4)](_0x139318,_0x24de99),_0x49506e[_0x379f4d]={'config':_0x4918ed[_0x562e2a(0x203)](_0x17bd29['config']),'sparklines':_0x4918ed['deepClone'](_0x17bd29[_0x562e2a(0x1fe)]['clone']())};}}});});for(const [_0x58344c,_0x5a7d37]of _0x373d90){const _0x32998b=_0x5a7d37[_0x3c2342(0x1fe)];_0x32998b[_0x3c2342(0x1b3)]((_0x3eff26,_0x140bb0,_0x5be901)=>{const _0xd007aa=_0x3c2342;for(let _0x2e2c60=0x0;_0x2e2c60<_0xde6315[_0xd007aa(0x1e0)];_0x2e2c60++){const _0x3d0709=_0xde6315[_0x2e2c60];if(_0x5b874d['contains'](_0x3d0709,_0x5be901)){_0x1fc583[_0xd007aa(0x216)](_0x58344c);let _0x56a27a=_0x3719d8[_0x58344c];_0x56a27a||(_0x56a27a={'config':_0x4918ed[_0xd007aa(0x203)](_0x5a7d37['config']),'sparklines':new _0x4bef43(_0x32998b['clone']())},_0x3719d8[_0x58344c]=_0x56a27a),_0x56a27a[_0xd007aa(0x1fe)][_0xd007aa(0x1e4)](_0x3eff26,_0x140bb0),_0x49506e[_0x58344c]||(_0x49506e[_0x58344c]={'config':_0x4918ed[_0xd007aa(0x203)](_0x5a7d37['config']),'sparklines':_0x4918ed[_0xd007aa(0x203)](_0x32998b[_0xd007aa(0x1db)]())});}}});}const _0x2b4862={};Object[_0x3c2342(0x198)](_0x3719d8)[_0x3c2342(0x1fd)](([_0x460f1f,_0x26fb56])=>{const _0x4e5400=_0x3c2342;_0x26fb56[_0x4e5400(0x1fe)]['getSizeOf']()&&(_0x2b4862[_0x460f1f]={'config':_0x26fb56[_0x4e5400(0x1d2)],'sparklines':_0x26fb56[_0x4e5400(0x1fe)][_0x4e5400(0x1db)]()});}),_0x1fc583[_0x3c2342(0x188)]&&(_0x2c00fa['push']({'id':y['id'],'params':{'unitId':_0x59b47a,'subUnitId':_0x1a6885,'groupIds':Array[_0x3c2342(0x197)](_0x1fc583),'isSingle':!0x1}}),_0x4d9f5c['push']({'id':y['id'],'params':{'unitId':_0x59b47a,'subUnitId':_0x1a6885,'groupIds':Array[_0x3c2342(0x197)](_0x1fc583),'isSingle':!0x1}}),_0x2c00fa[_0x3c2342(0x223)]({'id':V['id'],'params':{'unitId':_0x59b47a,'subUnitId':_0x1a6885,'sparklineConfigMap':_0x2b4862}}),_0x4d9f5c[_0x3c2342(0x223)]({'id':V['id'],'params':{'unitId':_0x59b47a,'subUnitId':_0x1a6885,'sparklineConfigMap':_0x49506e}}));}return{'redos':_0x2c00fa,'undos':_0x4d9f5c};}}));}};_e=Ht([be(0x0,_0x2faf1d(_0xde7cb6)),be(0x1,_0x2faf1d(_0x297daa)),be(0x2,_0x2faf1d(x))],_e);var Ft=Object[_0x50ed10(0x1df)],Kt=(_0x2332de,_0x4d53b6,_0x446866,_0x57404d)=>{for(var _0x4def2e=_0x57404d>0x1?void 0x0:_0x57404d?Ft(_0x4d53b6,_0x446866):_0x4d53b6,_0x4b37a8=_0x2332de['length']-0x1,_0x5f1a78;_0x4b37a8>=0x0;_0x4b37a8--)(_0x5f1a78=_0x2332de[_0x4b37a8])&&(_0x4def2e=_0x5f1a78(_0x4def2e)||_0x4def2e);return _0x4def2e;},ge=(_0x42d3a6,_0x9968bf)=>(_0x160616,_0x4866b5)=>_0x9968bf(_0x160616,_0x4866b5,_0x42d3a6);let Me=class extends _0x3343ec{constructor(_0x332824,_0x47a496,_0x2d8020,_0x128aeb){const _0x2715bc=_0x50ed10;super(),se(this,_0x2715bc(0x1d0),new _0x3dc490()),(this[_0x2715bc(0x22c)]=_0x332824,this['_refRangeService']=_0x47a496,this[_0x2715bc(0x189)]=_0x2d8020,this[_0x2715bc(0x1bc)]=_0x128aeb,this[_0x2715bc(0x1c1)](),this[_0x2715bc(0x1ea)]());}[_0x50ed10(0x1c1)](){const _0x408e60=_0x50ed10,_0x20b695=(_0x46d018,_0x1c8d80)=>{const _0xb5fb10=_0x2175,_0x3d78af=this[_0xb5fb10(0x189)][_0xb5fb10(0x1e7)](_0x122023[_0xb5fb10(0x238)]);if(!_0x3d78af||!(_0x3d78af==null?void 0x0:_0x3d78af[_0xb5fb10(0x1a7)](_0x1c8d80)))return;this[_0xb5fb10(0x1d0)][_0xb5fb10(0x235)]();const _0x6fa7b8=_0x4d5ae4=>this[_0xb5fb10(0x18a)](_0x4d5ae4,_0x46d018,_0x1c8d80),_0xd0f4a8=[],_0x4d05a0=this[_0xb5fb10(0x1bc)][_0xb5fb10(0x194)](_0x46d018,_0x1c8d80);if(_0x4d05a0){for(const [_0x4389a2,_0x2b6f0e]of _0x4d05a0)_0x2b6f0e[_0xb5fb10(0x1fe)][_0xb5fb10(0x1b3)]((_0x5cbaa9,_0x298257,_0x19b92a)=>{const _0x4cb025=_0x257a64(_0x5cbaa9,_0x298257);_0xd0f4a8['push'](_0x4cb025);});_0xd0f4a8[_0xb5fb10(0x1fd)](_0x1c681b=>{const _0x4aef42=_0xb5fb10;this[_0x4aef42(0x1d0)][_0x4aef42(0x216)](this[_0x4aef42(0x1be)][_0x4aef42(0x1bd)](_0x1c681b,_0x6fa7b8,_0x46d018,_0x1c8d80));});}};this[_0x408e60(0x17d)](this['_commandService']['onCommandExecuted'](_0x3eae2e=>{const _0x4ba5d9=_0x408e60;if(_0x3eae2e['id']===_0x54d414['id']){const _0x5f11be=_0x3eae2e[_0x4ba5d9(0x234)],_0x2f5af6=_0x5f11be[_0x4ba5d9(0x232)],_0x36b8bb=_0x5f11be[_0x4ba5d9(0x1e5)];if(!_0x2f5af6||!_0x36b8bb)return;_0x20b695(_0x36b8bb,_0x2f5af6);}if(_0x3eae2e['id']===Oe['id']||_0x3eae2e['id']===V['id']){const _0x572f62=_0x3eae2e[_0x4ba5d9(0x234)],_0x11d00c=_0x572f62[_0x4ba5d9(0x232)],_0x2dcf39=_0x572f62['unitId'];if(!_0x11d00c||!_0x2dcf39)return;_0x20b695(_0x2dcf39,_0x11d00c);}}));}[_0x50ed10(0x18a)](_0x11672b,_0x7eb333,_0xefff54){const _0x5b2256=_0x50ed10;switch(_0x11672b['id']){case _0x55a7d0['id']:return this[_0x5b2256(0x1fc)](_0x11672b[_0x5b2256(0x234)],_0x7eb333,_0xefff54);case _0x267ae8['id']:return this[_0x5b2256(0x20e)](_0x11672b[_0x5b2256(0x234)],_0x7eb333,_0xefff54);}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x3453c9,_0x4afe28,_0xddbc63){const _0x1a6903=_0x50ed10;var _0x2e9517,_0x386046;const {range:_0x468064}=_0x3453c9,_0x2e464c=new Set(),_0x52521b={},_0xd12a8e={},_0x4563d9=[],_0x1c5410=[],_0x2dee03=[],_0x5a7321=[];if(!_0x2dcb92(this[_0x1a6903(0x189)],{'unitId':_0x4afe28,'subUnitId':_0xddbc63}))return{'redos':_0x1c5410,'undos':_0x4563d9};const _0x5ba4ba=this['_sparklineDataSourceModel'][_0x1a6903(0x194)](_0x4afe28,_0xddbc63);if(!_0x5ba4ba)return{'redos':_0x1c5410,'undos':_0x4563d9};if(!((_0x386046=(_0x2e9517=this['_sparklineDataSourceModel'][_0x1a6903(0x211)]()[_0x1a6903(0x1d1)]['get'](_0x4afe28))==null?void 0x0:_0x2e9517[_0x1a6903(0x1ee)](_0xddbc63))==null?void 0x0:_0x386046['matrix']))return{'redos':_0x1c5410,'undos':_0x4563d9};for(const [_0x378a63,_0x4f2947]of _0x5ba4ba){const _0x250f0f=_0x4f2947[_0x1a6903(0x1fe)];_0x250f0f[_0x1a6903(0x1b3)]((_0x2881f9,_0x5683f5,_0x5a4216)=>{const _0x19e64d=_0x1a6903;if(_0x5b874d[_0x19e64d(0x1aa)](_0x468064,_0x5a4216)){_0x2e464c[_0x19e64d(0x216)](_0x378a63);let _0x42a317=_0xd12a8e[_0x378a63];_0x42a317||(_0x42a317={'config':_0x4f2947[_0x19e64d(0x1d2)],'sparklines':_0x4f2947[_0x19e64d(0x1fe)][_0x19e64d(0x1db)]()},_0xd12a8e[_0x378a63]=_0x42a317);let _0x266ab6=_0x52521b[_0x378a63];_0x266ab6||(_0x266ab6={'config':_0x4f2947[_0x19e64d(0x1d2)],'sparklines':new _0x4bef43(_0x4f2947[_0x19e64d(0x1fe)][_0x19e64d(0x1db)]())},_0x52521b[_0x378a63]=_0x266ab6);const _0x294b53=_0x20f85c(_0x5a4216,{'id':_0x4228f5['id'],'params':_0x3453c9});_0x294b53?_0x266ab6[_0x19e64d(0x1fe)][_0x19e64d(0x1ae)](_0x2881f9,_0x5683f5,_0x294b53):_0x266ab6[_0x19e64d(0x1fe)][_0x19e64d(0x1ae)](_0x2881f9,_0x5683f5,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x225eb7[_0x19e64d(0x215)]});}}),_0x250f0f[_0x1a6903(0x1b3)]((_0x38a3f1,_0x4bf434,_0x4f690b)=>{const _0x3ca6a7=_0x1a6903;if(_0x38a3f1<=_0x468064['endRow']&&_0x38a3f1>=_0x468064[_0x3ca6a7(0x1f4)]){_0x2e464c['add'](_0x378a63);let _0x3fc2d1=_0xd12a8e[_0x378a63];_0x3fc2d1||(_0x3fc2d1={'config':_0x4f2947['config'],'sparklines':_0x4f2947[_0x3ca6a7(0x1fe)][_0x3ca6a7(0x1db)]()},_0xd12a8e[_0x378a63]=_0x3fc2d1);let _0x282598=_0x52521b[_0x378a63];_0x282598||(_0x282598={'config':_0x4f2947['config'],'sparklines':new _0x4bef43(_0x4f2947[_0x3ca6a7(0x1fe)][_0x3ca6a7(0x1db)]())},_0x52521b[_0x378a63]=_0x282598);}});}_0x5a7321[_0x1a6903(0x223)]({'id':y['id'],'params':{'unitId':_0x4afe28,'subUnitId':_0xddbc63,'groupIds':Array['from'](_0x2e464c),'isSingle':!0x1}}),_0x2dee03[_0x1a6903(0x223)]({'id':y['id'],'params':{'unitId':_0x4afe28,'subUnitId':_0xddbc63,'groupIds':Array[_0x1a6903(0x197)](_0x2e464c),'isSingle':!0x1}});const _0x37baab={};let _0x3716cd=!0x1;return Object['entries'](_0x52521b)[_0x1a6903(0x1fd)](([_0x2e4ee9,_0x22bcc0])=>{const _0x42816b=_0x1a6903;_0x22bcc0[_0x42816b(0x1fe)][_0x42816b(0x1b4)]()&&(_0x3716cd=!0x0,_0x22bcc0[_0x42816b(0x1fe)][_0x42816b(0x207)](_0x468064[_0x42816b(0x1f4)],_0x468064['endRow']-_0x468064[_0x42816b(0x1f4)]+0x1),_0x37baab[_0x2e4ee9]={'config':_0x22bcc0[_0x42816b(0x1d2)],'sparklines':_0x22bcc0[_0x42816b(0x1fe)]['clone']()});}),_0x3716cd&&_0x1c5410[_0x1a6903(0x223)]({'id':V['id'],'params':{'unitId':_0x4afe28,'subUnitId':_0xddbc63,'sparklineConfigMap':_0x37baab}}),_0x4563d9[_0x1a6903(0x223)]({'id':V['id'],'params':{'unitId':_0x4afe28,'subUnitId':_0xddbc63,'sparklineConfigMap':_0xd12a8e}}),{'redos':_0x1c5410,'undos':_0x4563d9,'preRedos':_0x2dee03,'preUndos':_0x5a7321};}[_0x50ed10(0x1fc)](_0x278a2d,_0x34e149,_0xaa422){const _0x51883f=_0x50ed10;var _0x649e8f,_0x5dceea;const {range:_0x145c60}=_0x278a2d,_0x489cfc=new Set(),_0x409931={},_0x20ab56={},_0x4bdf46=[],_0x185420=[],_0x5a6729=[],_0x13adc5=[];if(!_0x2dcb92(this['_univerInstanceService'],{'unitId':_0x34e149,'subUnitId':_0xaa422}))return{'redos':_0x185420,'undos':_0x4bdf46};const _0x565ca9=this[_0x51883f(0x1bc)][_0x51883f(0x194)](_0x34e149,_0xaa422);if(!_0x565ca9)return{'redos':_0x185420,'undos':_0x4bdf46};if(!((_0x5dceea=(_0x649e8f=this['_sparklineDataSourceModel'][_0x51883f(0x211)]()[_0x51883f(0x1d1)][_0x51883f(0x1ee)](_0x34e149))==null?void 0x0:_0x649e8f[_0x51883f(0x1ee)](_0xaa422))==null?void 0x0:_0x5dceea[_0x51883f(0x1f6)]))return{'redos':_0x185420,'undos':_0x4bdf46};for(const [_0x107748,_0x12705e]of _0x565ca9){const _0x3d40be=_0x12705e[_0x51883f(0x1fe)];_0x3d40be[_0x51883f(0x1b3)]((_0x429497,_0x36c22d,_0xe373ef)=>{const _0x39a640=_0x51883f;if(_0x5b874d[_0x39a640(0x1aa)](_0x145c60,_0xe373ef)){_0x489cfc['add'](_0x107748);let _0x23a9fb=_0x20ab56[_0x107748];_0x23a9fb||(_0x23a9fb={'config':_0x12705e[_0x39a640(0x1d2)],'sparklines':_0x12705e[_0x39a640(0x1fe)]['clone']()},_0x20ab56[_0x107748]=_0x23a9fb);let _0x4c5c51=_0x409931[_0x107748];_0x4c5c51||(_0x4c5c51={'config':_0x12705e[_0x39a640(0x1d2)],'sparklines':new _0x4bef43(_0x12705e[_0x39a640(0x1fe)][_0x39a640(0x1db)]())},_0x409931[_0x107748]=_0x4c5c51);const _0x47e96e=_0x20f85c(_0xe373ef,{'id':_0x44c03b['id'],'params':_0x278a2d});_0x47e96e?_0x4c5c51[_0x39a640(0x1fe)][_0x39a640(0x1ae)](_0x429497,_0x36c22d,_0x47e96e):_0x4c5c51[_0x39a640(0x1fe)][_0x39a640(0x1ae)](_0x429497,_0x36c22d,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x225eb7[_0x39a640(0x215)]});}}),_0x3d40be['forValue']((_0x422975,_0x56ded7,_0x55ea75)=>{const _0x35b295=_0x51883f;if(_0x56ded7<=_0x145c60[_0x35b295(0x1ac)]&&_0x56ded7>=_0x145c60[_0x35b295(0x1d7)]){_0x489cfc[_0x35b295(0x216)](_0x107748);let _0xf50865=_0x20ab56[_0x107748];_0xf50865||(_0xf50865={'config':_0x12705e['config'],'sparklines':_0x12705e['sparklines']['clone']()},_0x20ab56[_0x107748]=_0xf50865);let _0x391a7b=_0x409931[_0x107748];_0x391a7b||(_0x391a7b={'config':_0x12705e[_0x35b295(0x1d2)],'sparklines':new _0x4bef43(_0x12705e['sparklines']['clone']())},_0x409931[_0x107748]=_0x391a7b);}});}_0x13adc5[_0x51883f(0x223)]({'id':y['id'],'params':{'unitId':_0x34e149,'subUnitId':_0xaa422,'groupIds':Array[_0x51883f(0x197)](_0x489cfc),'isSingle':!0x1}}),_0x5a6729[_0x51883f(0x223)]({'id':y['id'],'params':{'unitId':_0x34e149,'subUnitId':_0xaa422,'groupIds':Array[_0x51883f(0x197)](_0x489cfc),'isSingle':!0x1}});const _0x4d3e93={};let _0x19b8bd=!0x1;return Object[_0x51883f(0x198)](_0x409931)[_0x51883f(0x1fd)](([_0x44d74a,_0x199c21])=>{const _0x5f17cd=_0x51883f;_0x199c21['sparklines'][_0x5f17cd(0x1b4)]()&&(_0x19b8bd=!0x0,_0x199c21['sparklines']['removeColumns'](_0x145c60[_0x5f17cd(0x1d7)],_0x145c60[_0x5f17cd(0x1ac)]-_0x145c60[_0x5f17cd(0x1d7)]+0x1),_0x4d3e93[_0x44d74a]={'config':_0x199c21[_0x5f17cd(0x1d2)],'sparklines':_0x199c21[_0x5f17cd(0x1fe)][_0x5f17cd(0x1db)]()});}),_0x19b8bd&&_0x185420['push']({'id':V['id'],'params':{'unitId':_0x34e149,'subUnitId':_0xaa422,'sparklineConfigMap':_0x4d3e93}}),_0x4bdf46[_0x51883f(0x223)]({'id':V['id'],'params':{'unitId':_0x34e149,'subUnitId':_0xaa422,'sparklineConfigMap':_0x20ab56}}),{'redos':_0x185420,'undos':_0x4bdf46,'preRedos':_0x5a6729,'preUndos':_0x13adc5};}[_0x50ed10(0x1ea)](){this['disposeWithMe'](this['_commandService']['onCommandExecuted'](_0x890129=>{const _0x237b72=_0x2175;if(_0x890129['id']===_0x2b9448['id']){const _0x3cc524=_0x890129[_0x237b72(0x234)],{unitId:_0x27d9d9,subUnitId:_0x47f160,range:_0x16c0d8}=_0x3cc524,_0x511afa=_0x16c0d8[_0x237b72(0x1d7)],_0x4268af=_0x16c0d8[_0x237b72(0x1ac)]-_0x16c0d8['startColumn']+0x1,_0x2a4003=this[_0x237b72(0x1bc)]['getSubUnitSparkline'](_0x27d9d9,_0x47f160);if(!_0x2a4003)return;for(const [_0x339391,_0x59f735]of _0x2a4003){this[_0x237b72(0x1bc)][_0x237b72(0x1c8)](_0x27d9d9,_0x47f160,_0x339391);const _0x4c8dd8=_0x59f735[_0x237b72(0x1fe)];_0x4c8dd8['forValue']((_0x1c59e6,_0x22024d,_0x5e60b0)=>{const _0x15a329=_0x237b72,_0x4be70a={..._0x5e60b0};_0x511afa<=_0x4be70a['startColumn']?(_0x4be70a[_0x15a329(0x1d7)]+=_0x4268af,_0x4be70a[_0x15a329(0x1ac)]+=_0x4268af):_0x511afa>_0x4be70a[_0x15a329(0x1ac)]||(_0x4be70a[_0x15a329(0x1ac)]+=_0x4268af),_0x4c8dd8[_0x15a329(0x1ae)](_0x1c59e6,_0x22024d,_0x4be70a);});const _0x34a639=_0x4c8dd8[_0x237b72(0x227)]();for(const _0x7504fa in _0x34a639){const _0x365117=_0x34a639[Number(_0x7504fa)];if(!_0x365117)continue;const _0x26dd6c=Object[_0x237b72(0x230)](_0x365117)[_0x237b72(0x210)](Number),_0x4083a3=Math[_0x237b72(0x1bf)](..._0x26dd6c);for(let _0x223d69=_0x4083a3;_0x223d69>=_0x511afa;_0x223d69--)_0x223d69>=_0x511afa&&_0x365117[_0x223d69]&&(_0x365117[_0x223d69+_0x4268af]=_0x365117[_0x223d69],delete _0x365117[_0x223d69]);}this[_0x237b72(0x1bc)][_0x237b72(0x221)](_0x27d9d9,_0x47f160,_0x339391);}}else{if(_0x890129['id']===_0x2cc34d['id']){const _0x470a6e=_0x890129[_0x237b72(0x234)],{unitId:_0x6989f4,subUnitId:_0x206bab,range:_0x19413d}=_0x470a6e,_0xf6a8b6=_0x19413d[_0x237b72(0x1f4)],_0x883ae3=_0x19413d[_0x237b72(0x1ec)]-_0x19413d[_0x237b72(0x1f4)]+0x1,_0x388f9f=this[_0x237b72(0x1bc)]['getSubUnitSparkline'](_0x6989f4,_0x206bab);if(!_0x388f9f)return;for(const [_0x2a1d4d,_0xfd076b]of _0x388f9f){this[_0x237b72(0x1bc)][_0x237b72(0x1c8)](_0x6989f4,_0x206bab,_0x2a1d4d);const _0x2764db=_0xfd076b[_0x237b72(0x1fe)];_0x2764db['forValue']((_0x414417,_0x1ef56a,_0x4b4e6b)=>{const _0x463243=_0x237b72,_0x3056fc={..._0x4b4e6b};_0xf6a8b6<=_0x3056fc[_0x463243(0x1f4)]?(_0x3056fc['startRow']+=_0x883ae3,_0x3056fc[_0x463243(0x1ec)]+=_0x883ae3):_0xf6a8b6>_0x3056fc[_0x463243(0x1ec)]||(_0x3056fc[_0x463243(0x1ec)]+=_0x883ae3),_0x2764db[_0x463243(0x1ae)](_0x414417,_0x1ef56a,_0x3056fc);});const _0x5e6f59=_0x2764db[_0x237b72(0x227)](),_0x35110f=Object[_0x237b72(0x230)](_0x5e6f59)['map'](Number),_0x5cac31=Math[_0x237b72(0x1bf)](..._0x35110f);for(let _0x3b236c=_0x5cac31;_0x3b236c>=_0xf6a8b6;_0x3b236c--)_0x3b236c>=_0xf6a8b6&&_0x5e6f59[_0x3b236c]&&(_0x5e6f59[_0x3b236c+_0x883ae3]=_0x5e6f59[_0x3b236c],delete _0x5e6f59[_0x3b236c]);this[_0x237b72(0x1bc)][_0x237b72(0x221)](_0x6989f4,_0x206bab,_0x2a1d4d);}}else{if(_0x890129['id']===_0x44c03b['id']){const _0x464884=_0x890129['params'],{range:_0x5762bf,unitId:_0x179207,subUnitId:_0x1ed117}=_0x464884,_0x3e2b93=this[_0x237b72(0x1bc)]['getSubUnitSparkline'](_0x179207,_0x1ed117);if(!_0x3e2b93)return;for(const [_0xb4162d,_0x25e086]of _0x3e2b93){const _0xea3248=_0x25e086[_0x237b72(0x1fe)];_0xea3248['forValue']((_0x24c8ce,_0x71b0af,_0x2cff38)=>{const _0x20f621=_0x237b72,_0x2e4c92=_0x20f85c(_0x2cff38,_0x890129);_0x2e4c92?_0xea3248[_0x20f621(0x1ae)](_0x24c8ce,_0x71b0af,_0x2e4c92):_0xea3248['setValue'](_0x24c8ce,_0x71b0af,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x225eb7[_0x20f621(0x215)]});}),_0xea3248[_0x237b72(0x23a)](_0x5762bf[_0x237b72(0x1d7)],_0x5762bf[_0x237b72(0x1ac)]-_0x5762bf[_0x237b72(0x1d7)]+0x1);}this[_0x237b72(0x1bc)][_0x237b72(0x1da)](_0x179207,_0x1ed117);}else{if(_0x890129['id']===_0x4228f5['id']){const _0x58cdbb=_0x890129[_0x237b72(0x234)],{range:_0x58bb1e,unitId:_0x4f4fd2,subUnitId:_0x52261d}=_0x58cdbb,_0x2238b3=this[_0x237b72(0x1bc)][_0x237b72(0x194)](_0x4f4fd2,_0x52261d);if(!_0x2238b3)return;for(const [_0x14a1e2,_0x681dec]of _0x2238b3){const _0x2c8251=_0x681dec['sparklines'];_0x2c8251['forValue']((_0x27dde1,_0x5b93cb,_0x461236)=>{const _0xfe3ec0=_0x237b72,_0x24d614=_0x20f85c(_0x461236,_0x890129);_0x24d614?_0x2c8251[_0xfe3ec0(0x1ae)](_0x27dde1,_0x5b93cb,_0x24d614):_0x2c8251['setValue'](_0x27dde1,_0x5b93cb,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x225eb7[_0xfe3ec0(0x215)]});}),_0x2c8251[_0x237b72(0x207)](_0x58bb1e[_0x237b72(0x1f4)],_0x58bb1e['endRow']-_0x58bb1e[_0x237b72(0x1f4)]+0x1);}this[_0x237b72(0x1bc)][_0x237b72(0x1da)](_0x4f4fd2,_0x52261d);}else{if(_0x890129['id']===_0x2053a3['id']){const _0xc2f1b=_0x890129[_0x237b72(0x234)],{unitId:_0x3dc0b3,subUnitId:_0x4b9b8f,sourceRange:_0xed1796,targetRange:_0x581a38}=_0xc2f1b,_0x3287b7=this['_sparklineDataSourceModel'][_0x237b72(0x194)](_0x3dc0b3,_0x4b9b8f);if(!_0x3287b7)return;for(const [_0x32b9a4,_0x12a33c]of _0x3287b7){const _0x23ab17=_0x12a33c[_0x237b72(0x1fe)];_0x23ab17['forValue']((_0x49e775,_0x1fc9df,_0x9470f1)=>{const _0x3ae233=_0x237b72,_0x4fbddb=_0x20f85c(_0x9470f1,_0x890129);_0x4fbddb?_0x23ab17[_0x3ae233(0x1ae)](_0x49e775,_0x1fc9df,_0x4fbddb):_0x23ab17[_0x3ae233(0x1ae)](_0x49e775,_0x1fc9df,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x225eb7[_0x3ae233(0x215)]});}),_0x23ab17['moveColumns'](_0xed1796[_0x237b72(0x1d7)],_0xed1796[_0x237b72(0x1ac)]-_0xed1796[_0x237b72(0x1d7)]+0x1,_0x581a38['startColumn']);}this[_0x237b72(0x1bc)]['reBuildAnchorCache'](_0x3dc0b3,_0x4b9b8f);}else{if(_0x890129['id']===_0x3e660e['id']){const _0x9ee718=_0x890129[_0x237b72(0x234)],{unitId:_0x3830e8,subUnitId:_0x5b5ce9,sourceRange:_0x1abecc,targetRange:_0x457ab2}=_0x9ee718,_0xe5681d=this[_0x237b72(0x1bc)][_0x237b72(0x194)](_0x3830e8,_0x5b5ce9);if(!_0xe5681d)return;for(const [_0x1e007a,_0x1d2f41]of _0xe5681d){const _0x53f387=_0x1d2f41[_0x237b72(0x1fe)];_0x53f387[_0x237b72(0x1b3)]((_0x416301,_0x53b7d6,_0x3f9961)=>{const _0x102d05=_0x237b72,_0x3192e7=_0x20f85c(_0x3f9961,_0x890129);_0x3192e7?_0x53f387[_0x102d05(0x1ae)](_0x416301,_0x53b7d6,_0x3192e7):_0x53f387['setValue'](_0x416301,_0x53b7d6,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x225eb7['NORMAL']});}),_0x53f387[_0x237b72(0x229)](_0x1abecc[_0x237b72(0x1f4)],_0x1abecc[_0x237b72(0x1ec)]-_0x1abecc['startRow']+0x1,_0x457ab2[_0x237b72(0x1f4)]);}this[_0x237b72(0x1bc)][_0x237b72(0x1da)](_0x3830e8,_0x5b5ce9);}else{if(_0x890129['id']===_0x4e91f0['id']){const _0x389423=_0x890129[_0x237b72(0x234)],{fromRange:_0x1f934c,toRange:_0x52a630,unitId:_0x3edb51,from:_0x42ebc1,to:_0x24ce1e}=_0x389423;if(_0x42ebc1['subUnitId']!==_0x24ce1e[_0x237b72(0x232)])return;const _0x52652e=_0x42ebc1[_0x237b72(0x232)],{startRow:_0x409fad,endRow:_0x4658f1,startColumn:_0x249432,endColumn:_0x54e18f}=_0x1f934c,{startRow:_0x410569,startColumn:_0x41176e}=_0x52a630,_0x3f4a11=_0x410569-_0x409fad,_0x5a7658=_0x41176e-_0x249432,_0x4e8522=this[_0x237b72(0x1bc)][_0x237b72(0x194)](_0x3edb51,_0x52652e);if(!(_0x4e8522!=null&&_0x4e8522[_0x237b72(0x188)]))return;for(let _0x3ee6e8=_0x409fad;_0x3ee6e8<=_0x4658f1;_0x3ee6e8++)for(let _0x34f96d=_0x249432;_0x34f96d<=_0x54e18f;_0x34f96d++){const _0x3e29b3=this[_0x237b72(0x1bc)]['getSparkline'](_0x3edb51,_0x52652e,_0x3ee6e8,_0x34f96d);if(_0x3e29b3){const _0x459dc6=this[_0x237b72(0x1bc)][_0x237b72(0x199)](_0x3edb51,_0x52652e,_0x3e29b3);if(_0x459dc6){const _0x55c259=_0x459dc6[_0x237b72(0x1fe)]['getValue'](_0x3ee6e8,_0x34f96d);_0x55c259&&(_0x459dc6[_0x237b72(0x1fe)][_0x237b72(0x1ae)](_0x3ee6e8+_0x3f4a11,_0x34f96d+_0x5a7658,_0x55c259),_0x459dc6['sparklines'][_0x237b72(0x1e4)](_0x3ee6e8,_0x34f96d));}}}for(const [_0x363f35,_0x45d332]of _0x4e8522){const _0x12722c=_0x45d332[_0x237b72(0x1fe)];_0x12722c[_0x237b72(0x1b3)]((_0x44aa9b,_0xa6b2e,_0xffa962)=>{const _0x23b046=_0x237b72,_0x2c6307={..._0xffa962};_0x5b874d[_0x23b046(0x1f1)](_0x1f934c,_0xffa962)&&(_0x2c6307[_0x23b046(0x1f4)]+=_0x3f4a11,_0x2c6307[_0x23b046(0x1ec)]+=_0x3f4a11,_0x2c6307['startColumn']+=_0x5a7658,_0x2c6307[_0x23b046(0x1ac)]+=_0x5a7658),_0x12722c[_0x23b046(0x1ae)](_0x44aa9b,_0xa6b2e,_0x2c6307);});}this[_0x237b72(0x1bc)]['reBuildAnchorCache'](_0x3edb51,_0x52652e);}}}}}}}}));}};Me=Kt([ge(0x0,_0x2faf1d(_0xde7cb6)),ge(0x1,_0x2faf1d(_0x5bf560)),ge(0x2,_0x2f6da6),ge(0x3,_0x2faf1d(x))],Me);var Xt=Object[_0x50ed10(0x1df)],zt=(_0xbe870f,_0x5d8e93,_0x5d20fa,_0x4aaf4c)=>{const _0x8cda9f=_0x50ed10;for(var _0x14e6b2=_0x4aaf4c>0x1?void 0x0:_0x4aaf4c?Xt(_0x5d8e93,_0x5d20fa):_0x5d8e93,_0x40d39e=_0xbe870f[_0x8cda9f(0x1e0)]-0x1,_0x41b1b0;_0x40d39e>=0x0;_0x40d39e--)(_0x41b1b0=_0xbe870f[_0x40d39e])&&(_0x14e6b2=_0x41b1b0(_0x14e6b2)||_0x14e6b2);return _0x14e6b2;},Be=(_0x291fa1,_0x5c4377)=>(_0x3a1eb4,_0x2af468)=>_0x5c4377(_0x3a1eb4,_0x2af468,_0x291fa1);let Re=class extends _0x3343ec{constructor(_0x321a6e,_0x523b2b){const _0x4781e8=_0x50ed10;super(),this[_0x4781e8(0x20d)]=_0x321a6e,this['_sparklineDataSourceModel']=_0x523b2b,this[_0x4781e8(0x21e)]();}['_initSnapshot'](){const _0x18c3ea=_0x50ed10,_0x57bf3c=_0x153e2b=>{const _0x57e1c9=_0x2175,_0x7e3c47=this[_0x57e1c9(0x1bc)][_0x57e1c9(0x209)](_0x153e2b);return _0x7e3c47?JSON['stringify'](_0x7e3c47):'';},_0xa4aa3c=_0x2c60bc=>_0x2c60bc?JSON[_0x18c3ea(0x1b7)](_0x2c60bc):{};this[_0x18c3ea(0x17d)](this[_0x18c3ea(0x20d)][_0x18c3ea(0x1f5)]({'toJson':_0x57bf3c,'parseJson':_0xa4aa3c,'pluginName':Ke,'businesses':[_0x122023[_0x18c3ea(0x238)]],'onLoad':(_0x1b8601,_0x1154b9)=>{const _0x210e40=_0x18c3ea;this[_0x210e40(0x1bc)][_0x210e40(0x180)](_0x1154b9);},'onUnLoad':_0x3306d3=>{const _0x15d500=_0x18c3ea;this[_0x15d500(0x1bc)]['deleteUnit'](_0x3306d3);}}));}};Re=zt([Be(0x0,_0x2faf1d(_0x9606e)),Be(0x1,_0x2faf1d(x))],Re);var Jt=Object[_0x50ed10(0x224)],Zt=Object[_0x50ed10(0x1df)],Yt=(_0x1d4229,_0x5f24be,_0x5440c3)=>_0x5f24be in _0x1d4229?Jt(_0x1d4229,_0x5f24be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5440c3}):_0x1d4229[_0x5f24be]=_0x5440c3,qt=(_0x86d0,_0x3ba253,_0x1e5c11,_0x50c35f)=>{for(var _0x328698=_0x50c35f>0x1?void 0x0:_0x50c35f?Zt(_0x3ba253,_0x1e5c11):_0x3ba253,_0x2d9576=_0x86d0['length']-0x1,_0xa74b24;_0x2d9576>=0x0;_0x2d9576--)(_0xa74b24=_0x86d0[_0x2d9576])&&(_0x328698=_0xa74b24(_0x328698)||_0x328698);return _0x328698;},He=(_0x17fef,_0x5162d7)=>(_0x3d0a39,_0x1cd8aa)=>_0x5162d7(_0x3d0a39,_0x1cd8aa,_0x17fef),ze=(_0x2eb9e5,_0x440edd,_0x1a1666)=>Yt(_0x2eb9e5,typeof _0x440edd!=_0x50ed10(0x1b8)?_0x440edd+'':_0x440edd,_0x1a1666);let ve=class extends _0x4a84bc{constructor(_0x4e3863={},_0x5a8872,_0x2acbe9){const _0x3fd8d0=_0x50ed10;super(),this['_config']=_0x4e3863,this[_0x3fd8d0(0x1e8)]=_0x5a8872,this[_0x3fd8d0(0x22c)]=_0x2acbe9,this[_0x3fd8d0(0x1a1)](),this[_0x3fd8d0(0x1d6)]();}[_0x50ed10(0x1a1)](){const _0x1d5eff=_0x50ed10;[[x],[me],[_e],[Se],[Me],[Ce],[ke],[Re]][_0x1d5eff(0x1fd)](_0x2ae716=>{const _0x3e0a6c=_0x1d5eff;this[_0x3e0a6c(0x1e8)][_0x3e0a6c(0x216)](_0x2ae716);}),_0x4be062(this['_injector'],[[Re]]);}[_0x50ed10(0x1e6)](){const _0x3aa35c=_0x50ed10;_0x4be062(this[_0x3aa35c(0x1e8)],[[me],[_e],[Se],[Me],[Ce],[ke]]);}[_0x50ed10(0x1d6)](){const _0x133148=_0x50ed10;[Nt,V,Ot,y,xt,Oe][_0x133148(0x1fd)](_0xf5638e=>this[_0x133148(0x22c)][_0x133148(0x214)](_0xf5638e));}};ze(ve,_0x50ed10(0x1f0),Ke),ze(ve,'type',_0x122023['UNIVER_SHEET']),ve=qt([_0x2fe288(_0x239314),He(0x1,_0x2faf1d(_0x3b8395)),He(0x2,_0x2faf1d(_0xde7cb6))],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 _0x5303b5=_0x5714;(function(_0x10e4a0,_0x5ac9ea){const _0x57b369=_0x5714,_0x34b9a7=_0x10e4a0();while(!![]){try{const _0x48f42c=-parseInt(_0x57b369(0x211))/0x1*(parseInt(_0x57b369(0x1f4))/0x2)+parseInt(_0x57b369(0x1df))/0x3*(-parseInt(_0x57b369(0x1fb))/0x4)+-parseInt(_0x57b369(0x203))/0x5+parseInt(_0x57b369(0x1dd))/0x6*(-parseInt(_0x57b369(0x20b))/0x7)+-parseInt(_0x57b369(0x1e2))/0x8+parseInt(_0x57b369(0x20a))/0x9*(parseInt(_0x57b369(0x1e7))/0xa)+parseInt(_0x57b369(0x210))/0xb;if(_0x48f42c===_0x5ac9ea)break;else _0x34b9a7['push'](_0x34b9a7['shift']());}catch(_0x15991f){_0x34b9a7['push'](_0x34b9a7['shift']());}}}(_0x288a,0x224f3));import{SparklineDataSourceModel as _0x347a49,SetSheetSparklineCommand as _0x3e1f29,RemoveSheetSparklineCommand as _0x1e583d,AddSheetSparklineCommand as _0x183d2b,SparklineTypeEnum as _0x41c114}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x3991ef,Injector as _0x174f3a,ICommandService as _0x46e53b,Tools as _0x5bec3d}from'@univerjs/core';import{FWorksheet as _0x232225}from'@univerjs/sheets/facade';import{FEnum as _0x1f58f0,FEventName as _0x51f3eb,FUniver as _0xe6c334}from'@univerjs/core/facade';import{SheetsSelectionsService as _0xa1b72f}from'@univerjs/sheets';var z=Object[_0x5303b5(0x205)],H=(_0x1771fa,_0x5d639b,_0x3c465e,_0x288fcd)=>{const _0x1a08db=_0x5303b5;for(var _0x5cf8e5=_0x288fcd>0x1?void 0x0:_0x288fcd?z(_0x5d639b,_0x3c465e):_0x5d639b,_0x11c74d=_0x1771fa[_0x1a08db(0x1f5)]-0x1,_0x16f765;_0x11c74d>=0x0;_0x11c74d--)(_0x16f765=_0x1771fa[_0x11c74d])&&(_0x5cf8e5=_0x16f765(_0x5cf8e5)||_0x5cf8e5);return _0x5cf8e5;},V=(_0x59c9e3,_0xd10f2d)=>(_0x245740,_0x2bfc75)=>_0xd10f2d(_0x245740,_0x2bfc75,_0x59c9e3);let C=class{constructor(_0x270853,_0x128eea,_0x18246a,_0xad5f31,_0x3eae57,_0x5c3c71){const _0x171dfc=_0x5303b5;this[_0x171dfc(0x1db)]=_0x270853,this[_0x171dfc(0x1de)]=_0x128eea,this[_0x171dfc(0x213)]=_0x18246a,this['_row']=_0xad5f31,this['_col']=_0x3eae57,this[_0x171dfc(0x1e8)]=_0x5c3c71;}['changeDataSource'](_0x4e2125,_0x2100b1){const _0x14e9b0=_0x5303b5,_0x5e82f5=this[_0x14e9b0(0x1e8)]['get'](_0x347a49),_0x20d6de=this[_0x14e9b0(0x1e8)][_0x14e9b0(0x1ed)](_0x46e53b),_0x1fe857=_0x5e82f5[_0x14e9b0(0x212)](this[_0x14e9b0(0x1db)],this['_subUnitId'],this[_0x14e9b0(0x213)]);if(!_0x1fe857)return;const _0x52bf96={'config':_0x1fe857,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x14e9b0(0x213)],'resetType':_0x14e9b0(0x201),'sourceRanges':[_0x4e2125],'targetRanges':[_0x2100b1],'primary':{'startRow':this[_0x14e9b0(0x1fc)],'startColumn':this[_0x14e9b0(0x1e5)],'endRow':this[_0x14e9b0(0x1fc)],'endColumn':this[_0x14e9b0(0x1e5)],'actualRow':this[_0x14e9b0(0x1fc)],'actualColumn':this[_0x14e9b0(0x1e5)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x20d6de[_0x14e9b0(0x1e6)](_0x3e1f29['id'],_0x52bf96),this[_0x14e9b0(0x1fc)]=_0x2100b1['startRow'],this[_0x14e9b0(0x1e5)]=_0x2100b1[_0x14e9b0(0x1da)],this;}[_0x5303b5(0x20c)](){const _0x3ed8e1=_0x5303b5,_0x52da6a=this[_0x3ed8e1(0x1e8)][_0x3ed8e1(0x1ed)](_0x46e53b),_0x44f966={'isSingle':!0x0,'ranges':[{'startRow':this[_0x3ed8e1(0x1fc)],'startColumn':this['_col'],'endRow':this[_0x3ed8e1(0x1fc)],'endColumn':this[_0x3ed8e1(0x1e5)]}]};_0x52da6a['syncExecuteCommand'](_0x1e583d['id'],_0x44f966);}};C=H([V(0x5,_0x3991ef(_0x174f3a))],C);var q=Object[_0x5303b5(0x205)],J=(_0x2d0b60,_0x5aa44b,_0x33edd3,_0x1c60e1)=>{const _0x2cf9b3=_0x5303b5;for(var _0x46afd3=_0x1c60e1>0x1?void 0x0:_0x1c60e1?q(_0x5aa44b,_0x33edd3):_0x5aa44b,_0x108905=_0x2d0b60[_0x2cf9b3(0x1f5)]-0x1,_0x2f2a48;_0x108905>=0x0;_0x108905--)(_0x2f2a48=_0x2d0b60[_0x108905])&&(_0x46afd3=_0x2f2a48(_0x46afd3)||_0x46afd3);return _0x46afd3;},K=(_0x162c8f,_0x2d5fb7)=>(_0xde6cb4,_0x260f38)=>_0x2d5fb7(_0xde6cb4,_0x260f38,_0x162c8f);let w=class{constructor(_0x406a5a,_0x174cf5,_0x3f0bab,_0x40bd5c,_0x3d9556,_0xfe6ea8){const _0x782b78=_0x5303b5;this['_unitId']=_0x406a5a,this[_0x782b78(0x1de)]=_0x174cf5,this[_0x782b78(0x213)]=_0x3f0bab,this[_0x782b78(0x1fc)]=_0x40bd5c,this[_0x782b78(0x1e5)]=_0x3d9556,this['_injector']=_0xfe6ea8;}[_0x5303b5(0x1d8)](_0x3aa626,_0x4d0489){const _0x3e5edd=_0x5303b5,_0x571fbb=this[_0x3e5edd(0x1e8)]['get'](_0x347a49),_0x4b7b83=this['_injector'][_0x3e5edd(0x1ed)](_0x46e53b),_0x28dd23=_0x571fbb[_0x3e5edd(0x212)](this[_0x3e5edd(0x1db)],this[_0x3e5edd(0x1de)],this[_0x3e5edd(0x213)]);if(!_0x28dd23)return;const _0x3bd4bc={'config':_0x28dd23,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x3e5edd(0x213)],'resetType':_0x3e5edd(0x20f),'sourceRanges':_0x3aa626,'targetRanges':_0x4d0489,'primary':{'startRow':this[_0x3e5edd(0x1fc)],'startColumn':this[_0x3e5edd(0x1e5)],'endRow':this['_row'],'endColumn':this[_0x3e5edd(0x1e5)],'actualRow':this[_0x3e5edd(0x1fc)],'actualColumn':this[_0x3e5edd(0x1e5)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4b7b83[_0x3e5edd(0x1e6)](_0x3e1f29['id'],_0x3bd4bc),this[_0x3e5edd(0x1fc)]=_0x4d0489[0x0][_0x3e5edd(0x1f3)],this[_0x3e5edd(0x1e5)]=_0x4d0489[0x0][_0x3e5edd(0x1da)],this;}[_0x5303b5(0x1e4)](){const _0x4cf6d7=_0x5303b5,_0x3bb33d=this[_0x4cf6d7(0x1e8)][_0x4cf6d7(0x1ed)](_0x46e53b),_0x369dd7={'isSingle':!0x1,'ranges':[{'startRow':this[_0x4cf6d7(0x1fc)],'startColumn':this[_0x4cf6d7(0x1e5)],'endRow':this[_0x4cf6d7(0x1fc)],'endColumn':this[_0x4cf6d7(0x1e5)]}]};_0x3bb33d['syncExecuteCommand'](_0x1e583d['id'],_0x369dd7);}[_0x5303b5(0x209)](_0x1e6c0f){const _0x1a6c5a=_0x5303b5,_0x7880f0=this['_injector'][_0x1a6c5a(0x1ed)](_0x347a49)['getSparklineById'](this[_0x1a6c5a(0x1db)],this[_0x1a6c5a(0x1de)],this[_0x1a6c5a(0x213)]);if(_0x7880f0){const _0x5d3634={'config':{'config':_0x1e6c0f,'sparklines':_0x7880f0[_0x1a6c5a(0x1fa)]},'isChangeDataSource':!0x1};this[_0x1a6c5a(0x1e8)][_0x1a6c5a(0x1ed)](_0x46e53b)[_0x1a6c5a(0x1e6)](_0x3e1f29['id'],_0x5d3634);}return this;}};w=J([K(0x5,_0x3991ef(_0x174f3a))],w);class L extends _0x232225{[_0x5303b5(0x1ef)](_0x55ebab,_0x57b601,_0x4e6bb3){const _0x19573c=_0x5303b5;if(this[_0x19573c(0x215)][_0x19573c(0x1e6)](_0x183d2b['id'],{'sourceRanges':_0x55ebab,'targetRanges':_0x57b601,'targetInfo':{'unitId':this['_workbook']['getUnitId'](),'subUnitId':this[_0x19573c(0x217)][_0x19573c(0x1eb)]()},'config':{'type':_0x4e6bb3}})){const {startRow:_0x453f0b,startColumn:_0x2d9d5c}=_0x57b601[0x0];return this[_0x19573c(0x1f2)](_0x453f0b,_0x2d9d5c);}}['getAllSubSparkline'](){const _0xf8a2e8=_0x5303b5;return this[_0xf8a2e8(0x1e8)][_0xf8a2e8(0x1ed)](_0x347a49)[_0xf8a2e8(0x1e3)](this[_0xf8a2e8(0x1f9)]['getUnitId'](),this[_0xf8a2e8(0x217)]['getSheetId']());}[_0x5303b5(0x202)](_0x293706){const _0x25a7e2=_0x5303b5,_0x3c6483=this[_0x25a7e2(0x1e8)][_0x25a7e2(0x1ed)](_0x347a49);let _0x1c436b;for(let _0x10b5ad=0x0;_0x10b5ad<_0x293706[_0x25a7e2(0x1f5)];_0x10b5ad++){const _0x3c9205=_0x293706[_0x10b5ad],{startRow:_0x34fbed,endRow:_0x572e15,startColumn:_0x144509,endColumn:_0x2c0d71}=_0x3c9205;for(let _0x4e38d9=_0x34fbed;_0x4e38d9<=_0x572e15;_0x4e38d9++)for(let _0x1aec2a=_0x144509;_0x1aec2a<=_0x2c0d71;_0x1aec2a++){const _0x1ef6d0=_0x3c6483['getSparkline'](this['_workbook'][_0x25a7e2(0x1dc)](),this['_worksheet'][_0x25a7e2(0x1eb)](),_0x4e38d9,_0x1aec2a);if(_0x1ef6d0){const _0x20762c=_0x3c6483[_0x25a7e2(0x212)](this['_workbook'][_0x25a7e2(0x1dc)](),this[_0x25a7e2(0x217)][_0x25a7e2(0x1eb)](),_0x1ef6d0);if(_0x20762c){_0x1c436b=_0x5bec3d[_0x25a7e2(0x1f7)](_0x20762c);break;}}}}_0x1c436b&&this['_commandService'][_0x25a7e2(0x1fe)](_0x3e1f29['id'],{'ranges':_0x293706,'combine':!0x0,'config':_0x1c436b,'isChangeDataSource':!0x1});}['unComposeSparkline'](_0x2146d6){const _0x19c119=_0x5303b5,_0x3bc11a=this[_0x19c119(0x1e8)][_0x19c119(0x1ed)](_0x347a49);let _0x4a2591;for(let _0x2e1a59=0x0;_0x2e1a59<_0x2146d6[_0x19c119(0x1f5)];_0x2e1a59++){const _0x3927f2=_0x2146d6[_0x2e1a59],{startRow:_0x3e0415,endRow:_0x330186,startColumn:_0x270745,endColumn:_0x54a7bb}=_0x3927f2;for(let _0x492697=_0x3e0415;_0x492697<=_0x330186;_0x492697++)for(let _0x5044c8=_0x270745;_0x5044c8<=_0x54a7bb;_0x5044c8++){const _0x2b6a8b=_0x3bc11a[_0x19c119(0x204)](this[_0x19c119(0x1f9)]['getUnitId'](),this[_0x19c119(0x217)][_0x19c119(0x1eb)](),_0x492697,_0x5044c8);if(_0x2b6a8b){const _0x5521b6=_0x3bc11a[_0x19c119(0x212)](this[_0x19c119(0x1f9)][_0x19c119(0x1dc)](),this[_0x19c119(0x217)][_0x19c119(0x1eb)](),_0x2b6a8b);if(_0x5521b6){_0x4a2591=_0x5bec3d[_0x19c119(0x1f7)](_0x5521b6);break;}}}}_0x4a2591||this[_0x19c119(0x215)][_0x19c119(0x1fe)](_0x3e1f29['id'],{'ranges':_0x2146d6,'unCombine':!0x0,'config':_0x4a2591,'isChangeDataSource':!0x1});}['getSparklineByCell'](_0x8641ea,_0x275321){const _0x262932=_0x5303b5,_0x1ad620=this['_injector'][_0x262932(0x1ed)](_0x347a49),_0x24ea72=this[_0x262932(0x1f9)]['getUnitId'](),_0x2ad16d=this['_worksheet'][_0x262932(0x1eb)](),_0x3d282f=_0x1ad620[_0x262932(0x204)](_0x24ea72,_0x2ad16d,_0x8641ea,_0x275321);if(_0x3d282f)return this['_injector'][_0x262932(0x218)](C,_0x24ea72,_0x2ad16d,_0x3d282f,_0x8641ea,_0x275321);}[_0x5303b5(0x20d)](_0x26c14b,_0x3b0143){const _0x1ee057=_0x5303b5,_0x30fe4b=this[_0x1ee057(0x1e8)][_0x1ee057(0x1ed)](_0x347a49),_0x414c98=this['_workbook'][_0x1ee057(0x1dc)](),_0x3c6fbd=this['_worksheet'][_0x1ee057(0x1eb)](),_0x3e9393=_0x30fe4b[_0x1ee057(0x204)](_0x414c98,_0x3c6fbd,_0x26c14b,_0x3b0143);if(_0x3e9393)return this[_0x1ee057(0x1e8)]['createInstance'](w,_0x414c98,_0x3c6fbd,_0x3e9393,_0x26c14b,_0x3b0143);}}_0x232225[_0x5303b5(0x1fd)](L);class Q extends _0x1f58f0{get[_0x5303b5(0x200)](){return _0x41c114;}}function _0x5714(_0x2f1fe4,_0x42be74){const _0x288ad2=_0x288a();return _0x5714=function(_0x571475,_0x4695e3){_0x571475=_0x571475-0x1d8;let _0x1156be=_0x288ad2[_0x571475];return _0x1156be;},_0x5714(_0x2f1fe4,_0x42be74);}_0x1f58f0['extend'](Q);class X extends _0x51f3eb{get['SheetSparklineChanged'](){const _0x541c8f=_0x5303b5;return _0x541c8f(0x219);}}_0x51f3eb[_0x5303b5(0x1fd)](X);class Y extends _0xe6c334{['_initialize'](_0x504dc4){const _0x4f6471=_0x5303b5,_0x21b8ce=_0x504dc4[_0x4f6471(0x1ed)](_0x46e53b);this['registerEventHandler'](this[_0x4f6471(0x1e0)]['SheetSparklineChanged'],()=>_0x21b8ce[_0x4f6471(0x1e9)](_0x6e221=>{const _0x1e4c17=_0x4f6471;var _0x46d2c4,_0x37e76b;if(_0x6e221['id']===_0x3e1f29['id']){const _0x4a36da=_0x6e221[_0x1e4c17(0x216)];if(!_0x4a36da['isChangeDataSource']){const _0x5df55c=this[_0x1e4c17(0x1f0)](),_0x3d4a68=_0x5df55c==null?void 0x0:_0x5df55c['getActiveSheet']();if(!_0x5df55c||!_0x3d4a68)return;const _0x32b645=_0x5df55c[_0x1e4c17(0x1ea)](),_0x49dcac=_0x3d4a68['getSheetId'](),_0x503c1e=this[_0x1e4c17(0x1e8)][_0x1e4c17(0x1ed)](_0xa1b72f),_0x4e8f10=this[_0x1e4c17(0x1e8)][_0x1e4c17(0x1ed)](_0x347a49),_0x31268b=(_0x46d2c4=_0x4a36da==null?void 0x0:_0x4a36da[_0x1e4c17(0x1ee)])!=null?_0x46d2c4:_0x503c1e[_0x1e4c17(0x1ff)]()[_0x1e4c17(0x207)](_0x3b54e3=>_0x3b54e3[_0x1e4c17(0x208)]),_0x500695=(_0x37e76b=_0x4e8f10['getSparklineCache']()[_0x1e4c17(0x1f8)][_0x1e4c17(0x1ed)](_0x32b645))==null?void 0x0:_0x37e76b[_0x1e4c17(0x1ed)](_0x49dcac),_0x2a7b2f=new Set();_0x31268b[_0x1e4c17(0x1d9)](_0xd076ab=>{const _0x5d14e5=_0x1e4c17;var _0x201b8c;const {startRow:_0x17248c,endRow:_0x23ca23,startColumn:_0x359e19,endColumn:_0x30f8d3}=_0xd076ab;for(let _0x5db42f=_0x17248c;_0x5db42f<=_0x23ca23;_0x5db42f++)for(let _0x185833=_0x359e19;_0x185833<=_0x30f8d3;_0x185833++){const _0x3cd243=(_0x201b8c=_0x500695==null?void 0x0:_0x500695[_0x5d14e5(0x1f1)][_0x5d14e5(0x1e1)](_0x5db42f,_0x185833))==null?void 0x0:_0x201b8c[_0x5d14e5(0x214)];_0x3cd243&&_0x2a7b2f[_0x5d14e5(0x20e)](_0x3cd243);}});const _0x10cc68=Array[_0x1e4c17(0x1f6)](_0x2a7b2f)['map'](_0x5111a9=>_0x4e8f10[_0x1e4c17(0x212)](_0x32b645,_0x49dcac,_0x5111a9))[_0x1e4c17(0x206)](_0x5da044=>!!_0x5da044),_0x4006dd={'workbook':_0x5df55c,'worksheet':_0x3d4a68,'sparklines':_0x10cc68};if(this['fireEvent'](this[_0x1e4c17(0x1e0)][_0x1e4c17(0x219)],_0x4006dd),_0x4006dd[_0x1e4c17(0x1ec)])throw new Error('Sheet\x20create\x20canceled\x20by\x20facade\x20api.');}}}));}}function _0x288a(){const _0x32943f=['10HxzEsv','length','from','deepClone','sparklineAnchorMap','_workbook','sparklines','133448pPFLfy','_row','extend','executeCommand','getCurrentSelections','SparklineTypeEnum','item','composeSparkline','633770DTPRuu','getSparkline','getOwnPropertyDescriptor','filter','map','range','setConfig','9hxrNbg','1456798rXgiSI','removeSparkline','getSparklineGroupByCell','add','group','8079357etZUdx','38991mTJLmh','getSparklineById','_groupId','groupId','_commandService','params','_worksheet','createInstance','SheetSparklineChanged','changeDataSource','forEach','startColumn','_unitId','getUnitId','6AqCgvl','_subUnitId','9vNNYWZ','Event','getValue','210472nzSRnJ','getSubUnitSparkline','removeSparklineGroup','_col','syncExecuteCommand','622620qpEDKz','_injector','onCommandExecuted','getId','getSheetId','cancel','get','ranges','addSparkline','getActiveWorkbook','matrix','getSparklineByCell','startRow'];_0x288a=function(){return _0x32943f;};return _0x288a();}_0xe6c334['extend'](Y);export{C as FSparkline,w as FSparklineGroup};
1
+ const _0x256271=_0x3557;(function(_0x14e8b6,_0x33e512){const _0x156e98=_0x3557,_0x52e23d=_0x14e8b6();while(!![]){try{const _0x568f53=parseInt(_0x156e98(0x21c))/0x1+-parseInt(_0x156e98(0x1f1))/0x2+-parseInt(_0x156e98(0x202))/0x3+-parseInt(_0x156e98(0x1fd))/0x4*(parseInt(_0x156e98(0x22a))/0x5)+parseInt(_0x156e98(0x207))/0x6+parseInt(_0x156e98(0x208))/0x7*(parseInt(_0x156e98(0x211))/0x8)+-parseInt(_0x156e98(0x21b))/0x9*(-parseInt(_0x156e98(0x219))/0xa);if(_0x568f53===_0x33e512)break;else _0x52e23d['push'](_0x52e23d['shift']());}catch(_0xcc62a7){_0x52e23d['push'](_0x52e23d['shift']());}}}(_0x4696,0x7b4d8));import{SparklineDataSourceModel as _0x3088dd,SetSheetSparklineCommand as _0x4ed5ae,RemoveSheetSparklineCommand as _0x3b0aa7,AddSheetSparklineCommand as _0xdfe835,SparklineTypeEnum as _0x2790af}from'@univerjs-pro/sheets-sparkline';import{Inject as _0x122d6b,Injector as _0x35ecc7,ICommandService as _0x52e8ee,Tools as _0x5710f5}from'@univerjs/core';import{FWorksheet as _0x1a08fd}from'@univerjs/sheets/facade';import{FEnum as _0x1f0769,FEventName as _0x4641f1,FUniver as _0x31f0e1}from'@univerjs/core/facade';function _0x3557(_0x47c04c,_0xfc8cb1){const _0x4696e8=_0x4696();return _0x3557=function(_0x3557d0,_0x419b77){_0x3557d0=_0x3557d0-0x1ed;let _0x114b08=_0x4696e8[_0x3557d0];return _0x114b08;},_0x3557(_0x47c04c,_0xfc8cb1);}import{SheetsSelectionsService as _0x501a0d}from'@univerjs/sheets';var z=Object[_0x256271(0x217)],H=(_0x3b9bd7,_0x3f0758,_0xa6f31f,_0xa18f26)=>{const _0x455a7c=_0x256271;for(var _0x31fd14=_0xa18f26>0x1?void 0x0:_0xa18f26?z(_0x3f0758,_0xa6f31f):_0x3f0758,_0x2de3e3=_0x3b9bd7[_0x455a7c(0x21f)]-0x1,_0x13b48e;_0x2de3e3>=0x0;_0x2de3e3--)(_0x13b48e=_0x3b9bd7[_0x2de3e3])&&(_0x31fd14=_0x13b48e(_0x31fd14)||_0x31fd14);return _0x31fd14;},V=(_0x365eb7,_0x26134d)=>(_0x503c98,_0x2f6807)=>_0x26134d(_0x503c98,_0x2f6807,_0x365eb7);let C=class{constructor(_0x4f46f1,_0x19fbd7,_0x5b21eb,_0x31071d,_0x2e2ea9,_0x35f937){const _0x3d65e2=_0x256271;this[_0x3d65e2(0x204)]=_0x4f46f1,this[_0x3d65e2(0x213)]=_0x19fbd7,this['_groupId']=_0x5b21eb,this[_0x3d65e2(0x1ee)]=_0x31071d,this['_col']=_0x2e2ea9,this['_injector']=_0x35f937;}[_0x256271(0x200)](_0xa21376,_0x90ff32){const _0x28cd39=_0x256271,_0x806578=this[_0x28cd39(0x1fe)]['get'](_0x3088dd),_0x154981=this[_0x28cd39(0x1fe)][_0x28cd39(0x20b)](_0x52e8ee),_0x36da79=_0x806578[_0x28cd39(0x20d)](this[_0x28cd39(0x204)],this[_0x28cd39(0x213)],this[_0x28cd39(0x20e)]);if(!_0x36da79)return;const _0x5483e9={'config':_0x36da79,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x28cd39(0x20e)],'resetType':_0x28cd39(0x210),'sourceRanges':[_0xa21376],'targetRanges':[_0x90ff32],'primary':{'startRow':this['_row'],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this[_0x28cd39(0x1fb)],'actualRow':this[_0x28cd39(0x1ee)],'actualColumn':this[_0x28cd39(0x1fb)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x154981[_0x28cd39(0x215)](_0x4ed5ae['id'],_0x5483e9),this[_0x28cd39(0x1ee)]=_0x90ff32[_0x28cd39(0x1f8)],this[_0x28cd39(0x1fb)]=_0x90ff32[_0x28cd39(0x1f5)],this;}[_0x256271(0x21e)](){const _0x213249=_0x256271,_0x4fe522=this[_0x213249(0x1fe)][_0x213249(0x20b)](_0x52e8ee),_0x345516={'isSingle':!0x0,'ranges':[{'startRow':this[_0x213249(0x1ee)],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this[_0x213249(0x1fb)]}]};_0x4fe522['syncExecuteCommand'](_0x3b0aa7['id'],_0x345516);}};C=H([V(0x5,_0x122d6b(_0x35ecc7))],C);var q=Object['getOwnPropertyDescriptor'],J=(_0x4920ff,_0x2183ef,_0x3c333,_0x23081f)=>{const _0x1a0e7c=_0x256271;for(var _0x2cd0f4=_0x23081f>0x1?void 0x0:_0x23081f?q(_0x2183ef,_0x3c333):_0x2183ef,_0x36b864=_0x4920ff[_0x1a0e7c(0x21f)]-0x1,_0x425547;_0x36b864>=0x0;_0x36b864--)(_0x425547=_0x4920ff[_0x36b864])&&(_0x2cd0f4=_0x425547(_0x2cd0f4)||_0x2cd0f4);return _0x2cd0f4;},K=(_0x3d654c,_0x2e3b45)=>(_0x11dedf,_0x68f7ac)=>_0x2e3b45(_0x11dedf,_0x68f7ac,_0x3d654c);let w=class{constructor(_0x4e10bd,_0x575102,_0x4fe7ac,_0x3f7d93,_0x5dd5e3,_0x434ca2){const _0x22ea73=_0x256271;this[_0x22ea73(0x204)]=_0x4e10bd,this[_0x22ea73(0x213)]=_0x575102,this[_0x22ea73(0x20e)]=_0x4fe7ac,this[_0x22ea73(0x1ee)]=_0x3f7d93,this[_0x22ea73(0x1fb)]=_0x5dd5e3,this[_0x22ea73(0x1fe)]=_0x434ca2;}[_0x256271(0x200)](_0x21cd9e,_0x35f9fb){const _0x191648=_0x256271,_0x1000c5=this['_injector'][_0x191648(0x20b)](_0x3088dd),_0x2cf96f=this[_0x191648(0x1fe)]['get'](_0x52e8ee),_0x35024b=_0x1000c5[_0x191648(0x20d)](this[_0x191648(0x204)],this[_0x191648(0x213)],this[_0x191648(0x20e)]);if(!_0x35024b)return;const _0x4c9809={'config':_0x35024b,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x191648(0x20e)],'resetType':'group','sourceRanges':_0x21cd9e,'targetRanges':_0x35f9fb,'primary':{'startRow':this[_0x191648(0x1ee)],'startColumn':this['_col'],'endRow':this[_0x191648(0x1ee)],'endColumn':this[_0x191648(0x1fb)],'actualRow':this[_0x191648(0x1ee)],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x2cf96f[_0x191648(0x215)](_0x4ed5ae['id'],_0x4c9809),this[_0x191648(0x1ee)]=_0x35f9fb[0x0][_0x191648(0x1f8)],this[_0x191648(0x1fb)]=_0x35f9fb[0x0]['startColumn'],this;}[_0x256271(0x21d)](){const _0x2764c9=_0x256271,_0x546bd2=this['_injector']['get'](_0x52e8ee),_0x4b7e62={'isSingle':!0x1,'ranges':[{'startRow':this[_0x2764c9(0x1ee)],'startColumn':this['_col'],'endRow':this[_0x2764c9(0x1ee)],'endColumn':this['_col']}]};_0x546bd2[_0x2764c9(0x215)](_0x3b0aa7['id'],_0x4b7e62);}['setConfig'](_0x263405){const _0x3004b4=_0x256271,_0x178175=this[_0x3004b4(0x1fe)]['get'](_0x3088dd)[_0x3004b4(0x20d)](this[_0x3004b4(0x204)],this['_subUnitId'],this[_0x3004b4(0x20e)]);if(_0x178175){const _0x4e2f18={'config':{'config':_0x263405,'sparklines':_0x178175[_0x3004b4(0x205)]},'isChangeDataSource':!0x1};this[_0x3004b4(0x1fe)][_0x3004b4(0x20b)](_0x52e8ee)[_0x3004b4(0x215)](_0x4ed5ae['id'],_0x4e2f18);}return this;}};w=J([K(0x5,_0x122d6b(_0x35ecc7))],w);class L extends _0x1a08fd{[_0x256271(0x20c)](_0x2bb4db,_0x5dd893,_0x426627){const _0x460ff9=_0x256271;if(this[_0x460ff9(0x214)][_0x460ff9(0x215)](_0xdfe835['id'],{'sourceRanges':_0x2bb4db,'targetRanges':_0x5dd893,'targetInfo':{'unitId':this['_workbook'][_0x460ff9(0x1f7)](),'subUnitId':this['_worksheet'][_0x460ff9(0x203)]()},'config':{'type':_0x426627}})){const {startRow:_0x32982f,startColumn:_0x1ad572}=_0x5dd893[0x0];return this['getSparklineByCell'](_0x32982f,_0x1ad572);}}[_0x256271(0x1ff)](){const _0x4c6b8c=_0x256271;return this['_injector']['get'](_0x3088dd)[_0x4c6b8c(0x20f)](this[_0x4c6b8c(0x222)][_0x4c6b8c(0x1f7)](),this['_worksheet']['getSheetId']());}[_0x256271(0x224)](_0x1ed962){const _0x45763d=_0x256271,_0x5078ed=this['_injector']['get'](_0x3088dd);let _0x6cfc04;for(let _0x493c60=0x0;_0x493c60<_0x1ed962[_0x45763d(0x21f)];_0x493c60++){const _0x1581a4=_0x1ed962[_0x493c60],{startRow:_0x9ae4d,endRow:_0x551046,startColumn:_0x4124a7,endColumn:_0x590d66}=_0x1581a4;for(let _0xf0c0cd=_0x9ae4d;_0xf0c0cd<=_0x551046;_0xf0c0cd++)for(let _0x5aed34=_0x4124a7;_0x5aed34<=_0x590d66;_0x5aed34++){const _0x5e3698=_0x5078ed[_0x45763d(0x1f9)](this[_0x45763d(0x222)][_0x45763d(0x1f7)](),this[_0x45763d(0x1ed)][_0x45763d(0x203)](),_0xf0c0cd,_0x5aed34);if(_0x5e3698){const _0x4caf3d=_0x5078ed['getSparklineById'](this[_0x45763d(0x222)][_0x45763d(0x1f7)](),this[_0x45763d(0x1ed)][_0x45763d(0x203)](),_0x5e3698);if(_0x4caf3d){_0x6cfc04=_0x5710f5[_0x45763d(0x1f4)](_0x4caf3d);break;}}}}_0x6cfc04&&this[_0x45763d(0x214)]['executeCommand'](_0x4ed5ae['id'],{'ranges':_0x1ed962,'combine':!0x0,'config':_0x6cfc04,'isChangeDataSource':!0x1});}[_0x256271(0x228)](_0x495c3e){const _0x2fe633=_0x256271,_0x5a4a44=this[_0x2fe633(0x1fe)]['get'](_0x3088dd);let _0x59c3e1;for(let _0xa623ed=0x0;_0xa623ed<_0x495c3e[_0x2fe633(0x21f)];_0xa623ed++){const _0x25d474=_0x495c3e[_0xa623ed],{startRow:_0x4c203f,endRow:_0x2cda01,startColumn:_0x29862a,endColumn:_0x2d68ce}=_0x25d474;for(let _0x3798cf=_0x4c203f;_0x3798cf<=_0x2cda01;_0x3798cf++)for(let _0x1f5013=_0x29862a;_0x1f5013<=_0x2d68ce;_0x1f5013++){const _0x100b5b=_0x5a4a44['getSparkline'](this[_0x2fe633(0x222)][_0x2fe633(0x1f7)](),this[_0x2fe633(0x1ed)][_0x2fe633(0x203)](),_0x3798cf,_0x1f5013);if(_0x100b5b){const _0x4d2826=_0x5a4a44['getSparklineById'](this['_workbook'][_0x2fe633(0x1f7)](),this[_0x2fe633(0x1ed)][_0x2fe633(0x203)](),_0x100b5b);if(_0x4d2826){_0x59c3e1=_0x5710f5[_0x2fe633(0x1f4)](_0x4d2826);break;}}}}_0x59c3e1||this[_0x2fe633(0x214)]['executeCommand'](_0x4ed5ae['id'],{'ranges':_0x495c3e,'unCombine':!0x0,'config':_0x59c3e1,'isChangeDataSource':!0x1});}['getSparklineByCell'](_0x7bf0b6,_0x5f3721){const _0x1459ea=_0x256271,_0x1cf8c9=this[_0x1459ea(0x1fe)][_0x1459ea(0x20b)](_0x3088dd),_0x350393=this[_0x1459ea(0x222)]['getUnitId'](),_0x2e1a62=this[_0x1459ea(0x1ed)]['getSheetId'](),_0x836ffb=_0x1cf8c9[_0x1459ea(0x1f9)](_0x350393,_0x2e1a62,_0x7bf0b6,_0x5f3721);if(_0x836ffb)return this[_0x1459ea(0x1fe)]['createInstance'](C,_0x350393,_0x2e1a62,_0x836ffb,_0x7bf0b6,_0x5f3721);}[_0x256271(0x216)](_0x2c944c,_0xff5eec){const _0x333866=_0x256271,_0x1e2def=this[_0x333866(0x1fe)][_0x333866(0x20b)](_0x3088dd),_0x47f223=this['_workbook'][_0x333866(0x1f7)](),_0x1f1b3f=this[_0x333866(0x1ed)]['getSheetId'](),_0x4cf1a6=_0x1e2def[_0x333866(0x1f9)](_0x47f223,_0x1f1b3f,_0x2c944c,_0xff5eec);if(_0x4cf1a6)return this[_0x333866(0x1fe)]['createInstance'](w,_0x47f223,_0x1f1b3f,_0x4cf1a6,_0x2c944c,_0xff5eec);}}_0x1a08fd[_0x256271(0x20a)](L);class Q extends _0x1f0769{get[_0x256271(0x223)](){return _0x2790af;}}_0x1f0769[_0x256271(0x20a)](Q);class X extends _0x4641f1{get[_0x256271(0x1f0)](){const _0x535a73=_0x256271;return _0x535a73(0x1f0);}}_0x4641f1[_0x256271(0x20a)](X);class Y extends _0x31f0e1{[_0x256271(0x201)](_0x2f9737){const _0x59d6af=_0x256271,_0x458e02=_0x2f9737[_0x59d6af(0x20b)](_0x52e8ee);this['registerEventHandler'](this[_0x59d6af(0x1fa)][_0x59d6af(0x1f0)],()=>_0x458e02[_0x59d6af(0x21a)](_0x53a5ce=>{const _0x2b32ba=_0x59d6af;var _0x9fa0c7,_0x2116e5;if(_0x53a5ce['id']===_0x4ed5ae['id']){const _0x13337e=_0x53a5ce[_0x2b32ba(0x221)];if(!_0x13337e[_0x2b32ba(0x218)]){const _0x58f1cf=this[_0x2b32ba(0x1ef)](),_0x35cf03=_0x58f1cf==null?void 0x0:_0x58f1cf[_0x2b32ba(0x1fc)]();if(!_0x58f1cf||!_0x35cf03)return;const _0x1e2dc3=_0x58f1cf['getId'](),_0x115b7f=_0x35cf03[_0x2b32ba(0x203)](),_0x443298=this[_0x2b32ba(0x1fe)][_0x2b32ba(0x20b)](_0x501a0d),_0x3daaa1=this[_0x2b32ba(0x1fe)][_0x2b32ba(0x20b)](_0x3088dd),_0x519822=(_0x9fa0c7=_0x13337e==null?void 0x0:_0x13337e[_0x2b32ba(0x1f6)])!=null?_0x9fa0c7:_0x443298[_0x2b32ba(0x225)]()[_0x2b32ba(0x226)](_0x935470=>_0x935470['range']),_0x15bb21=(_0x2116e5=_0x3daaa1['getSparklineCache']()['sparklineAnchorMap'][_0x2b32ba(0x20b)](_0x1e2dc3))==null?void 0x0:_0x2116e5[_0x2b32ba(0x20b)](_0x115b7f),_0xc68b00=new Set();_0x519822[_0x2b32ba(0x220)](_0x5a0f62=>{const _0x100e0d=_0x2b32ba;var _0x5b5755;const {startRow:_0x5b2154,endRow:_0x4a6e4e,startColumn:_0x5c1c3f,endColumn:_0xc57fbb}=_0x5a0f62;for(let _0x500827=_0x5b2154;_0x500827<=_0x4a6e4e;_0x500827++)for(let _0xcfa7a1=_0x5c1c3f;_0xcfa7a1<=_0xc57fbb;_0xcfa7a1++){const _0x5a55=(_0x5b5755=_0x15bb21==null?void 0x0:_0x15bb21[_0x100e0d(0x1f2)][_0x100e0d(0x227)](_0x500827,_0xcfa7a1))==null?void 0x0:_0x5b5755[_0x100e0d(0x209)];_0x5a55&&_0xc68b00[_0x100e0d(0x229)](_0x5a55);}});const _0x166ec5=Array['from'](_0xc68b00)[_0x2b32ba(0x226)](_0x3f5336=>_0x3daaa1[_0x2b32ba(0x20d)](_0x1e2dc3,_0x115b7f,_0x3f5336))[_0x2b32ba(0x1f3)](_0x3e1476=>!!_0x3e1476),_0x4b9d4c={'workbook':_0x58f1cf,'worksheet':_0x35cf03,'sparklines':_0x166ec5};if(this[_0x2b32ba(0x206)](this[_0x2b32ba(0x1fa)][_0x2b32ba(0x1f0)],_0x4b9d4c),_0x4b9d4c[_0x2b32ba(0x212)])throw new Error('Sheet\x20create\x20canceled\x20by\x20facade\x20api.');}}}));}}_0x31f0e1['extend'](Y);function _0x4696(){const _0x30cdfd=['getSubUnitSparkline','item','24UWaFeT','cancel','_subUnitId','_commandService','syncExecuteCommand','getSparklineGroupByCell','getOwnPropertyDescriptor','isChangeDataSource','2690TmcbVp','onCommandExecuted','4977AfIQJw','1008123hlNkJp','removeSparklineGroup','removeSparkline','length','forEach','params','_workbook','SparklineTypeEnum','composeSparkline','getCurrentSelections','map','getValue','unComposeSparkline','add','1078235gDAxdx','_worksheet','_row','getActiveWorkbook','SheetSparklineChanged','956732xxitFe','matrix','filter','deepClone','startColumn','ranges','getUnitId','startRow','getSparkline','Event','_col','getActiveSheet','4RioxKc','_injector','getAllSubSparkline','changeDataSource','_initialize','505902dPqwPr','getSheetId','_unitId','sparklines','fireEvent','1134282BEyVcL','50792WcmIhb','groupId','extend','get','addSparkline','getSparklineById','_groupId'];_0x4696=function(){return _0x30cdfd;};return _0x4696();}export{C as FSparkline,w as FSparklineGroup};