@univerjs-pro/docs-formula 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x533a(){const _0x1945ab=['TABLE_END','complete','undoMutation','packageName','2101572EAtGQr','previousDocumentData','references','find','EMPTY','replaceDocRanges','cell','degradeDocumentData','getCurrentUnitOfType','default','from','BLOCK_START','startsWith','_preserveInvalid','removeUnit','getFormulaValueSync','TABLE_ROW_END','getFormulas','parse','_isDisposed','syncUnit','formula','identity','_pendingUnitIds','RichTextEditingMutation','_univerInstanceService','call','@univerjs-pro/docs-formula','_rawResources','toFormulaLastValue','selection','FormulaResultStatus','RemoveDocFormulaCommand','JSONX','formulaId','keys','DocSelectionManagerService','@univerjs/core','collectFormulaExternalReferenceQualifiers','shiftInclusiveRangeOnDelete','InvalidDocFormulaInsertRangeError','DOC_FORMULA_PLUGIN','_presentationChanged$','_docFormulaModel','customBlocks','docs-formula.command.update','UniverCore','isDocFormulaResource','wholeEntity','merge','UniverLicensePlugin','@univerjs/docs','getResource','UniverEngineFormula','pushUndoRedo','RemoveDocFormulaMutation','stringify','DocFormulaResultStatus','paragraph','serialize','shiftInclusiveRangeOnInsert','getRevision','_loadErrors','resolveFormula','DOC','SetDocFormulaNumberFormatCommand','_formulaService','_syncUnit','_queueSync','delete','LexerTreeBuilder','Plugin','setConfig','retain','TextX','UniverProFormulaEnginePlugin','_syncScheduled','20056eMGzVU','_hostExternalReferenceModel','_resourceManagerService','iterator','unitId','InsertDocFormulaCommand','resources','_registrations','properties','resolveHostFormulaExternalReferences','unregister','getFormula','docs-formula.command.replace-with-text','source','subscribe','editOp','document','CustomRangeType','sort','accessor','text','blockRanges','registerFormulaWithRange','getUnitId','_updateFormulaResult','CUSTOM','COLUMN_START','_setPresentation','isDocFormulaConfig','MUTATION','docs-formula.mutation.set-resource','COLUMN_END','_model','Tools','SetDocFormulaResourceMutation','register','updates','onStarting','docs-formula.command.remove','_cacheEligibilityService','success','segmentId','start','_injector','presentation','change$','defineProperty','HostExternalReferenceModel','onCommandExecuted','240210mbwYhu','getBodySliceForTextXAction','COLUMN_GROUP_END','deleteLength','getLoadError','docs-formula.command.insert','customRanges','push','endsWith','add','buildInsertDocFormulaActions','IUndoRedoService','Disposable','symbol','map','columnGroups','externalReferences','dispose','config','range','resourceUndo','function','has','next','29520610OSrZBl','isFormulaLastValue','redoMutation','getResult','unregisterUnit','1.5.0','every','_formulaKeys','getSnapshot','pluginName','liveResult','end','cursorOffset','length','registerCommand','assess','object','degradeDocFormulaDocumentData','univer-docs-formula','resolveFormulaResultPresentation','dataStream','referenceRevision','asObservable','UniverDocsFormulaPlugin','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','DataStreamTreeTokenType','min','position','shiftExclusiveRangeOnInsert','buildUpsertHostExternalReferenceMutations','documentRedo','notifyTextChanged','isInteger','CellValueType','buildRemoveDocFormulaActions','formulas','name','15wdzsmu','max','SetDocFormulaLastValuesMutation','eligible','tables','PARAGRAPH','DocFormulaLifecycleController','SECTION_BREAK','@univerjs-pro/license','sequenceNodesBuilder','TABLE_ROW_START','sectionBreaks','923632ivkKkg','findDocFormulaRange','type','TABLE_START','insertLength','18232XjiRbz','entries','set','resolved','externalMutations','UpdateDocFormulaCommand','constructor','filter','lastValue','disposeWithMe','setFormulas','startOffset','_configService','nextDocumentData','ICommandService','params','FormulaCacheEligibilityService','@univerjs-pro/engine-formula','assign','resourceRedo','prototype','ERROR','previousResource','TABLE_CELL_START','customDecorations','isDocFormulaRange','empty','DocFormulaDisplayTextService','string','amd','registerProvider','DocFormulaResourceController','includes','_instanceService','COLUMN_GROUP_START','paragraphs','body','numberFormat','DependentOn','nextResource','CommandType','documentData','number','getAllUnitsForType','assertSafeDocFormulaInsertRange','COMMAND','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','status','pending','isArray','PENDING','model','get','expectedFormula','expectedReferenceRevision','UniverProDocsFormula','removeFormula','trim','syncExecuteCommand','_config','some','UniverInstanceType','docs-formula.mutation.remove-formula','disabled','forEach','textRuns','rangeId','Inject','values','endOffset','getBody','getTextRanges','clear','getRichTextEditPath','setResource','degradeBody','OtherFormulaBizType','trigger','toStringTag','endIndex','slice','resolveBinding','decorate','resource','data','pattern','_commandService','_deleteRegistration','DocFormulaModel','_change$','getCustomRangeInterval','_service','error','rxjs','target','RegisterOtherFormulaService','paragraphId','collectMutations','_resources','Injector','FormulaLastValuePersistenceService','9618282XEJafg','_registrationService','CUSTOM_BLOCK','startIndex','generateRandomId','resolveText','IUniverInstanceService','getOwnPropertyDescriptor','118VOXzDH','color','buildUpdateDocFormulaActions','UNIVER_DOC','docs-formula.config','deepClone','getUnit','721OGeFjl','stale'];_0x533a=function(){return _0x1945ab;};return _0x533a();}function _0x427c(_0x6588e6,_0x3344de){_0x6588e6=_0x6588e6-0x181;const _0x533a1d=_0x533a();let _0x427cf8=_0x533a1d[_0x6588e6];return _0x427cf8;}(function(_0x23cf5a,_0x5c11e6){const _0x286137=_0x427c,_0x4a8d3d=_0x23cf5a();while(!![]){try{const _0x346b23=-parseInt(_0x286137(0x245))/0x1*(parseInt(_0x286137(0x1d8))/0x2)+-parseInt(_0x286137(0x1c7))/0x3*(-parseInt(_0x286137(0x1d3))/0x4)+-parseInt(_0x286137(0x18a))/0x5+-parseInt(_0x286137(0x23d))/0x6+parseInt(_0x286137(0x24c))/0x7*(-parseInt(_0x286137(0x29f))/0x8)+-parseInt(_0x286137(0x252))/0x9+parseInt(_0x286137(0x1a2))/0xa;if(_0x346b23===_0x5c11e6)break;else _0x4a8d3d['push'](_0x4a8d3d['shift']());}catch(_0x41c6b9){_0x4a8d3d['push'](_0x4a8d3d['shift']());}}}(_0x533a,0xd8d1f),function(_0x2753d9,_0x3593e1){const _0x4ec3e8=_0x427c;typeof exports==_0x4ec3e8(0x1b2)&&typeof module<'u'?_0x3593e1(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x4ec3e8(0x19f)&&define[_0x4ec3e8(0x1f5)]?define(['exports',_0x4ec3e8(0x1e9),_0x4ec3e8(0x277),_0x4ec3e8(0x285),'@univerjs/engine-formula','rxjs',_0x4ec3e8(0x1cf)],_0x3593e1):(_0x2753d9=typeof globalThis<'u'?globalThis:_0x2753d9||self,_0x3593e1(_0x2753d9[_0x4ec3e8(0x20f)]={},_0x2753d9['UniverProEngineFormula'],_0x2753d9[_0x4ec3e8(0x280)],_0x2753d9['UniverDocs'],_0x2753d9[_0x4ec3e8(0x287)],_0x2753d9[_0x4ec3e8(0x235)],_0x2753d9['UniverProLicense']));}(this,function(_0x205656,_0x3b755e,_0x18681b,_0x5a6648,_0x15aa63,_0x243dde,_0x3e8071){const _0x59fbca=_0x427c;Object[_0x59fbca(0x187)](_0x205656,Symbol[_0x59fbca(0x226)],{'value':'Module'});let _0x6a482c=_0x59fbca(0x27b),_0x23a021=_0x59fbca(0x1b4);function _0x579c9e(){return{'formulas':{}};}function _0x43dbc1(_0x1db7f6){const _0x995a38=_0x59fbca;return!_0x1db7f6||typeof _0x1db7f6!='object'||!(_0x995a38(0x1c5)in _0x1db7f6)||!_0x1db7f6[_0x995a38(0x1c5)]||typeof _0x1db7f6[_0x995a38(0x1c5)]!=_0x995a38(0x1b2)||Array[_0x995a38(0x209)](_0x1db7f6[_0x995a38(0x1c5)])?!0x1:Object[_0x995a38(0x1d9)](_0x1db7f6['formulas'])['every'](([_0x252b38,_0xf85541])=>_0x252b38[_0x995a38(0x1af)]>0x0&&_0x45bbe2(_0xf85541));}function _0x45bbe2(_0x2eec81){const _0x44b05e=_0x59fbca;return!_0x2eec81||typeof _0x2eec81!=_0x44b05e(0x1b2)||!_0x30d39e(_0x2eec81,[_0x44b05e(0x267),_0x44b05e(0x1fd),'lastValue'])||!(_0x44b05e(0x267)in _0x2eec81)||typeof _0x2eec81[_0x44b05e(0x267)]!=_0x44b05e(0x1f4)||!_0x2eec81[_0x44b05e(0x267)][_0x44b05e(0x211)]()||_0x44b05e(0x1fd)in _0x2eec81&&_0x2eec81['numberFormat']!=null&&(typeof _0x2eec81[_0x44b05e(0x1fd)]!=_0x44b05e(0x1b2)||!_0x30d39e(_0x2eec81[_0x44b05e(0x1fd)],[_0x44b05e(0x22d)])||!(_0x44b05e(0x22d)in _0x2eec81[_0x44b05e(0x1fd)])||typeof _0x2eec81[_0x44b05e(0x1fd)][_0x44b05e(0x22d)]!=_0x44b05e(0x1f4))?!0x1:!('lastValue'in _0x2eec81)||_0x2eec81[_0x44b05e(0x1e0)]==null||_0x3fc056(_0x2eec81['lastValue']);}function _0x3fc056(_0x4bce2b){const _0x1a3950=_0x59fbca;return!_0x4bce2b||typeof _0x4bce2b!=_0x1a3950(0x1b2)||!_0x30d39e(_0x4bce2b,['v','t',_0x1a3950(0x22d)])||!('v'in _0x4bce2b)||_0x4bce2b['v']!==null&&typeof _0x4bce2b['v']!=_0x1a3950(0x1f4)&&typeof _0x4bce2b['v']!=_0x1a3950(0x202)&&typeof _0x4bce2b['v']!='boolean'||'t'in _0x4bce2b&&_0x4bce2b['t']!=null&&!_0x25fbc4(_0x4bce2b['t'])?!0x1:!('pattern'in _0x4bce2b)||_0x4bce2b[_0x1a3950(0x22d)]==null||typeof _0x4bce2b['pattern']==_0x1a3950(0x1f4);}function _0x30d39e(_0x27fd74,_0x5d6da1){const _0x629968=_0x59fbca;let _0x437c61=new Set(_0x5d6da1);return Object[_0x629968(0x275)](_0x27fd74)[_0x629968(0x1a8)](_0x2203d1=>_0x437c61[_0x629968(0x1a0)](_0x2203d1));}function _0x25fbc4(_0x260eda){const _0x25636d=_0x59fbca;return typeof _0x260eda=='number'&&Object['values'](_0x18681b[_0x25636d(0x1c3)])['includes'](_0x260eda);}let _0x3f79b9=new Set([_0x18681b[_0x59fbca(0x1bb)]['SECTION_BREAK'],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x1d6)],_0x18681b['DataStreamTreeTokenType'][_0x59fbca(0x1d1)],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x1ef)],_0x18681b[_0x59fbca(0x1bb)]['TABLE_CELL_END'],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x262)],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x24e)],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x1fa)],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x2b9)],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x2be)],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x18c)],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x25d)],_0x18681b[_0x59fbca(0x1bb)]['BLOCK_END'],_0x18681b[_0x59fbca(0x1bb)][_0x59fbca(0x23f)]]);var _0x585510=class extends Error{constructor(){const _0x223df4=_0x59fbca;super(_0x223df4(0x206));}};function _0x495a09(_0x1796b1){const _0x39c43d=_0x59fbca;var _0x18a308,_0x2e6196;let _0xa6cdcd=_0x18681b[_0x39c43d(0x2c0)]['deepClone'](_0x1796b1['documentData']),_0x5b8d3b=_0x4a434f(_0xa6cdcd),{startOffset:_0x198ff5,endOffset:_0xf05efa}=_0x431231(_0x5b8d3b,_0x1796b1[_0x39c43d(0x1e3)],_0x1796b1[_0x39c43d(0x21d)]);_0x298e4c(_0x5b8d3b,_0x198ff5,_0xf05efa);let _0x38b0f0=((_0x18a308=_0x5b8d3b[_0x39c43d(0x190)])==null?void 0x0:_0x18a308['filter'](_0x35981e=>{const _0x4fff07=_0x39c43d;if(!_0x33c337(_0x35981e))return!0x1;let _0x316cab=(0x0,_0x18681b[_0x4fff07(0x232)])(_0x35981e);return _0x316cab[_0x4fff07(0x21d)]>_0x198ff5&&_0x316cab['startOffset']<_0xf05efa;})[_0x39c43d(0x198)](_0x199c8b=>_0x199c8b[_0x39c43d(0x21a)]))??[];_0x4c77a4(_0x5b8d3b,_0x198ff5,_0xf05efa,''),_0x5b8d3b['customRanges']=[...((_0x2e6196=_0x5b8d3b['customRanges'])==null?void 0x0:_0x2e6196[_0x39c43d(0x1df)](_0x3e0397=>!_0x38b0f0[_0x39c43d(0x1f8)](_0x3e0397['rangeId'])&&_0x3e0397[_0x39c43d(0x21a)]!==_0x1796b1[_0x39c43d(0x21a)]))??[],_0x3ab237(_0x1796b1[_0x39c43d(0x21a)],_0x198ff5)]['sort']((_0x132b7e,_0x199f6e)=>_0x132b7e[_0x39c43d(0x240)]-_0x199f6e[_0x39c43d(0x240)]);let _0x33028e=_0x846dbe(_0x1796b1[_0x39c43d(0x22b)]);return _0x38b0f0['forEach'](_0x41256a=>{const _0x385efc=_0x39c43d;delete _0x33028e[_0x385efc(0x1c5)][_0x41256a];}),_0x33028e[_0x39c43d(0x1c5)][_0x1796b1[_0x39c43d(0x21a)]]=_0x18681b[_0x39c43d(0x2c0)][_0x39c43d(0x24a)](_0x1796b1[_0x39c43d(0x19c)]),{'nextDocumentData':_0xa6cdcd,'nextResource':_0x33028e,'cursorOffset':_0x198ff5+0x1};}function _0x13575d(_0x1ed9f6){const _0x2c9607=_0x59fbca;var _0x4a631d,_0xfd2870;let _0x2738cc=_0x18681b[_0x2c9607(0x2c0)]['deepClone'](_0x1ed9f6[_0x2c9607(0x201)]),_0x1b7382=(_0x4a631d=_0x4a434f(_0x2738cc)[_0x2c9607(0x190)])==null?void 0x0:_0x4a631d[_0x2c9607(0x255)](_0x3e557c=>_0x3e557c[_0x2c9607(0x21a)]===_0x1ed9f6[_0x2c9607(0x21a)]&&_0x33c337(_0x3e557c));if(!_0x1b7382||!((_0xfd2870=_0x1ed9f6['resource'])!=null&&_0xfd2870[_0x2c9607(0x1c5)][_0x1ed9f6[_0x2c9607(0x21a)]]))return null;let _0x41d77c=_0x846dbe(_0x1ed9f6[_0x2c9607(0x22b)]);return _0x41d77c[_0x2c9607(0x1c5)][_0x1ed9f6['rangeId']]=_0x18681b[_0x2c9607(0x2c0)]['deepClone'](_0x1ed9f6['config']),{'nextDocumentData':_0x2738cc,'nextResource':_0x41d77c,'cursorOffset':_0x1b7382['endIndex']+0x1};}function _0x15978c(_0x5085d0){const _0x36ad7d=_0x59fbca;let _0x5e739d=_0x18681b[_0x36ad7d(0x2c0)]['deepClone'](_0x5085d0[_0x36ad7d(0x201)]),_0x1a5c97=_0x499d71(_0x5e739d,_0x5085d0[_0x36ad7d(0x21a)],_0x5085d0[_0x36ad7d(0x2b3)]??'');if(_0x1a5c97==null)return null;let _0x232532=_0x846dbe(_0x5085d0[_0x36ad7d(0x22b)]);return delete _0x232532[_0x36ad7d(0x1c5)][_0x5085d0[_0x36ad7d(0x21a)]],{'nextDocumentData':_0x5e739d,'nextResource':_0x232532,'cursorOffset':_0x1a5c97};}function _0x584fb5(_0x32d6f5,_0x74eddb){const _0x2aadf7=_0x59fbca;var _0x4e8724;let _0x43e66a=_0x18681b['Tools'][_0x2aadf7(0x24a)](_0x32d6f5),_0x1b7015=_0x43e66a[_0x2aadf7(0x1fc)];if(!_0x1b7015)return _0x43e66a;let _0xd6bd23=new Map(_0x74eddb[_0x2aadf7(0x198)](_0x2e14fc=>[_0x2e14fc[_0x2aadf7(0x21a)],_0x2e14fc['text']])),_0x5695e2=((_0x4e8724=_0x1b7015[_0x2aadf7(0x190)])==null?void 0x0:_0x4e8724[_0x2aadf7(0x1df)](_0x23a467=>_0x33c337(_0x23a467)&&_0xd6bd23[_0x2aadf7(0x1a0)](_0x23a467[_0x2aadf7(0x21a)]))[_0x2aadf7(0x2b1)]((_0x9d9031,_0x578600)=>_0x578600['startIndex']-_0x9d9031[_0x2aadf7(0x240)]))??[];for(let _0x42094d of _0x5695e2)_0x499d71(_0x43e66a,_0x42094d[_0x2aadf7(0x21a)],_0xd6bd23['get'](_0x42094d[_0x2aadf7(0x21a)])??'');return _0x43e66a;}function _0x33c337(_0x2dd513){const _0x3538a5=_0x59fbca;var _0x5d7b98;return(_0x2dd513==null?void 0x0:_0x2dd513['rangeType'])===_0x18681b[_0x3538a5(0x2b0)][_0x3538a5(0x2b8)]&&_0x2dd513[_0x3538a5(0x282)]===!0x0&&((_0x5d7b98=_0x2dd513[_0x3538a5(0x2a7)])==null?void 0x0:_0x5d7b98['kind'])==='univer-docs-formula';}function _0x5c3dc6(_0x49b9ab,_0x4d1a83){const _0x59c1d9=_0x59fbca;var _0x2d728b;return _0x49b9ab==null||(_0x2d728b=_0x49b9ab[_0x59c1d9(0x190)])==null?void 0x0:_0x2d728b['find'](_0x46e8c3=>_0x46e8c3[_0x59c1d9(0x21a)]===_0x4d1a83&&_0x33c337(_0x46e8c3));}function _0x298e4c(_0x582917,_0x3fe5cb,_0x30b149){const _0x414a52=_0x59fbca;if(_0x3fe5cb===_0x30b149){if(_0x3f79b9[_0x414a52(0x1a0)](_0x582917[_0x414a52(0x1b6)][_0x3fe5cb]))throw new _0x585510();}else{for(let _0xa9c0f=_0x3fe5cb;_0xa9c0f<_0x30b149;_0xa9c0f++)if(_0x582917['dataStream'][_0xa9c0f]===_0x18681b['DataStreamTreeTokenType'][_0x414a52(0x1cc)]||_0x3f79b9['has'](_0x582917['dataStream'][_0xa9c0f]))throw new _0x585510();}}function _0x3ab237(_0x184c23,_0x239b62){const _0x19967e=_0x59fbca;return{'startIndex':_0x239b62,'endIndex':_0x239b62,'rangeId':_0x184c23,'rangeType':_0x18681b[_0x19967e(0x2b0)][_0x19967e(0x2b8)],'wholeEntity':!0x0,'properties':{'kind':_0x23a021}};}function _0x846dbe(_0x3a044){const _0x48e876=_0x59fbca;return _0x3a044?_0x18681b[_0x48e876(0x2c0)][_0x48e876(0x24a)](_0x3a044):_0x579c9e();}function _0x431231(_0x89ff91,_0xba7899,_0x1eec8c){const _0xd6da0d=_0x59fbca;let _0x3114eb=_0x590532(_0x89ff91),_0x901a92=_0xba7899??_0x3114eb,_0xcb873c=_0x1eec8c??_0x901a92;return{'startOffset':_0x5a8e39(Math[_0xd6da0d(0x1bc)](_0x901a92,_0xcb873c),_0x3114eb),'endOffset':_0x5a8e39(Math[_0xd6da0d(0x1c8)](_0x901a92,_0xcb873c),_0x3114eb)};}function _0x5a8e39(_0x27d2d3,_0x1c5141){const _0x28ef2c=_0x59fbca;return Math[_0x28ef2c(0x1c8)](0x0,Math[_0x28ef2c(0x1bc)](_0x27d2d3,_0x1c5141));}function _0x590532(_0x6e1033){const _0x2602d5=_0x59fbca;return _0x6e1033['dataStream'][_0x2602d5(0x192)](''+_0x18681b['DataStreamTreeTokenType'][_0x2602d5(0x1cc)]+_0x18681b[_0x2602d5(0x1bb)][_0x2602d5(0x1ce)])?Math[_0x2602d5(0x1c8)](0x0,_0x6e1033[_0x2602d5(0x1b6)]['length']-0x2):_0x6e1033[_0x2602d5(0x1b6)][_0x2602d5(0x192)](_0x18681b['DataStreamTreeTokenType'][_0x2602d5(0x1ce)])?Math[_0x2602d5(0x1c8)](0x0,_0x6e1033[_0x2602d5(0x1b6)][_0x2602d5(0x1af)]-0x1):_0x6e1033[_0x2602d5(0x1b6)][_0x2602d5(0x1af)];}function _0x4c77a4(_0x1000a2,_0x596a93,_0x5437c2,_0x20b0e9){_0x5437c2>_0x596a93&&_0x34b130(_0x1000a2,_0x596a93,_0x5437c2),_0xe9d527(_0x1000a2,_0x596a93,_0x20b0e9);}function _0x499d71(_0x2fb53c,_0x3e95ee,_0x3a6989){const _0x58f81c=_0x59fbca;var _0x221130,_0x275384;let _0x146ec5=_0x4a434f(_0x2fb53c),_0x444318=(_0x221130=_0x146ec5[_0x58f81c(0x190)])==null?void 0x0:_0x221130[_0x58f81c(0x255)](_0x56f744=>_0x56f744['rangeId']===_0x3e95ee&&_0x33c337(_0x56f744));if(!_0x444318)return null;let _0x37c586=(0x0,_0x18681b['getCustomRangeInterval'])(_0x444318);return _0x4c77a4(_0x146ec5,_0x37c586[_0x58f81c(0x1e3)],_0x37c586[_0x58f81c(0x21d)],_0x3a6989),_0x146ec5[_0x58f81c(0x190)]=(_0x275384=_0x146ec5[_0x58f81c(0x190)])==null?void 0x0:_0x275384[_0x58f81c(0x1df)](_0x5ad3d5=>_0x5ad3d5[_0x58f81c(0x21a)]!==_0x3e95ee),_0x37c586[_0x58f81c(0x1e3)]+_0x3a6989[_0x58f81c(0x1af)];}function _0xe9d527(_0x428b35,_0x447475,_0x279907){const _0x4d2ea5=_0x59fbca;_0x279907&&(_0x428b35[_0x4d2ea5(0x1b6)]=''+_0x428b35[_0x4d2ea5(0x1b6)][_0x4d2ea5(0x228)](0x0,_0x447475)+_0x279907+_0x428b35[_0x4d2ea5(0x1b6)][_0x4d2ea5(0x228)](_0x447475),_0x53808b(_0x428b35,_0x447475,_0x279907[_0x4d2ea5(0x1af)]));}function _0x34b130(_0x2d2e4e,_0xfce495,_0x619e7){const _0x53372d=_0x59fbca;let _0x4f94f9=_0x619e7-_0xfce495;_0x2d2e4e[_0x53372d(0x1b6)]=''+_0x2d2e4e[_0x53372d(0x1b6)]['slice'](0x0,_0xfce495)+_0x2d2e4e[_0x53372d(0x1b6)][_0x53372d(0x228)](_0x619e7),_0x479d2a(_0x2d2e4e,_0xfce495,_0x4f94f9);}function _0x53808b(_0x3587c4,_0x2cb6c8,_0x2a93e8){const _0xef02d6=_0x59fbca;_0x3587c4[_0xef02d6(0x1fb)]=_0x4b6766(_0x3587c4['paragraphs'],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x1d2)]=_0x4b6766(_0x3587c4[_0xef02d6(0x1d2)],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x27e)]=_0x4b6766(_0x3587c4['customBlocks'],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x219)]=_0x96dcff(_0x3587c4[_0xef02d6(0x219)],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x1cb)]=_0x1fb9e5(_0x3587c4[_0xef02d6(0x1cb)],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x199)]=_0x47b13c(_0x3587c4[_0xef02d6(0x199)],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x190)]=_0x47b13c(_0x3587c4[_0xef02d6(0x190)],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x1f0)]=_0x47b13c(_0x3587c4['customDecorations'],_0x2cb6c8,_0x2a93e8),_0x3587c4[_0xef02d6(0x2b4)]=_0x47b13c(_0x3587c4['blockRanges'],_0x2cb6c8,_0x2a93e8);}function _0x479d2a(_0xc81a2b,_0x25851a,_0x1582df){const _0x3df899=_0x59fbca;var _0x8be2bf,_0xcf71d;_0xc81a2b[_0x3df899(0x1fb)]=_0x38bc2b(_0xc81a2b['paragraphs'],_0x25851a,_0x1582df),_0xc81a2b['sectionBreaks']=_0x38bc2b(_0xc81a2b[_0x3df899(0x1d2)],_0x25851a,_0x1582df),_0xc81a2b['customBlocks']=_0x38bc2b(_0xc81a2b[_0x3df899(0x27e)],_0x25851a,_0x1582df),_0xc81a2b['textRuns']=(_0x8be2bf=_0x9c44df((_0xcf71d=_0xc81a2b[_0x3df899(0x219)])==null?void 0x0:_0xcf71d[_0x3df899(0x198)](_0x205916=>({..._0x205916,'startIndex':_0x205916['st'],'endIndex':_0x205916['ed']})),_0x25851a,_0x1582df))==null?void 0x0:_0x8be2bf[_0x3df899(0x198)](_0x3102de=>{let {startIndex:_0x3101e7,endIndex:_0x2e48b5,..._0x272ce4}=_0x3102de;return{..._0x272ce4,'st':_0x3101e7,'ed':_0x2e48b5};}),_0xc81a2b['tables']=_0x9c44df(_0xc81a2b[_0x3df899(0x1cb)],_0x25851a,_0x1582df),_0xc81a2b['columnGroups']=_0x3cdd5e(_0xc81a2b['columnGroups'],_0x25851a,_0x1582df),_0xc81a2b[_0x3df899(0x190)]=_0x3cdd5e(_0xc81a2b[_0x3df899(0x190)],_0x25851a,_0x1582df),_0xc81a2b[_0x3df899(0x1f0)]=_0x3cdd5e(_0xc81a2b[_0x3df899(0x1f0)],_0x25851a,_0x1582df),_0xc81a2b['blockRanges']=_0x3cdd5e(_0xc81a2b[_0x3df899(0x2b4)],_0x25851a,_0x1582df);}function _0x4b6766(_0x21dda5,_0xb97bed,_0x589e9b){const _0x52cb8d=_0x59fbca;return _0x21dda5==null?void 0x0:_0x21dda5[_0x52cb8d(0x198)](_0x52afa2=>_0x52afa2[_0x52cb8d(0x240)]>=_0xb97bed?{..._0x52afa2,'startIndex':_0x52afa2[_0x52cb8d(0x240)]+_0x589e9b}:_0x52afa2);}function _0x38bc2b(_0x339fb9,_0x5c716d,_0xf0cb9d){const _0x23b15f=_0x59fbca;let _0x5d287f=_0x5c716d+_0xf0cb9d;return _0x339fb9==null?void 0x0:_0x339fb9[_0x23b15f(0x198)](_0x444fcc=>_0x444fcc['startIndex']>=_0x5c716d&&_0x444fcc[_0x23b15f(0x240)]<_0x5d287f?null:_0x444fcc[_0x23b15f(0x240)]>=_0x5d287f?{..._0x444fcc,'startIndex':_0x444fcc[_0x23b15f(0x240)]-_0xf0cb9d}:_0x444fcc)[_0x23b15f(0x1df)](_0x3401a9=>_0x3401a9!=null);}function _0x96dcff(_0x30c524,_0x44ec91,_0x24d49a){return _0x30c524==null?void 0x0:_0x30c524['map'](_0x3cc9d0=>_0x3cc9d0['st']>=_0x44ec91?{..._0x3cc9d0,'st':_0x3cc9d0['st']+_0x24d49a,'ed':_0x3cc9d0['ed']+_0x24d49a}:_0x3cc9d0['ed']>_0x44ec91?{..._0x3cc9d0,'ed':_0x3cc9d0['ed']+_0x24d49a}:_0x3cc9d0);}function _0x47b13c(_0x5e9bcc,_0x51b960,_0x2e9666){const _0x39e3ef=_0x59fbca;return _0x5e9bcc==null?void 0x0:_0x5e9bcc[_0x39e3ef(0x198)](_0x2526ad=>(0x0,_0x18681b[_0x39e3ef(0x28e)])(_0x2526ad,_0x51b960,_0x2e9666));}function _0x1fb9e5(_0x3ca508,_0x9a4ce2,_0x2699d6){const _0x2d5472=_0x59fbca;return _0x3ca508==null?void 0x0:_0x3ca508[_0x2d5472(0x198)](_0x71ba55=>(0x0,_0x18681b[_0x2d5472(0x1be)])(_0x71ba55,_0x9a4ce2,_0x2699d6));}function _0x3cdd5e(_0xb9fce3,_0x217073,_0x5dcc89){const _0x530a09=_0x59fbca;return _0xb9fce3==null?void 0x0:_0xb9fce3[_0x530a09(0x198)](_0x4f05c5=>(0x0,_0x18681b[_0x530a09(0x279)])(_0x4f05c5,_0x217073,_0x5dcc89))[_0x530a09(0x1df)](_0x4393df=>_0x4393df!=null);}function _0x9c44df(_0x244cf1,_0x383d2,_0x2c3209){const _0x389348=_0x59fbca;return _0x244cf1==null?void 0x0:_0x244cf1[_0x389348(0x198)](_0x19d97a=>(0x0,_0x18681b['shiftExclusiveRangeOnDelete'])(_0x19d97a,_0x383d2,_0x2c3209))[_0x389348(0x1df)](_0x2ffed1=>_0x2ffed1!=null);}function _0x4a434f(_0x5812b8){const _0x444a6a=_0x59fbca;if(!_0x5812b8['body'])throw Error(_0x444a6a(0x1ba));return _0x5812b8[_0x444a6a(0x1fc)];}function _0x2ed3d7(_0x29234a){'@babel/helpers - typeof';const _0x570160=_0x59fbca;return _0x2ed3d7=typeof Symbol=='function'&&typeof Symbol[_0x570160(0x2a2)]==_0x570160(0x197)?function(_0x33753c){return typeof _0x33753c;}:function(_0x9516d9){const _0x139435=_0x570160;return _0x9516d9&&typeof Symbol==_0x139435(0x19f)&&_0x9516d9[_0x139435(0x1de)]===Symbol&&_0x9516d9!==Symbol[_0x139435(0x1ec)]?_0x139435(0x197):typeof _0x9516d9;},_0x2ed3d7(_0x29234a);}function _0x1816e8(_0x2dc33d,_0xc23a11){const _0xfb239b=_0x59fbca;if(_0x2ed3d7(_0x2dc33d)!=_0xfb239b(0x1b2)||!_0x2dc33d)return _0x2dc33d;var _0x44e362;if(typeof Symbol<'u'&&(_0x44e362=_0x2dc33d[Symbol['toPrimitive']])!==void 0x0){var _0x361d9d=_0x44e362[_0xfb239b(0x26c)](_0x2dc33d,_0xc23a11||_0xfb239b(0x25b));if(_0x2ed3d7(_0x361d9d)!=_0xfb239b(0x1b2))return _0x361d9d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xc23a11===_0xfb239b(0x1f4)?String:Number)(_0x2dc33d);}function _0x555b42(_0x1a5300){const _0x4159ca=_0x59fbca;var _0x462659=_0x1816e8(_0x1a5300,'string');return _0x2ed3d7(_0x462659)==_0x4159ca(0x197)?_0x462659:_0x462659+'';}function _0x789546(_0x271eb0,_0x1e16d4,_0x58aa5e){const _0xe00c11=_0x59fbca;return(_0x1e16d4=_0x555b42(_0x1e16d4))in _0x271eb0?Object[_0xe00c11(0x187)](_0x271eb0,_0x1e16d4,{'value':_0x58aa5e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x271eb0[_0x1e16d4]=_0x58aa5e,_0x271eb0;}var _0x6bb1d3=class extends _0x18681b[_0x59fbca(0x196)]{constructor(..._0x20576b){const _0x23708d=_0x59fbca;super(..._0x20576b),_0x789546(this,_0x23708d(0x23a),new Map()),_0x789546(this,_0x23708d(0x26e),new Map()),_0x789546(this,'_loadErrors',new Map()),_0x789546(this,_0x23708d(0x231),new _0x243dde['Subject']()),_0x789546(this,'change$',this['_change$']['asObservable']());}[_0x59fbca(0x2aa)](_0x65a7d5,_0x3e8c95){const _0x1c2444=_0x59fbca;var _0x4a4ef4;let _0xe543a5=(_0x4a4ef4=this['_resources'][_0x1c2444(0x20c)](_0x65a7d5))==null?void 0x0:_0x4a4ef4['formulas'][_0x3e8c95];return _0xe543a5?_0x18681b['Tools']['deepClone'](_0xe543a5):void 0x0;}[_0x59fbca(0x263)](_0x4aec4a){const _0x143900=_0x59fbca;var _0x391561;return _0x18681b[_0x143900(0x2c0)][_0x143900(0x24a)](((_0x391561=this[_0x143900(0x23a)][_0x143900(0x20c)](_0x4aec4a))==null?void 0x0:_0x391561[_0x143900(0x1c5)])??{});}[_0x59fbca(0x286)](_0x2750e3){const _0x5c99c8=_0x59fbca;let _0x14a630=this[_0x5c99c8(0x23a)][_0x5c99c8(0x20c)](_0x2750e3);return _0x14a630?_0x18681b['Tools'][_0x5c99c8(0x24a)](_0x14a630):void 0x0;}['setFormula'](_0x2b83f7,_0x1f1cd7,_0x534954){const _0x3f4c75=_0x59fbca;return this[_0x3f4c75(0x1e2)](_0x2b83f7,{[_0x1f1cd7]:_0x534954});}['setResource'](_0x191440,_0x160a62){const _0x597406=_0x59fbca;return this['_loadErrors']['has'](_0x191440)||!_0x43dbc1(_0x160a62)?!0x1:(this['_resources'][_0x597406(0x1da)](_0x191440,{'formulas':_0x18681b[_0x597406(0x2c0)][_0x597406(0x24a)](_0x160a62[_0x597406(0x1c5)])}),this[_0x597406(0x231)]['next']({'unitId':_0x191440}),!0x0);}[_0x59fbca(0x1e2)](_0x2ad3a4,_0x3aed43){const _0x4b68aa=_0x59fbca;if(this[_0x4b68aa(0x290)][_0x4b68aa(0x1a0)](_0x2ad3a4)||!Object['keys'](_0x3aed43)[_0x4b68aa(0x1af)]||!_0x43dbc1({'formulas':_0x3aed43}))return!0x1;let _0x2418aa=this[_0x4b68aa(0x23a)][_0x4b68aa(0x20c)](_0x2ad3a4)??_0x579c9e(),_0x2b2934=_0x18681b['Tools'][_0x4b68aa(0x24a)](_0x2418aa);return Object[_0x4b68aa(0x1ea)](_0x2b2934[_0x4b68aa(0x1c5)],_0x18681b[_0x4b68aa(0x2c0)][_0x4b68aa(0x24a)](_0x3aed43)),this['_resources'][_0x4b68aa(0x1da)](_0x2ad3a4,_0x2b2934),this[_0x4b68aa(0x231)][_0x4b68aa(0x1a1)]({'unitId':_0x2ad3a4,'rangeIds':Object[_0x4b68aa(0x275)](_0x3aed43)}),!0x0;}[_0x59fbca(0x210)](_0x50aef1,_0x5f30b3){const _0x46bc8a=_0x59fbca;if(this['_loadErrors'][_0x46bc8a(0x1a0)](_0x50aef1))return!0x1;let _0x230aa5=this['_resources']['get'](_0x50aef1);if(!(_0x230aa5!=null&&_0x230aa5[_0x46bc8a(0x1c5)][_0x5f30b3]))return!0x1;let _0x4059cd=_0x18681b[_0x46bc8a(0x2c0)]['deepClone'](_0x230aa5);return delete _0x4059cd[_0x46bc8a(0x1c5)][_0x5f30b3],this['_resources'][_0x46bc8a(0x1da)](_0x50aef1,_0x4059cd),this[_0x46bc8a(0x231)]['next']({'unitId':_0x50aef1,'rangeIds':[_0x5f30b3]}),!0x0;}['load'](_0x5637df,_0x5e3296){const _0x4f2060=_0x59fbca;return _0x43dbc1(_0x5e3296)?(this[_0x4f2060(0x23a)][_0x4f2060(0x1da)](_0x5637df,{'formulas':_0x18681b['Tools'][_0x4f2060(0x24a)](_0x5e3296[_0x4f2060(0x1c5)])}),this['_rawResources'][_0x4f2060(0x297)](_0x5637df),this[_0x4f2060(0x290)][_0x4f2060(0x297)](_0x5637df),this['_change$'][_0x4f2060(0x1a1)]({'unitId':_0x5637df}),!0x0):(this[_0x4f2060(0x25f)](_0x5637df,_0x5e3296,'invalid-resource'),!0x1);}['serialize'](_0x177618){const _0x3d9b4c=_0x59fbca;let _0x2a6eb9=this['_resources']['get'](_0x177618);return _0x2a6eb9?_0x18681b[_0x3d9b4c(0x2c0)]['deepClone'](_0x2a6eb9):this[_0x3d9b4c(0x26e)]['has'](_0x177618)?_0x18681b['Tools'][_0x3d9b4c(0x24a)](this[_0x3d9b4c(0x26e)]['get'](_0x177618)):_0x579c9e();}[_0x59fbca(0x18e)](_0x100ca4){const _0xa52349=_0x59fbca;return this[_0xa52349(0x290)][_0xa52349(0x20c)](_0x100ca4);}[_0x59fbca(0x260)](_0x565018){const _0x2eeda4=_0x59fbca;this[_0x2eeda4(0x23a)]['delete'](_0x565018),this['_rawResources']['delete'](_0x565018),this[_0x2eeda4(0x290)][_0x2eeda4(0x297)](_0x565018),this['_change$'][_0x2eeda4(0x1a1)]({'unitId':_0x565018});}['dispose'](){const _0x19b93b=_0x59fbca;this[_0x19b93b(0x23a)]['clear'](),this['_rawResources'][_0x19b93b(0x220)](),this['_loadErrors'][_0x19b93b(0x220)](),this[_0x19b93b(0x231)]['complete'](),super[_0x19b93b(0x19b)]();}['_preserveInvalid'](_0x583787,_0x5d5c2f,_0x18902a){const _0xaea2d6=_0x59fbca;this[_0xaea2d6(0x23a)][_0xaea2d6(0x297)](_0x583787),this[_0xaea2d6(0x26e)][_0xaea2d6(0x1da)](_0x583787,_0x18681b[_0xaea2d6(0x2c0)]['deepClone'](_0x5d5c2f)),this[_0xaea2d6(0x290)]['set'](_0x583787,_0x18902a),this['_change$']['next']({'unitId':_0x583787});}};let _0x197e77=function(_0x2a7fda){const _0x56562f=_0x59fbca;return _0x2a7fda[_0x56562f(0x256)]=_0x56562f(0x1f2),_0x2a7fda[_0x56562f(0x20a)]=_0x56562f(0x208),_0x2a7fda['SUCCESS']='success',_0x2a7fda[_0x56562f(0x1ed)]=_0x56562f(0x234),_0x2a7fda;}({});function _0x3817b7(_0x5e66fb,_0x37176f){return function(_0x586459,_0xd3dbe6){_0x37176f(_0x586459,_0xd3dbe6,_0x5e66fb);};}function _0xeee809(_0x363923,_0x6f5323,_0x5b3564,_0x5b5fbd){const _0x3a98ac=_0x59fbca;var _0x2db515=arguments[_0x3a98ac(0x1af)],_0x1393d8=_0x2db515<0x3?_0x6f5323:_0x5b5fbd===null?_0x5b5fbd=Object[_0x3a98ac(0x244)](_0x6f5323,_0x5b3564):_0x5b5fbd,_0x129fc6;if(typeof Reflect==_0x3a98ac(0x1b2)&&typeof Reflect[_0x3a98ac(0x22a)]=='function')_0x1393d8=Reflect[_0x3a98ac(0x22a)](_0x363923,_0x6f5323,_0x5b3564,_0x5b5fbd);else{for(var _0x2dadc0=_0x363923[_0x3a98ac(0x1af)]-0x1;_0x2dadc0>=0x0;_0x2dadc0--)(_0x129fc6=_0x363923[_0x2dadc0])&&(_0x1393d8=(_0x2db515<0x3?_0x129fc6(_0x1393d8):_0x2db515>0x3?_0x129fc6(_0x6f5323,_0x5b3564,_0x1393d8):_0x129fc6(_0x6f5323,_0x5b3564))||_0x1393d8);}return _0x2db515>0x3&&_0x1393d8&&Object[_0x3a98ac(0x187)](_0x6f5323,_0x5b3564,_0x1393d8),_0x1393d8;}let _0x237c2a=class extends _0x18681b[_0x59fbca(0x196)]{constructor(_0x598e29,_0x1e25ff,_0x4b5ed3){const _0x17de7d=_0x59fbca;super(),this[_0x17de7d(0x2bf)]=_0x598e29,this[_0x17de7d(0x23e)]=_0x1e25ff,this[_0x17de7d(0x2a0)]=_0x4b5ed3,_0x789546(this,'_registrations',new Map()),_0x789546(this,_0x17de7d(0x1a9),new Map()),_0x789546(this,_0x17de7d(0x27c),new _0x243dde['Subject']()),_0x789546(this,'presentationChanged$',this[_0x17de7d(0x27c)][_0x17de7d(0x1b8)]()),this[_0x17de7d(0x1e1)](this[_0x17de7d(0x23e)]['formulaResult$'][_0x17de7d(0x2ad)](_0x5007ee=>{const _0x3f42be=_0x17de7d;for(let _0xed2329 of Object['values'](_0x5007ee))for(let _0x4247e5 of Object[_0x3f42be(0x21c)](_0xed2329))_0x4247e5[_0x3f42be(0x218)](_0x261bb7=>this[_0x3f42be(0x2b7)](_0x261bb7));}));}[_0x59fbca(0x266)](_0x514949){const _0x4d2f46=_0x59fbca;var _0x1da12a;let _0x3e0e5a=_0x514949[_0x4d2f46(0x2b6)](),_0x7268c3=((_0x1da12a=_0x514949[_0x4d2f46(0x1aa)]()[_0x4d2f46(0x1fc)])==null||(_0x1da12a=_0x1da12a[_0x4d2f46(0x190)])==null?void 0x0:_0x1da12a[_0x4d2f46(0x1df)](_0x33c337))??[],_0x45c20e=this[_0x4d2f46(0x2bf)][_0x4d2f46(0x263)](_0x3e0e5a),_0x3b8bd2=new Set();for(let _0x376724 of _0x7268c3){let _0x80072a=_0x45c20e[_0x376724[_0x4d2f46(0x21a)]];_0x80072a&&(_0x3b8bd2[_0x4d2f46(0x193)](_0x200b70(_0x3e0e5a,_0x376724['rangeId'])),this[_0x4d2f46(0x2c2)]({'unitId':_0x3e0e5a,'rangeId':_0x376724['rangeId']},_0x80072a));}for(let _0x12c3ba of Array[_0x4d2f46(0x25c)](this[_0x4d2f46(0x2a6)]['values']()))_0x12c3ba[_0x4d2f46(0x2a3)]===_0x3e0e5a&&!_0x3b8bd2[_0x4d2f46(0x1a0)](_0x200b70(_0x12c3ba[_0x4d2f46(0x2a3)],_0x12c3ba[_0x4d2f46(0x21a)]))&&this[_0x4d2f46(0x2a9)](_0x12c3ba);}[_0x59fbca(0x2c2)](_0x4dffb8,_0x106533){const _0x43692c=_0x59fbca;let _0x3fc35e=_0x200b70(_0x4dffb8[_0x43692c(0x2a3)],_0x4dffb8[_0x43692c(0x21a)]),_0x5d23fd=this[_0x43692c(0x2a6)][_0x43692c(0x20c)](_0x3fc35e),_0x1ff45d=this['_hostExternalReferenceModel'][_0x43692c(0x28f)](_0x4dffb8[_0x43692c(0x2a3)]);if(_0x5d23fd&&_0x5d23fd[_0x43692c(0x19c)][_0x43692c(0x267)]===_0x106533[_0x43692c(0x267)]&&_0x5d23fd[_0x43692c(0x1b7)]===_0x1ff45d){_0x5d23fd[_0x43692c(0x19c)]=_0x106533;let _0x13f4be=_0x5d23fd[_0x43692c(0x274)]?this[_0x43692c(0x23e)][_0x43692c(0x261)](_0x5d23fd['unitId'],_0x5d23fd['unitId'],_0x5d23fd[_0x43692c(0x274)])??void 0x0:void 0x0;_0x5d23fd[_0x43692c(0x1ac)]=_0x13f4be,this['_setPresentation'](_0x3fc35e,_0x141d10(_0x106533,_0x13f4be));return;}_0x5d23fd!=null&&_0x5d23fd[_0x43692c(0x274)]&&this[_0x43692c(0x22f)](_0x5d23fd);let _0x1869e0={..._0x4dffb8,'config':_0x106533,'referenceRevision':_0x1ff45d,'presentation':_0x141d10(_0x106533,void 0x0)};if(this[_0x43692c(0x2a6)][_0x43692c(0x1da)](_0x3fc35e,_0x1869e0),!_0x106533[_0x43692c(0x267)][_0x43692c(0x211)]())return;let _0x39c650=this[_0x43692c(0x23e)][_0x43692c(0x2b5)](_0x4dffb8[_0x43692c(0x2a3)],_0x4dffb8[_0x43692c(0x2a3)],_0x106533[_0x43692c(0x267)],void 0x0,{'rangeId':_0x4dffb8[_0x43692c(0x21a)]},_0x15aa63[_0x43692c(0x224)][_0x43692c(0x292)],_0x4dffb8[_0x43692c(0x21a)]);_0x1869e0['formulaId']=_0x39c650,this[_0x43692c(0x1a9)]['set'](_0x39c650,_0x3fc35e);}['unregister'](_0x2db67a){const _0x2d2bbf=_0x59fbca;let _0x33a497=_0x200b70(_0x2db67a[_0x2d2bbf(0x2a3)],_0x2db67a['rangeId']),_0x3503c5=this['_registrations']['get'](_0x33a497);_0x3503c5&&(this['_deleteRegistration'](_0x3503c5),this[_0x2d2bbf(0x2a6)][_0x2d2bbf(0x297)](_0x33a497));}[_0x59fbca(0x1a6)](_0x130713){const _0x25deda=_0x59fbca;for(let _0x118a4b of Array[_0x25deda(0x25c)](this[_0x25deda(0x2a6)][_0x25deda(0x21c)]()))_0x118a4b[_0x25deda(0x2a3)]===_0x130713&&this[_0x25deda(0x2a9)](_0x118a4b);}['getPresentation'](_0xf5651d){const _0x52cf5d=_0x59fbca;var _0x56536d;return(_0x56536d=this['_registrations'][_0x52cf5d(0x20c)](_0x200b70(_0xf5651d['unitId'],_0xf5651d[_0x52cf5d(0x21a)])))==null?void 0x0:_0x56536d[_0x52cf5d(0x185)];}[_0x59fbca(0x1a5)](_0x3a7eef){const _0x5c0573=_0x59fbca;let _0x2ea6e5=this['_registrations'][_0x5c0573(0x20c)](_0x200b70(_0x3a7eef[_0x5c0573(0x2a3)],_0x3a7eef[_0x5c0573(0x21a)]));return _0x2ea6e5?_0x3e1eee(_0x2ea6e5):void 0x0;}['getRegisteredFormulas'](){const _0x3701b7=_0x59fbca;return Array[_0x3701b7(0x25c)](this[_0x3701b7(0x2a6)]['values'](),_0x36b9f5=>({'identity':{'unitId':_0x36b9f5['unitId'],'rangeId':_0x36b9f5[_0x3701b7(0x21a)]},'config':_0x36b9f5[_0x3701b7(0x19c)],'referenceRevision':_0x36b9f5[_0x3701b7(0x1b7)],..._0x36b9f5['liveResult']?{'liveResult':_0x36b9f5[_0x3701b7(0x1ac)]}:null}));}[_0x59fbca(0x19b)](){const _0x3125e6=_0x59fbca;for(let _0x1ea16a of this[_0x3125e6(0x2a6)][_0x3125e6(0x21c)]())this[_0x3125e6(0x22f)](_0x1ea16a);this['_registrations'][_0x3125e6(0x220)](),this[_0x3125e6(0x1a9)][_0x3125e6(0x220)](),this[_0x3125e6(0x27c)][_0x3125e6(0x24f)](),super[_0x3125e6(0x19b)]();}['_updateFormulaResult'](_0x523825){const _0x16ae59=_0x59fbca;let _0x268eaa=this[_0x16ae59(0x1a9)]['get'](_0x523825[_0x16ae59(0x274)]),_0x24dfd7=_0x268eaa?this[_0x16ae59(0x2a6)][_0x16ae59(0x20c)](_0x268eaa):void 0x0;_0x268eaa&&_0x24dfd7&&(_0x24dfd7[_0x16ae59(0x1ac)]=_0x523825,this[_0x16ae59(0x2ba)](_0x268eaa,_0x141d10(_0x24dfd7[_0x16ae59(0x19c)],_0x523825)));}[_0x59fbca(0x2ba)](_0x4cf612,_0x5d0d3a){const _0xff75ff=_0x59fbca;var _0x6e0b16,_0x3e7ffe;let _0x37deff=this[_0xff75ff(0x2a6)]['get'](_0x4cf612);if(!_0x37deff||_0x5ba123(_0x37deff[_0xff75ff(0x185)],_0x5d0d3a))return;let _0x2c76be=_0x37deff['presentation'],_0x22d9c5=_0x3e1eee(_0x37deff);_0x37deff[_0xff75ff(0x185)]=_0x5d0d3a,this['_presentationChanged$'][_0xff75ff(0x1a1)]({'unitId':_0x37deff[_0xff75ff(0x2a3)],'rangeId':_0x37deff[_0xff75ff(0x21a)],'presentation':_0x5d0d3a,'previousPresentation':_0x2c76be,'result':_0x3e1eee(_0x37deff),'previousResult':{..._0x22d9c5,..._0x2c76be,'value':(_0x6e0b16=_0x2c76be[_0xff75ff(0x258)])==null?void 0x0:_0x6e0b16['v'],'valueType':((_0x3e7ffe=_0x2c76be[_0xff75ff(0x258)])==null?void 0x0:_0x3e7ffe['t'])??void 0x0}});}[_0x59fbca(0x22f)](_0x1b05f1){const _0x4804d8=_0x59fbca;_0x1b05f1[_0x4804d8(0x274)]&&(this['_registrationService']['deleteFormula'](_0x1b05f1['unitId'],_0x1b05f1[_0x4804d8(0x2a3)],[_0x1b05f1[_0x4804d8(0x274)]]),this['_formulaKeys']['delete'](_0x1b05f1[_0x4804d8(0x274)]));}};_0x237c2a=_0xeee809([_0x3817b7(0x0,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x6bb1d3)),_0x3817b7(0x1,(0x0,_0x18681b['Inject'])(_0x15aa63[_0x59fbca(0x237)])),_0x3817b7(0x2,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x3b755e[_0x59fbca(0x188)]))],_0x237c2a);function _0x200b70(_0x2d110e,_0x17c22e){return _0x2d110e+'\x00'+_0x17c22e;}function _0x141d10(_0x42372a,_0xdef6f5){const _0x34723e=_0x59fbca;return(0x0,_0x3b755e[_0x34723e(0x1b5)])({'numberFormat':_0x42372a[_0x34723e(0x1fd)],'lastValue':_0x42372a[_0x34723e(0x1e0)],'result':_0xdef6f5});}function _0x3e1eee(_0x795a17){const _0x50cda1=_0x59fbca;var _0x204f82,_0x10deb0,_0x215610;let _0x4762be=_0x795a17[_0x50cda1(0x185)],_0x52b0af=_0x795a17['config'][_0x50cda1(0x267)][_0x50cda1(0x211)]()?_0x4762be[_0x50cda1(0x24d)]||_0x4762be[_0x50cda1(0x258)]==null?_0x50cda1(0x208):((_0x204f82=_0x795a17[_0x50cda1(0x1ac)])==null?void 0x0:_0x204f82[_0x50cda1(0x207)])===_0x15aa63[_0x50cda1(0x271)][_0x50cda1(0x1ed)]?_0x50cda1(0x234):_0x50cda1(0x181):_0x50cda1(0x1f2);return{..._0x4762be,'status':_0x52b0af,'value':(_0x10deb0=_0x4762be[_0x50cda1(0x258)])==null?void 0x0:_0x10deb0['v'],'valueType':((_0x215610=_0x4762be[_0x50cda1(0x258)])==null?void 0x0:_0x215610['t'])??void 0x0};}function _0x5ba123(_0x17a53c,_0x402e4b){const _0x52254b=_0x59fbca;var _0x1a4d84,_0x368f93,_0x4e022a,_0x7e570c;return _0x17a53c[_0x52254b(0x2b3)]===_0x402e4b[_0x52254b(0x2b3)]&&_0x17a53c[_0x52254b(0x246)]===_0x402e4b[_0x52254b(0x246)]&&_0x17a53c[_0x52254b(0x22d)]===_0x402e4b['pattern']&&_0x17a53c['source']===_0x402e4b[_0x52254b(0x2ac)]&&_0x17a53c[_0x52254b(0x24d)]===_0x402e4b[_0x52254b(0x24d)]&&((_0x1a4d84=_0x17a53c[_0x52254b(0x258)])==null?void 0x0:_0x1a4d84['t'])===((_0x368f93=_0x402e4b[_0x52254b(0x258)])==null?void 0x0:_0x368f93['t'])&&Object['is']((_0x4e022a=_0x17a53c[_0x52254b(0x258)])==null?void 0x0:_0x4e022a['v'],(_0x7e570c=_0x402e4b[_0x52254b(0x258)])==null?void 0x0:_0x7e570c['v']);}let _0x8d24fd={'id':'docs-formula.mutation.set-formula','type':_0x18681b[_0x59fbca(0x200)][_0x59fbca(0x2bc)],'handler':(_0x4cabee,_0x18e75f)=>!(_0x18e75f!=null&&_0x18e75f[_0x59fbca(0x2a3)])||!_0x18e75f['rangeId']||!_0x18e75f[_0x59fbca(0x19c)]?!0x1:_0x4cabee[_0x59fbca(0x20c)](_0x6bb1d3)['setFormula'](_0x18e75f['unitId'],_0x18e75f['rangeId'],_0x18e75f[_0x59fbca(0x19c)])},_0x1d181={'id':_0x59fbca(0x216),'type':_0x18681b['CommandType']['MUTATION'],'handler':(_0x3ec357,_0x58ad8f)=>!(_0x58ad8f!=null&&_0x58ad8f[_0x59fbca(0x2a3)])||!_0x58ad8f[_0x59fbca(0x21a)]?!0x1:_0x3ec357[_0x59fbca(0x20c)](_0x6bb1d3)[_0x59fbca(0x210)](_0x58ad8f['unitId'],_0x58ad8f[_0x59fbca(0x21a)])},_0x44d06f={'id':_0x59fbca(0x2bd),'type':_0x18681b[_0x59fbca(0x200)][_0x59fbca(0x2bc)],'handler':(_0x54a8a7,_0x30417b)=>!(_0x30417b!=null&&_0x30417b[_0x59fbca(0x2a3)])||!_0x30417b[_0x59fbca(0x22b)]?!0x1:_0x54a8a7[_0x59fbca(0x20c)](_0x6bb1d3)[_0x59fbca(0x222)](_0x30417b[_0x59fbca(0x2a3)],_0x30417b[_0x59fbca(0x22b)])},_0xd5dd00={'id':'docs-formula.mutation.set-last-values','type':_0x18681b[_0x59fbca(0x200)][_0x59fbca(0x2bc)],'handler':(_0x3f7deb,_0x559a56)=>{const _0xdecfb0=_0x59fbca;if(!(_0x559a56!=null&&_0x559a56[_0xdecfb0(0x2a3)])||!_0x559a56[_0xdecfb0(0x2c3)][_0xdecfb0(0x1af)])return!0x1;let _0x1444e3=_0x3f7deb[_0xdecfb0(0x20c)](_0x6bb1d3),_0x289cc8=_0x3f7deb['get'](_0x3b755e['HostExternalReferenceModel']),_0x3d6f47=_0x1444e3[_0xdecfb0(0x286)](_0x559a56['unitId']);if(!_0x3d6f47)return!0x1;let _0xf9f535=_0x18681b[_0xdecfb0(0x2c0)][_0xdecfb0(0x24a)](_0x3d6f47),_0x579279=!0x1;for(let _0x4d3f38 of _0x559a56[_0xdecfb0(0x2c3)]){var _0x1a6e14,_0x5b8ff5,_0x5d18f8,_0x17f34e;let _0x21effa=_0xf9f535[_0xdecfb0(0x1c5)][_0x4d3f38['rangeId']];_0x21effa&&_0x21effa[_0xdecfb0(0x267)]===_0x4d3f38[_0xdecfb0(0x20d)]&&((_0x1a6e14=_0x21effa[_0xdecfb0(0x1fd)])==null?void 0x0:_0x1a6e14[_0xdecfb0(0x22d)])===_0x4d3f38['expectedNumberFormat']&&_0x289cc8[_0xdecfb0(0x28f)](_0x559a56['unitId'])===_0x4d3f38[_0xdecfb0(0x20e)]&&(((_0x5b8ff5=_0x21effa[_0xdecfb0(0x1e0)])==null?void 0x0:_0x5b8ff5['v'])!==_0x4d3f38[_0xdecfb0(0x1e0)]['v']||((_0x5d18f8=_0x21effa[_0xdecfb0(0x1e0)])==null?void 0x0:_0x5d18f8['t'])!==_0x4d3f38['lastValue']['t']||((_0x17f34e=_0x21effa[_0xdecfb0(0x1e0)])==null?void 0x0:_0x17f34e[_0xdecfb0(0x22d)])!==_0x4d3f38['lastValue'][_0xdecfb0(0x22d)])&&(_0x21effa[_0xdecfb0(0x1e0)]=_0x18681b[_0xdecfb0(0x2c0)][_0xdecfb0(0x24a)](_0x4d3f38['lastValue']),_0x579279=!0x0);}return!_0x579279||_0x1444e3[_0xdecfb0(0x222)](_0x559a56[_0xdecfb0(0x2a3)],_0xf9f535);}},_0x5f4f4a={'id':_0x59fbca(0x18f),'type':_0x18681b['CommandType'][_0x59fbca(0x205)],'handler':(_0xaaea86,_0x2787a6)=>{const _0x48b4c9=_0x59fbca;if(!(_0x2787a6!=null&&_0x2787a6[_0x48b4c9(0x267)][_0x48b4c9(0x211)]()))return!0x1;let _0x302397=_0x575e6b(_0xaaea86,_0x2787a6[_0x48b4c9(0x2a3)],'');if(!_0x302397)return!0x1;let _0x35462d=_0x4764fc(_0x2787a6[_0x48b4c9(0x236)],_0x302397[_0x48b4c9(0x1fc)],_0x2ce5fd(_0xaaea86,_0x302397[_0x48b4c9(0x2a3)]));if(!_0x35462d)return!0x1;let _0x4791fc=_0x518d3f(_0xaaea86,_0x302397[_0x48b4c9(0x2a3)],_0x2787a6[_0x48b4c9(0x267)],_0x2787a6[_0x48b4c9(0x19a)]??[]);if(!_0x4791fc)return!0x1;let _0x39c98b=_0x10ed96(_0x302397['body'],_0x302397[_0x48b4c9(0x20b)],_0x302397[_0x48b4c9(0x2a3)]),_0x56cf10=_0x55184c({'documentData':_0x302397['documentData'],'resource':_0x302397['resource'],'rangeId':_0x39c98b,'config':{'formula':_0x2787a6[_0x48b4c9(0x267)],..._0x2787a6['numberFormat']?{'numberFormat':_0x2787a6[_0x48b4c9(0x1fd)]}:null},'startOffset':_0x35462d[_0x48b4c9(0x1e3)],'endOffset':_0x35462d[_0x48b4c9(0x21d)]});if(!_0x56cf10)return!0x1;let _0x3435ce=(0x0,_0x3b755e[_0x48b4c9(0x1bf)])(_0xaaea86,_0x302397[_0x48b4c9(0x2a3)],_0x4791fc);return!_0x3435ce||!_0x3b796c({'accessor':_0xaaea86,'document':_0x302397[_0x48b4c9(0x2af)],'unitId':_0x302397[_0x48b4c9(0x2a3)],'trigger':_0x5f4f4a['id'],'rangeId':_0x39c98b,'previousResource':_0x302397['resource'],'nextResource':_0x56cf10[_0x48b4c9(0x1ff)],'previousDocumentData':_0x302397[_0x48b4c9(0x201)],'nextDocumentData':_0x56cf10[_0x48b4c9(0x1e5)],'cursorOffset':_0x56cf10['cursorOffset'],'externalMutations':_0x3435ce})?!0x1:{'rangeId':_0x39c98b,'startOffset':_0x56cf10[_0x48b4c9(0x1ae)]-0x1,'endOffset':_0x56cf10['cursorOffset']};}},_0x959480={'id':_0x59fbca(0x27f),'type':_0x18681b[_0x59fbca(0x200)][_0x59fbca(0x205)],'handler':(_0x1faeee,_0x335e30)=>{const _0x31b836=_0x59fbca;if(!(_0x335e30!=null&&_0x335e30[_0x31b836(0x21a)])||!_0x335e30[_0x31b836(0x267)][_0x31b836(0x211)]())return!0x1;let _0x21f21e=_0x575e6b(_0x1faeee,_0x335e30[_0x31b836(0x2a3)],''),_0x1ad52c=_0x21f21e==null?void 0x0:_0x21f21e[_0x31b836(0x20b)][_0x31b836(0x2aa)](_0x21f21e[_0x31b836(0x2a3)],_0x335e30[_0x31b836(0x21a)]),_0x2e31ee=_0x21f21e?_0x5c3dc6(_0x21f21e[_0x31b836(0x201)]['body'],_0x335e30[_0x31b836(0x21a)]):void 0x0;if(!_0x21f21e||!_0x1ad52c||!_0x2e31ee)return!0x1;let _0x34a9a7=_0x518d3f(_0x1faeee,_0x21f21e['unitId'],_0x335e30[_0x31b836(0x267)],_0x335e30[_0x31b836(0x19a)]??[]);if(!_0x34a9a7)return!0x1;let _0x18c2f8=(0x0,_0x3b755e[_0x31b836(0x1bf)])(_0x1faeee,_0x21f21e[_0x31b836(0x2a3)],_0x34a9a7);if(!_0x18c2f8)return!0x1;let _0xc2f9c1=_0x37369a(_0x21f21e['resource']);return _0xc2f9c1[_0x31b836(0x1c5)][_0x335e30[_0x31b836(0x21a)]]={'formula':_0x335e30[_0x31b836(0x267)],..._0x335e30[_0x31b836(0x1fd)]?{'numberFormat':_0x335e30[_0x31b836(0x1fd)]}:_0x1ad52c['numberFormat']?{'numberFormat':_0x1ad52c[_0x31b836(0x1fd)]}:null},_0x3b796c({'accessor':_0x1faeee,'document':_0x21f21e['document'],'unitId':_0x21f21e[_0x31b836(0x2a3)],'trigger':_0x959480['id'],'rangeId':_0x335e30[_0x31b836(0x21a)],'previousResource':_0x21f21e[_0x31b836(0x22b)],'nextResource':_0xc2f9c1,'cursorOffset':_0x2e31ee['endIndex']+0x1,'externalMutations':_0x18c2f8});}},_0x30ab56={'id':'docs-formula.command.set-number-format','type':_0x18681b['CommandType'][_0x59fbca(0x205)],'handler':(_0xba0882,_0x574e78)=>{const _0x34e1ff=_0x59fbca;if(!(_0x574e78!=null&&_0x574e78[_0x34e1ff(0x21a)]))return!0x1;let _0x4ed134=_0x575e6b(_0xba0882,_0x574e78['unitId'],''),_0x4647fa=_0x4ed134==null?void 0x0:_0x4ed134[_0x34e1ff(0x20b)]['getFormula'](_0x4ed134[_0x34e1ff(0x2a3)],_0x574e78[_0x34e1ff(0x21a)]),_0x303be8=_0x4ed134?_0x5c3dc6(_0x4ed134[_0x34e1ff(0x201)][_0x34e1ff(0x1fc)],_0x574e78[_0x34e1ff(0x21a)]):void 0x0;if(!_0x4ed134||!_0x4647fa||!_0x303be8)return!0x1;let _0x5a2eee=_0x37369a(_0x4ed134[_0x34e1ff(0x22b)]);return _0x5a2eee[_0x34e1ff(0x1c5)][_0x574e78['rangeId']]={..._0x4647fa,..._0x574e78[_0x34e1ff(0x1fd)]?{'numberFormat':_0x574e78[_0x34e1ff(0x1fd)]}:null},_0x574e78[_0x34e1ff(0x1fd)]||delete _0x5a2eee[_0x34e1ff(0x1c5)][_0x574e78[_0x34e1ff(0x21a)]][_0x34e1ff(0x1fd)],_0x3b796c({'accessor':_0xba0882,'document':_0x4ed134[_0x34e1ff(0x2af)],'unitId':_0x4ed134[_0x34e1ff(0x2a3)],'trigger':_0x30ab56['id'],'rangeId':_0x574e78['rangeId'],'previousResource':_0x4ed134[_0x34e1ff(0x22b)],'nextResource':_0x5a2eee,'cursorOffset':_0x303be8['endIndex']+0x1,'externalMutations':{}});}},_0x305532={'id':_0x59fbca(0x2c5),'type':_0x18681b['CommandType'][_0x59fbca(0x205)],'handler':(_0x2d9c6b,_0x29c9c7)=>_0x740396(_0x2d9c6b,_0x29c9c7,'',_0x305532['id'])},_0x50ce8b={'id':_0x59fbca(0x2ab),'type':_0x18681b[_0x59fbca(0x200)][_0x59fbca(0x205)],'handler':(_0x4ef393,_0x4b20e4)=>_0x740396(_0x4ef393,_0x4b20e4,(_0x4b20e4==null?void 0x0:_0x4b20e4['text'])??'',_0x50ce8b['id'])},_0x5afbac={'id':'docs-formula.command.convert-to-text','type':_0x18681b[_0x59fbca(0x200)]['COMMAND'],'handler':(_0x37e098,_0x51eb59)=>{const _0x329f61=_0x59fbca;if(!(_0x51eb59!=null&&_0x51eb59['rangeId']))return!0x1;let _0x3c4c52=_0x575e6b(_0x37e098,_0x51eb59[_0x329f61(0x2a3)],'');if(!_0x3c4c52)return!0x1;let _0x34f9c8=_0x37e098[_0x329f61(0x20c)](_0x237c2a)[_0x329f61(0x1a5)]({'unitId':_0x3c4c52[_0x329f61(0x2a3)],'rangeId':_0x51eb59['rangeId']});return _0x34f9c8?_0x740396(_0x37e098,_0x51eb59,_0x34f9c8[_0x329f61(0x2b3)],_0x5afbac['id']):!0x1;}};function _0x740396(_0x4f57cf,_0x121569,_0x6f246,_0x18c0d2){const _0x34d3cb=_0x59fbca;if(!(_0x121569!=null&&_0x121569[_0x34d3cb(0x21a)]))return!0x1;let _0x4d4f01=_0x575e6b(_0x4f57cf,_0x121569['unitId'],'');if(!_0x4d4f01)return!0x1;let _0x407ba9=_0x15978c({'documentData':_0x4d4f01['documentData'],'resource':_0x4d4f01[_0x34d3cb(0x22b)],'rangeId':_0x121569[_0x34d3cb(0x21a)],'text':_0x6f246});return _0x407ba9?_0x3b796c({'accessor':_0x4f57cf,'document':_0x4d4f01['document'],'unitId':_0x4d4f01[_0x34d3cb(0x2a3)],'trigger':_0x18c0d2,'rangeId':_0x121569[_0x34d3cb(0x21a)],'previousResource':_0x4d4f01[_0x34d3cb(0x22b)],'nextResource':_0x407ba9[_0x34d3cb(0x1ff)],'previousDocumentData':_0x4d4f01[_0x34d3cb(0x201)],'nextDocumentData':_0x407ba9[_0x34d3cb(0x1e5)],'cursorOffset':_0x407ba9['cursorOffset'],'externalMutations':{}}):!0x1;}function _0x575e6b(_0x27922e,_0x31d309,_0x1a8dec){const _0x12bc14=_0x59fbca;if(_0x1a8dec)return null;let _0x333b78=_0x27922e[_0x12bc14(0x20c)](_0x18681b[_0x12bc14(0x243)]),_0x4939ac=(_0x31d309?_0x333b78[_0x12bc14(0x24b)](_0x31d309,_0x18681b[_0x12bc14(0x215)][_0x12bc14(0x248)]):_0x333b78[_0x12bc14(0x25a)](_0x18681b[_0x12bc14(0x215)][_0x12bc14(0x248)]))??null;if(!_0x4939ac)return null;let _0xa4f55e=_0x4939ac['getSnapshot'](),_0x3ed41c=_0xa4f55e[_0x12bc14(0x1fc)];if(_0xa4f55e[_0x12bc14(0x217)]||!_0x3ed41c)return null;let _0x532f6a=_0x27922e[_0x12bc14(0x20c)](_0x6bb1d3);return _0x532f6a['getLoadError'](_0x4939ac['getUnitId']())?null:{'document':_0x4939ac,'body':_0x3ed41c,'documentData':_0xa4f55e,'model':_0x532f6a,'resource':_0x532f6a[_0x12bc14(0x286)](_0x4939ac[_0x12bc14(0x2b6)]())??_0x579c9e(),'unitId':_0x4939ac[_0x12bc14(0x2b6)]()};}function _0x2ce5fd(_0x98f653,_0x58aa49){const _0x3acdc1=_0x59fbca;var _0x1f4d7a;return(_0x1f4d7a=_0x98f653['get'](_0x5a6648[_0x3acdc1(0x276)])[_0x3acdc1(0x21f)]({'subUnitId':_0x58aa49,'unitId':_0x58aa49}))==null?void 0x0:_0x1f4d7a[0x0];}function _0x4764fc(_0x22bf89,_0x31be14,_0x46c34f){const _0x41d42e=_0x59fbca;if((_0x22bf89==null?void 0x0:_0x22bf89['type'])===_0x41d42e(0x28c)){var _0x2b96eb;let _0x1785e8=((_0x2b96eb=_0x31be14[_0x41d42e(0x1fb)])==null?void 0x0:_0x2b96eb[_0x41d42e(0x1df)](_0x2585d5=>_0x2585d5[_0x41d42e(0x238)]===_0x22bf89['paragraphId']))??[];if(_0x1785e8['length']!==0x1)return null;let _0x42ae6a=_0x1785e8[0x0],_0x2e8878=(0x0,_0x18681b['getParagraphContentStartOffset'])(_0x31be14,_0x42ae6a),_0x145a86=_0x42ae6a[_0x41d42e(0x240)]-_0x2e8878,_0x4d9a9b=_0x22bf89[_0x41d42e(0x1bd)]===_0x41d42e(0x1ad)?_0x145a86:_0x22bf89[_0x41d42e(0x1bd)];if(!Number[_0x41d42e(0x1c2)](_0x4d9a9b)||_0x4d9a9b<0x0||_0x4d9a9b>_0x145a86)return null;let _0x3ad9d9=_0x2e8878+_0x4d9a9b;return{'startOffset':_0x3ad9d9,'endOffset':_0x3ad9d9};}if((_0x22bf89==null?void 0x0:_0x22bf89[_0x41d42e(0x1d5)])===_0x41d42e(0x19d))return!Number['isInteger'](_0x22bf89[_0x41d42e(0x1e3)])||!Number['isInteger'](_0x22bf89[_0x41d42e(0x21d)])?null:{'startOffset':Math[_0x41d42e(0x1bc)](_0x22bf89[_0x41d42e(0x1e3)],_0x22bf89[_0x41d42e(0x21d)]),'endOffset':Math[_0x41d42e(0x1c8)](_0x22bf89[_0x41d42e(0x1e3)],_0x22bf89[_0x41d42e(0x21d)])};let _0xc9fcd=(_0x22bf89==null?void 0x0:_0x22bf89[_0x41d42e(0x1d5)])===_0x41d42e(0x270)?_0x22bf89[_0x41d42e(0x270)]:_0x46c34f;return!_0xc9fcd||_0xc9fcd[_0x41d42e(0x182)]?null:{'startOffset':Math[_0x41d42e(0x1bc)](_0xc9fcd['startOffset'],_0xc9fcd[_0x41d42e(0x21d)]),'endOffset':Math[_0x41d42e(0x1c8)](_0xc9fcd[_0x41d42e(0x1e3)],_0xc9fcd[_0x41d42e(0x21d)])};}function _0x518d3f(_0x728d0d,_0x3ce342,_0x12831f,_0x2ffd8d){const _0x34f9df=_0x59fbca;let _0xdb4408=_0x728d0d[_0x34f9df(0x20c)](_0x15aa63[_0x34f9df(0x298)]),_0xf2fb0e=_0x12831f[_0x34f9df(0x25e)]('=')?_0x12831f[_0x34f9df(0x228)](0x1):_0x12831f,_0x19b96e=_0xdb4408[_0x34f9df(0x1d0)](_0xf2fb0e);if(!_0x19b96e)return null;let _0x1cbc95=_0x728d0d[_0x34f9df(0x20c)](_0x3b755e['HostExternalReferenceModel']),_0x437015=(0x0,_0x3b755e[_0x34f9df(0x2a8)])({'qualifiers':(0x0,_0x3b755e[_0x34f9df(0x278)])(_0x19b96e),'explicitReferences':_0x2ffd8d??[],'resolveBinding':_0x1f2bb5=>_0x1cbc95[_0x34f9df(0x229)](_0x3ce342,_0x1f2bb5)});return _0x437015[_0x34f9df(0x207)]===_0x34f9df(0x1db)?_0x437015[_0x34f9df(0x254)]:null;}function _0x10ed96(_0x18a6db,_0x2d316a,_0x468106){const _0x114b56=_0x59fbca;var _0x2539a3;let _0x5e05c9=(0x0,_0x18681b[_0x114b56(0x241)])(0x6);for(;_0x18a6db!=null&&(_0x2539a3=_0x18a6db[_0x114b56(0x190)])!=null&&_0x2539a3[_0x114b56(0x214)](_0x21c8d5=>_0x21c8d5[_0x114b56(0x21a)]===_0x5e05c9)||_0x2d316a[_0x114b56(0x2aa)](_0x468106,_0x5e05c9);)_0x5e05c9=(0x0,_0x18681b[_0x114b56(0x241)])(0x6);return _0x5e05c9;}function _0x55184c(_0x5e03a3){try{return _0x495a09(_0x5e03a3);}catch(_0x41cde0){if(_0x41cde0 instanceof _0x585510)return null;throw _0x41cde0;}}function _0x2c607b(_0x4ff8b9){const _0x539cda=_0x59fbca;let _0x4d6f44=_0x4ff8b9['previousDocumentData']&&_0x4ff8b9[_0x539cda(0x1e5)]?_0x182943(_0x4ff8b9[_0x539cda(0x2af)],_0x4ff8b9[_0x539cda(0x2a3)],_0x4ff8b9[_0x539cda(0x253)],_0x4ff8b9['nextDocumentData'],_0x4ff8b9[_0x539cda(0x1ae)],_0x4ff8b9[_0x539cda(0x225)]):null;return _0x4ff8b9['previousDocumentData']&&_0x4ff8b9['nextDocumentData']&&!_0x4d6f44?null:{'documentRedo':_0x4d6f44,'resourceRedo':{'id':_0x44d06f['id'],'params':{'unitId':_0x4ff8b9[_0x539cda(0x2a3)],'resource':_0x4ff8b9[_0x539cda(0x1ff)]}},'resourceUndo':{'id':_0x44d06f['id'],'params':{'unitId':_0x4ff8b9[_0x539cda(0x2a3)],'resource':_0x4ff8b9[_0x539cda(0x1ee)]}}};}function _0x5585a5(_0x5e53b6,_0x39b3ae,_0x5a3016,_0x2a5907){const _0x1c849c=_0x59fbca;_0x2a5907[_0x1c849c(0x288)]({'id':_0x5e53b6[_0x1c849c(0x225)]+':'+_0x5e53b6[_0x1c849c(0x21a)],'unitID':_0x5e53b6[_0x1c849c(0x2a3)],'redoMutations':[..._0x5e53b6[_0x1c849c(0x1dc)][_0x1c849c(0x1a4)]?[_0x5e53b6[_0x1c849c(0x1dc)][_0x1c849c(0x1a4)]]:[],..._0x39b3ae[_0x1c849c(0x1c0)]?[_0x39b3ae[_0x1c849c(0x1c0)]]:[],_0x39b3ae[_0x1c849c(0x1eb)]],'undoMutations':[_0x39b3ae[_0x1c849c(0x19e)],..._0x5a3016?[_0x5a3016]:[],..._0x5e53b6['externalMutations'][_0x1c849c(0x250)]?[_0x5e53b6['externalMutations'][_0x1c849c(0x250)]]:[]]});}function _0x3b796c(_0x3db861){const _0x5bf871=_0x59fbca;let _0x1b5882=_0x3db861['accessor'][_0x5bf871(0x20c)](_0x18681b['ICommandService']),_0x500daf=_0x3db861['accessor'][_0x5bf871(0x20c)](_0x18681b[_0x5bf871(0x195)]),_0x2308fc=_0x3db861[_0x5bf871(0x2b2)]['get'](_0x5a6648['DocSelectionManagerService']),_0x5822c4=_0x2c607b(_0x3db861);if(!_0x5822c4)return!0x1;let _0x14af4d=!0x1,_0x396d9f=null,_0x597924=!0x1;try{if(_0x3db861[_0x5bf871(0x1dc)][_0x5bf871(0x1a4)]){if(!_0x1b5882[_0x5bf871(0x212)](_0x3db861[_0x5bf871(0x1dc)][_0x5bf871(0x1a4)]['id'],_0x3db861[_0x5bf871(0x1dc)][_0x5bf871(0x1a4)]['params']))return!0x1;_0x14af4d=!0x0;}if(_0x5822c4[_0x5bf871(0x1c0)]){let _0x4d4c33=_0x1b5882['syncExecuteCommand'](_0x5822c4[_0x5bf871(0x1c0)]['id'],_0x5822c4['documentRedo']['params']);if(!_0x4d4c33)return _0x59e052(_0x1b5882,_0x3db861[_0x5bf871(0x1dc)],_0x14af4d),!0x1;_0x396d9f={'id':_0x5a6648['RichTextEditingMutation']['id'],'params':{..._0x4d4c33,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x1b5882['syncExecuteCommand'](_0x5822c4[_0x5bf871(0x1eb)]['id'],_0x5822c4['resourceRedo'][_0x5bf871(0x1e7)]))return _0x5a58c2(_0x1b5882,_0x396d9f),_0x59e052(_0x1b5882,_0x3db861[_0x5bf871(0x1dc)],_0x14af4d),!0x1;_0x597924=!0x0,_0x5585a5(_0x3db861,_0x5822c4,_0x396d9f,_0x500daf);}catch(_0x2e2244){throw _0x597924&&_0x1b5882[_0x5bf871(0x212)](_0x5822c4[_0x5bf871(0x19e)]['id'],_0x5822c4[_0x5bf871(0x19e)][_0x5bf871(0x1e7)]),_0x5a58c2(_0x1b5882,_0x396d9f),_0x59e052(_0x1b5882,_0x3db861[_0x5bf871(0x1dc)],_0x14af4d),_0x2e2244;}return _0x2308fc[_0x5bf871(0x257)]([{'startOffset':_0x3db861[_0x5bf871(0x1ae)],'endOffset':_0x3db861[_0x5bf871(0x1ae)],'segmentId':''}],{'unitId':_0x3db861['unitId'],'subUnitId':_0x3db861[_0x5bf871(0x2a3)]},!0x1,{[_0x5a6648['DOC_SELECTION_OPTION_PRESERVE_CARET']]:!0x0}),!0x0;}function _0x182943(_0x1efd3a,_0x288f25,_0x4930d6,_0x1ade91,_0xc4ec56,_0x3c80a5){const _0x119218=_0x59fbca;let _0x3cddc0=_0x2e554e(_0x4930d6,_0x1ade91,(0x0,_0x18681b[_0x119218(0x221)])(_0x1efd3a,''));return _0x3cddc0?{'id':_0x5a6648['RichTextEditingMutation']['id'],'params':{'unitId':_0x288f25,'actions':_0x3cddc0,'segmentId':'','textRanges':[{'startOffset':_0xc4ec56,'endOffset':_0xc4ec56,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x3c80a5}}:null;}function _0x5a58c2(_0x583fbb,_0x2ce1bd){const _0x4e2a4a=_0x59fbca;_0x2ce1bd&&_0x583fbb[_0x4e2a4a(0x212)](_0x2ce1bd['id'],_0x2ce1bd[_0x4e2a4a(0x1e7)]);}function _0x59e052(_0x164f44,_0x423794,_0x21b5a4){const _0x221a66=_0x59fbca;_0x21b5a4&&_0x423794[_0x221a66(0x250)]&&_0x164f44[_0x221a66(0x212)](_0x423794[_0x221a66(0x250)]['id'],_0x423794[_0x221a66(0x250)][_0x221a66(0x1e7)]);}function _0x2e554e(_0x855761,_0x42f160,_0xd9cd01){const _0x9ebc4f=_0x59fbca;let _0x17a37e=_0x855761[_0x9ebc4f(0x1fc)],_0x456df6=_0x42f160[_0x9ebc4f(0x1fc)],_0x5c5962=_0x5105d6(_0x17a37e==null?void 0x0:_0x17a37e[_0x9ebc4f(0x1b6)],_0x456df6==null?void 0x0:_0x456df6['dataStream']);if(!_0x5c5962||!_0x456df6)return null;let _0x28a098=new _0x18681b[(_0x9ebc4f(0x29c))]();return _0x28a098[_0x9ebc4f(0x29b)](_0x5c5962['start']),_0x5c5962[_0x9ebc4f(0x1d7)]>0x0&&_0x28a098['insert'](_0x5c5962[_0x9ebc4f(0x1d7)],(0x0,_0x18681b[_0x9ebc4f(0x18b)])(_0x456df6,_0x5c5962[_0x9ebc4f(0x183)],_0x5c5962[_0x9ebc4f(0x183)]+_0x5c5962[_0x9ebc4f(0x1d7)],!0x1)),_0x5c5962[_0x9ebc4f(0x18d)]>0x0&&_0x28a098[_0x9ebc4f(0x297)](_0x5c5962[_0x9ebc4f(0x18d)]),_0x18681b[_0x9ebc4f(0x273)]['getInstance']()[_0x9ebc4f(0x2ae)](_0x28a098[_0x9ebc4f(0x28d)](),_0xd9cd01);}function _0x5105d6(_0x2d64b0,_0x1f0d37){const _0x3abde9=_0x59fbca;if(_0x2d64b0==null||_0x1f0d37==null||_0x2d64b0===_0x1f0d37)return null;let _0x1db47f=0x0;for(;_0x1db47f<_0x2d64b0['length']&&_0x1db47f<_0x1f0d37[_0x3abde9(0x1af)]&&_0x2d64b0[_0x1db47f]===_0x1f0d37[_0x1db47f];)_0x1db47f+=0x1;let _0x1706c4=_0x2d64b0[_0x3abde9(0x1af)],_0x31dc0b=_0x1f0d37['length'];for(;_0x1706c4>_0x1db47f&&_0x31dc0b>_0x1db47f&&_0x2d64b0[_0x1706c4-0x1]===_0x1f0d37[_0x31dc0b-0x1];)--_0x1706c4,--_0x31dc0b;return{'start':_0x1db47f,'deleteLength':_0x1706c4-_0x1db47f,'insertLength':_0x31dc0b-_0x1db47f};}function _0x37369a(_0x161f86){const _0x405f46=_0x59fbca;return{'formulas':Object['fromEntries'](Object[_0x405f46(0x1d9)](_0x161f86['formulas'])[_0x405f46(0x198)](([_0x289b38,_0x497377])=>[_0x289b38,{..._0x497377,..._0x497377['numberFormat']?{'numberFormat':{..._0x497377[_0x405f46(0x1fd)]}}:null,..._0x497377[_0x405f46(0x1e0)]?{'lastValue':{..._0x497377[_0x405f46(0x1e0)]}}:null}]))};}let _0x30f5a3=class extends _0x18681b[_0x59fbca(0x196)]{constructor(_0x3df28c,_0x959533,_0x5e44fa,_0x2cd8bf){const _0x22f86d=_0x59fbca;super(),this[_0x22f86d(0x1f9)]=_0x3df28c,this['_commandService']=_0x959533,this[_0x22f86d(0x2bf)]=_0x5e44fa,this[_0x22f86d(0x233)]=_0x2cd8bf,_0x789546(this,_0x22f86d(0x269),new Set()),_0x789546(this,_0x22f86d(0x29e),!0x1),_0x789546(this,_0x22f86d(0x265),!0x1),this['_instanceService'][_0x22f86d(0x203)](_0x18681b['UniverInstanceType'][_0x22f86d(0x248)])[_0x22f86d(0x218)](_0x30a4ff=>this[_0x22f86d(0x233)][_0x22f86d(0x266)](_0x30a4ff)),this[_0x22f86d(0x1e1)](this[_0x22f86d(0x2bf)][_0x22f86d(0x186)][_0x22f86d(0x2ad)](({unitId:_0x1d246b})=>this[_0x22f86d(0x295)](_0x1d246b))),this['disposeWithMe'](this[_0x22f86d(0x1f9)]['unitAdded$']['subscribe'](({unit:_0xbbe9ae})=>{const _0x22dd8b=_0x22f86d;_0xbbe9ae[_0x22dd8b(0x1d5)]===_0x18681b[_0x22dd8b(0x215)][_0x22dd8b(0x248)]&&this[_0x22dd8b(0x296)](_0xbbe9ae['getUnitId']());})),this[_0x22f86d(0x1e1)](this[_0x22f86d(0x1f9)]['unitDisposed$'][_0x22f86d(0x2ad)](_0x5760d9=>{const _0x9d8baa=_0x22f86d;this[_0x9d8baa(0x233)][_0x9d8baa(0x1a6)](_0x5760d9[_0x9d8baa(0x2b6)]());})),this['disposeWithMe'](this[_0x22f86d(0x22e)][_0x22f86d(0x189)](_0x5aad8a=>{const _0xf87d62=_0x22f86d;if(_0x5aad8a['id']===_0x5a6648[_0xf87d62(0x26a)]['id']&&_0x11510d(_0x5aad8a[_0xf87d62(0x1e7)])){let _0x318815=_0x5aad8a[_0xf87d62(0x1e7)];_0x318815[_0xf87d62(0x182)]||this[_0xf87d62(0x295)](_0x318815['unitId']);}}));}[_0x59fbca(0x19b)](){const _0xf6bd95=_0x59fbca;this[_0xf6bd95(0x265)]=!0x0,super['dispose']();}[_0x59fbca(0x296)](_0x209a36){const _0x3de0e0=_0x59fbca;this[_0x3de0e0(0x269)][_0x3de0e0(0x193)](_0x209a36),this['_syncScheduled']||(this[_0x3de0e0(0x29e)]=!0x0,queueMicrotask(()=>{const _0x19a61e=_0x3de0e0;if(this[_0x19a61e(0x29e)]=!0x1,this['_isDisposed'])return;let _0x4bad03=Array[_0x19a61e(0x25c)](this[_0x19a61e(0x269)]);this[_0x19a61e(0x269)][_0x19a61e(0x220)](),_0x4bad03[_0x19a61e(0x218)](_0x585196=>this['_syncUnit'](_0x585196));}));}[_0x59fbca(0x295)](_0xa0d548){const _0x4e7957=_0x59fbca;let _0x90f1b8=this['_instanceService'][_0x4e7957(0x24b)](_0xa0d548,_0x18681b['UniverInstanceType']['UNIVER_DOC']);_0x90f1b8&&this[_0x4e7957(0x233)][_0x4e7957(0x266)](_0x90f1b8);}};_0x30f5a3=_0xeee809([_0x3817b7(0x0,_0x18681b[_0x59fbca(0x243)]),_0x3817b7(0x1,_0x18681b[_0x59fbca(0x1e6)]),_0x3817b7(0x2,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x6bb1d3)),_0x3817b7(0x3,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x237c2a))],_0x30f5a3);function _0x11510d(_0x3251ca){const _0x3174e0=_0x59fbca;return typeof _0x3251ca==_0x3174e0(0x1b2)&&!!_0x3251ca&&_0x3174e0(0x2a3)in _0x3251ca&&typeof _0x3251ca['unitId']==_0x3174e0(0x1f4)&&(!(_0x3174e0(0x182)in _0x3251ca)||_0x3251ca[_0x3174e0(0x182)]===void 0x0||typeof _0x3251ca['segmentId']==_0x3174e0(0x1f4));}let _0x225d02=class extends _0x18681b[_0x59fbca(0x196)]{constructor(_0x597a15,_0x408f7b){const _0x2d3e2a=_0x59fbca;super(),this['_resourceManagerService']=_0x597a15,this[_0x2d3e2a(0x27d)]=_0x408f7b,this['disposeWithMe'](this[_0x2d3e2a(0x2a1)]['registerPluginResource']({'pluginName':_0x6a482c,'businesses':[_0x18681b[_0x2d3e2a(0x215)][_0x2d3e2a(0x248)]],'toJson':_0x24d20b=>JSON[_0x2d3e2a(0x28a)](this['_docFormulaModel'][_0x2d3e2a(0x28d)](_0x24d20b)),'parseJson':_0x3b658a=>JSON[_0x2d3e2a(0x264)](_0x3b658a),'onLoad':(_0x2d1481,_0x21e34f)=>{const _0x4b2d3b=_0x2d3e2a;this[_0x4b2d3b(0x27d)]['load'](_0x2d1481,_0x21e34f);},'onUnLoad':_0x17d148=>this[_0x2d3e2a(0x27d)][_0x2d3e2a(0x260)](_0x17d148)}));}};_0x225d02=_0xeee809([_0x3817b7(0x0,_0x18681b['IResourceManagerService']),_0x3817b7(0x1,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x6bb1d3))],_0x225d02);var _0x329885=_0x59fbca(0x26d),_0x553ed2=_0x59fbca(0x1a7);let _0x176ac5={},_0x3b30f5=class extends _0x18681b[_0x59fbca(0x196)]{constructor(_0xe9db17,_0x4bf37a,_0x19ad91){const _0x233a7b=_0x59fbca;super(),this[_0x233a7b(0x26b)]=_0xe9db17,this['_formulaService']=_0x4bf37a,this[_0x233a7b(0x1e1)](_0x19ad91[_0x233a7b(0x2c2)]({'resolve':(_0x483138,_0x44e8fd)=>{const _0x33ceab=_0x233a7b;var _0x2d4258;return((_0x2d4258=_0x44e8fd[_0x33ceab(0x190)])==null?void 0x0:_0x2d4258['filter'](_0x33c337)['map'](_0x5861c8=>({'startOffset':_0x5861c8[_0x33ceab(0x240)],'endOffset':_0x5861c8[_0x33ceab(0x227)]+0x1,'text':this[_0x33ceab(0x291)](_0x483138,_0x5861c8[_0x33ceab(0x21a)])})))??[];}})),this['disposeWithMe'](this[_0x233a7b(0x294)]['presentationChanged$']['subscribe'](({unitId:_0x1682d6})=>{const _0xee6f0d=_0x233a7b;_0x19ad91[_0xee6f0d(0x1c1)](_0x1682d6);}));}[_0x59fbca(0x291)](_0x1a6229,_0x3df170){const _0x5892ba=_0x59fbca;var _0x406314;return((_0x406314=this[_0x5892ba(0x294)][_0x5892ba(0x1a5)]({'unitId':_0x1a6229,'rangeId':_0x3df170}))==null?void 0x0:_0x406314[_0x5892ba(0x2b3)])??'';}[_0x59fbca(0x242)](_0x255aaa,_0x18fd6e,_0x44ba73){const _0x1a3253=_0x59fbca;var _0x3ac6b8;let _0x14ac83=this['_univerInstanceService']['getUnit'](_0x255aaa,_0x18681b[_0x1a3253(0x215)][_0x1a3253(0x248)]),_0x3dc039=_0x14ac83==null?void 0x0:_0x14ac83[_0x1a3253(0x21e)]();if(!_0x3dc039)return'';let _0x5573b0=_0x3dc039[_0x1a3253(0x1b6)][_0x1a3253(0x228)](_0x18fd6e,_0x44ba73),_0x439146=((_0x3ac6b8=_0x3dc039[_0x1a3253(0x190)])==null?void 0x0:_0x3ac6b8['filter'](_0x126f77=>_0x33c337(_0x126f77)&&_0x126f77[_0x1a3253(0x240)]>=_0x18fd6e&&_0x126f77['endIndex']<_0x44ba73)[_0x1a3253(0x2b1)]((_0x56b86c,_0x248611)=>_0x248611[_0x1a3253(0x240)]-_0x56b86c[_0x1a3253(0x240)]))??[];for(let _0x3b48f1 of _0x439146){let _0x1f3b30=_0x3b48f1[_0x1a3253(0x240)]-_0x18fd6e,_0x34f921=_0x3b48f1[_0x1a3253(0x227)]-_0x18fd6e+0x1;_0x5573b0=''+_0x5573b0[_0x1a3253(0x228)](0x0,_0x1f3b30)+this[_0x1a3253(0x291)](_0x255aaa,_0x3b48f1['rangeId'])+_0x5573b0[_0x1a3253(0x228)](_0x34f921);}return _0x5573b0;}[_0x59fbca(0x259)](_0x15f7be){return _0x42ed5d(_0x15f7be);}[_0x59fbca(0x223)](_0x2f97c5,_0x252b61,_0x3c98f7={}){const _0x2d0bb9=_0x59fbca;var _0x2ff265;return _0x584fb5({'id':_0x2f97c5,'body':_0x252b61,'documentStyle':{}},(((_0x2ff265=_0x252b61[_0x2d0bb9(0x190)])==null?void 0x0:_0x2ff265[_0x2d0bb9(0x1df)](_0x33c337))??[])['map'](_0x26dc11=>({'rangeId':_0x26dc11[_0x2d0bb9(0x21a)],'text':_0x3c98f7[_0x26dc11[_0x2d0bb9(0x21a)]]??this[_0x2d0bb9(0x291)](_0x2f97c5,_0x26dc11[_0x2d0bb9(0x21a)])})))[_0x2d0bb9(0x1fc)]??{'dataStream':''};}};_0x3b30f5=_0xeee809([_0x3817b7(0x0,_0x18681b[_0x59fbca(0x243)]),_0x3817b7(0x1,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x237c2a)),_0x3817b7(0x2,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x5a6648['DocTextResolverService']))],_0x3b30f5);function _0x42ed5d(_0x2304a1){const _0x48421f=_0x59fbca;var _0x4c97cd,_0x3341e1;let _0x558f41=_0x182ae7(_0x2304a1),_0x23290c=_0x584fb5(_0x2304a1,(((_0x4c97cd=_0x2304a1[_0x48421f(0x1fc)])==null||(_0x4c97cd=_0x4c97cd[_0x48421f(0x190)])==null?void 0x0:_0x4c97cd[_0x48421f(0x1df)](_0x33c337))??[])[_0x48421f(0x198)](_0x277fc2=>({'rangeId':_0x277fc2[_0x48421f(0x21a)],'text':_0x5133b3(_0x558f41==null?void 0x0:_0x558f41[_0x48421f(0x1c5)][_0x277fc2['rangeId']])})));return _0x23290c[_0x48421f(0x2a5)]=(_0x3341e1=_0x23290c['resources'])==null?void 0x0:_0x3341e1[_0x48421f(0x1df)](_0x26811e=>_0x26811e[_0x48421f(0x1c6)]!==_0x6a482c),_0x23290c;}function _0x182ae7(_0x1246b4){const _0x1e583e=_0x59fbca;var _0x195462;let _0x2faefb=(_0x195462=_0x1246b4['resources'])==null||(_0x195462=_0x195462[_0x1e583e(0x255)](_0x6ad019=>_0x6ad019[_0x1e583e(0x1c6)]===_0x1e583e(0x27b)))==null?void 0x0:_0x195462[_0x1e583e(0x22c)];if(_0x2faefb)try{let _0x5ba888=JSON['parse'](_0x2faefb);return _0x43dbc1(_0x5ba888)?_0x5ba888:void 0x0;}catch{return;}}function _0x5133b3(_0x248a6c){const _0x208e03=_0x59fbca;return _0x248a6c?(0x0,_0x3b755e[_0x208e03(0x1b5)])({'lastValue':_0x248a6c[_0x208e03(0x1e0)],'numberFormat':_0x248a6c['numberFormat']})[_0x208e03(0x2b3)]:'';}let _0x2b84ef=class extends _0x18681b[_0x59fbca(0x196)]{constructor(_0x2f5852,_0x37cadb,_0x1b2bf2){const _0x5663bc=_0x59fbca;super(),this[_0x5663bc(0x294)]=_0x2f5852,this[_0x5663bc(0x2c6)]=_0x37cadb,this[_0x5663bc(0x1e1)](_0x1b2bf2[_0x5663bc(0x1f6)](this));}[_0x59fbca(0x239)](_0x397288){const _0x2bbe69=_0x59fbca;let _0x29e266=new Map();for(let _0x31e17b of this[_0x2bbe69(0x294)]['getRegisteredFormulas']()){var _0xbb4d18;if(!this[_0x2bbe69(0x2c6)][_0x2bbe69(0x1b1)](_0x31e17b[_0x2bbe69(0x19c)]['formula'],_0x31e17b[_0x2bbe69(0x1ac)])[_0x2bbe69(0x1ca)])continue;let _0x47fd29=(0x0,_0x3b755e['getScalarFormulaResultCell'])(_0x31e17b[_0x2bbe69(0x1ac)]),_0x1623ed=_0x47fd29?(0x0,_0x3b755e[_0x2bbe69(0x26f)])(_0x47fd29):null;if(!_0x1623ed||_0x3e2685(_0x31e17b[_0x2bbe69(0x19c)][_0x2bbe69(0x1e0)],_0x1623ed))continue;let _0x5efd40=_0x29e266[_0x2bbe69(0x20c)](_0x31e17b[_0x2bbe69(0x268)][_0x2bbe69(0x2a3)])??[];_0x5efd40[_0x2bbe69(0x191)]({'rangeId':_0x31e17b[_0x2bbe69(0x268)][_0x2bbe69(0x21a)],'expectedFormula':_0x31e17b[_0x2bbe69(0x19c)][_0x2bbe69(0x267)],'expectedNumberFormat':(_0xbb4d18=_0x31e17b[_0x2bbe69(0x19c)][_0x2bbe69(0x1fd)])==null?void 0x0:_0xbb4d18[_0x2bbe69(0x22d)],'expectedReferenceRevision':_0x31e17b[_0x2bbe69(0x1b7)],'lastValue':_0x1623ed}),_0x29e266[_0x2bbe69(0x1da)](_0x31e17b['identity'][_0x2bbe69(0x2a3)],_0x5efd40);}return Array[_0x2bbe69(0x25c)](_0x29e266,([_0x19b78c,_0x345fd8])=>({'id':_0xd5dd00['id'],'params':{'unitId':_0x19b78c,'updates':_0x345fd8}}));}};_0x2b84ef=_0xeee809([_0x3817b7(0x0,(0x0,_0x18681b['Inject'])(_0x237c2a)),_0x3817b7(0x1,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x3b755e[_0x59fbca(0x1e8)])),_0x3817b7(0x2,(0x0,_0x18681b[_0x59fbca(0x21b)])(_0x3b755e[_0x59fbca(0x23c)]))],_0x2b84ef);function _0x3e2685(_0x48aebe,_0x4e08a5){const _0xd3ac6d=_0x59fbca;return(_0x48aebe==null?void 0x0:_0x48aebe['v'])===_0x4e08a5['v']&&(_0x48aebe==null?void 0x0:_0x48aebe['t'])===_0x4e08a5['t']&&(_0x48aebe==null?void 0x0:_0x48aebe[_0xd3ac6d(0x22d)])===_0x4e08a5[_0xd3ac6d(0x22d)];}let _0x1eaa58=class extends _0x18681b[_0x59fbca(0x299)]{constructor(_0x56807c=_0x176ac5,_0x1018e2,_0x590411,_0x4150b9){const _0x18366a=_0x59fbca;super(),this[_0x18366a(0x213)]=_0x56807c,this[_0x18366a(0x184)]=_0x1018e2,this[_0x18366a(0x22e)]=_0x590411,this['_configService']=_0x4150b9;let {..._0x5cac8d}=(0x0,_0x18681b[_0x18366a(0x283)])({},_0x176ac5,this[_0x18366a(0x213)]);this[_0x18366a(0x1e4)][_0x18366a(0x29a)](_0x18366a(0x249),_0x5cac8d);}[_0x59fbca(0x2c4)](){const _0x3c41bd=_0x59fbca;this['_injector']['add']([_0x6bb1d3]),this[_0x3c41bd(0x184)][_0x3c41bd(0x193)]([_0x237c2a]),this[_0x3c41bd(0x184)][_0x3c41bd(0x193)]([_0x225d02]),this[_0x3c41bd(0x184)][_0x3c41bd(0x193)]([_0x30f5a3]),this[_0x3c41bd(0x184)][_0x3c41bd(0x193)]([_0x2b84ef]),this['_injector']['add']([_0x3b30f5]),(0x0,_0x18681b['touchDependencies'])(this['_injector'],[[_0x6bb1d3],[_0x225d02],[_0x30f5a3],[_0x2b84ef],[_0x3b30f5]]),[_0x8d24fd,_0x1d181,_0x44d06f,_0xd5dd00,_0x5f4f4a,_0x959480,_0x30ab56,_0x305532,_0x50ce8b,_0x5afbac]['forEach'](_0x22fa76=>this[_0x3c41bd(0x1e1)](this['_commandService'][_0x3c41bd(0x1b0)](_0x22fa76)));}};_0x789546(_0x1eaa58,_0x59fbca(0x1ab),_0x6a482c),_0x789546(_0x1eaa58,_0x59fbca(0x251),_0x329885),_0x789546(_0x1eaa58,'version',_0x553ed2),_0x789546(_0x1eaa58,_0x59fbca(0x1d5),_0x18681b[_0x59fbca(0x215)]['UNIVER_DOC']),_0x1eaa58=_0xeee809([(0x0,_0x18681b[_0x59fbca(0x1fe)])(_0x3e8071[_0x59fbca(0x284)],_0x3b755e[_0x59fbca(0x29d)],_0x5a6648['UniverDocsPlugin']),_0x3817b7(0x1,(0x0,_0x18681b['Inject'])(_0x18681b[_0x59fbca(0x23b)])),_0x3817b7(0x2,_0x18681b[_0x59fbca(0x1e6)]),_0x3817b7(0x3,_0x18681b['IConfigService'])],_0x1eaa58),_0x205656['ConvertDocFormulaToTextCommand']=_0x5afbac,_0x205656['DOC_FORMULA_CUSTOM_RANGE_KIND']=_0x23a021,_0x205656['DOC_FORMULA_OBJECT_REPLACEMENT']='',_0x205656[_0x59fbca(0x27b)]=_0x6a482c,Object[_0x59fbca(0x187)](_0x205656,_0x59fbca(0x1f3),{'enumerable':!0x0,'get':function(){return _0x3b30f5;}}),Object[_0x59fbca(0x187)](_0x205656,_0x59fbca(0x1cd),{'enumerable':!0x0,'get':function(){return _0x30f5a3;}}),_0x205656[_0x59fbca(0x230)]=_0x6bb1d3,Object[_0x59fbca(0x187)](_0x205656,_0x59fbca(0x1f7),{'enumerable':!0x0,'get':function(){return _0x225d02;}}),_0x205656[_0x59fbca(0x28b)]=_0x197e77,Object['defineProperty'](_0x205656,'DocFormulaService',{'enumerable':!0x0,'get':function(){return _0x237c2a;}}),_0x205656[_0x59fbca(0x2a4)]=_0x5f4f4a,_0x205656[_0x59fbca(0x27a)]=_0x585510,_0x205656[_0x59fbca(0x272)]=_0x305532,_0x205656[_0x59fbca(0x289)]=_0x1d181,_0x205656['ReplaceDocFormulaWithTextCommand']=_0x50ce8b,_0x205656[_0x59fbca(0x1c9)]=_0xd5dd00,_0x205656['SetDocFormulaMutation']=_0x8d24fd,_0x205656[_0x59fbca(0x293)]=_0x30ab56,_0x205656[_0x59fbca(0x2c1)]=_0x44d06f,Object[_0x59fbca(0x187)](_0x205656,_0x59fbca(0x1b9),{'enumerable':!0x0,'get':function(){return _0x1eaa58;}}),_0x205656[_0x59fbca(0x1dd)]=_0x959480,_0x205656[_0x59fbca(0x204)]=_0x298e4c,_0x205656[_0x59fbca(0x194)]=_0x495a09,_0x205656[_0x59fbca(0x1c4)]=_0x15978c,_0x205656[_0x59fbca(0x247)]=_0x13575d,_0x205656['createEmptyDocFormulaResource']=_0x579c9e,_0x205656[_0x59fbca(0x1b3)]=_0x42ed5d,_0x205656[_0x59fbca(0x1d4)]=_0x5c3dc6,_0x205656[_0x59fbca(0x2bb)]=_0x45bbe2,_0x205656[_0x59fbca(0x1f1)]=_0x33c337,_0x205656[_0x59fbca(0x281)]=_0x43dbc1,_0x205656[_0x59fbca(0x1a3)]=_0x3fc056;}));
1
+ (function(_0x742752,_0x245b2d){const _0x1e038a=_0x3f33,_0x4d493c=_0x742752();while(!![]){try{const _0x449cb2=parseInt(_0x1e038a(0x289))/0x1*(-parseInt(_0x1e038a(0x239))/0x2)+-parseInt(_0x1e038a(0x1af))/0x3+parseInt(_0x1e038a(0x1e4))/0x4+parseInt(_0x1e038a(0x16c))/0x5*(-parseInt(_0x1e038a(0x26f))/0x6)+-parseInt(_0x1e038a(0x295))/0x7*(parseInt(_0x1e038a(0x1f7))/0x8)+parseInt(_0x1e038a(0x19f))/0x9*(parseInt(_0x1e038a(0x213))/0xa)+-parseInt(_0x1e038a(0x19a))/0xb;if(_0x449cb2===_0x245b2d)break;else _0x4d493c['push'](_0x4d493c['shift']());}catch(_0x2b3613){_0x4d493c['push'](_0x4d493c['shift']());}}}(_0x6a50,0x99f36),function(_0x48e6fc,_0x2d73c1){const _0x1bd0d5=_0x3f33;typeof exports==_0x1bd0d5(0x24f)&&typeof module<'u'?_0x2d73c1(exports,require('@univerjs-pro/engine-formula'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x1bd0d5(0x1b1)&&define[_0x1bd0d5(0x226)]?define(['exports',_0x1bd0d5(0x219),_0x1bd0d5(0x1a0),_0x1bd0d5(0x248),_0x1bd0d5(0x1e9),_0x1bd0d5(0x180),'@univerjs-pro/license'],_0x2d73c1):(_0x48e6fc=typeof globalThis<'u'?globalThis:_0x48e6fc||self,_0x2d73c1(_0x48e6fc['UniverProDocsFormula']={},_0x48e6fc[_0x1bd0d5(0x16e)],_0x48e6fc[_0x1bd0d5(0x246)],_0x48e6fc[_0x1bd0d5(0x171)],_0x48e6fc[_0x1bd0d5(0x1b6)],_0x48e6fc['rxjs'],_0x48e6fc[_0x1bd0d5(0x1b8)]));}(this,function(_0x40eb1e,_0x51228b,_0x534dbf,_0x584402,_0x546eeb,_0x57d587,_0x2387b5){const _0xddde37=_0x3f33;Object[_0xddde37(0x1d9)](_0x40eb1e,Symbol[_0xddde37(0x1ee)],{'value':_0xddde37(0x272)});let _0x1b57f6='DOC_FORMULA_PLUGIN',_0x1735d2='univer-docs-formula';function _0xdeec8b(){return{'formulas':{}};}function _0x5bb3ce(_0x4090c8){const _0x4a8ed3=_0xddde37;return!_0x4090c8||typeof _0x4090c8!=_0x4a8ed3(0x24f)||!(_0x4a8ed3(0x1c7)in _0x4090c8)||!_0x4090c8[_0x4a8ed3(0x1c7)]||typeof _0x4090c8[_0x4a8ed3(0x1c7)]!=_0x4a8ed3(0x24f)||Array[_0x4a8ed3(0x168)](_0x4090c8['formulas'])?!0x1:Object[_0x4a8ed3(0x252)](_0x4090c8['formulas'])['every'](([_0x379dbe,_0x23f215])=>_0x379dbe[_0x4a8ed3(0x1fd)]>0x0&&_0x3c30c5(_0x23f215));}function _0x3c30c5(_0x575465){const _0xc6f65c=_0xddde37;return!_0x575465||typeof _0x575465!=_0xc6f65c(0x24f)||!_0x43f933(_0x575465,[_0xc6f65c(0x166),'numberFormat',_0xc6f65c(0x17e)])||!('formula'in _0x575465)||typeof _0x575465[_0xc6f65c(0x166)]!=_0xc6f65c(0x1bf)||!_0x575465[_0xc6f65c(0x166)][_0xc6f65c(0x209)]()||'numberFormat'in _0x575465&&_0x575465[_0xc6f65c(0x196)]!=null&&(typeof _0x575465[_0xc6f65c(0x196)]!=_0xc6f65c(0x24f)||!_0x43f933(_0x575465[_0xc6f65c(0x196)],[_0xc6f65c(0x1f2)])||!(_0xc6f65c(0x1f2)in _0x575465['numberFormat'])||typeof _0x575465[_0xc6f65c(0x196)][_0xc6f65c(0x1f2)]!=_0xc6f65c(0x1bf))?!0x1:!('lastValue'in _0x575465)||_0x575465[_0xc6f65c(0x17e)]==null||_0x2c66cb(_0x575465[_0xc6f65c(0x17e)]);}function _0x2c66cb(_0x484010){const _0x176442=_0xddde37;return!_0x484010||typeof _0x484010!=_0x176442(0x24f)||!_0x43f933(_0x484010,['v','t',_0x176442(0x1f2)])||!('v'in _0x484010)||_0x484010['v']!==null&&typeof _0x484010['v']!=_0x176442(0x1bf)&&typeof _0x484010['v']!=_0x176442(0x1f4)&&typeof _0x484010['v']!=_0x176442(0x235)||'t'in _0x484010&&_0x484010['t']!=null&&!_0x2c159f(_0x484010['t'])?!0x1:!(_0x176442(0x1f2)in _0x484010)||_0x484010['pattern']==null||typeof _0x484010[_0x176442(0x1f2)]==_0x176442(0x1bf);}function _0x43f933(_0x2e06d9,_0x203ed7){const _0x110a97=_0xddde37;let _0x12a952=new Set(_0x203ed7);return Object[_0x110a97(0x245)](_0x2e06d9)[_0x110a97(0x1d0)](_0x5c2773=>_0x12a952['has'](_0x5c2773));}function _0x2c159f(_0x1eeaeb){const _0x1b554b=_0xddde37;return typeof _0x1eeaeb==_0x1b554b(0x1f4)&&Object[_0x1b554b(0x1b7)](_0x534dbf[_0x1b554b(0x1dc)])[_0x1b554b(0x269)](_0x1eeaeb);}let _0x1f2f70=new Set([_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x184)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x264)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x254)],_0x534dbf[_0xddde37(0x1b5)]['TABLE_CELL_START'],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x1c6)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x28d)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x293)],_0x534dbf['DataStreamTreeTokenType']['COLUMN_GROUP_START'],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x19b)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x1ef)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x176)],_0x534dbf['DataStreamTreeTokenType'][_0xddde37(0x279)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x241)],_0x534dbf[_0xddde37(0x1b5)][_0xddde37(0x164)]]);var _0x5b78e9=class extends Error{constructor(){const _0x216c81=_0xddde37;super(_0x216c81(0x27f));}};function _0x4b7fbd(_0x1e5c30){const _0x243104=_0xddde37;var _0x198413,_0x36e1e1;let _0x2586e8=_0x534dbf[_0x243104(0x1b0)][_0x243104(0x183)](_0x1e5c30[_0x243104(0x19d)]),_0x538326=_0x3230c3(_0x2586e8),{startOffset:_0x5ef02e,endOffset:_0x4e917e}=_0x4fea91(_0x538326,_0x1e5c30[_0x243104(0x21c)],_0x1e5c30[_0x243104(0x206)]);_0x4671de(_0x538326,_0x5ef02e,_0x4e917e);let _0x992984=((_0x198413=_0x538326[_0x243104(0x1ea)])==null?void 0x0:_0x198413[_0x243104(0x1bc)](_0x46ee7c=>{const _0x281388=_0x243104;if(!_0x1db77c(_0x46ee7c))return!0x1;let _0x3ab84e=(0x0,_0x534dbf['getCustomRangeInterval'])(_0x46ee7c);return _0x3ab84e[_0x281388(0x206)]>_0x5ef02e&&_0x3ab84e['startOffset']<_0x4e917e;})[_0x243104(0x231)](_0xb3086f=>_0xb3086f[_0x243104(0x22a)]))??[];_0x1d3bbb(_0x538326,_0x5ef02e,_0x4e917e,''),_0x538326['customRanges']=[...((_0x36e1e1=_0x538326['customRanges'])==null?void 0x0:_0x36e1e1[_0x243104(0x1bc)](_0x45fb8b=>!_0x992984['includes'](_0x45fb8b[_0x243104(0x22a)])&&_0x45fb8b[_0x243104(0x22a)]!==_0x1e5c30[_0x243104(0x22a)]))??[],_0x33c8b9(_0x1e5c30['rangeId'],_0x5ef02e)][_0x243104(0x273)]((_0x1a4491,_0x500362)=>_0x1a4491[_0x243104(0x18f)]-_0x500362[_0x243104(0x18f)]);let _0x1de69c=_0x3181c5(_0x1e5c30[_0x243104(0x1ed)]);return _0x992984[_0x243104(0x281)](_0x36e6cd=>{const _0x307d69=_0x243104;delete _0x1de69c[_0x307d69(0x1c7)][_0x36e6cd];}),_0x1de69c['formulas'][_0x1e5c30[_0x243104(0x22a)]]=_0x534dbf[_0x243104(0x1b0)][_0x243104(0x183)](_0x1e5c30[_0x243104(0x1ac)]),{'nextDocumentData':_0x2586e8,'nextResource':_0x1de69c,'cursorOffset':_0x5ef02e+0x1};}function _0xccfc38(_0x39c2c3){const _0xce7f7e=_0xddde37;var _0x2a4201,_0x5c0ba7;let _0x20d497=_0x534dbf['Tools'][_0xce7f7e(0x183)](_0x39c2c3[_0xce7f7e(0x19d)]),_0x1ecea2=(_0x2a4201=_0x3230c3(_0x20d497)['customRanges'])==null?void 0x0:_0x2a4201[_0xce7f7e(0x1e3)](_0x543fdd=>_0x543fdd[_0xce7f7e(0x22a)]===_0x39c2c3[_0xce7f7e(0x22a)]&&_0x1db77c(_0x543fdd));if(!_0x1ecea2||!((_0x5c0ba7=_0x39c2c3[_0xce7f7e(0x1ed)])!=null&&_0x5c0ba7[_0xce7f7e(0x1c7)][_0x39c2c3[_0xce7f7e(0x22a)]]))return null;let _0x5e7745=_0x3181c5(_0x39c2c3[_0xce7f7e(0x1ed)]);return _0x5e7745[_0xce7f7e(0x1c7)][_0x39c2c3[_0xce7f7e(0x22a)]]=_0x534dbf[_0xce7f7e(0x1b0)][_0xce7f7e(0x183)](_0x39c2c3['config']),{'nextDocumentData':_0x20d497,'nextResource':_0x5e7745,'cursorOffset':_0x1ecea2[_0xce7f7e(0x165)]+0x1};}function _0x595916(_0x37e38b){const _0x591efc=_0xddde37;let _0x3b5715=_0x534dbf[_0x591efc(0x1b0)][_0x591efc(0x183)](_0x37e38b[_0x591efc(0x19d)]),_0x161644=_0x2a2b17(_0x3b5715,_0x37e38b['rangeId'],_0x37e38b[_0x591efc(0x18c)]??'');if(_0x161644==null)return null;let _0x2e9464=_0x3181c5(_0x37e38b[_0x591efc(0x1ed)]);return delete _0x2e9464['formulas'][_0x37e38b[_0x591efc(0x22a)]],{'nextDocumentData':_0x3b5715,'nextResource':_0x2e9464,'cursorOffset':_0x161644};}function _0x2c580a(_0x21c2e3,_0x78bb0d){const _0x5db7c9=_0xddde37;var _0x227dcd;let _0x301a37=_0x534dbf['Tools'][_0x5db7c9(0x183)](_0x21c2e3),_0x54179e=_0x301a37[_0x5db7c9(0x267)];if(!_0x54179e)return _0x301a37;let _0x400ea9=new Map(_0x78bb0d[_0x5db7c9(0x231)](_0x3cd9d0=>[_0x3cd9d0['rangeId'],_0x3cd9d0['text']])),_0xef8723=((_0x227dcd=_0x54179e['customRanges'])==null?void 0x0:_0x227dcd[_0x5db7c9(0x1bc)](_0x5c61a7=>_0x1db77c(_0x5c61a7)&&_0x400ea9[_0x5db7c9(0x221)](_0x5c61a7[_0x5db7c9(0x22a)]))['sort']((_0x27d27c,_0x5bc0d8)=>_0x5bc0d8[_0x5db7c9(0x18f)]-_0x27d27c[_0x5db7c9(0x18f)]))??[];for(let _0x49c4bc of _0xef8723)_0x2a2b17(_0x301a37,_0x49c4bc[_0x5db7c9(0x22a)],_0x400ea9[_0x5db7c9(0x189)](_0x49c4bc[_0x5db7c9(0x22a)])??'');return _0x301a37;}function _0x1db77c(_0x17c0e5){const _0x3ad3a8=_0xddde37;var _0x53775a;return(_0x17c0e5==null?void 0x0:_0x17c0e5[_0x3ad3a8(0x296)])===_0x534dbf[_0x3ad3a8(0x1eb)][_0x3ad3a8(0x28e)]&&_0x17c0e5['wholeEntity']===!0x0&&((_0x53775a=_0x17c0e5[_0x3ad3a8(0x1a9)])==null?void 0x0:_0x53775a[_0x3ad3a8(0x1be)])===_0x3ad3a8(0x256);}function _0x40a861(_0x5f4c1a,_0x4915b0){const _0x4a04c4=_0xddde37;var _0x194bf5;return _0x5f4c1a==null||(_0x194bf5=_0x5f4c1a['customRanges'])==null?void 0x0:_0x194bf5[_0x4a04c4(0x1e3)](_0x4b7ebf=>_0x4b7ebf['rangeId']===_0x4915b0&&_0x1db77c(_0x4b7ebf));}function _0x4671de(_0x463ee1,_0x4d9a59,_0x118470){const _0x83c638=_0xddde37;if(_0x4d9a59===_0x118470){if(_0x1f2f70[_0x83c638(0x221)](_0x463ee1['dataStream'][_0x4d9a59]))throw new _0x5b78e9();}else{for(let _0x4ee419=_0x4d9a59;_0x4ee419<_0x118470;_0x4ee419++)if(_0x463ee1[_0x83c638(0x249)][_0x4ee419]===_0x534dbf[_0x83c638(0x1b5)][_0x83c638(0x1c4)]||_0x1f2f70['has'](_0x463ee1[_0x83c638(0x249)][_0x4ee419]))throw new _0x5b78e9();}}function _0x33c8b9(_0x4b8f44,_0x56dd6c){return{'startIndex':_0x56dd6c,'endIndex':_0x56dd6c,'rangeId':_0x4b8f44,'rangeType':_0x534dbf['CustomRangeType']['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':_0x1735d2}};}function _0x3181c5(_0x383578){const _0xd52a40=_0xddde37;return _0x383578?_0x534dbf[_0xd52a40(0x1b0)]['deepClone'](_0x383578):_0xdeec8b();}function _0x4fea91(_0x5c2d91,_0x4782c2,_0x53c223){const _0x2caa23=_0xddde37;let _0x254224=_0x4cdf49(_0x5c2d91),_0x56730c=_0x4782c2??_0x254224,_0x87554e=_0x53c223??_0x56730c;return{'startOffset':_0x231c53(Math[_0x2caa23(0x190)](_0x56730c,_0x87554e),_0x254224),'endOffset':_0x231c53(Math[_0x2caa23(0x22b)](_0x56730c,_0x87554e),_0x254224)};}function _0x231c53(_0x53505a,_0x473086){const _0xc12a70=_0xddde37;return Math[_0xc12a70(0x22b)](0x0,Math[_0xc12a70(0x190)](_0x53505a,_0x473086));}function _0x4cdf49(_0x20f843){const _0x321ffe=_0xddde37;return _0x20f843[_0x321ffe(0x249)]['endsWith'](''+_0x534dbf[_0x321ffe(0x1b5)][_0x321ffe(0x1c4)]+_0x534dbf[_0x321ffe(0x1b5)][_0x321ffe(0x184)])?Math[_0x321ffe(0x22b)](0x0,_0x20f843['dataStream'][_0x321ffe(0x1fd)]-0x2):_0x20f843['dataStream'][_0x321ffe(0x1f6)](_0x534dbf['DataStreamTreeTokenType'][_0x321ffe(0x184)])?Math[_0x321ffe(0x22b)](0x0,_0x20f843[_0x321ffe(0x249)][_0x321ffe(0x1fd)]-0x1):_0x20f843[_0x321ffe(0x249)]['length'];}function _0x1d3bbb(_0x1fbbb8,_0x58537f,_0x29f81b,_0xeb6682){_0x29f81b>_0x58537f&&_0x5b8b08(_0x1fbbb8,_0x58537f,_0x29f81b),_0x53dc03(_0x1fbbb8,_0x58537f,_0xeb6682);}function _0x2a2b17(_0x48621b,_0x52e8d4,_0x5e0ff6){const _0x3b4ed3=_0xddde37;var _0x9d159f,_0xba22a9;let _0x3a2bb8=_0x3230c3(_0x48621b),_0x16f36e=(_0x9d159f=_0x3a2bb8[_0x3b4ed3(0x1ea)])==null?void 0x0:_0x9d159f[_0x3b4ed3(0x1e3)](_0x5d3707=>_0x5d3707[_0x3b4ed3(0x22a)]===_0x52e8d4&&_0x1db77c(_0x5d3707));if(!_0x16f36e)return null;let _0x5fccb1=(0x0,_0x534dbf[_0x3b4ed3(0x26d)])(_0x16f36e);return _0x1d3bbb(_0x3a2bb8,_0x5fccb1[_0x3b4ed3(0x21c)],_0x5fccb1['endOffset'],_0x5e0ff6),_0x3a2bb8[_0x3b4ed3(0x1ea)]=(_0xba22a9=_0x3a2bb8[_0x3b4ed3(0x1ea)])==null?void 0x0:_0xba22a9[_0x3b4ed3(0x1bc)](_0x44da0c=>_0x44da0c['rangeId']!==_0x52e8d4),_0x5fccb1[_0x3b4ed3(0x21c)]+_0x5e0ff6[_0x3b4ed3(0x1fd)];}function _0x53dc03(_0x533750,_0x5c1430,_0x4e8a44){const _0x8d068c=_0xddde37;_0x4e8a44&&(_0x533750['dataStream']=''+_0x533750[_0x8d068c(0x249)][_0x8d068c(0x1bd)](0x0,_0x5c1430)+_0x4e8a44+_0x533750[_0x8d068c(0x249)][_0x8d068c(0x1bd)](_0x5c1430),_0x81839a(_0x533750,_0x5c1430,_0x4e8a44['length']));}function _0x5b8b08(_0x291362,_0x474092,_0x4effe0){const _0x42729d=_0xddde37;let _0x18371d=_0x4effe0-_0x474092;_0x291362[_0x42729d(0x249)]=''+_0x291362[_0x42729d(0x249)][_0x42729d(0x1bd)](0x0,_0x474092)+_0x291362[_0x42729d(0x249)][_0x42729d(0x1bd)](_0x4effe0),_0x52d55a(_0x291362,_0x474092,_0x18371d);}function _0x81839a(_0x24bc56,_0x572798,_0x1dcb47){const _0x2da649=_0xddde37;_0x24bc56[_0x2da649(0x238)]=_0x182312(_0x24bc56[_0x2da649(0x238)],_0x572798,_0x1dcb47),_0x24bc56[_0x2da649(0x271)]=_0x182312(_0x24bc56[_0x2da649(0x271)],_0x572798,_0x1dcb47),_0x24bc56[_0x2da649(0x1c0)]=_0x182312(_0x24bc56[_0x2da649(0x1c0)],_0x572798,_0x1dcb47),_0x24bc56[_0x2da649(0x215)]=_0x2c9d93(_0x24bc56[_0x2da649(0x215)],_0x572798,_0x1dcb47),_0x24bc56[_0x2da649(0x205)]=_0x99c2f0(_0x24bc56[_0x2da649(0x205)],_0x572798,_0x1dcb47),_0x24bc56['columnGroups']=_0x34a80c(_0x24bc56[_0x2da649(0x160)],_0x572798,_0x1dcb47),_0x24bc56[_0x2da649(0x1ea)]=_0x34a80c(_0x24bc56['customRanges'],_0x572798,_0x1dcb47),_0x24bc56[_0x2da649(0x157)]=_0x34a80c(_0x24bc56[_0x2da649(0x157)],_0x572798,_0x1dcb47),_0x24bc56[_0x2da649(0x28b)]=_0x34a80c(_0x24bc56[_0x2da649(0x28b)],_0x572798,_0x1dcb47);}function _0x52d55a(_0x122970,_0x42d95f,_0x1a54cd){const _0x501e57=_0xddde37;var _0x1b16bb,_0x3b0e62;_0x122970[_0x501e57(0x238)]=_0x8335e6(_0x122970[_0x501e57(0x238)],_0x42d95f,_0x1a54cd),_0x122970[_0x501e57(0x271)]=_0x8335e6(_0x122970['sectionBreaks'],_0x42d95f,_0x1a54cd),_0x122970[_0x501e57(0x1c0)]=_0x8335e6(_0x122970['customBlocks'],_0x42d95f,_0x1a54cd),_0x122970[_0x501e57(0x215)]=(_0x1b16bb=_0x372d22((_0x3b0e62=_0x122970[_0x501e57(0x215)])==null?void 0x0:_0x3b0e62[_0x501e57(0x231)](_0x24ada1=>({..._0x24ada1,'startIndex':_0x24ada1['st'],'endIndex':_0x24ada1['ed']})),_0x42d95f,_0x1a54cd))==null?void 0x0:_0x1b16bb[_0x501e57(0x231)](_0x374f5b=>{let {startIndex:_0x1e3339,endIndex:_0x53150d,..._0x5312a2}=_0x374f5b;return{..._0x5312a2,'st':_0x1e3339,'ed':_0x53150d};}),_0x122970[_0x501e57(0x205)]=_0x372d22(_0x122970['tables'],_0x42d95f,_0x1a54cd),_0x122970[_0x501e57(0x160)]=_0x1aeaa4(_0x122970['columnGroups'],_0x42d95f,_0x1a54cd),_0x122970['customRanges']=_0x1aeaa4(_0x122970[_0x501e57(0x1ea)],_0x42d95f,_0x1a54cd),_0x122970[_0x501e57(0x157)]=_0x1aeaa4(_0x122970[_0x501e57(0x157)],_0x42d95f,_0x1a54cd),_0x122970['blockRanges']=_0x1aeaa4(_0x122970[_0x501e57(0x28b)],_0x42d95f,_0x1a54cd);}function _0x182312(_0x5a1b4f,_0x2ae550,_0x268702){const _0x8761ef=_0xddde37;return _0x5a1b4f==null?void 0x0:_0x5a1b4f['map'](_0x21f462=>_0x21f462[_0x8761ef(0x18f)]>=_0x2ae550?{..._0x21f462,'startIndex':_0x21f462[_0x8761ef(0x18f)]+_0x268702}:_0x21f462);}function _0x8335e6(_0x4e3d92,_0x28621f,_0xf9f157){const _0x525c44=_0xddde37;let _0x441155=_0x28621f+_0xf9f157;return _0x4e3d92==null?void 0x0:_0x4e3d92['map'](_0x289f5b=>_0x289f5b[_0x525c44(0x18f)]>=_0x28621f&&_0x289f5b[_0x525c44(0x18f)]<_0x441155?null:_0x289f5b['startIndex']>=_0x441155?{..._0x289f5b,'startIndex':_0x289f5b[_0x525c44(0x18f)]-_0xf9f157}:_0x289f5b)['filter'](_0x282327=>_0x282327!=null);}function _0x2c9d93(_0x217128,_0x339a5a,_0x25070f){const _0x24848c=_0xddde37;return _0x217128==null?void 0x0:_0x217128[_0x24848c(0x231)](_0x125bf5=>_0x125bf5['st']>=_0x339a5a?{..._0x125bf5,'st':_0x125bf5['st']+_0x25070f,'ed':_0x125bf5['ed']+_0x25070f}:_0x125bf5['ed']>_0x339a5a?{..._0x125bf5,'ed':_0x125bf5['ed']+_0x25070f}:_0x125bf5);}function _0x34a80c(_0x8eef43,_0x32e290,_0x567c57){const _0xe06f50=_0xddde37;return _0x8eef43==null?void 0x0:_0x8eef43['map'](_0x125a86=>(0x0,_0x534dbf[_0xe06f50(0x266)])(_0x125a86,_0x32e290,_0x567c57));}function _0x99c2f0(_0x26c608,_0x2d74e1,_0x285e4c){const _0x2f92fd=_0xddde37;return _0x26c608==null?void 0x0:_0x26c608[_0x2f92fd(0x231)](_0x443f77=>(0x0,_0x534dbf[_0x2f92fd(0x237)])(_0x443f77,_0x2d74e1,_0x285e4c));}function _0x1aeaa4(_0x53736a,_0x1911ef,_0x1ed8e4){const _0x15ae58=_0xddde37;return _0x53736a==null?void 0x0:_0x53736a['map'](_0x529ad0=>(0x0,_0x534dbf[_0x15ae58(0x216)])(_0x529ad0,_0x1911ef,_0x1ed8e4))[_0x15ae58(0x1bc)](_0x432c24=>_0x432c24!=null);}function _0x372d22(_0xb35cac,_0x53ad96,_0x2bb609){const _0x32a6d7=_0xddde37;return _0xb35cac==null?void 0x0:_0xb35cac['map'](_0x454941=>(0x0,_0x534dbf[_0x32a6d7(0x1c3)])(_0x454941,_0x53ad96,_0x2bb609))[_0x32a6d7(0x1bc)](_0x2d1a8f=>_0x2d1a8f!=null);}function _0x3230c3(_0x83edc){const _0xd1a3c5=_0xddde37;if(!_0x83edc[_0xd1a3c5(0x267)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x83edc[_0xd1a3c5(0x267)];}function _0x1d25e4(_0x69ba69){'@babel/helpers - typeof';const _0x1e2a65=_0xddde37;return _0x1d25e4=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x1e2a65(0x229)?function(_0x402faa){return typeof _0x402faa;}:function(_0xeb3893){const _0x5189e5=_0x1e2a65;return _0xeb3893&&typeof Symbol==_0x5189e5(0x1b1)&&_0xeb3893['constructor']===Symbol&&_0xeb3893!==Symbol[_0x5189e5(0x24a)]?_0x5189e5(0x229):typeof _0xeb3893;},_0x1d25e4(_0x69ba69);}function _0x2db29b(_0x2ef706,_0x374e8d){const _0x184bc9=_0xddde37;if(_0x1d25e4(_0x2ef706)!=_0x184bc9(0x24f)||!_0x2ef706)return _0x2ef706;var _0x24ee69;if(typeof Symbol<'u'&&(_0x24ee69=_0x2ef706[Symbol[_0x184bc9(0x1cb)]])!==void 0x0){var _0x5d078c=_0x24ee69[_0x184bc9(0x287)](_0x2ef706,_0x374e8d||_0x184bc9(0x211));if(_0x1d25e4(_0x5d078c)!=_0x184bc9(0x24f))return _0x5d078c;throw TypeError(_0x184bc9(0x1cf));}return(_0x374e8d===_0x184bc9(0x1bf)?String:Number)(_0x2ef706);}function _0x23aa3c(_0x1065ab){const _0x1ad971=_0xddde37;var _0x3bbba4=_0x2db29b(_0x1065ab,_0x1ad971(0x1bf));return _0x1d25e4(_0x3bbba4)==_0x1ad971(0x229)?_0x3bbba4:_0x3bbba4+'';}function _0xa1107b(_0x36d9ab,_0x2d2761,_0x180a73){const _0x259c4e=_0xddde37;return(_0x2d2761=_0x23aa3c(_0x2d2761))in _0x36d9ab?Object[_0x259c4e(0x1d9)](_0x36d9ab,_0x2d2761,{'value':_0x180a73,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x36d9ab[_0x2d2761]=_0x180a73,_0x36d9ab;}var _0x43af87=class extends _0x534dbf[_0xddde37(0x24c)]{constructor(..._0x4a4f05){const _0x10e884=_0xddde37;super(..._0x4a4f05),_0xa1107b(this,_0x10e884(0x1e6),new Map()),_0xa1107b(this,'_rawResources',new Map()),_0xa1107b(this,_0x10e884(0x228),new Map()),_0xa1107b(this,'_change$',new _0x57d587[(_0x10e884(0x154))]()),_0xa1107b(this,_0x10e884(0x23f),this[_0x10e884(0x201)]['asObservable']());}[_0xddde37(0x25d)](_0x596e8a,_0x26f6ad){const _0x37f925=_0xddde37;var _0x504284;let _0x29b650=(_0x504284=this[_0x37f925(0x1e6)][_0x37f925(0x189)](_0x596e8a))==null?void 0x0:_0x504284[_0x37f925(0x1c7)][_0x26f6ad];return _0x29b650?_0x534dbf[_0x37f925(0x1b0)]['deepClone'](_0x29b650):void 0x0;}[_0xddde37(0x204)](_0x2b616f){const _0x517c76=_0xddde37;var _0x34d96a;return _0x534dbf['Tools']['deepClone'](((_0x34d96a=this[_0x517c76(0x1e6)][_0x517c76(0x189)](_0x2b616f))==null?void 0x0:_0x34d96a[_0x517c76(0x1c7)])??{});}[_0xddde37(0x181)](_0xc0a92b){const _0x36e3d9=_0xddde37;let _0x5dd705=this['_resources'][_0x36e3d9(0x189)](_0xc0a92b);return _0x5dd705?_0x534dbf[_0x36e3d9(0x1b0)][_0x36e3d9(0x183)](_0x5dd705):void 0x0;}[_0xddde37(0x214)](_0x12ad9a,_0x1ba15c,_0x1abcfd){const _0x58c58c=_0xddde37;return this[_0x58c58c(0x1d6)](_0x12ad9a,{[_0x1ba15c]:_0x1abcfd});}['setResource'](_0x4afcf1,_0x3d47e4){const _0x2de903=_0xddde37;return this[_0x2de903(0x228)][_0x2de903(0x221)](_0x4afcf1)||!_0x5bb3ce(_0x3d47e4)?!0x1:(this[_0x2de903(0x1e6)][_0x2de903(0x200)](_0x4afcf1,{'formulas':_0x534dbf[_0x2de903(0x1b0)]['deepClone'](_0x3d47e4['formulas'])}),this['_change$'][_0x2de903(0x275)]({'unitId':_0x4afcf1}),!0x0);}['setFormulas'](_0x50531e,_0xf929cb){const _0x2411af=_0xddde37;if(this[_0x2411af(0x228)][_0x2411af(0x221)](_0x50531e)||!Object[_0x2411af(0x245)](_0xf929cb)[_0x2411af(0x1fd)]||!_0x5bb3ce({'formulas':_0xf929cb}))return!0x1;let _0x2752ce=this[_0x2411af(0x1e6)][_0x2411af(0x189)](_0x50531e)??_0xdeec8b(),_0x32cd73=_0x534dbf['Tools'][_0x2411af(0x183)](_0x2752ce);return Object[_0x2411af(0x1fc)](_0x32cd73[_0x2411af(0x1c7)],_0x534dbf[_0x2411af(0x1b0)]['deepClone'](_0xf929cb)),this[_0x2411af(0x1e6)]['set'](_0x50531e,_0x32cd73),this[_0x2411af(0x201)]['next']({'unitId':_0x50531e,'rangeIds':Object[_0x2411af(0x245)](_0xf929cb)}),!0x0;}[_0xddde37(0x1cd)](_0x290ea4,_0x5cf654){const _0x6be7a=_0xddde37;if(this[_0x6be7a(0x228)][_0x6be7a(0x221)](_0x290ea4))return!0x1;let _0x33c8a6=this['_resources'][_0x6be7a(0x189)](_0x290ea4);if(!(_0x33c8a6!=null&&_0x33c8a6[_0x6be7a(0x1c7)][_0x5cf654]))return!0x1;let _0x24f04a=_0x534dbf[_0x6be7a(0x1b0)][_0x6be7a(0x183)](_0x33c8a6);return delete _0x24f04a[_0x6be7a(0x1c7)][_0x5cf654],this['_resources'][_0x6be7a(0x200)](_0x290ea4,_0x24f04a),this[_0x6be7a(0x201)][_0x6be7a(0x275)]({'unitId':_0x290ea4,'rangeIds':[_0x5cf654]}),!0x0;}['load'](_0x58faca,_0x3afd38){const _0x5a987e=_0xddde37;return _0x5bb3ce(_0x3afd38)?(this['_resources']['set'](_0x58faca,{'formulas':_0x534dbf[_0x5a987e(0x1b0)][_0x5a987e(0x183)](_0x3afd38[_0x5a987e(0x1c7)])}),this[_0x5a987e(0x1e0)][_0x5a987e(0x1ae)](_0x58faca),this[_0x5a987e(0x228)][_0x5a987e(0x1ae)](_0x58faca),this[_0x5a987e(0x201)][_0x5a987e(0x275)]({'unitId':_0x58faca}),!0x0):(this[_0x5a987e(0x192)](_0x58faca,_0x3afd38,_0x5a987e(0x1a1)),!0x1);}[_0xddde37(0x1e2)](_0x31c3bf){const _0x2050c9=_0xddde37;let _0x43971a=this[_0x2050c9(0x1e6)][_0x2050c9(0x189)](_0x31c3bf);return _0x43971a?_0x534dbf[_0x2050c9(0x1b0)][_0x2050c9(0x183)](_0x43971a):this[_0x2050c9(0x1e0)]['has'](_0x31c3bf)?_0x534dbf[_0x2050c9(0x1b0)][_0x2050c9(0x183)](this['_rawResources'][_0x2050c9(0x189)](_0x31c3bf)):_0xdeec8b();}['getLoadError'](_0xb90380){const _0x5e5667=_0xddde37;return this[_0x5e5667(0x228)][_0x5e5667(0x189)](_0xb90380);}[_0xddde37(0x1ba)](_0x5473af){const _0x3673c5=_0xddde37;this['_resources']['delete'](_0x5473af),this[_0x3673c5(0x1e0)]['delete'](_0x5473af),this[_0x3673c5(0x228)]['delete'](_0x5473af),this[_0x3673c5(0x201)]['next']({'unitId':_0x5473af});}[_0xddde37(0x1f0)](){const _0xceda25=_0xddde37;this[_0xceda25(0x1e6)][_0xceda25(0x20d)](),this[_0xceda25(0x1e0)][_0xceda25(0x20d)](),this[_0xceda25(0x228)][_0xceda25(0x20d)](),this[_0xceda25(0x201)]['complete'](),super['dispose']();}[_0xddde37(0x192)](_0x5ec8b3,_0x2f48a8,_0x2c2e84){const _0x225a31=_0xddde37;this[_0x225a31(0x1e6)]['delete'](_0x5ec8b3),this[_0x225a31(0x1e0)]['set'](_0x5ec8b3,_0x534dbf[_0x225a31(0x1b0)]['deepClone'](_0x2f48a8)),this[_0x225a31(0x228)][_0x225a31(0x200)](_0x5ec8b3,_0x2c2e84),this['_change$'][_0x225a31(0x275)]({'unitId':_0x5ec8b3});}};let _0x3a2323=function(_0x372782){const _0x46abc8=_0xddde37;return _0x372782[_0x46abc8(0x169)]=_0x46abc8(0x16d),_0x372782[_0x46abc8(0x195)]=_0x46abc8(0x27b),_0x372782[_0x46abc8(0x27c)]=_0x46abc8(0x1c1),_0x372782[_0x46abc8(0x23e)]='error',_0x372782;}({});function _0x15f532(_0x479cfc,_0x435f3c){return function(_0x61aa27,_0x4af59c){_0x435f3c(_0x61aa27,_0x4af59c,_0x479cfc);};}function _0x35d3cd(_0x380e29,_0x1aca43,_0x193275,_0x496830){const _0x54b9f3=_0xddde37;var _0x1f38af=arguments[_0x54b9f3(0x1fd)],_0x2e05f0=_0x1f38af<0x3?_0x1aca43:_0x496830===null?_0x496830=Object['getOwnPropertyDescriptor'](_0x1aca43,_0x193275):_0x496830,_0x50b6f6;if(typeof Reflect=='object'&&typeof Reflect[_0x54b9f3(0x1a8)]=='function')_0x2e05f0=Reflect[_0x54b9f3(0x1a8)](_0x380e29,_0x1aca43,_0x193275,_0x496830);else{for(var _0x1bc782=_0x380e29[_0x54b9f3(0x1fd)]-0x1;_0x1bc782>=0x0;_0x1bc782--)(_0x50b6f6=_0x380e29[_0x1bc782])&&(_0x2e05f0=(_0x1f38af<0x3?_0x50b6f6(_0x2e05f0):_0x1f38af>0x3?_0x50b6f6(_0x1aca43,_0x193275,_0x2e05f0):_0x50b6f6(_0x1aca43,_0x193275))||_0x2e05f0);}return _0x1f38af>0x3&&_0x2e05f0&&Object[_0x54b9f3(0x1d9)](_0x1aca43,_0x193275,_0x2e05f0),_0x2e05f0;}let _0x488730=class extends _0x534dbf['Disposable']{constructor(_0x4deafa,_0x16a346,_0x143a73){const _0x128009=_0xddde37;super(),this['_model']=_0x4deafa,this[_0x128009(0x290)]=_0x16a346,this['_hostExternalReferenceModel']=_0x143a73,_0xa1107b(this,'_registrations',new Map()),_0xa1107b(this,'_formulaKeys',new Map()),_0xa1107b(this,_0x128009(0x222),new _0x57d587[(_0x128009(0x154))]()),_0xa1107b(this,_0x128009(0x1e5),this[_0x128009(0x222)]['asObservable']()),this[_0x128009(0x277)](this[_0x128009(0x290)][_0x128009(0x18b)][_0x128009(0x1df)](_0x3ba59b=>{const _0x4817cf=_0x128009;for(let _0x3119b9 of Object['values'](_0x3ba59b))for(let _0x4fea36 of Object[_0x4817cf(0x1b7)](_0x3119b9))_0x4fea36[_0x4817cf(0x281)](_0x33735b=>this[_0x4817cf(0x17b)](_0x33735b));}));}[_0xddde37(0x182)](_0x2c397f){const _0x1d02f5=_0xddde37;var _0x2f97f7;let _0x4248d9=_0x2c397f[_0x1d02f5(0x1a4)](),_0x45571c=((_0x2f97f7=_0x2c397f[_0x1d02f5(0x1f8)]()['body'])==null||(_0x2f97f7=_0x2f97f7['customRanges'])==null?void 0x0:_0x2f97f7[_0x1d02f5(0x1bc)](_0x1db77c))??[],_0x44a8fe=this[_0x1d02f5(0x218)]['getFormulas'](_0x4248d9),_0x100688=new Set();for(let _0x3ee441 of _0x45571c){let _0x135031=_0x44a8fe[_0x3ee441[_0x1d02f5(0x22a)]];_0x135031&&(_0x100688['add'](_0x224885(_0x4248d9,_0x3ee441['rangeId'])),this[_0x1d02f5(0x20c)]({'unitId':_0x4248d9,'rangeId':_0x3ee441[_0x1d02f5(0x22a)]},_0x135031));}for(let _0x2855e9 of Array[_0x1d02f5(0x27d)](this[_0x1d02f5(0x1f5)][_0x1d02f5(0x1b7)]()))_0x2855e9[_0x1d02f5(0x1b2)]===_0x4248d9&&!_0x100688['has'](_0x224885(_0x2855e9['unitId'],_0x2855e9[_0x1d02f5(0x22a)]))&&this[_0x1d02f5(0x280)](_0x2855e9);}[_0xddde37(0x20c)](_0x55166e,_0x4e9208){const _0x180dab=_0xddde37;let _0x2baa5f=_0x224885(_0x55166e[_0x180dab(0x1b2)],_0x55166e[_0x180dab(0x22a)]),_0x2d643f=this[_0x180dab(0x1f5)][_0x180dab(0x189)](_0x2baa5f),_0x2bfcfc=this[_0x180dab(0x230)][_0x180dab(0x217)](_0x55166e[_0x180dab(0x1b2)]);if(_0x2d643f&&_0x2d643f['config'][_0x180dab(0x166)]===_0x4e9208['formula']&&_0x2d643f['referenceRevision']===_0x2bfcfc){_0x2d643f[_0x180dab(0x1ac)]=_0x4e9208;let _0x56b39a=_0x2d643f[_0x180dab(0x159)]?this[_0x180dab(0x290)]['getFormulaValueSync'](_0x2d643f[_0x180dab(0x1b2)],_0x2d643f[_0x180dab(0x1b2)],_0x2d643f['formulaId'])??void 0x0:void 0x0;_0x2d643f[_0x180dab(0x257)]=_0x56b39a,this[_0x180dab(0x175)](_0x2baa5f,_0x19c272(_0x4e9208,_0x56b39a));return;}_0x2d643f!=null&&_0x2d643f[_0x180dab(0x159)]&&this[_0x180dab(0x236)](_0x2d643f);let _0x445ca6={..._0x55166e,'config':_0x4e9208,'referenceRevision':_0x2bfcfc,'presentation':_0x19c272(_0x4e9208,void 0x0)};if(this[_0x180dab(0x1f5)][_0x180dab(0x200)](_0x2baa5f,_0x445ca6),!_0x4e9208[_0x180dab(0x166)][_0x180dab(0x209)]())return;let _0x2ae1a4=this[_0x180dab(0x290)]['registerFormulaWithRange'](_0x55166e[_0x180dab(0x1b2)],_0x55166e['unitId'],_0x4e9208[_0x180dab(0x166)],void 0x0,{'rangeId':_0x55166e['rangeId']},_0x546eeb[_0x180dab(0x263)][_0x180dab(0x1fb)],_0x55166e[_0x180dab(0x22a)]);_0x445ca6[_0x180dab(0x159)]=_0x2ae1a4,this['_formulaKeys'][_0x180dab(0x200)](_0x2ae1a4,_0x2baa5f);}[_0xddde37(0x280)](_0x15a171){const _0xce915a=_0xddde37;let _0x42109a=_0x224885(_0x15a171[_0xce915a(0x1b2)],_0x15a171[_0xce915a(0x22a)]),_0x2225f8=this[_0xce915a(0x1f5)][_0xce915a(0x189)](_0x42109a);_0x2225f8&&(this['_deleteRegistration'](_0x2225f8),this[_0xce915a(0x1f5)][_0xce915a(0x1ae)](_0x42109a));}[_0xddde37(0x253)](_0x577397){const _0x22f0a2=_0xddde37;for(let _0x139b6f of Array['from'](this[_0x22f0a2(0x1f5)]['values']()))_0x139b6f['unitId']===_0x577397&&this['unregister'](_0x139b6f);}[_0xddde37(0x262)](_0x41f48f){const _0x5368e5=_0xddde37;var _0x114cd4;return(_0x114cd4=this[_0x5368e5(0x1f5)]['get'](_0x224885(_0x41f48f[_0x5368e5(0x1b2)],_0x41f48f['rangeId'])))==null?void 0x0:_0x114cd4[_0x5368e5(0x162)];}[_0xddde37(0x1ab)](_0x568864){const _0x5bf562=_0xddde37;let _0x5c85d8=this[_0x5bf562(0x1f5)][_0x5bf562(0x189)](_0x224885(_0x568864[_0x5bf562(0x1b2)],_0x568864[_0x5bf562(0x22a)]));return _0x5c85d8?_0x4adfde(_0x5c85d8):void 0x0;}[_0xddde37(0x24b)](){const _0x377b56=_0xddde37;return Array[_0x377b56(0x27d)](this[_0x377b56(0x1f5)][_0x377b56(0x1b7)](),_0x564bc8=>({'identity':{'unitId':_0x564bc8['unitId'],'rangeId':_0x564bc8['rangeId']},'config':_0x564bc8['config'],'referenceRevision':_0x564bc8[_0x377b56(0x20f)],..._0x564bc8[_0x377b56(0x257)]?{'liveResult':_0x564bc8[_0x377b56(0x257)]}:null}));}['dispose'](){const _0x550023=_0xddde37;for(let _0x5850da of this[_0x550023(0x1f5)][_0x550023(0x1b7)]())this[_0x550023(0x236)](_0x5850da);this[_0x550023(0x1f5)][_0x550023(0x20d)](),this[_0x550023(0x20a)][_0x550023(0x20d)](),this[_0x550023(0x222)][_0x550023(0x203)](),super[_0x550023(0x1f0)]();}[_0xddde37(0x17b)](_0x42744e){const _0x4d4076=_0xddde37;let _0xcabf3e=this[_0x4d4076(0x20a)]['get'](_0x42744e['formulaId']),_0x386786=_0xcabf3e?this['_registrations'][_0x4d4076(0x189)](_0xcabf3e):void 0x0;_0xcabf3e&&_0x386786&&(_0x386786[_0x4d4076(0x257)]=_0x42744e,this[_0x4d4076(0x175)](_0xcabf3e,_0x19c272(_0x386786[_0x4d4076(0x1ac)],_0x42744e)));}['_setPresentation'](_0xfa7c6b,_0x44e1e5){const _0x23ba99=_0xddde37;var _0x964992,_0x4ed9c6;let _0x57f776=this[_0x23ba99(0x1f5)][_0x23ba99(0x189)](_0xfa7c6b);if(!_0x57f776||_0x59269d(_0x57f776[_0x23ba99(0x162)],_0x44e1e5))return;let _0x416920=_0x57f776[_0x23ba99(0x162)],_0x2be897=_0x4adfde(_0x57f776);_0x57f776['presentation']=_0x44e1e5,this[_0x23ba99(0x222)][_0x23ba99(0x275)]({'unitId':_0x57f776[_0x23ba99(0x1b2)],'rangeId':_0x57f776['rangeId'],'presentation':_0x44e1e5,'previousPresentation':_0x416920,'result':_0x4adfde(_0x57f776),'previousResult':{..._0x2be897,..._0x416920,'value':(_0x964992=_0x416920[_0x23ba99(0x21d)])==null?void 0x0:_0x964992['v'],'valueType':((_0x4ed9c6=_0x416920[_0x23ba99(0x21d)])==null?void 0x0:_0x4ed9c6['t'])??void 0x0}});}[_0xddde37(0x236)](_0x35850b){const _0x2e2498=_0xddde37;_0x35850b[_0x2e2498(0x159)]&&(this[_0x2e2498(0x290)][_0x2e2498(0x255)](_0x35850b[_0x2e2498(0x1b2)],_0x35850b[_0x2e2498(0x1b2)],[_0x35850b[_0x2e2498(0x159)]]),this[_0x2e2498(0x20a)][_0x2e2498(0x1ae)](_0x35850b[_0x2e2498(0x159)]));}};_0x488730=_0x35d3cd([_0x15f532(0x0,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x43af87)),_0x15f532(0x1,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x546eeb[_0xddde37(0x212)])),_0x15f532(0x2,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x51228b[_0xddde37(0x15a)]))],_0x488730);function _0x224885(_0x291974,_0x4bb908){return _0x291974+'\x00'+_0x4bb908;}function _0x19c272(_0x5bd517,_0x2f7450){const _0x1b848c=_0xddde37;return(0x0,_0x51228b['resolveFormulaResultPresentation'])({'numberFormat':_0x5bd517[_0x1b848c(0x196)],'lastValue':_0x5bd517[_0x1b848c(0x17e)],'result':_0x2f7450});}function _0x4adfde(_0x47e44d){const _0x1b84c5=_0xddde37;var _0x2ff7b4,_0x3f446e,_0x11a6b0;let _0x4597d3=_0x47e44d[_0x1b84c5(0x162)],_0x380bc0=_0x47e44d[_0x1b84c5(0x1ac)][_0x1b84c5(0x166)][_0x1b84c5(0x209)]()?_0x4597d3[_0x1b84c5(0x198)]||_0x4597d3['cell']==null?'pending':((_0x2ff7b4=_0x47e44d[_0x1b84c5(0x257)])==null?void 0x0:_0x2ff7b4[_0x1b84c5(0x22c)])===_0x546eeb[_0x1b84c5(0x286)][_0x1b84c5(0x23e)]?'error':_0x1b84c5(0x1c1):'empty';return{..._0x4597d3,'status':_0x380bc0,'value':(_0x3f446e=_0x4597d3['cell'])==null?void 0x0:_0x3f446e['v'],'valueType':((_0x11a6b0=_0x4597d3[_0x1b84c5(0x21d)])==null?void 0x0:_0x11a6b0['t'])??void 0x0};}function _0x59269d(_0x5846de,_0x315bb4){const _0x4bb048=_0xddde37;var _0x49556c,_0x3fc473,_0x42742e,_0x2436a2;return _0x5846de[_0x4bb048(0x18c)]===_0x315bb4['text']&&_0x5846de['color']===_0x315bb4['color']&&_0x5846de['pattern']===_0x315bb4[_0x4bb048(0x1f2)]&&_0x5846de[_0x4bb048(0x1d8)]===_0x315bb4['source']&&_0x5846de[_0x4bb048(0x198)]===_0x315bb4[_0x4bb048(0x198)]&&((_0x49556c=_0x5846de[_0x4bb048(0x21d)])==null?void 0x0:_0x49556c['t'])===((_0x3fc473=_0x315bb4[_0x4bb048(0x21d)])==null?void 0x0:_0x3fc473['t'])&&Object['is']((_0x42742e=_0x5846de[_0x4bb048(0x21d)])==null?void 0x0:_0x42742e['v'],(_0x2436a2=_0x315bb4[_0x4bb048(0x21d)])==null?void 0x0:_0x2436a2['v']);}let _0x5b8f47={'id':_0xddde37(0x202),'type':_0x534dbf[_0xddde37(0x187)]['MUTATION'],'handler':(_0x20ca54,_0x10e1e4)=>!(_0x10e1e4!=null&&_0x10e1e4['unitId'])||!_0x10e1e4[_0xddde37(0x22a)]||!_0x10e1e4[_0xddde37(0x1ac)]?!0x1:_0x20ca54[_0xddde37(0x189)](_0x43af87)['setFormula'](_0x10e1e4['unitId'],_0x10e1e4[_0xddde37(0x22a)],_0x10e1e4[_0xddde37(0x1ac)])},_0x2cc3cc={'id':'docs-formula.mutation.remove-formula','type':_0x534dbf[_0xddde37(0x187)][_0xddde37(0x1e7)],'handler':(_0x3be829,_0xef9ff7)=>!(_0xef9ff7!=null&&_0xef9ff7[_0xddde37(0x1b2)])||!_0xef9ff7[_0xddde37(0x22a)]?!0x1:_0x3be829['get'](_0x43af87)[_0xddde37(0x1cd)](_0xef9ff7[_0xddde37(0x1b2)],_0xef9ff7['rangeId'])},_0x2270ae={'id':_0xddde37(0x1a5),'type':_0x534dbf[_0xddde37(0x187)][_0xddde37(0x1e7)],'handler':(_0x39f5fb,_0x53bf8e)=>!(_0x53bf8e!=null&&_0x53bf8e['unitId'])||!_0x53bf8e['resource']?!0x1:_0x39f5fb[_0xddde37(0x189)](_0x43af87)['setResource'](_0x53bf8e[_0xddde37(0x1b2)],_0x53bf8e[_0xddde37(0x1ed)])},_0x2e19e9={'id':_0xddde37(0x17a),'type':_0x534dbf[_0xddde37(0x187)][_0xddde37(0x1e7)],'handler':(_0x285c04,_0x2bc698)=>{const _0x2b9938=_0xddde37;if(!(_0x2bc698!=null&&_0x2bc698['unitId'])||!_0x2bc698['updates'][_0x2b9938(0x1fd)])return!0x1;let _0x4a69c1=_0x285c04[_0x2b9938(0x189)](_0x43af87),_0x21a701=_0x285c04['get'](_0x51228b[_0x2b9938(0x15a)]),_0x439acb=_0x4a69c1[_0x2b9938(0x181)](_0x2bc698[_0x2b9938(0x1b2)]);if(!_0x439acb)return!0x1;let _0xf1a9f8=_0x534dbf[_0x2b9938(0x1b0)][_0x2b9938(0x183)](_0x439acb),_0x16b9ea=!0x1;for(let _0x2a84e1 of _0x2bc698[_0x2b9938(0x288)]){var _0x529c95,_0x450cee,_0x1060d7,_0x5eca92;let _0x591998=_0xf1a9f8[_0x2b9938(0x1c7)][_0x2a84e1['rangeId']];_0x591998&&_0x591998[_0x2b9938(0x166)]===_0x2a84e1['expectedFormula']&&((_0x529c95=_0x591998[_0x2b9938(0x196)])==null?void 0x0:_0x529c95[_0x2b9938(0x1f2)])===_0x2a84e1['expectedNumberFormat']&&_0x21a701[_0x2b9938(0x217)](_0x2bc698[_0x2b9938(0x1b2)])===_0x2a84e1['expectedReferenceRevision']&&(((_0x450cee=_0x591998['lastValue'])==null?void 0x0:_0x450cee['v'])!==_0x2a84e1['lastValue']['v']||((_0x1060d7=_0x591998[_0x2b9938(0x17e)])==null?void 0x0:_0x1060d7['t'])!==_0x2a84e1[_0x2b9938(0x17e)]['t']||((_0x5eca92=_0x591998[_0x2b9938(0x17e)])==null?void 0x0:_0x5eca92[_0x2b9938(0x1f2)])!==_0x2a84e1[_0x2b9938(0x17e)]['pattern'])&&(_0x591998['lastValue']=_0x534dbf[_0x2b9938(0x1b0)]['deepClone'](_0x2a84e1[_0x2b9938(0x17e)]),_0x16b9ea=!0x0);}return!_0x16b9ea||_0x4a69c1[_0x2b9938(0x1bb)](_0x2bc698[_0x2b9938(0x1b2)],_0xf1a9f8);}},_0x2a63dd={'id':_0xddde37(0x207),'type':_0x534dbf['CommandType'][_0xddde37(0x26c)],'handler':(_0x535e52,_0x3b01f8)=>{const _0x3e7a6a=_0xddde37;if(!(_0x3b01f8!=null&&_0x3b01f8[_0x3e7a6a(0x166)][_0x3e7a6a(0x209)]()))return!0x1;let _0x7d64e8=_0x9dbe7(_0x535e52,_0x3b01f8['unitId'],'');if(!_0x7d64e8)return!0x1;let _0x35dda7=_0x26a3bb(_0x3b01f8[_0x3e7a6a(0x28a)],_0x7d64e8['body'],_0x210ca6(_0x535e52,_0x7d64e8[_0x3e7a6a(0x1b2)]));if(!_0x35dda7)return!0x1;let _0x2d642a=_0x32dfb9(_0x535e52,_0x7d64e8[_0x3e7a6a(0x1b2)],_0x3b01f8[_0x3e7a6a(0x166)],_0x3b01f8[_0x3e7a6a(0x208)]??[]);if(!_0x2d642a)return!0x1;let _0xff13d7=_0x552d7b(_0x7d64e8[_0x3e7a6a(0x267)],_0x7d64e8['model'],_0x7d64e8[_0x3e7a6a(0x1b2)]),_0x1e5b74=_0x2e712c({'documentData':_0x7d64e8[_0x3e7a6a(0x19d)],'resource':_0x7d64e8[_0x3e7a6a(0x1ed)],'rangeId':_0xff13d7,'config':{'formula':_0x3b01f8[_0x3e7a6a(0x166)],..._0x3b01f8['numberFormat']?{'numberFormat':_0x3b01f8[_0x3e7a6a(0x196)]}:null},'startOffset':_0x35dda7[_0x3e7a6a(0x21c)],'endOffset':_0x35dda7[_0x3e7a6a(0x206)]});if(!_0x1e5b74)return!0x1;let _0x1b5c71=(0x0,_0x51228b[_0x3e7a6a(0x20e)])(_0x535e52,_0x7d64e8['unitId'],_0x2d642a);return!_0x1b5c71||!_0x5dba21({'accessor':_0x535e52,'document':_0x7d64e8[_0x3e7a6a(0x1ec)],'unitId':_0x7d64e8[_0x3e7a6a(0x1b2)],'trigger':_0x2a63dd['id'],'rangeId':_0xff13d7,'previousResource':_0x7d64e8[_0x3e7a6a(0x1ed)],'nextResource':_0x1e5b74[_0x3e7a6a(0x225)],'previousDocumentData':_0x7d64e8['documentData'],'nextDocumentData':_0x1e5b74[_0x3e7a6a(0x161)],'cursorOffset':_0x1e5b74[_0x3e7a6a(0x278)],'externalMutations':_0x1b5c71})?!0x1:{'rangeId':_0xff13d7,'startOffset':_0x1e5b74[_0x3e7a6a(0x278)]-0x1,'endOffset':_0x1e5b74[_0x3e7a6a(0x278)]};}},_0x21e783={'id':_0xddde37(0x27a),'type':_0x534dbf[_0xddde37(0x187)][_0xddde37(0x26c)],'handler':(_0x3985eb,_0x3922e0)=>{const _0x5ebcfc=_0xddde37;if(!(_0x3922e0!=null&&_0x3922e0[_0x5ebcfc(0x22a)])||!_0x3922e0['formula'][_0x5ebcfc(0x209)]())return!0x1;let _0x2c5148=_0x9dbe7(_0x3985eb,_0x3922e0[_0x5ebcfc(0x1b2)],''),_0x40c31c=_0x2c5148==null?void 0x0:_0x2c5148[_0x5ebcfc(0x15b)]['getFormula'](_0x2c5148[_0x5ebcfc(0x1b2)],_0x3922e0[_0x5ebcfc(0x22a)]),_0x3938f6=_0x2c5148?_0x40a861(_0x2c5148[_0x5ebcfc(0x19d)][_0x5ebcfc(0x267)],_0x3922e0[_0x5ebcfc(0x22a)]):void 0x0;if(!_0x2c5148||!_0x40c31c||!_0x3938f6)return!0x1;let _0x4e2431=_0x32dfb9(_0x3985eb,_0x2c5148[_0x5ebcfc(0x1b2)],_0x3922e0[_0x5ebcfc(0x166)],_0x3922e0[_0x5ebcfc(0x208)]??[]);if(!_0x4e2431)return!0x1;let _0x4346c9=(0x0,_0x51228b[_0x5ebcfc(0x20e)])(_0x3985eb,_0x2c5148[_0x5ebcfc(0x1b2)],_0x4e2431);if(!_0x4346c9)return!0x1;let _0x5b154b=_0x30d23a(_0x2c5148[_0x5ebcfc(0x1ed)]);return _0x5b154b[_0x5ebcfc(0x1c7)][_0x3922e0['rangeId']]={'formula':_0x3922e0[_0x5ebcfc(0x166)],..._0x3922e0[_0x5ebcfc(0x196)]?{'numberFormat':_0x3922e0[_0x5ebcfc(0x196)]}:_0x40c31c[_0x5ebcfc(0x196)]?{'numberFormat':_0x40c31c[_0x5ebcfc(0x196)]}:null},_0x5dba21({'accessor':_0x3985eb,'document':_0x2c5148[_0x5ebcfc(0x1ec)],'unitId':_0x2c5148[_0x5ebcfc(0x1b2)],'trigger':_0x21e783['id'],'rangeId':_0x3922e0[_0x5ebcfc(0x22a)],'previousResource':_0x2c5148['resource'],'nextResource':_0x5b154b,'cursorOffset':_0x3938f6[_0x5ebcfc(0x165)]+0x1,'externalMutations':_0x4346c9});}},_0x46722c={'id':'docs-formula.command.set-number-format','type':_0x534dbf['CommandType'][_0xddde37(0x26c)],'handler':(_0x6ef13f,_0x5b920d)=>{const _0x5767d3=_0xddde37;if(!(_0x5b920d!=null&&_0x5b920d[_0x5767d3(0x22a)]))return!0x1;let _0x3363f7=_0x9dbe7(_0x6ef13f,_0x5b920d['unitId'],''),_0x2dcb90=_0x3363f7==null?void 0x0:_0x3363f7[_0x5767d3(0x15b)][_0x5767d3(0x25d)](_0x3363f7['unitId'],_0x5b920d['rangeId']),_0x14e0a7=_0x3363f7?_0x40a861(_0x3363f7[_0x5767d3(0x19d)][_0x5767d3(0x267)],_0x5b920d[_0x5767d3(0x22a)]):void 0x0;if(!_0x3363f7||!_0x2dcb90||!_0x14e0a7)return!0x1;let _0x1fb4d7=_0x30d23a(_0x3363f7[_0x5767d3(0x1ed)]);return _0x1fb4d7['formulas'][_0x5b920d[_0x5767d3(0x22a)]]={..._0x2dcb90,..._0x5b920d[_0x5767d3(0x196)]?{'numberFormat':_0x5b920d[_0x5767d3(0x196)]}:null},_0x5b920d[_0x5767d3(0x196)]||delete _0x1fb4d7[_0x5767d3(0x1c7)][_0x5b920d[_0x5767d3(0x22a)]][_0x5767d3(0x196)],_0x5dba21({'accessor':_0x6ef13f,'document':_0x3363f7[_0x5767d3(0x1ec)],'unitId':_0x3363f7[_0x5767d3(0x1b2)],'trigger':_0x46722c['id'],'rangeId':_0x5b920d[_0x5767d3(0x22a)],'previousResource':_0x3363f7[_0x5767d3(0x1ed)],'nextResource':_0x1fb4d7,'cursorOffset':_0x14e0a7[_0x5767d3(0x165)]+0x1,'externalMutations':{}});}},_0x5367e8={'id':'docs-formula.command.remove','type':_0x534dbf[_0xddde37(0x187)][_0xddde37(0x26c)],'handler':(_0x149520,_0x3f1865)=>_0x3fcc03(_0x149520,_0x3f1865,'',_0x5367e8['id'])},_0x4bb066={'id':'docs-formula.command.replace-with-text','type':_0x534dbf['CommandType'][_0xddde37(0x26c)],'handler':(_0x3c2a14,_0x719461)=>_0x3fcc03(_0x3c2a14,_0x719461,(_0x719461==null?void 0x0:_0x719461[_0xddde37(0x18c)])??'',_0x4bb066['id'])},_0x91d31e={'id':'docs-formula.command.convert-to-text','type':_0x534dbf[_0xddde37(0x187)][_0xddde37(0x26c)],'handler':(_0x2dfde1,_0xba0589)=>{const _0x7e71dc=_0xddde37;if(!(_0xba0589!=null&&_0xba0589[_0x7e71dc(0x22a)]))return!0x1;let _0x3a1be9=_0x9dbe7(_0x2dfde1,_0xba0589[_0x7e71dc(0x1b2)],'');if(!_0x3a1be9)return!0x1;let _0x39115e=_0x2dfde1[_0x7e71dc(0x189)](_0x488730)['getResult']({'unitId':_0x3a1be9[_0x7e71dc(0x1b2)],'rangeId':_0xba0589[_0x7e71dc(0x22a)]});return _0x39115e?_0x3fcc03(_0x2dfde1,_0xba0589,_0x39115e[_0x7e71dc(0x18c)],_0x91d31e['id']):!0x1;}};function _0x3fcc03(_0x111cca,_0x3c88fb,_0x529136,_0x1aa4c7){const _0x302b27=_0xddde37;if(!(_0x3c88fb!=null&&_0x3c88fb[_0x302b27(0x22a)]))return!0x1;let _0x5437a1=_0x9dbe7(_0x111cca,_0x3c88fb[_0x302b27(0x1b2)],'');if(!_0x5437a1)return!0x1;let _0x5cf926=_0x595916({'documentData':_0x5437a1[_0x302b27(0x19d)],'resource':_0x5437a1[_0x302b27(0x1ed)],'rangeId':_0x3c88fb[_0x302b27(0x22a)],'text':_0x529136});return _0x5cf926?_0x5dba21({'accessor':_0x111cca,'document':_0x5437a1[_0x302b27(0x1ec)],'unitId':_0x5437a1['unitId'],'trigger':_0x1aa4c7,'rangeId':_0x3c88fb[_0x302b27(0x22a)],'previousResource':_0x5437a1[_0x302b27(0x1ed)],'nextResource':_0x5cf926[_0x302b27(0x225)],'previousDocumentData':_0x5437a1[_0x302b27(0x19d)],'nextDocumentData':_0x5cf926['nextDocumentData'],'cursorOffset':_0x5cf926['cursorOffset'],'externalMutations':{}}):!0x1;}function _0x9dbe7(_0x135038,_0x538293,_0x391f12){const _0x222d30=_0xddde37;if(_0x391f12)return null;let _0x547f74=_0x135038[_0x222d30(0x189)](_0x534dbf[_0x222d30(0x177)]),_0x1cc254=(_0x538293?_0x547f74[_0x222d30(0x283)](_0x538293,_0x534dbf[_0x222d30(0x224)][_0x222d30(0x261)]):_0x547f74[_0x222d30(0x1c8)](_0x534dbf[_0x222d30(0x224)][_0x222d30(0x261)]))??null;if(!_0x1cc254)return null;let _0x8e5421=_0x1cc254['getSnapshot'](),_0x416ece=_0x8e5421['body'];if(_0x8e5421[_0x222d30(0x1d7)]||!_0x416ece)return null;let _0x5a0bdd=_0x135038[_0x222d30(0x189)](_0x43af87);return _0x5a0bdd[_0x222d30(0x26b)](_0x1cc254[_0x222d30(0x1a4)]())?null:{'document':_0x1cc254,'body':_0x416ece,'documentData':_0x8e5421,'model':_0x5a0bdd,'resource':_0x5a0bdd[_0x222d30(0x181)](_0x1cc254[_0x222d30(0x1a4)]())??_0xdeec8b(),'unitId':_0x1cc254[_0x222d30(0x1a4)]()};}function _0x210ca6(_0x4536d5,_0x45fb73){const _0x497104=_0xddde37;var _0x458483;return(_0x458483=_0x4536d5[_0x497104(0x189)](_0x584402[_0x497104(0x1de)])['getTextRanges']({'subUnitId':_0x45fb73,'unitId':_0x45fb73}))==null?void 0x0:_0x458483[0x0];}function _0x26a3bb(_0x2aaae6,_0x3f8a6b,_0x495180){const _0x1b646f=_0xddde37;if((_0x2aaae6==null?void 0x0:_0x2aaae6[_0x1b646f(0x18d)])==='paragraph'){var _0x40a0eb;let _0x611127=((_0x40a0eb=_0x3f8a6b[_0x1b646f(0x238)])==null?void 0x0:_0x40a0eb[_0x1b646f(0x1bc)](_0x471eef=>_0x471eef[_0x1b646f(0x1fe)]===_0x2aaae6[_0x1b646f(0x1fe)]))??[];if(_0x611127[_0x1b646f(0x1fd)]!==0x1)return null;let _0x4126d1=_0x611127[0x0],_0x25a6a1=(0x0,_0x534dbf[_0x1b646f(0x234)])(_0x3f8a6b,_0x4126d1),_0x5ca287=_0x4126d1[_0x1b646f(0x18f)]-_0x25a6a1,_0x40e690=_0x2aaae6[_0x1b646f(0x23b)]===_0x1b646f(0x188)?_0x5ca287:_0x2aaae6[_0x1b646f(0x23b)];if(!Number[_0x1b646f(0x193)](_0x40e690)||_0x40e690<0x0||_0x40e690>_0x5ca287)return null;let _0x3a31e3=_0x25a6a1+_0x40e690;return{'startOffset':_0x3a31e3,'endOffset':_0x3a31e3};}if((_0x2aaae6==null?void 0x0:_0x2aaae6['type'])==='range')return!Number['isInteger'](_0x2aaae6[_0x1b646f(0x21c)])||!Number['isInteger'](_0x2aaae6[_0x1b646f(0x206)])?null:{'startOffset':Math['min'](_0x2aaae6[_0x1b646f(0x21c)],_0x2aaae6[_0x1b646f(0x206)]),'endOffset':Math[_0x1b646f(0x22b)](_0x2aaae6[_0x1b646f(0x21c)],_0x2aaae6[_0x1b646f(0x206)])};let _0x4da169=(_0x2aaae6==null?void 0x0:_0x2aaae6['type'])==='selection'?_0x2aaae6[_0x1b646f(0x15d)]:_0x495180;return!_0x4da169||_0x4da169[_0x1b646f(0x1a7)]?null:{'startOffset':Math[_0x1b646f(0x190)](_0x4da169[_0x1b646f(0x21c)],_0x4da169[_0x1b646f(0x206)]),'endOffset':Math[_0x1b646f(0x22b)](_0x4da169['startOffset'],_0x4da169['endOffset'])};}function _0x32dfb9(_0x399060,_0x12f00c,_0x1e632b,_0x3ce43c){const _0x36615e=_0xddde37;let _0x178877=_0x399060[_0x36615e(0x189)](_0x546eeb[_0x36615e(0x1b4)]),_0xb842b3=_0x1e632b['startsWith']('=')?_0x1e632b[_0x36615e(0x1bd)](0x1):_0x1e632b,_0x3c31a7=_0x178877[_0x36615e(0x25f)](_0xb842b3);if(!_0x3c31a7)return null;let _0x571eb7=_0x399060['get'](_0x51228b[_0x36615e(0x15a)]),_0x2a974d=(0x0,_0x51228b[_0x36615e(0x194)])({'qualifiers':(0x0,_0x51228b[_0x36615e(0x22d)])(_0x3c31a7),'explicitReferences':_0x3ce43c??[],'resolveBinding':_0x4c4cbd=>_0x571eb7['resolveBinding'](_0x12f00c,_0x4c4cbd)});return _0x2a974d['status']===_0x36615e(0x1a6)?_0x2a974d[_0x36615e(0x21f)]:null;}function _0x552d7b(_0x341ca4,_0x4ae912,_0x1bd5a3){const _0xdeab06=_0xddde37;var _0x5bb8ae;let _0x18234f=(0x0,_0x534dbf[_0xdeab06(0x233)])(0x6);for(;_0x341ca4!=null&&(_0x5bb8ae=_0x341ca4[_0xdeab06(0x1ea)])!=null&&_0x5bb8ae[_0xdeab06(0x17c)](_0x2d099e=>_0x2d099e['rangeId']===_0x18234f)||_0x4ae912[_0xdeab06(0x25d)](_0x1bd5a3,_0x18234f);)_0x18234f=(0x0,_0x534dbf[_0xdeab06(0x233)])(0x6);return _0x18234f;}function _0x2e712c(_0x4a94c1){try{return _0x4b7fbd(_0x4a94c1);}catch(_0x23ba85){if(_0x23ba85 instanceof _0x5b78e9)return null;throw _0x23ba85;}}function _0x839a80(_0x5a4e2e){const _0x1d5302=_0xddde37;let _0x26d779=_0x5a4e2e[_0x1d5302(0x23a)]&&_0x5a4e2e[_0x1d5302(0x161)]?_0x3202a9(_0x5a4e2e[_0x1d5302(0x1ec)],_0x5a4e2e['unitId'],_0x5a4e2e[_0x1d5302(0x23a)],_0x5a4e2e[_0x1d5302(0x161)],_0x5a4e2e['cursorOffset'],_0x5a4e2e[_0x1d5302(0x25a)]):null;return _0x5a4e2e[_0x1d5302(0x23a)]&&_0x5a4e2e[_0x1d5302(0x161)]&&!_0x26d779?null:{'documentRedo':_0x26d779,'resourceRedo':{'id':_0x2270ae['id'],'params':{'unitId':_0x5a4e2e[_0x1d5302(0x1b2)],'resource':_0x5a4e2e[_0x1d5302(0x225)]}},'resourceUndo':{'id':_0x2270ae['id'],'params':{'unitId':_0x5a4e2e[_0x1d5302(0x1b2)],'resource':_0x5a4e2e[_0x1d5302(0x1db)]}}};}function _0x53607a(_0x2cb022,_0x2b33a8,_0x546f4b,_0x58e0c1){const _0x4ed295=_0xddde37;_0x58e0c1['pushUndoRedo']({'id':_0x2cb022[_0x4ed295(0x25a)]+':'+_0x2cb022[_0x4ed295(0x22a)],'unitID':_0x2cb022[_0x4ed295(0x1b2)],'redoMutations':[..._0x2cb022['externalMutations'][_0x4ed295(0x265)]?[_0x2cb022[_0x4ed295(0x292)]['redoMutation']]:[],..._0x2b33a8['documentRedo']?[_0x2b33a8['documentRedo']]:[],_0x2b33a8['resourceRedo']],'undoMutations':[_0x2b33a8['resourceUndo'],..._0x546f4b?[_0x546f4b]:[],..._0x2cb022['externalMutations'][_0x4ed295(0x158)]?[_0x2cb022['externalMutations']['undoMutation']]:[]]});}function _0x5dba21(_0x17be8e){const _0x127e00=_0xddde37;let _0x52f321=_0x17be8e['accessor']['get'](_0x534dbf[_0x127e00(0x1e1)]),_0x15e6dc=_0x17be8e[_0x127e00(0x19c)]['get'](_0x534dbf[_0x127e00(0x276)]),_0x1c76ea=_0x17be8e['accessor'][_0x127e00(0x189)](_0x584402[_0x127e00(0x1de)]),_0x5edbc6=_0x839a80(_0x17be8e);if(!_0x5edbc6)return!0x1;let _0x5b880e=!0x1,_0x443c4e=null,_0x40aa87=!0x1;try{if(_0x17be8e[_0x127e00(0x292)][_0x127e00(0x265)]){if(!_0x52f321[_0x127e00(0x1f3)](_0x17be8e[_0x127e00(0x292)][_0x127e00(0x265)]['id'],_0x17be8e[_0x127e00(0x292)]['redoMutation'][_0x127e00(0x156)]))return!0x1;_0x5b880e=!0x0;}if(_0x5edbc6[_0x127e00(0x227)]){let _0x2ffc23=_0x52f321[_0x127e00(0x1f3)](_0x5edbc6[_0x127e00(0x227)]['id'],_0x5edbc6[_0x127e00(0x227)][_0x127e00(0x156)]);if(!_0x2ffc23)return _0x280135(_0x52f321,_0x17be8e[_0x127e00(0x292)],_0x5b880e),!0x1;_0x443c4e={'id':_0x584402[_0x127e00(0x1c2)]['id'],'params':{..._0x2ffc23,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x52f321[_0x127e00(0x1f3)](_0x5edbc6[_0x127e00(0x21a)]['id'],_0x5edbc6[_0x127e00(0x21a)][_0x127e00(0x156)]))return _0x31b54f(_0x52f321,_0x443c4e),_0x280135(_0x52f321,_0x17be8e[_0x127e00(0x292)],_0x5b880e),!0x1;_0x40aa87=!0x0,_0x53607a(_0x17be8e,_0x5edbc6,_0x443c4e,_0x15e6dc);}catch(_0x5994a9){throw _0x40aa87&&_0x52f321[_0x127e00(0x1f3)](_0x5edbc6[_0x127e00(0x15e)]['id'],_0x5edbc6[_0x127e00(0x15e)][_0x127e00(0x156)]),_0x31b54f(_0x52f321,_0x443c4e),_0x280135(_0x52f321,_0x17be8e[_0x127e00(0x292)],_0x5b880e),_0x5994a9;}return _0x1c76ea[_0x127e00(0x179)]([{'startOffset':_0x17be8e[_0x127e00(0x278)],'endOffset':_0x17be8e[_0x127e00(0x278)],'segmentId':''}],{'unitId':_0x17be8e[_0x127e00(0x1b2)],'subUnitId':_0x17be8e[_0x127e00(0x1b2)]},!0x1,{[_0x584402[_0x127e00(0x291)]]:!0x0}),!0x0;}function _0x3202a9(_0x368cbb,_0x31ea11,_0x374b2c,_0x51cb66,_0x9e76d7,_0x532b2c){const _0x455f32=_0xddde37;let _0x5dd6a7=_0x65742f(_0x374b2c,_0x51cb66,(0x0,_0x534dbf[_0x455f32(0x17f)])(_0x368cbb,''));return _0x5dd6a7?{'id':_0x584402[_0x455f32(0x1c2)]['id'],'params':{'unitId':_0x31ea11,'actions':_0x5dd6a7,'segmentId':'','textRanges':[{'startOffset':_0x9e76d7,'endOffset':_0x9e76d7,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x532b2c}}:null;}function _0x31b54f(_0x3dcd75,_0x2381b2){const _0x41727f=_0xddde37;_0x2381b2&&_0x3dcd75['syncExecuteCommand'](_0x2381b2['id'],_0x2381b2[_0x41727f(0x156)]);}function _0x280135(_0x59999d,_0x32b606,_0x366454){const _0x3efa45=_0xddde37;_0x366454&&_0x32b606[_0x3efa45(0x158)]&&_0x59999d[_0x3efa45(0x1f3)](_0x32b606[_0x3efa45(0x158)]['id'],_0x32b606[_0x3efa45(0x158)][_0x3efa45(0x156)]);}function _0x65742f(_0x2e5c8a,_0x52655e,_0x144250){const _0x3984f4=_0xddde37;let _0x3df508=_0x2e5c8a[_0x3984f4(0x267)],_0x3cf0c4=_0x52655e[_0x3984f4(0x267)],_0x3d5871=_0x45da4f(_0x3df508==null?void 0x0:_0x3df508[_0x3984f4(0x249)],_0x3cf0c4==null?void 0x0:_0x3cf0c4['dataStream']);if(!_0x3d5871||!_0x3cf0c4)return null;let _0x2d674c=new _0x534dbf['TextX']();return _0x2d674c[_0x3984f4(0x28c)](_0x3d5871[_0x3984f4(0x18e)]),_0x3d5871[_0x3984f4(0x240)]>0x0&&_0x2d674c[_0x3984f4(0x1d3)](_0x3d5871[_0x3984f4(0x240)],(0x0,_0x534dbf[_0x3984f4(0x294)])(_0x3cf0c4,_0x3d5871[_0x3984f4(0x18e)],_0x3d5871[_0x3984f4(0x18e)]+_0x3d5871[_0x3984f4(0x240)],!0x1)),_0x3d5871[_0x3984f4(0x25c)]>0x0&&_0x2d674c['delete'](_0x3d5871['deleteLength']),_0x534dbf['JSONX'][_0x3984f4(0x242)]()[_0x3984f4(0x174)](_0x2d674c[_0x3984f4(0x1e2)](),_0x144250);}function _0x45da4f(_0x43e447,_0x4ef04d){const _0x1c4f09=_0xddde37;if(_0x43e447==null||_0x4ef04d==null||_0x43e447===_0x4ef04d)return null;let _0x17296a=0x0;for(;_0x17296a<_0x43e447['length']&&_0x17296a<_0x4ef04d[_0x1c4f09(0x1fd)]&&_0x43e447[_0x17296a]===_0x4ef04d[_0x17296a];)_0x17296a+=0x1;let _0x374ead=_0x43e447[_0x1c4f09(0x1fd)],_0x1cb57b=_0x4ef04d[_0x1c4f09(0x1fd)];for(;_0x374ead>_0x17296a&&_0x1cb57b>_0x17296a&&_0x43e447[_0x374ead-0x1]===_0x4ef04d[_0x1cb57b-0x1];)--_0x374ead,--_0x1cb57b;return{'start':_0x17296a,'deleteLength':_0x374ead-_0x17296a,'insertLength':_0x1cb57b-_0x17296a};}function _0x30d23a(_0x40f0df){const _0x177b23=_0xddde37;return{'formulas':Object['fromEntries'](Object[_0x177b23(0x252)](_0x40f0df['formulas'])[_0x177b23(0x231)](([_0x188ce6,_0x3fdd6f])=>[_0x188ce6,{..._0x3fdd6f,..._0x3fdd6f[_0x177b23(0x196)]?{'numberFormat':{..._0x3fdd6f[_0x177b23(0x196)]}}:null,..._0x3fdd6f[_0x177b23(0x17e)]?{'lastValue':{..._0x3fdd6f[_0x177b23(0x17e)]}}:null}]))};}let _0x19633f=class extends _0x534dbf['Disposable']{constructor(_0x310d3c,_0x1fa562,_0x2b85fb,_0x456910){const _0x40e017=_0xddde37;super(),this['_instanceService']=_0x310d3c,this[_0x40e017(0x199)]=_0x1fa562,this[_0x40e017(0x218)]=_0x2b85fb,this[_0x40e017(0x1a3)]=_0x456910,_0xa1107b(this,_0x40e017(0x210),new Set()),_0xa1107b(this,'_syncScheduled',!0x1),_0xa1107b(this,'_isDisposed',!0x1),this[_0x40e017(0x19e)][_0x40e017(0x1ad)](_0x534dbf['UniverInstanceType'][_0x40e017(0x261)])[_0x40e017(0x281)](_0x21c452=>this[_0x40e017(0x1a3)]['syncUnit'](_0x21c452)),this[_0x40e017(0x277)](this[_0x40e017(0x218)][_0x40e017(0x23f)][_0x40e017(0x1df)](({unitId:_0x422483})=>this[_0x40e017(0x258)](_0x422483))),this[_0x40e017(0x277)](this[_0x40e017(0x19e)][_0x40e017(0x16a)]['subscribe'](({unit:_0x8d6fbb})=>{const _0x3202aa=_0x40e017;_0x8d6fbb[_0x3202aa(0x18d)]===_0x534dbf[_0x3202aa(0x224)][_0x3202aa(0x261)]&&this['_queueSync'](_0x8d6fbb['getUnitId']());})),this[_0x40e017(0x277)](this[_0x40e017(0x19e)]['unitDisposed$']['subscribe'](_0x577b87=>{const _0x4e28ac=_0x40e017;this[_0x4e28ac(0x1a3)][_0x4e28ac(0x253)](_0x577b87[_0x4e28ac(0x1a4)]());})),this[_0x40e017(0x277)](this[_0x40e017(0x199)][_0x40e017(0x243)](_0x12d97f=>{const _0x381ecb=_0x40e017;if(_0x12d97f['id']===_0x584402[_0x381ecb(0x1c2)]['id']&&_0x2284be(_0x12d97f[_0x381ecb(0x156)])){let _0x4c3203=_0x12d97f[_0x381ecb(0x156)];_0x4c3203['segmentId']||this['_syncUnit'](_0x4c3203[_0x381ecb(0x1b2)]);}}));}[_0xddde37(0x1f0)](){const _0x52acd3=_0xddde37;this[_0x52acd3(0x25b)]=!0x0,super[_0x52acd3(0x1f0)]();}[_0xddde37(0x24d)](_0x239909){const _0x391de5=_0xddde37;this[_0x391de5(0x210)][_0x391de5(0x1e8)](_0x239909),this['_syncScheduled']||(this[_0x391de5(0x197)]=!0x0,queueMicrotask(()=>{const _0x12ac70=_0x391de5;if(this[_0x12ac70(0x197)]=!0x1,this[_0x12ac70(0x25b)])return;let _0x5645ab=Array[_0x12ac70(0x27d)](this[_0x12ac70(0x210)]);this[_0x12ac70(0x210)]['clear'](),_0x5645ab[_0x12ac70(0x281)](_0x4167c6=>this[_0x12ac70(0x258)](_0x4167c6));}));}[_0xddde37(0x258)](_0xce10a6){const _0x58f825=_0xddde37;let _0x2a2bfe=this[_0x58f825(0x19e)][_0x58f825(0x283)](_0xce10a6,_0x534dbf[_0x58f825(0x224)][_0x58f825(0x261)]);_0x2a2bfe&&this[_0x58f825(0x1a3)][_0x58f825(0x182)](_0x2a2bfe);}};_0x19633f=_0x35d3cd([_0x15f532(0x0,_0x534dbf['IUniverInstanceService']),_0x15f532(0x1,_0x534dbf['ICommandService']),_0x15f532(0x2,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x43af87)),_0x15f532(0x3,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x488730))],_0x19633f);function _0x2284be(_0x44ab9a){const _0x44e3e0=_0xddde37;return typeof _0x44ab9a==_0x44e3e0(0x24f)&&!!_0x44ab9a&&_0x44e3e0(0x1b2)in _0x44ab9a&&typeof _0x44ab9a[_0x44e3e0(0x1b2)]==_0x44e3e0(0x1bf)&&(!(_0x44e3e0(0x1a7)in _0x44ab9a)||_0x44ab9a[_0x44e3e0(0x1a7)]===void 0x0||typeof _0x44ab9a[_0x44e3e0(0x1a7)]==_0x44e3e0(0x1bf));}let _0x32f69e=class extends _0x534dbf['Disposable']{constructor(_0x5d1156,_0x359d2a){const _0x448bfe=_0xddde37;super(),this['_resourceManagerService']=_0x5d1156,this[_0x448bfe(0x178)]=_0x359d2a,this['disposeWithMe'](this[_0x448bfe(0x232)][_0x448bfe(0x244)]({'pluginName':_0x1b57f6,'businesses':[_0x534dbf[_0x448bfe(0x224)][_0x448bfe(0x261)]],'toJson':_0x51604e=>JSON[_0x448bfe(0x22e)](this['_docFormulaModel'][_0x448bfe(0x1e2)](_0x51604e)),'parseJson':_0x4cbcb0=>JSON['parse'](_0x4cbcb0),'onLoad':(_0x8df06,_0x19eb71)=>{const _0x3b8157=_0x448bfe;this[_0x3b8157(0x178)][_0x3b8157(0x282)](_0x8df06,_0x19eb71);},'onUnLoad':_0xa5356c=>this[_0x448bfe(0x178)][_0x448bfe(0x1ba)](_0xa5356c)}));}};_0x32f69e=_0x35d3cd([_0x15f532(0x0,_0x534dbf[_0xddde37(0x223)]),_0x15f532(0x1,(0x0,_0x534dbf['Inject'])(_0x43af87))],_0x32f69e);var _0x447905=_0xddde37(0x1a2),_0x6e6d5d=_0xddde37(0x172);let _0x36595e={},_0x49ca5e=class extends _0x534dbf[_0xddde37(0x24c)]{constructor(_0x363ed4,_0x43259e,_0x4e7ad6){const _0x4ac4dd=_0xddde37;super(),this[_0x4ac4dd(0x268)]=_0x363ed4,this['_formulaService']=_0x43259e,this[_0x4ac4dd(0x277)](_0x4e7ad6[_0x4ac4dd(0x20c)]({'resolve':(_0x1038ca,_0x364552)=>{const _0x2b84f5=_0x4ac4dd;var _0xcfb43b;return((_0xcfb43b=_0x364552[_0x2b84f5(0x1ea)])==null?void 0x0:_0xcfb43b['filter'](_0x1db77c)[_0x2b84f5(0x231)](_0x5ee666=>({'startOffset':_0x5ee666['startIndex'],'endOffset':_0x5ee666[_0x2b84f5(0x165)]+0x1,'text':this[_0x2b84f5(0x25e)](_0x1038ca,_0x5ee666['rangeId'])})))??[];}})),this[_0x4ac4dd(0x277)](this[_0x4ac4dd(0x21e)][_0x4ac4dd(0x1e5)][_0x4ac4dd(0x1df)](({unitId:_0x2f01fc})=>{const _0x5b8d71=_0x4ac4dd;_0x4e7ad6[_0x5b8d71(0x167)](_0x2f01fc);}));}[_0xddde37(0x25e)](_0x5d89e1,_0x2098e9){const _0x826c2b=_0xddde37;var _0x2662d3;return((_0x2662d3=this[_0x826c2b(0x21e)][_0x826c2b(0x1ab)]({'unitId':_0x5d89e1,'rangeId':_0x2098e9}))==null?void 0x0:_0x2662d3[_0x826c2b(0x18c)])??'';}[_0xddde37(0x270)](_0x328286,_0x52ddd4,_0x2d1fdb){const _0x43c338=_0xddde37;var _0x43a67b;let _0x20c6f4=this['_univerInstanceService']['getUnit'](_0x328286,_0x534dbf[_0x43c338(0x224)]['UNIVER_DOC']),_0x25e206=_0x20c6f4==null?void 0x0:_0x20c6f4['getBody']();if(!_0x25e206)return'';let _0x6e6c41=_0x25e206[_0x43c338(0x249)][_0x43c338(0x1bd)](_0x52ddd4,_0x2d1fdb),_0xc25a71=((_0x43a67b=_0x25e206['customRanges'])==null?void 0x0:_0x43a67b[_0x43c338(0x1bc)](_0x1c3140=>_0x1db77c(_0x1c3140)&&_0x1c3140['startIndex']>=_0x52ddd4&&_0x1c3140[_0x43c338(0x165)]<_0x2d1fdb)['sort']((_0x36743c,_0x168079)=>_0x168079[_0x43c338(0x18f)]-_0x36743c[_0x43c338(0x18f)]))??[];for(let _0x41d020 of _0xc25a71){let _0x3fce27=_0x41d020[_0x43c338(0x18f)]-_0x52ddd4,_0x51e8e1=_0x41d020['endIndex']-_0x52ddd4+0x1;_0x6e6c41=''+_0x6e6c41[_0x43c338(0x1bd)](0x0,_0x3fce27)+this[_0x43c338(0x25e)](_0x328286,_0x41d020[_0x43c338(0x22a)])+_0x6e6c41[_0x43c338(0x1bd)](_0x51e8e1);}return _0x6e6c41;}['degradeDocumentData'](_0x13dd3e){return _0x1551e9(_0x13dd3e);}[_0xddde37(0x163)](_0x3b3834,_0x27b427,_0x585131={}){const _0x24597b=_0xddde37;var _0x53234f;return _0x2c580a({'id':_0x3b3834,'body':_0x27b427,'documentStyle':{}},(((_0x53234f=_0x27b427['customRanges'])==null?void 0x0:_0x53234f[_0x24597b(0x1bc)](_0x1db77c))??[])['map'](_0x118713=>({'rangeId':_0x118713[_0x24597b(0x22a)],'text':_0x585131[_0x118713['rangeId']]??this[_0x24597b(0x25e)](_0x3b3834,_0x118713[_0x24597b(0x22a)])})))['body']??{'dataStream':''};}};_0x49ca5e=_0x35d3cd([_0x15f532(0x0,_0x534dbf[_0xddde37(0x177)]),_0x15f532(0x1,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x488730)),_0x15f532(0x2,(0x0,_0x534dbf['Inject'])(_0x584402[_0xddde37(0x24e)]))],_0x49ca5e);function _0x1551e9(_0x136db0){const _0x2da465=_0xddde37;var _0x3f1925,_0xeae461;let _0x2ea9e4=_0x2a5deb(_0x136db0),_0x28c170=_0x2c580a(_0x136db0,(((_0x3f1925=_0x136db0['body'])==null||(_0x3f1925=_0x3f1925[_0x2da465(0x1ea)])==null?void 0x0:_0x3f1925[_0x2da465(0x1bc)](_0x1db77c))??[])[_0x2da465(0x231)](_0x138602=>({'rangeId':_0x138602[_0x2da465(0x22a)],'text':_0x57471d(_0x2ea9e4==null?void 0x0:_0x2ea9e4['formulas'][_0x138602[_0x2da465(0x22a)]])})));return _0x28c170[_0x2da465(0x21b)]=(_0xeae461=_0x28c170['resources'])==null?void 0x0:_0xeae461[_0x2da465(0x1bc)](_0x22afca=>_0x22afca[_0x2da465(0x284)]!==_0x1b57f6),_0x28c170;}function _0x2a5deb(_0x55778b){const _0x50d8b5=_0xddde37;var _0x1d4450;let _0x14ceda=(_0x1d4450=_0x55778b['resources'])==null||(_0x1d4450=_0x1d4450['find'](_0x376fc8=>_0x376fc8[_0x50d8b5(0x284)]===_0x50d8b5(0x1ff)))==null?void 0x0:_0x1d4450['data'];if(_0x14ceda)try{let _0x4e4428=JSON[_0x50d8b5(0x15f)](_0x14ceda);return _0x5bb3ce(_0x4e4428)?_0x4e4428:void 0x0;}catch{return;}}function _0x57471d(_0x4ca5ab){const _0x2b2a6a=_0xddde37;return _0x4ca5ab?(0x0,_0x51228b[_0x2b2a6a(0x251)])({'lastValue':_0x4ca5ab['lastValue'],'numberFormat':_0x4ca5ab['numberFormat']})[_0x2b2a6a(0x18c)]:'';}let _0x5e52f0=class extends _0x534dbf[_0xddde37(0x24c)]{constructor(_0x2f4579,_0x1b9cd2,_0x5f0738){const _0xa88e3d=_0xddde37;super(),this['_formulaService']=_0x2f4579,this[_0xa88e3d(0x23c)]=_0x1b9cd2,this[_0xa88e3d(0x277)](_0x5f0738[_0xa88e3d(0x1aa)](this));}['collectMutations'](_0xd1fda0){const _0x9155e0=_0xddde37;let _0x609f5f=new Map();for(let _0xe77aa7 of this['_formulaService'][_0x9155e0(0x24b)]()){var _0x10c4ef;if(!this[_0x9155e0(0x23c)][_0x9155e0(0x16f)](_0xe77aa7[_0x9155e0(0x1ac)]['formula'],_0xe77aa7[_0x9155e0(0x257)])['eligible'])continue;let _0x520922=(0x0,_0x51228b[_0x9155e0(0x20b)])(_0xe77aa7[_0x9155e0(0x257)]),_0x3f9571=_0x520922?(0x0,_0x51228b['toFormulaLastValue'])(_0x520922):null;if(!_0x3f9571||_0x1d44ee(_0xe77aa7[_0x9155e0(0x1ac)][_0x9155e0(0x17e)],_0x3f9571))continue;let _0xa9b452=_0x609f5f[_0x9155e0(0x189)](_0xe77aa7[_0x9155e0(0x185)]['unitId'])??[];_0xa9b452[_0x9155e0(0x16b)]({'rangeId':_0xe77aa7[_0x9155e0(0x185)][_0x9155e0(0x22a)],'expectedFormula':_0xe77aa7[_0x9155e0(0x1ac)][_0x9155e0(0x166)],'expectedNumberFormat':(_0x10c4ef=_0xe77aa7[_0x9155e0(0x1ac)][_0x9155e0(0x196)])==null?void 0x0:_0x10c4ef[_0x9155e0(0x1f2)],'expectedReferenceRevision':_0xe77aa7[_0x9155e0(0x20f)],'lastValue':_0x3f9571}),_0x609f5f[_0x9155e0(0x200)](_0xe77aa7[_0x9155e0(0x185)][_0x9155e0(0x1b2)],_0xa9b452);}return Array[_0x9155e0(0x27d)](_0x609f5f,([_0x40fd2f,_0x44c869])=>({'id':_0x2e19e9['id'],'params':{'unitId':_0x40fd2f,'updates':_0x44c869}}));}};_0x5e52f0=_0x35d3cd([_0x15f532(0x0,(0x0,_0x534dbf['Inject'])(_0x488730)),_0x15f532(0x1,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x51228b['FormulaCacheEligibilityService'])),_0x15f532(0x2,(0x0,_0x534dbf['Inject'])(_0x51228b[_0xddde37(0x23d)]))],_0x5e52f0);function _0x1d44ee(_0x3a52a2,_0x4e3506){const _0x2eb113=_0xddde37;return(_0x3a52a2==null?void 0x0:_0x3a52a2['v'])===_0x4e3506['v']&&(_0x3a52a2==null?void 0x0:_0x3a52a2['t'])===_0x4e3506['t']&&(_0x3a52a2==null?void 0x0:_0x3a52a2[_0x2eb113(0x1f2)])===_0x4e3506[_0x2eb113(0x1f2)];}let _0x3107d9=class extends _0x534dbf['Plugin']{constructor(_0x3e348f=_0x36595e,_0x458888,_0x34ceec,_0x13ff04){const _0xb278dc=_0xddde37;super(),this['_config']=_0x3e348f,this['_injector']=_0x458888,this[_0xb278dc(0x199)]=_0x34ceec,this[_0xb278dc(0x22f)]=_0x13ff04;let {..._0xd9925}=(0x0,_0x534dbf[_0xb278dc(0x28f)])({},_0x36595e,this[_0xb278dc(0x1dd)]);this[_0xb278dc(0x22f)][_0xb278dc(0x26e)](_0xb278dc(0x186),_0xd9925);}[_0xddde37(0x1f1)](){const _0x4ee4a4=_0xddde37;this[_0x4ee4a4(0x247)][_0x4ee4a4(0x1e8)]([_0x43af87]),this['_injector'][_0x4ee4a4(0x1e8)]([_0x488730]),this[_0x4ee4a4(0x247)][_0x4ee4a4(0x1e8)]([_0x32f69e]),this[_0x4ee4a4(0x247)][_0x4ee4a4(0x1e8)]([_0x19633f]),this[_0x4ee4a4(0x247)][_0x4ee4a4(0x1e8)]([_0x5e52f0]),this[_0x4ee4a4(0x247)][_0x4ee4a4(0x1e8)]([_0x49ca5e]),(0x0,_0x534dbf[_0x4ee4a4(0x191)])(this[_0x4ee4a4(0x247)],[[_0x43af87],[_0x32f69e],[_0x19633f],[_0x5e52f0],[_0x49ca5e]]),[_0x5b8f47,_0x2cc3cc,_0x2270ae,_0x2e19e9,_0x2a63dd,_0x21e783,_0x46722c,_0x5367e8,_0x4bb066,_0x91d31e][_0x4ee4a4(0x281)](_0x2f0453=>this[_0x4ee4a4(0x277)](this[_0x4ee4a4(0x199)][_0x4ee4a4(0x1fa)](_0x2f0453)));}};_0xa1107b(_0x3107d9,_0xddde37(0x220),_0x1b57f6),_0xa1107b(_0x3107d9,'packageName',_0x447905),_0xa1107b(_0x3107d9,'version',_0x6e6d5d),_0xa1107b(_0x3107d9,'type',_0x534dbf[_0xddde37(0x224)][_0xddde37(0x261)]),_0x3107d9=_0x35d3cd([(0x0,_0x534dbf['DependentOn'])(_0x2387b5[_0xddde37(0x1ce)],_0x51228b[_0xddde37(0x1b3)],_0x584402[_0xddde37(0x1ca)]),_0x15f532(0x1,(0x0,_0x534dbf[_0xddde37(0x260)])(_0x534dbf[_0xddde37(0x15c)])),_0x15f532(0x2,_0x534dbf[_0xddde37(0x1e1)]),_0x15f532(0x3,_0x534dbf['IConfigService'])],_0x3107d9),_0x40eb1e[_0xddde37(0x250)]=_0x91d31e,_0x40eb1e[_0xddde37(0x1c9)]=_0x1735d2,_0x40eb1e[_0xddde37(0x1b9)]='',_0x40eb1e['DOC_FORMULA_PLUGIN']=_0x1b57f6,Object[_0xddde37(0x1d9)](_0x40eb1e,'DocFormulaDisplayTextService',{'enumerable':!0x0,'get':function(){return _0x49ca5e;}}),Object['defineProperty'](_0x40eb1e,'DocFormulaLifecycleController',{'enumerable':!0x0,'get':function(){return _0x19633f;}}),_0x40eb1e[_0xddde37(0x1d4)]=_0x43af87,Object[_0xddde37(0x1d9)](_0x40eb1e,_0xddde37(0x1da),{'enumerable':!0x0,'get':function(){return _0x32f69e;}}),_0x40eb1e[_0xddde37(0x170)]=_0x3a2323,Object[_0xddde37(0x1d9)](_0x40eb1e,'DocFormulaService',{'enumerable':!0x0,'get':function(){return _0x488730;}}),_0x40eb1e[_0xddde37(0x1d2)]=_0x2a63dd,_0x40eb1e['InvalidDocFormulaInsertRangeError']=_0x5b78e9,_0x40eb1e[_0xddde37(0x155)]=_0x5367e8,_0x40eb1e[_0xddde37(0x173)]=_0x2cc3cc,_0x40eb1e['ReplaceDocFormulaWithTextCommand']=_0x4bb066,_0x40eb1e[_0xddde37(0x18a)]=_0x2e19e9,_0x40eb1e[_0xddde37(0x285)]=_0x5b8f47,_0x40eb1e['SetDocFormulaNumberFormatCommand']=_0x46722c,_0x40eb1e['SetDocFormulaResourceMutation']=_0x2270ae,Object[_0xddde37(0x1d9)](_0x40eb1e,_0xddde37(0x1f9),{'enumerable':!0x0,'get':function(){return _0x3107d9;}}),_0x40eb1e['UpdateDocFormulaCommand']=_0x21e783,_0x40eb1e[_0xddde37(0x17d)]=_0x4671de,_0x40eb1e[_0xddde37(0x1d1)]=_0x4b7fbd,_0x40eb1e['buildRemoveDocFormulaActions']=_0x595916,_0x40eb1e[_0xddde37(0x26a)]=_0xccfc38,_0x40eb1e[_0xddde37(0x1d5)]=_0xdeec8b,_0x40eb1e['degradeDocFormulaDocumentData']=_0x1551e9,_0x40eb1e[_0xddde37(0x274)]=_0x40a861,_0x40eb1e[_0xddde37(0x1c5)]=_0x3c30c5,_0x40eb1e[_0xddde37(0x27e)]=_0x1db77c,_0x40eb1e[_0xddde37(0x259)]=_0x5bb3ce,_0x40eb1e[_0xddde37(0x1cc)]=_0x2c66cb;}));function _0x3f33(_0x1377e5,_0x6a073c){_0x1377e5=_0x1377e5-0x154;const _0x6a50b4=_0x6a50();let _0x3f339f=_0x6a50b4[_0x1377e5];return _0x3f339f;}function _0x6a50(){const _0x4dabe3=['DOC_FORMULA_PLUGIN','set','_change$','docs-formula.mutation.set-formula','complete','getFormulas','tables','endOffset','docs-formula.command.insert','externalReferences','trim','_formulaKeys','getScalarFormulaResultCell','register','clear','buildUpsertHostExternalReferenceMutations','referenceRevision','_pendingUnitIds','default','RegisterOtherFormulaService','1850BiTUuY','setFormula','textRuns','shiftInclusiveRangeOnDelete','getRevision','_model','@univerjs-pro/engine-formula','resourceRedo','resources','startOffset','cell','_formulaService','references','pluginName','has','_presentationChanged$','IResourceManagerService','UniverInstanceType','nextResource','amd','documentRedo','_loadErrors','symbol','rangeId','max','status','collectFormulaExternalReferenceQualifiers','stringify','_configService','_hostExternalReferenceModel','map','_resourceManagerService','generateRandomId','getParagraphContentStartOffset','boolean','_deleteRegistration','shiftExclusiveRangeOnInsert','paragraphs','1078162rgTXJk','previousDocumentData','position','_cacheEligibilityService','FormulaLastValuePersistenceService','ERROR','change$','insertLength','BLOCK_END','getInstance','onCommandExecuted','registerPluginResource','keys','UniverCore','_injector','@univerjs/docs','dataStream','prototype','getRegisteredFormulas','Disposable','_queueSync','DocTextResolverService','object','ConvertDocFormulaToTextCommand','resolveFormulaResultPresentation','entries','unregisterUnit','TABLE_ROW_START','deleteFormula','univer-docs-formula','liveResult','_syncUnit','isDocFormulaResource','trigger','_isDisposed','deleteLength','getFormula','resolveFormula','sequenceNodesBuilder','Inject','UNIVER_DOC','getPresentation','OtherFormulaBizType','TABLE_START','redoMutation','shiftInclusiveRangeOnInsert','body','_univerInstanceService','includes','buildUpdateDocFormulaActions','getLoadError','COMMAND','getCustomRangeInterval','setConfig','2862PQOLjx','resolveText','sectionBreaks','Module','sort','findDocFormulaRange','next','IUndoRedoService','disposeWithMe','cursorOffset','BLOCK_START','docs-formula.command.update','pending','SUCCESS','from','isDocFormulaRange','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','unregister','forEach','load','getUnit','name','SetDocFormulaMutation','FormulaResultStatus','call','updates','1IJZYnu','target','blockRanges','retain','TABLE_ROW_END','CUSTOM','merge','_registrationService','DOC_SELECTION_OPTION_PRESERVE_CARET','externalMutations','TABLE_END','getBodySliceForTextXAction','70GFFZVm','rangeType','Subject','RemoveDocFormulaCommand','params','customDecorations','undoMutation','formulaId','HostExternalReferenceModel','model','Injector','selection','resourceUndo','parse','columnGroups','nextDocumentData','presentation','degradeBody','CUSTOM_BLOCK','endIndex','formula','notifyTextChanged','isArray','EMPTY','unitAdded$','push','4280nIpwtu','empty','UniverProEngineFormula','assess','DocFormulaResultStatus','UniverDocs','1.5.1','RemoveDocFormulaMutation','editOp','_setPresentation','COLUMN_GROUP_END','IUniverInstanceService','_docFormulaModel','replaceDocRanges','docs-formula.mutation.set-last-values','_updateFormulaResult','some','assertSafeDocFormulaInsertRange','lastValue','getRichTextEditPath','rxjs','getResource','syncUnit','deepClone','SECTION_BREAK','identity','docs-formula.config','CommandType','end','get','SetDocFormulaLastValuesMutation','formulaResult$','text','type','start','startIndex','min','touchDependencies','_preserveInvalid','isInteger','resolveHostFormulaExternalReferences','PENDING','numberFormat','_syncScheduled','stale','_commandService','5301494KSjqot','COLUMN_START','accessor','documentData','_instanceService','55251qisHmD','@univerjs/core','invalid-resource','@univerjs-pro/docs-formula','_service','getUnitId','docs-formula.mutation.set-resource','resolved','segmentId','decorate','properties','registerProvider','getResult','config','getAllUnitsForType','delete','756834wVZNjp','Tools','function','unitId','UniverProFormulaEnginePlugin','LexerTreeBuilder','DataStreamTreeTokenType','UniverEngineFormula','values','UniverProLicense','DOC_FORMULA_OBJECT_REPLACEMENT','removeUnit','setResource','filter','slice','kind','string','customBlocks','success','RichTextEditingMutation','shiftExclusiveRangeOnDelete','PARAGRAPH','isDocFormulaConfig','TABLE_CELL_END','formulas','getCurrentUnitOfType','DOC_FORMULA_CUSTOM_RANGE_KIND','UniverDocsPlugin','toPrimitive','isFormulaLastValue','removeFormula','UniverLicensePlugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','every','buildInsertDocFormulaActions','InsertDocFormulaCommand','insert','DocFormulaModel','createEmptyDocFormulaResource','setFormulas','disabled','source','defineProperty','DocFormulaResourceController','previousResource','CellValueType','_config','DocSelectionManagerService','subscribe','_rawResources','ICommandService','serialize','find','4886168kqgVhM','presentationChanged$','_resources','MUTATION','add','@univerjs/engine-formula','customRanges','CustomRangeType','document','resource','toStringTag','COLUMN_END','dispose','onStarting','pattern','syncExecuteCommand','number','_registrations','endsWith','36040CPtHWM','getSnapshot','UniverDocsFormulaPlugin','registerCommand','DOC','assign','length','paragraphId'];_0x6a50=function(){return _0x4dabe3;};return _0x6a50();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-formula",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "description": "Inline data formula model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/engine-formula": "1.5.0",
65
- "@univerjs-pro/license": "1.5.0",
66
- "@univerjs/core": "1.5.0",
67
- "@univerjs/docs": "1.5.0",
68
- "@univerjs/engine-formula": "1.5.0"
64
+ "@univerjs-pro/engine-formula": "1.5.1",
65
+ "@univerjs-pro/license": "1.5.1",
66
+ "@univerjs/core": "1.5.1",
67
+ "@univerjs/docs": "1.5.1",
68
+ "@univerjs/engine-formula": "1.5.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@univerjs-infra/shared": "1.5.0",
72
- "@univerjs/engine-render": "1.5.0",
71
+ "@univerjs-infra/shared": "1.5.1",
72
+ "@univerjs/engine-render": "1.5.1",
73
73
  "rxjs": "7.8.2",
74
74
  "tsrs": "0.23.0-ts7.1.0-beta",
75
75
  "vitest": "^5.1.0"