@univerjs-pro/docs-formula 1.3.0 → 1.3.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/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x24e2ca=_0x20e9;(function(_0x152e7e,_0x4db90f){const _0x3da9f9=_0x20e9,_0x4c0a9a=_0x152e7e();while(!![]){try{const _0x4baa9a=parseInt(_0x3da9f9(0xa2))/0x1*(-parseInt(_0x3da9f9(0x11d))/0x2)+parseInt(_0x3da9f9(0xc4))/0x3*(-parseInt(_0x3da9f9(0x10d))/0x4)+parseInt(_0x3da9f9(0xce))/0x5*(-parseInt(_0x3da9f9(0x95))/0x6)+parseInt(_0x3da9f9(0x12b))/0x7+-parseInt(_0x3da9f9(0x177))/0x8*(parseInt(_0x3da9f9(0x163))/0x9)+-parseInt(_0x3da9f9(0x93))/0xa*(parseInt(_0x3da9f9(0x105))/0xb)+parseInt(_0x3da9f9(0xe3))/0xc;if(_0x4baa9a===_0x4db90f)break;else _0x4c0a9a['push'](_0x4c0a9a['shift']());}catch(_0x287647){_0x4c0a9a['push'](_0x4c0a9a['shift']());}}}(_0x448f,0xbdc52));import{FormulaCacheEligibilityService as _0x29362c,FormulaLastValuePersistenceService as _0x143b9c,HostExternalReferenceModel as _0xed4143,UniverProFormulaEnginePlugin as _0x5d553c,buildUpsertHostExternalReferenceMutations as _0x38f235,collectFormulaExternalReferenceQualifiers as _0x1f8367,getScalarFormulaResultCell as _0x164c26,resolveFormulaResultPresentation as _0x500f97,resolveHostFormulaExternalReferences as _0x5f34d5,toFormulaLastValue as _0x27de7e}from'@univerjs-pro/engine-formula';import{CellValueType as _0x5259d,CommandType as _0x1da90f,CustomRangeType as _0x373c58,DataStreamTreeTokenType as _0x1a14c2,DependentOn as _0x335401,Disposable as _0x25f89c,ICommandService as _0x3d0906,IConfigService as _0x3e2dd7,IResourceManagerService as _0x3af6e3,IUndoRedoService as _0x36a1fe,IUniverInstanceService as _0x28c187,Inject as _0x22e0aa,Injector as _0x3d3d14,JSONX as _0x998333,Plugin as _0x5275a4,TextX as _0x2c43a5,Tools as _0x56e124,UniverInstanceType as _0x1b556b,generateRandomId as _0x3ddba5,getBodySliceForTextXAction as _0xc8d1f5,getCustomRangeInterval as _0x38861e,getParagraphContentStartOffset as _0xaeba,getRichTextEditPath as _0x1f68c0,merge as _0x1281fb,shiftExclusiveRangeOnDelete as _0x42d47e,shiftExclusiveRangeOnInsert as _0x20ed51,shiftInclusiveRangeOnDelete as _0x8912fd,shiftInclusiveRangeOnInsert as _0x754acd,touchDependencies as _0x5dcd24}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x35872f,DocSelectionManagerService as _0x14ce86,DocTextResolverService as _0x37f942,RichTextEditingMutation as _0x547d5a,UniverDocsPlugin as _0x4de602}from'@univerjs/docs';import{FormulaResultStatus as _0xfae944,LexerTreeBuilder as _0x1e5c80,OtherFormulaBizType as _0xc26a75,RegisterOtherFormulaService as _0x1a7a0f}from'@univerjs/engine-formula';import{Subject as _0x143dcf}from'rxjs';import{UniverLicensePlugin as _0x365ad2}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x2e2c47){const _0x6c1325=_0x20e9;return!_0x2e2c47||typeof _0x2e2c47!=_0x6c1325(0xb7)||!S(_0x2e2c47,[_0x6c1325(0x13e),'formulas'])||!(_0x6c1325(0x13e)in _0x2e2c47)||_0x2e2c47['schemaVersion']!==0x1||!('formulas'in _0x2e2c47)||!_0x2e2c47[_0x6c1325(0xdc)]||typeof _0x2e2c47['formulas']!=_0x6c1325(0xb7)||Array[_0x6c1325(0x89)](_0x2e2c47[_0x6c1325(0xdc)])?!0x1:Object[_0x6c1325(0xb8)](_0x2e2c47[_0x6c1325(0xdc)])[_0x6c1325(0xe4)](([_0x4b8655,_0x42a6ba])=>_0x4b8655[_0x6c1325(0xff)]>0x0&&Pe(_0x42a6ba));}function Pe(_0x3e0fa3){const _0x48b34f=_0x20e9;return!_0x3e0fa3||typeof _0x3e0fa3!=_0x48b34f(0xb7)||!S(_0x3e0fa3,['formula',_0x48b34f(0xfb),_0x48b34f(0x16c)])||!(_0x48b34f(0x110)in _0x3e0fa3)||typeof _0x3e0fa3[_0x48b34f(0x110)]!=_0x48b34f(0x175)||!_0x3e0fa3[_0x48b34f(0x110)][_0x48b34f(0x140)]()||_0x48b34f(0xfb)in _0x3e0fa3&&_0x3e0fa3['numberFormat']!=null&&(typeof _0x3e0fa3[_0x48b34f(0xfb)]!=_0x48b34f(0xb7)||!S(_0x3e0fa3['numberFormat'],[_0x48b34f(0xd0)])||!(_0x48b34f(0xd0)in _0x3e0fa3[_0x48b34f(0xfb)])||typeof _0x3e0fa3['numberFormat']['pattern']!=_0x48b34f(0x175))?!0x1:!(_0x48b34f(0x16c)in _0x3e0fa3)||_0x3e0fa3[_0x48b34f(0x16c)]==null||Fe(_0x3e0fa3['lastValue']);}function Fe(_0xd4fda0){const _0xa4c248=_0x20e9;return!_0xd4fda0||typeof _0xd4fda0!=_0xa4c248(0xb7)||!S(_0xd4fda0,['v','t',_0xa4c248(0xd0)])||!('v'in _0xd4fda0)||_0xd4fda0['v']!==null&&typeof _0xd4fda0['v']!=_0xa4c248(0x175)&&typeof _0xd4fda0['v']!=_0xa4c248(0xda)&&typeof _0xd4fda0['v']!=_0xa4c248(0x151)||'t'in _0xd4fda0&&_0xd4fda0['t']!=null&&!Ie(_0xd4fda0['t'])?!0x1:!(_0xa4c248(0xd0)in _0xd4fda0)||_0xd4fda0[_0xa4c248(0xd0)]==null||typeof _0xd4fda0['pattern']==_0xa4c248(0x175);}function S(_0x4df40b,_0x326a1f){const _0x29603c=_0x20e9;let _0x5b3f09=new Set(_0x326a1f);return Object['keys'](_0x4df40b)[_0x29603c(0xe4)](_0x1a9e77=>_0x5b3f09[_0x29603c(0xa4)](_0x1a9e77));}function Ie(_0x856566){const _0x3f9c65=_0x20e9;return typeof _0x856566==_0x3f9c65(0xda)&&Object[_0x3f9c65(0xd4)](_0x5259d)[_0x3f9c65(0xc8)](_0x856566);}const Le=new Set([_0x1a14c2['SECTION_BREAK'],_0x1a14c2[_0x24e2ca(0x8f)],_0x1a14c2[_0x24e2ca(0xe5)],_0x1a14c2[_0x24e2ca(0xea)],_0x1a14c2[_0x24e2ca(0x91)],_0x1a14c2['TABLE_ROW_END'],_0x1a14c2[_0x24e2ca(0x15a)],_0x1a14c2[_0x24e2ca(0xdf)],_0x1a14c2[_0x24e2ca(0xf9)],_0x1a14c2[_0x24e2ca(0x10a)],_0x1a14c2[_0x24e2ca(0x142)],_0x1a14c2[_0x24e2ca(0x12d)],_0x1a14c2[_0x24e2ca(0x15c)],_0x1a14c2['CUSTOM_BLOCK']]);var C=class extends Error{constructor(){const _0x27b792=_0x24e2ca;super(_0x27b792(0xa9));}};function Re(_0x38c5ce){const _0x2c4a2c=_0x24e2ca;var _0x50f2b0,_0x335c54;let _0x4e0be2=_0x56e124['deepClone'](_0x38c5ce['documentData']),_0x136782=j(_0x4e0be2),{startOffset:_0x4df048,endOffset:_0x9b6137}=We(_0x136782,_0x38c5ce[_0x2c4a2c(0x14e)],_0x38c5ce[_0x2c4a2c(0x162)]);He(_0x136782,_0x4df048,_0x9b6137);let _0x5c4c9e=((_0x50f2b0=_0x136782[_0x2c4a2c(0x166)])==null?void 0x0:_0x50f2b0[_0x2c4a2c(0x12e)](_0x1a47c3=>{const _0x249b79=_0x2c4a2c;if(!w(_0x1a47c3))return!0x1;let _0x1f67e9=_0x38861e(_0x1a47c3);return _0x1f67e9[_0x249b79(0x162)]>_0x4df048&&_0x1f67e9['startOffset']<_0x9b6137;})[_0x2c4a2c(0x13f)](_0x2f5d78=>_0x2f5d78[_0x2c4a2c(0xac)]))??[];qe(_0x136782,_0x4df048,_0x9b6137,''),_0x136782[_0x2c4a2c(0x166)]=[...((_0x335c54=_0x136782[_0x2c4a2c(0x166)])==null?void 0x0:_0x335c54['filter'](_0x27fa78=>!_0x5c4c9e[_0x2c4a2c(0xc8)](_0x27fa78['rangeId'])&&_0x27fa78[_0x2c4a2c(0xac)]!==_0x38c5ce[_0x2c4a2c(0xac)]))??[],Ue(_0x38c5ce[_0x2c4a2c(0xac)],_0x4df048)][_0x2c4a2c(0x12a)]((_0x3072da,_0x31cd3c)=>_0x3072da[_0x2c4a2c(0xc7)]-_0x31cd3c[_0x2c4a2c(0xc7)]);let _0x33709d=E(_0x38c5ce[_0x2c4a2c(0x153)]);return _0x5c4c9e[_0x2c4a2c(0x84)](_0x14a809=>{const _0x1a1bb5=_0x2c4a2c;delete _0x33709d[_0x1a1bb5(0xdc)][_0x14a809];}),_0x33709d[_0x2c4a2c(0xdc)][_0x38c5ce[_0x2c4a2c(0xac)]]=_0x56e124[_0x2c4a2c(0x168)](_0x38c5ce[_0x2c4a2c(0x138)]),{'nextDocumentData':_0x4e0be2,'nextResource':_0x33709d,'cursorOffset':_0x4df048+0x1};}function ze(_0x25dbb5){const _0x559144=_0x24e2ca;var _0x49765f,_0x350687;let _0x421cc8=_0x56e124['deepClone'](_0x25dbb5[_0x559144(0xcc)]),_0xa60ff9=(_0x49765f=j(_0x421cc8)[_0x559144(0x166)])==null?void 0x0:_0x49765f[_0x559144(0x10b)](_0x4de993=>_0x4de993['rangeId']===_0x25dbb5['rangeId']&&w(_0x4de993));if(!_0xa60ff9||!((_0x350687=_0x25dbb5['resource'])!=null&&_0x350687['formulas'][_0x25dbb5[_0x559144(0xac)]]))return null;let _0x34f942=E(_0x25dbb5[_0x559144(0x153)]);return _0x34f942[_0x559144(0xdc)][_0x25dbb5[_0x559144(0xac)]]=_0x56e124[_0x559144(0x168)](_0x25dbb5[_0x559144(0x138)]),{'nextDocumentData':_0x421cc8,'nextResource':_0x34f942,'cursorOffset':_0xa60ff9[_0x559144(0x115)]+0x1};}function Be(_0x1205a8){const _0x40bc87=_0x24e2ca;let _0x1e7558=_0x56e124[_0x40bc87(0x168)](_0x1205a8[_0x40bc87(0xcc)]),_0x2e246c=Je(_0x1e7558,_0x1205a8[_0x40bc87(0xac)],_0x1205a8[_0x40bc87(0x16d)]??'');if(_0x2e246c==null)return null;let _0x58cc0a=E(_0x1205a8[_0x40bc87(0x153)]);return delete _0x58cc0a[_0x40bc87(0xdc)][_0x1205a8[_0x40bc87(0xac)]],{'nextDocumentData':_0x1e7558,'nextResource':_0x58cc0a,'cursorOffset':_0x2e246c};}function Ve(_0x3bce4c,_0x550159){const _0xe83699=_0x24e2ca;var _0x3468f8;let _0x2a2f8e=_0x56e124[_0xe83699(0x168)](_0x3bce4c),_0x407591=_0x2a2f8e[_0xe83699(0xe0)];if(!_0x407591)return _0x2a2f8e;let _0x5c7297=new Map(_0x550159['map'](_0x24a176=>[_0x24a176['rangeId'],_0x24a176['text']])),_0x2ad25c=((_0x3468f8=_0x407591[_0xe83699(0x166)])==null?void 0x0:_0x3468f8[_0xe83699(0x12e)](_0x5b3494=>w(_0x5b3494)&&_0x5c7297['has'](_0x5b3494[_0xe83699(0xac)]))[_0xe83699(0x12a)]((_0x771f63,_0x38821a)=>_0x38821a[_0xe83699(0xc7)]-_0x771f63[_0xe83699(0xc7)]))??[];for(let _0x4a30e6 of _0x2ad25c)Je(_0x2a2f8e,_0x4a30e6[_0xe83699(0xac)],_0x5c7297[_0xe83699(0x83)](_0x4a30e6[_0xe83699(0xac)])??'');return _0x2a2f8e;}function w(_0x28a77d){const _0x38ae15=_0x24e2ca;var _0x335644;return(_0x28a77d==null?void 0x0:_0x28a77d['rangeType'])===_0x373c58[_0x38ae15(0x121)]&&_0x28a77d[_0x38ae15(0xc6)]===!0x0&&((_0x335644=_0x28a77d[_0x38ae15(0x109)])==null?void 0x0:_0x335644[_0x38ae15(0xba)])==='univer-docs-formula';}function T(_0x1be36d,_0x31ef45){const _0x20c704=_0x24e2ca;var _0x4eba78;return _0x1be36d==null||(_0x4eba78=_0x1be36d[_0x20c704(0x166)])==null?void 0x0:_0x4eba78[_0x20c704(0x10b)](_0x984868=>_0x984868[_0x20c704(0xac)]===_0x31ef45&&w(_0x984868));}function He(_0x9dc834,_0x3efdd4,_0x4cfdd3){const _0x398b13=_0x24e2ca;if(_0x3efdd4===_0x4cfdd3){if(Le[_0x398b13(0xa4)](_0x9dc834[_0x398b13(0xc3)][_0x3efdd4]))throw new C();}else{for(let _0x904b42=_0x3efdd4;_0x904b42<_0x4cfdd3;_0x904b42++)if(_0x9dc834[_0x398b13(0xc3)][_0x904b42]===_0x1a14c2['PARAGRAPH']||Le[_0x398b13(0xa4)](_0x9dc834[_0x398b13(0xc3)][_0x904b42]))throw new C();}}function Ue(_0x1726d1,_0x301be9){return{'startIndex':_0x301be9,'endIndex':_0x301be9,'rangeId':_0x1726d1,'rangeType':_0x373c58['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x5ce6a2){const _0xc8af69=_0x24e2ca;return _0x5ce6a2?_0x56e124[_0xc8af69(0x168)](_0x5ce6a2):b();}function _0x448f(){const _0x97c9c2=['setResource','resolved','_configService','TABLE_START','getUnitId','TABLE_CELL_END','docs-formula.config','3291920qFkHzI','_registrationService','9298224gQFoWQ','version','register','getUnit','_setPresentation','subscribe','EMPTY','deleteLength','_deleteRegistration','endsWith','externalMutations','resolveBinding','getSnapshot','7wxTndR','syncUnit','has','docs-formula.mutation.remove-formula','empty','asObservable','status','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','slice','resolveFormula','rangeId','getPresentation','params','complete','_resources','set','resourceRedo','_change$','tables','max','notifyTextChanged','object','entries','documentRedo','kind','symbol','resourceUndo','registerCommand','textRuns','getInstance','startsWith','_presentationChanged$','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','dataStream','3bFCcRa','load','wholeEntity','startIndex','includes','_rawResources','registerPluginResource','unsupported-version','documentData','push','5VDsrLr','_syncScheduled','pattern','call','source','unregister','values','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','color','customBlocks','unitId','removeUnit','number','expectedNumberFormat','formulas','some','expectedReferenceRevision','COLUMN_GROUP_START','body','success','add','33441132vYVKPo','every','TABLE_ROW_START','_pendingUnitIds','_isDisposed','externalReferences','type','TABLE_CELL_START','COMMAND','blockRanges','presentation','_preserveInvalid','document','getBody','eligible','getLoadError','degradeDocumentData','_cacheEligibilityService','_updateFormulaResult','paragraph','resolveText','getFormulaValueSync','COLUMN_START','_syncUnit','numberFormat','docs-formula.mutation.set-last-values','columnGroups','editOp','length','PENDING','fromEntries','stringify','resources','SECTION_BREAK','44qwlbQq','unitAdded$','docs-formula.command.set-number-format','insert','properties','COLUMN_END','find','change$','1315828cmWkyz','iterator','cell','formula','defineProperty','@univerjs-pro/docs-formula','ERROR','docs-formula.command.update','endIndex','syncExecuteCommand','stale','_model','parse','end','identity','removeFormula','30454WMgCpO','sectionBreaks','getResource','customDecorations','CUSTOM','MUTATION','getResult','pluginName','start','getRegisteredFormulas','dispose','setConfig','presentationChanged$','sort','9813594DBpPTm','DOC','BLOCK_START','filter','selection','_instanceService','setFormulas','UNIVER_DOC','docs-formula.mutation.set-resource','getCurrentUnitOfType','model','SUCCESS','prototype','config','insertLength','clear','docs-formula.command.replace-with-text','undoMutation','disposeWithMe','schemaVersion','map','trim','_registrations','COLUMN_GROUP_END','cursorOffset','pending','target','paragraphs','_formulaService','references','serialize','docs-formula.command.remove','disabled','paragraphId','next','startOffset','docs-formula.command.insert','min','boolean','_hostExternalReferenceModel','resource','_docFormulaModel','nextDocumentData','segmentId','setFormula','getFormulas','previousResource','TABLE_END','_univerInstanceService','BLOCK_END','previousDocumentData','keys','collectMutations','trigger','data','endOffset','9OQaXpM','unregisterUnit','referenceRevision','customRanges','function','deepClone','_config','formulaId','_queueSync','lastValue','text','redoMutation','_commandService','from','assess','position','error','DOC_FORMULA_PLUGIN','string','_formulaKeys','875096bbhATS','_injector','invalid-resource','liveResult','_loadErrors','getFormula','nextResource','accessor','get','forEach','getTextRanges','delete','_service','retain','isArray','constructor','isInteger'];_0x448f=function(){return _0x97c9c2;};return _0x448f();}function We(_0x2b28c8,_0xc76ccf,_0x1e0fc5){let _0x5ba370=Ke(_0x2b28c8),_0x3e483f=_0xc76ccf??_0x5ba370,_0x2b3c88=_0x1e0fc5??_0x3e483f;return{'startOffset':Ge(Math['min'](_0x3e483f,_0x2b3c88),_0x5ba370),'endOffset':Ge(Math['max'](_0x3e483f,_0x2b3c88),_0x5ba370)};}function Ge(_0x284aeb,_0x3a9f6d){const _0x45b395=_0x24e2ca;return Math[_0x45b395(0xb5)](0x0,Math[_0x45b395(0x150)](_0x284aeb,_0x3a9f6d));}function Ke(_0x43f780){const _0x402815=_0x24e2ca;return _0x43f780[_0x402815(0xc3)]['endsWith'](''+_0x1a14c2['PARAGRAPH']+_0x1a14c2[_0x402815(0x104)])?Math['max'](0x0,_0x43f780['dataStream']['length']-0x2):_0x43f780[_0x402815(0xc3)][_0x402815(0x9e)](_0x1a14c2[_0x402815(0x104)])?Math[_0x402815(0xb5)](0x0,_0x43f780[_0x402815(0xc3)][_0x402815(0xff)]-0x1):_0x43f780[_0x402815(0xc3)]['length'];}function qe(_0x26e60e,_0x43e634,_0x424884,_0x249144){_0x424884>_0x43e634&&Xe(_0x26e60e,_0x43e634,_0x424884),Ye(_0x26e60e,_0x43e634,_0x249144);}function Je(_0x426345,_0x23454d,_0x2fdc83){const _0xd1ecd5=_0x24e2ca;var _0x38637c,_0x4767c6;let _0x3b9fc0=j(_0x426345),_0x2b5b2a=(_0x38637c=_0x3b9fc0[_0xd1ecd5(0x166)])==null?void 0x0:_0x38637c[_0xd1ecd5(0x10b)](_0x19235e=>_0x19235e[_0xd1ecd5(0xac)]===_0x23454d&&w(_0x19235e));if(!_0x2b5b2a)return null;let _0x24091b=_0x38861e(_0x2b5b2a);return qe(_0x3b9fc0,_0x24091b[_0xd1ecd5(0x14e)],_0x24091b[_0xd1ecd5(0x162)],_0x2fdc83),_0x3b9fc0[_0xd1ecd5(0x166)]=(_0x4767c6=_0x3b9fc0[_0xd1ecd5(0x166)])==null?void 0x0:_0x4767c6['filter'](_0x3dde0e=>_0x3dde0e['rangeId']!==_0x23454d),_0x24091b[_0xd1ecd5(0x14e)]+_0x2fdc83[_0xd1ecd5(0xff)];}function Ye(_0x74d333,_0x57b331,_0x41ef5f){const _0x3e1a9f=_0x24e2ca;_0x41ef5f&&(_0x74d333[_0x3e1a9f(0xc3)]=''+_0x74d333['dataStream']['slice'](0x0,_0x57b331)+_0x41ef5f+_0x74d333[_0x3e1a9f(0xc3)][_0x3e1a9f(0xaa)](_0x57b331),Ze(_0x74d333,_0x57b331,_0x41ef5f['length']));}function Xe(_0x51d6dd,_0x443827,_0x4b2b53){const _0xb138fa=_0x24e2ca;let _0x585d46=_0x4b2b53-_0x443827;_0x51d6dd[_0xb138fa(0xc3)]=''+_0x51d6dd[_0xb138fa(0xc3)]['slice'](0x0,_0x443827)+_0x51d6dd[_0xb138fa(0xc3)][_0xb138fa(0xaa)](_0x4b2b53),Qe(_0x51d6dd,_0x443827,_0x585d46);}function Ze(_0xe6d87b,_0x4dca26,_0x4a4586){const _0x229bc1=_0x24e2ca;_0xe6d87b[_0x229bc1(0x146)]=D(_0xe6d87b['paragraphs'],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0x11e)]=D(_0xe6d87b[_0x229bc1(0x11e)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xd7)]=D(_0xe6d87b['customBlocks'],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xbe)]=$e(_0xe6d87b[_0x229bc1(0xbe)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xb4)]=et(_0xe6d87b[_0x229bc1(0xb4)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0xfd)]=k(_0xe6d87b['columnGroups'],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0x166)]=k(_0xe6d87b[_0x229bc1(0x166)],_0x4dca26,_0x4a4586),_0xe6d87b[_0x229bc1(0x120)]=k(_0xe6d87b[_0x229bc1(0x120)],_0x4dca26,_0x4a4586),_0xe6d87b['blockRanges']=k(_0xe6d87b['blockRanges'],_0x4dca26,_0x4a4586);}function Qe(_0x5c0804,_0xb1cb6b,_0x455694){const _0x526c2a=_0x24e2ca;var _0x22467c,_0x48be46;_0x5c0804['paragraphs']=O(_0x5c0804[_0x526c2a(0x146)],_0xb1cb6b,_0x455694),_0x5c0804['sectionBreaks']=O(_0x5c0804[_0x526c2a(0x11e)],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0xd7)]=O(_0x5c0804[_0x526c2a(0xd7)],_0xb1cb6b,_0x455694),_0x5c0804['textRuns']=(_0x22467c=tt((_0x48be46=_0x5c0804['textRuns'])==null?void 0x0:_0x48be46[_0x526c2a(0x13f)](_0x173302=>({..._0x173302,'startIndex':_0x173302['st'],'endIndex':_0x173302['ed']})),_0xb1cb6b,_0x455694))==null?void 0x0:_0x22467c[_0x526c2a(0x13f)](_0xff7a88=>{let {startIndex:_0x269211,endIndex:_0x2a2585,..._0x518a32}=_0xff7a88;return{..._0x518a32,'st':_0x269211,'ed':_0x2a2585};}),_0x5c0804['tables']=tt(_0x5c0804[_0x526c2a(0xb4)],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0xfd)]=A(_0x5c0804[_0x526c2a(0xfd)],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0x166)]=A(_0x5c0804['customRanges'],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0x120)]=A(_0x5c0804['customDecorations'],_0xb1cb6b,_0x455694),_0x5c0804[_0x526c2a(0xec)]=A(_0x5c0804[_0x526c2a(0xec)],_0xb1cb6b,_0x455694);}function D(_0x1afcfd,_0x2df234,_0x4adf13){const _0x2ab983=_0x24e2ca;return _0x1afcfd==null?void 0x0:_0x1afcfd[_0x2ab983(0x13f)](_0xed7506=>_0xed7506[_0x2ab983(0xc7)]>=_0x2df234?{..._0xed7506,'startIndex':_0xed7506[_0x2ab983(0xc7)]+_0x4adf13}:_0xed7506);}function O(_0x2afb15,_0x2c2a11,_0x3199cf){const _0x2248c4=_0x24e2ca;let _0x1224ea=_0x2c2a11+_0x3199cf;return _0x2afb15==null?void 0x0:_0x2afb15[_0x2248c4(0x13f)](_0x3f637c=>_0x3f637c[_0x2248c4(0xc7)]>=_0x2c2a11&&_0x3f637c[_0x2248c4(0xc7)]<_0x1224ea?null:_0x3f637c['startIndex']>=_0x1224ea?{..._0x3f637c,'startIndex':_0x3f637c[_0x2248c4(0xc7)]-_0x3199cf}:_0x3f637c)[_0x2248c4(0x12e)](_0x393baa=>_0x393baa!=null);}function $e(_0x26855b,_0x1b1462,_0x2dab79){const _0x33b91c=_0x24e2ca;return _0x26855b==null?void 0x0:_0x26855b[_0x33b91c(0x13f)](_0x3fb1f1=>_0x3fb1f1['st']>=_0x1b1462?{..._0x3fb1f1,'st':_0x3fb1f1['st']+_0x2dab79,'ed':_0x3fb1f1['ed']+_0x2dab79}:_0x3fb1f1['ed']>_0x1b1462?{..._0x3fb1f1,'ed':_0x3fb1f1['ed']+_0x2dab79}:_0x3fb1f1);}function k(_0x3525bb,_0x5e104c,_0x41a582){const _0x41419b=_0x24e2ca;return _0x3525bb==null?void 0x0:_0x3525bb[_0x41419b(0x13f)](_0xad984e=>_0x754acd(_0xad984e,_0x5e104c,_0x41a582));}function et(_0x4b3665,_0x2ed42c,_0x4b0803){return _0x4b3665==null?void 0x0:_0x4b3665['map'](_0x216332=>_0x20ed51(_0x216332,_0x2ed42c,_0x4b0803));}function A(_0x2268e2,_0x5c9b4c,_0x293eb8){const _0x551ff7=_0x24e2ca;return _0x2268e2==null?void 0x0:_0x2268e2[_0x551ff7(0x13f)](_0x54fbd4=>_0x8912fd(_0x54fbd4,_0x5c9b4c,_0x293eb8))[_0x551ff7(0x12e)](_0x588e01=>_0x588e01!=null);}function tt(_0x86b6d2,_0x16262b,_0x19d639){const _0x4ae254=_0x24e2ca;return _0x86b6d2==null?void 0x0:_0x86b6d2[_0x4ae254(0x13f)](_0xe9ac31=>_0x42d47e(_0xe9ac31,_0x16262b,_0x19d639))['filter'](_0x198b1a=>_0x198b1a!=null);}function j(_0x5c037e){const _0x7ba50=_0x24e2ca;if(!_0x5c037e[_0x7ba50(0xe0)])throw Error(_0x7ba50(0xc2));return _0x5c037e['body'];}function M(_0x38410f){'@babel/helpers - typeof';const _0x4f77ad=_0x24e2ca;return M=typeof Symbol==_0x4f77ad(0x167)&&typeof Symbol[_0x4f77ad(0x10e)]==_0x4f77ad(0xbb)?function(_0x23c29c){return typeof _0x23c29c;}:function(_0x4cab49){const _0x18f1db=_0x4f77ad;return _0x4cab49&&typeof Symbol==_0x18f1db(0x167)&&_0x4cab49[_0x18f1db(0x8a)]===Symbol&&_0x4cab49!==Symbol[_0x18f1db(0x137)]?'symbol':typeof _0x4cab49;},M(_0x38410f);}function nt(_0x535fae,_0x3a6e8f){const _0x7668eb=_0x24e2ca;if(M(_0x535fae)!=_0x7668eb(0xb7)||!_0x535fae)return _0x535fae;var _0x6e9065=_0x535fae[Symbol['toPrimitive']];if(_0x6e9065!==void 0x0){var _0xeccb07=_0x6e9065[_0x7668eb(0xd1)](_0x535fae,_0x3a6e8f||'default');if(M(_0xeccb07)!=_0x7668eb(0xb7))return _0xeccb07;throw TypeError(_0x7668eb(0xd5));}return(_0x3a6e8f==='string'?String:Number)(_0x535fae);}function rt(_0x3a8548){const _0x3004bc=_0x24e2ca;var _0x18f20a=nt(_0x3a8548,_0x3004bc(0x175));return M(_0x18f20a)==_0x3004bc(0xbb)?_0x18f20a:_0x18f20a+'';}function N(_0x548e2b,_0x1b2825,_0x24aaf0){const _0x280653=_0x24e2ca;return(_0x1b2825=rt(_0x1b2825))in _0x548e2b?Object[_0x280653(0x111)](_0x548e2b,_0x1b2825,{'value':_0x24aaf0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x548e2b[_0x1b2825]=_0x24aaf0,_0x548e2b;}var P=class extends _0x25f89c{constructor(..._0x8f22d0){const _0x74c00c=_0x24e2ca;super(..._0x8f22d0),N(this,'_resources',new Map()),N(this,_0x74c00c(0xc9),new Map()),N(this,'_loadErrors',new Map()),N(this,_0x74c00c(0xb3),new _0x143dcf()),N(this,_0x74c00c(0x10c),this['_change$'][_0x74c00c(0xa7)]());}[_0x24e2ca(0x17c)](_0x589e38,_0x5ea175){const _0x691e3b=_0x24e2ca;var _0x4e004b;let _0x45dc03=(_0x4e004b=this[_0x691e3b(0xb0)]['get'](_0x589e38))==null?void 0x0:_0x4e004b[_0x691e3b(0xdc)][_0x5ea175];return _0x45dc03?_0x56e124[_0x691e3b(0x168)](_0x45dc03):void 0x0;}[_0x24e2ca(0x158)](_0x4d4066){const _0x5eea03=_0x24e2ca;var _0x49d226;return _0x56e124[_0x5eea03(0x168)](((_0x49d226=this[_0x5eea03(0xb0)][_0x5eea03(0x83)](_0x4d4066))==null?void 0x0:_0x49d226[_0x5eea03(0xdc)])??{});}[_0x24e2ca(0x11f)](_0x43122d){const _0x271986=_0x24e2ca;let _0x3c1f0b=this['_resources'][_0x271986(0x83)](_0x43122d);return _0x3c1f0b?_0x56e124['deepClone'](_0x3c1f0b):void 0x0;}['setFormula'](_0x15e1df,_0xb3a16e,_0x514b35){const _0xd5117b=_0x24e2ca;return this[_0xd5117b(0x131)](_0x15e1df,{[_0xb3a16e]:_0x514b35});}[_0x24e2ca(0x8c)](_0x23c8b0,_0x34251d){const _0x13aff5=_0x24e2ca;return this[_0x13aff5(0x17b)][_0x13aff5(0xa4)](_0x23c8b0)||!x(_0x34251d)?!0x1:(this[_0x13aff5(0xb0)][_0x13aff5(0xb1)](_0x23c8b0,_0x56e124[_0x13aff5(0x168)](_0x34251d)),this[_0x13aff5(0xb3)]['next']({'unitId':_0x23c8b0}),!0x0);}['setFormulas'](_0x4c1083,_0x1e3633){const _0x26e3aa=_0x24e2ca;if(this[_0x26e3aa(0x17b)][_0x26e3aa(0xa4)](_0x4c1083)||!Object[_0x26e3aa(0x15e)](_0x1e3633)[_0x26e3aa(0xff)]||!x({'schemaVersion':0x1,'formulas':_0x1e3633}))return!0x1;let _0x1feaee=this['_resources'][_0x26e3aa(0x83)](_0x4c1083)??b(),_0x41a4e9=_0x56e124[_0x26e3aa(0x168)](_0x1feaee);return Object['assign'](_0x41a4e9[_0x26e3aa(0xdc)],_0x56e124[_0x26e3aa(0x168)](_0x1e3633)),this[_0x26e3aa(0xb0)][_0x26e3aa(0xb1)](_0x4c1083,_0x41a4e9),this[_0x26e3aa(0xb3)][_0x26e3aa(0x14d)]({'unitId':_0x4c1083,'rangeIds':Object['keys'](_0x1e3633)}),!0x0;}['removeFormula'](_0x370cff,_0x84b77b){const _0x35a4d1=_0x24e2ca;if(this[_0x35a4d1(0x17b)][_0x35a4d1(0xa4)](_0x370cff))return!0x1;let _0x4abc7f=this[_0x35a4d1(0xb0)][_0x35a4d1(0x83)](_0x370cff);if(!(_0x4abc7f!=null&&_0x4abc7f[_0x35a4d1(0xdc)][_0x84b77b]))return!0x1;let _0x456c9a=_0x56e124['deepClone'](_0x4abc7f);return delete _0x456c9a[_0x35a4d1(0xdc)][_0x84b77b],this['_resources']['set'](_0x370cff,_0x456c9a),this[_0x35a4d1(0xb3)][_0x35a4d1(0x14d)]({'unitId':_0x370cff,'rangeIds':[_0x84b77b]}),!0x0;}[_0x24e2ca(0xc5)](_0x1d25ce,_0x58926d){const _0x2acb86=_0x24e2ca;return _0x58926d&&typeof _0x58926d==_0x2acb86(0xb7)&&_0x2acb86(0x13e)in _0x58926d&&_0x58926d[_0x2acb86(0x13e)]!==0x1?(this[_0x2acb86(0xee)](_0x1d25ce,_0x58926d,_0x2acb86(0xcb)),!0x1):x(_0x58926d)?(this[_0x2acb86(0xb0)]['set'](_0x1d25ce,_0x56e124[_0x2acb86(0x168)](_0x58926d)),this[_0x2acb86(0xc9)][_0x2acb86(0x86)](_0x1d25ce),this['_loadErrors']['delete'](_0x1d25ce),this['_change$'][_0x2acb86(0x14d)]({'unitId':_0x1d25ce}),!0x0):(this[_0x2acb86(0xee)](_0x1d25ce,_0x58926d,_0x2acb86(0x179)),!0x1);}[_0x24e2ca(0x149)](_0x5e2129){const _0x39e09a=_0x24e2ca;let _0x1235ec=this[_0x39e09a(0xb0)][_0x39e09a(0x83)](_0x5e2129);return _0x1235ec?_0x56e124['deepClone'](_0x1235ec):this['_rawResources'][_0x39e09a(0xa4)](_0x5e2129)?_0x56e124[_0x39e09a(0x168)](this[_0x39e09a(0xc9)][_0x39e09a(0x83)](_0x5e2129)):b();}[_0x24e2ca(0xf2)](_0x53a65b){return this['_loadErrors']['get'](_0x53a65b);}['removeUnit'](_0x34fd39){const _0x7052fe=_0x24e2ca;this['_resources'][_0x7052fe(0x86)](_0x34fd39),this[_0x7052fe(0xc9)][_0x7052fe(0x86)](_0x34fd39),this[_0x7052fe(0x17b)]['delete'](_0x34fd39),this['_change$'][_0x7052fe(0x14d)]({'unitId':_0x34fd39});}[_0x24e2ca(0x127)](){const _0x25e7fc=_0x24e2ca;this[_0x25e7fc(0xb0)][_0x25e7fc(0x13a)](),this['_rawResources'][_0x25e7fc(0x13a)](),this[_0x25e7fc(0x17b)][_0x25e7fc(0x13a)](),this[_0x25e7fc(0xb3)][_0x25e7fc(0xaf)](),super[_0x25e7fc(0x127)]();}[_0x24e2ca(0xee)](_0x48f88f,_0x1417d4,_0x2409e3){const _0xef6108=_0x24e2ca;this[_0xef6108(0xb0)][_0xef6108(0x86)](_0x48f88f),this[_0xef6108(0xc9)]['set'](_0x48f88f,_0x56e124['deepClone'](_0x1417d4)),this[_0xef6108(0x17b)][_0xef6108(0xb1)](_0x48f88f,_0x2409e3),this[_0xef6108(0xb3)][_0xef6108(0x14d)]({'unitId':_0x48f88f});}};let it=function(_0x17daf2){const _0x4965fb=_0x24e2ca;return _0x17daf2[_0x4965fb(0x9b)]=_0x4965fb(0xa6),_0x17daf2[_0x4965fb(0x100)]=_0x4965fb(0x144),_0x17daf2[_0x4965fb(0x136)]=_0x4965fb(0xe1),_0x17daf2[_0x4965fb(0x113)]='error',_0x17daf2;}({});function F(_0x1d1809,_0x44e879){return function(_0x5c3be7,_0x1da617){_0x44e879(_0x5c3be7,_0x1da617,_0x1d1809);};}function I(_0x211d3d,_0x187e1d,_0x1f4267,_0x112495){const _0x2a872c=_0x24e2ca;var _0x31762f=arguments[_0x2a872c(0xff)],_0x3060aa=_0x31762f<0x3?_0x187e1d:_0x112495===null?_0x112495=Object['getOwnPropertyDescriptor'](_0x187e1d,_0x1f4267):_0x112495,_0x5aed21;if(typeof Reflect==_0x2a872c(0xb7)&&typeof Reflect['decorate']==_0x2a872c(0x167))_0x3060aa=Reflect['decorate'](_0x211d3d,_0x187e1d,_0x1f4267,_0x112495);else{for(var _0x250747=_0x211d3d['length']-0x1;_0x250747>=0x0;_0x250747--)(_0x5aed21=_0x211d3d[_0x250747])&&(_0x3060aa=(_0x31762f<0x3?_0x5aed21(_0x3060aa):_0x31762f>0x3?_0x5aed21(_0x187e1d,_0x1f4267,_0x3060aa):_0x5aed21(_0x187e1d,_0x1f4267))||_0x3060aa);}return _0x31762f>0x3&&_0x3060aa&&Object[_0x2a872c(0x111)](_0x187e1d,_0x1f4267,_0x3060aa),_0x3060aa;}let L=class extends _0x25f89c{constructor(_0x2e83aa,_0x29912d,_0x5894bf){const _0x25f968=_0x24e2ca;super(),this[_0x25f968(0x118)]=_0x2e83aa,this[_0x25f968(0x94)]=_0x29912d,this[_0x25f968(0x152)]=_0x5894bf,N(this,_0x25f968(0x141),new Map()),N(this,'_formulaKeys',new Map()),N(this,_0x25f968(0xc1),new _0x143dcf()),N(this,_0x25f968(0x129),this[_0x25f968(0xc1)][_0x25f968(0xa7)]()),this[_0x25f968(0x13d)](this[_0x25f968(0x94)]['formulaResult$'][_0x25f968(0x9a)](_0x4c4488=>{const _0xc61b64=_0x25f968;for(let _0x56d54b of Object[_0xc61b64(0xd4)](_0x4c4488))for(let _0x265dd7 of Object[_0xc61b64(0xd4)](_0x56d54b))_0x265dd7[_0xc61b64(0x84)](_0x2e4be2=>this[_0xc61b64(0xf5)](_0x2e4be2));}));}[_0x24e2ca(0xa3)](_0x21cb18){const _0x468292=_0x24e2ca;var _0x342912;let _0x124f80=_0x21cb18[_0x468292(0x90)](),_0x166b07=((_0x342912=_0x21cb18[_0x468292(0xa1)]()[_0x468292(0xe0)])==null||(_0x342912=_0x342912['customRanges'])==null?void 0x0:_0x342912[_0x468292(0x12e)](w))??[],_0xb6589f=this[_0x468292(0x118)][_0x468292(0x158)](_0x124f80),_0x43d7ab=new Set();for(let _0x1e022c of _0x166b07){let _0x3f62e4=_0xb6589f[_0x1e022c[_0x468292(0xac)]];_0x3f62e4&&(_0x43d7ab[_0x468292(0xe2)](R(_0x124f80,_0x1e022c[_0x468292(0xac)])),this[_0x468292(0x97)]({'unitId':_0x124f80,'rangeId':_0x1e022c['rangeId']},_0x3f62e4));}for(let _0x5abd67 of Array[_0x468292(0x170)](this['_registrations'][_0x468292(0xd4)]()))_0x5abd67[_0x468292(0xd8)]===_0x124f80&&!_0x43d7ab[_0x468292(0xa4)](R(_0x5abd67[_0x468292(0xd8)],_0x5abd67[_0x468292(0xac)]))&&this[_0x468292(0xd3)](_0x5abd67);}['register'](_0x886990,_0x32a835){const _0x3d8cfa=_0x24e2ca;let _0x5f0d75=R(_0x886990['unitId'],_0x886990[_0x3d8cfa(0xac)]),_0x14831f=this[_0x3d8cfa(0x141)]['get'](_0x5f0d75),_0x126a96=this['_hostExternalReferenceModel']['getRevision'](_0x886990['unitId']);if(_0x14831f&&_0x14831f[_0x3d8cfa(0x138)][_0x3d8cfa(0x110)]===_0x32a835[_0x3d8cfa(0x110)]&&_0x14831f[_0x3d8cfa(0x165)]===_0x126a96){_0x14831f[_0x3d8cfa(0x138)]=_0x32a835;let _0xdea93b=_0x14831f[_0x3d8cfa(0x16a)]?this[_0x3d8cfa(0x94)][_0x3d8cfa(0xf8)](_0x14831f[_0x3d8cfa(0xd8)],_0x14831f['unitId'],_0x14831f[_0x3d8cfa(0x16a)])??void 0x0:void 0x0;_0x14831f['liveResult']=_0xdea93b,this[_0x3d8cfa(0x99)](_0x5f0d75,z(_0x32a835,_0xdea93b));return;}_0x14831f!=null&&_0x14831f[_0x3d8cfa(0x16a)]&&this[_0x3d8cfa(0x9d)](_0x14831f);let _0x3dccee={..._0x886990,'config':_0x32a835,'referenceRevision':_0x126a96,'presentation':z(_0x32a835,void 0x0)};if(this[_0x3d8cfa(0x141)][_0x3d8cfa(0xb1)](_0x5f0d75,_0x3dccee),!_0x32a835['formula'][_0x3d8cfa(0x140)]())return;let _0x102053=this[_0x3d8cfa(0x94)]['registerFormulaWithRange'](_0x886990[_0x3d8cfa(0xd8)],_0x886990[_0x3d8cfa(0xd8)],_0x32a835[_0x3d8cfa(0x110)],void 0x0,{'rangeId':_0x886990[_0x3d8cfa(0xac)]},_0xc26a75[_0x3d8cfa(0x12c)],_0x886990['rangeId']);_0x3dccee[_0x3d8cfa(0x16a)]=_0x102053,this[_0x3d8cfa(0x176)][_0x3d8cfa(0xb1)](_0x102053,_0x5f0d75);}[_0x24e2ca(0xd3)](_0x5c2558){const _0x3917bc=_0x24e2ca;let _0x3e3d95=R(_0x5c2558['unitId'],_0x5c2558['rangeId']),_0xef5141=this[_0x3917bc(0x141)][_0x3917bc(0x83)](_0x3e3d95);_0xef5141&&(this[_0x3917bc(0x9d)](_0xef5141),this['_registrations'][_0x3917bc(0x86)](_0x3e3d95));}['unregisterUnit'](_0x1a9279){const _0x47de4c=_0x24e2ca;for(let _0x4ff2db of Array[_0x47de4c(0x170)](this[_0x47de4c(0x141)][_0x47de4c(0xd4)]()))_0x4ff2db['unitId']===_0x1a9279&&this[_0x47de4c(0xd3)](_0x4ff2db);}[_0x24e2ca(0xad)](_0x145b05){const _0x5d0cbf=_0x24e2ca;var _0x5aeb03;return(_0x5aeb03=this[_0x5d0cbf(0x141)]['get'](R(_0x145b05[_0x5d0cbf(0xd8)],_0x145b05[_0x5d0cbf(0xac)])))==null?void 0x0:_0x5aeb03['presentation'];}[_0x24e2ca(0x123)](_0x4329b3){const _0x3aa6d4=_0x24e2ca;let _0x11b274=this['_registrations']['get'](R(_0x4329b3[_0x3aa6d4(0xd8)],_0x4329b3[_0x3aa6d4(0xac)]));return _0x11b274?B(_0x11b274):void 0x0;}[_0x24e2ca(0x126)](){const _0x239600=_0x24e2ca;return Array[_0x239600(0x170)](this[_0x239600(0x141)][_0x239600(0xd4)](),_0x3aaac7=>({'identity':{'unitId':_0x3aaac7['unitId'],'rangeId':_0x3aaac7['rangeId']},'config':_0x3aaac7[_0x239600(0x138)],'referenceRevision':_0x3aaac7['referenceRevision'],..._0x3aaac7[_0x239600(0x17a)]?{'liveResult':_0x3aaac7[_0x239600(0x17a)]}:null}));}['dispose'](){const _0x201b45=_0x24e2ca;for(let _0xc658d1 of this[_0x201b45(0x141)][_0x201b45(0xd4)]())this[_0x201b45(0x9d)](_0xc658d1);this[_0x201b45(0x141)]['clear'](),this[_0x201b45(0x176)][_0x201b45(0x13a)](),this[_0x201b45(0xc1)][_0x201b45(0xaf)](),super['dispose']();}[_0x24e2ca(0xf5)](_0x501059){const _0x45ae9f=_0x24e2ca;let _0x2e0925=this[_0x45ae9f(0x176)][_0x45ae9f(0x83)](_0x501059[_0x45ae9f(0x16a)]),_0x3c8720=_0x2e0925?this[_0x45ae9f(0x141)][_0x45ae9f(0x83)](_0x2e0925):void 0x0;_0x2e0925&&_0x3c8720&&(_0x3c8720[_0x45ae9f(0x17a)]=_0x501059,this[_0x45ae9f(0x99)](_0x2e0925,z(_0x3c8720['config'],_0x501059)));}[_0x24e2ca(0x99)](_0x150705,_0xa99fa9){const _0x3d2da4=_0x24e2ca;var _0x452bb3,_0x423922;let _0x55fe5c=this[_0x3d2da4(0x141)]['get'](_0x150705);if(!_0x55fe5c||at(_0x55fe5c[_0x3d2da4(0xed)],_0xa99fa9))return;let _0x2e0674=_0x55fe5c[_0x3d2da4(0xed)],_0x5b63c3=B(_0x55fe5c);_0x55fe5c[_0x3d2da4(0xed)]=_0xa99fa9,this[_0x3d2da4(0xc1)][_0x3d2da4(0x14d)]({'unitId':_0x55fe5c[_0x3d2da4(0xd8)],'rangeId':_0x55fe5c[_0x3d2da4(0xac)],'presentation':_0xa99fa9,'previousPresentation':_0x2e0674,'result':B(_0x55fe5c),'previousResult':{..._0x5b63c3,..._0x2e0674,'value':(_0x452bb3=_0x2e0674[_0x3d2da4(0x10f)])==null?void 0x0:_0x452bb3['v'],'valueType':((_0x423922=_0x2e0674['cell'])==null?void 0x0:_0x423922['t'])??void 0x0}});}[_0x24e2ca(0x9d)](_0x5ea35f){const _0x38ff76=_0x24e2ca;_0x5ea35f[_0x38ff76(0x16a)]&&(this[_0x38ff76(0x94)]['deleteFormula'](_0x5ea35f[_0x38ff76(0xd8)],_0x5ea35f[_0x38ff76(0xd8)],[_0x5ea35f[_0x38ff76(0x16a)]]),this[_0x38ff76(0x176)]['delete'](_0x5ea35f[_0x38ff76(0x16a)]));}};L=I([F(0x0,_0x22e0aa(P)),F(0x1,_0x22e0aa(_0x1a7a0f)),F(0x2,_0x22e0aa(_0xed4143))],L);function R(_0x55424a,_0x4ed2d7){return _0x55424a+'\x00'+_0x4ed2d7;}function z(_0x1d73ef,_0x57f67e){const _0x8c16b0=_0x24e2ca;return _0x500f97({'numberFormat':_0x1d73ef[_0x8c16b0(0xfb)],'lastValue':_0x1d73ef[_0x8c16b0(0x16c)],'result':_0x57f67e});}function B(_0x8106a0){const _0x156bb0=_0x24e2ca;var _0x3179f1,_0x53f88c,_0x3c281f;let _0x84eb61=_0x8106a0['presentation'],_0x3ca34b=_0x8106a0[_0x156bb0(0x138)][_0x156bb0(0x110)][_0x156bb0(0x140)]()?_0x84eb61[_0x156bb0(0x117)]||_0x84eb61[_0x156bb0(0x10f)]==null?_0x156bb0(0x144):((_0x3179f1=_0x8106a0[_0x156bb0(0x17a)])==null?void 0x0:_0x3179f1[_0x156bb0(0xa8)])===_0xfae944[_0x156bb0(0x113)]?_0x156bb0(0x173):_0x156bb0(0xe1):_0x156bb0(0xa6);return{..._0x84eb61,'status':_0x3ca34b,'value':(_0x53f88c=_0x84eb61[_0x156bb0(0x10f)])==null?void 0x0:_0x53f88c['v'],'valueType':((_0x3c281f=_0x84eb61[_0x156bb0(0x10f)])==null?void 0x0:_0x3c281f['t'])??void 0x0};}function at(_0x1e49db,_0x3b76ca){const _0x10cd49=_0x24e2ca;var _0x5305e7,_0x328e79,_0x46a695,_0x187f57;return _0x1e49db[_0x10cd49(0x16d)]===_0x3b76ca[_0x10cd49(0x16d)]&&_0x1e49db[_0x10cd49(0xd6)]===_0x3b76ca[_0x10cd49(0xd6)]&&_0x1e49db[_0x10cd49(0xd0)]===_0x3b76ca[_0x10cd49(0xd0)]&&_0x1e49db[_0x10cd49(0xd2)]===_0x3b76ca[_0x10cd49(0xd2)]&&_0x1e49db[_0x10cd49(0x117)]===_0x3b76ca[_0x10cd49(0x117)]&&((_0x5305e7=_0x1e49db[_0x10cd49(0x10f)])==null?void 0x0:_0x5305e7['t'])===((_0x328e79=_0x3b76ca[_0x10cd49(0x10f)])==null?void 0x0:_0x328e79['t'])&&Object['is']((_0x46a695=_0x1e49db['cell'])==null?void 0x0:_0x46a695['v'],(_0x187f57=_0x3b76ca[_0x10cd49(0x10f)])==null?void 0x0:_0x187f57['v']);}const ot={'id':'docs-formula.mutation.set-formula','type':_0x1da90f[_0x24e2ca(0x122)],'handler':(_0x4e35c9,_0x275b85)=>!(_0x275b85!=null&&_0x275b85[_0x24e2ca(0xd8)])||!_0x275b85[_0x24e2ca(0xac)]||!_0x275b85[_0x24e2ca(0x138)]?!0x1:_0x4e35c9[_0x24e2ca(0x83)](P)[_0x24e2ca(0x157)](_0x275b85[_0x24e2ca(0xd8)],_0x275b85['rangeId'],_0x275b85[_0x24e2ca(0x138)])},st={'id':_0x24e2ca(0xa5),'type':_0x1da90f['MUTATION'],'handler':(_0x3b4ce0,_0x3c11d2)=>!(_0x3c11d2!=null&&_0x3c11d2[_0x24e2ca(0xd8)])||!_0x3c11d2[_0x24e2ca(0xac)]?!0x1:_0x3b4ce0[_0x24e2ca(0x83)](P)[_0x24e2ca(0x11c)](_0x3c11d2[_0x24e2ca(0xd8)],_0x3c11d2[_0x24e2ca(0xac)])},V={'id':_0x24e2ca(0x133),'type':_0x1da90f[_0x24e2ca(0x122)],'handler':(_0x38ee50,_0x5c804a)=>!(_0x5c804a!=null&&_0x5c804a[_0x24e2ca(0xd8)])||!_0x5c804a[_0x24e2ca(0x153)]?!0x1:_0x38ee50[_0x24e2ca(0x83)](P)['setResource'](_0x5c804a['unitId'],_0x5c804a[_0x24e2ca(0x153)])},H={'id':_0x24e2ca(0xfc),'type':_0x1da90f[_0x24e2ca(0x122)],'handler':(_0x522282,_0x50008c)=>{const _0x1fd035=_0x24e2ca;if(!(_0x50008c!=null&&_0x50008c[_0x1fd035(0xd8)])||!_0x50008c['updates'][_0x1fd035(0xff)])return!0x1;let _0xa9f2d2=_0x522282[_0x1fd035(0x83)](P),_0x3ec971=_0x522282[_0x1fd035(0x83)](_0xed4143),_0x41b114=_0xa9f2d2[_0x1fd035(0x11f)](_0x50008c[_0x1fd035(0xd8)]);if(!_0x41b114)return!0x1;let _0x2b7260=_0x56e124[_0x1fd035(0x168)](_0x41b114),_0x1a3d53=!0x1;for(let _0x57ca80 of _0x50008c['updates']){var _0x349d27,_0x42c20a,_0x3d6b52,_0x119007;let _0x5a0b63=_0x2b7260[_0x1fd035(0xdc)][_0x57ca80[_0x1fd035(0xac)]];_0x5a0b63&&_0x5a0b63[_0x1fd035(0x110)]===_0x57ca80['expectedFormula']&&((_0x349d27=_0x5a0b63['numberFormat'])==null?void 0x0:_0x349d27['pattern'])===_0x57ca80[_0x1fd035(0xdb)]&&_0x3ec971['getRevision'](_0x50008c[_0x1fd035(0xd8)])===_0x57ca80[_0x1fd035(0xde)]&&(((_0x42c20a=_0x5a0b63['lastValue'])==null?void 0x0:_0x42c20a['v'])!==_0x57ca80[_0x1fd035(0x16c)]['v']||((_0x3d6b52=_0x5a0b63[_0x1fd035(0x16c)])==null?void 0x0:_0x3d6b52['t'])!==_0x57ca80[_0x1fd035(0x16c)]['t']||((_0x119007=_0x5a0b63['lastValue'])==null?void 0x0:_0x119007['pattern'])!==_0x57ca80[_0x1fd035(0x16c)][_0x1fd035(0xd0)])&&(_0x5a0b63[_0x1fd035(0x16c)]=_0x56e124[_0x1fd035(0x168)](_0x57ca80['lastValue']),_0x1a3d53=!0x0);}return!_0x1a3d53||_0xa9f2d2[_0x1fd035(0x8c)](_0x50008c[_0x1fd035(0xd8)],_0x2b7260);}},U={'id':_0x24e2ca(0x14f),'type':_0x1da90f['COMMAND'],'handler':(_0x3ca233,_0x1891e3)=>{const _0x499b7c=_0x24e2ca;if(!(_0x1891e3!=null&&_0x1891e3[_0x499b7c(0x110)][_0x499b7c(0x140)]()))return!0x1;let _0x1b5ede=q(_0x3ca233,_0x1891e3[_0x499b7c(0xd8)],'');if(!_0x1b5ede)return!0x1;let _0x367d48=ft(_0x1891e3[_0x499b7c(0x145)],_0x1b5ede[_0x499b7c(0xe0)],dt(_0x3ca233,_0x1b5ede['unitId']));if(!_0x367d48)return!0x1;let _0x19f773=pt(_0x3ca233,_0x1b5ede[_0x499b7c(0xd8)],_0x1891e3[_0x499b7c(0x110)],_0x1891e3[_0x499b7c(0xe8)]??[]);if(!_0x19f773)return!0x1;let _0x3396ec=mt(_0x1b5ede[_0x499b7c(0xe0)],_0x1b5ede[_0x499b7c(0x135)],_0x1b5ede[_0x499b7c(0xd8)]),_0x57700d=ht({'documentData':_0x1b5ede[_0x499b7c(0xcc)],'resource':_0x1b5ede[_0x499b7c(0x153)],'rangeId':_0x3396ec,'config':{'formula':_0x1891e3['formula'],..._0x1891e3['numberFormat']?{'numberFormat':_0x1891e3[_0x499b7c(0xfb)]}:null},'startOffset':_0x367d48['startOffset'],'endOffset':_0x367d48['endOffset']});if(!_0x57700d)return!0x1;let _0x346e2f=_0x38f235(_0x3ca233,_0x1b5ede[_0x499b7c(0xd8)],_0x19f773);return!_0x346e2f||!J({'accessor':_0x3ca233,'document':_0x1b5ede[_0x499b7c(0xef)],'unitId':_0x1b5ede['unitId'],'trigger':U['id'],'rangeId':_0x3396ec,'previousResource':_0x1b5ede[_0x499b7c(0x153)],'nextResource':_0x57700d[_0x499b7c(0x81)],'previousDocumentData':_0x1b5ede[_0x499b7c(0xcc)],'nextDocumentData':_0x57700d[_0x499b7c(0x155)],'cursorOffset':_0x57700d[_0x499b7c(0x143)],'externalMutations':_0x346e2f})?!0x1:{'rangeId':_0x3396ec,'startOffset':_0x57700d[_0x499b7c(0x143)]-0x1,'endOffset':_0x57700d[_0x499b7c(0x143)]};}},W={'id':_0x24e2ca(0x114),'type':_0x1da90f[_0x24e2ca(0xeb)],'handler':(_0x4973c2,_0x16e3e9)=>{const _0x3a9dd3=_0x24e2ca;if(!(_0x16e3e9!=null&&_0x16e3e9[_0x3a9dd3(0xac)])||!_0x16e3e9[_0x3a9dd3(0x110)]['trim']())return!0x1;let _0x65b8e5=q(_0x4973c2,_0x16e3e9['unitId'],''),_0x8e6f99=_0x65b8e5==null?void 0x0:_0x65b8e5[_0x3a9dd3(0x135)][_0x3a9dd3(0x17c)](_0x65b8e5['unitId'],_0x16e3e9[_0x3a9dd3(0xac)]),_0x534077=_0x65b8e5?T(_0x65b8e5[_0x3a9dd3(0xcc)][_0x3a9dd3(0xe0)],_0x16e3e9[_0x3a9dd3(0xac)]):void 0x0;if(!_0x65b8e5||!_0x8e6f99||!_0x534077)return!0x1;let _0x44674f=pt(_0x4973c2,_0x65b8e5[_0x3a9dd3(0xd8)],_0x16e3e9[_0x3a9dd3(0x110)],_0x16e3e9['externalReferences']??[]);if(!_0x44674f)return!0x1;let _0x15c43d=_0x38f235(_0x4973c2,_0x65b8e5[_0x3a9dd3(0xd8)],_0x44674f);if(!_0x15c43d)return!0x1;let _0x2b51c2=Ct(_0x65b8e5[_0x3a9dd3(0x153)]);return _0x2b51c2['formulas'][_0x16e3e9[_0x3a9dd3(0xac)]]={'formula':_0x16e3e9[_0x3a9dd3(0x110)],..._0x16e3e9[_0x3a9dd3(0xfb)]?{'numberFormat':_0x16e3e9['numberFormat']}:_0x8e6f99[_0x3a9dd3(0xfb)]?{'numberFormat':_0x8e6f99['numberFormat']}:null},J({'accessor':_0x4973c2,'document':_0x65b8e5['document'],'unitId':_0x65b8e5[_0x3a9dd3(0xd8)],'trigger':W['id'],'rangeId':_0x16e3e9[_0x3a9dd3(0xac)],'previousResource':_0x65b8e5[_0x3a9dd3(0x153)],'nextResource':_0x2b51c2,'cursorOffset':_0x534077['endIndex']+0x1,'externalMutations':_0x15c43d});}},G={'id':_0x24e2ca(0x107),'type':_0x1da90f[_0x24e2ca(0xeb)],'handler':(_0x29d4b7,_0x144644)=>{const _0x370aa3=_0x24e2ca;if(!(_0x144644!=null&&_0x144644['rangeId']))return!0x1;let _0x1a8c82=q(_0x29d4b7,_0x144644[_0x370aa3(0xd8)],''),_0x3c904e=_0x1a8c82==null?void 0x0:_0x1a8c82[_0x370aa3(0x135)][_0x370aa3(0x17c)](_0x1a8c82[_0x370aa3(0xd8)],_0x144644[_0x370aa3(0xac)]),_0xf83566=_0x1a8c82?T(_0x1a8c82['documentData']['body'],_0x144644[_0x370aa3(0xac)]):void 0x0;if(!_0x1a8c82||!_0x3c904e||!_0xf83566)return!0x1;let _0x3c3452=Ct(_0x1a8c82[_0x370aa3(0x153)]);return _0x3c3452[_0x370aa3(0xdc)][_0x144644[_0x370aa3(0xac)]]={..._0x3c904e,..._0x144644[_0x370aa3(0xfb)]?{'numberFormat':_0x144644[_0x370aa3(0xfb)]}:null},_0x144644[_0x370aa3(0xfb)]||delete _0x3c3452[_0x370aa3(0xdc)][_0x144644['rangeId']][_0x370aa3(0xfb)],J({'accessor':_0x29d4b7,'document':_0x1a8c82[_0x370aa3(0xef)],'unitId':_0x1a8c82['unitId'],'trigger':G['id'],'rangeId':_0x144644['rangeId'],'previousResource':_0x1a8c82[_0x370aa3(0x153)],'nextResource':_0x3c3452,'cursorOffset':_0xf83566['endIndex']+0x1,'externalMutations':{}});}},K={'id':_0x24e2ca(0x14a),'type':_0x1da90f[_0x24e2ca(0xeb)],'handler':(_0x45cefc,_0x4b1346)=>ut(_0x45cefc,_0x4b1346,'',K['id'])},ct={'id':_0x24e2ca(0x13b),'type':_0x1da90f['COMMAND'],'handler':(_0x404457,_0x450323)=>ut(_0x404457,_0x450323,(_0x450323==null?void 0x0:_0x450323['text'])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x1da90f['COMMAND'],'handler':(_0x1b6391,_0x580354)=>{const _0x3b0eb2=_0x24e2ca;if(!(_0x580354!=null&&_0x580354[_0x3b0eb2(0xac)]))return!0x1;let _0x54674f=q(_0x1b6391,_0x580354['unitId'],'');if(!_0x54674f)return!0x1;let _0x1a3d32=_0x1b6391[_0x3b0eb2(0x83)](L)[_0x3b0eb2(0x123)]({'unitId':_0x54674f[_0x3b0eb2(0xd8)],'rangeId':_0x580354[_0x3b0eb2(0xac)]});return _0x1a3d32?ut(_0x1b6391,_0x580354,_0x1a3d32[_0x3b0eb2(0x16d)],lt['id']):!0x1;}};function ut(_0x2a21ca,_0x4ef070,_0x15d739,_0xe59c81){const _0xed2bb3=_0x24e2ca;if(!(_0x4ef070!=null&&_0x4ef070[_0xed2bb3(0xac)]))return!0x1;let _0x5bd75b=q(_0x2a21ca,_0x4ef070[_0xed2bb3(0xd8)],'');if(!_0x5bd75b)return!0x1;let _0x64e1eb=Be({'documentData':_0x5bd75b['documentData'],'resource':_0x5bd75b['resource'],'rangeId':_0x4ef070[_0xed2bb3(0xac)],'text':_0x15d739});return _0x64e1eb?J({'accessor':_0x2a21ca,'document':_0x5bd75b['document'],'unitId':_0x5bd75b['unitId'],'trigger':_0xe59c81,'rangeId':_0x4ef070[_0xed2bb3(0xac)],'previousResource':_0x5bd75b['resource'],'nextResource':_0x64e1eb[_0xed2bb3(0x81)],'previousDocumentData':_0x5bd75b[_0xed2bb3(0xcc)],'nextDocumentData':_0x64e1eb[_0xed2bb3(0x155)],'cursorOffset':_0x64e1eb['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x47d18e,_0x13fe50,_0x570f61){const _0x42ae63=_0x24e2ca;if(_0x570f61)return null;let _0x1f0ac3=_0x47d18e['get'](_0x28c187),_0x3c7b55=(_0x13fe50?_0x1f0ac3[_0x42ae63(0x98)](_0x13fe50,_0x1b556b['UNIVER_DOC']):_0x1f0ac3[_0x42ae63(0x134)](_0x1b556b['UNIVER_DOC']))??null;if(!_0x3c7b55)return null;let _0xaef7e6=_0x3c7b55['getSnapshot'](),_0x10ac36=_0xaef7e6['body'];if(_0xaef7e6[_0x42ae63(0x14b)]||!_0x10ac36)return null;let _0x48cac8=_0x47d18e[_0x42ae63(0x83)](P);return _0x48cac8[_0x42ae63(0xf2)](_0x3c7b55[_0x42ae63(0x90)]())?null:{'document':_0x3c7b55,'body':_0x10ac36,'documentData':_0xaef7e6,'model':_0x48cac8,'resource':_0x48cac8[_0x42ae63(0x11f)](_0x3c7b55['getUnitId']())??b(),'unitId':_0x3c7b55[_0x42ae63(0x90)]()};}function dt(_0x16bb48,_0x467031){const _0x3cae03=_0x24e2ca;var _0x357ad5;return(_0x357ad5=_0x16bb48['get'](_0x14ce86)[_0x3cae03(0x85)]({'subUnitId':_0x467031,'unitId':_0x467031}))==null?void 0x0:_0x357ad5[0x0];}function ft(_0x558cf2,_0xa4e834,_0x24c0be){const _0x41fa4a=_0x24e2ca;if((_0x558cf2==null?void 0x0:_0x558cf2[_0x41fa4a(0xe9)])===_0x41fa4a(0xf6)){var _0x4f8c77;let _0x28cbcf=((_0x4f8c77=_0xa4e834[_0x41fa4a(0x146)])==null?void 0x0:_0x4f8c77['filter'](_0x2aaefb=>_0x2aaefb[_0x41fa4a(0x14c)]===_0x558cf2['paragraphId']))??[];if(_0x28cbcf[_0x41fa4a(0xff)]!==0x1)return null;let _0x22e1c7=_0x28cbcf[0x0],_0x58cff1=_0xaeba(_0xa4e834,_0x22e1c7),_0x3fd4de=_0x22e1c7[_0x41fa4a(0xc7)]-_0x58cff1,_0x193271=_0x558cf2['position']===_0x41fa4a(0x11a)?_0x3fd4de:_0x558cf2[_0x41fa4a(0x172)];if(!Number[_0x41fa4a(0x8b)](_0x193271)||_0x193271<0x0||_0x193271>_0x3fd4de)return null;let _0x2f41a2=_0x58cff1+_0x193271;return{'startOffset':_0x2f41a2,'endOffset':_0x2f41a2};}if((_0x558cf2==null?void 0x0:_0x558cf2['type'])==='range')return!Number[_0x41fa4a(0x8b)](_0x558cf2[_0x41fa4a(0x14e)])||!Number[_0x41fa4a(0x8b)](_0x558cf2['endOffset'])?null:{'startOffset':Math[_0x41fa4a(0x150)](_0x558cf2[_0x41fa4a(0x14e)],_0x558cf2[_0x41fa4a(0x162)]),'endOffset':Math[_0x41fa4a(0xb5)](_0x558cf2[_0x41fa4a(0x14e)],_0x558cf2[_0x41fa4a(0x162)])};let _0x30d0fe=(_0x558cf2==null?void 0x0:_0x558cf2[_0x41fa4a(0xe9)])===_0x41fa4a(0x12f)?_0x558cf2[_0x41fa4a(0x12f)]:_0x24c0be;return!_0x30d0fe||_0x30d0fe['segmentId']?null:{'startOffset':Math[_0x41fa4a(0x150)](_0x30d0fe[_0x41fa4a(0x14e)],_0x30d0fe[_0x41fa4a(0x162)]),'endOffset':Math[_0x41fa4a(0xb5)](_0x30d0fe[_0x41fa4a(0x14e)],_0x30d0fe[_0x41fa4a(0x162)])};}function pt(_0x1e39e3,_0x5ec59f,_0x224fa0,_0x35dcf3){const _0x380d7c=_0x24e2ca;let _0x16e2fb=_0x1e39e3[_0x380d7c(0x83)](_0x1e5c80),_0x14b511=_0x224fa0[_0x380d7c(0xc0)]('=')?_0x224fa0[_0x380d7c(0xaa)](0x1):_0x224fa0,_0x24382a=_0x16e2fb['sequenceNodesBuilder'](_0x14b511);if(!_0x24382a)return null;let _0x49d3dc=_0x1e39e3[_0x380d7c(0x83)](_0xed4143),_0x4214b4=_0x5f34d5({'qualifiers':_0x1f8367(_0x24382a),'explicitReferences':_0x35dcf3??[],'resolveBinding':_0x1075ed=>_0x49d3dc[_0x380d7c(0xa0)](_0x5ec59f,_0x1075ed)});return _0x4214b4['status']===_0x380d7c(0x8d)?_0x4214b4[_0x380d7c(0x148)]:null;}function mt(_0x1ec67a,_0x378bea,_0x22f767){const _0x482a70=_0x24e2ca;var _0xdb10ba;let _0x2dcf37=_0x3ddba5(0x6);for(;_0x1ec67a!=null&&(_0xdb10ba=_0x1ec67a['customRanges'])!=null&&_0xdb10ba[_0x482a70(0xdd)](_0x2cfa16=>_0x2cfa16[_0x482a70(0xac)]===_0x2dcf37)||_0x378bea[_0x482a70(0x17c)](_0x22f767,_0x2dcf37);)_0x2dcf37=_0x3ddba5(0x6);return _0x2dcf37;}function ht(_0xcd68d6){try{return Re(_0xcd68d6);}catch(_0xd5aa6e){if(_0xd5aa6e instanceof C)return null;throw _0xd5aa6e;}}function gt(_0x4b77c6){const _0x43f669=_0x24e2ca;let _0x3a1182=_0x4b77c6[_0x43f669(0x15d)]&&_0x4b77c6[_0x43f669(0x155)]?vt(_0x4b77c6['document'],_0x4b77c6[_0x43f669(0xd8)],_0x4b77c6['previousDocumentData'],_0x4b77c6[_0x43f669(0x155)],_0x4b77c6['cursorOffset'],_0x4b77c6[_0x43f669(0x160)]):null;return _0x4b77c6[_0x43f669(0x15d)]&&_0x4b77c6[_0x43f669(0x155)]&&!_0x3a1182?null:{'documentRedo':_0x3a1182,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x4b77c6[_0x43f669(0xd8)],'resource':_0x4b77c6[_0x43f669(0x81)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x4b77c6[_0x43f669(0xd8)],'resource':_0x4b77c6[_0x43f669(0x159)]}}};}function _t(_0x35e511,_0x169587,_0x5e8dfe,_0x4596b0){const _0xd3bce3=_0x24e2ca;_0x4596b0['pushUndoRedo']({'id':_0x35e511['trigger']+':'+_0x35e511[_0xd3bce3(0xac)],'unitID':_0x35e511[_0xd3bce3(0xd8)],'redoMutations':[..._0x35e511['externalMutations']['redoMutation']?[_0x35e511[_0xd3bce3(0x9f)]['redoMutation']]:[],..._0x169587[_0xd3bce3(0xb9)]?[_0x169587['documentRedo']]:[],_0x169587[_0xd3bce3(0xb2)]],'undoMutations':[_0x169587[_0xd3bce3(0xbc)],..._0x5e8dfe?[_0x5e8dfe]:[],..._0x35e511[_0xd3bce3(0x9f)][_0xd3bce3(0x13c)]?[_0x35e511[_0xd3bce3(0x9f)]['undoMutation']]:[]]});}function J(_0x5e9f5c){const _0xad5911=_0x24e2ca;let _0x44ee92=_0x5e9f5c['accessor']['get'](_0x3d0906),_0x3f7452=_0x5e9f5c[_0xad5911(0x82)]['get'](_0x36a1fe),_0x2c9c27=_0x5e9f5c['accessor'][_0xad5911(0x83)](_0x14ce86),_0x11e4a0=gt(_0x5e9f5c);if(!_0x11e4a0)return!0x1;let _0xa5f446=!0x1,_0x30fa7b=null,_0x574e14=!0x1;try{if(_0x5e9f5c[_0xad5911(0x9f)][_0xad5911(0x16e)]){if(!_0x44ee92[_0xad5911(0x116)](_0x5e9f5c['externalMutations'][_0xad5911(0x16e)]['id'],_0x5e9f5c['externalMutations'][_0xad5911(0x16e)][_0xad5911(0xae)]))return!0x1;_0xa5f446=!0x0;}if(_0x11e4a0[_0xad5911(0xb9)]){let _0x1e117f=_0x44ee92['syncExecuteCommand'](_0x11e4a0['documentRedo']['id'],_0x11e4a0[_0xad5911(0xb9)][_0xad5911(0xae)]);if(!_0x1e117f)return bt(_0x44ee92,_0x5e9f5c[_0xad5911(0x9f)],_0xa5f446),!0x1;_0x30fa7b={'id':_0x547d5a['id'],'params':{..._0x1e117f,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x44ee92[_0xad5911(0x116)](_0x11e4a0[_0xad5911(0xb2)]['id'],_0x11e4a0[_0xad5911(0xb2)][_0xad5911(0xae)]))return yt(_0x44ee92,_0x30fa7b),bt(_0x44ee92,_0x5e9f5c[_0xad5911(0x9f)],_0xa5f446),!0x1;_0x574e14=!0x0,_t(_0x5e9f5c,_0x11e4a0,_0x30fa7b,_0x3f7452);}catch(_0x50b2f8){throw _0x574e14&&_0x44ee92[_0xad5911(0x116)](_0x11e4a0[_0xad5911(0xbc)]['id'],_0x11e4a0[_0xad5911(0xbc)][_0xad5911(0xae)]),yt(_0x44ee92,_0x30fa7b),bt(_0x44ee92,_0x5e9f5c[_0xad5911(0x9f)],_0xa5f446),_0x50b2f8;}return _0x2c9c27['replaceDocRanges']([{'startOffset':_0x5e9f5c[_0xad5911(0x143)],'endOffset':_0x5e9f5c[_0xad5911(0x143)],'segmentId':''}],{'unitId':_0x5e9f5c[_0xad5911(0xd8)],'subUnitId':_0x5e9f5c['unitId']},!0x1,{[_0x35872f]:!0x0}),!0x0;}function vt(_0x3436f2,_0x2b0329,_0x1d93ed,_0x30f56e,_0x48e7db,_0x1caf6b){let _0x1d8337=xt(_0x1d93ed,_0x30f56e,_0x1f68c0(_0x3436f2,''));return _0x1d8337?{'id':_0x547d5a['id'],'params':{'unitId':_0x2b0329,'actions':_0x1d8337,'segmentId':'','textRanges':[{'startOffset':_0x48e7db,'endOffset':_0x48e7db,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x1caf6b}}:null;}function yt(_0x293270,_0x3e0b46){const _0x46c867=_0x24e2ca;_0x3e0b46&&_0x293270[_0x46c867(0x116)](_0x3e0b46['id'],_0x3e0b46[_0x46c867(0xae)]);}function bt(_0x5a8da8,_0xd0fe6e,_0x124bdd){const _0x450685=_0x24e2ca;_0x124bdd&&_0xd0fe6e[_0x450685(0x13c)]&&_0x5a8da8[_0x450685(0x116)](_0xd0fe6e[_0x450685(0x13c)]['id'],_0xd0fe6e[_0x450685(0x13c)][_0x450685(0xae)]);}function xt(_0x55bc3e,_0xce4b87,_0x66f65e){const _0x7ff189=_0x24e2ca;let _0x873266=_0x55bc3e[_0x7ff189(0xe0)],_0x2f6f1b=_0xce4b87[_0x7ff189(0xe0)],_0x3e1673=St(_0x873266==null?void 0x0:_0x873266[_0x7ff189(0xc3)],_0x2f6f1b==null?void 0x0:_0x2f6f1b['dataStream']);if(!_0x3e1673||!_0x2f6f1b)return null;let _0x46970e=new _0x2c43a5();return _0x46970e[_0x7ff189(0x88)](_0x3e1673[_0x7ff189(0x125)]),_0x3e1673[_0x7ff189(0x139)]>0x0&&_0x46970e[_0x7ff189(0x108)](_0x3e1673[_0x7ff189(0x139)],_0xc8d1f5(_0x2f6f1b,_0x3e1673[_0x7ff189(0x125)],_0x3e1673[_0x7ff189(0x125)]+_0x3e1673[_0x7ff189(0x139)],!0x1)),_0x3e1673['deleteLength']>0x0&&_0x46970e[_0x7ff189(0x86)](_0x3e1673[_0x7ff189(0x9c)]),_0x998333[_0x7ff189(0xbf)]()[_0x7ff189(0xfe)](_0x46970e['serialize'](),_0x66f65e);}function St(_0x22530a,_0x51a4e5){const _0x3e6ae0=_0x24e2ca;if(_0x22530a==null||_0x51a4e5==null||_0x22530a===_0x51a4e5)return null;let _0x467838=0x0;for(;_0x467838<_0x22530a['length']&&_0x467838<_0x51a4e5[_0x3e6ae0(0xff)]&&_0x22530a[_0x467838]===_0x51a4e5[_0x467838];)_0x467838+=0x1;let _0x21527b=_0x22530a[_0x3e6ae0(0xff)],_0x472c1a=_0x51a4e5[_0x3e6ae0(0xff)];for(;_0x21527b>_0x467838&&_0x472c1a>_0x467838&&_0x22530a[_0x21527b-0x1]===_0x51a4e5[_0x472c1a-0x1];)--_0x21527b,--_0x472c1a;return{'start':_0x467838,'deleteLength':_0x21527b-_0x467838,'insertLength':_0x472c1a-_0x467838};}function Ct(_0x705a38){const _0x2ff4a6=_0x24e2ca;return{'schemaVersion':0x1,'formulas':Object[_0x2ff4a6(0x101)](Object[_0x2ff4a6(0xb8)](_0x705a38[_0x2ff4a6(0xdc)])[_0x2ff4a6(0x13f)](([_0x24c437,_0x5395a2])=>[_0x24c437,{..._0x5395a2,..._0x5395a2['numberFormat']?{'numberFormat':{..._0x5395a2[_0x2ff4a6(0xfb)]}}:null,..._0x5395a2[_0x2ff4a6(0x16c)]?{'lastValue':{..._0x5395a2['lastValue']}}:null}]))};}let Y=class extends _0x25f89c{constructor(_0x71a0c1,_0x256a79,_0x27cb6c,_0x4a46ea){const _0x5ae87f=_0x24e2ca;super(),this[_0x5ae87f(0x130)]=_0x71a0c1,this[_0x5ae87f(0x16f)]=_0x256a79,this[_0x5ae87f(0x118)]=_0x27cb6c,this['_service']=_0x4a46ea,N(this,_0x5ae87f(0xe6),new Set()),N(this,'_syncScheduled',!0x1),N(this,'_isDisposed',!0x1),this[_0x5ae87f(0x130)]['getAllUnitsForType'](_0x1b556b['UNIVER_DOC'])[_0x5ae87f(0x84)](_0x3ac90d=>this['_service'][_0x5ae87f(0xa3)](_0x3ac90d)),this[_0x5ae87f(0x13d)](this['_model'][_0x5ae87f(0x10c)][_0x5ae87f(0x9a)](({unitId:_0x56df38})=>this[_0x5ae87f(0xfa)](_0x56df38))),this[_0x5ae87f(0x13d)](this['_instanceService'][_0x5ae87f(0x106)][_0x5ae87f(0x9a)](({unit:_0x52941c})=>{const _0x5157ab=_0x5ae87f;_0x52941c[_0x5157ab(0xe9)]===_0x1b556b['UNIVER_DOC']&&this['_queueSync'](_0x52941c[_0x5157ab(0x90)]());})),this['disposeWithMe'](this[_0x5ae87f(0x130)]['unitDisposed$'][_0x5ae87f(0x9a)](_0x212f54=>{const _0x82e6cd=_0x5ae87f;this[_0x82e6cd(0x87)][_0x82e6cd(0x164)](_0x212f54[_0x82e6cd(0x90)]());})),this['disposeWithMe'](this[_0x5ae87f(0x16f)]['onCommandExecuted'](_0x5bb9da=>{const _0x3a9e88=_0x5ae87f;if(_0x5bb9da['id']===_0x547d5a['id']&&wt(_0x5bb9da[_0x3a9e88(0xae)])){let _0x1b4db5=_0x5bb9da[_0x3a9e88(0xae)];_0x1b4db5[_0x3a9e88(0x156)]||this[_0x3a9e88(0xfa)](_0x1b4db5[_0x3a9e88(0xd8)]);}}));}[_0x24e2ca(0x127)](){this['_isDisposed']=!0x0,super['dispose']();}[_0x24e2ca(0x16b)](_0x439889){const _0x37ddc7=_0x24e2ca;this['_pendingUnitIds'][_0x37ddc7(0xe2)](_0x439889),!this[_0x37ddc7(0xcf)]&&(this[_0x37ddc7(0xcf)]=!0x0,queueMicrotask(()=>{const _0x5ae006=_0x37ddc7;if(this[_0x5ae006(0xcf)]=!0x1,this[_0x5ae006(0xe7)])return;let _0x325f9e=Array[_0x5ae006(0x170)](this[_0x5ae006(0xe6)]);this[_0x5ae006(0xe6)][_0x5ae006(0x13a)](),_0x325f9e['forEach'](_0x503548=>this[_0x5ae006(0xfa)](_0x503548));}));}['_syncUnit'](_0x138f9a){const _0x161ac5=_0x24e2ca;let _0x38f3d7=this[_0x161ac5(0x130)][_0x161ac5(0x98)](_0x138f9a,_0x1b556b['UNIVER_DOC']);_0x38f3d7&&this[_0x161ac5(0x87)][_0x161ac5(0xa3)](_0x38f3d7);}};Y=I([F(0x0,_0x28c187),F(0x1,_0x3d0906),F(0x2,_0x22e0aa(P)),F(0x3,_0x22e0aa(L))],Y);function _0x20e9(_0x47c81b,_0x33e644){_0x47c81b=_0x47c81b-0x81;const _0x448f99=_0x448f();let _0x20e90b=_0x448f99[_0x47c81b];return _0x20e90b;}function wt(_0xa957e2){const _0x457d39=_0x24e2ca;return typeof _0xa957e2==_0x457d39(0xb7)&&!!_0xa957e2&&_0x457d39(0xd8)in _0xa957e2&&typeof _0xa957e2['unitId']==_0x457d39(0x175)&&(!(_0x457d39(0x156)in _0xa957e2)||_0xa957e2[_0x457d39(0x156)]===void 0x0||typeof _0xa957e2[_0x457d39(0x156)]==_0x457d39(0x175));}let X=class extends _0x25f89c{constructor(_0x241f81,_0x292018){const _0x9729b6=_0x24e2ca;super(),this['_resourceManagerService']=_0x241f81,this[_0x9729b6(0x154)]=_0x292018,this[_0x9729b6(0x13d)](this['_resourceManagerService'][_0x9729b6(0xca)]({'pluginName':y,'businesses':[_0x1b556b['UNIVER_DOC']],'toJson':_0x36c6d5=>JSON[_0x9729b6(0x102)](this[_0x9729b6(0x154)]['serialize'](_0x36c6d5)),'parseJson':_0xfa9097=>JSON[_0x9729b6(0x119)](_0xfa9097),'onLoad':(_0x46792c,_0x2eec97)=>{const _0x283a5a=_0x9729b6;this[_0x283a5a(0x154)][_0x283a5a(0xc5)](_0x46792c,_0x2eec97);},'onUnLoad':_0x451d7f=>this[_0x9729b6(0x154)][_0x9729b6(0xd9)](_0x451d7f)}));}};X=I([F(0x0,_0x3af6e3),F(0x1,_0x22e0aa(P))],X);var Tt=_0x24e2ca(0x112),Et='1.3.0';const Dt={};let Z=class extends _0x25f89c{constructor(_0x5e947b,_0x1cacf7,_0x43ccb0){const _0x34e752=_0x24e2ca;super(),this[_0x34e752(0x15b)]=_0x5e947b,this[_0x34e752(0x147)]=_0x1cacf7,this[_0x34e752(0x13d)](_0x43ccb0[_0x34e752(0x97)]({'resolve':(_0xd4498e,_0x3471d6)=>{const _0x311dd3=_0x34e752;var _0x2228f5;return((_0x2228f5=_0x3471d6[_0x311dd3(0x166)])==null?void 0x0:_0x2228f5['filter'](w)[_0x311dd3(0x13f)](_0x46382c=>({'startOffset':_0x46382c[_0x311dd3(0xc7)],'endOffset':_0x46382c[_0x311dd3(0x115)]+0x1,'text':this[_0x311dd3(0xab)](_0xd4498e,_0x46382c[_0x311dd3(0xac)])})))??[];}})),this[_0x34e752(0x13d)](this[_0x34e752(0x147)][_0x34e752(0x129)][_0x34e752(0x9a)](({unitId:_0x5aca20})=>{const _0x26e139=_0x34e752;_0x43ccb0[_0x26e139(0xb6)](_0x5aca20);}));}[_0x24e2ca(0xab)](_0x14d877,_0x46e511){const _0x38bc2d=_0x24e2ca;var _0x2e847b;return((_0x2e847b=this[_0x38bc2d(0x147)]['getResult']({'unitId':_0x14d877,'rangeId':_0x46e511}))==null?void 0x0:_0x2e847b[_0x38bc2d(0x16d)])??'';}[_0x24e2ca(0xf7)](_0x1e591d,_0x536699,_0x47ae63){const _0x58ac6f=_0x24e2ca;var _0x31fbe9;let _0x3fd397=this['_univerInstanceService'][_0x58ac6f(0x98)](_0x1e591d,_0x1b556b[_0x58ac6f(0x132)]),_0x3aaadb=_0x3fd397==null?void 0x0:_0x3fd397[_0x58ac6f(0xf0)]();if(!_0x3aaadb)return'';let _0x1f85b6=_0x3aaadb[_0x58ac6f(0xc3)][_0x58ac6f(0xaa)](_0x536699,_0x47ae63),_0x13ceea=((_0x31fbe9=_0x3aaadb['customRanges'])==null?void 0x0:_0x31fbe9['filter'](_0x957717=>w(_0x957717)&&_0x957717['startIndex']>=_0x536699&&_0x957717[_0x58ac6f(0x115)]<_0x47ae63)[_0x58ac6f(0x12a)]((_0x36e517,_0x5cd5c6)=>_0x5cd5c6[_0x58ac6f(0xc7)]-_0x36e517[_0x58ac6f(0xc7)]))??[];for(let _0x4b5f78 of _0x13ceea){let _0x4d59ee=_0x4b5f78[_0x58ac6f(0xc7)]-_0x536699,_0x4c2264=_0x4b5f78[_0x58ac6f(0x115)]-_0x536699+0x1;_0x1f85b6=''+_0x1f85b6[_0x58ac6f(0xaa)](0x0,_0x4d59ee)+this[_0x58ac6f(0xab)](_0x1e591d,_0x4b5f78['rangeId'])+_0x1f85b6[_0x58ac6f(0xaa)](_0x4c2264);}return _0x1f85b6;}[_0x24e2ca(0xf3)](_0x430f08){return Ot(_0x430f08);}['degradeBody'](_0x2f2b3e,_0x542f8c,_0x4e9846={}){const _0x111147=_0x24e2ca;var _0x2a070e;return Ve({'id':_0x2f2b3e,'body':_0x542f8c,'documentStyle':{}},(((_0x2a070e=_0x542f8c[_0x111147(0x166)])==null?void 0x0:_0x2a070e['filter'](w))??[])[_0x111147(0x13f)](_0x4c34ed=>({'rangeId':_0x4c34ed[_0x111147(0xac)],'text':_0x4e9846[_0x4c34ed['rangeId']]??this['resolveFormula'](_0x2f2b3e,_0x4c34ed[_0x111147(0xac)])})))[_0x111147(0xe0)]??{'dataStream':''};}};Z=I([F(0x0,_0x28c187),F(0x1,_0x22e0aa(L)),F(0x2,_0x22e0aa(_0x37f942))],Z);function Ot(_0x468ba8){const _0x2e3989=_0x24e2ca;var _0x6a2d53,_0x3ec44b;let _0xb760ff=kt(_0x468ba8),_0x5629ac=Ve(_0x468ba8,(((_0x6a2d53=_0x468ba8[_0x2e3989(0xe0)])==null||(_0x6a2d53=_0x6a2d53[_0x2e3989(0x166)])==null?void 0x0:_0x6a2d53['filter'](w))??[])[_0x2e3989(0x13f)](_0x5ddc16=>({'rangeId':_0x5ddc16[_0x2e3989(0xac)],'text':At(_0xb760ff==null?void 0x0:_0xb760ff[_0x2e3989(0xdc)][_0x5ddc16[_0x2e3989(0xac)]])})));return _0x5629ac['resources']=(_0x3ec44b=_0x5629ac['resources'])==null?void 0x0:_0x3ec44b[_0x2e3989(0x12e)](_0x526218=>_0x526218['name']!==y),_0x5629ac;}function kt(_0xa67a6){const _0xb411be=_0x24e2ca;var _0x3ec190;let _0x2089da=(_0x3ec190=_0xa67a6[_0xb411be(0x103)])==null||(_0x3ec190=_0x3ec190[_0xb411be(0x10b)](_0x45573a=>_0x45573a['name']===_0xb411be(0x174)))==null?void 0x0:_0x3ec190[_0xb411be(0x161)];if(_0x2089da)try{let _0x56d08b=JSON[_0xb411be(0x119)](_0x2089da);return x(_0x56d08b)?_0x56d08b:void 0x0;}catch{return;}}function At(_0x24a8fd){const _0x362513=_0x24e2ca;return _0x24a8fd?_0x500f97({'lastValue':_0x24a8fd[_0x362513(0x16c)],'numberFormat':_0x24a8fd[_0x362513(0xfb)]})[_0x362513(0x16d)]:'';}let Q=class extends _0x25f89c{constructor(_0x118939,_0x3d2e02,_0xe776f6){super(),this['_formulaService']=_0x118939,this['_cacheEligibilityService']=_0x3d2e02,this['disposeWithMe'](_0xe776f6['registerProvider'](this));}[_0x24e2ca(0x15f)](_0x36da2c){const _0x314b4d=_0x24e2ca;let _0x344e5b=new Map();for(let _0x45f075 of this[_0x314b4d(0x147)][_0x314b4d(0x126)]()){var _0x4578e5;if(!this[_0x314b4d(0xf4)][_0x314b4d(0x171)](_0x45f075[_0x314b4d(0x138)][_0x314b4d(0x110)],_0x45f075[_0x314b4d(0x17a)])[_0x314b4d(0xf1)])continue;let _0x150c34=_0x164c26(_0x45f075[_0x314b4d(0x17a)]),_0x46fb84=_0x150c34?_0x27de7e(_0x150c34):null;if(!_0x46fb84||jt(_0x45f075['config'][_0x314b4d(0x16c)],_0x46fb84))continue;let _0x20a19e=_0x344e5b[_0x314b4d(0x83)](_0x45f075[_0x314b4d(0x11b)]['unitId'])??[];_0x20a19e[_0x314b4d(0xcd)]({'rangeId':_0x45f075[_0x314b4d(0x11b)][_0x314b4d(0xac)],'expectedFormula':_0x45f075['config'][_0x314b4d(0x110)],'expectedNumberFormat':(_0x4578e5=_0x45f075[_0x314b4d(0x138)]['numberFormat'])==null?void 0x0:_0x4578e5[_0x314b4d(0xd0)],'expectedReferenceRevision':_0x45f075[_0x314b4d(0x165)],'lastValue':_0x46fb84}),_0x344e5b['set'](_0x45f075[_0x314b4d(0x11b)][_0x314b4d(0xd8)],_0x20a19e);}return Array[_0x314b4d(0x170)](_0x344e5b,([_0x190d6d,_0x32a755])=>({'id':H['id'],'params':{'unitId':_0x190d6d,'updates':_0x32a755}}));}};Q=I([F(0x0,_0x22e0aa(L)),F(0x1,_0x22e0aa(_0x29362c)),F(0x2,_0x22e0aa(_0x143b9c))],Q);function jt(_0x53ab0c,_0x6e1770){const _0x1fefc2=_0x24e2ca;return(_0x53ab0c==null?void 0x0:_0x53ab0c['v'])===_0x6e1770['v']&&(_0x53ab0c==null?void 0x0:_0x53ab0c['t'])===_0x6e1770['t']&&(_0x53ab0c==null?void 0x0:_0x53ab0c['pattern'])===_0x6e1770[_0x1fefc2(0xd0)];}let $=class extends _0x5275a4{constructor(_0x5742d7=Dt,_0x182cf4,_0x4ae89c,_0x16e567){const _0x153572=_0x24e2ca;super(),this[_0x153572(0x169)]=_0x5742d7,this['_injector']=_0x182cf4,this['_commandService']=_0x4ae89c,this[_0x153572(0x8e)]=_0x16e567;let {..._0x585f6e}=_0x1281fb({},Dt,this[_0x153572(0x169)]);this[_0x153572(0x8e)][_0x153572(0x128)](_0x153572(0x92),_0x585f6e);}['onStarting'](){const _0x508d74=_0x24e2ca;this['_injector'][_0x508d74(0xe2)]([P]),this[_0x508d74(0x178)][_0x508d74(0xe2)]([L]),this['_injector']['add']([X]),this[_0x508d74(0x178)]['add']([Y]),this[_0x508d74(0x178)][_0x508d74(0xe2)]([Q]),this[_0x508d74(0x178)]['add']([Z]),_0x5dcd24(this[_0x508d74(0x178)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt]['forEach'](_0xfb05a=>this['disposeWithMe'](this[_0x508d74(0x16f)][_0x508d74(0xbd)](_0xfb05a)));}};N($,_0x24e2ca(0x124),y),N($,'packageName',Tt),N($,_0x24e2ca(0x96),Et),N($,_0x24e2ca(0xe9),_0x1b556b['UNIVER_DOC']),$=I([_0x335401(_0x365ad2,_0x5d553c,_0x4de602),F(0x1,_0x22e0aa(_0x3d3d14)),F(0x2,_0x3d0906),F(0x3,_0x3e2dd7)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
1
+ const _0x217dd1=_0x28ce;(function(_0x46f8fe,_0x367206){const _0x4b8495=_0x28ce,_0x539628=_0x46f8fe();while(!![]){try{const _0x49ee4b=parseInt(_0x4b8495(0x1a9))/0x1*(-parseInt(_0x4b8495(0x185))/0x2)+-parseInt(_0x4b8495(0x1d4))/0x3+-parseInt(_0x4b8495(0x1a3))/0x4+-parseInt(_0x4b8495(0x216))/0x5*(-parseInt(_0x4b8495(0x1f7))/0x6)+parseInt(_0x4b8495(0x15d))/0x7+parseInt(_0x4b8495(0x176))/0x8+parseInt(_0x4b8495(0x16f))/0x9;if(_0x49ee4b===_0x367206)break;else _0x539628['push'](_0x539628['shift']());}catch(_0x525b63){_0x539628['push'](_0x539628['shift']());}}}(_0x2a6f,0x27eb7));import{FormulaCacheEligibilityService as _0x4f9c1c,FormulaLastValuePersistenceService as _0x12a840,HostExternalReferenceModel as _0x506168,UniverProFormulaEnginePlugin as _0x5bf116,buildUpsertHostExternalReferenceMutations as _0x41a736,collectFormulaExternalReferenceQualifiers as _0x7f61b,getScalarFormulaResultCell as _0x2973cb,resolveFormulaResultPresentation as _0x27458f,resolveHostFormulaExternalReferences as _0x4805eb,toFormulaLastValue as _0x1b8769}from'@univerjs-pro/engine-formula';function _0x2a6f(){const _0x5001ba=['resourceUndo','decorate','_syncScheduled','function','registerFormulaWithRange','paragraphs','documentRedo','_docFormulaModel','getUnitId','BLOCK_START','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','resources','removeUnit','documentData','sectionBreaks','some','min','params','name','customDecorations','MUTATION','stale','_presentationChanged$','resolveBinding','resource','start','set','@univerjs-pro/docs-formula','1212504ZGGcLS','segmentId','filter','includes','registerCommand','undoMutation','1fWHpzb','docs-formula.command.replace-with-text','formula','ERROR','docs-formula.mutation.set-last-values','pending','getCurrentUnitOfType','getPresentation','COLUMN_GROUP_START','forEach','docs-formula.command.update','_loadErrors','startsWith','COLUMN_START','_registrations','CUSTOM_BLOCK','sort','config','delete','removeFormula','setResource','_registrationService','selection','packageName','disabled','TABLE_ROW_START','deepClone','prototype','_change$','startOffset','_deleteRegistration','identity','referenceRevision','subscribe','serialize','resourceRedo','textRuns','columnGroups','_commandService','replaceDocRanges','resolveText','cursorOffset','COLUMN_GROUP_END','401436FfHSeE','iterator','BLOCK_END','formulas','asObservable','rangeType','lastValue','setFormula','_configService','docs-formula.command.remove','trim','customBlocks','onStarting','keys','add','register','_formulaService','TABLE_CELL_START','resolveFormula','startIndex','_preserveInvalid','setConfig','object','properties','onCommandExecuted','_resourceManagerService','_pendingUnitIds','_setPresentation','expectedNumberFormat','syncUnit','TABLE_END','TABLE_START','PENDING','has','nextDocumentData','678WPGouz','load','insertLength','getResource','_service','endIndex','toPrimitive','type','_syncUnit','setFormulas','text','liveResult','range','externalReferences','getRegisteredFormulas','tables','formulaId','_config','registerProvider','source','values','pluginName','_hostExternalReferenceModel','kind','success','customRanges','document','SECTION_BREAK','getFormula','unregister','cell','10445LWiqKQ','SUCCESS','registerPluginResource','accessor','target','call','eligible','clear','parse','get','body','change$','empty','COMMAND','EMPTY','fromEntries','complete','wholeEntity','pattern','_isDisposed','presentationChanged$','degradeBody','getRevision','defineProperty','string','_formulaKeys','paragraphId','presentation','1.3.1','color','blockRanges','_model','_rawResources','univer-docs-formula','docs-formula.command.insert','insert','model','push','getResult','schemaVersion','endsWith','rangeId','previousResource','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','disposeWithMe','PARAGRAPH','COLUMN_END','getAllUnitsForType','default','notifyTextChanged','isInteger','trigger','max','symbol','_injector','assess','DOC','pushUndoRedo','previousDocumentData','dataStream','docs-formula.mutation.remove-formula','every','DOC_FORMULA_PLUGIN','_resources','updates','nextResource','from','externalMutations','dispose','934423hyRHut','paragraph','slice','getFormulaValueSync','position','_instanceService','unsupported-version','map','unitDisposed$','_updateFormulaResult','error','docs-formula.mutation.set-resource','getSnapshot','redoMutation','_cacheEligibilityService','getUnit','assign','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','4028418nDJBBX','syncExecuteCommand','length','endOffset','unitId','find','expectedFormula','188096Hblvxl','docs-formula.config','next','numberFormat','references','status','unregisterUnit','expectedReferenceRevision','getInstance','UNIVER_DOC','resolved','data','getFormulas','entries','_queueSync','480422kVEUoa','boolean'];_0x2a6f=function(){return _0x5001ba;};return _0x2a6f();}import{CellValueType as _0xddeba6,CommandType as _0x5f1099,CustomRangeType as _0xa7b507,DataStreamTreeTokenType as _0x303d23,DependentOn as _0x4eb3b4,Disposable as _0x18377d,ICommandService as _0x41c106,IConfigService as _0x35fc54,IResourceManagerService as _0x2d200b,IUndoRedoService as _0xe640ba,IUniverInstanceService as _0x147b46,Inject as _0x5e32df,Injector as _0x11059a,JSONX as _0x267617,Plugin as _0x2b73e4,TextX as _0x52174a,Tools as _0x4b0aab,UniverInstanceType as _0x138c8e,generateRandomId as _0x25429d,getBodySliceForTextXAction as _0x252b2a,getCustomRangeInterval as _0x1c91d3,getParagraphContentStartOffset as _0x480edf,getRichTextEditPath as _0x2ed637,merge as _0x59447c,shiftExclusiveRangeOnDelete as _0x24c8e7,shiftExclusiveRangeOnInsert as _0x7fd50e,shiftInclusiveRangeOnDelete as _0x23a1d4,shiftInclusiveRangeOnInsert as _0x4fc859,touchDependencies as _0x53385a}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x173f0a,DocSelectionManagerService as _0x3e1e55,DocTextResolverService as _0xbd430a,RichTextEditingMutation as _0x2dc975,UniverDocsPlugin as _0x50ecdf}from'@univerjs/docs';import{FormulaResultStatus as _0x5815e0,LexerTreeBuilder as _0x3a97e6,OtherFormulaBizType as _0x3508be,RegisterOtherFormulaService as _0x51a6f6}from'@univerjs/engine-formula';import{Subject as _0x2b03f3}from'rxjs';import{UniverLicensePlugin as _0x3855ef}from'@univerjs-pro/license';const y=_0x217dd1(0x156),je=0x1,Me=_0x217dd1(0x237),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x33a8b7){const _0x36fccf=_0x217dd1;return!_0x33a8b7||typeof _0x33a8b7!=_0x36fccf(0x1ea)||!S(_0x33a8b7,['schemaVersion','formulas'])||!(_0x36fccf(0x23d)in _0x33a8b7)||_0x33a8b7[_0x36fccf(0x23d)]!==0x1||!(_0x36fccf(0x1d7)in _0x33a8b7)||!_0x33a8b7[_0x36fccf(0x1d7)]||typeof _0x33a8b7['formulas']!=_0x36fccf(0x1ea)||Array['isArray'](_0x33a8b7[_0x36fccf(0x1d7)])?!0x1:Object[_0x36fccf(0x183)](_0x33a8b7[_0x36fccf(0x1d7)])[_0x36fccf(0x155)](([_0x6631b6,_0x370f0d])=>_0x6631b6[_0x36fccf(0x171)]>0x0&&Pe(_0x370f0d));}function Pe(_0x3a0550){const _0xd093a5=_0x217dd1;return!_0x3a0550||typeof _0x3a0550!=_0xd093a5(0x1ea)||!S(_0x3a0550,['formula',_0xd093a5(0x179),_0xd093a5(0x1da)])||!('formula'in _0x3a0550)||typeof _0x3a0550[_0xd093a5(0x1ab)]!=_0xd093a5(0x22e)||!_0x3a0550[_0xd093a5(0x1ab)][_0xd093a5(0x1de)]()||_0xd093a5(0x179)in _0x3a0550&&_0x3a0550['numberFormat']!=null&&(typeof _0x3a0550[_0xd093a5(0x179)]!=_0xd093a5(0x1ea)||!S(_0x3a0550[_0xd093a5(0x179)],['pattern'])||!('pattern'in _0x3a0550[_0xd093a5(0x179)])||typeof _0x3a0550[_0xd093a5(0x179)]['pattern']!=_0xd093a5(0x22e))?!0x1:!(_0xd093a5(0x1da)in _0x3a0550)||_0x3a0550['lastValue']==null||Fe(_0x3a0550[_0xd093a5(0x1da)]);}function Fe(_0x3ebafb){const _0x41a85e=_0x217dd1;return!_0x3ebafb||typeof _0x3ebafb!=_0x41a85e(0x1ea)||!S(_0x3ebafb,['v','t','pattern'])||!('v'in _0x3ebafb)||_0x3ebafb['v']!==null&&typeof _0x3ebafb['v']!=_0x41a85e(0x22e)&&typeof _0x3ebafb['v']!='number'&&typeof _0x3ebafb['v']!=_0x41a85e(0x186)||'t'in _0x3ebafb&&_0x3ebafb['t']!=null&&!Ie(_0x3ebafb['t'])?!0x1:!(_0x41a85e(0x228)in _0x3ebafb)||_0x3ebafb[_0x41a85e(0x228)]==null||typeof _0x3ebafb[_0x41a85e(0x228)]=='string';}function S(_0x5b0a55,_0x8a7a09){const _0x468ad9=_0x217dd1;let _0x3d2801=new Set(_0x8a7a09);return Object[_0x468ad9(0x1e1)](_0x5b0a55)[_0x468ad9(0x155)](_0x27fb88=>_0x3d2801[_0x468ad9(0x1f5)](_0x27fb88));}function Ie(_0x11b8d7){const _0x409c5b=_0x217dd1;return typeof _0x11b8d7=='number'&&Object[_0x409c5b(0x20b)](_0xddeba6)['includes'](_0x11b8d7);}const Le=new Set([_0x303d23[_0x217dd1(0x212)],_0x303d23[_0x217dd1(0x1f3)],_0x303d23[_0x217dd1(0x1c2)],_0x303d23[_0x217dd1(0x1e5)],_0x303d23['TABLE_CELL_END'],_0x303d23['TABLE_ROW_END'],_0x303d23[_0x217dd1(0x1f2)],_0x303d23[_0x217dd1(0x1b1)],_0x303d23[_0x217dd1(0x1b6)],_0x303d23[_0x217dd1(0x146)],_0x303d23[_0x217dd1(0x1d3)],_0x303d23[_0x217dd1(0x190)],_0x303d23[_0x217dd1(0x1d6)],_0x303d23[_0x217dd1(0x1b8)]]);var C=class extends Error{constructor(){const _0x20acbb=_0x217dd1;super(_0x20acbb(0x16e));}};function Re(_0x4a6acb){const _0x4419c5=_0x217dd1;var _0x1ba3ff,_0x411f1a;let _0x49217f=_0x4b0aab[_0x4419c5(0x1c3)](_0x4a6acb[_0x4419c5(0x194)]),_0x5c4c05=j(_0x49217f),{startOffset:_0x1871ab,endOffset:_0x32eb06}=We(_0x5c4c05,_0x4a6acb[_0x4419c5(0x1c6)],_0x4a6acb[_0x4419c5(0x172)]);He(_0x5c4c05,_0x1871ab,_0x32eb06);let _0x327859=((_0x1ba3ff=_0x5c4c05[_0x4419c5(0x210)])==null?void 0x0:_0x1ba3ff[_0x4419c5(0x1a5)](_0x17b629=>{const _0x59dd0c=_0x4419c5;if(!w(_0x17b629))return!0x1;let _0x1b1cea=_0x1c91d3(_0x17b629);return _0x1b1cea[_0x59dd0c(0x172)]>_0x1871ab&&_0x1b1cea[_0x59dd0c(0x1c6)]<_0x32eb06;})[_0x4419c5(0x164)](_0x4e9a92=>_0x4e9a92[_0x4419c5(0x141)]))??[];qe(_0x5c4c05,_0x1871ab,_0x32eb06,''),_0x5c4c05[_0x4419c5(0x210)]=[...((_0x411f1a=_0x5c4c05['customRanges'])==null?void 0x0:_0x411f1a[_0x4419c5(0x1a5)](_0x2ffe1c=>!_0x327859[_0x4419c5(0x1a6)](_0x2ffe1c[_0x4419c5(0x141)])&&_0x2ffe1c[_0x4419c5(0x141)]!==_0x4a6acb['rangeId']))??[],Ue(_0x4a6acb['rangeId'],_0x1871ab)][_0x4419c5(0x1b9)]((_0x52181d,_0x4b8459)=>_0x52181d[_0x4419c5(0x1e7)]-_0x4b8459[_0x4419c5(0x1e7)]);let _0x5e8aba=E(_0x4a6acb[_0x4419c5(0x19f)]);return _0x327859[_0x4419c5(0x1b2)](_0x4d61e3=>{const _0x4c2845=_0x4419c5;delete _0x5e8aba[_0x4c2845(0x1d7)][_0x4d61e3];}),_0x5e8aba['formulas'][_0x4a6acb[_0x4419c5(0x141)]]=_0x4b0aab[_0x4419c5(0x1c3)](_0x4a6acb[_0x4419c5(0x1ba)]),{'nextDocumentData':_0x49217f,'nextResource':_0x5e8aba,'cursorOffset':_0x1871ab+0x1};}function ze(_0x2a5355){const _0x305353=_0x217dd1;var _0x52a14b,_0x8e6589;let _0x3155b6=_0x4b0aab[_0x305353(0x1c3)](_0x2a5355[_0x305353(0x194)]),_0x4e7961=(_0x52a14b=j(_0x3155b6)[_0x305353(0x210)])==null?void 0x0:_0x52a14b[_0x305353(0x174)](_0x2bf86a=>_0x2bf86a[_0x305353(0x141)]===_0x2a5355['rangeId']&&w(_0x2bf86a));if(!_0x4e7961||!((_0x8e6589=_0x2a5355[_0x305353(0x19f)])!=null&&_0x8e6589['formulas'][_0x2a5355[_0x305353(0x141)]]))return null;let _0x28ee8e=E(_0x2a5355[_0x305353(0x19f)]);return _0x28ee8e[_0x305353(0x1d7)][_0x2a5355['rangeId']]=_0x4b0aab[_0x305353(0x1c3)](_0x2a5355[_0x305353(0x1ba)]),{'nextDocumentData':_0x3155b6,'nextResource':_0x28ee8e,'cursorOffset':_0x4e7961[_0x305353(0x1fc)]+0x1};}function Be(_0x4a14ed){const _0x3cd6cd=_0x217dd1;let _0x31de7a=_0x4b0aab[_0x3cd6cd(0x1c3)](_0x4a14ed['documentData']),_0x869cfd=Je(_0x31de7a,_0x4a14ed[_0x3cd6cd(0x141)],_0x4a14ed['text']??'');if(_0x869cfd==null)return null;let _0x347600=E(_0x4a14ed[_0x3cd6cd(0x19f)]);return delete _0x347600['formulas'][_0x4a14ed[_0x3cd6cd(0x141)]],{'nextDocumentData':_0x31de7a,'nextResource':_0x347600,'cursorOffset':_0x869cfd};}function Ve(_0x29c320,_0xf9c3a3){const _0x50ccbe=_0x217dd1;var _0x1c1ec1;let _0x3bcd60=_0x4b0aab[_0x50ccbe(0x1c3)](_0x29c320),_0x73ac89=_0x3bcd60['body'];if(!_0x73ac89)return _0x3bcd60;let _0x106e29=new Map(_0xf9c3a3[_0x50ccbe(0x164)](_0x182596=>[_0x182596['rangeId'],_0x182596[_0x50ccbe(0x201)]])),_0x418691=((_0x1c1ec1=_0x73ac89[_0x50ccbe(0x210)])==null?void 0x0:_0x1c1ec1[_0x50ccbe(0x1a5)](_0x547723=>w(_0x547723)&&_0x106e29['has'](_0x547723['rangeId']))[_0x50ccbe(0x1b9)]((_0x342876,_0x44931a)=>_0x44931a[_0x50ccbe(0x1e7)]-_0x342876[_0x50ccbe(0x1e7)]))??[];for(let _0x5162cd of _0x418691)Je(_0x3bcd60,_0x5162cd[_0x50ccbe(0x141)],_0x106e29[_0x50ccbe(0x21f)](_0x5162cd[_0x50ccbe(0x141)])??'');return _0x3bcd60;}function w(_0xc40f0d){const _0x31a015=_0x217dd1;var _0x4a24ad;return(_0xc40f0d==null?void 0x0:_0xc40f0d[_0x31a015(0x1d9)])===_0xa7b507['CUSTOM']&&_0xc40f0d[_0x31a015(0x227)]===!0x0&&((_0x4a24ad=_0xc40f0d[_0x31a015(0x1eb)])==null?void 0x0:_0x4a24ad[_0x31a015(0x20e)])==='univer-docs-formula';}function T(_0x572dc0,_0x79dd3c){const _0x33104d=_0x217dd1;var _0x452856;return _0x572dc0==null||(_0x452856=_0x572dc0['customRanges'])==null?void 0x0:_0x452856[_0x33104d(0x174)](_0x6bd752=>_0x6bd752[_0x33104d(0x141)]===_0x79dd3c&&w(_0x6bd752));}function He(_0x4a2854,_0x564262,_0x424f1b){const _0x59d0cf=_0x217dd1;if(_0x564262===_0x424f1b){if(Le[_0x59d0cf(0x1f5)](_0x4a2854['dataStream'][_0x564262]))throw new C();}else{for(let _0x424c5f=_0x564262;_0x424c5f<_0x424f1b;_0x424c5f++)if(_0x4a2854['dataStream'][_0x424c5f]===_0x303d23[_0x59d0cf(0x145)]||Le[_0x59d0cf(0x1f5)](_0x4a2854[_0x59d0cf(0x153)][_0x424c5f]))throw new C();}}function Ue(_0x30aca8,_0x47649f){return{'startIndex':_0x47649f,'endIndex':_0x47649f,'rangeId':_0x30aca8,'rangeType':_0xa7b507['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x3f848f){const _0x19fd63=_0x217dd1;return _0x3f848f?_0x4b0aab[_0x19fd63(0x1c3)](_0x3f848f):b();}function We(_0x2a0fc2,_0x3dc998,_0x53b50b){const _0x3cde51=_0x217dd1;let _0x215701=Ke(_0x2a0fc2),_0x242159=_0x3dc998??_0x215701,_0x188ab8=_0x53b50b??_0x242159;return{'startOffset':Ge(Math['min'](_0x242159,_0x188ab8),_0x215701),'endOffset':Ge(Math[_0x3cde51(0x14c)](_0x242159,_0x188ab8),_0x215701)};}function Ge(_0x277a78,_0x222d67){const _0x160741=_0x217dd1;return Math[_0x160741(0x14c)](0x0,Math['min'](_0x277a78,_0x222d67));}function Ke(_0x2270fa){const _0x2ae970=_0x217dd1;return _0x2270fa[_0x2ae970(0x153)][_0x2ae970(0x140)](''+_0x303d23[_0x2ae970(0x145)]+_0x303d23[_0x2ae970(0x212)])?Math['max'](0x0,_0x2270fa['dataStream']['length']-0x2):_0x2270fa[_0x2ae970(0x153)][_0x2ae970(0x140)](_0x303d23[_0x2ae970(0x212)])?Math[_0x2ae970(0x14c)](0x0,_0x2270fa[_0x2ae970(0x153)]['length']-0x1):_0x2270fa[_0x2ae970(0x153)]['length'];}function qe(_0x25059b,_0xe6d068,_0x4a96d8,_0x2017aa){_0x4a96d8>_0xe6d068&&Xe(_0x25059b,_0xe6d068,_0x4a96d8),Ye(_0x25059b,_0xe6d068,_0x2017aa);}function Je(_0x408d34,_0x69f0e5,_0xe2f4ab){const _0x523e11=_0x217dd1;var _0x247000,_0x158924;let _0x9857d=j(_0x408d34),_0x47d4b1=(_0x247000=_0x9857d[_0x523e11(0x210)])==null?void 0x0:_0x247000[_0x523e11(0x174)](_0x7e0de8=>_0x7e0de8[_0x523e11(0x141)]===_0x69f0e5&&w(_0x7e0de8));if(!_0x47d4b1)return null;let _0x1589a2=_0x1c91d3(_0x47d4b1);return qe(_0x9857d,_0x1589a2[_0x523e11(0x1c6)],_0x1589a2['endOffset'],_0xe2f4ab),_0x9857d[_0x523e11(0x210)]=(_0x158924=_0x9857d[_0x523e11(0x210)])==null?void 0x0:_0x158924['filter'](_0x423e53=>_0x423e53['rangeId']!==_0x69f0e5),_0x1589a2['startOffset']+_0xe2f4ab[_0x523e11(0x171)];}function Ye(_0x2dd341,_0x4333b2,_0x4bf980){const _0x392e9f=_0x217dd1;_0x4bf980&&(_0x2dd341['dataStream']=''+_0x2dd341[_0x392e9f(0x153)]['slice'](0x0,_0x4333b2)+_0x4bf980+_0x2dd341['dataStream'][_0x392e9f(0x15f)](_0x4333b2),Ze(_0x2dd341,_0x4333b2,_0x4bf980['length']));}function Xe(_0x705dfb,_0xeb8d48,_0x3da25b){const _0x2f6c5f=_0x217dd1;let _0x4bc73e=_0x3da25b-_0xeb8d48;_0x705dfb[_0x2f6c5f(0x153)]=''+_0x705dfb[_0x2f6c5f(0x153)]['slice'](0x0,_0xeb8d48)+_0x705dfb[_0x2f6c5f(0x153)][_0x2f6c5f(0x15f)](_0x3da25b),Qe(_0x705dfb,_0xeb8d48,_0x4bc73e);}function Ze(_0x2945ff,_0x48e4c4,_0x203f75){const _0x2f4d78=_0x217dd1;_0x2945ff[_0x2f4d78(0x18c)]=D(_0x2945ff[_0x2f4d78(0x18c)],_0x48e4c4,_0x203f75),_0x2945ff['sectionBreaks']=D(_0x2945ff['sectionBreaks'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1df)]=D(_0x2945ff[_0x2f4d78(0x1df)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1cd)]=$e(_0x2945ff[_0x2f4d78(0x1cd)],_0x48e4c4,_0x203f75),_0x2945ff['tables']=et(_0x2945ff[_0x2f4d78(0x206)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1ce)]=k(_0x2945ff['columnGroups'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x210)]=k(_0x2945ff[_0x2f4d78(0x210)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x19a)]=k(_0x2945ff['customDecorations'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x234)]=k(_0x2945ff[_0x2f4d78(0x234)],_0x48e4c4,_0x203f75);}function Qe(_0x5efb5d,_0x175cda,_0x4e40d8){const _0xdd740e=_0x217dd1;var _0x2bd071,_0x4aa016;_0x5efb5d[_0xdd740e(0x18c)]=O(_0x5efb5d[_0xdd740e(0x18c)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x195)]=O(_0x5efb5d[_0xdd740e(0x195)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x1df)]=O(_0x5efb5d[_0xdd740e(0x1df)],_0x175cda,_0x4e40d8),_0x5efb5d['textRuns']=(_0x2bd071=tt((_0x4aa016=_0x5efb5d[_0xdd740e(0x1cd)])==null?void 0x0:_0x4aa016['map'](_0x45262d=>({..._0x45262d,'startIndex':_0x45262d['st'],'endIndex':_0x45262d['ed']})),_0x175cda,_0x4e40d8))==null?void 0x0:_0x2bd071['map'](_0x5bdea5=>{let {startIndex:_0x1a71e3,endIndex:_0x3654d4,..._0x1266b6}=_0x5bdea5;return{..._0x1266b6,'st':_0x1a71e3,'ed':_0x3654d4};}),_0x5efb5d['tables']=tt(_0x5efb5d[_0xdd740e(0x206)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x1ce)]=A(_0x5efb5d['columnGroups'],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x210)]=A(_0x5efb5d[_0xdd740e(0x210)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x19a)]=A(_0x5efb5d[_0xdd740e(0x19a)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x234)]=A(_0x5efb5d[_0xdd740e(0x234)],_0x175cda,_0x4e40d8);}function D(_0x2a7771,_0x57b8f2,_0x4e8f76){const _0x62b9c9=_0x217dd1;return _0x2a7771==null?void 0x0:_0x2a7771[_0x62b9c9(0x164)](_0x21abe7=>_0x21abe7[_0x62b9c9(0x1e7)]>=_0x57b8f2?{..._0x21abe7,'startIndex':_0x21abe7[_0x62b9c9(0x1e7)]+_0x4e8f76}:_0x21abe7);}function O(_0xb0873d,_0x29695d,_0x564b71){const _0x3e1049=_0x217dd1;let _0x25a7c5=_0x29695d+_0x564b71;return _0xb0873d==null?void 0x0:_0xb0873d[_0x3e1049(0x164)](_0x1d39d7=>_0x1d39d7['startIndex']>=_0x29695d&&_0x1d39d7['startIndex']<_0x25a7c5?null:_0x1d39d7[_0x3e1049(0x1e7)]>=_0x25a7c5?{..._0x1d39d7,'startIndex':_0x1d39d7[_0x3e1049(0x1e7)]-_0x564b71}:_0x1d39d7)[_0x3e1049(0x1a5)](_0x293238=>_0x293238!=null);}function $e(_0x14d7af,_0xc89632,_0x2a4ba7){const _0x3199=_0x217dd1;return _0x14d7af==null?void 0x0:_0x14d7af[_0x3199(0x164)](_0x56b9a1=>_0x56b9a1['st']>=_0xc89632?{..._0x56b9a1,'st':_0x56b9a1['st']+_0x2a4ba7,'ed':_0x56b9a1['ed']+_0x2a4ba7}:_0x56b9a1['ed']>_0xc89632?{..._0x56b9a1,'ed':_0x56b9a1['ed']+_0x2a4ba7}:_0x56b9a1);}function k(_0x33928b,_0x17c339,_0x3cb90a){const _0x56d2c5=_0x217dd1;return _0x33928b==null?void 0x0:_0x33928b[_0x56d2c5(0x164)](_0x36d70a=>_0x4fc859(_0x36d70a,_0x17c339,_0x3cb90a));}function et(_0x9914ec,_0x4050ab,_0x39797e){const _0x4b75ec=_0x217dd1;return _0x9914ec==null?void 0x0:_0x9914ec[_0x4b75ec(0x164)](_0x26ad6d=>_0x7fd50e(_0x26ad6d,_0x4050ab,_0x39797e));}function A(_0x557e94,_0x329741,_0x528a87){const _0x484474=_0x217dd1;return _0x557e94==null?void 0x0:_0x557e94[_0x484474(0x164)](_0x2f7af6=>_0x23a1d4(_0x2f7af6,_0x329741,_0x528a87))['filter'](_0x30a571=>_0x30a571!=null);}function tt(_0x3f7787,_0xe830ec,_0x2fd680){const _0x1ce5c4=_0x217dd1;return _0x3f7787==null?void 0x0:_0x3f7787[_0x1ce5c4(0x164)](_0xef9991=>_0x24c8e7(_0xef9991,_0xe830ec,_0x2fd680))[_0x1ce5c4(0x1a5)](_0x4a4e72=>_0x4a4e72!=null);}function j(_0x1a8d5a){const _0x1666d3=_0x217dd1;if(!_0x1a8d5a['body'])throw Error(_0x1666d3(0x143));return _0x1a8d5a[_0x1666d3(0x220)];}function M(_0x4d0764){'@babel/helpers - typeof';const _0x2f78c2=_0x217dd1;return M=typeof Symbol=='function'&&typeof Symbol[_0x2f78c2(0x1d5)]==_0x2f78c2(0x14d)?function(_0x111b7b){return typeof _0x111b7b;}:function(_0x3516d2){const _0x488cba=_0x2f78c2;return _0x3516d2&&typeof Symbol==_0x488cba(0x18a)&&_0x3516d2['constructor']===Symbol&&_0x3516d2!==Symbol[_0x488cba(0x1c4)]?_0x488cba(0x14d):typeof _0x3516d2;},M(_0x4d0764);}function nt(_0x9e0cf1,_0x12a938){const _0x3542db=_0x217dd1;if(M(_0x9e0cf1)!='object'||!_0x9e0cf1)return _0x9e0cf1;var _0x147f44=_0x9e0cf1[Symbol[_0x3542db(0x1fd)]];if(_0x147f44!==void 0x0){var _0x23b12a=_0x147f44[_0x3542db(0x21b)](_0x9e0cf1,_0x12a938||_0x3542db(0x148));if(M(_0x23b12a)!=_0x3542db(0x1ea))return _0x23b12a;throw TypeError(_0x3542db(0x191));}return(_0x12a938==='string'?String:Number)(_0x9e0cf1);}function rt(_0x3a3027){const _0x383181=_0x217dd1;var _0x46653a=nt(_0x3a3027,'string');return M(_0x46653a)==_0x383181(0x14d)?_0x46653a:_0x46653a+'';}function N(_0x4a3b30,_0x4b4a21,_0x1cf49f){const _0x1f28da=_0x217dd1;return(_0x4b4a21=rt(_0x4b4a21))in _0x4a3b30?Object[_0x1f28da(0x22d)](_0x4a3b30,_0x4b4a21,{'value':_0x1cf49f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a3b30[_0x4b4a21]=_0x1cf49f,_0x4a3b30;}var P=class extends _0x18377d{constructor(..._0x27b5c4){const _0x255527=_0x217dd1;super(..._0x27b5c4),N(this,'_resources',new Map()),N(this,'_rawResources',new Map()),N(this,_0x255527(0x1b4),new Map()),N(this,_0x255527(0x1c5),new _0x2b03f3()),N(this,_0x255527(0x221),this[_0x255527(0x1c5)][_0x255527(0x1d8)]());}['getFormula'](_0xb6f641,_0x131d50){const _0x3ca899=_0x217dd1;var _0x2a8957;let _0x4d36e4=(_0x2a8957=this[_0x3ca899(0x157)][_0x3ca899(0x21f)](_0xb6f641))==null?void 0x0:_0x2a8957[_0x3ca899(0x1d7)][_0x131d50];return _0x4d36e4?_0x4b0aab[_0x3ca899(0x1c3)](_0x4d36e4):void 0x0;}[_0x217dd1(0x182)](_0x5ca644){const _0x3ebeb7=_0x217dd1;var _0x16bdc2;return _0x4b0aab[_0x3ebeb7(0x1c3)](((_0x16bdc2=this[_0x3ebeb7(0x157)]['get'](_0x5ca644))==null?void 0x0:_0x16bdc2[_0x3ebeb7(0x1d7)])??{});}['getResource'](_0x53b692){const _0x143138=_0x217dd1;let _0x3316fb=this['_resources']['get'](_0x53b692);return _0x3316fb?_0x4b0aab[_0x143138(0x1c3)](_0x3316fb):void 0x0;}[_0x217dd1(0x1db)](_0x598e7c,_0x3de29e,_0x48358c){const _0x3c2ed3=_0x217dd1;return this[_0x3c2ed3(0x200)](_0x598e7c,{[_0x3de29e]:_0x48358c});}['setResource'](_0x1b064d,_0x45a2b3){const _0x1a333d=_0x217dd1;return this[_0x1a333d(0x1b4)][_0x1a333d(0x1f5)](_0x1b064d)||!x(_0x45a2b3)?!0x1:(this['_resources'][_0x1a333d(0x1a1)](_0x1b064d,_0x4b0aab['deepClone'](_0x45a2b3)),this[_0x1a333d(0x1c5)][_0x1a333d(0x178)]({'unitId':_0x1b064d}),!0x0);}[_0x217dd1(0x200)](_0x1417b2,_0x1c91a7){const _0x530eb4=_0x217dd1;if(this[_0x530eb4(0x1b4)][_0x530eb4(0x1f5)](_0x1417b2)||!Object[_0x530eb4(0x1e1)](_0x1c91a7)['length']||!x({'schemaVersion':0x1,'formulas':_0x1c91a7}))return!0x1;let _0x183edd=this[_0x530eb4(0x157)][_0x530eb4(0x21f)](_0x1417b2)??b(),_0x41dee8=_0x4b0aab[_0x530eb4(0x1c3)](_0x183edd);return Object[_0x530eb4(0x16d)](_0x41dee8['formulas'],_0x4b0aab[_0x530eb4(0x1c3)](_0x1c91a7)),this[_0x530eb4(0x157)]['set'](_0x1417b2,_0x41dee8),this[_0x530eb4(0x1c5)][_0x530eb4(0x178)]({'unitId':_0x1417b2,'rangeIds':Object[_0x530eb4(0x1e1)](_0x1c91a7)}),!0x0;}[_0x217dd1(0x1bc)](_0x55aa78,_0x3b19b9){const _0x3185fb=_0x217dd1;if(this[_0x3185fb(0x1b4)][_0x3185fb(0x1f5)](_0x55aa78))return!0x1;let _0x3a18b1=this['_resources'][_0x3185fb(0x21f)](_0x55aa78);if(!(_0x3a18b1!=null&&_0x3a18b1[_0x3185fb(0x1d7)][_0x3b19b9]))return!0x1;let _0x569c61=_0x4b0aab[_0x3185fb(0x1c3)](_0x3a18b1);return delete _0x569c61[_0x3185fb(0x1d7)][_0x3b19b9],this[_0x3185fb(0x157)][_0x3185fb(0x1a1)](_0x55aa78,_0x569c61),this['_change$'][_0x3185fb(0x178)]({'unitId':_0x55aa78,'rangeIds':[_0x3b19b9]}),!0x0;}[_0x217dd1(0x1f8)](_0x4ec42a,_0x141d52){const _0x1d04ed=_0x217dd1;return _0x141d52&&typeof _0x141d52=='object'&&_0x1d04ed(0x23d)in _0x141d52&&_0x141d52[_0x1d04ed(0x23d)]!==0x1?(this[_0x1d04ed(0x1e8)](_0x4ec42a,_0x141d52,_0x1d04ed(0x163)),!0x1):x(_0x141d52)?(this['_resources'][_0x1d04ed(0x1a1)](_0x4ec42a,_0x4b0aab['deepClone'](_0x141d52)),this[_0x1d04ed(0x236)][_0x1d04ed(0x1bb)](_0x4ec42a),this[_0x1d04ed(0x1b4)][_0x1d04ed(0x1bb)](_0x4ec42a),this['_change$']['next']({'unitId':_0x4ec42a}),!0x0):(this[_0x1d04ed(0x1e8)](_0x4ec42a,_0x141d52,'invalid-resource'),!0x1);}['serialize'](_0x55fedb){const _0x587b9f=_0x217dd1;let _0x4d868b=this[_0x587b9f(0x157)]['get'](_0x55fedb);return _0x4d868b?_0x4b0aab[_0x587b9f(0x1c3)](_0x4d868b):this[_0x587b9f(0x236)][_0x587b9f(0x1f5)](_0x55fedb)?_0x4b0aab[_0x587b9f(0x1c3)](this['_rawResources'][_0x587b9f(0x21f)](_0x55fedb)):b();}['getLoadError'](_0x5b3a65){const _0x83bce7=_0x217dd1;return this[_0x83bce7(0x1b4)][_0x83bce7(0x21f)](_0x5b3a65);}['removeUnit'](_0x567732){const _0x642dbe=_0x217dd1;this[_0x642dbe(0x157)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x236)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x1b4)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x1c5)][_0x642dbe(0x178)]({'unitId':_0x567732});}['dispose'](){const _0x380c06=_0x217dd1;this[_0x380c06(0x157)]['clear'](),this[_0x380c06(0x236)]['clear'](),this[_0x380c06(0x1b4)][_0x380c06(0x21d)](),this[_0x380c06(0x1c5)]['complete'](),super[_0x380c06(0x15c)]();}[_0x217dd1(0x1e8)](_0x170e7b,_0x4e9891,_0x5a573e){const _0x3965e5=_0x217dd1;this['_resources'][_0x3965e5(0x1bb)](_0x170e7b),this[_0x3965e5(0x236)][_0x3965e5(0x1a1)](_0x170e7b,_0x4b0aab[_0x3965e5(0x1c3)](_0x4e9891)),this[_0x3965e5(0x1b4)]['set'](_0x170e7b,_0x5a573e),this[_0x3965e5(0x1c5)]['next']({'unitId':_0x170e7b});}};let it=function(_0x10513e){const _0x524e98=_0x217dd1;return _0x10513e[_0x524e98(0x224)]=_0x524e98(0x222),_0x10513e[_0x524e98(0x1f4)]=_0x524e98(0x1ae),_0x10513e[_0x524e98(0x217)]=_0x524e98(0x20f),_0x10513e[_0x524e98(0x1ac)]='error',_0x10513e;}({});function F(_0xb14ad7,_0x452cec){return function(_0x668bf7,_0x5be808){_0x452cec(_0x668bf7,_0x5be808,_0xb14ad7);};}function I(_0xd4c6b7,_0x2d85ec,_0x551c16,_0x392d22){const _0xd23448=_0x217dd1;var _0x2feea9=arguments['length'],_0x2f2361=_0x2feea9<0x3?_0x2d85ec:_0x392d22===null?_0x392d22=Object['getOwnPropertyDescriptor'](_0x2d85ec,_0x551c16):_0x392d22,_0x377118;if(typeof Reflect==_0xd23448(0x1ea)&&typeof Reflect[_0xd23448(0x188)]==_0xd23448(0x18a))_0x2f2361=Reflect[_0xd23448(0x188)](_0xd4c6b7,_0x2d85ec,_0x551c16,_0x392d22);else{for(var _0x3922d5=_0xd4c6b7[_0xd23448(0x171)]-0x1;_0x3922d5>=0x0;_0x3922d5--)(_0x377118=_0xd4c6b7[_0x3922d5])&&(_0x2f2361=(_0x2feea9<0x3?_0x377118(_0x2f2361):_0x2feea9>0x3?_0x377118(_0x2d85ec,_0x551c16,_0x2f2361):_0x377118(_0x2d85ec,_0x551c16))||_0x2f2361);}return _0x2feea9>0x3&&_0x2f2361&&Object[_0xd23448(0x22d)](_0x2d85ec,_0x551c16,_0x2f2361),_0x2f2361;}let L=class extends _0x18377d{constructor(_0x251f6e,_0x3687ee,_0x511450){const _0x15bcaa=_0x217dd1;super(),this[_0x15bcaa(0x235)]=_0x251f6e,this[_0x15bcaa(0x1be)]=_0x3687ee,this[_0x15bcaa(0x20d)]=_0x511450,N(this,_0x15bcaa(0x1b7),new Map()),N(this,_0x15bcaa(0x22f),new Map()),N(this,'_presentationChanged$',new _0x2b03f3()),N(this,_0x15bcaa(0x22a),this[_0x15bcaa(0x19d)][_0x15bcaa(0x1d8)]()),this[_0x15bcaa(0x144)](this[_0x15bcaa(0x1be)]['formulaResult$']['subscribe'](_0x2408ff=>{const _0x16b8ef=_0x15bcaa;for(let _0x4c05f0 of Object[_0x16b8ef(0x20b)](_0x2408ff))for(let _0x5c296a of Object['values'](_0x4c05f0))_0x5c296a[_0x16b8ef(0x1b2)](_0x2bbe96=>this[_0x16b8ef(0x166)](_0x2bbe96));}));}[_0x217dd1(0x1f1)](_0x254804){const _0x5222c4=_0x217dd1;var _0x31fd4e;let _0x4f695e=_0x254804[_0x5222c4(0x18f)](),_0x502059=((_0x31fd4e=_0x254804[_0x5222c4(0x169)]()[_0x5222c4(0x220)])==null||(_0x31fd4e=_0x31fd4e[_0x5222c4(0x210)])==null?void 0x0:_0x31fd4e['filter'](w))??[],_0x46299d=this[_0x5222c4(0x235)][_0x5222c4(0x182)](_0x4f695e),_0x1547f9=new Set();for(let _0x261382 of _0x502059){let _0x1b6560=_0x46299d[_0x261382[_0x5222c4(0x141)]];_0x1b6560&&(_0x1547f9['add'](R(_0x4f695e,_0x261382[_0x5222c4(0x141)])),this['register']({'unitId':_0x4f695e,'rangeId':_0x261382[_0x5222c4(0x141)]},_0x1b6560));}for(let _0x225c99 of Array[_0x5222c4(0x15a)](this[_0x5222c4(0x1b7)]['values']()))_0x225c99[_0x5222c4(0x173)]===_0x4f695e&&!_0x1547f9[_0x5222c4(0x1f5)](R(_0x225c99[_0x5222c4(0x173)],_0x225c99[_0x5222c4(0x141)]))&&this[_0x5222c4(0x214)](_0x225c99);}['register'](_0x555dac,_0x269b98){const _0x417e42=_0x217dd1;let _0x3d0d84=R(_0x555dac[_0x417e42(0x173)],_0x555dac[_0x417e42(0x141)]),_0xa4f0aa=this[_0x417e42(0x1b7)]['get'](_0x3d0d84),_0x2dbd93=this[_0x417e42(0x20d)][_0x417e42(0x22c)](_0x555dac[_0x417e42(0x173)]);if(_0xa4f0aa&&_0xa4f0aa[_0x417e42(0x1ba)]['formula']===_0x269b98[_0x417e42(0x1ab)]&&_0xa4f0aa[_0x417e42(0x1c9)]===_0x2dbd93){_0xa4f0aa[_0x417e42(0x1ba)]=_0x269b98;let _0x1f58c3=_0xa4f0aa[_0x417e42(0x207)]?this[_0x417e42(0x1be)][_0x417e42(0x160)](_0xa4f0aa['unitId'],_0xa4f0aa[_0x417e42(0x173)],_0xa4f0aa[_0x417e42(0x207)])??void 0x0:void 0x0;_0xa4f0aa['liveResult']=_0x1f58c3,this[_0x417e42(0x1ef)](_0x3d0d84,z(_0x269b98,_0x1f58c3));return;}_0xa4f0aa!=null&&_0xa4f0aa[_0x417e42(0x207)]&&this[_0x417e42(0x1c7)](_0xa4f0aa);let _0x39fc2d={..._0x555dac,'config':_0x269b98,'referenceRevision':_0x2dbd93,'presentation':z(_0x269b98,void 0x0)};if(this[_0x417e42(0x1b7)][_0x417e42(0x1a1)](_0x3d0d84,_0x39fc2d),!_0x269b98[_0x417e42(0x1ab)][_0x417e42(0x1de)]())return;let _0x47d19f=this['_registrationService'][_0x417e42(0x18b)](_0x555dac[_0x417e42(0x173)],_0x555dac[_0x417e42(0x173)],_0x269b98[_0x417e42(0x1ab)],void 0x0,{'rangeId':_0x555dac[_0x417e42(0x141)]},_0x3508be[_0x417e42(0x150)],_0x555dac[_0x417e42(0x141)]);_0x39fc2d[_0x417e42(0x207)]=_0x47d19f,this[_0x417e42(0x22f)]['set'](_0x47d19f,_0x3d0d84);}[_0x217dd1(0x214)](_0x16c20f){const _0x1fe2ee=_0x217dd1;let _0x3b9b67=R(_0x16c20f[_0x1fe2ee(0x173)],_0x16c20f['rangeId']),_0x19dffb=this[_0x1fe2ee(0x1b7)][_0x1fe2ee(0x21f)](_0x3b9b67);_0x19dffb&&(this[_0x1fe2ee(0x1c7)](_0x19dffb),this[_0x1fe2ee(0x1b7)]['delete'](_0x3b9b67));}[_0x217dd1(0x17c)](_0x57ecdb){const _0x2a02e7=_0x217dd1;for(let _0x1815e0 of Array[_0x2a02e7(0x15a)](this['_registrations'][_0x2a02e7(0x20b)]()))_0x1815e0[_0x2a02e7(0x173)]===_0x57ecdb&&this[_0x2a02e7(0x214)](_0x1815e0);}[_0x217dd1(0x1b0)](_0x342cbf){const _0x5a5a83=_0x217dd1;var _0xf5ce38;return(_0xf5ce38=this['_registrations'][_0x5a5a83(0x21f)](R(_0x342cbf['unitId'],_0x342cbf[_0x5a5a83(0x141)])))==null?void 0x0:_0xf5ce38[_0x5a5a83(0x231)];}[_0x217dd1(0x23c)](_0x536b28){const _0x473d8a=_0x217dd1;let _0x5b1984=this['_registrations']['get'](R(_0x536b28[_0x473d8a(0x173)],_0x536b28['rangeId']));return _0x5b1984?B(_0x5b1984):void 0x0;}[_0x217dd1(0x205)](){const _0x208425=_0x217dd1;return Array[_0x208425(0x15a)](this[_0x208425(0x1b7)][_0x208425(0x20b)](),_0xb547ef=>({'identity':{'unitId':_0xb547ef[_0x208425(0x173)],'rangeId':_0xb547ef['rangeId']},'config':_0xb547ef[_0x208425(0x1ba)],'referenceRevision':_0xb547ef['referenceRevision'],..._0xb547ef[_0x208425(0x202)]?{'liveResult':_0xb547ef[_0x208425(0x202)]}:null}));}[_0x217dd1(0x15c)](){const _0x116a3b=_0x217dd1;for(let _0x38620a of this[_0x116a3b(0x1b7)][_0x116a3b(0x20b)]())this['_deleteRegistration'](_0x38620a);this[_0x116a3b(0x1b7)][_0x116a3b(0x21d)](),this[_0x116a3b(0x22f)][_0x116a3b(0x21d)](),this[_0x116a3b(0x19d)][_0x116a3b(0x226)](),super[_0x116a3b(0x15c)]();}['_updateFormulaResult'](_0x59dc5b){const _0xe14cf3=_0x217dd1;let _0x15e207=this['_formulaKeys']['get'](_0x59dc5b[_0xe14cf3(0x207)]),_0x34670a=_0x15e207?this[_0xe14cf3(0x1b7)]['get'](_0x15e207):void 0x0;_0x15e207&&_0x34670a&&(_0x34670a[_0xe14cf3(0x202)]=_0x59dc5b,this[_0xe14cf3(0x1ef)](_0x15e207,z(_0x34670a['config'],_0x59dc5b)));}[_0x217dd1(0x1ef)](_0x1448e4,_0x5ba641){const _0x2c47c1=_0x217dd1;var _0x1d4feb,_0x568f60;let _0x5e66d2=this[_0x2c47c1(0x1b7)][_0x2c47c1(0x21f)](_0x1448e4);if(!_0x5e66d2||at(_0x5e66d2['presentation'],_0x5ba641))return;let _0x2d8042=_0x5e66d2[_0x2c47c1(0x231)],_0x19b738=B(_0x5e66d2);_0x5e66d2[_0x2c47c1(0x231)]=_0x5ba641,this['_presentationChanged$']['next']({'unitId':_0x5e66d2['unitId'],'rangeId':_0x5e66d2['rangeId'],'presentation':_0x5ba641,'previousPresentation':_0x2d8042,'result':B(_0x5e66d2),'previousResult':{..._0x19b738,..._0x2d8042,'value':(_0x1d4feb=_0x2d8042[_0x2c47c1(0x215)])==null?void 0x0:_0x1d4feb['v'],'valueType':((_0x568f60=_0x2d8042[_0x2c47c1(0x215)])==null?void 0x0:_0x568f60['t'])??void 0x0}});}['_deleteRegistration'](_0x55fa65){const _0x476df7=_0x217dd1;_0x55fa65[_0x476df7(0x207)]&&(this[_0x476df7(0x1be)]['deleteFormula'](_0x55fa65[_0x476df7(0x173)],_0x55fa65[_0x476df7(0x173)],[_0x55fa65[_0x476df7(0x207)]]),this[_0x476df7(0x22f)]['delete'](_0x55fa65[_0x476df7(0x207)]));}};L=I([F(0x0,_0x5e32df(P)),F(0x1,_0x5e32df(_0x51a6f6)),F(0x2,_0x5e32df(_0x506168))],L);function R(_0x18772e,_0x28f0f2){return _0x18772e+'\x00'+_0x28f0f2;}function z(_0x459b85,_0x3b34d1){const _0x3b3a83=_0x217dd1;return _0x27458f({'numberFormat':_0x459b85[_0x3b3a83(0x179)],'lastValue':_0x459b85[_0x3b3a83(0x1da)],'result':_0x3b34d1});}function B(_0x141c86){const _0x43b9f2=_0x217dd1;var _0x33f299,_0x1a2f7c,_0x5c9900;let _0x1ed6e2=_0x141c86[_0x43b9f2(0x231)],_0xad2909=_0x141c86[_0x43b9f2(0x1ba)][_0x43b9f2(0x1ab)][_0x43b9f2(0x1de)]()?_0x1ed6e2[_0x43b9f2(0x19c)]||_0x1ed6e2[_0x43b9f2(0x215)]==null?'pending':((_0x33f299=_0x141c86[_0x43b9f2(0x202)])==null?void 0x0:_0x33f299[_0x43b9f2(0x17b)])===_0x5815e0['ERROR']?_0x43b9f2(0x167):_0x43b9f2(0x20f):'empty';return{..._0x1ed6e2,'status':_0xad2909,'value':(_0x1a2f7c=_0x1ed6e2[_0x43b9f2(0x215)])==null?void 0x0:_0x1a2f7c['v'],'valueType':((_0x5c9900=_0x1ed6e2[_0x43b9f2(0x215)])==null?void 0x0:_0x5c9900['t'])??void 0x0};}function at(_0xe820e3,_0x41b29d){const _0x3376d6=_0x217dd1;var _0x3ee1d9,_0x547706,_0x401ee5,_0x1f132d;return _0xe820e3[_0x3376d6(0x201)]===_0x41b29d['text']&&_0xe820e3['color']===_0x41b29d[_0x3376d6(0x233)]&&_0xe820e3[_0x3376d6(0x228)]===_0x41b29d[_0x3376d6(0x228)]&&_0xe820e3[_0x3376d6(0x20a)]===_0x41b29d[_0x3376d6(0x20a)]&&_0xe820e3[_0x3376d6(0x19c)]===_0x41b29d[_0x3376d6(0x19c)]&&((_0x3ee1d9=_0xe820e3[_0x3376d6(0x215)])==null?void 0x0:_0x3ee1d9['t'])===((_0x547706=_0x41b29d[_0x3376d6(0x215)])==null?void 0x0:_0x547706['t'])&&Object['is']((_0x401ee5=_0xe820e3['cell'])==null?void 0x0:_0x401ee5['v'],(_0x1f132d=_0x41b29d[_0x3376d6(0x215)])==null?void 0x0:_0x1f132d['v']);}const ot={'id':'docs-formula.mutation.set-formula','type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x49cd6d,_0x18c1b7)=>!(_0x18c1b7!=null&&_0x18c1b7[_0x217dd1(0x173)])||!_0x18c1b7['rangeId']||!_0x18c1b7[_0x217dd1(0x1ba)]?!0x1:_0x49cd6d[_0x217dd1(0x21f)](P)[_0x217dd1(0x1db)](_0x18c1b7[_0x217dd1(0x173)],_0x18c1b7[_0x217dd1(0x141)],_0x18c1b7[_0x217dd1(0x1ba)])},st={'id':_0x217dd1(0x154),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x348999,_0xf1e64d)=>!(_0xf1e64d!=null&&_0xf1e64d['unitId'])||!_0xf1e64d['rangeId']?!0x1:_0x348999[_0x217dd1(0x21f)](P)[_0x217dd1(0x1bc)](_0xf1e64d['unitId'],_0xf1e64d[_0x217dd1(0x141)])},V={'id':_0x217dd1(0x168),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x478f0a,_0x431c74)=>!(_0x431c74!=null&&_0x431c74['unitId'])||!_0x431c74['resource']?!0x1:_0x478f0a['get'](P)[_0x217dd1(0x1bd)](_0x431c74[_0x217dd1(0x173)],_0x431c74[_0x217dd1(0x19f)])},H={'id':_0x217dd1(0x1ad),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x4fadbf,_0x268f37)=>{const _0x5efcfd=_0x217dd1;if(!(_0x268f37!=null&&_0x268f37[_0x5efcfd(0x173)])||!_0x268f37[_0x5efcfd(0x158)]['length'])return!0x1;let _0x316e60=_0x4fadbf['get'](P),_0x5e4d34=_0x4fadbf[_0x5efcfd(0x21f)](_0x506168),_0x552fe2=_0x316e60[_0x5efcfd(0x1fa)](_0x268f37[_0x5efcfd(0x173)]);if(!_0x552fe2)return!0x1;let _0x4608ac=_0x4b0aab[_0x5efcfd(0x1c3)](_0x552fe2),_0x2d48ac=!0x1;for(let _0x30beaf of _0x268f37[_0x5efcfd(0x158)]){var _0x436b9c,_0x153ba7,_0x139e1c,_0x9e0788;let _0x2e9c01=_0x4608ac[_0x5efcfd(0x1d7)][_0x30beaf[_0x5efcfd(0x141)]];_0x2e9c01&&_0x2e9c01[_0x5efcfd(0x1ab)]===_0x30beaf[_0x5efcfd(0x175)]&&((_0x436b9c=_0x2e9c01[_0x5efcfd(0x179)])==null?void 0x0:_0x436b9c[_0x5efcfd(0x228)])===_0x30beaf[_0x5efcfd(0x1f0)]&&_0x5e4d34[_0x5efcfd(0x22c)](_0x268f37['unitId'])===_0x30beaf[_0x5efcfd(0x17d)]&&(((_0x153ba7=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x153ba7['v'])!==_0x30beaf[_0x5efcfd(0x1da)]['v']||((_0x139e1c=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x139e1c['t'])!==_0x30beaf[_0x5efcfd(0x1da)]['t']||((_0x9e0788=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x9e0788[_0x5efcfd(0x228)])!==_0x30beaf['lastValue']['pattern'])&&(_0x2e9c01[_0x5efcfd(0x1da)]=_0x4b0aab[_0x5efcfd(0x1c3)](_0x30beaf[_0x5efcfd(0x1da)]),_0x2d48ac=!0x0);}return!_0x2d48ac||_0x316e60[_0x5efcfd(0x1bd)](_0x268f37[_0x5efcfd(0x173)],_0x4608ac);}},U={'id':_0x217dd1(0x238),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x1fba9b,_0x464972)=>{const _0x469fcd=_0x217dd1;if(!(_0x464972!=null&&_0x464972['formula'][_0x469fcd(0x1de)]()))return!0x1;let _0x229c5d=q(_0x1fba9b,_0x464972[_0x469fcd(0x173)],'');if(!_0x229c5d)return!0x1;let _0x12cb1c=ft(_0x464972[_0x469fcd(0x21a)],_0x229c5d[_0x469fcd(0x220)],dt(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)]));if(!_0x12cb1c)return!0x1;let _0x3a81a2=pt(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)],_0x464972[_0x469fcd(0x1ab)],_0x464972[_0x469fcd(0x204)]??[]);if(!_0x3a81a2)return!0x1;let _0x8c713e=mt(_0x229c5d['body'],_0x229c5d[_0x469fcd(0x23a)],_0x229c5d[_0x469fcd(0x173)]),_0x29ca7f=ht({'documentData':_0x229c5d[_0x469fcd(0x194)],'resource':_0x229c5d[_0x469fcd(0x19f)],'rangeId':_0x8c713e,'config':{'formula':_0x464972[_0x469fcd(0x1ab)],..._0x464972['numberFormat']?{'numberFormat':_0x464972[_0x469fcd(0x179)]}:null},'startOffset':_0x12cb1c[_0x469fcd(0x1c6)],'endOffset':_0x12cb1c[_0x469fcd(0x172)]});if(!_0x29ca7f)return!0x1;let _0x39d7eb=_0x41a736(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)],_0x3a81a2);return!_0x39d7eb||!J({'accessor':_0x1fba9b,'document':_0x229c5d['document'],'unitId':_0x229c5d['unitId'],'trigger':U['id'],'rangeId':_0x8c713e,'previousResource':_0x229c5d[_0x469fcd(0x19f)],'nextResource':_0x29ca7f[_0x469fcd(0x159)],'previousDocumentData':_0x229c5d['documentData'],'nextDocumentData':_0x29ca7f['nextDocumentData'],'cursorOffset':_0x29ca7f['cursorOffset'],'externalMutations':_0x39d7eb})?!0x1:{'rangeId':_0x8c713e,'startOffset':_0x29ca7f[_0x469fcd(0x1d2)]-0x1,'endOffset':_0x29ca7f[_0x469fcd(0x1d2)]};}},W={'id':_0x217dd1(0x1b3),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x4e6f81,_0x1f26cb)=>{const _0x36b63d=_0x217dd1;if(!(_0x1f26cb!=null&&_0x1f26cb['rangeId'])||!_0x1f26cb['formula'][_0x36b63d(0x1de)]())return!0x1;let _0x40727e=q(_0x4e6f81,_0x1f26cb[_0x36b63d(0x173)],''),_0x192b27=_0x40727e==null?void 0x0:_0x40727e['model'][_0x36b63d(0x213)](_0x40727e[_0x36b63d(0x173)],_0x1f26cb[_0x36b63d(0x141)]),_0x1952e7=_0x40727e?T(_0x40727e[_0x36b63d(0x194)][_0x36b63d(0x220)],_0x1f26cb['rangeId']):void 0x0;if(!_0x40727e||!_0x192b27||!_0x1952e7)return!0x1;let _0x32178c=pt(_0x4e6f81,_0x40727e['unitId'],_0x1f26cb[_0x36b63d(0x1ab)],_0x1f26cb['externalReferences']??[]);if(!_0x32178c)return!0x1;let _0x471594=_0x41a736(_0x4e6f81,_0x40727e[_0x36b63d(0x173)],_0x32178c);if(!_0x471594)return!0x1;let _0x14d5a1=Ct(_0x40727e[_0x36b63d(0x19f)]);return _0x14d5a1['formulas'][_0x1f26cb[_0x36b63d(0x141)]]={'formula':_0x1f26cb[_0x36b63d(0x1ab)],..._0x1f26cb[_0x36b63d(0x179)]?{'numberFormat':_0x1f26cb[_0x36b63d(0x179)]}:_0x192b27[_0x36b63d(0x179)]?{'numberFormat':_0x192b27[_0x36b63d(0x179)]}:null},J({'accessor':_0x4e6f81,'document':_0x40727e['document'],'unitId':_0x40727e[_0x36b63d(0x173)],'trigger':W['id'],'rangeId':_0x1f26cb[_0x36b63d(0x141)],'previousResource':_0x40727e[_0x36b63d(0x19f)],'nextResource':_0x14d5a1,'cursorOffset':_0x1952e7[_0x36b63d(0x1fc)]+0x1,'externalMutations':_0x471594});}},G={'id':'docs-formula.command.set-number-format','type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x3db119,_0xdc2de0)=>{const _0x2b584b=_0x217dd1;if(!(_0xdc2de0!=null&&_0xdc2de0[_0x2b584b(0x141)]))return!0x1;let _0x4f65f0=q(_0x3db119,_0xdc2de0[_0x2b584b(0x173)],''),_0x1d0900=_0x4f65f0==null?void 0x0:_0x4f65f0['model'][_0x2b584b(0x213)](_0x4f65f0['unitId'],_0xdc2de0[_0x2b584b(0x141)]),_0x44e61d=_0x4f65f0?T(_0x4f65f0[_0x2b584b(0x194)][_0x2b584b(0x220)],_0xdc2de0[_0x2b584b(0x141)]):void 0x0;if(!_0x4f65f0||!_0x1d0900||!_0x44e61d)return!0x1;let _0x1017d6=Ct(_0x4f65f0['resource']);return _0x1017d6[_0x2b584b(0x1d7)][_0xdc2de0[_0x2b584b(0x141)]]={..._0x1d0900,..._0xdc2de0['numberFormat']?{'numberFormat':_0xdc2de0[_0x2b584b(0x179)]}:null},_0xdc2de0[_0x2b584b(0x179)]||delete _0x1017d6['formulas'][_0xdc2de0[_0x2b584b(0x141)]][_0x2b584b(0x179)],J({'accessor':_0x3db119,'document':_0x4f65f0[_0x2b584b(0x211)],'unitId':_0x4f65f0[_0x2b584b(0x173)],'trigger':G['id'],'rangeId':_0xdc2de0[_0x2b584b(0x141)],'previousResource':_0x4f65f0[_0x2b584b(0x19f)],'nextResource':_0x1017d6,'cursorOffset':_0x44e61d['endIndex']+0x1,'externalMutations':{}});}},K={'id':_0x217dd1(0x1dd),'type':_0x5f1099['COMMAND'],'handler':(_0x22cdf3,_0xec8d54)=>ut(_0x22cdf3,_0xec8d54,'',K['id'])},ct={'id':_0x217dd1(0x1aa),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x48d800,_0x3d2569)=>ut(_0x48d800,_0x3d2569,(_0x3d2569==null?void 0x0:_0x3d2569[_0x217dd1(0x201)])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x51c21b,_0x57372a)=>{const _0x227a9e=_0x217dd1;if(!(_0x57372a!=null&&_0x57372a[_0x227a9e(0x141)]))return!0x1;let _0x2271ea=q(_0x51c21b,_0x57372a[_0x227a9e(0x173)],'');if(!_0x2271ea)return!0x1;let _0x46213e=_0x51c21b['get'](L)[_0x227a9e(0x23c)]({'unitId':_0x2271ea[_0x227a9e(0x173)],'rangeId':_0x57372a[_0x227a9e(0x141)]});return _0x46213e?ut(_0x51c21b,_0x57372a,_0x46213e[_0x227a9e(0x201)],lt['id']):!0x1;}};function ut(_0xc3b228,_0xab10db,_0xd7d583,_0x3bc059){const _0x2e0167=_0x217dd1;if(!(_0xab10db!=null&&_0xab10db[_0x2e0167(0x141)]))return!0x1;let _0x5ccbaf=q(_0xc3b228,_0xab10db['unitId'],'');if(!_0x5ccbaf)return!0x1;let _0x182d1b=Be({'documentData':_0x5ccbaf[_0x2e0167(0x194)],'resource':_0x5ccbaf[_0x2e0167(0x19f)],'rangeId':_0xab10db[_0x2e0167(0x141)],'text':_0xd7d583});return _0x182d1b?J({'accessor':_0xc3b228,'document':_0x5ccbaf['document'],'unitId':_0x5ccbaf[_0x2e0167(0x173)],'trigger':_0x3bc059,'rangeId':_0xab10db[_0x2e0167(0x141)],'previousResource':_0x5ccbaf[_0x2e0167(0x19f)],'nextResource':_0x182d1b[_0x2e0167(0x159)],'previousDocumentData':_0x5ccbaf[_0x2e0167(0x194)],'nextDocumentData':_0x182d1b[_0x2e0167(0x1f6)],'cursorOffset':_0x182d1b[_0x2e0167(0x1d2)],'externalMutations':{}}):!0x1;}function q(_0x231c7d,_0x162016,_0x4f1995){const _0x2302a7=_0x217dd1;if(_0x4f1995)return null;let _0x465657=_0x231c7d['get'](_0x147b46),_0x288d4a=(_0x162016?_0x465657['getUnit'](_0x162016,_0x138c8e['UNIVER_DOC']):_0x465657[_0x2302a7(0x1af)](_0x138c8e[_0x2302a7(0x17f)]))??null;if(!_0x288d4a)return null;let _0x8bae47=_0x288d4a['getSnapshot'](),_0x354ddc=_0x8bae47[_0x2302a7(0x220)];if(_0x8bae47[_0x2302a7(0x1c1)]||!_0x354ddc)return null;let _0x1a5c62=_0x231c7d[_0x2302a7(0x21f)](P);return _0x1a5c62['getLoadError'](_0x288d4a[_0x2302a7(0x18f)]())?null:{'document':_0x288d4a,'body':_0x354ddc,'documentData':_0x8bae47,'model':_0x1a5c62,'resource':_0x1a5c62[_0x2302a7(0x1fa)](_0x288d4a[_0x2302a7(0x18f)]())??b(),'unitId':_0x288d4a['getUnitId']()};}function dt(_0x36ca56,_0x2c5267){const _0x5ad5db=_0x217dd1;var _0x2ac5ac;return(_0x2ac5ac=_0x36ca56[_0x5ad5db(0x21f)](_0x3e1e55)['getTextRanges']({'subUnitId':_0x2c5267,'unitId':_0x2c5267}))==null?void 0x0:_0x2ac5ac[0x0];}function ft(_0x162316,_0x4065b0,_0x417eb6){const _0x7ac5b7=_0x217dd1;if((_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x15e)){var _0x59cf6d;let _0x37e37f=((_0x59cf6d=_0x4065b0[_0x7ac5b7(0x18c)])==null?void 0x0:_0x59cf6d[_0x7ac5b7(0x1a5)](_0x12e31c=>_0x12e31c[_0x7ac5b7(0x230)]===_0x162316[_0x7ac5b7(0x230)]))??[];if(_0x37e37f[_0x7ac5b7(0x171)]!==0x1)return null;let _0x28e1c5=_0x37e37f[0x0],_0x428d4d=_0x480edf(_0x4065b0,_0x28e1c5),_0x51ca3a=_0x28e1c5['startIndex']-_0x428d4d,_0x569bbc=_0x162316[_0x7ac5b7(0x161)]==='end'?_0x51ca3a:_0x162316[_0x7ac5b7(0x161)];if(!Number[_0x7ac5b7(0x14a)](_0x569bbc)||_0x569bbc<0x0||_0x569bbc>_0x51ca3a)return null;let _0x4dc413=_0x428d4d+_0x569bbc;return{'startOffset':_0x4dc413,'endOffset':_0x4dc413};}if((_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x203))return!Number['isInteger'](_0x162316[_0x7ac5b7(0x1c6)])||!Number['isInteger'](_0x162316[_0x7ac5b7(0x172)])?null:{'startOffset':Math[_0x7ac5b7(0x197)](_0x162316[_0x7ac5b7(0x1c6)],_0x162316[_0x7ac5b7(0x172)]),'endOffset':Math[_0x7ac5b7(0x14c)](_0x162316[_0x7ac5b7(0x1c6)],_0x162316[_0x7ac5b7(0x172)])};let _0x4c53e7=(_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x1bf)?_0x162316[_0x7ac5b7(0x1bf)]:_0x417eb6;return!_0x4c53e7||_0x4c53e7[_0x7ac5b7(0x1a4)]?null:{'startOffset':Math[_0x7ac5b7(0x197)](_0x4c53e7[_0x7ac5b7(0x1c6)],_0x4c53e7['endOffset']),'endOffset':Math[_0x7ac5b7(0x14c)](_0x4c53e7['startOffset'],_0x4c53e7[_0x7ac5b7(0x172)])};}function pt(_0x4abf9e,_0x3e2fb5,_0x360d04,_0x281269){const _0x529894=_0x217dd1;let _0x3d4ca6=_0x4abf9e[_0x529894(0x21f)](_0x3a97e6),_0x1d0b5d=_0x360d04[_0x529894(0x1b5)]('=')?_0x360d04[_0x529894(0x15f)](0x1):_0x360d04,_0x36a637=_0x3d4ca6['sequenceNodesBuilder'](_0x1d0b5d);if(!_0x36a637)return null;let _0x8fa8a6=_0x4abf9e[_0x529894(0x21f)](_0x506168),_0x3921f7=_0x4805eb({'qualifiers':_0x7f61b(_0x36a637),'explicitReferences':_0x281269??[],'resolveBinding':_0x366cb6=>_0x8fa8a6[_0x529894(0x19e)](_0x3e2fb5,_0x366cb6)});return _0x3921f7[_0x529894(0x17b)]===_0x529894(0x180)?_0x3921f7[_0x529894(0x17a)]:null;}function mt(_0x51fba5,_0x35c5fd,_0x38511f){const _0xf5248=_0x217dd1;var _0x28146e;let _0x4cc709=_0x25429d(0x6);for(;_0x51fba5!=null&&(_0x28146e=_0x51fba5[_0xf5248(0x210)])!=null&&_0x28146e[_0xf5248(0x196)](_0x1893ff=>_0x1893ff[_0xf5248(0x141)]===_0x4cc709)||_0x35c5fd[_0xf5248(0x213)](_0x38511f,_0x4cc709);)_0x4cc709=_0x25429d(0x6);return _0x4cc709;}function ht(_0x53242e){try{return Re(_0x53242e);}catch(_0x32047a){if(_0x32047a instanceof C)return null;throw _0x32047a;}}function gt(_0x5ecc5e){const _0x1a0c03=_0x217dd1;let _0x577fe7=_0x5ecc5e[_0x1a0c03(0x152)]&&_0x5ecc5e['nextDocumentData']?vt(_0x5ecc5e[_0x1a0c03(0x211)],_0x5ecc5e[_0x1a0c03(0x173)],_0x5ecc5e['previousDocumentData'],_0x5ecc5e[_0x1a0c03(0x1f6)],_0x5ecc5e[_0x1a0c03(0x1d2)],_0x5ecc5e[_0x1a0c03(0x14b)]):null;return _0x5ecc5e[_0x1a0c03(0x152)]&&_0x5ecc5e[_0x1a0c03(0x1f6)]&&!_0x577fe7?null:{'documentRedo':_0x577fe7,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x5ecc5e[_0x1a0c03(0x173)],'resource':_0x5ecc5e[_0x1a0c03(0x159)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x5ecc5e[_0x1a0c03(0x173)],'resource':_0x5ecc5e[_0x1a0c03(0x142)]}}};}function _t(_0x9e71fd,_0x515445,_0x1d62d5,_0x4959d0){const _0x426dbf=_0x217dd1;_0x4959d0[_0x426dbf(0x151)]({'id':_0x9e71fd[_0x426dbf(0x14b)]+':'+_0x9e71fd[_0x426dbf(0x141)],'unitID':_0x9e71fd[_0x426dbf(0x173)],'redoMutations':[..._0x9e71fd['externalMutations'][_0x426dbf(0x16a)]?[_0x9e71fd['externalMutations'][_0x426dbf(0x16a)]]:[],..._0x515445[_0x426dbf(0x18d)]?[_0x515445[_0x426dbf(0x18d)]]:[],_0x515445['resourceRedo']],'undoMutations':[_0x515445['resourceUndo'],..._0x1d62d5?[_0x1d62d5]:[],..._0x9e71fd['externalMutations'][_0x426dbf(0x1a8)]?[_0x9e71fd[_0x426dbf(0x15b)][_0x426dbf(0x1a8)]]:[]]});}function J(_0x1f5cab){const _0x6ef4da=_0x217dd1;let _0x3d5518=_0x1f5cab[_0x6ef4da(0x219)][_0x6ef4da(0x21f)](_0x41c106),_0x47de34=_0x1f5cab[_0x6ef4da(0x219)][_0x6ef4da(0x21f)](_0xe640ba),_0x2e906d=_0x1f5cab['accessor'][_0x6ef4da(0x21f)](_0x3e1e55),_0x242dee=gt(_0x1f5cab);if(!_0x242dee)return!0x1;let _0x89a549=!0x1,_0x8193fd=null,_0x4a3ad3=!0x1;try{if(_0x1f5cab['externalMutations']['redoMutation']){if(!_0x3d5518[_0x6ef4da(0x170)](_0x1f5cab[_0x6ef4da(0x15b)][_0x6ef4da(0x16a)]['id'],_0x1f5cab[_0x6ef4da(0x15b)]['redoMutation']['params']))return!0x1;_0x89a549=!0x0;}if(_0x242dee['documentRedo']){let _0x3b918c=_0x3d5518[_0x6ef4da(0x170)](_0x242dee[_0x6ef4da(0x18d)]['id'],_0x242dee[_0x6ef4da(0x18d)]['params']);if(!_0x3b918c)return bt(_0x3d5518,_0x1f5cab[_0x6ef4da(0x15b)],_0x89a549),!0x1;_0x8193fd={'id':_0x2dc975['id'],'params':{..._0x3b918c,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3d5518['syncExecuteCommand'](_0x242dee['resourceRedo']['id'],_0x242dee[_0x6ef4da(0x1cc)][_0x6ef4da(0x198)]))return yt(_0x3d5518,_0x8193fd),bt(_0x3d5518,_0x1f5cab[_0x6ef4da(0x15b)],_0x89a549),!0x1;_0x4a3ad3=!0x0,_t(_0x1f5cab,_0x242dee,_0x8193fd,_0x47de34);}catch(_0x2ae161){throw _0x4a3ad3&&_0x3d5518[_0x6ef4da(0x170)](_0x242dee[_0x6ef4da(0x187)]['id'],_0x242dee[_0x6ef4da(0x187)][_0x6ef4da(0x198)]),yt(_0x3d5518,_0x8193fd),bt(_0x3d5518,_0x1f5cab['externalMutations'],_0x89a549),_0x2ae161;}return _0x2e906d[_0x6ef4da(0x1d0)]([{'startOffset':_0x1f5cab[_0x6ef4da(0x1d2)],'endOffset':_0x1f5cab['cursorOffset'],'segmentId':''}],{'unitId':_0x1f5cab[_0x6ef4da(0x173)],'subUnitId':_0x1f5cab['unitId']},!0x1,{[_0x173f0a]:!0x0}),!0x0;}function vt(_0x2be42c,_0x38a912,_0x11c169,_0x26e643,_0x29eae8,_0x586681){let _0x4782ba=xt(_0x11c169,_0x26e643,_0x2ed637(_0x2be42c,''));return _0x4782ba?{'id':_0x2dc975['id'],'params':{'unitId':_0x38a912,'actions':_0x4782ba,'segmentId':'','textRanges':[{'startOffset':_0x29eae8,'endOffset':_0x29eae8,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x586681}}:null;}function yt(_0x51be1e,_0x2912cb){const _0x3de5b3=_0x217dd1;_0x2912cb&&_0x51be1e[_0x3de5b3(0x170)](_0x2912cb['id'],_0x2912cb[_0x3de5b3(0x198)]);}function bt(_0x1fe2ff,_0x14ec56,_0x1fba62){const _0xf63ce=_0x217dd1;_0x1fba62&&_0x14ec56[_0xf63ce(0x1a8)]&&_0x1fe2ff[_0xf63ce(0x170)](_0x14ec56['undoMutation']['id'],_0x14ec56['undoMutation']['params']);}function xt(_0x52e1aa,_0x1070a5,_0x58a1f4){const _0x22e9fe=_0x217dd1;let _0x4e106a=_0x52e1aa[_0x22e9fe(0x220)],_0x358ee7=_0x1070a5['body'],_0x43a1ae=St(_0x4e106a==null?void 0x0:_0x4e106a['dataStream'],_0x358ee7==null?void 0x0:_0x358ee7[_0x22e9fe(0x153)]);if(!_0x43a1ae||!_0x358ee7)return null;let _0x9c6f50=new _0x52174a();return _0x9c6f50['retain'](_0x43a1ae['start']),_0x43a1ae[_0x22e9fe(0x1f9)]>0x0&&_0x9c6f50[_0x22e9fe(0x239)](_0x43a1ae[_0x22e9fe(0x1f9)],_0x252b2a(_0x358ee7,_0x43a1ae[_0x22e9fe(0x1a0)],_0x43a1ae[_0x22e9fe(0x1a0)]+_0x43a1ae['insertLength'],!0x1)),_0x43a1ae['deleteLength']>0x0&&_0x9c6f50[_0x22e9fe(0x1bb)](_0x43a1ae['deleteLength']),_0x267617[_0x22e9fe(0x17e)]()['editOp'](_0x9c6f50['serialize'](),_0x58a1f4);}function St(_0x3bda0e,_0xea8adb){const _0x1ccf97=_0x217dd1;if(_0x3bda0e==null||_0xea8adb==null||_0x3bda0e===_0xea8adb)return null;let _0x459067=0x0;for(;_0x459067<_0x3bda0e[_0x1ccf97(0x171)]&&_0x459067<_0xea8adb[_0x1ccf97(0x171)]&&_0x3bda0e[_0x459067]===_0xea8adb[_0x459067];)_0x459067+=0x1;let _0x25635e=_0x3bda0e[_0x1ccf97(0x171)],_0x69166a=_0xea8adb[_0x1ccf97(0x171)];for(;_0x25635e>_0x459067&&_0x69166a>_0x459067&&_0x3bda0e[_0x25635e-0x1]===_0xea8adb[_0x69166a-0x1];)--_0x25635e,--_0x69166a;return{'start':_0x459067,'deleteLength':_0x25635e-_0x459067,'insertLength':_0x69166a-_0x459067};}function Ct(_0x13e995){const _0x4bfcc2=_0x217dd1;return{'schemaVersion':0x1,'formulas':Object[_0x4bfcc2(0x225)](Object[_0x4bfcc2(0x183)](_0x13e995['formulas'])[_0x4bfcc2(0x164)](([_0x3cc414,_0x56caf2])=>[_0x3cc414,{..._0x56caf2,..._0x56caf2[_0x4bfcc2(0x179)]?{'numberFormat':{..._0x56caf2[_0x4bfcc2(0x179)]}}:null,..._0x56caf2[_0x4bfcc2(0x1da)]?{'lastValue':{..._0x56caf2[_0x4bfcc2(0x1da)]}}:null}]))};}let Y=class extends _0x18377d{constructor(_0x34e44e,_0x1dd4ab,_0x4f58af,_0x48cbd1){const _0x2a5abf=_0x217dd1;super(),this['_instanceService']=_0x34e44e,this[_0x2a5abf(0x1cf)]=_0x1dd4ab,this[_0x2a5abf(0x235)]=_0x4f58af,this[_0x2a5abf(0x1fb)]=_0x48cbd1,N(this,_0x2a5abf(0x1ee),new Set()),N(this,_0x2a5abf(0x189),!0x1),N(this,_0x2a5abf(0x229),!0x1),this[_0x2a5abf(0x162)][_0x2a5abf(0x147)](_0x138c8e[_0x2a5abf(0x17f)])[_0x2a5abf(0x1b2)](_0x519d67=>this[_0x2a5abf(0x1fb)][_0x2a5abf(0x1f1)](_0x519d67)),this['disposeWithMe'](this[_0x2a5abf(0x235)][_0x2a5abf(0x221)][_0x2a5abf(0x1ca)](({unitId:_0x5e642e})=>this[_0x2a5abf(0x1ff)](_0x5e642e))),this[_0x2a5abf(0x144)](this['_instanceService']['unitAdded$'][_0x2a5abf(0x1ca)](({unit:_0x453977})=>{const _0x5adab8=_0x2a5abf;_0x453977[_0x5adab8(0x1fe)]===_0x138c8e[_0x5adab8(0x17f)]&&this[_0x5adab8(0x184)](_0x453977['getUnitId']());})),this[_0x2a5abf(0x144)](this[_0x2a5abf(0x162)][_0x2a5abf(0x165)][_0x2a5abf(0x1ca)](_0x473bc1=>{const _0x4c5b09=_0x2a5abf;this[_0x4c5b09(0x1fb)][_0x4c5b09(0x17c)](_0x473bc1[_0x4c5b09(0x18f)]());})),this[_0x2a5abf(0x144)](this[_0x2a5abf(0x1cf)][_0x2a5abf(0x1ec)](_0x3dc0fa=>{const _0x2b81db=_0x2a5abf;if(_0x3dc0fa['id']===_0x2dc975['id']&&wt(_0x3dc0fa[_0x2b81db(0x198)])){let _0x1112e9=_0x3dc0fa['params'];_0x1112e9[_0x2b81db(0x1a4)]||this[_0x2b81db(0x1ff)](_0x1112e9[_0x2b81db(0x173)]);}}));}[_0x217dd1(0x15c)](){const _0x233b29=_0x217dd1;this[_0x233b29(0x229)]=!0x0,super[_0x233b29(0x15c)]();}[_0x217dd1(0x184)](_0x3ccb93){const _0x6117f8=_0x217dd1;this[_0x6117f8(0x1ee)][_0x6117f8(0x1e2)](_0x3ccb93),!this[_0x6117f8(0x189)]&&(this[_0x6117f8(0x189)]=!0x0,queueMicrotask(()=>{const _0x374227=_0x6117f8;if(this[_0x374227(0x189)]=!0x1,this[_0x374227(0x229)])return;let _0x543600=Array[_0x374227(0x15a)](this['_pendingUnitIds']);this[_0x374227(0x1ee)][_0x374227(0x21d)](),_0x543600['forEach'](_0x4f0e70=>this[_0x374227(0x1ff)](_0x4f0e70));}));}['_syncUnit'](_0xf760cc){const _0x48a762=_0x217dd1;let _0x5950f7=this['_instanceService'][_0x48a762(0x16c)](_0xf760cc,_0x138c8e['UNIVER_DOC']);_0x5950f7&&this[_0x48a762(0x1fb)][_0x48a762(0x1f1)](_0x5950f7);}};Y=I([F(0x0,_0x147b46),F(0x1,_0x41c106),F(0x2,_0x5e32df(P)),F(0x3,_0x5e32df(L))],Y);function wt(_0x197089){const _0x5d4dd7=_0x217dd1;return typeof _0x197089==_0x5d4dd7(0x1ea)&&!!_0x197089&&_0x5d4dd7(0x173)in _0x197089&&typeof _0x197089[_0x5d4dd7(0x173)]==_0x5d4dd7(0x22e)&&(!(_0x5d4dd7(0x1a4)in _0x197089)||_0x197089['segmentId']===void 0x0||typeof _0x197089[_0x5d4dd7(0x1a4)]==_0x5d4dd7(0x22e));}let X=class extends _0x18377d{constructor(_0x3ffb79,_0x5e3616){const _0x39df9a=_0x217dd1;super(),this[_0x39df9a(0x1ed)]=_0x3ffb79,this[_0x39df9a(0x18e)]=_0x5e3616,this[_0x39df9a(0x144)](this['_resourceManagerService'][_0x39df9a(0x218)]({'pluginName':y,'businesses':[_0x138c8e[_0x39df9a(0x17f)]],'toJson':_0x307fe0=>JSON['stringify'](this[_0x39df9a(0x18e)][_0x39df9a(0x1cb)](_0x307fe0)),'parseJson':_0x3013ba=>JSON[_0x39df9a(0x21e)](_0x3013ba),'onLoad':(_0x25bd54,_0x1b7f1b)=>{const _0x513c58=_0x39df9a;this[_0x513c58(0x18e)][_0x513c58(0x1f8)](_0x25bd54,_0x1b7f1b);},'onUnLoad':_0x489680=>this['_docFormulaModel'][_0x39df9a(0x193)](_0x489680)}));}};X=I([F(0x0,_0x2d200b),F(0x1,_0x5e32df(P))],X);var Tt=_0x217dd1(0x1a2),Et=_0x217dd1(0x232);const Dt={};let Z=class extends _0x18377d{constructor(_0x354703,_0x896f11,_0x154eb8){const _0x5621fa=_0x217dd1;super(),this['_univerInstanceService']=_0x354703,this[_0x5621fa(0x1e4)]=_0x896f11,this[_0x5621fa(0x144)](_0x154eb8[_0x5621fa(0x1e3)]({'resolve':(_0x3579e5,_0x33487f)=>{const _0x4f3b91=_0x5621fa;var _0x146552;return((_0x146552=_0x33487f[_0x4f3b91(0x210)])==null?void 0x0:_0x146552['filter'](w)[_0x4f3b91(0x164)](_0x1f40f4=>({'startOffset':_0x1f40f4['startIndex'],'endOffset':_0x1f40f4[_0x4f3b91(0x1fc)]+0x1,'text':this[_0x4f3b91(0x1e6)](_0x3579e5,_0x1f40f4[_0x4f3b91(0x141)])})))??[];}})),this['disposeWithMe'](this[_0x5621fa(0x1e4)][_0x5621fa(0x22a)][_0x5621fa(0x1ca)](({unitId:_0x206576})=>{const _0x39b4af=_0x5621fa;_0x154eb8[_0x39b4af(0x149)](_0x206576);}));}[_0x217dd1(0x1e6)](_0x571e3b,_0x53fa09){const _0x18ff6e=_0x217dd1;var _0x7c7ee9;return((_0x7c7ee9=this[_0x18ff6e(0x1e4)]['getResult']({'unitId':_0x571e3b,'rangeId':_0x53fa09}))==null?void 0x0:_0x7c7ee9[_0x18ff6e(0x201)])??'';}[_0x217dd1(0x1d1)](_0xbbd049,_0xdd5fd3,_0x5f1a82){const _0x32e49d=_0x217dd1;var _0x371394;let _0x434ec2=this['_univerInstanceService'][_0x32e49d(0x16c)](_0xbbd049,_0x138c8e[_0x32e49d(0x17f)]),_0x89cec4=_0x434ec2==null?void 0x0:_0x434ec2['getBody']();if(!_0x89cec4)return'';let _0x570218=_0x89cec4[_0x32e49d(0x153)][_0x32e49d(0x15f)](_0xdd5fd3,_0x5f1a82),_0x1dce36=((_0x371394=_0x89cec4['customRanges'])==null?void 0x0:_0x371394[_0x32e49d(0x1a5)](_0x2d16e2=>w(_0x2d16e2)&&_0x2d16e2[_0x32e49d(0x1e7)]>=_0xdd5fd3&&_0x2d16e2['endIndex']<_0x5f1a82)[_0x32e49d(0x1b9)]((_0x3f2769,_0x315471)=>_0x315471[_0x32e49d(0x1e7)]-_0x3f2769[_0x32e49d(0x1e7)]))??[];for(let _0x1104f8 of _0x1dce36){let _0x7af921=_0x1104f8['startIndex']-_0xdd5fd3,_0x1d6b27=_0x1104f8[_0x32e49d(0x1fc)]-_0xdd5fd3+0x1;_0x570218=''+_0x570218[_0x32e49d(0x15f)](0x0,_0x7af921)+this[_0x32e49d(0x1e6)](_0xbbd049,_0x1104f8[_0x32e49d(0x141)])+_0x570218[_0x32e49d(0x15f)](_0x1d6b27);}return _0x570218;}['degradeDocumentData'](_0x25a2de){return Ot(_0x25a2de);}[_0x217dd1(0x22b)](_0x23bae8,_0x1180ff,_0x153998={}){const _0x4e79d5=_0x217dd1;var _0x32fe0a;return Ve({'id':_0x23bae8,'body':_0x1180ff,'documentStyle':{}},(((_0x32fe0a=_0x1180ff[_0x4e79d5(0x210)])==null?void 0x0:_0x32fe0a[_0x4e79d5(0x1a5)](w))??[])[_0x4e79d5(0x164)](_0x4c786e=>({'rangeId':_0x4c786e[_0x4e79d5(0x141)],'text':_0x153998[_0x4c786e['rangeId']]??this[_0x4e79d5(0x1e6)](_0x23bae8,_0x4c786e[_0x4e79d5(0x141)])})))[_0x4e79d5(0x220)]??{'dataStream':''};}};Z=I([F(0x0,_0x147b46),F(0x1,_0x5e32df(L)),F(0x2,_0x5e32df(_0xbd430a))],Z);function Ot(_0x350b18){const _0x18860e=_0x217dd1;var _0x38873c,_0x508833;let _0x46aaf6=kt(_0x350b18),_0x3997c7=Ve(_0x350b18,(((_0x38873c=_0x350b18[_0x18860e(0x220)])==null||(_0x38873c=_0x38873c['customRanges'])==null?void 0x0:_0x38873c[_0x18860e(0x1a5)](w))??[])[_0x18860e(0x164)](_0x43a8d3=>({'rangeId':_0x43a8d3['rangeId'],'text':At(_0x46aaf6==null?void 0x0:_0x46aaf6[_0x18860e(0x1d7)][_0x43a8d3[_0x18860e(0x141)]])})));return _0x3997c7[_0x18860e(0x192)]=(_0x508833=_0x3997c7['resources'])==null?void 0x0:_0x508833['filter'](_0x2d81ca=>_0x2d81ca[_0x18860e(0x199)]!==y),_0x3997c7;}function kt(_0x52951a){const _0x27c6bc=_0x217dd1;var _0x4d71d5;let _0x29ce75=(_0x4d71d5=_0x52951a[_0x27c6bc(0x192)])==null||(_0x4d71d5=_0x4d71d5[_0x27c6bc(0x174)](_0x3300bd=>_0x3300bd['name']===_0x27c6bc(0x156)))==null?void 0x0:_0x4d71d5[_0x27c6bc(0x181)];if(_0x29ce75)try{let _0x5dc692=JSON['parse'](_0x29ce75);return x(_0x5dc692)?_0x5dc692:void 0x0;}catch{return;}}function At(_0x4438fc){const _0xe8ed7b=_0x217dd1;return _0x4438fc?_0x27458f({'lastValue':_0x4438fc[_0xe8ed7b(0x1da)],'numberFormat':_0x4438fc[_0xe8ed7b(0x179)]})[_0xe8ed7b(0x201)]:'';}let Q=class extends _0x18377d{constructor(_0x512f01,_0x14f8b2,_0x45e783){const _0x28d510=_0x217dd1;super(),this[_0x28d510(0x1e4)]=_0x512f01,this['_cacheEligibilityService']=_0x14f8b2,this[_0x28d510(0x144)](_0x45e783[_0x28d510(0x209)](this));}['collectMutations'](_0x24e167){const _0x12c09f=_0x217dd1;let _0x1ce1cd=new Map();for(let _0xc024ef of this[_0x12c09f(0x1e4)][_0x12c09f(0x205)]()){var _0xcad0ea;if(!this[_0x12c09f(0x16b)][_0x12c09f(0x14f)](_0xc024ef['config'][_0x12c09f(0x1ab)],_0xc024ef[_0x12c09f(0x202)])[_0x12c09f(0x21c)])continue;let _0x53e971=_0x2973cb(_0xc024ef[_0x12c09f(0x202)]),_0x23d02e=_0x53e971?_0x1b8769(_0x53e971):null;if(!_0x23d02e||jt(_0xc024ef[_0x12c09f(0x1ba)][_0x12c09f(0x1da)],_0x23d02e))continue;let _0x4e97dc=_0x1ce1cd[_0x12c09f(0x21f)](_0xc024ef[_0x12c09f(0x1c8)][_0x12c09f(0x173)])??[];_0x4e97dc[_0x12c09f(0x23b)]({'rangeId':_0xc024ef[_0x12c09f(0x1c8)]['rangeId'],'expectedFormula':_0xc024ef[_0x12c09f(0x1ba)]['formula'],'expectedNumberFormat':(_0xcad0ea=_0xc024ef['config'][_0x12c09f(0x179)])==null?void 0x0:_0xcad0ea[_0x12c09f(0x228)],'expectedReferenceRevision':_0xc024ef[_0x12c09f(0x1c9)],'lastValue':_0x23d02e}),_0x1ce1cd[_0x12c09f(0x1a1)](_0xc024ef[_0x12c09f(0x1c8)][_0x12c09f(0x173)],_0x4e97dc);}return Array[_0x12c09f(0x15a)](_0x1ce1cd,([_0x4ce7fd,_0x511e9b])=>({'id':H['id'],'params':{'unitId':_0x4ce7fd,'updates':_0x511e9b}}));}};Q=I([F(0x0,_0x5e32df(L)),F(0x1,_0x5e32df(_0x4f9c1c)),F(0x2,_0x5e32df(_0x12a840))],Q);function _0x28ce(_0x19524e,_0x1a7892){_0x19524e=_0x19524e-0x140;const _0x2a6feb=_0x2a6f();let _0x28cee0=_0x2a6feb[_0x19524e];return _0x28cee0;}function jt(_0x18f5ca,_0x1ee31e){const _0x3acddf=_0x217dd1;return(_0x18f5ca==null?void 0x0:_0x18f5ca['v'])===_0x1ee31e['v']&&(_0x18f5ca==null?void 0x0:_0x18f5ca['t'])===_0x1ee31e['t']&&(_0x18f5ca==null?void 0x0:_0x18f5ca['pattern'])===_0x1ee31e[_0x3acddf(0x228)];}let $=class extends _0x2b73e4{constructor(_0x262881=Dt,_0x3acb9a,_0x3821a4,_0xca9cb2){const _0x69240f=_0x217dd1;super(),this[_0x69240f(0x208)]=_0x262881,this[_0x69240f(0x14e)]=_0x3acb9a,this[_0x69240f(0x1cf)]=_0x3821a4,this[_0x69240f(0x1dc)]=_0xca9cb2;let {..._0x2e27c2}=_0x59447c({},Dt,this[_0x69240f(0x208)]);this[_0x69240f(0x1dc)][_0x69240f(0x1e9)](_0x69240f(0x177),_0x2e27c2);}[_0x217dd1(0x1e0)](){const _0x492f94=_0x217dd1;this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([P]),this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([L]),this['_injector'][_0x492f94(0x1e2)]([X]),this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([Y]),this['_injector']['add']([Q]),this['_injector'][_0x492f94(0x1e2)]([Z]),_0x53385a(this[_0x492f94(0x14e)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x492f94(0x1b2)](_0x155fbf=>this[_0x492f94(0x144)](this['_commandService'][_0x492f94(0x1a7)](_0x155fbf)));}};N($,_0x217dd1(0x20c),y),N($,_0x217dd1(0x1c0),Tt),N($,'version',Et),N($,_0x217dd1(0x1fe),_0x138c8e[_0x217dd1(0x17f)]),$=I([_0x4eb3b4(_0x3855ef,_0x5bf116,_0x50ecdf),F(0x1,_0x5e32df(_0x11059a)),F(0x2,_0x41c106),F(0x3,_0x35fc54)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x43e278=_0x32db;(function(_0x4072a8,_0x5c7423){var _0x27c94b=_0x32db,_0x12e726=_0x4072a8();while(!![]){try{var _0x534714=parseInt(_0x27c94b(0x17a))/0x1*(parseInt(_0x27c94b(0x190))/0x2)+parseInt(_0x27c94b(0x188))/0x3+parseInt(_0x27c94b(0x1ae))/0x4+-parseInt(_0x27c94b(0x1a4))/0x5+-parseInt(_0x27c94b(0x163))/0x6*(parseInt(_0x27c94b(0x195))/0x7)+parseInt(_0x27c94b(0x17d))/0x8+-parseInt(_0x27c94b(0x17c))/0x9*(parseInt(_0x27c94b(0x1a7))/0xa);if(_0x534714===_0x5c7423)break;else _0x12e726['push'](_0x12e726['shift']());}catch(_0x2ecb5e){_0x12e726['push'](_0x12e726['shift']());}}}(_0x5b6c,0x838c4));import{ConvertDocFormulaToTextCommand as _0x334f28,DocFormulaDisplayTextService as _0x29119a,DocFormulaModel as _0x352050,DocFormulaService as _0x285cca,InsertDocFormulaCommand as _0x4cef27,RemoveDocFormulaCommand as _0x280b1f,ReplaceDocFormulaWithTextCommand as _0x223a60,SetDocFormulaNumberFormatCommand as _0x1bb1a3,UpdateDocFormulaCommand as _0x236518,isDocFormulaRange as _0x3eb00d}from'@univerjs-pro/docs-formula';import{ICommandService as _0x5a6335,IResourceLoaderService as _0x2e4e88,IUniverInstanceService as _0x2b5182,Inject as _0x44bf6b,UniverInstanceType as _0x32ec54}from'@univerjs/core';import{FDocument as _0x9be5d2,FDocumentParagraph as _0x5f3dce,FDocumentTextRange as _0x2f9447}from'@univerjs/docs/facade';function v(_0x59e430,_0x3bde68){return function(_0x3f63d8,_0x358c97){_0x3bde68(_0x3f63d8,_0x358c97,_0x59e430);};}function y(_0x272e2f,_0x1f8d57,_0x23c313,_0x2d66e8){var _0x18fc56=_0x32db,_0x4396e9=arguments['length'],_0x3932e4=_0x4396e9<0x3?_0x1f8d57:_0x2d66e8===null?_0x2d66e8=Object['getOwnPropertyDescriptor'](_0x1f8d57,_0x23c313):_0x2d66e8,_0x4167fb;if(typeof Reflect==_0x18fc56(0x189)&&typeof Reflect[_0x18fc56(0x187)]==_0x18fc56(0x173))_0x3932e4=Reflect['decorate'](_0x272e2f,_0x1f8d57,_0x23c313,_0x2d66e8);else{for(var _0x2a2988=_0x272e2f[_0x18fc56(0x1a8)]-0x1;_0x2a2988>=0x0;_0x2a2988--)(_0x4167fb=_0x272e2f[_0x2a2988])&&(_0x3932e4=(_0x4396e9<0x3?_0x4167fb(_0x3932e4):_0x4396e9>0x3?_0x4167fb(_0x1f8d57,_0x23c313,_0x3932e4):_0x4167fb(_0x1f8d57,_0x23c313))||_0x3932e4);}return _0x4396e9>0x3&&_0x3932e4&&Object[_0x18fc56(0x1aa)](_0x1f8d57,_0x23c313,_0x3932e4),_0x3932e4;}let b=class{constructor(_0x42c7b3,_0x328197,_0x1bebed,_0x51aa71,_0x52a086,_0x111919){var _0x4483c6=_0x32db;this['_unitId']=_0x42c7b3,this[_0x4483c6(0x17b)]=_0x328197,this[_0x4483c6(0x184)]=_0x1bebed,this[_0x4483c6(0x167)]=_0x51aa71,this[_0x4483c6(0x174)]=_0x52a086,this[_0x4483c6(0x170)]=_0x111919;}[_0x43e278(0x176)](){var _0x29b724=_0x43e278;return this[_0x29b724(0x17b)];}[_0x43e278(0x171)](){var _0x495dcd=_0x43e278;let _0x52a55f=this[_0x495dcd(0x181)]();return _0x52a55f?{'endOffset':_0x52a55f[_0x495dcd(0x172)]+0x1,'rangeId':_0x52a55f['rangeId'],'startOffset':_0x52a55f[_0x495dcd(0x192)]}:null;}[_0x43e278(0x19d)](){var _0x5cfe4b=_0x43e278,_0x1a3291;return((_0x1a3291=this[_0x5cfe4b(0x167)][_0x5cfe4b(0x19d)](this['_unitId'],this['_rangeId']))==null?void 0x0:_0x1a3291[_0x5cfe4b(0x16e)])??'';}[_0x43e278(0x18f)](){var _0x3e6f95=_0x43e278;return this[_0x3e6f95(0x167)]['getFormula'](this[_0x3e6f95(0x168)],this[_0x3e6f95(0x17b)])??null;}['getResult'](){var _0x529f13=_0x43e278;return this[_0x529f13(0x174)][_0x529f13(0x16b)]({'unitId':this[_0x529f13(0x168)],'rangeId':this[_0x529f13(0x17b)]})??null;}[_0x43e278(0x164)](){var _0xfc804e=_0x43e278;let _0x49caf7=this[_0xfc804e(0x171)](),_0x162171=this['getConfig'](),_0x386d07=this[_0xfc804e(0x16b)]();return!_0x49caf7||!_0x162171||!_0x386d07?null:{..._0x49caf7,'config':_0x162171,'formula':_0x162171[_0xfc804e(0x16e)],'result':_0x386d07,'type':_0xfc804e(0x16e)};}['update'](_0x2a59f4){var _0x2547de=_0x43e278;return this[_0x2547de(0x184)]['syncExecuteCommand'](_0x236518['id'],{'externalReferences':_0x2a59f4[_0x2547de(0x1a3)],'formula':_0x2a59f4['formula'],'numberFormat':_0x2a59f4[_0x2547de(0x1a1)],'rangeId':this[_0x2547de(0x17b)],'unitId':this[_0x2547de(0x168)]});}['setNumberFormat'](_0x38fb22){var _0x472b87=_0x43e278;return this[_0x472b87(0x184)][_0x472b87(0x1b0)](_0x1bb1a3['id'],{'numberFormat':_0x38fb22,'rangeId':this[_0x472b87(0x17b)],'unitId':this[_0x472b87(0x168)]});}[_0x43e278(0x19a)](){var _0x3e8fca=_0x43e278;return this['_commandService'][_0x3e8fca(0x1b0)](_0x280b1f['id'],{'rangeId':this[_0x3e8fca(0x17b)],'unitId':this[_0x3e8fca(0x168)]});}[_0x43e278(0x1a2)](_0x1e6e89){var _0x4b3cbb=_0x43e278;return this[_0x4b3cbb(0x184)][_0x4b3cbb(0x1b0)](_0x223a60['id'],{'rangeId':this[_0x4b3cbb(0x17b)],'text':_0x1e6e89,'unitId':this[_0x4b3cbb(0x168)]});}['convertToText'](){var _0xc6920c=_0x43e278;return this[_0xc6920c(0x184)][_0xc6920c(0x1b0)](_0x334f28['id'],{'rangeId':this[_0xc6920c(0x17b)],'unitId':this[_0xc6920c(0x168)]});}[_0x43e278(0x181)](){var _0x2c44b8=_0x43e278,_0x451a14;let _0x5addea=this[_0x2c44b8(0x170)][_0x2c44b8(0x1ad)](this[_0x2c44b8(0x168)],_0x32ec54['UNIVER_DOC']);return _0x5addea==null||(_0x451a14=_0x5addea[_0x2c44b8(0x1b2)]()[_0x2c44b8(0x1a5)])==null||(_0x451a14=_0x451a14[_0x2c44b8(0x1ac)])==null?void 0x0:_0x451a14[_0x2c44b8(0x169)](_0x2660b7=>_0x2660b7[_0x2c44b8(0x19c)]===this[_0x2c44b8(0x17b)]&&_0x3eb00d(_0x2660b7));}};function _0x5b6c(){var _0x514806=['_docsFormulaCommandService','rangeId','getFormula','getSegmentId','_createFormula','filter','numberFormat','replaceWithText','externalReferences','2744600LNFOqv','body','some','10Mtykqb','length','getBody','defineProperty','range','customRanges','getUnit','2215532KmTEWU','paragraph','syncExecuteCommand','getFormulaAt','getSnapshot','12NCNdzi','describe','getFormulas','_document','_model','_unitId','find','_docsFormulaModel','getResult','map','end','formula','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_univerInstanceService','getRange','endIndex','function','_service','prototype','getId','extend','iterator','createInstance','107957IviErs','_rangeId','5639661qyREGU','3415512HxqlnD','toPrimitive','_docsFormulaResourceLoaderService','saveFormulaDisplayTextSnapshot','_getCustomRange','_injector','symbol','_commandService','_insert','startOffset','decorate','2280900KsIlUA','object','default','_docsFormulaDisplayTextService','_initialize','_getCompleteRanges','saveUnit','getConfig','18gdoxcU','insertFormula','startIndex','degradeDocumentData','call','3494281LsAVKu','endOffset','replaceWithFormula','constructor','get','remove'];_0x5b6c=function(){return _0x514806;};return _0x5b6c();}function _0x32db(_0x4eefbf,_0x4bb507){_0x4eefbf=_0x4eefbf-0x163;var _0x5b6cd3=_0x5b6c();var _0x32db03=_0x5b6cd3[_0x4eefbf];return _0x32db03;}b=y([v(0x2,_0x5a6335),v(0x3,_0x44bf6b(_0x352050)),v(0x4,_0x44bf6b(_0x285cca)),v(0x5,_0x2b5182)],b);function x(_0x1a9e30){'@babel/helpers - typeof';var _0x43fa81=_0x43e278;return x=typeof Symbol=='function'&&typeof Symbol[_0x43fa81(0x178)]=='symbol'?function(_0xd2b72d){return typeof _0xd2b72d;}:function(_0x22386d){var _0x34819d=_0x43fa81;return _0x22386d&&typeof Symbol=='function'&&_0x22386d[_0x34819d(0x198)]===Symbol&&_0x22386d!==Symbol[_0x34819d(0x175)]?_0x34819d(0x183):typeof _0x22386d;},x(_0x1a9e30);}function S(_0x1e1b67,_0x322107){var _0x4c02a9=_0x43e278;if(x(_0x1e1b67)!=_0x4c02a9(0x189)||!_0x1e1b67)return _0x1e1b67;var _0xc425a1=_0x1e1b67[Symbol[_0x4c02a9(0x17e)]];if(_0xc425a1!==void 0x0){var _0x134350=_0xc425a1[_0x4c02a9(0x194)](_0x1e1b67,_0x322107||_0x4c02a9(0x18a));if(x(_0x134350)!=_0x4c02a9(0x189))return _0x134350;throw TypeError(_0x4c02a9(0x16f));}return(_0x322107==='string'?String:Number)(_0x1e1b67);}function C(_0x5bfd00){var _0x2374ec=_0x43e278,_0x428bd7=S(_0x5bfd00,'string');return x(_0x428bd7)==_0x2374ec(0x183)?_0x428bd7:_0x428bd7+'';}function w(_0x3e2484,_0x5c5c82,_0x4fb589){var _0x53b8ba=_0x43e278;return(_0x5c5c82=C(_0x5c5c82))in _0x3e2484?Object[_0x53b8ba(0x1aa)](_0x3e2484,_0x5c5c82,{'value':_0x4fb589,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e2484[_0x5c5c82]=_0x4fb589,_0x3e2484;}var T=class extends _0x9be5d2{constructor(..._0x43b413){var _0x1a54fa=_0x43e278;super(..._0x43b413),w(this,'_docsFormulaCommandService',void 0x0),w(this,_0x1a54fa(0x18b),void 0x0),w(this,_0x1a54fa(0x16a),void 0x0),w(this,_0x1a54fa(0x17f),void 0x0);}[_0x43e278(0x18c)](_0x51ac0e){var _0x4bed7c=_0x43e278;this[_0x4bed7c(0x19b)]=_0x51ac0e['get'](_0x5a6335),this[_0x4bed7c(0x18b)]=_0x51ac0e[_0x4bed7c(0x199)](_0x29119a),this[_0x4bed7c(0x16a)]=_0x51ac0e[_0x4bed7c(0x199)](_0x352050),this[_0x4bed7c(0x17f)]=_0x51ac0e[_0x4bed7c(0x199)](_0x2e4e88);}[_0x43e278(0x165)](){var _0x4017b0=_0x43e278;return this[_0x4017b0(0x18d)]()[_0x4017b0(0x16c)](_0x4f691c=>this[_0x4017b0(0x19f)](_0x4f691c[_0x4017b0(0x19c)]));}[_0x43e278(0x19d)](_0x39197a){var _0x4dd232=_0x43e278;return this[_0x4dd232(0x18d)]()[_0x4dd232(0x1a6)](_0x36b4ab=>_0x36b4ab['rangeId']===_0x39197a)?this[_0x4dd232(0x19f)](_0x39197a):null;}[_0x43e278(0x1b1)](_0x18a8c5){var _0x5be941=_0x43e278;let _0x543144=this['_getCompleteRanges']()['find'](_0x1e74dd=>_0x1e74dd[_0x5be941(0x192)]<=_0x18a8c5&&_0x18a8c5<=_0x1e74dd[_0x5be941(0x172)]);return _0x543144?this[_0x5be941(0x19f)](_0x543144[_0x5be941(0x19c)]):null;}[_0x43e278(0x180)](){var _0x5af2f7=_0x43e278;let _0x17f8e5=this['_docsFormulaResourceLoaderService'][_0x5af2f7(0x18e)](this['id']);if(!_0x17f8e5)throw Error('Document\x20'+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x5af2f7(0x18b)][_0x5af2f7(0x193)](_0x17f8e5);}[_0x43e278(0x191)](_0x1a0400){var _0x347b6e=_0x43e278;return this[_0x347b6e(0x185)]({'externalReferences':_0x1a0400['externalReferences'],'formula':_0x1a0400[_0x347b6e(0x16e)],'numberFormat':_0x1a0400[_0x347b6e(0x1a1)],'target':{'type':'range','startOffset':_0x1a0400[_0x347b6e(0x186)],'endOffset':_0x1a0400[_0x347b6e(0x196)]},'unitId':this[_0x347b6e(0x176)]()});}[_0x43e278(0x185)](_0x3bd1dd){var _0x1f769c=_0x43e278;let _0x37e264=this[_0x1f769c(0x19b)][_0x1f769c(0x1b0)](_0x4cef27['id'],_0x3bd1dd);return _0x37e264?this['_createFormula'](_0x37e264[_0x1f769c(0x19c)]):null;}[_0x43e278(0x18d)](){var _0x67f993=_0x43e278,_0x1b641e;let _0xd8b92d=this[_0x67f993(0x16a)][_0x67f993(0x165)](this[_0x67f993(0x176)]());return((_0x1b641e=this[_0x67f993(0x1a9)]('')[_0x67f993(0x1ac)])==null?void 0x0:_0x1b641e[_0x67f993(0x1a0)](_0x2c4b51=>_0x3eb00d(_0x2c4b51)&&_0xd8b92d[_0x2c4b51['rangeId']]!=null))??[];}[_0x43e278(0x19f)](_0xd52f63){var _0x5da3df=_0x43e278;return this[_0x5da3df(0x182)][_0x5da3df(0x179)](b,this[_0x5da3df(0x176)](),_0xd52f63);}};_0x9be5d2[_0x43e278(0x177)](T);var E=class extends _0x5f3dce{constructor(..._0x1130cc){var _0x56c59d=_0x43e278;super(..._0x1130cc),w(this,_0x56c59d(0x19b),void 0x0);}[_0x43e278(0x18c)](_0x575cf5){var _0x571a2b=_0x43e278;this[_0x571a2b(0x19b)]=_0x575cf5['get'](_0x5a6335);}['insertFormula'](_0x5c46e7,_0x52fb1a,_0x33cea5={}){var _0x2548b3=_0x43e278;return this[_0x2548b3(0x185)](_0x5c46e7,_0x52fb1a,_0x33cea5);}['appendFormula'](_0x383ee1,_0x234c10={}){var _0x2ab220=_0x43e278;return this['_insert'](_0x2ab220(0x16d),_0x383ee1,_0x234c10);}[_0x43e278(0x185)](_0x186e62,_0x190170,_0x2a7d2f){var _0x56da4f=_0x43e278;if(this[_0x56da4f(0x19e)]())return null;let _0x13d172={'externalReferences':_0x2a7d2f[_0x56da4f(0x1a3)],'formula':_0x190170,'numberFormat':_0x2a7d2f[_0x56da4f(0x1a1)],'target':{'type':_0x56da4f(0x1af),'paragraphId':this['getId'](),'position':_0x186e62},'unitId':this[_0x56da4f(0x166)][_0x56da4f(0x176)]()},_0x532f9=this[_0x56da4f(0x19b)]['syncExecuteCommand'](_0x4cef27['id'],_0x13d172);return _0x532f9?this[_0x56da4f(0x182)][_0x56da4f(0x179)](b,this[_0x56da4f(0x166)]['getId'](),_0x532f9[_0x56da4f(0x19c)]):null;}};_0x5f3dce[_0x43e278(0x177)](E);var D=class extends _0x2f9447{constructor(..._0x58f15a){var _0x14281f=_0x43e278;super(..._0x58f15a),w(this,_0x14281f(0x19b),void 0x0);}[_0x43e278(0x18c)](_0xc998de){var _0x1f7dea=_0x43e278;this[_0x1f7dea(0x19b)]=_0xc998de[_0x1f7dea(0x199)](_0x5a6335);}[_0x43e278(0x197)](_0x50335d,_0x3557db={}){var _0x136452=_0x43e278;let {endOffset:_0x5651ed,segmentId:_0x12862b,startOffset:_0x501b43}=this[_0x136452(0x171)]();return _0x12862b?null:this[_0x136452(0x185)](_0x501b43,_0x5651ed,_0x50335d,_0x3557db);}[_0x43e278(0x185)](_0x2f58a5,_0x2cb9d3,_0x5bd4df,_0x2c218c){var _0xcea158=_0x43e278;let _0x3e86d0={'externalReferences':_0x2c218c[_0xcea158(0x1a3)],'formula':_0x5bd4df,'numberFormat':_0x2c218c[_0xcea158(0x1a1)],'target':{'type':_0xcea158(0x1ab),'startOffset':_0x2f58a5,'endOffset':_0x2cb9d3},'unitId':this[_0xcea158(0x166)][_0xcea158(0x176)]()},_0x3135dd=this[_0xcea158(0x19b)]['syncExecuteCommand'](_0x4cef27['id'],_0x3e86d0);return _0x3135dd?this[_0xcea158(0x182)][_0xcea158(0x179)](b,this[_0xcea158(0x166)][_0xcea158(0x176)](),_0x3135dd[_0xcea158(0x19c)]):null;}};_0x2f9447[_0x43e278(0x177)](D);export{b as FDocumentFormula};
1
+ var _0x2b355b=_0x3a44;(function(_0x3b99bc,_0x4a9c94){var _0x205c82=_0x3a44,_0x4bf381=_0x3b99bc();while(!![]){try{var _0x3785b0=-parseInt(_0x205c82(0x1d2))/0x1*(-parseInt(_0x205c82(0x190))/0x2)+-parseInt(_0x205c82(0x19f))/0x3+parseInt(_0x205c82(0x1ac))/0x4+-parseInt(_0x205c82(0x18a))/0x5+parseInt(_0x205c82(0x1b3))/0x6+parseInt(_0x205c82(0x192))/0x7+-parseInt(_0x205c82(0x193))/0x8;if(_0x3785b0===_0x4a9c94)break;else _0x4bf381['push'](_0x4bf381['shift']());}catch(_0x4d233e){_0x4bf381['push'](_0x4bf381['shift']());}}}(_0x3b5e,0x58081));import{ConvertDocFormulaToTextCommand as _0x2d4520,DocFormulaDisplayTextService as _0xb17991,DocFormulaModel as _0x32fc45,DocFormulaService as _0x5bf394,InsertDocFormulaCommand as _0x3e5dad,RemoveDocFormulaCommand as _0x3eeb8c,ReplaceDocFormulaWithTextCommand as _0x497f52,SetDocFormulaNumberFormatCommand as _0x5dba3c,UpdateDocFormulaCommand as _0x9bf949,isDocFormulaRange as _0x3a1bb9}from'@univerjs-pro/docs-formula';import{ICommandService as _0x128e28,IResourceLoaderService as _0xcfcf25,IUniverInstanceService as _0x23abd6,Inject as _0x2f2ecf,UniverInstanceType as _0x5a4427}from'@univerjs/core';import{FDocument as _0x1cb9b3,FDocumentParagraph as _0x477006,FDocumentTextRange as _0xe94339}from'@univerjs/docs/facade';function v(_0x558cab,_0x40a1cc){return function(_0x4af14b,_0x55fda7){_0x40a1cc(_0x4af14b,_0x55fda7,_0x558cab);};}function y(_0x3795b2,_0x507c35,_0x2038e8,_0x1aaa30){var _0xef8a6c=_0x3a44,_0x3016e6=arguments['length'],_0x36f69a=_0x3016e6<0x3?_0x507c35:_0x1aaa30===null?_0x1aaa30=Object['getOwnPropertyDescriptor'](_0x507c35,_0x2038e8):_0x1aaa30,_0x217356;if(typeof Reflect==_0xef8a6c(0x1b1)&&typeof Reflect[_0xef8a6c(0x1c7)]==_0xef8a6c(0x1bf))_0x36f69a=Reflect['decorate'](_0x3795b2,_0x507c35,_0x2038e8,_0x1aaa30);else{for(var _0x48fc6d=_0x3795b2[_0xef8a6c(0x1c5)]-0x1;_0x48fc6d>=0x0;_0x48fc6d--)(_0x217356=_0x3795b2[_0x48fc6d])&&(_0x36f69a=(_0x3016e6<0x3?_0x217356(_0x36f69a):_0x3016e6>0x3?_0x217356(_0x507c35,_0x2038e8,_0x36f69a):_0x217356(_0x507c35,_0x2038e8))||_0x36f69a);}return _0x3016e6>0x3&&_0x36f69a&&Object[_0xef8a6c(0x1a3)](_0x507c35,_0x2038e8,_0x36f69a),_0x36f69a;}let b=class{constructor(_0x533d09,_0x2d879f,_0x2451b0,_0x3272f3,_0x280091,_0x1d3e0e){var _0x2e43d7=_0x3a44;this[_0x2e43d7(0x1a8)]=_0x533d09,this[_0x2e43d7(0x1c1)]=_0x2d879f,this[_0x2e43d7(0x1ab)]=_0x2451b0,this['_model']=_0x3272f3,this['_service']=_0x280091,this[_0x2e43d7(0x1b9)]=_0x1d3e0e;}[_0x2b355b(0x1b2)](){var _0x524c58=_0x2b355b;return this[_0x524c58(0x1c1)];}[_0x2b355b(0x19c)](){var _0x59abd3=_0x2b355b;let _0x321151=this[_0x59abd3(0x18b)]();return _0x321151?{'endOffset':_0x321151['endIndex']+0x1,'rangeId':_0x321151[_0x59abd3(0x195)],'startOffset':_0x321151[_0x59abd3(0x199)]}:null;}[_0x2b355b(0x1b8)](){var _0x2e643a=_0x2b355b,_0x1b162e;return((_0x1b162e=this[_0x2e643a(0x1cf)][_0x2e643a(0x1b8)](this[_0x2e643a(0x1a8)],this[_0x2e643a(0x1c1)]))==null?void 0x0:_0x1b162e[_0x2e643a(0x19e)])??'';}[_0x2b355b(0x197)](){var _0x351545=_0x2b355b;return this[_0x351545(0x1cf)][_0x351545(0x1b8)](this[_0x351545(0x1a8)],this[_0x351545(0x1c1)])??null;}['getResult'](){var _0x469f77=_0x2b355b;return this['_service'][_0x469f77(0x1ae)]({'unitId':this[_0x469f77(0x1a8)],'rangeId':this['_rangeId']})??null;}['describe'](){var _0x42f651=_0x2b355b;let _0x147ae0=this[_0x42f651(0x19c)](),_0x187639=this[_0x42f651(0x197)](),_0x3f2874=this['getResult']();return!_0x147ae0||!_0x187639||!_0x3f2874?null:{..._0x147ae0,'config':_0x187639,'formula':_0x187639[_0x42f651(0x19e)],'result':_0x3f2874,'type':_0x42f651(0x19e)};}['update'](_0x45ecf7){var _0x23646f=_0x2b355b;return this['_commandService'][_0x23646f(0x18c)](_0x9bf949['id'],{'externalReferences':_0x45ecf7['externalReferences'],'formula':_0x45ecf7[_0x23646f(0x19e)],'numberFormat':_0x45ecf7['numberFormat'],'rangeId':this[_0x23646f(0x1c1)],'unitId':this[_0x23646f(0x1a8)]});}[_0x2b355b(0x1a5)](_0x2ae9e6){var _0x1acf0f=_0x2b355b;return this[_0x1acf0f(0x1ab)][_0x1acf0f(0x18c)](_0x5dba3c['id'],{'numberFormat':_0x2ae9e6,'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x2b355b(0x19a)](){var _0x349c08=_0x2b355b;return this[_0x349c08(0x1ab)]['syncExecuteCommand'](_0x3eeb8c['id'],{'rangeId':this[_0x349c08(0x1c1)],'unitId':this[_0x349c08(0x1a8)]});}[_0x2b355b(0x1c9)](_0x3d05f6){var _0x55f668=_0x2b355b;return this[_0x55f668(0x1ab)][_0x55f668(0x18c)](_0x497f52['id'],{'rangeId':this[_0x55f668(0x1c1)],'text':_0x3d05f6,'unitId':this[_0x55f668(0x1a8)]});}[_0x2b355b(0x1cc)](){var _0x4a2b0a=_0x2b355b;return this[_0x4a2b0a(0x1ab)]['syncExecuteCommand'](_0x2d4520['id'],{'rangeId':this[_0x4a2b0a(0x1c1)],'unitId':this[_0x4a2b0a(0x1a8)]});}['_getCustomRange'](){var _0x4b8c6e=_0x2b355b,_0x18a5d5;let _0x161d28=this[_0x4b8c6e(0x1b9)][_0x4b8c6e(0x1c2)](this[_0x4b8c6e(0x1a8)],_0x5a4427[_0x4b8c6e(0x1b4)]);return _0x161d28==null||(_0x18a5d5=_0x161d28['getSnapshot']()['body'])==null||(_0x18a5d5=_0x18a5d5[_0x4b8c6e(0x1cd)])==null?void 0x0:_0x18a5d5[_0x4b8c6e(0x1d1)](_0x1f7d5e=>_0x1f7d5e[_0x4b8c6e(0x195)]===this[_0x4b8c6e(0x1c1)]&&_0x3a1bb9(_0x1f7d5e));}};b=y([v(0x2,_0x128e28),v(0x3,_0x2f2ecf(_0x32fc45)),v(0x4,_0x2f2ecf(_0x5bf394)),v(0x5,_0x23abd6)],b);function x(_0x32b2e8){'@babel/helpers - typeof';var _0x2b02d8=_0x2b355b;return x=typeof Symbol=='function'&&typeof Symbol[_0x2b02d8(0x1a1)]=='symbol'?function(_0x396b3e){return typeof _0x396b3e;}:function(_0x504d0f){var _0x12042d=_0x2b02d8;return _0x504d0f&&typeof Symbol==_0x12042d(0x1bf)&&_0x504d0f[_0x12042d(0x1b7)]===Symbol&&_0x504d0f!==Symbol[_0x12042d(0x18f)]?_0x12042d(0x1a6):typeof _0x504d0f;},x(_0x32b2e8);}function S(_0x395844,_0x4f7aa0){var _0x8dafe9=_0x2b355b;if(x(_0x395844)!=_0x8dafe9(0x1b1)||!_0x395844)return _0x395844;var _0x5d5e5e=_0x395844[Symbol[_0x8dafe9(0x198)]];if(_0x5d5e5e!==void 0x0){var _0x59d213=_0x5d5e5e[_0x8dafe9(0x1ce)](_0x395844,_0x4f7aa0||_0x8dafe9(0x191));if(x(_0x59d213)!='object')return _0x59d213;throw TypeError(_0x8dafe9(0x1c6));}return(_0x4f7aa0===_0x8dafe9(0x1c0)?String:Number)(_0x395844);}function C(_0x38fd36){var _0x3fff0d=_0x2b355b,_0x3e2604=S(_0x38fd36,_0x3fff0d(0x1c0));return x(_0x3e2604)==_0x3fff0d(0x1a6)?_0x3e2604:_0x3e2604+'';}function w(_0x1313de,_0x2c3e53,_0x5b5c4f){var _0x27a84d=_0x2b355b;return(_0x2c3e53=C(_0x2c3e53))in _0x1313de?Object[_0x27a84d(0x1a3)](_0x1313de,_0x2c3e53,{'value':_0x5b5c4f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1313de[_0x2c3e53]=_0x5b5c4f,_0x1313de;}var T=class extends _0x1cb9b3{constructor(..._0x2d01d5){var _0x77f48a=_0x2b355b;super(..._0x2d01d5),w(this,_0x77f48a(0x1bd),void 0x0),w(this,_0x77f48a(0x1b6),void 0x0),w(this,_0x77f48a(0x1ca),void 0x0),w(this,_0x77f48a(0x18e),void 0x0);}['_initialize'](_0x1bc0b6){var _0x6493a8=_0x2b355b;this[_0x6493a8(0x1bd)]=_0x1bc0b6[_0x6493a8(0x196)](_0x128e28),this[_0x6493a8(0x1b6)]=_0x1bc0b6[_0x6493a8(0x196)](_0xb17991),this[_0x6493a8(0x1ca)]=_0x1bc0b6[_0x6493a8(0x196)](_0x32fc45),this['_docsFormulaResourceLoaderService']=_0x1bc0b6[_0x6493a8(0x196)](_0xcfcf25);}[_0x2b355b(0x1b0)](){var _0x488e46=_0x2b355b;return this[_0x488e46(0x1d0)]()[_0x488e46(0x1c4)](_0x3cdc72=>this[_0x488e46(0x1aa)](_0x3cdc72['rangeId']));}[_0x2b355b(0x1b8)](_0x2efd01){var _0x38170d=_0x2b355b;return this[_0x38170d(0x1d0)]()[_0x38170d(0x1a9)](_0x29dc0d=>_0x29dc0d[_0x38170d(0x195)]===_0x2efd01)?this[_0x38170d(0x1aa)](_0x2efd01):null;}[_0x2b355b(0x19b)](_0x3febe2){var _0x167dad=_0x2b355b;let _0x431509=this[_0x167dad(0x1d0)]()['find'](_0x560648=>_0x560648['startIndex']<=_0x3febe2&&_0x3febe2<=_0x560648['endIndex']);return _0x431509?this[_0x167dad(0x1aa)](_0x431509[_0x167dad(0x195)]):null;}[_0x2b355b(0x1be)](){var _0x4aa8c1=_0x2b355b;let _0x28a557=this[_0x4aa8c1(0x18e)][_0x4aa8c1(0x1d4)](this['id']);if(!_0x28a557)throw Error(_0x4aa8c1(0x18d)+this['id']+_0x4aa8c1(0x1d5));return this['_docsFormulaDisplayTextService'][_0x4aa8c1(0x1af)](_0x28a557);}[_0x2b355b(0x1c8)](_0x41d33d){var _0x191160=_0x2b355b;return this[_0x191160(0x1a2)]({'externalReferences':_0x41d33d[_0x191160(0x1bb)],'formula':_0x41d33d['formula'],'numberFormat':_0x41d33d[_0x191160(0x1b5)],'target':{'type':_0x191160(0x1a7),'startOffset':_0x41d33d[_0x191160(0x1ba)],'endOffset':_0x41d33d['endOffset']},'unitId':this[_0x191160(0x1b2)]()});}[_0x2b355b(0x1a2)](_0x46ed4e){var _0x120a7d=_0x2b355b;let _0x132226=this['_docsFormulaCommandService'][_0x120a7d(0x18c)](_0x3e5dad['id'],_0x46ed4e);return _0x132226?this[_0x120a7d(0x1aa)](_0x132226['rangeId']):null;}[_0x2b355b(0x1d0)](){var _0x1d58c3=_0x2b355b,_0x116043;let _0xb34047=this[_0x1d58c3(0x1ca)]['getFormulas'](this[_0x1d58c3(0x1b2)]());return((_0x116043=this[_0x1d58c3(0x1c3)]('')[_0x1d58c3(0x1cd)])==null?void 0x0:_0x116043['filter'](_0x258602=>_0x3a1bb9(_0x258602)&&_0xb34047[_0x258602[_0x1d58c3(0x195)]]!=null))??[];}['_createFormula'](_0x3cadc1){var _0x59c9da=_0x2b355b;return this[_0x59c9da(0x1a0)]['createInstance'](b,this[_0x59c9da(0x1b2)](),_0x3cadc1);}};_0x1cb9b3['extend'](T);function _0x3b5e(){var _0x290e25=['_insert','defineProperty','createInstance','setNumberFormat','symbol','range','_unitId','some','_createFormula','_commandService','2256652GmuLhb','end','getResult','degradeDocumentData','getFormulas','object','getId','794124FRKoMV','UNIVER_DOC','numberFormat','_docsFormulaDisplayTextService','constructor','getFormula','_univerInstanceService','startOffset','externalReferences','_document','_docsFormulaCommandService','saveFormulaDisplayTextSnapshot','function','string','_rangeId','getUnit','getBody','map','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','insertFormula','replaceWithText','_docsFormulaModel','getSegmentId','convertToText','customRanges','call','_model','_getCompleteRanges','find','5VqnOuw','replaceWithFormula','saveUnit','\x20could\x20not\x20be\x20serialized.','365840jGNHzE','_getCustomRange','syncExecuteCommand','Document\x20','_docsFormulaResourceLoaderService','prototype','106250feYDGj','default','2654498EkXvZH','6966968rLuuwy','_initialize','rangeId','get','getConfig','toPrimitive','startIndex','remove','getFormulaAt','getRange','extend','formula','110220RQLZiJ','_injector','iterator'];_0x3b5e=function(){return _0x290e25;};return _0x3b5e();}var E=class extends _0x477006{constructor(..._0x13cc1b){var _0x23ef8e=_0x2b355b;super(..._0x13cc1b),w(this,_0x23ef8e(0x1bd),void 0x0);}['_initialize'](_0x374214){var _0x5e1903=_0x2b355b;this[_0x5e1903(0x1bd)]=_0x374214[_0x5e1903(0x196)](_0x128e28);}[_0x2b355b(0x1c8)](_0x4ddb55,_0x1026ca,_0x1c34e6={}){return this['_insert'](_0x4ddb55,_0x1026ca,_0x1c34e6);}['appendFormula'](_0x560153,_0x1392d0={}){var _0x40d68b=_0x2b355b;return this['_insert'](_0x40d68b(0x1ad),_0x560153,_0x1392d0);}[_0x2b355b(0x1a2)](_0x1b3211,_0x5a92bb,_0x22039c){var _0x11d99d=_0x2b355b;if(this[_0x11d99d(0x1cb)]())return null;let _0x1f8ec8={'externalReferences':_0x22039c[_0x11d99d(0x1bb)],'formula':_0x5a92bb,'numberFormat':_0x22039c[_0x11d99d(0x1b5)],'target':{'type':'paragraph','paragraphId':this['getId'](),'position':_0x1b3211},'unitId':this['_document']['getId']()},_0x33cff7=this[_0x11d99d(0x1bd)][_0x11d99d(0x18c)](_0x3e5dad['id'],_0x1f8ec8);return _0x33cff7?this['_injector'][_0x11d99d(0x1a4)](b,this[_0x11d99d(0x1bc)][_0x11d99d(0x1b2)](),_0x33cff7[_0x11d99d(0x195)]):null;}};function _0x3a44(_0x3dbffd,_0xdf1336){_0x3dbffd=_0x3dbffd-0x18a;var _0x3b5e39=_0x3b5e();var _0x3a44fe=_0x3b5e39[_0x3dbffd];return _0x3a44fe;}_0x477006[_0x2b355b(0x19d)](E);var D=class extends _0xe94339{constructor(..._0x4a40e1){var _0x610aa9=_0x2b355b;super(..._0x4a40e1),w(this,_0x610aa9(0x1bd),void 0x0);}[_0x2b355b(0x194)](_0x280f5d){var _0x37780b=_0x2b355b;this[_0x37780b(0x1bd)]=_0x280f5d['get'](_0x128e28);}[_0x2b355b(0x1d3)](_0x36cb09,_0x40b437={}){var _0x6b855b=_0x2b355b;let {endOffset:_0x32b929,segmentId:_0x353e47,startOffset:_0x2d07d4}=this[_0x6b855b(0x19c)]();return _0x353e47?null:this[_0x6b855b(0x1a2)](_0x2d07d4,_0x32b929,_0x36cb09,_0x40b437);}[_0x2b355b(0x1a2)](_0x5c1fcd,_0xac1fe0,_0x121cff,_0x1afa9a){var _0x1306de=_0x2b355b;let _0x8edbb6={'externalReferences':_0x1afa9a[_0x1306de(0x1bb)],'formula':_0x121cff,'numberFormat':_0x1afa9a[_0x1306de(0x1b5)],'target':{'type':_0x1306de(0x1a7),'startOffset':_0x5c1fcd,'endOffset':_0xac1fe0},'unitId':this[_0x1306de(0x1bc)]['getId']()},_0x3b6c94=this[_0x1306de(0x1bd)][_0x1306de(0x18c)](_0x3e5dad['id'],_0x8edbb6);return _0x3b6c94?this[_0x1306de(0x1a0)][_0x1306de(0x1a4)](b,this[_0x1306de(0x1bc)][_0x1306de(0x1b2)](),_0x3b6c94['rangeId']):null;}};_0xe94339[_0x2b355b(0x19d)](D);export{b as FDocumentFormula};