@univerjs-pro/docs-formula 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/types/common/const.d.ts +0 -1
- package/lib/types/common/type.d.ts +1 -3
- package/lib/types/index.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +12 -12
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 _0x15ff4a=_0x5a0e;(function(_0x400f34,_0x5dad15){const _0x4e4264=_0x5a0e,_0x2afa0f=_0x400f34();while(!![]){try{const _0x5a8278=parseInt(_0x4e4264(0xe2))/0x1+-parseInt(_0x4e4264(0xf2))/0x2*(-parseInt(_0x4e4264(0x15c))/0x3)+parseInt(_0x4e4264(0x140))/0x4+parseInt(_0x4e4264(0x18c))/0x5+parseInt(_0x4e4264(0x104))/0x6*(-parseInt(_0x4e4264(0x166))/0x7)+-parseInt(_0x4e4264(0xe1))/0x8*(-parseInt(_0x4e4264(0x125))/0x9)+-parseInt(_0x4e4264(0x11f))/0xa*(parseInt(_0x4e4264(0x103))/0xb);if(_0x5a8278===_0x5dad15)break;else _0x2afa0f['push'](_0x2afa0f['shift']());}catch(_0x194e96){_0x2afa0f['push'](_0x2afa0f['shift']());}}}(_0x4b4d,0xa0880));import{FormulaCacheEligibilityService as _0xf3ba79,FormulaLastValuePersistenceService as _0x3b1060,HostExternalReferenceModel as _0xc15eb3,UniverProFormulaEnginePlugin as _0x4ef49e,buildUpsertHostExternalReferenceMutations as _0x51ba85,collectFormulaExternalReferenceQualifiers as _0x184125,getScalarFormulaResultCell as _0x10bd2d,resolveFormulaResultPresentation as _0x4c2bd5,resolveHostFormulaExternalReferences as _0x197c79,toFormulaLastValue as _0x4190fe}from'@univerjs-pro/engine-formula';import{CellValueType as _0x5a7e9d,CommandType as _0x6c9543,CustomRangeType as _0x139ae4,DataStreamTreeTokenType as _0x246953,DependentOn as _0x3781b4,Disposable as _0x284207,ICommandService as _0x55728f,IConfigService as _0x102468,IResourceManagerService as _0x103c6c,IUndoRedoService as _0x51122a,IUniverInstanceService as _0x48b9a6,Inject as _0x36a610,Injector as _0xed0b2,JSONX as _0x1d02d7,Plugin as _0x2f618a,TextX as _0x54417a,Tools as _0x4fc8e1,UniverInstanceType as _0x1d8d65,generateRandomId as _0x52ed00,getBodySliceForTextXAction as _0x4f7aa5,getCustomRangeInterval as _0x48951d,getParagraphContentStartOffset as _0x3f5de0,getRichTextEditPath as _0x31e082,merge as _0x1725eb,shiftExclusiveRangeOnDelete as _0x563ad3,shiftExclusiveRangeOnInsert as _0x377b49,shiftInclusiveRangeOnDelete as _0x6038f1,shiftInclusiveRangeOnInsert as _0x10b131,touchDependencies as _0x426a27}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x59dee6,DocSelectionManagerService as _0x1ba5ec,DocTextResolverService as _0xebc48d,RichTextEditingMutation as _0x3731df,UniverDocsPlugin as _0x296e31}from'@univerjs/docs';import{FormulaResultStatus as _0x462723,LexerTreeBuilder as _0x5707ab,OtherFormulaBizType as _0x13c14f,RegisterOtherFormulaService as _0x540fe4}from'@univerjs/engine-formula';import{Subject as _0xb8a1ef}from'rxjs';import{UniverLicensePlugin as _0x52fcce}from'@univerjs-pro/license';const y=_0x15ff4a(0x10d),je='univer-docs-formula',Me='';function b(){return{'formulas':{}};}function x(_0x5c5632){const _0x59097a=_0x15ff4a;return!_0x5c5632||typeof _0x5c5632!=_0x59097a(0x1b3)||!(_0x59097a(0x106)in _0x5c5632)||!_0x5c5632[_0x59097a(0x106)]||typeof _0x5c5632[_0x59097a(0x106)]!=_0x59097a(0x1b3)||Array[_0x59097a(0xcc)](_0x5c5632[_0x59097a(0x106)])?!0x1:Object[_0x59097a(0x16a)](_0x5c5632[_0x59097a(0x106)])[_0x59097a(0x15f)](([_0x2353bb,_0x41cc04])=>_0x2353bb['length']>0x0&&Ne(_0x41cc04));}function Ne(_0x112ab1){const _0x36a52a=_0x15ff4a;return!_0x112ab1||typeof _0x112ab1!='object'||!S(_0x112ab1,[_0x36a52a(0x1c2),_0x36a52a(0x17d),_0x36a52a(0xeb)])||!(_0x36a52a(0x1c2)in _0x112ab1)||typeof _0x112ab1[_0x36a52a(0x1c2)]!=_0x36a52a(0x1b9)||!_0x112ab1[_0x36a52a(0x1c2)][_0x36a52a(0x12d)]()||_0x36a52a(0x17d)in _0x112ab1&&_0x112ab1[_0x36a52a(0x17d)]!=null&&(typeof _0x112ab1['numberFormat']!='object'||!S(_0x112ab1[_0x36a52a(0x17d)],['pattern'])||!(_0x36a52a(0x167)in _0x112ab1[_0x36a52a(0x17d)])||typeof _0x112ab1[_0x36a52a(0x17d)][_0x36a52a(0x167)]!=_0x36a52a(0x1b9))?!0x1:!('lastValue'in _0x112ab1)||_0x112ab1[_0x36a52a(0xeb)]==null||Pe(_0x112ab1['lastValue']);}function Pe(_0x218627){const _0x56b695=_0x15ff4a;return!_0x218627||typeof _0x218627!='object'||!S(_0x218627,['v','t',_0x56b695(0x167)])||!('v'in _0x218627)||_0x218627['v']!==null&&typeof _0x218627['v']!=_0x56b695(0x1b9)&&typeof _0x218627['v']!=_0x56b695(0x1c3)&&typeof _0x218627['v']!='boolean'||'t'in _0x218627&&_0x218627['t']!=null&&!Fe(_0x218627['t'])?!0x1:!(_0x56b695(0x167)in _0x218627)||_0x218627[_0x56b695(0x167)]==null||typeof _0x218627[_0x56b695(0x167)]=='string';}function S(_0x1ec2cd,_0x45480c){const _0x2ef36c=_0x15ff4a;let _0x3aff8e=new Set(_0x45480c);return Object['keys'](_0x1ec2cd)[_0x2ef36c(0x15f)](_0x14eb6b=>_0x3aff8e[_0x2ef36c(0x184)](_0x14eb6b));}function Fe(_0x55457d){const _0x4b69cc=_0x15ff4a;return typeof _0x55457d==_0x4b69cc(0x1c3)&&Object['values'](_0x5a7e9d)[_0x4b69cc(0x155)](_0x55457d);}const Ie=new Set([_0x246953[_0x15ff4a(0xf5)],_0x246953[_0x15ff4a(0x12c)],_0x246953[_0x15ff4a(0x19f)],_0x246953['TABLE_CELL_START'],_0x246953[_0x15ff4a(0xda)],_0x246953[_0x15ff4a(0x14f)],_0x246953[_0x15ff4a(0xf6)],_0x246953[_0x15ff4a(0x1ae)],_0x246953['COLUMN_START'],_0x246953['COLUMN_END'],_0x246953[_0x15ff4a(0x157)],_0x246953[_0x15ff4a(0x18d)],_0x246953[_0x15ff4a(0x1bf)],_0x246953[_0x15ff4a(0x1b4)]]);var C=class extends Error{constructor(){const _0x4b2b12=_0x15ff4a;super(_0x4b2b12(0x18b));}};function Le(_0xbff3b3){const _0xa4e05e=_0x15ff4a;var _0x4dfeed,_0x207615;let _0x577911=_0x4fc8e1[_0xa4e05e(0x107)](_0xbff3b3[_0xa4e05e(0xe4)]),_0x44efc4=O(_0x577911),{startOffset:_0x414928,endOffset:_0x946c2d}=We(_0x44efc4,_0xbff3b3[_0xa4e05e(0x171)],_0xbff3b3[_0xa4e05e(0x11c)]);Ve(_0x44efc4,_0x414928,_0x946c2d);let _0x1fa84f=((_0x4dfeed=_0x44efc4[_0xa4e05e(0x101)])==null?void 0x0:_0x4dfeed[_0xa4e05e(0xfd)](_0x42740a=>{const _0x2d69db=_0xa4e05e;if(!w(_0x42740a))return!0x1;let _0x25a636=_0x48951d(_0x42740a);return _0x25a636[_0x2d69db(0x11c)]>_0x414928&&_0x25a636[_0x2d69db(0x171)]<_0x946c2d;})[_0xa4e05e(0x120)](_0x24a461=>_0x24a461[_0xa4e05e(0x142)]))??[];qe(_0x44efc4,_0x414928,_0x946c2d,''),_0x44efc4[_0xa4e05e(0x101)]=[...((_0x207615=_0x44efc4[_0xa4e05e(0x101)])==null?void 0x0:_0x207615[_0xa4e05e(0xfd)](_0x2ca330=>!_0x1fa84f[_0xa4e05e(0x155)](_0x2ca330[_0xa4e05e(0x142)])&&_0x2ca330[_0xa4e05e(0x142)]!==_0xbff3b3['rangeId']))??[],He(_0xbff3b3[_0xa4e05e(0x142)],_0x414928)][_0xa4e05e(0xfc)]((_0x14fc58,_0x145048)=>_0x14fc58[_0xa4e05e(0x14c)]-_0x145048['startIndex']);let _0x1f3f48=Ue(_0xbff3b3['resource']);return _0x1fa84f['forEach'](_0x5a6824=>{delete _0x1f3f48['formulas'][_0x5a6824];}),_0x1f3f48['formulas'][_0xbff3b3[_0xa4e05e(0x142)]]=_0x4fc8e1[_0xa4e05e(0x107)](_0xbff3b3[_0xa4e05e(0x1ab)]),{'nextDocumentData':_0x577911,'nextResource':_0x1f3f48,'cursorOffset':_0x414928+0x1};}function Re(_0x184790){const _0x1cc2aa=_0x15ff4a;var _0x3ff217,_0x5963fd;let _0xfcace5=_0x4fc8e1[_0x1cc2aa(0x107)](_0x184790[_0x1cc2aa(0xe4)]),_0x4f088d=(_0x3ff217=O(_0xfcace5)[_0x1cc2aa(0x101)])==null?void 0x0:_0x3ff217[_0x1cc2aa(0x1a8)](_0x5560dc=>_0x5560dc[_0x1cc2aa(0x142)]===_0x184790['rangeId']&&w(_0x5560dc));if(!_0x4f088d||!((_0x5963fd=_0x184790[_0x1cc2aa(0x115)])!=null&&_0x5963fd['formulas'][_0x184790[_0x1cc2aa(0x142)]]))return null;let _0x34e693=Ue(_0x184790['resource']);return _0x34e693[_0x1cc2aa(0x106)][_0x184790[_0x1cc2aa(0x142)]]=_0x4fc8e1[_0x1cc2aa(0x107)](_0x184790[_0x1cc2aa(0x1ab)]),{'nextDocumentData':_0xfcace5,'nextResource':_0x34e693,'cursorOffset':_0x4f088d[_0x1cc2aa(0xdc)]+0x1};}function ze(_0x5519e7){const _0x38992e=_0x15ff4a;let _0x28824a=_0x4fc8e1[_0x38992e(0x107)](_0x5519e7[_0x38992e(0xe4)]),_0x53d6e8=Je(_0x28824a,_0x5519e7[_0x38992e(0x142)],_0x5519e7[_0x38992e(0xe6)]??'');if(_0x53d6e8==null)return null;let _0x58a8c4=Ue(_0x5519e7['resource']);return delete _0x58a8c4['formulas'][_0x5519e7[_0x38992e(0x142)]],{'nextDocumentData':_0x28824a,'nextResource':_0x58a8c4,'cursorOffset':_0x53d6e8};}function Be(_0xd90224,_0x28bd17){const _0x21111c=_0x15ff4a;var _0x5d9bf8;let _0x654a2c=_0x4fc8e1[_0x21111c(0x107)](_0xd90224),_0x462485=_0x654a2c[_0x21111c(0x135)];if(!_0x462485)return _0x654a2c;let _0x2fed89=new Map(_0x28bd17[_0x21111c(0x120)](_0x55b1ea=>[_0x55b1ea[_0x21111c(0x142)],_0x55b1ea[_0x21111c(0xe6)]])),_0x840954=((_0x5d9bf8=_0x462485['customRanges'])==null?void 0x0:_0x5d9bf8[_0x21111c(0xfd)](_0x385d8f=>w(_0x385d8f)&&_0x2fed89[_0x21111c(0x184)](_0x385d8f[_0x21111c(0x142)]))[_0x21111c(0xfc)]((_0x2117c5,_0xa881a1)=>_0xa881a1[_0x21111c(0x14c)]-_0x2117c5[_0x21111c(0x14c)]))??[];for(let _0x4393be of _0x840954)Je(_0x654a2c,_0x4393be[_0x21111c(0x142)],_0x2fed89[_0x21111c(0x1ba)](_0x4393be['rangeId'])??'');return _0x654a2c;}function w(_0x13afca){const _0x509f41=_0x15ff4a;var _0x9b02ea;return(_0x13afca==null?void 0x0:_0x13afca[_0x509f41(0xf1)])===_0x139ae4[_0x509f41(0x177)]&&_0x13afca[_0x509f41(0xef)]===!0x0&&((_0x9b02ea=_0x13afca[_0x509f41(0x121)])==null?void 0x0:_0x9b02ea[_0x509f41(0x13c)])===_0x509f41(0x1c5);}function T(_0x561296,_0x5bb11a){const _0x414b8b=_0x15ff4a;var _0x2aaf97;return _0x561296==null||(_0x2aaf97=_0x561296[_0x414b8b(0x101)])==null?void 0x0:_0x2aaf97[_0x414b8b(0x1a8)](_0x560ece=>_0x560ece['rangeId']===_0x5bb11a&&w(_0x560ece));}function Ve(_0x176d97,_0x2017b9,_0x115691){const _0x20ccf5=_0x15ff4a;if(_0x2017b9===_0x115691){if(Ie['has'](_0x176d97[_0x20ccf5(0xcb)][_0x2017b9]))throw new C();}else{for(let _0xc71586=_0x2017b9;_0xc71586<_0x115691;_0xc71586++)if(_0x176d97[_0x20ccf5(0xcb)][_0xc71586]===_0x246953['PARAGRAPH']||Ie[_0x20ccf5(0x184)](_0x176d97[_0x20ccf5(0xcb)][_0xc71586]))throw new C();}}function He(_0x34fc9e,_0x42d4da){return{'startIndex':_0x42d4da,'endIndex':_0x42d4da,'rangeId':_0x34fc9e,'rangeType':_0x139ae4['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':je}};}function Ue(_0x40abdf){const _0x1fed86=_0x15ff4a;return _0x40abdf?_0x4fc8e1[_0x1fed86(0x107)](_0x40abdf):b();}function We(_0x43ed2d,_0x13ac1e,_0x1d77dd){const _0x296adc=_0x15ff4a;let _0x3fda00=Ke(_0x43ed2d),_0x4c9286=_0x13ac1e??_0x3fda00,_0x49e44d=_0x1d77dd??_0x4c9286;return{'startOffset':Ge(Math[_0x296adc(0xd4)](_0x4c9286,_0x49e44d),_0x3fda00),'endOffset':Ge(Math[_0x296adc(0x129)](_0x4c9286,_0x49e44d),_0x3fda00)};}function Ge(_0x1887e7,_0x37e47e){return Math['max'](0x0,Math['min'](_0x1887e7,_0x37e47e));}function Ke(_0x4b38b8){const _0x27d093=_0x15ff4a;return _0x4b38b8['dataStream'][_0x27d093(0x1c7)](''+_0x246953[_0x27d093(0x1a2)]+_0x246953[_0x27d093(0xf5)])?Math[_0x27d093(0x129)](0x0,_0x4b38b8['dataStream'][_0x27d093(0xcd)]-0x2):_0x4b38b8[_0x27d093(0xcb)][_0x27d093(0x1c7)](_0x246953[_0x27d093(0xf5)])?Math['max'](0x0,_0x4b38b8[_0x27d093(0xcb)]['length']-0x1):_0x4b38b8[_0x27d093(0xcb)]['length'];}function qe(_0x558ca6,_0x42b4c5,_0x48c453,_0x21d8a5){_0x48c453>_0x42b4c5&&Xe(_0x558ca6,_0x42b4c5,_0x48c453),Ye(_0x558ca6,_0x42b4c5,_0x21d8a5);}function Je(_0x25f9b4,_0x162791,_0x1951f8){const _0x22090c=_0x15ff4a;var _0x1a7790,_0x280f84;let _0x530cf1=O(_0x25f9b4),_0x2f0cba=(_0x1a7790=_0x530cf1[_0x22090c(0x101)])==null?void 0x0:_0x1a7790[_0x22090c(0x1a8)](_0x4a765e=>_0x4a765e[_0x22090c(0x142)]===_0x162791&&w(_0x4a765e));if(!_0x2f0cba)return null;let _0x1fd924=_0x48951d(_0x2f0cba);return qe(_0x530cf1,_0x1fd924['startOffset'],_0x1fd924[_0x22090c(0x11c)],_0x1951f8),_0x530cf1[_0x22090c(0x101)]=(_0x280f84=_0x530cf1[_0x22090c(0x101)])==null?void 0x0:_0x280f84[_0x22090c(0xfd)](_0x61e26f=>_0x61e26f[_0x22090c(0x142)]!==_0x162791),_0x1fd924[_0x22090c(0x171)]+_0x1951f8[_0x22090c(0xcd)];}function Ye(_0x20f165,_0x180d53,_0x32553b){const _0x2ad807=_0x15ff4a;_0x32553b&&(_0x20f165['dataStream']=''+_0x20f165[_0x2ad807(0xcb)][_0x2ad807(0x116)](0x0,_0x180d53)+_0x32553b+_0x20f165[_0x2ad807(0xcb)][_0x2ad807(0x116)](_0x180d53),Ze(_0x20f165,_0x180d53,_0x32553b[_0x2ad807(0xcd)]));}function Xe(_0x1a44a2,_0x3c1c21,_0x1fe154){const _0x68e79c=_0x15ff4a;let _0x1e155a=_0x1fe154-_0x3c1c21;_0x1a44a2[_0x68e79c(0xcb)]=''+_0x1a44a2[_0x68e79c(0xcb)]['slice'](0x0,_0x3c1c21)+_0x1a44a2['dataStream'][_0x68e79c(0x116)](_0x1fe154),Qe(_0x1a44a2,_0x3c1c21,_0x1e155a);}function Ze(_0x1d00aa,_0x9eb13c,_0x4aeb5e){const _0x42b072=_0x15ff4a;_0x1d00aa[_0x42b072(0x160)]=$e(_0x1d00aa[_0x42b072(0x160)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x1b1)]=$e(_0x1d00aa[_0x42b072(0x1b1)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x1bc)]=$e(_0x1d00aa[_0x42b072(0x1bc)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x156)]=tt(_0x1d00aa[_0x42b072(0x156)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0xd0)]=nt(_0x1d00aa[_0x42b072(0xd0)],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0xe0)]=E(_0x1d00aa['columnGroups'],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x101)]=E(_0x1d00aa[_0x42b072(0x101)],_0x9eb13c,_0x4aeb5e),_0x1d00aa['customDecorations']=E(_0x1d00aa['customDecorations'],_0x9eb13c,_0x4aeb5e),_0x1d00aa[_0x42b072(0x15a)]=E(_0x1d00aa[_0x42b072(0x15a)],_0x9eb13c,_0x4aeb5e);}function Qe(_0x3337c2,_0x46313b,_0x2c911f){const _0x51ce41=_0x15ff4a;var _0x43bff5,_0xcbb644;_0x3337c2[_0x51ce41(0x160)]=et(_0x3337c2['paragraphs'],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x1b1)]=et(_0x3337c2['sectionBreaks'],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x1bc)]=et(_0x3337c2[_0x51ce41(0x1bc)],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x156)]=(_0x43bff5=rt((_0xcbb644=_0x3337c2[_0x51ce41(0x156)])==null?void 0x0:_0xcbb644[_0x51ce41(0x120)](_0x316185=>({..._0x316185,'startIndex':_0x316185['st'],'endIndex':_0x316185['ed']})),_0x46313b,_0x2c911f))==null?void 0x0:_0x43bff5['map'](_0x1d0338=>{let {startIndex:_0x4b6be0,endIndex:_0x5ca453,..._0x4e24d2}=_0x1d0338;return{..._0x4e24d2,'st':_0x4b6be0,'ed':_0x5ca453};}),_0x3337c2[_0x51ce41(0xd0)]=rt(_0x3337c2[_0x51ce41(0xd0)],_0x46313b,_0x2c911f),_0x3337c2['columnGroups']=D(_0x3337c2[_0x51ce41(0xe0)],_0x46313b,_0x2c911f),_0x3337c2['customRanges']=D(_0x3337c2[_0x51ce41(0x101)],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x122)]=D(_0x3337c2['customDecorations'],_0x46313b,_0x2c911f),_0x3337c2[_0x51ce41(0x15a)]=D(_0x3337c2[_0x51ce41(0x15a)],_0x46313b,_0x2c911f);}function $e(_0x31d0c5,_0x32738e,_0xadab38){const _0x209189=_0x15ff4a;return _0x31d0c5==null?void 0x0:_0x31d0c5[_0x209189(0x120)](_0x25c060=>_0x25c060[_0x209189(0x14c)]>=_0x32738e?{..._0x25c060,'startIndex':_0x25c060[_0x209189(0x14c)]+_0xadab38}:_0x25c060);}function et(_0x667c40,_0x158fce,_0x50063d){const _0x31e211=_0x15ff4a;let _0x5848b3=_0x158fce+_0x50063d;return _0x667c40==null?void 0x0:_0x667c40[_0x31e211(0x120)](_0x1d960a=>_0x1d960a[_0x31e211(0x14c)]>=_0x158fce&&_0x1d960a[_0x31e211(0x14c)]<_0x5848b3?null:_0x1d960a[_0x31e211(0x14c)]>=_0x5848b3?{..._0x1d960a,'startIndex':_0x1d960a[_0x31e211(0x14c)]-_0x50063d}:_0x1d960a)[_0x31e211(0xfd)](_0x28c604=>_0x28c604!=null);}function tt(_0x1cc3d0,_0x36d696,_0x44014a){return _0x1cc3d0==null?void 0x0:_0x1cc3d0['map'](_0x184feb=>_0x184feb['st']>=_0x36d696?{..._0x184feb,'st':_0x184feb['st']+_0x44014a,'ed':_0x184feb['ed']+_0x44014a}:_0x184feb['ed']>_0x36d696?{..._0x184feb,'ed':_0x184feb['ed']+_0x44014a}:_0x184feb);}function E(_0xd4f9b9,_0x577638,_0x218e2f){const _0x22848e=_0x15ff4a;return _0xd4f9b9==null?void 0x0:_0xd4f9b9[_0x22848e(0x120)](_0x166453=>_0x10b131(_0x166453,_0x577638,_0x218e2f));}function _0x5a0e(_0xfaf3cf,_0x3f03ff){_0xfaf3cf=_0xfaf3cf-0xcb;const _0x4b4d41=_0x4b4d();let _0x5a0e18=_0x4b4d41[_0xfaf3cf];return _0x5a0e18;}function nt(_0xcd82e6,_0x52edb2,_0x55df08){const _0xb1b930=_0x15ff4a;return _0xcd82e6==null?void 0x0:_0xcd82e6[_0xb1b930(0x120)](_0x5ae9c2=>_0x377b49(_0x5ae9c2,_0x52edb2,_0x55df08));}function D(_0x24f58d,_0x578aef,_0x1a372c){const _0x2b586c=_0x15ff4a;return _0x24f58d==null?void 0x0:_0x24f58d[_0x2b586c(0x120)](_0x2dbc3c=>_0x6038f1(_0x2dbc3c,_0x578aef,_0x1a372c))[_0x2b586c(0xfd)](_0xc87e5f=>_0xc87e5f!=null);}function rt(_0xba4c9,_0x594555,_0x360bc5){const _0x5548aa=_0x15ff4a;return _0xba4c9==null?void 0x0:_0xba4c9[_0x5548aa(0x120)](_0x2553d4=>_0x563ad3(_0x2553d4,_0x594555,_0x360bc5))[_0x5548aa(0xfd)](_0x2180fd=>_0x2180fd!=null);}function O(_0x16ae9d){const _0x1f7f4e=_0x15ff4a;if(!_0x16ae9d[_0x1f7f4e(0x135)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x16ae9d[_0x1f7f4e(0x135)];}function k(_0x52ffb0){'@babel/helpers - typeof';const _0x327b31=_0x15ff4a;return k=typeof Symbol==_0x327b31(0xd5)&&typeof Symbol['iterator']==_0x327b31(0x100)?function(_0x294fae){return typeof _0x294fae;}:function(_0x20ab0e){const _0x3cb835=_0x327b31;return _0x20ab0e&&typeof Symbol==_0x3cb835(0xd5)&&_0x20ab0e[_0x3cb835(0x14a)]===Symbol&&_0x20ab0e!==Symbol['prototype']?_0x3cb835(0x100):typeof _0x20ab0e;},k(_0x52ffb0);}function it(_0x138bec,_0x3e79c5){const _0x2032fc=_0x15ff4a;if(k(_0x138bec)!=_0x2032fc(0x1b3)||!_0x138bec)return _0x138bec;var _0xb4859d=_0x138bec[Symbol[_0x2032fc(0xfb)]];if(_0xb4859d!==void 0x0){var _0x44766b=_0xb4859d['call'](_0x138bec,_0x3e79c5||_0x2032fc(0x179));if(k(_0x44766b)!=_0x2032fc(0x1b3))return _0x44766b;throw TypeError(_0x2032fc(0x15e));}return(_0x3e79c5===_0x2032fc(0x1b9)?String:Number)(_0x138bec);}function at(_0x12c4d5){const _0x44b9d8=_0x15ff4a;var _0x3dd3b0=it(_0x12c4d5,_0x44b9d8(0x1b9));return k(_0x3dd3b0)==_0x44b9d8(0x100)?_0x3dd3b0:_0x3dd3b0+'';}function A(_0xcb365d,_0x5920c5,_0x51bbe4){const _0x467e21=_0x15ff4a;return(_0x5920c5=at(_0x5920c5))in _0xcb365d?Object[_0x467e21(0xfe)](_0xcb365d,_0x5920c5,{'value':_0x51bbe4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xcb365d[_0x5920c5]=_0x51bbe4,_0xcb365d;}var j=class extends _0x284207{constructor(..._0x3f935b){const _0x1612df=_0x15ff4a;super(..._0x3f935b),A(this,'_resources',new Map()),A(this,'_rawResources',new Map()),A(this,'_loadErrors',new Map()),A(this,_0x1612df(0x11d),new _0xb8a1ef()),A(this,_0x1612df(0x148),this[_0x1612df(0x11d)]['asObservable']());}[_0x15ff4a(0xdd)](_0x541a25,_0xd92d5f){const _0x3b90b1=_0x15ff4a;var _0x428c28;let _0x2b4a36=(_0x428c28=this[_0x3b90b1(0x164)][_0x3b90b1(0x1ba)](_0x541a25))==null?void 0x0:_0x428c28['formulas'][_0xd92d5f];return _0x2b4a36?_0x4fc8e1[_0x3b90b1(0x107)](_0x2b4a36):void 0x0;}['getFormulas'](_0x536127){const _0x1a4b6a=_0x15ff4a;var _0x1b8d2e;return _0x4fc8e1[_0x1a4b6a(0x107)](((_0x1b8d2e=this[_0x1a4b6a(0x164)][_0x1a4b6a(0x1ba)](_0x536127))==null?void 0x0:_0x1b8d2e['formulas'])??{});}[_0x15ff4a(0x112)](_0x1206a7){const _0x227c32=_0x15ff4a;let _0x1df6e9=this[_0x227c32(0x164)][_0x227c32(0x1ba)](_0x1206a7);return _0x1df6e9?_0x4fc8e1[_0x227c32(0x107)](_0x1df6e9):void 0x0;}[_0x15ff4a(0x131)](_0x5b8047,_0x1ed76a,_0x553b32){const _0x456b10=_0x15ff4a;return this[_0x456b10(0x19a)](_0x5b8047,{[_0x1ed76a]:_0x553b32});}[_0x15ff4a(0x193)](_0x96a0e3,_0x24777e){const _0xbc0f9f=_0x15ff4a;return this[_0xbc0f9f(0x1a1)][_0xbc0f9f(0x184)](_0x96a0e3)||!x(_0x24777e)?!0x1:(this['_resources']['set'](_0x96a0e3,{'formulas':_0x4fc8e1[_0xbc0f9f(0x107)](_0x24777e['formulas'])}),this[_0xbc0f9f(0x11d)][_0xbc0f9f(0x1b0)]({'unitId':_0x96a0e3}),!0x0);}[_0x15ff4a(0x19a)](_0x4be48b,_0x49440d){const _0x39e371=_0x15ff4a;if(this[_0x39e371(0x1a1)][_0x39e371(0x184)](_0x4be48b)||!Object[_0x39e371(0x16c)](_0x49440d)['length']||!x({'formulas':_0x49440d}))return!0x1;let _0x304468=this['_resources']['get'](_0x4be48b)??b(),_0x729f20=_0x4fc8e1['deepClone'](_0x304468);return Object[_0x39e371(0xd7)](_0x729f20[_0x39e371(0x106)],_0x4fc8e1[_0x39e371(0x107)](_0x49440d)),this[_0x39e371(0x164)][_0x39e371(0x11a)](_0x4be48b,_0x729f20),this['_change$'][_0x39e371(0x1b0)]({'unitId':_0x4be48b,'rangeIds':Object['keys'](_0x49440d)}),!0x0;}[_0x15ff4a(0x141)](_0x357079,_0x1f8310){const _0x2503e0=_0x15ff4a;if(this['_loadErrors'][_0x2503e0(0x184)](_0x357079))return!0x1;let _0x51c508=this[_0x2503e0(0x164)][_0x2503e0(0x1ba)](_0x357079);if(!(_0x51c508!=null&&_0x51c508[_0x2503e0(0x106)][_0x1f8310]))return!0x1;let _0x3434d=_0x4fc8e1[_0x2503e0(0x107)](_0x51c508);return delete _0x3434d[_0x2503e0(0x106)][_0x1f8310],this[_0x2503e0(0x164)][_0x2503e0(0x11a)](_0x357079,_0x3434d),this['_change$'][_0x2503e0(0x1b0)]({'unitId':_0x357079,'rangeIds':[_0x1f8310]}),!0x0;}[_0x15ff4a(0x11e)](_0x5dfa3e,_0x4c474d){const _0x3f4903=_0x15ff4a;return x(_0x4c474d)?(this[_0x3f4903(0x164)]['set'](_0x5dfa3e,{'formulas':_0x4fc8e1['deepClone'](_0x4c474d[_0x3f4903(0x106)])}),this[_0x3f4903(0x175)]['delete'](_0x5dfa3e),this[_0x3f4903(0x1a1)][_0x3f4903(0x18a)](_0x5dfa3e),this[_0x3f4903(0x11d)][_0x3f4903(0x1b0)]({'unitId':_0x5dfa3e}),!0x0):(this['_preserveInvalid'](_0x5dfa3e,_0x4c474d,_0x3f4903(0x1ad)),!0x1);}['serialize'](_0x590939){const _0x4253f5=_0x15ff4a;let _0x33ec27=this[_0x4253f5(0x164)][_0x4253f5(0x1ba)](_0x590939);return _0x33ec27?_0x4fc8e1['deepClone'](_0x33ec27):this[_0x4253f5(0x175)][_0x4253f5(0x184)](_0x590939)?_0x4fc8e1['deepClone'](this[_0x4253f5(0x175)][_0x4253f5(0x1ba)](_0x590939)):b();}[_0x15ff4a(0x117)](_0xdf9640){const _0x59c70e=_0x15ff4a;return this['_loadErrors'][_0x59c70e(0x1ba)](_0xdf9640);}[_0x15ff4a(0x124)](_0x5287c3){const _0x3ab74a=_0x15ff4a;this[_0x3ab74a(0x164)][_0x3ab74a(0x18a)](_0x5287c3),this[_0x3ab74a(0x175)][_0x3ab74a(0x18a)](_0x5287c3),this['_loadErrors'][_0x3ab74a(0x18a)](_0x5287c3),this[_0x3ab74a(0x11d)][_0x3ab74a(0x1b0)]({'unitId':_0x5287c3});}[_0x15ff4a(0x19e)](){const _0x4eb8ea=_0x15ff4a;this['_resources'][_0x4eb8ea(0x147)](),this[_0x4eb8ea(0x175)][_0x4eb8ea(0x147)](),this[_0x4eb8ea(0x1a1)][_0x4eb8ea(0x147)](),this[_0x4eb8ea(0x11d)][_0x4eb8ea(0x11b)](),super['dispose']();}[_0x15ff4a(0x110)](_0x3e0dc1,_0x461fd8,_0x148fc2){const _0x3ec7f9=_0x15ff4a;this['_resources'][_0x3ec7f9(0x18a)](_0x3e0dc1),this[_0x3ec7f9(0x175)][_0x3ec7f9(0x11a)](_0x3e0dc1,_0x4fc8e1['deepClone'](_0x461fd8)),this[_0x3ec7f9(0x1a1)]['set'](_0x3e0dc1,_0x148fc2),this['_change$'][_0x3ec7f9(0x1b0)]({'unitId':_0x3e0dc1});}};let ot=function(_0x389712){const _0x17bedf=_0x15ff4a;return _0x389712['EMPTY']=_0x17bedf(0x190),_0x389712['PENDING']=_0x17bedf(0xec),_0x389712['SUCCESS']=_0x17bedf(0x13d),_0x389712[_0x17bedf(0x12b)]=_0x17bedf(0x178),_0x389712;}({});function M(_0x344246,_0x316996){return function(_0x4108ba,_0x4c3ec1){_0x316996(_0x4108ba,_0x4c3ec1,_0x344246);};}function N(_0x1eaf61,_0x43de90,_0x396c78,_0x3261f5){const _0x182fa5=_0x15ff4a;var _0x13df9b=arguments[_0x182fa5(0xcd)],_0x12e490=_0x13df9b<0x3?_0x43de90:_0x3261f5===null?_0x3261f5=Object[_0x182fa5(0xce)](_0x43de90,_0x396c78):_0x3261f5,_0x1422b7;if(typeof Reflect==_0x182fa5(0x1b3)&&typeof Reflect['decorate']=='function')_0x12e490=Reflect[_0x182fa5(0x119)](_0x1eaf61,_0x43de90,_0x396c78,_0x3261f5);else{for(var _0x19f765=_0x1eaf61[_0x182fa5(0xcd)]-0x1;_0x19f765>=0x0;_0x19f765--)(_0x1422b7=_0x1eaf61[_0x19f765])&&(_0x12e490=(_0x13df9b<0x3?_0x1422b7(_0x12e490):_0x13df9b>0x3?_0x1422b7(_0x43de90,_0x396c78,_0x12e490):_0x1422b7(_0x43de90,_0x396c78))||_0x12e490);}return _0x13df9b>0x3&&_0x12e490&&Object[_0x182fa5(0xfe)](_0x43de90,_0x396c78,_0x12e490),_0x12e490;}let P=class extends _0x284207{constructor(_0x4a0044,_0x48f98d,_0xc8bb3a){const _0x5f39d2=_0x15ff4a;super(),this['_model']=_0x4a0044,this['_registrationService']=_0x48f98d,this[_0x5f39d2(0x102)]=_0xc8bb3a,A(this,_0x5f39d2(0x118),new Map()),A(this,_0x5f39d2(0x19b),new Map()),A(this,_0x5f39d2(0x149),new _0xb8a1ef()),A(this,_0x5f39d2(0x16e),this[_0x5f39d2(0x149)][_0x5f39d2(0x1bb)]()),this[_0x5f39d2(0x1b5)](this[_0x5f39d2(0x143)][_0x5f39d2(0x174)][_0x5f39d2(0x132)](_0x168693=>{const _0x76d416=_0x5f39d2;for(let _0x133dab of Object[_0x76d416(0x114)](_0x168693))for(let _0x440e24 of Object[_0x76d416(0x114)](_0x133dab))_0x440e24['forEach'](_0x1dafd3=>this['_updateFormulaResult'](_0x1dafd3));}));}[_0x15ff4a(0x176)](_0x23247f){const _0x31ac9b=_0x15ff4a;var _0x36690c;let _0x35dfc1=_0x23247f[_0x31ac9b(0x14d)](),_0x23de99=((_0x36690c=_0x23247f[_0x31ac9b(0xf9)]()['body'])==null||(_0x36690c=_0x36690c[_0x31ac9b(0x101)])==null?void 0x0:_0x36690c[_0x31ac9b(0xfd)](w))??[],_0xbe8b5d=this[_0x31ac9b(0x194)][_0x31ac9b(0x183)](_0x35dfc1),_0x4489bc=new Set();for(let _0x26f29b of _0x23de99){let _0x32e902=_0xbe8b5d[_0x26f29b[_0x31ac9b(0x142)]];_0x32e902&&(_0x4489bc[_0x31ac9b(0x10a)](F(_0x35dfc1,_0x26f29b[_0x31ac9b(0x142)])),this[_0x31ac9b(0xd2)]({'unitId':_0x35dfc1,'rangeId':_0x26f29b['rangeId']},_0x32e902));}for(let _0x46acb1 of Array['from'](this[_0x31ac9b(0x118)][_0x31ac9b(0x114)]()))_0x46acb1[_0x31ac9b(0x12e)]===_0x35dfc1&&!_0x4489bc[_0x31ac9b(0x184)](F(_0x46acb1[_0x31ac9b(0x12e)],_0x46acb1[_0x31ac9b(0x142)]))&&this[_0x31ac9b(0x113)](_0x46acb1);}[_0x15ff4a(0xd2)](_0xbd96b9,_0x34e39b){const _0x24cdb=_0x15ff4a;let _0x54ca3b=F(_0xbd96b9[_0x24cdb(0x12e)],_0xbd96b9['rangeId']),_0x5948b5=this['_registrations'][_0x24cdb(0x1ba)](_0x54ca3b),_0x43c8d2=this[_0x24cdb(0x102)]['getRevision'](_0xbd96b9[_0x24cdb(0x12e)]);if(_0x5948b5&&_0x5948b5[_0x24cdb(0x1ab)]['formula']===_0x34e39b[_0x24cdb(0x1c2)]&&_0x5948b5[_0x24cdb(0xe7)]===_0x43c8d2){_0x5948b5[_0x24cdb(0x1ab)]=_0x34e39b;let _0x223895=_0x5948b5['formulaId']?this[_0x24cdb(0x143)]['getFormulaValueSync'](_0x5948b5['unitId'],_0x5948b5['unitId'],_0x5948b5[_0x24cdb(0x1c1)])??void 0x0:void 0x0;_0x5948b5[_0x24cdb(0x146)]=_0x223895,this[_0x24cdb(0x162)](_0x54ca3b,st(_0x34e39b,_0x223895));return;}_0x5948b5!=null&&_0x5948b5[_0x24cdb(0x1c1)]&&this['_deleteRegistration'](_0x5948b5);let _0x2d5051={..._0xbd96b9,'config':_0x34e39b,'referenceRevision':_0x43c8d2,'presentation':st(_0x34e39b,void 0x0)};if(this[_0x24cdb(0x118)][_0x24cdb(0x11a)](_0x54ca3b,_0x2d5051),!_0x34e39b[_0x24cdb(0x1c2)]['trim']())return;let _0x51629e=this[_0x24cdb(0x143)]['registerFormulaWithRange'](_0xbd96b9['unitId'],_0xbd96b9[_0x24cdb(0x12e)],_0x34e39b['formula'],void 0x0,{'rangeId':_0xbd96b9[_0x24cdb(0x142)]},_0x13c14f['DOC'],_0xbd96b9['rangeId']);_0x2d5051[_0x24cdb(0x1c1)]=_0x51629e,this[_0x24cdb(0x19b)]['set'](_0x51629e,_0x54ca3b);}[_0x15ff4a(0x113)](_0x16dd0b){const _0x494efb=_0x15ff4a;let _0x5329da=F(_0x16dd0b[_0x494efb(0x12e)],_0x16dd0b[_0x494efb(0x142)]),_0x5610b2=this['_registrations'][_0x494efb(0x1ba)](_0x5329da);_0x5610b2&&(this[_0x494efb(0x109)](_0x5610b2),this[_0x494efb(0x118)][_0x494efb(0x18a)](_0x5329da));}['unregisterUnit'](_0x31567b){const _0x25bbcb=_0x15ff4a;for(let _0x3d23b3 of Array[_0x25bbcb(0x161)](this[_0x25bbcb(0x118)][_0x25bbcb(0x114)]()))_0x3d23b3['unitId']===_0x31567b&&this['unregister'](_0x3d23b3);}[_0x15ff4a(0x137)](_0x4455a8){const _0x5258dd=_0x15ff4a;var _0x22c15a;return(_0x22c15a=this['_registrations'][_0x5258dd(0x1ba)](F(_0x4455a8[_0x5258dd(0x12e)],_0x4455a8[_0x5258dd(0x142)])))==null?void 0x0:_0x22c15a[_0x5258dd(0x195)];}['getResult'](_0x264039){const _0x2ce168=_0x15ff4a;let _0x282471=this['_registrations'][_0x2ce168(0x1ba)](F(_0x264039[_0x2ce168(0x12e)],_0x264039['rangeId']));return _0x282471?I(_0x282471):void 0x0;}[_0x15ff4a(0x15d)](){const _0x3d07d1=_0x15ff4a;return Array[_0x3d07d1(0x161)](this['_registrations']['values'](),_0x4e6745=>({'identity':{'unitId':_0x4e6745[_0x3d07d1(0x12e)],'rangeId':_0x4e6745[_0x3d07d1(0x142)]},'config':_0x4e6745[_0x3d07d1(0x1ab)],'referenceRevision':_0x4e6745[_0x3d07d1(0xe7)],..._0x4e6745[_0x3d07d1(0x146)]?{'liveResult':_0x4e6745[_0x3d07d1(0x146)]}:null}));}['dispose'](){const _0x2c0afd=_0x15ff4a;for(let _0x5b42b3 of this[_0x2c0afd(0x118)][_0x2c0afd(0x114)]())this[_0x2c0afd(0x109)](_0x5b42b3);this[_0x2c0afd(0x118)][_0x2c0afd(0x147)](),this['_formulaKeys']['clear'](),this[_0x2c0afd(0x149)][_0x2c0afd(0x11b)](),super[_0x2c0afd(0x19e)]();}[_0x15ff4a(0x181)](_0x511d43){const _0x137f0a=_0x15ff4a;let _0x3672da=this[_0x137f0a(0x19b)][_0x137f0a(0x1ba)](_0x511d43[_0x137f0a(0x1c1)]),_0x220ca8=_0x3672da?this['_registrations'][_0x137f0a(0x1ba)](_0x3672da):void 0x0;_0x3672da&&_0x220ca8&&(_0x220ca8[_0x137f0a(0x146)]=_0x511d43,this[_0x137f0a(0x162)](_0x3672da,st(_0x220ca8[_0x137f0a(0x1ab)],_0x511d43)));}[_0x15ff4a(0x162)](_0xdb45c8,_0x2df0d1){const _0x4ee555=_0x15ff4a;var _0xd97d0,_0x4a8174;let _0x12e0be=this[_0x4ee555(0x118)][_0x4ee555(0x1ba)](_0xdb45c8);if(!_0x12e0be||ct(_0x12e0be[_0x4ee555(0x195)],_0x2df0d1))return;let _0x4a8c1d=_0x12e0be['presentation'],_0x1d0642=I(_0x12e0be);_0x12e0be[_0x4ee555(0x195)]=_0x2df0d1,this[_0x4ee555(0x149)]['next']({'unitId':_0x12e0be[_0x4ee555(0x12e)],'rangeId':_0x12e0be['rangeId'],'presentation':_0x2df0d1,'previousPresentation':_0x4a8c1d,'result':I(_0x12e0be),'previousResult':{..._0x1d0642,..._0x4a8c1d,'value':(_0xd97d0=_0x4a8c1d['cell'])==null?void 0x0:_0xd97d0['v'],'valueType':((_0x4a8174=_0x4a8c1d[_0x4ee555(0x13b)])==null?void 0x0:_0x4a8174['t'])??void 0x0}});}['_deleteRegistration'](_0x5eda82){const _0x13e9e4=_0x15ff4a;_0x5eda82[_0x13e9e4(0x1c1)]&&(this[_0x13e9e4(0x143)][_0x13e9e4(0x197)](_0x5eda82[_0x13e9e4(0x12e)],_0x5eda82[_0x13e9e4(0x12e)],[_0x5eda82['formulaId']]),this['_formulaKeys'][_0x13e9e4(0x18a)](_0x5eda82[_0x13e9e4(0x1c1)]));}};P=N([M(0x0,_0x36a610(j)),M(0x1,_0x36a610(_0x540fe4)),M(0x2,_0x36a610(_0xc15eb3))],P);function F(_0x5d87bf,_0x26a51a){return _0x5d87bf+'\x00'+_0x26a51a;}function st(_0x31b5a2,_0x4831cf){const _0x237e5e=_0x15ff4a;return _0x4c2bd5({'numberFormat':_0x31b5a2[_0x237e5e(0x17d)],'lastValue':_0x31b5a2[_0x237e5e(0xeb)],'result':_0x4831cf});}function I(_0x764166){const _0x5b2a56=_0x15ff4a;var _0x2a6c92,_0x36d095,_0x52d7bd;let _0x5c1f88=_0x764166[_0x5b2a56(0x195)],_0x523ebc=_0x764166['config']['formula'][_0x5b2a56(0x12d)]()?_0x5c1f88[_0x5b2a56(0x1a4)]||_0x5c1f88[_0x5b2a56(0x13b)]==null?_0x5b2a56(0xec):((_0x2a6c92=_0x764166[_0x5b2a56(0x146)])==null?void 0x0:_0x2a6c92[_0x5b2a56(0xee)])===_0x462723[_0x5b2a56(0x12b)]?_0x5b2a56(0x178):'success':_0x5b2a56(0x190);return{..._0x5c1f88,'status':_0x523ebc,'value':(_0x36d095=_0x5c1f88[_0x5b2a56(0x13b)])==null?void 0x0:_0x36d095['v'],'valueType':((_0x52d7bd=_0x5c1f88[_0x5b2a56(0x13b)])==null?void 0x0:_0x52d7bd['t'])??void 0x0};}function ct(_0x59b94c,_0x33df5f){const _0x520ed6=_0x15ff4a;var _0x29bd85,_0x152734,_0x56ae02,_0x3c4f14;return _0x59b94c[_0x520ed6(0xe6)]===_0x33df5f[_0x520ed6(0xe6)]&&_0x59b94c[_0x520ed6(0x1bd)]===_0x33df5f[_0x520ed6(0x1bd)]&&_0x59b94c[_0x520ed6(0x167)]===_0x33df5f[_0x520ed6(0x167)]&&_0x59b94c[_0x520ed6(0x134)]===_0x33df5f[_0x520ed6(0x134)]&&_0x59b94c[_0x520ed6(0x1a4)]===_0x33df5f[_0x520ed6(0x1a4)]&&((_0x29bd85=_0x59b94c[_0x520ed6(0x13b)])==null?void 0x0:_0x29bd85['t'])===((_0x152734=_0x33df5f[_0x520ed6(0x13b)])==null?void 0x0:_0x152734['t'])&&Object['is']((_0x56ae02=_0x59b94c[_0x520ed6(0x13b)])==null?void 0x0:_0x56ae02['v'],(_0x3c4f14=_0x33df5f['cell'])==null?void 0x0:_0x3c4f14['v']);}const lt={'id':'docs-formula.mutation.set-formula','type':_0x6c9543[_0x15ff4a(0x185)],'handler':(_0x4499da,_0x267dbe)=>!(_0x267dbe!=null&&_0x267dbe['unitId'])||!_0x267dbe[_0x15ff4a(0x142)]||!_0x267dbe['config']?!0x1:_0x4499da[_0x15ff4a(0x1ba)](j)[_0x15ff4a(0x131)](_0x267dbe[_0x15ff4a(0x12e)],_0x267dbe[_0x15ff4a(0x142)],_0x267dbe[_0x15ff4a(0x1ab)])},ut={'id':'docs-formula.mutation.remove-formula','type':_0x6c9543[_0x15ff4a(0x185)],'handler':(_0x143344,_0x1ca35c)=>!(_0x1ca35c!=null&&_0x1ca35c[_0x15ff4a(0x12e)])||!_0x1ca35c[_0x15ff4a(0x142)]?!0x1:_0x143344[_0x15ff4a(0x1ba)](j)[_0x15ff4a(0x141)](_0x1ca35c[_0x15ff4a(0x12e)],_0x1ca35c[_0x15ff4a(0x142)])},L={'id':_0x15ff4a(0x180),'type':_0x6c9543[_0x15ff4a(0x185)],'handler':(_0x2b9f5d,_0x30f5ed)=>!(_0x30f5ed!=null&&_0x30f5ed['unitId'])||!_0x30f5ed[_0x15ff4a(0x115)]?!0x1:_0x2b9f5d[_0x15ff4a(0x1ba)](j)[_0x15ff4a(0x193)](_0x30f5ed['unitId'],_0x30f5ed[_0x15ff4a(0x115)])},R={'id':_0x15ff4a(0xf8),'type':_0x6c9543['MUTATION'],'handler':(_0x1a7877,_0x1cf0d1)=>{const _0x1d643c=_0x15ff4a;if(!(_0x1cf0d1!=null&&_0x1cf0d1[_0x1d643c(0x12e)])||!_0x1cf0d1[_0x1d643c(0x158)][_0x1d643c(0xcd)])return!0x1;let _0x25d06f=_0x1a7877['get'](j),_0x257a61=_0x1a7877[_0x1d643c(0x1ba)](_0xc15eb3),_0x1afa65=_0x25d06f[_0x1d643c(0x112)](_0x1cf0d1[_0x1d643c(0x12e)]);if(!_0x1afa65)return!0x1;let _0x452539=_0x4fc8e1['deepClone'](_0x1afa65),_0xff299f=!0x1;for(let _0x854e1e of _0x1cf0d1[_0x1d643c(0x158)]){var _0x50e84b,_0x1bebff,_0x10d833,_0x360c30;let _0x338679=_0x452539[_0x1d643c(0x106)][_0x854e1e[_0x1d643c(0x142)]];_0x338679&&_0x338679['formula']===_0x854e1e['expectedFormula']&&((_0x50e84b=_0x338679[_0x1d643c(0x17d)])==null?void 0x0:_0x50e84b[_0x1d643c(0x167)])===_0x854e1e[_0x1d643c(0x150)]&&_0x257a61[_0x1d643c(0x15b)](_0x1cf0d1['unitId'])===_0x854e1e[_0x1d643c(0x17e)]&&(((_0x1bebff=_0x338679[_0x1d643c(0xeb)])==null?void 0x0:_0x1bebff['v'])!==_0x854e1e[_0x1d643c(0xeb)]['v']||((_0x10d833=_0x338679[_0x1d643c(0xeb)])==null?void 0x0:_0x10d833['t'])!==_0x854e1e[_0x1d643c(0xeb)]['t']||((_0x360c30=_0x338679[_0x1d643c(0xeb)])==null?void 0x0:_0x360c30['pattern'])!==_0x854e1e['lastValue'][_0x1d643c(0x167)])&&(_0x338679[_0x1d643c(0xeb)]=_0x4fc8e1[_0x1d643c(0x107)](_0x854e1e[_0x1d643c(0xeb)]),_0xff299f=!0x0);}return!_0xff299f||_0x25d06f['setResource'](_0x1cf0d1[_0x1d643c(0x12e)],_0x452539);}},z={'id':_0x15ff4a(0xd3),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0x57ccc3,_0x173b6e)=>{const _0x115b2c=_0x15ff4a;if(!(_0x173b6e!=null&&_0x173b6e['formula'][_0x115b2c(0x12d)]()))return!0x1;let _0x3fe1a7=K(_0x57ccc3,_0x173b6e[_0x115b2c(0x12e)],'');if(!_0x3fe1a7)return!0x1;let _0x5dcdc5=ft(_0x173b6e['target'],_0x3fe1a7[_0x115b2c(0x135)],dt(_0x57ccc3,_0x3fe1a7[_0x115b2c(0x12e)]));if(!_0x5dcdc5)return!0x1;let _0x4e4132=pt(_0x57ccc3,_0x3fe1a7[_0x115b2c(0x12e)],_0x173b6e[_0x115b2c(0x1c2)],_0x173b6e[_0x115b2c(0x1ac)]??[]);if(!_0x4e4132)return!0x1;let _0x5f8f74=mt(_0x3fe1a7[_0x115b2c(0x135)],_0x3fe1a7[_0x115b2c(0x126)],_0x3fe1a7[_0x115b2c(0x12e)]),_0x1e7a30=ht({'documentData':_0x3fe1a7['documentData'],'resource':_0x3fe1a7[_0x115b2c(0x115)],'rangeId':_0x5f8f74,'config':{'formula':_0x173b6e[_0x115b2c(0x1c2)],..._0x173b6e['numberFormat']?{'numberFormat':_0x173b6e[_0x115b2c(0x17d)]}:null},'startOffset':_0x5dcdc5['startOffset'],'endOffset':_0x5dcdc5[_0x115b2c(0x11c)]});if(!_0x1e7a30)return!0x1;let _0x5808d4=_0x51ba85(_0x57ccc3,_0x3fe1a7[_0x115b2c(0x12e)],_0x4e4132);return!_0x5808d4||!q({'accessor':_0x57ccc3,'document':_0x3fe1a7[_0x115b2c(0xdf)],'unitId':_0x3fe1a7[_0x115b2c(0x12e)],'trigger':z['id'],'rangeId':_0x5f8f74,'previousResource':_0x3fe1a7[_0x115b2c(0x115)],'nextResource':_0x1e7a30[_0x115b2c(0xe3)],'previousDocumentData':_0x3fe1a7[_0x115b2c(0xe4)],'nextDocumentData':_0x1e7a30[_0x115b2c(0xfa)],'cursorOffset':_0x1e7a30[_0x115b2c(0x154)],'externalMutations':_0x5808d4})?!0x1:{'rangeId':_0x5f8f74,'startOffset':_0x1e7a30[_0x115b2c(0x154)]-0x1,'endOffset':_0x1e7a30[_0x115b2c(0x154)]};}},B={'id':_0x15ff4a(0x1a6),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0x254f2c,_0x3094fc)=>{const _0x38cdf9=_0x15ff4a;if(!(_0x3094fc!=null&&_0x3094fc[_0x38cdf9(0x142)])||!_0x3094fc['formula'][_0x38cdf9(0x12d)]())return!0x1;let _0x946f76=K(_0x254f2c,_0x3094fc['unitId'],''),_0x18d419=_0x946f76==null?void 0x0:_0x946f76['model'][_0x38cdf9(0xdd)](_0x946f76[_0x38cdf9(0x12e)],_0x3094fc[_0x38cdf9(0x142)]),_0x1e8dc1=_0x946f76?T(_0x946f76[_0x38cdf9(0xe4)][_0x38cdf9(0x135)],_0x3094fc[_0x38cdf9(0x142)]):void 0x0;if(!_0x946f76||!_0x18d419||!_0x1e8dc1)return!0x1;let _0x160756=pt(_0x254f2c,_0x946f76[_0x38cdf9(0x12e)],_0x3094fc['formula'],_0x3094fc['externalReferences']??[]);if(!_0x160756)return!0x1;let _0x3dd232=_0x51ba85(_0x254f2c,_0x946f76['unitId'],_0x160756);if(!_0x3dd232)return!0x1;let _0x2943d9=St(_0x946f76[_0x38cdf9(0x115)]);return _0x2943d9[_0x38cdf9(0x106)][_0x3094fc[_0x38cdf9(0x142)]]={'formula':_0x3094fc['formula'],..._0x3094fc[_0x38cdf9(0x17d)]?{'numberFormat':_0x3094fc[_0x38cdf9(0x17d)]}:_0x18d419[_0x38cdf9(0x17d)]?{'numberFormat':_0x18d419['numberFormat']}:null},q({'accessor':_0x254f2c,'document':_0x946f76[_0x38cdf9(0xdf)],'unitId':_0x946f76[_0x38cdf9(0x12e)],'trigger':B['id'],'rangeId':_0x3094fc[_0x38cdf9(0x142)],'previousResource':_0x946f76[_0x38cdf9(0x115)],'nextResource':_0x2943d9,'cursorOffset':_0x1e8dc1[_0x38cdf9(0xdc)]+0x1,'externalMutations':_0x3dd232});}},V={'id':_0x15ff4a(0x188),'type':_0x6c9543['COMMAND'],'handler':(_0x14d8c2,_0x2c9aae)=>{const _0x452f56=_0x15ff4a;if(!(_0x2c9aae!=null&&_0x2c9aae[_0x452f56(0x142)]))return!0x1;let _0xf8a69c=K(_0x14d8c2,_0x2c9aae[_0x452f56(0x12e)],''),_0x339da6=_0xf8a69c==null?void 0x0:_0xf8a69c['model'][_0x452f56(0xdd)](_0xf8a69c[_0x452f56(0x12e)],_0x2c9aae[_0x452f56(0x142)]),_0x18fe79=_0xf8a69c?T(_0xf8a69c[_0x452f56(0xe4)][_0x452f56(0x135)],_0x2c9aae[_0x452f56(0x142)]):void 0x0;if(!_0xf8a69c||!_0x339da6||!_0x18fe79)return!0x1;let _0x264e9e=St(_0xf8a69c['resource']);return _0x264e9e[_0x452f56(0x106)][_0x2c9aae[_0x452f56(0x142)]]={..._0x339da6,..._0x2c9aae[_0x452f56(0x17d)]?{'numberFormat':_0x2c9aae[_0x452f56(0x17d)]}:null},_0x2c9aae[_0x452f56(0x17d)]||delete _0x264e9e['formulas'][_0x2c9aae['rangeId']][_0x452f56(0x17d)],q({'accessor':_0x14d8c2,'document':_0xf8a69c[_0x452f56(0xdf)],'unitId':_0xf8a69c[_0x452f56(0x12e)],'trigger':V['id'],'rangeId':_0x2c9aae['rangeId'],'previousResource':_0xf8a69c[_0x452f56(0x115)],'nextResource':_0x264e9e,'cursorOffset':_0x18fe79[_0x452f56(0xdc)]+0x1,'externalMutations':{}});}},H={'id':_0x15ff4a(0x169),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0xb41c57,_0x3335e3)=>G(_0xb41c57,_0x3335e3,'',H['id'])},U={'id':_0x15ff4a(0x105),'type':_0x6c9543[_0x15ff4a(0x13f)],'handler':(_0x53275d,_0x983e62)=>G(_0x53275d,_0x983e62,(_0x983e62==null?void 0x0:_0x983e62[_0x15ff4a(0xe6)])??'',U['id'])},W={'id':_0x15ff4a(0x12f),'type':_0x6c9543['COMMAND'],'handler':(_0x5b8df1,_0x14d70c)=>{const _0x3d7577=_0x15ff4a;if(!(_0x14d70c!=null&&_0x14d70c['rangeId']))return!0x1;let _0x476128=K(_0x5b8df1,_0x14d70c['unitId'],'');if(!_0x476128)return!0x1;let _0x5e6219=_0x5b8df1[_0x3d7577(0x1ba)](P)[_0x3d7577(0x199)]({'unitId':_0x476128['unitId'],'rangeId':_0x14d70c[_0x3d7577(0x142)]});return _0x5e6219?G(_0x5b8df1,_0x14d70c,_0x5e6219[_0x3d7577(0xe6)],W['id']):!0x1;}};function G(_0x58b13f,_0x24fee8,_0x431c50,_0x417425){const _0x23b948=_0x15ff4a;if(!(_0x24fee8!=null&&_0x24fee8[_0x23b948(0x142)]))return!0x1;let _0x57c51e=K(_0x58b13f,_0x24fee8[_0x23b948(0x12e)],'');if(!_0x57c51e)return!0x1;let _0x43c57f=ze({'documentData':_0x57c51e['documentData'],'resource':_0x57c51e[_0x23b948(0x115)],'rangeId':_0x24fee8[_0x23b948(0x142)],'text':_0x431c50});return _0x43c57f?q({'accessor':_0x58b13f,'document':_0x57c51e[_0x23b948(0xdf)],'unitId':_0x57c51e[_0x23b948(0x12e)],'trigger':_0x417425,'rangeId':_0x24fee8[_0x23b948(0x142)],'previousResource':_0x57c51e[_0x23b948(0x115)],'nextResource':_0x43c57f[_0x23b948(0xe3)],'previousDocumentData':_0x57c51e[_0x23b948(0xe4)],'nextDocumentData':_0x43c57f[_0x23b948(0xfa)],'cursorOffset':_0x43c57f['cursorOffset'],'externalMutations':{}}):!0x1;}function K(_0x5e5727,_0x41d431,_0x5140a5){const _0x571b07=_0x15ff4a;if(_0x5140a5)return null;let _0x4e5a59=_0x5e5727[_0x571b07(0x1ba)](_0x48b9a6),_0x1bec40=(_0x41d431?_0x4e5a59[_0x571b07(0x196)](_0x41d431,_0x1d8d65[_0x571b07(0x14b)]):_0x4e5a59[_0x571b07(0x130)](_0x1d8d65[_0x571b07(0x14b)]))??null;if(!_0x1bec40)return null;let _0x3a2ecb=_0x1bec40[_0x571b07(0xf9)](),_0x341634=_0x3a2ecb['body'];if(_0x3a2ecb[_0x571b07(0xed)]||!_0x341634)return null;let _0x5ac678=_0x5e5727[_0x571b07(0x1ba)](j);return _0x5ac678['getLoadError'](_0x1bec40[_0x571b07(0x14d)]())?null:{'document':_0x1bec40,'body':_0x341634,'documentData':_0x3a2ecb,'model':_0x5ac678,'resource':_0x5ac678[_0x571b07(0x112)](_0x1bec40[_0x571b07(0x14d)]())??b(),'unitId':_0x1bec40[_0x571b07(0x14d)]()};}function dt(_0x30119e,_0x4c58a6){var _0x1837e4;return(_0x1837e4=_0x30119e['get'](_0x1ba5ec)['getTextRanges']({'subUnitId':_0x4c58a6,'unitId':_0x4c58a6}))==null?void 0x0:_0x1837e4[0x0];}function ft(_0x5c4935,_0x4f4729,_0x2c5e24){const _0x466528=_0x15ff4a;if((_0x5c4935==null?void 0x0:_0x5c4935[_0x466528(0x123)])===_0x466528(0x165)){var _0x10b7eb;let _0x32ceb8=((_0x10b7eb=_0x4f4729[_0x466528(0x160)])==null?void 0x0:_0x10b7eb[_0x466528(0xfd)](_0x24b5b2=>_0x24b5b2['paragraphId']===_0x5c4935[_0x466528(0x1a3)]))??[];if(_0x32ceb8[_0x466528(0xcd)]!==0x1)return null;let _0x22cfc4=_0x32ceb8[0x0],_0x1bbbf8=_0x3f5de0(_0x4f4729,_0x22cfc4),_0x32492c=_0x22cfc4[_0x466528(0x14c)]-_0x1bbbf8,_0x4de687=_0x5c4935[_0x466528(0x16f)]==='end'?_0x32492c:_0x5c4935[_0x466528(0x16f)];if(!Number['isInteger'](_0x4de687)||_0x4de687<0x0||_0x4de687>_0x32492c)return null;let _0x3fca58=_0x1bbbf8+_0x4de687;return{'startOffset':_0x3fca58,'endOffset':_0x3fca58};}if((_0x5c4935==null?void 0x0:_0x5c4935[_0x466528(0x123)])===_0x466528(0x1b7))return!Number['isInteger'](_0x5c4935[_0x466528(0x171)])||!Number[_0x466528(0x1a9)](_0x5c4935[_0x466528(0x11c)])?null:{'startOffset':Math[_0x466528(0xd4)](_0x5c4935[_0x466528(0x171)],_0x5c4935[_0x466528(0x11c)]),'endOffset':Math[_0x466528(0x129)](_0x5c4935[_0x466528(0x171)],_0x5c4935['endOffset'])};let _0x408f9f=(_0x5c4935==null?void 0x0:_0x5c4935[_0x466528(0x123)])==='selection'?_0x5c4935[_0x466528(0x1aa)]:_0x2c5e24;return!_0x408f9f||_0x408f9f[_0x466528(0x189)]?null:{'startOffset':Math[_0x466528(0xd4)](_0x408f9f['startOffset'],_0x408f9f[_0x466528(0x11c)]),'endOffset':Math[_0x466528(0x129)](_0x408f9f['startOffset'],_0x408f9f[_0x466528(0x11c)])};}function pt(_0x47b19f,_0x269281,_0x2d62f6,_0x1ff615){const _0x2bb949=_0x15ff4a;let _0xab04b=_0x47b19f[_0x2bb949(0x1ba)](_0x5707ab),_0x5d4e39=_0x2d62f6['startsWith']('=')?_0x2d62f6[_0x2bb949(0x116)](0x1):_0x2d62f6,_0x255bdd=_0xab04b[_0x2bb949(0x1b6)](_0x5d4e39);if(!_0x255bdd)return null;let _0x2ccdcd=_0x47b19f[_0x2bb949(0x1ba)](_0xc15eb3),_0x2cc9f2=_0x197c79({'qualifiers':_0x184125(_0x255bdd),'explicitReferences':_0x1ff615??[],'resolveBinding':_0x5f230e=>_0x2ccdcd[_0x2bb949(0x1b8)](_0x269281,_0x5f230e)});return _0x2cc9f2[_0x2bb949(0xee)]===_0x2bb949(0x17c)?_0x2cc9f2['references']:null;}function mt(_0x150197,_0x569b5e,_0x1e1a12){const _0x59ced0=_0x15ff4a;var _0x4a7ab3;let _0x2b57d6=_0x52ed00(0x6);for(;_0x150197!=null&&(_0x4a7ab3=_0x150197[_0x59ced0(0x101)])!=null&&_0x4a7ab3[_0x59ced0(0x153)](_0x406927=>_0x406927[_0x59ced0(0x142)]===_0x2b57d6)||_0x569b5e[_0x59ced0(0xdd)](_0x1e1a12,_0x2b57d6);)_0x2b57d6=_0x52ed00(0x6);return _0x2b57d6;}function ht(_0x5abf35){try{return Le(_0x5abf35);}catch(_0x442a06){if(_0x442a06 instanceof C)return null;throw _0x442a06;}}function gt(_0xe9a5ef){const _0x53e3cd=_0x15ff4a;let _0x12a2ee=_0xe9a5ef['previousDocumentData']&&_0xe9a5ef[_0x53e3cd(0xfa)]?vt(_0xe9a5ef['document'],_0xe9a5ef[_0x53e3cd(0x12e)],_0xe9a5ef[_0x53e3cd(0xf7)],_0xe9a5ef[_0x53e3cd(0xfa)],_0xe9a5ef[_0x53e3cd(0x154)],_0xe9a5ef[_0x53e3cd(0x1c6)]):null;return _0xe9a5ef['previousDocumentData']&&_0xe9a5ef[_0x53e3cd(0xfa)]&&!_0x12a2ee?null:{'documentRedo':_0x12a2ee,'resourceRedo':{'id':L['id'],'params':{'unitId':_0xe9a5ef[_0x53e3cd(0x12e)],'resource':_0xe9a5ef[_0x53e3cd(0xe3)]}},'resourceUndo':{'id':L['id'],'params':{'unitId':_0xe9a5ef['unitId'],'resource':_0xe9a5ef[_0x53e3cd(0x16d)]}}};}function _t(_0x546f17,_0x1612e3,_0x3f7c61,_0x570fdd){const _0x1ebc1d=_0x15ff4a;_0x570fdd[_0x1ebc1d(0x159)]({'id':_0x546f17[_0x1ebc1d(0x1c6)]+':'+_0x546f17[_0x1ebc1d(0x142)],'unitID':_0x546f17['unitId'],'redoMutations':[..._0x546f17['externalMutations'][_0x1ebc1d(0x136)]?[_0x546f17[_0x1ebc1d(0x192)][_0x1ebc1d(0x136)]]:[],..._0x1612e3['documentRedo']?[_0x1612e3[_0x1ebc1d(0x12a)]]:[],_0x1612e3[_0x1ebc1d(0xd1)]],'undoMutations':[_0x1612e3[_0x1ebc1d(0xd9)],..._0x3f7c61?[_0x3f7c61]:[],..._0x546f17[_0x1ebc1d(0x192)][_0x1ebc1d(0x182)]?[_0x546f17[_0x1ebc1d(0x192)][_0x1ebc1d(0x182)]]:[]]});}function q(_0x2e7c83){const _0x260e95=_0x15ff4a;let _0x3ac47a=_0x2e7c83[_0x260e95(0x18f)]['get'](_0x55728f),_0x5171f7=_0x2e7c83['accessor'][_0x260e95(0x1ba)](_0x51122a),_0x5479e0=_0x2e7c83[_0x260e95(0x18f)][_0x260e95(0x1ba)](_0x1ba5ec),_0x54dc5f=gt(_0x2e7c83);if(!_0x54dc5f)return!0x1;let _0x1ff975=!0x1,_0x2a7b36=null,_0x4ee2d2=!0x1;try{if(_0x2e7c83['externalMutations']['redoMutation']){if(!_0x3ac47a[_0x260e95(0x1be)](_0x2e7c83['externalMutations']['redoMutation']['id'],_0x2e7c83[_0x260e95(0x192)]['redoMutation'][_0x260e95(0xd6)]))return!0x1;_0x1ff975=!0x0;}if(_0x54dc5f[_0x260e95(0x12a)]){let _0x36415b=_0x3ac47a[_0x260e95(0x1be)](_0x54dc5f[_0x260e95(0x12a)]['id'],_0x54dc5f['documentRedo'][_0x260e95(0xd6)]);if(!_0x36415b)return J(_0x3ac47a,_0x2e7c83[_0x260e95(0x192)],_0x1ff975),!0x1;_0x2a7b36={'id':_0x3731df['id'],'params':{..._0x36415b,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3ac47a[_0x260e95(0x1be)](_0x54dc5f[_0x260e95(0xd1)]['id'],_0x54dc5f['resourceRedo'][_0x260e95(0xd6)]))return yt(_0x3ac47a,_0x2a7b36),J(_0x3ac47a,_0x2e7c83['externalMutations'],_0x1ff975),!0x1;_0x4ee2d2=!0x0,_t(_0x2e7c83,_0x54dc5f,_0x2a7b36,_0x5171f7);}catch(_0x5c4861){throw _0x4ee2d2&&_0x3ac47a[_0x260e95(0x1be)](_0x54dc5f[_0x260e95(0xd9)]['id'],_0x54dc5f[_0x260e95(0xd9)][_0x260e95(0xd6)]),yt(_0x3ac47a,_0x2a7b36),J(_0x3ac47a,_0x2e7c83['externalMutations'],_0x1ff975),_0x5c4861;}return _0x5479e0[_0x260e95(0x17b)]([{'startOffset':_0x2e7c83[_0x260e95(0x154)],'endOffset':_0x2e7c83[_0x260e95(0x154)],'segmentId':''}],{'unitId':_0x2e7c83[_0x260e95(0x12e)],'subUnitId':_0x2e7c83[_0x260e95(0x12e)]},!0x1,{[_0x59dee6]:!0x0}),!0x0;}function vt(_0x45b003,_0x2136b2,_0xa027d4,_0x2cab71,_0x52c569,_0x48098f){let _0x450d89=bt(_0xa027d4,_0x2cab71,_0x31e082(_0x45b003,''));return _0x450d89?{'id':_0x3731df['id'],'params':{'unitId':_0x2136b2,'actions':_0x450d89,'segmentId':'','textRanges':[{'startOffset':_0x52c569,'endOffset':_0x52c569,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x48098f}}:null;}function yt(_0x1ecb92,_0x50ff69){const _0x523d88=_0x15ff4a;_0x50ff69&&_0x1ecb92[_0x523d88(0x1be)](_0x50ff69['id'],_0x50ff69[_0x523d88(0xd6)]);}function J(_0x2b47bd,_0x386431,_0x3715a4){const _0x47d1df=_0x15ff4a;_0x3715a4&&_0x386431[_0x47d1df(0x182)]&&_0x2b47bd[_0x47d1df(0x1be)](_0x386431[_0x47d1df(0x182)]['id'],_0x386431[_0x47d1df(0x182)][_0x47d1df(0xd6)]);}function bt(_0x54457d,_0x30aeca,_0x5b3b2c){const _0x5c1f43=_0x15ff4a;let _0x13392d=_0x54457d['body'],_0x154d93=_0x30aeca[_0x5c1f43(0x135)],_0x336bda=xt(_0x13392d==null?void 0x0:_0x13392d[_0x5c1f43(0xcb)],_0x154d93==null?void 0x0:_0x154d93[_0x5c1f43(0xcb)]);if(!_0x336bda||!_0x154d93)return null;let _0x38e80d=new _0x54417a();return _0x38e80d[_0x5c1f43(0x139)](_0x336bda[_0x5c1f43(0x173)]),_0x336bda[_0x5c1f43(0xcf)]>0x0&&_0x38e80d[_0x5c1f43(0x19c)](_0x336bda[_0x5c1f43(0xcf)],_0x4f7aa5(_0x154d93,_0x336bda[_0x5c1f43(0x173)],_0x336bda['start']+_0x336bda[_0x5c1f43(0xcf)],!0x1)),_0x336bda[_0x5c1f43(0x111)]>0x0&&_0x38e80d[_0x5c1f43(0x18a)](_0x336bda[_0x5c1f43(0x111)]),_0x1d02d7['getInstance']()['editOp'](_0x38e80d[_0x5c1f43(0x172)](),_0x5b3b2c);}function xt(_0x4ec429,_0x443713){const _0x5a3aa3=_0x15ff4a;if(_0x4ec429==null||_0x443713==null||_0x4ec429===_0x443713)return null;let _0x3223a0=0x0;for(;_0x3223a0<_0x4ec429['length']&&_0x3223a0<_0x443713[_0x5a3aa3(0xcd)]&&_0x4ec429[_0x3223a0]===_0x443713[_0x3223a0];)_0x3223a0+=0x1;let _0x1fbe36=_0x4ec429[_0x5a3aa3(0xcd)],_0x1da1f5=_0x443713[_0x5a3aa3(0xcd)];for(;_0x1fbe36>_0x3223a0&&_0x1da1f5>_0x3223a0&&_0x4ec429[_0x1fbe36-0x1]===_0x443713[_0x1da1f5-0x1];)--_0x1fbe36,--_0x1da1f5;return{'start':_0x3223a0,'deleteLength':_0x1fbe36-_0x3223a0,'insertLength':_0x1da1f5-_0x3223a0};}function _0x4b4d(){const _0x52b18e=['2595030xHSikP','map','properties','customDecorations','type','removeUnit','11671596AtHcUI','model','_docFormulaModel','assess','max','documentRedo','ERROR','TABLE_START','trim','unitId','docs-formula.command.convert-to-text','getCurrentUnitOfType','setFormula','subscribe','onCommandExecuted','source','body','redoMutation','getPresentation','degradeBody','retain','pluginName','cell','kind','success','_instanceService','COMMAND','3546188NjZjUf','removeFormula','rangeId','_registrationService','collectMutations','_service','liveResult','clear','change$','_presentationChanged$','constructor','UNIVER_DOC','startIndex','getUnitId','resolveText','TABLE_ROW_END','expectedNumberFormat','identity','_commandService','some','cursorOffset','includes','textRuns','COLUMN_GROUP_END','updates','pushUndoRedo','blockRanges','getRevision','6dKAnch','getRegisteredFormulas','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','every','paragraphs','from','_setPresentation','getBody','_resources','paragraph','323645tjhiRG','pattern','parse','docs-formula.command.remove','entries','docs-formula.config','keys','previousResource','presentationChanged$','position','_cacheEligibilityService','startOffset','serialize','start','formulaResult$','_rawResources','syncUnit','CUSTOM','error','default','fromEntries','replaceDocRanges','resolved','numberFormat','expectedReferenceRevision','registerCommand','docs-formula.mutation.set-resource','_updateFormulaResult','undoMutation','getFormulas','has','MUTATION','degradeDocumentData','_formulaService','docs-formula.command.set-number-format','segmentId','delete','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','2430410kdcKAR','BLOCK_START','data','accessor','empty','_syncScheduled','externalMutations','setResource','_model','presentation','getUnit','deleteFormula','_pendingUnitIds','getResult','setFormulas','_formulaKeys','insert','push','dispose','TABLE_ROW_START','resources','_loadErrors','PARAGRAPH','paragraphId','stale','@univerjs-pro/docs-formula','docs-formula.command.update','_syncUnit','find','isInteger','selection','config','externalReferences','invalid-resource','COLUMN_GROUP_START','_resourceManagerService','next','sectionBreaks','unitAdded$','object','CUSTOM_BLOCK','disposeWithMe','sequenceNodesBuilder','range','resolveBinding','string','get','asObservable','customBlocks','color','syncExecuteCommand','BLOCK_END','unitDisposed$','formulaId','formula','number','setConfig','univer-docs-formula','trigger','endsWith','dataStream','isArray','length','getOwnPropertyDescriptor','insertLength','tables','resourceRedo','register','docs-formula.command.insert','min','function','params','assign','_configService','resourceUndo','TABLE_CELL_END','_queueSync','endIndex','getFormula','version','document','columnGroups','8yRClmW','310175IXycFu','nextResource','documentData','unregisterUnit','text','referenceRevision','_config','_univerInstanceService','packageName','lastValue','pending','disabled','status','wholeEntity','resolveFormula','rangeType','2994dtImGv','registerProvider','forEach','SECTION_BREAK','TABLE_END','previousDocumentData','docs-formula.mutation.set-last-values','getSnapshot','nextDocumentData','toPrimitive','sort','filter','defineProperty','name','symbol','customRanges','_hostExternalReferenceModel','77hCfNgV','66vTPHWr','docs-formula.command.replace-with-text','formulas','deepClone','stringify','_deleteRegistration','add','1.4.0','eligible','DOC_FORMULA_PLUGIN','_isDisposed','_injector','_preserveInvalid','deleteLength','getResource','unregister','values','resource','slice','getLoadError','_registrations','decorate','set','complete','endOffset','_change$','load'];_0x4b4d=function(){return _0x52b18e;};return _0x4b4d();}function St(_0xcc1ed7){const _0x68bd53=_0x15ff4a;return{'formulas':Object[_0x68bd53(0x17a)](Object[_0x68bd53(0x16a)](_0xcc1ed7[_0x68bd53(0x106)])[_0x68bd53(0x120)](([_0x588a9a,_0x4c214d])=>[_0x588a9a,{..._0x4c214d,..._0x4c214d[_0x68bd53(0x17d)]?{'numberFormat':{..._0x4c214d[_0x68bd53(0x17d)]}}:null,..._0x4c214d[_0x68bd53(0xeb)]?{'lastValue':{..._0x4c214d[_0x68bd53(0xeb)]}}:null}]))};}let Y=class extends _0x284207{constructor(_0x5e178e,_0x25224e,_0x37bd1f,_0x4384b3){const _0xc8b51b=_0x15ff4a;super(),this['_instanceService']=_0x5e178e,this[_0xc8b51b(0x152)]=_0x25224e,this[_0xc8b51b(0x194)]=_0x37bd1f,this['_service']=_0x4384b3,A(this,'_pendingUnitIds',new Set()),A(this,'_syncScheduled',!0x1),A(this,_0xc8b51b(0x10e),!0x1),this['_instanceService']['getAllUnitsForType'](_0x1d8d65['UNIVER_DOC'])[_0xc8b51b(0xf4)](_0x3d457e=>this[_0xc8b51b(0x145)][_0xc8b51b(0x176)](_0x3d457e)),this['disposeWithMe'](this['_model'][_0xc8b51b(0x148)][_0xc8b51b(0x132)](({unitId:_0x9df78c})=>this[_0xc8b51b(0x1a7)](_0x9df78c))),this[_0xc8b51b(0x1b5)](this[_0xc8b51b(0x13e)][_0xc8b51b(0x1b2)][_0xc8b51b(0x132)](({unit:_0x560d39})=>{const _0x13d24f=_0xc8b51b;_0x560d39[_0x13d24f(0x123)]===_0x1d8d65[_0x13d24f(0x14b)]&&this[_0x13d24f(0xdb)](_0x560d39[_0x13d24f(0x14d)]());})),this['disposeWithMe'](this[_0xc8b51b(0x13e)][_0xc8b51b(0x1c0)][_0xc8b51b(0x132)](_0x2ab276=>{const _0x4a7d3e=_0xc8b51b;this[_0x4a7d3e(0x145)][_0x4a7d3e(0xe5)](_0x2ab276[_0x4a7d3e(0x14d)]());})),this['disposeWithMe'](this[_0xc8b51b(0x152)][_0xc8b51b(0x133)](_0x4b8c6e=>{const _0x3f218f=_0xc8b51b;if(_0x4b8c6e['id']===_0x3731df['id']&&Ct(_0x4b8c6e[_0x3f218f(0xd6)])){let _0xf67220=_0x4b8c6e[_0x3f218f(0xd6)];_0xf67220[_0x3f218f(0x189)]||this[_0x3f218f(0x1a7)](_0xf67220[_0x3f218f(0x12e)]);}}));}[_0x15ff4a(0x19e)](){const _0x491277=_0x15ff4a;this[_0x491277(0x10e)]=!0x0,super['dispose']();}[_0x15ff4a(0xdb)](_0x8bcdb7){const _0x5d7b59=_0x15ff4a;this['_pendingUnitIds'][_0x5d7b59(0x10a)](_0x8bcdb7),this['_syncScheduled']||(this[_0x5d7b59(0x191)]=!0x0,queueMicrotask(()=>{const _0x57223e=_0x5d7b59;if(this[_0x57223e(0x191)]=!0x1,this[_0x57223e(0x10e)])return;let _0x28d64a=Array[_0x57223e(0x161)](this[_0x57223e(0x198)]);this[_0x57223e(0x198)][_0x57223e(0x147)](),_0x28d64a[_0x57223e(0xf4)](_0xeb456f=>this[_0x57223e(0x1a7)](_0xeb456f));}));}[_0x15ff4a(0x1a7)](_0x5c1969){const _0x3a9785=_0x15ff4a;let _0x553e5e=this[_0x3a9785(0x13e)]['getUnit'](_0x5c1969,_0x1d8d65[_0x3a9785(0x14b)]);_0x553e5e&&this[_0x3a9785(0x145)][_0x3a9785(0x176)](_0x553e5e);}};Y=N([M(0x0,_0x48b9a6),M(0x1,_0x55728f),M(0x2,_0x36a610(j)),M(0x3,_0x36a610(P))],Y);function Ct(_0x32acf5){const _0x508b9f=_0x15ff4a;return typeof _0x32acf5==_0x508b9f(0x1b3)&&!!_0x32acf5&&'unitId'in _0x32acf5&&typeof _0x32acf5['unitId']==_0x508b9f(0x1b9)&&(!(_0x508b9f(0x189)in _0x32acf5)||_0x32acf5[_0x508b9f(0x189)]===void 0x0||typeof _0x32acf5[_0x508b9f(0x189)]=='string');}let X=class extends _0x284207{constructor(_0x4691a1,_0x8dcc88){const _0x4bde81=_0x15ff4a;super(),this['_resourceManagerService']=_0x4691a1,this[_0x4bde81(0x127)]=_0x8dcc88,this[_0x4bde81(0x1b5)](this[_0x4bde81(0x1af)]['registerPluginResource']({'pluginName':y,'businesses':[_0x1d8d65[_0x4bde81(0x14b)]],'toJson':_0x2f8c67=>JSON[_0x4bde81(0x108)](this['_docFormulaModel']['serialize'](_0x2f8c67)),'parseJson':_0x2636d6=>JSON[_0x4bde81(0x168)](_0x2636d6),'onLoad':(_0x63e948,_0x5217aa)=>{const _0x2a75d4=_0x4bde81;this[_0x2a75d4(0x127)]['load'](_0x63e948,_0x5217aa);},'onUnLoad':_0x291d39=>this[_0x4bde81(0x127)][_0x4bde81(0x124)](_0x291d39)}));}};X=N([M(0x0,_0x103c6c),M(0x1,_0x36a610(j))],X);var wt=_0x15ff4a(0x1a5),Tt=_0x15ff4a(0x10b);const Et={};let Z=class extends _0x284207{constructor(_0x80c966,_0x473a27,_0x3b81a8){const _0x25901d=_0x15ff4a;super(),this[_0x25901d(0xe9)]=_0x80c966,this[_0x25901d(0x187)]=_0x473a27,this['disposeWithMe'](_0x3b81a8[_0x25901d(0xd2)]({'resolve':(_0x207f60,_0x233915)=>{const _0x2ff264=_0x25901d;var _0x50caad;return((_0x50caad=_0x233915[_0x2ff264(0x101)])==null?void 0x0:_0x50caad['filter'](w)[_0x2ff264(0x120)](_0x257e9f=>({'startOffset':_0x257e9f[_0x2ff264(0x14c)],'endOffset':_0x257e9f[_0x2ff264(0xdc)]+0x1,'text':this[_0x2ff264(0xf0)](_0x207f60,_0x257e9f['rangeId'])})))??[];}})),this[_0x25901d(0x1b5)](this[_0x25901d(0x187)][_0x25901d(0x16e)]['subscribe'](({unitId:_0x16423c})=>{_0x3b81a8['notifyTextChanged'](_0x16423c);}));}[_0x15ff4a(0xf0)](_0x4e94c5,_0x237b4b){const _0x31c14d=_0x15ff4a;var _0x2738e6;return((_0x2738e6=this[_0x31c14d(0x187)][_0x31c14d(0x199)]({'unitId':_0x4e94c5,'rangeId':_0x237b4b}))==null?void 0x0:_0x2738e6[_0x31c14d(0xe6)])??'';}[_0x15ff4a(0x14e)](_0x472cfb,_0x876de,_0x571016){const _0x125629=_0x15ff4a;var _0x5aa4ec;let _0x209033=this[_0x125629(0xe9)]['getUnit'](_0x472cfb,_0x1d8d65[_0x125629(0x14b)]),_0x5ea3aa=_0x209033==null?void 0x0:_0x209033[_0x125629(0x163)]();if(!_0x5ea3aa)return'';let _0x2815c8=_0x5ea3aa[_0x125629(0xcb)][_0x125629(0x116)](_0x876de,_0x571016),_0x169f40=((_0x5aa4ec=_0x5ea3aa[_0x125629(0x101)])==null?void 0x0:_0x5aa4ec[_0x125629(0xfd)](_0x3db055=>w(_0x3db055)&&_0x3db055['startIndex']>=_0x876de&&_0x3db055[_0x125629(0xdc)]<_0x571016)['sort']((_0x11e139,_0x4d6aa7)=>_0x4d6aa7['startIndex']-_0x11e139['startIndex']))??[];for(let _0x102b1a of _0x169f40){let _0x4595ff=_0x102b1a[_0x125629(0x14c)]-_0x876de,_0x5285a4=_0x102b1a[_0x125629(0xdc)]-_0x876de+0x1;_0x2815c8=''+_0x2815c8[_0x125629(0x116)](0x0,_0x4595ff)+this[_0x125629(0xf0)](_0x472cfb,_0x102b1a[_0x125629(0x142)])+_0x2815c8[_0x125629(0x116)](_0x5285a4);}return _0x2815c8;}[_0x15ff4a(0x186)](_0x37817c){return Dt(_0x37817c);}[_0x15ff4a(0x138)](_0x19c65c,_0x623b4f,_0xc029d4={}){const _0x4a6779=_0x15ff4a;var _0x53c702;return Be({'id':_0x19c65c,'body':_0x623b4f,'documentStyle':{}},(((_0x53c702=_0x623b4f['customRanges'])==null?void 0x0:_0x53c702[_0x4a6779(0xfd)](w))??[])['map'](_0x25d1f3=>({'rangeId':_0x25d1f3[_0x4a6779(0x142)],'text':_0xc029d4[_0x25d1f3['rangeId']]??this['resolveFormula'](_0x19c65c,_0x25d1f3[_0x4a6779(0x142)])})))[_0x4a6779(0x135)]??{'dataStream':''};}};Z=N([M(0x0,_0x48b9a6),M(0x1,_0x36a610(P)),M(0x2,_0x36a610(_0xebc48d))],Z);function Dt(_0x4519d9){const _0xd0f84f=_0x15ff4a;var _0x39fa38,_0x228214;let _0xc381c2=Ot(_0x4519d9),_0x48af00=Be(_0x4519d9,(((_0x39fa38=_0x4519d9[_0xd0f84f(0x135)])==null||(_0x39fa38=_0x39fa38['customRanges'])==null?void 0x0:_0x39fa38['filter'](w))??[])['map'](_0x3fe27f=>({'rangeId':_0x3fe27f[_0xd0f84f(0x142)],'text':kt(_0xc381c2==null?void 0x0:_0xc381c2[_0xd0f84f(0x106)][_0x3fe27f[_0xd0f84f(0x142)]])})));return _0x48af00[_0xd0f84f(0x1a0)]=(_0x228214=_0x48af00[_0xd0f84f(0x1a0)])==null?void 0x0:_0x228214[_0xd0f84f(0xfd)](_0xc12662=>_0xc12662['name']!==y),_0x48af00;}function Ot(_0x52043c){const _0x11bda2=_0x15ff4a;var _0x5de847;let _0x55c4e0=(_0x5de847=_0x52043c['resources'])==null||(_0x5de847=_0x5de847['find'](_0x31e4cf=>_0x31e4cf[_0x11bda2(0xff)]===_0x11bda2(0x10d)))==null?void 0x0:_0x5de847[_0x11bda2(0x18e)];if(_0x55c4e0)try{let _0x53eadc=JSON[_0x11bda2(0x168)](_0x55c4e0);return x(_0x53eadc)?_0x53eadc:void 0x0;}catch{return;}}function kt(_0x1fa64d){const _0x2b1b96=_0x15ff4a;return _0x1fa64d?_0x4c2bd5({'lastValue':_0x1fa64d['lastValue'],'numberFormat':_0x1fa64d[_0x2b1b96(0x17d)]})['text']:'';}let Q=class extends _0x284207{constructor(_0x1d45d9,_0x5379e5,_0x4cdb6f){const _0x1d778d=_0x15ff4a;super(),this[_0x1d778d(0x187)]=_0x1d45d9,this[_0x1d778d(0x170)]=_0x5379e5,this[_0x1d778d(0x1b5)](_0x4cdb6f[_0x1d778d(0xf3)](this));}[_0x15ff4a(0x144)](_0x14e11d){const _0xdd67af=_0x15ff4a;let _0x1d84af=new Map();for(let _0x1daf92 of this['_formulaService'][_0xdd67af(0x15d)]()){var _0x22d2df;if(!this[_0xdd67af(0x170)][_0xdd67af(0x128)](_0x1daf92[_0xdd67af(0x1ab)][_0xdd67af(0x1c2)],_0x1daf92[_0xdd67af(0x146)])[_0xdd67af(0x10c)])continue;let _0x516dc1=_0x10bd2d(_0x1daf92['liveResult']),_0x1cc1d1=_0x516dc1?_0x4190fe(_0x516dc1):null;if(!_0x1cc1d1||At(_0x1daf92[_0xdd67af(0x1ab)]['lastValue'],_0x1cc1d1))continue;let _0x2e0136=_0x1d84af[_0xdd67af(0x1ba)](_0x1daf92['identity'][_0xdd67af(0x12e)])??[];_0x2e0136[_0xdd67af(0x19d)]({'rangeId':_0x1daf92[_0xdd67af(0x151)]['rangeId'],'expectedFormula':_0x1daf92[_0xdd67af(0x1ab)]['formula'],'expectedNumberFormat':(_0x22d2df=_0x1daf92[_0xdd67af(0x1ab)][_0xdd67af(0x17d)])==null?void 0x0:_0x22d2df[_0xdd67af(0x167)],'expectedReferenceRevision':_0x1daf92[_0xdd67af(0xe7)],'lastValue':_0x1cc1d1}),_0x1d84af[_0xdd67af(0x11a)](_0x1daf92[_0xdd67af(0x151)][_0xdd67af(0x12e)],_0x2e0136);}return Array[_0xdd67af(0x161)](_0x1d84af,([_0x597f02,_0x5c81c3])=>({'id':R['id'],'params':{'unitId':_0x597f02,'updates':_0x5c81c3}}));}};Q=N([M(0x0,_0x36a610(P)),M(0x1,_0x36a610(_0xf3ba79)),M(0x2,_0x36a610(_0x3b1060))],Q);function At(_0x544fd9,_0x5e3d80){const _0x25470b=_0x15ff4a;return(_0x544fd9==null?void 0x0:_0x544fd9['v'])===_0x5e3d80['v']&&(_0x544fd9==null?void 0x0:_0x544fd9['t'])===_0x5e3d80['t']&&(_0x544fd9==null?void 0x0:_0x544fd9[_0x25470b(0x167)])===_0x5e3d80[_0x25470b(0x167)];}let $=class extends _0x2f618a{constructor(_0x26f481=Et,_0x2be03e,_0x3636ca,_0x4c0430){const _0x279e2e=_0x15ff4a;super(),this[_0x279e2e(0xe8)]=_0x26f481,this['_injector']=_0x2be03e,this['_commandService']=_0x3636ca,this['_configService']=_0x4c0430;let {..._0x4c307b}=_0x1725eb({},Et,this['_config']);this[_0x279e2e(0xd8)][_0x279e2e(0x1c4)](_0x279e2e(0x16b),_0x4c307b);}['onStarting'](){const _0x3a4969=_0x15ff4a;this[_0x3a4969(0x10f)]['add']([j]),this[_0x3a4969(0x10f)][_0x3a4969(0x10a)]([P]),this['_injector'][_0x3a4969(0x10a)]([X]),this[_0x3a4969(0x10f)][_0x3a4969(0x10a)]([Y]),this[_0x3a4969(0x10f)]['add']([Q]),this[_0x3a4969(0x10f)][_0x3a4969(0x10a)]([Z]),_0x426a27(this[_0x3a4969(0x10f)],[[j],[X],[Y],[Q],[Z]]),[lt,ut,L,R,z,B,V,H,U,W]['forEach'](_0x17afe2=>this[_0x3a4969(0x1b5)](this[_0x3a4969(0x152)][_0x3a4969(0x17f)](_0x17afe2)));}};A($,_0x15ff4a(0x13a),y),A($,_0x15ff4a(0xea),wt),A($,_0x15ff4a(0xde),Tt),A($,_0x15ff4a(0x123),_0x1d8d65[_0x15ff4a(0x14b)]),$=N([_0x3781b4(_0x52fcce,_0x4ef49e,_0x296e31),M(0x1,_0x36a610(_0xed0b2)),M(0x2,_0x55728f),M(0x3,_0x102468)],$);export{W as ConvertDocFormulaToTextCommand,je as DOC_FORMULA_CUSTOM_RANGE_KIND,Me as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,j as DocFormulaModel,X as DocFormulaResourceController,ot as DocFormulaResultStatus,P as DocFormulaService,z as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,H as RemoveDocFormulaCommand,ut as RemoveDocFormulaMutation,U as ReplaceDocFormulaWithTextCommand,R as SetDocFormulaLastValuesMutation,lt as SetDocFormulaMutation,V as SetDocFormulaNumberFormatCommand,L as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,B as UpdateDocFormulaCommand,Ve as assertSafeDocFormulaInsertRange,Le as buildInsertDocFormulaActions,ze as buildRemoveDocFormulaActions,Re as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Dt as degradeDocFormulaDocumentData,T as findDocFormulaRange,Ne as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Pe 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 _0x20d659=_0xb20e;(function(_0x14e544,_0x219eb4){var _0x3091fd=_0xb20e,_0x45f06e=_0x14e544();while(!![]){try{var _0x130610=parseInt(_0x3091fd(0x163))/0x1+-parseInt(_0x3091fd(0x172))/0x2+-parseInt(_0x3091fd(0x187))/0x3*(-parseInt(_0x3091fd(0x16f))/0x4)+parseInt(_0x3091fd(0x17c))/0x5*(-parseInt(_0x3091fd(0x181))/0x6)+parseInt(_0x3091fd(0x14a))/0x7*(-parseInt(_0x3091fd(0x183))/0x8)+-parseInt(_0x3091fd(0x152))/0x9*(parseInt(_0x3091fd(0x176))/0xa)+parseInt(_0x3091fd(0x18c))/0xb;if(_0x130610===_0x219eb4)break;else _0x45f06e['push'](_0x45f06e['shift']());}catch(_0x45ee2a){_0x45f06e['push'](_0x45f06e['shift']());}}}(_0x5f3d,0x52a74));import{ConvertDocFormulaToTextCommand as _0x4caa07,DocFormulaDisplayTextService as _0x1d4bd8,DocFormulaModel as _0x189be6,DocFormulaService as _0x31512b,InsertDocFormulaCommand as _0x31330d,RemoveDocFormulaCommand as _0x1a9573,ReplaceDocFormulaWithTextCommand as _0x4c9eaf,SetDocFormulaNumberFormatCommand as _0x375602,UpdateDocFormulaCommand as _0xd65571,isDocFormulaRange as _0x16147b}from'@univerjs-pro/docs-formula';import{ICommandService as _0x4c28f3,IResourceLoaderService as _0x5b8a61,IUniverInstanceService as _0x4bd504,Inject as _0x46f8a8,UniverInstanceType as _0x419927}from'@univerjs/core';import{FDocument as _0x43ca7f,FDocumentParagraph as _0x57efe3,FDocumentTextRange as _0x19ea5f}from'@univerjs/docs/facade';function v(_0x2a4c99,_0x178377){return function(_0x3a9876,_0x30bcb2){_0x178377(_0x3a9876,_0x30bcb2,_0x2a4c99);};}function y(_0x55f846,_0x3aec45,_0x4b77af,_0x810172){var _0x104fd8=_0xb20e,_0x33662c=arguments[_0x104fd8(0x192)],_0x36fe5c=_0x33662c<0x3?_0x3aec45:_0x810172===null?_0x810172=Object[_0x104fd8(0x190)](_0x3aec45,_0x4b77af):_0x810172,_0x3127c7;if(typeof Reflect==_0x104fd8(0x150)&&typeof Reflect[_0x104fd8(0x151)]==_0x104fd8(0x185))_0x36fe5c=Reflect['decorate'](_0x55f846,_0x3aec45,_0x4b77af,_0x810172);else{for(var _0x3d1fba=_0x55f846[_0x104fd8(0x192)]-0x1;_0x3d1fba>=0x0;_0x3d1fba--)(_0x3127c7=_0x55f846[_0x3d1fba])&&(_0x36fe5c=(_0x33662c<0x3?_0x3127c7(_0x36fe5c):_0x33662c>0x3?_0x3127c7(_0x3aec45,_0x4b77af,_0x36fe5c):_0x3127c7(_0x3aec45,_0x4b77af))||_0x36fe5c);}return _0x33662c>0x3&&_0x36fe5c&&Object[_0x104fd8(0x197)](_0x3aec45,_0x4b77af,_0x36fe5c),_0x36fe5c;}let b=class{constructor(_0x4476eb,_0x2bf561,_0x616419,_0x3a9f10,_0x1c3f7e,_0x299373){var _0x29f7de=_0xb20e;this[_0x29f7de(0x18b)]=_0x4476eb,this[_0x29f7de(0x15b)]=_0x2bf561,this[_0x29f7de(0x156)]=_0x616419,this[_0x29f7de(0x154)]=_0x3a9f10,this[_0x29f7de(0x18e)]=_0x1c3f7e,this[_0x29f7de(0x169)]=_0x299373;}['getId'](){return this['_rangeId'];}[_0x20d659(0x184)](){var _0x3adf4b=_0x20d659;let _0x24b999=this[_0x3adf4b(0x155)]();return _0x24b999?{'endOffset':_0x24b999[_0x3adf4b(0x16a)]+0x1,'rangeId':_0x24b999[_0x3adf4b(0x16c)],'startOffset':_0x24b999['startIndex']}:null;}[_0x20d659(0x189)](){var _0x36ef22=_0x20d659,_0xdd72e7;return((_0xdd72e7=this['_model'][_0x36ef22(0x189)](this[_0x36ef22(0x18b)],this[_0x36ef22(0x15b)]))==null?void 0x0:_0xdd72e7['formula'])??'';}[_0x20d659(0x193)](){var _0x24f05f=_0x20d659;return this[_0x24f05f(0x154)][_0x24f05f(0x189)](this[_0x24f05f(0x18b)],this['_rangeId'])??null;}['getResult'](){var _0x1147ae=_0x20d659;return this[_0x1147ae(0x18e)]['getResult']({'unitId':this['_unitId'],'rangeId':this[_0x1147ae(0x15b)]})??null;}[_0x20d659(0x14c)](){var _0x361ec1=_0x20d659;let _0x496166=this[_0x361ec1(0x184)](),_0x5a4af9=this[_0x361ec1(0x193)](),_0x207041=this[_0x361ec1(0x165)]();return!_0x496166||!_0x5a4af9||!_0x207041?null:{..._0x496166,'config':_0x5a4af9,'formula':_0x5a4af9[_0x361ec1(0x18a)],'result':_0x207041,'type':_0x361ec1(0x18a)};}[_0x20d659(0x191)](_0x22156e){var _0x41f4f6=_0x20d659;return this[_0x41f4f6(0x156)]['syncExecuteCommand'](_0xd65571['id'],{'externalReferences':_0x22156e[_0x41f4f6(0x17f)],'formula':_0x22156e[_0x41f4f6(0x18a)],'numberFormat':_0x22156e[_0x41f4f6(0x158)],'rangeId':this[_0x41f4f6(0x15b)],'unitId':this[_0x41f4f6(0x18b)]});}[_0x20d659(0x195)](_0xb10cfd){var _0x396f50=_0x20d659;return this[_0x396f50(0x156)][_0x396f50(0x17d)](_0x375602['id'],{'numberFormat':_0xb10cfd,'rangeId':this['_rangeId'],'unitId':this[_0x396f50(0x18b)]});}[_0x20d659(0x159)](){var _0x205c95=_0x20d659;return this[_0x205c95(0x156)][_0x205c95(0x17d)](_0x1a9573['id'],{'rangeId':this[_0x205c95(0x15b)],'unitId':this[_0x205c95(0x18b)]});}['replaceWithText'](_0x455d44){var _0x20497a=_0x20d659;return this[_0x20497a(0x156)][_0x20497a(0x17d)](_0x4c9eaf['id'],{'rangeId':this[_0x20497a(0x15b)],'text':_0x455d44,'unitId':this[_0x20497a(0x18b)]});}[_0x20d659(0x18f)](){var _0x7c98d2=_0x20d659;return this['_commandService']['syncExecuteCommand'](_0x4caa07['id'],{'rangeId':this[_0x7c98d2(0x15b)],'unitId':this[_0x7c98d2(0x18b)]});}[_0x20d659(0x155)](){var _0x36fbca=_0x20d659,_0x130a20;let _0x5b62e4=this[_0x36fbca(0x169)][_0x36fbca(0x15a)](this[_0x36fbca(0x18b)],_0x419927[_0x36fbca(0x153)]);return _0x5b62e4==null||(_0x130a20=_0x5b62e4['getSnapshot']()['body'])==null||(_0x130a20=_0x130a20[_0x36fbca(0x164)])==null?void 0x0:_0x130a20[_0x36fbca(0x16d)](_0x1b5733=>_0x1b5733[_0x36fbca(0x16c)]===this['_rangeId']&&_0x16147b(_0x1b5733));}};b=y([v(0x2,_0x4c28f3),v(0x3,_0x46f8a8(_0x189be6)),v(0x4,_0x46f8a8(_0x31512b)),v(0x5,_0x4bd504)],b);function x(_0x4dd03c){'@babel/helpers - typeof';var _0x1374d1=_0x20d659;return x=typeof Symbol=='function'&&typeof Symbol[_0x1374d1(0x160)]=='symbol'?function(_0x2a09ef){return typeof _0x2a09ef;}:function(_0x719f2){var _0x1a73ef=_0x1374d1;return _0x719f2&&typeof Symbol=='function'&&_0x719f2[_0x1a73ef(0x15c)]===Symbol&&_0x719f2!==Symbol[_0x1a73ef(0x177)]?_0x1a73ef(0x161):typeof _0x719f2;},x(_0x4dd03c);}function S(_0x231e2a,_0x328ca1){var _0x4f0bea=_0x20d659;if(x(_0x231e2a)!=_0x4f0bea(0x150)||!_0x231e2a)return _0x231e2a;var _0xfb6c1b=_0x231e2a[Symbol['toPrimitive']];if(_0xfb6c1b!==void 0x0){var _0x108374=_0xfb6c1b[_0x4f0bea(0x149)](_0x231e2a,_0x328ca1||'default');if(x(_0x108374)!='object')return _0x108374;throw TypeError(_0x4f0bea(0x16b));}return(_0x328ca1===_0x4f0bea(0x174)?String:Number)(_0x231e2a);}function C(_0x432abc){var _0x2c3b18=_0x20d659,_0x5b6f43=S(_0x432abc,_0x2c3b18(0x174));return x(_0x5b6f43)==_0x2c3b18(0x161)?_0x5b6f43:_0x5b6f43+'';}function w(_0x1fd4ef,_0x352afd,_0x43da99){var _0x4b1911=_0x20d659;return(_0x352afd=C(_0x352afd))in _0x1fd4ef?Object[_0x4b1911(0x197)](_0x1fd4ef,_0x352afd,{'value':_0x43da99,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1fd4ef[_0x352afd]=_0x43da99,_0x1fd4ef;}var T=class extends _0x43ca7f{constructor(..._0x186015){var _0x46a76f=_0x20d659;super(..._0x186015),w(this,_0x46a76f(0x180),void 0x0),w(this,_0x46a76f(0x182),void 0x0),w(this,'_docsFormulaModel',void 0x0),w(this,'_docsFormulaResourceLoaderService',void 0x0);}['_initialize'](_0x4c7ccb){var _0x85283b=_0x20d659;this[_0x85283b(0x180)]=_0x4c7ccb[_0x85283b(0x162)](_0x4c28f3),this[_0x85283b(0x182)]=_0x4c7ccb['get'](_0x1d4bd8),this[_0x85283b(0x166)]=_0x4c7ccb[_0x85283b(0x162)](_0x189be6),this[_0x85283b(0x14d)]=_0x4c7ccb['get'](_0x5b8a61);}[_0x20d659(0x15f)](){var _0xdf6f6c=_0x20d659;return this['_getCompleteRanges']()[_0xdf6f6c(0x17b)](_0x1e87ec=>this[_0xdf6f6c(0x14b)](_0x1e87ec[_0xdf6f6c(0x16c)]));}[_0x20d659(0x189)](_0x431a36){var _0x36770a=_0x20d659;return this['_getCompleteRanges']()['some'](_0x5c9692=>_0x5c9692[_0x36770a(0x16c)]===_0x431a36)?this[_0x36770a(0x14b)](_0x431a36):null;}['getFormulaAt'](_0x51cc17){var _0x2edc91=_0x20d659;let _0xfd8b2d=this[_0x2edc91(0x15e)]()[_0x2edc91(0x16d)](_0x3e79ac=>_0x3e79ac[_0x2edc91(0x148)]<=_0x51cc17&&_0x51cc17<=_0x3e79ac[_0x2edc91(0x16a)]);return _0xfd8b2d?this['_createFormula'](_0xfd8b2d[_0x2edc91(0x16c)]):null;}[_0x20d659(0x17a)](){var _0x132ff7=_0x20d659;let _0x441a5a=this[_0x132ff7(0x14d)][_0x132ff7(0x167)](this['id']);if(!_0x441a5a)throw Error('Document\x20'+this['id']+_0x132ff7(0x17e));return this['_docsFormulaDisplayTextService'][_0x132ff7(0x18d)](_0x441a5a);}[_0x20d659(0x168)](_0x8a15a4){var _0x384f60=_0x20d659;return this['_insert']({'externalReferences':_0x8a15a4[_0x384f60(0x17f)],'formula':_0x8a15a4[_0x384f60(0x18a)],'numberFormat':_0x8a15a4[_0x384f60(0x158)],'target':{'type':'range','startOffset':_0x8a15a4['startOffset'],'endOffset':_0x8a15a4[_0x384f60(0x194)]},'unitId':this[_0x384f60(0x188)]()});}[_0x20d659(0x14f)](_0x2b7520){var _0x116763=_0x20d659;let _0x14695c=this[_0x116763(0x180)][_0x116763(0x17d)](_0x31330d['id'],_0x2b7520);return _0x14695c?this[_0x116763(0x14b)](_0x14695c[_0x116763(0x16c)]):null;}['_getCompleteRanges'](){var _0xc35746=_0x20d659,_0x30167a;let _0x4b419d=this[_0xc35746(0x166)][_0xc35746(0x15f)](this['getId']());return((_0x30167a=this[_0xc35746(0x179)]('')[_0xc35746(0x164)])==null?void 0x0:_0x30167a[_0xc35746(0x157)](_0x10f21e=>_0x16147b(_0x10f21e)&&_0x4b419d[_0x10f21e[_0xc35746(0x16c)]]!=null))??[];}[_0x20d659(0x14b)](_0x3b1138){var _0x213477=_0x20d659;return this[_0x213477(0x178)][_0x213477(0x14e)](b,this[_0x213477(0x188)](),_0x3b1138);}};function _0xb20e(_0xfecdfa,_0x1661ff){_0xfecdfa=_0xfecdfa-0x148;var _0x5f3d13=_0x5f3d();var _0xb20e0b=_0x5f3d13[_0xfecdfa];return _0xb20e0b;}_0x43ca7f[_0x20d659(0x173)](T);var E=class extends _0x57efe3{constructor(..._0x4d7126){super(..._0x4d7126),w(this,'_docsFormulaCommandService',void 0x0);}[_0x20d659(0x175)](_0x2a763f){var _0x293b80=_0x20d659;this[_0x293b80(0x180)]=_0x2a763f[_0x293b80(0x162)](_0x4c28f3);}[_0x20d659(0x168)](_0x3852fd,_0x4ad99f,_0x1b96dd={}){var _0x26a57f=_0x20d659;return this[_0x26a57f(0x14f)](_0x3852fd,_0x4ad99f,_0x1b96dd);}[_0x20d659(0x16e)](_0x34038f,_0x5eb7c4={}){var _0x155e3f=_0x20d659;return this['_insert'](_0x155e3f(0x196),_0x34038f,_0x5eb7c4);}['_insert'](_0x5932fc,_0x561d0b,_0x1e5b6f){var _0x3d89cc=_0x20d659;if(this[_0x3d89cc(0x171)]())return null;let _0x4b1da6={'externalReferences':_0x1e5b6f[_0x3d89cc(0x17f)],'formula':_0x561d0b,'numberFormat':_0x1e5b6f[_0x3d89cc(0x158)],'target':{'type':_0x3d89cc(0x170),'paragraphId':this['getId'](),'position':_0x5932fc},'unitId':this[_0x3d89cc(0x186)]['getId']()},_0x1b61a3=this['_docsFormulaCommandService'][_0x3d89cc(0x17d)](_0x31330d['id'],_0x4b1da6);return _0x1b61a3?this[_0x3d89cc(0x178)]['createInstance'](b,this[_0x3d89cc(0x186)][_0x3d89cc(0x188)](),_0x1b61a3['rangeId']):null;}};_0x57efe3[_0x20d659(0x173)](E);var D=class extends _0x19ea5f{constructor(..._0x3a74d0){var _0xad80c9=_0x20d659;super(..._0x3a74d0),w(this,_0xad80c9(0x180),void 0x0);}[_0x20d659(0x175)](_0x278be9){this['_docsFormulaCommandService']=_0x278be9['get'](_0x4c28f3);}[_0x20d659(0x15d)](_0x54550e,_0x2b4315={}){var _0x28c48d=_0x20d659;let {endOffset:_0x4ce5e6,segmentId:_0x5288e6,startOffset:_0xd1ee8e}=this[_0x28c48d(0x184)]();return _0x5288e6?null:this['_insert'](_0xd1ee8e,_0x4ce5e6,_0x54550e,_0x2b4315);}[_0x20d659(0x14f)](_0x50dca8,_0x10f1d8,_0x4e69f2,_0x3a25bd){var _0x411c37=_0x20d659;let _0x2b2c4f={'externalReferences':_0x3a25bd[_0x411c37(0x17f)],'formula':_0x4e69f2,'numberFormat':_0x3a25bd[_0x411c37(0x158)],'target':{'type':'range','startOffset':_0x50dca8,'endOffset':_0x10f1d8},'unitId':this[_0x411c37(0x186)][_0x411c37(0x188)]()},_0x31ac43=this['_docsFormulaCommandService'][_0x411c37(0x17d)](_0x31330d['id'],_0x2b2c4f);return _0x31ac43?this['_injector']['createInstance'](b,this['_document'][_0x411c37(0x188)](),_0x31ac43[_0x411c37(0x16c)]):null;}};_0x19ea5f[_0x20d659(0x173)](D);export{b as FDocumentFormula};function _0x5f3d(){var _0x1c1eac=['filter','numberFormat','remove','getUnit','_rangeId','constructor','replaceWithFormula','_getCompleteRanges','getFormulas','iterator','symbol','get','156347NZbTwj','customRanges','getResult','_docsFormulaModel','saveUnit','insertFormula','_univerInstanceService','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','rangeId','find','appendFormula','2892CGOSFt','paragraph','getSegmentId','1096224ZVUNnD','extend','string','_initialize','260nFEbnv','prototype','_injector','getBody','saveFormulaDisplayTextSnapshot','map','2542745GdgtUF','syncExecuteCommand','\x20could\x20not\x20be\x20serialized.','externalReferences','_docsFormulaCommandService','6phSubx','_docsFormulaDisplayTextService','304888wVSxfl','getRange','function','_document','570drBZCV','getId','getFormula','formula','_unitId','14823347pIKzxt','degradeDocumentData','_service','convertToText','getOwnPropertyDescriptor','update','length','getConfig','endOffset','setNumberFormat','end','defineProperty','startIndex','call','7QXOdOe','_createFormula','describe','_docsFormulaResourceLoaderService','createInstance','_insert','object','decorate','71991jevcNd','UNIVER_DOC','_model','_getCustomRange','_commandService'];_0x5f3d=function(){return _0x1c1eac;};return _0x5f3d();}
|