@univerjs-pro/sheets-mcp 0.12.1 → 0.12.2

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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x18ec3b,_0x146778){const _0x2f3e14=_0x1968,_0x20bb74=_0x18ec3b();while(!![]){try{const _0x4dfb14=parseInt(_0x2f3e14(0x17a))/0x1+-parseInt(_0x2f3e14(0x16b))/0x2*(parseInt(_0x2f3e14(0x156))/0x3)+-parseInt(_0x2f3e14(0x15b))/0x4+-parseInt(_0x2f3e14(0x180))/0x5+parseInt(_0x2f3e14(0x157))/0x6*(-parseInt(_0x2f3e14(0x15c))/0x7)+-parseInt(_0x2f3e14(0x15e))/0x8*(parseInt(_0x2f3e14(0x17b))/0x9)+parseInt(_0x2f3e14(0x175))/0xa*(parseInt(_0x2f3e14(0x161))/0xb);if(_0x4dfb14===_0x146778)break;else _0x20bb74['push'](_0x20bb74['shift']());}catch(_0x5cf692){_0x20bb74['push'](_0x20bb74['shift']());}}}(_0x3b4f,0xe5b6b),function(_0x5972d1,_0x31917b){const _0x10cdb8=_0x1968;typeof exports=='object'&&typeof module<'u'?_0x31917b(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define==_0x10cdb8(0x17e)&&define['amd']?define([_0x10cdb8(0x16d),_0x10cdb8(0x183),'@univerjs/sheets-data-validation/facade','@univerjs/sheets/facade',_0x10cdb8(0x16c),_0x10cdb8(0x165)],_0x31917b):(_0x5972d1=typeof globalThis<'u'?globalThis:_0x5972d1||self,_0x31917b(_0x5972d1[_0x10cdb8(0x173)],_0x5972d1['UniverSheetsFormulaFacade'],_0x5972d1[_0x10cdb8(0x17c)],_0x5972d1[_0x10cdb8(0x172)],_0x5972d1[_0x10cdb8(0x162)],_0x5972d1[_0x10cdb8(0x169)]));}(this,function(_0x1eb45a,_0x3546b4,_0x188eb7,_0x4f38fc,_0x29fe3d,_0xdf7d68){'use strict';const _0x4f1ae2=_0x1968;class _0x56655a extends _0x1eb45a[_0x4f1ae2(0x166)]{async[_0x4f1ae2(0x15f)](){return this['getActiveWorkbook']()['getLintErrors']();}}_0x1eb45a[_0x4f1ae2(0x166)][_0x4f1ae2(0x170)](_0x56655a);class _0x370c80 extends _0x4f38fc[_0x4f1ae2(0x15a)]{async[_0x4f1ae2(0x15f)](){const _0x46fc48=_0x4f1ae2,_0x2defaa=this[_0x46fc48(0x17d)](),_0x1c0c01=await this[_0x46fc48(0x159)]();return{'formulaErrors':_0x2defaa,'dataValidationErrors':_0x1c0c01};}}_0x4f38fc[_0x4f1ae2(0x15a)][_0x4f1ae2(0x170)](_0x370c80);class _0x2c4ba7 extends _0x4f38fc[_0x4f1ae2(0x163)]{async[_0x4f1ae2(0x164)](){const _0x4587a4=_0x4f1ae2,_0x5d3e5c=this['_injector'][_0x4587a4(0x174)](_0x29fe3d['IFormulaUsageAnalyzer']),_0x45b34e=this[_0x4587a4(0x178)](0x0,0x0,this[_0x4587a4(0x177)]()+0x1,this[_0x4587a4(0x16e)]()+0x1)[_0x4587a4(0x181)]();return await _0x5d3e5c['getAllFormulaUsages'](_0x45b34e);}async[_0x4f1ae2(0x176)](){const _0x2fe040=_0x4f1ae2;return(await this[_0x2fe040(0x164)]())[_0x2fe040(0x158)](_0x29fe3d[_0x2fe040(0x179)]);}}_0x4f38fc[_0x4f1ae2(0x163)][_0x4f1ae2(0x170)](_0x2c4ba7);class _0x1666a2 extends _0x4f38fc[_0x4f1ae2(0x184)]{async[_0x4f1ae2(0x164)](){const _0x52c2a5=_0x4f1ae2,_0x2d1103=this[_0x52c2a5(0x182)]['get'](_0x29fe3d[_0x52c2a5(0x16a)]),_0x83079b=(({startRow:_0x1bac4d,endRow:_0x1129a8,startColumn:_0x349c42,endColumn:_0x29d864})=>{const _0x482797=_0x52c2a5,_0x102161=[];for(let _0xf7caa8=_0x1bac4d;_0xf7caa8<=_0x1129a8;_0xf7caa8++){const _0xa96972=[];for(let _0x5b052d=_0x349c42;_0x5b052d<=_0x29d864;_0x5b052d++)_0xa96972['push'](this['_worksheet'][_0x482797(0x155)](_0xf7caa8,_0x5b052d));_0x102161[_0x482797(0x160)](_0xa96972);}return _0x102161;})({'startRow':0x0,'endRow':this[_0x52c2a5(0x15d)][_0x52c2a5(0x177)](),'startColumn':0x0,'endColumn':this[_0x52c2a5(0x15d)]['getMaxColumns']()}),_0x13e0da=await _0x2d1103[_0x52c2a5(0x168)](_0x83079b),_0x117a60=this[_0x52c2a5(0x178)](),_0x4de92c=[];for(let _0x530574=0x0;_0x530574<_0x13e0da[_0x52c2a5(0x171)];_0x530574++){const _0x35bf06=_0x13e0da[_0x530574],_0x36e24c=_0x35bf06['filledRanges'],_0x30ec63=[];for(let _0x24eea6=0x0;_0x24eea6<_0x36e24c[_0x52c2a5(0x171)];_0x24eea6++){const _0x2bb405=_0x36e24c[_0x24eea6],_0x199530=_0xdf7d68[_0x52c2a5(0x167)](_0x2bb405,_0x117a60);_0x199530&&_0x30ec63['push'](_0x199530);}if(_0x30ec63[_0x52c2a5(0x171)]>0x0){_0x35bf06['filledRanges']=_0x30ec63;const _0x313060=_0x30ec63[0x0],_0x282058=_0x313060[_0x52c2a5(0x16f)]-_0x117a60[_0x52c2a5(0x16f)],_0x184e93=_0x313060['startColumn']-_0x117a60['startColumn'];_0x35bf06[_0x52c2a5(0x17f)]=await _0x2d1103['moveFormulaRefOffset'](_0x35bf06['formula'],_0x282058,_0x184e93),_0x4de92c[_0x52c2a5(0x160)](_0x35bf06);}}return _0x4de92c;}async[_0x4f1ae2(0x176)](){const _0x7a38df=_0x4f1ae2;return(await this[_0x7a38df(0x164)]())[_0x7a38df(0x158)](_0x29fe3d[_0x7a38df(0x179)]);}}_0x4f38fc['FRange'][_0x4f1ae2(0x170)](_0x1666a2);}));function _0x1968(_0x586735,_0x349265){const _0x3b4f0e=_0x3b4f();return _0x1968=function(_0x196857,_0x13becc){_0x196857=_0x196857-0x155;let _0x2cccf9=_0x3b4f0e[_0x196857];return _0x2cccf9;},_0x1968(_0x586735,_0x349265);}function _0x3b4f(){const _0x595742=['FWorksheet','getFormulaUsages','@univerjs/core','FUniver','getIntersectRange','getAllFormulaUsages','UniverCore','IFormulaUsageAnalyzer','6THxrVu','@univerjs-pro/sheets-mcp','@univerjs/core/facade','getMaxColumns','startRow','extend','length','UniverSheetsFacade','UniverCoreFacade','get','10zDeOJJ','getFormulaUsagesAsA1','getMaxRows','getRange','toA1','1755284Gedbvo','3060702nMGlGp','UniverSheetsDataValidationFacade','getAllFormulaError','function','formula','7864890PrfKfz','getCellDataGrid','_injector','@univerjs/sheets-formula/facade','FRange','getCellRaw','381393mmDJBi','22758qqRwOg','map','getAllDataValidationErrorAsync','FWorkbook','6950044AVfLUq','623qpifgU','_worksheet','8UnwjrE','getLintErrors','push','39106760BPswiP','UniverProSheetsMcp'];_0x3b4f=function(){return _0x595742;};return _0x3b4f();}
1
+ (function(_0x27b7ea,_0x4e6558){const _0x5dfecc=_0x45fa,_0x19442e=_0x27b7ea();while(!![]){try{const _0x55b4b1=-parseInt(_0x5dfecc(0x10d))/0x1*(-parseInt(_0x5dfecc(0x107))/0x2)+parseInt(_0x5dfecc(0x131))/0x3+parseInt(_0x5dfecc(0x10c))/0x4+-parseInt(_0x5dfecc(0x103))/0x5+-parseInt(_0x5dfecc(0x10a))/0x6+-parseInt(_0x5dfecc(0x109))/0x7+parseInt(_0x5dfecc(0x128))/0x8*(-parseInt(_0x5dfecc(0x12d))/0x9);if(_0x55b4b1===_0x4e6558)break;else _0x19442e['push'](_0x19442e['shift']());}catch(_0x1381f7){_0x19442e['push'](_0x19442e['shift']());}}}(_0x3547,0x9bd64),function(_0x1c1acc,_0x42a883){const _0xb71727=_0x45fa;typeof exports==_0xb71727(0x126)&&typeof module<'u'?_0x42a883(require('@univerjs/core/facade'),require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade'),require('@univerjs/sheets/facade'),require('@univerjs-pro/sheets-mcp'),require('@univerjs/core')):typeof define==_0xb71727(0x123)&&define[_0xb71727(0x127)]?define(['@univerjs/core/facade',_0xb71727(0x10f),'@univerjs/sheets-data-validation/facade',_0xb71727(0x122),_0xb71727(0x10b),_0xb71727(0x12f)],_0x42a883):(_0x1c1acc=typeof globalThis<'u'?globalThis:_0x1c1acc||self,_0x42a883(_0x1c1acc[_0xb71727(0x12b)],_0x1c1acc[_0xb71727(0x11e)],_0x1c1acc[_0xb71727(0x114)],_0x1c1acc[_0xb71727(0x106)],_0x1c1acc[_0xb71727(0x101)],_0x1c1acc[_0xb71727(0x100)]));}(this,function(_0x38b0bd,_0x23ac3e,_0x2f7e6e,_0x345678,_0x1c445c,_0x1e5582){'use strict';const _0x26a536=_0x45fa;class _0xf32de5 extends _0x38b0bd[_0x26a536(0x113)]{async[_0x26a536(0x11a)](){const _0x5d651b=_0x26a536;return this[_0x5d651b(0x120)]()[_0x5d651b(0x11a)]();}}_0x38b0bd[_0x26a536(0x113)][_0x26a536(0x121)](_0xf32de5);class _0x1091d7 extends _0x345678['FWorkbook']{async[_0x26a536(0x11a)](){const _0x2ff565=_0x26a536,_0x573183=this[_0x2ff565(0x102)](),_0x534b19=await this[_0x2ff565(0x11d)]();return{'formulaErrors':_0x573183,'dataValidationErrors':_0x534b19};}}_0x345678[_0x26a536(0x129)][_0x26a536(0x121)](_0x1091d7);class _0x382eaf extends _0x345678['FWorksheet']{async[_0x26a536(0x118)](){const _0xf359e9=_0x26a536,_0x42a591=this[_0xf359e9(0x124)]['get'](_0x1c445c[_0xf359e9(0x104)]),_0x5a9bbc=this[_0xf359e9(0x111)](0x0,0x0,this[_0xf359e9(0x115)]()+0x1,this[_0xf359e9(0x132)]()+0x1)[_0xf359e9(0x125)]();return await _0x42a591['getAllFormulaUsages'](_0x5a9bbc);}async[_0x26a536(0x12e)](){const _0x3d5ec5=_0x26a536;return(await this[_0x3d5ec5(0x118)]())[_0x3d5ec5(0x108)](_0x1c445c['toA1']);}}_0x345678[_0x26a536(0x110)][_0x26a536(0x121)](_0x382eaf);class _0x253bf4 extends _0x345678['FRange']{async[_0x26a536(0x118)](){const _0x5c783c=_0x26a536,_0x903d07=this[_0x5c783c(0x124)]['get'](_0x1c445c[_0x5c783c(0x104)]),_0x571137=(({startRow:_0x4da22d,endRow:_0x178252,startColumn:_0xdc8b0a,endColumn:_0x1a39c4})=>{const _0x22777d=_0x5c783c,_0x4832d6=[];for(let _0x54b3c4=_0x4da22d;_0x54b3c4<=_0x178252;_0x54b3c4++){const _0x12c43d=[];for(let _0x4a600c=_0xdc8b0a;_0x4a600c<=_0x1a39c4;_0x4a600c++)_0x12c43d[_0x22777d(0x105)](this['_worksheet'][_0x22777d(0x117)](_0x54b3c4,_0x4a600c));_0x4832d6[_0x22777d(0x105)](_0x12c43d);}return _0x4832d6;})({'startRow':0x0,'endRow':this[_0x5c783c(0x10e)]['getMaxRows'](),'startColumn':0x0,'endColumn':this['_worksheet']['getMaxColumns']()}),_0x6147da=await _0x903d07[_0x5c783c(0x11f)](_0x571137),_0x2f6c92=this[_0x5c783c(0x111)](),_0x53c4e7=[];for(let _0x23fdd9=0x0;_0x23fdd9<_0x6147da['length'];_0x23fdd9++){const _0x4cceed=_0x6147da[_0x23fdd9],_0x395a81=_0x4cceed[_0x5c783c(0x12a)],_0x13bb3a=[];for(let _0x5e9f46=0x0;_0x5e9f46<_0x395a81[_0x5c783c(0x112)];_0x5e9f46++){const _0x3e3ee6=_0x395a81[_0x5e9f46],_0x47688b=_0x1e5582[_0x5c783c(0x119)](_0x3e3ee6,_0x2f6c92);_0x47688b&&_0x13bb3a[_0x5c783c(0x105)](_0x47688b);}if(_0x13bb3a[_0x5c783c(0x112)]>0x0){_0x4cceed[_0x5c783c(0x12a)]=_0x13bb3a;const _0x364105=_0x13bb3a[0x0],_0x5b7ec8=_0x364105[_0x5c783c(0x116)]-_0x2f6c92[_0x5c783c(0x116)],_0x1ac06d=_0x364105[_0x5c783c(0x11c)]-_0x2f6c92[_0x5c783c(0x11c)];_0x4cceed[_0x5c783c(0x11b)]=await _0x903d07[_0x5c783c(0x130)](_0x4cceed[_0x5c783c(0x11b)],_0x5b7ec8,_0x1ac06d),_0x53c4e7[_0x5c783c(0x105)](_0x4cceed);}}return _0x53c4e7;}async[_0x26a536(0x12e)](){const _0x5c9af1=_0x26a536;return(await this[_0x5c9af1(0x118)]())[_0x5c9af1(0x108)](_0x1c445c[_0x5c9af1(0x12c)]);}}_0x345678['FRange'][_0x26a536(0x121)](_0x253bf4);}));function _0x45fa(_0x59a556,_0x492427){const _0x354733=_0x3547();return _0x45fa=function(_0x45fab8,_0x3d7cb3){_0x45fab8=_0x45fab8-0x100;let _0x464d9e=_0x354733[_0x45fab8];return _0x464d9e;},_0x45fa(_0x59a556,_0x492427);}function _0x3547(){const _0x181275=['getRange','length','FUniver','UniverSheetsDataValidationFacade','getMaxRows','startRow','getCellRaw','getFormulaUsages','getIntersectRange','getLintErrors','formula','startColumn','getAllDataValidationErrorAsync','UniverSheetsFormulaFacade','getAllFormulaUsages','getActiveWorkbook','extend','@univerjs/sheets/facade','function','_injector','getCellDataGrid','object','amd','7688hWceha','FWorkbook','filledRanges','UniverCoreFacade','toA1','16938WUCMVk','getFormulaUsagesAsA1','@univerjs/core','moveFormulaRefOffset','3273168XuTdmf','getMaxColumns','UniverCore','UniverProSheetsMcp','getAllFormulaError','2362315xZaVtm','IFormulaUsageAnalyzer','push','UniverSheetsFacade','431932YIOuOc','map','665679bcuHoh','1055082dkEsfO','@univerjs-pro/sheets-mcp','4941588oENNJl','4nKAXux','_worksheet','@univerjs/sheets-formula/facade','FWorksheet'];_0x3547=function(){return _0x181275;};return _0x3547();}