@univerjs-pro/sheets-mcp 0.14.0 → 0.15.0-insiders.20251227-dafc157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x25cef9=_0x49ce;(function(_0x709777,_0x8099c){const _0x1c9d01=_0x49ce,_0x863616=_0x709777();while(!![]){try{const _0x3fecf2=parseInt(_0x1c9d01(0xdd))/0x1+parseInt(_0x1c9d01(0xde))/0x2*(-parseInt(_0x1c9d01(0xe1))/0x3)+-parseInt(_0x1c9d01(0xf7))/0x4+parseInt(_0x1c9d01(0xe0))/0x5+-parseInt(_0x1c9d01(0xef))/0x6*(parseInt(_0x1c9d01(0xf8))/0x7)+-parseInt(_0x1c9d01(0xee))/0x8*(parseInt(_0x1c9d01(0xf2))/0x9)+parseInt(_0x1c9d01(0xec))/0xa;if(_0x3fecf2===_0x8099c)break;else _0x863616['push'](_0x863616['shift']());}catch(_0x5449e8){_0x863616['push'](_0x863616['shift']());}}}(_0x1a17,0xdc4f6));import{FUniver as _0x3440e4}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x3bf9c1,FWorksheet as _0x310a62,FRange as _0x48e7b9}from'@univerjs/sheets/facade';function _0x1a17(){const _0x11a417=['822614XGcHFQ','18sKGojq','filledRanges','4492325RLZpAI','288609oQmwAC','getMaxRows','_worksheet','endColumn','length','_injector','firstOccurrence','getRange','getActiveWorkbook','getLintErrors','getAllFormulaUsages','21908710FVMFXS','getAllFormulaError','1241832vpEDcI','12ylrVJk','map','getFormulaUsagesAsA1','9ztEeQQ','get','getAllDataValidationErrorAsync','endRow','startRow','3592432JfrYPG','3816386dmqdwP','formula','push','getMaxColumns','getFormulaUsages','getCellRaw','extend','startColumn'];_0x1a17=function(){return _0x11a417;};return _0x1a17();}import{IFormulaUsageAnalyzer as _0xa8a543,toA1 as _0x1bd221}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x118555}from'@univerjs/core';class p extends _0x3440e4{async[_0x25cef9(0xea)](){const _0x3d2d92=_0x25cef9;return this[_0x3d2d92(0xe9)]()['getLintErrors']();}}function _0x49ce(_0x49bdd6,_0x413a4e){_0x49bdd6=_0x49bdd6-0xd7;const _0x1a17e2=_0x1a17();let _0x49ceea=_0x1a17e2[_0x49bdd6];return _0x49ceea;}_0x3440e4[_0x25cef9(0xdb)](p);class O extends _0x3bf9c1{async['getLintErrors'](){const _0x2b7bb9=_0x25cef9,_0x96597c=this[_0x2b7bb9(0xed)](),_0x5243fd=await this[_0x2b7bb9(0xf4)]();return{'formulaErrors':_0x96597c,'dataValidationErrors':_0x5243fd};}}_0x3bf9c1['extend'](O);class U extends _0x310a62{async['getFormulaUsages'](){const _0x591a18=_0x25cef9,_0x1571f4=this[_0x591a18(0xe6)][_0x591a18(0xf3)](_0xa8a543),_0x744b58=this[_0x591a18(0xe8)](0x0,0x0,this[_0x591a18(0xe2)](),this[_0x591a18(0xd8)]())['getCellDataGrid']();return await _0x1571f4[_0x591a18(0xeb)](_0x744b58);}async['getFormulaUsagesAsA1'](){const _0x3144a3=_0x25cef9;return(await this[_0x3144a3(0xd9)]())[_0x3144a3(0xf0)](_0x1bd221);}}_0x310a62[_0x25cef9(0xdb)](U);class k extends _0x48e7b9{async['getFormulaUsages'](){const _0x4d3e2c=_0x25cef9,_0xa9ec48=this[_0x4d3e2c(0xe6)][_0x4d3e2c(0xf3)](_0xa8a543),_0x5cce7c=(({startRow:_0x4de6b0,endRow:_0x5c4a87,startColumn:_0x2664ea,endColumn:_0x1be0c4})=>{const _0x3c8305=_0x4d3e2c,_0x1d53bc=[];for(let _0x2e9341=_0x4de6b0;_0x2e9341<=_0x5c4a87;_0x2e9341++){const _0xc2ea89=[];for(let _0x48e496=_0x2664ea;_0x48e496<=_0x1be0c4;_0x48e496++)_0xc2ea89[_0x3c8305(0xd7)](this[_0x3c8305(0xe3)][_0x3c8305(0xda)](_0x2e9341,_0x48e496));_0x1d53bc[_0x3c8305(0xd7)](_0xc2ea89);}return _0x1d53bc;})({'startRow':0x0,'endRow':this[_0x4d3e2c(0xe3)][_0x4d3e2c(0xe2)](),'startColumn':0x0,'endColumn':this[_0x4d3e2c(0xe3)][_0x4d3e2c(0xd8)]()}),_0x26cf48=await _0xa9ec48[_0x4d3e2c(0xeb)](_0x5cce7c),_0x142cd7=this[_0x4d3e2c(0xe8)](),_0x15114c=[];for(let _0x45e0ac=0x0;_0x45e0ac<_0x26cf48[_0x4d3e2c(0xe5)];_0x45e0ac++){const _0x5ae314=_0x26cf48[_0x45e0ac],_0x4510a2=_0x5ae314[_0x4d3e2c(0xdf)],_0x2434af=[];for(let _0xcb84f6=0x0;_0xcb84f6<_0x4510a2['length'];_0xcb84f6++){const _0x5b36a4=_0x4510a2[_0xcb84f6],_0x4a1993=_0x118555(_0x5b36a4,_0x142cd7);_0x4a1993&&_0x2434af[_0x4d3e2c(0xd7)](_0x4a1993);}if(_0x2434af['length']>0x0){if(_0x5ae314['filledRanges']=_0x2434af,!(_0x5ae314[_0x4d3e2c(0xe7)]['startRow']>=_0x142cd7[_0x4d3e2c(0xf6)]&&_0x5ae314[_0x4d3e2c(0xe7)][_0x4d3e2c(0xf6)]<=_0x142cd7[_0x4d3e2c(0xf5)]&&_0x5ae314['firstOccurrence'][_0x4d3e2c(0xdc)]>=_0x142cd7[_0x4d3e2c(0xdc)]&&_0x5ae314['firstOccurrence']['startColumn']<=_0x142cd7[_0x4d3e2c(0xe4)])){const _0xfab793=_0x2434af[0x0],_0x3e0aa1=_0xfab793[_0x4d3e2c(0xf6)]-_0x5ae314['firstOccurrence'][_0x4d3e2c(0xf6)],_0x4a6c14=_0xfab793[_0x4d3e2c(0xdc)]-_0x5ae314['firstOccurrence'][_0x4d3e2c(0xdc)];_0x5ae314[_0x4d3e2c(0xf9)]=await _0xa9ec48['moveFormulaRefOffset'](_0x5ae314[_0x4d3e2c(0xf9)],_0x4a6c14,_0x3e0aa1),_0x5ae314['firstOccurrence']={'startRow':_0xfab793[_0x4d3e2c(0xf6)],'endRow':_0xfab793['startRow'],'startColumn':_0xfab793[_0x4d3e2c(0xdc)],'endColumn':_0xfab793[_0x4d3e2c(0xdc)]};}_0x15114c['push'](_0x5ae314);}}return _0x15114c;}async[_0x25cef9(0xf1)](){const _0x12c2ab=_0x25cef9;return(await this[_0x12c2ab(0xd9)]())['map'](_0x1bd221);}}_0x48e7b9[_0x25cef9(0xdb)](k);
1
+ const _0x35179f=_0x9ffb;(function(_0x4d21b5,_0x40f542){const _0x478693=_0x9ffb,_0x2eade6=_0x4d21b5();while(!![]){try{const _0x3f70ba=-parseInt(_0x478693(0x18b))/0x1*(parseInt(_0x478693(0x189))/0x2)+parseInt(_0x478693(0x194))/0x3+parseInt(_0x478693(0x17f))/0x4+parseInt(_0x478693(0x192))/0x5+parseInt(_0x478693(0x188))/0x6+-parseInt(_0x478693(0x18a))/0x7+-parseInt(_0x478693(0x186))/0x8;if(_0x3f70ba===_0x40f542)break;else _0x2eade6['push'](_0x2eade6['shift']());}catch(_0x2233d0){_0x2eade6['push'](_0x2eade6['shift']());}}}(_0x410b,0x6ff7d));import{FUniver as _0x428abe}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0xded733,FWorksheet as _0x598156,FRange as _0x5d6134}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x8fdb8c,toA1 as _0x205580}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x3b898b}from'@univerjs/core';class p extends _0x428abe{async[_0x35179f(0x196)](){const _0xc148fc=_0x35179f;return this[_0xc148fc(0x198)]()[_0xc148fc(0x196)]();}}_0x428abe[_0x35179f(0x181)](p);class O extends _0xded733{async[_0x35179f(0x196)](){const _0x2b7435=_0x35179f,_0x45c9e3=this[_0x2b7435(0x199)](),_0x1e34fa=await this[_0x2b7435(0x18e)]();return{'formulaErrors':_0x45c9e3,'dataValidationErrors':_0x1e34fa};}}function _0x410b(){const _0x4ea5a8=['getAllFormulaError','getCellRaw','length','push','firstOccurrence','map','3574992YzADzI','getFormulaUsagesAsA1','extend','getRange','getCellDataGrid','get','formula','4407472dAaDLM','getMaxRows','1994712UFXaua','1825234cQuUNM','2059617fwBUnP','1sTwoMk','startColumn','getMaxColumns','getAllDataValidationErrorAsync','getFormulaUsages','filledRanges','startRow','1405185ahzBbC','_worksheet','2127498UvLfqt','_injector','getLintErrors','endColumn','getActiveWorkbook'];_0x410b=function(){return _0x4ea5a8;};return _0x410b();}_0xded733[_0x35179f(0x181)](O);function _0x9ffb(_0x196fe4,_0x38671d){_0x196fe4=_0x196fe4-0x17d;const _0x410bb3=_0x410b();let _0x9ffb90=_0x410bb3[_0x196fe4];return _0x9ffb90;}class U extends _0x598156{async[_0x35179f(0x18f)](){const _0x559008=_0x35179f,_0x35cc5a=this['_injector']['get'](_0x8fdb8c),_0x22c8ea=this[_0x559008(0x182)](0x0,0x0,this[_0x559008(0x187)](),this[_0x559008(0x18d)]())[_0x559008(0x183)]();return await _0x35cc5a['getAllFormulaUsages'](_0x22c8ea);}async[_0x35179f(0x180)](){const _0x17cf2f=_0x35179f;return(await this[_0x17cf2f(0x18f)]())['map'](_0x205580);}}_0x598156[_0x35179f(0x181)](U);class k extends _0x5d6134{async['getFormulaUsages'](){const _0x520eb4=_0x35179f,_0x2ae70c=this[_0x520eb4(0x195)][_0x520eb4(0x184)](_0x8fdb8c),_0x4fdf64=(({startRow:_0x3a8dae,endRow:_0x4c755a,startColumn:_0x106a97,endColumn:_0x1467ee})=>{const _0x150592=_0x520eb4,_0x67ed27=[];for(let _0x9d6105=_0x3a8dae;_0x9d6105<=_0x4c755a;_0x9d6105++){const _0xa596cd=[];for(let _0x2e1239=_0x106a97;_0x2e1239<=_0x1467ee;_0x2e1239++)_0xa596cd[_0x150592(0x19c)](this[_0x150592(0x193)][_0x150592(0x19a)](_0x9d6105,_0x2e1239));_0x67ed27['push'](_0xa596cd);}return _0x67ed27;})({'startRow':0x0,'endRow':this[_0x520eb4(0x193)][_0x520eb4(0x187)](),'startColumn':0x0,'endColumn':this[_0x520eb4(0x193)][_0x520eb4(0x18d)]()}),_0x369881=await _0x2ae70c['getAllFormulaUsages'](_0x4fdf64),_0x469d6a=this[_0x520eb4(0x182)](),_0x18cbbc=[];for(let _0x27f475=0x0;_0x27f475<_0x369881['length'];_0x27f475++){const _0x4081dd=_0x369881[_0x27f475],_0x20fc2c=_0x4081dd[_0x520eb4(0x190)],_0x5eaf36=[];for(let _0x220f0c=0x0;_0x220f0c<_0x20fc2c['length'];_0x220f0c++){const _0x58c237=_0x20fc2c[_0x220f0c],_0x81140=_0x3b898b(_0x58c237,_0x469d6a);_0x81140&&_0x5eaf36[_0x520eb4(0x19c)](_0x81140);}if(_0x5eaf36[_0x520eb4(0x19b)]>0x0){if(_0x4081dd[_0x520eb4(0x190)]=_0x5eaf36,!(_0x4081dd[_0x520eb4(0x17d)][_0x520eb4(0x191)]>=_0x469d6a[_0x520eb4(0x191)]&&_0x4081dd[_0x520eb4(0x17d)][_0x520eb4(0x191)]<=_0x469d6a['endRow']&&_0x4081dd[_0x520eb4(0x17d)]['startColumn']>=_0x469d6a['startColumn']&&_0x4081dd[_0x520eb4(0x17d)][_0x520eb4(0x18c)]<=_0x469d6a[_0x520eb4(0x197)])){const _0x1841bd=_0x5eaf36[0x0],_0x23e9d6=_0x1841bd[_0x520eb4(0x191)]-_0x4081dd[_0x520eb4(0x17d)]['startRow'],_0x5c8a82=_0x1841bd[_0x520eb4(0x18c)]-_0x4081dd['firstOccurrence'][_0x520eb4(0x18c)];_0x4081dd[_0x520eb4(0x185)]=await _0x2ae70c['moveFormulaRefOffset'](_0x4081dd[_0x520eb4(0x185)],_0x5c8a82,_0x23e9d6),_0x4081dd[_0x520eb4(0x17d)]={'startRow':_0x1841bd[_0x520eb4(0x191)],'endRow':_0x1841bd[_0x520eb4(0x191)],'startColumn':_0x1841bd[_0x520eb4(0x18c)],'endColumn':_0x1841bd[_0x520eb4(0x18c)]};}_0x18cbbc['push'](_0x4081dd);}}return _0x18cbbc;}async['getFormulaUsagesAsA1'](){const _0x5154de=_0x35179f;return(await this[_0x5154de(0x18f)]())[_0x5154de(0x17e)](_0x205580);}}_0x5d6134[_0x35179f(0x181)](k);