@univerjs-pro/sheets-mcp 0.18.0 → 0.20.1
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 +14 -14
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x11d1(){const _0x32538f=['FWorkbook','@univerjs-pro/sheets-mcp','getAllFormulaUsages','942661nUxSeL','FWorksheet','styleToA1','warn','getLintErrors','getColumnManager','getStyleUsages','IStyleUsageAnalyzer','ISizeUsageAnalyzer','UniverSheetsDataValidationFacade','getColumnWidth','_injector','object','UniverProSheetsMcp','forValue','4860495jepzTD','toString','searchCells','firstOccurrence','@univerjs/core','visibleOnly','6470220rrRSYp','3UAtPKc','FRange','_cellMatchesSearch','updateConfig','amd','filledRanges','getUnitId','getSizeUsagesAsA1','toLowerCase','moveFormulaRefOffset','2278912RqbMBP','getAllStyleUsages','getSheets','219730JPuFbi','getMaxColumns','startColumn','@univerjs/core/facade','endColumn','getSheetId','getRowManager','map','extend','getSizeUsages','toA1','displayValue','getValue','29407rymGbM','@univerjs/sheets-formula/facade','getCell','UniverEngineFormula','startRow','UniverCoreFacade','dataStream','6LccmDN','_isMatch','trim','_workbook','4649795KeCEzF','UniverCore','Sheet\x20with\x20ID\x20','function','IFormulaUsageAnalyzer','length','defineProperty','getWorkbook','getRowVisible','indexOf','get','1280vfWwcV','serializeRangeWithSheet','getAllDataValidationErrorAsync','push','includes','endRow','_formulaDataModel','getCellDataGrid','getColVisible','AND','getAllSizeUsages','getFormulaUsages','formula','getSheetBySheetId','FUniver','getStyleUsagesAsA1','FormulaDataModel','getIntersectRange','getFormulaStringByCell','_collectRectAreaData','@univerjs/engine-formula','rawValue','getMaxRows','getRange','getName','getCellMatrix','UniverSheetsFacade','formulaToA1','filter','_worksheet','body','getRectAreaData','getRowHeight'];_0x11d1=function(){return _0x32538f;};return _0x11d1();}function _0x1189(_0x52a35a,_0x5a0c6c){_0x52a35a=_0x52a35a-0x115;const _0x11d153=_0x11d1();let _0x118975=_0x11d153[_0x52a35a];return _0x118975;}(function(_0x20b947,_0x4980c9){const _0xfd9b2=_0x1189,_0x5becce=_0x20b947();while(!![]){try{const _0x31b1ef=parseInt(_0xfd9b2(0x124))/0x1+parseInt(_0xfd9b2(0x147))/0x2*(-parseInt(_0xfd9b2(0x13a))/0x3)+parseInt(_0xfd9b2(0x144))/0x4+parseInt(_0xfd9b2(0x15f))/0x5*(parseInt(_0xfd9b2(0x15b))/0x6)+-parseInt(_0xfd9b2(0x154))/0x7*(parseInt(_0xfd9b2(0x16a))/0x8)+-parseInt(_0xfd9b2(0x133))/0x9+-parseInt(_0xfd9b2(0x139))/0xa;if(_0x31b1ef===_0x4980c9)break;else _0x5becce['push'](_0x5becce['shift']());}catch(_0x5d2aaa){_0x5becce['push'](_0x5becce['shift']());}}}(_0x11d1,0x7389e),function(_0x1762fb,_0x3ef8de){const _0x39e3c4=_0x1189;typeof exports==_0x39e3c4(0x130)&&typeof module<'u'?_0x3ef8de(require(`@univerjs/core/facade`),require(`@univerjs/sheets-formula/facade`),require(`@univerjs/sheets-data-validation/facade`),require(`@univerjs/sheets/facade`),require(`@univerjs/engine-formula`),require(`@univerjs-pro/sheets-mcp`),require(`@univerjs/core`)):typeof define==_0x39e3c4(0x162)&&define[_0x39e3c4(0x13e)]?define([_0x39e3c4(0x14a),_0x39e3c4(0x155),'@univerjs/sheets-data-validation/facade','@univerjs/sheets/facade',_0x39e3c4(0x17e),_0x39e3c4(0x122),_0x39e3c4(0x137)],_0x3ef8de):(_0x1762fb=typeof globalThis<'u'?globalThis:_0x1762fb||self,_0x3ef8de(_0x1762fb[_0x39e3c4(0x159)],_0x1762fb['UniverSheetsFormulaFacade'],_0x1762fb[_0x39e3c4(0x12d)],_0x1762fb[_0x39e3c4(0x11a)],_0x1762fb[_0x39e3c4(0x157)],_0x1762fb[_0x39e3c4(0x131)],_0x1762fb[_0x39e3c4(0x160)]));}(this,function(_0x5b2bb4,_0x1fd16e,_0x3f5495,_0x2263ef,_0x3e9244,_0x74d9a9,_0x42e39e){const _0x53055d=_0x1189;var _0x52f445=class extends _0x5b2bb4['FUniver']{async[_0x53055d(0x128)](){const _0x19cf27=_0x53055d;return this['getActiveWorkbook']()[_0x19cf27(0x128)]();}};_0x5b2bb4[_0x53055d(0x178)][_0x53055d(0x14f)](_0x52f445);var _0x28720b=class extends _0x2263ef[_0x53055d(0x121)]{['_initialize'](){const _0x24348c=_0x53055d;Object[_0x24348c(0x165)](this,_0x24348c(0x170),{'get'(){const _0x4495fa=_0x24348c;return this[_0x4495fa(0x12f)][_0x4495fa(0x169)](_0x3e9244[_0x4495fa(0x17a)]);}});}[_0x53055d(0x135)](_0x790cab,_0x3028ab={}){const _0x23eb80=_0x53055d;let {caseSensitive:_0x29e666=!0x1,matchEntireCell:_0x9835bf=!0x1,specificRanges:_0x45f10e,specificTypes:_0x2e4ef2,searchMultipleTextsCondition:_0x16249a='OR'}=_0x3028ab,_0x2c3439=(Array['isArray'](_0x790cab)?_0x790cab:[_0x790cab])[_0x23eb80(0x14e)](_0x59c8bc=>_0x59c8bc[_0x23eb80(0x15d)]())[_0x23eb80(0x11c)](_0x56ba9d=>_0x56ba9d);if(_0x29e666||(_0x2c3439=_0x2c3439[_0x23eb80(0x14e)](_0x1546b4=>_0x1546b4['toLowerCase']())),_0x2c3439['length']===0x0)return[];let _0x1ddbf3={'caseSensitive':_0x29e666,'matchEntireCell':_0x9835bf,'searchMultipleTextsCondition':_0x16249a,'isSearchByRawValue':!_0x2e4ef2||_0x2e4ef2[_0x23eb80(0x16e)](_0x23eb80(0x115)),'isSearchByDisplayValue':!_0x2e4ef2||_0x2e4ef2['includes'](_0x23eb80(0x152)),'isSearchByFormula':!_0x2e4ef2||_0x2e4ef2['includes'](_0x23eb80(0x176))},_0xad382d=this[_0x23eb80(0x166)](),_0x29c3a3=[];if(_0x45f10e)for(let {sheetId:_0x286000,ranges:_0x1f39bb}of _0x45f10e){let _0x28b532=_0xad382d[_0x23eb80(0x177)](_0x286000);if(!_0x28b532){console[_0x23eb80(0x127)](_0x23eb80(0x161)+_0x286000+'\x20not\x20found.\x20Skipping.');continue;}let _0x2888c5=_0x28b532[_0x23eb80(0x119)]();if(_0x1f39bb&&_0x1f39bb['length']>0x0){for(let _0x5ba149 of _0x1f39bb)for(let _0x4de002=_0x5ba149[_0x23eb80(0x158)];_0x4de002<=_0x5ba149[_0x23eb80(0x16f)];_0x4de002++)for(let _0x59ac7b=_0x5ba149['startColumn'];_0x59ac7b<=_0x5ba149[_0x23eb80(0x14b)];_0x59ac7b++){let _0x28e98f=_0x2888c5[_0x23eb80(0x153)](_0x4de002,_0x59ac7b);if(!_0x28e98f)continue;let _0x79ecc=this['_cellMatchesSearch'](_0x28e98f,_0x2c3439,{..._0x1ddbf3,'worksheet':_0x28b532,'row':_0x4de002,'col':_0x59ac7b});_0x79ecc&&_0x29c3a3[_0x23eb80(0x16d)]({..._0x79ecc,'sheetId':_0x28b532[_0x23eb80(0x14c)]()});}}else _0x2888c5[_0x23eb80(0x132)]((_0x348f8c,_0x102088,_0x290b95)=>{const _0x2601f9=_0x23eb80;if(_0x290b95){let _0x4d43cf=this[_0x2601f9(0x13c)](_0x290b95,_0x2c3439,{..._0x1ddbf3,'worksheet':_0x28b532,'row':_0x348f8c,'col':_0x102088});_0x4d43cf&&_0x29c3a3[_0x2601f9(0x16d)]({..._0x4d43cf,'sheetId':_0x28b532[_0x2601f9(0x14c)]()});}});}else{let _0x58b509=_0xad382d[_0x23eb80(0x146)]();for(let _0x3a174d of _0x58b509)_0x3a174d[_0x23eb80(0x119)]()['forValue']((_0x2ab2a0,_0xa6a9f6,_0x335702)=>{const _0x5a781c=_0x23eb80;if(_0x335702){let _0x120bae=this[_0x5a781c(0x13c)](_0x335702,_0x2c3439,{..._0x1ddbf3,'worksheet':_0x3a174d,'row':_0x2ab2a0,'col':_0xa6a9f6});_0x120bae&&_0x29c3a3[_0x5a781c(0x16d)]({..._0x120bae,'sheetId':_0x3a174d[_0x5a781c(0x14c)]()});}});}return _0x29c3a3;}['_cellMatchesSearch'](_0x331422,_0x4ea34a,_0x2c5168){const _0x238103=_0x53055d;let {caseSensitive:_0x213ba7,matchEntireCell:_0x134977,searchMultipleTextsCondition:_0x8db051,isSearchByRawValue:_0x45a01d,isSearchByDisplayValue:_0x227daf,isSearchByFormula:_0x2a277b,worksheet:_0x541433,row:_0x19bf9a,col:_0x5c4e18}=_0x2c5168;if(_0x45a01d){var _0x51c3a4;let _0x5dd0eb=((_0x51c3a4=_0x331422['p'])==null||(_0x51c3a4=_0x51c3a4['body'])==null?void 0x0:_0x51c3a4[_0x238103(0x15a)])||_0x331422['v'];if(_0x5dd0eb){let _0xa879dd=_0x213ba7?_0x5dd0eb[_0x238103(0x134)]():_0x5dd0eb[_0x238103(0x134)]()[_0x238103(0x142)]();if(this[_0x238103(0x15c)](_0xa879dd,_0x4ea34a,_0x134977,_0x8db051))return{'row':_0x19bf9a,'col':_0x5c4e18,'reference':(0x0,_0x3e9244[_0x238103(0x16b)])(_0x541433[_0x238103(0x118)](),{'startRow':_0x19bf9a,'endRow':_0x19bf9a,'startColumn':_0x5c4e18,'endColumn':_0x5c4e18}),'cellData':{..._0x331422,'rawValue':_0x5dd0eb}};}}if(_0x2a277b&&(_0x331422['f']||_0x331422['si'])){let _0x9bc6c0=this['_formulaDataModel'][_0x238103(0x17c)](_0x19bf9a,_0x5c4e18,_0x541433['getSheetId'](),this[_0x238103(0x166)]()[_0x238103(0x140)]());if(_0x9bc6c0){let _0x54125a=_0x213ba7?_0x9bc6c0:_0x9bc6c0[_0x238103(0x142)]();if(this['_isMatch'](_0x54125a,_0x4ea34a,_0x134977,_0x8db051))return{'row':_0x19bf9a,'col':_0x5c4e18,'reference':(0x0,_0x3e9244[_0x238103(0x16b)])(_0x541433[_0x238103(0x118)](),{'startRow':_0x19bf9a,'endRow':_0x19bf9a,'startColumn':_0x5c4e18,'endColumn':_0x5c4e18}),'cellData':{..._0x331422,'formulaString':_0x9bc6c0}};}}if(_0x227daf){var _0x4847ce;let _0x593bd0=(_0x4847ce=_0x331422['p'])==null||(_0x4847ce=_0x4847ce[_0x238103(0x11e)])==null?void 0x0:_0x4847ce[_0x238103(0x15a)];if(!_0x593bd0){var _0x1f9996;_0x593bd0=(_0x1f9996=_0x541433[_0x238103(0x156)](_0x19bf9a,_0x5c4e18))==null?void 0x0:_0x1f9996['v'];}if(_0x593bd0){let _0xa98255=_0x213ba7?_0x593bd0[_0x238103(0x134)]():_0x593bd0['toString']()[_0x238103(0x142)]();if(this['_isMatch'](_0xa98255,_0x4ea34a,_0x134977,_0x8db051))return{'row':_0x19bf9a,'col':_0x5c4e18,'reference':(0x0,_0x3e9244[_0x238103(0x16b)])(_0x541433['getName'](),{'startRow':_0x19bf9a,'endRow':_0x19bf9a,'startColumn':_0x5c4e18,'endColumn':_0x5c4e18}),'cellData':{..._0x331422,'displayValue':_0x593bd0[_0x238103(0x134)]()}};}}return!0x1;}[_0x53055d(0x15c)](_0x1460b9,_0x1c239e,_0x584b7a,_0x17906b){const _0x500b93=_0x53055d;return _0x1c239e[_0x500b93(0x164)]>0x1&&_0x17906b===_0x500b93(0x173)?_0x1c239e['every'](_0x2d03cf=>_0x584b7a?_0x1460b9===_0x2d03cf:_0x1460b9['indexOf'](_0x2d03cf)>-0x1):_0x1c239e['some'](_0xf3f1e6=>_0x584b7a?_0x1460b9===_0xf3f1e6:_0x1460b9[_0x500b93(0x168)](_0xf3f1e6)>-0x1);}};_0x2263ef[_0x53055d(0x121)][_0x53055d(0x14f)](_0x28720b);var _0xc1106=class extends _0x2263ef[_0x53055d(0x121)]{async[_0x53055d(0x128)](){const _0x254658=_0x53055d;return{'formulaErrors':this['getAllFormulaError'](),'dataValidationErrors':await this[_0x254658(0x16c)]()};}};_0x2263ef['FWorkbook'][_0x53055d(0x14f)](_0xc1106);var _0xd591ca=class extends _0x2263ef[_0x53055d(0x125)]{async[_0x53055d(0x175)](){const _0x496b29=_0x53055d;let _0x4c45b3=this[_0x496b29(0x12f)][_0x496b29(0x169)](_0x74d9a9[_0x496b29(0x163)]),_0x413841=this[_0x496b29(0x117)](0x0,0x0,this['getMaxRows'](),this['getMaxColumns']())[_0x496b29(0x171)]();return await _0x4c45b3[_0x496b29(0x123)](_0x413841);}async['getFormulaUsagesAsA1'](){const _0x3a9638=_0x53055d;return(await this['getFormulaUsages']())[_0x3a9638(0x14e)](_0x74d9a9[_0x3a9638(0x11b)]);}[_0x53055d(0x12a)](_0x2da6b2){const _0x485a0b=_0x53055d;let _0x504bd4=this[_0x485a0b(0x12f)]['get'](_0x74d9a9['IStyleUsageAnalyzer']),_0x4927be=this['getRange'](0x0,0x0,this[_0x485a0b(0x116)](),this[_0x485a0b(0x148)]())['getCellDataGrid']();return _0x504bd4[_0x485a0b(0x13d)](_0x2da6b2),_0x504bd4[_0x485a0b(0x145)](_0x4927be,this[_0x485a0b(0x15e)],this[_0x485a0b(0x11d)]);}[_0x53055d(0x179)](_0x43f4f9){const _0x13372b=_0x53055d;return this[_0x13372b(0x12a)](_0x43f4f9)['map'](_0x74d9a9[_0x13372b(0x126)]);}[_0x53055d(0x150)](_0x3a34f2){const _0x1406f5=_0x53055d;let _0x62faa6=this[_0x1406f5(0x12f)]['get'](_0x74d9a9[_0x1406f5(0x12c)]);return _0x62faa6[_0x1406f5(0x13d)](_0x3a34f2),_0x62faa6['getAllSizeUsages'](this[_0x1406f5(0x11d)]);}[_0x53055d(0x141)](_0x98e03a){const _0x38b81b=_0x53055d;let _0x469bea=this[_0x38b81b(0x12f)][_0x38b81b(0x169)](_0x74d9a9['ISizeUsageAnalyzer']);_0x469bea[_0x38b81b(0x13d)](_0x98e03a);let _0x21a4bf=_0x469bea[_0x38b81b(0x174)](this[_0x38b81b(0x11d)]);return _0x469bea[_0x38b81b(0x151)](_0x21a4bf);}};_0x2263ef['FWorksheet'][_0x53055d(0x14f)](_0xd591ca);var _0x445401=class extends _0x2263ef[_0x53055d(0x13b)]{[_0x53055d(0x17d)](_0x37f286){const _0x1cda7f=_0x53055d;var _0x16f2f1;let _0x226ff5=(_0x16f2f1=_0x37f286==null?void 0x0:_0x37f286[_0x1cda7f(0x138)])==null?!0x0:_0x16f2f1,_0x24aa56=this[_0x1cda7f(0x117)](),_0x15e3d3=this[_0x1cda7f(0x11d)][_0x1cda7f(0x14d)](),_0x2dc460=this[_0x1cda7f(0x11d)][_0x1cda7f(0x129)](),_0x4c9a8d={},_0x359b48=0x0;for(let _0x278be7=_0x24aa56[_0x1cda7f(0x158)];_0x278be7<=_0x24aa56['endRow'];_0x278be7++){let _0x2f5b20=_0x15e3d3[_0x1cda7f(0x120)](_0x278be7),_0x235489=!_0x226ff5||this[_0x1cda7f(0x11d)][_0x1cda7f(0x167)](_0x278be7)?_0x2f5b20:0x0;_0x359b48+=_0x235489,_0x4c9a8d[_0x278be7]={'h':_0x235489};}let _0x36b321={},_0x18be27=0x0;for(let _0x4e7c7b=_0x24aa56[_0x1cda7f(0x149)];_0x4e7c7b<=_0x24aa56[_0x1cda7f(0x14b)];_0x4e7c7b++){let _0x4d5a33=_0x2dc460[_0x1cda7f(0x12e)](_0x4e7c7b),_0x25dfa8=!_0x226ff5||this['_worksheet'][_0x1cda7f(0x172)](_0x4e7c7b)?_0x4d5a33:0x0;_0x18be27+=_0x25dfa8,_0x36b321[_0x4e7c7b]={'w':_0x25dfa8};}return{'w':_0x18be27,'h':_0x359b48,'rowData':_0x4c9a8d,'columnData':_0x36b321};}async['getFormulaUsages'](){const _0x1ac837=_0x53055d;let _0x4b64e9=this[_0x1ac837(0x12f)][_0x1ac837(0x169)](_0x74d9a9[_0x1ac837(0x163)]),_0x2a371c=(({startRow:_0x4ee2d4,endRow:_0x3995d2,startColumn:_0x4d94c1,endColumn:_0x20e184})=>{const _0xfa78a=_0x1ac837;let _0x1f4de6=[];for(let _0x2378a7=_0x4ee2d4;_0x2378a7<=_0x3995d2;_0x2378a7++){let _0x5eeb6e=[];for(let _0x299fb7=_0x4d94c1;_0x299fb7<=_0x20e184;_0x299fb7++)_0x5eeb6e[_0xfa78a(0x16d)](this[_0xfa78a(0x11d)]['getCellRaw'](_0x2378a7,_0x299fb7));_0x1f4de6[_0xfa78a(0x16d)](_0x5eeb6e);}return _0x1f4de6;})({'startRow':0x0,'endRow':this['_worksheet'][_0x1ac837(0x116)](),'startColumn':0x0,'endColumn':this['_worksheet']['getMaxColumns']()}),_0x2f8d9b=await _0x4b64e9[_0x1ac837(0x123)](_0x2a371c),_0x346cdc=this[_0x1ac837(0x117)](),_0x50b156=[];for(let _0x5baafb=0x0;_0x5baafb<_0x2f8d9b[_0x1ac837(0x164)];_0x5baafb++){let _0x2d2340=_0x2f8d9b[_0x5baafb],_0x47b0c3=_0x2d2340['filledRanges'],_0x565d39=[];for(let _0x10d959=0x0;_0x10d959<_0x47b0c3[_0x1ac837(0x164)];_0x10d959++){let _0x46f893=_0x47b0c3[_0x10d959],_0x4a7c61=(0x0,_0x42e39e[_0x1ac837(0x17b)])(_0x46f893,_0x346cdc);_0x4a7c61&&_0x565d39[_0x1ac837(0x16d)](_0x4a7c61);}if(_0x565d39[_0x1ac837(0x164)]>0x0){if(_0x2d2340[_0x1ac837(0x13f)]=_0x565d39,!(_0x2d2340[_0x1ac837(0x136)][_0x1ac837(0x158)]>=_0x346cdc['startRow']&&_0x2d2340['firstOccurrence']['startRow']<=_0x346cdc[_0x1ac837(0x16f)]&&_0x2d2340[_0x1ac837(0x136)][_0x1ac837(0x149)]>=_0x346cdc[_0x1ac837(0x149)]&&_0x2d2340['firstOccurrence']['startColumn']<=_0x346cdc[_0x1ac837(0x14b)])){let _0x56961f=_0x565d39[0x0],_0x4bd46a=_0x56961f['startRow']-_0x2d2340[_0x1ac837(0x136)][_0x1ac837(0x158)],_0x3f2ef0=_0x56961f[_0x1ac837(0x149)]-_0x2d2340['firstOccurrence'][_0x1ac837(0x149)];_0x2d2340['formula']=await _0x4b64e9[_0x1ac837(0x143)](_0x2d2340[_0x1ac837(0x176)],_0x3f2ef0,_0x4bd46a),_0x2d2340[_0x1ac837(0x136)]={'startRow':_0x56961f[_0x1ac837(0x158)],'endRow':_0x56961f[_0x1ac837(0x158)],'startColumn':_0x56961f[_0x1ac837(0x149)],'endColumn':_0x56961f[_0x1ac837(0x149)]};}_0x50b156['push'](_0x2d2340);}}return _0x50b156;}async['getFormulaUsagesAsA1'](){const _0x167a67=_0x53055d;return(await this[_0x167a67(0x175)]())[_0x167a67(0x14e)](_0x74d9a9[_0x167a67(0x11b)]);}['getStyleUsages'](_0x5166ec){const _0x1a695f=_0x53055d;let _0x28b51f=this[_0x1a695f(0x12f)][_0x1a695f(0x169)](_0x74d9a9[_0x1a695f(0x12b)]),_0x569d5f=(({startRow:_0x50b62a,endRow:_0x1aa69b,startColumn:_0x556153,endColumn:_0x213dd9})=>{const _0x4da633=_0x1a695f;let _0x223cdf=[];for(let _0x1022b6=_0x50b62a;_0x1022b6<=_0x1aa69b;_0x1022b6++){let _0x2dcaf8=[];for(let _0x750258=_0x556153;_0x750258<=_0x213dd9;_0x750258++)_0x2dcaf8[_0x4da633(0x16d)](this[_0x4da633(0x11d)]['getCellRaw'](_0x1022b6,_0x750258));_0x223cdf[_0x4da633(0x16d)](_0x2dcaf8);}return _0x223cdf;})({'startRow':0x0,'endRow':this[_0x1a695f(0x11d)][_0x1a695f(0x116)](),'startColumn':0x0,'endColumn':this['_worksheet'][_0x1a695f(0x148)]()});_0x28b51f[_0x1a695f(0x13d)](_0x5166ec);let _0x1d421f=_0x28b51f['getAllStyleUsages'](_0x569d5f,this[_0x1a695f(0x15e)],this[_0x1a695f(0x11d)]),_0x1173b4=this[_0x1a695f(0x117)](),_0x4f21b6=[];for(let _0x128e27=0x0;_0x128e27<_0x1d421f[_0x1a695f(0x164)];_0x128e27++){let _0x1fde31=_0x1d421f[_0x128e27],_0x7e3e1b=_0x1fde31[_0x1a695f(0x13f)],_0x47c3c6=[];for(let _0x238d4b=0x0;_0x238d4b<_0x7e3e1b[_0x1a695f(0x164)];_0x238d4b++){let _0x34bf7a=_0x7e3e1b[_0x238d4b],_0x5cb0a9=(0x0,_0x42e39e['getIntersectRange'])(_0x34bf7a,_0x1173b4);_0x5cb0a9&&_0x47c3c6['push'](_0x5cb0a9);}_0x47c3c6[_0x1a695f(0x164)]>0x0&&(_0x1fde31[_0x1a695f(0x13f)]=_0x47c3c6,_0x4f21b6[_0x1a695f(0x16d)](_0x1fde31));}return _0x4f21b6;}[_0x53055d(0x179)](_0x514fdf){const _0x5d4531=_0x53055d;return this['getStyleUsages'](_0x514fdf)[_0x5d4531(0x14e)](_0x74d9a9['styleToA1']);}['getSizeUsages'](_0x3b4e1a){const _0x291309=_0x53055d;let _0x304afc=this[_0x291309(0x12f)][_0x291309(0x169)](_0x74d9a9[_0x291309(0x12c)]),_0x584740=this['getRange']();return _0x304afc[_0x291309(0x13d)](_0x3b4e1a),_0x304afc['getAllSizeUsages'](this['_worksheet'],_0x584740[_0x291309(0x158)],_0x584740['endRow'],_0x584740['startColumn'],_0x584740['endColumn']);}[_0x53055d(0x141)](_0x2185a8){const _0x29296d=_0x53055d;let _0x2dfe1c=this['getSizeUsages'](_0x2185a8);return this[_0x29296d(0x12f)][_0x29296d(0x169)](_0x74d9a9[_0x29296d(0x12c)])['toA1'](_0x2dfe1c);}['getRectArea'](_0x2ba764){let _0x1ced84=this['_collectRectAreaData'](_0x2ba764);return{'w':_0x1ced84['w'],'h':_0x1ced84['h']};}[_0x53055d(0x11f)](_0x459d37){const _0x67a1ec=_0x53055d;return this[_0x67a1ec(0x17d)](_0x459d37);}};_0x2263ef[_0x53055d(0x13b)][_0x53055d(0x14f)](_0x445401);}));
|
|
1
|
+
function _0x48fd(_0x5da5a5,_0x5545e4){_0x5da5a5=_0x5da5a5-0x87;const _0x2f98e0=_0x2f98();let _0x48fd51=_0x2f98e0[_0x5da5a5];return _0x48fd51;}function _0x2f98(){const _0x74f1dd=['updateConfig','UniverSheetsFormulaFacade','getCellDataGrid','toA1','getRowVisible','31653MohCCn','firstOccurrence','moveFormulaRefOffset','includes','ISizeUsageAnalyzer','1352yOlLxj','getLintErrors','startRow','dataStream','FWorkbook','serializeRangeWithSheet','map','@univerjs-pro/sheets-mcp','visibleOnly','getRowManager','_workbook','length','startColumn','getSheetBySheetId','Sheet\x20with\x20ID\x20','_initialize','UniverEngineFormula','371360eMuktn','getAllDataValidationErrorAsync','getRectAreaData','getStyleUsagesAsA1','filledRanges','getAllSizeUsages','push','345922KiZgVd','some','getFormulaUsagesAsA1','FWorksheet','_collectRectAreaData','trim','function','displayValue','IStyleUsageAnalyzer','FUniver','getSizeUsages','UniverSheetsDataValidationFacade','getAllFormulaUsages','searchCells','endColumn','getFormulaUsages','getSheets','getIntersectRange','FormulaDataModel','getAllFormulaError','getWorkbook','@univerjs/core/facade','getMaxColumns','isArray','getCellMatrix','getColumnManager','_isMatch','defineProperty','getStyleUsages','getFormulaStringByCell','382376mQEspy','UniverProSheetsMcp','getColumnWidth','UniverCoreFacade','getSizeUsagesAsA1','_worksheet','getMaxRows','IFormulaUsageAnalyzer','formula','get','UniverCore','toLowerCase','extend','object','rawValue','_formulaDataModel','getCellRaw','7bddgjr','getUnitId','toString','FRange','getRange','getRowHeight','getActiveWorkbook','371521DmYkvD','styleToA1','filter','getSheetId','getAllStyleUsages','endRow','844242qyHpHh','body','formulaToA1','657720tZKxHv','indexOf','_injector','forValue','@univerjs/sheets/facade','getName','_cellMatchesSearch'];_0x2f98=function(){return _0x74f1dd;};return _0x2f98();}(function(_0xbe0eb6,_0x384350){const _0x19016d=_0x48fd,_0x23efc2=_0xbe0eb6();while(!![]){try{const _0x2e4093=parseInt(_0x19016d(0xd8))/0x1+parseInt(_0x19016d(0xa2))/0x2+parseInt(_0x19016d(0xe1))/0x3+parseInt(_0x19016d(0xc0))/0x4+parseInt(_0x19016d(0x9b))/0x5+parseInt(_0x19016d(0xde))/0x6*(-parseInt(_0x19016d(0xd1))/0x7)+-parseInt(_0x19016d(0x8a))/0x8*(parseInt(_0x19016d(0xed))/0x9);if(_0x2e4093===_0x384350)break;else _0x23efc2['push'](_0x23efc2['shift']());}catch(_0x4f8c97){_0x23efc2['push'](_0x23efc2['shift']());}}}(_0x2f98,0x3076c),function(_0x5c593f,_0x356758){const _0x457865=_0x48fd;typeof exports==_0x457865(0xcd)&&typeof module<'u'?_0x356758(require(`@univerjs/core/facade`),require(`@univerjs/sheets-formula/facade`),require(`@univerjs/sheets-data-validation/facade`),require(`@univerjs/sheets/facade`),require(`@univerjs/engine-formula`),require(`@univerjs-pro/sheets-mcp`),require(`@univerjs/core`)):typeof define==_0x457865(0xa8)&&define['amd']?define([_0x457865(0xb7),'@univerjs/sheets-formula/facade','@univerjs/sheets-data-validation/facade',_0x457865(0xe5),'@univerjs/engine-formula',_0x457865(0x91),'@univerjs/core'],_0x356758):(_0x5c593f=typeof globalThis<'u'?globalThis:_0x5c593f||self,_0x356758(_0x5c593f[_0x457865(0xc3)],_0x5c593f[_0x457865(0xe9)],_0x5c593f[_0x457865(0xad)],_0x5c593f['UniverSheetsFacade'],_0x5c593f[_0x457865(0x9a)],_0x5c593f[_0x457865(0xc1)],_0x5c593f[_0x457865(0xca)]));}(this,function(_0x38d874,_0x1cba10,_0x120b10,_0x4b1a2a,_0x4babec,_0x180d9e,_0x2754c1){const _0x49777d=_0x48fd;var _0x39fcc0=class extends _0x38d874[_0x49777d(0xab)]{async['getLintErrors'](){const _0xb21480=_0x49777d;return this[_0xb21480(0xd7)]()[_0xb21480(0x8b)]();}};_0x38d874[_0x49777d(0xab)][_0x49777d(0xcc)](_0x39fcc0);var _0x2384b9=class extends _0x4b1a2a[_0x49777d(0x8e)]{[_0x49777d(0x99)](){const _0x460011=_0x49777d;Object[_0x460011(0xbd)](this,_0x460011(0xcf),{'get'(){const _0x39eb16=_0x460011;return this[_0x39eb16(0xe3)][_0x39eb16(0xc9)](_0x4babec[_0x39eb16(0xb4)]);}});}[_0x49777d(0xaf)](_0x2d3bfd,_0x3cfb01={}){const _0x582847=_0x49777d;let {caseSensitive:_0x2e4a89=!0x1,matchEntireCell:_0x315d7c=!0x1,specificRanges:_0xf24707,specificTypes:_0x1c2a86,searchMultipleTextsCondition:_0x2ee42f='OR'}=_0x3cfb01,_0x47cfb1=(Array[_0x582847(0xb9)](_0x2d3bfd)?_0x2d3bfd:[_0x2d3bfd])[_0x582847(0x90)](_0x1da2d5=>_0x1da2d5[_0x582847(0xa7)]())[_0x582847(0xda)](_0x29c3be=>_0x29c3be);if(_0x2e4a89||(_0x47cfb1=_0x47cfb1['map'](_0x506c5a=>_0x506c5a[_0x582847(0xcb)]())),_0x47cfb1[_0x582847(0x95)]===0x0)return[];let _0x25da17={'caseSensitive':_0x2e4a89,'matchEntireCell':_0x315d7c,'searchMultipleTextsCondition':_0x2ee42f,'isSearchByRawValue':!_0x1c2a86||_0x1c2a86['includes'](_0x582847(0xce)),'isSearchByDisplayValue':!_0x1c2a86||_0x1c2a86['includes'](_0x582847(0xa9)),'isSearchByFormula':!_0x1c2a86||_0x1c2a86[_0x582847(0x88)](_0x582847(0xc8))},_0x57bdd5=this[_0x582847(0xb6)](),_0x42de00=[];if(_0xf24707)for(let {sheetId:_0x4f18f0,ranges:_0x36049e}of _0xf24707){let _0x2ca067=_0x57bdd5[_0x582847(0x97)](_0x4f18f0);if(!_0x2ca067){console['warn'](_0x582847(0x98)+_0x4f18f0+'\x20not\x20found.\x20Skipping.');continue;}let _0x25ee2d=_0x2ca067[_0x582847(0xba)]();if(_0x36049e&&_0x36049e[_0x582847(0x95)]>0x0){for(let _0x38479f of _0x36049e)for(let _0x47eaec=_0x38479f['startRow'];_0x47eaec<=_0x38479f['endRow'];_0x47eaec++)for(let _0x43a8bd=_0x38479f[_0x582847(0x96)];_0x43a8bd<=_0x38479f[_0x582847(0xb0)];_0x43a8bd++){let _0x2b6183=_0x25ee2d['getValue'](_0x47eaec,_0x43a8bd);if(!_0x2b6183)continue;let _0x4dc992=this['_cellMatchesSearch'](_0x2b6183,_0x47cfb1,{..._0x25da17,'worksheet':_0x2ca067,'row':_0x47eaec,'col':_0x43a8bd});_0x4dc992&&_0x42de00[_0x582847(0xa1)]({..._0x4dc992,'sheetId':_0x2ca067[_0x582847(0xdb)]()});}}else _0x25ee2d[_0x582847(0xe4)]((_0x49ab8a,_0x2770d5,_0x1c45e8)=>{const _0x19a979=_0x582847;if(_0x1c45e8){let _0x52aea7=this[_0x19a979(0xe7)](_0x1c45e8,_0x47cfb1,{..._0x25da17,'worksheet':_0x2ca067,'row':_0x49ab8a,'col':_0x2770d5});_0x52aea7&&_0x42de00[_0x19a979(0xa1)]({..._0x52aea7,'sheetId':_0x2ca067[_0x19a979(0xdb)]()});}});}else{let _0x5461f3=_0x57bdd5[_0x582847(0xb2)]();for(let _0x54a4bf of _0x5461f3)_0x54a4bf[_0x582847(0xba)]()[_0x582847(0xe4)]((_0x20a5e3,_0x131c55,_0x550417)=>{const _0x3ec1e9=_0x582847;if(_0x550417){let _0x3a8f6a=this[_0x3ec1e9(0xe7)](_0x550417,_0x47cfb1,{..._0x25da17,'worksheet':_0x54a4bf,'row':_0x20a5e3,'col':_0x131c55});_0x3a8f6a&&_0x42de00[_0x3ec1e9(0xa1)]({..._0x3a8f6a,'sheetId':_0x54a4bf['getSheetId']()});}});}return _0x42de00;}[_0x49777d(0xe7)](_0x56bd44,_0x332726,_0x521fa1){const _0x426ae4=_0x49777d;let {caseSensitive:_0xcd5305,matchEntireCell:_0x5edca3,searchMultipleTextsCondition:_0x2ac1b1,isSearchByRawValue:_0x1b33bd,isSearchByDisplayValue:_0x11cbe7,isSearchByFormula:_0x49ca43,worksheet:_0x105b78,row:_0x37f399,col:_0x3397a2}=_0x521fa1;if(_0x1b33bd){var _0x146da9;let _0x170943=((_0x146da9=_0x56bd44['p'])==null||(_0x146da9=_0x146da9[_0x426ae4(0xdf)])==null?void 0x0:_0x146da9[_0x426ae4(0x8d)])||_0x56bd44['v'];if(_0x170943){let _0x57de75=_0xcd5305?_0x170943[_0x426ae4(0xd3)]():_0x170943[_0x426ae4(0xd3)]()[_0x426ae4(0xcb)]();if(this[_0x426ae4(0xbc)](_0x57de75,_0x332726,_0x5edca3,_0x2ac1b1))return{'row':_0x37f399,'col':_0x3397a2,'reference':(0x0,_0x4babec[_0x426ae4(0x8f)])(_0x105b78[_0x426ae4(0xe6)](),{'startRow':_0x37f399,'endRow':_0x37f399,'startColumn':_0x3397a2,'endColumn':_0x3397a2}),'cellData':{..._0x56bd44,'rawValue':_0x170943}};}}if(_0x49ca43&&(_0x56bd44['f']||_0x56bd44['si'])){let _0x2513f4=this[_0x426ae4(0xcf)][_0x426ae4(0xbf)](_0x37f399,_0x3397a2,_0x105b78[_0x426ae4(0xdb)](),this[_0x426ae4(0xb6)]()[_0x426ae4(0xd2)]());if(_0x2513f4){let _0x9157c9=_0xcd5305?_0x2513f4:_0x2513f4['toLowerCase']();if(this[_0x426ae4(0xbc)](_0x9157c9,_0x332726,_0x5edca3,_0x2ac1b1))return{'row':_0x37f399,'col':_0x3397a2,'reference':(0x0,_0x4babec['serializeRangeWithSheet'])(_0x105b78[_0x426ae4(0xe6)](),{'startRow':_0x37f399,'endRow':_0x37f399,'startColumn':_0x3397a2,'endColumn':_0x3397a2}),'cellData':{..._0x56bd44,'formulaString':_0x2513f4}};}}if(_0x11cbe7){var _0x18fd13;let _0x969352=(_0x18fd13=_0x56bd44['p'])==null||(_0x18fd13=_0x18fd13[_0x426ae4(0xdf)])==null?void 0x0:_0x18fd13[_0x426ae4(0x8d)];if(!_0x969352){var _0x225aad;_0x969352=(_0x225aad=_0x105b78['getCell'](_0x37f399,_0x3397a2))==null?void 0x0:_0x225aad['v'];}if(_0x969352){let _0x2b077f=_0xcd5305?_0x969352[_0x426ae4(0xd3)]():_0x969352[_0x426ae4(0xd3)]()[_0x426ae4(0xcb)]();if(this['_isMatch'](_0x2b077f,_0x332726,_0x5edca3,_0x2ac1b1))return{'row':_0x37f399,'col':_0x3397a2,'reference':(0x0,_0x4babec[_0x426ae4(0x8f)])(_0x105b78[_0x426ae4(0xe6)](),{'startRow':_0x37f399,'endRow':_0x37f399,'startColumn':_0x3397a2,'endColumn':_0x3397a2}),'cellData':{..._0x56bd44,'displayValue':_0x969352[_0x426ae4(0xd3)]()}};}}return!0x1;}['_isMatch'](_0x14aff4,_0x33d7b8,_0x2e223d,_0x45a3ea){const _0x426e3b=_0x49777d;return _0x33d7b8['length']>0x1&&_0x45a3ea==='AND'?_0x33d7b8['every'](_0x57e9b3=>_0x2e223d?_0x14aff4===_0x57e9b3:_0x14aff4[_0x426e3b(0xe2)](_0x57e9b3)>-0x1):_0x33d7b8[_0x426e3b(0xa3)](_0x48572c=>_0x2e223d?_0x14aff4===_0x48572c:_0x14aff4[_0x426e3b(0xe2)](_0x48572c)>-0x1);}};_0x4b1a2a[_0x49777d(0x8e)][_0x49777d(0xcc)](_0x2384b9);var _0x37ce3a=class extends _0x4b1a2a[_0x49777d(0x8e)]{async['getLintErrors'](){const _0x160229=_0x49777d;return{'formulaErrors':this[_0x160229(0xb5)](),'dataValidationErrors':await this[_0x160229(0x9c)]()};}};_0x4b1a2a[_0x49777d(0x8e)][_0x49777d(0xcc)](_0x37ce3a);var _0x4af31d=class extends _0x4b1a2a[_0x49777d(0xa5)]{async[_0x49777d(0xb1)](){const _0x1ed2c9=_0x49777d;let _0x129d93=this['_injector']['get'](_0x180d9e[_0x1ed2c9(0xc7)]),_0x1df447=this[_0x1ed2c9(0xd5)](0x0,0x0,this[_0x1ed2c9(0xc6)](),this[_0x1ed2c9(0xb8)]())[_0x1ed2c9(0xea)]();return await _0x129d93['getAllFormulaUsages'](_0x1df447);}async[_0x49777d(0xa4)](){const _0x23d673=_0x49777d;return(await this['getFormulaUsages']())['map'](_0x180d9e[_0x23d673(0xe0)]);}[_0x49777d(0xbe)](_0x61c2a4){const _0x302bab=_0x49777d;let _0x539e4b=this[_0x302bab(0xe3)]['get'](_0x180d9e[_0x302bab(0xaa)]),_0x2b863e=this[_0x302bab(0xd5)](0x0,0x0,this['getMaxRows'](),this[_0x302bab(0xb8)]())[_0x302bab(0xea)]();return _0x539e4b[_0x302bab(0xe8)](_0x61c2a4),_0x539e4b[_0x302bab(0xdc)](_0x2b863e,this[_0x302bab(0x94)],this[_0x302bab(0xc5)]);}[_0x49777d(0x9e)](_0x118232){const _0x467efc=_0x49777d;return this[_0x467efc(0xbe)](_0x118232)[_0x467efc(0x90)](_0x180d9e[_0x467efc(0xd9)]);}[_0x49777d(0xac)](_0x888217){const _0x756b11=_0x49777d;let _0x2b9860=this['_injector']['get'](_0x180d9e[_0x756b11(0x89)]);return _0x2b9860[_0x756b11(0xe8)](_0x888217),_0x2b9860['getAllSizeUsages'](this[_0x756b11(0xc5)]);}[_0x49777d(0xc4)](_0x36e655){const _0x56fea5=_0x49777d;let _0x487aab=this[_0x56fea5(0xe3)]['get'](_0x180d9e['ISizeUsageAnalyzer']);_0x487aab['updateConfig'](_0x36e655);let _0x5ee749=_0x487aab[_0x56fea5(0xa0)](this[_0x56fea5(0xc5)]);return _0x487aab[_0x56fea5(0xeb)](_0x5ee749);}};_0x4b1a2a[_0x49777d(0xa5)]['extend'](_0x4af31d);var _0x3545b0=class extends _0x4b1a2a['FRange']{[_0x49777d(0xa6)](_0x441f39){const _0x4c9d1f=_0x49777d;var _0x25720b;let _0x55d7cb=(_0x25720b=_0x441f39==null?void 0x0:_0x441f39[_0x4c9d1f(0x92)])==null?!0x0:_0x25720b,_0x1b8227=this[_0x4c9d1f(0xd5)](),_0x1ad2c0=this['_worksheet'][_0x4c9d1f(0x93)](),_0x2aef0f=this[_0x4c9d1f(0xc5)][_0x4c9d1f(0xbb)](),_0x57571b={},_0x17af3f=0x0;for(let _0x5aa1ec=_0x1b8227['startRow'];_0x5aa1ec<=_0x1b8227[_0x4c9d1f(0xdd)];_0x5aa1ec++){let _0x2ee2f3=_0x1ad2c0[_0x4c9d1f(0xd6)](_0x5aa1ec),_0x180cb2=!_0x55d7cb||this[_0x4c9d1f(0xc5)][_0x4c9d1f(0xec)](_0x5aa1ec)?_0x2ee2f3:0x0;_0x17af3f+=_0x180cb2,_0x57571b[_0x5aa1ec]={'h':_0x180cb2};}let _0x3f0bd1={},_0xdcd657=0x0;for(let _0x331aa7=_0x1b8227[_0x4c9d1f(0x96)];_0x331aa7<=_0x1b8227[_0x4c9d1f(0xb0)];_0x331aa7++){let _0x102c6e=_0x2aef0f[_0x4c9d1f(0xc2)](_0x331aa7),_0x5c3b1d=!_0x55d7cb||this[_0x4c9d1f(0xc5)]['getColVisible'](_0x331aa7)?_0x102c6e:0x0;_0xdcd657+=_0x5c3b1d,_0x3f0bd1[_0x331aa7]={'w':_0x5c3b1d};}return{'w':_0xdcd657,'h':_0x17af3f,'rowData':_0x57571b,'columnData':_0x3f0bd1};}async[_0x49777d(0xb1)](){const _0x2ab709=_0x49777d;let _0x591de5=this[_0x2ab709(0xe3)][_0x2ab709(0xc9)](_0x180d9e[_0x2ab709(0xc7)]),_0xe578dd=(({startRow:_0x2fca69,endRow:_0xd89627,startColumn:_0x21bec1,endColumn:_0x1951b4})=>{const _0x262442=_0x2ab709;let _0x4abd5b=[];for(let _0x54d09d=_0x2fca69;_0x54d09d<=_0xd89627;_0x54d09d++){let _0x2d1b69=[];for(let _0x41357a=_0x21bec1;_0x41357a<=_0x1951b4;_0x41357a++)_0x2d1b69[_0x262442(0xa1)](this['_worksheet']['getCellRaw'](_0x54d09d,_0x41357a));_0x4abd5b['push'](_0x2d1b69);}return _0x4abd5b;})({'startRow':0x0,'endRow':this['_worksheet'][_0x2ab709(0xc6)](),'startColumn':0x0,'endColumn':this[_0x2ab709(0xc5)]['getMaxColumns']()}),_0x2f6e79=await _0x591de5[_0x2ab709(0xae)](_0xe578dd),_0x5e5d00=this[_0x2ab709(0xd5)](),_0x399d4f=[];for(let _0xfb464c=0x0;_0xfb464c<_0x2f6e79['length'];_0xfb464c++){let _0x9b932b=_0x2f6e79[_0xfb464c],_0x37900f=_0x9b932b[_0x2ab709(0x9f)],_0x4f0994=[];for(let _0x5137e2=0x0;_0x5137e2<_0x37900f[_0x2ab709(0x95)];_0x5137e2++){let _0x1dbecd=_0x37900f[_0x5137e2],_0x16ac21=(0x0,_0x2754c1[_0x2ab709(0xb3)])(_0x1dbecd,_0x5e5d00);_0x16ac21&&_0x4f0994[_0x2ab709(0xa1)](_0x16ac21);}if(_0x4f0994['length']>0x0){if(_0x9b932b[_0x2ab709(0x9f)]=_0x4f0994,!(_0x9b932b['firstOccurrence'][_0x2ab709(0x8c)]>=_0x5e5d00[_0x2ab709(0x8c)]&&_0x9b932b[_0x2ab709(0xee)]['startRow']<=_0x5e5d00[_0x2ab709(0xdd)]&&_0x9b932b[_0x2ab709(0xee)][_0x2ab709(0x96)]>=_0x5e5d00['startColumn']&&_0x9b932b[_0x2ab709(0xee)][_0x2ab709(0x96)]<=_0x5e5d00['endColumn'])){let _0x579db3=_0x4f0994[0x0],_0x85f2fa=_0x579db3[_0x2ab709(0x8c)]-_0x9b932b[_0x2ab709(0xee)][_0x2ab709(0x8c)],_0x35cb21=_0x579db3[_0x2ab709(0x96)]-_0x9b932b['firstOccurrence'][_0x2ab709(0x96)];_0x9b932b[_0x2ab709(0xc8)]=await _0x591de5[_0x2ab709(0x87)](_0x9b932b['formula'],_0x35cb21,_0x85f2fa),_0x9b932b[_0x2ab709(0xee)]={'startRow':_0x579db3[_0x2ab709(0x8c)],'endRow':_0x579db3[_0x2ab709(0x8c)],'startColumn':_0x579db3[_0x2ab709(0x96)],'endColumn':_0x579db3[_0x2ab709(0x96)]};}_0x399d4f[_0x2ab709(0xa1)](_0x9b932b);}}return _0x399d4f;}async[_0x49777d(0xa4)](){const _0x2eda7b=_0x49777d;return(await this[_0x2eda7b(0xb1)]())['map'](_0x180d9e['formulaToA1']);}['getStyleUsages'](_0x244016){const _0x1eef59=_0x49777d;let _0x527201=this[_0x1eef59(0xe3)][_0x1eef59(0xc9)](_0x180d9e[_0x1eef59(0xaa)]),_0x5e3d71=(({startRow:_0x325d25,endRow:_0x1dd841,startColumn:_0x105495,endColumn:_0x574d82})=>{const _0x349cb8=_0x1eef59;let _0x462764=[];for(let _0x28d3ec=_0x325d25;_0x28d3ec<=_0x1dd841;_0x28d3ec++){let _0x2291a0=[];for(let _0x37a40d=_0x105495;_0x37a40d<=_0x574d82;_0x37a40d++)_0x2291a0[_0x349cb8(0xa1)](this[_0x349cb8(0xc5)][_0x349cb8(0xd0)](_0x28d3ec,_0x37a40d));_0x462764['push'](_0x2291a0);}return _0x462764;})({'startRow':0x0,'endRow':this[_0x1eef59(0xc5)][_0x1eef59(0xc6)](),'startColumn':0x0,'endColumn':this[_0x1eef59(0xc5)][_0x1eef59(0xb8)]()});_0x527201[_0x1eef59(0xe8)](_0x244016);let _0x45994e=_0x527201['getAllStyleUsages'](_0x5e3d71,this[_0x1eef59(0x94)],this[_0x1eef59(0xc5)]),_0x27638e=this['getRange'](),_0x35346d=[];for(let _0x30ba2d=0x0;_0x30ba2d<_0x45994e[_0x1eef59(0x95)];_0x30ba2d++){let _0x1b15d8=_0x45994e[_0x30ba2d],_0x3410d1=_0x1b15d8[_0x1eef59(0x9f)],_0x5d2cfd=[];for(let _0x2ffa2e=0x0;_0x2ffa2e<_0x3410d1['length'];_0x2ffa2e++){let _0x397e64=_0x3410d1[_0x2ffa2e],_0x323d93=(0x0,_0x2754c1[_0x1eef59(0xb3)])(_0x397e64,_0x27638e);_0x323d93&&_0x5d2cfd[_0x1eef59(0xa1)](_0x323d93);}_0x5d2cfd['length']>0x0&&(_0x1b15d8['filledRanges']=_0x5d2cfd,_0x35346d['push'](_0x1b15d8));}return _0x35346d;}[_0x49777d(0x9e)](_0x53b5fa){const _0x323f67=_0x49777d;return this[_0x323f67(0xbe)](_0x53b5fa)['map'](_0x180d9e[_0x323f67(0xd9)]);}['getSizeUsages'](_0x2f9071){const _0x580be5=_0x49777d;let _0x28e28c=this[_0x580be5(0xe3)]['get'](_0x180d9e[_0x580be5(0x89)]),_0x350747=this['getRange']();return _0x28e28c[_0x580be5(0xe8)](_0x2f9071),_0x28e28c[_0x580be5(0xa0)](this[_0x580be5(0xc5)],_0x350747[_0x580be5(0x8c)],_0x350747['endRow'],_0x350747[_0x580be5(0x96)],_0x350747[_0x580be5(0xb0)]);}[_0x49777d(0xc4)](_0x3b3cc8){const _0x29b6f2=_0x49777d;let _0x295648=this[_0x29b6f2(0xac)](_0x3b3cc8);return this['_injector'][_0x29b6f2(0xc9)](_0x180d9e['ISizeUsageAnalyzer'])[_0x29b6f2(0xeb)](_0x295648);}['getRectArea'](_0x5d8039){const _0x573e4c=_0x49777d;let _0x44aa1a=this[_0x573e4c(0xa6)](_0x5d8039);return{'w':_0x44aa1a['w'],'h':_0x44aa1a['h']};}[_0x49777d(0x9d)](_0x28beb3){return this['_collectRectAreaData'](_0x28beb3);}};_0x4b1a2a[_0x49777d(0xd4)][_0x49777d(0xcc)](_0x3545b0);}));
|