@univerjs-pro/sheets-sparkline 1.0.0-rc.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/common/util.d.ts +2 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x25e9a6=_0x2e1b;(function(_0x1c80e2,_0x331370){const _0x34c2d8=_0x2e1b,_0x3267f1=_0x1c80e2();while(!![]){try{const _0x291c44=parseInt(_0x34c2d8(0xb4))/0x1+parseInt(_0x34c2d8(0x10f))/0x2*(parseInt(_0x34c2d8(0x118))/0x3)+-parseInt(_0x34c2d8(0xda))/0x4+parseInt(_0x34c2d8(0x105))/0x5*(parseInt(_0x34c2d8(0x101))/0x6)+parseInt(_0x34c2d8(0x113))/0x7*(parseInt(_0x34c2d8(0x121))/0x8)+parseInt(_0x34c2d8(0xbb))/0x9*(parseInt(_0x34c2d8(0x15d))/0xa)+-parseInt(_0x34c2d8(0xaf))/0xb;if(_0x291c44===_0x331370)break;else _0x3267f1['push'](_0x3267f1['shift']());}catch(_0x210272){_0x3267f1['push'](_0x3267f1['shift']());}}}(_0xadcc,0x3abe1));import{CellValueType as _0x3a2784,ColorKit as _0x236fdb,CommandType as _0x385604,DependentOn as _0x5455bb,Disposable as _0x322379,DisposableCollection as _0x2d82cd,ICommandService as _0x126423,IConfigService as _0x2ebf50,IResourceManagerService as _0x3b0dc7,IUndoRedoService as _0xa06fa2,IUniverInstanceService as _0x454b2d,Inject as _0x242a91,Injector as _0x433617,ObjectMatrix as _0x3589c8,Plugin as _0x2d60f4,RANGE_TYPE as _0x4aca0e,Range as _0x3366f5,Rectangle as _0x5c35ac,Tools as _0x27d6a1,UniverInstanceType as _0x53b1de,cellToRange as _0x233a26,generateRandomId as _0x23b660,isValidRange as _0x2d7fab,merge as _0x39b219,sequenceExecute as _0x635e8d,touchDependencies as _0x5b76c2}from'@univerjs/core';import{AddWorksheetMergeCommand as _0x8b01be,ClearSelectionAllCommand as _0x38e723,CopySheetCommand as _0x5d6981,IExclusiveRangeService as _0x4112a4,InsertColMutation as _0x14562a,InsertRowMutation as _0x5a3199,MoveColsMutation as _0x405cd8,MoveRangeMutation as _0x594556,MoveRowsMutation as _0x3fa474,RefRangeService as _0x307552,RemoveColCommand as _0x1be87d,RemoveColMutation as _0x1cf9cc,RemoveRowCommand as _0x19517a,RemoveRowMutation as _0x39c136,RemoveSheetCommand as _0x13744c,ReorderRangeMutation as _0x3f5be1,SetColHiddenMutation as _0x3dcb2b,SetColVisibleMutation as _0x4ce2f5,SetRangeValuesMutation as _0x5cef22,SetRowHiddenMutation as _0xf692c8,SetRowVisibleMutation as _0x495fd0,SetWorksheetActivateCommand as _0xb8eef8,SheetInterceptorService as _0x1f6301,SheetsSelectionsService as _0x3eb61c,UniverSheetsPlugin as _0x2706be,adjustRangeOnMutation as _0x49a1c9,getSheetCommandTarget as _0xa26ada}from'@univerjs/sheets';import{Subject as _0x169882}from'rxjs';import{UniverLicensePlugin as _0x1b9363}from'@univerjs-pro/license';function N(_0x5d25d1,_0xbae9ad){const _0x385eb4=_0x2e1b;let _0x34b59a=new _0x3589c8(),_0x47beaf=[],_0x26842b=_0x5d25d1[_0x385eb4(0xa3)]>0x1,_0x1535d0=0x0,_0x2d3b9f=0x0;for(let _0x305f2d of _0x5d25d1)_0x1535d0+=_0x305f2d[_0x385eb4(0xb5)]-_0x305f2d['startRow']+0x1,_0x2d3b9f+=_0x305f2d[_0x385eb4(0x117)]-_0x305f2d['startColumn']+0x1;for(let _0x16db1b of _0xbae9ad)for(let _0x276873=_0x16db1b[_0x385eb4(0xe5)];_0x276873<=_0x16db1b['endRow'];_0x276873++)for(let _0x13e776=_0x16db1b['startColumn'];_0x13e776<=_0x16db1b[_0x385eb4(0x117)];_0x13e776++)_0x47beaf['push']({'row':_0x276873,'column':_0x13e776});if(_0x47beaf[_0x385eb4(0xa3)]===_0x1535d0)_0x26842b?_0x47beaf['forEach']((_0xc59d83,_0x5bdd26)=>{const _0x1f047b=_0x385eb4;let _0x19f2c1=_0x5d25d1[_0x5bdd26],_0x1ee25d={'startRow':_0x19f2c1[_0x1f047b(0xe5)],'startColumn':_0x19f2c1[_0x1f047b(0xc8)],'endRow':_0x19f2c1['startRow'],'endColumn':_0x19f2c1[_0x1f047b(0x117)]};_0x34b59a[_0x1f047b(0xb8)](_0xc59d83[_0x1f047b(0x127)],_0xc59d83[_0x1f047b(0x13e)],_0x1ee25d);}):_0x47beaf[_0x385eb4(0x103)]((_0xe8f143,_0x4b65c1)=>{const _0x137a56=_0x385eb4;let _0x49c106=_0x5d25d1[0x0],_0x1f76de={'startRow':_0x49c106['startRow']+_0x4b65c1,'startColumn':_0x49c106[_0x137a56(0xc8)],'endRow':_0x49c106[_0x137a56(0xe5)]+_0x4b65c1,'endColumn':_0x49c106[_0x137a56(0x117)]};_0x34b59a[_0x137a56(0xb8)](_0xe8f143[_0x137a56(0x127)],_0xe8f143['column'],_0x1f76de);});else{if(_0x47beaf[_0x385eb4(0xa3)]===_0x2d3b9f)_0x26842b?_0x47beaf['forEach']((_0x939951,_0x3f6b0c)=>{const _0x240b44=_0x385eb4;let _0x12b004=_0x5d25d1[_0x3f6b0c],_0x518c6e={'startRow':_0x12b004[_0x240b44(0xe5)],'startColumn':_0x12b004['startColumn'],'endRow':_0x12b004[_0x240b44(0xb5)],'endColumn':_0x12b004[_0x240b44(0xc8)]};_0x34b59a['setValue'](_0x939951[_0x240b44(0x127)],_0x939951[_0x240b44(0x13e)],_0x518c6e);}):_0x47beaf[_0x385eb4(0x103)]((_0x5e97d8,_0xb7f4cc)=>{const _0x5ec03d=_0x385eb4;let _0x59f858=_0x5d25d1[0x0],_0x520f0a={'startRow':_0x59f858[_0x5ec03d(0xe5)],'startColumn':_0x59f858[_0x5ec03d(0xc8)]+_0xb7f4cc,'endRow':_0x59f858[_0x5ec03d(0xb5)],'endColumn':_0x59f858['startColumn']+_0xb7f4cc};_0x34b59a[_0x5ec03d(0xb8)](_0x5e97d8[_0x5ec03d(0x127)],_0x5e97d8[_0x5ec03d(0x13e)],_0x520f0a);});else{if(_0x47beaf['length']===_0x5d25d1[_0x385eb4(0xa3)])_0x5d25d1[_0x385eb4(0x11a)](_0x2eabd7=>_0x2eabd7['startRow']===_0x2eabd7['endRow']||_0x2eabd7[_0x385eb4(0xc8)]===_0x2eabd7['endColumn'])&&_0x47beaf['forEach']((_0x2bf5c7,_0x361232)=>{const _0x3ccdf1=_0x385eb4;let _0x12a1d7=_0x5d25d1[_0x361232];_0x34b59a[_0x3ccdf1(0xb8)](_0x2bf5c7['row'],_0x2bf5c7[_0x3ccdf1(0x13e)],_0x12a1d7);});else throw Error(_0x385eb4(0x130));}}return _0x34b59a;}const P='SHEET_SPARKLINE_PLUGIN',F={'standard':['rgb(54,78,244)',_0x25e9a6(0x142)],'specialty':[_0x25e9a6(0xeb),_0x25e9a6(0xf5)],'distinctive':['rgb(124,66,147)',_0x25e9a6(0x134)],'soft':[_0x25e9a6(0xdf),_0x25e9a6(0x11d)],'fresh':[_0x25e9a6(0x154),_0x25e9a6(0x14d)]},Se=['highPoint',_0x25e9a6(0x12d),_0x25e9a6(0x140),'lowPoint',_0x25e9a6(0x14b),_0x25e9a6(0x148)];let Ce=function(_0x46a3ca){const _0xdd2fff=_0x25e9a6;return _0x46a3ca[_0xdd2fff(0x132)]=_0xdd2fff(0x107),_0x46a3ca[_0xdd2fff(0xa8)]=_0xdd2fff(0xf8),_0x46a3ca[_0xdd2fff(0x13b)]='distinctive',_0x46a3ca['SOFT']=_0xdd2fff(0x136),_0x46a3ca[_0xdd2fff(0xd5)]='fresh',_0x46a3ca[_0xdd2fff(0xba)]='custom',_0x46a3ca;}({}),we=function(_0x123a11){const _0x36aed8=_0x25e9a6;return _0x123a11[_0x123a11[_0x36aed8(0xf7)]=0x1]=_0x36aed8(0xf7),_0x123a11[_0x123a11[_0x36aed8(0x111)]=0x2]=_0x36aed8(0x111),_0x123a11[_0x123a11[_0x36aed8(0x165)]=0x3]=_0x36aed8(0x165),_0x123a11[_0x123a11[_0x36aed8(0xee)]=0x4]=_0x36aed8(0xee),_0x123a11;}({}),Te=function(_0x249aaf){const _0x419e49=_0x25e9a6;return _0x249aaf[_0x419e49(0x104)]=_0x419e49(0xe9),_0x249aaf['ZERO_VALUE']=_0x419e49(0x139),_0x249aaf['CONNECT_WITH_LINE']='connect_with_line',_0x249aaf;}({}),Ee=function(_0x4ba308){const _0x3e36b0=_0x25e9a6;return _0x4ba308[_0x4ba308[_0x3e36b0(0xd7)]=0x1]=_0x3e36b0(0xd7),_0x4ba308[_0x4ba308['GROUP_EXTREMUM']=0x2]=_0x3e36b0(0xea),_0x4ba308[_0x4ba308[_0x3e36b0(0x158)]=0x3]='CUSTOM_EXTREMUM',_0x4ba308;}({});function I(_0x34ba24){'@babel/helpers - typeof';const _0x3aee05=_0x25e9a6;return I=typeof Symbol==_0x3aee05(0xa6)&&typeof Symbol['iterator']==_0x3aee05(0xe1)?function(_0x534c65){return typeof _0x534c65;}:function(_0x2b49df){const _0x1fdd5c=_0x3aee05;return _0x2b49df&&typeof Symbol=='function'&&_0x2b49df[_0x1fdd5c(0x15c)]===Symbol&&_0x2b49df!==Symbol[_0x1fdd5c(0xbc)]?_0x1fdd5c(0xe1):typeof _0x2b49df;},I(_0x34ba24);}function De(_0x47f2a8,_0x5a2ad5){const _0x1342f6=_0x25e9a6;if(I(_0x47f2a8)!=_0x1342f6(0xe6)||!_0x47f2a8)return _0x47f2a8;var _0x5be006=_0x47f2a8[Symbol[_0x1342f6(0xae)]];if(_0x5be006!==void 0x0){var _0x2542b1=_0x5be006[_0x1342f6(0xa4)](_0x47f2a8,_0x5a2ad5||'default');if(I(_0x2542b1)!='object')return _0x2542b1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a2ad5===_0x1342f6(0x166)?String:Number)(_0x47f2a8);}function Oe(_0x16480b){const _0x5365d0=_0x25e9a6;var _0x9783be=De(_0x16480b,_0x5365d0(0x166));return I(_0x9783be)==_0x5365d0(0xe1)?_0x9783be:_0x9783be+'';}function L(_0x57b835,_0xd5680b,_0x4314a8){return(_0xd5680b=Oe(_0xd5680b))in _0x57b835?Object['defineProperty'](_0x57b835,_0xd5680b,{'value':_0x4314a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57b835[_0xd5680b]=_0x4314a8,_0x57b835;}function R(_0x5810e4,_0x3c10a0){return function(_0xd6096c,_0x52270b){_0x3c10a0(_0xd6096c,_0x52270b,_0x5810e4);};}function z(_0x5dd7e3,_0x5e21de,_0x7a8524,_0x451ac0){const _0xa62797=_0x25e9a6;var _0x67ac6a=arguments[_0xa62797(0xa3)],_0x2c0264=_0x67ac6a<0x3?_0x5e21de:_0x451ac0===null?_0x451ac0=Object[_0xa62797(0xa2)](_0x5e21de,_0x7a8524):_0x451ac0,_0x20e47e;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x2c0264=Reflect[_0xa62797(0xf3)](_0x5dd7e3,_0x5e21de,_0x7a8524,_0x451ac0);else{for(var _0x48ebbb=_0x5dd7e3[_0xa62797(0xa3)]-0x1;_0x48ebbb>=0x0;_0x48ebbb--)(_0x20e47e=_0x5dd7e3[_0x48ebbb])&&(_0x2c0264=(_0x67ac6a<0x3?_0x20e47e(_0x2c0264):_0x67ac6a>0x3?_0x20e47e(_0x5e21de,_0x7a8524,_0x2c0264):_0x20e47e(_0x5e21de,_0x7a8524))||_0x2c0264);}return _0x67ac6a>0x3&&_0x2c0264&&Object['defineProperty'](_0x5e21de,_0x7a8524,_0x2c0264),_0x2c0264;}let B=class extends _0x322379{constructor(_0x46c30d){const _0x307b89=_0x25e9a6;super(),this[_0x307b89(0xaa)]=_0x46c30d,L(this,_0x307b89(0x15f),new Map()),L(this,_0x307b89(0xcc),new Map()),L(this,'_updateConfig$',new _0x169882()),L(this,'updateConfig$',this[_0x307b89(0xbe)]['asObservable']());}[_0x25e9a6(0x150)](_0x22ddff,_0x2b92db){const _0xfb5a1b=_0x25e9a6;let _0x4ab1f0=this['_sparklineModel'][_0xfb5a1b(0xfb)](_0x22ddff);_0x4ab1f0||(_0x4ab1f0=new Map(),this[_0xfb5a1b(0x15f)][_0xfb5a1b(0xd9)](_0x22ddff,_0x4ab1f0));let _0x5e568b=_0x4ab1f0[_0xfb5a1b(0xfb)](_0x2b92db);return _0x5e568b||(_0x5e568b=new Map(),_0x4ab1f0[_0xfb5a1b(0xd9)](_0x2b92db,_0x5e568b)),_0x5e568b;}[_0x25e9a6(0x112)](_0xa02f42,_0x132c57){const _0x39bcfa=_0x25e9a6;let _0xfcef36=this[_0x39bcfa(0xcc)][_0x39bcfa(0xfb)](_0xa02f42);_0xfcef36||(_0xfcef36=new Map(),this[_0x39bcfa(0xcc)][_0x39bcfa(0xd9)](_0xa02f42,_0xfcef36));let _0x1e43c6=_0xfcef36[_0x39bcfa(0xfb)](_0x132c57);return _0x1e43c6||(_0x1e43c6={'matrix':new _0x3589c8(),'extra':{}},_0xfcef36['set'](_0x132c57,_0x1e43c6)),_0x1e43c6;}[_0x25e9a6(0xa1)](_0x723350,_0x133f1d,_0x25f630,_0x357abd='set'){const _0x1677ae=_0x25e9a6;var _0x4e6555,_0x1ede1f,_0x145643,_0x40082a;let _0x228e79=(_0x4e6555=this[_0x1677ae(0x15f)][_0x1677ae(0xfb)](_0x723350))==null||(_0x4e6555=_0x4e6555[_0x1677ae(0xfb)](_0x133f1d))==null?void 0x0:_0x4e6555[_0x1677ae(0xfb)](_0x25f630);if(!_0x228e79)return;let _0x3c77ab=_0xa26ada(this[_0x1677ae(0xaa)],{'unitId':_0x723350,'subUnitId':_0x133f1d});if(!_0x3c77ab)return;let {extra:_0x217de0,matrix:_0x4c66e2}=this[_0x1677ae(0x112)](_0x723350,_0x133f1d),{worksheet:_0x45b8f4}=_0x3c77ab,_0x5cf499=-(0x2**0x35-0x1),_0x4f5ac2=0x2**0x35-0x1,_0xd699df=_0x228e79[_0x1677ae(0x12f)][_0x1677ae(0xc5)]??!0x1;_0x228e79['sparklines']['forValue']((_0x50585c,_0x175b81,_0x59f1c7)=>{const _0x1a6f76=_0x1677ae;let _0x2b6cb7=_0x59f1c7,_0x2b3273=-(0x2**0x35-0x1),_0x167441=0x2**0x35-0x1,_0x588467=0x0,_0x544e34=0x0,_0x5ec6b0=[];if(!_0x2d7fab(_0x2b6cb7))_0x4c66e2['setValue'](_0x50585c,_0x175b81,{'groupId':_0x25f630,'data':[],'max':_0x2b3273,'min':_0x167441,'highIndex':_0x588467,'lowIndex':_0x544e34,'negativeIndexes':_0x5ec6b0});else{let _0x11822e=[];for(let _0x5ac7e7=_0x2b6cb7[_0x1a6f76(0xe5)];_0x5ac7e7<=_0x2b6cb7[_0x1a6f76(0xb5)];_0x5ac7e7++){for(let _0x522e7f=_0x2b6cb7['startColumn'];_0x522e7f<=_0x2b6cb7['endColumn'];_0x522e7f++){var _0x1cc975;let _0x52a54e=_0x45b8f4[_0x1a6f76(0xa0)](_0x5ac7e7),_0x32dca8=_0x45b8f4[_0x1a6f76(0xd2)](_0x522e7f);if(!_0xd699df&&(!_0x52a54e||!_0x32dca8))continue;let _0x5a6e77=0x0,_0x115c2a=((_0x1cc975=_0x45b8f4[_0x1a6f76(0xb1)](_0x5ac7e7,_0x522e7f))==null?void 0x0:_0x1cc975['v'])===void 0x0?_0x45b8f4[_0x1a6f76(0xab)](_0x5ac7e7,_0x522e7f):_0x45b8f4[_0x1a6f76(0xb1)](_0x5ac7e7,_0x522e7f);if(!_0x115c2a||_0x115c2a['v']===void 0x0||_0x115c2a['v']===null){let _0x3565e0=_0x228e79['config'][_0x1a6f76(0x147)]??_0x1a6f76(0xe9);_0x3565e0===_0x1a6f76(0x139)?_0x5a6e77=0x0:_0x3565e0==='spacing'?_0x5a6e77=_0x1a6f76(0x160):_0x3565e0===_0x1a6f76(0xf4)&&(_0x5a6e77=_0x1a6f76(0x115));}else{if(_0x115c2a['t']===_0x3a2784['STRING']||_0x115c2a['t']===_0x3a2784[_0x1a6f76(0xe0)]){let _0x472d1e=_0x228e79[_0x1a6f76(0x12f)][_0x1a6f76(0x13c)]??_0x1a6f76(0xe9);_0x472d1e===_0x1a6f76(0x139)?_0x5a6e77=0x0:_0x472d1e===_0x1a6f76(0xe9)?_0x5a6e77=_0x1a6f76(0x160):_0x472d1e===_0x1a6f76(0xf4)&&(_0x5a6e77=_0x1a6f76(0x115));}else _0x5a6e77=_0x115c2a['t']===_0x3a2784[_0x1a6f76(0xa9)]?+!!_0x115c2a['v']:_0x115c2a['t']===_0x3a2784[_0x1a6f76(0x11c)]?Number(_0x115c2a['v']):_0x115c2a['v'];}if(_0x11822e[_0x1a6f76(0x162)](_0x5a6e77),typeof _0x5a6e77==_0x1a6f76(0x119)){_0x2b3273=Math[_0x1a6f76(0x131)](_0x2b3273,_0x5a6e77),_0x5cf499=Math[_0x1a6f76(0x131)](_0x5cf499,_0x5a6e77),_0x4f5ac2=Math[_0x1a6f76(0x167)](_0x4f5ac2,_0x5a6e77),_0x167441=Math[_0x1a6f76(0x167)](_0x167441,_0x5a6e77);let _0x1322da=typeof _0x11822e[_0x588467]=='number'?Number(_0x11822e[_0x588467]):-(0x2**0x35-0x1);_0x5a6e77>_0x1322da&&(_0x588467=_0x11822e['length']-0x1);let _0x44d818=typeof _0x11822e[_0x544e34]==_0x1a6f76(0x119)?Number(_0x11822e[_0x544e34]):0x2**0x35-0x1;_0x5a6e77<_0x44d818&&(_0x544e34=_0x11822e[_0x1a6f76(0xa3)]-0x1),_0x5a6e77<0x0&&_0x5ec6b0[_0x1a6f76(0x162)](_0x11822e[_0x1a6f76(0xa3)]-0x1);}}_0x4c66e2[_0x1a6f76(0xb8)](_0x50585c,_0x175b81,{'groupId':_0x25f630,'data':_0x11822e,'max':_0x2b3273,'min':_0x167441,'highIndex':_0x588467,'lowIndex':_0x544e34,'negativeIndexes':_0x5ec6b0});}}});let _0x1aaead=_0x5cf499;if(((_0x1ede1f=_0x228e79[_0x1677ae(0x12f)][_0x1677ae(0xfa)])==null?void 0x0:_0x1ede1f[_0x1677ae(0xcd)])===0x3){var _0x82afb7;_0x1aaead=((_0x82afb7=_0x228e79[_0x1677ae(0x12f)]['extremumMax'])==null?void 0x0:_0x82afb7['value'])??_0x5cf499;}let _0x157dfd=_0x4f5ac2;if(((_0x145643=_0x228e79[_0x1677ae(0x12f)][_0x1677ae(0x11b)])==null?void 0x0:_0x145643[_0x1677ae(0xcd)])===0x3){var _0x5e4689;_0x157dfd=((_0x5e4689=_0x228e79['config']['extremumMin'])==null?void 0x0:_0x5e4689['value'])??_0x4f5ac2;}let _0x316723=_0x228e79[_0x1677ae(0x12f)]['themeType']??'standard',_0x2d6ba2=new _0x236fdb(_0x228e79[_0x1677ae(0x12f)][_0x1677ae(0x12b)]??((_0x40082a=F[_0x316723])==null?void 0x0:_0x40082a[0x0])??F[_0x1677ae(0x107)][0x0]),_0x1bb58f=_0x2d6ba2[_0x1677ae(0x120)](0.2)[_0x1677ae(0xef)](),_0x4f9910=_0x2d6ba2['setAlpha'](0.05)[_0x1677ae(0xef)]();_0x217de0[_0x25f630]={'groupMax':_0x5cf499,'groupMin':_0x4f5ac2,'showMax':_0x1aaead,'showMin':_0x157dfd,'startGradient':_0x1bb58f,'endGradient':_0x4f9910},this[_0x1677ae(0xbe)][_0x1677ae(0x116)]({'unitId':_0x723350,'subUnitId':_0x133f1d,'groupId':_0x25f630,'config':_0x228e79,'type':_0x357abd});}[_0x25e9a6(0x144)](_0x50637a,_0x34e5a8,_0x3ff0fd,_0x25c9a1){const _0x50fd85=_0x25e9a6;this[_0x50fd85(0x150)](_0x50637a,_0x34e5a8)[_0x50fd85(0xd9)](_0x3ff0fd,_0x25c9a1),this['updateSparklineExtraNum'](_0x50637a,_0x34e5a8,_0x3ff0fd,_0x50fd85(0x146));}[_0x25e9a6(0x15b)](_0x1b5165,_0x4bffb7,_0x58ed4d,_0x3d3f18){const _0x437d4a=_0x25e9a6;var _0x2657bb;let _0x22ee60=(_0x2657bb=this[_0x437d4a(0x15f)]['get'](_0x1b5165))==null?void 0x0:_0x2657bb[_0x437d4a(0xfb)](_0x4bffb7);_0x58ed4d[_0x437d4a(0x103)](_0x42695f=>{const _0x46345e=_0x437d4a;_0x22ee60!=null&&_0x22ee60[_0x46345e(0x100)](_0x42695f)&&(_0x22ee60[_0x46345e(0xd9)](_0x42695f,_0x3d3f18),this[_0x46345e(0xa1)](_0x1b5165,_0x4bffb7,_0x42695f));});}[_0x25e9a6(0xed)](_0x268b1d,_0x4c05ff,_0x5b8601){const _0x39a64f=_0x25e9a6;let _0x2953e3=this['_sparklineModel']['get'](_0x268b1d);if(_0x2953e3){let _0x18decb=_0x2953e3[_0x39a64f(0xfb)](_0x4c05ff);if(_0x18decb){var _0x298e0e,_0xef96e9;_0x18decb[_0x39a64f(0x159)](_0x5b8601);let _0x273fe7=(_0x298e0e=this['_sparklineAnchorMap'][_0x39a64f(0xfb)](_0x268b1d))==null?void 0x0:_0x298e0e['get'](_0x4c05ff);_0x273fe7==null||(_0xef96e9=_0x273fe7[_0x39a64f(0x137)])==null||_0xef96e9['forValue']((_0x5dfef5,_0x1ed90b,_0x8d4b5c)=>{const _0x25b374=_0x39a64f;(_0x8d4b5c==null?void 0x0:_0x8d4b5c[_0x25b374(0xcb)])===_0x5b8601&&(_0x273fe7==null||_0x273fe7['matrix'][_0x25b374(0xbd)](_0x5dfef5,_0x1ed90b));}),this[_0x39a64f(0xbe)][_0x39a64f(0x116)]({'unitId':_0x268b1d,'subUnitId':_0x4c05ff,'groupId':_0x5b8601,'type':_0x39a64f(0xb0)}),_0x18decb[_0x39a64f(0xfe)]===0x0&&_0x2953e3[_0x39a64f(0x159)](_0x4c05ff);}}}[_0x25e9a6(0x128)](_0x435582,_0x502b9a,_0xe08cba,_0x13bfd6){const _0x5934a3=_0x25e9a6;var _0x34fa9f;let _0x27d4c6=(_0x34fa9f=this['_sparklineAnchorMap'][_0x5934a3(0xfb)](_0x435582))==null?void 0x0:_0x34fa9f[_0x5934a3(0xfb)](_0x502b9a),_0x24ce80=_0x27d4c6==null?void 0x0:_0x27d4c6[_0x5934a3(0x137)]['getValue'](_0xe08cba,_0x13bfd6);if(_0x24ce80){var _0x468193,_0x44c00c,_0x3f68aa;let {groupId:_0x5630db}=_0x24ce80,_0x383df1=(_0x468193=this['_sparklineModel'][_0x5934a3(0xfb)](_0x435582))==null?void 0x0:_0x468193[_0x5934a3(0xfb)](_0x502b9a);_0x383df1==null||(_0x44c00c=_0x383df1[_0x5934a3(0xfb)](_0x5630db))==null||_0x44c00c[_0x5934a3(0x155)]['realDeleteValue'](_0xe08cba,_0x13bfd6),_0x383df1!=null&&(_0x3f68aa=_0x383df1[_0x5934a3(0xfb)](_0x5630db))!=null&&_0x3f68aa['sparklines'][_0x5934a3(0xb7)]()||_0x383df1==null||_0x383df1[_0x5934a3(0x159)](_0x5630db),_0x27d4c6==null||_0x27d4c6[_0x5934a3(0x137)]['realDeleteValue'](_0xe08cba,_0x13bfd6),this[_0x5934a3(0xbe)][_0x5934a3(0x116)]({'unitId':_0x435582,'subUnitId':_0x502b9a,'groupId':_0x5630db,'type':_0x5934a3(0xb0)});}}['clearSparklineCache'](_0x283524,_0x202d15,_0x364b33){const _0x74b1be=_0x25e9a6;var _0x446602,_0x4de7ee;let _0x39e571=(_0x446602=this[_0x74b1be(0x15f)]['get'](_0x283524))==null||(_0x446602=_0x446602[_0x74b1be(0xfb)](_0x202d15))==null||(_0x446602=_0x446602[_0x74b1be(0xfb)](_0x364b33))==null?void 0x0:_0x446602[_0x74b1be(0x155)],_0x55db81=(_0x4de7ee=this[_0x74b1be(0xcc)]['get'](_0x283524))==null?void 0x0:_0x4de7ee['get'](_0x202d15);if(_0x39e571&&_0x55db81){let {matrix:_0x41a6a2,extra:_0x293ee6}=_0x55db81;_0x39e571[_0x74b1be(0x161)]((_0x41b63a,_0x3c3880,_0x73e6a0)=>{const _0x260e27=_0x74b1be;_0x41a6a2[_0x260e27(0xbd)](_0x41b63a,_0x3c3880);}),delete _0x293ee6[_0x364b33];}}[_0x25e9a6(0xb3)](_0x51e6b8,_0x5a083d){const _0x17c51e=_0x25e9a6;var _0x7c1d50;return(_0x7c1d50=this['_sparklineModel'][_0x17c51e(0xfb)](_0x51e6b8))==null?void 0x0:_0x7c1d50[_0x17c51e(0xfb)](_0x5a083d);}[_0x25e9a6(0x125)](_0x566623,_0x30df08,_0x56d8e0){const _0x4d2157=_0x25e9a6;var _0x5ca7e0;return(_0x5ca7e0=this[_0x4d2157(0x15f)][_0x4d2157(0xfb)](_0x566623))==null||(_0x5ca7e0=_0x5ca7e0[_0x4d2157(0xfb)](_0x30df08))==null?void 0x0:_0x5ca7e0['get'](_0x56d8e0);}[_0x25e9a6(0xfc)](_0x116083,_0x33418a,_0x40763d,_0x1fecdc){const _0x2407ce=_0x25e9a6;var _0x1e01f2;return(_0x1e01f2=this[_0x2407ce(0xcc)][_0x2407ce(0xfb)](_0x116083))==null||(_0x1e01f2=_0x1e01f2[_0x2407ce(0xfb)](_0x33418a))==null||(_0x1e01f2=_0x1e01f2[_0x2407ce(0x137)][_0x2407ce(0x13f)](_0x40763d,_0x1fecdc))==null?void 0x0:_0x1e01f2[_0x2407ce(0xcb)];}[_0x25e9a6(0xd1)](_0x32f636,_0xe7f50b){const _0x4ef858=_0x25e9a6;var _0x1ba7b2;let _0x1b8cdf=this[_0x4ef858(0x112)](_0x32f636,_0xe7f50b);_0x1b8cdf[_0x4ef858(0x137)][_0x4ef858(0x161)]((_0x562530,_0x1a7cd2)=>{const _0x282e86=_0x4ef858;_0x1b8cdf['matrix'][_0x282e86(0xbd)](_0x562530,_0x1a7cd2);});let _0x345774=(_0x1ba7b2=this[_0x4ef858(0x15f)][_0x4ef858(0xfb)](_0x32f636))==null?void 0x0:_0x1ba7b2[_0x4ef858(0xfb)](_0xe7f50b);if(_0x345774){for(let [_0x2b2570]of _0x345774)this['updateSparklineExtraNum'](_0x32f636,_0xe7f50b,_0x2b2570);}}[_0x25e9a6(0xc9)](){const _0x300162=_0x25e9a6;return{'sparklineModel':this[_0x300162(0x15f)],'sparklineAnchorMap':this['_sparklineAnchorMap']};}[_0x25e9a6(0x143)](_0x442cf9){const _0xbcefc1=_0x25e9a6;let _0x147f90={};if(this[_0xbcefc1(0x15f)][_0xbcefc1(0x100)](_0x442cf9)){_0x147f90[_0x442cf9]={};let _0x41f7b8=this['_sparklineModel']['get'](_0x442cf9);_0x41f7b8!=null&&_0x41f7b8[_0xbcefc1(0xfe)]&&Array[_0xbcefc1(0xc7)](_0x41f7b8[_0xbcefc1(0x12e)]())[_0xbcefc1(0x103)](_0x5147dd=>{const _0x2f3869=_0xbcefc1;_0x147f90[_0x442cf9][_0x5147dd]={};let _0x4e752f=_0x41f7b8['get'](_0x5147dd);_0x4e752f!=null&&_0x4e752f[_0x2f3869(0xfe)]&&Array[_0x2f3869(0xc7)](_0x4e752f[_0x2f3869(0x12e)]())[_0x2f3869(0x103)](_0x489b0b=>{const _0x15b2a9=_0x2f3869;let _0x55ca7b=_0x4e752f[_0x15b2a9(0xfb)](_0x489b0b);_0x55ca7b&&(_0x147f90[_0x442cf9][_0x5147dd][_0x489b0b]={'config':_0x55ca7b['config'],'sparklines':_0x55ca7b[_0x15b2a9(0x155)][_0x15b2a9(0x135)]()});});});}return _0x147f90;}['fromJSON'](_0x4de914){const _0x33a35f=_0x25e9a6;_0x4de914&&Object['keys'](_0x4de914)[_0x33a35f(0x103)](_0x421a72=>{const _0x2db0df=_0x33a35f;let _0x2c8941=_0x4de914[_0x421a72];_0x2c8941&&Object[_0x2db0df(0x12e)](_0x2c8941)['forEach'](_0x527a62=>{const _0x23738c=_0x2db0df;let _0xb3946b=_0x2c8941[_0x527a62];_0xb3946b&&Object[_0x23738c(0x12e)](_0xb3946b)[_0x23738c(0x103)](_0x8a8f06=>{const _0x4dfdbe=_0x23738c;let _0x4feb33=_0xb3946b[_0x8a8f06];if(_0x4feb33){let _0x5f18af={'config':_0x4feb33[_0x4dfdbe(0x12f)],'sparklines':new _0x3589c8(_0x4feb33['sparklines'])};this['addSparkline'](_0x421a72,_0x527a62,_0x8a8f06,_0x5f18af);}});});});}[_0x25e9a6(0xb9)](_0x292a25){const _0x2bd370=_0x25e9a6;let _0x31dce7=this[_0x2bd370(0x15f)][_0x2bd370(0xfb)](_0x292a25);if(_0x31dce7){for(let [_0x34f65f]of _0x31dce7){let _0x2f318f=_0x31dce7[_0x2bd370(0xfb)](_0x34f65f);if(_0x2f318f){for(let [_0x39eab1]of _0x2f318f)this[_0x2bd370(0x164)](_0x292a25,_0x34f65f,_0x39eab1);}}this['_sparklineModel'][_0x2bd370(0x159)](_0x292a25);}}};B=z([R(0x0,_0x242a91(_0x454b2d))],B);const V={'id':'sheet.mutation.add-sparkline','type':_0x385604['MUTATION'],'handler':(_0x3fa93a,_0x3cd099)=>{const _0x43879e=_0x25e9a6;if(!_0x3cd099)return!0x1;let {sparklineConfigMap:_0x449e90,unitId:_0xbef890,subUnitId:_0x2f83f2}=_0x3cd099,_0xfb9d45=_0x3fa93a[_0x43879e(0xfb)](B);return Object[_0x43879e(0x9f)](_0x449e90)[_0x43879e(0x103)](([_0x4ded04,_0x1ccf65])=>{const _0x108b81=_0x43879e;let _0x138f64={'config':_0x1ccf65[_0x108b81(0x12f)],'sparklines':new _0x3589c8(_0x1ccf65[_0x108b81(0x155)])};_0xfb9d45[_0x108b81(0x144)](_0xbef890,_0x2f83f2,_0x4ded04,_0x138f64);}),!0x0;}},H={'id':_0x25e9a6(0xb6),'type':_0x385604[_0x25e9a6(0x15e)],'handler':(_0x236c8c,_0x5f3268)=>{const _0x484e5e=_0x25e9a6;if(!_0x5f3268)return!0x1;let {unitId:_0x415019,subUnitId:_0x14dae0,ranges:_0x1b9800,isSingle:_0x1c166f,groupIds:_0xc9c962}=_0x5f3268,_0x3881a9=_0x236c8c[_0x484e5e(0xfb)](B);return _0xc9c962?(_0xc9c962[_0x484e5e(0x103)](_0x1bd41c=>{const _0x36d515=_0x484e5e;_0x3881a9[_0x36d515(0xed)](_0x415019,_0x14dae0,_0x1bd41c);}),!0x0):_0x1b9800?(_0x1b9800[_0x484e5e(0x103)](_0x43faac=>{const _0x100ae6=_0x484e5e;_0x3366f5[_0x100ae6(0x12c)](_0x43faac,(_0x8c1978,_0x3b1488)=>{const _0x52d5cd=_0x100ae6;let _0x2eb43d=_0x3881a9[_0x52d5cd(0xfc)](_0x415019,_0x14dae0,_0x8c1978,_0x3b1488);_0x2eb43d&&(_0x1c166f?_0x3881a9[_0x52d5cd(0x128)](_0x415019,_0x14dae0,_0x8c1978,_0x3b1488):_0x3881a9['removeSparkline'](_0x415019,_0x14dae0,_0x2eb43d));});}),!0x0):!0x1;}},U={'id':_0x25e9a6(0x133),'type':_0x385604[_0x25e9a6(0xa5)],'handler':(_0x132709,_0x2e642b)=>{const _0x1eba9b=_0x25e9a6;if(!_0x2e642b)return!0x1;let {sourceRanges:_0x3348be,targetRanges:_0x1cf312,config:_0x20d942}=_0x2e642b,_0x56603a=_0x132709['get'](_0xa06fa2),_0x2faf61='g_'+_0x23b660(0x6),_0x1266fd=N(_0x3348be,_0x1cf312),_0x48d767={'config':_0x20d942??{},'sparklines':_0x1266fd[_0x1eba9b(0x135)]()},_0x45b4fd=_0x132709[_0x1eba9b(0xfb)](_0x454b2d),_0x74873=_0x132709[_0x1eba9b(0xfb)](B),_0x3a4614=_0xa26ada(_0x45b4fd);if(!_0x3a4614)return!0x1;let {unitId:_0x38c767,subUnitId:_0x3d1f6b}=_0x3a4614,_0x5c059f=_0x132709[_0x1eba9b(0xfb)](_0x126423),_0x449394=[],_0x55a400=[],_0x45fe0a={},_0x5ae7d6={},_0x4ba566=new Set([_0x2faf61]);_0x1266fd[_0x1eba9b(0x161)]((_0x4a9fde,_0x3fbcf7,_0x5c534d)=>{const _0x15ece4=_0x1eba9b;let _0x1bfc72=_0x74873['getSparkline'](_0x38c767,_0x3d1f6b,_0x4a9fde,_0x3fbcf7);if(_0x1bfc72){let _0x4ed7af=_0x74873[_0x15ece4(0x125)](_0x38c767,_0x3d1f6b,_0x1bfc72);if(_0x4ed7af){_0x4ba566[_0x15ece4(0x146)](_0x1bfc72);let _0x5baa37=_0x45fe0a[_0x1bfc72],_0x44985f=_0x5ae7d6[_0x1bfc72];_0x44985f||(_0x44985f={'config':_0x27d6a1[_0x15ece4(0x12a)](_0x4ed7af[_0x15ece4(0x12f)]),'sparklines':new _0x3589c8(_0x4ed7af[_0x15ece4(0x155)]['clone']())},_0x5ae7d6[_0x1bfc72]=_0x44985f),_0x5baa37||(_0x5baa37={'config':_0x27d6a1['deepClone'](_0x4ed7af[_0x15ece4(0x12f)]),'sparklines':_0x4ed7af[_0x15ece4(0x155)][_0x15ece4(0x157)]()},_0x45fe0a[_0x1bfc72]=_0x5baa37),_0x44985f['sparklines'][_0x15ece4(0xbd)](_0x4a9fde,_0x3fbcf7);}}});let _0x325332={};return Object['entries'](_0x5ae7d6)[_0x1eba9b(0x103)](([_0x5a5562,_0x5a7f81])=>{const _0x3e285d=_0x1eba9b;_0x5a7f81[_0x3e285d(0x155)]['getSizeOf']()&&(_0x325332[_0x5a5562]={'config':_0x5a7f81['config'],'sparklines':_0x5a7f81[_0x3e285d(0x155)]['clone']()});}),_0x325332[_0x2faf61]=_0x48d767,_0x449394[_0x1eba9b(0x162)]({'id':H['id'],'params':{'unitId':_0x38c767,'subUnitId':_0x3d1f6b,'groupIds':Array[_0x1eba9b(0xc7)](_0x4ba566),'isSingle':!0x1}}),_0x4ba566[_0x1eba9b(0xfe)]>0x1&&(_0x55a400[_0x1eba9b(0x162)]({'id':H['id'],'params':{'unitId':_0x38c767,'subUnitId':_0x3d1f6b,'groupIds':Array[_0x1eba9b(0xc7)](_0x4ba566),'isSingle':!0x1}}),_0x449394['push']({'id':V['id'],'params':{'unitId':_0x38c767,'subUnitId':_0x3d1f6b,'sparklineConfigMap':_0x45fe0a}})),_0x55a400[_0x1eba9b(0x162)]({'id':V['id'],'params':{'unitId':_0x38c767,'subUnitId':_0x3d1f6b,'sparklineConfigMap':_0x325332}}),_0x635e8d(_0x55a400,_0x5c059f)[_0x1eba9b(0xc6)]?(_0x56603a[_0x1eba9b(0x110)]({'unitID':_0x38c767,'undoMutations':_0x449394,'redoMutations':_0x55a400}),!0x0):!0x1;}},W={'id':_0x25e9a6(0x141),'type':_0x385604[_0x25e9a6(0xa5)],'handler':(_0x178b4b,_0x52611d)=>{const _0x10a09f=_0x25e9a6;let {isSingle:_0x58d23a=!0x0}=_0x52611d||{},_0x1b53c4=_0x178b4b[_0x10a09f(0xfb)](_0x126423),_0x2e3e48=_0x178b4b[_0x10a09f(0xfb)](_0x454b2d),_0x3165e1=_0x178b4b[_0x10a09f(0xfb)](B),_0x33f2f8=_0x178b4b['get'](_0xa06fa2),_0x107b0b=_0xa26ada(_0x2e3e48);if(!_0x107b0b)return!0x1;let _0x500c82=_0x178b4b[_0x10a09f(0xfb)](_0x3eb61c),_0x219f1f=(_0x52611d==null?void 0x0:_0x52611d[_0x10a09f(0xf0)])??_0x500c82[_0x10a09f(0x14f)]()[_0x10a09f(0xb2)](_0x152efc=>_0x152efc['range']),{unitId:_0x285837,subUnitId:_0x33b64a}=_0x107b0b,_0x5a9f76=[],_0x5ca338=[];_0x5a9f76[_0x10a09f(0x162)]({'id':H['id'],'params':{'unitId':_0x285837,'subUnitId':_0x33b64a,'ranges':_0x219f1f,'isSingle':_0x58d23a}});let _0x13fd77=[],_0x463ab6={};return _0x219f1f[_0x10a09f(0x103)](_0x866515=>{const _0x480c93=_0x10a09f;_0x3366f5[_0x480c93(0x12c)](_0x866515,(_0x22d9f6,_0x2e7fcb)=>{const _0x4d2883=_0x480c93;let _0x1723da=_0x3165e1['getSparkline'](_0x285837,_0x33b64a,_0x22d9f6,_0x2e7fcb);if(_0x1723da){let _0x4ad3b9=_0x3165e1[_0x4d2883(0x125)](_0x285837,_0x33b64a,_0x1723da);_0x4ad3b9&&(_0x13fd77[_0x4d2883(0x162)](_0x1723da),_0x463ab6[_0x1723da]={'config':_0x27d6a1[_0x4d2883(0x12a)](_0x4ad3b9['config']),'sparklines':_0x27d6a1[_0x4d2883(0x12a)](_0x4ad3b9[_0x4d2883(0x155)][_0x4d2883(0x157)]())});}});}),_0x5ca338['push']({'id':H['id'],'params':{'unitId':_0x285837,'subUnitId':_0x33b64a,'groupIds':_0x13fd77,'isSingle':!0x1}}),_0x5ca338['push']({'id':V['id'],'params':{'unitId':_0x285837,'subUnitId':_0x33b64a,'sparklineConfigMap':_0x463ab6}}),_0x635e8d(_0x5a9f76,_0x1b53c4)[_0x10a09f(0xc6)]?(_0x33f2f8['pushUndoRedo']({'unitID':_0x285837,'undoMutations':_0x5ca338,'redoMutations':_0x5a9f76}),!0x0):!0x1;}},G={'id':_0x25e9a6(0x163),'type':_0x385604[_0x25e9a6(0x15e)],'handler':(_0x5b7172,_0x507383)=>{const _0xbb5004=_0x25e9a6;if(!_0x507383)return!0x1;let {unitId:_0x41ab03,subUnitId:_0x2cedd8,groupIds:_0x239251,config:_0x100513}=_0x507383,_0x127485=_0x5b7172[_0xbb5004(0xfb)](B);return _0x239251[_0xbb5004(0x103)](_0x32a49c=>{const _0x5e3259=_0xbb5004;let _0x1cc0b8=_0x127485['getSparklineById'](_0x41ab03,_0x2cedd8,_0x32a49c);if(_0x1cc0b8){let _0x16b1b2={'config':Object['assign']({},_0x1cc0b8['config'],_0x100513[_0x5e3259(0x12f)]),'sparklines':new _0x3589c8(_0x1cc0b8['sparklines'][_0x5e3259(0x157)]())};_0x127485[_0x5e3259(0x15b)](_0x41ab03,_0x2cedd8,[_0x32a49c],_0x16b1b2);}}),!0x0;}},ke={'id':'sheet.command.set-sparkline','type':_0x385604[_0x25e9a6(0xa5)],'handler':(_0x4482c2,_0x4eb020)=>{const _0x107b10=_0x25e9a6;var _0x10bb59;if(!_0x4eb020)return!0x1;let _0x2277b6=_0x4482c2['get'](_0x126423),_0x101464=_0x4482c2['get'](_0x3eb61c),_0x1eb173=_0x4482c2[_0x107b10(0xfb)](B),_0x2a296d=_0x4482c2[_0x107b10(0xfb)](_0x454b2d),_0x4f117d=_0x4482c2['get'](_0xa06fa2),_0x520899=_0xa26ada(_0x2a296d);if(!_0x520899)return!0x1;let {unitId:_0x5dfdfb,subUnitId:_0x4f674e}=_0x520899,_0x378793=(_0x4eb020==null?void 0x0:_0x4eb020[_0x107b10(0xf0)])??_0x101464[_0x107b10(0x14f)]()[_0x107b10(0xb2)](_0x4a0816=>_0x4a0816[_0x107b10(0xc2)]),_0x2ef9f1=(_0x10bb59=_0x1eb173[_0x107b10(0xc9)]()['sparklineAnchorMap'][_0x107b10(0xfb)](_0x5dfdfb))==null?void 0x0:_0x10bb59['get'](_0x4f674e),{isChangeDataSource:_0xa31514,config:_0x28fcd4,combine:_0x3f5de4,unCombine:_0x4a47a8}=_0x4eb020;if(_0x3f5de4){var _0xa71f67;let _0x5c2afc=[],_0x2d3366=[];_0x5c2afc[_0x107b10(0x162)]({'id':H['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'ranges':_0x378793,'isSingle':!0x0}});let _0x254495='g_'+_0x23b660(0x6),_0x57efb6=new _0x3589c8(),_0xfc51b8=(_0xa71f67=_0x1eb173[_0x107b10(0xc9)]()['sparklineModel'][_0x107b10(0xfb)](_0x5dfdfb))==null?void 0x0:_0xa71f67['get'](_0x4f674e),_0x27a74f=new Set([_0x254495]),_0x1e37fe={};return _0x378793['forEach'](_0x313582=>{const _0x536c26=_0x107b10;let {startRow:_0x4534b6,endRow:_0x178320,startColumn:_0x46eb1c,endColumn:_0x15d66f}=_0x313582;for(let _0x13b26a=_0x4534b6;_0x13b26a<=_0x178320;_0x13b26a++)for(let _0x237846=_0x46eb1c;_0x237846<=_0x15d66f;_0x237846++){var _0x1e2110;let _0x596192=_0x2ef9f1==null||(_0x1e2110=_0x2ef9f1[_0x536c26(0x137)][_0x536c26(0x13f)](_0x13b26a,_0x237846))==null?void 0x0:_0x1e2110[_0x536c26(0xcb)];if(_0x596192){var _0x376493;_0x27a74f[_0x536c26(0x146)](_0x596192);let _0x5040a3=_0x1eb173[_0x536c26(0x125)](_0x5dfdfb,_0x4f674e,_0x596192);_0x5040a3&&(_0x1e37fe[_0x596192]={'config':_0x27d6a1[_0x536c26(0x12a)](_0x5040a3[_0x536c26(0x12f)]),'sparklines':_0x27d6a1[_0x536c26(0x12a)](_0x5040a3[_0x536c26(0x155)][_0x536c26(0x157)]())});let _0x11f350=_0xfc51b8==null||(_0x376493=_0xfc51b8['get'](_0x596192))==null?void 0x0:_0x376493[_0x536c26(0x155)]['getValue'](_0x13b26a,_0x237846);_0x11f350&&_0x57efb6[_0x536c26(0xb8)](_0x13b26a,_0x237846,_0x11f350);}}}),_0x5c2afc[_0x107b10(0x162)]({'id':V['id'],'params':{'sparklineConfigMap':{[_0x254495]:{'config':_0x27d6a1[_0x107b10(0x12a)](_0x28fcd4['config']),'sparklines':_0x57efb6['getMatrix']()}},'unitId':_0x5dfdfb,'subUnitId':_0x4f674e}}),_0x2d3366[_0x107b10(0x162)]({'id':H['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'isSingle':!0x1,'groupIds':Array[_0x107b10(0xc7)](_0x27a74f)}}),_0x2d3366[_0x107b10(0x162)]({'id':V['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'sparklineConfigMap':_0x1e37fe}}),_0x635e8d(_0x5c2afc,_0x2277b6)['result']?(_0x4f117d[_0x107b10(0x110)]({'unitID':_0x5dfdfb,'undoMutations':_0x2d3366,'redoMutations':_0x5c2afc}),!0x0):!0x1;}else{if(_0x4a47a8){var _0x262f0b;let _0x282b42=[],_0x1e0d45=[];_0x282b42['push']({'id':H['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'ranges':_0x378793,'isSingle':!0x0}});let _0x42f319=(_0x262f0b=_0x1eb173['getSparklineCache']()[_0x107b10(0x138)][_0x107b10(0xfb)](_0x5dfdfb))==null?void 0x0:_0x262f0b['get'](_0x4f674e),_0x29ea03={},_0x4e655e=new Set(),_0x4d4c5f={};return _0x378793[_0x107b10(0x103)](_0x6b958=>{const _0x1c5984=_0x107b10;let {startRow:_0x53b58b,endRow:_0x1d3939,startColumn:_0x16a641,endColumn:_0x115edc}=_0x6b958;for(let _0x1cb1bc=_0x53b58b;_0x1cb1bc<=_0x1d3939;_0x1cb1bc++)for(let _0x5db802=_0x16a641;_0x5db802<=_0x115edc;_0x5db802++){var _0x5134bc;let _0x3ae622=_0x2ef9f1==null||(_0x5134bc=_0x2ef9f1[_0x1c5984(0x137)][_0x1c5984(0x13f)](_0x1cb1bc,_0x5db802))==null?void 0x0:_0x5134bc['groupId'];if(_0x3ae622){var _0x94c71d;let _0x3be1e9=new _0x3589c8(),_0x5de28d='g_'+_0x23b660(0x6);_0x4e655e[_0x1c5984(0x146)](_0x3ae622),_0x4e655e[_0x1c5984(0x146)](_0x5de28d);let _0x2f59a4=_0x1eb173[_0x1c5984(0x125)](_0x5dfdfb,_0x4f674e,_0x3ae622);_0x2f59a4&&(_0x4d4c5f[_0x3ae622]={'config':_0x27d6a1['deepClone'](_0x2f59a4['config']),'sparklines':_0x27d6a1[_0x1c5984(0x12a)](_0x2f59a4[_0x1c5984(0x155)][_0x1c5984(0x157)]())});let _0x182a4b=_0x42f319==null||(_0x94c71d=_0x42f319[_0x1c5984(0xfb)](_0x3ae622))==null?void 0x0:_0x94c71d['sparklines'][_0x1c5984(0x13f)](_0x1cb1bc,_0x5db802);_0x182a4b&&_0x3be1e9[_0x1c5984(0xb8)](_0x1cb1bc,_0x5db802,_0x182a4b),_0x29ea03[_0x5de28d]={'sparklines':_0x3be1e9[_0x1c5984(0x135)](),'config':_0x27d6a1[_0x1c5984(0x12a)](_0x28fcd4[_0x1c5984(0x12f)])};}}}),_0x282b42[_0x107b10(0x162)]({'id':V['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'sparklineConfigMap':_0x29ea03}}),_0x1e0d45[_0x107b10(0x162)]({'id':H['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'isSingle':!0x1,'groupIds':Array['from'](_0x4e655e)}}),_0x1e0d45['push']({'id':V['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'sparklineConfigMap':_0x4d4c5f}}),_0x635e8d(_0x282b42,_0x2277b6)[_0x107b10(0xc6)]?(_0x4f117d[_0x107b10(0x110)]({'unitID':_0x5dfdfb,'undoMutations':_0x1e0d45,'redoMutations':_0x282b42}),!0x0):!0x1;}}if(_0xa31514){let _0xefbe13=_0x4eb020[_0x107b10(0xe2)];if(!_0xefbe13)return!0x1;let {groupId:_0x58fc9d,sourceRanges:_0x44689a,targetRanges:_0x4ee576,resetType:_0x9da6a0,primary:_0x31c704}=_0xefbe13,_0x21f162=[],_0x90c132=[];_0x21f162[_0x107b10(0x162)]({'id':H['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'ranges':_0x378793,'isSingle':!0x1,'groupIds':[_0x58fc9d]}}),_0x90c132[_0x107b10(0x162)]({'id':H['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'ranges':_0x378793,'isSingle':!0x1,'groupIds':[_0x58fc9d]}});let _0x584179;_0x9da6a0===_0x107b10(0xf6)?(_0x584179=new _0x3589c8(_0x28fcd4[_0x107b10(0x155)][_0x107b10(0x157)]()),_0x584179[_0x107b10(0xbd)](_0x31c704[_0x107b10(0x10e)],_0x31c704[_0x107b10(0xca)]),_0x584179[_0x107b10(0xb8)](_0x4ee576[0x0][_0x107b10(0xe5)],_0x4ee576[0x0][_0x107b10(0xc8)],_0x44689a[0x0])):_0x584179=N(_0x44689a,_0x4ee576);let _0x2a1f09={'config':_0x27d6a1[_0x107b10(0x12a)](_0x28fcd4[_0x107b10(0x12f)]),'sparklines':_0x584179[_0x107b10(0x135)]()},_0x5c9c6f={'config':_0x27d6a1['deepClone'](_0x28fcd4[_0x107b10(0x12f)]),'sparklines':_0x27d6a1['deepClone'](_0x28fcd4['sparklines'][_0x107b10(0x157)]())};return _0x21f162['push']({'id':V['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'sparklineConfigMap':{[_0x58fc9d]:_0x2a1f09}}}),_0x90c132[_0x107b10(0x162)]({'id':V['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'sparklineConfigMap':{[_0x58fc9d]:_0x5c9c6f}}}),_0x635e8d(_0x21f162,_0x2277b6)['result']?(_0x4f117d['pushUndoRedo']({'unitID':_0x5dfdfb,'undoMutations':_0x90c132,'redoMutations':_0x21f162}),!0x0):!0x1;}else{let _0x317e08=[],_0x5d7cc0=[],_0x2dc63a=new Set(),_0x8fe8d3={};return _0x378793[_0x107b10(0x103)](_0x58efc1=>{const _0x341383=_0x107b10;let {startRow:_0x5cd838,endRow:_0x4c8db3,startColumn:_0x561b6e,endColumn:_0x569b40}=_0x58efc1;for(let _0x2bbb9c=_0x5cd838;_0x2bbb9c<=_0x4c8db3;_0x2bbb9c++)for(let _0x11adcf=_0x561b6e;_0x11adcf<=_0x569b40;_0x11adcf++){var _0x3d0b54;let _0x79ace5=_0x2ef9f1==null||(_0x3d0b54=_0x2ef9f1[_0x341383(0x137)]['getValue'](_0x2bbb9c,_0x11adcf))==null?void 0x0:_0x3d0b54[_0x341383(0xcb)];if(_0x79ace5){_0x2dc63a[_0x341383(0x146)](_0x79ace5);let _0x278317=_0x1eb173[_0x341383(0x125)](_0x5dfdfb,_0x4f674e,_0x79ace5);_0x278317&&(_0x8fe8d3[_0x79ace5]={'config':_0x27d6a1[_0x341383(0x12a)](_0x278317[_0x341383(0x12f)]),'sparklines':_0x27d6a1['deepClone'](_0x278317[_0x341383(0x155)][_0x341383(0x157)]())});}}}),_0x5d7cc0[_0x107b10(0x162)]({'id':G['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'groupIds':Array['from'](_0x2dc63a),'config':{'config':_0x27d6a1[_0x107b10(0x12a)](_0x28fcd4[_0x107b10(0x12f)]),'sparklines':_0x28fcd4[_0x107b10(0x155)][_0x107b10(0x135)]()}}}),_0x317e08[_0x107b10(0x162)]({'id':H['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'isSingle':!0x1,'groupIds':Array[_0x107b10(0xc7)](_0x2dc63a)}}),_0x317e08[_0x107b10(0x162)]({'id':V['id'],'params':{'unitId':_0x5dfdfb,'subUnitId':_0x4f674e,'sparklineConfigMap':_0x8fe8d3}}),_0x635e8d(_0x5d7cc0,_0x2277b6)[_0x107b10(0xc6)]?(_0x4f117d[_0x107b10(0x110)]({'unitID':_0x5dfdfb,'undoMutations':_0x317e08,'redoMutations':_0x5d7cc0}),!0x0):!0x1;}}};var Ae=_0x25e9a6(0xe7),je=_0x25e9a6(0xff);const Me={};let K=class extends _0x322379{constructor(_0x19c7ed,_0x3eca6f,_0x2bf2ba,_0x2aefe8){const _0x28fc35=_0x25e9a6;super(),this[_0x28fc35(0x108)]=_0x19c7ed,this['_sheetInterceptorService']=_0x3eca6f,this[_0x28fc35(0xaa)]=_0x2bf2ba,this['_sheetSelectionService']=_0x2aefe8,this[_0x28fc35(0x123)]();}[_0x25e9a6(0x123)](){const _0x44e2ba=_0x25e9a6;this[_0x44e2ba(0xf9)](this[_0x44e2ba(0xd3)][_0x44e2ba(0xe3)]({'getMutations':_0x5a4490=>{const _0x5cc9a3=_0x44e2ba;let _0xe6a07c=[],_0x5dbe8e=[];if(_0x5a4490['id']===_0x38e723['id']){let _0x49658a=_0xa26ada(this[_0x5cc9a3(0xaa)],_0x5a4490[_0x5cc9a3(0x13a)]);if(!_0x49658a)return{'redos':_0xe6a07c,'undos':_0x5dbe8e};let {unitId:_0x3b189b,subUnitId:_0x4e233c}=_0x49658a,_0x3b0e16=this['_sheetSelectionService']['getCurrentSelections']()[_0x5cc9a3(0xb2)](_0x5e51c0=>_0x5e51c0[_0x5cc9a3(0xc2)]),_0x132e70=new Set(),_0x1b37c3={},_0x45470e={};_0x3b0e16[_0x5cc9a3(0x103)](_0x3d9ef5=>{const _0x14d5bd=_0x5cc9a3;_0x3366f5[_0x14d5bd(0x12c)](_0x3d9ef5,(_0x1d9b3f,_0x2db7d2)=>{const _0x429a14=_0x14d5bd;let _0x4c4a14=this['_sparklineDataSourceModel'][_0x429a14(0xfc)](_0x3b189b,_0x4e233c,_0x1d9b3f,_0x2db7d2);if(_0x4c4a14&&!_0x132e70[_0x429a14(0x100)](_0x4c4a14)){let _0x2e2eaa=this[_0x429a14(0x108)]['getSparklineById'](_0x3b189b,_0x4e233c,_0x4c4a14);_0x2e2eaa&&(_0x132e70[_0x429a14(0x146)](_0x4c4a14),_0x1b37c3[_0x4c4a14]={'config':_0x27d6a1[_0x429a14(0x12a)](_0x2e2eaa[_0x429a14(0x12f)]),'sparklines':_0x27d6a1[_0x429a14(0x12a)](_0x2e2eaa['sparklines'][_0x429a14(0x157)]())},_0x45470e[_0x4c4a14]={'config':_0x27d6a1[_0x429a14(0x12a)](_0x2e2eaa['config']),'sparklines':_0x27d6a1[_0x429a14(0x12a)](_0x2e2eaa['sparklines']['clone']())});}});}),Object[_0x5cc9a3(0xf2)](_0x45470e)[_0x5cc9a3(0x103)](_0xd5a0b3=>{const _0x18e5c8=_0x5cc9a3;let _0xe15b50=_0xd5a0b3[_0x18e5c8(0x155)];new _0x3589c8(_0xe15b50)[_0x18e5c8(0x161)]((_0x196ea7,_0x4b7481,_0x3db1f7)=>{const _0x3c5da4=_0x18e5c8;_0x3b0e16['some'](_0x222926=>_0x5c35ac[_0x3c5da4(0xdc)](_0x222926,_0x233a26(_0x196ea7,_0x4b7481)))&&delete _0xe15b50[_0x196ea7][_0x4b7481];});}),_0x132e70[_0x5cc9a3(0xfe)]>0x0&&(_0xe6a07c[_0x5cc9a3(0x162)]({'id':H['id'],'params':{'unitId':_0x3b189b,'subUnitId':_0x4e233c,'groupIds':Array[_0x5cc9a3(0xc7)](_0x132e70),'isSingle':!0x1}}),_0x5dbe8e[_0x5cc9a3(0x162)]({'id':H['id'],'params':{'unitId':_0x3b189b,'subUnitId':_0x4e233c,'groupIds':Array[_0x5cc9a3(0xc7)](_0x132e70),'isSingle':!0x1}})),Object[_0x5cc9a3(0x12e)](_0x45470e)[_0x5cc9a3(0xa3)]>0x0&&_0xe6a07c[_0x5cc9a3(0x162)]({'id':V['id'],'params':{'unitId':_0x3b189b,'subUnitId':_0x4e233c,'sparklineConfigMap':_0x45470e}}),Object[_0x5cc9a3(0x12e)](_0x1b37c3)[_0x5cc9a3(0xa3)]>0x0&&_0x5dbe8e['push']({'id':V['id'],'params':{'unitId':_0x3b189b,'subUnitId':_0x4e233c,'sparklineConfigMap':_0x1b37c3}});}return{'redos':_0xe6a07c,'undos':_0x5dbe8e};}}));}};K=z([R(0x0,_0x242a91(B)),R(0x1,_0x242a91(_0x1f6301)),R(0x2,_0x242a91(_0x454b2d)),R(0x3,_0x242a91(_0x3eb61c))],K);let q=class extends _0x322379{constructor(_0x1c922e,_0x5e361d,_0x512f12){const _0x37194c=_0x25e9a6;super(),this['_commandService']=_0x1c922e,this[_0x37194c(0x108)]=_0x5e361d,this[_0x37194c(0xdb)]=_0x512f12,this[_0x37194c(0x11e)](),this[_0x37194c(0x10b)]();}['_initDataChangeListener'](){const _0x1eb49b=_0x25e9a6;this['disposeWithMe'](this[_0x1eb49b(0xd4)][_0x1eb49b(0x14e)](_0x1847be=>{const _0x42daa3=_0x1eb49b;if(_0x1847be['id']===_0x5cef22['id']){let {cellValue:_0x1b0147,unitId:_0xb1e159,subUnitId:_0x1d722d}=_0x1847be[_0x42daa3(0x13a)],_0x1373cb=new _0x3589c8(_0x1b0147),_0x128aab=new Set(),_0x3f8066=this[_0x42daa3(0x108)]['getSubUnitSparkline'](_0xb1e159,_0x1d722d);if(!_0x3f8066)return;let _0x313c87=Array[_0x42daa3(0xc7)](_0x3f8066);_0x1373cb[_0x42daa3(0x161)]((_0x440e3f,_0x1ddf75,_0x41a191)=>{const _0x387e5b=_0x42daa3;let _0x58d8ec=_0x233a26(_0x440e3f,_0x1ddf75);for(let _0x5c94a1=0x0;_0x5c94a1<_0x313c87[_0x387e5b(0xa3)];_0x5c94a1++){let [_0x4d6538,_0x4c10bf]=_0x313c87[_0x5c94a1],_0x37b8c3=_0x128aab[_0x387e5b(0x100)](_0x4d6538);_0x37b8c3||_0x4c10bf['sparklines'][_0x387e5b(0x161)]((_0x22f5ca,_0x5c4eae,_0x2727d2)=>{const _0x35393b=_0x387e5b;let _0x1b2ddd=_0x2727d2;if(_0x1b2ddd&&!_0x37b8c3&&_0x5c35ac['intersects'](_0x58d8ec,_0x1b2ddd))return _0x128aab[_0x35393b(0x146)](_0x4d6538),!0x0;});}}),_0x128aab[_0x42daa3(0x103)](_0x43957d=>{const _0x4da78d=_0x42daa3;this[_0x4da78d(0x108)][_0x4da78d(0x164)](_0xb1e159,_0x1d722d,_0x43957d),this[_0x4da78d(0x108)][_0x4da78d(0xa1)](_0xb1e159,_0x1d722d,_0x43957d);});}else{if(_0x1847be['id']===_0x3f5be1['id']){let {range:_0xa251f,unitId:_0x34669a,subUnitId:_0x2bf351}=_0x1847be[_0x42daa3(0x13a)],_0x21eb99=new Set(),_0x221ca7=this[_0x42daa3(0x108)][_0x42daa3(0xb3)](_0x34669a,_0x2bf351);if(!_0x221ca7)return;let _0x28ec24=Array['from'](_0x221ca7);for(let _0x113b89=0x0;_0x113b89<_0x28ec24[_0x42daa3(0xa3)];_0x113b89++){let [_0x32c131,_0x35f841]=_0x28ec24[_0x113b89],_0x4d0e48=_0x21eb99[_0x42daa3(0x100)](_0x32c131);_0x4d0e48||_0x35f841[_0x42daa3(0x155)][_0x42daa3(0x161)]((_0x3e7172,_0x550d2e,_0x1cfd82)=>{const _0x4e8a20=_0x42daa3;let _0x505321=_0x1cfd82;if(_0x505321&&!_0x4d0e48&&_0x5c35ac[_0x4e8a20(0xdc)](_0xa251f,_0x505321))return _0x21eb99[_0x4e8a20(0x146)](_0x32c131),!0x0;});}_0x21eb99['forEach'](_0x57678f=>{const _0x182a38=_0x42daa3;this[_0x182a38(0x108)]['clearSparklineCache'](_0x34669a,_0x2bf351,_0x57678f),this[_0x182a38(0x108)]['updateSparklineExtraNum'](_0x34669a,_0x2bf351,_0x57678f);});}}}));}[_0x25e9a6(0x10b)](){const _0x47dd20=_0x25e9a6;this[_0x47dd20(0xf9)](this[_0x47dd20(0xdb)][_0x47dd20(0x109)]['subscribe'](_0x3b3712=>{const _0x5d7edc=_0x47dd20;let {unitId:_0x434cde,subUnitId:_0x5f16a3,ranges:_0x12acdc}=_0x3b3712,_0x4af6f5=this[_0x5d7edc(0x108)][_0x5d7edc(0xb3)](_0x434cde,_0x5f16a3);if(!_0x4af6f5)return;let _0x752620=Array['from'](_0x4af6f5),_0x28ae26=new Set();for(let _0x581fa9=0x0;_0x581fa9<_0x752620['length'];_0x581fa9++){let [_0x5a5af0,_0x5a6a16]=_0x752620[_0x581fa9],_0x42413e=_0x28ae26['has'](_0x5a5af0);_0x42413e||_0x5a6a16[_0x5d7edc(0x155)][_0x5d7edc(0x161)]((_0x55833a,_0x287126,_0x2116b3)=>{let _0x125c34=_0x2116b3;if(_0x125c34&&!_0x42413e){for(let _0x3c541c of _0x12acdc)if(_0x5c35ac['intersects'](_0x3c541c,_0x125c34)){_0x28ae26['add'](_0x5a5af0);break;}}});}_0x28ae26['forEach'](_0x14cab8=>{const _0x312290=_0x5d7edc;this['_sparklineDataSourceModel'][_0x312290(0x164)](_0x434cde,_0x5f16a3,_0x14cab8),this[_0x312290(0x108)][_0x312290(0xa1)](_0x434cde,_0x5f16a3,_0x14cab8);});}));}};q=z([R(0x0,_0x242a91(_0x126423)),R(0x1,_0x242a91(B)),R(0x2,_0x242a91(_0x4112a4))],q);function _0x2e1b(_0x142883,_0x17bf2f){_0x142883=_0x142883-0x9f;const _0xadcc2=_0xadcc();let _0x2e1b29=_0xadcc2[_0x142883];return _0x2e1b29;}let J=class extends _0x322379{constructor(_0x436764,_0x47ddff){const _0x226d56=_0x25e9a6;super(),this[_0x226d56(0xd4)]=_0x436764,this[_0x226d56(0x108)]=_0x47ddff,this[_0x226d56(0x10c)]();}[_0x25e9a6(0x10c)](){const _0x3a0b4a=_0x25e9a6;this[_0x3a0b4a(0xd4)][_0x3a0b4a(0x14e)](_0x38347f=>{const _0x4f905c=_0x3a0b4a;if(_0x38347f['id']===_0xf692c8['id']||_0x38347f['id']===_0x3dcb2b['id']||_0x38347f['id']===_0x495fd0['id']||_0x38347f['id']===_0x4ce2f5['id']){let {ranges:_0x3c028b,unitId:_0x21e679,subUnitId:_0xe4c91}=_0x38347f[_0x4f905c(0x13a)],_0x2e6cc9=new Set(),_0x21231f=this[_0x4f905c(0x108)][_0x4f905c(0xb3)](_0x21e679,_0xe4c91);if(!_0x21231f)return;let _0x561e86=Array[_0x4f905c(0xc7)](_0x21231f);_0x3c028b['forEach'](_0x58111e=>{const _0x31db31=_0x4f905c;_0x3366f5[_0x31db31(0x12c)](_0x58111e,(_0x509fce,_0x54c661)=>{const _0x38b1a4=_0x31db31;let _0x671662=_0x233a26(_0x509fce,_0x54c661);for(let _0x22f45e=0x0;_0x22f45e<_0x561e86[_0x38b1a4(0xa3)];_0x22f45e++){let [_0x647f51,_0x3057ff]=_0x561e86[_0x22f45e],_0x7adef5=_0x2e6cc9[_0x38b1a4(0x100)](_0x647f51);_0x7adef5||_0x3057ff[_0x38b1a4(0x155)][_0x38b1a4(0x161)]((_0x2c574a,_0x4b7ef1,_0x5ba907)=>{const _0x342e2a=_0x38b1a4;let _0x375298=_0x5ba907;if(_0x375298&&!_0x7adef5&&_0x5c35ac[_0x342e2a(0xdc)](_0x671662,_0x375298))return _0x2e6cc9[_0x342e2a(0x146)](_0x647f51),!0x0;});}});}),_0x2e6cc9[_0x4f905c(0x103)](_0x2ddee9=>{const _0x1bf4d7=_0x4f905c;this[_0x1bf4d7(0x108)]['clearSparklineCache'](_0x21e679,_0xe4c91,_0x2ddee9),this[_0x1bf4d7(0x108)][_0x1bf4d7(0xa1)](_0x21e679,_0xe4c91,_0x2ddee9);});}});}};function _0xadcc(){const _0x42d868=['_injector','_getRefRangeMutationsByDeleteCols','sparklineAnchorMap','reBuildAnchorCache','getColVisible','_sheetInterceptorService','_commandService','FRESH','stringify','SELF_EXTREMUM','removeColumns','set','1761308isdULh','_exclusiveRangeService','intersects','_onRefRangeChange','_initRegisterCommand','rgb(80,102,248)','FORCE_STRING','symbol','changeDataSourceInfo','interceptCommand','onReady','startRow','object','@univerjs-pro/sheets-sparkline','disposableCollection','spacing','GROUP_EXTREMUM','rgb(49,106,246)','_initSheetChange','removeSparkline','PIE_CHART','toRgbString','ranges','version','values','decorate','connect_with_line','rgb(30,177,189)','item','LINE_CHART','specialty','disposeWithMe','extremumMax','get','getSparkline','sheets-sparkline.config','size','1.0.0-rc.0','has','18726WLqZPX','_resourceManagerService','forEach','SPACING','365NPMsgs','_initDependencies','standard','_sparklineDataSourceModel','exclusiveRangesChange$','NORMAL','_initExclusiveRangeChange','_initHideRowColWithSparkline','packageName','actualRow','4864NnatLd','pushUndoRedo','BAR_CHART','_ensureAnchorMatrix','70whdhoB','pluginName','u-connect','next','endColumn','417aCRyUS','number','every','extremumMin','NUMBER','rgb(244,104,249)','_initDataChangeListener','_config','setAlpha','381416JZVRwE','_getRefRangeMutationsByDeleteRows','_initClearWithSparkline','refRangeHandle','getSparklineById','getSheetId','row','removePartSparkline','getActiveSheet','deepClone','seriesColor','foreach','firstPoint','keys','config','Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.','max','STANDARD','sheet.command.add-sparkline','rgb(252,117,60)','getMatrix','soft','matrix','sparklineModel','zero_value','params','DISTINCTIVE','nonNumShowAs','subUnitId','column','getValue','lastPoint','sheet.command.remove-sparkline','rgb(236,100,169)','toJSON','addSparkline','UNIVER_SHEET','add','emptyShowAs','markersPoint','registerRefRange','getSizeOf','negativePoint','moveColumns','rgb(248,190,21)','onCommandExecuted','getCurrentSelections','_ensureConfigMap','_configService','unitId','contains','rgb(46,187,122)','sparklines','_initCorrectRangeWithSparkline','clone','CUSTOM_EXTREMUM','delete','parse','setSparkline','constructor','1930KNTcVi','MUTATION','_sparklineModel','u-spacing','forValue','push','sheet.mutation.set-sparkline','clearSparklineCache','PROFIT_AND_LOSS_CHART','string','min','entries','getRowVisible','updateSparklineExtraNum','getOwnPropertyDescriptor','length','call','COMMAND','function','getSheetBySheetId','SPECIALTY','BOOLEAN','_univerInstanceService','getCell','_refRangeService','_initSnapshot','toPrimitive','7240618ohbiGg','remove','getCellRaw','map','getSubUnitSparkline','101014CDFTxa','endRow','sheet.mutation.remove-sparkline','hasValue','setValue','deleteUnit','CUSTOM','9117cILupY','prototype','realDeleteValue','_updateConfig$','getCurrentUnitOfType','_initMergeWithSparkline','registerPluginResource','range','dispose','removeRows','containHiddenCells','result','from','startColumn','getSparklineCache','actualColumn','groupId','_sparklineAnchorMap','type'];_0xadcc=function(){return _0x42d868;};return _0xadcc();}J=z([R(0x0,_0x242a91(_0x126423)),R(0x1,_0x242a91(B))],J);let Y=class extends _0x322379{constructor(_0x5259f4,_0x1d94bb,_0x1fed10){const _0x2a153a=_0x25e9a6;super(),this[_0x2a153a(0xd4)]=_0x5259f4,this[_0x2a153a(0xd3)]=_0x1d94bb,this[_0x2a153a(0x108)]=_0x1fed10,this[_0x2a153a(0xc0)]();}[_0x25e9a6(0xc0)](){const _0x189cf9=_0x25e9a6;this[_0x189cf9(0xf9)](this['_sheetInterceptorService'][_0x189cf9(0xe3)]({'getMutations':_0x2f51cb=>{const _0x371dce=_0x189cf9;let _0x310d25=[],_0x312ff7=[];if(_0x2f51cb['id']===_0x8b01be['id']){let _0x2b8b36=_0x2f51cb[_0x371dce(0x13a)];if(!_0x2b8b36)return{'redos':_0x310d25,'undos':_0x312ff7};let {unitId:_0xbe9e5a,subUnitId:_0x34e2c6,ranges:_0x55c273}=_0x2b8b36,_0x290b7b=this[_0x371dce(0x108)][_0x371dce(0xb3)](_0xbe9e5a,_0x34e2c6);if(!_0x290b7b)return{'redos':_0x310d25,'undos':_0x312ff7};let _0x599b4c={},_0x2013a8={},_0x35c84e=new Set();_0x55c273['forEach'](_0x2134bd=>{const _0x2a57ad=_0x371dce;let _0x483c9e=_0x2134bd[_0x2a57ad(0xe5)],_0x3442ac=_0x2134bd[_0x2a57ad(0xc8)];_0x3366f5[_0x2a57ad(0x12c)](_0x2134bd,(_0x3d3cac,_0x195b44)=>{const _0x25a004=_0x2a57ad;let _0x4d0034=this['_sparklineDataSourceModel'][_0x25a004(0xfc)](_0xbe9e5a,_0x34e2c6,_0x3d3cac,_0x195b44);if(_0x4d0034&&(_0x3d3cac!==_0x483c9e||_0x195b44!==_0x3442ac)){let _0x5ee18e=this['_sparklineDataSourceModel'][_0x25a004(0x125)](_0xbe9e5a,_0x34e2c6,_0x4d0034);if(_0x5ee18e){_0x35c84e[_0x25a004(0x146)](_0x4d0034);let _0x54d308=_0x599b4c[_0x4d0034];_0x54d308||(_0x54d308={'config':_0x27d6a1[_0x25a004(0x12a)](_0x5ee18e[_0x25a004(0x12f)]),'sparklines':new _0x3589c8(_0x5ee18e['sparklines'][_0x25a004(0x157)]())},_0x599b4c[_0x4d0034]=_0x54d308),_0x54d308[_0x25a004(0x155)][_0x25a004(0xbd)](_0x3d3cac,_0x195b44),_0x2013a8[_0x4d0034]={'config':_0x27d6a1['deepClone'](_0x5ee18e[_0x25a004(0x12f)]),'sparklines':_0x27d6a1[_0x25a004(0x12a)](_0x5ee18e[_0x25a004(0x155)][_0x25a004(0x157)]())};}}});});for(let [_0x5b0747,_0x51c602]of _0x290b7b){let _0x3b485e=_0x51c602[_0x371dce(0x155)];_0x3b485e[_0x371dce(0x161)]((_0x2df129,_0x4de7d4,_0x4bc847)=>{const _0x24f317=_0x371dce;for(let _0x12f034=0x0;_0x12f034<_0x55c273['length'];_0x12f034++){let _0x204293=_0x55c273[_0x12f034];if(_0x5c35ac[_0x24f317(0x153)](_0x204293,_0x4bc847)){_0x35c84e['add'](_0x5b0747);let _0x17d7d7=_0x599b4c[_0x5b0747];_0x17d7d7||(_0x17d7d7={'config':_0x27d6a1[_0x24f317(0x12a)](_0x51c602[_0x24f317(0x12f)]),'sparklines':new _0x3589c8(_0x3b485e[_0x24f317(0x157)]())},_0x599b4c[_0x5b0747]=_0x17d7d7),_0x17d7d7['sparklines']['realDeleteValue'](_0x2df129,_0x4de7d4),_0x2013a8[_0x5b0747]||(_0x2013a8[_0x5b0747]={'config':_0x27d6a1[_0x24f317(0x12a)](_0x51c602[_0x24f317(0x12f)]),'sparklines':_0x27d6a1[_0x24f317(0x12a)](_0x3b485e[_0x24f317(0x157)]())});}}});}let _0x37492e={};Object[_0x371dce(0x9f)](_0x599b4c)['forEach'](([_0x12cea1,_0x510f8a])=>{const _0xf7db2a=_0x371dce;_0x510f8a['sparklines']['getSizeOf']()&&(_0x37492e[_0x12cea1]={'config':_0x510f8a[_0xf7db2a(0x12f)],'sparklines':_0x510f8a[_0xf7db2a(0x155)]['clone']()});}),_0x35c84e[_0x371dce(0xfe)]&&(_0x310d25[_0x371dce(0x162)]({'id':H['id'],'params':{'unitId':_0xbe9e5a,'subUnitId':_0x34e2c6,'groupIds':Array[_0x371dce(0xc7)](_0x35c84e),'isSingle':!0x1}}),_0x312ff7[_0x371dce(0x162)]({'id':H['id'],'params':{'unitId':_0xbe9e5a,'subUnitId':_0x34e2c6,'groupIds':Array['from'](_0x35c84e),'isSingle':!0x1}}),_0x310d25[_0x371dce(0x162)]({'id':V['id'],'params':{'unitId':_0xbe9e5a,'subUnitId':_0x34e2c6,'sparklineConfigMap':_0x37492e}}),_0x312ff7[_0x371dce(0x162)]({'id':V['id'],'params':{'unitId':_0xbe9e5a,'subUnitId':_0x34e2c6,'sparklineConfigMap':_0x2013a8}}));}return{'redos':_0x310d25,'undos':_0x312ff7};}}));}};Y=z([R(0x0,_0x242a91(_0x126423)),R(0x1,_0x242a91(_0x1f6301)),R(0x2,_0x242a91(B))],Y);let X=class extends _0x322379{constructor(_0x49762f,_0x7e44af,_0x607c0b,_0x2baa83){const _0x296622=_0x25e9a6;super(),this[_0x296622(0xd4)]=_0x49762f,this[_0x296622(0xac)]=_0x7e44af,this['_univerInstanceService']=_0x607c0b,this[_0x296622(0x108)]=_0x2baa83,L(this,_0x296622(0xe8),new _0x2d82cd()),this[_0x296622(0xdd)](),this[_0x296622(0x156)]();}['_onRefRangeChange'](){const _0x518c4e=_0x25e9a6;let _0x3a8d8d=(_0x2e7355,_0x3efbb8)=>{const _0x466e63=_0x2e1b;let _0x2f9396=this[_0x466e63(0xaa)][_0x466e63(0xbf)](_0x53b1de[_0x466e63(0x145)]);if(!_0x2f9396||!(_0x2f9396!=null&&_0x2f9396[_0x466e63(0xa7)](_0x3efbb8)))return;this[_0x466e63(0xe8)][_0x466e63(0xc3)]();let _0x31d15a=_0x4711ab=>this[_0x466e63(0x124)](_0x4711ab,_0x2e7355,_0x3efbb8),_0x5bc3de=[],_0x561723=this[_0x466e63(0x108)][_0x466e63(0xb3)](_0x2e7355,_0x3efbb8);if(_0x561723){for(let [_0x5f4342,_0x382d2a]of _0x561723)_0x382d2a[_0x466e63(0x155)][_0x466e63(0x161)]((_0x5e5a2b,_0x271a5c,_0x65a8e9)=>{let _0x35f0e1=_0x233a26(_0x5e5a2b,_0x271a5c);_0x5bc3de['push'](_0x35f0e1);});_0x5bc3de[_0x466e63(0x103)](_0x467e78=>{const _0x4aa912=_0x466e63;this[_0x4aa912(0xe8)][_0x4aa912(0x146)](this[_0x4aa912(0xac)][_0x4aa912(0x149)](_0x467e78,_0x31d15a,_0x2e7355,_0x3efbb8));});}};this['disposeWithMe'](this['_commandService'][_0x518c4e(0x14e)](_0x27205c=>{const _0x45244f=_0x518c4e;if(_0x27205c['id']===_0xb8eef8['id']){let _0xac1f5e=_0x27205c[_0x45244f(0x13a)],_0x21e0e5=_0xac1f5e[_0x45244f(0x13d)],_0x152ccf=_0xac1f5e[_0x45244f(0x152)];if(!_0x21e0e5||!_0x152ccf)return;_0x3a8d8d(_0x152ccf,_0x21e0e5);}if(_0x27205c['id']===G['id']||_0x27205c['id']===V['id']){let _0x41c844=_0x27205c[_0x45244f(0x13a)],_0x365d8e=_0x41c844['subUnitId'],_0x28be5e=_0x41c844[_0x45244f(0x152)];if(!_0x365d8e||!_0x28be5e)return;_0x3a8d8d(_0x28be5e,_0x365d8e);}}));}[_0x25e9a6(0x124)](_0x51eca2,_0x4a5d7b,_0x10fd3e){const _0x8deb3d=_0x25e9a6;switch(_0x51eca2['id']){case _0x1be87d['id']:return this[_0x8deb3d(0xcf)](_0x51eca2['params'],_0x4a5d7b,_0x10fd3e);case _0x19517a['id']:return this[_0x8deb3d(0x122)](_0x51eca2['params'],_0x4a5d7b,_0x10fd3e);default:break;}return{'redos':[],'undos':[]};}['_getRefRangeMutationsByDeleteRows'](_0x5d207b,_0x383255,_0x45b9b2){const _0x36799a=_0x25e9a6;var _0x150f5f;let {range:_0x16246e}=_0x5d207b,_0x160181=new Set(),_0x240b55={},_0xa97de9={},_0xb3bdc=[],_0x250681=[],_0x5d66c9=[],_0xb2ab9c=[];if(!_0xa26ada(this[_0x36799a(0xaa)],{'unitId':_0x383255,'subUnitId':_0x45b9b2}))return{'redos':_0x250681,'undos':_0xb3bdc};let _0x2bc0ae=this[_0x36799a(0x108)][_0x36799a(0xb3)](_0x383255,_0x45b9b2);if(!_0x2bc0ae||!((_0x150f5f=this['_sparklineDataSourceModel']['getSparklineCache']()[_0x36799a(0xd0)][_0x36799a(0xfb)](_0x383255))!=null&&(_0x150f5f=_0x150f5f['get'](_0x45b9b2))!=null&&_0x150f5f['matrix']))return{'redos':_0x250681,'undos':_0xb3bdc};for(let [_0x386fe9,_0x150c1a]of _0x2bc0ae){let _0x3bdc36=_0x150c1a[_0x36799a(0x155)];_0x3bdc36['forValue']((_0x25638a,_0x287e13,_0x30ebe)=>{const _0x1ad1db=_0x36799a;if(_0x5c35ac[_0x1ad1db(0xdc)](_0x16246e,_0x30ebe)){_0x160181[_0x1ad1db(0x146)](_0x386fe9);let _0x7aa063=_0xa97de9[_0x386fe9];_0x7aa063||(_0x7aa063={'config':_0x150c1a[_0x1ad1db(0x12f)],'sparklines':_0x150c1a[_0x1ad1db(0x155)][_0x1ad1db(0x157)]()},_0xa97de9[_0x386fe9]=_0x7aa063);let _0x599ff0=_0x240b55[_0x386fe9];_0x599ff0||(_0x599ff0={'config':_0x150c1a[_0x1ad1db(0x12f)],'sparklines':new _0x3589c8(_0x150c1a['sparklines'][_0x1ad1db(0x157)]())},_0x240b55[_0x386fe9]=_0x599ff0);let _0x49f8e2=_0x49a1c9(_0x30ebe,{'id':_0x39c136['id'],'params':_0x5d207b});_0x49f8e2?_0x599ff0[_0x1ad1db(0x155)]['setValue'](_0x25638a,_0x287e13,_0x49f8e2):_0x599ff0['sparklines'][_0x1ad1db(0xb8)](_0x25638a,_0x287e13,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4aca0e[_0x1ad1db(0x10a)]});}}),_0x3bdc36[_0x36799a(0x161)](_0x31fe67=>{const _0x8ceed0=_0x36799a;if(_0x31fe67<=_0x16246e['endRow']&&_0x31fe67>=_0x16246e[_0x8ceed0(0xe5)]){_0x160181[_0x8ceed0(0x146)](_0x386fe9);let _0x4251cf=_0xa97de9[_0x386fe9];_0x4251cf||(_0x4251cf={'config':_0x150c1a[_0x8ceed0(0x12f)],'sparklines':_0x150c1a['sparklines']['clone']()},_0xa97de9[_0x386fe9]=_0x4251cf);let _0x8423bf=_0x240b55[_0x386fe9];_0x8423bf||(_0x8423bf={'config':_0x150c1a[_0x8ceed0(0x12f)],'sparklines':new _0x3589c8(_0x150c1a['sparklines']['clone']())},_0x240b55[_0x386fe9]=_0x8423bf);}});}_0x160181[_0x36799a(0xfe)]>0x0&&(_0xb2ab9c['push']({'id':H['id'],'params':{'unitId':_0x383255,'subUnitId':_0x45b9b2,'groupIds':Array[_0x36799a(0xc7)](_0x160181),'isSingle':!0x1}}),_0x5d66c9[_0x36799a(0x162)]({'id':H['id'],'params':{'unitId':_0x383255,'subUnitId':_0x45b9b2,'groupIds':Array[_0x36799a(0xc7)](_0x160181),'isSingle':!0x1}}));let _0x359372={},_0x2c3543=!0x1;return Object['entries'](_0x240b55)[_0x36799a(0x103)](([_0x3738cb,_0x271d1d])=>{const _0x23d935=_0x36799a;_0x271d1d[_0x23d935(0x155)][_0x23d935(0x14a)]()&&(_0x2c3543=!0x0,_0x271d1d['sparklines'][_0x23d935(0xc4)](_0x16246e[_0x23d935(0xe5)],_0x16246e[_0x23d935(0xb5)]-_0x16246e['startRow']+0x1),_0x359372[_0x3738cb]={'config':_0x271d1d['config'],'sparklines':_0x271d1d[_0x23d935(0x155)][_0x23d935(0x157)]()});}),_0x2c3543&&_0x250681['push']({'id':V['id'],'params':{'unitId':_0x383255,'subUnitId':_0x45b9b2,'sparklineConfigMap':_0x359372}}),Object[_0x36799a(0x12e)](_0xa97de9)[_0x36799a(0xa3)]>0x0&&_0xb3bdc['push']({'id':V['id'],'params':{'unitId':_0x383255,'subUnitId':_0x45b9b2,'sparklineConfigMap':_0xa97de9}}),{'redos':_0x250681,'undos':_0xb3bdc,'preRedos':_0x5d66c9,'preUndos':_0xb2ab9c};}[_0x25e9a6(0xcf)](_0x4cbe4f,_0x5f3ac6,_0x5f3748){const _0x269d35=_0x25e9a6;var _0x3fb25a;let {range:_0xf2e0da}=_0x4cbe4f,_0x4c54cf=new Set(),_0x25e936={},_0x5edb14={},_0x15da8b=[],_0x36bd25=[],_0x424dbc=[],_0x135f2b=[];if(!_0xa26ada(this[_0x269d35(0xaa)],{'unitId':_0x5f3ac6,'subUnitId':_0x5f3748}))return{'redos':_0x36bd25,'undos':_0x15da8b};let _0x38c452=this[_0x269d35(0x108)][_0x269d35(0xb3)](_0x5f3ac6,_0x5f3748);if(!_0x38c452||!((_0x3fb25a=this['_sparklineDataSourceModel'][_0x269d35(0xc9)]()[_0x269d35(0xd0)]['get'](_0x5f3ac6))!=null&&(_0x3fb25a=_0x3fb25a[_0x269d35(0xfb)](_0x5f3748))!=null&&_0x3fb25a[_0x269d35(0x137)]))return{'redos':_0x36bd25,'undos':_0x15da8b};for(let [_0x4c5f01,_0x3bd1d0]of _0x38c452){let _0x4c49a3=_0x3bd1d0[_0x269d35(0x155)];_0x4c49a3[_0x269d35(0x161)]((_0x534f4f,_0x3da5ac,_0xa84a44)=>{const _0x11b936=_0x269d35;if(_0x5c35ac['intersects'](_0xf2e0da,_0xa84a44)){_0x4c54cf[_0x11b936(0x146)](_0x4c5f01);let _0x453971=_0x5edb14[_0x4c5f01];_0x453971||(_0x453971={'config':_0x3bd1d0['config'],'sparklines':_0x3bd1d0[_0x11b936(0x155)]['clone']()},_0x5edb14[_0x4c5f01]=_0x453971);let _0x17292a=_0x25e936[_0x4c5f01];_0x17292a||(_0x17292a={'config':_0x3bd1d0[_0x11b936(0x12f)],'sparklines':new _0x3589c8(_0x3bd1d0[_0x11b936(0x155)][_0x11b936(0x157)]())},_0x25e936[_0x4c5f01]=_0x17292a);let _0x2bdee9=_0x49a1c9(_0xa84a44,{'id':_0x1cf9cc['id'],'params':_0x4cbe4f});_0x2bdee9?_0x17292a['sparklines'][_0x11b936(0xb8)](_0x534f4f,_0x3da5ac,_0x2bdee9):_0x17292a[_0x11b936(0x155)][_0x11b936(0xb8)](_0x534f4f,_0x3da5ac,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4aca0e['NORMAL']});}}),_0x4c49a3[_0x269d35(0x161)]((_0x2259ba,_0x1a8fdf,_0x1cdd16)=>{const _0x595a3e=_0x269d35;if(_0x1a8fdf<=_0xf2e0da[_0x595a3e(0x117)]&&_0x1a8fdf>=_0xf2e0da[_0x595a3e(0xc8)]){_0x4c54cf[_0x595a3e(0x146)](_0x4c5f01);let _0x1cb5f6=_0x5edb14[_0x4c5f01];_0x1cb5f6||(_0x1cb5f6={'config':_0x3bd1d0[_0x595a3e(0x12f)],'sparklines':_0x3bd1d0['sparklines'][_0x595a3e(0x157)]()},_0x5edb14[_0x4c5f01]=_0x1cb5f6);let _0x2f1681=_0x25e936[_0x4c5f01];_0x2f1681||(_0x2f1681={'config':_0x3bd1d0[_0x595a3e(0x12f)],'sparklines':new _0x3589c8(_0x3bd1d0[_0x595a3e(0x155)][_0x595a3e(0x157)]())},_0x25e936[_0x4c5f01]=_0x2f1681);}});}_0x4c54cf[_0x269d35(0xfe)]>0x0&&(_0x135f2b[_0x269d35(0x162)]({'id':H['id'],'params':{'unitId':_0x5f3ac6,'subUnitId':_0x5f3748,'groupIds':Array[_0x269d35(0xc7)](_0x4c54cf),'isSingle':!0x1}}),_0x424dbc[_0x269d35(0x162)]({'id':H['id'],'params':{'unitId':_0x5f3ac6,'subUnitId':_0x5f3748,'groupIds':Array[_0x269d35(0xc7)](_0x4c54cf),'isSingle':!0x1}}));let _0x100b1d={},_0x105054=!0x1;return Object[_0x269d35(0x9f)](_0x25e936)[_0x269d35(0x103)](([_0x578409,_0x987585])=>{const _0x5ec9c8=_0x269d35;_0x987585[_0x5ec9c8(0x155)]['getSizeOf']()&&(_0x105054=!0x0,_0x987585[_0x5ec9c8(0x155)]['removeColumns'](_0xf2e0da[_0x5ec9c8(0xc8)],_0xf2e0da[_0x5ec9c8(0x117)]-_0xf2e0da['startColumn']+0x1),_0x100b1d[_0x578409]={'config':_0x987585['config'],'sparklines':_0x987585[_0x5ec9c8(0x155)]['clone']()});}),_0x105054&&_0x36bd25[_0x269d35(0x162)]({'id':V['id'],'params':{'unitId':_0x5f3ac6,'subUnitId':_0x5f3748,'sparklineConfigMap':_0x100b1d}}),Object[_0x269d35(0x12e)](_0x5edb14)[_0x269d35(0xa3)]>0x0&&_0x15da8b['push']({'id':V['id'],'params':{'unitId':_0x5f3ac6,'subUnitId':_0x5f3748,'sparklineConfigMap':_0x5edb14}}),{'redos':_0x36bd25,'undos':_0x15da8b,'preRedos':_0x424dbc,'preUndos':_0x135f2b};}['_initCorrectRangeWithSparkline'](){const _0x52755e=_0x25e9a6;this['disposeWithMe'](this[_0x52755e(0xd4)][_0x52755e(0x14e)](_0x4099c1=>{const _0x2d6f26=_0x52755e;if(_0x4099c1['id']===_0x14562a['id']){let {unitId:_0x61e048,subUnitId:_0x1e329f,range:_0x22e8b5}=_0x4099c1[_0x2d6f26(0x13a)],_0x2e27af=_0x22e8b5[_0x2d6f26(0xc8)],_0x33c2d4=_0x22e8b5['endColumn']-_0x22e8b5['startColumn']+0x1,_0x1145cf=this[_0x2d6f26(0x108)][_0x2d6f26(0xb3)](_0x61e048,_0x1e329f);if(!_0x1145cf)return;for(let [_0x31c886,_0x23d6ed]of _0x1145cf){this['_sparklineDataSourceModel'][_0x2d6f26(0x164)](_0x61e048,_0x1e329f,_0x31c886);let _0x2af833=_0x23d6ed['sparklines'];_0x2af833[_0x2d6f26(0x161)]((_0x1307fe,_0x46eabf,_0x585855)=>{const _0x34de9a=_0x2d6f26;let _0x372995={..._0x585855};_0x2e27af<=_0x372995[_0x34de9a(0xc8)]?(_0x372995['startColumn']+=_0x33c2d4,_0x372995[_0x34de9a(0x117)]+=_0x33c2d4):_0x2e27af>_0x372995[_0x34de9a(0x117)]||(_0x372995[_0x34de9a(0x117)]+=_0x33c2d4),_0x2af833[_0x34de9a(0xb8)](_0x1307fe,_0x46eabf,_0x372995);});let _0x1c7af2=_0x2af833[_0x2d6f26(0x135)]();for(let _0x5bc5e6 in _0x1c7af2){let _0x3a13d7=_0x1c7af2[Number(_0x5bc5e6)];if(!_0x3a13d7)continue;let _0x4275b9=Object['keys'](_0x3a13d7)[_0x2d6f26(0xb2)](Number),_0x2d1a19=Math[_0x2d6f26(0x131)](..._0x4275b9);for(let _0x23bbff=_0x2d1a19;_0x23bbff>=_0x2e27af;_0x23bbff--)_0x23bbff>=_0x2e27af&&_0x3a13d7[_0x23bbff]&&(_0x3a13d7[_0x23bbff+_0x33c2d4]=_0x3a13d7[_0x23bbff],delete _0x3a13d7[_0x23bbff]);}this['_sparklineDataSourceModel'][_0x2d6f26(0xa1)](_0x61e048,_0x1e329f,_0x31c886);}}else{if(_0x4099c1['id']===_0x5a3199['id']){let {unitId:_0x47d01f,subUnitId:_0x158693,range:_0x15fd5a}=_0x4099c1[_0x2d6f26(0x13a)],_0x1ba596=_0x15fd5a[_0x2d6f26(0xe5)],_0xd58a15=_0x15fd5a[_0x2d6f26(0xb5)]-_0x15fd5a['startRow']+0x1,_0x854bd0=this[_0x2d6f26(0x108)][_0x2d6f26(0xb3)](_0x47d01f,_0x158693);if(!_0x854bd0)return;for(let [_0x391eff,_0x11f6ff]of _0x854bd0){this[_0x2d6f26(0x108)][_0x2d6f26(0x164)](_0x47d01f,_0x158693,_0x391eff);let _0x2f7093=_0x11f6ff['sparklines'];_0x2f7093['forValue']((_0x18f784,_0x466c43,_0x3d4244)=>{const _0x198eaa=_0x2d6f26;let _0x16a772={..._0x3d4244};_0x1ba596<=_0x16a772[_0x198eaa(0xe5)]?(_0x16a772[_0x198eaa(0xe5)]+=_0xd58a15,_0x16a772[_0x198eaa(0xb5)]+=_0xd58a15):_0x1ba596>_0x16a772[_0x198eaa(0xb5)]||(_0x16a772[_0x198eaa(0xb5)]+=_0xd58a15),_0x2f7093[_0x198eaa(0xb8)](_0x18f784,_0x466c43,_0x16a772);});let _0x106d42=_0x2f7093[_0x2d6f26(0x135)](),_0x96ea1c=Object['keys'](_0x106d42)[_0x2d6f26(0xb2)](Number),_0xb831e6=Math['max'](..._0x96ea1c);for(let _0x333de1=_0xb831e6;_0x333de1>=_0x1ba596;_0x333de1--)_0x333de1>=_0x1ba596&&_0x106d42[_0x333de1]&&(_0x106d42[_0x333de1+_0xd58a15]=_0x106d42[_0x333de1],delete _0x106d42[_0x333de1]);this[_0x2d6f26(0x108)][_0x2d6f26(0xa1)](_0x47d01f,_0x158693,_0x391eff);}}else{if(_0x4099c1['id']===_0x1cf9cc['id']){let {range:_0x26086d,unitId:_0x5b2fa7,subUnitId:_0x3f1390}=_0x4099c1[_0x2d6f26(0x13a)],_0x677217=this[_0x2d6f26(0x108)]['getSubUnitSparkline'](_0x5b2fa7,_0x3f1390);if(!_0x677217)return;for(let [_0x4ef6d1,_0x2313d0]of _0x677217){let _0x318936=_0x2313d0[_0x2d6f26(0x155)];_0x318936[_0x2d6f26(0x161)]((_0x545b41,_0x55ecb7,_0x472de8)=>{const _0x5091f9=_0x2d6f26;let _0x7d81e3=_0x49a1c9(_0x472de8,_0x4099c1);_0x7d81e3?_0x318936[_0x5091f9(0xb8)](_0x545b41,_0x55ecb7,_0x7d81e3):_0x318936[_0x5091f9(0xb8)](_0x545b41,_0x55ecb7,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4aca0e[_0x5091f9(0x10a)]});}),_0x318936[_0x2d6f26(0xd8)](_0x26086d[_0x2d6f26(0xc8)],_0x26086d[_0x2d6f26(0x117)]-_0x26086d[_0x2d6f26(0xc8)]+0x1);}this[_0x2d6f26(0x108)][_0x2d6f26(0xd1)](_0x5b2fa7,_0x3f1390);}else{if(_0x4099c1['id']===_0x39c136['id']){let {range:_0x2b7a5c,unitId:_0x59a470,subUnitId:_0x3c1a9a}=_0x4099c1[_0x2d6f26(0x13a)],_0x2969a4=this[_0x2d6f26(0x108)][_0x2d6f26(0xb3)](_0x59a470,_0x3c1a9a);if(!_0x2969a4)return;for(let [_0x399000,_0x3a2fa8]of _0x2969a4){let _0x185cd7=_0x3a2fa8[_0x2d6f26(0x155)];_0x185cd7[_0x2d6f26(0x161)]((_0x4c859a,_0xe71e2f,_0x3e3ded)=>{const _0x162a1b=_0x2d6f26;let _0x5a2961=_0x49a1c9(_0x3e3ded,_0x4099c1);_0x5a2961?_0x185cd7[_0x162a1b(0xb8)](_0x4c859a,_0xe71e2f,_0x5a2961):_0x185cd7[_0x162a1b(0xb8)](_0x4c859a,_0xe71e2f,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4aca0e[_0x162a1b(0x10a)]});}),_0x185cd7['removeRows'](_0x2b7a5c['startRow'],_0x2b7a5c[_0x2d6f26(0xb5)]-_0x2b7a5c[_0x2d6f26(0xe5)]+0x1);}this[_0x2d6f26(0x108)][_0x2d6f26(0xd1)](_0x59a470,_0x3c1a9a);}else{if(_0x4099c1['id']===_0x405cd8['id']){let {unitId:_0x28ea53,subUnitId:_0x3772e4,sourceRange:_0x1b8401,targetRange:_0x53152c}=_0x4099c1[_0x2d6f26(0x13a)],_0x5c34c3=this['_sparklineDataSourceModel'][_0x2d6f26(0xb3)](_0x28ea53,_0x3772e4);if(!_0x5c34c3)return;for(let [_0x259554,_0x6c0a94]of _0x5c34c3){let _0x570f8f=_0x6c0a94[_0x2d6f26(0x155)];_0x570f8f[_0x2d6f26(0x161)]((_0x501763,_0x3d6467,_0xc86515)=>{const _0x2410b8=_0x2d6f26;let _0x239860=_0x49a1c9(_0xc86515,_0x4099c1);_0x239860?_0x570f8f['setValue'](_0x501763,_0x3d6467,_0x239860):_0x570f8f[_0x2410b8(0xb8)](_0x501763,_0x3d6467,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4aca0e['NORMAL']});}),_0x570f8f[_0x2d6f26(0x14c)](_0x1b8401[_0x2d6f26(0xc8)],_0x1b8401['endColumn']-_0x1b8401['startColumn']+0x1,_0x53152c[_0x2d6f26(0xc8)]);}this['_sparklineDataSourceModel'][_0x2d6f26(0xd1)](_0x28ea53,_0x3772e4);}else{if(_0x4099c1['id']===_0x3fa474['id']){let {unitId:_0x17d2cb,subUnitId:_0x4d30f8,sourceRange:_0x45ef31,targetRange:_0x2a1170}=_0x4099c1[_0x2d6f26(0x13a)],_0x19851b=this[_0x2d6f26(0x108)][_0x2d6f26(0xb3)](_0x17d2cb,_0x4d30f8);if(!_0x19851b)return;for(let [_0x4a2b55,_0x3f3101]of _0x19851b){let _0x4f736e=_0x3f3101['sparklines'];_0x4f736e[_0x2d6f26(0x161)]((_0xf90378,_0x512a89,_0x42bdb7)=>{const _0x483f0b=_0x2d6f26;let _0x46c36f=_0x49a1c9(_0x42bdb7,_0x4099c1);_0x46c36f?_0x4f736e[_0x483f0b(0xb8)](_0xf90378,_0x512a89,_0x46c36f):_0x4f736e[_0x483f0b(0xb8)](_0xf90378,_0x512a89,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x4aca0e['NORMAL']});}),_0x4f736e['moveRows'](_0x45ef31[_0x2d6f26(0xe5)],_0x45ef31[_0x2d6f26(0xb5)]-_0x45ef31['startRow']+0x1,_0x2a1170['startRow']);}this[_0x2d6f26(0x108)]['reBuildAnchorCache'](_0x17d2cb,_0x4d30f8);}else{if(_0x4099c1['id']===_0x594556['id']){let {fromRange:_0x2d4969,toRange:_0xcabe97,unitId:_0x2d0f1e,from:_0x460c16,to:_0x135287}=_0x4099c1['params'];if(_0x460c16[_0x2d6f26(0x13d)]!==_0x135287[_0x2d6f26(0x13d)])return;let _0x34f69=_0x460c16[_0x2d6f26(0x13d)],{startRow:_0x819049,endRow:_0x560384,startColumn:_0xa0834,endColumn:_0x208c1e}=_0x2d4969,{startRow:_0x489d64,startColumn:_0x43b121}=_0xcabe97,_0x25741b=_0x489d64-_0x819049,_0x4afb5d=_0x43b121-_0xa0834,_0xcbf84b=this[_0x2d6f26(0x108)][_0x2d6f26(0xb3)](_0x2d0f1e,_0x34f69);if(!(_0xcbf84b!=null&&_0xcbf84b['size']))return;for(let _0x38d0e0=_0x819049;_0x38d0e0<=_0x560384;_0x38d0e0++)for(let _0x1c9066=_0xa0834;_0x1c9066<=_0x208c1e;_0x1c9066++){let _0x588969=this[_0x2d6f26(0x108)][_0x2d6f26(0xfc)](_0x2d0f1e,_0x34f69,_0x38d0e0,_0x1c9066);if(_0x588969){let _0x51a116=this[_0x2d6f26(0x108)][_0x2d6f26(0x125)](_0x2d0f1e,_0x34f69,_0x588969);if(_0x51a116){let _0x1f3d3c=_0x51a116['sparklines']['getValue'](_0x38d0e0,_0x1c9066);_0x1f3d3c&&(_0x51a116['sparklines'][_0x2d6f26(0xb8)](_0x38d0e0+_0x25741b,_0x1c9066+_0x4afb5d,_0x1f3d3c),_0x51a116['sparklines'][_0x2d6f26(0xbd)](_0x38d0e0,_0x1c9066));}}}for(let [_0x68a1a4,_0x28ab82]of _0xcbf84b){let _0x266624=_0x28ab82[_0x2d6f26(0x155)];_0x266624[_0x2d6f26(0x161)]((_0x556985,_0x50110e,_0x4399e5)=>{const _0x53a103=_0x2d6f26;let _0x2a01d5={..._0x4399e5};_0x5c35ac['contains'](_0x2d4969,_0x4399e5)&&(_0x2a01d5[_0x53a103(0xe5)]+=_0x25741b,_0x2a01d5[_0x53a103(0xb5)]+=_0x25741b,_0x2a01d5[_0x53a103(0xc8)]+=_0x4afb5d,_0x2a01d5[_0x53a103(0x117)]+=_0x4afb5d),_0x266624[_0x53a103(0xb8)](_0x556985,_0x50110e,_0x2a01d5);});}this[_0x2d6f26(0x108)]['reBuildAnchorCache'](_0x2d0f1e,_0x34f69);}}}}}}}}));}};X=z([R(0x0,_0x242a91(_0x126423)),R(0x1,_0x242a91(_0x307552)),R(0x2,_0x454b2d),R(0x3,_0x242a91(B))],X);let Z=class extends _0x322379{constructor(_0x25fc6d,_0x3fa86d,_0x491fb7){const _0x2b4f82=_0x25e9a6;super(),this[_0x2b4f82(0xaa)]=_0x25fc6d,this['_sheetInterceptorService']=_0x3fa86d,this[_0x2b4f82(0x108)]=_0x491fb7,this['_initSheetChange']();}[_0x25e9a6(0xec)](){const _0x1ccd1e=_0x25e9a6;this['disposeWithMe'](this[_0x1ccd1e(0xd3)][_0x1ccd1e(0xe3)]({'getMutations':_0x125bf1=>{const _0x1eca40=_0x1ccd1e;if(_0x125bf1['id']===_0x13744c['id']){var _0x2d1b2d;let _0x53f189=_0x125bf1[_0x1eca40(0x13a)],_0x51bc02=_0x53f189['unitId']||this['_univerInstanceService']['getCurrentUnitOfType'](_0x53b1de[_0x1eca40(0x145)])['getUnitId'](),_0x3758ad=_0x53f189[_0x1eca40(0x13d)]||((_0x2d1b2d=this[_0x1eca40(0xaa)]['getCurrentUnitOfType'](_0x53b1de[_0x1eca40(0x145)])[_0x1eca40(0x129)]())==null?void 0x0:_0x2d1b2d[_0x1eca40(0x126)]());if(!_0x51bc02||!_0x3758ad)return{'redos':[],'undos':[]};let _0x100a13=this[_0x1eca40(0x108)][_0x1eca40(0xb3)](_0x51bc02,_0x3758ad);if(!_0x100a13)return{'redos':[],'undos':[]};let _0x5a44d1=new Set(),_0x26fe4c={};for(let [_0x4e79e1,_0x215902]of _0x100a13)_0x5a44d1[_0x1eca40(0x146)](_0x4e79e1),_0x26fe4c[_0x4e79e1]={'config':_0x27d6a1[_0x1eca40(0x12a)](_0x215902[_0x1eca40(0x12f)]),'sparklines':_0x27d6a1[_0x1eca40(0x12a)](_0x215902['sparklines']['clone']())};if(_0x5a44d1[_0x1eca40(0xfe)])return{'redos':[{'id':H['id'],'params':{'unitId':_0x51bc02,'subUnitId':_0x3758ad,'groupIds':Array[_0x1eca40(0xc7)](_0x5a44d1),'isSingle':!0x1}}],'undos':[{'id':V['id'],'params':{'unitId':_0x51bc02,'subUnitId':_0x3758ad,'sparklineConfigMap':_0x26fe4c}}]};}else{if(_0x125bf1['id']===_0x5d6981['id']){let {unitId:_0x52c9b4,subUnitId:_0x55cc31,targetSubUnitId:_0xfa6a38}=_0x125bf1[_0x1eca40(0x13a)];if(!_0x52c9b4||!_0x55cc31||!_0xfa6a38)return{'redos':[],'undos':[]};let _0x3463ce=this[_0x1eca40(0x108)]['getSubUnitSparkline'](_0x52c9b4,_0x55cc31);if(!_0x3463ce)return{'redos':[],'undos':[]};let _0x1b686f=new Set(),_0x26d848={};for(let [_0x15cf2c,_0x40dfa2]of _0x3463ce){let _0x134bf6='g_'+_0x23b660(0x6);_0x1b686f[_0x1eca40(0x146)](_0x15cf2c),_0x26d848[_0x134bf6]={'config':_0x27d6a1[_0x1eca40(0x12a)](_0x40dfa2[_0x1eca40(0x12f)]),'sparklines':_0x27d6a1[_0x1eca40(0x12a)](_0x40dfa2[_0x1eca40(0x155)]['clone']())};}if(_0x1b686f[_0x1eca40(0xfe)])return{'redos':[{'id':V['id'],'params':{'unitId':_0x52c9b4,'subUnitId':_0xfa6a38,'sparklineConfigMap':_0x26d848}}],'undos':[{'id':H['id'],'params':{'unitId':_0x52c9b4,'subUnitId':_0xfa6a38,'groupIds':Array['from'](_0x1b686f),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Z=z([R(0x0,_0x242a91(_0x454b2d)),R(0x1,_0x242a91(_0x1f6301)),R(0x2,_0x242a91(B))],Z);let Q=class extends _0x322379{constructor(_0x588f63,_0x502a09){const _0x2fd6d6=_0x25e9a6;super(),this['_resourceManagerService']=_0x588f63,this[_0x2fd6d6(0x108)]=_0x502a09,this['_initSnapshot']();}[_0x25e9a6(0xad)](){const _0x1120d8=_0x25e9a6;this[_0x1120d8(0xf9)](this[_0x1120d8(0x102)][_0x1120d8(0xc1)]({'toJson':_0x1b81dd=>{const _0x497f72=_0x1120d8;let _0x1a28b7=this[_0x497f72(0x108)]['toJSON'](_0x1b81dd);return _0x1a28b7?JSON[_0x497f72(0xd6)](_0x1a28b7):'';},'parseJson':_0x49e86f=>_0x49e86f?JSON[_0x1120d8(0x15a)](_0x49e86f):{},'pluginName':P,'businesses':[_0x53b1de[_0x1120d8(0x145)]],'onLoad':(_0xbb3814,_0x3ad62c)=>{this['_sparklineDataSourceModel']['fromJSON'](_0x3ad62c);},'onUnLoad':_0x3483a4=>{const _0x5667fc=_0x1120d8;this[_0x5667fc(0x108)]['deleteUnit'](_0x3483a4);}}));}};Q=z([R(0x0,_0x242a91(_0x3b0dc7)),R(0x1,_0x242a91(B))],Q);let $=class extends _0x2d60f4{constructor(_0x50267a=Me,_0x14fcee,_0x508d3d,_0x2ba779){const _0x2bcfde=_0x25e9a6;super(),this[_0x2bcfde(0x11f)]=_0x50267a,this[_0x2bcfde(0xce)]=_0x14fcee,this['_configService']=_0x508d3d,this[_0x2bcfde(0xd4)]=_0x2ba779;let {..._0x2fb2a0}=_0x39b219({},Me,this['_config']);this[_0x2bcfde(0x151)]['setConfig'](_0x2bcfde(0xfd),_0x2fb2a0),this[_0x2bcfde(0x106)](),this[_0x2bcfde(0xde)]();}[_0x25e9a6(0x106)](){const _0x278f29=_0x25e9a6;[[B],[q],[Y],[K],[X],[J],[Z],[Q]][_0x278f29(0x103)](_0x52351c=>{const _0x3768ce=_0x278f29;this[_0x3768ce(0xce)][_0x3768ce(0x146)](_0x52351c);}),_0x5b76c2(this['_injector'],[[Q]]);}[_0x25e9a6(0xe4)](){const _0x4482e5=_0x25e9a6;_0x5b76c2(this[_0x4482e5(0xce)],[[q],[Y],[K],[X],[J],[Z]]);}['_initRegisterCommand'](){const _0x477e94=_0x25e9a6;[U,V,W,H,ke,G][_0x477e94(0x103)](_0x442337=>this[_0x477e94(0xd4)]['registerCommand'](_0x442337));}};L($,_0x25e9a6(0x114),P),L($,_0x25e9a6(0x10d),Ae),L($,_0x25e9a6(0xf1),je),L($,_0x25e9a6(0xcd),_0x53b1de['UNIVER_SHEET']),$=z([_0x5455bb(_0x1b9363,_0x2706be),R(0x1,_0x242a91(_0x433617)),R(0x2,_0x2ebf50),R(0x3,_0x242a91(_0x126423))],$);export{U as AddSheetSparklineCommand,V as AddSheetSparklineMutation,P as PLUGIN_NAME,W as RemoveSheetSparklineCommand,H as RemoveSheetSparklineMutation,ke as SetSheetSparklineCommand,G as SetSheetSparklineMutation,Te as SpacialShowAsEnum,B as SparklineDataSourceModel,Ee as SparklineExtremumTypeEnum,Se as SparklinePointsNames,F as SparklineThemeMapping,Ce as SparklineThemeTypeEnum,we as SparklineTypeEnum,$ as UniverSheetSparklinePlugin};
|
|
1
|
+
const _0xf8c540=_0x4507;(function(_0xf8d09e,_0x392246){const _0x5074db=_0x4507,_0x1d90ef=_0xf8d09e();while(!![]){try{const _0x1daa4d=parseInt(_0x5074db(0x1c9))/0x1+parseInt(_0x5074db(0x229))/0x2*(-parseInt(_0x5074db(0x1a2))/0x3)+-parseInt(_0x5074db(0x1d6))/0x4*(parseInt(_0x5074db(0x1a1))/0x5)+-parseInt(_0x5074db(0x226))/0x6*(-parseInt(_0x5074db(0x1e5))/0x7)+parseInt(_0x5074db(0x212))/0x8+-parseInt(_0x5074db(0x19f))/0x9+parseInt(_0x5074db(0x207))/0xa;if(_0x1daa4d===_0x392246)break;else _0x1d90ef['push'](_0x1d90ef['shift']());}catch(_0x382e5d){_0x1d90ef['push'](_0x1d90ef['shift']());}}}(_0x118e,0xbb586));import{CellValueType as _0x4c3712,ColorKit as _0x53fb9e,CommandType as _0x251600,DependentOn as _0x52b941,Disposable as _0x598b89,DisposableCollection as _0x2eb20a,ICommandService as _0x48a448,IConfigService as _0x1c25ec,IResourceManagerService as _0x193b4d,IUndoRedoService as _0x351ca0,IUniverInstanceService as _0x58742b,Inject as _0x41e47c,Injector as _0x7f8a13,ObjectMatrix as _0xe21e9e,Plugin as _0x5829de,RANGE_TYPE as _0x37e527,Range as _0x46e902,Rectangle as _0x4cad01,Tools as _0x35871f,UniverInstanceType as _0x1b601f,cellToRange as _0x5c4c56,generateRandomId as _0x5459de,isValidRange as _0x250e0f,merge as _0xa06d4a,sequenceExecute as _0x213351,touchDependencies as _0x1bf0aa}from'@univerjs/core';import{AddWorksheetMergeCommand as _0x4eb70a,ClearSelectionAllCommand as _0x47a163,CopySheetCommand as _0x4737f2,IExclusiveRangeService as _0x502af5,InsertColMutation as _0x5f3f60,InsertRowMutation as _0x1bd3a5,MoveColsMutation as _0x375f96,MoveRangeMutation as _0x43e279,MoveRowsMutation as _0x2fb7e8,RefRangeService as _0x9e95fe,RemoveColCommand as _0x7e2088,RemoveColMutation as _0x1ca201,RemoveRowCommand as _0x2d3602,RemoveRowMutation as _0x4ffb76,RemoveSheetCommand as _0x405f1a,ReorderRangeMutation as _0x371c97,SetColHiddenMutation as _0x3b22ad,SetColVisibleMutation as _0x223ff7,SetRangeValuesMutation as _0x3b7160,SetRowHiddenMutation as _0x5b8afc,SetRowVisibleMutation as _0x183438,SetWorksheetActivateCommand as _0x411e0c,SheetInterceptorService as _0xc5af45,SheetsSelectionsService as _0x3f7cfd,UniverSheetsPlugin as _0x2278fb,adjustRangeOnMutation as _0x3f1f73,getSheetCommandTarget as _0x141e55}from'@univerjs/sheets';import{LS_CONFIG_KEY as _0x25147c,UniverLicensePlugin as _0x2cfd29,getLicenseInfo as _0x2b3a4f,getSheetFeatureLimit as _0x4f8651,isFeatureAuthorizedWithinTime as _0x4785a3}from'@univerjs-pro/license';import{Subject as _0x1e3428}from'rxjs';function P(_0x361e52){const _0x503af6=_0x4507;let {ls:_0x4e92a0,pbk:_0x105643}=_0x361e52[_0x503af6(0x23d)](_0x1c25ec)[_0x503af6(0x217)](_0x25147c)??{},{valid:_0x4d7532,message:_0x58c0d6}=_0x2b3a4f(_0x4e92a0,_0x105643);return!_0x4d7532||!_0x4785a3(_0x58c0d6,'sf')?!0x1:_0x4f8651(_0x58c0d6,!0x0,'s',!0x0,!0x1,!0x1)===!0x0;}function F(_0x4a0027,_0x3d51d2){const _0x572768=_0x4507;let _0xe9aea=new _0xe21e9e(),_0x4c4928=[],_0x31f416=_0x4a0027[_0x572768(0x1de)]>0x1,_0x52a5d3=0x0,_0x40b33f=0x0;for(let _0x3da715 of _0x4a0027)_0x52a5d3+=_0x3da715[_0x572768(0x17f)]-_0x3da715[_0x572768(0x1a6)]+0x1,_0x40b33f+=_0x3da715[_0x572768(0x19e)]-_0x3da715[_0x572768(0x19c)]+0x1;for(let _0x3142c8 of _0x3d51d2)for(let _0x12793b=_0x3142c8[_0x572768(0x1a6)];_0x12793b<=_0x3142c8[_0x572768(0x17f)];_0x12793b++)for(let _0x4f7cae=_0x3142c8[_0x572768(0x19c)];_0x4f7cae<=_0x3142c8['endColumn'];_0x4f7cae++)_0x4c4928[_0x572768(0x1be)]({'row':_0x12793b,'column':_0x4f7cae});if(_0x4c4928[_0x572768(0x1de)]===_0x52a5d3)_0x31f416?_0x4c4928[_0x572768(0x1db)]((_0xeccf9,_0x3941b8)=>{const _0x337e63=_0x572768;let _0x2f7188=_0x4a0027[_0x3941b8],_0x5934cf={'startRow':_0x2f7188[_0x337e63(0x1a6)],'startColumn':_0x2f7188[_0x337e63(0x19c)],'endRow':_0x2f7188['startRow'],'endColumn':_0x2f7188['endColumn']};_0xe9aea[_0x337e63(0x1f7)](_0xeccf9['row'],_0xeccf9[_0x337e63(0x1b7)],_0x5934cf);}):_0x4c4928[_0x572768(0x1db)]((_0x573dd8,_0x116ca5)=>{const _0x404df7=_0x572768;let _0x2c5174=_0x4a0027[0x0],_0x3602b8={'startRow':_0x2c5174[_0x404df7(0x1a6)]+_0x116ca5,'startColumn':_0x2c5174[_0x404df7(0x19c)],'endRow':_0x2c5174[_0x404df7(0x1a6)]+_0x116ca5,'endColumn':_0x2c5174[_0x404df7(0x19e)]};_0xe9aea[_0x404df7(0x1f7)](_0x573dd8[_0x404df7(0x1ff)],_0x573dd8[_0x404df7(0x1b7)],_0x3602b8);});else{if(_0x4c4928[_0x572768(0x1de)]===_0x40b33f)_0x31f416?_0x4c4928['forEach']((_0x464f5e,_0x1ebe71)=>{const _0x5195b1=_0x572768;let _0x294cff=_0x4a0027[_0x1ebe71],_0x2d2011={'startRow':_0x294cff[_0x5195b1(0x1a6)],'startColumn':_0x294cff[_0x5195b1(0x19c)],'endRow':_0x294cff['endRow'],'endColumn':_0x294cff['startColumn']};_0xe9aea['setValue'](_0x464f5e[_0x5195b1(0x1ff)],_0x464f5e['column'],_0x2d2011);}):_0x4c4928[_0x572768(0x1db)]((_0x3db92a,_0x460756)=>{const _0x1b0cff=_0x572768;let _0x298c84=_0x4a0027[0x0],_0x5e6a0f={'startRow':_0x298c84['startRow'],'startColumn':_0x298c84['startColumn']+_0x460756,'endRow':_0x298c84['endRow'],'endColumn':_0x298c84[_0x1b0cff(0x19c)]+_0x460756};_0xe9aea[_0x1b0cff(0x1f7)](_0x3db92a[_0x1b0cff(0x1ff)],_0x3db92a[_0x1b0cff(0x1b7)],_0x5e6a0f);});else{if(_0x4c4928[_0x572768(0x1de)]===_0x4a0027[_0x572768(0x1de)])_0x4a0027['every'](_0x203118=>_0x203118[_0x572768(0x1a6)]===_0x203118[_0x572768(0x17f)]||_0x203118['startColumn']===_0x203118[_0x572768(0x19e)])&&_0x4c4928[_0x572768(0x1db)]((_0x1fac6e,_0x45692b)=>{const _0x42a9e8=_0x572768;let _0x249cd6=_0x4a0027[_0x45692b];_0xe9aea[_0x42a9e8(0x1f7)](_0x1fac6e[_0x42a9e8(0x1ff)],_0x1fac6e['column'],_0x249cd6);});else throw Error('Mismatch\x20between\x20the\x20number\x20of\x20target\x20cells\x20and\x20the\x20source\x20range\x20dimensions.');}}return _0xe9aea;}const I=_0xf8c540(0x1d8),L={'standard':['rgb(54,78,244)',_0xf8c540(0x230)],'specialty':[_0xf8c540(0x243),'rgb(30,177,189)'],'distinctive':['rgb(124,66,147)',_0xf8c540(0x1fc)],'soft':[_0xf8c540(0x1c1),_0xf8c540(0x239)],'fresh':[_0xf8c540(0x211),_0xf8c540(0x1fd)]},Te=[_0xf8c540(0x1a0),_0xf8c540(0x194),_0xf8c540(0x233),_0xf8c540(0x1d3),'negativePoint',_0xf8c540(0x1aa)];let Ee=function(_0x27f12f){const _0x589f39=_0xf8c540;return _0x27f12f['STANDARD']=_0x589f39(0x231),_0x27f12f[_0x589f39(0x227)]=_0x589f39(0x203),_0x27f12f[_0x589f39(0x22e)]=_0x589f39(0x1ac),_0x27f12f[_0x589f39(0x200)]=_0x589f39(0x1c3),_0x27f12f['FRESH']=_0x589f39(0x220),_0x27f12f[_0x589f39(0x184)]='custom',_0x27f12f;}({}),De=function(_0x37b953){const _0xcb5014=_0xf8c540;return _0x37b953[_0x37b953[_0xcb5014(0x1d4)]=0x1]='LINE_CHART',_0x37b953[_0x37b953['BAR_CHART']=0x2]=_0xcb5014(0x222),_0x37b953[_0x37b953[_0xcb5014(0x189)]=0x3]='PROFIT_AND_LOSS_CHART',_0x37b953[_0x37b953[_0xcb5014(0x1d5)]=0x4]=_0xcb5014(0x1d5),_0x37b953;}({}),Oe=function(_0x343177){const _0xef5d33=_0xf8c540;return _0x343177['SPACING']=_0xef5d33(0x1e3),_0x343177['ZERO_VALUE']=_0xef5d33(0x1bb),_0x343177[_0xef5d33(0x1fe)]=_0xef5d33(0x1ab),_0x343177;}({}),ke=function(_0x1de07d){const _0x134062=_0xf8c540;return _0x1de07d[_0x1de07d['SELF_EXTREMUM']=0x1]='SELF_EXTREMUM',_0x1de07d[_0x1de07d[_0x134062(0x1dc)]=0x2]=_0x134062(0x1dc),_0x1de07d[_0x1de07d[_0x134062(0x1c8)]=0x3]=_0x134062(0x1c8),_0x1de07d;}({});function R(_0x4a1ddd){'@babel/helpers - typeof';const _0x121fa9=_0xf8c540;return R=typeof Symbol==_0x121fa9(0x20f)&&typeof Symbol[_0x121fa9(0x193)]=='symbol'?function(_0x5e9b6a){return typeof _0x5e9b6a;}:function(_0x55c3ce){const _0x1b20b0=_0x121fa9;return _0x55c3ce&&typeof Symbol==_0x1b20b0(0x20f)&&_0x55c3ce[_0x1b20b0(0x190)]===Symbol&&_0x55c3ce!==Symbol[_0x1b20b0(0x1b4)]?_0x1b20b0(0x215):typeof _0x55c3ce;},R(_0x4a1ddd);}function Ae(_0x1f2efa,_0x525e2a){const _0x1a64ad=_0xf8c540;if(R(_0x1f2efa)!=_0x1a64ad(0x1a9)||!_0x1f2efa)return _0x1f2efa;var _0x115510=_0x1f2efa[Symbol[_0x1a64ad(0x1f4)]];if(_0x115510!==void 0x0){var _0xb4a397=_0x115510['call'](_0x1f2efa,_0x525e2a||'default');if(R(_0xb4a397)!='object')return _0xb4a397;throw TypeError(_0x1a64ad(0x1e1));}return(_0x525e2a===_0x1a64ad(0x22a)?String:Number)(_0x1f2efa);}function je(_0x52da86){const _0x59058a=_0xf8c540;var _0x3e2410=Ae(_0x52da86,_0x59058a(0x22a));return R(_0x3e2410)==_0x59058a(0x215)?_0x3e2410:_0x3e2410+'';}function z(_0x468fd9,_0x42c4de,_0x425342){const _0x364663=_0xf8c540;return(_0x42c4de=je(_0x42c4de))in _0x468fd9?Object[_0x364663(0x199)](_0x468fd9,_0x42c4de,{'value':_0x425342,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x468fd9[_0x42c4de]=_0x425342,_0x468fd9;}function B(_0x4aa806,_0xbb31c5){return function(_0x176516,_0x633362){_0xbb31c5(_0x176516,_0x633362,_0x4aa806);};}function V(_0x5ce067,_0x2eaeae,_0x32009b,_0x1f141b){const _0x29af2a=_0xf8c540;var _0x21485c=arguments['length'],_0x48dc32=_0x21485c<0x3?_0x2eaeae:_0x1f141b===null?_0x1f141b=Object[_0x29af2a(0x187)](_0x2eaeae,_0x32009b):_0x1f141b,_0x1adde1;if(typeof Reflect==_0x29af2a(0x1a9)&&typeof Reflect[_0x29af2a(0x1af)]=='function')_0x48dc32=Reflect['decorate'](_0x5ce067,_0x2eaeae,_0x32009b,_0x1f141b);else{for(var _0x573fa1=_0x5ce067['length']-0x1;_0x573fa1>=0x0;_0x573fa1--)(_0x1adde1=_0x5ce067[_0x573fa1])&&(_0x48dc32=(_0x21485c<0x3?_0x1adde1(_0x48dc32):_0x21485c>0x3?_0x1adde1(_0x2eaeae,_0x32009b,_0x48dc32):_0x1adde1(_0x2eaeae,_0x32009b))||_0x48dc32);}return _0x21485c>0x3&&_0x48dc32&&Object['defineProperty'](_0x2eaeae,_0x32009b,_0x48dc32),_0x48dc32;}let H=class extends _0x598b89{constructor(_0x2b8b7e){const _0x4630ec=_0xf8c540;super(),this[_0x4630ec(0x1e9)]=_0x2b8b7e,z(this,_0x4630ec(0x1ae),new Map()),z(this,_0x4630ec(0x20a),new Map()),z(this,_0x4630ec(0x1bc),new _0x1e3428()),z(this,_0x4630ec(0x1a7),this['_updateConfig$'][_0x4630ec(0x18d)]());}[_0xf8c540(0x1b1)](_0x47e17d,_0x30893f){const _0x2be4ad=_0xf8c540;let _0x426bd3=this[_0x2be4ad(0x1ae)][_0x2be4ad(0x23d)](_0x47e17d);_0x426bd3||(_0x426bd3=new Map(),this[_0x2be4ad(0x1ae)][_0x2be4ad(0x1ee)](_0x47e17d,_0x426bd3));let _0x417f6d=_0x426bd3[_0x2be4ad(0x23d)](_0x30893f);return _0x417f6d||(_0x417f6d=new Map(),_0x426bd3[_0x2be4ad(0x1ee)](_0x30893f,_0x417f6d)),_0x417f6d;}[_0xf8c540(0x192)](_0x3d2f39,_0x5d9f3e){const _0x2ed43b=_0xf8c540;let _0xd7c870=this[_0x2ed43b(0x20a)][_0x2ed43b(0x23d)](_0x3d2f39);_0xd7c870||(_0xd7c870=new Map(),this[_0x2ed43b(0x20a)][_0x2ed43b(0x1ee)](_0x3d2f39,_0xd7c870));let _0x275bb9=_0xd7c870[_0x2ed43b(0x23d)](_0x5d9f3e);return _0x275bb9||(_0x275bb9={'matrix':new _0xe21e9e(),'extra':{}},_0xd7c870['set'](_0x5d9f3e,_0x275bb9)),_0x275bb9;}[_0xf8c540(0x23f)](_0xbe50b7,_0xafb442,_0x6aeff3,_0x5a3de4=_0xf8c540(0x1ee)){const _0x372b18=_0xf8c540;var _0x3a235f,_0xc8e0b1,_0x470bd5,_0x5b87d3;let _0x38db88=(_0x3a235f=this['_sparklineModel']['get'](_0xbe50b7))==null||(_0x3a235f=_0x3a235f['get'](_0xafb442))==null?void 0x0:_0x3a235f[_0x372b18(0x23d)](_0x6aeff3);if(!_0x38db88)return;let _0x15b267=_0x141e55(this[_0x372b18(0x1e9)],{'unitId':_0xbe50b7,'subUnitId':_0xafb442});if(!_0x15b267)return;let {extra:_0x4f0e5e,matrix:_0x49425d}=this[_0x372b18(0x192)](_0xbe50b7,_0xafb442),{worksheet:_0x22c174}=_0x15b267,_0x25016e=-(0x2**0x35-0x1),_0x2c0169=0x2**0x35-0x1,_0x122d67=_0x38db88['config'][_0x372b18(0x1a5)]??!0x1;_0x38db88[_0x372b18(0x1f9)][_0x372b18(0x21a)]((_0x3bb8f3,_0xcec92,_0x341c4c)=>{const _0x8bab1e=_0x372b18;let _0x34357e=_0x341c4c,_0x5ec31b=-(0x2**0x35-0x1),_0x3d81b9=0x2**0x35-0x1,_0x31a2d8=0x0,_0x4bd6f6=0x0,_0x31d57a=[];if(!_0x250e0f(_0x34357e))_0x49425d['setValue'](_0x3bb8f3,_0xcec92,{'groupId':_0x6aeff3,'data':[],'max':_0x5ec31b,'min':_0x3d81b9,'highIndex':_0x31a2d8,'lowIndex':_0x4bd6f6,'negativeIndexes':_0x31d57a});else{let _0x54eeb4=[];for(let _0x519bc0=_0x34357e['startRow'];_0x519bc0<=_0x34357e['endRow'];_0x519bc0++){for(let _0x2bca31=_0x34357e[_0x8bab1e(0x19c)];_0x2bca31<=_0x34357e[_0x8bab1e(0x19e)];_0x2bca31++){var _0x46edcd;let _0x3a5a94=_0x22c174[_0x8bab1e(0x1ed)](_0x519bc0),_0x2efc6b=_0x22c174['getColVisible'](_0x2bca31);if(!_0x122d67&&(!_0x3a5a94||!_0x2efc6b))continue;let _0x3a4845=0x0,_0x49624a=((_0x46edcd=_0x22c174[_0x8bab1e(0x214)](_0x519bc0,_0x2bca31))==null?void 0x0:_0x46edcd['v'])===void 0x0?_0x22c174[_0x8bab1e(0x1d7)](_0x519bc0,_0x2bca31):_0x22c174['getCellRaw'](_0x519bc0,_0x2bca31);if(!_0x49624a||_0x49624a['v']===void 0x0||_0x49624a['v']===null){let _0x3bd379=_0x38db88[_0x8bab1e(0x204)][_0x8bab1e(0x22b)]??_0x8bab1e(0x1e3);_0x3bd379===_0x8bab1e(0x1bb)?_0x3a4845=0x0:_0x3bd379==='spacing'?_0x3a4845='u-spacing':_0x3bd379==='connect_with_line'&&(_0x3a4845='u-connect');}else{if(_0x49624a['t']===_0x4c3712[_0x8bab1e(0x1b9)]||_0x49624a['t']===_0x4c3712[_0x8bab1e(0x23a)]){let _0x5d3dc3=_0x38db88[_0x8bab1e(0x204)][_0x8bab1e(0x237)]??_0x8bab1e(0x1e3);_0x5d3dc3==='zero_value'?_0x3a4845=0x0:_0x5d3dc3==='spacing'?_0x3a4845='u-spacing':_0x5d3dc3===_0x8bab1e(0x1ab)&&(_0x3a4845='u-connect');}else _0x3a4845=_0x49624a['t']===_0x4c3712[_0x8bab1e(0x228)]?+!!_0x49624a['v']:_0x49624a['t']===_0x4c3712[_0x8bab1e(0x22c)]?Number(_0x49624a['v']):_0x49624a['v'];}if(_0x54eeb4[_0x8bab1e(0x1be)](_0x3a4845),typeof _0x3a4845==_0x8bab1e(0x1cf)){_0x5ec31b=Math[_0x8bab1e(0x22f)](_0x5ec31b,_0x3a4845),_0x25016e=Math[_0x8bab1e(0x22f)](_0x25016e,_0x3a4845),_0x2c0169=Math[_0x8bab1e(0x23e)](_0x2c0169,_0x3a4845),_0x3d81b9=Math['min'](_0x3d81b9,_0x3a4845);let _0x2e730a=typeof _0x54eeb4[_0x31a2d8]==_0x8bab1e(0x1cf)?Number(_0x54eeb4[_0x31a2d8]):-(0x2**0x35-0x1);_0x3a4845>_0x2e730a&&(_0x31a2d8=_0x54eeb4[_0x8bab1e(0x1de)]-0x1);let _0x5cc74d=typeof _0x54eeb4[_0x4bd6f6]==_0x8bab1e(0x1cf)?Number(_0x54eeb4[_0x4bd6f6]):0x2**0x35-0x1;_0x3a4845<_0x5cc74d&&(_0x4bd6f6=_0x54eeb4['length']-0x1),_0x3a4845<0x0&&_0x31d57a[_0x8bab1e(0x1be)](_0x54eeb4[_0x8bab1e(0x1de)]-0x1);}}_0x49425d[_0x8bab1e(0x1f7)](_0x3bb8f3,_0xcec92,{'groupId':_0x6aeff3,'data':_0x54eeb4,'max':_0x5ec31b,'min':_0x3d81b9,'highIndex':_0x31a2d8,'lowIndex':_0x4bd6f6,'negativeIndexes':_0x31d57a});}}});let _0x4457ea=_0x25016e;if(((_0xc8e0b1=_0x38db88[_0x372b18(0x204)][_0x372b18(0x18b)])==null?void 0x0:_0xc8e0b1[_0x372b18(0x1e6)])===0x3){var _0xcfd36a;_0x4457ea=((_0xcfd36a=_0x38db88[_0x372b18(0x204)]['extremumMax'])==null?void 0x0:_0xcfd36a[_0x372b18(0x23c)])??_0x25016e;}let _0x5e0fbf=_0x2c0169;if(((_0x470bd5=_0x38db88[_0x372b18(0x204)][_0x372b18(0x1f2)])==null?void 0x0:_0x470bd5['type'])===0x3){var _0x3a2f15;_0x5e0fbf=((_0x3a2f15=_0x38db88[_0x372b18(0x204)]['extremumMin'])==null?void 0x0:_0x3a2f15['value'])??_0x2c0169;}let _0x582732=_0x38db88[_0x372b18(0x204)][_0x372b18(0x20c)]??'standard',_0x172aee=_0x38db88[_0x372b18(0x204)]['seriesColor']??((_0x5b87d3=L[_0x582732])==null?void 0x0:_0x5b87d3[0x0])??L[_0x372b18(0x231)][0x0],_0x54ccd5=new _0x53fb9e(_0x172aee),_0x475f47=_0x54ccd5[_0x372b18(0x236)](0.2)[_0x372b18(0x1b6)](),_0xdb428c=_0x54ccd5[_0x372b18(0x236)](0.05)['toRgbString']();_0x4f0e5e[_0x6aeff3]={'groupMax':_0x25016e,'groupMin':_0x2c0169,'showMax':_0x4457ea,'showMin':_0x5e0fbf,'startGradient':_0x475f47,'endGradient':_0xdb428c},this[_0x372b18(0x1bc)][_0x372b18(0x1f6)]({'unitId':_0xbe50b7,'subUnitId':_0xafb442,'groupId':_0x6aeff3,'config':_0x38db88,'type':_0x5a3de4});}[_0xf8c540(0x22d)](_0x4a3787,_0x1413a7,_0x20afc9,_0x426716){const _0x772954=_0xf8c540;this['_ensureConfigMap'](_0x4a3787,_0x1413a7)[_0x772954(0x1ee)](_0x20afc9,_0x426716),this['updateSparklineExtraNum'](_0x4a3787,_0x1413a7,_0x20afc9,'add');}[_0xf8c540(0x1f8)](_0x3b1947,_0x2afd9b,_0x3ac803,_0x7e21e3){const _0x4320da=_0xf8c540;var _0x23139c;let _0x21ad00=(_0x23139c=this[_0x4320da(0x1ae)][_0x4320da(0x23d)](_0x3b1947))==null?void 0x0:_0x23139c['get'](_0x2afd9b);_0x3ac803[_0x4320da(0x1db)](_0x25f9c8=>{const _0x4c4839=_0x4320da;_0x21ad00!=null&&_0x21ad00[_0x4c4839(0x1d0)](_0x25f9c8)&&(_0x21ad00[_0x4c4839(0x1ee)](_0x25f9c8,_0x7e21e3),this[_0x4c4839(0x23f)](_0x3b1947,_0x2afd9b,_0x25f9c8));});}[_0xf8c540(0x234)](_0xa125a2,_0x49507d,_0xaae18f){const _0x32cca2=_0xf8c540;let _0x23343b=this['_sparklineModel']['get'](_0xa125a2);if(_0x23343b){let _0x509484=_0x23343b['get'](_0x49507d);if(_0x509484){var _0x33e198,_0x31e8d0;_0x509484[_0x32cca2(0x21b)](_0xaae18f);let _0x4e7155=(_0x33e198=this[_0x32cca2(0x20a)][_0x32cca2(0x23d)](_0xa125a2))==null?void 0x0:_0x33e198[_0x32cca2(0x23d)](_0x49507d);_0x4e7155==null||(_0x31e8d0=_0x4e7155['matrix'])==null||_0x31e8d0[_0x32cca2(0x21a)]((_0x5a8d16,_0x649a50,_0x18b1ab)=>{const _0x5e1b5d=_0x32cca2;(_0x18b1ab==null?void 0x0:_0x18b1ab[_0x5e1b5d(0x219)])===_0xaae18f&&(_0x4e7155==null||_0x4e7155['matrix']['realDeleteValue'](_0x5a8d16,_0x649a50));}),this[_0x32cca2(0x1bc)][_0x32cca2(0x1f6)]({'unitId':_0xa125a2,'subUnitId':_0x49507d,'groupId':_0xaae18f,'type':_0x32cca2(0x20b)}),_0x509484['size']===0x0&&_0x23343b[_0x32cca2(0x21b)](_0x49507d);}}}[_0xf8c540(0x19b)](_0x1132fc,_0x237b8d,_0xb64e79,_0x4dabfb){const _0x32c6d2=_0xf8c540;var _0x496595;let _0x550aa9=(_0x496595=this[_0x32c6d2(0x20a)][_0x32c6d2(0x23d)](_0x1132fc))==null?void 0x0:_0x496595[_0x32c6d2(0x23d)](_0x237b8d),_0x448d1f=_0x550aa9==null?void 0x0:_0x550aa9[_0x32c6d2(0x1f1)][_0x32c6d2(0x235)](_0xb64e79,_0x4dabfb);if(_0x448d1f){var _0x2ffe78,_0x232d1f,_0x2333bb;let {groupId:_0x4d4dc1}=_0x448d1f,_0x530c05=(_0x2ffe78=this[_0x32c6d2(0x1ae)][_0x32c6d2(0x23d)](_0x1132fc))==null?void 0x0:_0x2ffe78[_0x32c6d2(0x23d)](_0x237b8d);_0x530c05==null||(_0x232d1f=_0x530c05[_0x32c6d2(0x23d)](_0x4d4dc1))==null||_0x232d1f[_0x32c6d2(0x1f9)]['realDeleteValue'](_0xb64e79,_0x4dabfb),_0x530c05!=null&&(_0x2333bb=_0x530c05['get'](_0x4d4dc1))!=null&&_0x2333bb['sparklines'][_0x32c6d2(0x213)]()||_0x530c05==null||_0x530c05[_0x32c6d2(0x21b)](_0x4d4dc1),_0x550aa9==null||_0x550aa9[_0x32c6d2(0x1f1)][_0x32c6d2(0x21c)](_0xb64e79,_0x4dabfb),this['_updateConfig$']['next']({'unitId':_0x1132fc,'subUnitId':_0x237b8d,'groupId':_0x4d4dc1,'type':'remove'});}}[_0xf8c540(0x209)](_0x1f3acb,_0x221160,_0x1c36a0){const _0x3e2123=_0xf8c540;var _0x47ab70,_0x246a19;let _0x47a6ca=(_0x47ab70=this[_0x3e2123(0x1ae)][_0x3e2123(0x23d)](_0x1f3acb))==null||(_0x47ab70=_0x47ab70['get'](_0x221160))==null||(_0x47ab70=_0x47ab70[_0x3e2123(0x23d)](_0x1c36a0))==null?void 0x0:_0x47ab70['sparklines'],_0x4974ee=(_0x246a19=this['_sparklineAnchorMap'][_0x3e2123(0x23d)](_0x1f3acb))==null?void 0x0:_0x246a19[_0x3e2123(0x23d)](_0x221160);if(_0x47a6ca&&_0x4974ee){let {matrix:_0x1a2ca1,extra:_0x2ae869}=_0x4974ee;_0x47a6ca[_0x3e2123(0x21a)]((_0x4efeea,_0x32c80b,_0x21843e)=>{_0x1a2ca1['realDeleteValue'](_0x4efeea,_0x32c80b);}),delete _0x2ae869[_0x1c36a0];}}[_0xf8c540(0x191)](_0x54b77d,_0x24e45f){const _0x2f9cf2=_0xf8c540;var _0x5dad10;return(_0x5dad10=this['_sparklineModel']['get'](_0x54b77d))==null?void 0x0:_0x5dad10[_0x2f9cf2(0x23d)](_0x24e45f);}[_0xf8c540(0x196)](_0x10fe4c,_0x1ff717,_0x1c8f0d){const _0x6614dd=_0xf8c540;var _0x209362;return(_0x209362=this[_0x6614dd(0x1ae)][_0x6614dd(0x23d)](_0x10fe4c))==null||(_0x209362=_0x209362['get'](_0x1ff717))==null?void 0x0:_0x209362[_0x6614dd(0x23d)](_0x1c8f0d);}['getSparkline'](_0x56287d,_0x27b451,_0x2c8197,_0x1df21e){const _0x44e7a1=_0xf8c540;var _0x59900e;return(_0x59900e=this[_0x44e7a1(0x20a)]['get'](_0x56287d))==null||(_0x59900e=_0x59900e['get'](_0x27b451))==null||(_0x59900e=_0x59900e[_0x44e7a1(0x1f1)][_0x44e7a1(0x235)](_0x2c8197,_0x1df21e))==null?void 0x0:_0x59900e[_0x44e7a1(0x219)];}['reBuildAnchorCache'](_0x139905,_0x1b2629){const _0x195841=_0xf8c540;var _0x805d12;let _0x488f45=this[_0x195841(0x192)](_0x139905,_0x1b2629);_0x488f45[_0x195841(0x1f1)][_0x195841(0x21a)]((_0x5e9fd6,_0x5971bb)=>{const _0x965246=_0x195841;_0x488f45['matrix'][_0x965246(0x21c)](_0x5e9fd6,_0x5971bb);});let _0x2ac573=(_0x805d12=this[_0x195841(0x1ae)][_0x195841(0x23d)](_0x139905))==null?void 0x0:_0x805d12[_0x195841(0x23d)](_0x1b2629);if(_0x2ac573){for(let [_0x3cb512]of _0x2ac573)this[_0x195841(0x23f)](_0x139905,_0x1b2629,_0x3cb512);}}[_0xf8c540(0x21d)](){const _0x38cf61=_0xf8c540;return{'sparklineModel':this[_0x38cf61(0x1ae)],'sparklineAnchorMap':this[_0x38cf61(0x20a)]};}[_0xf8c540(0x1bd)](_0x507d81){const _0x448035=_0xf8c540;let _0x4f94dc={};if(this[_0x448035(0x1ae)][_0x448035(0x1d0)](_0x507d81)){_0x4f94dc[_0x507d81]={};let _0xd55cb3=this[_0x448035(0x1ae)]['get'](_0x507d81);_0xd55cb3!=null&&_0xd55cb3[_0x448035(0x18c)]&&Array[_0x448035(0x185)](_0xd55cb3['keys']())[_0x448035(0x1db)](_0xce6b01=>{const _0xe9e2fb=_0x448035;_0x4f94dc[_0x507d81][_0xce6b01]={};let _0x4df88e=_0xd55cb3[_0xe9e2fb(0x23d)](_0xce6b01);_0x4df88e!=null&&_0x4df88e[_0xe9e2fb(0x18c)]&&Array[_0xe9e2fb(0x185)](_0x4df88e['keys']())[_0xe9e2fb(0x1db)](_0x54d7fb=>{const _0x5072ef=_0xe9e2fb;let _0x3760b4=_0x4df88e[_0x5072ef(0x23d)](_0x54d7fb);_0x3760b4&&(_0x4f94dc[_0x507d81][_0xce6b01][_0x54d7fb]={'config':_0x3760b4['config'],'sparklines':_0x3760b4['sparklines'][_0x5072ef(0x1d1)]()});});});}return _0x4f94dc;}['fromJSON'](_0x34587e){const _0x5a9e71=_0xf8c540;_0x34587e&&Object[_0x5a9e71(0x1f0)](_0x34587e)[_0x5a9e71(0x1db)](_0xeec30a=>{const _0x3958d0=_0x5a9e71;let _0x2c2eee=_0x34587e[_0xeec30a];_0x2c2eee&&Object['keys'](_0x2c2eee)[_0x3958d0(0x1db)](_0x117ba7=>{const _0x5c5e88=_0x3958d0;let _0x522cc7=_0x2c2eee[_0x117ba7];_0x522cc7&&Object[_0x5c5e88(0x1f0)](_0x522cc7)[_0x5c5e88(0x1db)](_0x287ef8=>{const _0x121c65=_0x5c5e88;let _0x3a3f40=_0x522cc7[_0x287ef8];if(_0x3a3f40){let _0x2c4dc6={'config':_0x3a3f40[_0x121c65(0x204)],'sparklines':new _0xe21e9e(_0x3a3f40[_0x121c65(0x1f9)])};this[_0x121c65(0x22d)](_0xeec30a,_0x117ba7,_0x287ef8,_0x2c4dc6);}});});});}['deleteUnit'](_0x245538){const _0x1b49b4=_0xf8c540;let _0x576cf5=this[_0x1b49b4(0x1ae)][_0x1b49b4(0x23d)](_0x245538);if(_0x576cf5){for(let [_0x50e7c3]of _0x576cf5){let _0x1568cf=_0x576cf5['get'](_0x50e7c3);if(_0x1568cf){for(let [_0x2a8470]of _0x1568cf)this[_0x1b49b4(0x209)](_0x245538,_0x50e7c3,_0x2a8470);}}this[_0x1b49b4(0x1ae)][_0x1b49b4(0x21b)](_0x245538);}}};H=V([B(0x0,_0x41e47c(_0x58742b))],H);const U={'id':_0xf8c540(0x197),'type':_0x251600[_0xf8c540(0x1fb)],'handler':(_0x21a432,_0x2c0342)=>{const _0x5e9fd8=_0xf8c540;if(!_0x2c0342)return!0x1;let {sparklineConfigMap:_0x4a52d5,unitId:_0x231a88,subUnitId:_0x472629}=_0x2c0342,_0x23d492=_0x21a432[_0x5e9fd8(0x23d)](H);return Object[_0x5e9fd8(0x1dd)](_0x4a52d5)[_0x5e9fd8(0x1db)](([_0x28310c,_0x583a8e])=>{const _0x24fbaa=_0x5e9fd8;let _0x1efbaf={'config':_0x583a8e[_0x24fbaa(0x204)],'sparklines':new _0xe21e9e(_0x583a8e[_0x24fbaa(0x1f9)])};_0x23d492[_0x24fbaa(0x22d)](_0x231a88,_0x472629,_0x28310c,_0x1efbaf);}),!0x0;}},W={'id':'sheet.mutation.remove-sparkline','type':_0x251600[_0xf8c540(0x1fb)],'handler':(_0x5ab9e5,_0x53a15e)=>{const _0x25b8e2=_0xf8c540;if(!_0x53a15e)return!0x1;let {unitId:_0x57a435,subUnitId:_0x4fe8ae,ranges:_0x2a17a5,isSingle:_0xe20213,groupIds:_0x16861c}=_0x53a15e,_0x2a74f9=_0x5ab9e5[_0x25b8e2(0x23d)](H);return _0x16861c?(_0x16861c[_0x25b8e2(0x1db)](_0x3ff823=>{const _0x112954=_0x25b8e2;_0x2a74f9[_0x112954(0x234)](_0x57a435,_0x4fe8ae,_0x3ff823);}),!0x0):_0x2a17a5?(_0x2a17a5[_0x25b8e2(0x1db)](_0x513c22=>{const _0x80aa7d=_0x25b8e2;_0x46e902[_0x80aa7d(0x1da)](_0x513c22,(_0x55aa54,_0xcf936c)=>{const _0x56c65f=_0x80aa7d;let _0xe61e97=_0x2a74f9[_0x56c65f(0x19a)](_0x57a435,_0x4fe8ae,_0x55aa54,_0xcf936c);_0xe61e97&&(_0xe20213?_0x2a74f9[_0x56c65f(0x19b)](_0x57a435,_0x4fe8ae,_0x55aa54,_0xcf936c):_0x2a74f9[_0x56c65f(0x234)](_0x57a435,_0x4fe8ae,_0xe61e97));});}),!0x0):!0x1;}},Me={'id':_0xf8c540(0x225),'type':_0x251600[_0xf8c540(0x1f5)],'handler':(_0x55d76a,_0x517ef8)=>{const _0x6cb2e8=_0xf8c540;if(!_0x517ef8||!P(_0x55d76a))return!0x1;let {sourceRanges:_0xfa5b22,targetRanges:_0x93da94,config:_0x371314}=_0x517ef8,_0x5d8ff6=_0x55d76a['get'](_0x351ca0),_0x31a344='g_'+_0x5459de(0x6),_0x44c0ba=F(_0xfa5b22,_0x93da94),_0x3c2b1e={'config':_0x371314??{},'sparklines':_0x44c0ba['getMatrix']()},_0x8a67ea=_0x55d76a[_0x6cb2e8(0x23d)](_0x58742b),_0x2c65da=_0x55d76a['get'](H),_0x3785e8=_0x141e55(_0x8a67ea);if(!_0x3785e8)return!0x1;let {unitId:_0xf5685d,subUnitId:_0x2225cd}=_0x3785e8,_0xa3d274=_0x55d76a[_0x6cb2e8(0x23d)](_0x48a448),_0x209bbe=[],_0x227672=[],_0x10282b={},_0x2493a6={},_0x12d6e2=new Set([_0x31a344]);_0x44c0ba['forValue']((_0x23149d,_0x5312b9)=>{const _0x1ceb76=_0x6cb2e8;let _0x4187df=_0x2c65da[_0x1ceb76(0x19a)](_0xf5685d,_0x2225cd,_0x23149d,_0x5312b9);if(_0x4187df){let _0xa8ddb3=_0x2c65da['getSparklineById'](_0xf5685d,_0x2225cd,_0x4187df);if(_0xa8ddb3){_0x12d6e2[_0x1ceb76(0x198)](_0x4187df);let _0x2b74f5=_0x10282b[_0x4187df],_0x20694d=_0x2493a6[_0x4187df];_0x20694d||(_0x20694d={'config':_0x35871f[_0x1ceb76(0x221)](_0xa8ddb3[_0x1ceb76(0x204)]),'sparklines':new _0xe21e9e(_0xa8ddb3[_0x1ceb76(0x1f9)][_0x1ceb76(0x1ef)]())},_0x2493a6[_0x4187df]=_0x20694d),_0x2b74f5||(_0x2b74f5={'config':_0x35871f[_0x1ceb76(0x221)](_0xa8ddb3[_0x1ceb76(0x204)]),'sparklines':_0xa8ddb3[_0x1ceb76(0x1f9)][_0x1ceb76(0x1ef)]()},_0x10282b[_0x4187df]=_0x2b74f5),_0x20694d[_0x1ceb76(0x1f9)][_0x1ceb76(0x21c)](_0x23149d,_0x5312b9);}}});let _0x174645={};return Object[_0x6cb2e8(0x1dd)](_0x2493a6)[_0x6cb2e8(0x1db)](([_0x18f9f6,_0x43599e])=>{const _0x599f5b=_0x6cb2e8;_0x43599e[_0x599f5b(0x1f9)][_0x599f5b(0x18e)]()&&(_0x174645[_0x18f9f6]={'config':_0x43599e[_0x599f5b(0x204)],'sparklines':_0x43599e[_0x599f5b(0x1f9)][_0x599f5b(0x1ef)]()});}),_0x174645[_0x31a344]=_0x3c2b1e,_0x209bbe[_0x6cb2e8(0x1be)]({'id':W['id'],'params':{'unitId':_0xf5685d,'subUnitId':_0x2225cd,'groupIds':Array[_0x6cb2e8(0x185)](_0x12d6e2),'isSingle':!0x1}}),_0x12d6e2[_0x6cb2e8(0x18c)]>0x1&&(_0x227672['push']({'id':W['id'],'params':{'unitId':_0xf5685d,'subUnitId':_0x2225cd,'groupIds':Array['from'](_0x12d6e2),'isSingle':!0x1}}),_0x209bbe[_0x6cb2e8(0x1be)]({'id':U['id'],'params':{'unitId':_0xf5685d,'subUnitId':_0x2225cd,'sparklineConfigMap':_0x10282b}})),_0x227672[_0x6cb2e8(0x1be)]({'id':U['id'],'params':{'unitId':_0xf5685d,'subUnitId':_0x2225cd,'sparklineConfigMap':_0x174645}}),_0x213351(_0x227672,_0xa3d274)['result']?(_0x5d8ff6[_0x6cb2e8(0x1d9)]({'unitID':_0xf5685d,'undoMutations':_0x209bbe,'redoMutations':_0x227672}),!0x0):!0x1;}},Ne={'id':'sheet.command.remove-sparkline','type':_0x251600[_0xf8c540(0x1f5)],'handler':(_0x469750,_0x41f9eb)=>{const _0x80b7a2=_0xf8c540;let {isSingle:_0x13a6f8=!0x0}=_0x41f9eb||{},_0x3cb53d=_0x469750[_0x80b7a2(0x23d)](_0x48a448),_0x10f89f=_0x469750[_0x80b7a2(0x23d)](_0x58742b),_0x52f592=_0x469750[_0x80b7a2(0x23d)](H),_0x47ff30=_0x469750[_0x80b7a2(0x23d)](_0x351ca0),_0x2d1b8b=_0x141e55(_0x10f89f);if(!_0x2d1b8b)return!0x1;let _0x3bf869=_0x469750[_0x80b7a2(0x23d)](_0x3f7cfd),_0x1e0147=(_0x41f9eb==null?void 0x0:_0x41f9eb[_0x80b7a2(0x183)])??_0x3bf869[_0x80b7a2(0x232)]()[_0x80b7a2(0x1ec)](_0x1f17ad=>_0x1f17ad[_0x80b7a2(0x210)]),{unitId:_0x23edbc,subUnitId:_0x3d1c3b}=_0x2d1b8b,_0x2ce0cb=[],_0x13bc36=[];_0x2ce0cb['push']({'id':W['id'],'params':{'unitId':_0x23edbc,'subUnitId':_0x3d1c3b,'ranges':_0x1e0147,'isSingle':_0x13a6f8}});let _0x1a68fd=[],_0x30da11={};return _0x1e0147['forEach'](_0x3c505e=>{_0x46e902['foreach'](_0x3c505e,(_0x251352,_0x22b854)=>{const _0x50f8cc=_0x4507;let _0x40df28=_0x52f592['getSparkline'](_0x23edbc,_0x3d1c3b,_0x251352,_0x22b854);if(_0x40df28){let _0x5754f=_0x52f592[_0x50f8cc(0x196)](_0x23edbc,_0x3d1c3b,_0x40df28);_0x5754f&&(_0x1a68fd[_0x50f8cc(0x1be)](_0x40df28),_0x30da11[_0x40df28]={'config':_0x35871f[_0x50f8cc(0x221)](_0x5754f[_0x50f8cc(0x204)]),'sparklines':_0x35871f[_0x50f8cc(0x221)](_0x5754f[_0x50f8cc(0x1f9)][_0x50f8cc(0x1ef)]())});}});}),_0x13bc36[_0x80b7a2(0x1be)]({'id':W['id'],'params':{'unitId':_0x23edbc,'subUnitId':_0x3d1c3b,'groupIds':_0x1a68fd,'isSingle':!0x1}}),_0x13bc36['push']({'id':U['id'],'params':{'unitId':_0x23edbc,'subUnitId':_0x3d1c3b,'sparklineConfigMap':_0x30da11}}),_0x213351(_0x2ce0cb,_0x3cb53d)[_0x80b7a2(0x1c2)]?(_0x47ff30['pushUndoRedo']({'unitID':_0x23edbc,'undoMutations':_0x13bc36,'redoMutations':_0x2ce0cb}),!0x0):!0x1;}},G={'id':_0xf8c540(0x1b5),'type':_0x251600[_0xf8c540(0x1fb)],'handler':(_0x260fd9,_0x5ce536)=>{const _0x1f5372=_0xf8c540;if(!_0x5ce536)return!0x1;let {unitId:_0x5406dd,subUnitId:_0x16112e,groupIds:_0x475b3a,config:_0x4181a2}=_0x5ce536,_0xdfb65f=_0x260fd9[_0x1f5372(0x23d)](H);return _0x475b3a[_0x1f5372(0x1db)](_0x9565ba=>{const _0x4da011=_0x1f5372;let _0x423a67=_0xdfb65f[_0x4da011(0x196)](_0x5406dd,_0x16112e,_0x9565ba);if(_0x423a67){let _0xd251a2={'config':Object[_0x4da011(0x216)]({},_0x423a67[_0x4da011(0x204)],_0x4181a2[_0x4da011(0x204)]),'sparklines':new _0xe21e9e(_0x423a67[_0x4da011(0x1f9)][_0x4da011(0x1ef)]())};_0xdfb65f[_0x4da011(0x1f8)](_0x5406dd,_0x16112e,[_0x9565ba],_0xd251a2);}}),!0x0;}},Pe={'id':_0xf8c540(0x240),'type':_0x251600['COMMAND'],'handler':(_0x35d449,_0x10f6c2)=>{const _0x251821=_0xf8c540;var _0x180194;if(!_0x10f6c2||!P(_0x35d449))return!0x1;let _0x190bfe=_0x35d449[_0x251821(0x23d)](_0x48a448),_0x379640=_0x35d449[_0x251821(0x23d)](_0x3f7cfd),_0x3b1a05=_0x35d449[_0x251821(0x23d)](H),_0x1775f3=_0x35d449[_0x251821(0x23d)](_0x58742b),_0x3a2d48=_0x35d449['get'](_0x351ca0),_0x1552c3=_0x141e55(_0x1775f3);if(!_0x1552c3)return!0x1;let {unitId:_0x5563d4,subUnitId:_0x4f9af4}=_0x1552c3,_0x2b2c3d=(_0x10f6c2==null?void 0x0:_0x10f6c2['ranges'])??_0x379640[_0x251821(0x232)]()[_0x251821(0x1ec)](_0x213425=>_0x213425[_0x251821(0x210)]),_0x227802=(_0x180194=_0x3b1a05[_0x251821(0x21d)]()[_0x251821(0x181)]['get'](_0x5563d4))==null?void 0x0:_0x180194[_0x251821(0x23d)](_0x4f9af4),{isChangeDataSource:_0x21c504,config:_0x38980a,combine:_0x250614,unCombine:_0x1b230e}=_0x10f6c2;if(_0x250614){var _0x1838c2;let _0x5425c5=[],_0x7b5100=[];_0x5425c5[_0x251821(0x1be)]({'id':W['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'ranges':_0x2b2c3d,'isSingle':!0x0}});let _0x5c7494='g_'+_0x5459de(0x6),_0x5c4d03=new _0xe21e9e(),_0x4b493c=(_0x1838c2=_0x3b1a05['getSparklineCache']()[_0x251821(0x23b)][_0x251821(0x23d)](_0x5563d4))==null?void 0x0:_0x1838c2['get'](_0x4f9af4),_0x464fce=new Set([_0x5c7494]),_0x5df588={};return _0x2b2c3d[_0x251821(0x1db)](_0x735686=>{const _0x124ac6=_0x251821;let {startRow:_0x4c2488,endRow:_0xe46c42,startColumn:_0x276a6e,endColumn:_0x1c9ea1}=_0x735686;for(let _0x1eae2e=_0x4c2488;_0x1eae2e<=_0xe46c42;_0x1eae2e++)for(let _0x2f3cf0=_0x276a6e;_0x2f3cf0<=_0x1c9ea1;_0x2f3cf0++){var _0x3c5f62;let _0x1de68b=_0x227802==null||(_0x3c5f62=_0x227802['matrix']['getValue'](_0x1eae2e,_0x2f3cf0))==null?void 0x0:_0x3c5f62[_0x124ac6(0x219)];if(_0x1de68b){var _0x18dd29;_0x464fce[_0x124ac6(0x198)](_0x1de68b);let _0x12d459=_0x3b1a05['getSparklineById'](_0x5563d4,_0x4f9af4,_0x1de68b);_0x12d459&&(_0x5df588[_0x1de68b]={'config':_0x35871f[_0x124ac6(0x221)](_0x12d459[_0x124ac6(0x204)]),'sparklines':_0x35871f['deepClone'](_0x12d459[_0x124ac6(0x1f9)][_0x124ac6(0x1ef)]())});let _0x30a3f1=_0x4b493c==null||(_0x18dd29=_0x4b493c[_0x124ac6(0x23d)](_0x1de68b))==null?void 0x0:_0x18dd29[_0x124ac6(0x1f9)][_0x124ac6(0x235)](_0x1eae2e,_0x2f3cf0);_0x30a3f1&&_0x5c4d03['setValue'](_0x1eae2e,_0x2f3cf0,_0x30a3f1);}}}),_0x5425c5[_0x251821(0x1be)]({'id':U['id'],'params':{'sparklineConfigMap':{[_0x5c7494]:{'config':_0x35871f[_0x251821(0x221)](_0x38980a[_0x251821(0x204)]),'sparklines':_0x5c4d03[_0x251821(0x1d1)]()}},'unitId':_0x5563d4,'subUnitId':_0x4f9af4}}),_0x7b5100['push']({'id':W['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'isSingle':!0x1,'groupIds':Array[_0x251821(0x185)](_0x464fce)}}),_0x7b5100[_0x251821(0x1be)]({'id':U['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'sparklineConfigMap':_0x5df588}}),_0x213351(_0x5425c5,_0x190bfe)[_0x251821(0x1c2)]?(_0x3a2d48[_0x251821(0x1d9)]({'unitID':_0x5563d4,'undoMutations':_0x7b5100,'redoMutations':_0x5425c5}),!0x0):!0x1;}if(_0x1b230e){var _0x1e9bb4;let _0x4163bf=[],_0x18222d=[];_0x4163bf[_0x251821(0x1be)]({'id':W['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'ranges':_0x2b2c3d,'isSingle':!0x0}});let _0x2ae321=(_0x1e9bb4=_0x3b1a05[_0x251821(0x21d)]()[_0x251821(0x23b)]['get'](_0x5563d4))==null?void 0x0:_0x1e9bb4['get'](_0x4f9af4),_0x25e8d4={},_0x6085c9=new Set(),_0x76be03={};return _0x2b2c3d[_0x251821(0x1db)](_0x21dd99=>{const _0x3aa925=_0x251821;let {startRow:_0x4f2d25,endRow:_0x4c0d45,startColumn:_0x5007c5,endColumn:_0xd79cd4}=_0x21dd99;for(let _0x764b=_0x4f2d25;_0x764b<=_0x4c0d45;_0x764b++)for(let _0x4bfa01=_0x5007c5;_0x4bfa01<=_0xd79cd4;_0x4bfa01++){var _0x46cd0b;let _0x3699e3=_0x227802==null||(_0x46cd0b=_0x227802[_0x3aa925(0x1f1)][_0x3aa925(0x235)](_0x764b,_0x4bfa01))==null?void 0x0:_0x46cd0b['groupId'];if(_0x3699e3){var _0x2bed90;let _0x1e78cd=new _0xe21e9e(),_0xf1c9bd='g_'+_0x5459de(0x6);_0x6085c9[_0x3aa925(0x198)](_0x3699e3),_0x6085c9['add'](_0xf1c9bd);let _0x3f422e=_0x3b1a05[_0x3aa925(0x196)](_0x5563d4,_0x4f9af4,_0x3699e3);_0x3f422e&&(_0x76be03[_0x3699e3]={'config':_0x35871f['deepClone'](_0x3f422e[_0x3aa925(0x204)]),'sparklines':_0x35871f['deepClone'](_0x3f422e['sparklines'][_0x3aa925(0x1ef)]())});let _0x1e25fa=_0x2ae321==null||(_0x2bed90=_0x2ae321[_0x3aa925(0x23d)](_0x3699e3))==null?void 0x0:_0x2bed90[_0x3aa925(0x1f9)][_0x3aa925(0x235)](_0x764b,_0x4bfa01);_0x1e25fa&&_0x1e78cd['setValue'](_0x764b,_0x4bfa01,_0x1e25fa),_0x25e8d4[_0xf1c9bd]={'sparklines':_0x1e78cd['getMatrix'](),'config':_0x35871f[_0x3aa925(0x221)](_0x38980a[_0x3aa925(0x204)])};}}}),_0x4163bf[_0x251821(0x1be)]({'id':U['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'sparklineConfigMap':_0x25e8d4}}),_0x18222d[_0x251821(0x1be)]({'id':W['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'isSingle':!0x1,'groupIds':Array[_0x251821(0x185)](_0x6085c9)}}),_0x18222d[_0x251821(0x1be)]({'id':U['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'sparklineConfigMap':_0x76be03}}),_0x213351(_0x4163bf,_0x190bfe)[_0x251821(0x1c2)]?(_0x3a2d48[_0x251821(0x1d9)]({'unitID':_0x5563d4,'undoMutations':_0x18222d,'redoMutations':_0x4163bf}),!0x0):!0x1;}if(_0x21c504){let _0x461665=_0x10f6c2[_0x251821(0x241)];if(!_0x461665)return!0x1;let {groupId:_0xd64ec0,sourceRanges:_0x27f5e4,targetRanges:_0x51cd0a,resetType:_0x20cd46,primary:_0x1b4fa2}=_0x461665,_0x92c74d=[],_0x5b52e7=[];_0x92c74d[_0x251821(0x1be)]({'id':W['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'ranges':_0x2b2c3d,'isSingle':!0x1,'groupIds':[_0xd64ec0]}}),_0x5b52e7['push']({'id':W['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'ranges':_0x2b2c3d,'isSingle':!0x1,'groupIds':[_0xd64ec0]}});let _0x39bf98;_0x20cd46==='item'?(_0x39bf98=new _0xe21e9e(_0x38980a['sparklines'][_0x251821(0x1ef)]()),_0x39bf98[_0x251821(0x21c)](_0x1b4fa2[_0x251821(0x1c4)],_0x1b4fa2[_0x251821(0x1cc)]),_0x39bf98[_0x251821(0x1f7)](_0x51cd0a[0x0]['startRow'],_0x51cd0a[0x0]['startColumn'],_0x27f5e4[0x0])):_0x39bf98=F(_0x27f5e4,_0x51cd0a);let _0x49718d={'config':_0x35871f[_0x251821(0x221)](_0x38980a[_0x251821(0x204)]),'sparklines':_0x39bf98[_0x251821(0x1d1)]()},_0x35735c={'config':_0x35871f[_0x251821(0x221)](_0x38980a['config']),'sparklines':_0x35871f[_0x251821(0x221)](_0x38980a[_0x251821(0x1f9)][_0x251821(0x1ef)]())};return _0x92c74d[_0x251821(0x1be)]({'id':U['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'sparklineConfigMap':{[_0xd64ec0]:_0x49718d}}}),_0x5b52e7[_0x251821(0x1be)]({'id':U['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'sparklineConfigMap':{[_0xd64ec0]:_0x35735c}}}),_0x213351(_0x92c74d,_0x190bfe)[_0x251821(0x1c2)]?(_0x3a2d48[_0x251821(0x1d9)]({'unitID':_0x5563d4,'undoMutations':_0x5b52e7,'redoMutations':_0x92c74d}),!0x0):!0x1;}{let _0x336fcc=[],_0x3dcbdd=[],_0x301004=new Set(),_0x5b2c2e={};return _0x2b2c3d['forEach'](_0x2b212d=>{const _0xcc795f=_0x251821;let {startRow:_0x5a443b,endRow:_0x3ab27c,startColumn:_0x1717c8,endColumn:_0x4b6122}=_0x2b212d;for(let _0x28b92e=_0x5a443b;_0x28b92e<=_0x3ab27c;_0x28b92e++)for(let _0x4314be=_0x1717c8;_0x4314be<=_0x4b6122;_0x4314be++){var _0x2121dd;let _0x29ad93=_0x227802==null||(_0x2121dd=_0x227802['matrix'][_0xcc795f(0x235)](_0x28b92e,_0x4314be))==null?void 0x0:_0x2121dd[_0xcc795f(0x219)];if(_0x29ad93){_0x301004[_0xcc795f(0x198)](_0x29ad93);let _0x431cbd=_0x3b1a05[_0xcc795f(0x196)](_0x5563d4,_0x4f9af4,_0x29ad93);_0x431cbd&&(_0x5b2c2e[_0x29ad93]={'config':_0x35871f['deepClone'](_0x431cbd[_0xcc795f(0x204)]),'sparklines':_0x35871f[_0xcc795f(0x221)](_0x431cbd[_0xcc795f(0x1f9)][_0xcc795f(0x1ef)]())});}}}),_0x3dcbdd[_0x251821(0x1be)]({'id':G['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'groupIds':Array['from'](_0x301004),'config':{'config':_0x35871f[_0x251821(0x221)](_0x38980a[_0x251821(0x204)]),'sparklines':_0x38980a[_0x251821(0x1f9)][_0x251821(0x1d1)]()}}}),_0x336fcc[_0x251821(0x1be)]({'id':W['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'isSingle':!0x1,'groupIds':Array['from'](_0x301004)}}),_0x336fcc[_0x251821(0x1be)]({'id':U['id'],'params':{'unitId':_0x5563d4,'subUnitId':_0x4f9af4,'sparklineConfigMap':_0x5b2c2e}}),_0x213351(_0x3dcbdd,_0x190bfe)['result']?(_0x3a2d48[_0x251821(0x1d9)]({'unitID':_0x5563d4,'undoMutations':_0x336fcc,'redoMutations':_0x3dcbdd}),!0x0):!0x1;}}};var Fe='@univerjs-pro/sheets-sparkline',Ie=_0xf8c540(0x1b2);const Le={};let K=class extends _0x598b89{constructor(_0x3735a1,_0x2d66ef,_0x17f639,_0x4b1f0b){const _0x4d06a9=_0xf8c540;super(),this[_0x4d06a9(0x182)]=_0x3735a1,this[_0x4d06a9(0x1c6)]=_0x2d66ef,this[_0x4d06a9(0x1e9)]=_0x17f639,this[_0x4d06a9(0x180)]=_0x4b1f0b,this[_0x4d06a9(0x20e)]();}[_0xf8c540(0x20e)](){const _0x1ed60d=_0xf8c540;this['disposeWithMe'](this[_0x1ed60d(0x1c6)]['interceptCommand']({'getMutations':_0x41fbdf=>{const _0x50b923=_0x1ed60d;let _0x490cea=[],_0x35daaf=[];if(_0x41fbdf['id']===_0x47a163['id']){let _0x3e7a35=_0x141e55(this['_univerInstanceService'],_0x41fbdf[_0x50b923(0x206)]);if(!_0x3e7a35)return{'redos':_0x490cea,'undos':_0x35daaf};let {unitId:_0x2c4beb,subUnitId:_0x3ed877}=_0x3e7a35,_0x163366=this[_0x50b923(0x180)]['getCurrentSelections']()[_0x50b923(0x1ec)](_0xa8ee36=>_0xa8ee36['range']),_0x2db74e=new Set(),_0x42a88d={},_0x3c6f7f={};_0x163366['forEach'](_0x4c71c2=>{const _0x47e2ec=_0x50b923;_0x46e902[_0x47e2ec(0x1da)](_0x4c71c2,(_0xe7cdfa,_0x183fce)=>{const _0xd3c812=_0x47e2ec;let _0x5c0bbd=this[_0xd3c812(0x182)][_0xd3c812(0x19a)](_0x2c4beb,_0x3ed877,_0xe7cdfa,_0x183fce);if(_0x5c0bbd&&!_0x2db74e[_0xd3c812(0x1d0)](_0x5c0bbd)){let _0x307bf3=this[_0xd3c812(0x182)][_0xd3c812(0x196)](_0x2c4beb,_0x3ed877,_0x5c0bbd);_0x307bf3&&(_0x2db74e[_0xd3c812(0x198)](_0x5c0bbd),_0x42a88d[_0x5c0bbd]={'config':_0x35871f[_0xd3c812(0x221)](_0x307bf3[_0xd3c812(0x204)]),'sparklines':_0x35871f['deepClone'](_0x307bf3['sparklines']['clone']())},_0x3c6f7f[_0x5c0bbd]={'config':_0x35871f['deepClone'](_0x307bf3[_0xd3c812(0x204)]),'sparklines':_0x35871f[_0xd3c812(0x221)](_0x307bf3['sparklines']['clone']())});}});}),Object[_0x50b923(0x242)](_0x3c6f7f)[_0x50b923(0x1db)](_0x4437d6=>{const _0x4b259a=_0x50b923;let _0x23cf0c=_0x4437d6[_0x4b259a(0x1f9)];new _0xe21e9e(_0x23cf0c)[_0x4b259a(0x21a)]((_0x93685f,_0x5c1335,_0x6d5f7)=>{const _0x1ddbc2=_0x4b259a;_0x163366['some'](_0x1a0e13=>_0x4cad01[_0x1ddbc2(0x1e4)](_0x1a0e13,_0x5c4c56(_0x93685f,_0x5c1335)))&&delete _0x23cf0c[_0x93685f][_0x5c1335];});}),_0x2db74e[_0x50b923(0x18c)]>0x0&&(_0x490cea[_0x50b923(0x1be)]({'id':W['id'],'params':{'unitId':_0x2c4beb,'subUnitId':_0x3ed877,'groupIds':Array[_0x50b923(0x185)](_0x2db74e),'isSingle':!0x1}}),_0x35daaf[_0x50b923(0x1be)]({'id':W['id'],'params':{'unitId':_0x2c4beb,'subUnitId':_0x3ed877,'groupIds':Array['from'](_0x2db74e),'isSingle':!0x1}})),Object[_0x50b923(0x1f0)](_0x3c6f7f)[_0x50b923(0x1de)]>0x0&&_0x490cea[_0x50b923(0x1be)]({'id':U['id'],'params':{'unitId':_0x2c4beb,'subUnitId':_0x3ed877,'sparklineConfigMap':_0x3c6f7f}}),Object[_0x50b923(0x1f0)](_0x42a88d)[_0x50b923(0x1de)]>0x0&&_0x35daaf['push']({'id':U['id'],'params':{'unitId':_0x2c4beb,'subUnitId':_0x3ed877,'sparklineConfigMap':_0x42a88d}});}return{'redos':_0x490cea,'undos':_0x35daaf};}}));}};K=V([B(0x0,_0x41e47c(H)),B(0x1,_0x41e47c(_0xc5af45)),B(0x2,_0x41e47c(_0x58742b)),B(0x3,_0x41e47c(_0x3f7cfd))],K);let q=class extends _0x598b89{constructor(_0x2ee8ff,_0x48390a,_0x1705ac){const _0x3eba81=_0xf8c540;super(),this[_0x3eba81(0x1a3)]=_0x2ee8ff,this[_0x3eba81(0x182)]=_0x48390a,this[_0x3eba81(0x205)]=_0x1705ac,this[_0x3eba81(0x1cd)](),this[_0x3eba81(0x18f)]();}[_0xf8c540(0x1cd)](){const _0x33387f=_0xf8c540;this[_0x33387f(0x1e0)](this['_commandService'][_0x33387f(0x188)](_0x539df7=>{const _0x3dfc34=_0x33387f;if(_0x539df7['id']===_0x3b7160['id']){let {cellValue:_0x6d56ec,unitId:_0x9c12c4,subUnitId:_0x5bb0d7}=_0x539df7[_0x3dfc34(0x206)],_0x2fc667=new _0xe21e9e(_0x6d56ec),_0x17c284=new Set(),_0x1410cc=this[_0x3dfc34(0x182)][_0x3dfc34(0x191)](_0x9c12c4,_0x5bb0d7);if(!_0x1410cc)return;let _0x31a1de=Array[_0x3dfc34(0x185)](_0x1410cc);_0x2fc667['forValue']((_0x4ae33c,_0x326170,_0x5785e4)=>{const _0x2c7881=_0x3dfc34;let _0x2c6404=_0x5c4c56(_0x4ae33c,_0x326170);for(let _0x1cf9df=0x0;_0x1cf9df<_0x31a1de[_0x2c7881(0x1de)];_0x1cf9df++){let [_0x7b9512,_0xa5dda3]=_0x31a1de[_0x1cf9df],_0x1ab40b=_0x17c284['has'](_0x7b9512);_0x1ab40b||_0xa5dda3[_0x2c7881(0x1f9)][_0x2c7881(0x21a)]((_0x3ff04d,_0x393f04,_0x141b68)=>{const _0x18592f=_0x2c7881;let _0x5b61ed=_0x141b68;if(_0x5b61ed&&!_0x1ab40b&&_0x4cad01['intersects'](_0x2c6404,_0x5b61ed))return _0x17c284[_0x18592f(0x198)](_0x7b9512),!0x0;});}}),_0x17c284[_0x3dfc34(0x1db)](_0xd4244e=>{const _0x28745=_0x3dfc34;this['_sparklineDataSourceModel'][_0x28745(0x209)](_0x9c12c4,_0x5bb0d7,_0xd4244e),this[_0x28745(0x182)]['updateSparklineExtraNum'](_0x9c12c4,_0x5bb0d7,_0xd4244e);});}else{if(_0x539df7['id']===_0x371c97['id']){let {range:_0xd9ce0c,unitId:_0x33c61d,subUnitId:_0x131931}=_0x539df7['params'],_0x49c2d9=new Set(),_0x4c5aa0=this['_sparklineDataSourceModel'][_0x3dfc34(0x191)](_0x33c61d,_0x131931);if(!_0x4c5aa0)return;let _0x3462ac=Array['from'](_0x4c5aa0);for(let _0x3376e7=0x0;_0x3376e7<_0x3462ac[_0x3dfc34(0x1de)];_0x3376e7++){let [_0x3549f5,_0x5a8cc1]=_0x3462ac[_0x3376e7],_0x107431=_0x49c2d9['has'](_0x3549f5);_0x107431||_0x5a8cc1[_0x3dfc34(0x1f9)][_0x3dfc34(0x21a)]((_0x3e9703,_0x3ffaba,_0x5d35d4)=>{const _0x35613c=_0x3dfc34;let _0x118063=_0x5d35d4;if(_0x118063&&!_0x107431&&_0x4cad01[_0x35613c(0x1e4)](_0xd9ce0c,_0x118063))return _0x49c2d9['add'](_0x3549f5),!0x0;});}_0x49c2d9[_0x3dfc34(0x1db)](_0x55c8cd=>{const _0x46f5b3=_0x3dfc34;this[_0x46f5b3(0x182)]['clearSparklineCache'](_0x33c61d,_0x131931,_0x55c8cd),this['_sparklineDataSourceModel'][_0x46f5b3(0x23f)](_0x33c61d,_0x131931,_0x55c8cd);});}}}));}['_initExclusiveRangeChange'](){const _0x53cd23=_0xf8c540;this['disposeWithMe'](this['_exclusiveRangeService'][_0x53cd23(0x186)]['subscribe'](_0x29b237=>{const _0x9f9b96=_0x53cd23;let {unitId:_0x567528,subUnitId:_0x4ee85a,ranges:_0x454fe0}=_0x29b237,_0xcbc234=this[_0x9f9b96(0x182)][_0x9f9b96(0x191)](_0x567528,_0x4ee85a);if(!_0xcbc234)return;let _0x5f3740=Array[_0x9f9b96(0x185)](_0xcbc234),_0x40007b=new Set();for(let _0x5885ea=0x0;_0x5885ea<_0x5f3740[_0x9f9b96(0x1de)];_0x5885ea++){let [_0x7e8a27,_0x1ebf98]=_0x5f3740[_0x5885ea],_0x24cd79=_0x40007b['has'](_0x7e8a27);_0x24cd79||_0x1ebf98[_0x9f9b96(0x1f9)][_0x9f9b96(0x21a)]((_0x407bd3,_0xe90100,_0x4d62b2)=>{const _0x1f6a85=_0x9f9b96;let _0x12f333=_0x4d62b2;if(_0x12f333&&!_0x24cd79){for(let _0x591108 of _0x454fe0)if(_0x4cad01[_0x1f6a85(0x1e4)](_0x591108,_0x12f333)){_0x40007b[_0x1f6a85(0x198)](_0x7e8a27);break;}}});}_0x40007b[_0x9f9b96(0x1db)](_0x119f30=>{const _0x3100c2=_0x9f9b96;this[_0x3100c2(0x182)][_0x3100c2(0x209)](_0x567528,_0x4ee85a,_0x119f30),this[_0x3100c2(0x182)][_0x3100c2(0x23f)](_0x567528,_0x4ee85a,_0x119f30);});}));}};q=V([B(0x0,_0x41e47c(_0x48a448)),B(0x1,_0x41e47c(H)),B(0x2,_0x41e47c(_0x502af5))],q);let J=class extends _0x598b89{constructor(_0x258566,_0x26f145){const _0xe7d7cd=_0xf8c540;super(),this['_commandService']=_0x258566,this[_0xe7d7cd(0x182)]=_0x26f145,this['_initHideRowColWithSparkline']();}['_initHideRowColWithSparkline'](){const _0x19d0f4=_0xf8c540;this[_0x19d0f4(0x1a3)][_0x19d0f4(0x188)](_0x24dff4=>{const _0x3e0ae0=_0x19d0f4;if(_0x24dff4['id']===_0x5b8afc['id']||_0x24dff4['id']===_0x3b22ad['id']||_0x24dff4['id']===_0x183438['id']||_0x24dff4['id']===_0x223ff7['id']){let {ranges:_0x2bd4bc,unitId:_0x1f25f0,subUnitId:_0x4de984}=_0x24dff4['params'],_0x319c4e=new Set(),_0x13b5bd=this['_sparklineDataSourceModel'][_0x3e0ae0(0x191)](_0x1f25f0,_0x4de984);if(!_0x13b5bd)return;let _0x47852d=Array[_0x3e0ae0(0x185)](_0x13b5bd);_0x2bd4bc[_0x3e0ae0(0x1db)](_0x227d23=>{const _0x401c7f=_0x3e0ae0;_0x46e902[_0x401c7f(0x1da)](_0x227d23,(_0x582266,_0x3d6fa2)=>{const _0x3a079a=_0x401c7f;let _0x43087e=_0x5c4c56(_0x582266,_0x3d6fa2);for(let _0x6af695=0x0;_0x6af695<_0x47852d[_0x3a079a(0x1de)];_0x6af695++){let [_0x14e3bb,_0x966777]=_0x47852d[_0x6af695],_0x43bb2b=_0x319c4e[_0x3a079a(0x1d0)](_0x14e3bb);_0x43bb2b||_0x966777[_0x3a079a(0x1f9)][_0x3a079a(0x21a)]((_0x1738ab,_0x3b0a16,_0xcbe9fe)=>{const _0x2eb66c=_0x3a079a;let _0x537533=_0xcbe9fe;if(_0x537533&&!_0x43bb2b&&_0x4cad01[_0x2eb66c(0x1e4)](_0x43087e,_0x537533))return _0x319c4e[_0x2eb66c(0x198)](_0x14e3bb),!0x0;});}});}),_0x319c4e[_0x3e0ae0(0x1db)](_0x5a330d=>{const _0x3ca461=_0x3e0ae0;this['_sparklineDataSourceModel']['clearSparklineCache'](_0x1f25f0,_0x4de984,_0x5a330d),this[_0x3ca461(0x182)][_0x3ca461(0x23f)](_0x1f25f0,_0x4de984,_0x5a330d);});}});}};J=V([B(0x0,_0x41e47c(_0x48a448)),B(0x1,_0x41e47c(H))],J);let Y=class extends _0x598b89{constructor(_0x4761fc,_0x2629ec,_0x4ea616){const _0x416877=_0xf8c540;super(),this[_0x416877(0x1a3)]=_0x4761fc,this[_0x416877(0x1c6)]=_0x2629ec,this['_sparklineDataSourceModel']=_0x4ea616,this['_initMergeWithSparkline']();}['_initMergeWithSparkline'](){const _0x1adff2=_0xf8c540;this[_0x1adff2(0x1e0)](this['_sheetInterceptorService'][_0x1adff2(0x238)]({'getMutations':_0x6cf8c3=>{const _0x409522=_0x1adff2;let _0x15c332=[],_0x59c01b=[];if(_0x6cf8c3['id']===_0x4eb70a['id']){let _0x166683=_0x6cf8c3[_0x409522(0x206)];if(!_0x166683)return{'redos':_0x15c332,'undos':_0x59c01b};let {unitId:_0x273018,subUnitId:_0x177d8a,ranges:_0x29c8fa}=_0x166683,_0x1958b3=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x273018,_0x177d8a);if(!_0x1958b3)return{'redos':_0x15c332,'undos':_0x59c01b};let _0x3995e5={},_0x2cf9fe={},_0x376857=new Set();_0x29c8fa[_0x409522(0x1db)](_0x4f1838=>{const _0xf144c7=_0x409522;let _0x364519=_0x4f1838[_0xf144c7(0x1a6)],_0x105d23=_0x4f1838[_0xf144c7(0x19c)];_0x46e902[_0xf144c7(0x1da)](_0x4f1838,(_0x47ebd3,_0xd66cda)=>{const _0x25f556=_0xf144c7;let _0xff4419=this['_sparklineDataSourceModel'][_0x25f556(0x19a)](_0x273018,_0x177d8a,_0x47ebd3,_0xd66cda);if(_0xff4419&&(_0x47ebd3!==_0x364519||_0xd66cda!==_0x105d23)){let _0x5b9fdb=this[_0x25f556(0x182)]['getSparklineById'](_0x273018,_0x177d8a,_0xff4419);if(_0x5b9fdb){_0x376857[_0x25f556(0x198)](_0xff4419);let _0x1f2a99=_0x3995e5[_0xff4419];_0x1f2a99||(_0x1f2a99={'config':_0x35871f[_0x25f556(0x221)](_0x5b9fdb[_0x25f556(0x204)]),'sparklines':new _0xe21e9e(_0x5b9fdb['sparklines'][_0x25f556(0x1ef)]())},_0x3995e5[_0xff4419]=_0x1f2a99),_0x1f2a99['sparklines'][_0x25f556(0x21c)](_0x47ebd3,_0xd66cda),_0x2cf9fe[_0xff4419]={'config':_0x35871f[_0x25f556(0x221)](_0x5b9fdb['config']),'sparklines':_0x35871f[_0x25f556(0x221)](_0x5b9fdb[_0x25f556(0x1f9)]['clone']())};}}});});for(let [_0x2f8c89,_0x279bf1]of _0x1958b3){let _0x2fdd60=_0x279bf1[_0x409522(0x1f9)];_0x2fdd60['forValue']((_0x4b720d,_0x49c02f,_0x55d63e)=>{const _0x42b0fd=_0x409522;for(let _0x202721=0x0;_0x202721<_0x29c8fa[_0x42b0fd(0x1de)];_0x202721++){let _0x3a253e=_0x29c8fa[_0x202721];if(_0x4cad01[_0x42b0fd(0x244)](_0x3a253e,_0x55d63e)){_0x376857[_0x42b0fd(0x198)](_0x2f8c89);let _0xa566a7=_0x3995e5[_0x2f8c89];_0xa566a7||(_0xa566a7={'config':_0x35871f[_0x42b0fd(0x221)](_0x279bf1[_0x42b0fd(0x204)]),'sparklines':new _0xe21e9e(_0x2fdd60['clone']())},_0x3995e5[_0x2f8c89]=_0xa566a7),_0xa566a7[_0x42b0fd(0x1f9)]['realDeleteValue'](_0x4b720d,_0x49c02f),_0x2cf9fe[_0x2f8c89]||(_0x2cf9fe[_0x2f8c89]={'config':_0x35871f[_0x42b0fd(0x221)](_0x279bf1[_0x42b0fd(0x204)]),'sparklines':_0x35871f[_0x42b0fd(0x221)](_0x2fdd60[_0x42b0fd(0x1ef)]())});}}});}let _0x448567={};Object[_0x409522(0x1dd)](_0x3995e5)[_0x409522(0x1db)](([_0x30f2b6,_0x4aa27b])=>{const _0x2771b7=_0x409522;_0x4aa27b[_0x2771b7(0x1f9)][_0x2771b7(0x18e)]()&&(_0x448567[_0x30f2b6]={'config':_0x4aa27b[_0x2771b7(0x204)],'sparklines':_0x4aa27b[_0x2771b7(0x1f9)]['clone']()});}),_0x376857[_0x409522(0x18c)]&&(_0x15c332[_0x409522(0x1be)]({'id':W['id'],'params':{'unitId':_0x273018,'subUnitId':_0x177d8a,'groupIds':Array[_0x409522(0x185)](_0x376857),'isSingle':!0x1}}),_0x59c01b[_0x409522(0x1be)]({'id':W['id'],'params':{'unitId':_0x273018,'subUnitId':_0x177d8a,'groupIds':Array[_0x409522(0x185)](_0x376857),'isSingle':!0x1}}),_0x15c332[_0x409522(0x1be)]({'id':U['id'],'params':{'unitId':_0x273018,'subUnitId':_0x177d8a,'sparklineConfigMap':_0x448567}}),_0x59c01b[_0x409522(0x1be)]({'id':U['id'],'params':{'unitId':_0x273018,'subUnitId':_0x177d8a,'sparklineConfigMap':_0x2cf9fe}}));}return{'redos':_0x15c332,'undos':_0x59c01b};}}));}};function _0x4507(_0x102111,_0x25083c){_0x102111=_0x102111-0x17f;const _0x118ec5=_0x118e();let _0x4507d1=_0x118ec5[_0x102111];return _0x4507d1;}Y=V([B(0x0,_0x41e47c(_0x48a448)),B(0x1,_0x41e47c(_0xc5af45)),B(0x2,_0x41e47c(H))],Y);let X=class extends _0x598b89{constructor(_0x1a620e,_0x23e86b,_0x46112,_0x169779){const _0x169269=_0xf8c540;super(),this[_0x169269(0x1a3)]=_0x1a620e,this[_0x169269(0x1ca)]=_0x23e86b,this[_0x169269(0x1e9)]=_0x46112,this['_sparklineDataSourceModel']=_0x169779,z(this,'disposableCollection',new _0x2eb20a()),this[_0x169269(0x1bf)](),this['_initCorrectRangeWithSparkline']();}['_onRefRangeChange'](){const _0x1dfb04=_0xf8c540;let _0x1a4c27=(_0x27637f,_0x2ed8a8)=>{const _0x1798d3=_0x4507;let _0x328582=this['_univerInstanceService'][_0x1798d3(0x195)](_0x1b601f['UNIVER_SHEET']);if(!_0x328582||!(_0x328582!=null&&_0x328582[_0x1798d3(0x1a8)](_0x2ed8a8)))return;this[_0x1798d3(0x1d2)]['dispose']();let _0x217f5d=_0x2d0cc3=>this['refRangeHandle'](_0x2d0cc3,_0x27637f,_0x2ed8a8),_0x5748aa=[],_0x4ee6d8=this[_0x1798d3(0x182)]['getSubUnitSparkline'](_0x27637f,_0x2ed8a8);if(_0x4ee6d8){for(let [_0xf95279,_0x561248]of _0x4ee6d8)_0x561248[_0x1798d3(0x1f9)][_0x1798d3(0x21a)]((_0x54ff91,_0x4eae7c,_0x2da25a)=>{const _0x7c68f4=_0x1798d3;let _0x5be7b6=_0x5c4c56(_0x54ff91,_0x4eae7c);_0x5748aa[_0x7c68f4(0x1be)](_0x5be7b6);});_0x5748aa[_0x1798d3(0x1db)](_0x5023ff=>{const _0x112a79=_0x1798d3;this['disposableCollection']['add'](this[_0x112a79(0x1ca)][_0x112a79(0x1b8)](_0x5023ff,_0x217f5d,_0x27637f,_0x2ed8a8));});}};this['disposeWithMe'](this[_0x1dfb04(0x1a3)]['onCommandExecuted'](_0x3ba0fe=>{const _0x18eebf=_0x1dfb04;if(_0x3ba0fe['id']===_0x411e0c['id']){let _0x12bef4=_0x3ba0fe['params'],_0xf6655d=_0x12bef4['subUnitId'],_0x21d22b=_0x12bef4['unitId'];if(!_0xf6655d||!_0x21d22b)return;_0x1a4c27(_0x21d22b,_0xf6655d);}if(_0x3ba0fe['id']===G['id']||_0x3ba0fe['id']===U['id']){let _0xc465a3=_0x3ba0fe[_0x18eebf(0x206)],_0x14c66b=_0xc465a3[_0x18eebf(0x1b3)],_0x7ec180=_0xc465a3[_0x18eebf(0x208)];if(!_0x14c66b||!_0x7ec180)return;_0x1a4c27(_0x7ec180,_0x14c66b);}}));}['refRangeHandle'](_0x5571b1,_0x310a52,_0x297921){const _0x1c1373=_0xf8c540;switch(_0x5571b1['id']){case _0x7e2088['id']:return this[_0x1c1373(0x223)](_0x5571b1[_0x1c1373(0x206)],_0x310a52,_0x297921);case _0x2d3602['id']:return this[_0x1c1373(0x1df)](_0x5571b1[_0x1c1373(0x206)],_0x310a52,_0x297921);}return{'redos':[],'undos':[]};}[_0xf8c540(0x1df)](_0x30b392,_0x1b3a9f,_0x59dd6d){const _0x25a128=_0xf8c540;var _0x32b845;let {range:_0x134fe9}=_0x30b392,_0xd9a19d=new Set(),_0xfe99d1={},_0x4ec8cc={},_0x3c32cb=[],_0x79c87d=[],_0x3fd000=[],_0x5054e6=[];if(!_0x141e55(this[_0x25a128(0x1e9)],{'unitId':_0x1b3a9f,'subUnitId':_0x59dd6d}))return{'redos':_0x79c87d,'undos':_0x3c32cb};let _0x454fda=this[_0x25a128(0x182)][_0x25a128(0x191)](_0x1b3a9f,_0x59dd6d);if(!_0x454fda||!((_0x32b845=this[_0x25a128(0x182)]['getSparklineCache']()[_0x25a128(0x181)][_0x25a128(0x23d)](_0x1b3a9f))!=null&&(_0x32b845=_0x32b845[_0x25a128(0x23d)](_0x59dd6d))!=null&&_0x32b845[_0x25a128(0x1f1)]))return{'redos':_0x79c87d,'undos':_0x3c32cb};for(let [_0x44e276,_0x485d4d]of _0x454fda){let _0x5c57bf=_0x485d4d['sparklines'];_0x5c57bf[_0x25a128(0x21a)]((_0x52e49e,_0x16ab93,_0x5e5efa)=>{const _0x4c1bb1=_0x25a128;if(_0x4cad01[_0x4c1bb1(0x1e4)](_0x134fe9,_0x5e5efa)){_0xd9a19d[_0x4c1bb1(0x198)](_0x44e276);let _0x503411=_0x4ec8cc[_0x44e276];_0x503411||(_0x503411={'config':_0x485d4d[_0x4c1bb1(0x204)],'sparklines':_0x485d4d['sparklines'][_0x4c1bb1(0x1ef)]()},_0x4ec8cc[_0x44e276]=_0x503411);let _0xfc729b=_0xfe99d1[_0x44e276];_0xfc729b||(_0xfc729b={'config':_0x485d4d['config'],'sparklines':new _0xe21e9e(_0x485d4d[_0x4c1bb1(0x1f9)]['clone']())},_0xfe99d1[_0x44e276]=_0xfc729b);let _0xabdac7=_0x3f1f73(_0x5e5efa,{'id':_0x4ffb76['id'],'params':_0x30b392});_0xabdac7?_0xfc729b['sparklines']['setValue'](_0x52e49e,_0x16ab93,_0xabdac7):_0xfc729b[_0x4c1bb1(0x1f9)][_0x4c1bb1(0x1f7)](_0x52e49e,_0x16ab93,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x37e527[_0x4c1bb1(0x1ad)]});}}),_0x5c57bf[_0x25a128(0x21a)](_0x28c157=>{const _0x1dd9f8=_0x25a128;if(_0x28c157<=_0x134fe9['endRow']&&_0x28c157>=_0x134fe9[_0x1dd9f8(0x1a6)]){_0xd9a19d[_0x1dd9f8(0x198)](_0x44e276);let _0x244b93=_0x4ec8cc[_0x44e276];_0x244b93||(_0x244b93={'config':_0x485d4d[_0x1dd9f8(0x204)],'sparklines':_0x485d4d[_0x1dd9f8(0x1f9)]['clone']()},_0x4ec8cc[_0x44e276]=_0x244b93);let _0x2ce656=_0xfe99d1[_0x44e276];_0x2ce656||(_0x2ce656={'config':_0x485d4d[_0x1dd9f8(0x204)],'sparklines':new _0xe21e9e(_0x485d4d['sparklines'][_0x1dd9f8(0x1ef)]())},_0xfe99d1[_0x44e276]=_0x2ce656);}});}_0xd9a19d[_0x25a128(0x18c)]>0x0&&(_0x5054e6['push']({'id':W['id'],'params':{'unitId':_0x1b3a9f,'subUnitId':_0x59dd6d,'groupIds':Array[_0x25a128(0x185)](_0xd9a19d),'isSingle':!0x1}}),_0x3fd000[_0x25a128(0x1be)]({'id':W['id'],'params':{'unitId':_0x1b3a9f,'subUnitId':_0x59dd6d,'groupIds':Array[_0x25a128(0x185)](_0xd9a19d),'isSingle':!0x1}}));let _0xf2f95b={},_0x21a63f=!0x1;return Object['entries'](_0xfe99d1)[_0x25a128(0x1db)](([_0x1ab037,_0x1c7305])=>{const _0x49c481=_0x25a128;_0x1c7305[_0x49c481(0x1f9)][_0x49c481(0x18e)]()&&(_0x21a63f=!0x0,_0x1c7305[_0x49c481(0x1f9)][_0x49c481(0x224)](_0x134fe9['startRow'],_0x134fe9[_0x49c481(0x17f)]-_0x134fe9[_0x49c481(0x1a6)]+0x1),_0xf2f95b[_0x1ab037]={'config':_0x1c7305['config'],'sparklines':_0x1c7305[_0x49c481(0x1f9)][_0x49c481(0x1ef)]()});}),_0x21a63f&&_0x79c87d['push']({'id':U['id'],'params':{'unitId':_0x1b3a9f,'subUnitId':_0x59dd6d,'sparklineConfigMap':_0xf2f95b}}),Object['keys'](_0x4ec8cc)[_0x25a128(0x1de)]>0x0&&_0x3c32cb[_0x25a128(0x1be)]({'id':U['id'],'params':{'unitId':_0x1b3a9f,'subUnitId':_0x59dd6d,'sparklineConfigMap':_0x4ec8cc}}),{'redos':_0x79c87d,'undos':_0x3c32cb,'preRedos':_0x3fd000,'preUndos':_0x5054e6};}[_0xf8c540(0x223)](_0x2abd6b,_0x2b7bfd,_0x53713e){const _0x353b40=_0xf8c540;var _0x4a7757;let {range:_0x1bc4b8}=_0x2abd6b,_0x41f817=new Set(),_0xc9b31f={},_0x2d075c={},_0x1852e9=[],_0x2e778a=[],_0x2761a3=[],_0x1eb447=[];if(!_0x141e55(this[_0x353b40(0x1e9)],{'unitId':_0x2b7bfd,'subUnitId':_0x53713e}))return{'redos':_0x2e778a,'undos':_0x1852e9};let _0x5132ce=this[_0x353b40(0x182)][_0x353b40(0x191)](_0x2b7bfd,_0x53713e);if(!_0x5132ce||!((_0x4a7757=this[_0x353b40(0x182)][_0x353b40(0x21d)]()[_0x353b40(0x181)][_0x353b40(0x23d)](_0x2b7bfd))!=null&&(_0x4a7757=_0x4a7757[_0x353b40(0x23d)](_0x53713e))!=null&&_0x4a7757[_0x353b40(0x1f1)]))return{'redos':_0x2e778a,'undos':_0x1852e9};for(let [_0x4ade49,_0x8d4c3f]of _0x5132ce){let _0x1131b9=_0x8d4c3f['sparklines'];_0x1131b9[_0x353b40(0x21a)]((_0x2aa764,_0x59c83b,_0x124981)=>{const _0x1a1ce8=_0x353b40;if(_0x4cad01['intersects'](_0x1bc4b8,_0x124981)){_0x41f817['add'](_0x4ade49);let _0x1a1d5a=_0x2d075c[_0x4ade49];_0x1a1d5a||(_0x1a1d5a={'config':_0x8d4c3f[_0x1a1ce8(0x204)],'sparklines':_0x8d4c3f['sparklines'][_0x1a1ce8(0x1ef)]()},_0x2d075c[_0x4ade49]=_0x1a1d5a);let _0x1495e8=_0xc9b31f[_0x4ade49];_0x1495e8||(_0x1495e8={'config':_0x8d4c3f[_0x1a1ce8(0x204)],'sparklines':new _0xe21e9e(_0x8d4c3f[_0x1a1ce8(0x1f9)][_0x1a1ce8(0x1ef)]())},_0xc9b31f[_0x4ade49]=_0x1495e8);let _0x2dbb77=_0x3f1f73(_0x124981,{'id':_0x1ca201['id'],'params':_0x2abd6b});_0x2dbb77?_0x1495e8[_0x1a1ce8(0x1f9)][_0x1a1ce8(0x1f7)](_0x2aa764,_0x59c83b,_0x2dbb77):_0x1495e8['sparklines']['setValue'](_0x2aa764,_0x59c83b,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x37e527[_0x1a1ce8(0x1ad)]});}}),_0x1131b9[_0x353b40(0x21a)]((_0x25d910,_0x70f424,_0xe21f8d)=>{const _0x52008c=_0x353b40;if(_0x70f424<=_0x1bc4b8['endColumn']&&_0x70f424>=_0x1bc4b8[_0x52008c(0x19c)]){_0x41f817[_0x52008c(0x198)](_0x4ade49);let _0x9ab990=_0x2d075c[_0x4ade49];_0x9ab990||(_0x9ab990={'config':_0x8d4c3f[_0x52008c(0x204)],'sparklines':_0x8d4c3f[_0x52008c(0x1f9)]['clone']()},_0x2d075c[_0x4ade49]=_0x9ab990);let _0x44166d=_0xc9b31f[_0x4ade49];_0x44166d||(_0x44166d={'config':_0x8d4c3f[_0x52008c(0x204)],'sparklines':new _0xe21e9e(_0x8d4c3f[_0x52008c(0x1f9)][_0x52008c(0x1ef)]())},_0xc9b31f[_0x4ade49]=_0x44166d);}});}_0x41f817[_0x353b40(0x18c)]>0x0&&(_0x1eb447[_0x353b40(0x1be)]({'id':W['id'],'params':{'unitId':_0x2b7bfd,'subUnitId':_0x53713e,'groupIds':Array[_0x353b40(0x185)](_0x41f817),'isSingle':!0x1}}),_0x2761a3[_0x353b40(0x1be)]({'id':W['id'],'params':{'unitId':_0x2b7bfd,'subUnitId':_0x53713e,'groupIds':Array[_0x353b40(0x185)](_0x41f817),'isSingle':!0x1}}));let _0x17833c={},_0x1e404d=!0x1;return Object[_0x353b40(0x1dd)](_0xc9b31f)[_0x353b40(0x1db)](([_0x5eeb58,_0x640ddc])=>{const _0x486faf=_0x353b40;_0x640ddc['sparklines'][_0x486faf(0x18e)]()&&(_0x1e404d=!0x0,_0x640ddc[_0x486faf(0x1f9)][_0x486faf(0x20d)](_0x1bc4b8[_0x486faf(0x19c)],_0x1bc4b8[_0x486faf(0x19e)]-_0x1bc4b8['startColumn']+0x1),_0x17833c[_0x5eeb58]={'config':_0x640ddc['config'],'sparklines':_0x640ddc['sparklines'][_0x486faf(0x1ef)]()});}),_0x1e404d&&_0x2e778a[_0x353b40(0x1be)]({'id':U['id'],'params':{'unitId':_0x2b7bfd,'subUnitId':_0x53713e,'sparklineConfigMap':_0x17833c}}),Object[_0x353b40(0x1f0)](_0x2d075c)[_0x353b40(0x1de)]>0x0&&_0x1852e9[_0x353b40(0x1be)]({'id':U['id'],'params':{'unitId':_0x2b7bfd,'subUnitId':_0x53713e,'sparklineConfigMap':_0x2d075c}}),{'redos':_0x2e778a,'undos':_0x1852e9,'preRedos':_0x2761a3,'preUndos':_0x1eb447};}['_initCorrectRangeWithSparkline'](){const _0x260108=_0xf8c540;this['disposeWithMe'](this[_0x260108(0x1a3)][_0x260108(0x188)](_0x2cb635=>{const _0x2d0950=_0x260108;if(_0x2cb635['id']===_0x5f3f60['id']){let {unitId:_0x17a750,subUnitId:_0xfcbef8,range:_0x3e819b}=_0x2cb635[_0x2d0950(0x206)],_0x26cb9c=_0x3e819b['startColumn'],_0x42f781=_0x3e819b['endColumn']-_0x3e819b[_0x2d0950(0x19c)]+0x1,_0x2ebb7b=this[_0x2d0950(0x182)]['getSubUnitSparkline'](_0x17a750,_0xfcbef8);if(!_0x2ebb7b)return;for(let [_0x597680,_0x4d3b42]of _0x2ebb7b){this[_0x2d0950(0x182)][_0x2d0950(0x209)](_0x17a750,_0xfcbef8,_0x597680);let _0x2014fb=_0x4d3b42['sparklines'];_0x2014fb[_0x2d0950(0x21a)]((_0x1c337a,_0x9ae455,_0x5ec0fe)=>{const _0x923fba=_0x2d0950;let _0x4a8ab5={..._0x5ec0fe};_0x26cb9c<=_0x4a8ab5[_0x923fba(0x19c)]?(_0x4a8ab5['startColumn']+=_0x42f781,_0x4a8ab5['endColumn']+=_0x42f781):_0x26cb9c>_0x4a8ab5[_0x923fba(0x19e)]||(_0x4a8ab5[_0x923fba(0x19e)]+=_0x42f781),_0x2014fb[_0x923fba(0x1f7)](_0x1c337a,_0x9ae455,_0x4a8ab5);});let _0x1ac54=_0x2014fb[_0x2d0950(0x1d1)]();for(let _0x1b0275 in _0x1ac54){let _0x2084b5=_0x1ac54[Number(_0x1b0275)];if(!_0x2084b5)continue;let _0x211416=Object['keys'](_0x2084b5)[_0x2d0950(0x1ec)](Number),_0x5a3fd0=Math['max'](..._0x211416);for(let _0x404e23=_0x5a3fd0;_0x404e23>=_0x26cb9c;_0x404e23--)_0x404e23>=_0x26cb9c&&_0x2084b5[_0x404e23]&&(_0x2084b5[_0x404e23+_0x42f781]=_0x2084b5[_0x404e23],delete _0x2084b5[_0x404e23]);}this[_0x2d0950(0x182)]['updateSparklineExtraNum'](_0x17a750,_0xfcbef8,_0x597680);}}else{if(_0x2cb635['id']===_0x1bd3a5['id']){let {unitId:_0x58ecb5,subUnitId:_0x58eec4,range:_0x3fcd48}=_0x2cb635['params'],_0x5b02aa=_0x3fcd48[_0x2d0950(0x1a6)],_0x45d22a=_0x3fcd48[_0x2d0950(0x17f)]-_0x3fcd48[_0x2d0950(0x1a6)]+0x1,_0x59e24d=this[_0x2d0950(0x182)]['getSubUnitSparkline'](_0x58ecb5,_0x58eec4);if(!_0x59e24d)return;for(let [_0x1c7e51,_0x3edacc]of _0x59e24d){this[_0x2d0950(0x182)][_0x2d0950(0x209)](_0x58ecb5,_0x58eec4,_0x1c7e51);let _0x4b382c=_0x3edacc['sparklines'];_0x4b382c[_0x2d0950(0x21a)]((_0x39f20e,_0x1b1b42,_0x178723)=>{const _0x250dc4=_0x2d0950;let _0x58a88b={..._0x178723};_0x5b02aa<=_0x58a88b['startRow']?(_0x58a88b['startRow']+=_0x45d22a,_0x58a88b[_0x250dc4(0x17f)]+=_0x45d22a):_0x5b02aa>_0x58a88b[_0x250dc4(0x17f)]||(_0x58a88b['endRow']+=_0x45d22a),_0x4b382c[_0x250dc4(0x1f7)](_0x39f20e,_0x1b1b42,_0x58a88b);});let _0xdfb52c=_0x4b382c[_0x2d0950(0x1d1)](),_0x1ade45=Object[_0x2d0950(0x1f0)](_0xdfb52c)[_0x2d0950(0x1ec)](Number),_0xb7aaad=Math['max'](..._0x1ade45);for(let _0x575e85=_0xb7aaad;_0x575e85>=_0x5b02aa;_0x575e85--)_0x575e85>=_0x5b02aa&&_0xdfb52c[_0x575e85]&&(_0xdfb52c[_0x575e85+_0x45d22a]=_0xdfb52c[_0x575e85],delete _0xdfb52c[_0x575e85]);this[_0x2d0950(0x182)][_0x2d0950(0x23f)](_0x58ecb5,_0x58eec4,_0x1c7e51);}}else{if(_0x2cb635['id']===_0x1ca201['id']){let {range:_0x4de56e,unitId:_0x3d2275,subUnitId:_0x23f1e5}=_0x2cb635[_0x2d0950(0x206)],_0x1c558a=this['_sparklineDataSourceModel']['getSubUnitSparkline'](_0x3d2275,_0x23f1e5);if(!_0x1c558a)return;for(let [_0x49755f,_0x2736c2]of _0x1c558a){let _0x2b384d=_0x2736c2['sparklines'];_0x2b384d[_0x2d0950(0x21a)]((_0x466f0b,_0x1bed4d,_0x4d1b1c)=>{let _0x403df5=_0x3f1f73(_0x4d1b1c,_0x2cb635);_0x403df5?_0x2b384d['setValue'](_0x466f0b,_0x1bed4d,_0x403df5):_0x2b384d['setValue'](_0x466f0b,_0x1bed4d,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x37e527['NORMAL']});}),_0x2b384d['removeColumns'](_0x4de56e['startColumn'],_0x4de56e['endColumn']-_0x4de56e[_0x2d0950(0x19c)]+0x1);}this[_0x2d0950(0x182)]['reBuildAnchorCache'](_0x3d2275,_0x23f1e5);}else{if(_0x2cb635['id']===_0x4ffb76['id']){let {range:_0x43ec07,unitId:_0x35c222,subUnitId:_0xe6cf6a}=_0x2cb635[_0x2d0950(0x206)],_0x540f32=this[_0x2d0950(0x182)]['getSubUnitSparkline'](_0x35c222,_0xe6cf6a);if(!_0x540f32)return;for(let [_0x35bbca,_0x102f3a]of _0x540f32){let _0x377859=_0x102f3a[_0x2d0950(0x1f9)];_0x377859[_0x2d0950(0x21a)]((_0x2d7c66,_0x304a28,_0x1aba4a)=>{const _0x3c7a94=_0x2d0950;let _0x3b74de=_0x3f1f73(_0x1aba4a,_0x2cb635);_0x3b74de?_0x377859[_0x3c7a94(0x1f7)](_0x2d7c66,_0x304a28,_0x3b74de):_0x377859[_0x3c7a94(0x1f7)](_0x2d7c66,_0x304a28,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x37e527[_0x3c7a94(0x1ad)]});}),_0x377859[_0x2d0950(0x224)](_0x43ec07[_0x2d0950(0x1a6)],_0x43ec07['endRow']-_0x43ec07['startRow']+0x1);}this['_sparklineDataSourceModel'][_0x2d0950(0x1fa)](_0x35c222,_0xe6cf6a);}else{if(_0x2cb635['id']===_0x375f96['id']){let {unitId:_0x5d9d07,subUnitId:_0x13cedd,sourceRange:_0xc60dfb,targetRange:_0x58f279}=_0x2cb635[_0x2d0950(0x206)],_0x3686ea=this[_0x2d0950(0x182)]['getSubUnitSparkline'](_0x5d9d07,_0x13cedd);if(!_0x3686ea)return;for(let [_0x585a57,_0x446cec]of _0x3686ea){let _0xd4f04b=_0x446cec[_0x2d0950(0x1f9)];_0xd4f04b[_0x2d0950(0x21a)]((_0x2c5b28,_0x5ee953,_0x19ece1)=>{const _0x3ec9b8=_0x2d0950;let _0x36cfc8=_0x3f1f73(_0x19ece1,_0x2cb635);_0x36cfc8?_0xd4f04b['setValue'](_0x2c5b28,_0x5ee953,_0x36cfc8):_0xd4f04b['setValue'](_0x2c5b28,_0x5ee953,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x37e527[_0x3ec9b8(0x1ad)]});}),_0xd4f04b[_0x2d0950(0x1f3)](_0xc60dfb[_0x2d0950(0x19c)],_0xc60dfb[_0x2d0950(0x19e)]-_0xc60dfb[_0x2d0950(0x19c)]+0x1,_0x58f279['startColumn']);}this[_0x2d0950(0x182)][_0x2d0950(0x1fa)](_0x5d9d07,_0x13cedd);}else{if(_0x2cb635['id']===_0x2fb7e8['id']){let {unitId:_0x19288e,subUnitId:_0x1c4df8,sourceRange:_0x293d34,targetRange:_0x3044bb}=_0x2cb635['params'],_0x3200a4=this[_0x2d0950(0x182)][_0x2d0950(0x191)](_0x19288e,_0x1c4df8);if(!_0x3200a4)return;for(let [_0x294c9c,_0x191749]of _0x3200a4){let _0x36d36e=_0x191749['sparklines'];_0x36d36e['forValue']((_0x371514,_0x3c7859,_0x15a2c7)=>{const _0x12f697=_0x2d0950;let _0x12c04a=_0x3f1f73(_0x15a2c7,_0x2cb635);_0x12c04a?_0x36d36e[_0x12f697(0x1f7)](_0x371514,_0x3c7859,_0x12c04a):_0x36d36e[_0x12f697(0x1f7)](_0x371514,_0x3c7859,{'startRow':-0x270f,'endRow':-0x270f,'startColumn':-0x270f,'endColumn':-0x270f,'rangeType':_0x37e527['NORMAL']});}),_0x36d36e[_0x2d0950(0x1e2)](_0x293d34[_0x2d0950(0x1a6)],_0x293d34[_0x2d0950(0x17f)]-_0x293d34[_0x2d0950(0x1a6)]+0x1,_0x3044bb[_0x2d0950(0x1a6)]);}this[_0x2d0950(0x182)][_0x2d0950(0x1fa)](_0x19288e,_0x1c4df8);}else{if(_0x2cb635['id']===_0x43e279['id']){let {fromRange:_0x2c1181,toRange:_0x186e9c,unitId:_0x2b49c0,from:_0x23b098,to:_0x384701}=_0x2cb635[_0x2d0950(0x206)];if(_0x23b098['subUnitId']!==_0x384701[_0x2d0950(0x1b3)])return;let _0x28b702=_0x23b098[_0x2d0950(0x1b3)],{startRow:_0x1883c3,endRow:_0x23f466,startColumn:_0x11010d,endColumn:_0xf789b1}=_0x2c1181,{startRow:_0x52cdea,startColumn:_0x190232}=_0x186e9c,_0x536df0=_0x52cdea-_0x1883c3,_0x18f046=_0x190232-_0x11010d,_0x325aa9=this['_sparklineDataSourceModel'][_0x2d0950(0x191)](_0x2b49c0,_0x28b702);if(!(_0x325aa9!=null&&_0x325aa9[_0x2d0950(0x18c)]))return;for(let _0xe6689b=_0x1883c3;_0xe6689b<=_0x23f466;_0xe6689b++)for(let _0x5dd894=_0x11010d;_0x5dd894<=_0xf789b1;_0x5dd894++){let _0x23add3=this['_sparklineDataSourceModel']['getSparkline'](_0x2b49c0,_0x28b702,_0xe6689b,_0x5dd894);if(_0x23add3){let _0x5690ba=this[_0x2d0950(0x182)]['getSparklineById'](_0x2b49c0,_0x28b702,_0x23add3);if(_0x5690ba){let _0x246167=_0x5690ba['sparklines']['getValue'](_0xe6689b,_0x5dd894);_0x246167&&(_0x5690ba['sparklines'][_0x2d0950(0x1f7)](_0xe6689b+_0x536df0,_0x5dd894+_0x18f046,_0x246167),_0x5690ba[_0x2d0950(0x1f9)][_0x2d0950(0x21c)](_0xe6689b,_0x5dd894));}}}for(let [_0x18e43c,_0x3a6124]of _0x325aa9){let _0x1141e6=_0x3a6124[_0x2d0950(0x1f9)];_0x1141e6[_0x2d0950(0x21a)]((_0x2cc7fa,_0x45ac97,_0x40f659)=>{const _0x303725=_0x2d0950;let _0x1ce421={..._0x40f659};_0x4cad01[_0x303725(0x244)](_0x2c1181,_0x40f659)&&(_0x1ce421[_0x303725(0x1a6)]+=_0x536df0,_0x1ce421[_0x303725(0x17f)]+=_0x536df0,_0x1ce421[_0x303725(0x19c)]+=_0x18f046,_0x1ce421[_0x303725(0x19e)]+=_0x18f046),_0x1141e6[_0x303725(0x1f7)](_0x2cc7fa,_0x45ac97,_0x1ce421);});}this[_0x2d0950(0x182)][_0x2d0950(0x1fa)](_0x2b49c0,_0x28b702);}}}}}}}}));}};function _0x118e(){const _0x45791d=['_initSnapshot','specialty','config','_exclusiveRangeService','params','2859430NCfjPB','unitId','clearSparklineCache','_sparklineAnchorMap','remove','themeType','removeColumns','_initClearWithSparkline','function','range','rgb(46,187,122)','3838352WbXSSU','hasValue','getCellRaw','symbol','assign','getConfig','_injector','groupId','forValue','delete','realDeleteValue','getSparklineCache','_initDependencies','packageName','fresh','deepClone','BAR_CHART','_getRefRangeMutationsByDeleteCols','removeRows','sheet.command.add-sparkline','3589146ugZnUY','SPECIALTY','BOOLEAN','13796Vnbxtw','string','emptyShowAs','NUMBER','addSparkline','DISTINCTIVE','max','rgb(236,100,169)','standard','getCurrentSelections','lastPoint','removeSparkline','getValue','setAlpha','nonNumShowAs','interceptCommand','rgb(244,104,249)','FORCE_STRING','sparklineModel','value','get','min','updateSparklineExtraNum','sheet.command.set-sparkline','changeDataSourceInfo','values','rgb(49,106,246)','contains','endRow','_sheetSelectionService','sparklineAnchorMap','_sparklineDataSourceModel','ranges','CUSTOM','from','exclusiveRangesChange$','getOwnPropertyDescriptor','onCommandExecuted','PROFIT_AND_LOSS_CHART','stringify','extremumMax','size','asObservable','getSizeOf','_initExclusiveRangeChange','constructor','getSubUnitSparkline','_ensureAnchorMatrix','iterator','firstPoint','getCurrentUnitOfType','getSparklineById','sheet.mutation.add-sparkline','add','defineProperty','getSparkline','removePartSparkline','startColumn','UNIVER_SHEET','endColumn','811611iBmoOX','highPoint','45SXPYXj','492WaDpso','_commandService','getSheetId','containHiddenCells','startRow','updateConfig$','getSheetBySheetId','object','markersPoint','connect_with_line','distinctive','NORMAL','_sparklineModel','decorate','pluginName','_ensureConfigMap','1.0.1','subUnitId','prototype','sheet.mutation.set-sparkline','toRgbString','column','registerRefRange','STRING','_config','zero_value','_updateConfig$','toJSON','push','_onRefRangeChange','setConfig','rgb(80,102,248)','result','soft','actualRow','_initSheetChange','_sheetInterceptorService','_initRegisterCommand','CUSTOM_EXTREMUM','709735DOtyUj','_refRangeService','_configService','actualColumn','_initDataChangeListener','parse','number','has','getMatrix','disposableCollection','lowPoint','LINE_CHART','PIE_CHART','303572FKJkkQ','getCell','SHEET_SPARKLINE_PLUGIN','pushUndoRedo','foreach','forEach','GROUP_EXTREMUM','entries','length','_getRefRangeMutationsByDeleteRows','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','moveRows','spacing','intersects','14EPLGHB','type','deleteUnit','registerCommand','_univerInstanceService','_resourceManagerService','version','map','getRowVisible','set','clone','keys','matrix','extremumMin','moveColumns','toPrimitive','COMMAND','next','setValue','setSparkline','sparklines','reBuildAnchorCache','MUTATION','rgb(252,117,60)','rgb(248,190,21)','CONNECT_WITH_LINE','row','SOFT','onReady'];_0x118e=function(){return _0x45791d;};return _0x118e();}X=V([B(0x0,_0x41e47c(_0x48a448)),B(0x1,_0x41e47c(_0x9e95fe)),B(0x2,_0x58742b),B(0x3,_0x41e47c(H))],X);let Z=class extends _0x598b89{constructor(_0x42f974,_0x42d6f2,_0x969c0){const _0x1422c8=_0xf8c540;super(),this[_0x1422c8(0x1e9)]=_0x42f974,this[_0x1422c8(0x1c6)]=_0x42d6f2,this['_sparklineDataSourceModel']=_0x969c0,this[_0x1422c8(0x1c5)]();}[_0xf8c540(0x1c5)](){const _0x260c90=_0xf8c540;this[_0x260c90(0x1e0)](this['_sheetInterceptorService'][_0x260c90(0x238)]({'getMutations':_0x15c59a=>{const _0xcd6e4d=_0x260c90;if(_0x15c59a['id']===_0x405f1a['id']){var _0x5ab45d;let _0x4c2536=_0x15c59a[_0xcd6e4d(0x206)],_0xc21ef1=_0x4c2536[_0xcd6e4d(0x208)]||this['_univerInstanceService']['getCurrentUnitOfType'](_0x1b601f['UNIVER_SHEET'])['getUnitId'](),_0x1c38e1=_0x4c2536[_0xcd6e4d(0x1b3)]||((_0x5ab45d=this[_0xcd6e4d(0x1e9)][_0xcd6e4d(0x195)](_0x1b601f[_0xcd6e4d(0x19d)])['getActiveSheet']())==null?void 0x0:_0x5ab45d[_0xcd6e4d(0x1a4)]());if(!_0xc21ef1||!_0x1c38e1)return{'redos':[],'undos':[]};let _0x5f00d5=this[_0xcd6e4d(0x182)]['getSubUnitSparkline'](_0xc21ef1,_0x1c38e1);if(!_0x5f00d5)return{'redos':[],'undos':[]};let _0x3e9454=new Set(),_0x45e982={};for(let [_0x339de2,_0x3898ab]of _0x5f00d5)_0x3e9454['add'](_0x339de2),_0x45e982[_0x339de2]={'config':_0x35871f[_0xcd6e4d(0x221)](_0x3898ab[_0xcd6e4d(0x204)]),'sparklines':_0x35871f['deepClone'](_0x3898ab[_0xcd6e4d(0x1f9)]['clone']())};if(_0x3e9454[_0xcd6e4d(0x18c)])return{'redos':[{'id':W['id'],'params':{'unitId':_0xc21ef1,'subUnitId':_0x1c38e1,'groupIds':Array[_0xcd6e4d(0x185)](_0x3e9454),'isSingle':!0x1}}],'undos':[{'id':U['id'],'params':{'unitId':_0xc21ef1,'subUnitId':_0x1c38e1,'sparklineConfigMap':_0x45e982}}]};}else{if(_0x15c59a['id']===_0x4737f2['id']){let {unitId:_0x185f37,subUnitId:_0x5d7b28,targetSubUnitId:_0x2cc850}=_0x15c59a[_0xcd6e4d(0x206)];if(!_0x185f37||!_0x5d7b28||!_0x2cc850)return{'redos':[],'undos':[]};let _0x2cc8e2=this[_0xcd6e4d(0x182)]['getSubUnitSparkline'](_0x185f37,_0x5d7b28);if(!_0x2cc8e2)return{'redos':[],'undos':[]};let _0x1963d1=new Set(),_0x34fde5={};for(let [_0x2b0346,_0x41315a]of _0x2cc8e2){let _0x548986='g_'+_0x5459de(0x6);_0x1963d1[_0xcd6e4d(0x198)](_0x2b0346),_0x34fde5[_0x548986]={'config':_0x35871f['deepClone'](_0x41315a[_0xcd6e4d(0x204)]),'sparklines':_0x35871f[_0xcd6e4d(0x221)](_0x41315a['sparklines'][_0xcd6e4d(0x1ef)]())};}if(_0x1963d1['size'])return{'redos':[{'id':U['id'],'params':{'unitId':_0x185f37,'subUnitId':_0x2cc850,'sparklineConfigMap':_0x34fde5}}],'undos':[{'id':W['id'],'params':{'unitId':_0x185f37,'subUnitId':_0x2cc850,'groupIds':Array[_0xcd6e4d(0x185)](_0x1963d1),'isSingle':!0x1}}]};}}return{'redos':[],'undos':[]};}}));}};Z=V([B(0x0,_0x41e47c(_0x58742b)),B(0x1,_0x41e47c(_0xc5af45)),B(0x2,_0x41e47c(H))],Z);let Q=class extends _0x598b89{constructor(_0x4e8ded,_0x4e3c7a){const _0x4b44c1=_0xf8c540;super(),this[_0x4b44c1(0x1ea)]=_0x4e8ded,this[_0x4b44c1(0x182)]=_0x4e3c7a,this[_0x4b44c1(0x202)]();}['_initSnapshot'](){const _0xcb5e1=_0xf8c540;this[_0xcb5e1(0x1e0)](this[_0xcb5e1(0x1ea)]['registerPluginResource']({'toJson':_0x25a2cc=>{const _0x34feaa=_0xcb5e1;let _0xd998a6=this[_0x34feaa(0x182)]['toJSON'](_0x25a2cc);return _0xd998a6?JSON[_0x34feaa(0x18a)](_0xd998a6):'';},'parseJson':_0x1cb657=>_0x1cb657?JSON[_0xcb5e1(0x1ce)](_0x1cb657):{},'pluginName':I,'businesses':[_0x1b601f[_0xcb5e1(0x19d)]],'onLoad':(_0x577689,_0x4d56bf)=>{const _0x300d7c=_0xcb5e1;this[_0x300d7c(0x182)]['fromJSON'](_0x4d56bf);},'onUnLoad':_0x28fbbe=>{const _0x685f37=_0xcb5e1;this['_sparklineDataSourceModel'][_0x685f37(0x1e7)](_0x28fbbe);}}));}};Q=V([B(0x0,_0x41e47c(_0x193b4d)),B(0x1,_0x41e47c(H))],Q);let $=class extends _0x5829de{constructor(_0x53d360=Le,_0x16f11f,_0x1693e2,_0x35f98b){const _0x10bf86=_0xf8c540;super(),this[_0x10bf86(0x1ba)]=_0x53d360,this[_0x10bf86(0x218)]=_0x16f11f,this[_0x10bf86(0x1cb)]=_0x1693e2,this[_0x10bf86(0x1a3)]=_0x35f98b;let {..._0x5b665b}=_0xa06d4a({},Le,this[_0x10bf86(0x1ba)]);this['_configService'][_0x10bf86(0x1c0)]('sheets-sparkline.config',_0x5b665b),this['_initDependencies'](),this[_0x10bf86(0x1c7)]();}[_0xf8c540(0x21e)](){const _0x3e7764=_0xf8c540;[[H],[q],[Y],[K],[X],[J],[Z],[Q]][_0x3e7764(0x1db)](_0x4907c5=>{const _0x311b28=_0x3e7764;this['_injector'][_0x311b28(0x198)](_0x4907c5);}),_0x1bf0aa(this[_0x3e7764(0x218)],[[Q]]);}[_0xf8c540(0x201)](){const _0xdc7bc0=_0xf8c540;_0x1bf0aa(this[_0xdc7bc0(0x218)],[[q],[Y],[K],[X],[J],[Z]]);}[_0xf8c540(0x1c7)](){const _0x3a62d6=_0xf8c540;[Me,U,Ne,W,Pe,G][_0x3a62d6(0x1db)](_0x113257=>this['_commandService'][_0x3a62d6(0x1e8)](_0x113257));}};z($,_0xf8c540(0x1b0),I),z($,_0xf8c540(0x21f),Fe),z($,_0xf8c540(0x1eb),Ie),z($,_0xf8c540(0x1e6),_0x1b601f[_0xf8c540(0x19d)]),$=V([_0x52b941(_0x2cfd29,_0x2278fb),B(0x1,_0x41e47c(_0x7f8a13)),B(0x2,_0x1c25ec),B(0x3,_0x41e47c(_0x48a448))],$);export{Me as AddSheetSparklineCommand,U as AddSheetSparklineMutation,I as PLUGIN_NAME,Ne as RemoveSheetSparklineCommand,W as RemoveSheetSparklineMutation,Pe as SetSheetSparklineCommand,G as SetSheetSparklineMutation,Oe as SpacialShowAsEnum,H as SparklineDataSourceModel,ke as SparklineExtremumTypeEnum,Te as SparklinePointsNames,L as SparklineThemeMapping,Ee as SparklineThemeTypeEnum,De as SparklineTypeEnum,$ as UniverSheetSparklinePlugin};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { IRange } from '@univerjs/core';
|
|
1
|
+
import type { IAccessor, IRange } from '@univerjs/core';
|
|
2
2
|
import { ObjectMatrix } from '@univerjs/core';
|
|
3
|
+
export declare function canEditSparkline(accessor: IAccessor): boolean;
|
|
3
4
|
export declare function getSparklinePlacement(sourceRanges: IRange[], targetRanges: IRange[]): ObjectMatrix<IRange>;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4b79(_0x343b70,_0x10e782){_0x343b70=_0x343b70-0xef;const _0x1159e9=_0x1159();let _0x4b7949=_0x1159e9[_0x343b70];return _0x4b7949;}function _0x1159(){const _0x414c19=['changeDataSource','730444wuqVRT','setConfig','createInstance','extend','registerEventHandler','ICommandService','getSubUnitSparkline','object','AddSheetSparklineCommand','RemoveSheetSparklineCommand','46txUHqZ','SetSheetSparklineCommand','sparklines','12048883sjkxOV','_col','onCommandExecuted','@univerjs/core','6oyfMvg','@univerjs/core/facade','getActiveWorkbook','52550wYXRdw','getSparklineByCell','getSparkline','length','Inject','SheetSparklineChanged','disposeWithMe','16219KLrQwP','FSparklineGroup','7LNhXVz','getUnitId','FEventName','FWorksheet','8229690FRrljM','decorate','deepClone','_workbook','map','group','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','item','SparklineDataSourceModel','@univerjs/sheets','ranges','sparklineAnchorMap','2895896TquSlJ','Tools','_subUnitId','getValue','removeSparklineGroup','UniverProSheetsSparklineFacade','_commandService','FUniver','SparklineTypeEnum','_groupId','removeSparkline','get','syncExecuteCommand','Module','from','_worksheet','UniverSheets','707450MZAPSG','getAllSubSparkline','isChangeDataSource','params','addSparkline','function','getSparklineGroupByCell','getCurrentSelections','_initialize','composeSparkline','add','FEnum','_injector','startRow','_row','getSheetId','forEach','UniverCore','Event','Injector','@univerjs-pro/sheets-sparkline','executeCommand','6WcTeoI','defineProperty','UniverSheetsFacade','SheetsSelectionsService','startColumn','getOwnPropertyDescriptor','_unitId','FSparkline','getSparklineById','UniverProSheetsSparkline'];_0x1159=function(){return _0x414c19;};return _0x1159();}(function(_0x58cd2a,_0x35fe85){const _0x397fcc=_0x4b79,_0x41b114=_0x58cd2a();while(!![]){try{const _0x12d558=-parseInt(_0x397fcc(0x102))/0x1*(-parseInt(_0x397fcc(0xf1))/0x2)+parseInt(_0x397fcc(0xf8))/0x3*(parseInt(_0x397fcc(0x146))/0x4)+parseInt(_0x397fcc(0x125))/0x5*(parseInt(_0x397fcc(0x13b))/0x6)+parseInt(_0x397fcc(0x104))/0x7*(-parseInt(_0x397fcc(0x114))/0x8)+-parseInt(_0x397fcc(0x108))/0x9+parseInt(_0x397fcc(0xfb))/0xa+parseInt(_0x397fcc(0xf4))/0xb;if(_0x12d558===_0x35fe85)break;else _0x41b114['push'](_0x41b114['shift']());}catch(_0xd57191){_0x41b114['push'](_0x41b114['shift']());}}}(_0x1159,0xabdd8),function(_0x195cb3,_0x1de09d){const _0x13ffd4=_0x4b79;typeof exports=='object'&&typeof module<'u'?_0x1de09d(exports,require('@univerjs-pro/sheets-sparkline'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs/sheets')):typeof define==_0x13ffd4(0x12a)&&define['amd']?define(['exports',_0x13ffd4(0x139),_0x13ffd4(0xf7),'@univerjs/sheets/facade',_0x13ffd4(0xf9),_0x13ffd4(0x111)],_0x1de09d):(_0x195cb3=typeof globalThis<'u'?globalThis:_0x195cb3||self,_0x1de09d(_0x195cb3[_0x13ffd4(0x119)]={},_0x195cb3[_0x13ffd4(0x144)],_0x195cb3[_0x13ffd4(0x136)],_0x195cb3[_0x13ffd4(0x13d)],_0x195cb3['UniverCoreFacade'],_0x195cb3[_0x13ffd4(0x124)]));}(this,function(_0x5a4f76,_0xef0f29,_0x4aba10,_0x202ce1,_0x528074,_0x2626eb){const _0x5ed708=_0x4b79;Object[_0x5ed708(0x13c)](_0x5a4f76,Symbol['toStringTag'],{'value':_0x5ed708(0x121)});function _0x241bda(_0x5daafb,_0x479ec3){return function(_0x401090,_0x3678a7){_0x479ec3(_0x401090,_0x3678a7,_0x5daafb);};}function _0x1c8f55(_0x590df1,_0x2be3b6,_0x5599ad,_0x30d065){const _0x1aef87=_0x5ed708;var _0x5d7fdd=arguments['length'],_0x1b364d=_0x5d7fdd<0x3?_0x2be3b6:_0x30d065===null?_0x30d065=Object[_0x1aef87(0x140)](_0x2be3b6,_0x5599ad):_0x30d065,_0x5d2680;if(typeof Reflect==_0x1aef87(0x14d)&&typeof Reflect[_0x1aef87(0x109)]=='function')_0x1b364d=Reflect[_0x1aef87(0x109)](_0x590df1,_0x2be3b6,_0x5599ad,_0x30d065);else{for(var _0xe1920b=_0x590df1['length']-0x1;_0xe1920b>=0x0;_0xe1920b--)(_0x5d2680=_0x590df1[_0xe1920b])&&(_0x1b364d=(_0x5d7fdd<0x3?_0x5d2680(_0x1b364d):_0x5d7fdd>0x3?_0x5d2680(_0x2be3b6,_0x5599ad,_0x1b364d):_0x5d2680(_0x2be3b6,_0x5599ad))||_0x1b364d);}return _0x5d7fdd>0x3&&_0x1b364d&&Object['defineProperty'](_0x2be3b6,_0x5599ad,_0x1b364d),_0x1b364d;}let _0x61b255=class{constructor(_0x4fde19,_0x3302ab,_0x3266c7,_0xd297e,_0x225519,_0x2c5184){const _0x20fc9e=_0x5ed708;this[_0x20fc9e(0x141)]=_0x4fde19,this['_subUnitId']=_0x3302ab,this[_0x20fc9e(0x11d)]=_0x3266c7,this[_0x20fc9e(0x133)]=_0xd297e,this['_col']=_0x225519,this['_injector']=_0x2c5184;}[_0x5ed708(0x145)](_0x419d08,_0x2e0254){const _0x1a7e8d=_0x5ed708;let _0x415b1a=this[_0x1a7e8d(0x131)][_0x1a7e8d(0x11f)](_0xef0f29[_0x1a7e8d(0x110)]),_0x2f41af=this[_0x1a7e8d(0x131)]['get'](_0x4aba10[_0x1a7e8d(0x14b)]),_0xf23a05=_0x415b1a[_0x1a7e8d(0x143)](this[_0x1a7e8d(0x141)],this[_0x1a7e8d(0x116)],this['_groupId']);if(!_0xf23a05)return;let _0x1e4e38={'config':_0xf23a05,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x1a7e8d(0x11d)],'resetType':_0x1a7e8d(0x10f),'sourceRanges':[_0x419d08],'targetRanges':[_0x2e0254],'primary':{'startRow':this['_row'],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this['_col'],'actualRow':this[_0x1a7e8d(0x133)],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x2f41af[_0x1a7e8d(0x120)](_0xef0f29[_0x1a7e8d(0xf2)]['id'],_0x1e4e38),this['_row']=_0x2e0254[_0x1a7e8d(0x132)],this[_0x1a7e8d(0xf5)]=_0x2e0254[_0x1a7e8d(0x13f)],this;}[_0x5ed708(0x11e)](){const _0x49df0c=_0x5ed708;let _0x4b5697=this[_0x49df0c(0x131)]['get'](_0x4aba10[_0x49df0c(0x14b)]),_0x3f61a3={'isSingle':!0x0,'ranges':[{'startRow':this[_0x49df0c(0x133)],'startColumn':this[_0x49df0c(0xf5)],'endRow':this[_0x49df0c(0x133)],'endColumn':this[_0x49df0c(0xf5)]}]};_0x4b5697[_0x49df0c(0x120)](_0xef0f29['RemoveSheetSparklineCommand']['id'],_0x3f61a3);}};_0x61b255=_0x1c8f55([_0x241bda(0x5,(0x0,_0x4aba10[_0x5ed708(0xff)])(_0x4aba10[_0x5ed708(0x138)]))],_0x61b255);let _0x13f1b4=class{constructor(_0x502e27,_0x673d5c,_0x4e7327,_0x4abb5d,_0x34f518,_0xb55276){const _0x1b7310=_0x5ed708;this[_0x1b7310(0x141)]=_0x502e27,this['_subUnitId']=_0x673d5c,this[_0x1b7310(0x11d)]=_0x4e7327,this['_row']=_0x4abb5d,this['_col']=_0x34f518,this[_0x1b7310(0x131)]=_0xb55276;}['changeDataSource'](_0x13b7fe,_0x2784a9){const _0x26bc50=_0x5ed708;let _0xd6ce41=this[_0x26bc50(0x131)][_0x26bc50(0x11f)](_0xef0f29[_0x26bc50(0x110)]),_0x4ee261=this['_injector'][_0x26bc50(0x11f)](_0x4aba10[_0x26bc50(0x14b)]),_0x9cd8fe=_0xd6ce41[_0x26bc50(0x143)](this['_unitId'],this['_subUnitId'],this[_0x26bc50(0x11d)]);if(!_0x9cd8fe)return;let _0x2c3b95={'config':_0x9cd8fe,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this[_0x26bc50(0x11d)],'resetType':_0x26bc50(0x10d),'sourceRanges':_0x13b7fe,'targetRanges':_0x2784a9,'primary':{'startRow':this['_row'],'startColumn':this[_0x26bc50(0xf5)],'endRow':this[_0x26bc50(0x133)],'endColumn':this['_col'],'actualRow':this[_0x26bc50(0x133)],'actualColumn':this[_0x26bc50(0xf5)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x4ee261[_0x26bc50(0x120)](_0xef0f29['SetSheetSparklineCommand']['id'],_0x2c3b95),this['_row']=_0x2784a9[0x0][_0x26bc50(0x132)],this['_col']=_0x2784a9[0x0][_0x26bc50(0x13f)],this;}[_0x5ed708(0x118)](){const _0x4f0258=_0x5ed708;let _0x4c48a5=this['_injector'][_0x4f0258(0x11f)](_0x4aba10['ICommandService']),_0x55bb51={'isSingle':!0x1,'ranges':[{'startRow':this[_0x4f0258(0x133)],'startColumn':this['_col'],'endRow':this[_0x4f0258(0x133)],'endColumn':this['_col']}]};_0x4c48a5[_0x4f0258(0x120)](_0xef0f29[_0x4f0258(0xf0)]['id'],_0x55bb51);}[_0x5ed708(0x147)](_0x2b42ce){const _0x24115f=_0x5ed708;let _0x545fbb=this[_0x24115f(0x131)][_0x24115f(0x11f)](_0xef0f29[_0x24115f(0x110)])[_0x24115f(0x143)](this[_0x24115f(0x141)],this[_0x24115f(0x116)],this[_0x24115f(0x11d)]);if(_0x545fbb){let _0x283f2a={'config':{'config':_0x2b42ce,'sparklines':_0x545fbb[_0x24115f(0xf3)]},'isChangeDataSource':!0x1};this[_0x24115f(0x131)][_0x24115f(0x11f)](_0x4aba10[_0x24115f(0x14b)])[_0x24115f(0x120)](_0xef0f29['SetSheetSparklineCommand']['id'],_0x283f2a);}return this;}};_0x13f1b4=_0x1c8f55([_0x241bda(0x5,(0x0,_0x4aba10[_0x5ed708(0xff)])(_0x4aba10[_0x5ed708(0x138)]))],_0x13f1b4);var _0x59217c=class extends _0x202ce1['FWorksheet']{[_0x5ed708(0x129)](_0x13fdf4,_0x45f722,_0x4efde3){const _0x446ff9=_0x5ed708;if(this[_0x446ff9(0x11a)][_0x446ff9(0x120)](_0xef0f29[_0x446ff9(0xef)]['id'],{'sourceRanges':_0x13fdf4,'targetRanges':_0x45f722,'targetInfo':{'unitId':this[_0x446ff9(0x10b)][_0x446ff9(0x105)](),'subUnitId':this[_0x446ff9(0x123)]['getSheetId']()},'config':{'type':_0x4efde3}})){let {startRow:_0x1707a7,startColumn:_0xa791bd}=_0x45f722[0x0];return this[_0x446ff9(0xfc)](_0x1707a7,_0xa791bd);}}[_0x5ed708(0x126)](){const _0x5de4b9=_0x5ed708;return this[_0x5de4b9(0x131)][_0x5de4b9(0x11f)](_0xef0f29['SparklineDataSourceModel'])[_0x5de4b9(0x14c)](this[_0x5de4b9(0x10b)][_0x5de4b9(0x105)](),this[_0x5de4b9(0x123)][_0x5de4b9(0x134)]());}[_0x5ed708(0x12e)](_0x2a75f8){const _0x2672d1=_0x5ed708;let _0x199284=this[_0x2672d1(0x131)][_0x2672d1(0x11f)](_0xef0f29[_0x2672d1(0x110)]),_0x341903;for(let _0x2eda92=0x0;_0x2eda92<_0x2a75f8['length'];_0x2eda92++){let {startRow:_0x3a7a30,endRow:_0x1bdb2e,startColumn:_0x1ff3c9,endColumn:_0x5ee53b}=_0x2a75f8[_0x2eda92];for(let _0x2134f5=_0x3a7a30;_0x2134f5<=_0x1bdb2e;_0x2134f5++)for(let _0x3b06a7=_0x1ff3c9;_0x3b06a7<=_0x5ee53b;_0x3b06a7++){let _0x500f03=_0x199284[_0x2672d1(0xfd)](this[_0x2672d1(0x10b)]['getUnitId'](),this['_worksheet']['getSheetId'](),_0x2134f5,_0x3b06a7);if(_0x500f03){let _0x46d4f8=_0x199284[_0x2672d1(0x143)](this[_0x2672d1(0x10b)][_0x2672d1(0x105)](),this[_0x2672d1(0x123)][_0x2672d1(0x134)](),_0x500f03);if(_0x46d4f8){_0x341903=_0x4aba10['Tools'][_0x2672d1(0x10a)](_0x46d4f8);break;}}}}_0x341903&&this[_0x2672d1(0x11a)]['executeCommand'](_0xef0f29[_0x2672d1(0xf2)]['id'],{'ranges':_0x2a75f8,'combine':!0x0,'config':_0x341903,'isChangeDataSource':!0x1});}['unComposeSparkline'](_0x932f5a){const _0x24dea3=_0x5ed708;let _0x3e656e=this['_injector'][_0x24dea3(0x11f)](_0xef0f29[_0x24dea3(0x110)]),_0xfdaa1c;for(let _0x232e1b=0x0;_0x232e1b<_0x932f5a[_0x24dea3(0xfe)];_0x232e1b++){let {startRow:_0x423040,endRow:_0x1b6662,startColumn:_0x4046da,endColumn:_0x5a0c72}=_0x932f5a[_0x232e1b];for(let _0x239d46=_0x423040;_0x239d46<=_0x1b6662;_0x239d46++)for(let _0x3b5c9d=_0x4046da;_0x3b5c9d<=_0x5a0c72;_0x3b5c9d++){let _0x3371c4=_0x3e656e[_0x24dea3(0xfd)](this[_0x24dea3(0x10b)]['getUnitId'](),this[_0x24dea3(0x123)][_0x24dea3(0x134)](),_0x239d46,_0x3b5c9d);if(_0x3371c4){let _0xbe0971=_0x3e656e[_0x24dea3(0x143)](this[_0x24dea3(0x10b)][_0x24dea3(0x105)](),this[_0x24dea3(0x123)][_0x24dea3(0x134)](),_0x3371c4);if(_0xbe0971){_0xfdaa1c=_0x4aba10[_0x24dea3(0x115)][_0x24dea3(0x10a)](_0xbe0971);break;}}}}_0xfdaa1c||this[_0x24dea3(0x11a)][_0x24dea3(0x13a)](_0xef0f29['SetSheetSparklineCommand']['id'],{'ranges':_0x932f5a,'unCombine':!0x0,'config':_0xfdaa1c,'isChangeDataSource':!0x1});}[_0x5ed708(0xfc)](_0x192f1e,_0x3e61fc){const _0x2bbacf=_0x5ed708;let _0x3680b1=this['_injector'][_0x2bbacf(0x11f)](_0xef0f29[_0x2bbacf(0x110)]),_0x386bb5=this['_workbook'][_0x2bbacf(0x105)](),_0x1f6be9=this['_worksheet'][_0x2bbacf(0x134)](),_0x33942f=_0x3680b1['getSparkline'](_0x386bb5,_0x1f6be9,_0x192f1e,_0x3e61fc);if(_0x33942f)return this[_0x2bbacf(0x131)][_0x2bbacf(0x148)](_0x61b255,_0x386bb5,_0x1f6be9,_0x33942f,_0x192f1e,_0x3e61fc);}[_0x5ed708(0x12b)](_0x522500,_0x4c2e52){const _0x5d1048=_0x5ed708;let _0xe38a29=this['_injector'][_0x5d1048(0x11f)](_0xef0f29[_0x5d1048(0x110)]),_0x3227c1=this[_0x5d1048(0x10b)]['getUnitId'](),_0xdcac8a=this['_worksheet'][_0x5d1048(0x134)](),_0x100bdf=_0xe38a29[_0x5d1048(0xfd)](_0x3227c1,_0xdcac8a,_0x522500,_0x4c2e52);if(_0x100bdf)return this['_injector'][_0x5d1048(0x148)](_0x13f1b4,_0x3227c1,_0xdcac8a,_0x100bdf,_0x522500,_0x4c2e52);}};_0x202ce1[_0x5ed708(0x107)]['extend'](_0x59217c);var _0x135862=class extends _0x528074[_0x5ed708(0x130)]{get[_0x5ed708(0x11c)](){const _0x5be2e1=_0x5ed708;return _0xef0f29[_0x5be2e1(0x11c)];}};_0x528074[_0x5ed708(0x130)][_0x5ed708(0x149)](_0x135862);var _0x9a8c9c=class extends _0x528074[_0x5ed708(0x106)]{get['SheetSparklineChanged'](){return'SheetSparklineChanged';}};_0x528074['FEventName']['extend'](_0x9a8c9c);var _0x17dcb2=class extends _0x528074[_0x5ed708(0x11b)]{[_0x5ed708(0x12d)](_0x3f732e){const _0x175d91=_0x5ed708;let _0x4e03bc=_0x3f732e['get'](_0x4aba10[_0x175d91(0x14b)]);this[_0x175d91(0x101)](this[_0x175d91(0x14a)](this[_0x175d91(0x137)][_0x175d91(0x100)],()=>_0x4e03bc[_0x175d91(0xf6)](_0x134e1d=>{const _0x22c2c9=_0x175d91;if(_0x134e1d['id']===_0xef0f29[_0x22c2c9(0xf2)]['id']){let _0x38c559=_0x134e1d[_0x22c2c9(0x128)];if(!_0x38c559[_0x22c2c9(0x127)]){var _0x40acd7;let _0x1ebbe3=this[_0x22c2c9(0xfa)](),_0x2fba3d=_0x1ebbe3==null?void 0x0:_0x1ebbe3['getActiveSheet']();if(!_0x1ebbe3||!_0x2fba3d)return;let _0x564f37=_0x1ebbe3['getId'](),_0x43f50c=_0x2fba3d[_0x22c2c9(0x134)](),_0x14c562=this[_0x22c2c9(0x131)]['get'](_0x2626eb[_0x22c2c9(0x13e)]),_0x1a4a60=this[_0x22c2c9(0x131)][_0x22c2c9(0x11f)](_0xef0f29['SparklineDataSourceModel']),_0x40831e=(_0x38c559==null?void 0x0:_0x38c559[_0x22c2c9(0x112)])??_0x14c562[_0x22c2c9(0x12c)]()[_0x22c2c9(0x10c)](_0x5a0a72=>_0x5a0a72['range']),_0x5d413d=(_0x40acd7=_0x1a4a60['getSparklineCache']()[_0x22c2c9(0x113)]['get'](_0x564f37))==null?void 0x0:_0x40acd7['get'](_0x43f50c),_0x22c5a6=new Set();_0x40831e[_0x22c2c9(0x135)](_0x5b6006=>{const _0x33597c=_0x22c2c9;let {startRow:_0x95edf1,endRow:_0x4f0499,startColumn:_0x58b189,endColumn:_0x17739a}=_0x5b6006;for(let _0x4a97e5=_0x95edf1;_0x4a97e5<=_0x4f0499;_0x4a97e5++)for(let _0x5b6612=_0x58b189;_0x5b6612<=_0x17739a;_0x5b6612++){var _0x428f49;let _0x3a8542=_0x5d413d==null||(_0x428f49=_0x5d413d['matrix'][_0x33597c(0x117)](_0x4a97e5,_0x5b6612))==null?void 0x0:_0x428f49['groupId'];_0x3a8542&&_0x22c5a6[_0x33597c(0x12f)](_0x3a8542);}});let _0x3fa948={'workbook':_0x1ebbe3,'worksheet':_0x2fba3d,'sparklines':Array[_0x22c2c9(0x122)](_0x22c5a6)[_0x22c2c9(0x10c)](_0x5eb819=>_0x1a4a60[_0x22c2c9(0x143)](_0x564f37,_0x43f50c,_0x5eb819))['filter'](_0x59fdd3=>!!_0x59fdd3)};if(this['fireEvent'](this[_0x22c2c9(0x137)]['SheetSparklineChanged'],_0x3fa948),_0x3fa948['cancel'])throw Error(_0x22c2c9(0x10e));}}})));}};_0x528074[_0x5ed708(0x11b)]['extend'](_0x17dcb2),Object['defineProperty'](_0x5a4f76,_0x5ed708(0x142),{'enumerable':!0x0,'get':function(){return _0x61b255;}}),Object[_0x5ed708(0x13c)](_0x5a4f76,_0x5ed708(0x103),{'enumerable':!0x0,'get':function(){return _0x13f1b4;}});}));
|
|
1
|
+
function _0x1b71(_0x59efe5,_0x179ede){_0x59efe5=_0x59efe5-0xac;const _0x1f533c=_0x1f53();let _0x1b719f=_0x1f533c[_0x59efe5];return _0x1b719f;}(function(_0x9ea684,_0x4dd00a){const _0x57d658=_0x1b71,_0x3d91e5=_0x9ea684();while(!![]){try{const _0x3647e2=parseInt(_0x57d658(0xb5))/0x1+parseInt(_0x57d658(0xbc))/0x2*(parseInt(_0x57d658(0xd7))/0x3)+parseInt(_0x57d658(0xbb))/0x4+parseInt(_0x57d658(0xec))/0x5+parseInt(_0x57d658(0xd3))/0x6+parseInt(_0x57d658(0x102))/0x7*(parseInt(_0x57d658(0xd4))/0x8)+-parseInt(_0x57d658(0xf6))/0x9;if(_0x3647e2===_0x4dd00a)break;else _0x3d91e5['push'](_0x3d91e5['shift']());}catch(_0x41c423){_0x3d91e5['push'](_0x3d91e5['shift']());}}}(_0x1f53,0x60e74),function(_0x502cc2,_0x4b9c4c){const _0x4fe6b7=_0x1b71;typeof exports==_0x4fe6b7(0xe1)&&typeof module<'u'?_0x4b9c4c(exports,require('@univerjs-pro/sheets-sparkline'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs/sheets')):typeof define=='function'&&define[_0x4fe6b7(0xf0)]?define([_0x4fe6b7(0xc0),_0x4fe6b7(0xf7),_0x4fe6b7(0x108),'@univerjs/sheets/facade',_0x4fe6b7(0xc3),_0x4fe6b7(0xd9)],_0x4b9c4c):(_0x502cc2=typeof globalThis<'u'?globalThis:_0x502cc2||self,_0x4b9c4c(_0x502cc2[_0x4fe6b7(0xe8)]={},_0x502cc2[_0x4fe6b7(0xf4)],_0x502cc2[_0x4fe6b7(0xf1)],_0x502cc2[_0x4fe6b7(0xc7)],_0x502cc2[_0x4fe6b7(0xdb)],_0x502cc2[_0x4fe6b7(0xb6)]));}(this,function(_0x516ad9,_0x198012,_0x59a4f0,_0x98a10b,_0x1c4afb,_0x8b78df){const _0x2bcc76=_0x1b71;Object[_0x2bcc76(0xcd)](_0x516ad9,Symbol[_0x2bcc76(0xc8)],{'value':_0x2bcc76(0xb4)});function _0x55c934(_0x5d79cb,_0xabe46b){return function(_0x2ba0aa,_0x335816){_0xabe46b(_0x2ba0aa,_0x335816,_0x5d79cb);};}function _0xc50a95(_0x46d54b,_0x156c5a,_0x596da5,_0x2c19eb){const _0x5f089c=_0x2bcc76;var _0x20fb1a=arguments[_0x5f089c(0xca)],_0x46f60c=_0x20fb1a<0x3?_0x156c5a:_0x2c19eb===null?_0x2c19eb=Object[_0x5f089c(0x107)](_0x156c5a,_0x596da5):_0x2c19eb,_0x9a1236;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5f089c(0xc6))_0x46f60c=Reflect['decorate'](_0x46d54b,_0x156c5a,_0x596da5,_0x2c19eb);else{for(var _0x4cb8c0=_0x46d54b[_0x5f089c(0xca)]-0x1;_0x4cb8c0>=0x0;_0x4cb8c0--)(_0x9a1236=_0x46d54b[_0x4cb8c0])&&(_0x46f60c=(_0x20fb1a<0x3?_0x9a1236(_0x46f60c):_0x20fb1a>0x3?_0x9a1236(_0x156c5a,_0x596da5,_0x46f60c):_0x9a1236(_0x156c5a,_0x596da5))||_0x46f60c);}return _0x20fb1a>0x3&&_0x46f60c&&Object[_0x5f089c(0xcd)](_0x156c5a,_0x596da5,_0x46f60c),_0x46f60c;}let _0x4ba76d=class{constructor(_0x1aa10a,_0x443eac,_0x18da1b,_0x479db5,_0x1994d6,_0x3f268d){const _0x26cf76=_0x2bcc76;this[_0x26cf76(0xff)]=_0x1aa10a,this[_0x26cf76(0xd1)]=_0x443eac,this['_groupId']=_0x18da1b,this[_0x26cf76(0xae)]=_0x479db5,this[_0x26cf76(0x104)]=_0x1994d6,this[_0x26cf76(0xb2)]=_0x3f268d;}['changeDataSource'](_0x3cd094,_0x12bd44){const _0x5edc6c=_0x2bcc76;let _0x3d7a28=this['_injector']['get'](_0x198012[_0x5edc6c(0xdf)]),_0x526e70=this[_0x5edc6c(0xb2)]['get'](_0x59a4f0[_0x5edc6c(0xb1)]),_0x25346d=_0x3d7a28[_0x5edc6c(0xcc)](this[_0x5edc6c(0xff)],this[_0x5edc6c(0xd1)],this[_0x5edc6c(0xc9)]);if(!_0x25346d)return;let _0x1d9f66={'config':_0x25346d,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':_0x5edc6c(0xe4),'sourceRanges':[_0x3cd094],'targetRanges':[_0x12bd44],'primary':{'startRow':this[_0x5edc6c(0xae)],'startColumn':this[_0x5edc6c(0x104)],'endRow':this['_row'],'endColumn':this['_col'],'actualRow':this['_row'],'actualColumn':this[_0x5edc6c(0x104)],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x526e70[_0x5edc6c(0xaf)](_0x198012['SetSheetSparklineCommand']['id'],_0x1d9f66),this[_0x5edc6c(0xae)]=_0x12bd44['startRow'],this[_0x5edc6c(0x104)]=_0x12bd44[_0x5edc6c(0x101)],this;}['removeSparkline'](){const _0x1da859=_0x2bcc76;let _0x24ae1e=this[_0x1da859(0xb2)][_0x1da859(0xf8)](_0x59a4f0[_0x1da859(0xb1)]),_0x552f56={'isSingle':!0x0,'ranges':[{'startRow':this[_0x1da859(0xae)],'startColumn':this[_0x1da859(0x104)],'endRow':this['_row'],'endColumn':this[_0x1da859(0x104)]}]};_0x24ae1e[_0x1da859(0xaf)](_0x198012['RemoveSheetSparklineCommand']['id'],_0x552f56);}};_0x4ba76d=_0xc50a95([_0x55c934(0x5,(0x0,_0x59a4f0[_0x2bcc76(0x103)])(_0x59a4f0[_0x2bcc76(0xcb)]))],_0x4ba76d);let _0x4c4910=class{constructor(_0x499e3a,_0x4e7acb,_0x51afd3,_0x343d6b,_0x32817c,_0x46f260){const _0x1f1f5a=_0x2bcc76;this[_0x1f1f5a(0xff)]=_0x499e3a,this[_0x1f1f5a(0xd1)]=_0x4e7acb,this['_groupId']=_0x51afd3,this[_0x1f1f5a(0xae)]=_0x343d6b,this[_0x1f1f5a(0x104)]=_0x32817c,this[_0x1f1f5a(0xb2)]=_0x46f260;}[_0x2bcc76(0xc5)](_0x296dee,_0x5856e8){const _0x5021bc=_0x2bcc76;let _0x472622=this[_0x5021bc(0xb2)][_0x5021bc(0xf8)](_0x198012[_0x5021bc(0xdf)]),_0x3f92c2=this[_0x5021bc(0xb2)][_0x5021bc(0xf8)](_0x59a4f0[_0x5021bc(0xb1)]),_0x231d59=_0x472622['getSparklineById'](this[_0x5021bc(0xff)],this[_0x5021bc(0xd1)],this[_0x5021bc(0xc9)]);if(!_0x231d59)return;let _0x546f57={'config':_0x231d59,'isChangeDataSource':!0x0,'changeDataSourceInfo':{'groupId':this['_groupId'],'resetType':'group','sourceRanges':_0x296dee,'targetRanges':_0x5856e8,'primary':{'startRow':this[_0x5021bc(0xae)],'startColumn':this['_col'],'endRow':this['_row'],'endColumn':this['_col'],'actualRow':this['_row'],'actualColumn':this['_col'],'isMerged':!0x1,'isMergedMainCell':!0x1}}};return _0x3f92c2['syncExecuteCommand'](_0x198012[_0x5021bc(0xfb)]['id'],_0x546f57),this[_0x5021bc(0xae)]=_0x5856e8[0x0][_0x5021bc(0xd8)],this[_0x5021bc(0x104)]=_0x5856e8[0x0]['startColumn'],this;}[_0x2bcc76(0xba)](){const _0xd9a24c=_0x2bcc76;let _0x121c01=this[_0xd9a24c(0xb2)][_0xd9a24c(0xf8)](_0x59a4f0[_0xd9a24c(0xb1)]),_0x3c0535={'isSingle':!0x1,'ranges':[{'startRow':this[_0xd9a24c(0xae)],'startColumn':this[_0xd9a24c(0x104)],'endRow':this[_0xd9a24c(0xae)],'endColumn':this['_col']}]};_0x121c01['syncExecuteCommand'](_0x198012[_0xd9a24c(0xf9)]['id'],_0x3c0535);}['setConfig'](_0xf7a43a){const _0x22af92=_0x2bcc76;let _0x226a1e=this[_0x22af92(0xb2)]['get'](_0x198012[_0x22af92(0xdf)])['getSparklineById'](this[_0x22af92(0xff)],this[_0x22af92(0xd1)],this[_0x22af92(0xc9)]);if(_0x226a1e){let _0x2a0f5a={'config':{'config':_0xf7a43a,'sparklines':_0x226a1e[_0x22af92(0xd0)]},'isChangeDataSource':!0x1};this[_0x22af92(0xb2)][_0x22af92(0xf8)](_0x59a4f0[_0x22af92(0xb1)])[_0x22af92(0xaf)](_0x198012['SetSheetSparklineCommand']['id'],_0x2a0f5a);}return this;}};_0x4c4910=_0xc50a95([_0x55c934(0x5,(0x0,_0x59a4f0[_0x2bcc76(0x103)])(_0x59a4f0[_0x2bcc76(0xcb)]))],_0x4c4910);var _0x37b5e3=class extends _0x98a10b[_0x2bcc76(0xb0)]{[_0x2bcc76(0xbd)](_0x5897fc,_0x37cd7f,_0x4aec2d){const _0x2c590a=_0x2bcc76;if(this[_0x2c590a(0xd5)][_0x2c590a(0xaf)](_0x198012[_0x2c590a(0x109)]['id'],{'sourceRanges':_0x5897fc,'targetRanges':_0x37cd7f,'targetInfo':{'unitId':this[_0x2c590a(0xe6)][_0x2c590a(0xdd)](),'subUnitId':this[_0x2c590a(0xd6)][_0x2c590a(0xd2)]()},'config':{'type':_0x4aec2d}})){let {startRow:_0x4b7c71,startColumn:_0x27045a}=_0x37cd7f[0x0];return this[_0x2c590a(0xc4)](_0x4b7c71,_0x27045a);}}[_0x2bcc76(0xce)](){const _0x21343d=_0x2bcc76;return this[_0x21343d(0xb2)][_0x21343d(0xf8)](_0x198012[_0x21343d(0xdf)])[_0x21343d(0xed)](this[_0x21343d(0xe6)]['getUnitId'](),this[_0x21343d(0xd6)][_0x21343d(0xd2)]());}[_0x2bcc76(0xe7)](_0xb5a483){const _0x14e0e3=_0x2bcc76;let _0x33b556=this[_0x14e0e3(0xb2)][_0x14e0e3(0xf8)](_0x198012['SparklineDataSourceModel']),_0x3a0637;for(let _0x2519de=0x0;_0x2519de<_0xb5a483[_0x14e0e3(0xca)];_0x2519de++){let {startRow:_0x10ebe6,endRow:_0xb85812,startColumn:_0x2af23b,endColumn:_0x159618}=_0xb5a483[_0x2519de];for(let _0x439eb0=_0x10ebe6;_0x439eb0<=_0xb85812;_0x439eb0++)for(let _0x504829=_0x2af23b;_0x504829<=_0x159618;_0x504829++){let _0x153db9=_0x33b556[_0x14e0e3(0xe2)](this[_0x14e0e3(0xe6)][_0x14e0e3(0xdd)](),this['_worksheet'][_0x14e0e3(0xd2)](),_0x439eb0,_0x504829);if(_0x153db9){let _0x112c18=_0x33b556['getSparklineById'](this[_0x14e0e3(0xe6)][_0x14e0e3(0xdd)](),this[_0x14e0e3(0xd6)][_0x14e0e3(0xd2)](),_0x153db9);if(_0x112c18){_0x3a0637=_0x59a4f0['Tools'][_0x14e0e3(0xfa)](_0x112c18);break;}}}}_0x3a0637&&this[_0x14e0e3(0xd5)][_0x14e0e3(0xf5)](_0x198012['SetSheetSparklineCommand']['id'],{'ranges':_0xb5a483,'combine':!0x0,'config':_0x3a0637,'isChangeDataSource':!0x1});}[_0x2bcc76(0xcf)](_0x1f4bcf){const _0x5a29bf=_0x2bcc76;let _0x15f979=this[_0x5a29bf(0xb2)][_0x5a29bf(0xf8)](_0x198012[_0x5a29bf(0xdf)]),_0x414e2f;for(let _0x4e2f62=0x0;_0x4e2f62<_0x1f4bcf['length'];_0x4e2f62++){let {startRow:_0x28d36e,endRow:_0x1aac60,startColumn:_0x8cb3e4,endColumn:_0x1bbd0c}=_0x1f4bcf[_0x4e2f62];for(let _0x5c4f62=_0x28d36e;_0x5c4f62<=_0x1aac60;_0x5c4f62++)for(let _0x1bc362=_0x8cb3e4;_0x1bc362<=_0x1bbd0c;_0x1bc362++){let _0x4c3cfd=_0x15f979['getSparkline'](this['_workbook'][_0x5a29bf(0xdd)](),this[_0x5a29bf(0xd6)]['getSheetId'](),_0x5c4f62,_0x1bc362);if(_0x4c3cfd){let _0x27b168=_0x15f979[_0x5a29bf(0xcc)](this[_0x5a29bf(0xe6)][_0x5a29bf(0xdd)](),this[_0x5a29bf(0xd6)][_0x5a29bf(0xd2)](),_0x4c3cfd);if(_0x27b168){_0x414e2f=_0x59a4f0[_0x5a29bf(0xbf)][_0x5a29bf(0xfa)](_0x27b168);break;}}}}_0x414e2f||this[_0x5a29bf(0xd5)][_0x5a29bf(0xf5)](_0x198012[_0x5a29bf(0xfb)]['id'],{'ranges':_0x1f4bcf,'unCombine':!0x0,'config':_0x414e2f,'isChangeDataSource':!0x1});}[_0x2bcc76(0xc4)](_0x50d0a3,_0x1f1c29){const _0x3e4127=_0x2bcc76;let _0x583557=this[_0x3e4127(0xb2)][_0x3e4127(0xf8)](_0x198012[_0x3e4127(0xdf)]),_0x4996d3=this[_0x3e4127(0xe6)][_0x3e4127(0xdd)](),_0x15e681=this['_worksheet'][_0x3e4127(0xd2)](),_0xd9f06a=_0x583557['getSparkline'](_0x4996d3,_0x15e681,_0x50d0a3,_0x1f1c29);if(_0xd9f06a)return this[_0x3e4127(0xb2)][_0x3e4127(0x10a)](_0x4ba76d,_0x4996d3,_0x15e681,_0xd9f06a,_0x50d0a3,_0x1f1c29);}['getSparklineGroupByCell'](_0x1834f5,_0x3fe153){const _0x402ec8=_0x2bcc76;let _0x2b4872=this['_injector']['get'](_0x198012[_0x402ec8(0xdf)]),_0x576947=this['_workbook']['getUnitId'](),_0xd16717=this[_0x402ec8(0xd6)][_0x402ec8(0xd2)](),_0x10d634=_0x2b4872[_0x402ec8(0xe2)](_0x576947,_0xd16717,_0x1834f5,_0x3fe153);if(_0x10d634)return this['_injector']['createInstance'](_0x4c4910,_0x576947,_0xd16717,_0x10d634,_0x1834f5,_0x3fe153);}};_0x98a10b[_0x2bcc76(0xb0)]['extend'](_0x37b5e3);var _0x5b38eb=class extends _0x1c4afb[_0x2bcc76(0xfe)]{get['SparklineTypeEnum'](){const _0x154e50=_0x2bcc76;return _0x198012[_0x154e50(0xee)];}};_0x1c4afb['FEnum'][_0x2bcc76(0xe9)](_0x5b38eb);var _0x5d0382=class extends _0x1c4afb['FEventName']{get[_0x2bcc76(0xf3)](){const _0x4349f8=_0x2bcc76;return _0x4349f8(0xf3);}};_0x1c4afb['FEventName'][_0x2bcc76(0xe9)](_0x5d0382);var _0x319b47=class extends _0x1c4afb[_0x2bcc76(0xea)]{['_initialize'](_0x54c25a){const _0x506cf=_0x2bcc76;let _0x52b731=_0x54c25a[_0x506cf(0xf8)](_0x59a4f0['ICommandService']);this['disposeWithMe'](this[_0x506cf(0xda)](this[_0x506cf(0xef)][_0x506cf(0xf3)],()=>_0x52b731[_0x506cf(0x100)](_0x40233c=>{const _0x135342=_0x506cf;if(_0x40233c['id']===_0x198012['SetSheetSparklineCommand']['id']){let _0x248cc6=_0x40233c[_0x135342(0x106)];if(!_0x248cc6[_0x135342(0xad)]){var _0x1ea8a2;let _0x4a67bb=this[_0x135342(0xc1)](),_0x2b6566=_0x4a67bb==null?void 0x0:_0x4a67bb['getActiveSheet']();if(!_0x4a67bb||!_0x2b6566)return;let _0x3faa6c=_0x4a67bb[_0x135342(0xde)](),_0x184660=_0x2b6566[_0x135342(0xd2)](),_0xeb44d0=this[_0x135342(0xb2)]['get'](_0x8b78df['SheetsSelectionsService']),_0x3fbea7=this[_0x135342(0xb2)][_0x135342(0xf8)](_0x198012['SparklineDataSourceModel']),_0x35b963=(_0x248cc6==null?void 0x0:_0x248cc6[_0x135342(0x105)])??_0xeb44d0[_0x135342(0xbe)]()[_0x135342(0xf2)](_0x50abd6=>_0x50abd6[_0x135342(0xe0)]),_0x3c02b2=(_0x1ea8a2=_0x3fbea7[_0x135342(0xeb)]()['sparklineAnchorMap'][_0x135342(0xf8)](_0x3faa6c))==null?void 0x0:_0x1ea8a2[_0x135342(0xf8)](_0x184660),_0x406167=new Set();_0x35b963['forEach'](_0xab126=>{const _0x5d933a=_0x135342;let {startRow:_0x25267a,endRow:_0x302356,startColumn:_0x55936e,endColumn:_0x594178}=_0xab126;for(let _0x23afe8=_0x25267a;_0x23afe8<=_0x302356;_0x23afe8++)for(let _0x2696af=_0x55936e;_0x2696af<=_0x594178;_0x2696af++){var _0xf8007a;let _0x404671=_0x3c02b2==null||(_0xf8007a=_0x3c02b2[_0x5d933a(0xb8)][_0x5d933a(0xdc)](_0x23afe8,_0x2696af))==null?void 0x0:_0xf8007a[_0x5d933a(0xfc)];_0x404671&&_0x406167[_0x5d933a(0xb9)](_0x404671);}});let _0x5e95b1={'workbook':_0x4a67bb,'worksheet':_0x2b6566,'sparklines':Array[_0x135342(0xe3)](_0x406167)[_0x135342(0xf2)](_0x1c6f83=>_0x3fbea7[_0x135342(0xcc)](_0x3faa6c,_0x184660,_0x1c6f83))[_0x135342(0xfd)](_0x1b9dae=>!!_0x1b9dae)};if(this[_0x135342(0xe5)](this[_0x135342(0xef)][_0x135342(0xf3)],_0x5e95b1),_0x5e95b1[_0x135342(0xb7)])throw Error(_0x135342(0xb3));}}})));}};_0x1c4afb[_0x2bcc76(0xea)][_0x2bcc76(0xe9)](_0x319b47),Object[_0x2bcc76(0xcd)](_0x516ad9,_0x2bcc76(0xc2),{'enumerable':!0x0,'get':function(){return _0x4ba76d;}}),Object[_0x2bcc76(0xcd)](_0x516ad9,_0x2bcc76(0xac),{'enumerable':!0x0,'get':function(){return _0x4c4910;}});}));function _0x1f53(){const _0x21176f=['1818440LmkhnT','1186028dTyUTk','addSparkline','getCurrentSelections','Tools','exports','getActiveWorkbook','FSparkline','@univerjs/core/facade','getSparklineByCell','changeDataSource','function','UniverSheetsFacade','toStringTag','_groupId','length','Injector','getSparklineById','defineProperty','getAllSubSparkline','unComposeSparkline','sparklines','_subUnitId','getSheetId','2055306ykvwHa','879944pHdBYM','_commandService','_worksheet','3kkWSuo','startRow','@univerjs/sheets','registerEventHandler','UniverCoreFacade','getValue','getUnitId','getId','SparklineDataSourceModel','range','object','getSparkline','from','item','fireEvent','_workbook','composeSparkline','UniverProSheetsSparklineFacade','extend','FUniver','getSparklineCache','1058285jnUCdv','getSubUnitSparkline','SparklineTypeEnum','Event','amd','UniverCore','map','SheetSparklineChanged','UniverProSheetsSparkline','executeCommand','14335344UedAFb','@univerjs-pro/sheets-sparkline','get','RemoveSheetSparklineCommand','deepClone','SetSheetSparklineCommand','groupId','filter','FEnum','_unitId','onCommandExecuted','startColumn','14mrlnQP','Inject','_col','ranges','params','getOwnPropertyDescriptor','@univerjs/core','AddSheetSparklineCommand','createInstance','FSparklineGroup','isChangeDataSource','_row','syncExecuteCommand','FWorksheet','ICommandService','_injector','Sheet\x20create\x20canceled\x20by\x20facade\x20api.','Module','167914dqGaAN','UniverSheets','cancel','matrix','add','removeSparklineGroup'];_0x1f53=function(){return _0x21176f;};return _0x1f53();}
|