@univerjs-pro/sheets-mcp 0.11.0-nightly.202511151013 → 0.12.0-nightly.202511220628

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 _0x42919a=_0x475d;(function(_0x511d52,_0x1d0471){const _0x5cbaff=_0x475d,_0x33a94b=_0x511d52();while(!![]){try{const _0x49fd13=parseInt(_0x5cbaff(0xc5))/0x1+parseInt(_0x5cbaff(0xcb))/0x2*(parseInt(_0x5cbaff(0xdf))/0x3)+-parseInt(_0x5cbaff(0xd4))/0x4*(parseInt(_0x5cbaff(0xdb))/0x5)+parseInt(_0x5cbaff(0xd6))/0x6*(parseInt(_0x5cbaff(0xd3))/0x7)+-parseInt(_0x5cbaff(0xda))/0x8*(-parseInt(_0x5cbaff(0xd8))/0x9)+-parseInt(_0x5cbaff(0xcd))/0xa*(parseInt(_0x5cbaff(0xbd))/0xb)+-parseInt(_0x5cbaff(0xdd))/0xc;if(_0x49fd13===_0x1d0471)break;else _0x33a94b['push'](_0x33a94b['shift']());}catch(_0x4e60fb){_0x33a94b['push'](_0x33a94b['shift']());}}}(_0x16af,0xe950d));import{FUniver as _0x32c078}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';function _0x475d(_0x1901bd,_0x352fba){const _0x16af94=_0x16af();return _0x475d=function(_0x475d9e,_0xd714c8){_0x475d9e=_0x475d9e-0xbd;let _0x533b94=_0x16af94[_0x475d9e];return _0x533b94;},_0x475d(_0x1901bd,_0x352fba);}import'@univerjs/sheets-data-validation/facade';import{FWorkbook as _0x1ea1aa,FWorksheet as _0x33ae4d,FRange as _0x1c76c6}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x4aff4e,toA1 as _0x50580c}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0xa7ce1f}from'@univerjs/core';class C extends _0x32c078{async[_0x42919a(0xce)](){const _0x53e115=_0x42919a;return this[_0x53e115(0xe0)]()[_0x53e115(0xce)]();}}_0x32c078[_0x42919a(0xc9)](C);class U extends _0x1ea1aa{async[_0x42919a(0xce)](){const _0x245cb2=_0x42919a,_0xfaf5b=this[_0x245cb2(0xc8)](),_0x342d1d=await this[_0x245cb2(0xdc)]();return{'formulaErrors':_0xfaf5b,'dataValidationErrors':_0x342d1d};}}_0x1ea1aa[_0x42919a(0xc9)](U);class k extends _0x33ae4d{async['getFormulaUsages'](){const _0xd6b9f2=_0x42919a,_0x3575d5=this['_injector'][_0xd6b9f2(0xc1)](_0x4aff4e),_0x35bc43=this[_0xd6b9f2(0xde)](0x0,0x0,this['getMaxRows']()+0x1,this[_0xd6b9f2(0xbf)]()+0x1)[_0xd6b9f2(0xd9)]();return await _0x3575d5[_0xd6b9f2(0xd0)](_0x35bc43);}async['getFormulaUsagesAsA1'](){const _0xa26ab3=_0x42919a;return(await this[_0xa26ab3(0xca)]())[_0xa26ab3(0xbe)](_0x50580c);}}function _0x16af(){const _0x1490be=['moveFormulaRefOffset','7ETcbtP','8vhTniM','length','4270206dYBgHJ','push','27549JhMMtM','getCellDataGrid','352TSbIzv','1630190FjAWgM','getAllDataValidationErrorAsync','19347708ricoYM','getRange','29682DqpGTO','getActiveWorkbook','66BuvkvX','map','getMaxColumns','getMaxRows','get','startColumn','formula','filledRanges','1006573HmZQqM','_worksheet','getCellRaw','getAllFormulaError','extend','getFormulaUsages','330XERyRc','_injector','442370EvBHFe','getLintErrors','getFormulaUsagesAsA1','getAllFormulaUsages','startRow'];_0x16af=function(){return _0x1490be;};return _0x16af();}_0x33ae4d['extend'](k);class y extends _0x1c76c6{async[_0x42919a(0xca)](){const _0x19532e=_0x42919a,_0x1992dc=this[_0x19532e(0xcc)][_0x19532e(0xc1)](_0x4aff4e),_0x1adbe9=(({startRow:_0x302153,endRow:_0xe7598,startColumn:_0xa71875,endColumn:_0x269d40})=>{const _0x41698d=_0x19532e,_0x7d4436=[];for(let _0x23c6fd=_0x302153;_0x23c6fd<=_0xe7598;_0x23c6fd++){const _0x3269f8=[];for(let _0x1659d6=_0xa71875;_0x1659d6<=_0x269d40;_0x1659d6++)_0x3269f8['push'](this['_worksheet'][_0x41698d(0xc7)](_0x23c6fd,_0x1659d6));_0x7d4436['push'](_0x3269f8);}return _0x7d4436;})({'startRow':0x0,'endRow':this[_0x19532e(0xc6)][_0x19532e(0xc0)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x19532e(0xbf)]()}),_0x2f065a=await _0x1992dc[_0x19532e(0xd0)](_0x1adbe9),_0x2c1a15=this[_0x19532e(0xde)](),_0x1b6436=[];for(let _0x4b2093=0x0;_0x4b2093<_0x2f065a['length'];_0x4b2093++){const _0x4d798f=_0x2f065a[_0x4b2093],_0x4364ee=_0x4d798f['filledRanges'],_0x1e1a13=[];for(let _0x18fbd6=0x0;_0x18fbd6<_0x4364ee['length'];_0x18fbd6++){const _0x55e26b=_0x4364ee[_0x18fbd6],_0x4ac6c1=_0xa7ce1f(_0x55e26b,_0x2c1a15);_0x4ac6c1&&_0x1e1a13[_0x19532e(0xd7)](_0x4ac6c1);}if(_0x1e1a13[_0x19532e(0xd5)]>0x0){_0x4d798f[_0x19532e(0xc4)]=_0x1e1a13;const _0x3776f1=_0x1e1a13[0x0],_0x35248e=_0x3776f1['startRow']-_0x2c1a15[_0x19532e(0xd1)],_0x4048e9=_0x3776f1['startColumn']-_0x2c1a15[_0x19532e(0xc2)];_0x4d798f[_0x19532e(0xc3)]=await _0x1992dc[_0x19532e(0xd2)](_0x4d798f[_0x19532e(0xc3)],_0x35248e,_0x4048e9),_0x1b6436[_0x19532e(0xd7)](_0x4d798f);}}return _0x1b6436;}async[_0x42919a(0xcf)](){const _0x137ddf=_0x42919a;return(await this[_0x137ddf(0xca)]())[_0x137ddf(0xbe)](_0x50580c);}}_0x1c76c6['extend'](y);
1
+ const _0x1cc88c=_0x2425;(function(_0x43d66a,_0x549d6a){const _0x5489c5=_0x2425,_0x17c66d=_0x43d66a();while(!![]){try{const _0x1d8f71=parseInt(_0x5489c5(0xab))/0x1+-parseInt(_0x5489c5(0x8d))/0x2*(parseInt(_0x5489c5(0xa7))/0x3)+parseInt(_0x5489c5(0x97))/0x4+parseInt(_0x5489c5(0xa5))/0x5+parseInt(_0x5489c5(0x9b))/0x6*(parseInt(_0x5489c5(0x91))/0x7)+parseInt(_0x5489c5(0x95))/0x8*(parseInt(_0x5489c5(0x94))/0x9)+-parseInt(_0x5489c5(0xa3))/0xa;if(_0x1d8f71===_0x549d6a)break;else _0x17c66d['push'](_0x17c66d['shift']());}catch(_0x563f51){_0x17c66d['push'](_0x17c66d['shift']());}}}(_0x2f75,0x60d6d));import{FUniver as _0x1f56c6}from'@univerjs/core/facade';import'@univerjs/sheets-formula/facade';import'@univerjs/sheets-data-validation/facade';function _0x2f75(){const _0x1cb8f9=['getAllFormulaError','getLintErrors','_injector','363053tJExws','72lvxeRT','extend','_worksheet','length','5261501hJhLiV','startRow','getAllDataValidationErrorAsync','72CSYXGt','328784OHVTHc','formula','686836LIKvmF','moveFormulaRefOffset','push','filledRanges','6dZcSGe','getFormulaUsages','getCellRaw','getCellDataGrid','get','map','startColumn','getMaxColumns','16252810weCibE','getFormulaUsagesAsA1','2669485PokgOP','getMaxRows','10596lshoih'];_0x2f75=function(){return _0x1cb8f9;};return _0x2f75();}import{FWorkbook as _0x547f88,FWorksheet as _0x4921ef,FRange as _0x25d0f5}from'@univerjs/sheets/facade';import{IFormulaUsageAnalyzer as _0x3e4a8a,toA1 as _0x49371b}from'@univerjs-pro/sheets-mcp';import{getIntersectRange as _0xcc7a2d}from'@univerjs/core';class C extends _0x1f56c6{async[_0x1cc88c(0xa9)](){const _0x87e26b=_0x1cc88c;return this['getActiveWorkbook']()[_0x87e26b(0xa9)]();}}_0x1f56c6[_0x1cc88c(0x8e)](C);class U extends _0x547f88{async[_0x1cc88c(0xa9)](){const _0x1200f1=_0x1cc88c,_0x46d204=this[_0x1200f1(0xa8)](),_0x4f466e=await this[_0x1200f1(0x93)]();return{'formulaErrors':_0x46d204,'dataValidationErrors':_0x4f466e};}}_0x547f88[_0x1cc88c(0x8e)](U);class k extends _0x4921ef{async[_0x1cc88c(0x9c)](){const _0x10bebf=_0x1cc88c,_0x31f8d9=this[_0x10bebf(0xaa)][_0x10bebf(0x9f)](_0x3e4a8a),_0x557a7c=this['getRange'](0x0,0x0,this[_0x10bebf(0xa6)]()+0x1,this[_0x10bebf(0xa2)]()+0x1)[_0x10bebf(0x9e)]();return await _0x31f8d9['getAllFormulaUsages'](_0x557a7c);}async[_0x1cc88c(0xa4)](){const _0x14513b=_0x1cc88c;return(await this['getFormulaUsages']())[_0x14513b(0xa0)](_0x49371b);}}function _0x2425(_0x3ca10a,_0x57cf4a){const _0x2f755e=_0x2f75();return _0x2425=function(_0x24254a,_0x15ace6){_0x24254a=_0x24254a-0x8d;let _0x354693=_0x2f755e[_0x24254a];return _0x354693;},_0x2425(_0x3ca10a,_0x57cf4a);}_0x4921ef[_0x1cc88c(0x8e)](k);class y extends _0x25d0f5{async['getFormulaUsages'](){const _0x14ebab=_0x1cc88c,_0x256162=this[_0x14ebab(0xaa)][_0x14ebab(0x9f)](_0x3e4a8a),_0x1757dc=(({startRow:_0x78b488,endRow:_0x356b3a,startColumn:_0x223bfd,endColumn:_0x51efd1})=>{const _0x167960=_0x14ebab,_0xd4f7cb=[];for(let _0x4db386=_0x78b488;_0x4db386<=_0x356b3a;_0x4db386++){const _0x2893e6=[];for(let _0x59306d=_0x223bfd;_0x59306d<=_0x51efd1;_0x59306d++)_0x2893e6[_0x167960(0x99)](this[_0x167960(0x8f)][_0x167960(0x9d)](_0x4db386,_0x59306d));_0xd4f7cb[_0x167960(0x99)](_0x2893e6);}return _0xd4f7cb;})({'startRow':0x0,'endRow':this['_worksheet'][_0x14ebab(0xa6)](),'startColumn':0x0,'endColumn':this[_0x14ebab(0x8f)][_0x14ebab(0xa2)]()}),_0x514756=await _0x256162['getAllFormulaUsages'](_0x1757dc),_0x5537af=this['getRange'](),_0xcc524=[];for(let _0x4140ac=0x0;_0x4140ac<_0x514756[_0x14ebab(0x90)];_0x4140ac++){const _0x2e8e23=_0x514756[_0x4140ac],_0x369dd6=_0x2e8e23['filledRanges'],_0x378eb0=[];for(let _0x2733cd=0x0;_0x2733cd<_0x369dd6[_0x14ebab(0x90)];_0x2733cd++){const _0x397318=_0x369dd6[_0x2733cd],_0x52b5ec=_0xcc7a2d(_0x397318,_0x5537af);_0x52b5ec&&_0x378eb0[_0x14ebab(0x99)](_0x52b5ec);}if(_0x378eb0[_0x14ebab(0x90)]>0x0){_0x2e8e23[_0x14ebab(0x9a)]=_0x378eb0;const _0x2e9bf4=_0x378eb0[0x0],_0x3fa45d=_0x2e9bf4[_0x14ebab(0x92)]-_0x5537af['startRow'],_0x16e154=_0x2e9bf4['startColumn']-_0x5537af[_0x14ebab(0xa1)];_0x2e8e23[_0x14ebab(0x96)]=await _0x256162[_0x14ebab(0x98)](_0x2e8e23[_0x14ebab(0x96)],_0x3fa45d,_0x16e154),_0xcc524[_0x14ebab(0x99)](_0x2e8e23);}}return _0xcc524;}async['getFormulaUsagesAsA1'](){const _0x758ed1=_0x1cc88c;return(await this['getFormulaUsages']())[_0x758ed1(0xa0)](_0x49371b);}}_0x25d0f5[_0x1cc88c(0x8e)](y);