@univerjs-pro/engine-formula 0.21.1 → 0.22.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/README.md CHANGED
@@ -1,23 +1,36 @@
1
1
  # @univerjs-pro/engine-formula
2
2
 
3
- ## Introduction
3
+ [![npm version](https://img.shields.io/npm/v/@univerjs-pro/engine-formula?style=flat-square)](https://npmjs.com/package/@univerjs-pro/engine-formula)
4
+ [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/engine-formula?style=flat-square)](https://npmjs.com/package/@univerjs-pro/engine-formula)
4
5
 
5
- `@univerjs-pro/engine-formula` is a performance-enhanced version of `@univerjs/engine-formula`
6
+ `@univerjs-pro/engine-formula` provides performance-enhanced formula engine plugin for Univer Pro.
6
7
 
7
- ## Usage
8
+ ## Package Overview
8
9
 
9
- ### Installation
10
+ | Package | UMD global | CSS | Locales | Facade entry |
11
+ | --- | --- | :---: | :---: | :---: |
12
+ | `@univerjs-pro/engine-formula` | `UniverProEngineFormula` | No | No | Yes |
10
13
 
11
- ```shell
12
- # Using npm
13
- npm install @univerjs-pro/engine-formula
14
+ ## Installation
14
15
 
15
- # Using pnpm
16
+ ```sh
16
17
  pnpm add @univerjs-pro/engine-formula
18
+ # or
19
+ npm install @univerjs-pro/engine-formula
17
20
  ```
18
21
 
19
- <!-- Links -->
20
- [npm-version-shield]: https://img.shields.io/npm/v/@univerjs-pro/engine-formula?style=flat-square
21
- [npm-version-link]: https://npmjs.com/package/@univerjs-pro/engine-formula
22
- [npm-license-shield]: https://img.shields.io/npm/l/@univerjs-pro/engine-formula?style=flat-square
23
- [npm-downloads-shield]: https://img.shields.io/npm/dm/@univerjs-pro/engine-formula?style=flat-square
22
+ Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
23
+
24
+ ## Usage
25
+
26
+ ```ts
27
+ import { UniverProFormulaEnginePlugin } from '@univerjs-pro/engine-formula';
28
+
29
+ univer.registerPlugin(UniverProFormulaEnginePlugin);
30
+ ```
31
+
32
+ ## Resources
33
+
34
+ - [Documentation](https://docs.univer.ai/guides/pro)
35
+ - [NPM package](https://npmjs.com/package/@univerjs-pro/engine-formula)
36
+
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2fe7(){const _0x4b35b4=['toStringTag','55iuHPFo','20uidenZ','FFormula','2424shPcWQ','1753542sCFYMm','2444101onFGfu','Module','35984ISuUko','4626kdKmKo','942096DziXTZ','258IGYgov','defineProperty','1967IlFizJ','135238YeFYlj'];_0x2fe7=function(){return _0x4b35b4;};return _0x2fe7();}const _0x57efc6=_0x50aa;(function(_0x548a97,_0x6123cb){const _0x5299a5=_0x50aa,_0x9e11cc=_0x548a97();while(!![]){try{const _0x420198=parseInt(_0x5299a5(0x194))/0x1+-parseInt(_0x5299a5(0x191))/0x2*(-parseInt(_0x5299a5(0x18f))/0x3)+-parseInt(_0x5299a5(0x18e))/0x4*(-parseInt(_0x5299a5(0x196))/0x5)+-parseInt(_0x5299a5(0x190))/0x6+parseInt(_0x5299a5(0x193))/0x7*(parseInt(_0x5299a5(0x199))/0x8)+parseInt(_0x5299a5(0x19a))/0x9+-parseInt(_0x5299a5(0x197))/0xa*(parseInt(_0x5299a5(0x19b))/0xb);if(_0x420198===_0x6123cb)break;else _0x9e11cc['push'](_0x9e11cc['shift']());}catch(_0x5c20be){_0x9e11cc['push'](_0x9e11cc['shift']());}}}(_0x2fe7,0x1b44f),Object[_0x57efc6(0x192)](exports,Symbol[_0x57efc6(0x195)],{'value':_0x57efc6(0x18d)}));let _univerjs_engine_formula_facade=require('@univerjs/engine-formula/facade');function _0x50aa(_0x5de62f,_0x53d10e){_0x5de62f=_0x5de62f-0x18d;const _0x2fe747=_0x2fe7();let _0x50aa44=_0x2fe747[_0x5de62f];return _0x50aa44;}Object[_0x57efc6(0x192)](exports,'FFormula',{'enumerable':!![],'get':function(){const _0x4b3b9e=_0x57efc6;return _univerjs_engine_formula_facade[_0x4b3b9e(0x198)];}});
1
+ function _0x1e72(_0x357cdf,_0x4eb7d7){_0x357cdf=_0x357cdf-0x10a;const _0x16632f=_0x1663();let _0x1e729e=_0x16632f[_0x357cdf];return _0x1e729e;}const _0x5c0023=_0x1e72;(function(_0x3afb2b,_0x5449d7){const _0x57f22c=_0x1e72,_0x12b83f=_0x3afb2b();while(!![]){try{const _0xd81198=-parseInt(_0x57f22c(0x10c))/0x1+-parseInt(_0x57f22c(0x111))/0x2+-parseInt(_0x57f22c(0x10b))/0x3+parseInt(_0x57f22c(0x113))/0x4+-parseInt(_0x57f22c(0x114))/0x5*(-parseInt(_0x57f22c(0x10e))/0x6)+-parseInt(_0x57f22c(0x112))/0x7+parseInt(_0x57f22c(0x10d))/0x8*(parseInt(_0x57f22c(0x115))/0x9);if(_0xd81198===_0x5449d7)break;else _0x12b83f['push'](_0x12b83f['shift']());}catch(_0x59317b){_0x12b83f['push'](_0x12b83f['shift']());}}}(_0x1663,0x8ef71),Object['defineProperty'](exports,Symbol[_0x5c0023(0x116)],{'value':_0x5c0023(0x10f)}));function _0x1663(){const _0x2dd362=['5HoXwfx','8703DqymZB','toStringTag','FFormula','1275228rApJAq','604763BFFcdW','312rHlobr','6338658VpzLxp','Module','defineProperty','65530SBQnak','2749999NdKhGj','3787560SgPeiI'];_0x1663=function(){return _0x2dd362;};return _0x1663();}let _univerjs_engine_formula_facade=require('@univerjs/engine-formula/facade');Object[_0x5c0023(0x110)](exports,'FFormula',{'enumerable':!![],'get':function(){const _0x869b76=_0x5c0023;return _univerjs_engine_formula_facade[_0x869b76(0x10a)];}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2a488b=_0xc578;(function(_0x4ec1c0,_0x2bd273){const _0x446a17=_0xc578,_0x1ed0b4=_0x4ec1c0();while(!![]){try{const _0x1e06a0=parseInt(_0x446a17(0x22f))/0x1*(-parseInt(_0x446a17(0x179))/0x2)+parseInt(_0x446a17(0x248))/0x3*(-parseInt(_0x446a17(0x22a))/0x4)+parseInt(_0x446a17(0x256))/0x5+-parseInt(_0x446a17(0x221))/0x6*(parseInt(_0x446a17(0x209))/0x7)+parseInt(_0x446a17(0x229))/0x8+parseInt(_0x446a17(0x1be))/0x9*(-parseInt(_0x446a17(0x1dc))/0xa)+-parseInt(_0x446a17(0x1fb))/0xb*(-parseInt(_0x446a17(0x184))/0xc);if(_0x1e06a0===_0x2bd273)break;else _0x1ed0b4['push'](_0x1ed0b4['shift']());}catch(_0x2282e6){_0x1ed0b4['push'](_0x1ed0b4['shift']());}}}(_0xcf30,0x74600),Object[_0x2a488b(0x1d9)](exports,Symbol['toStringTag'],{'value':_0x2a488b(0x1cd)}));let _univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_core=require('@univerjs/core');function _typeof(_0x253b50){'@babel/helpers - typeof';const _0x2152e0=_0x2a488b;return _typeof=_0x2152e0(0x1ba)==typeof Symbol&&_0x2152e0(0x187)==typeof Symbol['iterator']?function(_0x1c1086){return typeof _0x1c1086;}:function(_0x22eb8c){const _0x2d1d89=_0x2152e0;return _0x22eb8c&&_0x2d1d89(0x1ba)==typeof Symbol&&_0x22eb8c['constructor']===Symbol&&_0x22eb8c!==Symbol[_0x2d1d89(0x24f)]?_0x2d1d89(0x187):typeof _0x22eb8c;},_typeof(_0x253b50);}function _0xcf30(){const _0x25f850=['FormulaExecuteStageType','ErrorType','subUnitId','_initLicenseValid','markedAsNoFunctionsExecuted','setRuntimeData','setCompletedFormulasCount','_executionInProgressListener$','checkAsyncNode','0.21.1','clear','_getAllDependencyJson','function','isCache','setRuntimeOtherData','removeFormulaDependencyByDefinedName','29025twcNAV','_convertDirtyRangesToUnitRange','_otherFormulaDataMainData','dirtyRanges','keys','decorate','bulkRemove','generateRandomDependencyTreeId','setAdded','_endFormulaDependencyTreeModel','rangeList','getOtherFormulaData','MINUS','inRangeData','START_CALCULATION','Module','getToken','_dependencyRTreeCacheForAddressFunction','bulkSearch','CURRENTLY_CALCULATING_ARRAY_FORMULA','endColumn','_allTreeMap','parseInt','prefixToken','addFeatureFormulaDependency','hasOwnProperty','get','defineProperty','reset','getStartIndex','1830BRWDxU','_getUpdateTreeListAndMakeDependency','isVirtual','clearFormulaDependency','NORMAL','LexerNode','isDirty','add','setFormulaExecuteStage','getFeatureFormulaDependency','OTHER','_generateNewFunctionString','getConfig','markedAsSuccessfullyExecuted','message','toRTreeItem','_createVirtualFDtree','object','_runtimeService','length','setValue','trim','forEach','_removeAllTreeMap','_xlfnPrefix','_dependencyTreeCache','OPERATOR_TOKEN_SET','_isCyclicUtilMap','_xlfn.','from','_getDependencyTreeParenIds','557799tufwqK','addFormulaDependencyByDefinedName','DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER','startIndex','COLON','join','_interpreter','delete','_registerOtherFormulas','_updateRangeFlatten','_clearPrefix','value','DEFAULT_TOKEN_TYPE_PARAMETER','DependentOn','720664IGvtkS','columnCount','generateAstNode','getValue','unitId','setCompletedArrayFormulasCount','_lexer','setTotalArrayFormulasToCalculate','@univerjs-pro/engine-formula','addOtherFormulaDependency','OTHER_FORMULA','getAllRuntimeData','formulaId','closeKdTree','ObjectMatrix','getDirtyRanges','string','isAdded','refOffsetY','_dependencyRTreeCache','dispose','set','sheetId','has','42QAEttx','_handleLambdaForExprTree','DEFAULT_INTERVAL_COUNT','_hasNewExcelFunction','refOffsetX','refTree','_configService','size','4959192lfXsyK','4LSfNLC','PLUS','notExecuteFormula','slice','values','88257bomxVz','version','removeFeatureFormulaDependency','SUFFIX','_currentUnitId','push','_getTableNameFromStructuredRef','_xlpmPrefix','LexerTreeBuilder','execute','next','UniverFormulaEnginePlugin','LS_CONFIG_KEY','DEFAULT_TOKEN_LAMBDA_FUNCTION_NAME','getRuntimeState','_traverse','_removeDependencyRTreeCache','_checkAddBracketForMinus','_handleChildrenForExprTree','_handleNewFunctionChild','formula','_formulaDependencyGenerator','toPrimitive','_astTreeBuilder','_clearFunctionString','1530702fvZFsF','FEATURE_FORMULA','error','node','clearFeatureFormulaDependency','_currentConfigService','FormulaDependencyTreeType','prototype','startRow','_getAllTreeList','PARAMETER','min','pop','FormulaDependencyTree','3374460LxMPfT','children','_removeDependencyRTreeCacheById','treeId','featureId','rowCount','SUFFIX_TOKEN_SET','IDependencyManagerService','getFormulaDependency','forValue','START_DEPENDENCY','getNewFormulaWithPrefix','getChildren','treeBuilder','CalculateFormulaService','_featureFormulaData','ROOT','FUNCTION','realDeleteValue','_generateExprTree','_generateTreeList','VALUE','_xlpm.','Let\x20variable\x20name\x20\x22','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setCurrent','getSheetRowColumnCount','_getTreeById','IDLE','LexerTreeProBuilder','searchDependency','_formulaData','_getFeatureFormulaTree','_checkIsCycleDependency','isForceCalculate','IFormulaDependencyGenerator','hasOtherFormulaDataMainData','setDependencyTreeModelData','DEFAULT_TOKEN_TYPE_ROOT','6WDGGng','_handleTextNodeForExprTree','_lambdaFunctionParameterSet','generate','_otherFormulaData','isSkip','LAMBDA','_resetPrefix','_definedNameMap','enableCycleDependency','openKdTree','300TvBgja','DEFAULT_TOKEN_LET_FUNCTION_NAME','START_DEPENDENCY_ARRAY_FORMULA','symbol','ICalculateFormulaService','LET','resetCalculationState','isFeatureAuthorizedWithinTime','markedAsStopFunctionsExecuted','getLicenseInfo','getUnitData','DependencyManagerService','splitTableStructuredRef','addOtherFormulaDependencyMainData','packageName','getDirtyData','setTotalFormulasToCalculate','matchToken','ENGINE_FORMULA_PLUGIN_CONFIG_KEY','isArray','_injector','_getTreeNode','isReferenceString','addFormulaDependency','startColumn','CURRENTLY_CALCULATING','max','_dependencyManagerService','setSkip','endRow','endsWith','valid','LAMBDA_PARAMETER','featureDirtyRanges','startsWith','_getDependencyTreeChildrenIds','isExcludeRange','\x22\x20is\x20duplicated.','_restDependencyTreeId','removeFormulaDependency','type','_checkColonNodeForExprTree'];_0xcf30=function(){return _0x25f850;};return _0xcf30();}function toPrimitive(_0x104427,_0x500f29){const _0x37faec=_0x2a488b;if(_0x37faec(0x1ed)!=_typeof(_0x104427)||!_0x104427)return _0x104427;var _0x51f644=_0x104427[Symbol[_0x37faec(0x245)]];if(void 0x0!==_0x51f644){var _0x46369f=_0x51f644['call'](_0x104427,_0x500f29||'default');if('object'!=_typeof(_0x46369f))return _0x46369f;throw new TypeError(_0x37faec(0x16a));}return(_0x37faec(0x219)===_0x500f29?String:Number)(_0x104427);}function toPropertyKey(_0x5e0107){const _0x47c6c9=_0x2a488b;var _0x8f9d01=toPrimitive(_0x5e0107,_0x47c6c9(0x219));return _0x47c6c9(0x187)==_typeof(_0x8f9d01)?_0x8f9d01:_0x8f9d01+'';}function _defineProperty(_0x33b3e5,_0x20c90f,_0x311c89){const _0x5642da=_0x2a488b;return(_0x20c90f=toPropertyKey(_0x20c90f))in _0x33b3e5?Object[_0x5642da(0x1d9)](_0x33b3e5,_0x20c90f,{'value':_0x311c89,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x33b3e5[_0x20c90f]=_0x311c89,_0x33b3e5;}function _0xc578(_0x53881d,_0x2670bf){_0x53881d=_0x53881d-0x15d;const _0xcf3062=_0xcf30();let _0xc57852=_0xcf3062[_0x53881d];return _0xc57852;}var NewExcelFunctionNodeType=function(_0x48519f){const _0x147638=_0x2a488b;return _0x48519f[_0x48519f[_0x147638(0x1e0)]=0x0]='NORMAL',_0x48519f[_0x48519f[_0x147638(0x189)]=0x1]='LET',_0x48519f[_0x48519f[_0x147638(0x17f)]=0x2]=_0x147638(0x17f),_0x48519f[_0x48519f['ROOT']=0x3]=_0x147638(0x162),_0x48519f[_0x48519f[_0x147638(0x252)]=0x4]=_0x147638(0x252),_0x48519f[_0x48519f[_0x147638(0x1a4)]=0x5]=_0x147638(0x1a4),_0x48519f[_0x48519f[_0x147638(0x163)]=0x6]=_0x147638(0x163),_0x48519f[_0x48519f[_0x147638(0x232)]=0x7]=_0x147638(0x232),_0x48519f[_0x48519f[_0x147638(0x1ff)]=0x8]=_0x147638(0x1ff),_0x48519f[_0x48519f[_0x147638(0x1ca)]=0x9]=_0x147638(0x1ca),_0x48519f[_0x48519f[_0x147638(0x1e6)]=0xa]=_0x147638(0x1e6),_0x48519f;}(NewExcelFunctionNodeType||{}),LexerTreeProBuilder=class extends _univerjs_engine_formula[_0x2a488b(0x237)]{constructor(..._0x3f4920){const _0x2a4076=_0x2a488b;super(..._0x3f4920),_defineProperty(this,_0x2a4076(0x224),![]),_defineProperty(this,'_lambdaFunctionParameterSet',new Set()),_defineProperty(this,_0x2a4076(0x236),_0x2a4076(0x168)),_defineProperty(this,_0x2a4076(0x1f4),_0x2a4076(0x1f8)),_defineProperty(this,'_currentUnitId','');}[_0x2a488b(0x180)](){const _0x5b7746=_0x2a488b;this[_0x5b7746(0x236)]='_xlpm.',this[_0x5b7746(0x1f4)]=_0x5b7746(0x1f8);}[_0x2a488b(0x205)](){const _0x340c4f=_0x2a488b;this[_0x340c4f(0x236)]='',this[_0x340c4f(0x1f4)]='';}[_0x2a488b(0x15d)](_0x467fff,_0x447d3a){const _0x260782=_0x2a488b,_0x2a6ee3=this[_0x260782(0x15f)](_0x467fff,![]);if(!_0x2a6ee3||_0x2a6ee3===_univerjs_engine_formula[_0x260782(0x1af)]['VALUE']||Array['isArray'](_0x2a6ee3))return null;const _0x5427d9=[];this[_0x260782(0x224)]=![],this[_0x260782(0x1e7)](_0x2a6ee3,_0x5427d9,_0x447d3a);if(this[_0x260782(0x224)])return'='+_0x5427d9['join']('');return null;}[_0x2a488b(0x1e7)](_0x4e53e0,_0x5978ea,_0x45f49f){const _0x24673c=_0x2a488b,_0x47b565=_0x4e53e0[_0x24673c(0x1ce)](),_0x36c46c=_0x47b565[_0x24673c(0x1f1)](),_0x268320=_0x36c46c['toUpperCase'](),_0x2e3947=this['_clearFunctionString'](_0x268320),_0x233c3c=_0x45f49f(_0x2e3947);let _0x42b8d4=NewExcelFunctionNodeType[_0x24673c(0x1e0)];if(_0x47b565===_univerjs_engine_formula[_0x24673c(0x178)])_0x42b8d4=NewExcelFunctionNodeType['ROOT'];else{if(_0x47b565===_univerjs_engine_formula['DEFAULT_TOKEN_TYPE_PARAMETER'])_0x42b8d4=NewExcelFunctionNodeType[_0x24673c(0x252)];else{if(_0x47b565===_univerjs_engine_formula[_0x24673c(0x1fd)])_0x42b8d4=NewExcelFunctionNodeType[_0x24673c(0x1a4)];else{if(_univerjs_engine_formula['NEW_EXCEL_FUNCTIONS'][_0x24673c(0x220)](_0x2e3947))_0x5978ea[_0x24673c(0x234)](''+this[_0x24673c(0x1f4)]+_0x36c46c),this[_0x24673c(0x224)]=!![];else{if(_0x268320===_univerjs_engine_formula[_0x24673c(0x23c)])_0x5978ea[_0x24673c(0x234)](''+this[_0x24673c(0x1f4)]+_0x36c46c),this[_0x24673c(0x224)]=!![],_0x42b8d4=NewExcelFunctionNodeType['LAMBDA'];else{if(_0x268320===_univerjs_engine_formula['DEFAULT_TOKEN_LET_FUNCTION_NAME'])_0x5978ea[_0x24673c(0x234)](''+this[_0x24673c(0x1f4)]+_0x36c46c),this[_0x24673c(0x224)]=!![],_0x42b8d4=NewExcelFunctionNodeType[_0x24673c(0x189)];else{if(_0x268320===_univerjs_engine_formula[_0x24673c(0x195)][_0x24673c(0x1ff)])_0x42b8d4=NewExcelFunctionNodeType['COLON'];else{if(_univerjs_engine_formula[_0x24673c(0x25c)][_0x24673c(0x220)](_0x268320))_0x42b8d4=NewExcelFunctionNodeType[_0x24673c(0x232)];else{if(_0x268320===_univerjs_engine_formula[_0x24673c(0x1d5)][_0x24673c(0x1ca)]){if(this['_checkAddBracketForMinus'](_0x4e53e0))_0x42b8d4=NewExcelFunctionNodeType[_0x24673c(0x1ca)];_0x5978ea['push'](_0x47b565);}else _0x5978ea['push'](_0x47b565),_0x42b8d4=NewExcelFunctionNodeType['OTHER'];}}}}}}}}if(_0x233c3c){if(_0x42b8d4!==NewExcelFunctionNodeType['LAMBDA']&&_0x42b8d4!==NewExcelFunctionNodeType[_0x24673c(0x189)])_0x42b8d4=NewExcelFunctionNodeType[_0x24673c(0x163)];_0x5978ea['push']('(');}else{if(_0x42b8d4===NewExcelFunctionNodeType[_0x24673c(0x1ca)])_0x5978ea['push']('(');}const _0x4e98fd=_0x4e53e0[_0x24673c(0x15e)](),_0x25e020=_0x4e98fd[_0x24673c(0x1ef)];if(_0x42b8d4===NewExcelFunctionNodeType[_0x24673c(0x17f)]){const _0x227eef=_0x4e98fd[0x0];let _0x348c73=0x0;if(_0x227eef instanceof _univerjs_engine_formula[_0x24673c(0x1e1)]){if(_0x227eef['getToken']()===_univerjs_engine_formula[_0x24673c(0x1fd)])_0x348c73=0x1;}for(let _0x4b71aa=_0x348c73;_0x4b71aa<_0x25e020-0x1;_0x4b71aa++){const _0x26d610=_0x4e98fd[_0x4b71aa];if(_0x26d610 instanceof _univerjs_engine_formula[_0x24673c(0x1e1)]){const _0x3f2e9c=_0x26d610['getChildren']()[0x0];if(typeof _0x3f2e9c===_0x24673c(0x219)){if(this[_0x24673c(0x17b)][_0x24673c(0x220)](_0x3f2e9c))console[_0x24673c(0x24a)]('Lambda\x20parameter\x20name\x20\x22'+_0x3f2e9c+_0x24673c(0x1a9));this[_0x24673c(0x17b)]['add'](_0x3f2e9c),_0x5978ea['push'](''+this['_xlpmPrefix']+_0x3f2e9c),this[_0x24673c(0x224)]=!![];}}_0x5978ea[_0x24673c(0x234)](',');}this[_0x24673c(0x242)](_0x4e98fd[_0x25e020-0x1],_0x5978ea,_0x45f49f);if(_0x348c73===0x1)_0x5978ea[_0x24673c(0x234)](')'),_0x5978ea[_0x24673c(0x234)]('('),this[_0x24673c(0x1e7)](_0x227eef,_0x5978ea,_0x45f49f),_0x5978ea[_0x24673c(0x234)](')');else _0x5978ea[_0x24673c(0x234)](')');return;}else{if(_0x42b8d4===NewExcelFunctionNodeType[_0x24673c(0x189)]){for(let _0x280ddd=0x0;_0x280ddd<_0x25e020-0x1;_0x280ddd++){const _0x20bd0d=_0x4e98fd[_0x280ddd];if(_0x20bd0d instanceof _univerjs_engine_formula[_0x24673c(0x1e1)]&&_0x280ddd%0x2===0x0){const _0x53f7ad=_0x20bd0d[_0x24673c(0x15e)]()[0x0];if(typeof _0x53f7ad===_0x24673c(0x219)){if(this[_0x24673c(0x17b)][_0x24673c(0x220)](_0x53f7ad))console['error'](_0x24673c(0x169)+_0x53f7ad+'\x22\x20is\x20duplicated.');this[_0x24673c(0x17b)][_0x24673c(0x1e3)](_0x53f7ad),_0x5978ea[_0x24673c(0x234)](''+this['_xlpmPrefix']+_0x53f7ad),this[_0x24673c(0x224)]=!![],_0x5978ea[_0x24673c(0x234)](',');continue;}}this[_0x24673c(0x242)](_0x20bd0d,_0x5978ea,_0x45f49f);if(_0x20bd0d instanceof _univerjs_engine_formula[_0x24673c(0x1e1)]){const _0x20f140=_0x4e98fd[_0x280ddd+0x1];if(_0x20f140&&_0x20f140 instanceof _univerjs_engine_formula['LexerNode'])_0x5978ea[_0x24673c(0x234)](',');}}this[_0x24673c(0x242)](_0x4e98fd[_0x25e020-0x1],_0x5978ea,_0x45f49f),_0x5978ea[_0x24673c(0x234)](')');return;}else{if(_0x42b8d4===NewExcelFunctionNodeType['COLON']){const _0x203ec3=_0x4e98fd[0x0],_0xd36824=_0x4e98fd[0x1];this['_handleNewFunctionChild'](_0x203ec3,_0x5978ea,_0x45f49f),_0x5978ea[_0x24673c(0x234)](_0x47b565),this[_0x24673c(0x242)](_0xd36824,_0x5978ea,_0x45f49f);return;}}}for(let _0x11056f=0x0;_0x11056f<_0x25e020;_0x11056f++){const _0x21779a=_0x4e98fd[_0x11056f];this['_handleNewFunctionChild'](_0x21779a,_0x5978ea,_0x45f49f);if(_0x21779a instanceof _univerjs_engine_formula['LexerNode']){const _0x1e1e92=_0x4e98fd[_0x11056f+0x1];if(_0x1e1e92&&_0x1e1e92 instanceof _univerjs_engine_formula['LexerNode'])_0x5978ea['push'](',');}}if(_0x42b8d4===NewExcelFunctionNodeType[_0x24673c(0x232)])_0x5978ea[_0x24673c(0x234)](_0x47b565);if(_0x233c3c)_0x5978ea['push'](')');else{if(_0x42b8d4===NewExcelFunctionNodeType[_0x24673c(0x1ca)])_0x5978ea[_0x24673c(0x234)](')');}}['_handleNewFunctionChild'](_0x28b55a,_0x3f435e,_0x15d1ca){const _0x5c0e5d=_0x2a488b;if(_0x28b55a instanceof _univerjs_engine_formula[_0x5c0e5d(0x1e1)])this[_0x5c0e5d(0x1e7)](_0x28b55a,_0x3f435e,_0x15d1ca);else{if(this['_lambdaFunctionParameterSet'][_0x5c0e5d(0x220)](_0x28b55a))_0x3f435e[_0x5c0e5d(0x234)](''+this[_0x5c0e5d(0x236)]+_0x28b55a),this[_0x5c0e5d(0x224)]=!![];else _0x3f435e[_0x5c0e5d(0x234)](_0x28b55a);}}[_0x2a488b(0x247)](_0x1bf2c0){const _0x406f22=_0x2a488b;let _0x25a503=_0x1bf2c0[_0x406f22(0x1f1)]();if(!_0x25a503)return _0x25a503;const _0x4c08c9=_0x25a503[0x0];if(_0x4c08c9===_univerjs_engine_formula[_0x406f22(0x1d5)]['AT']||_0x4c08c9===_univerjs_engine_formula['prefixToken']['MINUS']||_0x4c08c9===_univerjs_engine_formula['prefixToken'][_0x406f22(0x22b)])_0x25a503=_0x25a503[_0x406f22(0x22d)](0x1);if(!_0x25a503)return _0x25a503;const _0x55d127=_0x25a503[_0x25a503[_0x406f22(0x1ef)]-0x1];if(_univerjs_engine_formula[_0x406f22(0x25c)]['has'](_0x55d127))_0x25a503=_0x25a503[_0x406f22(0x22d)](0x0,-0x1);return _0x25a503;}[_0x2a488b(0x240)](_0xbe6fb0){const _0x5194e0=_0x2a488b,_0x16d7df=_0xbe6fb0[_0x5194e0(0x15e)]()[0x0];if(!_0x16d7df||!(_0x16d7df instanceof _univerjs_engine_formula[_0x5194e0(0x1e1)])||_0xbe6fb0[_0x5194e0(0x15e)]()[_0x5194e0(0x1ef)]>0x1)return![];const _0x85ff7f=_0x16d7df[_0x5194e0(0x15e)](),_0x267a39=_0x85ff7f[_0x5194e0(0x1ef)];if(_0x267a39===0x1)return![];for(let _0x1f66df=0x0;_0x1f66df<_0x267a39;_0x1f66df++){const _0x5d6f68=_0x85ff7f[_0x1f66df];if(!(_0x5d6f68 instanceof _univerjs_engine_formula[_0x5194e0(0x1e1)])&&_univerjs_engine_formula[_0x5194e0(0x1f6)]['has'](_0x5d6f68))return!![];}return![];}['getFormulaExprTree'](_0xd012ed,_0x4e5207,_0x4d6d99,_0x51dccd,_0x3c751d){const _0x5581d5=_0x2a488b,_0x4530e6=this[_0x5581d5(0x15f)](_0xd012ed,![]);if(!_0x4530e6||_0x4530e6===_univerjs_engine_formula[_0x5581d5(0x1af)][_0x5581d5(0x167)]||Array[_0x5581d5(0x197)](_0x4530e6))return null;this['_clearPrefix'](),this['_currentUnitId']=_0x4e5207;const _0x558390=this['_generateExprTree'](_0x4530e6,_0x4d6d99,_0x51dccd,_0x3c751d);return this[_0x5581d5(0x233)]='',this[_0x5581d5(0x180)](),_0x558390;}[_0x2a488b(0x165)](_0x3cc487,_0x8aa3f3,_0x3edc95,_0x1f4ebe){const _0x37cfc7=_0x2a488b,_0x36abd0={'value':'','children':[],'startIndex':0x0};let _0x4516d5=_0x3cc487;if(_0x4516d5 instanceof _univerjs_engine_formula[_0x37cfc7(0x1e1)]&&(_0x4516d5[_0x37cfc7(0x1ce)]()===_univerjs_engine_formula[_0x37cfc7(0x178)]||_0x4516d5[_0x37cfc7(0x1ce)]()===_univerjs_engine_formula[_0x37cfc7(0x207)])&&_0x4516d5['getChildren']()['length']===0x1)_0x4516d5=_0x4516d5['getChildren']()[0x0];if(!(_0x4516d5 instanceof _univerjs_engine_formula[_0x37cfc7(0x1e1)]))return this[_0x37cfc7(0x17a)](_0x4516d5,_0x3edc95,_0x1f4ebe);const _0x33a635=_0x4516d5[_0x37cfc7(0x15e)](),_0x620b26=_0x33a635['length'],_0x40f0cf=[];this[_0x37cfc7(0x1e7)](_0x4516d5,_0x40f0cf,_0x8aa3f3),_0x36abd0[_0x37cfc7(0x206)]=_0x40f0cf[_0x37cfc7(0x200)](''),_0x36abd0[_0x37cfc7(0x1fe)]=_0x4516d5[_0x37cfc7(0x1db)]();const _0x68afae=this['_getCurNodeTypeForExprTree'](_0x4516d5);if(_0x68afae===NewExcelFunctionNodeType[_0x37cfc7(0x17f)]){const _0x513264=_0x33a635[0x0];if(_0x513264 instanceof _univerjs_engine_formula[_0x37cfc7(0x1e1)]){if(_0x513264[_0x37cfc7(0x1ce)]()[_0x37cfc7(0x1f1)]()!==_univerjs_engine_formula[_0x37cfc7(0x1fd)])return _0x36abd0;this[_0x37cfc7(0x222)](_0x513264,_0x36abd0,_0x8aa3f3,_0x3edc95,_0x1f4ebe);}return _0x36abd0;}else{if(_0x68afae===NewExcelFunctionNodeType[_0x37cfc7(0x189)]){for(let _0x29c53d=0x0;_0x29c53d<_0x620b26-0x1;_0x29c53d++){const _0x30673f=_0x33a635[_0x29c53d];if(_0x30673f instanceof _univerjs_engine_formula[_0x37cfc7(0x1e1)]&&_0x29c53d%0x2===0x1){const _0x10c08f=_0x30673f[_0x37cfc7(0x15e)]();if(_0x10c08f['length']===0x1&&!(_0x10c08f[0x0]instanceof _univerjs_engine_formula['LexerNode']))continue;const _0x51f6a0=this[_0x37cfc7(0x165)](_0x30673f,_0x8aa3f3,_0x3edc95,_0x1f4ebe);_0x51f6a0&&_0x36abd0[_0x37cfc7(0x257)][_0x37cfc7(0x234)](_0x51f6a0);}}return _0x36abd0;}else{if(_0x68afae===NewExcelFunctionNodeType[_0x37cfc7(0x1ff)]){const _0x41b69a=_0x33a635[0x0];if(_0x41b69a instanceof _univerjs_engine_formula[_0x37cfc7(0x1e1)]){const _0x2e6fa0=_0x41b69a[_0x37cfc7(0x15e)]()[0x0];if(_0x2e6fa0 instanceof _univerjs_engine_formula[_0x37cfc7(0x1e1)])_0x36abd0[_0x37cfc7(0x1fe)]=_0x2e6fa0[_0x37cfc7(0x1db)]();}if(this[_0x37cfc7(0x1ad)](_0x4516d5))return _0x36abd0;}else{if(_0x68afae===NewExcelFunctionNodeType[_0x37cfc7(0x232)]){const _0xac9222=_0x33a635[0x0];if(_0xac9222 instanceof _univerjs_engine_formula['LexerNode']){const _0x5b1e22=_0xac9222[_0x37cfc7(0x15e)]()[0x0];if(_0x5b1e22 instanceof _univerjs_engine_formula[_0x37cfc7(0x1e1)])_0x36abd0[_0x37cfc7(0x1fe)]=_0x5b1e22[_0x37cfc7(0x1db)]();}}}}}return this[_0x37cfc7(0x241)](_0x33a635,_0x68afae,_0x36abd0,_0x8aa3f3,_0x3edc95,_0x1f4ebe),_0x36abd0;}['_handleChildrenForExprTree'](_0x20f710,_0xa828c6,_0x5c807d,_0x370f56,_0x4f82d9,_0x34744f){const _0x39fe81=_0x2a488b;for(let _0xbc376a=0x0;_0xbc376a<_0x20f710[_0x39fe81(0x1ef)];_0xbc376a++){let _0x5e0c8d=_0x20f710[_0xbc376a];if(!(_0x5e0c8d instanceof _univerjs_engine_formula[_0x39fe81(0x1e1)])){const _0x4aa5b5=this[_0x39fe81(0x17a)](_0x5e0c8d,_0x4f82d9,_0x34744f);_0x4aa5b5&&_0x5c807d[_0x39fe81(0x257)][_0x39fe81(0x234)](_0x4aa5b5);continue;}const _0x37a555=_0x5e0c8d[_0x39fe81(0x15e)]();if(_0x37a555[_0x39fe81(0x1ef)]===0x1&&!(_0x37a555[0x0]instanceof _univerjs_engine_formula['LexerNode'])){const _0x17e2db=_0x37a555[0x0];if(!_0x4f82d9(this[_0x39fe81(0x233)],_0x17e2db)&&!this[_0x39fe81(0x235)](_0x17e2db,_0x34744f)&&!(0x0,_univerjs_engine_formula['isReferenceString'])(_0x17e2db))continue;}if(_0xa828c6===NewExcelFunctionNodeType[_0x39fe81(0x1ff)]){const _0x1fc423=_0x37a555[0x0];if(_0x1fc423 instanceof _univerjs_engine_formula[_0x39fe81(0x1e1)]){if((0x0,_univerjs_engine_formula[_0x39fe81(0x19a)])(_0x1fc423[_0x39fe81(0x1ce)]()[_0x39fe81(0x1f1)]()))continue;_0x5e0c8d=_0x1fc423;}}const _0x433d0c=this['_generateExprTree'](_0x5e0c8d,_0x370f56,_0x4f82d9,_0x34744f);_0x433d0c&&_0x5c807d[_0x39fe81(0x257)][_0x39fe81(0x234)](_0x433d0c);}}[_0x2a488b(0x1ad)](_0x1c0fa5){const _0x186738=_0x2a488b,_0x3c134d=_0x1c0fa5[_0x186738(0x15e)]();if(_0x3c134d[_0x186738(0x1ef)]<0x2)return![];const _0x12b2fb=_0x3c134d[0x0],_0x5dc341=_0x3c134d[0x1];if(!(_0x12b2fb instanceof _univerjs_engine_formula[_0x186738(0x1e1)])||!(_0x5dc341 instanceof _univerjs_engine_formula[_0x186738(0x1e1)]))return![];const _0x271e58=_0x12b2fb[_0x186738(0x15e)]()[0x0],_0x11efbe=_0x5dc341['getChildren']()[0x0];if(!(_0x271e58 instanceof _univerjs_engine_formula['LexerNode'])||!(_0x11efbe instanceof _univerjs_engine_formula[_0x186738(0x1e1)]))return![];const _0x4433de=_0x271e58[_0x186738(0x1ce)]()[_0x186738(0x1f1)](),_0x5ce1e3=_0x11efbe['getToken']()[_0x186738(0x1f1)]();if((0x0,_univerjs_engine_formula[_0x186738(0x19a)])(''+_0x4433de+_univerjs_engine_formula['matchToken'][_0x186738(0x1ff)]+_0x5ce1e3))return!![];return![];}[_0x2a488b(0x17a)](_0x481433,_0x44b4b1,_0x4199df){const _0x599807=_0x2a488b,_0x498937=_0x481433['trim']();if(_0x498937[_0x599807(0x1a6)]('{')&&_0x498937[_0x599807(0x1a2)]('}')||_0x44b4b1(this[_0x599807(0x233)],_0x498937)||this[_0x599807(0x235)](_0x498937,_0x4199df)||(0x0,_univerjs_engine_formula[_0x599807(0x19a)])(_0x498937))return{'value':_0x498937,'children':[],'startIndex':-0x1};return null;}['_getTableNameFromStructuredRef'](_0x137bbe,_0x2f53d7){const _0x33fafa=_0x2a488b,{tableName:_0x520f16}=(0x0,_univerjs_engine_formula[_0x33fafa(0x190)])(_0x137bbe);if(_0x2f53d7(this['_currentUnitId'],_0x520f16))return _0x520f16;return null;}[_0x2a488b(0x222)](_0x38bd13,_0x175798,_0x118c5b,_0x2c147a,_0x56cbba){const _0xd94008=_0x2a488b,_0x483c2e=_0x38bd13[_0xd94008(0x15e)]();for(let _0x41c909=0x0;_0x41c909<_0x483c2e[_0xd94008(0x1ef)];_0x41c909++){const _0x23d8b8=_0x483c2e[_0x41c909];if(!(_0x23d8b8 instanceof _univerjs_engine_formula[_0xd94008(0x1e1)]))continue;const _0x5d1849=_0x23d8b8[_0xd94008(0x15e)]();if(_0x5d1849[_0xd94008(0x1ef)]===0x1&&!(_0x5d1849[0x0]instanceof _univerjs_engine_formula[_0xd94008(0x1e1)]))continue;const _0x245189=this[_0xd94008(0x165)](_0x23d8b8,_0x118c5b,_0x2c147a,_0x56cbba);_0x245189&&_0x175798[_0xd94008(0x257)]['push'](_0x245189);}}['_getCurNodeTypeForExprTree'](_0x4a96e4){const _0x500bc7=_0x2a488b,_0x37b1eb=_0x4a96e4['getToken'](),_0x10101f=_0x37b1eb[_0x500bc7(0x1f1)]()['toUpperCase']();let _0x5df02b=NewExcelFunctionNodeType['NORMAL'];if(_0x37b1eb===_univerjs_engine_formula[_0x500bc7(0x178)])_0x5df02b=NewExcelFunctionNodeType[_0x500bc7(0x162)];else{if(_0x37b1eb===_univerjs_engine_formula[_0x500bc7(0x207)])_0x5df02b=NewExcelFunctionNodeType[_0x500bc7(0x252)];else{if(_0x37b1eb===_univerjs_engine_formula['DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER'])_0x5df02b=NewExcelFunctionNodeType[_0x500bc7(0x1a4)];else{if(_0x10101f===_univerjs_engine_formula[_0x500bc7(0x23c)])_0x5df02b=NewExcelFunctionNodeType[_0x500bc7(0x17f)];else{if(_0x10101f===_univerjs_engine_formula[_0x500bc7(0x185)])_0x5df02b=NewExcelFunctionNodeType['LET'];else{if(_0x10101f===_univerjs_engine_formula[_0x500bc7(0x195)]['COLON'])_0x5df02b=NewExcelFunctionNodeType[_0x500bc7(0x1ff)];else{if(_univerjs_engine_formula['SUFFIX_TOKEN_SET'][_0x500bc7(0x220)](_0x10101f))_0x5df02b=NewExcelFunctionNodeType['SUFFIX'];else{if(_0x10101f===_univerjs_engine_formula['prefixToken'][_0x500bc7(0x1ca)]){if(this['_checkAddBracketForMinus'](_0x4a96e4))_0x5df02b=NewExcelFunctionNodeType[_0x500bc7(0x1ca)];}else _0x5df02b=NewExcelFunctionNodeType[_0x500bc7(0x1e6)];}}}}}}}return _0x5df02b;}},name=_0x2a488b(0x211),version=_0x2a488b(0x1b7),FormulaDependencyProGenerator=class extends _univerjs_engine_formula['FormulaDependencyGenerator']{constructor(..._0x446033){const _0x36661c=_0x2a488b;super(..._0x446033),_defineProperty(this,_0x36661c(0x1f5),new Map());}[_0x2a488b(0x21d)](){const _0x3cb1e9=_0x2a488b;super[_0x3cb1e9(0x21d)](),this['_dependencyTreeCache'][_0x3cb1e9(0x1b8)]();}async[_0x2a488b(0x17c)](_0x5563dc=![]){const _0x2ac07b=_0x2a488b;this[_0x2ac07b(0x204)]();const _0x3b972a=this[_0x2ac07b(0x24d)]['getFormulaData'](),_0x131510=this['_otherFormulaManagerService'][_0x2ac07b(0x1c9)](),_0x25c898=this['_currentConfigService']['getClearDependencyTreeCache']();if(_0x25c898!=null)Object[_0x2ac07b(0x1c2)](_0x25c898)[_0x2ac07b(0x1f2)](_0x418f2e=>{if(_0x418f2e==null)return;Object['keys'](_0x25c898[_0x418f2e])['forEach'](_0x4c6313=>{const _0x440762=_0xc578;if(_0x4c6313==null)return;this['_dependencyManagerService']['clearOtherFormulaDependency'](_0x418f2e,_0x4c6313),this['_dependencyManagerService'][_0x440762(0x24c)](_0x418f2e,_0x4c6313),this['_dependencyManagerService'][_0x440762(0x1df)](_0x418f2e,_0x4c6313);});});const _0x2a057d=this[_0x2ac07b(0x24d)][_0x2ac07b(0x18e)]();await this[_0x2ac07b(0x166)](_0x3b972a,_0x131510,_0x2a057d),this[_0x2ac07b(0x19f)][_0x2ac07b(0x183)]();const _0x3fa5d6=this[_0x2ac07b(0x1dd)](),_0x29b10c=this['_calculateRunList'](_0x3fa5d6);if(this[_0x2ac07b(0x173)](_0x29b10c))this[_0x2ac07b(0x1ee)][_0x2ac07b(0x182)]();if(_0x5563dc)this[_0x2ac07b(0x1ee)][_0x2ac07b(0x177)](this[_0x2ac07b(0x1b9)](Array[_0x2ac07b(0x1f9)](this[_0x2ac07b(0x1f5)][_0x2ac07b(0x22e)]())));return this[_0x2ac07b(0x1f5)]['clear'](),this[_0x2ac07b(0x1cf)]['clear'](),this[_0x2ac07b(0x19f)]['closeKdTree'](),this[_0x2ac07b(0x1ee)]['clearArrayObjectCache'](),Promise['resolve'](_0x29b10c);}[_0x2a488b(0x1f7)](_0x39180f,_0x2b21be){const _0x422981=_0x2a488b,_0x4a62ec=0x0,_0x43f2a9=0x1,_0x47b313=0x2,_0x31b19e=[_0x39180f];while(_0x31b19e[_0x422981(0x1ef)]>0x0){const _0x1beb94=_0x31b19e[_0x31b19e[_0x422981(0x1ef)]-0x1];if((_0x2b21be[_0x422981(0x1d8)](_0x1beb94)||_0x4a62ec)===_0x4a62ec){_0x2b21be[_0x422981(0x21e)](_0x1beb94,_0x43f2a9);const _0x24cde5=this['_dependencyTreeCache'][_0x422981(0x1d8)](_0x1beb94);if(_0x24cde5==null){_0x2b21be[_0x422981(0x21e)](_0x1beb94,_0x47b313),_0x31b19e[_0x422981(0x254)]();continue;}const _0x43e3b0=this[_0x422981(0x19f)][_0x422981(0x170)](_0x24cde5[_0x422981(0x1eb)]());for(const _0x234fe7 of _0x43e3b0){const _0x1053a3=_0x2b21be[_0x422981(0x1d8)](_0x234fe7)||_0x4a62ec;if(_0x1053a3===_0x43f2a9)return!![];else{if(_0x1053a3===_0x4a62ec)_0x31b19e[_0x422981(0x234)](_0x234fe7);}}}else _0x2b21be[_0x422981(0x21e)](_0x1beb94,_0x47b313),_0x31b19e[_0x422981(0x254)]();}return![];}[_0x2a488b(0x173)](_0x3d968a){const _0x3f7018=_0x2a488b,_0x41df36=new Map();for(const _0x15a8ae of _0x3d968a)if(!_0x41df36[_0x3f7018(0x220)](_0x15a8ae[_0x3f7018(0x259)])){if(this['_isCyclicUtilMap'](_0x15a8ae[_0x3f7018(0x259)],_0x41df36))return!![];}return _0x41df36['clear'](),![];}[_0x2a488b(0x172)](_0xbaeb15,_0x523116,_0x5e8ed7){const _0x105ae6=_0x2a488b,{unitId:_0x5dd74b,subUnitId:_0x476b61,dependencyRanges:_0x375b33,getDirtyData:_0x1e4f4b}=_0x5e8ed7,_0x2f897e=new _univerjs_engine_formula['FormulaDependencyTree'](_0x523116||(0x0,_univerjs_engine_formula[_0x105ae6(0x1c5)])(this['_dependencyManagerService']));_0x2f897e[_0x105ae6(0x20d)]=_0x5dd74b,_0x2f897e[_0x105ae6(0x1b0)]=_0x476b61,_0x2f897e[_0x105ae6(0x1c8)]=_0x375b33,_0x2f897e[_0x105ae6(0x193)]=_0x1e4f4b;const _0x4cb580=_0x1e4f4b(this[_0x105ae6(0x24d)][_0x105ae6(0x193)](),this[_0x105ae6(0x1ee)][_0x105ae6(0x214)]());_0x2f897e[_0x105ae6(0x1a5)]=this[_0x105ae6(0x1bf)](_0x4cb580[_0x105ae6(0x1c1)]),_0x2f897e[_0x105ae6(0x25a)]=_0xbaeb15,_0x2f897e[_0x105ae6(0x1ac)]=_univerjs_engine_formula[_0x105ae6(0x24e)][_0x105ae6(0x249)],this['_dependencyManagerService'][_0x105ae6(0x1d6)](_0x5dd74b,_0x476b61,_0xbaeb15,_0x2f897e),this['_dependencyTreeCache'][_0x105ae6(0x21e)](_0x2f897e[_0x105ae6(0x259)],_0x2f897e);if(this[_0x105ae6(0x19f)][_0x105ae6(0x1e5)](_0x5e8ed7['unitId'],_0x5e8ed7['subUnitId'],_0xbaeb15))_0x2f897e[_0x105ae6(0x1bb)]=!![];return _0x2f897e;}[_0x2a488b(0x203)](_0x50a665,_0x543601,_0x569cbd){const _0x1e7c59=_0x2a488b;for(const _0x488870 of _0x543601){const _0x124bec=_0x50a665[_0x488870];if(_0x124bec==null)continue;const _0x5bee47=Object[_0x1e7c59(0x1c2)](_0x124bec);for(const _0x4450c7 of _0x5bee47){const _0x4fa009=_0x124bec[_0x4450c7];if(_0x4fa009==null)continue;const {rowCount:rowCount=Infinity,columnCount:columnCount=Infinity}=this[_0x1e7c59(0x24d)][_0x1e7c59(0x16c)](_0x488870,_0x4450c7)||{},_0x42aca1=Object['keys'](_0x4fa009);for(const _0x40820f of _0x42aca1){var _0x8c0284;const _0x200aa5=this[_0x1e7c59(0x19f)][_0x1e7c59(0x176)](_0x40820f),{f:_0x2c03e5,ranges:_0x148b96}=_0x4fa009[_0x40820f];let _0x363ac1=![];if(_0x200aa5)_0x363ac1=!![];const {firstRow:_0x3f0e32,firstColumn:_0x1211de}=this['_getFirstCellOfRange'](_0x148b96),_0x4bb8a7=this['_dependencyManagerService']['getOtherFormulaDependency'](_0x488870,_0x4450c7,_0x40820f),_0x27510b=new _univerjs_engine_formula[(_0x1e7c59(0x255))]((_0x8c0284=_0x4bb8a7===null||_0x4bb8a7===void 0x0?void 0x0:_0x4bb8a7[_0x1e7c59(0x20c)](0x0,0x0))!==null&&_0x8c0284!==void 0x0?_0x8c0284:(0x0,_univerjs_engine_formula[_0x1e7c59(0x1c5)])(this[_0x1e7c59(0x19f)]));for(let _0x3c1df9=0x0;_0x3c1df9<_0x148b96['length'];_0x3c1df9++){const _0x1f0485=_0x148b96[_0x3c1df9],{startRow:_0x25276e,startColumn:_0x53a20a}=_0x1f0485;let {endRow:_0x5e76b9,endColumn:_0x5ccc}=_0x1f0485;_0x5e76b9=Math[_0x1e7c59(0x253)](_0x5e76b9,rowCount-0x1),_0x5ccc=Math[_0x1e7c59(0x253)](_0x5ccc,columnCount-0x1);for(let _0x32407d=_0x25276e;_0x32407d<=_0x5e76b9;_0x32407d++)for(let _0x7a166=_0x53a20a;_0x7a166<=_0x5ccc;_0x7a166++){const _0x56684a=_0x7a166-_0x1211de,_0x36b11a=_0x32407d-_0x3f0e32;if(_0x56684a===0x0&&_0x36b11a===0x0){_0x27510b['formula']=_0x2c03e5,_0x27510b['unitId']=_0x488870,_0x27510b[_0x1e7c59(0x1b0)]=_0x4450c7,_0x27510b['formulaId']=_0x40820f,_0x27510b[_0x1e7c59(0x1ac)]=_univerjs_engine_formula['FormulaDependencyTreeType'][_0x1e7c59(0x213)],_0x27510b['isCache']=_0x363ac1,_0x569cbd[_0x1e7c59(0x234)](_0x27510b),this[_0x1e7c59(0x1f5)][_0x1e7c59(0x21e)](_0x27510b[_0x1e7c59(0x259)],_0x27510b),this[_0x1e7c59(0x19f)][_0x1e7c59(0x212)](_0x488870,_0x4450c7,_0x40820f,_0x27510b),this[_0x1e7c59(0x19f)][_0x1e7c59(0x1fc)](_0x27510b);continue;}const _0xf2438f=new _univerjs_engine_formula['FormulaDependencyTreeVirtual']();_0xf2438f['treeId']=(_0x4bb8a7===null||_0x4bb8a7===void 0x0?void 0x0:_0x4bb8a7[_0x1e7c59(0x20c)](_0x56684a,_0x36b11a))||(0x0,_univerjs_engine_formula[_0x1e7c59(0x1c5)])(this[_0x1e7c59(0x19f)]),_0xf2438f[_0x1e7c59(0x226)]=_0x27510b,_0xf2438f[_0x1e7c59(0x225)]=_0x56684a,_0xf2438f[_0x1e7c59(0x21b)]=_0x36b11a,_0xf2438f[_0x1e7c59(0x1bb)]=_0x363ac1,_0xf2438f[_0x1e7c59(0x1ac)]=_univerjs_engine_formula[_0x1e7c59(0x24e)][_0x1e7c59(0x213)],this[_0x1e7c59(0x19f)]['addOtherFormulaDependency'](_0x488870,_0x4450c7,_0x40820f,_0xf2438f),this[_0x1e7c59(0x19f)]['addFormulaDependencyByDefinedName'](_0xf2438f),_0x569cbd[_0x1e7c59(0x234)](_0xf2438f),this[_0x1e7c59(0x1f5)]['set'](_0xf2438f[_0x1e7c59(0x259)],_0xf2438f);}}this['_dependencyManagerService'][_0x1e7c59(0x191)](_0x40820f);}}}}['_registerFormulas'](_0x20fc15,_0x13219b,_0x3a05d0,_0x189af0){const _0x5d7a45=_0x2a488b;for(const _0x20405b of _0x20fc15){const _0x1d9893=_0x13219b[_0x20405b];if(_0x1d9893==null)continue;const _0x45e5a8=Object['keys'](_0x1d9893);for(const _0x1e80b3 of _0x45e5a8){const _0x4c86d4=new _univerjs_core[(_0x5d7a45(0x217))](_0x1d9893[_0x1e80b3]||{}),_0x35c54c=new Map();_0x4c86d4[_0x5d7a45(0x25f)]((_0x325bc9,_0x24125c,_0x1bade4)=>{const _0x31b828=_0x5d7a45;if(_0x1bade4==null)return!![];const {x:x=0x0,y:y=0x0,si:_0x3d6f9f}=_0x1bade4;if(!(x===0x0&&y===0x0&&_0x3d6f9f!=null))return!![];const _0x18a73f=this['_createFDtree'](_0x20405b,_0x1e80b3,_0x325bc9,_0x24125c,_0x3a05d0,_0x1bade4),_0x32bcf9=this['_dependencyManagerService'][_0x31b828(0x25e)](_0x20405b,_0x1e80b3,_0x325bc9,_0x24125c);if(_0x32bcf9!=null)_0x18a73f[_0x31b828(0x259)]=_0x32bcf9;else this[_0x31b828(0x19f)][_0x31b828(0x19b)](_0x20405b,_0x1e80b3,_0x325bc9,_0x24125c,_0x18a73f),this[_0x31b828(0x19f)]['addFormulaDependencyByDefinedName'](_0x18a73f);_0x35c54c[_0x31b828(0x21e)](_0x3d6f9f,_0x18a73f),_0x189af0['push'](_0x18a73f),this['_dependencyTreeCache'][_0x31b828(0x21e)](_0x18a73f[_0x31b828(0x259)],_0x18a73f);}),_0x4c86d4[_0x5d7a45(0x25f)]((_0x434324,_0x383720,_0x45bf4f)=>{const _0x4398eb=_0x5d7a45;if(_0x45bf4f==null)return!![];const {x:x=0x0,y:y=0x0,si:_0x411c53}=_0x45bf4f;if(x===0x0&&y===0x0&&_0x411c53!=null)return!![];let _0x206ce9;if(_0x411c53&&_0x35c54c[_0x4398eb(0x220)](_0x411c53)){const _0x4a590c=_0x35c54c[_0x4398eb(0x1d8)](_0x411c53);_0x206ce9=this[_0x4398eb(0x1ec)](_0x4a590c,_0x45bf4f);}else _0x206ce9=this['_createFDtree'](_0x20405b,_0x1e80b3,_0x434324,_0x383720,_0x3a05d0,_0x45bf4f);const _0x4e5741=this[_0x4398eb(0x19f)]['getFormulaDependency'](_0x20405b,_0x1e80b3,_0x434324,_0x383720);if(_0x4e5741!=null)_0x206ce9['treeId']=_0x4e5741;else this['_dependencyManagerService']['addFormulaDependency'](_0x20405b,_0x1e80b3,_0x434324,_0x383720,_0x206ce9),this[_0x4398eb(0x19f)]['addFormulaDependencyByDefinedName'](_0x206ce9);_0x189af0[_0x4398eb(0x234)](_0x206ce9),this[_0x4398eb(0x1f5)][_0x4398eb(0x21e)](_0x206ce9[_0x4398eb(0x259)],_0x206ce9);}),_0x35c54c[_0x5d7a45(0x1b8)]();}}}['_createFDtree'](_0x349828,_0xb37e13,_0xecd679,_0x580e1c,_0x1e3533,_0x57b45b){const _0x2402f9=_0x2a488b,{f:_0x5ceee7,x:x=0x0,y:y=0x0}=_0x57b45b,_0x4bec76=new _univerjs_engine_formula['FormulaDependencyTree']((0x0,_univerjs_engine_formula[_0x2402f9(0x1c5)])(this['_dependencyManagerService'])),_0x4b1fca=_0x1e3533[_0x349828][_0xb37e13];return _0x4bec76[_0x2402f9(0x243)]=_0x5ceee7,_0x4bec76['unitId']=_0x349828,_0x4bec76[_0x2402f9(0x1b0)]=_0xb37e13,_0x4bec76['row']=_0xecd679,_0x4bec76['column']=_0x580e1c,_0x4bec76[_0x2402f9(0x25b)]=_0x4b1fca[_0x2402f9(0x25b)],_0x4bec76[_0x2402f9(0x20a)]=_0x4b1fca['columnCount'],_0x4bec76;}[_0x2a488b(0x1dd)](){const _0x1c5f20=_0x2a488b,_0x17b607=[],_0x376ea5=new Set(),_0x5e6f21=this['_currentConfigService'][_0x1c5f20(0x174)](),_0x2fc95d=this[_0x1c5f20(0x24d)][_0x1c5f20(0x218)](),_0x5ab4d9=this[_0x1c5f20(0x19f)][_0x1c5f20(0x170)](_0x2fc95d),_0x26ac1f=this['_dependencyRTreeCacheForAddressFunction'][_0x1c5f20(0x1d0)](_0x2fc95d);for(const _0x17ee91 of _0x26ac1f)_0x5ab4d9[_0x1c5f20(0x1e3)](_0x17ee91);for(const [_0x1b8ff7,_0x3fe927]of this[_0x1c5f20(0x1f5)])(_0x5e6f21||_0x3fe927[_0x1c5f20(0x1e2)]||_0x3fe927['dependencySheetName'](this[_0x1c5f20(0x24d)]['getDirtyNameMap']())||_0x5ab4d9[_0x1c5f20(0x220)](_0x1b8ff7)&&!_0x3fe927[_0x1c5f20(0x1a8)](this[_0x1c5f20(0x24d)]['getExcludedRange']()))&&!_0x376ea5[_0x1c5f20(0x220)](_0x1b8ff7)&&(_0x17b607[_0x1c5f20(0x234)](_0x3fe927),_0x376ea5[_0x1c5f20(0x1e3)](_0x1b8ff7));for(const [_0x16b289,_0x336474]of this[_0x1c5f20(0x1f5)]){if(_0x336474[_0x1c5f20(0x1de)])continue;_0x336474[_0x1c5f20(0x1c8)]['length']=0x0;}return _0x17b607;}[_0x2a488b(0x16d)](_0x701d71){const _0x4912c2=_0x2a488b;return this[_0x4912c2(0x1f5)][_0x4912c2(0x1d8)](_0x701d71);}[_0x2a488b(0x199)](_0x4d01ab){const _0x70e202=_0x2a488b;return(0x0,_univerjs_engine_formula['generateAstNode'])(_0x4d01ab[_0x70e202(0x20d)],_0x4d01ab[_0x70e202(0x243)],this[_0x70e202(0x20f)],this[_0x70e202(0x246)],this[_0x70e202(0x24d)]);}*[_0x2a488b(0x23e)](_0x1e890e,_0x33c215){const _0x3e8e10=_0x2a488b,_0x30bce1=_0x1e890e,_0x5d18b0=new Set();while(_0x30bce1[_0x3e8e10(0x1ef)]>0x0){const _0x443937=_0x30bce1[_0x3e8e10(0x254)]();_0x5d18b0[_0x3e8e10(0x1b8)]();if(_0x443937===void 0x0||_0x443937[_0x3e8e10(0x17e)]())continue;if(_0x443937[_0x3e8e10(0x21a)]()){yield _0x443937,_0x443937[_0x3e8e10(0x1a0)](),_0x33c215[_0x3e8e10(0x1e3)](_0x443937['treeId']);continue;}const _0x2c9522=this[_0x3e8e10(0x19f)][_0x3e8e10(0x170)](_0x443937[_0x3e8e10(0x1eb)](),_0x33c215),_0x4a3fd3=this[_0x3e8e10(0x1cf)][_0x3e8e10(0x1d0)](_0x443937[_0x3e8e10(0x1eb)](),_0x33c215);for(const _0xb5dfc7 of _0x4a3fd3)_0x2c9522[_0x3e8e10(0x1e3)](_0xb5dfc7);for(const _0x57586e of _0x2c9522){const _0x160def=this['_dependencyTreeCache']['get'](_0x57586e);if(!_0x160def){console[_0x3e8e10(0x24a)]('Dependency\x20tree\x20not\x20found\x20for\x20treeId:',_0x57586e);continue;}if(_0x160def[_0x3e8e10(0x21a)]()||_0x443937['isSkip']())continue;_0x5d18b0[_0x3e8e10(0x1e3)](_0x160def);}_0x2c9522['clear']();if(_0x5d18b0['size']===0x0)yield _0x443937,_0x443937[_0x3e8e10(0x1a0)](),_0x33c215[_0x3e8e10(0x1e3)](_0x443937[_0x3e8e10(0x259)]);else{_0x443937[_0x3e8e10(0x1c6)](),_0x30bce1[_0x3e8e10(0x234)](_0x443937);for(const _0x4f012c of _0x5d18b0)_0x30bce1[_0x3e8e10(0x234)](_0x4f012c);}}_0x30bce1[_0x3e8e10(0x1ef)]=0x0,_0x5d18b0[_0x3e8e10(0x1b8)]();}['_calculateRunList'](_0x2c5b96){const _0x323452=_0x2a488b,_0x12c2b9=[],_0xc07d1=new Set();for(const _0x26312d of this[_0x323452(0x23e)](_0x2c5b96,_0xc07d1))_0x12c2b9['push'](_0x26312d);return _0x12c2b9;}async[_0x2a488b(0x251)](){const _0x2aee47=_0x2a488b;return await this['_initializeGenerateTreeList'](),Array[_0x2aee47(0x1f9)](this[_0x2aee47(0x1f5)][_0x2aee47(0x22e)]());}[_0x2a488b(0x1fa)](_0x3db4c7){const _0x1f7f93=_0x2a488b;return this[_0x1f7f93(0x19f)][_0x1f7f93(0x170)](_0x3db4c7[_0x1f7f93(0x1eb)]());}[_0x2a488b(0x1a7)](_0x1e6dfa){const _0x909aa7=_0x2a488b,_0x11224b=new Set(),_0xb3f7f5=_0x1e6dfa[_0x909aa7(0x1c8)];for(const [_0x3d0c1c,_0x19061e]of this[_0x909aa7(0x1f5)])for(const _0x237e9a of _0xb3f7f5){const _0x491635=_0x237e9a['unitId'],_0x141dfa=_0x237e9a[_0x909aa7(0x21f)];if(_0x19061e[_0x909aa7(0x20d)]!==_0x491635||_0x19061e[_0x909aa7(0x1b0)]!==_0x141dfa)continue;const _0x20c658=_0x237e9a['range'];if(_0x19061e[_0x909aa7(0x1cb)](_0x20c658)){_0x11224b['add'](_0x3d0c1c);break;}}return _0x11224b;}['_startFormulaDependencyTreeModel'](){const _0x3fdfa5=_0x2a488b;this[_0x3fdfa5(0x19f)]['openKdTree']();}[_0x2a488b(0x1c7)](){const _0xe290ae=_0x2a488b;this['_formulaDependencyTreeModel'][_0xe290ae(0x1b8)](),this[_0xe290ae(0x1f5)][_0xe290ae(0x1b8)](),this[_0xe290ae(0x19f)][_0xe290ae(0x216)]();}},CalculateFormulaProService=class extends _univerjs_engine_formula[_0x2a488b(0x160)]{async['_apply'](_0x150295=![]){const _0x5b5ef5=_0x2a488b;if(_0x150295)this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1e4)](_univerjs_engine_formula[_0x5b5ef5(0x1ae)][_0x5b5ef5(0x186)]);else this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1e4)](_univerjs_engine_formula[_0x5b5ef5(0x1ae)][_0x5b5ef5(0x260)]);this['_executionInProgressListener$']['next'](this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x23d)]());const _0x240b90=await this[_0x5b5ef5(0x244)][_0x5b5ef5(0x17c)](this['_isCalculateTreeModel']),_0x2efdd3=this[_0x5b5ef5(0x201)];_0x150295?(this['_runtimeService']['setFormulaExecuteStage'](_univerjs_engine_formula[_0x5b5ef5(0x1ae)]['START_CALCULATION_ARRAY_FORMULA']),this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x210)](_0x240b90['length'])):(this['_runtimeService']['setFormulaExecuteStage'](_univerjs_engine_formula[_0x5b5ef5(0x1ae)][_0x5b5ef5(0x1cc)]),this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x194)](_0x240b90[_0x5b5ef5(0x1ef)]));this[_0x5b5ef5(0x1b5)][_0x5b5ef5(0x239)](this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x23d)]());let _0x1305e9=[];const _0x41a1d0=this[_0x5b5ef5(0x227)][_0x5b5ef5(0x1e8)](_univerjs_engine_formula[_0x5b5ef5(0x196)]),_0x1dbedf=(_0x41a1d0===null||_0x41a1d0===void 0x0?void 0x0:_0x41a1d0['intervalCount'])||_univerjs_engine_formula[_0x5b5ef5(0x223)];let _0x14e06d=0x0;const _0x73eb02=_0x240b90['length'];while(_0x240b90[_0x5b5ef5(0x1ef)]>0x0){const _0x2f29f7=_0x240b90['pop'](),_0x1419b=(0x0,_univerjs_engine_formula[_0x5b5ef5(0x20b)])(_0x2f29f7[_0x5b5ef5(0x20d)],_0x2f29f7[_0x5b5ef5(0x243)],this[_0x5b5ef5(0x20f)],this[_0x5b5ef5(0x246)],this[_0x5b5ef5(0x24d)]),_0x1d7ccb={'node':_0x1419b,'refOffsetX':_0x2f29f7[_0x5b5ef5(0x225)],'refOffsetY':_0x2f29f7[_0x5b5ef5(0x21b)]},_0x3de555=_0x2f29f7[_0x5b5ef5(0x193)];if(_0x14e06d%_0x1dbedf===0x0){await new Promise(_0x266053=>{const _0x41b2b0=_0x5b5ef5,_0x1abb83=(0x0,_univerjs_core['requestImmediateMacroTask'])(_0x266053);_0x1305e9[_0x41b2b0(0x234)](_0x1abb83);});_0x150295?(this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1e4)](_univerjs_engine_formula[_0x5b5ef5(0x1ae)][_0x5b5ef5(0x1d1)]),this['_runtimeService'][_0x5b5ef5(0x20e)](_0x14e06d+0x1)):(this[_0x5b5ef5(0x1ee)]['setFormulaExecuteStage'](_univerjs_engine_formula['FormulaExecuteStageType'][_0x5b5ef5(0x19d)]),this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1b4)](_0x14e06d+0x1));this[_0x5b5ef5(0x1b5)][_0x5b5ef5(0x239)](this['_runtimeService'][_0x5b5ef5(0x23d)]());if(this['_runtimeService']['isStopExecution']()||_0x1d7ccb==null&&_0x3de555==null){this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1e4)](_univerjs_engine_formula[_0x5b5ef5(0x1ae)][_0x5b5ef5(0x16e)]),this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x18c)](),this['_executionCompleteListener$']['next'](this[_0x5b5ef5(0x1ee)]['getAllRuntimeData']());return;}}this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x16b)](_0x2f29f7['row'],_0x2f29f7['column'],_0x2f29f7[_0x5b5ef5(0x25b)],_0x2f29f7[_0x5b5ef5(0x20a)],_0x2f29f7['subUnitId'],_0x2f29f7['unitId']);let _0x5eca57;if(_0x3de555!=null&&_0x2f29f7[_0x5b5ef5(0x25a)]!=null){const {runtimeCellData:_0x51d4d6,dirtyRanges:_0x1b6c9b}=_0x3de555(this[_0x5b5ef5(0x24d)][_0x5b5ef5(0x193)](),this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x214)]());this[_0x5b5ef5(0x1ee)]['setRuntimeFeatureCellData'](_0x2f29f7[_0x5b5ef5(0x25a)],_0x51d4d6),this[_0x5b5ef5(0x1ee)]['setRuntimeFeatureRange'](_0x2f29f7[_0x5b5ef5(0x25a)],_0x1b6c9b);}else{if(_0x1d7ccb!=null){if(_0x2efdd3[_0x5b5ef5(0x1b6)](_0x1d7ccb[_0x5b5ef5(0x24b)]))_0x5eca57=await _0x2efdd3['executeAsync'](_0x1d7ccb);else _0x5eca57=_0x2efdd3[_0x5b5ef5(0x238)](_0x1d7ccb);if(_0x2f29f7['formulaId']!=null)this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1bc)](_0x2f29f7[_0x5b5ef5(0x215)],_0x2f29f7['refOffsetX'],_0x2f29f7[_0x5b5ef5(0x21b)],_0x5eca57);else this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1b3)](_0x5eca57);}}_0x1419b[_0x5b5ef5(0x18a)](),_0x14e06d++;}_0x1305e9[_0x5b5ef5(0x1f2)](_0x50a12f=>_0x50a12f()),_0x1305e9=[];if(_0x73eb02>0x0)this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1e9)]();else{if(!_0x150295)this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x1b2)]();}return this[_0x5b5ef5(0x1ee)][_0x5b5ef5(0x214)]();}},DependencyManagerProService=class extends _univerjs_engine_formula['DependencyManagerBaseService']{constructor(..._0x4e3657){const _0x31c289=_0x2a488b;super(..._0x4e3657),_defineProperty(this,_0x31c289(0x1d3),new Map()),_defineProperty(this,'_dependencyRTreeCache',new _univerjs_core['RTree'](!![]));}[_0x2a488b(0x1da)](){const _0x69456=_0x2a488b;this[_0x69456(0x17d)][_0x69456(0x1b8)](),this[_0x69456(0x161)][_0x69456(0x1b8)](),this['_formulaData'][_0x69456(0x1b8)](),this[_0x69456(0x21c)][_0x69456(0x1b8)](),this[_0x69456(0x1d3)][_0x69456(0x1b8)](),this[_0x69456(0x1aa)](),this[_0x69456(0x1c0)][_0x69456(0x1b8)]();}[_0x2a488b(0x212)](_0x10d98b,_0x32b04e,_0x5d7ca3,_0x24489a){const _0x416ac3=_0x2a488b;if(!this[_0x416ac3(0x17d)]['has'](_0x10d98b))this[_0x416ac3(0x17d)]['set'](_0x10d98b,new Map());const _0x5e6c5d=this[_0x416ac3(0x17d)][_0x416ac3(0x1d8)](_0x10d98b);if(!_0x5e6c5d[_0x416ac3(0x220)](_0x32b04e))_0x5e6c5d[_0x416ac3(0x21e)](_0x32b04e,new Map());const _0x51f8df=_0x5e6c5d[_0x416ac3(0x1d8)](_0x32b04e);if(!_0x51f8df['has'](_0x5d7ca3))_0x51f8df[_0x416ac3(0x21e)](_0x5d7ca3,new _univerjs_core['ObjectMatrix']());_0x51f8df[_0x416ac3(0x1d8)](_0x5d7ca3)[_0x416ac3(0x1f0)](_0x24489a[_0x416ac3(0x225)],_0x24489a['refOffsetY'],_0x24489a[_0x416ac3(0x259)]);}['removeOtherFormulaDependency'](_0x369415,_0x2093e8,_0x2467ac){const _0xaf223=_0x2a488b,_0xe687a4=this[_0xaf223(0x17d)][_0xaf223(0x1d8)](_0x369415);if(_0xe687a4&&_0xe687a4[_0xaf223(0x220)](_0x2093e8)){const _0x4ca361=_0xe687a4['get'](_0x2093e8);_0x2467ac[_0xaf223(0x1f2)](_0x21824d=>{const _0x594f68=_0xaf223,_0x4bfd7f=_0x4ca361[_0x594f68(0x1d8)](_0x21824d);if(_0x4bfd7f==null)return;_0x4bfd7f['forValue']((_0x408db0,_0x180730,_0x54b31b)=>{const _0x427f75=_0x594f68;this[_0x427f75(0x23f)](_0x54b31b),this[_0x427f75(0x1f3)](_0x54b31b);}),_0x4ca361[_0x594f68(0x202)](_0x21824d),this[_0x594f68(0x1c0)][_0x594f68(0x202)](_0x21824d);});if(_0x4ca361[_0xaf223(0x228)]===0x0)_0xe687a4[_0xaf223(0x202)](_0x2093e8);if(_0xe687a4[_0xaf223(0x228)]===0x0)this[_0xaf223(0x17d)][_0xaf223(0x202)](_0x369415);}}['clearOtherFormulaDependency'](_0x1a3863,_0x45c18e){const _0x4f741a=_0x2a488b,_0x3a3e62=this[_0x4f741a(0x17d)][_0x4f741a(0x1d8)](_0x1a3863);if(_0x45c18e&&_0x3a3e62&&_0x3a3e62[_0x4f741a(0x220)](_0x45c18e)){const _0x1a6ae9=_0x3a3e62['get'](_0x45c18e);this[_0x4f741a(0x258)](_0x1a3863,_0x45c18e);for(const _0x54d372 of _0x1a6ae9[_0x4f741a(0x1c2)]()){const _0x2a00bd=_0x1a6ae9[_0x4f741a(0x1d8)](_0x54d372);if(_0x2a00bd==null)continue;_0x2a00bd[_0x4f741a(0x25f)]((_0x1be4e9,_0x38e087,_0x440a41)=>{const _0x50f0e2=_0x4f741a;if(this[_0x50f0e2(0x1d3)]['get'](_0x440a41))this[_0x50f0e2(0x1f3)](_0x440a41);}),this['_otherFormulaDataMainData'][_0x4f741a(0x202)](_0x54d372);}_0x1a6ae9[_0x4f741a(0x1b8)]();}else{if(_0x3a3e62){for(const _0x2e5b63 of _0x3a3e62[_0x4f741a(0x1c2)]()){const _0x57808c=_0x3a3e62[_0x4f741a(0x1d8)](_0x2e5b63);this['_removeDependencyRTreeCacheById'](_0x1a3863,_0x2e5b63);for(const _0x19e759 of _0x57808c['keys']()){const _0x1b7128=_0x57808c[_0x4f741a(0x1d8)](_0x19e759);if(_0x1b7128==null)continue;_0x1b7128['forValue']((_0x1d9b27,_0x534aaa,_0x38031e)=>{const _0x5877b3=_0x4f741a;if(this[_0x5877b3(0x1d3)][_0x5877b3(0x1d8)](_0x38031e))this[_0x5877b3(0x1f3)](_0x38031e);}),this['_otherFormulaDataMainData']['delete'](_0x19e759);}}this['_otherFormulaData'][_0x4f741a(0x202)](_0x1a3863);}}}[_0x2a488b(0x1d6)](_0x3e5225,_0x58f9e0,_0x2cc1b2,_0x361bd5){const _0x2feff8=_0x2a488b;if(!this[_0x2feff8(0x161)][_0x2feff8(0x220)](_0x3e5225))this[_0x2feff8(0x161)][_0x2feff8(0x21e)](_0x3e5225,new Map());const _0x3d8bbc=this['_featureFormulaData'][_0x2feff8(0x1d8)](_0x3e5225);if(!_0x3d8bbc[_0x2feff8(0x220)](_0x58f9e0))_0x3d8bbc[_0x2feff8(0x21e)](_0x58f9e0,new Map());_0x3d8bbc[_0x2feff8(0x1d8)](_0x58f9e0)[_0x2feff8(0x21e)](_0x2cc1b2,_0x361bd5[_0x2feff8(0x259)]);}[_0x2a488b(0x231)](_0x2d509a,_0x1ef8c2,_0x530b53){const _0x1647b2=_0x2a488b,_0x2c777e=this['_featureFormulaData'][_0x1647b2(0x1d8)](_0x2d509a);if(_0x2c777e&&_0x2c777e[_0x1647b2(0x220)](_0x1ef8c2)){const _0x2ad1a0=_0x2c777e['get'](_0x1ef8c2);_0x530b53[_0x1647b2(0x1f2)](_0x2b8fd3=>{const _0x2b1cac=_0x1647b2,_0xea8fb8=_0x2ad1a0[_0x2b1cac(0x1d8)](_0x2b8fd3);if(_0xea8fb8==null)return;this[_0x2b1cac(0x23f)](_0xea8fb8),_0x2ad1a0[_0x2b1cac(0x202)](_0x2b8fd3),this[_0x2b1cac(0x1f3)](_0xea8fb8);});}}[_0x2a488b(0x24c)](_0x67a749,_0x581bab){const _0x49a453=_0x2a488b,_0x100583=this[_0x49a453(0x161)][_0x49a453(0x1d8)](_0x67a749);if(_0x581bab&&_0x100583&&_0x100583[_0x49a453(0x220)](_0x581bab)){const _0x160ea8=_0x100583['get'](_0x581bab);this['_removeDependencyRTreeCacheById'](_0x67a749,_0x581bab),_0x160ea8[_0x49a453(0x1f2)](_0x198bf1=>{const _0x19091b=_0x49a453;if(_0x198bf1==null)return;this[_0x19091b(0x1f3)](_0x198bf1);}),_0x160ea8['clear']();}else _0x100583&&(_0x100583[_0x49a453(0x1f2)]((_0x9b2ee7,_0x429660)=>{const _0x8d08b1=_0x49a453;this[_0x8d08b1(0x258)](_0x67a749,_0x429660),_0x9b2ee7[_0x8d08b1(0x1f2)](_0x112244=>{if(_0x112244==null)return;this['_removeAllTreeMap'](_0x112244);});}),this[_0x49a453(0x161)][_0x49a453(0x202)](_0x67a749));}[_0x2a488b(0x19b)](_0x23d9f5,_0x13f13e,_0x5f1360,_0x68fe5d,_0x38b28d){const _0x48a5fb=_0x2a488b;if(!this[_0x48a5fb(0x171)]['has'](_0x23d9f5))this[_0x48a5fb(0x171)][_0x48a5fb(0x21e)](_0x23d9f5,new Map());const _0x3e44f7=this[_0x48a5fb(0x171)][_0x48a5fb(0x1d8)](_0x23d9f5);if(!_0x3e44f7[_0x48a5fb(0x220)](_0x13f13e))_0x3e44f7[_0x48a5fb(0x21e)](_0x13f13e,new _univerjs_core[(_0x48a5fb(0x217))]());_0x3e44f7[_0x48a5fb(0x1d8)](_0x13f13e)[_0x48a5fb(0x1f0)](_0x5f1360,_0x68fe5d,_0x38b28d['treeId']);}[_0x2a488b(0x1ab)](_0x357846,_0x2c9f56,_0x2d9b13,_0x1b1c7b){const _0x47aa66=_0x2a488b,_0x547ea2=this[_0x47aa66(0x171)]['get'](_0x357846);if(_0x547ea2&&_0x547ea2[_0x47aa66(0x220)](_0x2c9f56)){const _0x3e7a8b=_0x547ea2['get'](_0x2c9f56),_0x503111=_0x3e7a8b[_0x47aa66(0x20c)](_0x2d9b13,_0x1b1c7b);if(_0x503111==null)return;this[_0x47aa66(0x23f)](_0x503111),_0x3e7a8b[_0x47aa66(0x164)](_0x2d9b13,_0x1b1c7b),this['_removeAllTreeMap'](_0x503111);}}[_0x2a488b(0x1df)](_0x1b28ba,_0x271253){const _0x1ed677=_0x2a488b,_0x5722fe=this[_0x1ed677(0x171)][_0x1ed677(0x1d8)](_0x1b28ba);if(_0x271253&&_0x5722fe&&_0x5722fe[_0x1ed677(0x220)](_0x271253)){const _0x2c7bb9=_0x5722fe[_0x1ed677(0x1d8)](_0x271253);this[_0x1ed677(0x258)](_0x1b28ba,_0x271253),_0x2c7bb9['forValue']((_0x3b565f,_0x3bcf86,_0x534c64)=>{const _0x3dabea=_0x1ed677;if(_0x534c64==null)return!![];this[_0x3dabea(0x1f3)](_0x534c64);}),_0x2c7bb9[_0x1ed677(0x1da)]();}else _0x5722fe&&(_0x5722fe[_0x1ed677(0x1f2)]((_0x12aa7a,_0x4b2d76)=>{const _0x4a33ce=_0x1ed677;this[_0x4a33ce(0x258)](_0x1b28ba,_0x4b2d76),_0x12aa7a[_0x4a33ce(0x25f)]((_0x4e1cdb,_0xf1b14b,_0x29cb72)=>{const _0x9c2c10=_0x4a33ce;if(_0x29cb72==null)return!![];this[_0x9c2c10(0x1f3)](_0x29cb72);});}),this[_0x1ed677(0x171)][_0x1ed677(0x202)](_0x1b28ba));}[_0x2a488b(0x23f)](_0x1ea7e8){const _0x3e0ed6=_0x2a488b;if(_0x1ea7e8==null)return;const _0x33f122=this[_0x3e0ed6(0x1d3)][_0x3e0ed6(0x1d8)](_0x1ea7e8);if(_0x33f122){const _0x17f828=[];for(const [_0x5b8a98,_0x2382d1]of _0x33f122)for(const [_0x1ecedd,_0x358e2f]of _0x2382d1)_0x17f828[_0x3e0ed6(0x234)]({'unitId':_0x5b8a98,'sheetId':_0x1ecedd,'range':_0x358e2f,'id':_0x1ea7e8});this[_0x3e0ed6(0x21c)][_0x3e0ed6(0x1c4)](_0x17f828);}}[_0x2a488b(0x1bd)](_0x1d93c4,_0x2fc39e){const _0x362a17=_0x2a488b,_0xf628ce=this[_0x362a17(0x181)][_0x362a17(0x1d8)](_0x1d93c4);if(_0xf628ce){const _0x12fc40=_0xf628ce[_0x362a17(0x1d8)](_0x2fc39e);if(_0x12fc40){for(const _0x3caed8 of _0x12fc40){this[_0x362a17(0x23f)](_0x3caed8),this[_0x362a17(0x1f3)](_0x3caed8);}_0x12fc40[_0x362a17(0x1b8)]();}}}[_0x2a488b(0x183)](){const _0x38a77d=_0x2a488b;this[_0x38a77d(0x21c)][_0x38a77d(0x183)]();}[_0x2a488b(0x216)](){const _0x550933=_0x2a488b;this[_0x550933(0x21c)][_0x550933(0x216)]();}['_removeAllTreeMap'](_0x5e78e4){const _0x326015=_0x2a488b;if(_0x5e78e4==null)return;this[_0x326015(0x1d3)][_0x326015(0x202)](_0x5e78e4);}['_addAllTreeMap'](_0x2bbf38){const _0xa0bbff=_0x2a488b,_0x2f06e9=_0x2bbf38['rangeList'];let _0x41fa84=this[_0xa0bbff(0x1d3)][_0xa0bbff(0x1d8)](_0x2bbf38['treeId']);for(let _0x2251c4=0x0;_0x2251c4<_0x2f06e9[_0xa0bbff(0x1ef)];_0x2251c4++){var _0x465487,_0x21c1f2;let {unitId:_0x3945b8,sheetId:_0x2e3f01,range:_0x210506}=_0x2f06e9[_0x2251c4];!_0x41fa84&&(_0x41fa84=new Map(),this[_0xa0bbff(0x1d3)]['set'](_0x2bbf38[_0xa0bbff(0x259)],_0x41fa84));if(!_0x41fa84[_0xa0bbff(0x220)](_0x3945b8))_0x41fa84[_0xa0bbff(0x21e)](_0x3945b8,new Map());const _0x59bc2a=_0x41fa84===null||_0x41fa84===void 0x0||(_0x465487=_0x41fa84[_0xa0bbff(0x1d8)](_0x3945b8))===null||_0x465487===void 0x0?void 0x0:_0x465487[_0xa0bbff(0x1d8)](_0x2e3f01);if(_0x59bc2a)_0x210506={'startRow':Math[_0xa0bbff(0x253)](_0x210506[_0xa0bbff(0x250)],_0x59bc2a['startRow']),'startColumn':Math[_0xa0bbff(0x253)](_0x210506['startColumn'],_0x59bc2a[_0xa0bbff(0x19c)]),'endRow':Math[_0xa0bbff(0x19e)](_0x210506[_0xa0bbff(0x1a1)],_0x59bc2a[_0xa0bbff(0x1a1)]),'endColumn':Math[_0xa0bbff(0x19e)](_0x210506['endColumn'],_0x59bc2a[_0xa0bbff(0x1d2)])};(_0x21c1f2=_0x41fa84[_0xa0bbff(0x1d8)](_0x3945b8))===null||_0x21c1f2===void 0x0||_0x21c1f2[_0xa0bbff(0x21e)](_0x2e3f01,_0x210506);}}};function __decorate(_0x3025c7,_0x217283,_0x3404e5,_0x123bec){const _0x24fb08=_0x2a488b;var _0x55f2fa=arguments['length'],_0x48be1f=_0x55f2fa<0x3?_0x217283:_0x123bec===null?_0x123bec=Object['getOwnPropertyDescriptor'](_0x217283,_0x3404e5):_0x123bec,_0x400ff4;if(typeof Reflect==='object'&&typeof Reflect[_0x24fb08(0x1c3)]===_0x24fb08(0x1ba))_0x48be1f=Reflect['decorate'](_0x3025c7,_0x217283,_0x3404e5,_0x123bec);else{for(var _0x47be6a=_0x3025c7['length']-0x1;_0x47be6a>=0x0;_0x47be6a--)if(_0x400ff4=_0x3025c7[_0x47be6a])_0x48be1f=(_0x55f2fa<0x3?_0x400ff4(_0x48be1f):_0x55f2fa>0x3?_0x400ff4(_0x217283,_0x3404e5,_0x48be1f):_0x400ff4(_0x217283,_0x3404e5))||_0x48be1f;}return _0x55f2fa>0x3&&_0x48be1f&&Object[_0x24fb08(0x1d9)](_0x217283,_0x3404e5,_0x48be1f),_0x48be1f;}const BUILD_TIMESTAMP=Number[_0x2a488b(0x1d4)](0x69ec6f90);let UniverProFormulaEnginePlugin=class UniverProFormulaEnginePlugin extends _univerjs_engine_formula[_0x2a488b(0x23a)]{['_initializeWithOverride'](){const _0x529a65=_0x2a488b;if(this[_0x529a65(0x1b1)]()){var _0x6b37c0;this[_0x529a65(0x198)]['add']([_univerjs_engine_formula[_0x529a65(0x237)],{'useClass':LexerTreeProBuilder}]);if(!((_0x6b37c0=this['_config'])===null||_0x6b37c0===void 0x0?void 0x0:_0x6b37c0[_0x529a65(0x22c)]))[[_univerjs_engine_formula[_0x529a65(0x188)],{'useClass':CalculateFormulaProService}],[_univerjs_engine_formula[_0x529a65(0x25d)],{'useClass':DependencyManagerProService}],[_univerjs_engine_formula[_0x529a65(0x175)],{'useClass':FormulaDependencyProGenerator}]]['forEach'](_0x2f90f1=>this[_0x529a65(0x198)][_0x529a65(0x1e3)](_0x2f90f1));}else{var _0x2665a9;this[_0x529a65(0x198)][_0x529a65(0x1e3)]([_univerjs_engine_formula[_0x529a65(0x237)],{'useClass':_univerjs_engine_formula[_0x529a65(0x237)]}]);if(!((_0x2665a9=this['_config'])===null||_0x2665a9===void 0x0?void 0x0:_0x2665a9[_0x529a65(0x22c)]))[[_univerjs_engine_formula['ICalculateFormulaService'],{'useClass':_univerjs_engine_formula['CalculateFormulaService']}],[_univerjs_engine_formula['IDependencyManagerService'],{'useClass':_univerjs_engine_formula[_0x529a65(0x18f)]}],[_univerjs_engine_formula[_0x529a65(0x175)],{'useClass':_univerjs_engine_formula['FormulaDependencyGenerator']}]]['forEach'](_0x599cbe=>this[_0x529a65(0x198)][_0x529a65(0x1e3)](_0x599cbe));}}['_initLicenseValid'](){const _0x4bbbd6=_0x2a488b;var _0x47d206;const {ls:_0x3b5922,pbk:_0x2c708e}=(_0x47d206=this['_configService'][_0x4bbbd6(0x1e8)](_univerjs_pro_license[_0x4bbbd6(0x23b)]))!==null&&_0x47d206!==void 0x0?_0x47d206:{};if(!_0x3b5922||!_0x2c708e)return![];const _0x34c81c=(0x0,_univerjs_pro_license[_0x4bbbd6(0x18d)])(_0x3b5922,_0x2c708e),_0x1c07d5=_0x34c81c[_0x4bbbd6(0x1ea)];if(_0x34c81c[_0x4bbbd6(0x1a3)]){if((0x0,_univerjs_pro_license[_0x4bbbd6(0x18b)])(_0x1c07d5,'sf',BUILD_TIMESTAMP))return(0x0,_univerjs_pro_license['getSheetFeatureLimit'])(_0x1c07d5,!![],'a',!![],![],![]);}return![];}};_defineProperty(UniverProFormulaEnginePlugin,_0x2a488b(0x192),name),_defineProperty(UniverProFormulaEnginePlugin,_0x2a488b(0x230),version),UniverProFormulaEnginePlugin=__decorate([(0x0,_univerjs_core[_0x2a488b(0x208)])(_univerjs_pro_license['UniverLicensePlugin'])],UniverProFormulaEnginePlugin),exports[_0x2a488b(0x16f)]=LexerTreeProBuilder,Object[_0x2a488b(0x1d9)](exports,'UniverProFormulaEnginePlugin',{'enumerable':!![],'get':function(){return UniverProFormulaEnginePlugin;}}),Object[_0x2a488b(0x1c2)](_univerjs_engine_formula)[_0x2a488b(0x1f2)](function(_0x2609bb){const _0x5ece49=_0x2a488b;if(_0x2609bb!=='default'&&!Object[_0x5ece49(0x24f)][_0x5ece49(0x1d7)]['call'](exports,_0x2609bb))Object[_0x5ece49(0x1d9)](exports,_0x2609bb,{'enumerable':!![],'get':function(){return _univerjs_engine_formula[_0x2609bb];}});});
1
+ const _0x363451=_0x5a39;(function(_0x13955a,_0x11017b){const _0x30feef=_0x5a39,_0x2cc57d=_0x13955a();while(!![]){try{const _0x14131b=-parseInt(_0x30feef(0x217))/0x1*(-parseInt(_0x30feef(0x1ac))/0x2)+parseInt(_0x30feef(0x18b))/0x3*(parseInt(_0x30feef(0x1c5))/0x4)+parseInt(_0x30feef(0x1fe))/0x5+-parseInt(_0x30feef(0x19c))/0x6*(-parseInt(_0x30feef(0x194))/0x7)+parseInt(_0x30feef(0x176))/0x8*(parseInt(_0x30feef(0x192))/0x9)+-parseInt(_0x30feef(0x1fb))/0xa+parseInt(_0x30feef(0x13a))/0xb*(-parseInt(_0x30feef(0x15a))/0xc);if(_0x14131b===_0x11017b)break;else _0x2cc57d['push'](_0x2cc57d['shift']());}catch(_0x1dddc1){_0x2cc57d['push'](_0x2cc57d['shift']());}}}(_0x32cc,0xd5f54),Object['defineProperty'](exports,Symbol[_0x363451(0x1ed)],{'value':_0x363451(0x1dc)}));let _univerjs_engine_formula=require('@univerjs/engine-formula'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_core=require('@univerjs/core');function _typeof(_0x47a978){'@babel/helpers - typeof';const _0x3b8146=_0x363451;return _typeof='function'==typeof Symbol&&_0x3b8146(0x22b)==typeof Symbol[_0x3b8146(0x1c6)]?function(_0xfab89){return typeof _0xfab89;}:function(_0x48df05){const _0x4d1d10=_0x3b8146;return _0x48df05&&_0x4d1d10(0x1b9)==typeof Symbol&&_0x48df05['constructor']===Symbol&&_0x48df05!==Symbol[_0x4d1d10(0x1bb)]?_0x4d1d10(0x22b):typeof _0x48df05;},_typeof(_0x47a978);}function toPrimitive(_0x2edcc4,_0xc0c8ec){const _0x4894da=_0x363451;if(_0x4894da(0x15b)!=_typeof(_0x2edcc4)||!_0x2edcc4)return _0x2edcc4;var _0x2ff38b=_0x2edcc4[Symbol[_0x4894da(0x154)]];if(void 0x0!==_0x2ff38b){var _0x1d62ac=_0x2ff38b['call'](_0x2edcc4,_0xc0c8ec||_0x4894da(0x150));if(_0x4894da(0x15b)!=_typeof(_0x1d62ac))return _0x1d62ac;throw new TypeError(_0x4894da(0x15d));}return(_0x4894da(0x144)===_0xc0c8ec?String:Number)(_0x2edcc4);}function _0x5a39(_0x33b50d,_0x53b334){_0x33b50d=_0x33b50d-0x137;const _0x32cc98=_0x32cc();let _0x5a39e4=_0x32cc98[_0x33b50d];return _0x5a39e4;}function toPropertyKey(_0x5c221a){const _0x324e3b=_0x363451;var _0x164da8=toPrimitive(_0x5c221a,_0x324e3b(0x144));return _0x324e3b(0x22b)==_typeof(_0x164da8)?_0x164da8:_0x164da8+'';}function _defineProperty(_0x4543bf,_0x365b62,_0x392ae7){return(_0x365b62=toPropertyKey(_0x365b62))in _0x4543bf?Object['defineProperty'](_0x4543bf,_0x365b62,{'value':_0x392ae7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4543bf[_0x365b62]=_0x392ae7,_0x4543bf;}var LexerTreeProBuilder=class extends _univerjs_engine_formula['LexerTreeBuilder']{constructor(..._0x291431){const _0x1f9015=_0x363451;super(..._0x291431),_defineProperty(this,_0x1f9015(0x18f),![]),_defineProperty(this,_0x1f9015(0x1c0),new Set()),_defineProperty(this,_0x1f9015(0x210),_0x1f9015(0x157)),_defineProperty(this,'_xlfnPrefix',_0x1f9015(0x220)),_defineProperty(this,_0x1f9015(0x1f7),'');}[_0x363451(0x19e)](){const _0x1c78d7=_0x363451;this[_0x1c78d7(0x210)]=_0x1c78d7(0x157),this[_0x1c78d7(0x195)]=_0x1c78d7(0x220);}[_0x363451(0x1ae)](){const _0x432d4e=_0x363451;this[_0x432d4e(0x210)]='',this[_0x432d4e(0x195)]='';}[_0x363451(0x138)](_0x30fdcb,_0x22f8d6){const _0x5c78d5=_0x363451,_0x1eb5fb=this[_0x5c78d5(0x142)](_0x30fdcb,![]);if(!_0x1eb5fb||_0x1eb5fb===_univerjs_engine_formula['ErrorType'][_0x5c78d5(0x168)]||Array[_0x5c78d5(0x16f)](_0x1eb5fb))return null;const _0x4ca682=[];this['_hasNewExcelFunction']=![],this[_0x5c78d5(0x22a)](_0x1eb5fb,_0x4ca682,_0x22f8d6);if(this[_0x5c78d5(0x18f)])return'='+_0x4ca682[_0x5c78d5(0x15c)]('');return null;}[_0x363451(0x22a)](_0x200389,_0x15ebdb,_0xd0437a){const _0x1ef752=_0x363451,_0x17c085=_0x200389[_0x1ef752(0x1b1)](),_0x133d3a=_0x17c085['trim'](),_0x455cad=_0x133d3a[_0x1ef752(0x1c4)](),_0x1327ab=this['_clearFunctionString'](_0x455cad),_0x4fb74f=_0xd0437a(_0x1327ab);let _0x58743b=0x0;if(_0x17c085===_univerjs_engine_formula[_0x1ef752(0x159)])_0x58743b=0x3;else{if(_0x17c085===_univerjs_engine_formula[_0x1ef752(0x1ca)])_0x58743b=0x4;else{if(_0x17c085===_univerjs_engine_formula[_0x1ef752(0x199)])_0x58743b=0x5;else{if(_univerjs_engine_formula[_0x1ef752(0x188)][_0x1ef752(0x20c)](_0x1327ab))_0x15ebdb['push'](''+this['_xlfnPrefix']+_0x133d3a),this[_0x1ef752(0x18f)]=!![];else{if(_0x455cad===_univerjs_engine_formula[_0x1ef752(0x216)])_0x15ebdb[_0x1ef752(0x17a)](''+this['_xlfnPrefix']+_0x133d3a),this[_0x1ef752(0x18f)]=!![],_0x58743b=0x2;else{if(_0x455cad===_univerjs_engine_formula['DEFAULT_TOKEN_LET_FUNCTION_NAME'])_0x15ebdb[_0x1ef752(0x17a)](''+this[_0x1ef752(0x195)]+_0x133d3a),this[_0x1ef752(0x18f)]=!![],_0x58743b=0x1;else{if(_0x455cad===_univerjs_engine_formula['matchToken'][_0x1ef752(0x219)])_0x58743b=0x8;else{if(_univerjs_engine_formula[_0x1ef752(0x190)][_0x1ef752(0x20c)](_0x455cad))_0x58743b=0x7;else{if(_0x455cad===_univerjs_engine_formula[_0x1ef752(0x14a)][_0x1ef752(0x1e1)]){if(this[_0x1ef752(0x1e9)](_0x200389))_0x58743b=0x9;_0x15ebdb[_0x1ef752(0x17a)](_0x17c085);}else _0x15ebdb[_0x1ef752(0x17a)](_0x17c085),_0x58743b=0xa;}}}}}}}}if(_0x4fb74f){if(_0x58743b!==0x2&&_0x58743b!==0x1)_0x58743b=0x6;_0x15ebdb[_0x1ef752(0x17a)]('(');}else{if(_0x58743b===0x9)_0x15ebdb[_0x1ef752(0x17a)]('(');}const _0x1705f0=_0x200389[_0x1ef752(0x1f2)](),_0x17af6e=_0x1705f0['length'];if(_0x58743b===0x2){const _0xb574c1=_0x1705f0[0x0];let _0x40c7d6=0x0;if(_0xb574c1 instanceof _univerjs_engine_formula['LexerNode']){if(_0xb574c1[_0x1ef752(0x1b1)]()===_univerjs_engine_formula[_0x1ef752(0x199)])_0x40c7d6=0x1;}for(let _0x88e126=_0x40c7d6;_0x88e126<_0x17af6e-0x1;_0x88e126++){const _0x3198ab=_0x1705f0[_0x88e126];if(_0x3198ab instanceof _univerjs_engine_formula[_0x1ef752(0x1e8)]){const _0x2b1989=_0x3198ab[_0x1ef752(0x1f2)]()[0x0];if(typeof _0x2b1989===_0x1ef752(0x144)){if(this[_0x1ef752(0x1c0)][_0x1ef752(0x20c)](_0x2b1989))console['error'](_0x1ef752(0x229)+_0x2b1989+'\x22\x20is\x20duplicated.');this[_0x1ef752(0x1c0)][_0x1ef752(0x21c)](_0x2b1989),_0x15ebdb[_0x1ef752(0x17a)](''+this[_0x1ef752(0x210)]+_0x2b1989),this['_hasNewExcelFunction']=!![];}}_0x15ebdb[_0x1ef752(0x17a)](',');}this[_0x1ef752(0x1e3)](_0x1705f0[_0x17af6e-0x1],_0x15ebdb,_0xd0437a);if(_0x40c7d6===0x1)_0x15ebdb['push'](')'),_0x15ebdb[_0x1ef752(0x17a)]('('),this[_0x1ef752(0x22a)](_0xb574c1,_0x15ebdb,_0xd0437a),_0x15ebdb[_0x1ef752(0x17a)](')');else _0x15ebdb[_0x1ef752(0x17a)](')');return;}else{if(_0x58743b===0x1){for(let _0x470db2=0x0;_0x470db2<_0x17af6e-0x1;_0x470db2++){const _0x41e75e=_0x1705f0[_0x470db2];if(_0x41e75e instanceof _univerjs_engine_formula[_0x1ef752(0x1e8)]&&_0x470db2%0x2===0x0){const _0x3fbc8b=_0x41e75e[_0x1ef752(0x1f2)]()[0x0];if(typeof _0x3fbc8b===_0x1ef752(0x144)){if(this['_lambdaFunctionParameterSet'][_0x1ef752(0x20c)](_0x3fbc8b))console[_0x1ef752(0x233)](_0x1ef752(0x1d6)+_0x3fbc8b+'\x22\x20is\x20duplicated.');this[_0x1ef752(0x1c0)][_0x1ef752(0x21c)](_0x3fbc8b),_0x15ebdb['push'](''+this[_0x1ef752(0x210)]+_0x3fbc8b),this['_hasNewExcelFunction']=!![],_0x15ebdb[_0x1ef752(0x17a)](',');continue;}}this[_0x1ef752(0x1e3)](_0x41e75e,_0x15ebdb,_0xd0437a);if(_0x41e75e instanceof _univerjs_engine_formula['LexerNode']){const _0x1e4efd=_0x1705f0[_0x470db2+0x1];if(_0x1e4efd&&_0x1e4efd instanceof _univerjs_engine_formula[_0x1ef752(0x1e8)])_0x15ebdb[_0x1ef752(0x17a)](',');}}this[_0x1ef752(0x1e3)](_0x1705f0[_0x17af6e-0x1],_0x15ebdb,_0xd0437a),_0x15ebdb[_0x1ef752(0x17a)](')');return;}else{if(_0x58743b===0x8){const _0x11827d=_0x1705f0[0x0],_0x258ead=_0x1705f0[0x1];this[_0x1ef752(0x1e3)](_0x11827d,_0x15ebdb,_0xd0437a),_0x15ebdb[_0x1ef752(0x17a)](_0x17c085),this[_0x1ef752(0x1e3)](_0x258ead,_0x15ebdb,_0xd0437a);return;}}}for(let _0x10c844=0x0;_0x10c844<_0x17af6e;_0x10c844++){const _0x349cd6=_0x1705f0[_0x10c844];this[_0x1ef752(0x1e3)](_0x349cd6,_0x15ebdb,_0xd0437a);if(_0x349cd6 instanceof _univerjs_engine_formula[_0x1ef752(0x1e8)]){const _0x1820f1=_0x1705f0[_0x10c844+0x1];if(_0x1820f1&&_0x1820f1 instanceof _univerjs_engine_formula['LexerNode'])_0x15ebdb[_0x1ef752(0x17a)](',');}}if(_0x58743b===0x7)_0x15ebdb[_0x1ef752(0x17a)](_0x17c085);if(_0x4fb74f)_0x15ebdb[_0x1ef752(0x17a)](')');else{if(_0x58743b===0x9)_0x15ebdb[_0x1ef752(0x17a)](')');}}['_handleNewFunctionChild'](_0x1b5d34,_0x3b660e,_0x46e395){const _0x37668e=_0x363451;if(_0x1b5d34 instanceof _univerjs_engine_formula[_0x37668e(0x1e8)])this['_generateNewFunctionString'](_0x1b5d34,_0x3b660e,_0x46e395);else{if(this[_0x37668e(0x1c0)][_0x37668e(0x20c)](_0x1b5d34))_0x3b660e[_0x37668e(0x17a)](''+this[_0x37668e(0x210)]+_0x1b5d34),this[_0x37668e(0x18f)]=!![];else _0x3b660e[_0x37668e(0x17a)](_0x1b5d34);}}[_0x363451(0x1ab)](_0x12e425){const _0x3cc7d5=_0x363451;let _0x13f564=_0x12e425[_0x3cc7d5(0x1be)]();if(!_0x13f564)return _0x13f564;const _0x4f8ea2=_0x13f564[0x0];if(_0x4f8ea2===_univerjs_engine_formula['prefixToken']['AT']||_0x4f8ea2===_univerjs_engine_formula[_0x3cc7d5(0x14a)][_0x3cc7d5(0x1e1)]||_0x4f8ea2===_univerjs_engine_formula[_0x3cc7d5(0x14a)][_0x3cc7d5(0x1bc)])_0x13f564=_0x13f564[_0x3cc7d5(0x141)](0x1);if(!_0x13f564)return _0x13f564;const _0xfb4015=_0x13f564[_0x13f564[_0x3cc7d5(0x224)]-0x1];if(_univerjs_engine_formula[_0x3cc7d5(0x190)]['has'](_0xfb4015))_0x13f564=_0x13f564[_0x3cc7d5(0x141)](0x0,-0x1);return _0x13f564;}[_0x363451(0x1e9)](_0x2591b7){const _0x2e7f9b=_0x363451,_0x418050=_0x2591b7['getChildren']()[0x0];if(!_0x418050||!(_0x418050 instanceof _univerjs_engine_formula[_0x2e7f9b(0x1e8)])||_0x2591b7[_0x2e7f9b(0x1f2)]()[_0x2e7f9b(0x224)]>0x1)return![];const _0x2c5bb2=_0x418050[_0x2e7f9b(0x1f2)](),_0x5e8dc6=_0x2c5bb2[_0x2e7f9b(0x224)];if(_0x5e8dc6===0x1)return![];for(let _0x2b046a=0x0;_0x2b046a<_0x5e8dc6;_0x2b046a++){const _0x28b7d3=_0x2c5bb2[_0x2b046a];if(!(_0x28b7d3 instanceof _univerjs_engine_formula[_0x2e7f9b(0x1e8)])&&_univerjs_engine_formula[_0x2e7f9b(0x1cb)][_0x2e7f9b(0x20c)](_0x28b7d3))return!![];}return![];}['getFormulaExprTree'](_0x486717,_0x51ff78,_0x51db27,_0x545a69,_0x3e4953){const _0x1ef6dd=_0x363451,_0x4308a6=this[_0x1ef6dd(0x142)](_0x486717,![]);if(!_0x4308a6||_0x4308a6===_univerjs_engine_formula[_0x1ef6dd(0x206)][_0x1ef6dd(0x168)]||Array[_0x1ef6dd(0x16f)](_0x4308a6))return null;this['_clearPrefix'](),this[_0x1ef6dd(0x1f7)]=_0x51ff78;const _0x45291e=this['_generateExprTree'](_0x4308a6,_0x51db27,_0x545a69,_0x3e4953);return this[_0x1ef6dd(0x1f7)]='',this[_0x1ef6dd(0x19e)](),_0x45291e;}[_0x363451(0x1c1)](_0x2e53d6,_0x25d1e6,_0x21ffec,_0x5305a8){const _0x5895e4=_0x363451,_0x44f7eb={'value':'','children':[],'startIndex':0x0};let _0x30abb9=_0x2e53d6;if(_0x30abb9 instanceof _univerjs_engine_formula['LexerNode']&&(_0x30abb9[_0x5895e4(0x1b1)]()===_univerjs_engine_formula['DEFAULT_TOKEN_TYPE_ROOT']||_0x30abb9['getToken']()===_univerjs_engine_formula['DEFAULT_TOKEN_TYPE_PARAMETER'])&&_0x30abb9[_0x5895e4(0x1f2)]()['length']===0x1)_0x30abb9=_0x30abb9[_0x5895e4(0x1f2)]()[0x0];if(!(_0x30abb9 instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)]))return this[_0x5895e4(0x193)](_0x30abb9,_0x21ffec,_0x5305a8);const _0x21e644=_0x30abb9['getChildren'](),_0x5c90b0=_0x21e644[_0x5895e4(0x224)],_0x4df234=[];this[_0x5895e4(0x22a)](_0x30abb9,_0x4df234,_0x25d1e6),_0x44f7eb['value']=_0x4df234[_0x5895e4(0x15c)](''),_0x44f7eb[_0x5895e4(0x204)]=_0x30abb9[_0x5895e4(0x22f)]();const _0x428248=this[_0x5895e4(0x165)](_0x30abb9);if(_0x428248===0x2){const _0x27c4eb=_0x21e644[0x0];if(_0x27c4eb instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)]){if(_0x27c4eb['getToken']()['trim']()!==_univerjs_engine_formula[_0x5895e4(0x199)])return _0x44f7eb;this[_0x5895e4(0x181)](_0x27c4eb,_0x44f7eb,_0x25d1e6,_0x21ffec,_0x5305a8);}return _0x44f7eb;}else{if(_0x428248===0x1){for(let _0x4570ad=0x0;_0x4570ad<_0x5c90b0-0x1;_0x4570ad++){const _0x6deb7f=_0x21e644[_0x4570ad];if(_0x6deb7f instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)]&&_0x4570ad%0x2===0x1){const _0xe7f75b=_0x6deb7f[_0x5895e4(0x1f2)]();if(_0xe7f75b['length']===0x1&&!(_0xe7f75b[0x0]instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)]))continue;const _0x59f0ea=this['_generateExprTree'](_0x6deb7f,_0x25d1e6,_0x21ffec,_0x5305a8);_0x59f0ea&&_0x44f7eb[_0x5895e4(0x21e)][_0x5895e4(0x17a)](_0x59f0ea);}}return _0x44f7eb;}else{if(_0x428248===0x8){const _0x2885cf=_0x21e644[0x0];if(_0x2885cf instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)]){const _0x48c34a=_0x2885cf[_0x5895e4(0x1f2)]()[0x0];if(_0x48c34a instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)])_0x44f7eb[_0x5895e4(0x204)]=_0x48c34a[_0x5895e4(0x22f)]();}if(this[_0x5895e4(0x162)](_0x30abb9))return _0x44f7eb;}else{if(_0x428248===0x7){const _0x122007=_0x21e644[0x0];if(_0x122007 instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)]){const _0x4f4838=_0x122007[_0x5895e4(0x1f2)]()[0x0];if(_0x4f4838 instanceof _univerjs_engine_formula[_0x5895e4(0x1e8)])_0x44f7eb[_0x5895e4(0x204)]=_0x4f4838[_0x5895e4(0x22f)]();}}}}}return this[_0x5895e4(0x214)](_0x21e644,_0x428248,_0x44f7eb,_0x25d1e6,_0x21ffec,_0x5305a8),_0x44f7eb;}['_handleChildrenForExprTree'](_0x594f48,_0x5c13e3,_0x58e3e2,_0x22dac9,_0x2c2a55,_0x3d2760){const _0x108a99=_0x363451;for(let _0x32a3db=0x0;_0x32a3db<_0x594f48[_0x108a99(0x224)];_0x32a3db++){let _0xd307b5=_0x594f48[_0x32a3db];if(!(_0xd307b5 instanceof _univerjs_engine_formula['LexerNode'])){const _0x56c136=this[_0x108a99(0x193)](_0xd307b5,_0x2c2a55,_0x3d2760);_0x56c136&&_0x58e3e2[_0x108a99(0x21e)][_0x108a99(0x17a)](_0x56c136);continue;}const _0x33071c=_0xd307b5[_0x108a99(0x1f2)]();if(_0x33071c['length']===0x1&&!(_0x33071c[0x0]instanceof _univerjs_engine_formula[_0x108a99(0x1e8)])){const _0x3b340d=_0x33071c[0x0];if(!_0x2c2a55(this['_currentUnitId'],_0x3b340d)&&!this[_0x108a99(0x1b0)](_0x3b340d,_0x3d2760)&&!(0x0,_univerjs_engine_formula['isReferenceString'])(_0x3b340d))continue;}if(_0x5c13e3===0x8){const _0x5e9afe=_0x33071c[0x0];if(_0x5e9afe instanceof _univerjs_engine_formula[_0x108a99(0x1e8)]){if((0x0,_univerjs_engine_formula['isReferenceString'])(_0x5e9afe[_0x108a99(0x1b1)]()[_0x108a99(0x1be)]()))continue;_0xd307b5=_0x5e9afe;}}const _0x121160=this[_0x108a99(0x1c1)](_0xd307b5,_0x22dac9,_0x2c2a55,_0x3d2760);_0x121160&&_0x58e3e2[_0x108a99(0x21e)]['push'](_0x121160);}}[_0x363451(0x162)](_0x1c9ca3){const _0x441634=_0x363451,_0x25aaee=_0x1c9ca3[_0x441634(0x1f2)]();if(_0x25aaee[_0x441634(0x224)]<0x2)return![];const _0x39fc0e=_0x25aaee[0x0],_0x2e086a=_0x25aaee[0x1];if(!(_0x39fc0e instanceof _univerjs_engine_formula[_0x441634(0x1e8)])||!(_0x2e086a instanceof _univerjs_engine_formula[_0x441634(0x1e8)]))return![];const _0x1fabf2=_0x39fc0e['getChildren']()[0x0],_0x42d568=_0x2e086a['getChildren']()[0x0];if(!(_0x1fabf2 instanceof _univerjs_engine_formula[_0x441634(0x1e8)])||!(_0x42d568 instanceof _univerjs_engine_formula[_0x441634(0x1e8)]))return![];const _0x670dbe=_0x1fabf2[_0x441634(0x1b1)]()[_0x441634(0x1be)](),_0x5db11d=_0x42d568[_0x441634(0x1b1)]()[_0x441634(0x1be)]();if((0x0,_univerjs_engine_formula[_0x441634(0x185)])(''+_0x670dbe+_univerjs_engine_formula['matchToken'][_0x441634(0x219)]+_0x5db11d))return!![];return![];}[_0x363451(0x193)](_0x882df,_0xc312f7,_0x33db4c){const _0x1204d2=_0x363451,_0x234688=_0x882df[_0x1204d2(0x1be)]();if(_0x234688[_0x1204d2(0x232)]('{')&&_0x234688['endsWith']('}')||_0xc312f7(this[_0x1204d2(0x1f7)],_0x234688)||this[_0x1204d2(0x1b0)](_0x234688,_0x33db4c)||(0x0,_univerjs_engine_formula[_0x1204d2(0x185)])(_0x234688))return{'value':_0x234688,'children':[],'startIndex':-0x1};return null;}[_0x363451(0x1b0)](_0x13f1bb,_0x37111b){const _0x3c3084=_0x363451,{tableName:_0x38d3e6}=(0x0,_univerjs_engine_formula[_0x3c3084(0x1db)])(_0x13f1bb);if(_0x37111b(this[_0x3c3084(0x1f7)],_0x38d3e6))return _0x38d3e6;return null;}[_0x363451(0x181)](_0x10b315,_0x167636,_0x50aaa2,_0x5ca19b,_0x394cae){const _0x14fc2b=_0x363451,_0x3b552f=_0x10b315[_0x14fc2b(0x1f2)]();for(let _0x34e48e=0x0;_0x34e48e<_0x3b552f[_0x14fc2b(0x224)];_0x34e48e++){const _0x3613b3=_0x3b552f[_0x34e48e];if(!(_0x3613b3 instanceof _univerjs_engine_formula[_0x14fc2b(0x1e8)]))continue;const _0x1faf67=_0x3613b3[_0x14fc2b(0x1f2)]();if(_0x1faf67[_0x14fc2b(0x224)]===0x1&&!(_0x1faf67[0x0]instanceof _univerjs_engine_formula[_0x14fc2b(0x1e8)]))continue;const _0x25e325=this[_0x14fc2b(0x1c1)](_0x3613b3,_0x50aaa2,_0x5ca19b,_0x394cae);_0x25e325&&_0x167636[_0x14fc2b(0x21e)][_0x14fc2b(0x17a)](_0x25e325);}}[_0x363451(0x165)](_0x3887a0){const _0x55df70=_0x363451,_0x60e42f=_0x3887a0[_0x55df70(0x1b1)](),_0x32d8a5=_0x60e42f[_0x55df70(0x1be)]()[_0x55df70(0x1c4)]();let _0x456252=0x0;if(_0x60e42f===_univerjs_engine_formula['DEFAULT_TOKEN_TYPE_ROOT'])_0x456252=0x3;else{if(_0x60e42f===_univerjs_engine_formula[_0x55df70(0x1ca)])_0x456252=0x4;else{if(_0x60e42f===_univerjs_engine_formula[_0x55df70(0x199)])_0x456252=0x5;else{if(_0x32d8a5===_univerjs_engine_formula[_0x55df70(0x216)])_0x456252=0x2;else{if(_0x32d8a5===_univerjs_engine_formula[_0x55df70(0x22e)])_0x456252=0x1;else{if(_0x32d8a5===_univerjs_engine_formula[_0x55df70(0x1d4)][_0x55df70(0x219)])_0x456252=0x8;else{if(_univerjs_engine_formula[_0x55df70(0x190)][_0x55df70(0x20c)](_0x32d8a5))_0x456252=0x7;else{if(_0x32d8a5===_univerjs_engine_formula[_0x55df70(0x14a)][_0x55df70(0x1e1)]){if(this[_0x55df70(0x1e9)](_0x3887a0))_0x456252=0x9;}else _0x456252=0xa;}}}}}}}return _0x456252;}},name='@univerjs-pro/engine-formula',version='0.22.0',FormulaDependencyProGenerator=class extends _univerjs_engine_formula['FormulaDependencyGenerator']{constructor(..._0x476c85){const _0x21c3f4=_0x363451;super(..._0x476c85),_defineProperty(this,_0x21c3f4(0x1cc),new Map());}[_0x363451(0x1a8)](){const _0x48be7b=_0x363451;super[_0x48be7b(0x1a8)](),this[_0x48be7b(0x1cc)][_0x48be7b(0x1a6)]();}async[_0x363451(0x228)](_0x51969d=![]){const _0x251ce0=_0x363451;this[_0x251ce0(0x183)]();const _0xb38698=this['_currentConfigService']['getFormulaData'](),_0x8f15d3=this['_otherFormulaManagerService'][_0x251ce0(0x19d)](),_0xc2e8bd=this[_0x251ce0(0x184)][_0x251ce0(0x158)]();if(_0xc2e8bd!=null)Object[_0x251ce0(0x17e)](_0xc2e8bd)[_0x251ce0(0x1a4)](_0x12f7c1=>{const _0x4f1a04=_0x251ce0;if(_0x12f7c1==null)return;Object[_0x4f1a04(0x17e)](_0xc2e8bd[_0x12f7c1])['forEach'](_0x41ecbe=>{const _0x1b15c8=_0x4f1a04;if(_0x41ecbe==null)return;this['_dependencyManagerService'][_0x1b15c8(0x151)](_0x12f7c1,_0x41ecbe),this[_0x1b15c8(0x1fc)]['clearFeatureFormulaDependency'](_0x12f7c1,_0x41ecbe),this[_0x1b15c8(0x1fc)][_0x1b15c8(0x1ba)](_0x12f7c1,_0x41ecbe);});});const _0x2c0f9e=this[_0x251ce0(0x184)][_0x251ce0(0x212)]();await this[_0x251ce0(0x164)](_0xb38698,_0x8f15d3,_0x2c0f9e),this['_dependencyManagerService'][_0x251ce0(0x1f9)]();const _0x15198c=this['_getUpdateTreeListAndMakeDependency'](),_0xd02980=this['_calculateRunList'](_0x15198c);if(this['_checkIsCycleDependency'](_0xd02980))this['_runtimeService']['enableCycleDependency']();if(_0x51969d)this['_runtimeService'][_0x251ce0(0x1e4)](this[_0x251ce0(0x16d)](Array['from'](this[_0x251ce0(0x1cc)][_0x251ce0(0x222)]())));return this[_0x251ce0(0x1cc)][_0x251ce0(0x1a6)](),this[_0x251ce0(0x200)]['clear'](),this[_0x251ce0(0x1fc)][_0x251ce0(0x13e)](),this[_0x251ce0(0x186)]['clearArrayObjectCache'](),Promise[_0x251ce0(0x17d)](_0xd02980);}[_0x363451(0x20e)](_0x283259,_0x5c9acd){const _0x4ac3ef=_0x363451,_0x37add4=0x0,_0x597b7b=0x1,_0x265ee0=0x2,_0xd01849=[_0x283259];while(_0xd01849['length']>0x0){const _0x762259=_0xd01849[_0xd01849[_0x4ac3ef(0x224)]-0x1];if((_0x5c9acd[_0x4ac3ef(0x166)](_0x762259)||_0x37add4)===_0x37add4){_0x5c9acd[_0x4ac3ef(0x1b2)](_0x762259,_0x597b7b);const _0x2c15af=this[_0x4ac3ef(0x1cc)][_0x4ac3ef(0x166)](_0x762259);if(_0x2c15af==null){_0x5c9acd['set'](_0x762259,_0x265ee0),_0xd01849[_0x4ac3ef(0x1a0)]();continue;}const _0x27d7a5=this[_0x4ac3ef(0x1fc)]['searchDependency'](_0x2c15af[_0x4ac3ef(0x1f1)]());for(const _0x2be07d of _0x27d7a5){const _0x1ab296=_0x5c9acd['get'](_0x2be07d)||_0x37add4;if(_0x1ab296===_0x597b7b)return!![];else{if(_0x1ab296===_0x37add4)_0xd01849['push'](_0x2be07d);}}}else _0x5c9acd['set'](_0x762259,_0x265ee0),_0xd01849['pop']();}return![];}['_checkIsCycleDependency'](_0x1c6732){const _0x447af2=_0x363451,_0x9f3bf0=new Map();for(const _0x218b8f of _0x1c6732)if(!_0x9f3bf0['has'](_0x218b8f['treeId'])){if(this[_0x447af2(0x20e)](_0x218b8f[_0x447af2(0x1dd)],_0x9f3bf0))return!![];}return _0x9f3bf0[_0x447af2(0x1a6)](),![];}[_0x363451(0x19b)](_0x259be5,_0x10e4c9,_0x5437c6){const _0x904b84=_0x363451,{unitId:_0x19391b,subUnitId:_0x568114,dependencyRanges:_0x96e2a8,getDirtyData:_0x319f43}=_0x5437c6,_0x294ae3=new _univerjs_engine_formula[(_0x904b84(0x1d3))](_0x10e4c9||(0x0,_univerjs_engine_formula[_0x904b84(0x1ec)])(this['_dependencyManagerService']));_0x294ae3[_0x904b84(0x1bf)]=_0x19391b,_0x294ae3['subUnitId']=_0x568114,_0x294ae3[_0x904b84(0x1cd)]=_0x96e2a8,_0x294ae3[_0x904b84(0x1c9)]=_0x319f43;const _0x2b15ca=_0x319f43(this[_0x904b84(0x184)][_0x904b84(0x1c9)](),this[_0x904b84(0x186)][_0x904b84(0x18d)]());_0x294ae3[_0x904b84(0x235)]=this['_convertDirtyRangesToUnitRange'](_0x2b15ca[_0x904b84(0x148)]),_0x294ae3[_0x904b84(0x213)]=_0x259be5,_0x294ae3[_0x904b84(0x137)]=_univerjs_engine_formula['FormulaDependencyTreeType'][_0x904b84(0x14d)],this['_dependencyManagerService'][_0x904b84(0x19a)](_0x19391b,_0x568114,_0x259be5,_0x294ae3),this['_dependencyTreeCache'][_0x904b84(0x1b2)](_0x294ae3['treeId'],_0x294ae3);if(this[_0x904b84(0x1fc)]['getFeatureFormulaDependency'](_0x5437c6['unitId'],_0x5437c6[_0x904b84(0x19f)],_0x259be5))_0x294ae3['isCache']=!![];return _0x294ae3;}['_registerOtherFormulas'](_0x4a01ae,_0x21734f,_0x101c9d){const _0xf20417=_0x363451;for(const _0x18f7cb of _0x21734f){const _0x38913c=_0x4a01ae[_0x18f7cb];if(_0x38913c==null)continue;const _0x168db0=Object[_0xf20417(0x17e)](_0x38913c);for(const _0x4bc9ed of _0x168db0){const _0x34877e=_0x38913c[_0x4bc9ed];if(_0x34877e==null)continue;const {rowCount:rowCount=Infinity,columnCount:columnCount=Infinity}=this['_currentConfigService'][_0xf20417(0x1d8)](_0x18f7cb,_0x4bc9ed)||{},_0x25a6d9=Object['keys'](_0x34877e);for(const _0x429617 of _0x25a6d9){var _0x5ce058;const _0x526e99=this[_0xf20417(0x1fc)][_0xf20417(0x140)](_0x429617),{f:_0x4b4bde,ranges:_0x45cf49}=_0x34877e[_0x429617];let _0x128177=![];if(_0x526e99)_0x128177=!![];const {firstRow:_0x5817ad,firstColumn:_0x3ddeb0}=this[_0xf20417(0x1c3)](_0x45cf49),_0x3b90ca=this[_0xf20417(0x1fc)][_0xf20417(0x18c)](_0x18f7cb,_0x4bc9ed,_0x429617),_0x1bbb21=new _univerjs_engine_formula[(_0xf20417(0x1d3))]((_0x5ce058=_0x3b90ca===null||_0x3b90ca===void 0x0?void 0x0:_0x3b90ca[_0xf20417(0x1d9)](0x0,0x0))!==null&&_0x5ce058!==void 0x0?_0x5ce058:(0x0,_univerjs_engine_formula[_0xf20417(0x1ec)])(this['_dependencyManagerService']));for(let _0x5b8027=0x0;_0x5b8027<_0x45cf49[_0xf20417(0x224)];_0x5b8027++){const _0x58f518=_0x45cf49[_0x5b8027],{startRow:_0x36718e,startColumn:_0x21c531}=_0x58f518;let {endRow:_0x4b08dd,endColumn:_0x18426e}=_0x58f518;_0x4b08dd=Math['min'](_0x4b08dd,rowCount-0x1),_0x18426e=Math[_0xf20417(0x17f)](_0x18426e,columnCount-0x1);for(let _0x89faa8=_0x36718e;_0x89faa8<=_0x4b08dd;_0x89faa8++)for(let _0x533f10=_0x21c531;_0x533f10<=_0x18426e;_0x533f10++){const _0x4ebf2d=_0x533f10-_0x3ddeb0,_0x2d870c=_0x89faa8-_0x5817ad;if(_0x4ebf2d===0x0&&_0x2d870c===0x0){_0x1bbb21[_0xf20417(0x182)]=_0x4b4bde,_0x1bbb21[_0xf20417(0x1bf)]=_0x18f7cb,_0x1bbb21[_0xf20417(0x19f)]=_0x4bc9ed,_0x1bbb21[_0xf20417(0x1d1)]=_0x429617,_0x1bbb21[_0xf20417(0x137)]=_univerjs_engine_formula[_0xf20417(0x201)][_0xf20417(0x1ee)],_0x1bbb21['isCache']=_0x128177,_0x101c9d[_0xf20417(0x17a)](_0x1bbb21),this['_dependencyTreeCache'][_0xf20417(0x1b2)](_0x1bbb21[_0xf20417(0x1dd)],_0x1bbb21),this[_0xf20417(0x1fc)][_0xf20417(0x1a2)](_0x18f7cb,_0x4bc9ed,_0x429617,_0x1bbb21),this[_0xf20417(0x1fc)][_0xf20417(0x1e0)](_0x1bbb21);continue;}const _0xdc6bc1=new _univerjs_engine_formula[(_0xf20417(0x1e5))]();_0xdc6bc1[_0xf20417(0x1dd)]=(_0x3b90ca===null||_0x3b90ca===void 0x0?void 0x0:_0x3b90ca[_0xf20417(0x1d9)](_0x4ebf2d,_0x2d870c))||(0x0,_univerjs_engine_formula[_0xf20417(0x1ec)])(this[_0xf20417(0x1fc)]),_0xdc6bc1[_0xf20417(0x1a3)]=_0x1bbb21,_0xdc6bc1[_0xf20417(0x238)]=_0x4ebf2d,_0xdc6bc1[_0xf20417(0x1ce)]=_0x2d870c,_0xdc6bc1['isCache']=_0x128177,_0xdc6bc1[_0xf20417(0x137)]=_univerjs_engine_formula[_0xf20417(0x201)][_0xf20417(0x1ee)],this['_dependencyManagerService'][_0xf20417(0x1a2)](_0x18f7cb,_0x4bc9ed,_0x429617,_0xdc6bc1),this['_dependencyManagerService'][_0xf20417(0x1e0)](_0xdc6bc1),_0x101c9d[_0xf20417(0x17a)](_0xdc6bc1),this[_0xf20417(0x1cc)][_0xf20417(0x1b2)](_0xdc6bc1[_0xf20417(0x1dd)],_0xdc6bc1);}}this['_dependencyManagerService']['addOtherFormulaDependencyMainData'](_0x429617);}}}}[_0x363451(0x16b)](_0x179616,_0x5a9d13,_0x1ab337,_0x541d39){const _0x3623ee=_0x363451;for(const _0x37a3d9 of _0x179616){const _0x47df53=_0x5a9d13[_0x37a3d9];if(_0x47df53==null)continue;const _0x21b810=Object[_0x3623ee(0x17e)](_0x47df53);for(const _0x54c442 of _0x21b810){const _0x2ef92a=new _univerjs_core[(_0x3623ee(0x1fa))](_0x47df53[_0x54c442]||{}),_0x2fc0b9=new Map();_0x2ef92a[_0x3623ee(0x203)]((_0xbf1b3a,_0xc90125,_0x51e40f)=>{const _0x2462c2=_0x3623ee;if(_0x51e40f==null)return!![];const {x:x=0x0,y:y=0x0,si:_0x5eb5fe}=_0x51e40f;if(!(x===0x0&&y===0x0&&_0x5eb5fe!=null))return!![];const _0x1a2e49=this[_0x2462c2(0x173)](_0x37a3d9,_0x54c442,_0xbf1b3a,_0xc90125,_0x1ab337,_0x51e40f),_0x5ea188=this[_0x2462c2(0x1fc)]['getFormulaDependency'](_0x37a3d9,_0x54c442,_0xbf1b3a,_0xc90125);if(_0x5ea188!=null)_0x1a2e49['treeId']=_0x5ea188;else this[_0x2462c2(0x1fc)][_0x2462c2(0x14e)](_0x37a3d9,_0x54c442,_0xbf1b3a,_0xc90125,_0x1a2e49),this[_0x2462c2(0x1fc)][_0x2462c2(0x1e0)](_0x1a2e49);_0x2fc0b9[_0x2462c2(0x1b2)](_0x5eb5fe,_0x1a2e49),_0x541d39['push'](_0x1a2e49),this[_0x2462c2(0x1cc)][_0x2462c2(0x1b2)](_0x1a2e49[_0x2462c2(0x1dd)],_0x1a2e49);}),_0x2ef92a[_0x3623ee(0x203)]((_0x2eba92,_0x1e556d,_0x42de74)=>{const _0x33f42a=_0x3623ee;if(_0x42de74==null)return!![];const {x:x=0x0,y:y=0x0,si:_0xd976fc}=_0x42de74;if(x===0x0&&y===0x0&&_0xd976fc!=null)return!![];let _0x172a48;if(_0xd976fc&&_0x2fc0b9[_0x33f42a(0x20c)](_0xd976fc)){const _0x3e6dc1=_0x2fc0b9['get'](_0xd976fc);_0x172a48=this[_0x33f42a(0x1ea)](_0x3e6dc1,_0x42de74);}else _0x172a48=this['_createFDtree'](_0x37a3d9,_0x54c442,_0x2eba92,_0x1e556d,_0x1ab337,_0x42de74);const _0x4a3253=this[_0x33f42a(0x1fc)][_0x33f42a(0x191)](_0x37a3d9,_0x54c442,_0x2eba92,_0x1e556d);if(_0x4a3253!=null)_0x172a48['treeId']=_0x4a3253;else this[_0x33f42a(0x1fc)][_0x33f42a(0x14e)](_0x37a3d9,_0x54c442,_0x2eba92,_0x1e556d,_0x172a48),this[_0x33f42a(0x1fc)][_0x33f42a(0x1e0)](_0x172a48);_0x541d39[_0x33f42a(0x17a)](_0x172a48),this[_0x33f42a(0x1cc)][_0x33f42a(0x1b2)](_0x172a48[_0x33f42a(0x1dd)],_0x172a48);}),_0x2fc0b9[_0x3623ee(0x1a6)]();}}}['_createFDtree'](_0x3d73b1,_0x5adb7f,_0x1eea59,_0x2ac967,_0x575a8a,_0xead09){const _0x435a0d=_0x363451,{f:_0x164594,x:x=0x0,y:y=0x0}=_0xead09,_0x417ca=new _univerjs_engine_formula[(_0x435a0d(0x1d3))]((0x0,_univerjs_engine_formula['generateRandomDependencyTreeId'])(this['_dependencyManagerService'])),_0x547681=_0x575a8a[_0x3d73b1][_0x5adb7f];return _0x417ca[_0x435a0d(0x182)]=_0x164594,_0x417ca['unitId']=_0x3d73b1,_0x417ca[_0x435a0d(0x19f)]=_0x5adb7f,_0x417ca[_0x435a0d(0x179)]=_0x1eea59,_0x417ca[_0x435a0d(0x1f3)]=_0x2ac967,_0x417ca['rowCount']=_0x547681[_0x435a0d(0x1f4)],_0x417ca[_0x435a0d(0x1e2)]=_0x547681['columnCount'],_0x417ca;}['_getUpdateTreeListAndMakeDependency'](){const _0x3ca93c=_0x363451,_0x15a74b=[],_0x11f1d7=new Set(),_0xad11f4=this[_0x3ca93c(0x184)]['isForceCalculate'](),_0x109d15=this[_0x3ca93c(0x184)][_0x3ca93c(0x1da)](),_0x330c93=this[_0x3ca93c(0x1fc)][_0x3ca93c(0x1b7)](_0x109d15),_0x5e7599=this[_0x3ca93c(0x200)][_0x3ca93c(0x237)](_0x109d15);for(const _0x19e509 of _0x5e7599)_0x330c93[_0x3ca93c(0x21c)](_0x19e509);for(const [_0x511551,_0x41050b]of this[_0x3ca93c(0x1cc)])(_0xad11f4||_0x41050b[_0x3ca93c(0x16e)]||_0x41050b[_0x3ca93c(0x187)](this[_0x3ca93c(0x184)][_0x3ca93c(0x163)]())||_0x330c93[_0x3ca93c(0x20c)](_0x511551)&&!_0x41050b[_0x3ca93c(0x1c7)](this[_0x3ca93c(0x184)][_0x3ca93c(0x153)]()))&&!_0x11f1d7['has'](_0x511551)&&(_0x15a74b[_0x3ca93c(0x17a)](_0x41050b),_0x11f1d7[_0x3ca93c(0x21c)](_0x511551));for(const [_0x503b6f,_0x407323]of this[_0x3ca93c(0x1cc)]){if(_0x407323[_0x3ca93c(0x20a)])continue;_0x407323[_0x3ca93c(0x1cd)][_0x3ca93c(0x224)]=0x0;}return _0x15a74b;}['_getTreeById'](_0x1b8dab){const _0x286a44=_0x363451;return this[_0x286a44(0x1cc)][_0x286a44(0x166)](_0x1b8dab);}[_0x363451(0x146)](_0x31275a){const _0x1b5158=_0x363451;return(0x0,_univerjs_engine_formula[_0x1b5158(0x1d0)])(_0x31275a[_0x1b5158(0x1bf)],_0x31275a[_0x1b5158(0x182)],this['_lexer'],this[_0x1b5158(0x21b)],this[_0x1b5158(0x184)]);}*[_0x363451(0x197)](_0x33d34e,_0x39aee4){const _0x2e0db3=_0x363451,_0x3fad8a=_0x33d34e,_0x16cf91=new Set();while(_0x3fad8a[_0x2e0db3(0x224)]>0x0){const _0x13fedf=_0x3fad8a[_0x2e0db3(0x1a0)]();_0x16cf91[_0x2e0db3(0x1a6)]();if(_0x13fedf===void 0x0||_0x13fedf['isSkip']())continue;if(_0x13fedf[_0x2e0db3(0x223)]()){yield _0x13fedf,_0x13fedf['setSkip'](),_0x39aee4[_0x2e0db3(0x21c)](_0x13fedf[_0x2e0db3(0x1dd)]);continue;}const _0x25d50b=this[_0x2e0db3(0x1fc)][_0x2e0db3(0x1b7)](_0x13fedf[_0x2e0db3(0x1f1)](),_0x39aee4),_0x1b5497=this[_0x2e0db3(0x200)][_0x2e0db3(0x237)](_0x13fedf[_0x2e0db3(0x1f1)](),_0x39aee4);for(const _0x3157b5 of _0x1b5497)_0x25d50b['add'](_0x3157b5);for(const _0x34f396 of _0x25d50b){const _0x23c134=this[_0x2e0db3(0x1cc)][_0x2e0db3(0x166)](_0x34f396);if(!_0x23c134){console['error']('Dependency\x20tree\x20not\x20found\x20for\x20treeId:',_0x34f396);continue;}if(_0x23c134[_0x2e0db3(0x223)]()||_0x13fedf[_0x2e0db3(0x1c2)]())continue;_0x16cf91[_0x2e0db3(0x21c)](_0x23c134);}_0x25d50b['clear']();if(_0x16cf91[_0x2e0db3(0x175)]===0x0)yield _0x13fedf,_0x13fedf['setSkip'](),_0x39aee4[_0x2e0db3(0x21c)](_0x13fedf[_0x2e0db3(0x1dd)]);else{_0x13fedf['setAdded'](),_0x3fad8a[_0x2e0db3(0x17a)](_0x13fedf);for(const _0x449e57 of _0x16cf91)_0x3fad8a['push'](_0x449e57);}}_0x3fad8a[_0x2e0db3(0x224)]=0x0,_0x16cf91[_0x2e0db3(0x1a6)]();}['_calculateRunList'](_0x45b36a){const _0x40a8ee=_0x363451,_0x48e75d=[],_0x502e45=new Set();for(const _0x124417 of this['_traverse'](_0x45b36a,_0x502e45))_0x48e75d[_0x40a8ee(0x17a)](_0x124417);return _0x48e75d;}async[_0x363451(0x1d2)](){const _0x423437=_0x363451;return await this['_initializeGenerateTreeList'](),Array[_0x423437(0x145)](this[_0x423437(0x1cc)][_0x423437(0x222)]());}['_getDependencyTreeParenIds'](_0x2613a7){const _0x18619a=_0x363451;return this[_0x18619a(0x1fc)][_0x18619a(0x1b7)](_0x2613a7[_0x18619a(0x1f1)]());}['_getDependencyTreeChildrenIds'](_0x52c247){const _0x4098ea=_0x363451,_0x1bfff4=new Set(),_0x3f2874=_0x52c247[_0x4098ea(0x1cd)];for(const [_0x973469,_0x168a79]of this[_0x4098ea(0x1cc)])for(const _0x21bfc6 of _0x3f2874){const _0xc36937=_0x21bfc6[_0x4098ea(0x1bf)],_0x4990e8=_0x21bfc6['sheetId'];if(_0x168a79[_0x4098ea(0x1bf)]!==_0xc36937||_0x168a79[_0x4098ea(0x19f)]!==_0x4990e8)continue;const _0x3f205d=_0x21bfc6[_0x4098ea(0x1e7)];if(_0x168a79[_0x4098ea(0x1a7)](_0x3f205d)){_0x1bfff4[_0x4098ea(0x21c)](_0x973469);break;}}return _0x1bfff4;}[_0x363451(0x226)](){const _0xc7851b=_0x363451;this[_0xc7851b(0x1fc)]['openKdTree']();}['_endFormulaDependencyTreeModel'](){const _0x456389=_0x363451;this[_0x456389(0x21a)][_0x456389(0x1a6)](),this[_0x456389(0x1cc)]['clear'](),this[_0x456389(0x1fc)][_0x456389(0x13e)]();}},CalculateFormulaProService=class extends _univerjs_engine_formula['CalculateFormulaService']{async['_apply'](_0x40bacd=![]){const _0x2626d5=_0x363451;if(_0x40bacd)this[_0x2626d5(0x186)]['setFormulaExecuteStage'](_univerjs_engine_formula[_0x2626d5(0x1bd)][_0x2626d5(0x180)]);else this[_0x2626d5(0x186)][_0x2626d5(0x15f)](_univerjs_engine_formula['FormulaExecuteStageType'][_0x2626d5(0x211)]);this[_0x2626d5(0x1f6)][_0x2626d5(0x1cf)](this[_0x2626d5(0x186)][_0x2626d5(0x1eb)]());const _0x52cd70=await this[_0x2626d5(0x209)][_0x2626d5(0x228)](this[_0x2626d5(0x1b5)]),_0x496ad5=this[_0x2626d5(0x167)];_0x40bacd?(this[_0x2626d5(0x186)][_0x2626d5(0x15f)](_univerjs_engine_formula[_0x2626d5(0x1bd)][_0x2626d5(0x13d)]),this[_0x2626d5(0x186)]['setTotalArrayFormulasToCalculate'](_0x52cd70[_0x2626d5(0x224)])):(this[_0x2626d5(0x186)]['setFormulaExecuteStage'](_univerjs_engine_formula[_0x2626d5(0x1bd)][_0x2626d5(0x172)]),this[_0x2626d5(0x186)][_0x2626d5(0x1fd)](_0x52cd70[_0x2626d5(0x224)]));this['_executionInProgressListener$'][_0x2626d5(0x1cf)](this[_0x2626d5(0x186)]['getRuntimeState']());let _0x40bd6e=[];const _0x89efda=this[_0x2626d5(0x149)][_0x2626d5(0x1ef)](_univerjs_engine_formula['ENGINE_FORMULA_PLUGIN_CONFIG_KEY']),_0x27e563=(_0x89efda===null||_0x89efda===void 0x0?void 0x0:_0x89efda[_0x2626d5(0x218)])||_univerjs_engine_formula['DEFAULT_INTERVAL_COUNT'];let _0x10b6da=0x0;const _0x51902a=_0x52cd70['length'];while(_0x52cd70[_0x2626d5(0x224)]>0x0){const _0x15338b=_0x52cd70['pop'](),_0x58a30=(0x0,_univerjs_engine_formula[_0x2626d5(0x1d0)])(_0x15338b[_0x2626d5(0x1bf)],_0x15338b['formula'],this[_0x2626d5(0x1b8)],this[_0x2626d5(0x21b)],this[_0x2626d5(0x184)]),_0x20ea60={'node':_0x58a30,'refOffsetX':_0x15338b[_0x2626d5(0x238)],'refOffsetY':_0x15338b[_0x2626d5(0x1ce)]},_0x46734a=_0x15338b[_0x2626d5(0x1c9)];if(_0x10b6da%_0x27e563===0x0){await new Promise(_0x2cdabd=>{const _0x50ec26=_0x2626d5,_0x2e2a6c=(0x0,_univerjs_core[_0x50ec26(0x1d7)])(_0x2cdabd);_0x40bd6e[_0x50ec26(0x17a)](_0x2e2a6c);});_0x40bacd?(this[_0x2626d5(0x186)]['setFormulaExecuteStage'](_univerjs_engine_formula[_0x2626d5(0x1bd)][_0x2626d5(0x1d5)]),this[_0x2626d5(0x186)][_0x2626d5(0x215)](_0x10b6da+0x1)):(this[_0x2626d5(0x186)][_0x2626d5(0x15f)](_univerjs_engine_formula[_0x2626d5(0x1bd)][_0x2626d5(0x198)]),this[_0x2626d5(0x186)][_0x2626d5(0x20b)](_0x10b6da+0x1));this[_0x2626d5(0x1f6)][_0x2626d5(0x1cf)](this[_0x2626d5(0x186)][_0x2626d5(0x1eb)]());if(this['_runtimeService']['isStopExecution']()||_0x20ea60==null&&_0x46734a==null){this[_0x2626d5(0x186)][_0x2626d5(0x15f)](_univerjs_engine_formula['FormulaExecuteStageType']['IDLE']),this['_runtimeService'][_0x2626d5(0x21d)](),this[_0x2626d5(0x155)][_0x2626d5(0x1cf)](this[_0x2626d5(0x186)]['getAllRuntimeData']());return;}}this['_runtimeService']['setCurrent'](_0x15338b[_0x2626d5(0x179)],_0x15338b['column'],_0x15338b[_0x2626d5(0x1f4)],_0x15338b[_0x2626d5(0x1e2)],_0x15338b[_0x2626d5(0x19f)],_0x15338b[_0x2626d5(0x1bf)]);let _0x50f5da;if(_0x46734a!=null&&_0x15338b[_0x2626d5(0x213)]!=null){const {runtimeCellData:_0xc274ed,dirtyRanges:_0x19e1d8}=_0x46734a(this[_0x2626d5(0x184)][_0x2626d5(0x1c9)](),this[_0x2626d5(0x186)][_0x2626d5(0x18d)]());this[_0x2626d5(0x186)][_0x2626d5(0x21f)](_0x15338b[_0x2626d5(0x213)],_0xc274ed),this[_0x2626d5(0x186)][_0x2626d5(0x178)](_0x15338b[_0x2626d5(0x213)],_0x19e1d8);}else{if(_0x20ea60!=null){if(_0x496ad5[_0x2626d5(0x147)](_0x20ea60[_0x2626d5(0x1af)]))_0x50f5da=await _0x496ad5[_0x2626d5(0x169)](_0x20ea60);else _0x50f5da=_0x496ad5[_0x2626d5(0x139)](_0x20ea60);if(_0x15338b[_0x2626d5(0x1d1)]!=null)this['_runtimeService'][_0x2626d5(0x177)](_0x15338b[_0x2626d5(0x1d1)],_0x15338b[_0x2626d5(0x238)],_0x15338b[_0x2626d5(0x1ce)],_0x50f5da);else this[_0x2626d5(0x186)][_0x2626d5(0x1e6)](_0x50f5da);}}_0x58a30[_0x2626d5(0x230)](),_0x10b6da++;}_0x40bd6e[_0x2626d5(0x1a4)](_0x2ece95=>_0x2ece95()),_0x40bd6e=[];if(_0x51902a>0x0)this[_0x2626d5(0x186)][_0x2626d5(0x152)]();else{if(!_0x40bacd)this[_0x2626d5(0x186)][_0x2626d5(0x16a)]();}return this[_0x2626d5(0x186)][_0x2626d5(0x18d)]();}},DependencyManagerProService=class extends _univerjs_engine_formula[_0x363451(0x1b6)]{constructor(..._0x344d2e){const _0x378059=_0x363451;super(..._0x344d2e),_defineProperty(this,_0x378059(0x1ad),new Map()),_defineProperty(this,'_dependencyRTreeCache',new _univerjs_core['RTree'](!![]));}[_0x363451(0x13c)](){const _0x1e1890=_0x363451;this[_0x1e1890(0x171)][_0x1e1890(0x1a6)](),this[_0x1e1890(0x14f)]['clear'](),this[_0x1e1890(0x1b3)][_0x1e1890(0x1a6)](),this[_0x1e1890(0x170)][_0x1e1890(0x1a6)](),this[_0x1e1890(0x1ad)][_0x1e1890(0x1a6)](),this[_0x1e1890(0x20d)](),this['_otherFormulaDataMainData'][_0x1e1890(0x1a6)]();}[_0x363451(0x1a2)](_0x33c10a,_0x5866d1,_0x438860,_0x3c9a19){const _0x27bd9d=_0x363451;if(!this[_0x27bd9d(0x171)][_0x27bd9d(0x20c)](_0x33c10a))this[_0x27bd9d(0x171)][_0x27bd9d(0x1b2)](_0x33c10a,new Map());const _0x160c67=this['_otherFormulaData'][_0x27bd9d(0x166)](_0x33c10a);if(!_0x160c67[_0x27bd9d(0x20c)](_0x5866d1))_0x160c67[_0x27bd9d(0x1b2)](_0x5866d1,new Map());const _0x513084=_0x160c67['get'](_0x5866d1);if(!_0x513084['has'](_0x438860))_0x513084[_0x27bd9d(0x1b2)](_0x438860,new _univerjs_core[(_0x27bd9d(0x1fa))]());_0x513084[_0x27bd9d(0x166)](_0x438860)[_0x27bd9d(0x1f8)](_0x3c9a19[_0x27bd9d(0x238)],_0x3c9a19[_0x27bd9d(0x1ce)],_0x3c9a19[_0x27bd9d(0x1dd)]);}[_0x363451(0x234)](_0x200ae7,_0x20ef66,_0x3fa6a5){const _0x301867=_0x363451,_0x397651=this[_0x301867(0x171)][_0x301867(0x166)](_0x200ae7);if(_0x397651&&_0x397651[_0x301867(0x20c)](_0x20ef66)){const _0x366da1=_0x397651[_0x301867(0x166)](_0x20ef66);_0x3fa6a5[_0x301867(0x1a4)](_0x21e9ff=>{const _0x5f493d=_0x301867,_0x6dc90f=_0x366da1[_0x5f493d(0x166)](_0x21e9ff);if(_0x6dc90f==null)return;_0x6dc90f[_0x5f493d(0x203)]((_0x1a1352,_0x25563c,_0x27c059)=>{const _0x56fbb1=_0x5f493d;this[_0x56fbb1(0x15e)](_0x27c059),this['_removeAllTreeMap'](_0x27c059);}),_0x366da1[_0x5f493d(0x22c)](_0x21e9ff),this[_0x5f493d(0x18e)]['delete'](_0x21e9ff);});if(_0x366da1[_0x301867(0x175)]===0x0)_0x397651[_0x301867(0x22c)](_0x20ef66);if(_0x397651[_0x301867(0x175)]===0x0)this[_0x301867(0x171)]['delete'](_0x200ae7);}}[_0x363451(0x151)](_0x4ec380,_0x21a4d7){const _0x2d7ee3=_0x363451,_0x284334=this[_0x2d7ee3(0x171)][_0x2d7ee3(0x166)](_0x4ec380);if(_0x21a4d7&&_0x284334&&_0x284334[_0x2d7ee3(0x20c)](_0x21a4d7)){const _0x13926c=_0x284334[_0x2d7ee3(0x166)](_0x21a4d7);this['_removeDependencyRTreeCacheById'](_0x4ec380,_0x21a4d7);for(const _0x138a59 of _0x13926c[_0x2d7ee3(0x17e)]()){const _0x17084a=_0x13926c['get'](_0x138a59);if(_0x17084a==null)continue;_0x17084a['forValue']((_0x3bc740,_0x2880e4,_0x23fdd2)=>{const _0x290e6d=_0x2d7ee3;if(this[_0x290e6d(0x1ad)][_0x290e6d(0x166)](_0x23fdd2))this['_removeAllTreeMap'](_0x23fdd2);}),this[_0x2d7ee3(0x18e)][_0x2d7ee3(0x22c)](_0x138a59);}_0x13926c['clear']();}else{if(_0x284334){for(const _0x21eebd of _0x284334[_0x2d7ee3(0x17e)]()){const _0x552446=_0x284334['get'](_0x21eebd);this[_0x2d7ee3(0x20f)](_0x4ec380,_0x21eebd);for(const _0x1e73cd of _0x552446['keys']()){const _0x3dd346=_0x552446[_0x2d7ee3(0x166)](_0x1e73cd);if(_0x3dd346==null)continue;_0x3dd346[_0x2d7ee3(0x203)]((_0xcf834c,_0x3bed5e,_0x707099)=>{const _0x34d212=_0x2d7ee3;if(this[_0x34d212(0x1ad)]['get'](_0x707099))this[_0x34d212(0x202)](_0x707099);}),this[_0x2d7ee3(0x18e)]['delete'](_0x1e73cd);}}this[_0x2d7ee3(0x171)]['delete'](_0x4ec380);}}}['addFeatureFormulaDependency'](_0x119f9e,_0x254d6c,_0x15df81,_0x196fd9){const _0x830bb4=_0x363451;if(!this['_featureFormulaData'][_0x830bb4(0x20c)](_0x119f9e))this['_featureFormulaData']['set'](_0x119f9e,new Map());const _0x52d0ee=this[_0x830bb4(0x14f)][_0x830bb4(0x166)](_0x119f9e);if(!_0x52d0ee[_0x830bb4(0x20c)](_0x254d6c))_0x52d0ee[_0x830bb4(0x1b2)](_0x254d6c,new Map());_0x52d0ee['get'](_0x254d6c)[_0x830bb4(0x1b2)](_0x15df81,_0x196fd9[_0x830bb4(0x1dd)]);}['removeFeatureFormulaDependency'](_0x35512a,_0x2dd5ed,_0x5e3835){const _0x346516=_0x363451,_0x5cc22a=this[_0x346516(0x14f)][_0x346516(0x166)](_0x35512a);if(_0x5cc22a&&_0x5cc22a[_0x346516(0x20c)](_0x2dd5ed)){const _0x5e40b8=_0x5cc22a[_0x346516(0x166)](_0x2dd5ed);_0x5e3835[_0x346516(0x1a4)](_0x18b4a1=>{const _0x520865=_0x346516,_0x2b8d52=_0x5e40b8[_0x520865(0x166)](_0x18b4a1);if(_0x2b8d52==null)return;this[_0x520865(0x15e)](_0x2b8d52),_0x5e40b8[_0x520865(0x22c)](_0x18b4a1),this['_removeAllTreeMap'](_0x2b8d52);});}}[_0x363451(0x1de)](_0x3e1605,_0x4d7f4f){const _0x4aa1c7=_0x363451,_0x42302d=this[_0x4aa1c7(0x14f)][_0x4aa1c7(0x166)](_0x3e1605);if(_0x4d7f4f&&_0x42302d&&_0x42302d[_0x4aa1c7(0x20c)](_0x4d7f4f)){const _0x491341=_0x42302d[_0x4aa1c7(0x166)](_0x4d7f4f);this[_0x4aa1c7(0x20f)](_0x3e1605,_0x4d7f4f),_0x491341[_0x4aa1c7(0x1a4)](_0x15e9f7=>{const _0xcca016=_0x4aa1c7;if(_0x15e9f7==null)return;this[_0xcca016(0x202)](_0x15e9f7);}),_0x491341[_0x4aa1c7(0x1a6)]();}else _0x42302d&&(_0x42302d[_0x4aa1c7(0x1a4)]((_0xd28515,_0x5590df)=>{const _0x10ea35=_0x4aa1c7;this[_0x10ea35(0x20f)](_0x3e1605,_0x5590df),_0xd28515[_0x10ea35(0x1a4)](_0x4f24ac=>{const _0x460601=_0x10ea35;if(_0x4f24ac==null)return;this[_0x460601(0x202)](_0x4f24ac);});}),this[_0x4aa1c7(0x14f)]['delete'](_0x3e1605));}[_0x363451(0x14e)](_0x4114ba,_0x501703,_0x24a181,_0x1903d6,_0x3b0f16){const _0x43adb4=_0x363451;if(!this[_0x43adb4(0x1b3)][_0x43adb4(0x20c)](_0x4114ba))this[_0x43adb4(0x1b3)][_0x43adb4(0x1b2)](_0x4114ba,new Map());const _0x4d1d7e=this[_0x43adb4(0x1b3)][_0x43adb4(0x166)](_0x4114ba);if(!_0x4d1d7e[_0x43adb4(0x20c)](_0x501703))_0x4d1d7e[_0x43adb4(0x1b2)](_0x501703,new _univerjs_core[(_0x43adb4(0x1fa))]());_0x4d1d7e[_0x43adb4(0x166)](_0x501703)[_0x43adb4(0x1f8)](_0x24a181,_0x1903d6,_0x3b0f16[_0x43adb4(0x1dd)]);}[_0x363451(0x14b)](_0x279f73,_0x19fd02,_0x8ce0cb,_0x2682c8){const _0x351dd4=_0x363451,_0x4285ce=this[_0x351dd4(0x1b3)][_0x351dd4(0x166)](_0x279f73);if(_0x4285ce&&_0x4285ce[_0x351dd4(0x20c)](_0x19fd02)){const _0x24fc4c=_0x4285ce[_0x351dd4(0x166)](_0x19fd02),_0x379fe1=_0x24fc4c['getValue'](_0x8ce0cb,_0x2682c8);if(_0x379fe1==null)return;this[_0x351dd4(0x15e)](_0x379fe1),_0x24fc4c[_0x351dd4(0x16c)](_0x8ce0cb,_0x2682c8),this[_0x351dd4(0x202)](_0x379fe1);}}[_0x363451(0x1ba)](_0x584ef6,_0x3e89fa){const _0x51f067=_0x363451,_0x481762=this[_0x51f067(0x1b3)][_0x51f067(0x166)](_0x584ef6);if(_0x3e89fa&&_0x481762&&_0x481762[_0x51f067(0x20c)](_0x3e89fa)){const _0x251609=_0x481762[_0x51f067(0x166)](_0x3e89fa);this[_0x51f067(0x20f)](_0x584ef6,_0x3e89fa),_0x251609['forValue']((_0x239ad8,_0x186b12,_0x23a8dd)=>{const _0x21f446=_0x51f067;if(_0x23a8dd==null)return!![];this[_0x21f446(0x202)](_0x23a8dd);}),_0x251609[_0x51f067(0x13c)]();}else _0x481762&&(_0x481762[_0x51f067(0x1a4)]((_0x4ac983,_0x1730b4)=>{this['_removeDependencyRTreeCacheById'](_0x584ef6,_0x1730b4),_0x4ac983['forValue']((_0x49693a,_0x344155,_0x1adcb7)=>{if(_0x1adcb7==null)return!![];this['_removeAllTreeMap'](_0x1adcb7);});}),this[_0x51f067(0x1b3)]['delete'](_0x584ef6));}['_removeDependencyRTreeCache'](_0x10edf7){const _0xb976a2=_0x363451;if(_0x10edf7==null)return;const _0x3ec7ab=this['_allTreeMap']['get'](_0x10edf7);if(_0x3ec7ab){const _0x34a3a0=[];for(const [_0x25025b,_0x2741af]of _0x3ec7ab)for(const [_0x48a9f6,_0x45a349]of _0x2741af)_0x34a3a0[_0xb976a2(0x17a)]({'unitId':_0x25025b,'sheetId':_0x48a9f6,'range':_0x45a349,'id':_0x10edf7});this[_0xb976a2(0x170)][_0xb976a2(0x205)](_0x34a3a0);}}[_0x363451(0x1aa)](_0x43599f,_0x329abd){const _0x3db83a=_0x363451,_0x4ec2af=this['_definedNameMap'][_0x3db83a(0x166)](_0x43599f);if(_0x4ec2af){const _0x4eea16=_0x4ec2af[_0x3db83a(0x166)](_0x329abd);if(_0x4eea16){for(const _0xd3263a of _0x4eea16){this[_0x3db83a(0x15e)](_0xd3263a),this['_removeAllTreeMap'](_0xd3263a);}_0x4eea16[_0x3db83a(0x1a6)]();}}}['openKdTree'](){const _0x59df39=_0x363451;this[_0x59df39(0x170)]['openKdTree']();}['closeKdTree'](){const _0x515f96=_0x363451;this[_0x515f96(0x170)][_0x515f96(0x13e)]();}[_0x363451(0x202)](_0x157076){const _0x2fb08b=_0x363451;if(_0x157076==null)return;this['_allTreeMap'][_0x2fb08b(0x22c)](_0x157076);}['_addAllTreeMap'](_0x26109c){const _0x2940a9=_0x363451,_0x2dc4f9=_0x26109c[_0x2940a9(0x1cd)];let _0x484f6e=this[_0x2940a9(0x1ad)][_0x2940a9(0x166)](_0x26109c['treeId']);for(let _0x6fbe4c=0x0;_0x6fbe4c<_0x2dc4f9['length'];_0x6fbe4c++){var _0x1f577a,_0x37b2ff;let {unitId:_0xe24966,sheetId:_0xc4dcb,range:_0x3d69da}=_0x2dc4f9[_0x6fbe4c];!_0x484f6e&&(_0x484f6e=new Map(),this[_0x2940a9(0x1ad)][_0x2940a9(0x1b2)](_0x26109c['treeId'],_0x484f6e));if(!_0x484f6e['has'](_0xe24966))_0x484f6e[_0x2940a9(0x1b2)](_0xe24966,new Map());const _0x376fe2=_0x484f6e===null||_0x484f6e===void 0x0||(_0x1f577a=_0x484f6e[_0x2940a9(0x166)](_0xe24966))===null||_0x1f577a===void 0x0?void 0x0:_0x1f577a[_0x2940a9(0x166)](_0xc4dcb);if(_0x376fe2)_0x3d69da={'startRow':Math['min'](_0x3d69da[_0x2940a9(0x236)],_0x376fe2[_0x2940a9(0x236)]),'startColumn':Math['min'](_0x3d69da['startColumn'],_0x376fe2['startColumn']),'endRow':Math['max'](_0x3d69da[_0x2940a9(0x196)],_0x376fe2[_0x2940a9(0x196)]),'endColumn':Math[_0x2940a9(0x227)](_0x3d69da[_0x2940a9(0x1f0)],_0x376fe2['endColumn'])};(_0x37b2ff=_0x484f6e['get'](_0xe24966))===null||_0x37b2ff===void 0x0||_0x37b2ff[_0x2940a9(0x1b2)](_0xc4dcb,_0x3d69da);}}};function __decorate(_0x4816b8,_0x3ebd70,_0x238cbd,_0x56935e){const _0x4dddb7=_0x363451;var _0x2af24b=arguments[_0x4dddb7(0x224)],_0x4b9f1b=_0x2af24b<0x3?_0x3ebd70:_0x56935e===null?_0x56935e=Object[_0x4dddb7(0x1f5)](_0x3ebd70,_0x238cbd):_0x56935e,_0x3e33df;if(typeof Reflect==='object'&&typeof Reflect[_0x4dddb7(0x22d)]===_0x4dddb7(0x1b9))_0x4b9f1b=Reflect[_0x4dddb7(0x22d)](_0x4816b8,_0x3ebd70,_0x238cbd,_0x56935e);else{for(var _0x3cd3e1=_0x4816b8[_0x4dddb7(0x224)]-0x1;_0x3cd3e1>=0x0;_0x3cd3e1--)if(_0x3e33df=_0x4816b8[_0x3cd3e1])_0x4b9f1b=(_0x2af24b<0x3?_0x3e33df(_0x4b9f1b):_0x2af24b>0x3?_0x3e33df(_0x3ebd70,_0x238cbd,_0x4b9f1b):_0x3e33df(_0x3ebd70,_0x238cbd))||_0x4b9f1b;}return _0x2af24b>0x3&&_0x4b9f1b&&Object[_0x4dddb7(0x1c8)](_0x3ebd70,_0x238cbd,_0x4b9f1b),_0x4b9f1b;}const BUILD_TIMESTAMP=Number[_0x363451(0x1b4)](0x69ff1123);function _0x32cc(){const _0x3b68d5=['_config','_xlpm.','getClearDependencyTreeCache','DEFAULT_TOKEN_TYPE_ROOT','9863700mgpNxy','object','join','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_removeDependencyRTreeCache','setFormulaExecuteStage','_initLicenseValid','_injector','_checkColonNodeForExprTree','getDirtyNameMap','_generateTreeList','_getCurNodeTypeForExprTree','get','_interpreter','VALUE','executeAsync','markedAsNoFunctionsExecuted','_registerFormulas','realDeleteValue','_getAllDependencyJson','isDirty','isArray','_dependencyRTreeCache','_otherFormulaData','START_CALCULATION','_createFDtree','call','size','11880ICekXd','setRuntimeOtherData','setRuntimeFeatureRange','row','push','notExecuteFormula','FormulaDependencyGenerator','resolve','keys','min','START_DEPENDENCY_ARRAY_FORMULA','_handleLambdaForExprTree','formula','_updateRangeFlatten','_currentConfigService','isReferenceString','_runtimeService','dependencySheetName','NEW_EXCEL_FUNCTIONS','_initializeWithOverride','ICalculateFormulaService','316527JXfovw','getOtherFormulaDependency','getAllRuntimeData','_otherFormulaDataMainData','_hasNewExcelFunction','SUFFIX_TOKEN_SET','getFormulaDependency','8937ULaXKI','_handleTextNodeForExprTree','329kOLzSU','_xlfnPrefix','endRow','_traverse','CURRENTLY_CALCULATING','DEFAULT_TOKEN_TYPE_LAMBDA_PARAMETER','addFeatureFormulaDependency','_getFeatureFormulaTree','35022OAQybW','getOtherFormulaData','_resetPrefix','subUnitId','pop','IFormulaDependencyGenerator','addOtherFormulaDependency','refTree','forEach','LexerTreeBuilder','clear','inRangeData','dispose','UniverProFormulaEnginePlugin','removeFormulaDependencyByDefinedName','_clearFunctionString','1698766QRYrjH','_allTreeMap','_clearPrefix','node','_getTableNameFromStructuredRef','getToken','set','_formulaData','parseInt','_isCalculateTreeModel','DependencyManagerBaseService','searchDependency','_lexer','function','clearFormulaDependency','prototype','PLUS','FormulaExecuteStageType','trim','unitId','_lambdaFunctionParameterSet','_generateExprTree','isSkip','_getFirstCellOfRange','toUpperCase','48fqBBxt','iterator','isExcludeRange','defineProperty','getDirtyData','DEFAULT_TOKEN_TYPE_PARAMETER','OPERATOR_TOKEN_SET','_dependencyTreeCache','rangeList','refOffsetY','next','generateAstNode','formulaId','_getAllTreeList','FormulaDependencyTree','matchToken','CURRENTLY_CALCULATING_ARRAY_FORMULA','Let\x20variable\x20name\x20\x22','requestImmediateMacroTask','getSheetRowColumnCount','getValue','getDirtyRanges','splitTableStructuredRef','Module','treeId','clearFeatureFormulaDependency','IDependencyManagerService','addFormulaDependencyByDefinedName','MINUS','columnCount','_handleNewFunctionChild','setDependencyTreeModelData','FormulaDependencyTreeVirtual','setRuntimeData','range','LexerNode','_checkAddBracketForMinus','_createVirtualFDtree','getRuntimeState','generateRandomDependencyTreeId','toStringTag','OTHER_FORMULA','getConfig','endColumn','toRTreeItem','getChildren','column','rowCount','getOwnPropertyDescriptor','_executionInProgressListener$','_currentUnitId','setValue','openKdTree','ObjectMatrix','1037980iTtUsk','_dependencyManagerService','setTotalFormulasToCalculate','6128050nEewlB','hasOwnProperty','_dependencyRTreeCacheForAddressFunction','FormulaDependencyTreeType','_removeAllTreeMap','forValue','startIndex','bulkRemove','ErrorType','isFeatureAuthorizedWithinTime','DependencyManagerService','_formulaDependencyGenerator','isVirtual','setCompletedFormulasCount','has','_restDependencyTreeId','_isCyclicUtilMap','_removeDependencyRTreeCacheById','_xlpmPrefix','START_DEPENDENCY','getUnitData','featureId','_handleChildrenForExprTree','setCompletedArrayFormulasCount','DEFAULT_TOKEN_LAMBDA_FUNCTION_NAME','1yUuUBl','intervalCount','COLON','_formulaDependencyTreeModel','_astTreeBuilder','add','markedAsStopFunctionsExecuted','children','setRuntimeFeatureCellData','_xlfn.','getSheetFeatureLimit','values','isAdded','length','UniverLicensePlugin','_startFormulaDependencyTreeModel','max','generate','Lambda\x20parameter\x20name\x20\x22','_generateNewFunctionString','symbol','delete','decorate','DEFAULT_TOKEN_LET_FUNCTION_NAME','getStartIndex','resetCalculationState','message','startsWith','error','removeOtherFormulaDependency','featureDirtyRanges','startRow','bulkSearch','refOffsetX','type','getNewFormulaWithPrefix','execute','55QcYhWX','getLicenseInfo','reset','START_CALCULATION_ARRAY_FORMULA','closeKdTree','packageName','hasOtherFormulaDataMainData','slice','treeBuilder','version','string','from','_getTreeNode','checkAsyncNode','dirtyRanges','_configService','prefixToken','removeFormulaDependency','LS_CONFIG_KEY','FEATURE_FORMULA','addFormulaDependency','_featureFormulaData','default','clearOtherFormulaDependency','markedAsSuccessfullyExecuted','getExcludedRange','toPrimitive','_executionCompleteListener$'];_0x32cc=function(){return _0x3b68d5;};return _0x32cc();}let UniverProFormulaEnginePlugin=class UniverProFormulaEnginePlugin extends _univerjs_engine_formula['UniverFormulaEnginePlugin']{[_0x363451(0x189)](){const _0x41435f=_0x363451;if(this[_0x41435f(0x160)]()){var _0x232ea2;this[_0x41435f(0x161)][_0x41435f(0x21c)]([_univerjs_engine_formula[_0x41435f(0x1a5)],{'useClass':LexerTreeProBuilder}]);if(!((_0x232ea2=this['_config'])===null||_0x232ea2===void 0x0?void 0x0:_0x232ea2['notExecuteFormula']))[[_univerjs_engine_formula[_0x41435f(0x18a)],{'useClass':CalculateFormulaProService}],[_univerjs_engine_formula[_0x41435f(0x1df)],{'useClass':DependencyManagerProService}],[_univerjs_engine_formula[_0x41435f(0x1a1)],{'useClass':FormulaDependencyProGenerator}]][_0x41435f(0x1a4)](_0x4821d3=>this['_injector']['add'](_0x4821d3));}else{var _0xd41e84;this[_0x41435f(0x161)]['add']([_univerjs_engine_formula[_0x41435f(0x1a5)],{'useClass':_univerjs_engine_formula['LexerTreeBuilder']}]);if(!((_0xd41e84=this[_0x41435f(0x156)])===null||_0xd41e84===void 0x0?void 0x0:_0xd41e84[_0x41435f(0x17b)]))[[_univerjs_engine_formula[_0x41435f(0x18a)],{'useClass':_univerjs_engine_formula['CalculateFormulaService']}],[_univerjs_engine_formula[_0x41435f(0x1df)],{'useClass':_univerjs_engine_formula[_0x41435f(0x208)]}],[_univerjs_engine_formula[_0x41435f(0x1a1)],{'useClass':_univerjs_engine_formula[_0x41435f(0x17c)]}]][_0x41435f(0x1a4)](_0x12b9b3=>this['_injector'][_0x41435f(0x21c)](_0x12b9b3));}}[_0x363451(0x160)](){const _0x1ba229=_0x363451;var _0x138694;const {ls:_0x38e636,pbk:_0x48d20d}=(_0x138694=this[_0x1ba229(0x149)][_0x1ba229(0x1ef)](_univerjs_pro_license[_0x1ba229(0x14c)]))!==null&&_0x138694!==void 0x0?_0x138694:{};if(!_0x38e636||!_0x48d20d)return![];const _0x14f4aa=(0x0,_univerjs_pro_license[_0x1ba229(0x13b)])(_0x38e636,_0x48d20d),_0x3b5f49=_0x14f4aa[_0x1ba229(0x231)];if(_0x14f4aa['valid']){if((0x0,_univerjs_pro_license[_0x1ba229(0x207)])(_0x3b5f49,'sf',BUILD_TIMESTAMP))return(0x0,_univerjs_pro_license[_0x1ba229(0x221)])(_0x3b5f49,!![],'a',!![],![],![]);}return![];}};_defineProperty(UniverProFormulaEnginePlugin,_0x363451(0x13f),name),_defineProperty(UniverProFormulaEnginePlugin,_0x363451(0x143),version),UniverProFormulaEnginePlugin=__decorate([(0x0,_univerjs_core['DependentOn'])(_univerjs_pro_license[_0x363451(0x225)])],UniverProFormulaEnginePlugin),exports['LexerTreeProBuilder']=LexerTreeProBuilder,Object[_0x363451(0x1c8)](exports,_0x363451(0x1a9),{'enumerable':!![],'get':function(){return UniverProFormulaEnginePlugin;}}),Object[_0x363451(0x17e)](_univerjs_engine_formula)[_0x363451(0x1a4)](function(_0x74c763){const _0x23c6bf=_0x363451;if(_0x74c763!==_0x23c6bf(0x150)&&!Object[_0x23c6bf(0x1bb)][_0x23c6bf(0x1ff)][_0x23c6bf(0x174)](exports,_0x74c763))Object[_0x23c6bf(0x1c8)](exports,_0x74c763,{'enumerable':!![],'get':function(){return _univerjs_engine_formula[_0x74c763];}});});
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x1bbb8e,_0x2a6d1a){var _0x742979=_0x1f85,_0x232ff1=_0x1bbb8e();while(!![]){try{var _0x291286=parseInt(_0x742979(0xca))/0x1*(-parseInt(_0x742979(0xcf))/0x2)+-parseInt(_0x742979(0xc9))/0x3*(parseInt(_0x742979(0xc8))/0x4)+parseInt(_0x742979(0xd3))/0x5*(parseInt(_0x742979(0xcd))/0x6)+parseInt(_0x742979(0xd0))/0x7*(parseInt(_0x742979(0xd2))/0x8)+-parseInt(_0x742979(0xcb))/0x9*(parseInt(_0x742979(0xce))/0xa)+-parseInt(_0x742979(0xd1))/0xb*(parseInt(_0x742979(0xcc))/0xc)+parseInt(_0x742979(0xc7))/0xd;if(_0x291286===_0x2a6d1a)break;else _0x232ff1['push'](_0x232ff1['shift']());}catch(_0x3f6be6){_0x232ff1['push'](_0x232ff1['shift']());}}}(_0x1e66,0xe9b14));import{FFormula}from'@univerjs/engine-formula/facade';export{FFormula};function _0x1f85(_0x31baaa,_0x1a5062){_0x31baaa=_0x31baaa-0xc7;var _0x1e661b=_0x1e66();var _0x1f85cc=_0x1e661b[_0x31baaa];return _0x1f85cc;}function _0x1e66(){var _0x3d21b6=['19272737wtpmJZ','88PLpavU','15GwcRbE','20759245fIVafl','3448bspbrc','753WMwTRd','1WFeFSy','478818zWUkcE','12opdmfD','2379426lvljPF','20RvrKWK','37786ldTHqz','168224ziLkXG'];_0x1e66=function(){return _0x3d21b6;};return _0x1e66();}
1
+ (function(_0x2e8e89,_0x4ffad9){var _0x3f96ff=_0x1dd3,_0x514941=_0x2e8e89();while(!![]){try{var _0x2b612a=-parseInt(_0x3f96ff(0x9b))/0x1*(parseInt(_0x3f96ff(0x9c))/0x2)+-parseInt(_0x3f96ff(0x96))/0x3*(-parseInt(_0x3f96ff(0x97))/0x4)+-parseInt(_0x3f96ff(0x93))/0x5+-parseInt(_0x3f96ff(0x9d))/0x6*(-parseInt(_0x3f96ff(0x99))/0x7)+-parseInt(_0x3f96ff(0x94))/0x8+parseInt(_0x3f96ff(0x98))/0x9+parseInt(_0x3f96ff(0x95))/0xa*(-parseInt(_0x3f96ff(0x9a))/0xb);if(_0x2b612a===_0x4ffad9)break;else _0x514941['push'](_0x514941['shift']());}catch(_0x33a6d3){_0x514941['push'](_0x514941['shift']());}}}(_0x5c32,0xe6e9d));import{FFormula}from'@univerjs/engine-formula/facade';function _0x1dd3(_0x44bd6f,_0x41d9f){_0x44bd6f=_0x44bd6f-0x93;var _0x5c32ed=_0x5c32();var _0x1dd34c=_0x5c32ed[_0x44bd6f];return _0x1dd34c;}export{FFormula};function _0x5c32(){var _0x5d860e=['13689513PNePdF','427UYFlcC','22oMFTBn','2IzbtCm','246074GpqZlA','124590ClpfXn','2747445ZAbtMQ','287928nPnFEo','7844110YzdAog','3765IiWfLe','1780tAYGFs'];_0x5c32=function(){return _0x5d860e;};return _0x5c32();}