@univerjs-pro/sheets-mcp 0.12.3-nightly.202512060617 → 0.12.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x39a5d0=_0xfcc2;(function(_0x201a09,_0x63f2ad){const _0x586ee3=_0xfcc2,_0x3a176f=_0x201a09();while(!![]){try{const _0x903866=parseInt(_0x586ee3(0x1f9))/0x1+parseInt(_0x586ee3(0x20a))/0x2+parseInt(_0x586ee3(0x202))/0x3*(parseInt(_0x586ee3(0x20e))/0x4)+parseInt(_0x586ee3(0x209))/0x5*(-parseInt(_0x586ee3(0x1fd))/0x6)+parseInt(_0x586ee3(0x201))/0x7*(-parseInt(_0x586ee3(0x211))/0x8)+-parseInt(_0x586ee3(0x1f5))/0x9+parseInt(_0x586ee3(0x200))/0xa;if(_0x903866===_0x63f2ad)break;else _0x3a176f['push'](_0x3a176f['shift']());}catch(_0x1be032){_0x3a176f['push'](_0x3a176f['shift']());}}}(_0x4dbb,0xcfb07));import{FUniver as _0x4f5c75}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x5b7ed3,FWorksheet as _0x417bee,FRange as _0x299018}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x228f13,toA1 as _0x4d0b0c}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x3c749f}from'@univerjs/core';class C extends _0x4f5c75{async['getLintErrors'](){const _0x497f3b=_0xfcc2;return this[_0x497f3b(0x203)]()[_0x497f3b(0x208)]();}}_0x4f5c75[_0x39a5d0(0x213)](C);function _0xfcc2(_0x1f81c4,_0x4e23c7){_0x1f81c4=_0x1f81c4-0x1f4;const _0x4dbb82=_0x4dbb();let _0xfcc218=_0x4dbb82[_0x1f81c4];return _0xfcc218;}class U extends _0x5b7ed3{async[_0x39a5d0(0x208)](){const _0x2acd8f=_0x39a5d0,_0x23ec84=this[_0x2acd8f(0x1f7)](),_0x4ec1ad=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x23ec84,'dataValidationErrors':_0x4ec1ad};}}_0x5b7ed3['extend'](U);class k extends _0x417bee{async[_0x39a5d0(0x1fb)](){const _0xc20dd9=_0x39a5d0,_0x27f89d=this[_0xc20dd9(0x205)][_0xc20dd9(0x1fe)](_0x228f13),_0x2940a9=this[_0xc20dd9(0x210)](0x0,0x0,this[_0xc20dd9(0x1ff)]()+0x1,this[_0xc20dd9(0x20d)]()+0x1)[_0xc20dd9(0x1f4)]();return await _0x27f89d[_0xc20dd9(0x204)](_0x2940a9);}async['getFormulaUsagesAsA1'](){const _0x1d3b7e=_0x39a5d0;return(await this[_0x1d3b7e(0x1fb)]())[_0x1d3b7e(0x206)](_0x4d0b0c);}}_0x417bee[_0x39a5d0(0x213)](k);class y extends _0x299018{async[_0x39a5d0(0x1fb)](){const _0x1e1de6=_0x39a5d0,_0x21e045=this[_0x1e1de6(0x205)][_0x1e1de6(0x1fe)](_0x228f13),_0x5bd7c8=(({startRow:_0xab25ca,endRow:_0x228cdb,startColumn:_0x1e7ced,endColumn:_0xf9ffb4})=>{const _0x1d2ebf=_0x1e1de6,_0x3bb637=[];for(let _0x1ff41d=_0xab25ca;_0x1ff41d<=_0x228cdb;_0x1ff41d++){const _0x226a5=[];for(let _0x58f50f=_0x1e7ced;_0x58f50f<=_0xf9ffb4;_0x58f50f++)_0x226a5['push'](this[_0x1d2ebf(0x20b)][_0x1d2ebf(0x1fc)](_0x1ff41d,_0x58f50f));_0x3bb637[_0x1d2ebf(0x20c)](_0x226a5);}return _0x3bb637;})({'startRow':0x0,'endRow':this[_0x1e1de6(0x20b)][_0x1e1de6(0x1ff)](),'startColumn':0x0,'endColumn':this[_0x1e1de6(0x20b)][_0x1e1de6(0x20d)]()}),_0x50a824=await _0x21e045[_0x1e1de6(0x204)](_0x5bd7c8),_0x5d6245=this[_0x1e1de6(0x210)](),_0xcb81d6=[];for(let _0x53457c=0x0;_0x53457c<_0x50a824[_0x1e1de6(0x20f)];_0x53457c++){const _0xd3a60d=_0x50a824[_0x53457c],_0x2c5714=_0xd3a60d[_0x1e1de6(0x1f8)],_0x3d7c13=[];for(let _0x4822a3=0x0;_0x4822a3<_0x2c5714['length'];_0x4822a3++){const _0x283c23=_0x2c5714[_0x4822a3],_0x3c5d8a=_0x3c749f(_0x283c23,_0x5d6245);_0x3c5d8a&&_0x3d7c13[_0x1e1de6(0x20c)](_0x3c5d8a);}if(_0x3d7c13[_0x1e1de6(0x20f)]>0x0){_0xd3a60d[_0x1e1de6(0x1f8)]=_0x3d7c13;const _0x186d31=_0x3d7c13[0x0],_0x312624=_0x186d31['startRow']-_0x5d6245[_0x1e1de6(0x207)],_0x22e119=_0x186d31['startColumn']-_0x5d6245[_0x1e1de6(0x214)];_0xd3a60d['formula']=await _0x21e045[_0x1e1de6(0x1fa)](_0xd3a60d[_0x1e1de6(0x212)],_0x312624,_0x22e119),_0xcb81d6[_0x1e1de6(0x20c)](_0xd3a60d);}}return _0xcb81d6;}async[_0x39a5d0(0x1f6)](){const _0x48b7a6=_0x39a5d0;return(await this[_0x48b7a6(0x1fb)]())['map'](_0x4d0b0c);}}function _0x4dbb(){const _0x55ad48=['getActiveWorkbook','getAllFormulaUsages','_injector','map','startRow','getLintErrors','5179485DDJwGI','3036850UCHZhj','_worksheet','push','getMaxColumns','3220nVOJGu','length','getRange','8ElGKNX','formula','extend','startColumn','getCellDataGrid','13735980StLvhI','getFormulaUsagesAsA1','getAllFormulaError','filledRanges','518021bYSusV','moveFormulaRefOffset','getFormulaUsages','getCellRaw','6LOQbbY','get','getMaxRows','19444580UidnoE','8309959SSuXxV','2307YVCDjX'];_0x4dbb=function(){return _0x55ad48;};return _0x4dbb();}_0x299018[_0x39a5d0(0x213)](y);
1
+ const _0x566be3=_0x131e;(function(_0x36c5ec,_0x24640b){const _0x5a8e92=_0x131e,_0x3d0692=_0x36c5ec();while(!![]){try{const _0x34ea90=-parseInt(_0x5a8e92(0x1d3))/0x1*(-parseInt(_0x5a8e92(0x1d4))/0x2)+-parseInt(_0x5a8e92(0x1d2))/0x3+parseInt(_0x5a8e92(0x1c6))/0x4+-parseInt(_0x5a8e92(0x1ce))/0x5*(parseInt(_0x5a8e92(0x1e5))/0x6)+-parseInt(_0x5a8e92(0x1d5))/0x7*(-parseInt(_0x5a8e92(0x1d0))/0x8)+-parseInt(_0x5a8e92(0x1e0))/0x9*(parseInt(_0x5a8e92(0x1df))/0xa)+parseInt(_0x5a8e92(0x1da))/0xb;if(_0x34ea90===_0x24640b)break;else _0x3d0692['push'](_0x3d0692['shift']());}catch(_0x10184d){_0x3d0692['push'](_0x3d0692['shift']());}}}(_0x4531,0xdb296));import{FUniver as _0x1b4897}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x4531(){const _0xdb8d4b=['getAllDataValidationErrorAsync','getCellDataGrid','getAllFormulaUsages','getFormulaUsages','10713846oXjESt','get','getMaxRows','getMaxColumns','map','110SBTVEG','1257462opxGvW','_worksheet','formula','getFormulaUsagesAsA1','length','22782cLvGbr','getLintErrors','5428144gTtxRS','extend','moveFormulaRefOffset','push','getRange','startColumn','filledRanges','startRow','1515juysFR','getAllFormulaError','11199112XCWRTa','_injector','2527563TfxWWl','5PHqJOW','278674sSjXIN','7DXQVMY'];_0x4531=function(){return _0xdb8d4b;};return _0x4531();}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x199aa3,FWorksheet as _0x466957,FRange as _0x26f8e0}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x56f84a,toA1 as _0x4a169d}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x1052b1}from'@univerjs/core';class C extends _0x1b4897{async[_0x566be3(0x1e6)](){return this['getActiveWorkbook']()['getLintErrors']();}}_0x1b4897[_0x566be3(0x1c7)](C);class U extends _0x199aa3{async[_0x566be3(0x1e6)](){const _0x5c8d21=_0x566be3,_0xaceba7=this[_0x5c8d21(0x1cf)](),_0x3366ab=await this[_0x5c8d21(0x1d6)]();return{'formulaErrors':_0xaceba7,'dataValidationErrors':_0x3366ab};}}_0x199aa3[_0x566be3(0x1c7)](U);class k extends _0x466957{async[_0x566be3(0x1d9)](){const _0x118d9c=_0x566be3,_0x21d63f=this[_0x118d9c(0x1d1)][_0x118d9c(0x1db)](_0x56f84a),_0x237ba7=this[_0x118d9c(0x1ca)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x118d9c(0x1d7)]();return await _0x21d63f[_0x118d9c(0x1d8)](_0x237ba7);}async[_0x566be3(0x1e3)](){const _0xc4a541=_0x566be3;return(await this[_0xc4a541(0x1d9)]())[_0xc4a541(0x1de)](_0x4a169d);}}_0x466957[_0x566be3(0x1c7)](k);function _0x131e(_0x55b258,_0x5db7de){_0x55b258=_0x55b258-0x1c6;const _0x45314f=_0x4531();let _0x131ef7=_0x45314f[_0x55b258];return _0x131ef7;}class y extends _0x26f8e0{async[_0x566be3(0x1d9)](){const _0x24e1b5=_0x566be3,_0x51917a=this[_0x24e1b5(0x1d1)][_0x24e1b5(0x1db)](_0x56f84a),_0x1aa48e=(({startRow:_0x3f4bf2,endRow:_0x2fb637,startColumn:_0x4e4263,endColumn:_0x21dedc})=>{const _0x334223=_0x24e1b5,_0x10e949=[];for(let _0x5b41fe=_0x3f4bf2;_0x5b41fe<=_0x2fb637;_0x5b41fe++){const _0xf5dcb3=[];for(let _0x4f86d2=_0x4e4263;_0x4f86d2<=_0x21dedc;_0x4f86d2++)_0xf5dcb3[_0x334223(0x1c9)](this[_0x334223(0x1e1)]['getCellRaw'](_0x5b41fe,_0x4f86d2));_0x10e949['push'](_0xf5dcb3);}return _0x10e949;})({'startRow':0x0,'endRow':this[_0x24e1b5(0x1e1)][_0x24e1b5(0x1dc)](),'startColumn':0x0,'endColumn':this[_0x24e1b5(0x1e1)][_0x24e1b5(0x1dd)]()}),_0x18ec6e=await _0x51917a[_0x24e1b5(0x1d8)](_0x1aa48e),_0x1ad6b7=this[_0x24e1b5(0x1ca)](),_0x50dfb5=[];for(let _0x447f51=0x0;_0x447f51<_0x18ec6e['length'];_0x447f51++){const _0xec9c10=_0x18ec6e[_0x447f51],_0x112269=_0xec9c10[_0x24e1b5(0x1cc)],_0x547e2e=[];for(let _0x3fe086=0x0;_0x3fe086<_0x112269[_0x24e1b5(0x1e4)];_0x3fe086++){const _0x433cd2=_0x112269[_0x3fe086],_0x2393df=_0x1052b1(_0x433cd2,_0x1ad6b7);_0x2393df&&_0x547e2e[_0x24e1b5(0x1c9)](_0x2393df);}if(_0x547e2e['length']>0x0){_0xec9c10[_0x24e1b5(0x1cc)]=_0x547e2e;const _0x16e67e=_0x547e2e[0x0],_0x52deb0=_0x16e67e[_0x24e1b5(0x1cd)]-_0x1ad6b7[_0x24e1b5(0x1cd)],_0x5993d3=_0x16e67e[_0x24e1b5(0x1cb)]-_0x1ad6b7[_0x24e1b5(0x1cb)];_0xec9c10[_0x24e1b5(0x1e2)]=await _0x51917a[_0x24e1b5(0x1c8)](_0xec9c10['formula'],_0x52deb0,_0x5993d3),_0x50dfb5[_0x24e1b5(0x1c9)](_0xec9c10);}}return _0x50dfb5;}async[_0x566be3(0x1e3)](){const _0x21e7aa=_0x566be3;return(await this[_0x21e7aa(0x1d9)]())[_0x21e7aa(0x1de)](_0x4a169d);}}_0x26f8e0[_0x566be3(0x1c7)](y);