@univerjs-pro/docs-formula 1.0.0-beta.1 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4f6fbf=_0x2954;(function(_0x642624,_0xea1d35){const _0xa811c5=_0x2954,_0x16e0dd=_0x642624();while(!![]){try{const _0x5f1cad=parseInt(_0xa811c5(0x1d0))/0x1+-parseInt(_0xa811c5(0x237))/0x2*(-parseInt(_0xa811c5(0x1e0))/0x3)+-parseInt(_0xa811c5(0x23a))/0x4+parseInt(_0xa811c5(0x211))/0x5*(-parseInt(_0xa811c5(0x1b6))/0x6)+-parseInt(_0xa811c5(0x255))/0x7+-parseInt(_0xa811c5(0x1ef))/0x8+-parseInt(_0xa811c5(0x1cc))/0x9*(-parseInt(_0xa811c5(0x238))/0xa);if(_0x5f1cad===_0xea1d35)break;else _0x16e0dd['push'](_0x16e0dd['shift']());}catch(_0x2fe612){_0x16e0dd['push'](_0x16e0dd['shift']());}}}(_0x4a54,0xcb1fb));import{FormulaCacheEligibilityService as _0x4a49c8,FormulaLastValuePersistenceService as _0x13e281,HostExternalReferenceModel as _0x10c960,UniverProFormulaEnginePlugin as _0x3b8edb,buildUpsertHostExternalReferenceMutations as _0x3007cb,collectFormulaExternalReferenceQualifiers as _0x1e38dc,getScalarFormulaResultCell as _0x4ea63e,resolveFormulaResultPresentation as _0x42aa2e,resolveHostFormulaExternalReferences as _0x25aab3,toFormulaLastValue as _0x4677a5}from'@univerjs-pro/engine-formula';import{CellValueType as _0x359b1c,CommandType as _0x54b120,CustomRangeType as _0xd7705f,DataStreamTreeTokenType as _0x32085f,DependentOn as _0x156929,Disposable as _0x31b7da,ICommandService as _0x17a79b,IConfigService as _0x430bb8,IResourceManagerService as _0x5cca76,IUndoRedoService as _0x108c62,IUniverInstanceService as _0x2f4b97,Inject as _0x2acef3,Injector as _0x4d35b9,JSONX as _0xd1312c,Plugin as _0x19285f,TextX as _0x5043cb,Tools as _0x5009bd,UniverInstanceType as _0x84701a,generateRandomId as _0x567cbf,getBodySliceForTextXAction as _0x3936fb,getCustomRangeInterval as _0x98f7fa,getParagraphContentStartOffset as _0x3d7e00,getRichTextEditPath as _0x3a85ac,merge as _0x51f985,shiftExclusiveRangeOnDelete as _0x40f2b0,shiftExclusiveRangeOnInsert as _0x3994a9,shiftInclusiveRangeOnDelete as _0x1884f3,shiftInclusiveRangeOnInsert as _0x4c9420,touchDependencies as _0x446bb5}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x53247e,DocSelectionManagerService as _0x415e0a,DocTextResolverService as _0x1f7daa,RichTextEditingMutation as _0x152a2b,UniverDocsPlugin as _0x2a1d9f}from'@univerjs/docs';function _0x4a54(){const _0x42315e=['function','number','externalReferences','@univerjs-pro/docs-formula','_registrations','CUSTOM','ERROR','PENDING','segmentId','deepClone','startIndex','object','textRuns','max','find','pushUndoRedo','parse','syncUnit','TABLE_START','formula','identity','degradeBody','_deleteRegistration','liveResult','_model','_service','references','20WwCHFO','getResult','selection','onStarting','dispose','getBody','default','getUnit','CUSTOM_BLOCK','entries','getCurrentUnitOfType','_cacheEligibilityService','registerProvider','unsupported-version','length','dataStream','UNIVER_DOC','collectMutations','updates','decorate','_syncUnit','customDecorations','resources','defineProperty','eligible','_syncScheduled','_preserveInvalid','_instanceService','resolveText','COLUMN_END','_resourceManagerService','disabled','resourceUndo','type','assign','string','customBlocks','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','2kUkkOJ','139660WbMqJk','serialize','1551016RXiAhJ','startOffset','_config','getUnitId','trigger','disposeWithMe','_docFormulaModel','isArray','removeFormula','setConfig','complete','load','endsWith','_commandService','previousDocumentData','docs-formula.command.set-number-format','slice','add','_configService','stale','accessor','_presentationChanged$','SUCCESS','_updateFormulaResult','setFormulas','_queueSync','cursorOffset','5397560PlNoqN','_loadErrors','DOC_FORMULA_PLUGIN','referenceRevision','BLOCK_START','filter','resource','tables','text','docs-formula.mutation.set-last-values','documentData','prototype','source','getRegisteredFormulas','_registrationService','success','stringify','endOffset','nextResource','_hostExternalReferenceModel','subscribe','_setPresentation','docs-formula.mutation.set-formula','asObservable','getRevision','pending','getResource','resolveFormula','unregister','docs-formula.command.insert','every','trim','get','lastValue','call','body','formulaId','_formulaService','schemaVersion','paragraph','TABLE_END','model','values','constructor','keys','_pendingUnitIds','_resources','startsWith','push','name','error','sequenceNodesBuilder','replaceDocRanges','formulas','getTextRanges','getSnapshot','numberFormat','sectionBreaks','isInteger','presentation','getFormulas','removeUnit','notifyTextChanged','pluginName','unitAdded$','iterator','previousResource','PARAGRAPH','set','redoMutation','EMPTY','toPrimitive','documentRedo','_formulaKeys','next','expectedFormula','getInstance','sort','paragraphs','unregisterUnit','start','presentationChanged$','endIndex','columnGroups','unitDisposed$','SECTION_BREAK','min','expectedReferenceRevision','assess','syncExecuteCommand','setFormula','params','DOC','docs-formula.mutation.set-resource','2117124ZzMwXg','COLUMN_GROUP_START','undoMutation','paragraphId','_rawResources','getPresentation','boolean','COLUMN_START','1.0.0-beta.1','forEach','_change$','degradeDocumentData','pattern','unitId','some','position','status','from','data','insertLength','delete','_injector','1683BnuUar','docs-formula.mutation.remove-formula','register','resourceRedo','1344174JtSUvb','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','nextDocumentData','setResource','onCommandExecuted','map','BLOCK_END','_isDisposed','rangeType','document','COLUMN_GROUP_END','end','getFormula','empty','cell','802491PjCcgv','externalMutations','getFormulaValueSync','TABLE_CELL_START','MUTATION','customRanges','rangeId','symbol','blockRanges','color','getLoadError','COMMAND','expectedNumberFormat','config','packageName','6568544lADEmq','range','target','includes','univer-docs-formula','editOp','has'];_0x4a54=function(){return _0x42315e;};return _0x4a54();}import{FormulaResultStatus as _0xa56ea4,LexerTreeBuilder as _0x4b333e,OtherFormulaBizType as _0x1fd681,RegisterOtherFormulaService as _0x13ff1c}from'@univerjs/engine-formula';import{Subject as _0x3ff55e}from'rxjs';import{UniverLicensePlugin as _0x347af6}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x4f6fbf(0x1f3),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x3e34b4){const _0x3dae30=_0x4f6fbf;return!_0x3e34b4||typeof _0x3e34b4!=_0x3dae30(0x201)||!S(_0x3e34b4,['schemaVersion',_0x3dae30(0x18d)])||!('schemaVersion'in _0x3e34b4)||_0x3e34b4[_0x3dae30(0x27b)]!==0x1||!(_0x3dae30(0x18d)in _0x3e34b4)||!_0x3e34b4[_0x3dae30(0x18d)]||typeof _0x3e34b4[_0x3dae30(0x18d)]!=_0x3dae30(0x201)||Array[_0x3dae30(0x241)](_0x3e34b4[_0x3dae30(0x18d)])?!0x1:Object[_0x3dae30(0x21a)](_0x3e34b4[_0x3dae30(0x18d)])['every'](([_0x575ce8,_0x246bed])=>_0x575ce8[_0x3dae30(0x21f)]>0x0&&Pe(_0x246bed));}function Pe(_0x184980){const _0xe2888d=_0x4f6fbf;return!_0x184980||typeof _0x184980!='object'||!S(_0x184980,[_0xe2888d(0x209),_0xe2888d(0x190),'lastValue'])||!('formula'in _0x184980)||typeof _0x184980[_0xe2888d(0x209)]!=_0xe2888d(0x234)||!_0x184980[_0xe2888d(0x209)][_0xe2888d(0x274)]()||_0xe2888d(0x190)in _0x184980&&_0x184980[_0xe2888d(0x190)]!=null&&(typeof _0x184980[_0xe2888d(0x190)]!='object'||!S(_0x184980[_0xe2888d(0x190)],[_0xe2888d(0x1c2)])||!(_0xe2888d(0x1c2)in _0x184980['numberFormat'])||typeof _0x184980['numberFormat'][_0xe2888d(0x1c2)]!=_0xe2888d(0x234))?!0x1:!(_0xe2888d(0x276)in _0x184980)||_0x184980[_0xe2888d(0x276)]==null||Fe(_0x184980[_0xe2888d(0x276)]);}function Fe(_0x536d71){const _0x32cf83=_0x4f6fbf;return!_0x536d71||typeof _0x536d71!=_0x32cf83(0x201)||!S(_0x536d71,['v','t',_0x32cf83(0x1c2)])||!('v'in _0x536d71)||_0x536d71['v']!==null&&typeof _0x536d71['v']!='string'&&typeof _0x536d71['v']!=_0x32cf83(0x1f7)&&typeof _0x536d71['v']!=_0x32cf83(0x1bc)||'t'in _0x536d71&&_0x536d71['t']!=null&&!Ie(_0x536d71['t'])?!0x1:!(_0x32cf83(0x1c2)in _0x536d71)||_0x536d71[_0x32cf83(0x1c2)]==null||typeof _0x536d71[_0x32cf83(0x1c2)]==_0x32cf83(0x234);}function S(_0x1a6f97,_0xa6321d){const _0x516b73=_0x4f6fbf;let _0x3e8571=new Set(_0xa6321d);return Object['keys'](_0x1a6f97)[_0x516b73(0x273)](_0x4b5ed8=>_0x3e8571[_0x516b73(0x1f5)](_0x4b5ed8));}function Ie(_0x37c0a2){const _0x570ba5=_0x4f6fbf;return typeof _0x37c0a2=='number'&&Object[_0x570ba5(0x27f)](_0x359b1c)[_0x570ba5(0x1f2)](_0x37c0a2);}const Le=new Set([_0x32085f[_0x4f6fbf(0x1ad)],_0x32085f[_0x4f6fbf(0x208)],_0x32085f['TABLE_ROW_START'],_0x32085f[_0x4f6fbf(0x1e3)],_0x32085f['TABLE_CELL_END'],_0x32085f['TABLE_ROW_END'],_0x32085f[_0x4f6fbf(0x27d)],_0x32085f[_0x4f6fbf(0x1b7)],_0x32085f[_0x4f6fbf(0x1bd)],_0x32085f[_0x4f6fbf(0x22e)],_0x32085f[_0x4f6fbf(0x1db)],_0x32085f[_0x4f6fbf(0x259)],_0x32085f[_0x4f6fbf(0x1d7)],_0x32085f[_0x4f6fbf(0x219)]]);var C=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function Re(_0x2cd420){const _0x58654c=_0x4f6fbf;var _0x94e591,_0x44a1be;let _0x541e05=_0x5009bd[_0x58654c(0x1ff)](_0x2cd420[_0x58654c(0x25f)]),_0x1b53f3=j(_0x541e05),{startOffset:_0x12da56,endOffset:_0x4d3421}=We(_0x1b53f3,_0x2cd420[_0x58654c(0x23b)],_0x2cd420['endOffset']);He(_0x1b53f3,_0x12da56,_0x4d3421);let _0xd60b36=((_0x94e591=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x94e591[_0x58654c(0x25a)](_0x374dbb=>{const _0x2d66df=_0x58654c;if(!w(_0x374dbb))return!0x1;let _0x232890=_0x98f7fa(_0x374dbb);return _0x232890['endOffset']>_0x12da56&&_0x232890[_0x2d66df(0x23b)]<_0x4d3421;})[_0x58654c(0x1d6)](_0x5afd88=>_0x5afd88[_0x58654c(0x1e6)]))??[];qe(_0x1b53f3,_0x12da56,_0x4d3421,''),_0x1b53f3[_0x58654c(0x1e5)]=[...((_0x44a1be=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x44a1be[_0x58654c(0x25a)](_0x3465b9=>!_0xd60b36[_0x58654c(0x1f2)](_0x3465b9[_0x58654c(0x1e6)])&&_0x3465b9[_0x58654c(0x1e6)]!==_0x2cd420[_0x58654c(0x1e6)]))??[],Ue(_0x2cd420[_0x58654c(0x1e6)],_0x12da56)]['sort']((_0xb510a7,_0xaca23e)=>_0xb510a7[_0x58654c(0x200)]-_0xaca23e[_0x58654c(0x200)]);let _0x3d7b7c=E(_0x2cd420[_0x58654c(0x25b)]);return _0xd60b36[_0x58654c(0x1bf)](_0x4bee5d=>{delete _0x3d7b7c['formulas'][_0x4bee5d];}),_0x3d7b7c[_0x58654c(0x18d)][_0x2cd420[_0x58654c(0x1e6)]]=_0x5009bd['deepClone'](_0x2cd420['config']),{'nextDocumentData':_0x541e05,'nextResource':_0x3d7b7c,'cursorOffset':_0x12da56+0x1};}function ze(_0x1e8c66){const _0x71457=_0x4f6fbf;var _0x193dd0,_0x783bc0;let _0x37838d=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x25f)]),_0x40db35=(_0x193dd0=j(_0x37838d)[_0x71457(0x1e5)])==null?void 0x0:_0x193dd0[_0x71457(0x204)](_0x3cfab0=>_0x3cfab0[_0x71457(0x1e6)]===_0x1e8c66['rangeId']&&w(_0x3cfab0));if(!_0x40db35||!((_0x783bc0=_0x1e8c66[_0x71457(0x25b)])!=null&&_0x783bc0[_0x71457(0x18d)][_0x1e8c66[_0x71457(0x1e6)]]))return null;let _0x299d05=E(_0x1e8c66[_0x71457(0x25b)]);return _0x299d05[_0x71457(0x18d)][_0x1e8c66['rangeId']]=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x1ed)]),{'nextDocumentData':_0x37838d,'nextResource':_0x299d05,'cursorOffset':_0x40db35[_0x71457(0x1aa)]+0x1};}function Be(_0x23af8e){const _0x2f725f=_0x4f6fbf;let _0x5c5d58=_0x5009bd[_0x2f725f(0x1ff)](_0x23af8e[_0x2f725f(0x25f)]),_0x5f2a24=Je(_0x5c5d58,_0x23af8e[_0x2f725f(0x1e6)],_0x23af8e[_0x2f725f(0x25d)]??'');if(_0x5f2a24==null)return null;let _0x3ba75c=E(_0x23af8e[_0x2f725f(0x25b)]);return delete _0x3ba75c[_0x2f725f(0x18d)][_0x23af8e[_0x2f725f(0x1e6)]],{'nextDocumentData':_0x5c5d58,'nextResource':_0x3ba75c,'cursorOffset':_0x5f2a24};}function Ve(_0x32418b,_0x331c79){const _0x4bf123=_0x4f6fbf;var _0xb4058;let _0x5e8907=_0x5009bd[_0x4bf123(0x1ff)](_0x32418b),_0x5b5aea=_0x5e8907['body'];if(!_0x5b5aea)return _0x5e8907;let _0xd2410d=new Map(_0x331c79[_0x4bf123(0x1d6)](_0x4efe11=>[_0x4efe11[_0x4bf123(0x1e6)],_0x4efe11[_0x4bf123(0x25d)]])),_0x408c87=((_0xb4058=_0x5b5aea[_0x4bf123(0x1e5)])==null?void 0x0:_0xb4058[_0x4bf123(0x25a)](_0x3892eb=>w(_0x3892eb)&&_0xd2410d['has'](_0x3892eb['rangeId']))[_0x4bf123(0x1a5)]((_0x4e5438,_0x3cc080)=>_0x3cc080[_0x4bf123(0x200)]-_0x4e5438[_0x4bf123(0x200)]))??[];for(let _0x5b888c of _0x408c87)Je(_0x5e8907,_0x5b888c[_0x4bf123(0x1e6)],_0xd2410d[_0x4bf123(0x275)](_0x5b888c['rangeId'])??'');return _0x5e8907;}function w(_0x3a2263){const _0x1e0f51=_0x4f6fbf;var _0x476355;return(_0x3a2263==null?void 0x0:_0x3a2263[_0x1e0f51(0x1d9)])===_0xd7705f[_0x1e0f51(0x1fb)]&&_0x3a2263['wholeEntity']===!0x0&&((_0x476355=_0x3a2263['properties'])==null?void 0x0:_0x476355['kind'])===_0x1e0f51(0x1f3);}function T(_0x24ccdf,_0x47139d){const _0x3399c7=_0x4f6fbf;var _0x24f333;return _0x24ccdf==null||(_0x24f333=_0x24ccdf['customRanges'])==null?void 0x0:_0x24f333[_0x3399c7(0x204)](_0x5efb1b=>_0x5efb1b[_0x3399c7(0x1e6)]===_0x47139d&&w(_0x5efb1b));}function He(_0xc8aad3,_0x26e80d,_0x2fc235){const _0x2d62cf=_0x4f6fbf;if(_0x26e80d===_0x2fc235){if(Le[_0x2d62cf(0x1f5)](_0xc8aad3['dataStream'][_0x26e80d]))throw new C();return;}for(let _0x3b1735=_0x26e80d;_0x3b1735<_0x2fc235;_0x3b1735++)if(_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]===_0x32085f[_0x2d62cf(0x19b)]||Le['has'](_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]))throw new C();}function Ue(_0x43adeb,_0xf0b9e4){const _0x1c8611=_0x4f6fbf;return{'startIndex':_0xf0b9e4,'endIndex':_0xf0b9e4,'rangeId':_0x43adeb,'rangeType':_0xd7705f[_0x1c8611(0x1fb)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x5a23c0){return _0x5a23c0?_0x5009bd['deepClone'](_0x5a23c0):b();}function We(_0x3b22d8,_0x18157e,_0x4bbcab){const _0x287758=_0x4f6fbf;let _0x4a3033=Ke(_0x3b22d8),_0x2e9bd7=_0x18157e??_0x4a3033,_0x32148c=_0x4bbcab??_0x2e9bd7;return{'startOffset':Ge(Math['min'](_0x2e9bd7,_0x32148c),_0x4a3033),'endOffset':Ge(Math[_0x287758(0x203)](_0x2e9bd7,_0x32148c),_0x4a3033)};}function Ge(_0x598dba,_0x4f92f5){const _0x17417e=_0x4f6fbf;return Math[_0x17417e(0x203)](0x0,Math[_0x17417e(0x1ae)](_0x598dba,_0x4f92f5));}function Ke(_0x5c1145){const _0x4f0748=_0x4f6fbf;return _0x5c1145[_0x4f0748(0x220)][_0x4f0748(0x246)](''+_0x32085f['PARAGRAPH']+_0x32085f['SECTION_BREAK'])?Math[_0x4f0748(0x203)](0x0,_0x5c1145[_0x4f0748(0x220)]['length']-0x2):_0x5c1145[_0x4f0748(0x220)]['endsWith'](_0x32085f['SECTION_BREAK'])?Math['max'](0x0,_0x5c1145['dataStream'][_0x4f0748(0x21f)]-0x1):_0x5c1145[_0x4f0748(0x220)]['length'];}function qe(_0x59a4dc,_0x442822,_0x1fd8c2,_0x26c4fb){_0x1fd8c2>_0x442822&&Xe(_0x59a4dc,_0x442822,_0x1fd8c2),Ye(_0x59a4dc,_0x442822,_0x26c4fb);}function Je(_0x428dc2,_0x4a2edd,_0x4e6412){const _0x22a44a=_0x4f6fbf;var _0x32f839,_0x343abc;let _0x342872=j(_0x428dc2),_0x32332f=(_0x32f839=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x32f839['find'](_0xf95006=>_0xf95006[_0x22a44a(0x1e6)]===_0x4a2edd&&w(_0xf95006));if(!_0x32332f)return null;let _0x47f11f=_0x98f7fa(_0x32332f);return qe(_0x342872,_0x47f11f[_0x22a44a(0x23b)],_0x47f11f[_0x22a44a(0x266)],_0x4e6412),_0x342872['customRanges']=(_0x343abc=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x343abc[_0x22a44a(0x25a)](_0x52674d=>_0x52674d[_0x22a44a(0x1e6)]!==_0x4a2edd),_0x47f11f[_0x22a44a(0x23b)]+_0x4e6412[_0x22a44a(0x21f)];}function Ye(_0x12c189,_0x341000,_0x5deca6){const _0x3d5d99=_0x4f6fbf;_0x5deca6&&(_0x12c189[_0x3d5d99(0x220)]=''+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](0x0,_0x341000)+_0x5deca6+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](_0x341000),Ze(_0x12c189,_0x341000,_0x5deca6[_0x3d5d99(0x21f)]));}function Xe(_0x540787,_0x1375d8,_0x49d527){const _0x129bfd=_0x4f6fbf;let _0x2c751b=_0x49d527-_0x1375d8;_0x540787[_0x129bfd(0x220)]=''+_0x540787[_0x129bfd(0x220)][_0x129bfd(0x24a)](0x0,_0x1375d8)+_0x540787[_0x129bfd(0x220)]['slice'](_0x49d527),Qe(_0x540787,_0x1375d8,_0x2c751b);}function Ze(_0x2269b6,_0x238246,_0x328933){const _0x3135c4=_0x4f6fbf;_0x2269b6[_0x3135c4(0x1a6)]=D(_0x2269b6[_0x3135c4(0x1a6)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x191)]=D(_0x2269b6[_0x3135c4(0x191)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x235)]=D(_0x2269b6[_0x3135c4(0x235)],_0x238246,_0x328933),_0x2269b6['textRuns']=$e(_0x2269b6[_0x3135c4(0x202)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x25c)]=et(_0x2269b6['tables'],_0x238246,_0x328933),_0x2269b6['columnGroups']=k(_0x2269b6[_0x3135c4(0x1ab)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e5)]=k(_0x2269b6[_0x3135c4(0x1e5)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x226)]=k(_0x2269b6[_0x3135c4(0x226)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e8)]=k(_0x2269b6[_0x3135c4(0x1e8)],_0x238246,_0x328933);}function Qe(_0x14dba0,_0xd08de5,_0x1e5b6e){const _0x341a6e=_0x4f6fbf;var _0x3b6ef0,_0x4c31ff;_0x14dba0[_0x341a6e(0x1a6)]=O(_0x14dba0[_0x341a6e(0x1a6)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x191)]=O(_0x14dba0[_0x341a6e(0x191)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x235)]=O(_0x14dba0['customBlocks'],_0xd08de5,_0x1e5b6e),_0x14dba0['textRuns']=(_0x3b6ef0=tt((_0x4c31ff=_0x14dba0['textRuns'])==null?void 0x0:_0x4c31ff[_0x341a6e(0x1d6)](_0x445f23=>({..._0x445f23,'startIndex':_0x445f23['st'],'endIndex':_0x445f23['ed']})),_0xd08de5,_0x1e5b6e))==null?void 0x0:_0x3b6ef0[_0x341a6e(0x1d6)](_0x5c4cfb=>{let {startIndex:_0x24aafc,endIndex:_0x44116d,..._0x3f0a2a}=_0x5c4cfb;return{..._0x3f0a2a,'st':_0x24aafc,'ed':_0x44116d};}),_0x14dba0[_0x341a6e(0x25c)]=tt(_0x14dba0[_0x341a6e(0x25c)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1ab)]=A(_0x14dba0[_0x341a6e(0x1ab)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1e5)]=A(_0x14dba0[_0x341a6e(0x1e5)],_0xd08de5,_0x1e5b6e),_0x14dba0['customDecorations']=A(_0x14dba0[_0x341a6e(0x226)],_0xd08de5,_0x1e5b6e),_0x14dba0['blockRanges']=A(_0x14dba0['blockRanges'],_0xd08de5,_0x1e5b6e);}function D(_0x78d465,_0x3d8819,_0x2ada22){const _0x19a89e=_0x4f6fbf;return _0x78d465==null?void 0x0:_0x78d465[_0x19a89e(0x1d6)](_0x1aa610=>_0x1aa610['startIndex']>=_0x3d8819?{..._0x1aa610,'startIndex':_0x1aa610[_0x19a89e(0x200)]+_0x2ada22}:_0x1aa610);}function O(_0x25e5dc,_0x3eca54,_0x34f649){const _0x4e13d1=_0x4f6fbf;let _0xe75554=_0x3eca54+_0x34f649;return _0x25e5dc==null?void 0x0:_0x25e5dc[_0x4e13d1(0x1d6)](_0x5547ff=>_0x5547ff[_0x4e13d1(0x200)]>=_0x3eca54&&_0x5547ff[_0x4e13d1(0x200)]<_0xe75554?null:_0x5547ff[_0x4e13d1(0x200)]>=_0xe75554?{..._0x5547ff,'startIndex':_0x5547ff[_0x4e13d1(0x200)]-_0x34f649}:_0x5547ff)[_0x4e13d1(0x25a)](_0x1ece29=>_0x1ece29!=null);}function $e(_0xba0856,_0x5f33a4,_0x34307f){const _0x2ddc48=_0x4f6fbf;return _0xba0856==null?void 0x0:_0xba0856[_0x2ddc48(0x1d6)](_0x1d1d07=>_0x1d1d07['st']>=_0x5f33a4?{..._0x1d1d07,'st':_0x1d1d07['st']+_0x34307f,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07['ed']>_0x5f33a4?{..._0x1d1d07,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07);}function k(_0x5b926e,_0x375611,_0x38cea8){const _0x5ea0b8=_0x4f6fbf;return _0x5b926e==null?void 0x0:_0x5b926e[_0x5ea0b8(0x1d6)](_0x55dfe6=>_0x4c9420(_0x55dfe6,_0x375611,_0x38cea8));}function et(_0x50877a,_0x20a746,_0x4dbaf1){const _0x273a76=_0x4f6fbf;return _0x50877a==null?void 0x0:_0x50877a[_0x273a76(0x1d6)](_0x30eb79=>_0x3994a9(_0x30eb79,_0x20a746,_0x4dbaf1));}function A(_0x47a5d3,_0x48891e,_0x15b595){return _0x47a5d3==null?void 0x0:_0x47a5d3['map'](_0x2cd407=>_0x1884f3(_0x2cd407,_0x48891e,_0x15b595))['filter'](_0x228e06=>_0x228e06!=null);}function tt(_0x4d14f5,_0x57c7e9,_0x57caef){return _0x4d14f5==null?void 0x0:_0x4d14f5['map'](_0x591868=>_0x40f2b0(_0x591868,_0x57c7e9,_0x57caef))['filter'](_0x1fc113=>_0x1fc113!=null);}function j(_0x28db63){const _0x44da8d=_0x4f6fbf;if(!_0x28db63[_0x44da8d(0x278)])throw Error(_0x44da8d(0x236));return _0x28db63[_0x44da8d(0x278)];}function M(_0xa76fe8){'@babel/helpers - typeof';const _0x27cd80=_0x4f6fbf;return M=typeof Symbol==_0x27cd80(0x1f6)&&typeof Symbol[_0x27cd80(0x199)]==_0x27cd80(0x1e7)?function(_0x1af0da){return typeof _0x1af0da;}:function(_0xd01203){const _0x4f6265=_0x27cd80;return _0xd01203&&typeof Symbol==_0x4f6265(0x1f6)&&_0xd01203[_0x4f6265(0x280)]===Symbol&&_0xd01203!==Symbol[_0x4f6265(0x260)]?_0x4f6265(0x1e7):typeof _0xd01203;},M(_0xa76fe8);}function nt(_0x56d852,_0x6aeaea){const _0x2f97e2=_0x4f6fbf;if(M(_0x56d852)!=_0x2f97e2(0x201)||!_0x56d852)return _0x56d852;var _0x3faaab=_0x56d852[Symbol[_0x2f97e2(0x19f)]];if(_0x3faaab!==void 0x0){var _0x41e97c=_0x3faaab[_0x2f97e2(0x277)](_0x56d852,_0x6aeaea||_0x2f97e2(0x217));if(M(_0x41e97c)!='object')return _0x41e97c;throw TypeError(_0x2f97e2(0x1d1));}return(_0x6aeaea===_0x2f97e2(0x234)?String:Number)(_0x56d852);}function rt(_0x260bb0){const _0x2aa2be=_0x4f6fbf;var _0x40659d=nt(_0x260bb0,'string');return M(_0x40659d)==_0x2aa2be(0x1e7)?_0x40659d:_0x40659d+'';}function N(_0x2d4945,_0x1d8eef,_0x4e6f27){const _0x442684=_0x4f6fbf;return(_0x1d8eef=rt(_0x1d8eef))in _0x2d4945?Object[_0x442684(0x228)](_0x2d4945,_0x1d8eef,{'value':_0x4e6f27,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d4945[_0x1d8eef]=_0x4e6f27,_0x2d4945;}var P=class extends _0x31b7da{constructor(..._0x4e3f7c){const _0x2f7838=_0x4f6fbf;super(..._0x4e3f7c),N(this,_0x2f7838(0x186),new Map()),N(this,_0x2f7838(0x1ba),new Map()),N(this,_0x2f7838(0x256),new Map()),N(this,_0x2f7838(0x1c0),new _0x3ff55e()),N(this,'change$',this[_0x2f7838(0x1c0)][_0x2f7838(0x26c)]());}[_0x4f6fbf(0x1dd)](_0x4abe52,_0x19ff96){const _0x553282=_0x4f6fbf;var _0x3c7bf8;let _0x5ed942=(_0x3c7bf8=this[_0x553282(0x186)][_0x553282(0x275)](_0x4abe52))==null?void 0x0:_0x3c7bf8[_0x553282(0x18d)][_0x19ff96];return _0x5ed942?_0x5009bd[_0x553282(0x1ff)](_0x5ed942):void 0x0;}[_0x4f6fbf(0x194)](_0x3ec31d){const _0x145e20=_0x4f6fbf;var _0x48e563;return _0x5009bd[_0x145e20(0x1ff)](((_0x48e563=this[_0x145e20(0x186)][_0x145e20(0x275)](_0x3ec31d))==null?void 0x0:_0x48e563[_0x145e20(0x18d)])??{});}[_0x4f6fbf(0x26f)](_0x412d9a){const _0x328c48=_0x4f6fbf;let _0x5eaf02=this[_0x328c48(0x186)][_0x328c48(0x275)](_0x412d9a);return _0x5eaf02?_0x5009bd[_0x328c48(0x1ff)](_0x5eaf02):void 0x0;}[_0x4f6fbf(0x1b2)](_0x10dce6,_0x375f12,_0x21f518){const _0x203429=_0x4f6fbf;return this[_0x203429(0x252)](_0x10dce6,{[_0x375f12]:_0x21f518});}[_0x4f6fbf(0x1d4)](_0x5a2967,_0x11830c){const _0x228796=_0x4f6fbf;return this['_loadErrors'][_0x228796(0x1f5)](_0x5a2967)||!x(_0x11830c)?!0x1:(this['_resources'][_0x228796(0x19c)](_0x5a2967,_0x5009bd[_0x228796(0x1ff)](_0x11830c)),this[_0x228796(0x1c0)]['next']({'unitId':_0x5a2967}),!0x0);}[_0x4f6fbf(0x252)](_0x11bfa9,_0x186616){const _0x37d9c5=_0x4f6fbf;if(this[_0x37d9c5(0x256)]['has'](_0x11bfa9)||!Object[_0x37d9c5(0x281)](_0x186616)[_0x37d9c5(0x21f)]||!x({'schemaVersion':0x1,'formulas':_0x186616}))return!0x1;let _0x2b0550=this[_0x37d9c5(0x186)][_0x37d9c5(0x275)](_0x11bfa9)??b(),_0x128f85=_0x5009bd[_0x37d9c5(0x1ff)](_0x2b0550);return Object[_0x37d9c5(0x233)](_0x128f85[_0x37d9c5(0x18d)],_0x5009bd[_0x37d9c5(0x1ff)](_0x186616)),this[_0x37d9c5(0x186)]['set'](_0x11bfa9,_0x128f85),this[_0x37d9c5(0x1c0)][_0x37d9c5(0x1a2)]({'unitId':_0x11bfa9,'rangeIds':Object[_0x37d9c5(0x281)](_0x186616)}),!0x0;}[_0x4f6fbf(0x242)](_0x30d3d5,_0x4a76c2){const _0x1f7905=_0x4f6fbf;if(this[_0x1f7905(0x256)][_0x1f7905(0x1f5)](_0x30d3d5))return!0x1;let _0x2ab402=this[_0x1f7905(0x186)][_0x1f7905(0x275)](_0x30d3d5);if(!(_0x2ab402!=null&&_0x2ab402[_0x1f7905(0x18d)][_0x4a76c2]))return!0x1;let _0x32c2e5=_0x5009bd[_0x1f7905(0x1ff)](_0x2ab402);return delete _0x32c2e5[_0x1f7905(0x18d)][_0x4a76c2],this[_0x1f7905(0x186)][_0x1f7905(0x19c)](_0x30d3d5,_0x32c2e5),this['_change$']['next']({'unitId':_0x30d3d5,'rangeIds':[_0x4a76c2]}),!0x0;}[_0x4f6fbf(0x245)](_0x31862c,_0x437cbd){const _0x513979=_0x4f6fbf;return _0x437cbd&&typeof _0x437cbd==_0x513979(0x201)&&_0x513979(0x27b)in _0x437cbd&&_0x437cbd['schemaVersion']!==0x1?(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,_0x513979(0x21e)),!0x1):x(_0x437cbd)?(this['_resources'][_0x513979(0x19c)](_0x31862c,_0x5009bd['deepClone'](_0x437cbd)),this[_0x513979(0x1ba)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x256)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x1c0)][_0x513979(0x1a2)]({'unitId':_0x31862c}),!0x0):(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,'invalid-resource'),!0x1);}[_0x4f6fbf(0x239)](_0x186a05){const _0x34ea94=_0x4f6fbf;let _0x2cd08f=this[_0x34ea94(0x186)][_0x34ea94(0x275)](_0x186a05);return _0x2cd08f?_0x5009bd[_0x34ea94(0x1ff)](_0x2cd08f):this['_rawResources'][_0x34ea94(0x1f5)](_0x186a05)?_0x5009bd[_0x34ea94(0x1ff)](this[_0x34ea94(0x1ba)][_0x34ea94(0x275)](_0x186a05)):b();}[_0x4f6fbf(0x1ea)](_0x5f4820){const _0xa516f2=_0x4f6fbf;return this[_0xa516f2(0x256)][_0xa516f2(0x275)](_0x5f4820);}[_0x4f6fbf(0x195)](_0x487c7a){const _0x18f04f=_0x4f6fbf;this[_0x18f04f(0x186)]['delete'](_0x487c7a),this[_0x18f04f(0x1ba)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x256)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x1c0)][_0x18f04f(0x1a2)]({'unitId':_0x487c7a});}[_0x4f6fbf(0x215)](){const _0x478b95=_0x4f6fbf;this[_0x478b95(0x186)][_0x478b95(0x1d2)](),this[_0x478b95(0x1ba)][_0x478b95(0x1d2)](),this[_0x478b95(0x256)][_0x478b95(0x1d2)](),this['_change$']['complete'](),super[_0x478b95(0x215)]();}[_0x4f6fbf(0x22b)](_0x1f9401,_0x4fd209,_0x3f12aa){const _0x4554e5=_0x4f6fbf;this[_0x4554e5(0x186)]['delete'](_0x1f9401),this[_0x4554e5(0x1ba)]['set'](_0x1f9401,_0x5009bd['deepClone'](_0x4fd209)),this['_loadErrors']['set'](_0x1f9401,_0x3f12aa),this[_0x4554e5(0x1c0)][_0x4554e5(0x1a2)]({'unitId':_0x1f9401});}};let it=function(_0x37d957){const _0x2ba963=_0x4f6fbf;return _0x37d957[_0x2ba963(0x19e)]=_0x2ba963(0x1de),_0x37d957[_0x2ba963(0x1fd)]=_0x2ba963(0x26e),_0x37d957[_0x2ba963(0x250)]='success',_0x37d957['ERROR']=_0x2ba963(0x18a),_0x37d957;}({});function F(_0x48d28a,_0x4c1267){return function(_0x460ff6,_0x42bb57){_0x4c1267(_0x460ff6,_0x42bb57,_0x48d28a);};}function I(_0x4a534b,_0x5288fc,_0x4b784f,_0x285269){const _0x2d4b29=_0x4f6fbf;var _0x7fe339=arguments['length'],_0x344cd4=_0x7fe339<0x3?_0x5288fc:_0x285269===null?_0x285269=Object['getOwnPropertyDescriptor'](_0x5288fc,_0x4b784f):_0x285269,_0x1cd98a;if(typeof Reflect==_0x2d4b29(0x201)&&typeof Reflect[_0x2d4b29(0x224)]==_0x2d4b29(0x1f6))_0x344cd4=Reflect[_0x2d4b29(0x224)](_0x4a534b,_0x5288fc,_0x4b784f,_0x285269);else{for(var _0x6335fe=_0x4a534b[_0x2d4b29(0x21f)]-0x1;_0x6335fe>=0x0;_0x6335fe--)(_0x1cd98a=_0x4a534b[_0x6335fe])&&(_0x344cd4=(_0x7fe339<0x3?_0x1cd98a(_0x344cd4):_0x7fe339>0x3?_0x1cd98a(_0x5288fc,_0x4b784f,_0x344cd4):_0x1cd98a(_0x5288fc,_0x4b784f))||_0x344cd4);}return _0x7fe339>0x3&&_0x344cd4&&Object[_0x2d4b29(0x228)](_0x5288fc,_0x4b784f,_0x344cd4),_0x344cd4;}let L=class extends _0x31b7da{constructor(_0x61dd4e,_0x2f85ad,_0x1c6603){const _0x13d8a9=_0x4f6fbf;super(),this[_0x13d8a9(0x20e)]=_0x61dd4e,this[_0x13d8a9(0x263)]=_0x2f85ad,this['_hostExternalReferenceModel']=_0x1c6603,N(this,_0x13d8a9(0x1fa),new Map()),N(this,'_formulaKeys',new Map()),N(this,_0x13d8a9(0x24f),new _0x3ff55e()),N(this,_0x13d8a9(0x1a9),this['_presentationChanged$']['asObservable']()),this[_0x13d8a9(0x23f)](this[_0x13d8a9(0x263)]['formulaResult$']['subscribe'](_0x5d62aa=>{for(let _0x786e3a of Object['values'](_0x5d62aa))for(let _0x2fa587 of Object['values'](_0x786e3a))_0x2fa587['forEach'](_0x59aaab=>this['_updateFormulaResult'](_0x59aaab));}));}['syncUnit'](_0x3628d5){const _0x31c429=_0x4f6fbf;var _0x45fdcc;let _0x30d2cc=_0x3628d5[_0x31c429(0x23d)](),_0x59da12=((_0x45fdcc=_0x3628d5[_0x31c429(0x18f)]()['body'])==null||(_0x45fdcc=_0x45fdcc[_0x31c429(0x1e5)])==null?void 0x0:_0x45fdcc[_0x31c429(0x25a)](w))??[],_0x3ef9be=this[_0x31c429(0x20e)][_0x31c429(0x194)](_0x30d2cc),_0x1f9acc=new Set();for(let _0x2f2274 of _0x59da12){let _0x4f8aec=_0x3ef9be[_0x2f2274[_0x31c429(0x1e6)]];_0x4f8aec&&(_0x1f9acc[_0x31c429(0x24b)](R(_0x30d2cc,_0x2f2274[_0x31c429(0x1e6)])),this[_0x31c429(0x1ce)]({'unitId':_0x30d2cc,'rangeId':_0x2f2274['rangeId']},_0x4f8aec));}for(let _0x331425 of Array[_0x31c429(0x1c7)](this[_0x31c429(0x1fa)][_0x31c429(0x27f)]()))_0x331425[_0x31c429(0x1c3)]===_0x30d2cc&&!_0x1f9acc[_0x31c429(0x1f5)](R(_0x331425['unitId'],_0x331425[_0x31c429(0x1e6)]))&&this[_0x31c429(0x271)](_0x331425);}[_0x4f6fbf(0x1ce)](_0x16d436,_0x312629){const _0x4bc2c6=_0x4f6fbf;let _0x52878b=R(_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436[_0x4bc2c6(0x1e6)]),_0x1e92af=this[_0x4bc2c6(0x1fa)]['get'](_0x52878b),_0x470f14=this[_0x4bc2c6(0x268)]['getRevision'](_0x16d436[_0x4bc2c6(0x1c3)]);if(_0x1e92af&&_0x1e92af[_0x4bc2c6(0x1ed)][_0x4bc2c6(0x209)]===_0x312629['formula']&&_0x1e92af[_0x4bc2c6(0x258)]===_0x470f14){_0x1e92af['config']=_0x312629;let _0x33484b=_0x1e92af[_0x4bc2c6(0x279)]?this['_registrationService'][_0x4bc2c6(0x1e2)](_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x279)])??void 0x0:void 0x0;_0x1e92af[_0x4bc2c6(0x20d)]=_0x33484b,this['_setPresentation'](_0x52878b,z(_0x312629,_0x33484b));return;}_0x1e92af!=null&&_0x1e92af[_0x4bc2c6(0x279)]&&this[_0x4bc2c6(0x20c)](_0x1e92af);let _0x50b8cd={..._0x16d436,'config':_0x312629,'referenceRevision':_0x470f14,'presentation':z(_0x312629,void 0x0)};if(this[_0x4bc2c6(0x1fa)][_0x4bc2c6(0x19c)](_0x52878b,_0x50b8cd),!_0x312629[_0x4bc2c6(0x209)][_0x4bc2c6(0x274)]())return;let _0x1d6f40=this['_registrationService']['registerFormulaWithRange'](_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436['unitId'],_0x312629[_0x4bc2c6(0x209)],void 0x0,{'rangeId':_0x16d436['rangeId']},_0x1fd681[_0x4bc2c6(0x1b4)],_0x16d436[_0x4bc2c6(0x1e6)]);_0x50b8cd[_0x4bc2c6(0x279)]=_0x1d6f40,this[_0x4bc2c6(0x1a1)][_0x4bc2c6(0x19c)](_0x1d6f40,_0x52878b);}[_0x4f6fbf(0x271)](_0x3f20f0){const _0x2f1f1b=_0x4f6fbf;let _0x5ed15b=R(_0x3f20f0['unitId'],_0x3f20f0[_0x2f1f1b(0x1e6)]),_0x122d55=this['_registrations'][_0x2f1f1b(0x275)](_0x5ed15b);_0x122d55&&(this[_0x2f1f1b(0x20c)](_0x122d55),this[_0x2f1f1b(0x1fa)]['delete'](_0x5ed15b));}[_0x4f6fbf(0x1a7)](_0x55507e){const _0x193183=_0x4f6fbf;for(let _0x5c4a0c of Array['from'](this['_registrations'][_0x193183(0x27f)]()))_0x5c4a0c['unitId']===_0x55507e&&this[_0x193183(0x271)](_0x5c4a0c);}[_0x4f6fbf(0x1bb)](_0x3067e2){const _0x354f69=_0x4f6fbf;var _0x41d9ea;return(_0x41d9ea=this[_0x354f69(0x1fa)]['get'](R(_0x3067e2[_0x354f69(0x1c3)],_0x3067e2[_0x354f69(0x1e6)])))==null?void 0x0:_0x41d9ea[_0x354f69(0x193)];}[_0x4f6fbf(0x212)](_0x323fa2){const _0x407a20=_0x4f6fbf;let _0x5298a4=this[_0x407a20(0x1fa)][_0x407a20(0x275)](R(_0x323fa2[_0x407a20(0x1c3)],_0x323fa2[_0x407a20(0x1e6)]));return _0x5298a4?B(_0x5298a4):void 0x0;}[_0x4f6fbf(0x262)](){const _0x556ef4=_0x4f6fbf;return Array[_0x556ef4(0x1c7)](this['_registrations']['values'](),_0x44f77f=>({'identity':{'unitId':_0x44f77f['unitId'],'rangeId':_0x44f77f['rangeId']},'config':_0x44f77f['config'],'referenceRevision':_0x44f77f[_0x556ef4(0x258)],..._0x44f77f['liveResult']?{'liveResult':_0x44f77f['liveResult']}:null}));}[_0x4f6fbf(0x215)](){const _0x3d6e9e=_0x4f6fbf;for(let _0x1beb96 of this[_0x3d6e9e(0x1fa)]['values']())this['_deleteRegistration'](_0x1beb96);this[_0x3d6e9e(0x1fa)]['clear'](),this[_0x3d6e9e(0x1a1)][_0x3d6e9e(0x1d2)](),this['_presentationChanged$'][_0x3d6e9e(0x244)](),super[_0x3d6e9e(0x215)]();}[_0x4f6fbf(0x251)](_0x3913b3){const _0x1e1a02=_0x4f6fbf;let _0x597c15=this[_0x1e1a02(0x1a1)]['get'](_0x3913b3[_0x1e1a02(0x279)]),_0x42416c=_0x597c15?this[_0x1e1a02(0x1fa)]['get'](_0x597c15):void 0x0;!_0x597c15||!_0x42416c||(_0x42416c[_0x1e1a02(0x20d)]=_0x3913b3,this[_0x1e1a02(0x26a)](_0x597c15,z(_0x42416c[_0x1e1a02(0x1ed)],_0x3913b3)));}[_0x4f6fbf(0x26a)](_0x31df09,_0x44edfb){const _0x43bb91=_0x4f6fbf;var _0x35c93c,_0x58abf2;let _0x55c5ca=this[_0x43bb91(0x1fa)][_0x43bb91(0x275)](_0x31df09);if(!_0x55c5ca||at(_0x55c5ca['presentation'],_0x44edfb))return;let _0x4c7f38=_0x55c5ca[_0x43bb91(0x193)],_0x95b55=B(_0x55c5ca);_0x55c5ca['presentation']=_0x44edfb,this[_0x43bb91(0x24f)][_0x43bb91(0x1a2)]({'unitId':_0x55c5ca['unitId'],'rangeId':_0x55c5ca[_0x43bb91(0x1e6)],'presentation':_0x44edfb,'previousPresentation':_0x4c7f38,'result':B(_0x55c5ca),'previousResult':{..._0x95b55,..._0x4c7f38,'value':(_0x35c93c=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x35c93c['v'],'valueType':((_0x58abf2=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x58abf2['t'])??void 0x0}});}[_0x4f6fbf(0x20c)](_0x4f36e2){const _0x4da46c=_0x4f6fbf;_0x4f36e2[_0x4da46c(0x279)]&&(this[_0x4da46c(0x263)]['deleteFormula'](_0x4f36e2[_0x4da46c(0x1c3)],_0x4f36e2[_0x4da46c(0x1c3)],[_0x4f36e2[_0x4da46c(0x279)]]),this['_formulaKeys'][_0x4da46c(0x1ca)](_0x4f36e2[_0x4da46c(0x279)]));}};L=I([F(0x0,_0x2acef3(P)),F(0x1,_0x2acef3(_0x13ff1c)),F(0x2,_0x2acef3(_0x10c960))],L);function R(_0x58f1d6,_0x49206a){return _0x58f1d6+'\x00'+_0x49206a;}function z(_0x50bcdf,_0x46e716){return _0x42aa2e({'numberFormat':_0x50bcdf['numberFormat'],'lastValue':_0x50bcdf['lastValue'],'result':_0x46e716});}function B(_0x39b239){const _0x51163b=_0x4f6fbf;var _0x53f904,_0xdcb372,_0x1f2f38;let _0x11e8c2=_0x39b239['presentation'],_0x56e1bf=_0x39b239['config']['formula'][_0x51163b(0x274)]()?_0x11e8c2['stale']||_0x11e8c2[_0x51163b(0x1df)]==null?_0x51163b(0x26e):((_0x53f904=_0x39b239[_0x51163b(0x20d)])==null?void 0x0:_0x53f904[_0x51163b(0x1c6)])===_0xa56ea4[_0x51163b(0x1fc)]?'error':_0x51163b(0x264):_0x51163b(0x1de);return{..._0x11e8c2,'status':_0x56e1bf,'value':(_0xdcb372=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0xdcb372['v'],'valueType':((_0x1f2f38=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0x1f2f38['t'])??void 0x0};}function at(_0x46de42,_0x105086){const _0x5d6e2c=_0x4f6fbf;var _0x2fa9d2,_0x4365b3,_0x40c266,_0x6f78c6;return _0x46de42[_0x5d6e2c(0x25d)]===_0x105086[_0x5d6e2c(0x25d)]&&_0x46de42[_0x5d6e2c(0x1e9)]===_0x105086[_0x5d6e2c(0x1e9)]&&_0x46de42['pattern']===_0x105086[_0x5d6e2c(0x1c2)]&&_0x46de42['source']===_0x105086[_0x5d6e2c(0x261)]&&_0x46de42[_0x5d6e2c(0x24d)]===_0x105086[_0x5d6e2c(0x24d)]&&((_0x2fa9d2=_0x46de42['cell'])==null?void 0x0:_0x2fa9d2['t'])===((_0x4365b3=_0x105086['cell'])==null?void 0x0:_0x4365b3['t'])&&Object['is']((_0x40c266=_0x46de42[_0x5d6e2c(0x1df)])==null?void 0x0:_0x40c266['v'],(_0x6f78c6=_0x105086[_0x5d6e2c(0x1df)])==null?void 0x0:_0x6f78c6['v']);}const ot={'id':_0x4f6fbf(0x26b),'type':_0x54b120['MUTATION'],'handler':(_0x204bad,_0x213e4c)=>!(_0x213e4c!=null&&_0x213e4c[_0x4f6fbf(0x1c3)])||!_0x213e4c[_0x4f6fbf(0x1e6)]||!_0x213e4c['config']?!0x1:_0x204bad[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1b2)](_0x213e4c[_0x4f6fbf(0x1c3)],_0x213e4c['rangeId'],_0x213e4c[_0x4f6fbf(0x1ed)])},st={'id':_0x4f6fbf(0x1cd),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0x45e125,_0x162caa)=>!(_0x162caa!=null&&_0x162caa[_0x4f6fbf(0x1c3)])||!_0x162caa['rangeId']?!0x1:_0x45e125['get'](P)[_0x4f6fbf(0x242)](_0x162caa[_0x4f6fbf(0x1c3)],_0x162caa[_0x4f6fbf(0x1e6)])},V={'id':_0x4f6fbf(0x1b5),'type':_0x54b120['MUTATION'],'handler':(_0x374b44,_0x100684)=>!(_0x100684!=null&&_0x100684['unitId'])||!_0x100684[_0x4f6fbf(0x25b)]?!0x1:_0x374b44[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1d4)](_0x100684[_0x4f6fbf(0x1c3)],_0x100684[_0x4f6fbf(0x25b)])},H={'id':_0x4f6fbf(0x25e),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0xdca892,_0xd345f4)=>{const _0x18d233=_0x4f6fbf;if(!(_0xd345f4!=null&&_0xd345f4[_0x18d233(0x1c3)])||!_0xd345f4['updates'][_0x18d233(0x21f)])return!0x1;let _0xa1f684=_0xdca892['get'](P),_0x51e22d=_0xdca892[_0x18d233(0x275)](_0x10c960),_0x5b79ad=_0xa1f684['getResource'](_0xd345f4[_0x18d233(0x1c3)]);if(!_0x5b79ad)return!0x1;let _0xb826d7=_0x5009bd[_0x18d233(0x1ff)](_0x5b79ad),_0x3d9d97=!0x1;for(let _0x276f92 of _0xd345f4[_0x18d233(0x223)]){var _0x589757,_0x50d19b,_0x136ad6,_0x50709e;let _0x2d9dc7=_0xb826d7[_0x18d233(0x18d)][_0x276f92['rangeId']];!_0x2d9dc7||_0x2d9dc7[_0x18d233(0x209)]!==_0x276f92[_0x18d233(0x1a3)]||((_0x589757=_0x2d9dc7[_0x18d233(0x190)])==null?void 0x0:_0x589757[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x1ec)]||_0x51e22d[_0x18d233(0x26d)](_0xd345f4[_0x18d233(0x1c3)])!==_0x276f92[_0x18d233(0x1af)]||(((_0x50d19b=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50d19b['v'])!==_0x276f92[_0x18d233(0x276)]['v']||((_0x136ad6=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x136ad6['t'])!==_0x276f92[_0x18d233(0x276)]['t']||((_0x50709e=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50709e[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x276)][_0x18d233(0x1c2)])&&(_0x2d9dc7['lastValue']=_0x5009bd[_0x18d233(0x1ff)](_0x276f92[_0x18d233(0x276)]),_0x3d9d97=!0x0);}return!_0x3d9d97||_0xa1f684[_0x18d233(0x1d4)](_0xd345f4[_0x18d233(0x1c3)],_0xb826d7);}},U={'id':_0x4f6fbf(0x272),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x497e3e,_0x148eaf)=>{const _0x58c822=_0x4f6fbf;if(!(_0x148eaf!=null&&_0x148eaf[_0x58c822(0x209)][_0x58c822(0x274)]()))return!0x1;let _0x520505=q(_0x497e3e,_0x148eaf[_0x58c822(0x1c3)],'');if(!_0x520505)return!0x1;let _0xdc7397=ft(_0x148eaf[_0x58c822(0x1f1)],_0x520505['body'],dt(_0x497e3e,_0x520505[_0x58c822(0x1c3)]));if(!_0xdc7397)return!0x1;let _0x9ecf4d=pt(_0x497e3e,_0x520505['unitId'],_0x148eaf[_0x58c822(0x209)],_0x148eaf['externalReferences']??[]);if(!_0x9ecf4d)return!0x1;let _0x411619=mt(_0x520505['body'],_0x520505[_0x58c822(0x27e)],_0x520505[_0x58c822(0x1c3)]),_0x5ce0a0=ht({'documentData':_0x520505[_0x58c822(0x25f)],'resource':_0x520505[_0x58c822(0x25b)],'rangeId':_0x411619,'config':{'formula':_0x148eaf[_0x58c822(0x209)],..._0x148eaf['numberFormat']?{'numberFormat':_0x148eaf[_0x58c822(0x190)]}:null},'startOffset':_0xdc7397['startOffset'],'endOffset':_0xdc7397['endOffset']});if(!_0x5ce0a0)return!0x1;let _0x4d1f62=_0x3007cb(_0x497e3e,_0x520505['unitId'],_0x9ecf4d);return!_0x4d1f62||!J({'accessor':_0x497e3e,'document':_0x520505[_0x58c822(0x1da)],'unitId':_0x520505[_0x58c822(0x1c3)],'trigger':U['id'],'rangeId':_0x411619,'previousResource':_0x520505[_0x58c822(0x25b)],'nextResource':_0x5ce0a0['nextResource'],'previousDocumentData':_0x520505['documentData'],'nextDocumentData':_0x5ce0a0[_0x58c822(0x1d3)],'cursorOffset':_0x5ce0a0[_0x58c822(0x254)],'externalMutations':_0x4d1f62})?!0x1:{'rangeId':_0x411619,'startOffset':_0x5ce0a0[_0x58c822(0x254)]-0x1,'endOffset':_0x5ce0a0[_0x58c822(0x254)]};}},W={'id':'docs-formula.command.update','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x776d37,_0x51b77a)=>{const _0x2fc63f=_0x4f6fbf;if(!(_0x51b77a!=null&&_0x51b77a[_0x2fc63f(0x1e6)])||!_0x51b77a[_0x2fc63f(0x209)]['trim']())return!0x1;let _0x5bb46c=q(_0x776d37,_0x51b77a[_0x2fc63f(0x1c3)],''),_0x18801=_0x5bb46c==null?void 0x0:_0x5bb46c[_0x2fc63f(0x27e)]['getFormula'](_0x5bb46c[_0x2fc63f(0x1c3)],_0x51b77a['rangeId']),_0x48444f=_0x5bb46c?T(_0x5bb46c[_0x2fc63f(0x25f)][_0x2fc63f(0x278)],_0x51b77a[_0x2fc63f(0x1e6)]):void 0x0;if(!_0x5bb46c||!_0x18801||!_0x48444f)return!0x1;let _0x2185b2=pt(_0x776d37,_0x5bb46c['unitId'],_0x51b77a[_0x2fc63f(0x209)],_0x51b77a[_0x2fc63f(0x1f8)]??[]);if(!_0x2185b2)return!0x1;let _0x1cd9ca=_0x3007cb(_0x776d37,_0x5bb46c[_0x2fc63f(0x1c3)],_0x2185b2);if(!_0x1cd9ca)return!0x1;let _0x2dab58=Ct(_0x5bb46c[_0x2fc63f(0x25b)]);return _0x2dab58['formulas'][_0x51b77a['rangeId']]={'formula':_0x51b77a[_0x2fc63f(0x209)],..._0x51b77a[_0x2fc63f(0x190)]?{'numberFormat':_0x51b77a[_0x2fc63f(0x190)]}:_0x18801['numberFormat']?{'numberFormat':_0x18801[_0x2fc63f(0x190)]}:null},J({'accessor':_0x776d37,'document':_0x5bb46c[_0x2fc63f(0x1da)],'unitId':_0x5bb46c['unitId'],'trigger':W['id'],'rangeId':_0x51b77a[_0x2fc63f(0x1e6)],'previousResource':_0x5bb46c[_0x2fc63f(0x25b)],'nextResource':_0x2dab58,'cursorOffset':_0x48444f[_0x2fc63f(0x1aa)]+0x1,'externalMutations':_0x1cd9ca});}},G={'id':_0x4f6fbf(0x249),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0xc776df,_0x3a4272)=>{const _0x28839b=_0x4f6fbf;if(!(_0x3a4272!=null&&_0x3a4272[_0x28839b(0x1e6)]))return!0x1;let _0x3e9660=q(_0xc776df,_0x3a4272[_0x28839b(0x1c3)],''),_0x332d8e=_0x3e9660==null?void 0x0:_0x3e9660[_0x28839b(0x27e)][_0x28839b(0x1dd)](_0x3e9660[_0x28839b(0x1c3)],_0x3a4272[_0x28839b(0x1e6)]),_0x2d9e40=_0x3e9660?T(_0x3e9660[_0x28839b(0x25f)][_0x28839b(0x278)],_0x3a4272[_0x28839b(0x1e6)]):void 0x0;if(!_0x3e9660||!_0x332d8e||!_0x2d9e40)return!0x1;let _0x2fd01e=Ct(_0x3e9660[_0x28839b(0x25b)]);return _0x2fd01e[_0x28839b(0x18d)][_0x3a4272['rangeId']]={..._0x332d8e,..._0x3a4272[_0x28839b(0x190)]?{'numberFormat':_0x3a4272['numberFormat']}:null},_0x3a4272['numberFormat']||delete _0x2fd01e['formulas'][_0x3a4272['rangeId']][_0x28839b(0x190)],J({'accessor':_0xc776df,'document':_0x3e9660[_0x28839b(0x1da)],'unitId':_0x3e9660[_0x28839b(0x1c3)],'trigger':G['id'],'rangeId':_0x3a4272[_0x28839b(0x1e6)],'previousResource':_0x3e9660['resource'],'nextResource':_0x2fd01e,'cursorOffset':_0x2d9e40['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x2cdb50,_0x572ab1)=>ut(_0x2cdb50,_0x572ab1,'',K['id'])},ct={'id':'docs-formula.command.replace-with-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x1392e2,_0x27f65f)=>ut(_0x1392e2,_0x27f65f,(_0x27f65f==null?void 0x0:_0x27f65f[_0x4f6fbf(0x25d)])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x50c63a,_0x32fa5e)=>{const _0x2059b3=_0x4f6fbf;if(!(_0x32fa5e!=null&&_0x32fa5e['rangeId']))return!0x1;let _0x151528=q(_0x50c63a,_0x32fa5e[_0x2059b3(0x1c3)],'');if(!_0x151528)return!0x1;let _0x1a1be8=_0x50c63a[_0x2059b3(0x275)](L)[_0x2059b3(0x212)]({'unitId':_0x151528[_0x2059b3(0x1c3)],'rangeId':_0x32fa5e[_0x2059b3(0x1e6)]});return _0x1a1be8?ut(_0x50c63a,_0x32fa5e,_0x1a1be8[_0x2059b3(0x25d)],lt['id']):!0x1;}};function ut(_0x56d2be,_0x10b1d9,_0x5aaf2a,_0x4ca40c){const _0x166931=_0x4f6fbf;if(!(_0x10b1d9!=null&&_0x10b1d9[_0x166931(0x1e6)]))return!0x1;let _0x11fdbd=q(_0x56d2be,_0x10b1d9[_0x166931(0x1c3)],'');if(!_0x11fdbd)return!0x1;let _0x501f1c=Be({'documentData':_0x11fdbd[_0x166931(0x25f)],'resource':_0x11fdbd[_0x166931(0x25b)],'rangeId':_0x10b1d9[_0x166931(0x1e6)],'text':_0x5aaf2a});return _0x501f1c?J({'accessor':_0x56d2be,'document':_0x11fdbd[_0x166931(0x1da)],'unitId':_0x11fdbd[_0x166931(0x1c3)],'trigger':_0x4ca40c,'rangeId':_0x10b1d9[_0x166931(0x1e6)],'previousResource':_0x11fdbd['resource'],'nextResource':_0x501f1c[_0x166931(0x267)],'previousDocumentData':_0x11fdbd[_0x166931(0x25f)],'nextDocumentData':_0x501f1c[_0x166931(0x1d3)],'cursorOffset':_0x501f1c['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x31eafb,_0x328a01,_0x330ba9){const _0x4a5d9c=_0x4f6fbf;if(_0x330ba9)return null;let _0x15702c=_0x31eafb['get'](_0x2f4b97),_0x178af1=(_0x328a01?_0x15702c['getUnit'](_0x328a01,_0x84701a[_0x4a5d9c(0x221)]):_0x15702c[_0x4a5d9c(0x21b)](_0x84701a[_0x4a5d9c(0x221)]))??null;if(!_0x178af1)return null;let _0x368064=_0x178af1[_0x4a5d9c(0x18f)](),_0x3400d0=_0x368064[_0x4a5d9c(0x278)];if(_0x368064[_0x4a5d9c(0x230)]||!_0x3400d0)return null;let _0x1abf1c=_0x31eafb[_0x4a5d9c(0x275)](P);return _0x1abf1c[_0x4a5d9c(0x1ea)](_0x178af1[_0x4a5d9c(0x23d)]())?null:{'document':_0x178af1,'body':_0x3400d0,'documentData':_0x368064,'model':_0x1abf1c,'resource':_0x1abf1c['getResource'](_0x178af1['getUnitId']())??b(),'unitId':_0x178af1[_0x4a5d9c(0x23d)]()};}function dt(_0x377032,_0x31fbac){const _0x80addd=_0x4f6fbf;var _0x5d69ed;return(_0x5d69ed=_0x377032['get'](_0x415e0a)[_0x80addd(0x18e)]({'subUnitId':_0x31fbac,'unitId':_0x31fbac}))==null?void 0x0:_0x5d69ed[0x0];}function ft(_0x38a6c8,_0x2adc89,_0x2e9cf4){const _0x5b85e=_0x4f6fbf;if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x27c)){var _0x4999ca;let _0x3219e5=((_0x4999ca=_0x2adc89[_0x5b85e(0x1a6)])==null?void 0x0:_0x4999ca[_0x5b85e(0x25a)](_0x3b9055=>_0x3b9055['paragraphId']===_0x38a6c8[_0x5b85e(0x1b9)]))??[];if(_0x3219e5[_0x5b85e(0x21f)]!==0x1)return null;let _0x36a49d=_0x3219e5[0x0],_0x4bd618=_0x3d7e00(_0x2adc89,_0x36a49d),_0x79391b=_0x36a49d[_0x5b85e(0x200)]-_0x4bd618,_0x4e98c2=_0x38a6c8[_0x5b85e(0x1c5)]===_0x5b85e(0x1dc)?_0x79391b:_0x38a6c8['position'];if(!Number['isInteger'](_0x4e98c2)||_0x4e98c2<0x0||_0x4e98c2>_0x79391b)return null;let _0x231df6=_0x4bd618+_0x4e98c2;return{'startOffset':_0x231df6,'endOffset':_0x231df6};}if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x1f0))return!Number[_0x5b85e(0x192)](_0x38a6c8['startOffset'])||!Number[_0x5b85e(0x192)](_0x38a6c8['endOffset'])?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)]),'endOffset':Math[_0x5b85e(0x203)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)])};let _0x4978f9=(_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x213)?_0x38a6c8[_0x5b85e(0x213)]:_0x2e9cf4;return!_0x4978f9||_0x4978f9[_0x5b85e(0x1fe)]?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x4978f9['startOffset'],_0x4978f9[_0x5b85e(0x266)]),'endOffset':Math['max'](_0x4978f9[_0x5b85e(0x23b)],_0x4978f9[_0x5b85e(0x266)])};}function pt(_0x17ca72,_0x397a1c,_0x450613,_0x532fc4){const _0xd0e8c3=_0x4f6fbf;let _0x1a30cb=_0x17ca72[_0xd0e8c3(0x275)](_0x4b333e),_0x54cef0=_0x450613[_0xd0e8c3(0x187)]('=')?_0x450613[_0xd0e8c3(0x24a)](0x1):_0x450613,_0x3e4c4b=_0x1a30cb[_0xd0e8c3(0x18b)](_0x54cef0);if(!_0x3e4c4b)return null;let _0x30bf24=_0x17ca72[_0xd0e8c3(0x275)](_0x10c960),_0x5015=_0x25aab3({'qualifiers':_0x1e38dc(_0x3e4c4b),'explicitReferences':_0x532fc4??[],'resolveBinding':_0x21553d=>_0x30bf24['resolveBinding'](_0x397a1c,_0x21553d)});return _0x5015['status']==='resolved'?_0x5015[_0xd0e8c3(0x210)]:null;}function mt(_0x419e4f,_0x19e2c3,_0x21c953){const _0x2597d1=_0x4f6fbf;var _0x481150;let _0x491d9c=_0x567cbf(0x6);for(;_0x419e4f!=null&&(_0x481150=_0x419e4f[_0x2597d1(0x1e5)])!=null&&_0x481150[_0x2597d1(0x1c4)](_0x40b5a1=>_0x40b5a1[_0x2597d1(0x1e6)]===_0x491d9c)||_0x19e2c3[_0x2597d1(0x1dd)](_0x21c953,_0x491d9c);)_0x491d9c=_0x567cbf(0x6);return _0x491d9c;}function ht(_0x5a924f){try{return Re(_0x5a924f);}catch(_0x469312){if(_0x469312 instanceof C)return null;throw _0x469312;}}function gt(_0x40d906){const _0x38eab9=_0x4f6fbf;let _0x5bbf2d=_0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]?vt(_0x40d906[_0x38eab9(0x1da)],_0x40d906['unitId'],_0x40d906[_0x38eab9(0x248)],_0x40d906['nextDocumentData'],_0x40d906[_0x38eab9(0x254)],_0x40d906['trigger']):null;return _0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]&&!_0x5bbf2d?null:{'documentRedo':_0x5bbf2d,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x267)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x19a)]}}};}function _t(_0x95b682,_0x5778eb,_0x5824b0,_0x2160cd){const _0x64c243=_0x4f6fbf;_0x2160cd[_0x64c243(0x205)]({'id':_0x95b682[_0x64c243(0x23e)]+':'+_0x95b682[_0x64c243(0x1e6)],'unitID':_0x95b682['unitId'],'redoMutations':[..._0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]]:[],..._0x5778eb[_0x64c243(0x1a0)]?[_0x5778eb[_0x64c243(0x1a0)]]:[],_0x5778eb[_0x64c243(0x1cf)]],'undoMutations':[_0x5778eb[_0x64c243(0x231)],..._0x5824b0?[_0x5824b0]:[],..._0x95b682['externalMutations']['undoMutation']?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x1b8)]]:[]]});}function J(_0xac5ff2){const _0x144e60=_0x4f6fbf;let _0x374ab0=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x17a79b),_0xa10563=_0xac5ff2['accessor'][_0x144e60(0x275)](_0x108c62),_0x197671=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x415e0a),_0x227bdc=gt(_0xac5ff2);if(!_0x227bdc)return!0x1;let _0x1c4e0f=!0x1,_0x33d83b=null,_0xe61f55=!0x1;try{if(_0xac5ff2[_0x144e60(0x1e1)][_0x144e60(0x19d)]){if(!_0x374ab0[_0x144e60(0x1b1)](_0xac5ff2[_0x144e60(0x1e1)]['redoMutation']['id'],_0xac5ff2['externalMutations'][_0x144e60(0x19d)]['params']))return!0x1;_0x1c4e0f=!0x0;}if(_0x227bdc['documentRedo']){let _0xef1ab=_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1a0)]['id'],_0x227bdc['documentRedo'][_0x144e60(0x1b3)]);if(!_0xef1ab)return bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0x33d83b={'id':_0x152a2b['id'],'params':{..._0xef1ab,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1cf)]['id'],_0x227bdc['resourceRedo'][_0x144e60(0x1b3)]))return yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0xe61f55=!0x0,_t(_0xac5ff2,_0x227bdc,_0x33d83b,_0xa10563);}catch(_0x44eac3){throw _0xe61f55&&_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x231)]['id'],_0x227bdc[_0x144e60(0x231)]['params']),yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),_0x44eac3;}return _0x197671[_0x144e60(0x18c)]([{'startOffset':_0xac5ff2[_0x144e60(0x254)],'endOffset':_0xac5ff2['cursorOffset'],'segmentId':''}],{'unitId':_0xac5ff2[_0x144e60(0x1c3)],'subUnitId':_0xac5ff2[_0x144e60(0x1c3)]},!0x1,{[_0x53247e]:!0x0}),!0x0;}function vt(_0x2e8df0,_0x4f03da,_0x5df35d,_0x1edad3,_0x336b6e,_0x260ae4){let _0x18fe95=xt(_0x5df35d,_0x1edad3,_0x3a85ac(_0x2e8df0,''));return _0x18fe95?{'id':_0x152a2b['id'],'params':{'unitId':_0x4f03da,'actions':_0x18fe95,'segmentId':'','textRanges':[{'startOffset':_0x336b6e,'endOffset':_0x336b6e,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x260ae4}}:null;}function yt(_0x779167,_0xb80bb8){const _0x115612=_0x4f6fbf;_0xb80bb8&&_0x779167[_0x115612(0x1b1)](_0xb80bb8['id'],_0xb80bb8[_0x115612(0x1b3)]);}function bt(_0x3dd89a,_0x3fed1f,_0x2f903e){const _0x336f94=_0x4f6fbf;_0x2f903e&&_0x3fed1f[_0x336f94(0x1b8)]&&_0x3dd89a[_0x336f94(0x1b1)](_0x3fed1f[_0x336f94(0x1b8)]['id'],_0x3fed1f[_0x336f94(0x1b8)][_0x336f94(0x1b3)]);}function xt(_0x973c37,_0x50f3fd,_0x3d3a38){const _0x5b1b25=_0x4f6fbf;let _0x5ef30b=_0x973c37['body'],_0x485c18=_0x50f3fd['body'],_0x1e622d=St(_0x5ef30b==null?void 0x0:_0x5ef30b['dataStream'],_0x485c18==null?void 0x0:_0x485c18[_0x5b1b25(0x220)]);if(!_0x1e622d||!_0x485c18)return null;let _0x1e20f9=new _0x5043cb();return _0x1e20f9['retain'](_0x1e622d[_0x5b1b25(0x1a8)]),_0x1e622d['insertLength']>0x0&&_0x1e20f9['insert'](_0x1e622d[_0x5b1b25(0x1c9)],_0x3936fb(_0x485c18,_0x1e622d['start'],_0x1e622d[_0x5b1b25(0x1a8)]+_0x1e622d['insertLength'],!0x1)),_0x1e622d['deleteLength']>0x0&&_0x1e20f9['delete'](_0x1e622d['deleteLength']),_0xd1312c[_0x5b1b25(0x1a4)]()[_0x5b1b25(0x1f4)](_0x1e20f9[_0x5b1b25(0x239)](),_0x3d3a38);}function St(_0x313fcc,_0x345efe){const _0x25b5cc=_0x4f6fbf;if(_0x313fcc==null||_0x345efe==null||_0x313fcc===_0x345efe)return null;let _0x179c81=0x0;for(;_0x179c81<_0x313fcc[_0x25b5cc(0x21f)]&&_0x179c81<_0x345efe[_0x25b5cc(0x21f)]&&_0x313fcc[_0x179c81]===_0x345efe[_0x179c81];)_0x179c81+=0x1;let _0x279c43=_0x313fcc[_0x25b5cc(0x21f)],_0x13b25c=_0x345efe[_0x25b5cc(0x21f)];for(;_0x279c43>_0x179c81&&_0x13b25c>_0x179c81&&_0x313fcc[_0x279c43-0x1]===_0x345efe[_0x13b25c-0x1];)--_0x279c43,--_0x13b25c;return{'start':_0x179c81,'deleteLength':_0x279c43-_0x179c81,'insertLength':_0x13b25c-_0x179c81};}function Ct(_0x271602){const _0x49dead=_0x4f6fbf;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x49dead(0x21a)](_0x271602['formulas'])[_0x49dead(0x1d6)](([_0x2c48db,_0x14bdad])=>[_0x2c48db,{..._0x14bdad,..._0x14bdad[_0x49dead(0x190)]?{'numberFormat':{..._0x14bdad[_0x49dead(0x190)]}}:null,..._0x14bdad[_0x49dead(0x276)]?{'lastValue':{..._0x14bdad[_0x49dead(0x276)]}}:null}]))};}let Y=class extends _0x31b7da{constructor(_0x3a74cd,_0x589688,_0x422c8f,_0x5f4511){const _0x55b9f6=_0x4f6fbf;super(),this[_0x55b9f6(0x22c)]=_0x3a74cd,this[_0x55b9f6(0x247)]=_0x589688,this['_model']=_0x422c8f,this[_0x55b9f6(0x20f)]=_0x5f4511,N(this,'_pendingUnitIds',new Set()),N(this,_0x55b9f6(0x22a),!0x1),N(this,_0x55b9f6(0x1d8),!0x1),this[_0x55b9f6(0x22c)]['getAllUnitsForType'](_0x84701a[_0x55b9f6(0x221)])[_0x55b9f6(0x1bf)](_0x321b23=>this['_service'][_0x55b9f6(0x207)](_0x321b23)),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x20e)]['change$'][_0x55b9f6(0x269)](({unitId:_0x50a077})=>this['_syncUnit'](_0x50a077))),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x198)][_0x55b9f6(0x269)](({unit:_0x10d103})=>{const _0x75da1c=_0x55b9f6;_0x10d103['type']===_0x84701a[_0x75da1c(0x221)]&&this[_0x75da1c(0x253)](_0x10d103[_0x75da1c(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x1ac)][_0x55b9f6(0x269)](_0x2193aa=>{const _0x24dfa=_0x55b9f6;this[_0x24dfa(0x20f)][_0x24dfa(0x1a7)](_0x2193aa[_0x24dfa(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x247)][_0x55b9f6(0x1d5)](_0x3099f2=>{const _0x4dcc23=_0x55b9f6;if(_0x3099f2['id']===_0x152a2b['id']&&wt(_0x3099f2[_0x4dcc23(0x1b3)])){let _0x2a2315=_0x3099f2['params'];_0x2a2315[_0x4dcc23(0x1fe)]||this[_0x4dcc23(0x225)](_0x2a2315[_0x4dcc23(0x1c3)]);}}));}[_0x4f6fbf(0x215)](){this['_isDisposed']=!0x0,super['dispose']();}['_queueSync'](_0x4fd253){const _0x44e433=_0x4f6fbf;this['_pendingUnitIds'][_0x44e433(0x24b)](_0x4fd253),!this['_syncScheduled']&&(this[_0x44e433(0x22a)]=!0x0,queueMicrotask(()=>{const _0x1e6364=_0x44e433;if(this[_0x1e6364(0x22a)]=!0x1,this['_isDisposed'])return;let _0x1d6034=Array[_0x1e6364(0x1c7)](this['_pendingUnitIds']);this[_0x1e6364(0x185)]['clear'](),_0x1d6034['forEach'](_0x5dbb03=>this[_0x1e6364(0x225)](_0x5dbb03));}));}[_0x4f6fbf(0x225)](_0x59ebe6){const _0x231c81=_0x4f6fbf;let _0x20fc3c=this[_0x231c81(0x22c)][_0x231c81(0x218)](_0x59ebe6,_0x84701a[_0x231c81(0x221)]);_0x20fc3c&&this[_0x231c81(0x20f)][_0x231c81(0x207)](_0x20fc3c);}};Y=I([F(0x0,_0x2f4b97),F(0x1,_0x17a79b),F(0x2,_0x2acef3(P)),F(0x3,_0x2acef3(L))],Y);function wt(_0xef09c0){const _0x81ba37=_0x4f6fbf;return typeof _0xef09c0=='object'&&!!_0xef09c0&&_0x81ba37(0x1c3)in _0xef09c0&&typeof _0xef09c0[_0x81ba37(0x1c3)]==_0x81ba37(0x234)&&(!('segmentId'in _0xef09c0)||_0xef09c0[_0x81ba37(0x1fe)]===void 0x0||typeof _0xef09c0[_0x81ba37(0x1fe)]==_0x81ba37(0x234));}let X=class extends _0x31b7da{constructor(_0x29741d,_0x3db2c5){const _0x437d83=_0x4f6fbf;super(),this[_0x437d83(0x22f)]=_0x29741d,this[_0x437d83(0x240)]=_0x3db2c5,this[_0x437d83(0x23f)](this['_resourceManagerService']['registerPluginResource']({'pluginName':y,'businesses':[_0x84701a[_0x437d83(0x221)]],'toJson':_0x4b0be0=>JSON[_0x437d83(0x265)](this[_0x437d83(0x240)][_0x437d83(0x239)](_0x4b0be0)),'parseJson':_0xcb6804=>JSON[_0x437d83(0x206)](_0xcb6804),'onLoad':(_0x222d68,_0x1958d0)=>{const _0x31f69d=_0x437d83;this['_docFormulaModel'][_0x31f69d(0x245)](_0x222d68,_0x1958d0);},'onUnLoad':_0x158bf1=>this[_0x437d83(0x240)][_0x437d83(0x195)](_0x158bf1)}));}};X=I([F(0x0,_0x5cca76),F(0x1,_0x2acef3(P))],X);var Tt=_0x4f6fbf(0x1f9),Et=_0x4f6fbf(0x1be);const Dt={};let Z=class extends _0x31b7da{constructor(_0x211df5,_0xced93a,_0x2316f3){const _0x5b10e7=_0x4f6fbf;super(),this['_univerInstanceService']=_0x211df5,this[_0x5b10e7(0x27a)]=_0xced93a,this[_0x5b10e7(0x23f)](_0x2316f3[_0x5b10e7(0x1ce)]({'resolve':(_0x2a809a,_0x5e4362)=>{const _0x1365fb=_0x5b10e7;var _0x15cfe5;return((_0x15cfe5=_0x5e4362[_0x1365fb(0x1e5)])==null?void 0x0:_0x15cfe5[_0x1365fb(0x25a)](w)['map'](_0x5f2138=>({'startOffset':_0x5f2138[_0x1365fb(0x200)],'endOffset':_0x5f2138['endIndex']+0x1,'text':this[_0x1365fb(0x270)](_0x2a809a,_0x5f2138['rangeId'])})))??[];}})),this['disposeWithMe'](this['_formulaService'][_0x5b10e7(0x1a9)][_0x5b10e7(0x269)](({unitId:_0x892902})=>{const _0x1b2626=_0x5b10e7;_0x2316f3[_0x1b2626(0x196)](_0x892902);}));}['resolveFormula'](_0x44392c,_0x2f12cf){const _0x554681=_0x4f6fbf;var _0x21d135;return((_0x21d135=this[_0x554681(0x27a)]['getResult']({'unitId':_0x44392c,'rangeId':_0x2f12cf}))==null?void 0x0:_0x21d135[_0x554681(0x25d)])??'';}[_0x4f6fbf(0x22d)](_0x86de3c,_0x2a3e85,_0x4f4414){const _0x4d658f=_0x4f6fbf;var _0x5d30be;let _0x407395=this['_univerInstanceService'][_0x4d658f(0x218)](_0x86de3c,_0x84701a[_0x4d658f(0x221)]),_0x1c19c4=_0x407395==null?void 0x0:_0x407395[_0x4d658f(0x216)]();if(!_0x1c19c4)return'';let _0x9f8927=_0x1c19c4[_0x4d658f(0x220)][_0x4d658f(0x24a)](_0x2a3e85,_0x4f4414),_0x4e883=((_0x5d30be=_0x1c19c4[_0x4d658f(0x1e5)])==null?void 0x0:_0x5d30be[_0x4d658f(0x25a)](_0x44c1af=>w(_0x44c1af)&&_0x44c1af[_0x4d658f(0x200)]>=_0x2a3e85&&_0x44c1af[_0x4d658f(0x1aa)]<_0x4f4414)[_0x4d658f(0x1a5)]((_0x34d89d,_0x45949d)=>_0x45949d[_0x4d658f(0x200)]-_0x34d89d[_0x4d658f(0x200)]))??[];for(let _0x2994f7 of _0x4e883){let _0x219154=_0x2994f7[_0x4d658f(0x200)]-_0x2a3e85,_0x415af0=_0x2994f7[_0x4d658f(0x1aa)]-_0x2a3e85+0x1;_0x9f8927=''+_0x9f8927[_0x4d658f(0x24a)](0x0,_0x219154)+this[_0x4d658f(0x270)](_0x86de3c,_0x2994f7[_0x4d658f(0x1e6)])+_0x9f8927[_0x4d658f(0x24a)](_0x415af0);}return _0x9f8927;}[_0x4f6fbf(0x1c1)](_0x4820e2){return Ot(_0x4820e2);}[_0x4f6fbf(0x20b)](_0x5a13e3,_0x491922,_0x106144={}){const _0x43042e=_0x4f6fbf;var _0x2b54f4;return Ve({'id':_0x5a13e3,'body':_0x491922,'documentStyle':{}},(((_0x2b54f4=_0x491922['customRanges'])==null?void 0x0:_0x2b54f4[_0x43042e(0x25a)](w))??[])[_0x43042e(0x1d6)](_0x5627e9=>({'rangeId':_0x5627e9[_0x43042e(0x1e6)],'text':_0x106144[_0x5627e9['rangeId']]??this[_0x43042e(0x270)](_0x5a13e3,_0x5627e9[_0x43042e(0x1e6)])})))[_0x43042e(0x278)]??{'dataStream':''};}};Z=I([F(0x0,_0x2f4b97),F(0x1,_0x2acef3(L)),F(0x2,_0x2acef3(_0x1f7daa))],Z);function Ot(_0x56db1a){const _0x5933a0=_0x4f6fbf;var _0xdb26db,_0xd656d6;let _0x39be67=kt(_0x56db1a),_0x457b60=Ve(_0x56db1a,(((_0xdb26db=_0x56db1a[_0x5933a0(0x278)])==null||(_0xdb26db=_0xdb26db[_0x5933a0(0x1e5)])==null?void 0x0:_0xdb26db[_0x5933a0(0x25a)](w))??[])['map'](_0x148ed3=>({'rangeId':_0x148ed3[_0x5933a0(0x1e6)],'text':At(_0x39be67==null?void 0x0:_0x39be67[_0x5933a0(0x18d)][_0x148ed3[_0x5933a0(0x1e6)]])})));return _0x457b60[_0x5933a0(0x227)]=(_0xd656d6=_0x457b60[_0x5933a0(0x227)])==null?void 0x0:_0xd656d6[_0x5933a0(0x25a)](_0x30ff69=>_0x30ff69[_0x5933a0(0x189)]!==y),_0x457b60;}function kt(_0x3aef76){const _0x3cc693=_0x4f6fbf;var _0x36bdaf;let _0x3ee909=(_0x36bdaf=_0x3aef76['resources'])==null||(_0x36bdaf=_0x36bdaf['find'](_0x39ba72=>_0x39ba72[_0x3cc693(0x189)]===_0x3cc693(0x257)))==null?void 0x0:_0x36bdaf[_0x3cc693(0x1c8)];if(_0x3ee909)try{let _0x278d4c=JSON[_0x3cc693(0x206)](_0x3ee909);return x(_0x278d4c)?_0x278d4c:void 0x0;}catch{return;}}function At(_0x16a8bf){const _0x156e40=_0x4f6fbf;return _0x16a8bf?_0x42aa2e({'lastValue':_0x16a8bf[_0x156e40(0x276)],'numberFormat':_0x16a8bf[_0x156e40(0x190)]})[_0x156e40(0x25d)]:'';}let Q=class extends _0x31b7da{constructor(_0x246c9f,_0x3ee08e,_0x82609c){const _0x4e486d=_0x4f6fbf;super(),this[_0x4e486d(0x27a)]=_0x246c9f,this[_0x4e486d(0x21c)]=_0x3ee08e,this[_0x4e486d(0x23f)](_0x82609c[_0x4e486d(0x21d)](this));}[_0x4f6fbf(0x222)](_0x3052ea){const _0x372047=_0x4f6fbf;let _0x45f49e=new Map();for(let _0xfffea7 of this[_0x372047(0x27a)][_0x372047(0x262)]()){var _0x174b59;if(!this[_0x372047(0x21c)][_0x372047(0x1b0)](_0xfffea7['config'][_0x372047(0x209)],_0xfffea7[_0x372047(0x20d)])[_0x372047(0x229)])continue;let _0x2c6bad=_0x4ea63e(_0xfffea7[_0x372047(0x20d)]),_0x3e751d=_0x2c6bad?_0x4677a5(_0x2c6bad):null;if(!_0x3e751d||jt(_0xfffea7[_0x372047(0x1ed)][_0x372047(0x276)],_0x3e751d))continue;let _0x560a30=_0x45f49e[_0x372047(0x275)](_0xfffea7[_0x372047(0x20a)][_0x372047(0x1c3)])??[];_0x560a30[_0x372047(0x188)]({'rangeId':_0xfffea7['identity']['rangeId'],'expectedFormula':_0xfffea7[_0x372047(0x1ed)][_0x372047(0x209)],'expectedNumberFormat':(_0x174b59=_0xfffea7['config'][_0x372047(0x190)])==null?void 0x0:_0x174b59[_0x372047(0x1c2)],'expectedReferenceRevision':_0xfffea7['referenceRevision'],'lastValue':_0x3e751d}),_0x45f49e[_0x372047(0x19c)](_0xfffea7['identity'][_0x372047(0x1c3)],_0x560a30);}return Array[_0x372047(0x1c7)](_0x45f49e,([_0x350635,_0x2319e8])=>({'id':H['id'],'params':{'unitId':_0x350635,'updates':_0x2319e8}}));}};Q=I([F(0x0,_0x2acef3(L)),F(0x1,_0x2acef3(_0x4a49c8)),F(0x2,_0x2acef3(_0x13e281))],Q);function jt(_0x194155,_0x4fa5f4){const _0x91ca0=_0x4f6fbf;return(_0x194155==null?void 0x0:_0x194155['v'])===_0x4fa5f4['v']&&(_0x194155==null?void 0x0:_0x194155['t'])===_0x4fa5f4['t']&&(_0x194155==null?void 0x0:_0x194155[_0x91ca0(0x1c2)])===_0x4fa5f4[_0x91ca0(0x1c2)];}let $=class extends _0x19285f{constructor(_0x3679ee=Dt,_0x5995c5,_0xe06a7c,_0x24058d){const _0x5b59f5=_0x4f6fbf;super(),this[_0x5b59f5(0x23c)]=_0x3679ee,this[_0x5b59f5(0x1cb)]=_0x5995c5,this['_commandService']=_0xe06a7c,this[_0x5b59f5(0x24c)]=_0x24058d;let {..._0x4fbac5}=_0x51f985({},Dt,this[_0x5b59f5(0x23c)]);this[_0x5b59f5(0x24c)][_0x5b59f5(0x243)]('docs-formula.config',_0x4fbac5);}[_0x4f6fbf(0x214)](){const _0x9a9932=_0x4f6fbf;this[_0x9a9932(0x1cb)]['add']([P]),this[_0x9a9932(0x1cb)]['add']([L]),this[_0x9a9932(0x1cb)]['add']([X]),this[_0x9a9932(0x1cb)]['add']([Y]),this[_0x9a9932(0x1cb)][_0x9a9932(0x24b)]([Q]),this['_injector']['add']([Z]),_0x446bb5(this[_0x9a9932(0x1cb)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x9a9932(0x1bf)](_0x48b6f4=>this[_0x9a9932(0x23f)](this['_commandService']['registerCommand'](_0x48b6f4)));}};N($,_0x4f6fbf(0x197),y),N($,_0x4f6fbf(0x1ee),Tt),N($,'version',Et),N($,_0x4f6fbf(0x232),_0x84701a[_0x4f6fbf(0x221)]),$=I([_0x156929(_0x347af6,_0x3b8edb,_0x2a1d9f),F(0x1,_0x2acef3(_0x4d35b9)),F(0x2,_0x17a79b),F(0x3,_0x430bb8)],$);function _0x2954(_0x4fcc29,_0x3ae27a){_0x4fcc29=_0x4fcc29-0x185;const _0x4a5468=_0x4a54();let _0x2954e5=_0x4a5468[_0x4fcc29];return _0x2954e5;}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 _0x7f0bc1=_0x2297;(function(_0x520106,_0x16344b){const _0x364cc5=_0x2297,_0x5b7963=_0x520106();while(!![]){try{const _0x1e62df=parseInt(_0x364cc5(0xae))/0x1+-parseInt(_0x364cc5(0x7a))/0x2+parseInt(_0x364cc5(0x14c))/0x3+-parseInt(_0x364cc5(0xbe))/0x4+-parseInt(_0x364cc5(0xca))/0x5*(-parseInt(_0x364cc5(0x145))/0x6)+-parseInt(_0x364cc5(0xbb))/0x7+parseInt(_0x364cc5(0x7e))/0x8*(parseInt(_0x364cc5(0x155))/0x9);if(_0x1e62df===_0x16344b)break;else _0x5b7963['push'](_0x5b7963['shift']());}catch(_0x56c32d){_0x5b7963['push'](_0x5b7963['shift']());}}}(_0x3b4c,0xa1c26));function _0x3b4c(){const _0x4ec751=['getOwnPropertyDescriptor','source','setResource','degradeBody','deleteLength','replaceDocRanges','resources','docs-formula.mutation.set-last-values','unregister','call','externalMutations','externalReferences','_syncScheduled','success','paragraph','referenceRevision','min','663701clhEbV','TABLE_START','asObservable','redoMutation','rangeId','forEach','stringify','unsupported-version','nextDocumentData','subscribe','getLoadError','register','constructor','2708251KeuYJX','push','sectionBreaks','1048732KdaDrY','presentationChanged$','default','properties','unitAdded$','retain','prototype','PARAGRAPH','selection','error','documentRedo','version','3592510uaBJbs','paragraphId','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','_rawResources','textRuns','references','TABLE_END','getFormulaValueSync','kind','setFormulas','endIndex','_model','_syncUnit','add','assess','_docFormulaModel','packageName','formulaResult$','COLUMN_GROUP_END','stale','customBlocks','_formulaService','BLOCK_START','sort','get','BLOCK_END','body','document','registerCommand','ERROR','change$','docs-formula.command.convert-to-text','getRevision','getTextRanges','getFormulas','numberFormat','expectedNumberFormat','length','keys','getUnitId','params','nextResource','SECTION_BREAK','CUSTOM_BLOCK','object','schemaVersion','removeUnit','segmentId','function','getSnapshot','getBody','tables','1.0.0-beta.2','getInstance','pushUndoRedo','complete','docs-formula.command.set-number-format','_pendingUnitIds','DOC_FORMULA_PLUGIN','deleteFormula','MUTATION','range','_preserveInvalid','_injector','DOC','CUSTOM','max','filter','paragraphs','COLUMN_GROUP_START','delete','config','getUnit','pattern','number','cell','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','syncExecuteCommand','undoMutation','_formulaKeys','startsWith','_univerInstanceService','_service','every','COLUMN_END','resolveText','docs-formula.mutation.set-resource','end','expectedReferenceRevision','lastValue','accessor','_setPresentation','formula','presentation','syncUnit','text','wholeEntity','_resourceManagerService','pluginName','startOffset','type','assign','identity','resourceUndo','entries','_cacheEligibilityService','symbol','setFormula','blockRanges','removeFormula','next','endsWith','_change$','getResult','some','serialize','set','find','documentData','includes','UNIVER_DOC','model','resource','6TLdiWn','_configService','COMMAND','target','liveResult','_config','isInteger','1989198trlVBo','registerPluginResource','disposeWithMe','data','EMPTY','unitId','TABLE_ROW_END','eligible','getRegisteredFormulas','12024vlQxrQ','deepClone','_registrationService','docs-formula.config','status','has','getFormula','docs-formula.mutation.set-formula','editOp','insertLength','_instanceService','slice','trim','startIndex','previousDocumentData','values','customRanges','getPresentation','parse','dataStream','notifyTextChanged','resourceRedo','TABLE_CELL_END','decorate','map','_queueSync','position','columnGroups','name','invalid-resource','1496646isIaRZ','previousResource','load','_deleteRegistration','88zXwLzK','_updateFormulaResult','_commandService','pending','_loadErrors','_hostExternalReferenceModel','dispose','formulaId','cursorOffset','from','docs-formula.command.insert','_resources','_registrations','formulas','clear','resolved','expectedFormula','resolveFormula','color','start','iterator','_presentationChanged$','string','endOffset','TABLE_CELL_START','getCurrentUnitOfType','docs-formula.mutation.remove-formula','getResource','_isDisposed','customDecorations','trigger'];_0x3b4c=function(){return _0x4ec751;};return _0x3b4c();}import{FormulaCacheEligibilityService as _0x275916,FormulaLastValuePersistenceService as _0x38d14f,HostExternalReferenceModel as _0x51910a,UniverProFormulaEnginePlugin as _0x401a27,buildUpsertHostExternalReferenceMutations as _0x2f4e62,collectFormulaExternalReferenceQualifiers as _0x5318cc,getScalarFormulaResultCell as _0x287105,resolveFormulaResultPresentation as _0x59a28f,resolveHostFormulaExternalReferences as _0xac2ecd,toFormulaLastValue as _0x2db890}from'@univerjs-pro/engine-formula';import{CellValueType as _0xeb221a,CommandType as _0x493b9a,CustomRangeType as _0x529dfe,DataStreamTreeTokenType as _0x7ba019,DependentOn as _0x52586e,Disposable as _0x4b51e6,ICommandService as _0xd73d20,IConfigService as _0xa6f89c,IResourceManagerService as _0x53555b,IUndoRedoService as _0x2ca603,IUniverInstanceService as _0x2a2450,Inject as _0xe3bd44,Injector as _0x208bd4,JSONX as _0x5ab429,Plugin as _0x77926d,TextX as _0x2c67b6,Tools as _0x55503e,UniverInstanceType as _0x40e918,generateRandomId as _0xd6a571,getBodySliceForTextXAction as _0x3ef48e,getCustomRangeInterval as _0x2cea6e,getParagraphContentStartOffset as _0x43041b,getRichTextEditPath as _0x2897bb,merge as _0x583fa0,shiftExclusiveRangeOnDelete as _0x1463e1,shiftExclusiveRangeOnInsert as _0x5cda61,shiftInclusiveRangeOnDelete as _0x21f012,shiftInclusiveRangeOnInsert as _0x1e36c2,touchDependencies as _0x466c54}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x2ffd38,DocSelectionManagerService as _0x4116cb,DocTextResolverService as _0x1bbb7a,RichTextEditingMutation as _0x58c17d,UniverDocsPlugin as _0x57273b}from'@univerjs/docs';import{FormulaResultStatus as _0x5ab354,LexerTreeBuilder as _0x4ca349,OtherFormulaBizType as _0x5de2d8,RegisterOtherFormulaService as _0x57a36c}from'@univerjs/engine-formula';import{Subject as _0x5a1503}from'rxjs';import{UniverLicensePlugin as _0x5cb1a8}from'@univerjs-pro/license';const y=_0x7f0bc1(0x104),je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x495a23){const _0xbafb2f=_0x7f0bc1;return!_0x495a23||typeof _0x495a23!=_0xbafb2f(0xf6)||!S(_0x495a23,['schemaVersion','formulas'])||!('schemaVersion'in _0x495a23)||_0x495a23[_0xbafb2f(0xf7)]!==0x1||!(_0xbafb2f(0x8b)in _0x495a23)||!_0x495a23[_0xbafb2f(0x8b)]||typeof _0x495a23[_0xbafb2f(0x8b)]!=_0xbafb2f(0xf6)||Array['isArray'](_0x495a23[_0xbafb2f(0x8b)])?!0x1:Object[_0xbafb2f(0x132)](_0x495a23[_0xbafb2f(0x8b)])[_0xbafb2f(0x11d)](([_0xb600a1,_0x3488bc])=>_0xb600a1[_0xbafb2f(0xef)]>0x0&&Pe(_0x3488bc));}function Pe(_0x27c6df){const _0x3ffe0c=_0x7f0bc1;return!_0x27c6df||typeof _0x27c6df!=_0x3ffe0c(0xf6)||!S(_0x27c6df,[_0x3ffe0c(0x126),_0x3ffe0c(0xed),_0x3ffe0c(0x123)])||!(_0x3ffe0c(0x126)in _0x27c6df)||typeof _0x27c6df[_0x3ffe0c(0x126)]!=_0x3ffe0c(0x94)||!_0x27c6df['formula'][_0x3ffe0c(0x161)]()||'numberFormat'in _0x27c6df&&_0x27c6df[_0x3ffe0c(0xed)]!=null&&(typeof _0x27c6df[_0x3ffe0c(0xed)]!=_0x3ffe0c(0xf6)||!S(_0x27c6df['numberFormat'],[_0x3ffe0c(0x113)])||!(_0x3ffe0c(0x113)in _0x27c6df[_0x3ffe0c(0xed)])||typeof _0x27c6df['numberFormat']['pattern']!='string')?!0x1:!(_0x3ffe0c(0x123)in _0x27c6df)||_0x27c6df[_0x3ffe0c(0x123)]==null||Fe(_0x27c6df[_0x3ffe0c(0x123)]);}function Fe(_0x294dfb){const _0x376539=_0x7f0bc1;return!_0x294dfb||typeof _0x294dfb!=_0x376539(0xf6)||!S(_0x294dfb,['v','t',_0x376539(0x113)])||!('v'in _0x294dfb)||_0x294dfb['v']!==null&&typeof _0x294dfb['v']!=_0x376539(0x94)&&typeof _0x294dfb['v']!=_0x376539(0x114)&&typeof _0x294dfb['v']!='boolean'||'t'in _0x294dfb&&_0x294dfb['t']!=null&&!Ie(_0x294dfb['t'])?!0x1:!(_0x376539(0x113)in _0x294dfb)||_0x294dfb[_0x376539(0x113)]==null||typeof _0x294dfb[_0x376539(0x113)]==_0x376539(0x94);}function S(_0x2987ee,_0x2c6a2f){const _0x405c95=_0x7f0bc1;let _0x447e25=new Set(_0x2c6a2f);return Object[_0x405c95(0xf0)](_0x2987ee)['every'](_0x4aded6=>_0x447e25[_0x405c95(0x15a)](_0x4aded6));}function Ie(_0x55899a){const _0x1ab642=_0x7f0bc1;return typeof _0x55899a==_0x1ab642(0x114)&&Object[_0x1ab642(0x164)](_0xeb221a)[_0x1ab642(0x141)](_0x55899a);}const Le=new Set([_0x7ba019[_0x7f0bc1(0xf4)],_0x7ba019[_0x7f0bc1(0xaf)],_0x7ba019['TABLE_ROW_START'],_0x7ba019[_0x7f0bc1(0x96)],_0x7ba019[_0x7f0bc1(0x72)],_0x7ba019[_0x7f0bc1(0x152)],_0x7ba019[_0x7f0bc1(0xd0)],_0x7ba019[_0x7f0bc1(0x10f)],_0x7ba019['COLUMN_START'],_0x7ba019[_0x7f0bc1(0x11e)],_0x7ba019[_0x7f0bc1(0xdc)],_0x7ba019[_0x7f0bc1(0xe0)],_0x7ba019[_0x7f0bc1(0xe3)],_0x7ba019[_0x7f0bc1(0xf5)]]);var C=class extends Error{constructor(){const _0xa70f77=_0x7f0bc1;super(_0xa70f77(0xcc));}};function Re(_0x3f6dbe){const _0x3c9430=_0x7f0bc1;var _0x3e7327,_0x5d5689;let _0x3e8c2d=_0x55503e[_0x3c9430(0x156)](_0x3f6dbe[_0x3c9430(0x140)]),_0x2ee23a=j(_0x3e8c2d),{startOffset:_0x168cfb,endOffset:_0x47e4bd}=We(_0x2ee23a,_0x3f6dbe[_0x3c9430(0x12d)],_0x3f6dbe['endOffset']);He(_0x2ee23a,_0x168cfb,_0x47e4bd);let _0x508985=((_0x3e7327=_0x2ee23a[_0x3c9430(0x165)])==null?void 0x0:_0x3e7327[_0x3c9430(0x10d)](_0x472b04=>{const _0x31433f=_0x3c9430;if(!w(_0x472b04))return!0x1;let _0x17cfe1=_0x2cea6e(_0x472b04);return _0x17cfe1[_0x31433f(0x95)]>_0x168cfb&&_0x17cfe1['startOffset']<_0x47e4bd;})['map'](_0xa86603=>_0xa86603['rangeId']))??[];qe(_0x2ee23a,_0x168cfb,_0x47e4bd,''),_0x2ee23a[_0x3c9430(0x165)]=[...((_0x5d5689=_0x2ee23a[_0x3c9430(0x165)])==null?void 0x0:_0x5d5689[_0x3c9430(0x10d)](_0xd94701=>!_0x508985[_0x3c9430(0x141)](_0xd94701[_0x3c9430(0xb2)])&&_0xd94701[_0x3c9430(0xb2)]!==_0x3f6dbe['rangeId']))??[],Ue(_0x3f6dbe[_0x3c9430(0xb2)],_0x168cfb)]['sort']((_0x310353,_0x21747a)=>_0x310353[_0x3c9430(0x162)]-_0x21747a[_0x3c9430(0x162)]);let _0x50aa15=E(_0x3f6dbe[_0x3c9430(0x144)]);return _0x508985[_0x3c9430(0xb3)](_0x53fb13=>{const _0x4c5f34=_0x3c9430;delete _0x50aa15[_0x4c5f34(0x8b)][_0x53fb13];}),_0x50aa15[_0x3c9430(0x8b)][_0x3f6dbe[_0x3c9430(0xb2)]]=_0x55503e['deepClone'](_0x3f6dbe[_0x3c9430(0x111)]),{'nextDocumentData':_0x3e8c2d,'nextResource':_0x50aa15,'cursorOffset':_0x168cfb+0x1};}function ze(_0x2fda35){const _0x5a667d=_0x7f0bc1;var _0x40b2ff,_0x4523ea;let _0x1a1e08=_0x55503e[_0x5a667d(0x156)](_0x2fda35[_0x5a667d(0x140)]),_0x38bb3b=(_0x40b2ff=j(_0x1a1e08)[_0x5a667d(0x165)])==null?void 0x0:_0x40b2ff[_0x5a667d(0x13f)](_0x56f086=>_0x56f086[_0x5a667d(0xb2)]===_0x2fda35[_0x5a667d(0xb2)]&&w(_0x56f086));if(!_0x38bb3b||!((_0x4523ea=_0x2fda35[_0x5a667d(0x144)])!=null&&_0x4523ea['formulas'][_0x2fda35['rangeId']]))return null;let _0x5c7bcb=E(_0x2fda35[_0x5a667d(0x144)]);return _0x5c7bcb[_0x5a667d(0x8b)][_0x2fda35[_0x5a667d(0xb2)]]=_0x55503e[_0x5a667d(0x156)](_0x2fda35[_0x5a667d(0x111)]),{'nextDocumentData':_0x1a1e08,'nextResource':_0x5c7bcb,'cursorOffset':_0x38bb3b[_0x5a667d(0xd4)]+0x1};}function Be(_0x5dcf4c){const _0x39a403=_0x7f0bc1;let _0x34d475=_0x55503e[_0x39a403(0x156)](_0x5dcf4c['documentData']),_0x49bed0=Je(_0x34d475,_0x5dcf4c[_0x39a403(0xb2)],_0x5dcf4c['text']??'');if(_0x49bed0==null)return null;let _0x573f37=E(_0x5dcf4c[_0x39a403(0x144)]);return delete _0x573f37['formulas'][_0x5dcf4c[_0x39a403(0xb2)]],{'nextDocumentData':_0x34d475,'nextResource':_0x573f37,'cursorOffset':_0x49bed0};}function Ve(_0x40a86d,_0x5c9626){const _0x424dda=_0x7f0bc1;var _0x58ae01;let _0x2bf718=_0x55503e[_0x424dda(0x156)](_0x40a86d),_0x177db9=_0x2bf718['body'];if(!_0x177db9)return _0x2bf718;let _0x5c3fc6=new Map(_0x5c9626[_0x424dda(0x74)](_0x92341e=>[_0x92341e[_0x424dda(0xb2)],_0x92341e[_0x424dda(0x129)]])),_0x333c2c=((_0x58ae01=_0x177db9[_0x424dda(0x165)])==null?void 0x0:_0x58ae01[_0x424dda(0x10d)](_0x2363eb=>w(_0x2363eb)&&_0x5c3fc6[_0x424dda(0x15a)](_0x2363eb['rangeId']))[_0x424dda(0xe1)]((_0x1e9d57,_0x1bc472)=>_0x1bc472[_0x424dda(0x162)]-_0x1e9d57[_0x424dda(0x162)]))??[];for(let _0x36179b of _0x333c2c)Je(_0x2bf718,_0x36179b['rangeId'],_0x5c3fc6[_0x424dda(0xe2)](_0x36179b[_0x424dda(0xb2)])??'');return _0x2bf718;}function w(_0x4d00f0){const _0x2e8c68=_0x7f0bc1;var _0x39286e;return(_0x4d00f0==null?void 0x0:_0x4d00f0['rangeType'])===_0x529dfe[_0x2e8c68(0x10b)]&&_0x4d00f0[_0x2e8c68(0x12a)]===!0x0&&((_0x39286e=_0x4d00f0[_0x2e8c68(0xc1)])==null?void 0x0:_0x39286e[_0x2e8c68(0xd2)])==='univer-docs-formula';}function T(_0x895b73,_0x127456){const _0x3b8a3d=_0x7f0bc1;var _0x492066;return _0x895b73==null||(_0x492066=_0x895b73['customRanges'])==null?void 0x0:_0x492066[_0x3b8a3d(0x13f)](_0x533f80=>_0x533f80[_0x3b8a3d(0xb2)]===_0x127456&&w(_0x533f80));}function He(_0x59210b,_0xdbebad,_0x1b84cf){const _0x5ae020=_0x7f0bc1;if(_0xdbebad===_0x1b84cf){if(Le['has'](_0x59210b['dataStream'][_0xdbebad]))throw new C();return;}for(let _0x21f62f=_0xdbebad;_0x21f62f<_0x1b84cf;_0x21f62f++)if(_0x59210b[_0x5ae020(0x168)][_0x21f62f]===_0x7ba019[_0x5ae020(0xc5)]||Le['has'](_0x59210b['dataStream'][_0x21f62f]))throw new C();}function Ue(_0xfe0083,_0x2bb28f){return{'startIndex':_0x2bb28f,'endIndex':_0x2bb28f,'rangeId':_0xfe0083,'rangeType':_0x529dfe['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x1d0b52){return _0x1d0b52?_0x55503e['deepClone'](_0x1d0b52):b();}function We(_0x2260a4,_0x1c4f51,_0x1fd507){const _0x47d883=_0x7f0bc1;let _0x1a68e8=Ke(_0x2260a4),_0x2841eb=_0x1c4f51??_0x1a68e8,_0xe83c46=_0x1fd507??_0x2841eb;return{'startOffset':Ge(Math[_0x47d883(0xad)](_0x2841eb,_0xe83c46),_0x1a68e8),'endOffset':Ge(Math[_0x47d883(0x10c)](_0x2841eb,_0xe83c46),_0x1a68e8)};}function Ge(_0x22a8e0,_0x2366d7){const _0x2f2a8b=_0x7f0bc1;return Math['max'](0x0,Math[_0x2f2a8b(0xad)](_0x22a8e0,_0x2366d7));}function Ke(_0x35dc5c){const _0x3b239b=_0x7f0bc1;return _0x35dc5c['dataStream'][_0x3b239b(0x139)](''+_0x7ba019[_0x3b239b(0xc5)]+_0x7ba019['SECTION_BREAK'])?Math[_0x3b239b(0x10c)](0x0,_0x35dc5c[_0x3b239b(0x168)][_0x3b239b(0xef)]-0x2):_0x35dc5c[_0x3b239b(0x168)][_0x3b239b(0x139)](_0x7ba019['SECTION_BREAK'])?Math['max'](0x0,_0x35dc5c[_0x3b239b(0x168)]['length']-0x1):_0x35dc5c[_0x3b239b(0x168)][_0x3b239b(0xef)];}function qe(_0x19ef86,_0x2a5a88,_0x3029a7,_0x25d98a){_0x3029a7>_0x2a5a88&&Xe(_0x19ef86,_0x2a5a88,_0x3029a7),Ye(_0x19ef86,_0x2a5a88,_0x25d98a);}function Je(_0x489454,_0x4319d5,_0x2e2c16){const _0x13cb30=_0x7f0bc1;var _0x255f46,_0xe47a0b;let _0x13da09=j(_0x489454),_0x31493a=(_0x255f46=_0x13da09[_0x13cb30(0x165)])==null?void 0x0:_0x255f46[_0x13cb30(0x13f)](_0x10daa6=>_0x10daa6[_0x13cb30(0xb2)]===_0x4319d5&&w(_0x10daa6));if(!_0x31493a)return null;let _0x5877d4=_0x2cea6e(_0x31493a);return qe(_0x13da09,_0x5877d4['startOffset'],_0x5877d4['endOffset'],_0x2e2c16),_0x13da09['customRanges']=(_0xe47a0b=_0x13da09[_0x13cb30(0x165)])==null?void 0x0:_0xe47a0b[_0x13cb30(0x10d)](_0x27c26=>_0x27c26[_0x13cb30(0xb2)]!==_0x4319d5),_0x5877d4[_0x13cb30(0x12d)]+_0x2e2c16[_0x13cb30(0xef)];}function Ye(_0x491ee0,_0x1467c4,_0x4137bd){const _0x121b8f=_0x7f0bc1;_0x4137bd&&(_0x491ee0['dataStream']=''+_0x491ee0['dataStream'][_0x121b8f(0x160)](0x0,_0x1467c4)+_0x4137bd+_0x491ee0['dataStream'][_0x121b8f(0x160)](_0x1467c4),Ze(_0x491ee0,_0x1467c4,_0x4137bd[_0x121b8f(0xef)]));}function Xe(_0x375256,_0x4b67ee,_0x13e463){const _0x528bea=_0x7f0bc1;let _0x17fb3d=_0x13e463-_0x4b67ee;_0x375256['dataStream']=''+_0x375256[_0x528bea(0x168)][_0x528bea(0x160)](0x0,_0x4b67ee)+_0x375256[_0x528bea(0x168)][_0x528bea(0x160)](_0x13e463),Qe(_0x375256,_0x4b67ee,_0x17fb3d);}function Ze(_0x4dbf89,_0x42c245,_0x259f8b){const _0x297bec=_0x7f0bc1;_0x4dbf89['paragraphs']=D(_0x4dbf89['paragraphs'],_0x42c245,_0x259f8b),_0x4dbf89['sectionBreaks']=D(_0x4dbf89[_0x297bec(0xbd)],_0x42c245,_0x259f8b),_0x4dbf89['customBlocks']=D(_0x4dbf89[_0x297bec(0xde)],_0x42c245,_0x259f8b),_0x4dbf89[_0x297bec(0xce)]=$e(_0x4dbf89[_0x297bec(0xce)],_0x42c245,_0x259f8b),_0x4dbf89[_0x297bec(0xfd)]=et(_0x4dbf89[_0x297bec(0xfd)],_0x42c245,_0x259f8b),_0x4dbf89['columnGroups']=k(_0x4dbf89[_0x297bec(0x77)],_0x42c245,_0x259f8b),_0x4dbf89[_0x297bec(0x165)]=k(_0x4dbf89[_0x297bec(0x165)],_0x42c245,_0x259f8b),_0x4dbf89[_0x297bec(0x9b)]=k(_0x4dbf89['customDecorations'],_0x42c245,_0x259f8b),_0x4dbf89[_0x297bec(0x136)]=k(_0x4dbf89['blockRanges'],_0x42c245,_0x259f8b);}function Qe(_0x4608c6,_0x117461,_0x2d8295){const _0x31e8e5=_0x7f0bc1;var _0x34f597,_0x443039;_0x4608c6['paragraphs']=O(_0x4608c6['paragraphs'],_0x117461,_0x2d8295),_0x4608c6[_0x31e8e5(0xbd)]=O(_0x4608c6[_0x31e8e5(0xbd)],_0x117461,_0x2d8295),_0x4608c6[_0x31e8e5(0xde)]=O(_0x4608c6[_0x31e8e5(0xde)],_0x117461,_0x2d8295),_0x4608c6[_0x31e8e5(0xce)]=(_0x34f597=tt((_0x443039=_0x4608c6['textRuns'])==null?void 0x0:_0x443039[_0x31e8e5(0x74)](_0x46ad41=>({..._0x46ad41,'startIndex':_0x46ad41['st'],'endIndex':_0x46ad41['ed']})),_0x117461,_0x2d8295))==null?void 0x0:_0x34f597[_0x31e8e5(0x74)](_0x442be6=>{let {startIndex:_0x38e6bc,endIndex:_0x245848,..._0x14a564}=_0x442be6;return{..._0x14a564,'st':_0x38e6bc,'ed':_0x245848};}),_0x4608c6[_0x31e8e5(0xfd)]=tt(_0x4608c6[_0x31e8e5(0xfd)],_0x117461,_0x2d8295),_0x4608c6[_0x31e8e5(0x77)]=A(_0x4608c6['columnGroups'],_0x117461,_0x2d8295),_0x4608c6[_0x31e8e5(0x165)]=A(_0x4608c6[_0x31e8e5(0x165)],_0x117461,_0x2d8295),_0x4608c6[_0x31e8e5(0x9b)]=A(_0x4608c6[_0x31e8e5(0x9b)],_0x117461,_0x2d8295),_0x4608c6[_0x31e8e5(0x136)]=A(_0x4608c6[_0x31e8e5(0x136)],_0x117461,_0x2d8295);}function D(_0x1d9d9d,_0x58cf9b,_0x17948e){const _0x3ff1bb=_0x7f0bc1;return _0x1d9d9d==null?void 0x0:_0x1d9d9d[_0x3ff1bb(0x74)](_0x22713f=>_0x22713f[_0x3ff1bb(0x162)]>=_0x58cf9b?{..._0x22713f,'startIndex':_0x22713f[_0x3ff1bb(0x162)]+_0x17948e}:_0x22713f);}function O(_0x469285,_0x228794,_0x57fea2){const _0xe0bc47=_0x7f0bc1;let _0xb2da83=_0x228794+_0x57fea2;return _0x469285==null?void 0x0:_0x469285[_0xe0bc47(0x74)](_0x4dee6b=>_0x4dee6b['startIndex']>=_0x228794&&_0x4dee6b[_0xe0bc47(0x162)]<_0xb2da83?null:_0x4dee6b['startIndex']>=_0xb2da83?{..._0x4dee6b,'startIndex':_0x4dee6b[_0xe0bc47(0x162)]-_0x57fea2}:_0x4dee6b)[_0xe0bc47(0x10d)](_0x33574a=>_0x33574a!=null);}function $e(_0x91aa8d,_0x576b15,_0x2e5a47){const _0x117ec8=_0x7f0bc1;return _0x91aa8d==null?void 0x0:_0x91aa8d[_0x117ec8(0x74)](_0x3dc586=>_0x3dc586['st']>=_0x576b15?{..._0x3dc586,'st':_0x3dc586['st']+_0x2e5a47,'ed':_0x3dc586['ed']+_0x2e5a47}:_0x3dc586['ed']>_0x576b15?{..._0x3dc586,'ed':_0x3dc586['ed']+_0x2e5a47}:_0x3dc586);}function k(_0x319146,_0x2c02a7,_0x33b96e){const _0x14d042=_0x7f0bc1;return _0x319146==null?void 0x0:_0x319146[_0x14d042(0x74)](_0x2ccc0b=>_0x1e36c2(_0x2ccc0b,_0x2c02a7,_0x33b96e));}function et(_0xbdd663,_0x401a19,_0x11bbfc){const _0x520ed4=_0x7f0bc1;return _0xbdd663==null?void 0x0:_0xbdd663[_0x520ed4(0x74)](_0x59e430=>_0x5cda61(_0x59e430,_0x401a19,_0x11bbfc));}function A(_0x3febef,_0x5d5858,_0x20fb61){const _0x48cb1c=_0x7f0bc1;return _0x3febef==null?void 0x0:_0x3febef['map'](_0x5da523=>_0x21f012(_0x5da523,_0x5d5858,_0x20fb61))[_0x48cb1c(0x10d)](_0x10ab95=>_0x10ab95!=null);}function tt(_0x936766,_0x2856c3,_0x21581f){const _0x171e98=_0x7f0bc1;return _0x936766==null?void 0x0:_0x936766[_0x171e98(0x74)](_0x99928d=>_0x1463e1(_0x99928d,_0x2856c3,_0x21581f))[_0x171e98(0x10d)](_0x3fbced=>_0x3fbced!=null);}function j(_0x44ccfc){const _0x1e95ff=_0x7f0bc1;if(!_0x44ccfc[_0x1e95ff(0xe4)])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x44ccfc[_0x1e95ff(0xe4)];}function M(_0x36706a){'@babel/helpers - typeof';const _0x8000d=_0x7f0bc1;return M=typeof Symbol==_0x8000d(0xfa)&&typeof Symbol[_0x8000d(0x92)]=='symbol'?function(_0x23bcc0){return typeof _0x23bcc0;}:function(_0x5f2475){const _0x4760e8=_0x8000d;return _0x5f2475&&typeof Symbol==_0x4760e8(0xfa)&&_0x5f2475[_0x4760e8(0xba)]===Symbol&&_0x5f2475!==Symbol[_0x4760e8(0xc4)]?'symbol':typeof _0x5f2475;},M(_0x36706a);}function nt(_0x313028,_0x5abc17){const _0x31a615=_0x7f0bc1;if(M(_0x313028)!=_0x31a615(0xf6)||!_0x313028)return _0x313028;var _0x358a9c=_0x313028[Symbol['toPrimitive']];if(_0x358a9c!==void 0x0){var _0x1b30a4=_0x358a9c[_0x31a615(0xa6)](_0x313028,_0x5abc17||_0x31a615(0xc0));if(M(_0x1b30a4)!=_0x31a615(0xf6))return _0x1b30a4;throw TypeError(_0x31a615(0x116));}return(_0x5abc17==='string'?String:Number)(_0x313028);}function rt(_0x1c87c3){const _0x3634c3=_0x7f0bc1;var _0x18f23a=nt(_0x1c87c3,_0x3634c3(0x94));return M(_0x18f23a)==_0x3634c3(0x134)?_0x18f23a:_0x18f23a+'';}function N(_0x387b31,_0x1169c5,_0x12443c){return(_0x1169c5=rt(_0x1169c5))in _0x387b31?Object['defineProperty'](_0x387b31,_0x1169c5,{'value':_0x12443c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x387b31[_0x1169c5]=_0x12443c,_0x387b31;}var P=class extends _0x4b51e6{constructor(..._0x517a40){const _0xeeb1fe=_0x7f0bc1;super(..._0x517a40),N(this,'_resources',new Map()),N(this,_0xeeb1fe(0xcd),new Map()),N(this,_0xeeb1fe(0x82),new Map()),N(this,_0xeeb1fe(0x13a),new _0x5a1503()),N(this,_0xeeb1fe(0xe8),this[_0xeeb1fe(0x13a)][_0xeeb1fe(0xb0)]());}[_0x7f0bc1(0x15b)](_0x10946f,_0x274790){const _0x342250=_0x7f0bc1;var _0x517e95;let _0x30a2a9=(_0x517e95=this[_0x342250(0x89)][_0x342250(0xe2)](_0x10946f))==null?void 0x0:_0x517e95[_0x342250(0x8b)][_0x274790];return _0x30a2a9?_0x55503e[_0x342250(0x156)](_0x30a2a9):void 0x0;}['getFormulas'](_0x3b34b4){const _0x767fa8=_0x7f0bc1;var _0x34700a;return _0x55503e[_0x767fa8(0x156)](((_0x34700a=this['_resources'][_0x767fa8(0xe2)](_0x3b34b4))==null?void 0x0:_0x34700a[_0x767fa8(0x8b)])??{});}[_0x7f0bc1(0x99)](_0x255c0b){const _0x38bcae=_0x7f0bc1;let _0x5d7b39=this[_0x38bcae(0x89)]['get'](_0x255c0b);return _0x5d7b39?_0x55503e[_0x38bcae(0x156)](_0x5d7b39):void 0x0;}['setFormula'](_0x3c5cbc,_0x4e8f24,_0x27825a){return this['setFormulas'](_0x3c5cbc,{[_0x4e8f24]:_0x27825a});}[_0x7f0bc1(0x9f)](_0x693dce,_0x3eeac5){const _0x347547=_0x7f0bc1;return this[_0x347547(0x82)]['has'](_0x693dce)||!x(_0x3eeac5)?!0x1:(this[_0x347547(0x89)][_0x347547(0x13e)](_0x693dce,_0x55503e[_0x347547(0x156)](_0x3eeac5)),this[_0x347547(0x13a)][_0x347547(0x138)]({'unitId':_0x693dce}),!0x0);}[_0x7f0bc1(0xd3)](_0x59ee1c,_0x5d45d4){const _0x5aa177=_0x7f0bc1;if(this[_0x5aa177(0x82)]['has'](_0x59ee1c)||!Object[_0x5aa177(0xf0)](_0x5d45d4)[_0x5aa177(0xef)]||!x({'schemaVersion':0x1,'formulas':_0x5d45d4}))return!0x1;let _0x4b17f5=this[_0x5aa177(0x89)][_0x5aa177(0xe2)](_0x59ee1c)??b(),_0xbc0725=_0x55503e[_0x5aa177(0x156)](_0x4b17f5);return Object[_0x5aa177(0x12f)](_0xbc0725['formulas'],_0x55503e[_0x5aa177(0x156)](_0x5d45d4)),this[_0x5aa177(0x89)][_0x5aa177(0x13e)](_0x59ee1c,_0xbc0725),this['_change$'][_0x5aa177(0x138)]({'unitId':_0x59ee1c,'rangeIds':Object[_0x5aa177(0xf0)](_0x5d45d4)}),!0x0;}[_0x7f0bc1(0x137)](_0x3794ca,_0x57edf8){const _0x92aba=_0x7f0bc1;if(this['_loadErrors'][_0x92aba(0x15a)](_0x3794ca))return!0x1;let _0x15434b=this['_resources']['get'](_0x3794ca);if(!(_0x15434b!=null&&_0x15434b['formulas'][_0x57edf8]))return!0x1;let _0x5b8bc6=_0x55503e['deepClone'](_0x15434b);return delete _0x5b8bc6['formulas'][_0x57edf8],this[_0x92aba(0x89)]['set'](_0x3794ca,_0x5b8bc6),this[_0x92aba(0x13a)]['next']({'unitId':_0x3794ca,'rangeIds':[_0x57edf8]}),!0x0;}[_0x7f0bc1(0x7c)](_0x3e60b0,_0x4b49bf){const _0x680808=_0x7f0bc1;return _0x4b49bf&&typeof _0x4b49bf==_0x680808(0xf6)&&_0x680808(0xf7)in _0x4b49bf&&_0x4b49bf[_0x680808(0xf7)]!==0x1?(this['_preserveInvalid'](_0x3e60b0,_0x4b49bf,_0x680808(0xb5)),!0x1):x(_0x4b49bf)?(this['_resources'][_0x680808(0x13e)](_0x3e60b0,_0x55503e['deepClone'](_0x4b49bf)),this[_0x680808(0xcd)]['delete'](_0x3e60b0),this[_0x680808(0x82)][_0x680808(0x110)](_0x3e60b0),this[_0x680808(0x13a)][_0x680808(0x138)]({'unitId':_0x3e60b0}),!0x0):(this[_0x680808(0x108)](_0x3e60b0,_0x4b49bf,_0x680808(0x79)),!0x1);}[_0x7f0bc1(0x13d)](_0x4e6347){const _0x4e983c=_0x7f0bc1;let _0x564d92=this['_resources'][_0x4e983c(0xe2)](_0x4e6347);return _0x564d92?_0x55503e[_0x4e983c(0x156)](_0x564d92):this[_0x4e983c(0xcd)][_0x4e983c(0x15a)](_0x4e6347)?_0x55503e[_0x4e983c(0x156)](this[_0x4e983c(0xcd)]['get'](_0x4e6347)):b();}[_0x7f0bc1(0xb8)](_0xf051a){const _0x1d9d3e=_0x7f0bc1;return this[_0x1d9d3e(0x82)][_0x1d9d3e(0xe2)](_0xf051a);}[_0x7f0bc1(0xf8)](_0x263fc5){const _0xe096e5=_0x7f0bc1;this[_0xe096e5(0x89)][_0xe096e5(0x110)](_0x263fc5),this[_0xe096e5(0xcd)][_0xe096e5(0x110)](_0x263fc5),this['_loadErrors'][_0xe096e5(0x110)](_0x263fc5),this[_0xe096e5(0x13a)][_0xe096e5(0x138)]({'unitId':_0x263fc5});}['dispose'](){const _0x470d1a=_0x7f0bc1;this[_0x470d1a(0x89)]['clear'](),this[_0x470d1a(0xcd)][_0x470d1a(0x8c)](),this['_loadErrors'][_0x470d1a(0x8c)](),this['_change$'][_0x470d1a(0x101)](),super[_0x470d1a(0x84)]();}[_0x7f0bc1(0x108)](_0x4e48f9,_0x516bc5,_0x1128ea){const _0x5cb582=_0x7f0bc1;this[_0x5cb582(0x89)]['delete'](_0x4e48f9),this[_0x5cb582(0xcd)][_0x5cb582(0x13e)](_0x4e48f9,_0x55503e[_0x5cb582(0x156)](_0x516bc5)),this[_0x5cb582(0x82)][_0x5cb582(0x13e)](_0x4e48f9,_0x1128ea),this[_0x5cb582(0x13a)][_0x5cb582(0x138)]({'unitId':_0x4e48f9});}};let it=function(_0x8a97ec){const _0x4da97d=_0x7f0bc1;return _0x8a97ec[_0x4da97d(0x150)]='empty',_0x8a97ec['PENDING']=_0x4da97d(0x81),_0x8a97ec['SUCCESS']='success',_0x8a97ec[_0x4da97d(0xe7)]=_0x4da97d(0xc7),_0x8a97ec;}({});function F(_0x2860b8,_0x45f2ef){return function(_0x167f25,_0x12427){_0x45f2ef(_0x167f25,_0x12427,_0x2860b8);};}function I(_0x1a621e,_0x3b3607,_0x17e648,_0xe0a531){const _0x2ffec3=_0x7f0bc1;var _0xe518c7=arguments[_0x2ffec3(0xef)],_0x16006c=_0xe518c7<0x3?_0x3b3607:_0xe0a531===null?_0xe0a531=Object[_0x2ffec3(0x9d)](_0x3b3607,_0x17e648):_0xe0a531,_0x4ba33b;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x16006c=Reflect[_0x2ffec3(0x73)](_0x1a621e,_0x3b3607,_0x17e648,_0xe0a531);else{for(var _0x1fb6e3=_0x1a621e[_0x2ffec3(0xef)]-0x1;_0x1fb6e3>=0x0;_0x1fb6e3--)(_0x4ba33b=_0x1a621e[_0x1fb6e3])&&(_0x16006c=(_0xe518c7<0x3?_0x4ba33b(_0x16006c):_0xe518c7>0x3?_0x4ba33b(_0x3b3607,_0x17e648,_0x16006c):_0x4ba33b(_0x3b3607,_0x17e648))||_0x16006c);}return _0xe518c7>0x3&&_0x16006c&&Object['defineProperty'](_0x3b3607,_0x17e648,_0x16006c),_0x16006c;}let L=class extends _0x4b51e6{constructor(_0x2c3fe2,_0x39dcbf,_0x341428){const _0x4bc2fd=_0x7f0bc1;super(),this[_0x4bc2fd(0xd5)]=_0x2c3fe2,this[_0x4bc2fd(0x157)]=_0x39dcbf,this[_0x4bc2fd(0x83)]=_0x341428,N(this,_0x4bc2fd(0x8a),new Map()),N(this,_0x4bc2fd(0x119),new Map()),N(this,_0x4bc2fd(0x93),new _0x5a1503()),N(this,_0x4bc2fd(0xbf),this[_0x4bc2fd(0x93)][_0x4bc2fd(0xb0)]()),this[_0x4bc2fd(0x14e)](this[_0x4bc2fd(0x157)][_0x4bc2fd(0xdb)][_0x4bc2fd(0xb7)](_0x93ad56=>{const _0x5524e4=_0x4bc2fd;for(let _0x43fa00 of Object[_0x5524e4(0x164)](_0x93ad56))for(let _0x1ee1b3 of Object['values'](_0x43fa00))_0x1ee1b3['forEach'](_0x1beebd=>this[_0x5524e4(0x7f)](_0x1beebd));}));}[_0x7f0bc1(0x128)](_0x34dc44){const _0x489b06=_0x7f0bc1;var _0x5c82e8;let _0x38e913=_0x34dc44[_0x489b06(0xf1)](),_0x440a7b=((_0x5c82e8=_0x34dc44[_0x489b06(0xfb)]()[_0x489b06(0xe4)])==null||(_0x5c82e8=_0x5c82e8['customRanges'])==null?void 0x0:_0x5c82e8[_0x489b06(0x10d)](w))??[],_0x55ca50=this['_model'][_0x489b06(0xec)](_0x38e913),_0x5d1931=new Set();for(let _0x50b1c8 of _0x440a7b){let _0x1efd32=_0x55ca50[_0x50b1c8[_0x489b06(0xb2)]];_0x1efd32&&(_0x5d1931[_0x489b06(0xd7)](R(_0x38e913,_0x50b1c8[_0x489b06(0xb2)])),this[_0x489b06(0xb9)]({'unitId':_0x38e913,'rangeId':_0x50b1c8[_0x489b06(0xb2)]},_0x1efd32));}for(let _0x222012 of Array['from'](this[_0x489b06(0x8a)]['values']()))_0x222012['unitId']===_0x38e913&&!_0x5d1931['has'](R(_0x222012['unitId'],_0x222012[_0x489b06(0xb2)]))&&this['unregister'](_0x222012);}[_0x7f0bc1(0xb9)](_0x1eccda,_0x14edb8){const _0x2f8887=_0x7f0bc1;let _0x507166=R(_0x1eccda[_0x2f8887(0x151)],_0x1eccda[_0x2f8887(0xb2)]),_0x831caa=this[_0x2f8887(0x8a)][_0x2f8887(0xe2)](_0x507166),_0x36d1a8=this['_hostExternalReferenceModel'][_0x2f8887(0xea)](_0x1eccda[_0x2f8887(0x151)]);if(_0x831caa&&_0x831caa['config'][_0x2f8887(0x126)]===_0x14edb8[_0x2f8887(0x126)]&&_0x831caa['referenceRevision']===_0x36d1a8){_0x831caa[_0x2f8887(0x111)]=_0x14edb8;let _0x5013aa=_0x831caa[_0x2f8887(0x85)]?this[_0x2f8887(0x157)][_0x2f8887(0xd1)](_0x831caa[_0x2f8887(0x151)],_0x831caa['unitId'],_0x831caa[_0x2f8887(0x85)])??void 0x0:void 0x0;_0x831caa['liveResult']=_0x5013aa,this['_setPresentation'](_0x507166,z(_0x14edb8,_0x5013aa));return;}_0x831caa!=null&&_0x831caa[_0x2f8887(0x85)]&&this[_0x2f8887(0x7d)](_0x831caa);let _0x3f5579={..._0x1eccda,'config':_0x14edb8,'referenceRevision':_0x36d1a8,'presentation':z(_0x14edb8,void 0x0)};if(this['_registrations']['set'](_0x507166,_0x3f5579),!_0x14edb8['formula']['trim']())return;let _0x5d1ce0=this[_0x2f8887(0x157)]['registerFormulaWithRange'](_0x1eccda['unitId'],_0x1eccda[_0x2f8887(0x151)],_0x14edb8[_0x2f8887(0x126)],void 0x0,{'rangeId':_0x1eccda[_0x2f8887(0xb2)]},_0x5de2d8[_0x2f8887(0x10a)],_0x1eccda[_0x2f8887(0xb2)]);_0x3f5579['formulaId']=_0x5d1ce0,this[_0x2f8887(0x119)][_0x2f8887(0x13e)](_0x5d1ce0,_0x507166);}[_0x7f0bc1(0xa5)](_0x32f83d){const _0x437e96=_0x7f0bc1;let _0x4a98d6=R(_0x32f83d[_0x437e96(0x151)],_0x32f83d[_0x437e96(0xb2)]),_0x5185f0=this[_0x437e96(0x8a)][_0x437e96(0xe2)](_0x4a98d6);_0x5185f0&&(this[_0x437e96(0x7d)](_0x5185f0),this['_registrations'][_0x437e96(0x110)](_0x4a98d6));}['unregisterUnit'](_0x4874f9){const _0x726b06=_0x7f0bc1;for(let _0x186cd1 of Array[_0x726b06(0x87)](this[_0x726b06(0x8a)]['values']()))_0x186cd1[_0x726b06(0x151)]===_0x4874f9&&this[_0x726b06(0xa5)](_0x186cd1);}[_0x7f0bc1(0x166)](_0x157e88){const _0x119f72=_0x7f0bc1;var _0x35e535;return(_0x35e535=this[_0x119f72(0x8a)]['get'](R(_0x157e88[_0x119f72(0x151)],_0x157e88['rangeId'])))==null?void 0x0:_0x35e535[_0x119f72(0x127)];}[_0x7f0bc1(0x13b)](_0x2a1e79){const _0x14b1a1=_0x7f0bc1;let _0x238663=this[_0x14b1a1(0x8a)][_0x14b1a1(0xe2)](R(_0x2a1e79[_0x14b1a1(0x151)],_0x2a1e79['rangeId']));return _0x238663?B(_0x238663):void 0x0;}['getRegisteredFormulas'](){const _0x238dda=_0x7f0bc1;return Array[_0x238dda(0x87)](this[_0x238dda(0x8a)][_0x238dda(0x164)](),_0x1b8d0f=>({'identity':{'unitId':_0x1b8d0f['unitId'],'rangeId':_0x1b8d0f[_0x238dda(0xb2)]},'config':_0x1b8d0f[_0x238dda(0x111)],'referenceRevision':_0x1b8d0f[_0x238dda(0xac)],..._0x1b8d0f[_0x238dda(0x149)]?{'liveResult':_0x1b8d0f['liveResult']}:null}));}['dispose'](){const _0x6dca9f=_0x7f0bc1;for(let _0x56370b of this[_0x6dca9f(0x8a)][_0x6dca9f(0x164)]())this[_0x6dca9f(0x7d)](_0x56370b);this[_0x6dca9f(0x8a)][_0x6dca9f(0x8c)](),this[_0x6dca9f(0x119)][_0x6dca9f(0x8c)](),this['_presentationChanged$']['complete'](),super[_0x6dca9f(0x84)]();}[_0x7f0bc1(0x7f)](_0x4e893d){const _0x56e642=_0x7f0bc1;let _0x13040f=this[_0x56e642(0x119)][_0x56e642(0xe2)](_0x4e893d[_0x56e642(0x85)]),_0x1942d2=_0x13040f?this[_0x56e642(0x8a)][_0x56e642(0xe2)](_0x13040f):void 0x0;!_0x13040f||!_0x1942d2||(_0x1942d2[_0x56e642(0x149)]=_0x4e893d,this[_0x56e642(0x125)](_0x13040f,z(_0x1942d2[_0x56e642(0x111)],_0x4e893d)));}[_0x7f0bc1(0x125)](_0x34d857,_0x2388fd){const _0x73271d=_0x7f0bc1;var _0x4a5206,_0x86987d;let _0x447427=this[_0x73271d(0x8a)]['get'](_0x34d857);if(!_0x447427||at(_0x447427[_0x73271d(0x127)],_0x2388fd))return;let _0x362844=_0x447427[_0x73271d(0x127)],_0x522d0c=B(_0x447427);_0x447427[_0x73271d(0x127)]=_0x2388fd,this[_0x73271d(0x93)][_0x73271d(0x138)]({'unitId':_0x447427[_0x73271d(0x151)],'rangeId':_0x447427[_0x73271d(0xb2)],'presentation':_0x2388fd,'previousPresentation':_0x362844,'result':B(_0x447427),'previousResult':{..._0x522d0c,..._0x362844,'value':(_0x4a5206=_0x362844['cell'])==null?void 0x0:_0x4a5206['v'],'valueType':((_0x86987d=_0x362844[_0x73271d(0x115)])==null?void 0x0:_0x86987d['t'])??void 0x0}});}[_0x7f0bc1(0x7d)](_0x4aa056){const _0x5055e4=_0x7f0bc1;_0x4aa056['formulaId']&&(this['_registrationService'][_0x5055e4(0x105)](_0x4aa056[_0x5055e4(0x151)],_0x4aa056[_0x5055e4(0x151)],[_0x4aa056[_0x5055e4(0x85)]]),this[_0x5055e4(0x119)][_0x5055e4(0x110)](_0x4aa056[_0x5055e4(0x85)]));}};L=I([F(0x0,_0xe3bd44(P)),F(0x1,_0xe3bd44(_0x57a36c)),F(0x2,_0xe3bd44(_0x51910a))],L);function R(_0x597b6b,_0x483e4d){return _0x597b6b+'\x00'+_0x483e4d;}function z(_0x2229ca,_0x4841e3){const _0x21d5ca=_0x7f0bc1;return _0x59a28f({'numberFormat':_0x2229ca[_0x21d5ca(0xed)],'lastValue':_0x2229ca['lastValue'],'result':_0x4841e3});}function B(_0x39fb6e){const _0x214d11=_0x7f0bc1;var _0x2ba3e3,_0x30712d,_0x588317;let _0x419eee=_0x39fb6e[_0x214d11(0x127)],_0x2f2c06=_0x39fb6e[_0x214d11(0x111)][_0x214d11(0x126)][_0x214d11(0x161)]()?_0x419eee[_0x214d11(0xdd)]||_0x419eee['cell']==null?_0x214d11(0x81):((_0x2ba3e3=_0x39fb6e[_0x214d11(0x149)])==null?void 0x0:_0x2ba3e3[_0x214d11(0x159)])===_0x5ab354[_0x214d11(0xe7)]?_0x214d11(0xc7):_0x214d11(0xaa):'empty';return{..._0x419eee,'status':_0x2f2c06,'value':(_0x30712d=_0x419eee[_0x214d11(0x115)])==null?void 0x0:_0x30712d['v'],'valueType':((_0x588317=_0x419eee[_0x214d11(0x115)])==null?void 0x0:_0x588317['t'])??void 0x0};}function at(_0x15c1e8,_0x18e8cc){const _0xf5605f=_0x7f0bc1;var _0x416c5,_0x2cd4d4,_0x2c76f3,_0x4a3154;return _0x15c1e8[_0xf5605f(0x129)]===_0x18e8cc['text']&&_0x15c1e8['color']===_0x18e8cc[_0xf5605f(0x90)]&&_0x15c1e8[_0xf5605f(0x113)]===_0x18e8cc[_0xf5605f(0x113)]&&_0x15c1e8[_0xf5605f(0x9e)]===_0x18e8cc[_0xf5605f(0x9e)]&&_0x15c1e8['stale']===_0x18e8cc[_0xf5605f(0xdd)]&&((_0x416c5=_0x15c1e8[_0xf5605f(0x115)])==null?void 0x0:_0x416c5['t'])===((_0x2cd4d4=_0x18e8cc[_0xf5605f(0x115)])==null?void 0x0:_0x2cd4d4['t'])&&Object['is']((_0x2c76f3=_0x15c1e8[_0xf5605f(0x115)])==null?void 0x0:_0x2c76f3['v'],(_0x4a3154=_0x18e8cc[_0xf5605f(0x115)])==null?void 0x0:_0x4a3154['v']);}const ot={'id':_0x7f0bc1(0x15c),'type':_0x493b9a['MUTATION'],'handler':(_0x1906da,_0x244ef9)=>!(_0x244ef9!=null&&_0x244ef9[_0x7f0bc1(0x151)])||!_0x244ef9[_0x7f0bc1(0xb2)]||!_0x244ef9[_0x7f0bc1(0x111)]?!0x1:_0x1906da['get'](P)[_0x7f0bc1(0x135)](_0x244ef9[_0x7f0bc1(0x151)],_0x244ef9['rangeId'],_0x244ef9['config'])},st={'id':_0x7f0bc1(0x98),'type':_0x493b9a['MUTATION'],'handler':(_0x25ac84,_0xd5e7ae)=>!(_0xd5e7ae!=null&&_0xd5e7ae[_0x7f0bc1(0x151)])||!_0xd5e7ae[_0x7f0bc1(0xb2)]?!0x1:_0x25ac84[_0x7f0bc1(0xe2)](P)[_0x7f0bc1(0x137)](_0xd5e7ae[_0x7f0bc1(0x151)],_0xd5e7ae[_0x7f0bc1(0xb2)])},V={'id':_0x7f0bc1(0x120),'type':_0x493b9a['MUTATION'],'handler':(_0x37a788,_0x38a467)=>!(_0x38a467!=null&&_0x38a467['unitId'])||!_0x38a467[_0x7f0bc1(0x144)]?!0x1:_0x37a788[_0x7f0bc1(0xe2)](P)[_0x7f0bc1(0x9f)](_0x38a467[_0x7f0bc1(0x151)],_0x38a467[_0x7f0bc1(0x144)])},H={'id':_0x7f0bc1(0xa4),'type':_0x493b9a[_0x7f0bc1(0x106)],'handler':(_0x2087f3,_0x2c5d68)=>{const _0x439f07=_0x7f0bc1;if(!(_0x2c5d68!=null&&_0x2c5d68[_0x439f07(0x151)])||!_0x2c5d68['updates']['length'])return!0x1;let _0x5aba5d=_0x2087f3[_0x439f07(0xe2)](P),_0x3469a9=_0x2087f3[_0x439f07(0xe2)](_0x51910a),_0x388b2c=_0x5aba5d[_0x439f07(0x99)](_0x2c5d68[_0x439f07(0x151)]);if(!_0x388b2c)return!0x1;let _0x28d50e=_0x55503e[_0x439f07(0x156)](_0x388b2c),_0x955796=!0x1;for(let _0x3c63f4 of _0x2c5d68['updates']){var _0x2c8941,_0x3c1792,_0xd09db5,_0x44193c;let _0x397081=_0x28d50e['formulas'][_0x3c63f4[_0x439f07(0xb2)]];!_0x397081||_0x397081['formula']!==_0x3c63f4[_0x439f07(0x8e)]||((_0x2c8941=_0x397081['numberFormat'])==null?void 0x0:_0x2c8941['pattern'])!==_0x3c63f4[_0x439f07(0xee)]||_0x3469a9['getRevision'](_0x2c5d68['unitId'])!==_0x3c63f4[_0x439f07(0x122)]||(((_0x3c1792=_0x397081['lastValue'])==null?void 0x0:_0x3c1792['v'])!==_0x3c63f4[_0x439f07(0x123)]['v']||((_0xd09db5=_0x397081[_0x439f07(0x123)])==null?void 0x0:_0xd09db5['t'])!==_0x3c63f4['lastValue']['t']||((_0x44193c=_0x397081[_0x439f07(0x123)])==null?void 0x0:_0x44193c[_0x439f07(0x113)])!==_0x3c63f4[_0x439f07(0x123)]['pattern'])&&(_0x397081[_0x439f07(0x123)]=_0x55503e[_0x439f07(0x156)](_0x3c63f4[_0x439f07(0x123)]),_0x955796=!0x0);}return!_0x955796||_0x5aba5d['setResource'](_0x2c5d68[_0x439f07(0x151)],_0x28d50e);}},U={'id':_0x7f0bc1(0x88),'type':_0x493b9a[_0x7f0bc1(0x147)],'handler':(_0x28ee14,_0x50800e)=>{const _0x22f404=_0x7f0bc1;if(!(_0x50800e!=null&&_0x50800e['formula']['trim']()))return!0x1;let _0x1a43d9=q(_0x28ee14,_0x50800e['unitId'],'');if(!_0x1a43d9)return!0x1;let _0x525057=ft(_0x50800e[_0x22f404(0x148)],_0x1a43d9['body'],dt(_0x28ee14,_0x1a43d9['unitId']));if(!_0x525057)return!0x1;let _0x554d57=pt(_0x28ee14,_0x1a43d9[_0x22f404(0x151)],_0x50800e['formula'],_0x50800e[_0x22f404(0xa8)]??[]);if(!_0x554d57)return!0x1;let _0x5a22d8=mt(_0x1a43d9[_0x22f404(0xe4)],_0x1a43d9[_0x22f404(0x143)],_0x1a43d9[_0x22f404(0x151)]),_0x24517e=ht({'documentData':_0x1a43d9[_0x22f404(0x140)],'resource':_0x1a43d9[_0x22f404(0x144)],'rangeId':_0x5a22d8,'config':{'formula':_0x50800e[_0x22f404(0x126)],..._0x50800e[_0x22f404(0xed)]?{'numberFormat':_0x50800e[_0x22f404(0xed)]}:null},'startOffset':_0x525057[_0x22f404(0x12d)],'endOffset':_0x525057[_0x22f404(0x95)]});if(!_0x24517e)return!0x1;let _0x52ddf6=_0x2f4e62(_0x28ee14,_0x1a43d9[_0x22f404(0x151)],_0x554d57);return!_0x52ddf6||!J({'accessor':_0x28ee14,'document':_0x1a43d9[_0x22f404(0xe5)],'unitId':_0x1a43d9[_0x22f404(0x151)],'trigger':U['id'],'rangeId':_0x5a22d8,'previousResource':_0x1a43d9['resource'],'nextResource':_0x24517e[_0x22f404(0xf3)],'previousDocumentData':_0x1a43d9[_0x22f404(0x140)],'nextDocumentData':_0x24517e[_0x22f404(0xb6)],'cursorOffset':_0x24517e['cursorOffset'],'externalMutations':_0x52ddf6})?!0x1:{'rangeId':_0x5a22d8,'startOffset':_0x24517e['cursorOffset']-0x1,'endOffset':_0x24517e['cursorOffset']};}},W={'id':'docs-formula.command.update','type':_0x493b9a[_0x7f0bc1(0x147)],'handler':(_0x1c85b8,_0x8acc16)=>{const _0xa5ce89=_0x7f0bc1;if(!(_0x8acc16!=null&&_0x8acc16[_0xa5ce89(0xb2)])||!_0x8acc16[_0xa5ce89(0x126)][_0xa5ce89(0x161)]())return!0x1;let _0x2cd93f=q(_0x1c85b8,_0x8acc16[_0xa5ce89(0x151)],''),_0x4e1ce1=_0x2cd93f==null?void 0x0:_0x2cd93f[_0xa5ce89(0x143)]['getFormula'](_0x2cd93f['unitId'],_0x8acc16[_0xa5ce89(0xb2)]),_0x9f4b63=_0x2cd93f?T(_0x2cd93f[_0xa5ce89(0x140)]['body'],_0x8acc16[_0xa5ce89(0xb2)]):void 0x0;if(!_0x2cd93f||!_0x4e1ce1||!_0x9f4b63)return!0x1;let _0x514f42=pt(_0x1c85b8,_0x2cd93f[_0xa5ce89(0x151)],_0x8acc16['formula'],_0x8acc16[_0xa5ce89(0xa8)]??[]);if(!_0x514f42)return!0x1;let _0x1f6991=_0x2f4e62(_0x1c85b8,_0x2cd93f[_0xa5ce89(0x151)],_0x514f42);if(!_0x1f6991)return!0x1;let _0x16b274=Ct(_0x2cd93f[_0xa5ce89(0x144)]);return _0x16b274[_0xa5ce89(0x8b)][_0x8acc16[_0xa5ce89(0xb2)]]={'formula':_0x8acc16[_0xa5ce89(0x126)],..._0x8acc16['numberFormat']?{'numberFormat':_0x8acc16[_0xa5ce89(0xed)]}:_0x4e1ce1[_0xa5ce89(0xed)]?{'numberFormat':_0x4e1ce1[_0xa5ce89(0xed)]}:null},J({'accessor':_0x1c85b8,'document':_0x2cd93f[_0xa5ce89(0xe5)],'unitId':_0x2cd93f[_0xa5ce89(0x151)],'trigger':W['id'],'rangeId':_0x8acc16['rangeId'],'previousResource':_0x2cd93f['resource'],'nextResource':_0x16b274,'cursorOffset':_0x9f4b63[_0xa5ce89(0xd4)]+0x1,'externalMutations':_0x1f6991});}},G={'id':_0x7f0bc1(0x102),'type':_0x493b9a[_0x7f0bc1(0x147)],'handler':(_0x147184,_0x20f889)=>{const _0x3b6048=_0x7f0bc1;if(!(_0x20f889!=null&&_0x20f889['rangeId']))return!0x1;let _0x308268=q(_0x147184,_0x20f889[_0x3b6048(0x151)],''),_0x5200b9=_0x308268==null?void 0x0:_0x308268['model'][_0x3b6048(0x15b)](_0x308268['unitId'],_0x20f889[_0x3b6048(0xb2)]),_0x1bf64f=_0x308268?T(_0x308268[_0x3b6048(0x140)][_0x3b6048(0xe4)],_0x20f889['rangeId']):void 0x0;if(!_0x308268||!_0x5200b9||!_0x1bf64f)return!0x1;let _0x2d0e68=Ct(_0x308268['resource']);return _0x2d0e68['formulas'][_0x20f889[_0x3b6048(0xb2)]]={..._0x5200b9,..._0x20f889['numberFormat']?{'numberFormat':_0x20f889[_0x3b6048(0xed)]}:null},_0x20f889[_0x3b6048(0xed)]||delete _0x2d0e68['formulas'][_0x20f889[_0x3b6048(0xb2)]][_0x3b6048(0xed)],J({'accessor':_0x147184,'document':_0x308268[_0x3b6048(0xe5)],'unitId':_0x308268[_0x3b6048(0x151)],'trigger':G['id'],'rangeId':_0x20f889['rangeId'],'previousResource':_0x308268[_0x3b6048(0x144)],'nextResource':_0x2d0e68,'cursorOffset':_0x1bf64f[_0x3b6048(0xd4)]+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x493b9a[_0x7f0bc1(0x147)],'handler':(_0x3a5290,_0x2336fc)=>ut(_0x3a5290,_0x2336fc,'',K['id'])},ct={'id':'docs-formula.command.replace-with-text','type':_0x493b9a['COMMAND'],'handler':(_0x345416,_0x547528)=>ut(_0x345416,_0x547528,(_0x547528==null?void 0x0:_0x547528[_0x7f0bc1(0x129)])??'',ct['id'])},lt={'id':_0x7f0bc1(0xe9),'type':_0x493b9a[_0x7f0bc1(0x147)],'handler':(_0x2d04b9,_0x480e94)=>{const _0x4a4c83=_0x7f0bc1;if(!(_0x480e94!=null&&_0x480e94[_0x4a4c83(0xb2)]))return!0x1;let _0x38af74=q(_0x2d04b9,_0x480e94['unitId'],'');if(!_0x38af74)return!0x1;let _0x1aac91=_0x2d04b9[_0x4a4c83(0xe2)](L)[_0x4a4c83(0x13b)]({'unitId':_0x38af74[_0x4a4c83(0x151)],'rangeId':_0x480e94[_0x4a4c83(0xb2)]});return _0x1aac91?ut(_0x2d04b9,_0x480e94,_0x1aac91['text'],lt['id']):!0x1;}};function _0x2297(_0x10c7a2,_0x33c0a1){_0x10c7a2=_0x10c7a2-0x70;const _0x3b4ca7=_0x3b4c();let _0x22973d=_0x3b4ca7[_0x10c7a2];return _0x22973d;}function ut(_0x1ea599,_0x26ea04,_0x4efac9,_0x13a0d6){const _0x48d3a7=_0x7f0bc1;if(!(_0x26ea04!=null&&_0x26ea04[_0x48d3a7(0xb2)]))return!0x1;let _0x100f6e=q(_0x1ea599,_0x26ea04[_0x48d3a7(0x151)],'');if(!_0x100f6e)return!0x1;let _0x107bc1=Be({'documentData':_0x100f6e[_0x48d3a7(0x140)],'resource':_0x100f6e[_0x48d3a7(0x144)],'rangeId':_0x26ea04['rangeId'],'text':_0x4efac9});return _0x107bc1?J({'accessor':_0x1ea599,'document':_0x100f6e[_0x48d3a7(0xe5)],'unitId':_0x100f6e[_0x48d3a7(0x151)],'trigger':_0x13a0d6,'rangeId':_0x26ea04['rangeId'],'previousResource':_0x100f6e[_0x48d3a7(0x144)],'nextResource':_0x107bc1[_0x48d3a7(0xf3)],'previousDocumentData':_0x100f6e[_0x48d3a7(0x140)],'nextDocumentData':_0x107bc1[_0x48d3a7(0xb6)],'cursorOffset':_0x107bc1[_0x48d3a7(0x86)],'externalMutations':{}}):!0x1;}function q(_0x5e071d,_0x1cc248,_0x575301){const _0xeafb08=_0x7f0bc1;if(_0x575301)return null;let _0x2b16c2=_0x5e071d[_0xeafb08(0xe2)](_0x2a2450),_0x421155=(_0x1cc248?_0x2b16c2['getUnit'](_0x1cc248,_0x40e918[_0xeafb08(0x142)]):_0x2b16c2[_0xeafb08(0x97)](_0x40e918[_0xeafb08(0x142)]))??null;if(!_0x421155)return null;let _0x21e34d=_0x421155[_0xeafb08(0xfb)](),_0x4fb072=_0x21e34d[_0xeafb08(0xe4)];if(_0x21e34d['disabled']||!_0x4fb072)return null;let _0x3ca3d4=_0x5e071d[_0xeafb08(0xe2)](P);return _0x3ca3d4[_0xeafb08(0xb8)](_0x421155[_0xeafb08(0xf1)]())?null:{'document':_0x421155,'body':_0x4fb072,'documentData':_0x21e34d,'model':_0x3ca3d4,'resource':_0x3ca3d4['getResource'](_0x421155['getUnitId']())??b(),'unitId':_0x421155[_0xeafb08(0xf1)]()};}function dt(_0x5d1aec,_0x129823){const _0x11e12f=_0x7f0bc1;var _0x2f5872;return(_0x2f5872=_0x5d1aec['get'](_0x4116cb)[_0x11e12f(0xeb)]({'subUnitId':_0x129823,'unitId':_0x129823}))==null?void 0x0:_0x2f5872[0x0];}function ft(_0x2cbb06,_0x4a3621,_0x29ae62){const _0x514e25=_0x7f0bc1;if((_0x2cbb06==null?void 0x0:_0x2cbb06[_0x514e25(0x12e)])===_0x514e25(0xab)){var _0x30be41;let _0x46c082=((_0x30be41=_0x4a3621[_0x514e25(0x10e)])==null?void 0x0:_0x30be41[_0x514e25(0x10d)](_0x444888=>_0x444888[_0x514e25(0xcb)]===_0x2cbb06[_0x514e25(0xcb)]))??[];if(_0x46c082[_0x514e25(0xef)]!==0x1)return null;let _0x20284c=_0x46c082[0x0],_0x106b26=_0x43041b(_0x4a3621,_0x20284c),_0x146552=_0x20284c[_0x514e25(0x162)]-_0x106b26,_0x12bb11=_0x2cbb06[_0x514e25(0x76)]===_0x514e25(0x121)?_0x146552:_0x2cbb06[_0x514e25(0x76)];if(!Number[_0x514e25(0x14b)](_0x12bb11)||_0x12bb11<0x0||_0x12bb11>_0x146552)return null;let _0x19e4cf=_0x106b26+_0x12bb11;return{'startOffset':_0x19e4cf,'endOffset':_0x19e4cf};}if((_0x2cbb06==null?void 0x0:_0x2cbb06['type'])===_0x514e25(0x107))return!Number[_0x514e25(0x14b)](_0x2cbb06['startOffset'])||!Number[_0x514e25(0x14b)](_0x2cbb06['endOffset'])?null:{'startOffset':Math[_0x514e25(0xad)](_0x2cbb06[_0x514e25(0x12d)],_0x2cbb06['endOffset']),'endOffset':Math[_0x514e25(0x10c)](_0x2cbb06[_0x514e25(0x12d)],_0x2cbb06[_0x514e25(0x95)])};let _0xd0eff5=(_0x2cbb06==null?void 0x0:_0x2cbb06[_0x514e25(0x12e)])===_0x514e25(0xc6)?_0x2cbb06[_0x514e25(0xc6)]:_0x29ae62;return!_0xd0eff5||_0xd0eff5[_0x514e25(0xf9)]?null:{'startOffset':Math[_0x514e25(0xad)](_0xd0eff5['startOffset'],_0xd0eff5['endOffset']),'endOffset':Math[_0x514e25(0x10c)](_0xd0eff5[_0x514e25(0x12d)],_0xd0eff5[_0x514e25(0x95)])};}function pt(_0x6de776,_0x5e581f,_0x574bbe,_0x37cca6){const _0x381cff=_0x7f0bc1;let _0x302c9a=_0x6de776[_0x381cff(0xe2)](_0x4ca349),_0x1f167a=_0x574bbe[_0x381cff(0x11a)]('=')?_0x574bbe['slice'](0x1):_0x574bbe,_0x81af8d=_0x302c9a['sequenceNodesBuilder'](_0x1f167a);if(!_0x81af8d)return null;let _0x304e3b=_0x6de776[_0x381cff(0xe2)](_0x51910a),_0x2e42f1=_0xac2ecd({'qualifiers':_0x5318cc(_0x81af8d),'explicitReferences':_0x37cca6??[],'resolveBinding':_0x5c3ce7=>_0x304e3b['resolveBinding'](_0x5e581f,_0x5c3ce7)});return _0x2e42f1[_0x381cff(0x159)]===_0x381cff(0x8d)?_0x2e42f1[_0x381cff(0xcf)]:null;}function mt(_0x557ca,_0x1bc5e7,_0x57561d){const _0x5bbf30=_0x7f0bc1;var _0x158697;let _0xa36261=_0xd6a571(0x6);for(;_0x557ca!=null&&(_0x158697=_0x557ca[_0x5bbf30(0x165)])!=null&&_0x158697[_0x5bbf30(0x13c)](_0x46497c=>_0x46497c['rangeId']===_0xa36261)||_0x1bc5e7[_0x5bbf30(0x15b)](_0x57561d,_0xa36261);)_0xa36261=_0xd6a571(0x6);return _0xa36261;}function ht(_0x479e07){try{return Re(_0x479e07);}catch(_0x2c56d5){if(_0x2c56d5 instanceof C)return null;throw _0x2c56d5;}}function gt(_0x574c54){const _0x4678a4=_0x7f0bc1;let _0x4c2a85=_0x574c54[_0x4678a4(0x163)]&&_0x574c54[_0x4678a4(0xb6)]?vt(_0x574c54['document'],_0x574c54[_0x4678a4(0x151)],_0x574c54['previousDocumentData'],_0x574c54[_0x4678a4(0xb6)],_0x574c54[_0x4678a4(0x86)],_0x574c54[_0x4678a4(0x9c)]):null;return _0x574c54[_0x4678a4(0x163)]&&_0x574c54['nextDocumentData']&&!_0x4c2a85?null:{'documentRedo':_0x4c2a85,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x574c54[_0x4678a4(0x151)],'resource':_0x574c54[_0x4678a4(0xf3)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x574c54['unitId'],'resource':_0x574c54[_0x4678a4(0x7b)]}}};}function _t(_0x129b86,_0x3c4056,_0x570e39,_0x4df40b){const _0x4231f9=_0x7f0bc1;_0x4df40b[_0x4231f9(0x100)]({'id':_0x129b86[_0x4231f9(0x9c)]+':'+_0x129b86[_0x4231f9(0xb2)],'unitID':_0x129b86[_0x4231f9(0x151)],'redoMutations':[..._0x129b86[_0x4231f9(0xa7)][_0x4231f9(0xb1)]?[_0x129b86['externalMutations'][_0x4231f9(0xb1)]]:[],..._0x3c4056[_0x4231f9(0xc8)]?[_0x3c4056[_0x4231f9(0xc8)]]:[],_0x3c4056[_0x4231f9(0x71)]],'undoMutations':[_0x3c4056[_0x4231f9(0x131)],..._0x570e39?[_0x570e39]:[],..._0x129b86[_0x4231f9(0xa7)][_0x4231f9(0x118)]?[_0x129b86[_0x4231f9(0xa7)]['undoMutation']]:[]]});}function J(_0x3628d3){const _0x2b2134=_0x7f0bc1;let _0x321cb0=_0x3628d3[_0x2b2134(0x124)][_0x2b2134(0xe2)](_0xd73d20),_0x517f95=_0x3628d3[_0x2b2134(0x124)][_0x2b2134(0xe2)](_0x2ca603),_0x2689d6=_0x3628d3[_0x2b2134(0x124)]['get'](_0x4116cb),_0x129ab8=gt(_0x3628d3);if(!_0x129ab8)return!0x1;let _0x3e7a4d=!0x1,_0x136408=null,_0x309ae5=!0x1;try{if(_0x3628d3[_0x2b2134(0xa7)][_0x2b2134(0xb1)]){if(!_0x321cb0[_0x2b2134(0x117)](_0x3628d3[_0x2b2134(0xa7)][_0x2b2134(0xb1)]['id'],_0x3628d3[_0x2b2134(0xa7)]['redoMutation']['params']))return!0x1;_0x3e7a4d=!0x0;}if(_0x129ab8[_0x2b2134(0xc8)]){let _0x10a141=_0x321cb0[_0x2b2134(0x117)](_0x129ab8[_0x2b2134(0xc8)]['id'],_0x129ab8[_0x2b2134(0xc8)]['params']);if(!_0x10a141)return bt(_0x321cb0,_0x3628d3['externalMutations'],_0x3e7a4d),!0x1;_0x136408={'id':_0x58c17d['id'],'params':{..._0x10a141,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x321cb0[_0x2b2134(0x117)](_0x129ab8[_0x2b2134(0x71)]['id'],_0x129ab8[_0x2b2134(0x71)][_0x2b2134(0xf2)]))return yt(_0x321cb0,_0x136408),bt(_0x321cb0,_0x3628d3[_0x2b2134(0xa7)],_0x3e7a4d),!0x1;_0x309ae5=!0x0,_t(_0x3628d3,_0x129ab8,_0x136408,_0x517f95);}catch(_0x4bf368){throw _0x309ae5&&_0x321cb0[_0x2b2134(0x117)](_0x129ab8[_0x2b2134(0x131)]['id'],_0x129ab8[_0x2b2134(0x131)][_0x2b2134(0xf2)]),yt(_0x321cb0,_0x136408),bt(_0x321cb0,_0x3628d3[_0x2b2134(0xa7)],_0x3e7a4d),_0x4bf368;}return _0x2689d6[_0x2b2134(0xa2)]([{'startOffset':_0x3628d3[_0x2b2134(0x86)],'endOffset':_0x3628d3['cursorOffset'],'segmentId':''}],{'unitId':_0x3628d3['unitId'],'subUnitId':_0x3628d3[_0x2b2134(0x151)]},!0x1,{[_0x2ffd38]:!0x0}),!0x0;}function vt(_0x42a129,_0x8bb145,_0x42c4d1,_0x4da8b4,_0x88bfdc,_0x5d36f5){let _0x4d62c8=xt(_0x42c4d1,_0x4da8b4,_0x2897bb(_0x42a129,''));return _0x4d62c8?{'id':_0x58c17d['id'],'params':{'unitId':_0x8bb145,'actions':_0x4d62c8,'segmentId':'','textRanges':[{'startOffset':_0x88bfdc,'endOffset':_0x88bfdc,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x5d36f5}}:null;}function yt(_0x4c6768,_0x592c2b){const _0x69e425=_0x7f0bc1;_0x592c2b&&_0x4c6768[_0x69e425(0x117)](_0x592c2b['id'],_0x592c2b[_0x69e425(0xf2)]);}function bt(_0x44bcf6,_0x19af0d,_0x1eb31c){const _0x11ced4=_0x7f0bc1;_0x1eb31c&&_0x19af0d[_0x11ced4(0x118)]&&_0x44bcf6[_0x11ced4(0x117)](_0x19af0d[_0x11ced4(0x118)]['id'],_0x19af0d['undoMutation'][_0x11ced4(0xf2)]);}function xt(_0x186649,_0x355cbc,_0x451d7e){const _0x112a62=_0x7f0bc1;let _0x26fb48=_0x186649[_0x112a62(0xe4)],_0x2fa9b1=_0x355cbc['body'],_0x2038fe=St(_0x26fb48==null?void 0x0:_0x26fb48[_0x112a62(0x168)],_0x2fa9b1==null?void 0x0:_0x2fa9b1[_0x112a62(0x168)]);if(!_0x2038fe||!_0x2fa9b1)return null;let _0xfff8e6=new _0x2c67b6();return _0xfff8e6[_0x112a62(0xc3)](_0x2038fe[_0x112a62(0x91)]),_0x2038fe[_0x112a62(0x15e)]>0x0&&_0xfff8e6['insert'](_0x2038fe[_0x112a62(0x15e)],_0x3ef48e(_0x2fa9b1,_0x2038fe[_0x112a62(0x91)],_0x2038fe[_0x112a62(0x91)]+_0x2038fe[_0x112a62(0x15e)],!0x1)),_0x2038fe['deleteLength']>0x0&&_0xfff8e6[_0x112a62(0x110)](_0x2038fe[_0x112a62(0xa1)]),_0x5ab429[_0x112a62(0xff)]()[_0x112a62(0x15d)](_0xfff8e6[_0x112a62(0x13d)](),_0x451d7e);}function St(_0x1b0da6,_0x5cd204){const _0x249cd0=_0x7f0bc1;if(_0x1b0da6==null||_0x5cd204==null||_0x1b0da6===_0x5cd204)return null;let _0x161be2=0x0;for(;_0x161be2<_0x1b0da6[_0x249cd0(0xef)]&&_0x161be2<_0x5cd204['length']&&_0x1b0da6[_0x161be2]===_0x5cd204[_0x161be2];)_0x161be2+=0x1;let _0x297b38=_0x1b0da6[_0x249cd0(0xef)],_0x2dc26c=_0x5cd204[_0x249cd0(0xef)];for(;_0x297b38>_0x161be2&&_0x2dc26c>_0x161be2&&_0x1b0da6[_0x297b38-0x1]===_0x5cd204[_0x2dc26c-0x1];)--_0x297b38,--_0x2dc26c;return{'start':_0x161be2,'deleteLength':_0x297b38-_0x161be2,'insertLength':_0x2dc26c-_0x161be2};}function Ct(_0x2c0c85){const _0x52fcae=_0x7f0bc1;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x52fcae(0x132)](_0x2c0c85[_0x52fcae(0x8b)])[_0x52fcae(0x74)](([_0x555048,_0x517d3c])=>[_0x555048,{..._0x517d3c,..._0x517d3c[_0x52fcae(0xed)]?{'numberFormat':{..._0x517d3c[_0x52fcae(0xed)]}}:null,..._0x517d3c[_0x52fcae(0x123)]?{'lastValue':{..._0x517d3c[_0x52fcae(0x123)]}}:null}]))};}let Y=class extends _0x4b51e6{constructor(_0x125d70,_0x3bcb82,_0x12d08b,_0x160d08){const _0x545969=_0x7f0bc1;super(),this[_0x545969(0x15f)]=_0x125d70,this[_0x545969(0x80)]=_0x3bcb82,this[_0x545969(0xd5)]=_0x12d08b,this[_0x545969(0x11c)]=_0x160d08,N(this,_0x545969(0x103),new Set()),N(this,_0x545969(0xa9),!0x1),N(this,'_isDisposed',!0x1),this['_instanceService']['getAllUnitsForType'](_0x40e918[_0x545969(0x142)])[_0x545969(0xb3)](_0x40d78c=>this[_0x545969(0x11c)][_0x545969(0x128)](_0x40d78c)),this[_0x545969(0x14e)](this['_model'][_0x545969(0xe8)][_0x545969(0xb7)](({unitId:_0x3768e8})=>this[_0x545969(0xd6)](_0x3768e8))),this['disposeWithMe'](this[_0x545969(0x15f)][_0x545969(0xc2)][_0x545969(0xb7)](({unit:_0x3fda88})=>{const _0x3b20a0=_0x545969;_0x3fda88[_0x3b20a0(0x12e)]===_0x40e918['UNIVER_DOC']&&this[_0x3b20a0(0x75)](_0x3fda88[_0x3b20a0(0xf1)]());})),this[_0x545969(0x14e)](this[_0x545969(0x15f)]['unitDisposed$'][_0x545969(0xb7)](_0x141edf=>{const _0xefe87d=_0x545969;this[_0xefe87d(0x11c)]['unregisterUnit'](_0x141edf[_0xefe87d(0xf1)]());})),this['disposeWithMe'](this[_0x545969(0x80)]['onCommandExecuted'](_0x4f0e85=>{const _0x21d9e4=_0x545969;if(_0x4f0e85['id']===_0x58c17d['id']&&wt(_0x4f0e85[_0x21d9e4(0xf2)])){let _0x423976=_0x4f0e85[_0x21d9e4(0xf2)];_0x423976[_0x21d9e4(0xf9)]||this[_0x21d9e4(0xd6)](_0x423976[_0x21d9e4(0x151)]);}}));}[_0x7f0bc1(0x84)](){const _0x3d690a=_0x7f0bc1;this[_0x3d690a(0x9a)]=!0x0,super[_0x3d690a(0x84)]();}[_0x7f0bc1(0x75)](_0x4ba8b0){const _0x1adfdf=_0x7f0bc1;this[_0x1adfdf(0x103)][_0x1adfdf(0xd7)](_0x4ba8b0),!this['_syncScheduled']&&(this[_0x1adfdf(0xa9)]=!0x0,queueMicrotask(()=>{const _0x46f0ba=_0x1adfdf;if(this['_syncScheduled']=!0x1,this[_0x46f0ba(0x9a)])return;let _0x2420a0=Array['from'](this[_0x46f0ba(0x103)]);this[_0x46f0ba(0x103)]['clear'](),_0x2420a0[_0x46f0ba(0xb3)](_0x2e0441=>this['_syncUnit'](_0x2e0441));}));}[_0x7f0bc1(0xd6)](_0x417826){const _0x1d40cf=_0x7f0bc1;let _0x54a8c1=this[_0x1d40cf(0x15f)][_0x1d40cf(0x112)](_0x417826,_0x40e918['UNIVER_DOC']);_0x54a8c1&&this[_0x1d40cf(0x11c)][_0x1d40cf(0x128)](_0x54a8c1);}};Y=I([F(0x0,_0x2a2450),F(0x1,_0xd73d20),F(0x2,_0xe3bd44(P)),F(0x3,_0xe3bd44(L))],Y);function wt(_0x261a50){const _0x1a1432=_0x7f0bc1;return typeof _0x261a50==_0x1a1432(0xf6)&&!!_0x261a50&&_0x1a1432(0x151)in _0x261a50&&typeof _0x261a50[_0x1a1432(0x151)]==_0x1a1432(0x94)&&(!(_0x1a1432(0xf9)in _0x261a50)||_0x261a50['segmentId']===void 0x0||typeof _0x261a50[_0x1a1432(0xf9)]==_0x1a1432(0x94));}let X=class extends _0x4b51e6{constructor(_0x5bba7e,_0x3b3d11){const _0x2ad431=_0x7f0bc1;super(),this[_0x2ad431(0x12b)]=_0x5bba7e,this[_0x2ad431(0xd9)]=_0x3b3d11,this[_0x2ad431(0x14e)](this['_resourceManagerService'][_0x2ad431(0x14d)]({'pluginName':y,'businesses':[_0x40e918[_0x2ad431(0x142)]],'toJson':_0x27d412=>JSON[_0x2ad431(0xb4)](this['_docFormulaModel'][_0x2ad431(0x13d)](_0x27d412)),'parseJson':_0x2d628d=>JSON['parse'](_0x2d628d),'onLoad':(_0x20b361,_0x59c7a2)=>{const _0x21e570=_0x2ad431;this[_0x21e570(0xd9)][_0x21e570(0x7c)](_0x20b361,_0x59c7a2);},'onUnLoad':_0x2d093c=>this[_0x2ad431(0xd9)][_0x2ad431(0xf8)](_0x2d093c)}));}};X=I([F(0x0,_0x53555b),F(0x1,_0xe3bd44(P))],X);var Tt='@univerjs-pro/docs-formula',Et=_0x7f0bc1(0xfe);const Dt={};let Z=class extends _0x4b51e6{constructor(_0x48bd43,_0x2c22ca,_0x593edc){const _0x545fa2=_0x7f0bc1;super(),this[_0x545fa2(0x11b)]=_0x48bd43,this[_0x545fa2(0xdf)]=_0x2c22ca,this['disposeWithMe'](_0x593edc[_0x545fa2(0xb9)]({'resolve':(_0x1be3c0,_0x22c041)=>{const _0x1a8b6c=_0x545fa2;var _0x19f16d;return((_0x19f16d=_0x22c041[_0x1a8b6c(0x165)])==null?void 0x0:_0x19f16d[_0x1a8b6c(0x10d)](w)[_0x1a8b6c(0x74)](_0x1c70c3=>({'startOffset':_0x1c70c3[_0x1a8b6c(0x162)],'endOffset':_0x1c70c3[_0x1a8b6c(0xd4)]+0x1,'text':this[_0x1a8b6c(0x8f)](_0x1be3c0,_0x1c70c3[_0x1a8b6c(0xb2)])})))??[];}})),this['disposeWithMe'](this['_formulaService'][_0x545fa2(0xbf)][_0x545fa2(0xb7)](({unitId:_0x2d0e51})=>{const _0x2ece29=_0x545fa2;_0x593edc[_0x2ece29(0x70)](_0x2d0e51);}));}['resolveFormula'](_0x199e37,_0x291276){const _0x5e57fc=_0x7f0bc1;var _0x4bbe7d;return((_0x4bbe7d=this[_0x5e57fc(0xdf)]['getResult']({'unitId':_0x199e37,'rangeId':_0x291276}))==null?void 0x0:_0x4bbe7d[_0x5e57fc(0x129)])??'';}[_0x7f0bc1(0x11f)](_0x2be138,_0x246791,_0x2923fa){const _0x4232b0=_0x7f0bc1;var _0x21c5a5;let _0x570586=this['_univerInstanceService'][_0x4232b0(0x112)](_0x2be138,_0x40e918[_0x4232b0(0x142)]),_0xea62f6=_0x570586==null?void 0x0:_0x570586[_0x4232b0(0xfc)]();if(!_0xea62f6)return'';let _0x43330e=_0xea62f6[_0x4232b0(0x168)]['slice'](_0x246791,_0x2923fa),_0x50997e=((_0x21c5a5=_0xea62f6['customRanges'])==null?void 0x0:_0x21c5a5[_0x4232b0(0x10d)](_0x425ef0=>w(_0x425ef0)&&_0x425ef0[_0x4232b0(0x162)]>=_0x246791&&_0x425ef0[_0x4232b0(0xd4)]<_0x2923fa)[_0x4232b0(0xe1)]((_0x111188,_0x43acf3)=>_0x43acf3[_0x4232b0(0x162)]-_0x111188['startIndex']))??[];for(let _0x1ae1de of _0x50997e){let _0x44b6d4=_0x1ae1de['startIndex']-_0x246791,_0x40d2f2=_0x1ae1de['endIndex']-_0x246791+0x1;_0x43330e=''+_0x43330e['slice'](0x0,_0x44b6d4)+this[_0x4232b0(0x8f)](_0x2be138,_0x1ae1de[_0x4232b0(0xb2)])+_0x43330e['slice'](_0x40d2f2);}return _0x43330e;}['degradeDocumentData'](_0x274bb4){return Ot(_0x274bb4);}[_0x7f0bc1(0xa0)](_0x21b5b6,_0x27eb3b,_0x47a785={}){const _0x30b330=_0x7f0bc1;var _0x5f28b5;return Ve({'id':_0x21b5b6,'body':_0x27eb3b,'documentStyle':{}},(((_0x5f28b5=_0x27eb3b[_0x30b330(0x165)])==null?void 0x0:_0x5f28b5[_0x30b330(0x10d)](w))??[])[_0x30b330(0x74)](_0x339062=>({'rangeId':_0x339062['rangeId'],'text':_0x47a785[_0x339062[_0x30b330(0xb2)]]??this[_0x30b330(0x8f)](_0x21b5b6,_0x339062['rangeId'])})))[_0x30b330(0xe4)]??{'dataStream':''};}};Z=I([F(0x0,_0x2a2450),F(0x1,_0xe3bd44(L)),F(0x2,_0xe3bd44(_0x1bbb7a))],Z);function Ot(_0x45a12f){const _0x1ff11e=_0x7f0bc1;var _0x468dd1,_0x100eef;let _0x1a09d8=kt(_0x45a12f),_0x4ad6ed=Ve(_0x45a12f,(((_0x468dd1=_0x45a12f[_0x1ff11e(0xe4)])==null||(_0x468dd1=_0x468dd1['customRanges'])==null?void 0x0:_0x468dd1[_0x1ff11e(0x10d)](w))??[])[_0x1ff11e(0x74)](_0xaa9aad=>({'rangeId':_0xaa9aad['rangeId'],'text':At(_0x1a09d8==null?void 0x0:_0x1a09d8[_0x1ff11e(0x8b)][_0xaa9aad[_0x1ff11e(0xb2)]])})));return _0x4ad6ed['resources']=(_0x100eef=_0x4ad6ed[_0x1ff11e(0xa3)])==null?void 0x0:_0x100eef[_0x1ff11e(0x10d)](_0x408e75=>_0x408e75[_0x1ff11e(0x78)]!==y),_0x4ad6ed;}function kt(_0x400bf7){const _0x581540=_0x7f0bc1;var _0x4f40c6;let _0x46d287=(_0x4f40c6=_0x400bf7[_0x581540(0xa3)])==null||(_0x4f40c6=_0x4f40c6[_0x581540(0x13f)](_0x1d77e1=>_0x1d77e1[_0x581540(0x78)]===_0x581540(0x104)))==null?void 0x0:_0x4f40c6[_0x581540(0x14f)];if(_0x46d287)try{let _0x1abc4c=JSON[_0x581540(0x167)](_0x46d287);return x(_0x1abc4c)?_0x1abc4c:void 0x0;}catch{return;}}function At(_0x44e2ab){const _0xc8e2a1=_0x7f0bc1;return _0x44e2ab?_0x59a28f({'lastValue':_0x44e2ab[_0xc8e2a1(0x123)],'numberFormat':_0x44e2ab[_0xc8e2a1(0xed)]})[_0xc8e2a1(0x129)]:'';}let Q=class extends _0x4b51e6{constructor(_0x2e88ba,_0x1badf0,_0x503e37){const _0x19f92c=_0x7f0bc1;super(),this[_0x19f92c(0xdf)]=_0x2e88ba,this[_0x19f92c(0x133)]=_0x1badf0,this[_0x19f92c(0x14e)](_0x503e37['registerProvider'](this));}['collectMutations'](_0x4d0e3a){const _0x3b21e7=_0x7f0bc1;let _0x599c0c=new Map();for(let _0x57b42e of this['_formulaService'][_0x3b21e7(0x154)]()){var _0x1a7892;if(!this['_cacheEligibilityService'][_0x3b21e7(0xd8)](_0x57b42e['config']['formula'],_0x57b42e[_0x3b21e7(0x149)])[_0x3b21e7(0x153)])continue;let _0x591673=_0x287105(_0x57b42e[_0x3b21e7(0x149)]),_0x19456b=_0x591673?_0x2db890(_0x591673):null;if(!_0x19456b||jt(_0x57b42e[_0x3b21e7(0x111)][_0x3b21e7(0x123)],_0x19456b))continue;let _0x158db3=_0x599c0c[_0x3b21e7(0xe2)](_0x57b42e[_0x3b21e7(0x130)][_0x3b21e7(0x151)])??[];_0x158db3[_0x3b21e7(0xbc)]({'rangeId':_0x57b42e[_0x3b21e7(0x130)][_0x3b21e7(0xb2)],'expectedFormula':_0x57b42e[_0x3b21e7(0x111)]['formula'],'expectedNumberFormat':(_0x1a7892=_0x57b42e[_0x3b21e7(0x111)][_0x3b21e7(0xed)])==null?void 0x0:_0x1a7892[_0x3b21e7(0x113)],'expectedReferenceRevision':_0x57b42e[_0x3b21e7(0xac)],'lastValue':_0x19456b}),_0x599c0c['set'](_0x57b42e[_0x3b21e7(0x130)]['unitId'],_0x158db3);}return Array['from'](_0x599c0c,([_0x49a193,_0x551c2f])=>({'id':H['id'],'params':{'unitId':_0x49a193,'updates':_0x551c2f}}));}};Q=I([F(0x0,_0xe3bd44(L)),F(0x1,_0xe3bd44(_0x275916)),F(0x2,_0xe3bd44(_0x38d14f))],Q);function jt(_0xf0402,_0x3234a9){const _0x7b4314=_0x7f0bc1;return(_0xf0402==null?void 0x0:_0xf0402['v'])===_0x3234a9['v']&&(_0xf0402==null?void 0x0:_0xf0402['t'])===_0x3234a9['t']&&(_0xf0402==null?void 0x0:_0xf0402['pattern'])===_0x3234a9[_0x7b4314(0x113)];}let $=class extends _0x77926d{constructor(_0x570d11=Dt,_0x4b05e6,_0x2ba395,_0x4fd3f3){const _0x232388=_0x7f0bc1;super(),this[_0x232388(0x14a)]=_0x570d11,this[_0x232388(0x109)]=_0x4b05e6,this[_0x232388(0x80)]=_0x2ba395,this[_0x232388(0x146)]=_0x4fd3f3;let {..._0x51bef}=_0x583fa0({},Dt,this[_0x232388(0x14a)]);this[_0x232388(0x146)]['setConfig'](_0x232388(0x158),_0x51bef);}['onStarting'](){const _0x16cb7d=_0x7f0bc1;this[_0x16cb7d(0x109)]['add']([P]),this[_0x16cb7d(0x109)][_0x16cb7d(0xd7)]([L]),this['_injector']['add']([X]),this[_0x16cb7d(0x109)][_0x16cb7d(0xd7)]([Y]),this[_0x16cb7d(0x109)][_0x16cb7d(0xd7)]([Q]),this[_0x16cb7d(0x109)][_0x16cb7d(0xd7)]([Z]),_0x466c54(this[_0x16cb7d(0x109)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt]['forEach'](_0xadc361=>this[_0x16cb7d(0x14e)](this['_commandService'][_0x16cb7d(0xe6)](_0xadc361)));}};N($,_0x7f0bc1(0x12c),y),N($,_0x7f0bc1(0xda),Tt),N($,_0x7f0bc1(0xc9),Et),N($,'type',_0x40e918[_0x7f0bc1(0x142)]),$=I([_0x52586e(_0x5cb1a8,_0x401a27,_0x57273b),F(0x1,_0xe3bd44(_0x208bd4)),F(0x2,_0xd73d20),F(0x3,_0xa6f89c)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x4e28be=_0x4d49;(function(_0xfe661f,_0x42b94b){var _0x20428d=_0x4d49,_0x8b30d1=_0xfe661f();while(!![]){try{var _0x7dfc5c=-parseInt(_0x20428d(0xbf))/0x1*(parseInt(_0x20428d(0xc9))/0x2)+parseInt(_0x20428d(0xdd))/0x3+-parseInt(_0x20428d(0xd0))/0x4+-parseInt(_0x20428d(0xda))/0x5*(-parseInt(_0x20428d(0xb6))/0x6)+parseInt(_0x20428d(0xd6))/0x7*(parseInt(_0x20428d(0xa4))/0x8)+-parseInt(_0x20428d(0xa0))/0x9*(-parseInt(_0x20428d(0xe5))/0xa)+-parseInt(_0x20428d(0xac))/0xb;if(_0x7dfc5c===_0x42b94b)break;else _0x8b30d1['push'](_0x8b30d1['shift']());}catch(_0x5db816){_0x8b30d1['push'](_0x8b30d1['shift']());}}}(_0x3963,0x8064b));function _0x3963(){var _0x115ccb=['getOwnPropertyDescriptor','endOffset','_createFormula','9725320cFLeMc','formula','getFormulas','_getCustomRange','_document','_injector','function','defineProperty','_rangeId','getConfig','6LZXilN','getFormulaAt','update','find','saveUnit','extend','describe','startIndex','range','562967UqTvbc','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_docsFormulaResourceLoaderService','getSnapshot','_commandService','prototype','_univerInstanceService','_unitId','insertFormula','_service','2FCkmuu','_insert','customRanges','numberFormat','map','syncExecuteCommand','iterator','1378892TlXyBt','rangeId','_getCompleteRanges','getRange','get','convertToText','291277xytsSG','decorate','getResult','_initialize','2549005IKycKp','string','remove','1722618NIBtjq','_docsFormulaCommandService','toPrimitive','getId','replaceWithFormula','filter','default','startOffset','1627870snBkpd','getFormula','_docsFormulaDisplayTextService','end','externalReferences','_docsFormulaModel','getUnit','paragraph','saveFormulaDisplayTextSnapshot','36lCrfbP','symbol','endIndex','_model','112StECWJ','object','getBody','length','UNIVER_DOC'];_0x3963=function(){return _0x115ccb;};return _0x3963();}import{ConvertDocFormulaToTextCommand as _0x22f059,DocFormulaDisplayTextService as _0x5dac4d,DocFormulaModel as _0x3c45d1,DocFormulaService as _0x443123,InsertDocFormulaCommand as _0xd93c8a,RemoveDocFormulaCommand as _0x2463be,ReplaceDocFormulaWithTextCommand as _0x56d891,SetDocFormulaNumberFormatCommand as _0x2555df,UpdateDocFormulaCommand as _0x159a2b,isDocFormulaRange as _0x291b33}from'@univerjs-pro/docs-formula';import{ICommandService as _0x3b22a1,IResourceLoaderService as _0x7784c8,IUniverInstanceService as _0x219ab7,Inject as _0x20f2aa,UniverInstanceType as _0x81e326}from'@univerjs/core';import{FDocument as _0x3a0dba,FDocumentParagraph as _0x277b0f,FDocumentTextRange as _0x3239ce}from'@univerjs/docs/facade';function v(_0x280af4,_0x1a2190){return function(_0x13bb37,_0x4e4987){_0x1a2190(_0x13bb37,_0x4e4987,_0x280af4);};}function y(_0x414fd2,_0x595af4,_0x322e29,_0x25610b){var _0x1ffbff=_0x4d49,_0x1709d8=arguments[_0x1ffbff(0xa7)],_0x5cc7f8=_0x1709d8<0x3?_0x595af4:_0x25610b===null?_0x25610b=Object[_0x1ffbff(0xa9)](_0x595af4,_0x322e29):_0x25610b,_0x17f427;if(typeof Reflect==_0x1ffbff(0xa5)&&typeof Reflect['decorate']==_0x1ffbff(0xb2))_0x5cc7f8=Reflect[_0x1ffbff(0xd7)](_0x414fd2,_0x595af4,_0x322e29,_0x25610b);else{for(var _0x38ec96=_0x414fd2[_0x1ffbff(0xa7)]-0x1;_0x38ec96>=0x0;_0x38ec96--)(_0x17f427=_0x414fd2[_0x38ec96])&&(_0x5cc7f8=(_0x1709d8<0x3?_0x17f427(_0x5cc7f8):_0x1709d8>0x3?_0x17f427(_0x595af4,_0x322e29,_0x5cc7f8):_0x17f427(_0x595af4,_0x322e29))||_0x5cc7f8);}return _0x1709d8>0x3&&_0x5cc7f8&&Object[_0x1ffbff(0xb3)](_0x595af4,_0x322e29,_0x5cc7f8),_0x5cc7f8;}function _0x4d49(_0x530cdc,_0x215455){_0x530cdc=_0x530cdc-0x9e;var _0x3963a1=_0x3963();var _0x4d4975=_0x3963a1[_0x530cdc];return _0x4d4975;}let b=class{constructor(_0x1515cd,_0x375851,_0x194dc0,_0x42cb12,_0x5062f4,_0x526fec){var _0x3501d3=_0x4d49;this['_unitId']=_0x1515cd,this[_0x3501d3(0xb4)]=_0x375851,this[_0x3501d3(0xc3)]=_0x194dc0,this[_0x3501d3(0xa3)]=_0x42cb12,this[_0x3501d3(0xc8)]=_0x5062f4,this[_0x3501d3(0xc5)]=_0x526fec;}[_0x4e28be(0xe0)](){var _0x40c903=_0x4e28be;return this[_0x40c903(0xb4)];}[_0x4e28be(0xd3)](){var _0x45416d=_0x4e28be;let _0x10d2f4=this[_0x45416d(0xaf)]();return _0x10d2f4?{'endOffset':_0x10d2f4['endIndex']+0x1,'rangeId':_0x10d2f4[_0x45416d(0xd1)],'startOffset':_0x10d2f4[_0x45416d(0xbd)]}:null;}[_0x4e28be(0xe6)](){var _0x38a396=_0x4e28be,_0x41614c;return((_0x41614c=this[_0x38a396(0xa3)][_0x38a396(0xe6)](this[_0x38a396(0xc6)],this[_0x38a396(0xb4)]))==null?void 0x0:_0x41614c[_0x38a396(0xad)])??'';}[_0x4e28be(0xb5)](){var _0x221806=_0x4e28be;return this[_0x221806(0xa3)][_0x221806(0xe6)](this[_0x221806(0xc6)],this[_0x221806(0xb4)])??null;}[_0x4e28be(0xd8)](){var _0x1e7fc7=_0x4e28be;return this['_service'][_0x1e7fc7(0xd8)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}[_0x4e28be(0xbc)](){var _0x53fce4=_0x4e28be;let _0x24a710=this[_0x53fce4(0xd3)](),_0x2e00f8=this[_0x53fce4(0xb5)](),_0x3e6526=this[_0x53fce4(0xd8)]();return!_0x24a710||!_0x2e00f8||!_0x3e6526?null:{..._0x24a710,'config':_0x2e00f8,'formula':_0x2e00f8[_0x53fce4(0xad)],'result':_0x3e6526,'type':_0x53fce4(0xad)};}[_0x4e28be(0xb8)](_0x279bd1){var _0x1efc1f=_0x4e28be;return this[_0x1efc1f(0xc3)][_0x1efc1f(0xce)](_0x159a2b['id'],{'externalReferences':_0x279bd1['externalReferences'],'formula':_0x279bd1[_0x1efc1f(0xad)],'numberFormat':_0x279bd1['numberFormat'],'rangeId':this[_0x1efc1f(0xb4)],'unitId':this[_0x1efc1f(0xc6)]});}['setNumberFormat'](_0x38128f){var _0x806013=_0x4e28be;return this[_0x806013(0xc3)][_0x806013(0xce)](_0x2555df['id'],{'numberFormat':_0x38128f,'rangeId':this['_rangeId'],'unitId':this[_0x806013(0xc6)]});}[_0x4e28be(0xdc)](){var _0x5c1a9d=_0x4e28be;return this[_0x5c1a9d(0xc3)]['syncExecuteCommand'](_0x2463be['id'],{'rangeId':this[_0x5c1a9d(0xb4)],'unitId':this[_0x5c1a9d(0xc6)]});}['replaceWithText'](_0xf50edc){var _0x4986c6=_0x4e28be;return this[_0x4986c6(0xc3)][_0x4986c6(0xce)](_0x56d891['id'],{'rangeId':this[_0x4986c6(0xb4)],'text':_0xf50edc,'unitId':this['_unitId']});}[_0x4e28be(0xd5)](){var _0x3ea5ab=_0x4e28be;return this[_0x3ea5ab(0xc3)][_0x3ea5ab(0xce)](_0x22f059['id'],{'rangeId':this[_0x3ea5ab(0xb4)],'unitId':this[_0x3ea5ab(0xc6)]});}[_0x4e28be(0xaf)](){var _0x19400a=_0x4e28be,_0x2ad9e1;let _0x24bcd1=this['_univerInstanceService'][_0x19400a(0xeb)](this[_0x19400a(0xc6)],_0x81e326[_0x19400a(0xa8)]);return _0x24bcd1==null||(_0x2ad9e1=_0x24bcd1[_0x19400a(0xc2)]()['body'])==null||(_0x2ad9e1=_0x2ad9e1[_0x19400a(0xcb)])==null?void 0x0:_0x2ad9e1[_0x19400a(0xb9)](_0x1c4df9=>_0x1c4df9[_0x19400a(0xd1)]===this[_0x19400a(0xb4)]&&_0x291b33(_0x1c4df9));}};b=y([v(0x2,_0x3b22a1),v(0x3,_0x20f2aa(_0x3c45d1)),v(0x4,_0x20f2aa(_0x443123)),v(0x5,_0x219ab7)],b);function x(_0x379f0e){'@babel/helpers - typeof';var _0x33f81c=_0x4e28be;return x=typeof Symbol==_0x33f81c(0xb2)&&typeof Symbol[_0x33f81c(0xcf)]=='symbol'?function(_0x3c95fe){return typeof _0x3c95fe;}:function(_0x4071fc){var _0xc65f18=_0x33f81c;return _0x4071fc&&typeof Symbol=='function'&&_0x4071fc['constructor']===Symbol&&_0x4071fc!==Symbol[_0xc65f18(0xc4)]?_0xc65f18(0xa1):typeof _0x4071fc;},x(_0x379f0e);}function S(_0x1e951a,_0x1acf72){var _0x1ca689=_0x4e28be;if(x(_0x1e951a)!=_0x1ca689(0xa5)||!_0x1e951a)return _0x1e951a;var _0x478fd1=_0x1e951a[Symbol[_0x1ca689(0xdf)]];if(_0x478fd1!==void 0x0){var _0x51a6c2=_0x478fd1['call'](_0x1e951a,_0x1acf72||_0x1ca689(0xe3));if(x(_0x51a6c2)!='object')return _0x51a6c2;throw TypeError(_0x1ca689(0xc0));}return(_0x1acf72===_0x1ca689(0xdb)?String:Number)(_0x1e951a);}function C(_0x5d1d30){var _0x16c34a=_0x4e28be,_0x1fee72=S(_0x5d1d30,_0x16c34a(0xdb));return x(_0x1fee72)==_0x16c34a(0xa1)?_0x1fee72:_0x1fee72+'';}function w(_0x3cedbe,_0xd2481c,_0x1a6e8c){var _0x44cae5=_0x4e28be;return(_0xd2481c=C(_0xd2481c))in _0x3cedbe?Object[_0x44cae5(0xb3)](_0x3cedbe,_0xd2481c,{'value':_0x1a6e8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3cedbe[_0xd2481c]=_0x1a6e8c,_0x3cedbe;}var T=class extends _0x3a0dba{constructor(..._0x169e0b){var _0x1ab1a7=_0x4e28be;super(..._0x169e0b),w(this,_0x1ab1a7(0xde),void 0x0),w(this,_0x1ab1a7(0xe7),void 0x0),w(this,_0x1ab1a7(0xea),void 0x0),w(this,_0x1ab1a7(0xc1),void 0x0);}[_0x4e28be(0xd9)](_0x205e67){var _0x38e7c8=_0x4e28be;this['_docsFormulaCommandService']=_0x205e67[_0x38e7c8(0xd4)](_0x3b22a1),this[_0x38e7c8(0xe7)]=_0x205e67[_0x38e7c8(0xd4)](_0x5dac4d),this[_0x38e7c8(0xea)]=_0x205e67[_0x38e7c8(0xd4)](_0x3c45d1),this[_0x38e7c8(0xc1)]=_0x205e67[_0x38e7c8(0xd4)](_0x7784c8);}['getFormulas'](){var _0x206cc5=_0x4e28be;return this['_getCompleteRanges']()[_0x206cc5(0xcd)](_0xc0ab62=>this[_0x206cc5(0xab)](_0xc0ab62[_0x206cc5(0xd1)]));}['getFormula'](_0x5bd39d){var _0x453377=_0x4e28be;return this['_getCompleteRanges']()['some'](_0x1d97b5=>_0x1d97b5[_0x453377(0xd1)]===_0x5bd39d)?this[_0x453377(0xab)](_0x5bd39d):null;}[_0x4e28be(0xb7)](_0x8ddba8){var _0x1f0079=_0x4e28be;let _0x44320c=this[_0x1f0079(0xd2)]()['find'](_0x317713=>_0x317713[_0x1f0079(0xbd)]<=_0x8ddba8&&_0x8ddba8<=_0x317713[_0x1f0079(0xa2)]);return _0x44320c?this[_0x1f0079(0xab)](_0x44320c['rangeId']):null;}[_0x4e28be(0x9f)](){var _0x16b60c=_0x4e28be;let _0x2f9b82=this[_0x16b60c(0xc1)][_0x16b60c(0xba)](this['id']);if(!_0x2f9b82)throw Error('Document\x20'+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x16b60c(0xe7)]['degradeDocumentData'](_0x2f9b82);}[_0x4e28be(0xc7)](_0x273448){var _0x801168=_0x4e28be;return this['_insert']({'externalReferences':_0x273448[_0x801168(0xe9)],'formula':_0x273448['formula'],'numberFormat':_0x273448[_0x801168(0xcc)],'target':{'type':_0x801168(0xbe),'startOffset':_0x273448[_0x801168(0xe4)],'endOffset':_0x273448[_0x801168(0xaa)]},'unitId':this[_0x801168(0xe0)]()});}[_0x4e28be(0xca)](_0x14090a){var _0xf0aa83=_0x4e28be;let _0x3a47b8=this[_0xf0aa83(0xde)][_0xf0aa83(0xce)](_0xd93c8a['id'],_0x14090a);return _0x3a47b8?this[_0xf0aa83(0xab)](_0x3a47b8['rangeId']):null;}[_0x4e28be(0xd2)](){var _0x283512=_0x4e28be,_0x2e7a94;let _0x4cfd4f=this[_0x283512(0xea)][_0x283512(0xae)](this[_0x283512(0xe0)]());return((_0x2e7a94=this[_0x283512(0xa6)]('')[_0x283512(0xcb)])==null?void 0x0:_0x2e7a94[_0x283512(0xe2)](_0x936feb=>_0x291b33(_0x936feb)&&_0x4cfd4f[_0x936feb[_0x283512(0xd1)]]!=null))??[];}[_0x4e28be(0xab)](_0x475325){var _0x427ebd=_0x4e28be;return this['_injector']['createInstance'](b,this[_0x427ebd(0xe0)](),_0x475325);}};_0x3a0dba[_0x4e28be(0xbb)](T);var E=class extends _0x277b0f{constructor(..._0x2135e7){var _0x2190ed=_0x4e28be;super(..._0x2135e7),w(this,_0x2190ed(0xde),void 0x0);}[_0x4e28be(0xd9)](_0x3f10c5){var _0x427e9b=_0x4e28be;this['_docsFormulaCommandService']=_0x3f10c5[_0x427e9b(0xd4)](_0x3b22a1);}[_0x4e28be(0xc7)](_0x595ebf,_0x16a2b8,_0x2a0060={}){var _0x17d198=_0x4e28be;return this[_0x17d198(0xca)](_0x595ebf,_0x16a2b8,_0x2a0060);}['appendFormula'](_0x55999f,_0xeced5={}){var _0x355b97=_0x4e28be;return this[_0x355b97(0xca)](_0x355b97(0xe8),_0x55999f,_0xeced5);}['_insert'](_0x37af3a,_0x174e1f,_0x89d0d1){var _0x44232e=_0x4e28be;if(this['getSegmentId']())return null;let _0x4095fd={'externalReferences':_0x89d0d1[_0x44232e(0xe9)],'formula':_0x174e1f,'numberFormat':_0x89d0d1['numberFormat'],'target':{'type':_0x44232e(0x9e),'paragraphId':this['getId'](),'position':_0x37af3a},'unitId':this[_0x44232e(0xb0)][_0x44232e(0xe0)]()},_0x4e7a15=this[_0x44232e(0xde)][_0x44232e(0xce)](_0xd93c8a['id'],_0x4095fd);return _0x4e7a15?this[_0x44232e(0xb1)]['createInstance'](b,this[_0x44232e(0xb0)]['getId'](),_0x4e7a15[_0x44232e(0xd1)]):null;}};_0x277b0f[_0x4e28be(0xbb)](E);var D=class extends _0x3239ce{constructor(..._0x4fa4e1){var _0x348eb2=_0x4e28be;super(..._0x4fa4e1),w(this,_0x348eb2(0xde),void 0x0);}['_initialize'](_0x5d0c7d){var _0x256d73=_0x4e28be;this[_0x256d73(0xde)]=_0x5d0c7d[_0x256d73(0xd4)](_0x3b22a1);}[_0x4e28be(0xe1)](_0x488718,_0x158d30={}){var _0x333fa8=_0x4e28be;let {endOffset:_0x42d808,segmentId:_0x36c68,startOffset:_0x2d4fac}=this[_0x333fa8(0xd3)]();return _0x36c68?null:this['_insert'](_0x2d4fac,_0x42d808,_0x488718,_0x158d30);}[_0x4e28be(0xca)](_0x2e3419,_0x39496e,_0x2fb01a,_0x470988){var _0x504ca5=_0x4e28be;let _0x34bade={'externalReferences':_0x470988[_0x504ca5(0xe9)],'formula':_0x2fb01a,'numberFormat':_0x470988[_0x504ca5(0xcc)],'target':{'type':_0x504ca5(0xbe),'startOffset':_0x2e3419,'endOffset':_0x39496e},'unitId':this[_0x504ca5(0xb0)][_0x504ca5(0xe0)]()},_0x56e6fc=this[_0x504ca5(0xde)][_0x504ca5(0xce)](_0xd93c8a['id'],_0x34bade);return _0x56e6fc?this[_0x504ca5(0xb1)]['createInstance'](b,this[_0x504ca5(0xb0)][_0x504ca5(0xe0)](),_0x56e6fc[_0x504ca5(0xd1)]):null;}};_0x3239ce[_0x4e28be(0xbb)](D);export{b as FDocumentFormula};
1
+ var _0x471128=_0x6d80;(function(_0x1fe543,_0x59aa4f){var _0x55ebb2=_0x6d80,_0x124cc9=_0x1fe543();while(!![]){try{var _0x19d47d=-parseInt(_0x55ebb2(0x162))/0x1*(-parseInt(_0x55ebb2(0x15f))/0x2)+-parseInt(_0x55ebb2(0x178))/0x3*(-parseInt(_0x55ebb2(0x157))/0x4)+parseInt(_0x55ebb2(0x17f))/0x5+parseInt(_0x55ebb2(0x189))/0x6*(-parseInt(_0x55ebb2(0x18e))/0x7)+-parseInt(_0x55ebb2(0x152))/0x8+parseInt(_0x55ebb2(0x167))/0x9+-parseInt(_0x55ebb2(0x16a))/0xa*(-parseInt(_0x55ebb2(0x175))/0xb);if(_0x19d47d===_0x59aa4f)break;else _0x124cc9['push'](_0x124cc9['shift']());}catch(_0x4d8ba8){_0x124cc9['push'](_0x124cc9['shift']());}}}(_0x35f2,0x4a9be));function _0x6d80(_0x36511b,_0xf7c9ee){_0x36511b=_0x36511b-0x152;var _0x35f2f7=_0x35f2();var _0x6d8052=_0x35f2f7[_0x36511b];return _0x6d8052;}import{ConvertDocFormulaToTextCommand as _0x513130,DocFormulaDisplayTextService as _0x40741f,DocFormulaModel as _0x42a164,DocFormulaService as _0x20fdc3,InsertDocFormulaCommand as _0x2b41ae,RemoveDocFormulaCommand as _0x25ec41,ReplaceDocFormulaWithTextCommand as _0x3c127d,SetDocFormulaNumberFormatCommand as _0x34b648,UpdateDocFormulaCommand as _0x225f0b,isDocFormulaRange as _0xfbb521}from'@univerjs-pro/docs-formula';import{ICommandService as _0xd522ab,IResourceLoaderService as _0x5d6c9f,IUniverInstanceService as _0x34ab41,Inject as _0x2da528,UniverInstanceType as _0x4b3b99}from'@univerjs/core';import{FDocument as _0x50bd1c,FDocumentParagraph as _0x2b27e4,FDocumentTextRange as _0x4df2d7}from'@univerjs/docs/facade';function v(_0x69029f,_0x5b8c59){return function(_0x39fd6b,_0x157995){_0x5b8c59(_0x39fd6b,_0x157995,_0x69029f);};}function y(_0x3b1d57,_0xcc9390,_0x528c9c,_0x461a91){var _0x4f9701=_0x6d80,_0x522bfc=arguments[_0x4f9701(0x182)],_0x24c5c8=_0x522bfc<0x3?_0xcc9390:_0x461a91===null?_0x461a91=Object[_0x4f9701(0x15a)](_0xcc9390,_0x528c9c):_0x461a91,_0x3bc506;if(typeof Reflect==_0x4f9701(0x179)&&typeof Reflect[_0x4f9701(0x19a)]==_0x4f9701(0x192))_0x24c5c8=Reflect[_0x4f9701(0x19a)](_0x3b1d57,_0xcc9390,_0x528c9c,_0x461a91);else{for(var _0x8d810f=_0x3b1d57[_0x4f9701(0x182)]-0x1;_0x8d810f>=0x0;_0x8d810f--)(_0x3bc506=_0x3b1d57[_0x8d810f])&&(_0x24c5c8=(_0x522bfc<0x3?_0x3bc506(_0x24c5c8):_0x522bfc>0x3?_0x3bc506(_0xcc9390,_0x528c9c,_0x24c5c8):_0x3bc506(_0xcc9390,_0x528c9c))||_0x24c5c8);}return _0x522bfc>0x3&&_0x24c5c8&&Object['defineProperty'](_0xcc9390,_0x528c9c,_0x24c5c8),_0x24c5c8;}let b=class{constructor(_0x1c8c2a,_0x351ee9,_0x4e85b9,_0x4aa6be,_0x49d1fb,_0x590b55){var _0x46af9=_0x6d80;this[_0x46af9(0x16e)]=_0x1c8c2a,this[_0x46af9(0x172)]=_0x351ee9,this['_commandService']=_0x4e85b9,this[_0x46af9(0x173)]=_0x4aa6be,this[_0x46af9(0x188)]=_0x49d1fb,this['_univerInstanceService']=_0x590b55;}['getId'](){var _0x7079da=_0x6d80;return this[_0x7079da(0x172)];}['getRange'](){var _0x121698=_0x6d80;let _0x784557=this[_0x121698(0x18c)]();return _0x784557?{'endOffset':_0x784557[_0x121698(0x196)]+0x1,'rangeId':_0x784557['rangeId'],'startOffset':_0x784557[_0x121698(0x195)]}:null;}[_0x471128(0x155)](){var _0x5d834f=_0x471128,_0x5ccc31;return((_0x5ccc31=this[_0x5d834f(0x173)][_0x5d834f(0x155)](this[_0x5d834f(0x16e)],this['_rangeId']))==null?void 0x0:_0x5ccc31[_0x5d834f(0x158)])??'';}['getConfig'](){var _0x3df9c0=_0x471128;return this['_model'][_0x3df9c0(0x155)](this[_0x3df9c0(0x16e)],this['_rangeId'])??null;}['getResult'](){var _0xc13943=_0x471128;return this[_0xc13943(0x188)][_0xc13943(0x180)]({'unitId':this['_unitId'],'rangeId':this[_0xc13943(0x172)]})??null;}['describe'](){var _0x18dfd4=_0x471128;let _0x1b0e05=this[_0x18dfd4(0x193)](),_0x3349fe=this['getConfig'](),_0x4052c4=this[_0x18dfd4(0x180)]();return!_0x1b0e05||!_0x3349fe||!_0x4052c4?null:{..._0x1b0e05,'config':_0x3349fe,'formula':_0x3349fe[_0x18dfd4(0x158)],'result':_0x4052c4,'type':_0x18dfd4(0x158)};}[_0x471128(0x17d)](_0xb52728){var _0x4636f0=_0x471128;return this[_0x4636f0(0x166)][_0x4636f0(0x171)](_0x225f0b['id'],{'externalReferences':_0xb52728[_0x4636f0(0x15d)],'formula':_0xb52728[_0x4636f0(0x158)],'numberFormat':_0xb52728['numberFormat'],'rangeId':this[_0x4636f0(0x172)],'unitId':this[_0x4636f0(0x16e)]});}[_0x471128(0x156)](_0x5b16b9){var _0x5041b4=_0x471128;return this[_0x5041b4(0x166)][_0x5041b4(0x171)](_0x34b648['id'],{'numberFormat':_0x5b16b9,'rangeId':this[_0x5041b4(0x172)],'unitId':this[_0x5041b4(0x16e)]});}['remove'](){var _0x435ff5=_0x471128;return this['_commandService'][_0x435ff5(0x171)](_0x25ec41['id'],{'rangeId':this['_rangeId'],'unitId':this['_unitId']});}['replaceWithText'](_0x13c0ad){var _0x13f327=_0x471128;return this[_0x13f327(0x166)][_0x13f327(0x171)](_0x3c127d['id'],{'rangeId':this[_0x13f327(0x172)],'text':_0x13c0ad,'unitId':this[_0x13f327(0x16e)]});}[_0x471128(0x18b)](){var _0x30af30=_0x471128;return this[_0x30af30(0x166)][_0x30af30(0x171)](_0x513130['id'],{'rangeId':this[_0x30af30(0x172)],'unitId':this['_unitId']});}[_0x471128(0x18c)](){var _0x4801d3=_0x471128,_0x45b3c0;let _0x190560=this[_0x4801d3(0x154)][_0x4801d3(0x181)](this[_0x4801d3(0x16e)],_0x4b3b99[_0x4801d3(0x185)]);return _0x190560==null||(_0x45b3c0=_0x190560[_0x4801d3(0x186)]()[_0x4801d3(0x161)])==null||(_0x45b3c0=_0x45b3c0[_0x4801d3(0x198)])==null?void 0x0:_0x45b3c0[_0x4801d3(0x18d)](_0x1e523d=>_0x1e523d[_0x4801d3(0x15c)]===this[_0x4801d3(0x172)]&&_0xfbb521(_0x1e523d));}};b=y([v(0x2,_0xd522ab),v(0x3,_0x2da528(_0x42a164)),v(0x4,_0x2da528(_0x20fdc3)),v(0x5,_0x34ab41)],b);function x(_0x79b5bd){'@babel/helpers - typeof';var _0x93fe1b=_0x471128;return x=typeof Symbol==_0x93fe1b(0x192)&&typeof Symbol[_0x93fe1b(0x16d)]==_0x93fe1b(0x16b)?function(_0x52e531){return typeof _0x52e531;}:function(_0x17f324){var _0x5b19fa=_0x93fe1b;return _0x17f324&&typeof Symbol=='function'&&_0x17f324[_0x5b19fa(0x169)]===Symbol&&_0x17f324!==Symbol['prototype']?_0x5b19fa(0x16b):typeof _0x17f324;},x(_0x79b5bd);}function S(_0x5a352f,_0x58300d){var _0x2af9e2=_0x471128;if(x(_0x5a352f)!=_0x2af9e2(0x179)||!_0x5a352f)return _0x5a352f;var _0x5af9e9=_0x5a352f[Symbol['toPrimitive']];if(_0x5af9e9!==void 0x0){var _0x58d0e7=_0x5af9e9[_0x2af9e2(0x191)](_0x5a352f,_0x58300d||_0x2af9e2(0x15b));if(x(_0x58d0e7)!=_0x2af9e2(0x179))return _0x58d0e7;throw TypeError(_0x2af9e2(0x17a));}return(_0x58300d===_0x2af9e2(0x153)?String:Number)(_0x5a352f);}function C(_0x5c8048){var _0x13ecaf=_0x471128,_0x37c241=S(_0x5c8048,_0x13ecaf(0x153));return x(_0x37c241)==_0x13ecaf(0x16b)?_0x37c241:_0x37c241+'';}function w(_0x3b8010,_0x57982b,_0x51713c){return(_0x57982b=C(_0x57982b))in _0x3b8010?Object['defineProperty'](_0x3b8010,_0x57982b,{'value':_0x51713c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b8010[_0x57982b]=_0x51713c,_0x3b8010;}var T=class extends _0x50bd1c{constructor(..._0x3ae183){var _0x49003d=_0x471128;super(..._0x3ae183),w(this,_0x49003d(0x164),void 0x0),w(this,_0x49003d(0x19b),void 0x0),w(this,_0x49003d(0x17c),void 0x0),w(this,_0x49003d(0x159),void 0x0);}[_0x471128(0x176)](_0x20fbcf){var _0x4e8e32=_0x471128;this['_docsFormulaCommandService']=_0x20fbcf[_0x4e8e32(0x170)](_0xd522ab),this[_0x4e8e32(0x19b)]=_0x20fbcf[_0x4e8e32(0x170)](_0x40741f),this[_0x4e8e32(0x17c)]=_0x20fbcf[_0x4e8e32(0x170)](_0x42a164),this[_0x4e8e32(0x159)]=_0x20fbcf[_0x4e8e32(0x170)](_0x5d6c9f);}[_0x471128(0x16f)](){var _0x9a520e=_0x471128;return this[_0x9a520e(0x197)]()['map'](_0x177d67=>this[_0x9a520e(0x168)](_0x177d67[_0x9a520e(0x15c)]));}[_0x471128(0x155)](_0x298fb9){var _0x6a01ae=_0x471128;return this['_getCompleteRanges']()[_0x6a01ae(0x184)](_0x5e0f4f=>_0x5e0f4f[_0x6a01ae(0x15c)]===_0x298fb9)?this[_0x6a01ae(0x168)](_0x298fb9):null;}[_0x471128(0x199)](_0x15c53a){var _0x501298=_0x471128;let _0x230df2=this[_0x501298(0x197)]()[_0x501298(0x18d)](_0x1b8ae5=>_0x1b8ae5['startIndex']<=_0x15c53a&&_0x15c53a<=_0x1b8ae5['endIndex']);return _0x230df2?this[_0x501298(0x168)](_0x230df2['rangeId']):null;}[_0x471128(0x187)](){var _0x5298e4=_0x471128;let _0x26afff=this['_docsFormulaResourceLoaderService']['saveUnit'](this['id']);if(!_0x26afff)throw Error(_0x5298e4(0x163)+this['id']+_0x5298e4(0x18f));return this[_0x5298e4(0x19b)]['degradeDocumentData'](_0x26afff);}[_0x471128(0x17e)](_0x8a6b7d){var _0x472d24=_0x471128;return this[_0x472d24(0x17b)]({'externalReferences':_0x8a6b7d[_0x472d24(0x15d)],'formula':_0x8a6b7d['formula'],'numberFormat':_0x8a6b7d[_0x472d24(0x19c)],'target':{'type':'range','startOffset':_0x8a6b7d['startOffset'],'endOffset':_0x8a6b7d['endOffset']},'unitId':this[_0x472d24(0x194)]()});}[_0x471128(0x17b)](_0x288961){var _0x1e2371=_0x471128;let _0x2b2a10=this[_0x1e2371(0x164)][_0x1e2371(0x171)](_0x2b41ae['id'],_0x288961);return _0x2b2a10?this[_0x1e2371(0x168)](_0x2b2a10['rangeId']):null;}['_getCompleteRanges'](){var _0x454f09=_0x471128,_0x50fd29;let _0x2c48ca=this[_0x454f09(0x17c)]['getFormulas'](this[_0x454f09(0x194)]());return((_0x50fd29=this[_0x454f09(0x183)]('')[_0x454f09(0x198)])==null?void 0x0:_0x50fd29[_0x454f09(0x160)](_0x18fa5d=>_0xfbb521(_0x18fa5d)&&_0x2c48ca[_0x18fa5d[_0x454f09(0x15c)]]!=null))??[];}[_0x471128(0x168)](_0x2ab680){var _0xe388f9=_0x471128;return this[_0xe388f9(0x18a)]['createInstance'](b,this[_0xe388f9(0x194)](),_0x2ab680);}};_0x50bd1c['extend'](T);var E=class extends _0x2b27e4{constructor(..._0x20a3c6){var _0x3068f=_0x471128;super(..._0x20a3c6),w(this,_0x3068f(0x164),void 0x0);}[_0x471128(0x176)](_0x20242e){var _0x192a45=_0x471128;this[_0x192a45(0x164)]=_0x20242e[_0x192a45(0x170)](_0xd522ab);}[_0x471128(0x17e)](_0x2ed47e,_0x116853,_0x2fb402={}){var _0x49c246=_0x471128;return this[_0x49c246(0x17b)](_0x2ed47e,_0x116853,_0x2fb402);}[_0x471128(0x16c)](_0x5f3094,_0xb0da92={}){var _0x2d0f77=_0x471128;return this[_0x2d0f77(0x17b)](_0x2d0f77(0x190),_0x5f3094,_0xb0da92);}[_0x471128(0x17b)](_0x40e38b,_0x42bc0d,_0x16b790){var _0x2088b2=_0x471128;if(this['getSegmentId']())return null;let _0x3bc126={'externalReferences':_0x16b790['externalReferences'],'formula':_0x42bc0d,'numberFormat':_0x16b790['numberFormat'],'target':{'type':'paragraph','paragraphId':this[_0x2088b2(0x194)](),'position':_0x40e38b},'unitId':this[_0x2088b2(0x174)][_0x2088b2(0x194)]()},_0x503f43=this[_0x2088b2(0x164)][_0x2088b2(0x171)](_0x2b41ae['id'],_0x3bc126);return _0x503f43?this['_injector'][_0x2088b2(0x15e)](b,this[_0x2088b2(0x174)]['getId'](),_0x503f43['rangeId']):null;}};_0x2b27e4[_0x471128(0x177)](E);var D=class extends _0x4df2d7{constructor(..._0x1f7dc9){var _0x236711=_0x471128;super(..._0x1f7dc9),w(this,_0x236711(0x164),void 0x0);}[_0x471128(0x176)](_0x348783){var _0xb48e6a=_0x471128;this[_0xb48e6a(0x164)]=_0x348783[_0xb48e6a(0x170)](_0xd522ab);}[_0x471128(0x19d)](_0x440e24,_0xce5b55={}){var _0x41018f=_0x471128;let {endOffset:_0x100182,segmentId:_0x5cc43a,startOffset:_0x18c4a5}=this[_0x41018f(0x193)]();return _0x5cc43a?null:this['_insert'](_0x18c4a5,_0x100182,_0x440e24,_0xce5b55);}[_0x471128(0x17b)](_0x8afa2a,_0x230394,_0x2a5d19,_0x415c68){var _0x39db1c=_0x471128;let _0x20114d={'externalReferences':_0x415c68['externalReferences'],'formula':_0x2a5d19,'numberFormat':_0x415c68[_0x39db1c(0x19c)],'target':{'type':_0x39db1c(0x165),'startOffset':_0x8afa2a,'endOffset':_0x230394},'unitId':this[_0x39db1c(0x174)][_0x39db1c(0x194)]()},_0x29fb02=this['_docsFormulaCommandService']['syncExecuteCommand'](_0x2b41ae['id'],_0x20114d);return _0x29fb02?this[_0x39db1c(0x18a)][_0x39db1c(0x15e)](b,this['_document'][_0x39db1c(0x194)](),_0x29fb02['rangeId']):null;}};_0x4df2d7['extend'](D);export{b as FDocumentFormula};function _0x35f2(){var _0x4eecac=['_docsFormulaDisplayTextService','numberFormat','replaceWithFormula','3699928mgMhyx','string','_univerInstanceService','getFormula','setNumberFormat','4duqwSY','formula','_docsFormulaResourceLoaderService','getOwnPropertyDescriptor','default','rangeId','externalReferences','createInstance','58QyIKtz','filter','body','11749xuUMtz','Document\x20','_docsFormulaCommandService','range','_commandService','4457070wMwdPF','_createFormula','constructor','1970SAbgqx','symbol','appendFormula','iterator','_unitId','getFormulas','get','syncExecuteCommand','_rangeId','_model','_document','7601GzWvoR','_initialize','extend','170502ZtXSSC','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_insert','_docsFormulaModel','update','insertFormula','348960FwzymI','getResult','getUnit','length','getBody','some','UNIVER_DOC','getSnapshot','saveFormulaDisplayTextSnapshot','_service','30aVKSMc','_injector','convertToText','_getCustomRange','find','462861GxxUvV','\x20could\x20not\x20be\x20serialized.','end','call','function','getRange','getId','startIndex','endIndex','_getCompleteRanges','customRanges','getFormulaAt','decorate'];_0x35f2=function(){return _0x4eecac;};return _0x35f2();}