@univerjs-pro/sheets-mcp 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251212-6c41730

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/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x3bbb4e=_0x270a;(function(_0x2bb9c9,_0x28e41a){const _0x658d28=_0x270a,_0x5553d2=_0x2bb9c9();while(!![]){try{const _0x595066=-parseInt(_0x658d28(0xe9))/0x1+-parseInt(_0x658d28(0xfc))/0x2*(parseInt(_0x658d28(0xf6))/0x3)+-parseInt(_0x658d28(0xee))/0x4*(parseInt(_0x658d28(0xfd))/0x5)+parseInt(_0x658d28(0xec))/0x6+parseInt(_0x658d28(0x100))/0x7+-parseInt(_0x658d28(0xfe))/0x8*(-parseInt(_0x658d28(0x102))/0x9)+-parseInt(_0x658d28(0xe7))/0xa*(-parseInt(_0x658d28(0x104))/0xb);if(_0x595066===_0x28e41a)break;else _0x5553d2['push'](_0x5553d2['shift']());}catch(_0x17d015){_0x5553d2['push'](_0x5553d2['shift']());}}}(_0x29b6,0x9a587));import{FUniver as _0x260e92}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x32621d,FWorksheet as _0x2de049,FRange as _0x304513}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x5e5d12,toA1 as _0x4621cf}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0xe24a4d}from'@univerjs/core';function _0x270a(_0x4df256,_0x52c0ba){_0x4df256=_0x4df256-0xe6;const _0x29b641=_0x29b6();let _0x270a5f=_0x29b641[_0x4df256];return _0x270a5f;}class p extends _0x260e92{async[_0x3bbb4e(0xe8)](){const _0x55ea36=_0x3bbb4e;return this['getActiveWorkbook']()[_0x55ea36(0xe8)]();}}_0x260e92[_0x3bbb4e(0x105)](p);function _0x29b6(){const _0x4ada3b=['extend','getFormulaUsages','getAllFormulaError','get','3920PVTUCL','getLintErrors','772896jbOfOP','startRow','getFormulaUsagesAsA1','5599938bhtGMs','firstOccurrence','24TvXJUS','getMaxColumns','_worksheet','map','push','getAllFormulaUsages','getMaxRows','_injector','9RXoSLS','endColumn','getRange','formula','filledRanges','getCellDataGrid','828438McKciy','514195ooZsIq','127512lbeTXh','startColumn','8761893HzRTFB','length','252JzgfAO','endRow','17776EoBaVT'];_0x29b6=function(){return _0x4ada3b;};return _0x29b6();}class O extends _0x32621d{async[_0x3bbb4e(0xe8)](){const _0x295fe6=_0x3bbb4e,_0x428be6=this[_0x295fe6(0x107)](),_0x25c64b=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x428be6,'dataValidationErrors':_0x25c64b};}}_0x32621d[_0x3bbb4e(0x105)](O);class U extends _0x2de049{async['getFormulaUsages'](){const _0x25845b=_0x3bbb4e,_0x299f24=this[_0x25845b(0xf5)][_0x25845b(0xe6)](_0x5e5d12),_0x1a8292=this[_0x25845b(0xf8)](0x0,0x0,this[_0x25845b(0xf4)]()+0x1,this[_0x25845b(0xef)]()+0x1)[_0x25845b(0xfb)]();return await _0x299f24[_0x25845b(0xf3)](_0x1a8292);}async[_0x3bbb4e(0xeb)](){const _0x575456=_0x3bbb4e;return(await this[_0x575456(0x106)]())['map'](_0x4621cf);}}_0x2de049['extend'](U);class k extends _0x304513{async[_0x3bbb4e(0x106)](){const _0x3c5da3=_0x3bbb4e,_0x69d26=this[_0x3c5da3(0xf5)]['get'](_0x5e5d12),_0xb6f105=(({startRow:_0x44fb47,endRow:_0x4eb9f7,startColumn:_0x5a747b,endColumn:_0xf51af3})=>{const _0x5f0d83=_0x3c5da3,_0x29885e=[];for(let _0x41f201=_0x44fb47;_0x41f201<=_0x4eb9f7;_0x41f201++){const _0x2f9c5b=[];for(let _0x4784b6=_0x5a747b;_0x4784b6<=_0xf51af3;_0x4784b6++)_0x2f9c5b[_0x5f0d83(0xf2)](this['_worksheet']['getCellRaw'](_0x41f201,_0x4784b6));_0x29885e[_0x5f0d83(0xf2)](_0x2f9c5b);}return _0x29885e;})({'startRow':0x0,'endRow':this[_0x3c5da3(0xf0)][_0x3c5da3(0xf4)](),'startColumn':0x0,'endColumn':this[_0x3c5da3(0xf0)][_0x3c5da3(0xef)]()}),_0x2eeb17=await _0x69d26[_0x3c5da3(0xf3)](_0xb6f105),_0x29ec12=this['getRange'](),_0x472a7a=[];for(let _0x45bb8d=0x0;_0x45bb8d<_0x2eeb17[_0x3c5da3(0x101)];_0x45bb8d++){const _0x3f980f=_0x2eeb17[_0x45bb8d],_0x226f0f=_0x3f980f[_0x3c5da3(0xfa)],_0xb20e22=[];for(let _0x1efd63=0x0;_0x1efd63<_0x226f0f[_0x3c5da3(0x101)];_0x1efd63++){const _0x1607e9=_0x226f0f[_0x1efd63],_0x1a9c03=_0xe24a4d(_0x1607e9,_0x29ec12);_0x1a9c03&&_0xb20e22[_0x3c5da3(0xf2)](_0x1a9c03);}if(_0xb20e22[_0x3c5da3(0x101)]>0x0){if(_0x3f980f[_0x3c5da3(0xfa)]=_0xb20e22,!(_0x3f980f[_0x3c5da3(0xed)][_0x3c5da3(0xea)]>=_0x29ec12[_0x3c5da3(0xea)]&&_0x3f980f[_0x3c5da3(0xed)][_0x3c5da3(0xea)]<=_0x29ec12[_0x3c5da3(0x103)]&&_0x3f980f[_0x3c5da3(0xed)][_0x3c5da3(0xff)]>=_0x29ec12[_0x3c5da3(0xff)]&&_0x3f980f[_0x3c5da3(0xed)]['startColumn']<=_0x29ec12[_0x3c5da3(0xf7)])){const _0x59cd92=_0xb20e22[0x0],_0x3adbf1=_0x59cd92[_0x3c5da3(0xea)]-_0x3f980f['firstOccurrence'][_0x3c5da3(0xea)],_0xa21f83=_0x59cd92[_0x3c5da3(0xff)]-_0x3f980f[_0x3c5da3(0xed)][_0x3c5da3(0xff)];_0x3f980f[_0x3c5da3(0xf9)]=await _0x69d26['moveFormulaRefOffset'](_0x3f980f[_0x3c5da3(0xf9)],_0xa21f83,_0x3adbf1),_0x3f980f[_0x3c5da3(0xed)]={'startRow':_0x59cd92[_0x3c5da3(0xea)],'endRow':_0x59cd92[_0x3c5da3(0xea)],'startColumn':_0x59cd92[_0x3c5da3(0xff)],'endColumn':_0x59cd92[_0x3c5da3(0xff)]};}_0x472a7a[_0x3c5da3(0xf2)](_0x3f980f);}}return _0x472a7a;}async[_0x3bbb4e(0xeb)](){const _0xb99a88=_0x3bbb4e;return(await this[_0xb99a88(0x106)]())[_0xb99a88(0xf1)](_0x4621cf);}}_0x304513[_0x3bbb4e(0x105)](k);
1
+ const _0x939a9e=_0x3a18;(function(_0x470ffa,_0xebd7cb){const _0x3c924c=_0x3a18,_0x2162b7=_0x470ffa();while(!![]){try{const _0xaddcae=parseInt(_0x3c924c(0x181))/0x1+parseInt(_0x3c924c(0x176))/0x2+parseInt(_0x3c924c(0x178))/0x3*(parseInt(_0x3c924c(0x188))/0x4)+parseInt(_0x3c924c(0x179))/0x5+parseInt(_0x3c924c(0x182))/0x6+parseInt(_0x3c924c(0x191))/0x7*(parseInt(_0x3c924c(0x18f))/0x8)+-parseInt(_0x3c924c(0x17c))/0x9*(parseInt(_0x3c924c(0x174))/0xa);if(_0xaddcae===_0xebd7cb)break;else _0x2162b7['push'](_0x2162b7['shift']());}catch(_0x5ec364){_0x2162b7['push'](_0x2162b7['shift']());}}}(_0x3d89,0xde2ac));function _0x3d89(){const _0x156c21=['startRow','252244IfblMI','endRow','getRange','getFormulaUsagesAsA1','_worksheet','getMaxColumns','get','10722296DMLFHK','map','7oMxLnt','length','getCellRaw','getFormulaUsages','firstOccurrence','getAllDataValidationErrorAsync','20krLiEp','startColumn','853636ZoeGTE','moveFormulaRefOffset','33mGWRKX','3291860FhryTQ','getMaxRows','extend','14950107bxrkrP','filledRanges','getActiveWorkbook','push','formula','635562YNKxYc','2865192pGAcoM','getLintErrors','getAllFormulaUsages','_injector','getCellDataGrid'];_0x3d89=function(){return _0x156c21;};return _0x3d89();}import{FUniver as _0x1e7266}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x3831cb,FWorksheet as _0x56934c,FRange as _0x18575f}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x51293e,toA1 as _0xdfde88}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x4b7245}from'@univerjs/core';class p extends _0x1e7266{async[_0x939a9e(0x183)](){const _0x2c1749=_0x939a9e;return this[_0x2c1749(0x17e)]()[_0x2c1749(0x183)]();}}_0x1e7266[_0x939a9e(0x17b)](p);class O extends _0x3831cb{async['getLintErrors'](){const _0x36593a=_0x939a9e,_0x436dc8=this['getAllFormulaError'](),_0x70042c=await this[_0x36593a(0x173)]();return{'formulaErrors':_0x436dc8,'dataValidationErrors':_0x70042c};}}_0x3831cb['extend'](O);class U extends _0x56934c{async[_0x939a9e(0x194)](){const _0x263d1b=_0x939a9e,_0x29a5ec=this[_0x263d1b(0x185)][_0x263d1b(0x18e)](_0x51293e),_0xb63331=this[_0x263d1b(0x18a)](0x0,0x0,this[_0x263d1b(0x17a)]()+0x1,this['getMaxColumns']()+0x1)[_0x263d1b(0x186)]();return await _0x29a5ec[_0x263d1b(0x184)](_0xb63331);}async[_0x939a9e(0x18b)](){const _0x330b9c=_0x939a9e;return(await this['getFormulaUsages']())[_0x330b9c(0x190)](_0xdfde88);}}function _0x3a18(_0x17f7ef,_0x3b707b){_0x17f7ef=_0x17f7ef-0x173;const _0x3d89e5=_0x3d89();let _0x3a1816=_0x3d89e5[_0x17f7ef];return _0x3a1816;}_0x56934c[_0x939a9e(0x17b)](U);class k extends _0x18575f{async['getFormulaUsages'](){const _0x4c5aad=_0x939a9e,_0x4b64d1=this[_0x4c5aad(0x185)][_0x4c5aad(0x18e)](_0x51293e),_0x29f9fd=(({startRow:_0x5929c7,endRow:_0x48446a,startColumn:_0x1808a4,endColumn:_0x520604})=>{const _0x5756a2=_0x4c5aad,_0x38ce9d=[];for(let _0xfb19d9=_0x5929c7;_0xfb19d9<=_0x48446a;_0xfb19d9++){const _0x1cfb48=[];for(let _0x7910fa=_0x1808a4;_0x7910fa<=_0x520604;_0x7910fa++)_0x1cfb48[_0x5756a2(0x17f)](this[_0x5756a2(0x18c)][_0x5756a2(0x193)](_0xfb19d9,_0x7910fa));_0x38ce9d[_0x5756a2(0x17f)](_0x1cfb48);}return _0x38ce9d;})({'startRow':0x0,'endRow':this[_0x4c5aad(0x18c)][_0x4c5aad(0x17a)](),'startColumn':0x0,'endColumn':this[_0x4c5aad(0x18c)][_0x4c5aad(0x18d)]()}),_0x447d0f=await _0x4b64d1[_0x4c5aad(0x184)](_0x29f9fd),_0x1a1b24=this[_0x4c5aad(0x18a)](),_0xc2f3a3=[];for(let _0x2500d6=0x0;_0x2500d6<_0x447d0f['length'];_0x2500d6++){const _0x28e876=_0x447d0f[_0x2500d6],_0x2bc335=_0x28e876[_0x4c5aad(0x17d)],_0x30d683=[];for(let _0x27e4ba=0x0;_0x27e4ba<_0x2bc335[_0x4c5aad(0x192)];_0x27e4ba++){const _0x2b86e7=_0x2bc335[_0x27e4ba],_0x33214c=_0x4b7245(_0x2b86e7,_0x1a1b24);_0x33214c&&_0x30d683[_0x4c5aad(0x17f)](_0x33214c);}if(_0x30d683[_0x4c5aad(0x192)]>0x0){if(_0x28e876[_0x4c5aad(0x17d)]=_0x30d683,!(_0x28e876[_0x4c5aad(0x195)]['startRow']>=_0x1a1b24[_0x4c5aad(0x187)]&&_0x28e876[_0x4c5aad(0x195)][_0x4c5aad(0x187)]<=_0x1a1b24[_0x4c5aad(0x189)]&&_0x28e876[_0x4c5aad(0x195)][_0x4c5aad(0x175)]>=_0x1a1b24[_0x4c5aad(0x175)]&&_0x28e876[_0x4c5aad(0x195)]['startColumn']<=_0x1a1b24['endColumn'])){const _0x392473=_0x30d683[0x0],_0x1073ab=_0x392473[_0x4c5aad(0x187)]-_0x28e876['firstOccurrence'][_0x4c5aad(0x187)],_0x77390e=_0x392473[_0x4c5aad(0x175)]-_0x28e876[_0x4c5aad(0x195)][_0x4c5aad(0x175)];_0x28e876[_0x4c5aad(0x180)]=await _0x4b64d1[_0x4c5aad(0x177)](_0x28e876['formula'],_0x77390e,_0x1073ab),_0x28e876[_0x4c5aad(0x195)]={'startRow':_0x392473[_0x4c5aad(0x187)],'endRow':_0x392473[_0x4c5aad(0x187)],'startColumn':_0x392473['startColumn'],'endColumn':_0x392473[_0x4c5aad(0x175)]};}_0xc2f3a3[_0x4c5aad(0x17f)](_0x28e876);}}return _0xc2f3a3;}async[_0x939a9e(0x18b)](){const _0xc0ac25=_0x939a9e;return(await this[_0xc0ac25(0x194)]())['map'](_0xdfde88);}}_0x18575f[_0x939a9e(0x17b)](k);