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

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 _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);
1
+ const _0x39790a=_0x43dc;function _0x55aa(){const _0x5652bb=['getFormulaUsagesAsA1','4akpuar','481798iBoEHl','length','map','firstOccurrence','getFormulaUsages','formula','27748941RbtWHt','14edSegC','getMaxRows','getRange','179736CCVPlf','4824720zGGaLi','startColumn','endColumn','push','getActiveWorkbook','_worksheet','getAllFormulaUsages','get','moveFormulaRefOffset','5469208rksnsI','getMaxColumns','620zBIkLC','_injector','endRow','startRow','getAllDataValidationErrorAsync','150777LUjXDU','extend','getLintErrors','4005256QRBxzb','getAllFormulaError','245jZVXXu','filledRanges','getCellRaw'];_0x55aa=function(){return _0x5652bb;};return _0x55aa();}(function(_0x25c42b,_0x524f9d){const _0x3ef7dd=_0x43dc,_0x3d651c=_0x25c42b();while(!![]){try{const _0x13a9ab=parseInt(_0x3ef7dd(0x139))/0x1*(-parseInt(_0x3ef7dd(0x13a))/0x2)+parseInt(_0x3ef7dd(0x145))/0x3+parseInt(_0x3ef7dd(0x133))/0x4+parseInt(_0x3ef7dd(0x135))/0x5*(parseInt(_0x3ef7dd(0x144))/0x6)+parseInt(_0x3ef7dd(0x141))/0x7*(parseInt(_0x3ef7dd(0x14e))/0x8)+-parseInt(_0x3ef7dd(0x130))/0x9*(parseInt(_0x3ef7dd(0x150))/0xa)+-parseInt(_0x3ef7dd(0x140))/0xb;if(_0x13a9ab===_0x524f9d)break;else _0x3d651c['push'](_0x3d651c['shift']());}catch(_0x5bddaa){_0x3d651c['push'](_0x3d651c['shift']());}}}(_0x55aa,0xe08eb));import{FUniver as _0x4b8c47}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x43dc(_0xc2e24c,_0x3a60dd){_0xc2e24c=_0xc2e24c-0x12d;const _0x55aaf2=_0x55aa();let _0x43dc33=_0x55aaf2[_0xc2e24c];return _0x43dc33;}import{FWorkbook as _0x3ea9bd,FWorksheet as _0x29f13b,FRange as _0x4e5f42}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x125888,toA1 as _0x5ddff0}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0x7bb07e}from'@univerjs/core';class p extends _0x4b8c47{async[_0x39790a(0x132)](){const _0x3914da=_0x39790a;return this[_0x3914da(0x149)]()[_0x3914da(0x132)]();}}_0x4b8c47[_0x39790a(0x131)](p);class O extends _0x3ea9bd{async[_0x39790a(0x132)](){const _0x513f98=_0x39790a,_0x5831ae=this[_0x513f98(0x134)](),_0x1dfd11=await this[_0x513f98(0x12f)]();return{'formulaErrors':_0x5831ae,'dataValidationErrors':_0x1dfd11};}}_0x3ea9bd[_0x39790a(0x131)](O);class U extends _0x29f13b{async[_0x39790a(0x13e)](){const _0x42147b=_0x39790a,_0x63a79c=this['_injector'][_0x42147b(0x14c)](_0x125888),_0x2b602e=this[_0x42147b(0x143)](0x0,0x0,this[_0x42147b(0x142)](),this[_0x42147b(0x14f)]())['getCellDataGrid']();return await _0x63a79c[_0x42147b(0x14b)](_0x2b602e);}async[_0x39790a(0x138)](){const _0x13d517=_0x39790a;return(await this[_0x13d517(0x13e)]())['map'](_0x5ddff0);}}_0x29f13b[_0x39790a(0x131)](U);class k extends _0x4e5f42{async[_0x39790a(0x13e)](){const _0x14cd7d=_0x39790a,_0x4db4dc=this[_0x14cd7d(0x151)][_0x14cd7d(0x14c)](_0x125888),_0x2729bc=(({startRow:_0xc583c8,endRow:_0x1bb06b,startColumn:_0x4b3e3c,endColumn:_0x49667d})=>{const _0x4b1a2=_0x14cd7d,_0x59bf0f=[];for(let _0x301c83=_0xc583c8;_0x301c83<=_0x1bb06b;_0x301c83++){const _0x330a5d=[];for(let _0x1397c7=_0x4b3e3c;_0x1397c7<=_0x49667d;_0x1397c7++)_0x330a5d[_0x4b1a2(0x148)](this[_0x4b1a2(0x14a)][_0x4b1a2(0x137)](_0x301c83,_0x1397c7));_0x59bf0f['push'](_0x330a5d);}return _0x59bf0f;})({'startRow':0x0,'endRow':this['_worksheet'][_0x14cd7d(0x142)](),'startColumn':0x0,'endColumn':this[_0x14cd7d(0x14a)]['getMaxColumns']()}),_0x4b9e73=await _0x4db4dc['getAllFormulaUsages'](_0x2729bc),_0x21498b=this[_0x14cd7d(0x143)](),_0x1bd871=[];for(let _0x30be90=0x0;_0x30be90<_0x4b9e73[_0x14cd7d(0x13b)];_0x30be90++){const _0x4dbed0=_0x4b9e73[_0x30be90],_0x1e5c48=_0x4dbed0[_0x14cd7d(0x136)],_0x5e9e3f=[];for(let _0x59d46a=0x0;_0x59d46a<_0x1e5c48[_0x14cd7d(0x13b)];_0x59d46a++){const _0x23627f=_0x1e5c48[_0x59d46a],_0x336fbc=_0x7bb07e(_0x23627f,_0x21498b);_0x336fbc&&_0x5e9e3f[_0x14cd7d(0x148)](_0x336fbc);}if(_0x5e9e3f['length']>0x0){if(_0x4dbed0[_0x14cd7d(0x136)]=_0x5e9e3f,!(_0x4dbed0[_0x14cd7d(0x13d)]['startRow']>=_0x21498b['startRow']&&_0x4dbed0['firstOccurrence'][_0x14cd7d(0x12e)]<=_0x21498b[_0x14cd7d(0x12d)]&&_0x4dbed0[_0x14cd7d(0x13d)][_0x14cd7d(0x146)]>=_0x21498b[_0x14cd7d(0x146)]&&_0x4dbed0['firstOccurrence'][_0x14cd7d(0x146)]<=_0x21498b[_0x14cd7d(0x147)])){const _0x1e6b08=_0x5e9e3f[0x0],_0x1c3479=_0x1e6b08[_0x14cd7d(0x12e)]-_0x4dbed0[_0x14cd7d(0x13d)]['startRow'],_0x1ee47d=_0x1e6b08[_0x14cd7d(0x146)]-_0x4dbed0[_0x14cd7d(0x13d)]['startColumn'];_0x4dbed0[_0x14cd7d(0x13f)]=await _0x4db4dc[_0x14cd7d(0x14d)](_0x4dbed0['formula'],_0x1ee47d,_0x1c3479),_0x4dbed0[_0x14cd7d(0x13d)]={'startRow':_0x1e6b08[_0x14cd7d(0x12e)],'endRow':_0x1e6b08['startRow'],'startColumn':_0x1e6b08['startColumn'],'endColumn':_0x1e6b08[_0x14cd7d(0x146)]};}_0x1bd871[_0x14cd7d(0x148)](_0x4dbed0);}}return _0x1bd871;}async[_0x39790a(0x138)](){const _0x3cc412=_0x39790a;return(await this[_0x3cc412(0x13e)]())[_0x3cc412(0x13c)](_0x5ddff0);}}_0x4e5f42['extend'](k);