@univerjs-pro/sheets-mcp 0.12.2-experimental.20251201-5b27b55 → 0.12.2-experimental.20251202-45172c6

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1b2f68=_0x1b6b;(function(_0x571124,_0x1276fb){const _0x4a83de=_0x1b6b,_0x2e23ba=_0x571124();while(!![]){try{const _0x2497ea=-parseInt(_0x4a83de(0x17b))/0x1*(-parseInt(_0x4a83de(0x171))/0x2)+parseInt(_0x4a83de(0x180))/0x3+parseInt(_0x4a83de(0x189))/0x4*(-parseInt(_0x4a83de(0x16e))/0x5)+-parseInt(_0x4a83de(0x175))/0x6*(-parseInt(_0x4a83de(0x183))/0x7)+parseInt(_0x4a83de(0x187))/0x8+-parseInt(_0x4a83de(0x18f))/0x9*(-parseInt(_0x4a83de(0x179))/0xa)+-parseInt(_0x4a83de(0x173))/0xb;if(_0x2497ea===_0x1276fb)break;else _0x2e23ba['push'](_0x2e23ba['shift']());}catch(_0x1b3da4){_0x2e23ba['push'](_0x2e23ba['shift']());}}}(_0x23d1,0x57b4f));const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),c=require('@univerjs-pro/sheets-mcp'),w=require('@univerjs/core');class A extends d[_0x1b2f68(0x193)]{async['getLintErrors'](){const _0x14baad=_0x1b2f68;return this['getActiveWorkbook']()[_0x14baad(0x17a)]();}}function _0x1b6b(_0x494d1e,_0x1c5024){const _0x23d138=_0x23d1();return _0x1b6b=function(_0x1b6b38,_0x3c720d){_0x1b6b38=_0x1b6b38-0x16e;let _0x36d5ce=_0x23d138[_0x1b6b38];return _0x36d5ce;},_0x1b6b(_0x494d1e,_0x1c5024);}function _0x23d1(){const _0x5c039b=['FWorkbook','IFormulaUsageAnalyzer','getMaxRows','filledRanges','getFormulaUsagesAsA1','477itWylx','FWorksheet','getMaxColumns','_worksheet','FUniver','5rOnMlh','startColumn','getAllFormulaError','766828eGFYNR','toA1','5770204XDlTmn','getIntersectRange','648IrhNTd','push','FRange','length','6190lEvabB','getLintErrors','1lVZUUC','getRange','getFormulaUsages','getCellDataGrid','get','1339887fakkdG','formula','extend','3122PzTxRE','moveFormulaRefOffset','getAllFormulaUsages','_injector','4195792rIpEdv','startRow','2206724ILJPHN'];_0x23d1=function(){return _0x5c039b;};return _0x23d1();}d[_0x1b2f68(0x193)][_0x1b2f68(0x182)](A);class x extends o['FWorkbook']{async[_0x1b2f68(0x17a)](){const _0x535b64=_0x1b2f68,_0x1a74d1=this[_0x535b64(0x170)](),_0x2c7d08=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x1a74d1,'dataValidationErrors':_0x2c7d08};}}o[_0x1b2f68(0x18a)][_0x1b2f68(0x182)](x);class k extends o[_0x1b2f68(0x190)]{async[_0x1b2f68(0x17d)](){const _0x4f1cf9=_0x1b2f68,_0x2d8084=this[_0x4f1cf9(0x186)][_0x4f1cf9(0x17f)](c[_0x4f1cf9(0x18b)]),_0x4245ee=this[_0x4f1cf9(0x17c)](0x0,0x0,this['getMaxRows']()+0x1,this['getMaxColumns']()+0x1)[_0x4f1cf9(0x17e)]();return await _0x2d8084[_0x4f1cf9(0x185)](_0x4245ee);}async[_0x1b2f68(0x18e)](){const _0x88a43b=_0x1b2f68;return(await this[_0x88a43b(0x17d)]())['map'](c[_0x88a43b(0x172)]);}}o[_0x1b2f68(0x190)][_0x1b2f68(0x182)](k);class U extends o['FRange']{async['getFormulaUsages'](){const _0x3eb111=_0x1b2f68,_0xd7ceb6=this[_0x3eb111(0x186)][_0x3eb111(0x17f)](c['IFormulaUsageAnalyzer']),_0x59bc60=(({startRow:_0x52c469,endRow:_0x7df01d,startColumn:_0x49bd8f,endColumn:_0x461e0b})=>{const _0x533531=_0x3eb111,_0x5d6f0c=[];for(let _0x5e68be=_0x52c469;_0x5e68be<=_0x7df01d;_0x5e68be++){const _0x200e3c=[];for(let _0x21cc37=_0x49bd8f;_0x21cc37<=_0x461e0b;_0x21cc37++)_0x200e3c['push'](this[_0x533531(0x192)]['getCellRaw'](_0x5e68be,_0x21cc37));_0x5d6f0c['push'](_0x200e3c);}return _0x5d6f0c;})({'startRow':0x0,'endRow':this['_worksheet'][_0x3eb111(0x18c)](),'startColumn':0x0,'endColumn':this[_0x3eb111(0x192)][_0x3eb111(0x191)]()}),_0x445113=await _0xd7ceb6[_0x3eb111(0x185)](_0x59bc60),_0x19fac2=this['getRange'](),_0x54aa0f=[];for(let _0x5c25d8=0x0;_0x5c25d8<_0x445113['length'];_0x5c25d8++){const _0x13fcfd=_0x445113[_0x5c25d8],_0x509769=_0x13fcfd[_0x3eb111(0x18d)],_0x5327ef=[];for(let _0x46e4fd=0x0;_0x46e4fd<_0x509769[_0x3eb111(0x178)];_0x46e4fd++){const _0x50a4e7=_0x509769[_0x46e4fd],_0x44c344=w[_0x3eb111(0x174)](_0x50a4e7,_0x19fac2);_0x44c344&&_0x5327ef[_0x3eb111(0x176)](_0x44c344);}if(_0x5327ef['length']>0x0){_0x13fcfd['filledRanges']=_0x5327ef;const _0x4cd050=_0x5327ef[0x0],_0x540ce4=_0x4cd050['startRow']-_0x19fac2[_0x3eb111(0x188)],_0x2ffd93=_0x4cd050[_0x3eb111(0x16f)]-_0x19fac2[_0x3eb111(0x16f)];_0x13fcfd[_0x3eb111(0x181)]=await _0xd7ceb6[_0x3eb111(0x184)](_0x13fcfd['formula'],_0x540ce4,_0x2ffd93),_0x54aa0f['push'](_0x13fcfd);}}return _0x54aa0f;}async['getFormulaUsagesAsA1'](){const _0x48544a=_0x1b2f68;return(await this[_0x48544a(0x17d)]())['map'](c[_0x48544a(0x172)]);}}o[_0x1b2f68(0x177)][_0x1b2f68(0x182)](U);
1
+ 'use strict';const _0x2b73c4=_0x17f5;(function(_0x1f9c00,_0x142e56){const _0x450346=_0x17f5,_0x41afd7=_0x1f9c00();while(!![]){try{const _0x5517f1=-parseInt(_0x450346(0x1a2))/0x1*(parseInt(_0x450346(0x1a9))/0x2)+-parseInt(_0x450346(0x1ab))/0x3+-parseInt(_0x450346(0x1c3))/0x4*(parseInt(_0x450346(0x1a6))/0x5)+-parseInt(_0x450346(0x1b2))/0x6+parseInt(_0x450346(0x1b4))/0x7*(parseInt(_0x450346(0x1aa))/0x8)+-parseInt(_0x450346(0x1b8))/0x9+parseInt(_0x450346(0x1bf))/0xa;if(_0x5517f1===_0x142e56)break;else _0x41afd7['push'](_0x41afd7['shift']());}catch(_0x25c6e0){_0x41afd7['push'](_0x41afd7['shift']());}}}(_0xe777,0x2279f));function _0xe777(){const _0x3a6a74=['24PQRZSo','45873iWoocS','formula','startColumn','getAllFormulaUsages','FWorkbook','_worksheet','FWorksheet','1143150kZUKXq','getCellRaw','255101fsgyTx','push','getMaxRows','getLintErrors','1841877waMVQc','map','_injector','startRow','getFormulaUsagesAsA1','getActiveWorkbook','getFormulaUsages','8054100xkFMWY','getIntersectRange','getRange','FRange','16WFjqTI','IFormulaUsageAnalyzer','getCellDataGrid','filledRanges','429GVJfyh','moveFormulaRefOffset','extend','getAllFormulaError','111155QUcNhx','getMaxColumns','length','1278JvSoCH'];_0xe777=function(){return _0x3a6a74;};return _0xe777();}const d=require('@univerjs/core/facade');require('@univerjs/sheets-formula/facade'),require('@univerjs/sheets-data-validation/facade');const o=require('@univerjs/sheets/facade'),c=require('@univerjs-pro/sheets-mcp'),w=require('@univerjs/core');class A extends d['FUniver']{async[_0x2b73c4(0x1b7)](){const _0x58354c=_0x2b73c4;return this[_0x58354c(0x1bd)]()[_0x58354c(0x1b7)]();}}function _0x17f5(_0x4ee85c,_0x4b329e){const _0xe77753=_0xe777();return _0x17f5=function(_0x17f5c2,_0x204907){_0x17f5c2=_0x17f5c2-0x1a1;let _0x34cd47=_0xe77753[_0x17f5c2];return _0x34cd47;},_0x17f5(_0x4ee85c,_0x4b329e);}d['FUniver'][_0x2b73c4(0x1a4)](A);class x extends o[_0x2b73c4(0x1af)]{async[_0x2b73c4(0x1b7)](){const _0x5b62c9=_0x2b73c4,_0x5ca3b0=this[_0x5b62c9(0x1a5)](),_0x2c077c=await this['getAllDataValidationErrorAsync']();return{'formulaErrors':_0x5ca3b0,'dataValidationErrors':_0x2c077c};}}o[_0x2b73c4(0x1af)][_0x2b73c4(0x1a4)](x);class k extends o[_0x2b73c4(0x1b1)]{async[_0x2b73c4(0x1be)](){const _0x5d537e=_0x2b73c4,_0x4669e3=this['_injector']['get'](c['IFormulaUsageAnalyzer']),_0xe81d98=this[_0x5d537e(0x1c1)](0x0,0x0,this[_0x5d537e(0x1b6)]()+0x1,this[_0x5d537e(0x1a7)]()+0x1)[_0x5d537e(0x1c5)]();return await _0x4669e3[_0x5d537e(0x1ae)](_0xe81d98);}async[_0x2b73c4(0x1bc)](){const _0x187d28=_0x2b73c4;return(await this['getFormulaUsages']())[_0x187d28(0x1b9)](c['toA1']);}}o[_0x2b73c4(0x1b1)][_0x2b73c4(0x1a4)](k);class U extends o[_0x2b73c4(0x1c2)]{async['getFormulaUsages'](){const _0x30b07b=_0x2b73c4,_0x242a15=this[_0x30b07b(0x1ba)]['get'](c[_0x30b07b(0x1c4)]),_0x15cb05=(({startRow:_0x2747d5,endRow:_0x302eae,startColumn:_0x3130cc,endColumn:_0xa6bcf0})=>{const _0x488901=_0x30b07b,_0x42b7f8=[];for(let _0x27d743=_0x2747d5;_0x27d743<=_0x302eae;_0x27d743++){const _0x2b6787=[];for(let _0x350eb5=_0x3130cc;_0x350eb5<=_0xa6bcf0;_0x350eb5++)_0x2b6787[_0x488901(0x1b5)](this[_0x488901(0x1b0)][_0x488901(0x1b3)](_0x27d743,_0x350eb5));_0x42b7f8['push'](_0x2b6787);}return _0x42b7f8;})({'startRow':0x0,'endRow':this[_0x30b07b(0x1b0)][_0x30b07b(0x1b6)](),'startColumn':0x0,'endColumn':this[_0x30b07b(0x1b0)]['getMaxColumns']()}),_0x1c372f=await _0x242a15['getAllFormulaUsages'](_0x15cb05),_0x4cd676=this[_0x30b07b(0x1c1)](),_0x4a45dc=[];for(let _0x49aca3=0x0;_0x49aca3<_0x1c372f[_0x30b07b(0x1a8)];_0x49aca3++){const _0x41157c=_0x1c372f[_0x49aca3],_0xb8a6de=_0x41157c['filledRanges'],_0x449065=[];for(let _0xec1520=0x0;_0xec1520<_0xb8a6de[_0x30b07b(0x1a8)];_0xec1520++){const _0x5dd4ce=_0xb8a6de[_0xec1520],_0x53c0fb=w[_0x30b07b(0x1c0)](_0x5dd4ce,_0x4cd676);_0x53c0fb&&_0x449065[_0x30b07b(0x1b5)](_0x53c0fb);}if(_0x449065[_0x30b07b(0x1a8)]>0x0){_0x41157c[_0x30b07b(0x1a1)]=_0x449065;const _0x351e6d=_0x449065[0x0],_0x355f0a=_0x351e6d[_0x30b07b(0x1bb)]-_0x4cd676[_0x30b07b(0x1bb)],_0x19e100=_0x351e6d[_0x30b07b(0x1ad)]-_0x4cd676['startColumn'];_0x41157c[_0x30b07b(0x1ac)]=await _0x242a15[_0x30b07b(0x1a3)](_0x41157c[_0x30b07b(0x1ac)],_0x355f0a,_0x19e100),_0x4a45dc[_0x30b07b(0x1b5)](_0x41157c);}}return _0x4a45dc;}async['getFormulaUsagesAsA1'](){const _0x11d45b=_0x2b73c4;return(await this[_0x11d45b(0x1be)]())[_0x11d45b(0x1b9)](c['toA1']);}}o['FRange'][_0x2b73c4(0x1a4)](U);