@univerjs-pro/sheets-mcp 0.15.3-insiders.20260131-b9b8805 → 0.15.3
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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4874(){const _0x39f865=['formula','197558LpgSDC','getFormulaUsages','map','8bIcXFE','getCellDataGrid','getStyleUsages','getFormulaUsagesAsA1','updateConfig','416126bEzcuO','moveFormulaRefOffset','getAllFormulaUsages','93087wDjuHj','634780JjfRrY','startRow','get','getStyleUsagesAsA1','extend','1665930UqdGRA','endColumn','_worksheet','getAllSizeUsages','getLintErrors','firstOccurrence','getAllDataValidationErrorAsync','getCellRaw','getMaxRows','push','_injector','getAllStyleUsages','1348674ikxNqC','_workbook','getAllFormulaError','endRow','getSizeUsagesAsA1','getMaxColumns','getSizeUsages','1366328ascfaL','startColumn','7xmHhJk','length','getRange','filledRanges','toA1'];_0x4874=function(){return _0x39f865;};return _0x4874();}const _0xda08d6=_0x1369;(function(_0xea8dad,_0x3b891c){const _0x565aa3=_0x1369,_0x1b5f00=_0xea8dad();while(!![]){try{const _0x4d2251=parseInt(_0x565aa3(0x1a0))/0x1+-parseInt(_0x565aa3(0x1a8))/0x2+parseInt(_0x565aa3(0x185))/0x3+-parseInt(_0x565aa3(0x198))/0x4+-parseInt(_0x565aa3(0x1ac))/0x5+parseInt(_0x565aa3(0x191))/0x6*(parseInt(_0x565aa3(0x19a))/0x7)+parseInt(_0x565aa3(0x1a3))/0x8*(parseInt(_0x565aa3(0x1ab))/0x9);if(_0x4d2251===_0x3b891c)break;else _0x1b5f00['push'](_0x1b5f00['shift']());}catch(_0x4124a8){_0x1b5f00['push'](_0x1b5f00['shift']());}}}(_0x4874,0x4c05d));import{FUniver as _0x52b0fc}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x130ec4,FWorksheet as _0x14a83b,FRange as _0xa4ca74}from'@univerjs/sheets/facade';function _0x1369(_0xbec74b,_0x28b300){_0xbec74b=_0xbec74b-0x182;const _0x487417=_0x4874();let _0x136971=_0x487417[_0xbec74b];return _0x136971;}import{IFormulaUsageAnalyzer as _0x15ffb7,formulaToA1 as _0x5b0aa7,IStyleUsageAnalyzer as _0x38d39c,styleToA1 as _0x53cf30,ISizeUsageAnalyzer as _0x4a0067}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x59e43d}from'@univerjs/core';class z extends _0x52b0fc{async['getLintErrors'](){const _0x67f7b=_0x1369;return this['getActiveWorkbook']()[_0x67f7b(0x189)]();}}_0x52b0fc[_0xda08d6(0x184)](z);class _ extends _0x130ec4{async[_0xda08d6(0x189)](){const _0x86f71f=_0xda08d6,_0x6ad151=this[_0x86f71f(0x193)](),_0x130924=await this[_0x86f71f(0x18b)]();return{'formulaErrors':_0x6ad151,'dataValidationErrors':_0x130924};}}_0x130ec4['extend'](_);class x extends _0x14a83b{async['getFormulaUsages'](){const _0x32c278=_0xda08d6,_0x5ca2b9=this[_0x32c278(0x18f)][_0x32c278(0x182)](_0x15ffb7),_0x4547b4=this['getRange'](0x0,0x0,this[_0x32c278(0x18d)](),this[_0x32c278(0x196)]())['getCellDataGrid']();return await _0x5ca2b9[_0x32c278(0x1aa)](_0x4547b4);}async[_0xda08d6(0x1a6)](){const _0x27c8de=_0xda08d6;return(await this[_0x27c8de(0x1a1)]())[_0x27c8de(0x1a2)](_0x5b0aa7);}[_0xda08d6(0x1a5)](_0x224377){const _0x7d68a2=_0xda08d6,_0x35ee9d=this['_injector'][_0x7d68a2(0x182)](_0x38d39c),_0xb29251=this['getRange'](0x0,0x0,this[_0x7d68a2(0x18d)](),this[_0x7d68a2(0x196)]())[_0x7d68a2(0x1a4)]();return _0x35ee9d[_0x7d68a2(0x1a7)](_0x224377),_0x35ee9d[_0x7d68a2(0x190)](_0xb29251,this[_0x7d68a2(0x192)],this[_0x7d68a2(0x187)]);}[_0xda08d6(0x183)](_0x130191){const _0x21df3d=_0xda08d6;return this[_0x21df3d(0x1a5)](_0x130191)['map'](_0x53cf30);}[_0xda08d6(0x197)](_0x34f021){const _0x535366=_0xda08d6,_0xf81113=this['_injector'][_0x535366(0x182)](_0x4a0067);return _0xf81113[_0x535366(0x1a7)](_0x34f021),_0xf81113['getAllSizeUsages'](this[_0x535366(0x187)]);}[_0xda08d6(0x195)](_0x51730f){const _0x38976e=_0xda08d6,_0x909732=this[_0x38976e(0x18f)]['get'](_0x4a0067);_0x909732[_0x38976e(0x1a7)](_0x51730f);const _0x26973b=_0x909732[_0x38976e(0x188)](this['_worksheet']);return _0x909732[_0x38976e(0x19e)](_0x26973b);}}_0x14a83b[_0xda08d6(0x184)](x);class M extends _0xa4ca74{async['getFormulaUsages'](){const _0x55c85a=_0xda08d6,_0x263443=this[_0x55c85a(0x18f)]['get'](_0x15ffb7),_0x4f2a46=(({startRow:_0x196132,endRow:_0x26b6be,startColumn:_0x190beb,endColumn:_0x36dab9})=>{const _0x44acda=_0x55c85a,_0x45c444=[];for(let _0x222472=_0x196132;_0x222472<=_0x26b6be;_0x222472++){const _0x27e4fb=[];for(let _0x532d12=_0x190beb;_0x532d12<=_0x36dab9;_0x532d12++)_0x27e4fb[_0x44acda(0x18e)](this[_0x44acda(0x187)]['getCellRaw'](_0x222472,_0x532d12));_0x45c444[_0x44acda(0x18e)](_0x27e4fb);}return _0x45c444;})({'startRow':0x0,'endRow':this['_worksheet'][_0x55c85a(0x18d)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x55c85a(0x196)]()}),_0x3588af=await _0x263443[_0x55c85a(0x1aa)](_0x4f2a46),_0x27de7c=this[_0x55c85a(0x19c)](),_0x29bd42=[];for(let _0x36412a=0x0;_0x36412a<_0x3588af[_0x55c85a(0x19b)];_0x36412a++){const _0x4927e7=_0x3588af[_0x36412a],_0x422f29=_0x4927e7['filledRanges'],_0x3e6376=[];for(let _0x498fad=0x0;_0x498fad<_0x422f29['length'];_0x498fad++){const _0xfd064e=_0x422f29[_0x498fad],_0x3f8d46=_0x59e43d(_0xfd064e,_0x27de7c);_0x3f8d46&&_0x3e6376[_0x55c85a(0x18e)](_0x3f8d46);}if(_0x3e6376[_0x55c85a(0x19b)]>0x0){if(_0x4927e7[_0x55c85a(0x19d)]=_0x3e6376,!(_0x4927e7[_0x55c85a(0x18a)]['startRow']>=_0x27de7c['startRow']&&_0x4927e7[_0x55c85a(0x18a)]['startRow']<=_0x27de7c['endRow']&&_0x4927e7[_0x55c85a(0x18a)][_0x55c85a(0x199)]>=_0x27de7c[_0x55c85a(0x199)]&&_0x4927e7[_0x55c85a(0x18a)][_0x55c85a(0x199)]<=_0x27de7c[_0x55c85a(0x186)])){const _0x44cda1=_0x3e6376[0x0],_0x17a316=_0x44cda1['startRow']-_0x4927e7[_0x55c85a(0x18a)]['startRow'],_0x8f7a6b=_0x44cda1['startColumn']-_0x4927e7['firstOccurrence'][_0x55c85a(0x199)];_0x4927e7[_0x55c85a(0x19f)]=await _0x263443[_0x55c85a(0x1a9)](_0x4927e7[_0x55c85a(0x19f)],_0x8f7a6b,_0x17a316),_0x4927e7['firstOccurrence']={'startRow':_0x44cda1[_0x55c85a(0x1ad)],'endRow':_0x44cda1[_0x55c85a(0x1ad)],'startColumn':_0x44cda1[_0x55c85a(0x199)],'endColumn':_0x44cda1[_0x55c85a(0x199)]};}_0x29bd42[_0x55c85a(0x18e)](_0x4927e7);}}return _0x29bd42;}async[_0xda08d6(0x1a6)](){const _0x22d4bf=_0xda08d6;return(await this['getFormulaUsages']())[_0x22d4bf(0x1a2)](_0x5b0aa7);}['getStyleUsages'](_0x3ddf2e){const _0x37bf40=_0xda08d6,_0x33877c=this[_0x37bf40(0x18f)][_0x37bf40(0x182)](_0x38d39c),_0x1c71e8=(({startRow:_0x52e881,endRow:_0x2f8bf0,startColumn:_0xa4df2e,endColumn:_0x5ba208})=>{const _0x442280=_0x37bf40,_0x30d404=[];for(let _0x3bde2e=_0x52e881;_0x3bde2e<=_0x2f8bf0;_0x3bde2e++){const _0x3e997d=[];for(let _0x3b0558=_0xa4df2e;_0x3b0558<=_0x5ba208;_0x3b0558++)_0x3e997d[_0x442280(0x18e)](this[_0x442280(0x187)][_0x442280(0x18c)](_0x3bde2e,_0x3b0558));_0x30d404[_0x442280(0x18e)](_0x3e997d);}return _0x30d404;})({'startRow':0x0,'endRow':this[_0x37bf40(0x187)][_0x37bf40(0x18d)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x37bf40(0x196)]()});_0x33877c['updateConfig'](_0x3ddf2e);const _0x1534d2=_0x33877c['getAllStyleUsages'](_0x1c71e8,this[_0x37bf40(0x192)],this[_0x37bf40(0x187)]),_0x1232bc=this[_0x37bf40(0x19c)](),_0x1495c3=[];for(let _0x1625eb=0x0;_0x1625eb<_0x1534d2[_0x37bf40(0x19b)];_0x1625eb++){const _0x223fc7=_0x1534d2[_0x1625eb],_0x579e5e=_0x223fc7[_0x37bf40(0x19d)],_0x3e4a28=[];for(let _0x425470=0x0;_0x425470<_0x579e5e[_0x37bf40(0x19b)];_0x425470++){const _0x52b68b=_0x579e5e[_0x425470],_0x3d6bd2=_0x59e43d(_0x52b68b,_0x1232bc);_0x3d6bd2&&_0x3e4a28[_0x37bf40(0x18e)](_0x3d6bd2);}_0x3e4a28['length']>0x0&&(_0x223fc7[_0x37bf40(0x19d)]=_0x3e4a28,_0x1495c3[_0x37bf40(0x18e)](_0x223fc7));}return _0x1495c3;}['getStyleUsagesAsA1'](_0x100cfa){return this['getStyleUsages'](_0x100cfa)['map'](_0x53cf30);}['getSizeUsages'](_0x418bb5){const _0x7e73fa=_0xda08d6,_0x5cd904=this[_0x7e73fa(0x18f)]['get'](_0x4a0067),_0x105b82=this[_0x7e73fa(0x19c)]();return _0x5cd904[_0x7e73fa(0x1a7)](_0x418bb5),_0x5cd904[_0x7e73fa(0x188)](this['_worksheet'],_0x105b82['startRow'],_0x105b82[_0x7e73fa(0x194)],_0x105b82[_0x7e73fa(0x199)],_0x105b82['endColumn']);}[_0xda08d6(0x195)](_0x50ba81){const _0xc97ac8=_0xda08d6,_0x1a7f60=this[_0xc97ac8(0x197)](_0x50ba81);return this['_injector']['get'](_0x4a0067)[_0xc97ac8(0x19e)](_0x1a7f60);}}_0xa4ca74[_0xda08d6(0x184)](M);
|