@univerjs-pro/docs-formula 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1173d9=_0x24c4;(function(_0x1054ab,_0x3047dc){const _0x37a0f7=_0x24c4,_0x47b29e=_0x1054ab();while(!![]){try{const _0x247168=-parseInt(_0x37a0f7(0x1ec))/0x1+-parseInt(_0x37a0f7(0x1b9))/0x2+parseInt(_0x37a0f7(0x1a0))/0x3+parseInt(_0x37a0f7(0x13c))/0x4+parseInt(_0x37a0f7(0x127))/0x5*(parseInt(_0x37a0f7(0x166))/0x6)+-parseInt(_0x37a0f7(0x194))/0x7*(parseInt(_0x37a0f7(0x154))/0x8)+parseInt(_0x37a0f7(0x128))/0x9*(-parseInt(_0x37a0f7(0x205))/0xa);if(_0x247168===_0x3047dc)break;else _0x47b29e['push'](_0x47b29e['shift']());}catch(_0x30db35){_0x47b29e['push'](_0x47b29e['shift']());}}}(_0x3422,0x90f2e));import{FormulaCacheEligibilityService as _0x4ef013,FormulaLastValuePersistenceService as _0x29264c,HostExternalReferenceModel as _0x4e7a8f,UniverProFormulaEnginePlugin as _0x2ac530,buildUpsertHostExternalReferenceMutations as _0x18f854,collectFormulaExternalReferenceQualifiers as _0x40128b,getScalarFormulaResultCell as _0x3d55cd,resolveFormulaResultPresentation as _0x32521a,resolveHostFormulaExternalReferences as _0x3d2466,toFormulaLastValue as _0x24052f}from'@univerjs-pro/engine-formula';import{CellValueType as _0x144c98,CommandType as _0x2e2ecf,CustomRangeType as _0x14b828,DataStreamTreeTokenType as _0x5a972a,DependentOn as _0x192577,Disposable as _0x487bea,ICommandService as _0x170d7c,IConfigService as _0x335e00,IResourceManagerService as _0x39a957,IUndoRedoService as _0x4c8196,IUniverInstanceService as _0x1cb79e,Inject as _0x41fe0f,Injector as _0x4a690a,JSONX as _0x534e11,Plugin as _0x31da3e,TextX as _0x2dfabc,Tools as _0x13c34f,UniverInstanceType as _0xe966be,generateRandomId as _0x7ffdf2,getBodySliceForTextXAction as _0x4b0522,getCustomRangeInterval as _0x1c5e95,getParagraphContentStartOffset as _0x882200,getRichTextEditPath as _0x2a5420,merge as _0x1b50a3,shiftExclusiveRangeOnDelete as _0x324bcb,shiftExclusiveRangeOnInsert as _0x127e50,shiftInclusiveRangeOnDelete as _0x2e67c7,shiftInclusiveRangeOnInsert as _0xae953e,touchDependencies as _0x218854}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0xc6b882,DocSelectionManagerService as _0x764d00,DocTextResolverService as _0x325458,RichTextEditingMutation as _0x3f9ca3,UniverDocsPlugin as _0x48ceb4}from'@univerjs/docs';import{FormulaResultStatus as _0x208399,LexerTreeBuilder as _0x26af78,OtherFormulaBizType as _0xca11f,RegisterOtherFormulaService as _0x78c724}from'@univerjs/engine-formula';import{Subject as _0x11a859}from'rxjs';import{UniverLicensePlugin as _0x221e8d}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x1173d9(0x12d),Ne='';function _0x24c4(_0x44fd83,_0x3adc5b){_0x44fd83=_0x44fd83-0x124;const _0x3422a8=_0x3422();let _0x24c4df=_0x3422a8[_0x44fd83];return _0x24c4df;}function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x29c68e){const _0x3e88e1=_0x1173d9;return!_0x29c68e||typeof _0x29c68e!=_0x3e88e1(0x21d)||!S(_0x29c68e,[_0x3e88e1(0x17e),_0x3e88e1(0x183)])||!(_0x3e88e1(0x17e)in _0x29c68e)||_0x29c68e['schemaVersion']!==0x1||!(_0x3e88e1(0x183)in _0x29c68e)||!_0x29c68e[_0x3e88e1(0x183)]||typeof _0x29c68e[_0x3e88e1(0x183)]!=_0x3e88e1(0x21d)||Array[_0x3e88e1(0x1c5)](_0x29c68e[_0x3e88e1(0x183)])?!0x1:Object[_0x3e88e1(0x188)](_0x29c68e['formulas'])[_0x3e88e1(0x153)](([_0x2eb237,_0x330c42])=>_0x2eb237[_0x3e88e1(0x1e6)]>0x0&&Pe(_0x330c42));}function Pe(_0x23299e){const _0xf12bb4=_0x1173d9;return!_0x23299e||typeof _0x23299e!=_0xf12bb4(0x21d)||!S(_0x23299e,[_0xf12bb4(0x1de),_0xf12bb4(0x1ae),_0xf12bb4(0x1b4)])||!(_0xf12bb4(0x1de)in _0x23299e)||typeof _0x23299e[_0xf12bb4(0x1de)]!='string'||!_0x23299e['formula'][_0xf12bb4(0x1bf)]()||_0xf12bb4(0x1ae)in _0x23299e&&_0x23299e['numberFormat']!=null&&(typeof _0x23299e[_0xf12bb4(0x1ae)]!='object'||!S(_0x23299e[_0xf12bb4(0x1ae)],['pattern'])||!(_0xf12bb4(0x1b6)in _0x23299e[_0xf12bb4(0x1ae)])||typeof _0x23299e[_0xf12bb4(0x1ae)]['pattern']!='string')?!0x1:!(_0xf12bb4(0x1b4)in _0x23299e)||_0x23299e['lastValue']==null||Fe(_0x23299e[_0xf12bb4(0x1b4)]);}function Fe(_0x51295c){const _0x47b459=_0x1173d9;return!_0x51295c||typeof _0x51295c!=_0x47b459(0x21d)||!S(_0x51295c,['v','t',_0x47b459(0x1b6)])||!('v'in _0x51295c)||_0x51295c['v']!==null&&typeof _0x51295c['v']!=_0x47b459(0x1b7)&&typeof _0x51295c['v']!=_0x47b459(0x1ba)&&typeof _0x51295c['v']!=_0x47b459(0x202)||'t'in _0x51295c&&_0x51295c['t']!=null&&!Ie(_0x51295c['t'])?!0x1:!(_0x47b459(0x1b6)in _0x51295c)||_0x51295c[_0x47b459(0x1b6)]==null||typeof _0x51295c[_0x47b459(0x1b6)]==_0x47b459(0x1b7);}function S(_0x21e426,_0x4d2b57){const _0x1a3eef=_0x1173d9;let _0x5b7e81=new Set(_0x4d2b57);return Object[_0x1a3eef(0x16c)](_0x21e426)[_0x1a3eef(0x153)](_0x265261=>_0x5b7e81['has'](_0x265261));}function Ie(_0x2986cb){const _0xffe6a2=_0x1173d9;return typeof _0x2986cb==_0xffe6a2(0x1ba)&&Object['values'](_0x144c98)[_0xffe6a2(0x1c2)](_0x2986cb);}const Le=new Set([_0x5a972a[_0x1173d9(0x181)],_0x5a972a['TABLE_START'],_0x5a972a[_0x1173d9(0x16e)],_0x5a972a[_0x1173d9(0x1c6)],_0x5a972a[_0x1173d9(0x14d)],_0x5a972a['TABLE_ROW_END'],_0x5a972a[_0x1173d9(0x1df)],_0x5a972a[_0x1173d9(0x21f)],_0x5a972a[_0x1173d9(0x1ef)],_0x5a972a[_0x1173d9(0x21b)],_0x5a972a['COLUMN_GROUP_END'],_0x5a972a[_0x1173d9(0x143)],_0x5a972a[_0x1173d9(0x1d4)],_0x5a972a[_0x1173d9(0x18e)]]);var C=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function Re(_0x52ccf1){const _0x2ff303=_0x1173d9;var _0xf22a04,_0xfd92e4;let _0x297c81=_0x13c34f[_0x2ff303(0x168)](_0x52ccf1[_0x2ff303(0x150)]),_0x391bbd=j(_0x297c81),{startOffset:_0xd7b251,endOffset:_0x27cbd9}=We(_0x391bbd,_0x52ccf1[_0x2ff303(0x185)],_0x52ccf1[_0x2ff303(0x186)]);He(_0x391bbd,_0xd7b251,_0x27cbd9);let _0x5bb1c9=((_0xf22a04=_0x391bbd[_0x2ff303(0x1c9)])==null?void 0x0:_0xf22a04[_0x2ff303(0x1a8)](_0xe74ebe=>{const _0x558db4=_0x2ff303;if(!w(_0xe74ebe))return!0x1;let _0x3b5521=_0x1c5e95(_0xe74ebe);return _0x3b5521[_0x558db4(0x186)]>_0xd7b251&&_0x3b5521['startOffset']<_0x27cbd9;})[_0x2ff303(0x17f)](_0x1e2229=>_0x1e2229[_0x2ff303(0x217)]))??[];qe(_0x391bbd,_0xd7b251,_0x27cbd9,''),_0x391bbd['customRanges']=[...((_0xfd92e4=_0x391bbd[_0x2ff303(0x1c9)])==null?void 0x0:_0xfd92e4['filter'](_0x3d564b=>!_0x5bb1c9[_0x2ff303(0x1c2)](_0x3d564b['rangeId'])&&_0x3d564b[_0x2ff303(0x217)]!==_0x52ccf1['rangeId']))??[],Ue(_0x52ccf1['rangeId'],_0xd7b251)][_0x2ff303(0x1c1)]((_0x4843fd,_0x10eabe)=>_0x4843fd[_0x2ff303(0x1f9)]-_0x10eabe['startIndex']);let _0x4257f7=E(_0x52ccf1[_0x2ff303(0x1e7)]);return _0x5bb1c9['forEach'](_0x1a51e7=>{const _0x2fc0cd=_0x2ff303;delete _0x4257f7[_0x2fc0cd(0x183)][_0x1a51e7];}),_0x4257f7['formulas'][_0x52ccf1[_0x2ff303(0x217)]]=_0x13c34f[_0x2ff303(0x168)](_0x52ccf1['config']),{'nextDocumentData':_0x297c81,'nextResource':_0x4257f7,'cursorOffset':_0xd7b251+0x1};}function ze(_0x2bab12){const _0x2a4af6=_0x1173d9;var _0x91564c,_0x28f6f8;let _0x1b6eb5=_0x13c34f['deepClone'](_0x2bab12[_0x2a4af6(0x150)]),_0xaacf8a=(_0x91564c=j(_0x1b6eb5)[_0x2a4af6(0x1c9)])==null?void 0x0:_0x91564c['find'](_0x1ca4e2=>_0x1ca4e2[_0x2a4af6(0x217)]===_0x2bab12[_0x2a4af6(0x217)]&&w(_0x1ca4e2));if(!_0xaacf8a||!((_0x28f6f8=_0x2bab12[_0x2a4af6(0x1e7)])!=null&&_0x28f6f8[_0x2a4af6(0x183)][_0x2bab12['rangeId']]))return null;let _0x5e6d38=E(_0x2bab12[_0x2a4af6(0x1e7)]);return _0x5e6d38['formulas'][_0x2bab12[_0x2a4af6(0x217)]]=_0x13c34f[_0x2a4af6(0x168)](_0x2bab12[_0x2a4af6(0x216)]),{'nextDocumentData':_0x1b6eb5,'nextResource':_0x5e6d38,'cursorOffset':_0xaacf8a[_0x2a4af6(0x15e)]+0x1};}function Be(_0x4baa3c){const _0x141623=_0x1173d9;let _0xabe635=_0x13c34f[_0x141623(0x168)](_0x4baa3c[_0x141623(0x150)]),_0x7b7226=Je(_0xabe635,_0x4baa3c[_0x141623(0x217)],_0x4baa3c[_0x141623(0x204)]??'');if(_0x7b7226==null)return null;let _0x38c3a2=E(_0x4baa3c[_0x141623(0x1e7)]);return delete _0x38c3a2[_0x141623(0x183)][_0x4baa3c[_0x141623(0x217)]],{'nextDocumentData':_0xabe635,'nextResource':_0x38c3a2,'cursorOffset':_0x7b7226};}function Ve(_0x16a79b,_0x55591f){const _0x2e525b=_0x1173d9;var _0x58e65e;let _0x23819b=_0x13c34f[_0x2e525b(0x168)](_0x16a79b),_0x2de3ea=_0x23819b[_0x2e525b(0x1e1)];if(!_0x2de3ea)return _0x23819b;let _0x1cc7a5=new Map(_0x55591f[_0x2e525b(0x17f)](_0xa52142=>[_0xa52142[_0x2e525b(0x217)],_0xa52142[_0x2e525b(0x204)]])),_0x30fd31=((_0x58e65e=_0x2de3ea['customRanges'])==null?void 0x0:_0x58e65e[_0x2e525b(0x1a8)](_0x13cf27=>w(_0x13cf27)&&_0x1cc7a5[_0x2e525b(0x130)](_0x13cf27[_0x2e525b(0x217)]))[_0x2e525b(0x1c1)]((_0x97cc5a,_0x2f7ef7)=>_0x2f7ef7[_0x2e525b(0x1f9)]-_0x97cc5a[_0x2e525b(0x1f9)]))??[];for(let _0x3f0e0a of _0x30fd31)Je(_0x23819b,_0x3f0e0a[_0x2e525b(0x217)],_0x1cc7a5[_0x2e525b(0x137)](_0x3f0e0a[_0x2e525b(0x217)])??'');return _0x23819b;}function w(_0x2546b3){const _0x9a3531=_0x1173d9;var _0x416999;return(_0x2546b3==null?void 0x0:_0x2546b3[_0x9a3531(0x1a5)])===_0x14b828[_0x9a3531(0x19b)]&&_0x2546b3[_0x9a3531(0x1ac)]===!0x0&&((_0x416999=_0x2546b3[_0x9a3531(0x1b2)])==null?void 0x0:_0x416999['kind'])===_0x9a3531(0x12d);}function T(_0x35e79c,_0x134953){const _0x2cb2a5=_0x1173d9;var _0x1a42ee;return _0x35e79c==null||(_0x1a42ee=_0x35e79c[_0x2cb2a5(0x1c9)])==null?void 0x0:_0x1a42ee[_0x2cb2a5(0x1c3)](_0x8d3c9=>_0x8d3c9[_0x2cb2a5(0x217)]===_0x134953&&w(_0x8d3c9));}function He(_0x595b96,_0x43574a,_0x5c3094){const _0x139cf0=_0x1173d9;if(_0x43574a===_0x5c3094){if(Le[_0x139cf0(0x130)](_0x595b96[_0x139cf0(0x16d)][_0x43574a]))throw new C();}else{for(let _0xad2637=_0x43574a;_0xad2637<_0x5c3094;_0xad2637++)if(_0x595b96['dataStream'][_0xad2637]===_0x5a972a[_0x139cf0(0x132)]||Le[_0x139cf0(0x130)](_0x595b96['dataStream'][_0xad2637]))throw new C();}}function Ue(_0x20ecb1,_0x3f6faa){return{'startIndex':_0x3f6faa,'endIndex':_0x3f6faa,'rangeId':_0x20ecb1,'rangeType':_0x14b828['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x4688ae){const _0x266f86=_0x1173d9;return _0x4688ae?_0x13c34f[_0x266f86(0x168)](_0x4688ae):b();}function We(_0x2dfbda,_0x616eb0,_0x5c678e){const _0x2bd236=_0x1173d9;let _0x297f69=Ke(_0x2dfbda),_0x394e81=_0x616eb0??_0x297f69,_0xba4cab=_0x5c678e??_0x394e81;return{'startOffset':Ge(Math['min'](_0x394e81,_0xba4cab),_0x297f69),'endOffset':Ge(Math[_0x2bd236(0x221)](_0x394e81,_0xba4cab),_0x297f69)};}function Ge(_0x4892f0,_0x2bb1c2){const _0x4975c6=_0x1173d9;return Math[_0x4975c6(0x221)](0x0,Math[_0x4975c6(0x1f2)](_0x4892f0,_0x2bb1c2));}function Ke(_0x11174f){const _0x40a7b0=_0x1173d9;return _0x11174f['dataStream'][_0x40a7b0(0x1fc)](''+_0x5a972a[_0x40a7b0(0x132)]+_0x5a972a[_0x40a7b0(0x181)])?Math[_0x40a7b0(0x221)](0x0,_0x11174f['dataStream'][_0x40a7b0(0x1e6)]-0x2):_0x11174f[_0x40a7b0(0x16d)][_0x40a7b0(0x1fc)](_0x5a972a[_0x40a7b0(0x181)])?Math['max'](0x0,_0x11174f[_0x40a7b0(0x16d)][_0x40a7b0(0x1e6)]-0x1):_0x11174f['dataStream'][_0x40a7b0(0x1e6)];}function qe(_0x5a55e7,_0x294af2,_0x318e32,_0x4b6e5b){_0x318e32>_0x294af2&&Xe(_0x5a55e7,_0x294af2,_0x318e32),Ye(_0x5a55e7,_0x294af2,_0x4b6e5b);}function Je(_0x1941aa,_0x27a7b9,_0x16a66b){const _0x4a61da=_0x1173d9;var _0x113c56,_0x775c43;let _0x468627=j(_0x1941aa),_0x406041=(_0x113c56=_0x468627[_0x4a61da(0x1c9)])==null?void 0x0:_0x113c56['find'](_0x191395=>_0x191395[_0x4a61da(0x217)]===_0x27a7b9&&w(_0x191395));if(!_0x406041)return null;let _0x5c764f=_0x1c5e95(_0x406041);return qe(_0x468627,_0x5c764f['startOffset'],_0x5c764f[_0x4a61da(0x186)],_0x16a66b),_0x468627[_0x4a61da(0x1c9)]=(_0x775c43=_0x468627['customRanges'])==null?void 0x0:_0x775c43[_0x4a61da(0x1a8)](_0x24f0e0=>_0x24f0e0[_0x4a61da(0x217)]!==_0x27a7b9),_0x5c764f[_0x4a61da(0x185)]+_0x16a66b[_0x4a61da(0x1e6)];}function Ye(_0x5000c0,_0x57c2e5,_0x371b15){const _0x165096=_0x1173d9;_0x371b15&&(_0x5000c0[_0x165096(0x16d)]=''+_0x5000c0[_0x165096(0x16d)]['slice'](0x0,_0x57c2e5)+_0x371b15+_0x5000c0[_0x165096(0x16d)][_0x165096(0x12a)](_0x57c2e5),Ze(_0x5000c0,_0x57c2e5,_0x371b15['length']));}function Xe(_0x27c549,_0x140dd1,_0xdfd73c){const _0x2843bd=_0x1173d9;let _0x4a5feb=_0xdfd73c-_0x140dd1;_0x27c549[_0x2843bd(0x16d)]=''+_0x27c549['dataStream'][_0x2843bd(0x12a)](0x0,_0x140dd1)+_0x27c549['dataStream'][_0x2843bd(0x12a)](_0xdfd73c),Qe(_0x27c549,_0x140dd1,_0x4a5feb);}function Ze(_0xcdbf53,_0x4b7e3b,_0x1b2890){const _0x447fe2=_0x1173d9;_0xcdbf53[_0x447fe2(0x1e9)]=D(_0xcdbf53['paragraphs'],_0x4b7e3b,_0x1b2890),_0xcdbf53['sectionBreaks']=D(_0xcdbf53[_0x447fe2(0x1b3)],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x12c)]=D(_0xcdbf53['customBlocks'],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x1e2)]=$e(_0xcdbf53['textRuns'],_0x4b7e3b,_0x1b2890),_0xcdbf53['tables']=et(_0xcdbf53[_0x447fe2(0x1d8)],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x199)]=k(_0xcdbf53[_0x447fe2(0x199)],_0x4b7e3b,_0x1b2890),_0xcdbf53['customRanges']=k(_0xcdbf53['customRanges'],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x17c)]=k(_0xcdbf53['customDecorations'],_0x4b7e3b,_0x1b2890),_0xcdbf53[_0x447fe2(0x192)]=k(_0xcdbf53[_0x447fe2(0x192)],_0x4b7e3b,_0x1b2890);}function Qe(_0x422cd4,_0x5dd154,_0x5c5091){const _0x47899e=_0x1173d9;var _0x325dd1,_0x4850f4;_0x422cd4[_0x47899e(0x1e9)]=O(_0x422cd4['paragraphs'],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x1b3)]=O(_0x422cd4[_0x47899e(0x1b3)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x12c)]=O(_0x422cd4[_0x47899e(0x12c)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x1e2)]=(_0x325dd1=tt((_0x4850f4=_0x422cd4[_0x47899e(0x1e2)])==null?void 0x0:_0x4850f4[_0x47899e(0x17f)](_0x4340d9=>({..._0x4340d9,'startIndex':_0x4340d9['st'],'endIndex':_0x4340d9['ed']})),_0x5dd154,_0x5c5091))==null?void 0x0:_0x325dd1[_0x47899e(0x17f)](_0x385276=>{let {startIndex:_0x1fb084,endIndex:_0x22bedd,..._0x512ff3}=_0x385276;return{..._0x512ff3,'st':_0x1fb084,'ed':_0x22bedd};}),_0x422cd4[_0x47899e(0x1d8)]=tt(_0x422cd4[_0x47899e(0x1d8)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x199)]=A(_0x422cd4['columnGroups'],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x1c9)]=A(_0x422cd4[_0x47899e(0x1c9)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x17c)]=A(_0x422cd4[_0x47899e(0x17c)],_0x5dd154,_0x5c5091),_0x422cd4[_0x47899e(0x192)]=A(_0x422cd4[_0x47899e(0x192)],_0x5dd154,_0x5c5091);}function D(_0x51b1dc,_0x38d7e2,_0x45e38e){const _0x1bb1f2=_0x1173d9;return _0x51b1dc==null?void 0x0:_0x51b1dc['map'](_0x53f9e7=>_0x53f9e7[_0x1bb1f2(0x1f9)]>=_0x38d7e2?{..._0x53f9e7,'startIndex':_0x53f9e7[_0x1bb1f2(0x1f9)]+_0x45e38e}:_0x53f9e7);}function O(_0x131e32,_0x5459e0,_0x5b5409){const _0x4a72a3=_0x1173d9;let _0x1b91a2=_0x5459e0+_0x5b5409;return _0x131e32==null?void 0x0:_0x131e32[_0x4a72a3(0x17f)](_0xeb4f8d=>_0xeb4f8d[_0x4a72a3(0x1f9)]>=_0x5459e0&&_0xeb4f8d[_0x4a72a3(0x1f9)]<_0x1b91a2?null:_0xeb4f8d[_0x4a72a3(0x1f9)]>=_0x1b91a2?{..._0xeb4f8d,'startIndex':_0xeb4f8d[_0x4a72a3(0x1f9)]-_0x5b5409}:_0xeb4f8d)[_0x4a72a3(0x1a8)](_0xc61ba8=>_0xc61ba8!=null);}function $e(_0x24f305,_0x2ca265,_0x204a1d){const _0xb6f4eb=_0x1173d9;return _0x24f305==null?void 0x0:_0x24f305[_0xb6f4eb(0x17f)](_0x461e67=>_0x461e67['st']>=_0x2ca265?{..._0x461e67,'st':_0x461e67['st']+_0x204a1d,'ed':_0x461e67['ed']+_0x204a1d}:_0x461e67['ed']>_0x2ca265?{..._0x461e67,'ed':_0x461e67['ed']+_0x204a1d}:_0x461e67);}function k(_0x990d75,_0x3b5bdd,_0x4f6626){const _0x255b89=_0x1173d9;return _0x990d75==null?void 0x0:_0x990d75[_0x255b89(0x17f)](_0x7ddaee=>_0xae953e(_0x7ddaee,_0x3b5bdd,_0x4f6626));}function et(_0x343fdc,_0x7fc0b9,_0x27cc79){const _0x3c0a90=_0x1173d9;return _0x343fdc==null?void 0x0:_0x343fdc[_0x3c0a90(0x17f)](_0x26cc98=>_0x127e50(_0x26cc98,_0x7fc0b9,_0x27cc79));}function A(_0xdcc80,_0x1a3421,_0x3e549c){const _0x783992=_0x1173d9;return _0xdcc80==null?void 0x0:_0xdcc80[_0x783992(0x17f)](_0x4f795d=>_0x2e67c7(_0x4f795d,_0x1a3421,_0x3e549c))[_0x783992(0x1a8)](_0x428ea3=>_0x428ea3!=null);}function tt(_0x4adf07,_0x164afe,_0x5caa79){const _0x2fe41e=_0x1173d9;return _0x4adf07==null?void 0x0:_0x4adf07[_0x2fe41e(0x17f)](_0x1e7b83=>_0x324bcb(_0x1e7b83,_0x164afe,_0x5caa79))['filter'](_0x93fa2f=>_0x93fa2f!=null);}function j(_0x155967){const _0x5210a5=_0x1173d9;if(!_0x155967[_0x5210a5(0x1e1)])throw Error(_0x5210a5(0x223));return _0x155967[_0x5210a5(0x1e1)];}function M(_0x102f28){'@babel/helpers - typeof';const _0x447a14=_0x1173d9;return M=typeof Symbol==_0x447a14(0x1a3)&&typeof Symbol[_0x447a14(0x139)]==_0x447a14(0x1d9)?function(_0x364345){return typeof _0x364345;}:function(_0x4dafc9){const _0x427e0f=_0x447a14;return _0x4dafc9&&typeof Symbol==_0x427e0f(0x1a3)&&_0x4dafc9[_0x427e0f(0x14c)]===Symbol&&_0x4dafc9!==Symbol[_0x427e0f(0x175)]?'symbol':typeof _0x4dafc9;},M(_0x102f28);}function nt(_0x28d37c,_0x11ee35){const _0x5d2cdc=_0x1173d9;if(M(_0x28d37c)!=_0x5d2cdc(0x21d)||!_0x28d37c)return _0x28d37c;var _0x19216a=_0x28d37c[Symbol[_0x5d2cdc(0x18c)]];if(_0x19216a!==void 0x0){var _0x49a564=_0x19216a[_0x5d2cdc(0x15d)](_0x28d37c,_0x11ee35||_0x5d2cdc(0x145));if(M(_0x49a564)!='object')return _0x49a564;throw TypeError(_0x5d2cdc(0x16a));}return(_0x11ee35===_0x5d2cdc(0x1b7)?String:Number)(_0x28d37c);}function rt(_0x240fa9){const _0x2b5023=_0x1173d9;var _0x51f7e0=nt(_0x240fa9,'string');return M(_0x51f7e0)==_0x2b5023(0x1d9)?_0x51f7e0:_0x51f7e0+'';}function N(_0x4f3624,_0x463a71,_0x534c3){const _0xa9bdf5=_0x1173d9;return(_0x463a71=rt(_0x463a71))in _0x4f3624?Object[_0xa9bdf5(0x13e)](_0x4f3624,_0x463a71,{'value':_0x534c3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f3624[_0x463a71]=_0x534c3,_0x4f3624;}var P=class extends _0x487bea{constructor(..._0x20d47f){const _0x20db20=_0x1173d9;super(..._0x20d47f),N(this,_0x20db20(0x1a1),new Map()),N(this,'_rawResources',new Map()),N(this,_0x20db20(0x148),new Map()),N(this,_0x20db20(0x1f4),new _0x11a859()),N(this,_0x20db20(0x15f),this[_0x20db20(0x1f4)]['asObservable']());}[_0x1173d9(0x215)](_0x40724a,_0x1adf40){const _0x4d28fb=_0x1173d9;var _0x1ee1d9;let _0x26eacf=(_0x1ee1d9=this[_0x4d28fb(0x1a1)][_0x4d28fb(0x137)](_0x40724a))==null?void 0x0:_0x1ee1d9[_0x4d28fb(0x183)][_0x1adf40];return _0x26eacf?_0x13c34f['deepClone'](_0x26eacf):void 0x0;}['getFormulas'](_0x4bd826){const _0x512965=_0x1173d9;var _0x188c85;return _0x13c34f[_0x512965(0x168)](((_0x188c85=this[_0x512965(0x1a1)][_0x512965(0x137)](_0x4bd826))==null?void 0x0:_0x188c85['formulas'])??{});}[_0x1173d9(0x1ce)](_0x2776b7){const _0x3abab9=_0x1173d9;let _0x2b9d23=this[_0x3abab9(0x1a1)][_0x3abab9(0x137)](_0x2776b7);return _0x2b9d23?_0x13c34f[_0x3abab9(0x168)](_0x2b9d23):void 0x0;}[_0x1173d9(0x20e)](_0xc645b1,_0x1a4e50,_0x1ff1ef){const _0x8e7686=_0x1173d9;return this[_0x8e7686(0x169)](_0xc645b1,{[_0x1a4e50]:_0x1ff1ef});}['setResource'](_0x9c3e3e,_0x34b978){const _0xaacac2=_0x1173d9;return this[_0xaacac2(0x148)][_0xaacac2(0x130)](_0x9c3e3e)||!x(_0x34b978)?!0x1:(this[_0xaacac2(0x1a1)]['set'](_0x9c3e3e,_0x13c34f[_0xaacac2(0x168)](_0x34b978)),this[_0xaacac2(0x1f4)][_0xaacac2(0x1d3)]({'unitId':_0x9c3e3e}),!0x0);}[_0x1173d9(0x169)](_0x223608,_0x5f4f83){const _0x576537=_0x1173d9;if(this[_0x576537(0x148)]['has'](_0x223608)||!Object[_0x576537(0x16c)](_0x5f4f83)[_0x576537(0x1e6)]||!x({'schemaVersion':0x1,'formulas':_0x5f4f83}))return!0x1;let _0x3c4b17=this[_0x576537(0x1a1)][_0x576537(0x137)](_0x223608)??b(),_0x3817b3=_0x13c34f['deepClone'](_0x3c4b17);return Object[_0x576537(0x17a)](_0x3817b3[_0x576537(0x183)],_0x13c34f['deepClone'](_0x5f4f83)),this[_0x576537(0x1a1)][_0x576537(0x1be)](_0x223608,_0x3817b3),this['_change$']['next']({'unitId':_0x223608,'rangeIds':Object[_0x576537(0x16c)](_0x5f4f83)}),!0x0;}[_0x1173d9(0x126)](_0x13a24a,_0x68741){const _0x5b2577=_0x1173d9;if(this[_0x5b2577(0x148)][_0x5b2577(0x130)](_0x13a24a))return!0x1;let _0x5bdea0=this[_0x5b2577(0x1a1)][_0x5b2577(0x137)](_0x13a24a);if(!(_0x5bdea0!=null&&_0x5bdea0[_0x5b2577(0x183)][_0x68741]))return!0x1;let _0x48488e=_0x13c34f[_0x5b2577(0x168)](_0x5bdea0);return delete _0x48488e[_0x5b2577(0x183)][_0x68741],this['_resources'][_0x5b2577(0x1be)](_0x13a24a,_0x48488e),this['_change$'][_0x5b2577(0x1d3)]({'unitId':_0x13a24a,'rangeIds':[_0x68741]}),!0x0;}['load'](_0x434b6d,_0x10133d){const _0x294d4b=_0x1173d9;return _0x10133d&&typeof _0x10133d=='object'&&_0x294d4b(0x17e)in _0x10133d&&_0x10133d[_0x294d4b(0x17e)]!==0x1?(this[_0x294d4b(0x17d)](_0x434b6d,_0x10133d,_0x294d4b(0x155)),!0x1):x(_0x10133d)?(this[_0x294d4b(0x1a1)][_0x294d4b(0x1be)](_0x434b6d,_0x13c34f[_0x294d4b(0x168)](_0x10133d)),this['_rawResources']['delete'](_0x434b6d),this[_0x294d4b(0x148)][_0x294d4b(0x18d)](_0x434b6d),this[_0x294d4b(0x1f4)]['next']({'unitId':_0x434b6d}),!0x0):(this[_0x294d4b(0x17d)](_0x434b6d,_0x10133d,_0x294d4b(0x177)),!0x1);}[_0x1173d9(0x1b8)](_0x3bcca9){const _0x2ab0ca=_0x1173d9;let _0x384f69=this[_0x2ab0ca(0x1a1)][_0x2ab0ca(0x137)](_0x3bcca9);return _0x384f69?_0x13c34f['deepClone'](_0x384f69):this[_0x2ab0ca(0x12e)][_0x2ab0ca(0x130)](_0x3bcca9)?_0x13c34f[_0x2ab0ca(0x168)](this[_0x2ab0ca(0x12e)][_0x2ab0ca(0x137)](_0x3bcca9)):b();}['getLoadError'](_0x5b2391){const _0x592b18=_0x1173d9;return this[_0x592b18(0x148)][_0x592b18(0x137)](_0x5b2391);}[_0x1173d9(0x179)](_0x414efb){const _0x287c25=_0x1173d9;this[_0x287c25(0x1a1)][_0x287c25(0x18d)](_0x414efb),this[_0x287c25(0x12e)][_0x287c25(0x18d)](_0x414efb),this[_0x287c25(0x148)][_0x287c25(0x18d)](_0x414efb),this[_0x287c25(0x1f4)][_0x287c25(0x1d3)]({'unitId':_0x414efb});}['dispose'](){const _0x46b309=_0x1173d9;this[_0x46b309(0x1a1)][_0x46b309(0x1db)](),this[_0x46b309(0x12e)][_0x46b309(0x1db)](),this[_0x46b309(0x148)][_0x46b309(0x1db)](),this[_0x46b309(0x1f4)][_0x46b309(0x167)](),super['dispose']();}[_0x1173d9(0x17d)](_0x482e80,_0x1f43d9,_0x52316a){const _0x590f97=_0x1173d9;this['_resources'][_0x590f97(0x18d)](_0x482e80),this[_0x590f97(0x12e)]['set'](_0x482e80,_0x13c34f['deepClone'](_0x1f43d9)),this['_loadErrors'][_0x590f97(0x1be)](_0x482e80,_0x52316a),this[_0x590f97(0x1f4)][_0x590f97(0x1d3)]({'unitId':_0x482e80});}};let it=function(_0x15b801){const _0x4d2126=_0x1173d9;return _0x15b801[_0x4d2126(0x189)]=_0x4d2126(0x13a),_0x15b801[_0x4d2126(0x1d1)]=_0x4d2126(0x1b1),_0x15b801[_0x4d2126(0x197)]=_0x4d2126(0x135),_0x15b801['ERROR']=_0x4d2126(0x15b),_0x15b801;}({});function F(_0x5569f7,_0x51a7c9){return function(_0x3741db,_0x1f9740){_0x51a7c9(_0x3741db,_0x1f9740,_0x5569f7);};}function I(_0x549cd2,_0x6884cd,_0x397a42,_0x3d9818){const _0x39391=_0x1173d9;var _0x1deec1=arguments[_0x39391(0x1e6)],_0x15f210=_0x1deec1<0x3?_0x6884cd:_0x3d9818===null?_0x3d9818=Object[_0x39391(0x180)](_0x6884cd,_0x397a42):_0x3d9818,_0x3dc2c7;if(typeof Reflect==_0x39391(0x21d)&&typeof Reflect[_0x39391(0x18f)]==_0x39391(0x1a3))_0x15f210=Reflect[_0x39391(0x18f)](_0x549cd2,_0x6884cd,_0x397a42,_0x3d9818);else{for(var _0x38af3b=_0x549cd2[_0x39391(0x1e6)]-0x1;_0x38af3b>=0x0;_0x38af3b--)(_0x3dc2c7=_0x549cd2[_0x38af3b])&&(_0x15f210=(_0x1deec1<0x3?_0x3dc2c7(_0x15f210):_0x1deec1>0x3?_0x3dc2c7(_0x6884cd,_0x397a42,_0x15f210):_0x3dc2c7(_0x6884cd,_0x397a42))||_0x15f210);}return _0x1deec1>0x3&&_0x15f210&&Object[_0x39391(0x13e)](_0x6884cd,_0x397a42,_0x15f210),_0x15f210;}let L=class extends _0x487bea{constructor(_0x58380e,_0x5d1fb0,_0x304b61){const _0x331478=_0x1173d9;super(),this[_0x331478(0x20f)]=_0x58380e,this[_0x331478(0x14b)]=_0x5d1fb0,this[_0x331478(0x207)]=_0x304b61,N(this,_0x331478(0x1e3),new Map()),N(this,_0x331478(0x1bc),new Map()),N(this,_0x331478(0x142),new _0x11a859()),N(this,'presentationChanged$',this[_0x331478(0x142)][_0x331478(0x190)]()),this[_0x331478(0x140)](this[_0x331478(0x14b)][_0x331478(0x1cd)][_0x331478(0x1f7)](_0x27b466=>{const _0x2e9f9b=_0x331478;for(let _0x291ecf of Object[_0x2e9f9b(0x1f3)](_0x27b466))for(let _0x436ce1 of Object[_0x2e9f9b(0x1f3)](_0x291ecf))_0x436ce1[_0x2e9f9b(0x146)](_0x2e998c=>this[_0x2e9f9b(0x1f6)](_0x2e998c));}));}[_0x1173d9(0x1fb)](_0x1378f7){const _0x55429c=_0x1173d9;var _0x123b38;let _0xa479cc=_0x1378f7['getUnitId'](),_0x59a805=((_0x123b38=_0x1378f7[_0x55429c(0x160)]()[_0x55429c(0x1e1)])==null||(_0x123b38=_0x123b38[_0x55429c(0x1c9)])==null?void 0x0:_0x123b38[_0x55429c(0x1a8)](w))??[],_0x399e3b=this[_0x55429c(0x20f)]['getFormulas'](_0xa479cc),_0x3cc44e=new Set();for(let _0xb0652 of _0x59a805){let _0x5a3e4e=_0x399e3b[_0xb0652[_0x55429c(0x217)]];_0x5a3e4e&&(_0x3cc44e['add'](R(_0xa479cc,_0xb0652[_0x55429c(0x217)])),this['register']({'unitId':_0xa479cc,'rangeId':_0xb0652[_0x55429c(0x217)]},_0x5a3e4e));}for(let _0x46075c of Array[_0x55429c(0x16f)](this[_0x55429c(0x1e3)][_0x55429c(0x1f3)]()))_0x46075c[_0x55429c(0x224)]===_0xa479cc&&!_0x3cc44e[_0x55429c(0x130)](R(_0x46075c[_0x55429c(0x224)],_0x46075c[_0x55429c(0x217)]))&&this['unregister'](_0x46075c);}[_0x1173d9(0x218)](_0x103abb,_0x4dd879){const _0xe26a40=_0x1173d9;let _0x5abb0a=R(_0x103abb[_0xe26a40(0x224)],_0x103abb[_0xe26a40(0x217)]),_0x79c917=this[_0xe26a40(0x1e3)][_0xe26a40(0x137)](_0x5abb0a),_0x1751be=this['_hostExternalReferenceModel'][_0xe26a40(0x1f0)](_0x103abb[_0xe26a40(0x224)]);if(_0x79c917&&_0x79c917[_0xe26a40(0x216)]['formula']===_0x4dd879['formula']&&_0x79c917[_0xe26a40(0x210)]===_0x1751be){_0x79c917['config']=_0x4dd879;let _0xd24928=_0x79c917[_0xe26a40(0x20c)]?this[_0xe26a40(0x14b)][_0xe26a40(0x1c0)](_0x79c917[_0xe26a40(0x224)],_0x79c917[_0xe26a40(0x224)],_0x79c917[_0xe26a40(0x20c)])??void 0x0:void 0x0;_0x79c917[_0xe26a40(0x208)]=_0xd24928,this[_0xe26a40(0x1bd)](_0x5abb0a,z(_0x4dd879,_0xd24928));return;}_0x79c917!=null&&_0x79c917[_0xe26a40(0x20c)]&&this[_0xe26a40(0x18b)](_0x79c917);let _0x55f8f6={..._0x103abb,'config':_0x4dd879,'referenceRevision':_0x1751be,'presentation':z(_0x4dd879,void 0x0)};if(this['_registrations'][_0xe26a40(0x1be)](_0x5abb0a,_0x55f8f6),!_0x4dd879[_0xe26a40(0x1de)][_0xe26a40(0x1bf)]())return;let _0x3f8b83=this[_0xe26a40(0x14b)]['registerFormulaWithRange'](_0x103abb[_0xe26a40(0x224)],_0x103abb[_0xe26a40(0x224)],_0x4dd879[_0xe26a40(0x1de)],void 0x0,{'rangeId':_0x103abb[_0xe26a40(0x217)]},_0xca11f['DOC'],_0x103abb[_0xe26a40(0x217)]);_0x55f8f6[_0xe26a40(0x20c)]=_0x3f8b83,this[_0xe26a40(0x1bc)][_0xe26a40(0x1be)](_0x3f8b83,_0x5abb0a);}[_0x1173d9(0x13d)](_0x188b01){const _0x17fbdc=_0x1173d9;let _0x2cd7ed=R(_0x188b01[_0x17fbdc(0x224)],_0x188b01['rangeId']),_0x47854c=this[_0x17fbdc(0x1e3)][_0x17fbdc(0x137)](_0x2cd7ed);_0x47854c&&(this[_0x17fbdc(0x18b)](_0x47854c),this[_0x17fbdc(0x1e3)][_0x17fbdc(0x18d)](_0x2cd7ed));}[_0x1173d9(0x191)](_0x22b81e){const _0x32816e=_0x1173d9;for(let _0x4e8676 of Array[_0x32816e(0x16f)](this[_0x32816e(0x1e3)]['values']()))_0x4e8676[_0x32816e(0x224)]===_0x22b81e&&this['unregister'](_0x4e8676);}[_0x1173d9(0x157)](_0x27f04f){const _0x30768e=_0x1173d9;var _0xf21568;return(_0xf21568=this[_0x30768e(0x1e3)][_0x30768e(0x137)](R(_0x27f04f[_0x30768e(0x224)],_0x27f04f[_0x30768e(0x217)])))==null?void 0x0:_0xf21568[_0x30768e(0x18a)];}[_0x1173d9(0x1d6)](_0x5c9362){const _0x489b21=_0x1173d9;let _0x1acd5d=this[_0x489b21(0x1e3)][_0x489b21(0x137)](R(_0x5c9362[_0x489b21(0x224)],_0x5c9362[_0x489b21(0x217)]));return _0x1acd5d?B(_0x1acd5d):void 0x0;}['getRegisteredFormulas'](){const _0xe7678d=_0x1173d9;return Array[_0xe7678d(0x16f)](this[_0xe7678d(0x1e3)][_0xe7678d(0x1f3)](),_0x5d79e4=>({'identity':{'unitId':_0x5d79e4['unitId'],'rangeId':_0x5d79e4[_0xe7678d(0x217)]},'config':_0x5d79e4[_0xe7678d(0x216)],'referenceRevision':_0x5d79e4['referenceRevision'],..._0x5d79e4['liveResult']?{'liveResult':_0x5d79e4['liveResult']}:null}));}[_0x1173d9(0x20b)](){const _0x40bb75=_0x1173d9;for(let _0x10b4f0 of this[_0x40bb75(0x1e3)][_0x40bb75(0x1f3)]())this['_deleteRegistration'](_0x10b4f0);this[_0x40bb75(0x1e3)][_0x40bb75(0x1db)](),this[_0x40bb75(0x1bc)][_0x40bb75(0x1db)](),this[_0x40bb75(0x142)][_0x40bb75(0x167)](),super[_0x40bb75(0x20b)]();}[_0x1173d9(0x1f6)](_0x396c3f){const _0x2e158b=_0x1173d9;let _0x3f0e84=this[_0x2e158b(0x1bc)]['get'](_0x396c3f[_0x2e158b(0x20c)]),_0x5d0da8=_0x3f0e84?this[_0x2e158b(0x1e3)][_0x2e158b(0x137)](_0x3f0e84):void 0x0;_0x3f0e84&&_0x5d0da8&&(_0x5d0da8[_0x2e158b(0x208)]=_0x396c3f,this[_0x2e158b(0x1bd)](_0x3f0e84,z(_0x5d0da8['config'],_0x396c3f)));}[_0x1173d9(0x1bd)](_0x1dfee1,_0x37eb7b){const _0x49ea67=_0x1173d9;var _0x2df312,_0x4589ca;let _0x1d4d8a=this[_0x49ea67(0x1e3)][_0x49ea67(0x137)](_0x1dfee1);if(!_0x1d4d8a||at(_0x1d4d8a[_0x49ea67(0x18a)],_0x37eb7b))return;let _0x3a4b62=_0x1d4d8a[_0x49ea67(0x18a)],_0x38c241=B(_0x1d4d8a);_0x1d4d8a['presentation']=_0x37eb7b,this[_0x49ea67(0x142)][_0x49ea67(0x1d3)]({'unitId':_0x1d4d8a[_0x49ea67(0x224)],'rangeId':_0x1d4d8a[_0x49ea67(0x217)],'presentation':_0x37eb7b,'previousPresentation':_0x3a4b62,'result':B(_0x1d4d8a),'previousResult':{..._0x38c241,..._0x3a4b62,'value':(_0x2df312=_0x3a4b62[_0x49ea67(0x172)])==null?void 0x0:_0x2df312['v'],'valueType':((_0x4589ca=_0x3a4b62[_0x49ea67(0x172)])==null?void 0x0:_0x4589ca['t'])??void 0x0}});}[_0x1173d9(0x18b)](_0x5cd675){const _0x1b216c=_0x1173d9;_0x5cd675[_0x1b216c(0x20c)]&&(this[_0x1b216c(0x14b)]['deleteFormula'](_0x5cd675['unitId'],_0x5cd675[_0x1b216c(0x224)],[_0x5cd675['formulaId']]),this[_0x1b216c(0x1bc)][_0x1b216c(0x18d)](_0x5cd675[_0x1b216c(0x20c)]));}};L=I([F(0x0,_0x41fe0f(P)),F(0x1,_0x41fe0f(_0x78c724)),F(0x2,_0x41fe0f(_0x4e7a8f))],L);function R(_0x754910,_0x1be1cc){return _0x754910+'\x00'+_0x1be1cc;}function z(_0x48ecae,_0x3b7395){const _0x26d181=_0x1173d9;return _0x32521a({'numberFormat':_0x48ecae[_0x26d181(0x1ae)],'lastValue':_0x48ecae['lastValue'],'result':_0x3b7395});}function B(_0x124cfe){const _0x29b190=_0x1173d9;var _0x108f1c,_0x5493c8,_0x4f935c;let _0x64a3a1=_0x124cfe[_0x29b190(0x18a)],_0x1b592c=_0x124cfe[_0x29b190(0x216)]['formula']['trim']()?_0x64a3a1['stale']||_0x64a3a1[_0x29b190(0x172)]==null?_0x29b190(0x1b1):((_0x108f1c=_0x124cfe[_0x29b190(0x208)])==null?void 0x0:_0x108f1c['status'])===_0x208399['ERROR']?_0x29b190(0x15b):_0x29b190(0x135):_0x29b190(0x13a);return{..._0x64a3a1,'status':_0x1b592c,'value':(_0x5493c8=_0x64a3a1[_0x29b190(0x172)])==null?void 0x0:_0x5493c8['v'],'valueType':((_0x4f935c=_0x64a3a1[_0x29b190(0x172)])==null?void 0x0:_0x4f935c['t'])??void 0x0};}function at(_0x34f96f,_0x5963f7){const _0x1a4138=_0x1173d9;var _0x4d411b,_0x3c38c0,_0x1d54ec,_0xae7138;return _0x34f96f[_0x1a4138(0x204)]===_0x5963f7[_0x1a4138(0x204)]&&_0x34f96f[_0x1a4138(0x1f1)]===_0x5963f7[_0x1a4138(0x1f1)]&&_0x34f96f['pattern']===_0x5963f7[_0x1a4138(0x1b6)]&&_0x34f96f['source']===_0x5963f7[_0x1a4138(0x1c4)]&&_0x34f96f['stale']===_0x5963f7[_0x1a4138(0x1bb)]&&((_0x4d411b=_0x34f96f[_0x1a4138(0x172)])==null?void 0x0:_0x4d411b['t'])===((_0x3c38c0=_0x5963f7[_0x1a4138(0x172)])==null?void 0x0:_0x3c38c0['t'])&&Object['is']((_0x1d54ec=_0x34f96f[_0x1a4138(0x172)])==null?void 0x0:_0x1d54ec['v'],(_0xae7138=_0x5963f7[_0x1a4138(0x172)])==null?void 0x0:_0xae7138['v']);}const ot={'id':_0x1173d9(0x1cb),'type':_0x2e2ecf[_0x1173d9(0x1ff)],'handler':(_0x16e684,_0x3a8c76)=>!(_0x3a8c76!=null&&_0x3a8c76[_0x1173d9(0x224)])||!_0x3a8c76['rangeId']||!_0x3a8c76[_0x1173d9(0x216)]?!0x1:_0x16e684[_0x1173d9(0x137)](P)['setFormula'](_0x3a8c76[_0x1173d9(0x224)],_0x3a8c76[_0x1173d9(0x217)],_0x3a8c76[_0x1173d9(0x216)])},st={'id':'docs-formula.mutation.remove-formula','type':_0x2e2ecf['MUTATION'],'handler':(_0x2e6573,_0x36a4be)=>!(_0x36a4be!=null&&_0x36a4be[_0x1173d9(0x224)])||!_0x36a4be['rangeId']?!0x1:_0x2e6573[_0x1173d9(0x137)](P)[_0x1173d9(0x126)](_0x36a4be[_0x1173d9(0x224)],_0x36a4be['rangeId'])},V={'id':'docs-formula.mutation.set-resource','type':_0x2e2ecf[_0x1173d9(0x1ff)],'handler':(_0x38735e,_0x44b450)=>!(_0x44b450!=null&&_0x44b450[_0x1173d9(0x224)])||!_0x44b450['resource']?!0x1:_0x38735e[_0x1173d9(0x137)](P)[_0x1173d9(0x1fe)](_0x44b450[_0x1173d9(0x224)],_0x44b450[_0x1173d9(0x1e7)])},H={'id':_0x1173d9(0x1b5),'type':_0x2e2ecf[_0x1173d9(0x1ff)],'handler':(_0x370656,_0x2dd87f)=>{const _0x30a76b=_0x1173d9;if(!(_0x2dd87f!=null&&_0x2dd87f[_0x30a76b(0x224)])||!_0x2dd87f[_0x30a76b(0x14e)][_0x30a76b(0x1e6)])return!0x1;let _0x1d8d3f=_0x370656['get'](P),_0x5222cf=_0x370656[_0x30a76b(0x137)](_0x4e7a8f),_0x1c9e11=_0x1d8d3f[_0x30a76b(0x1ce)](_0x2dd87f[_0x30a76b(0x224)]);if(!_0x1c9e11)return!0x1;let _0x2b6d31=_0x13c34f[_0x30a76b(0x168)](_0x1c9e11),_0x357efe=!0x1;for(let _0x24441e of _0x2dd87f[_0x30a76b(0x14e)]){var _0x307c47,_0x467736,_0x15b486,_0x547db0;let _0x2d5fba=_0x2b6d31[_0x30a76b(0x183)][_0x24441e['rangeId']];_0x2d5fba&&_0x2d5fba[_0x30a76b(0x1de)]===_0x24441e[_0x30a76b(0x206)]&&((_0x307c47=_0x2d5fba[_0x30a76b(0x1ae)])==null?void 0x0:_0x307c47['pattern'])===_0x24441e[_0x30a76b(0x159)]&&_0x5222cf['getRevision'](_0x2dd87f[_0x30a76b(0x224)])===_0x24441e[_0x30a76b(0x19e)]&&(((_0x467736=_0x2d5fba[_0x30a76b(0x1b4)])==null?void 0x0:_0x467736['v'])!==_0x24441e[_0x30a76b(0x1b4)]['v']||((_0x15b486=_0x2d5fba[_0x30a76b(0x1b4)])==null?void 0x0:_0x15b486['t'])!==_0x24441e[_0x30a76b(0x1b4)]['t']||((_0x547db0=_0x2d5fba[_0x30a76b(0x1b4)])==null?void 0x0:_0x547db0[_0x30a76b(0x1b6)])!==_0x24441e['lastValue']['pattern'])&&(_0x2d5fba[_0x30a76b(0x1b4)]=_0x13c34f['deepClone'](_0x24441e[_0x30a76b(0x1b4)]),_0x357efe=!0x0);}return!_0x357efe||_0x1d8d3f[_0x30a76b(0x1fe)](_0x2dd87f['unitId'],_0x2b6d31);}},U={'id':_0x1173d9(0x1fd),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x55e508,_0x30b44e)=>{const _0x1e707f=_0x1173d9;if(!(_0x30b44e!=null&&_0x30b44e['formula']['trim']()))return!0x1;let _0xb72be2=q(_0x55e508,_0x30b44e[_0x1e707f(0x224)],'');if(!_0xb72be2)return!0x1;let _0x1d9be1=ft(_0x30b44e[_0x1e707f(0x193)],_0xb72be2[_0x1e707f(0x1e1)],dt(_0x55e508,_0xb72be2[_0x1e707f(0x224)]));if(!_0x1d9be1)return!0x1;let _0x1cf13b=pt(_0x55e508,_0xb72be2[_0x1e707f(0x224)],_0x30b44e[_0x1e707f(0x1de)],_0x30b44e[_0x1e707f(0x195)]??[]);if(!_0x1cf13b)return!0x1;let _0x5dcfc2=mt(_0xb72be2[_0x1e707f(0x1e1)],_0xb72be2[_0x1e707f(0x1a6)],_0xb72be2[_0x1e707f(0x224)]),_0x5c9355=ht({'documentData':_0xb72be2[_0x1e707f(0x150)],'resource':_0xb72be2[_0x1e707f(0x1e7)],'rangeId':_0x5dcfc2,'config':{'formula':_0x30b44e['formula'],..._0x30b44e['numberFormat']?{'numberFormat':_0x30b44e[_0x1e707f(0x1ae)]}:null},'startOffset':_0x1d9be1[_0x1e707f(0x185)],'endOffset':_0x1d9be1[_0x1e707f(0x186)]});if(!_0x5c9355)return!0x1;let _0x5ed055=_0x18f854(_0x55e508,_0xb72be2[_0x1e707f(0x224)],_0x1cf13b);return!_0x5ed055||!J({'accessor':_0x55e508,'document':_0xb72be2[_0x1e707f(0x133)],'unitId':_0xb72be2['unitId'],'trigger':U['id'],'rangeId':_0x5dcfc2,'previousResource':_0xb72be2[_0x1e707f(0x1e7)],'nextResource':_0x5c9355[_0x1e707f(0x170)],'previousDocumentData':_0xb72be2[_0x1e707f(0x150)],'nextDocumentData':_0x5c9355[_0x1e707f(0x131)],'cursorOffset':_0x5c9355[_0x1e707f(0x1f5)],'externalMutations':_0x5ed055})?!0x1:{'rangeId':_0x5dcfc2,'startOffset':_0x5c9355[_0x1e707f(0x1f5)]-0x1,'endOffset':_0x5c9355[_0x1e707f(0x1f5)]};}},W={'id':'docs-formula.command.update','type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x2e5aa8,_0x46a55f)=>{const _0x5a939c=_0x1173d9;if(!(_0x46a55f!=null&&_0x46a55f['rangeId'])||!_0x46a55f[_0x5a939c(0x1de)][_0x5a939c(0x1bf)]())return!0x1;let _0x1e6ca5=q(_0x2e5aa8,_0x46a55f[_0x5a939c(0x224)],''),_0x5dc827=_0x1e6ca5==null?void 0x0:_0x1e6ca5[_0x5a939c(0x1a6)][_0x5a939c(0x215)](_0x1e6ca5[_0x5a939c(0x224)],_0x46a55f[_0x5a939c(0x217)]),_0x44526d=_0x1e6ca5?T(_0x1e6ca5['documentData'][_0x5a939c(0x1e1)],_0x46a55f[_0x5a939c(0x217)]):void 0x0;if(!_0x1e6ca5||!_0x5dc827||!_0x44526d)return!0x1;let _0x5a42df=pt(_0x2e5aa8,_0x1e6ca5['unitId'],_0x46a55f['formula'],_0x46a55f['externalReferences']??[]);if(!_0x5a42df)return!0x1;let _0x374ac9=_0x18f854(_0x2e5aa8,_0x1e6ca5[_0x5a939c(0x224)],_0x5a42df);if(!_0x374ac9)return!0x1;let _0x4b3431=Ct(_0x1e6ca5[_0x5a939c(0x1e7)]);return _0x4b3431[_0x5a939c(0x183)][_0x46a55f[_0x5a939c(0x217)]]={'formula':_0x46a55f[_0x5a939c(0x1de)],..._0x46a55f['numberFormat']?{'numberFormat':_0x46a55f[_0x5a939c(0x1ae)]}:_0x5dc827['numberFormat']?{'numberFormat':_0x5dc827[_0x5a939c(0x1ae)]}:null},J({'accessor':_0x2e5aa8,'document':_0x1e6ca5[_0x5a939c(0x133)],'unitId':_0x1e6ca5['unitId'],'trigger':W['id'],'rangeId':_0x46a55f[_0x5a939c(0x217)],'previousResource':_0x1e6ca5[_0x5a939c(0x1e7)],'nextResource':_0x4b3431,'cursorOffset':_0x44526d['endIndex']+0x1,'externalMutations':_0x374ac9});}},G={'id':_0x1173d9(0x211),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x5235ca,_0xf03935)=>{const _0x1e30d9=_0x1173d9;if(!(_0xf03935!=null&&_0xf03935[_0x1e30d9(0x217)]))return!0x1;let _0x3affbb=q(_0x5235ca,_0xf03935[_0x1e30d9(0x224)],''),_0x4ba2be=_0x3affbb==null?void 0x0:_0x3affbb[_0x1e30d9(0x1a6)][_0x1e30d9(0x215)](_0x3affbb[_0x1e30d9(0x224)],_0xf03935[_0x1e30d9(0x217)]),_0x36e032=_0x3affbb?T(_0x3affbb[_0x1e30d9(0x150)][_0x1e30d9(0x1e1)],_0xf03935[_0x1e30d9(0x217)]):void 0x0;if(!_0x3affbb||!_0x4ba2be||!_0x36e032)return!0x1;let _0x1051b7=Ct(_0x3affbb[_0x1e30d9(0x1e7)]);return _0x1051b7['formulas'][_0xf03935[_0x1e30d9(0x217)]]={..._0x4ba2be,..._0xf03935['numberFormat']?{'numberFormat':_0xf03935[_0x1e30d9(0x1ae)]}:null},_0xf03935[_0x1e30d9(0x1ae)]||delete _0x1051b7['formulas'][_0xf03935[_0x1e30d9(0x217)]][_0x1e30d9(0x1ae)],J({'accessor':_0x5235ca,'document':_0x3affbb[_0x1e30d9(0x133)],'unitId':_0x3affbb[_0x1e30d9(0x224)],'trigger':G['id'],'rangeId':_0xf03935[_0x1e30d9(0x217)],'previousResource':_0x3affbb[_0x1e30d9(0x1e7)],'nextResource':_0x1051b7,'cursorOffset':_0x36e032[_0x1e30d9(0x15e)]+0x1,'externalMutations':{}});}},K={'id':_0x1173d9(0x147),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x4c2f6a,_0xe80b8)=>ut(_0x4c2f6a,_0xe80b8,'',K['id'])},ct={'id':_0x1173d9(0x219),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x32cbb0,_0x1a5e15)=>ut(_0x32cbb0,_0x1a5e15,(_0x1a5e15==null?void 0x0:_0x1a5e15[_0x1173d9(0x204)])??'',ct['id'])},lt={'id':_0x1173d9(0x1cf),'type':_0x2e2ecf[_0x1173d9(0x226)],'handler':(_0x3463fd,_0x3911c9)=>{const _0x3f37f4=_0x1173d9;if(!(_0x3911c9!=null&&_0x3911c9[_0x3f37f4(0x217)]))return!0x1;let _0x255d2e=q(_0x3463fd,_0x3911c9['unitId'],'');if(!_0x255d2e)return!0x1;let _0x3a9fca=_0x3463fd[_0x3f37f4(0x137)](L)['getResult']({'unitId':_0x255d2e[_0x3f37f4(0x224)],'rangeId':_0x3911c9[_0x3f37f4(0x217)]});return _0x3a9fca?ut(_0x3463fd,_0x3911c9,_0x3a9fca[_0x3f37f4(0x204)],lt['id']):!0x1;}};function ut(_0x32453d,_0x4c8662,_0x43dd8b,_0x577bf6){const _0x5043a2=_0x1173d9;if(!(_0x4c8662!=null&&_0x4c8662[_0x5043a2(0x217)]))return!0x1;let _0x5125f9=q(_0x32453d,_0x4c8662[_0x5043a2(0x224)],'');if(!_0x5125f9)return!0x1;let _0x54c46a=Be({'documentData':_0x5125f9[_0x5043a2(0x150)],'resource':_0x5125f9['resource'],'rangeId':_0x4c8662[_0x5043a2(0x217)],'text':_0x43dd8b});return _0x54c46a?J({'accessor':_0x32453d,'document':_0x5125f9['document'],'unitId':_0x5125f9[_0x5043a2(0x224)],'trigger':_0x577bf6,'rangeId':_0x4c8662['rangeId'],'previousResource':_0x5125f9[_0x5043a2(0x1e7)],'nextResource':_0x54c46a['nextResource'],'previousDocumentData':_0x5125f9[_0x5043a2(0x150)],'nextDocumentData':_0x54c46a['nextDocumentData'],'cursorOffset':_0x54c46a[_0x5043a2(0x1f5)],'externalMutations':{}}):!0x1;}function q(_0x253581,_0x202b1e,_0x19f38c){const _0x259a07=_0x1173d9;if(_0x19f38c)return null;let _0x3a8297=_0x253581['get'](_0x1cb79e),_0x491270=(_0x202b1e?_0x3a8297[_0x259a07(0x171)](_0x202b1e,_0xe966be[_0x259a07(0x129)]):_0x3a8297[_0x259a07(0x19f)](_0xe966be[_0x259a07(0x129)]))??null;if(!_0x491270)return null;let _0x32e89b=_0x491270[_0x259a07(0x160)](),_0x367e6f=_0x32e89b['body'];if(_0x32e89b['disabled']||!_0x367e6f)return null;let _0x255e85=_0x253581['get'](P);return _0x255e85[_0x259a07(0x1a4)](_0x491270[_0x259a07(0x1b0)]())?null:{'document':_0x491270,'body':_0x367e6f,'documentData':_0x32e89b,'model':_0x255e85,'resource':_0x255e85[_0x259a07(0x1ce)](_0x491270[_0x259a07(0x1b0)]())??b(),'unitId':_0x491270[_0x259a07(0x1b0)]()};}function dt(_0x3302e7,_0x421c26){const _0x1bae45=_0x1173d9;var _0x49e753;return(_0x49e753=_0x3302e7[_0x1bae45(0x137)](_0x764d00)[_0x1bae45(0x165)]({'subUnitId':_0x421c26,'unitId':_0x421c26}))==null?void 0x0:_0x49e753[0x0];}function ft(_0x2ab36d,_0x103876,_0x2d3863){const _0x5847b6=_0x1173d9;if((_0x2ab36d==null?void 0x0:_0x2ab36d[_0x5847b6(0x19c)])===_0x5847b6(0x203)){var _0x3b0dd9;let _0x3f0fc3=((_0x3b0dd9=_0x103876[_0x5847b6(0x1e9)])==null?void 0x0:_0x3b0dd9[_0x5847b6(0x1a8)](_0x2d652e=>_0x2d652e[_0x5847b6(0x16b)]===_0x2ab36d[_0x5847b6(0x16b)]))??[];if(_0x3f0fc3[_0x5847b6(0x1e6)]!==0x1)return null;let _0xfef491=_0x3f0fc3[0x0],_0x21a685=_0x882200(_0x103876,_0xfef491),_0x215936=_0xfef491['startIndex']-_0x21a685,_0x33e759=_0x2ab36d[_0x5847b6(0x201)]===_0x5847b6(0x1ed)?_0x215936:_0x2ab36d[_0x5847b6(0x201)];if(!Number[_0x5847b6(0x222)](_0x33e759)||_0x33e759<0x0||_0x33e759>_0x215936)return null;let _0x4794bc=_0x21a685+_0x33e759;return{'startOffset':_0x4794bc,'endOffset':_0x4794bc};}if((_0x2ab36d==null?void 0x0:_0x2ab36d[_0x5847b6(0x19c)])===_0x5847b6(0x1ee))return!Number[_0x5847b6(0x222)](_0x2ab36d[_0x5847b6(0x185)])||!Number['isInteger'](_0x2ab36d[_0x5847b6(0x186)])?null:{'startOffset':Math[_0x5847b6(0x1f2)](_0x2ab36d['startOffset'],_0x2ab36d[_0x5847b6(0x186)]),'endOffset':Math[_0x5847b6(0x221)](_0x2ab36d[_0x5847b6(0x185)],_0x2ab36d[_0x5847b6(0x186)])};let _0x38bde5=(_0x2ab36d==null?void 0x0:_0x2ab36d[_0x5847b6(0x19c)])==='selection'?_0x2ab36d['selection']:_0x2d3863;return!_0x38bde5||_0x38bde5[_0x5847b6(0x209)]?null:{'startOffset':Math['min'](_0x38bde5[_0x5847b6(0x185)],_0x38bde5['endOffset']),'endOffset':Math[_0x5847b6(0x221)](_0x38bde5[_0x5847b6(0x185)],_0x38bde5['endOffset'])};}function pt(_0xe9e5cc,_0x37b34d,_0x15b127,_0x535d94){const _0x1c6340=_0x1173d9;let _0x2eb26f=_0xe9e5cc[_0x1c6340(0x137)](_0x26af78),_0x5a300c=_0x15b127[_0x1c6340(0x1ca)]('=')?_0x15b127[_0x1c6340(0x12a)](0x1):_0x15b127,_0xa8f069=_0x2eb26f[_0x1c6340(0x1aa)](_0x5a300c);if(!_0xa8f069)return null;let _0x48a275=_0xe9e5cc['get'](_0x4e7a8f),_0x9b580b=_0x3d2466({'qualifiers':_0x40128b(_0xa8f069),'explicitReferences':_0x535d94??[],'resolveBinding':_0x54360e=>_0x48a275[_0x1c6340(0x156)](_0x37b34d,_0x54360e)});return _0x9b580b[_0x1c6340(0x15c)]===_0x1c6340(0x1c8)?_0x9b580b[_0x1c6340(0x1e0)]:null;}function mt(_0x306d50,_0x4ceb69,_0x23ab78){const _0x5153a6=_0x1173d9;var _0x4a442f;let _0x4a2756=_0x7ffdf2(0x6);for(;_0x306d50!=null&&(_0x4a442f=_0x306d50[_0x5153a6(0x1c9)])!=null&&_0x4a442f[_0x5153a6(0x184)](_0x3a0bb3=>_0x3a0bb3[_0x5153a6(0x217)]===_0x4a2756)||_0x4ceb69[_0x5153a6(0x215)](_0x23ab78,_0x4a2756);)_0x4a2756=_0x7ffdf2(0x6);return _0x4a2756;}function ht(_0x5393e7){try{return Re(_0x5393e7);}catch(_0x3488ca){if(_0x3488ca instanceof C)return null;throw _0x3488ca;}}function gt(_0x5cb735){const _0x3d4d8e=_0x1173d9;let _0x44714a=_0x5cb735['previousDocumentData']&&_0x5cb735[_0x3d4d8e(0x131)]?vt(_0x5cb735[_0x3d4d8e(0x133)],_0x5cb735[_0x3d4d8e(0x224)],_0x5cb735['previousDocumentData'],_0x5cb735[_0x3d4d8e(0x131)],_0x5cb735[_0x3d4d8e(0x1f5)],_0x5cb735[_0x3d4d8e(0x124)]):null;return _0x5cb735[_0x3d4d8e(0x1ea)]&&_0x5cb735[_0x3d4d8e(0x131)]&&!_0x44714a?null:{'documentRedo':_0x44714a,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x5cb735[_0x3d4d8e(0x224)],'resource':_0x5cb735[_0x3d4d8e(0x170)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x5cb735[_0x3d4d8e(0x224)],'resource':_0x5cb735[_0x3d4d8e(0x227)]}}};}function _0x3422(){const _0x4c8776=['resource','_injector','paragraphs','previousDocumentData','load','604IGoPaU','end','range','COLUMN_START','getRevision','color','min','values','_change$','cursorOffset','_updateFormulaResult','subscribe','start','startIndex','deleteLength','syncUnit','endsWith','docs-formula.command.insert','setResource','MUTATION','externalMutations','position','boolean','paragraph','text','321260wxvMYA','expectedFormula','_hostExternalReferenceModel','liveResult','segmentId','accessor','dispose','formulaId','onStarting','setFormula','_model','referenceRevision','docs-formula.command.set-number-format','identity','add','_univerInstanceService','getFormula','config','rangeId','register','docs-formula.command.replace-with-text','pushUndoRedo','COLUMN_END','_queueSync','object','getRegisteredFormulas','COLUMN_GROUP_START','unitAdded$','max','isInteger','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','unitId','insert','COMMAND','previousResource','trigger','_cacheEligibilityService','removeFormula','5XWvdZH','18ccDtFV','UNIVER_DOC','slice','editOp','customBlocks','univer-docs-formula','_rawResources','_instanceService','has','nextDocumentData','PARAGRAPH','document','parse','success','getBody','get','resources','iterator','empty','DOC_FORMULA_PLUGIN','3095308ZRfaor','unregister','defineProperty','packageName','disposeWithMe','pluginName','_presentationChanged$','BLOCK_START','_configService','default','forEach','docs-formula.command.remove','_loadErrors','_syncUnit','degradeDocumentData','_registrationService','constructor','TABLE_CELL_END','updates','presentationChanged$','documentData','retain','version','every','95896UGqfyy','unsupported-version','resolveBinding','getPresentation','_docFormulaModel','expectedNumberFormat','notifyTextChanged','error','status','call','endIndex','change$','getSnapshot','insertLength','eligible','_pendingUnitIds','syncExecuteCommand','getTextRanges','5951874BvbDxb','complete','deepClone','setFormulas','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraphId','keys','dataStream','TABLE_ROW_START','from','nextResource','getUnit','cell','_service','_config','prototype','collectMutations','invalid-resource','documentRedo','removeUnit','assign','1.2.0','customDecorations','_preserveInvalid','schemaVersion','map','getOwnPropertyDescriptor','SECTION_BREAK','_isDisposed','formulas','some','startOffset','endOffset','params','entries','EMPTY','presentation','_deleteRegistration','toPrimitive','delete','CUSTOM_BLOCK','decorate','asObservable','unregisterUnit','blockRanges','target','7NzuLnk','externalReferences','getAllUnitsForType','SUCCESS','name','columnGroups','replaceDocRanges','CUSTOM','type','data','expectedReferenceRevision','getCurrentUnitOfType','83076JxeGFL','_resources','onCommandExecuted','function','getLoadError','rangeType','model','undoMutation','filter','redoMutation','sequenceNodesBuilder','stringify','wholeEntity','setConfig','numberFormat','_formulaService','getUnitId','pending','properties','sectionBreaks','lastValue','docs-formula.mutation.set-last-values','pattern','string','serialize','2245890TewPuD','number','stale','_formulaKeys','_setPresentation','set','trim','getFormulaValueSync','sort','includes','find','source','isArray','TABLE_CELL_START','@univerjs-pro/docs-formula','resolved','customRanges','startsWith','docs-formula.mutation.set-formula','_commandService','formulaResult$','getResource','docs-formula.command.convert-to-text','resolveFormula','PENDING','registerCommand','next','BLOCK_END','resourceUndo','getResult','registerProvider','tables','symbol','degradeBody','clear','_resourceManagerService','assess','formula','TABLE_END','references','body','textRuns','_registrations','resourceRedo','_syncScheduled','length'];_0x3422=function(){return _0x4c8776;};return _0x3422();}function _t(_0x3d0297,_0x3369da,_0x24997c,_0x2103d8){const _0x3bcb88=_0x1173d9;_0x2103d8[_0x3bcb88(0x21a)]({'id':_0x3d0297[_0x3bcb88(0x124)]+':'+_0x3d0297[_0x3bcb88(0x217)],'unitID':_0x3d0297[_0x3bcb88(0x224)],'redoMutations':[..._0x3d0297[_0x3bcb88(0x200)][_0x3bcb88(0x1a9)]?[_0x3d0297[_0x3bcb88(0x200)][_0x3bcb88(0x1a9)]]:[],..._0x3369da[_0x3bcb88(0x178)]?[_0x3369da[_0x3bcb88(0x178)]]:[],_0x3369da[_0x3bcb88(0x1e4)]],'undoMutations':[_0x3369da[_0x3bcb88(0x1d5)],..._0x24997c?[_0x24997c]:[],..._0x3d0297['externalMutations'][_0x3bcb88(0x1a7)]?[_0x3d0297[_0x3bcb88(0x200)][_0x3bcb88(0x1a7)]]:[]]});}function J(_0x4eb009){const _0x554d12=_0x1173d9;let _0x34b177=_0x4eb009[_0x554d12(0x20a)][_0x554d12(0x137)](_0x170d7c),_0x92f7af=_0x4eb009[_0x554d12(0x20a)][_0x554d12(0x137)](_0x4c8196),_0x478d64=_0x4eb009['accessor']['get'](_0x764d00),_0x46886c=gt(_0x4eb009);if(!_0x46886c)return!0x1;let _0x1e10b1=!0x1,_0x4884ae=null,_0x26678b=!0x1;try{if(_0x4eb009['externalMutations'][_0x554d12(0x1a9)]){if(!_0x34b177['syncExecuteCommand'](_0x4eb009[_0x554d12(0x200)]['redoMutation']['id'],_0x4eb009[_0x554d12(0x200)]['redoMutation'][_0x554d12(0x187)]))return!0x1;_0x1e10b1=!0x0;}if(_0x46886c['documentRedo']){let _0x2d0fec=_0x34b177[_0x554d12(0x164)](_0x46886c[_0x554d12(0x178)]['id'],_0x46886c[_0x554d12(0x178)][_0x554d12(0x187)]);if(!_0x2d0fec)return bt(_0x34b177,_0x4eb009[_0x554d12(0x200)],_0x1e10b1),!0x1;_0x4884ae={'id':_0x3f9ca3['id'],'params':{..._0x2d0fec,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x34b177['syncExecuteCommand'](_0x46886c['resourceRedo']['id'],_0x46886c['resourceRedo']['params']))return yt(_0x34b177,_0x4884ae),bt(_0x34b177,_0x4eb009[_0x554d12(0x200)],_0x1e10b1),!0x1;_0x26678b=!0x0,_t(_0x4eb009,_0x46886c,_0x4884ae,_0x92f7af);}catch(_0x3000ee){throw _0x26678b&&_0x34b177[_0x554d12(0x164)](_0x46886c[_0x554d12(0x1d5)]['id'],_0x46886c['resourceUndo'][_0x554d12(0x187)]),yt(_0x34b177,_0x4884ae),bt(_0x34b177,_0x4eb009['externalMutations'],_0x1e10b1),_0x3000ee;}return _0x478d64[_0x554d12(0x19a)]([{'startOffset':_0x4eb009['cursorOffset'],'endOffset':_0x4eb009['cursorOffset'],'segmentId':''}],{'unitId':_0x4eb009[_0x554d12(0x224)],'subUnitId':_0x4eb009['unitId']},!0x1,{[_0xc6b882]:!0x0}),!0x0;}function vt(_0x48bf7d,_0x3a5a37,_0xa8e896,_0x5bf202,_0x4edb62,_0xabe66a){let _0x39ea09=xt(_0xa8e896,_0x5bf202,_0x2a5420(_0x48bf7d,''));return _0x39ea09?{'id':_0x3f9ca3['id'],'params':{'unitId':_0x3a5a37,'actions':_0x39ea09,'segmentId':'','textRanges':[{'startOffset':_0x4edb62,'endOffset':_0x4edb62,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0xabe66a}}:null;}function yt(_0x4758ea,_0x118db2){const _0x4f8120=_0x1173d9;_0x118db2&&_0x4758ea[_0x4f8120(0x164)](_0x118db2['id'],_0x118db2[_0x4f8120(0x187)]);}function bt(_0x1205c7,_0x8e95d3,_0xc43223){const _0x4ac44b=_0x1173d9;_0xc43223&&_0x8e95d3[_0x4ac44b(0x1a7)]&&_0x1205c7['syncExecuteCommand'](_0x8e95d3[_0x4ac44b(0x1a7)]['id'],_0x8e95d3[_0x4ac44b(0x1a7)]['params']);}function xt(_0x15049e,_0x18f579,_0x18d815){const _0x3eb0ca=_0x1173d9;let _0x4d4c35=_0x15049e[_0x3eb0ca(0x1e1)],_0x2d3188=_0x18f579[_0x3eb0ca(0x1e1)],_0x20c769=St(_0x4d4c35==null?void 0x0:_0x4d4c35[_0x3eb0ca(0x16d)],_0x2d3188==null?void 0x0:_0x2d3188[_0x3eb0ca(0x16d)]);if(!_0x20c769||!_0x2d3188)return null;let _0xa4a2ff=new _0x2dfabc();return _0xa4a2ff[_0x3eb0ca(0x151)](_0x20c769[_0x3eb0ca(0x1f8)]),_0x20c769['insertLength']>0x0&&_0xa4a2ff[_0x3eb0ca(0x225)](_0x20c769[_0x3eb0ca(0x161)],_0x4b0522(_0x2d3188,_0x20c769[_0x3eb0ca(0x1f8)],_0x20c769[_0x3eb0ca(0x1f8)]+_0x20c769[_0x3eb0ca(0x161)],!0x1)),_0x20c769[_0x3eb0ca(0x1fa)]>0x0&&_0xa4a2ff[_0x3eb0ca(0x18d)](_0x20c769[_0x3eb0ca(0x1fa)]),_0x534e11['getInstance']()[_0x3eb0ca(0x12b)](_0xa4a2ff[_0x3eb0ca(0x1b8)](),_0x18d815);}function St(_0x2da270,_0x5677aa){const _0x79a244=_0x1173d9;if(_0x2da270==null||_0x5677aa==null||_0x2da270===_0x5677aa)return null;let _0x51af1e=0x0;for(;_0x51af1e<_0x2da270[_0x79a244(0x1e6)]&&_0x51af1e<_0x5677aa[_0x79a244(0x1e6)]&&_0x2da270[_0x51af1e]===_0x5677aa[_0x51af1e];)_0x51af1e+=0x1;let _0x1ce552=_0x2da270[_0x79a244(0x1e6)],_0x54d8ff=_0x5677aa[_0x79a244(0x1e6)];for(;_0x1ce552>_0x51af1e&&_0x54d8ff>_0x51af1e&&_0x2da270[_0x1ce552-0x1]===_0x5677aa[_0x54d8ff-0x1];)--_0x1ce552,--_0x54d8ff;return{'start':_0x51af1e,'deleteLength':_0x1ce552-_0x51af1e,'insertLength':_0x54d8ff-_0x51af1e};}function Ct(_0x254afd){const _0x15ada6=_0x1173d9;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x15ada6(0x188)](_0x254afd[_0x15ada6(0x183)])['map'](([_0x136fb5,_0x3244f0])=>[_0x136fb5,{..._0x3244f0,..._0x3244f0[_0x15ada6(0x1ae)]?{'numberFormat':{..._0x3244f0['numberFormat']}}:null,..._0x3244f0[_0x15ada6(0x1b4)]?{'lastValue':{..._0x3244f0[_0x15ada6(0x1b4)]}}:null}]))};}let Y=class extends _0x487bea{constructor(_0x3cfcc8,_0x28010e,_0x395821,_0x310242){const _0x2e64a6=_0x1173d9;super(),this['_instanceService']=_0x3cfcc8,this[_0x2e64a6(0x1cc)]=_0x28010e,this[_0x2e64a6(0x20f)]=_0x395821,this[_0x2e64a6(0x173)]=_0x310242,N(this,_0x2e64a6(0x163),new Set()),N(this,_0x2e64a6(0x1e5),!0x1),N(this,_0x2e64a6(0x182),!0x1),this[_0x2e64a6(0x12f)][_0x2e64a6(0x196)](_0xe966be[_0x2e64a6(0x129)])[_0x2e64a6(0x146)](_0x4c8f31=>this[_0x2e64a6(0x173)]['syncUnit'](_0x4c8f31)),this[_0x2e64a6(0x140)](this[_0x2e64a6(0x20f)]['change$'][_0x2e64a6(0x1f7)](({unitId:_0xdb5f91})=>this[_0x2e64a6(0x149)](_0xdb5f91))),this['disposeWithMe'](this[_0x2e64a6(0x12f)][_0x2e64a6(0x220)][_0x2e64a6(0x1f7)](({unit:_0x661d02})=>{const _0x11b60b=_0x2e64a6;_0x661d02[_0x11b60b(0x19c)]===_0xe966be[_0x11b60b(0x129)]&&this[_0x11b60b(0x21c)](_0x661d02[_0x11b60b(0x1b0)]());})),this['disposeWithMe'](this[_0x2e64a6(0x12f)]['unitDisposed$'][_0x2e64a6(0x1f7)](_0x11c08d=>{const _0x1e715b=_0x2e64a6;this[_0x1e715b(0x173)][_0x1e715b(0x191)](_0x11c08d[_0x1e715b(0x1b0)]());})),this[_0x2e64a6(0x140)](this[_0x2e64a6(0x1cc)][_0x2e64a6(0x1a2)](_0x1d52f7=>{const _0x56a7e2=_0x2e64a6;if(_0x1d52f7['id']===_0x3f9ca3['id']&&wt(_0x1d52f7[_0x56a7e2(0x187)])){let _0xe7b0d3=_0x1d52f7['params'];_0xe7b0d3[_0x56a7e2(0x209)]||this['_syncUnit'](_0xe7b0d3[_0x56a7e2(0x224)]);}}));}[_0x1173d9(0x20b)](){const _0x406e13=_0x1173d9;this[_0x406e13(0x182)]=!0x0,super[_0x406e13(0x20b)]();}['_queueSync'](_0x5dff50){const _0x4dc032=_0x1173d9;this[_0x4dc032(0x163)][_0x4dc032(0x213)](_0x5dff50),!this[_0x4dc032(0x1e5)]&&(this['_syncScheduled']=!0x0,queueMicrotask(()=>{const _0xbca49c=_0x4dc032;if(this[_0xbca49c(0x1e5)]=!0x1,this[_0xbca49c(0x182)])return;let _0x4682ee=Array[_0xbca49c(0x16f)](this[_0xbca49c(0x163)]);this[_0xbca49c(0x163)][_0xbca49c(0x1db)](),_0x4682ee[_0xbca49c(0x146)](_0x3dd17c=>this['_syncUnit'](_0x3dd17c));}));}[_0x1173d9(0x149)](_0x14351a){const _0x2834dc=_0x1173d9;let _0x2b6464=this['_instanceService'][_0x2834dc(0x171)](_0x14351a,_0xe966be[_0x2834dc(0x129)]);_0x2b6464&&this[_0x2834dc(0x173)][_0x2834dc(0x1fb)](_0x2b6464);}};Y=I([F(0x0,_0x1cb79e),F(0x1,_0x170d7c),F(0x2,_0x41fe0f(P)),F(0x3,_0x41fe0f(L))],Y);function wt(_0x54ac4b){const _0x2945b7=_0x1173d9;return typeof _0x54ac4b==_0x2945b7(0x21d)&&!!_0x54ac4b&&_0x2945b7(0x224)in _0x54ac4b&&typeof _0x54ac4b[_0x2945b7(0x224)]=='string'&&(!('segmentId'in _0x54ac4b)||_0x54ac4b['segmentId']===void 0x0||typeof _0x54ac4b[_0x2945b7(0x209)]==_0x2945b7(0x1b7));}let X=class extends _0x487bea{constructor(_0x1911a1,_0x2c27cd){const _0x350c54=_0x1173d9;super(),this[_0x350c54(0x1dc)]=_0x1911a1,this[_0x350c54(0x158)]=_0x2c27cd,this[_0x350c54(0x140)](this['_resourceManagerService']['registerPluginResource']({'pluginName':y,'businesses':[_0xe966be[_0x350c54(0x129)]],'toJson':_0x14d3ec=>JSON[_0x350c54(0x1ab)](this['_docFormulaModel'][_0x350c54(0x1b8)](_0x14d3ec)),'parseJson':_0x149cdf=>JSON[_0x350c54(0x134)](_0x149cdf),'onLoad':(_0x43465b,_0x563f6c)=>{const _0x3cb6af=_0x350c54;this[_0x3cb6af(0x158)][_0x3cb6af(0x1eb)](_0x43465b,_0x563f6c);},'onUnLoad':_0x343176=>this['_docFormulaModel']['removeUnit'](_0x343176)}));}};X=I([F(0x0,_0x39a957),F(0x1,_0x41fe0f(P))],X);var Tt=_0x1173d9(0x1c7),Et=_0x1173d9(0x17b);const Dt={};let Z=class extends _0x487bea{constructor(_0x40b010,_0x530121,_0x2e5301){const _0x293eeb=_0x1173d9;super(),this[_0x293eeb(0x214)]=_0x40b010,this['_formulaService']=_0x530121,this[_0x293eeb(0x140)](_0x2e5301[_0x293eeb(0x218)]({'resolve':(_0x4bca58,_0x14c198)=>{const _0x7b010f=_0x293eeb;var _0x46d525;return((_0x46d525=_0x14c198[_0x7b010f(0x1c9)])==null?void 0x0:_0x46d525[_0x7b010f(0x1a8)](w)[_0x7b010f(0x17f)](_0x2b0310=>({'startOffset':_0x2b0310[_0x7b010f(0x1f9)],'endOffset':_0x2b0310[_0x7b010f(0x15e)]+0x1,'text':this[_0x7b010f(0x1d0)](_0x4bca58,_0x2b0310[_0x7b010f(0x217)])})))??[];}})),this[_0x293eeb(0x140)](this['_formulaService'][_0x293eeb(0x14f)]['subscribe'](({unitId:_0x203a35})=>{const _0x24f01f=_0x293eeb;_0x2e5301[_0x24f01f(0x15a)](_0x203a35);}));}[_0x1173d9(0x1d0)](_0x258f71,_0x5af4c2){const _0xd28414=_0x1173d9;var _0x32d4f3;return((_0x32d4f3=this[_0xd28414(0x1af)][_0xd28414(0x1d6)]({'unitId':_0x258f71,'rangeId':_0x5af4c2}))==null?void 0x0:_0x32d4f3[_0xd28414(0x204)])??'';}['resolveText'](_0x3b4b3c,_0x2f656c,_0x4c264e){const _0x4cdc2f=_0x1173d9;var _0x2351bc;let _0x3fcec0=this[_0x4cdc2f(0x214)][_0x4cdc2f(0x171)](_0x3b4b3c,_0xe966be[_0x4cdc2f(0x129)]),_0x4b2e5e=_0x3fcec0==null?void 0x0:_0x3fcec0[_0x4cdc2f(0x136)]();if(!_0x4b2e5e)return'';let _0x1ba27d=_0x4b2e5e[_0x4cdc2f(0x16d)][_0x4cdc2f(0x12a)](_0x2f656c,_0x4c264e),_0x50c4a2=((_0x2351bc=_0x4b2e5e[_0x4cdc2f(0x1c9)])==null?void 0x0:_0x2351bc['filter'](_0xae838b=>w(_0xae838b)&&_0xae838b[_0x4cdc2f(0x1f9)]>=_0x2f656c&&_0xae838b[_0x4cdc2f(0x15e)]<_0x4c264e)[_0x4cdc2f(0x1c1)]((_0x2cb657,_0x53ea5d)=>_0x53ea5d[_0x4cdc2f(0x1f9)]-_0x2cb657['startIndex']))??[];for(let _0x2b28bc of _0x50c4a2){let _0x4ccd6e=_0x2b28bc[_0x4cdc2f(0x1f9)]-_0x2f656c,_0xce07b9=_0x2b28bc[_0x4cdc2f(0x15e)]-_0x2f656c+0x1;_0x1ba27d=''+_0x1ba27d[_0x4cdc2f(0x12a)](0x0,_0x4ccd6e)+this[_0x4cdc2f(0x1d0)](_0x3b4b3c,_0x2b28bc[_0x4cdc2f(0x217)])+_0x1ba27d[_0x4cdc2f(0x12a)](_0xce07b9);}return _0x1ba27d;}[_0x1173d9(0x14a)](_0x4881a3){return Ot(_0x4881a3);}[_0x1173d9(0x1da)](_0x97f622,_0x20c977,_0x1fd7cf={}){const _0x2d6d64=_0x1173d9;var _0x4b4994;return Ve({'id':_0x97f622,'body':_0x20c977,'documentStyle':{}},(((_0x4b4994=_0x20c977[_0x2d6d64(0x1c9)])==null?void 0x0:_0x4b4994[_0x2d6d64(0x1a8)](w))??[])[_0x2d6d64(0x17f)](_0x196365=>({'rangeId':_0x196365[_0x2d6d64(0x217)],'text':_0x1fd7cf[_0x196365[_0x2d6d64(0x217)]]??this[_0x2d6d64(0x1d0)](_0x97f622,_0x196365[_0x2d6d64(0x217)])})))['body']??{'dataStream':''};}};Z=I([F(0x0,_0x1cb79e),F(0x1,_0x41fe0f(L)),F(0x2,_0x41fe0f(_0x325458))],Z);function Ot(_0x519f12){const _0x380a87=_0x1173d9;var _0x49b484,_0x37d529;let _0xa28baf=kt(_0x519f12),_0x107ce3=Ve(_0x519f12,(((_0x49b484=_0x519f12[_0x380a87(0x1e1)])==null||(_0x49b484=_0x49b484[_0x380a87(0x1c9)])==null?void 0x0:_0x49b484['filter'](w))??[])[_0x380a87(0x17f)](_0x1f06ad=>({'rangeId':_0x1f06ad[_0x380a87(0x217)],'text':At(_0xa28baf==null?void 0x0:_0xa28baf[_0x380a87(0x183)][_0x1f06ad[_0x380a87(0x217)]])})));return _0x107ce3['resources']=(_0x37d529=_0x107ce3[_0x380a87(0x138)])==null?void 0x0:_0x37d529[_0x380a87(0x1a8)](_0x139adf=>_0x139adf[_0x380a87(0x198)]!==y),_0x107ce3;}function kt(_0x39a30a){const _0x2795f6=_0x1173d9;var _0x2ef6b8;let _0x477e3d=(_0x2ef6b8=_0x39a30a[_0x2795f6(0x138)])==null||(_0x2ef6b8=_0x2ef6b8[_0x2795f6(0x1c3)](_0x572050=>_0x572050[_0x2795f6(0x198)]===_0x2795f6(0x13b)))==null?void 0x0:_0x2ef6b8[_0x2795f6(0x19d)];if(_0x477e3d)try{let _0x58517f=JSON[_0x2795f6(0x134)](_0x477e3d);return x(_0x58517f)?_0x58517f:void 0x0;}catch{return;}}function At(_0x31d04c){const _0x11e419=_0x1173d9;return _0x31d04c?_0x32521a({'lastValue':_0x31d04c[_0x11e419(0x1b4)],'numberFormat':_0x31d04c[_0x11e419(0x1ae)]})[_0x11e419(0x204)]:'';}let Q=class extends _0x487bea{constructor(_0x3dbb03,_0x49c850,_0x23d8c8){const _0x5dae5d=_0x1173d9;super(),this[_0x5dae5d(0x1af)]=_0x3dbb03,this[_0x5dae5d(0x125)]=_0x49c850,this['disposeWithMe'](_0x23d8c8[_0x5dae5d(0x1d7)](this));}[_0x1173d9(0x176)](_0x3387a5){const _0x2cd3ba=_0x1173d9;let _0x511e21=new Map();for(let _0x3a8e50 of this[_0x2cd3ba(0x1af)][_0x2cd3ba(0x21e)]()){var _0x3fbb0d;if(!this[_0x2cd3ba(0x125)][_0x2cd3ba(0x1dd)](_0x3a8e50[_0x2cd3ba(0x216)]['formula'],_0x3a8e50[_0x2cd3ba(0x208)])[_0x2cd3ba(0x162)])continue;let _0x11c2b1=_0x3d55cd(_0x3a8e50['liveResult']),_0x419ecb=_0x11c2b1?_0x24052f(_0x11c2b1):null;if(!_0x419ecb||jt(_0x3a8e50[_0x2cd3ba(0x216)][_0x2cd3ba(0x1b4)],_0x419ecb))continue;let _0x23dffa=_0x511e21[_0x2cd3ba(0x137)](_0x3a8e50[_0x2cd3ba(0x212)][_0x2cd3ba(0x224)])??[];_0x23dffa['push']({'rangeId':_0x3a8e50[_0x2cd3ba(0x212)]['rangeId'],'expectedFormula':_0x3a8e50[_0x2cd3ba(0x216)][_0x2cd3ba(0x1de)],'expectedNumberFormat':(_0x3fbb0d=_0x3a8e50[_0x2cd3ba(0x216)]['numberFormat'])==null?void 0x0:_0x3fbb0d[_0x2cd3ba(0x1b6)],'expectedReferenceRevision':_0x3a8e50['referenceRevision'],'lastValue':_0x419ecb}),_0x511e21['set'](_0x3a8e50['identity'][_0x2cd3ba(0x224)],_0x23dffa);}return Array['from'](_0x511e21,([_0x26ed44,_0x48b95e])=>({'id':H['id'],'params':{'unitId':_0x26ed44,'updates':_0x48b95e}}));}};Q=I([F(0x0,_0x41fe0f(L)),F(0x1,_0x41fe0f(_0x4ef013)),F(0x2,_0x41fe0f(_0x29264c))],Q);function jt(_0x49249a,_0x5412fd){const _0x497c30=_0x1173d9;return(_0x49249a==null?void 0x0:_0x49249a['v'])===_0x5412fd['v']&&(_0x49249a==null?void 0x0:_0x49249a['t'])===_0x5412fd['t']&&(_0x49249a==null?void 0x0:_0x49249a[_0x497c30(0x1b6)])===_0x5412fd[_0x497c30(0x1b6)];}let $=class extends _0x31da3e{constructor(_0x349e75=Dt,_0x2a4852,_0x2d7a28,_0x42a1b3){const _0x587a79=_0x1173d9;super(),this[_0x587a79(0x174)]=_0x349e75,this[_0x587a79(0x1e8)]=_0x2a4852,this[_0x587a79(0x1cc)]=_0x2d7a28,this[_0x587a79(0x144)]=_0x42a1b3;let {..._0x53be4e}=_0x1b50a3({},Dt,this[_0x587a79(0x174)]);this['_configService'][_0x587a79(0x1ad)]('docs-formula.config',_0x53be4e);}[_0x1173d9(0x20d)](){const _0x17f315=_0x1173d9;this[_0x17f315(0x1e8)][_0x17f315(0x213)]([P]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([L]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([X]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([Y]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([Q]),this[_0x17f315(0x1e8)][_0x17f315(0x213)]([Z]),_0x218854(this[_0x17f315(0x1e8)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt]['forEach'](_0x1bff6f=>this[_0x17f315(0x140)](this[_0x17f315(0x1cc)][_0x17f315(0x1d2)](_0x1bff6f)));}};N($,_0x1173d9(0x141),y),N($,_0x1173d9(0x13f),Tt),N($,_0x1173d9(0x152),Et),N($,'type',_0xe966be[_0x1173d9(0x129)]),$=I([_0x192577(_0x221e8d,_0x2ac530,_0x48ceb4),F(0x1,_0x41fe0f(_0x4a690a)),F(0x2,_0x170d7c),F(0x3,_0x335e00)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
1
+ const _0x217dd1=_0x28ce;(function(_0x46f8fe,_0x367206){const _0x4b8495=_0x28ce,_0x539628=_0x46f8fe();while(!![]){try{const _0x49ee4b=parseInt(_0x4b8495(0x1a9))/0x1*(-parseInt(_0x4b8495(0x185))/0x2)+-parseInt(_0x4b8495(0x1d4))/0x3+-parseInt(_0x4b8495(0x1a3))/0x4+-parseInt(_0x4b8495(0x216))/0x5*(-parseInt(_0x4b8495(0x1f7))/0x6)+parseInt(_0x4b8495(0x15d))/0x7+parseInt(_0x4b8495(0x176))/0x8+parseInt(_0x4b8495(0x16f))/0x9;if(_0x49ee4b===_0x367206)break;else _0x539628['push'](_0x539628['shift']());}catch(_0x525b63){_0x539628['push'](_0x539628['shift']());}}}(_0x2a6f,0x27eb7));import{FormulaCacheEligibilityService as _0x4f9c1c,FormulaLastValuePersistenceService as _0x12a840,HostExternalReferenceModel as _0x506168,UniverProFormulaEnginePlugin as _0x5bf116,buildUpsertHostExternalReferenceMutations as _0x41a736,collectFormulaExternalReferenceQualifiers as _0x7f61b,getScalarFormulaResultCell as _0x2973cb,resolveFormulaResultPresentation as _0x27458f,resolveHostFormulaExternalReferences as _0x4805eb,toFormulaLastValue as _0x1b8769}from'@univerjs-pro/engine-formula';function _0x2a6f(){const _0x5001ba=['resourceUndo','decorate','_syncScheduled','function','registerFormulaWithRange','paragraphs','documentRedo','_docFormulaModel','getUnitId','BLOCK_START','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','resources','removeUnit','documentData','sectionBreaks','some','min','params','name','customDecorations','MUTATION','stale','_presentationChanged$','resolveBinding','resource','start','set','@univerjs-pro/docs-formula','1212504ZGGcLS','segmentId','filter','includes','registerCommand','undoMutation','1fWHpzb','docs-formula.command.replace-with-text','formula','ERROR','docs-formula.mutation.set-last-values','pending','getCurrentUnitOfType','getPresentation','COLUMN_GROUP_START','forEach','docs-formula.command.update','_loadErrors','startsWith','COLUMN_START','_registrations','CUSTOM_BLOCK','sort','config','delete','removeFormula','setResource','_registrationService','selection','packageName','disabled','TABLE_ROW_START','deepClone','prototype','_change$','startOffset','_deleteRegistration','identity','referenceRevision','subscribe','serialize','resourceRedo','textRuns','columnGroups','_commandService','replaceDocRanges','resolveText','cursorOffset','COLUMN_GROUP_END','401436FfHSeE','iterator','BLOCK_END','formulas','asObservable','rangeType','lastValue','setFormula','_configService','docs-formula.command.remove','trim','customBlocks','onStarting','keys','add','register','_formulaService','TABLE_CELL_START','resolveFormula','startIndex','_preserveInvalid','setConfig','object','properties','onCommandExecuted','_resourceManagerService','_pendingUnitIds','_setPresentation','expectedNumberFormat','syncUnit','TABLE_END','TABLE_START','PENDING','has','nextDocumentData','678WPGouz','load','insertLength','getResource','_service','endIndex','toPrimitive','type','_syncUnit','setFormulas','text','liveResult','range','externalReferences','getRegisteredFormulas','tables','formulaId','_config','registerProvider','source','values','pluginName','_hostExternalReferenceModel','kind','success','customRanges','document','SECTION_BREAK','getFormula','unregister','cell','10445LWiqKQ','SUCCESS','registerPluginResource','accessor','target','call','eligible','clear','parse','get','body','change$','empty','COMMAND','EMPTY','fromEntries','complete','wholeEntity','pattern','_isDisposed','presentationChanged$','degradeBody','getRevision','defineProperty','string','_formulaKeys','paragraphId','presentation','1.3.1','color','blockRanges','_model','_rawResources','univer-docs-formula','docs-formula.command.insert','insert','model','push','getResult','schemaVersion','endsWith','rangeId','previousResource','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','disposeWithMe','PARAGRAPH','COLUMN_END','getAllUnitsForType','default','notifyTextChanged','isInteger','trigger','max','symbol','_injector','assess','DOC','pushUndoRedo','previousDocumentData','dataStream','docs-formula.mutation.remove-formula','every','DOC_FORMULA_PLUGIN','_resources','updates','nextResource','from','externalMutations','dispose','934423hyRHut','paragraph','slice','getFormulaValueSync','position','_instanceService','unsupported-version','map','unitDisposed$','_updateFormulaResult','error','docs-formula.mutation.set-resource','getSnapshot','redoMutation','_cacheEligibilityService','getUnit','assign','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','4028418nDJBBX','syncExecuteCommand','length','endOffset','unitId','find','expectedFormula','188096Hblvxl','docs-formula.config','next','numberFormat','references','status','unregisterUnit','expectedReferenceRevision','getInstance','UNIVER_DOC','resolved','data','getFormulas','entries','_queueSync','480422kVEUoa','boolean'];_0x2a6f=function(){return _0x5001ba;};return _0x2a6f();}import{CellValueType as _0xddeba6,CommandType as _0x5f1099,CustomRangeType as _0xa7b507,DataStreamTreeTokenType as _0x303d23,DependentOn as _0x4eb3b4,Disposable as _0x18377d,ICommandService as _0x41c106,IConfigService as _0x35fc54,IResourceManagerService as _0x2d200b,IUndoRedoService as _0xe640ba,IUniverInstanceService as _0x147b46,Inject as _0x5e32df,Injector as _0x11059a,JSONX as _0x267617,Plugin as _0x2b73e4,TextX as _0x52174a,Tools as _0x4b0aab,UniverInstanceType as _0x138c8e,generateRandomId as _0x25429d,getBodySliceForTextXAction as _0x252b2a,getCustomRangeInterval as _0x1c91d3,getParagraphContentStartOffset as _0x480edf,getRichTextEditPath as _0x2ed637,merge as _0x59447c,shiftExclusiveRangeOnDelete as _0x24c8e7,shiftExclusiveRangeOnInsert as _0x7fd50e,shiftInclusiveRangeOnDelete as _0x23a1d4,shiftInclusiveRangeOnInsert as _0x4fc859,touchDependencies as _0x53385a}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x173f0a,DocSelectionManagerService as _0x3e1e55,DocTextResolverService as _0xbd430a,RichTextEditingMutation as _0x2dc975,UniverDocsPlugin as _0x50ecdf}from'@univerjs/docs';import{FormulaResultStatus as _0x5815e0,LexerTreeBuilder as _0x3a97e6,OtherFormulaBizType as _0x3508be,RegisterOtherFormulaService as _0x51a6f6}from'@univerjs/engine-formula';import{Subject as _0x2b03f3}from'rxjs';import{UniverLicensePlugin as _0x3855ef}from'@univerjs-pro/license';const y=_0x217dd1(0x156),je=0x1,Me=_0x217dd1(0x237),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x33a8b7){const _0x36fccf=_0x217dd1;return!_0x33a8b7||typeof _0x33a8b7!=_0x36fccf(0x1ea)||!S(_0x33a8b7,['schemaVersion','formulas'])||!(_0x36fccf(0x23d)in _0x33a8b7)||_0x33a8b7[_0x36fccf(0x23d)]!==0x1||!(_0x36fccf(0x1d7)in _0x33a8b7)||!_0x33a8b7[_0x36fccf(0x1d7)]||typeof _0x33a8b7['formulas']!=_0x36fccf(0x1ea)||Array['isArray'](_0x33a8b7[_0x36fccf(0x1d7)])?!0x1:Object[_0x36fccf(0x183)](_0x33a8b7[_0x36fccf(0x1d7)])[_0x36fccf(0x155)](([_0x6631b6,_0x370f0d])=>_0x6631b6[_0x36fccf(0x171)]>0x0&&Pe(_0x370f0d));}function Pe(_0x3a0550){const _0xd093a5=_0x217dd1;return!_0x3a0550||typeof _0x3a0550!=_0xd093a5(0x1ea)||!S(_0x3a0550,['formula',_0xd093a5(0x179),_0xd093a5(0x1da)])||!('formula'in _0x3a0550)||typeof _0x3a0550[_0xd093a5(0x1ab)]!=_0xd093a5(0x22e)||!_0x3a0550[_0xd093a5(0x1ab)][_0xd093a5(0x1de)]()||_0xd093a5(0x179)in _0x3a0550&&_0x3a0550['numberFormat']!=null&&(typeof _0x3a0550[_0xd093a5(0x179)]!=_0xd093a5(0x1ea)||!S(_0x3a0550[_0xd093a5(0x179)],['pattern'])||!('pattern'in _0x3a0550[_0xd093a5(0x179)])||typeof _0x3a0550[_0xd093a5(0x179)]['pattern']!=_0xd093a5(0x22e))?!0x1:!(_0xd093a5(0x1da)in _0x3a0550)||_0x3a0550['lastValue']==null||Fe(_0x3a0550[_0xd093a5(0x1da)]);}function Fe(_0x3ebafb){const _0x41a85e=_0x217dd1;return!_0x3ebafb||typeof _0x3ebafb!=_0x41a85e(0x1ea)||!S(_0x3ebafb,['v','t','pattern'])||!('v'in _0x3ebafb)||_0x3ebafb['v']!==null&&typeof _0x3ebafb['v']!=_0x41a85e(0x22e)&&typeof _0x3ebafb['v']!='number'&&typeof _0x3ebafb['v']!=_0x41a85e(0x186)||'t'in _0x3ebafb&&_0x3ebafb['t']!=null&&!Ie(_0x3ebafb['t'])?!0x1:!(_0x41a85e(0x228)in _0x3ebafb)||_0x3ebafb[_0x41a85e(0x228)]==null||typeof _0x3ebafb[_0x41a85e(0x228)]=='string';}function S(_0x5b0a55,_0x8a7a09){const _0x468ad9=_0x217dd1;let _0x3d2801=new Set(_0x8a7a09);return Object[_0x468ad9(0x1e1)](_0x5b0a55)[_0x468ad9(0x155)](_0x27fb88=>_0x3d2801[_0x468ad9(0x1f5)](_0x27fb88));}function Ie(_0x11b8d7){const _0x409c5b=_0x217dd1;return typeof _0x11b8d7=='number'&&Object[_0x409c5b(0x20b)](_0xddeba6)['includes'](_0x11b8d7);}const Le=new Set([_0x303d23[_0x217dd1(0x212)],_0x303d23[_0x217dd1(0x1f3)],_0x303d23[_0x217dd1(0x1c2)],_0x303d23[_0x217dd1(0x1e5)],_0x303d23['TABLE_CELL_END'],_0x303d23['TABLE_ROW_END'],_0x303d23[_0x217dd1(0x1f2)],_0x303d23[_0x217dd1(0x1b1)],_0x303d23[_0x217dd1(0x1b6)],_0x303d23[_0x217dd1(0x146)],_0x303d23[_0x217dd1(0x1d3)],_0x303d23[_0x217dd1(0x190)],_0x303d23[_0x217dd1(0x1d6)],_0x303d23[_0x217dd1(0x1b8)]]);var C=class extends Error{constructor(){const _0x20acbb=_0x217dd1;super(_0x20acbb(0x16e));}};function Re(_0x4a6acb){const _0x4419c5=_0x217dd1;var _0x1ba3ff,_0x411f1a;let _0x49217f=_0x4b0aab[_0x4419c5(0x1c3)](_0x4a6acb[_0x4419c5(0x194)]),_0x5c4c05=j(_0x49217f),{startOffset:_0x1871ab,endOffset:_0x32eb06}=We(_0x5c4c05,_0x4a6acb[_0x4419c5(0x1c6)],_0x4a6acb[_0x4419c5(0x172)]);He(_0x5c4c05,_0x1871ab,_0x32eb06);let _0x327859=((_0x1ba3ff=_0x5c4c05[_0x4419c5(0x210)])==null?void 0x0:_0x1ba3ff[_0x4419c5(0x1a5)](_0x17b629=>{const _0x59dd0c=_0x4419c5;if(!w(_0x17b629))return!0x1;let _0x1b1cea=_0x1c91d3(_0x17b629);return _0x1b1cea[_0x59dd0c(0x172)]>_0x1871ab&&_0x1b1cea[_0x59dd0c(0x1c6)]<_0x32eb06;})[_0x4419c5(0x164)](_0x4e9a92=>_0x4e9a92[_0x4419c5(0x141)]))??[];qe(_0x5c4c05,_0x1871ab,_0x32eb06,''),_0x5c4c05[_0x4419c5(0x210)]=[...((_0x411f1a=_0x5c4c05['customRanges'])==null?void 0x0:_0x411f1a[_0x4419c5(0x1a5)](_0x2ffe1c=>!_0x327859[_0x4419c5(0x1a6)](_0x2ffe1c[_0x4419c5(0x141)])&&_0x2ffe1c[_0x4419c5(0x141)]!==_0x4a6acb['rangeId']))??[],Ue(_0x4a6acb['rangeId'],_0x1871ab)][_0x4419c5(0x1b9)]((_0x52181d,_0x4b8459)=>_0x52181d[_0x4419c5(0x1e7)]-_0x4b8459[_0x4419c5(0x1e7)]);let _0x5e8aba=E(_0x4a6acb[_0x4419c5(0x19f)]);return _0x327859[_0x4419c5(0x1b2)](_0x4d61e3=>{const _0x4c2845=_0x4419c5;delete _0x5e8aba[_0x4c2845(0x1d7)][_0x4d61e3];}),_0x5e8aba['formulas'][_0x4a6acb[_0x4419c5(0x141)]]=_0x4b0aab[_0x4419c5(0x1c3)](_0x4a6acb[_0x4419c5(0x1ba)]),{'nextDocumentData':_0x49217f,'nextResource':_0x5e8aba,'cursorOffset':_0x1871ab+0x1};}function ze(_0x2a5355){const _0x305353=_0x217dd1;var _0x52a14b,_0x8e6589;let _0x3155b6=_0x4b0aab[_0x305353(0x1c3)](_0x2a5355[_0x305353(0x194)]),_0x4e7961=(_0x52a14b=j(_0x3155b6)[_0x305353(0x210)])==null?void 0x0:_0x52a14b[_0x305353(0x174)](_0x2bf86a=>_0x2bf86a[_0x305353(0x141)]===_0x2a5355['rangeId']&&w(_0x2bf86a));if(!_0x4e7961||!((_0x8e6589=_0x2a5355[_0x305353(0x19f)])!=null&&_0x8e6589['formulas'][_0x2a5355[_0x305353(0x141)]]))return null;let _0x28ee8e=E(_0x2a5355[_0x305353(0x19f)]);return _0x28ee8e[_0x305353(0x1d7)][_0x2a5355['rangeId']]=_0x4b0aab[_0x305353(0x1c3)](_0x2a5355[_0x305353(0x1ba)]),{'nextDocumentData':_0x3155b6,'nextResource':_0x28ee8e,'cursorOffset':_0x4e7961[_0x305353(0x1fc)]+0x1};}function Be(_0x4a14ed){const _0x3cd6cd=_0x217dd1;let _0x31de7a=_0x4b0aab[_0x3cd6cd(0x1c3)](_0x4a14ed['documentData']),_0x869cfd=Je(_0x31de7a,_0x4a14ed[_0x3cd6cd(0x141)],_0x4a14ed['text']??'');if(_0x869cfd==null)return null;let _0x347600=E(_0x4a14ed[_0x3cd6cd(0x19f)]);return delete _0x347600['formulas'][_0x4a14ed[_0x3cd6cd(0x141)]],{'nextDocumentData':_0x31de7a,'nextResource':_0x347600,'cursorOffset':_0x869cfd};}function Ve(_0x29c320,_0xf9c3a3){const _0x50ccbe=_0x217dd1;var _0x1c1ec1;let _0x3bcd60=_0x4b0aab[_0x50ccbe(0x1c3)](_0x29c320),_0x73ac89=_0x3bcd60['body'];if(!_0x73ac89)return _0x3bcd60;let _0x106e29=new Map(_0xf9c3a3[_0x50ccbe(0x164)](_0x182596=>[_0x182596['rangeId'],_0x182596[_0x50ccbe(0x201)]])),_0x418691=((_0x1c1ec1=_0x73ac89[_0x50ccbe(0x210)])==null?void 0x0:_0x1c1ec1[_0x50ccbe(0x1a5)](_0x547723=>w(_0x547723)&&_0x106e29['has'](_0x547723['rangeId']))[_0x50ccbe(0x1b9)]((_0x342876,_0x44931a)=>_0x44931a[_0x50ccbe(0x1e7)]-_0x342876[_0x50ccbe(0x1e7)]))??[];for(let _0x5162cd of _0x418691)Je(_0x3bcd60,_0x5162cd[_0x50ccbe(0x141)],_0x106e29[_0x50ccbe(0x21f)](_0x5162cd[_0x50ccbe(0x141)])??'');return _0x3bcd60;}function w(_0xc40f0d){const _0x31a015=_0x217dd1;var _0x4a24ad;return(_0xc40f0d==null?void 0x0:_0xc40f0d[_0x31a015(0x1d9)])===_0xa7b507['CUSTOM']&&_0xc40f0d[_0x31a015(0x227)]===!0x0&&((_0x4a24ad=_0xc40f0d[_0x31a015(0x1eb)])==null?void 0x0:_0x4a24ad[_0x31a015(0x20e)])==='univer-docs-formula';}function T(_0x572dc0,_0x79dd3c){const _0x33104d=_0x217dd1;var _0x452856;return _0x572dc0==null||(_0x452856=_0x572dc0['customRanges'])==null?void 0x0:_0x452856[_0x33104d(0x174)](_0x6bd752=>_0x6bd752[_0x33104d(0x141)]===_0x79dd3c&&w(_0x6bd752));}function He(_0x4a2854,_0x564262,_0x424f1b){const _0x59d0cf=_0x217dd1;if(_0x564262===_0x424f1b){if(Le[_0x59d0cf(0x1f5)](_0x4a2854['dataStream'][_0x564262]))throw new C();}else{for(let _0x424c5f=_0x564262;_0x424c5f<_0x424f1b;_0x424c5f++)if(_0x4a2854['dataStream'][_0x424c5f]===_0x303d23[_0x59d0cf(0x145)]||Le[_0x59d0cf(0x1f5)](_0x4a2854[_0x59d0cf(0x153)][_0x424c5f]))throw new C();}}function Ue(_0x30aca8,_0x47649f){return{'startIndex':_0x47649f,'endIndex':_0x47649f,'rangeId':_0x30aca8,'rangeType':_0xa7b507['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x3f848f){const _0x19fd63=_0x217dd1;return _0x3f848f?_0x4b0aab[_0x19fd63(0x1c3)](_0x3f848f):b();}function We(_0x2a0fc2,_0x3dc998,_0x53b50b){const _0x3cde51=_0x217dd1;let _0x215701=Ke(_0x2a0fc2),_0x242159=_0x3dc998??_0x215701,_0x188ab8=_0x53b50b??_0x242159;return{'startOffset':Ge(Math['min'](_0x242159,_0x188ab8),_0x215701),'endOffset':Ge(Math[_0x3cde51(0x14c)](_0x242159,_0x188ab8),_0x215701)};}function Ge(_0x277a78,_0x222d67){const _0x160741=_0x217dd1;return Math[_0x160741(0x14c)](0x0,Math['min'](_0x277a78,_0x222d67));}function Ke(_0x2270fa){const _0x2ae970=_0x217dd1;return _0x2270fa[_0x2ae970(0x153)][_0x2ae970(0x140)](''+_0x303d23[_0x2ae970(0x145)]+_0x303d23[_0x2ae970(0x212)])?Math['max'](0x0,_0x2270fa['dataStream']['length']-0x2):_0x2270fa[_0x2ae970(0x153)][_0x2ae970(0x140)](_0x303d23[_0x2ae970(0x212)])?Math[_0x2ae970(0x14c)](0x0,_0x2270fa[_0x2ae970(0x153)]['length']-0x1):_0x2270fa[_0x2ae970(0x153)]['length'];}function qe(_0x25059b,_0xe6d068,_0x4a96d8,_0x2017aa){_0x4a96d8>_0xe6d068&&Xe(_0x25059b,_0xe6d068,_0x4a96d8),Ye(_0x25059b,_0xe6d068,_0x2017aa);}function Je(_0x408d34,_0x69f0e5,_0xe2f4ab){const _0x523e11=_0x217dd1;var _0x247000,_0x158924;let _0x9857d=j(_0x408d34),_0x47d4b1=(_0x247000=_0x9857d[_0x523e11(0x210)])==null?void 0x0:_0x247000[_0x523e11(0x174)](_0x7e0de8=>_0x7e0de8[_0x523e11(0x141)]===_0x69f0e5&&w(_0x7e0de8));if(!_0x47d4b1)return null;let _0x1589a2=_0x1c91d3(_0x47d4b1);return qe(_0x9857d,_0x1589a2[_0x523e11(0x1c6)],_0x1589a2['endOffset'],_0xe2f4ab),_0x9857d[_0x523e11(0x210)]=(_0x158924=_0x9857d[_0x523e11(0x210)])==null?void 0x0:_0x158924['filter'](_0x423e53=>_0x423e53['rangeId']!==_0x69f0e5),_0x1589a2['startOffset']+_0xe2f4ab[_0x523e11(0x171)];}function Ye(_0x2dd341,_0x4333b2,_0x4bf980){const _0x392e9f=_0x217dd1;_0x4bf980&&(_0x2dd341['dataStream']=''+_0x2dd341[_0x392e9f(0x153)]['slice'](0x0,_0x4333b2)+_0x4bf980+_0x2dd341['dataStream'][_0x392e9f(0x15f)](_0x4333b2),Ze(_0x2dd341,_0x4333b2,_0x4bf980['length']));}function Xe(_0x705dfb,_0xeb8d48,_0x3da25b){const _0x2f6c5f=_0x217dd1;let _0x4bc73e=_0x3da25b-_0xeb8d48;_0x705dfb[_0x2f6c5f(0x153)]=''+_0x705dfb[_0x2f6c5f(0x153)]['slice'](0x0,_0xeb8d48)+_0x705dfb[_0x2f6c5f(0x153)][_0x2f6c5f(0x15f)](_0x3da25b),Qe(_0x705dfb,_0xeb8d48,_0x4bc73e);}function Ze(_0x2945ff,_0x48e4c4,_0x203f75){const _0x2f4d78=_0x217dd1;_0x2945ff[_0x2f4d78(0x18c)]=D(_0x2945ff[_0x2f4d78(0x18c)],_0x48e4c4,_0x203f75),_0x2945ff['sectionBreaks']=D(_0x2945ff['sectionBreaks'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1df)]=D(_0x2945ff[_0x2f4d78(0x1df)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1cd)]=$e(_0x2945ff[_0x2f4d78(0x1cd)],_0x48e4c4,_0x203f75),_0x2945ff['tables']=et(_0x2945ff[_0x2f4d78(0x206)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x1ce)]=k(_0x2945ff['columnGroups'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x210)]=k(_0x2945ff[_0x2f4d78(0x210)],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x19a)]=k(_0x2945ff['customDecorations'],_0x48e4c4,_0x203f75),_0x2945ff[_0x2f4d78(0x234)]=k(_0x2945ff[_0x2f4d78(0x234)],_0x48e4c4,_0x203f75);}function Qe(_0x5efb5d,_0x175cda,_0x4e40d8){const _0xdd740e=_0x217dd1;var _0x2bd071,_0x4aa016;_0x5efb5d[_0xdd740e(0x18c)]=O(_0x5efb5d[_0xdd740e(0x18c)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x195)]=O(_0x5efb5d[_0xdd740e(0x195)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x1df)]=O(_0x5efb5d[_0xdd740e(0x1df)],_0x175cda,_0x4e40d8),_0x5efb5d['textRuns']=(_0x2bd071=tt((_0x4aa016=_0x5efb5d[_0xdd740e(0x1cd)])==null?void 0x0:_0x4aa016['map'](_0x45262d=>({..._0x45262d,'startIndex':_0x45262d['st'],'endIndex':_0x45262d['ed']})),_0x175cda,_0x4e40d8))==null?void 0x0:_0x2bd071['map'](_0x5bdea5=>{let {startIndex:_0x1a71e3,endIndex:_0x3654d4,..._0x1266b6}=_0x5bdea5;return{..._0x1266b6,'st':_0x1a71e3,'ed':_0x3654d4};}),_0x5efb5d['tables']=tt(_0x5efb5d[_0xdd740e(0x206)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x1ce)]=A(_0x5efb5d['columnGroups'],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x210)]=A(_0x5efb5d[_0xdd740e(0x210)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x19a)]=A(_0x5efb5d[_0xdd740e(0x19a)],_0x175cda,_0x4e40d8),_0x5efb5d[_0xdd740e(0x234)]=A(_0x5efb5d[_0xdd740e(0x234)],_0x175cda,_0x4e40d8);}function D(_0x2a7771,_0x57b8f2,_0x4e8f76){const _0x62b9c9=_0x217dd1;return _0x2a7771==null?void 0x0:_0x2a7771[_0x62b9c9(0x164)](_0x21abe7=>_0x21abe7[_0x62b9c9(0x1e7)]>=_0x57b8f2?{..._0x21abe7,'startIndex':_0x21abe7[_0x62b9c9(0x1e7)]+_0x4e8f76}:_0x21abe7);}function O(_0xb0873d,_0x29695d,_0x564b71){const _0x3e1049=_0x217dd1;let _0x25a7c5=_0x29695d+_0x564b71;return _0xb0873d==null?void 0x0:_0xb0873d[_0x3e1049(0x164)](_0x1d39d7=>_0x1d39d7['startIndex']>=_0x29695d&&_0x1d39d7['startIndex']<_0x25a7c5?null:_0x1d39d7[_0x3e1049(0x1e7)]>=_0x25a7c5?{..._0x1d39d7,'startIndex':_0x1d39d7[_0x3e1049(0x1e7)]-_0x564b71}:_0x1d39d7)[_0x3e1049(0x1a5)](_0x293238=>_0x293238!=null);}function $e(_0x14d7af,_0xc89632,_0x2a4ba7){const _0x3199=_0x217dd1;return _0x14d7af==null?void 0x0:_0x14d7af[_0x3199(0x164)](_0x56b9a1=>_0x56b9a1['st']>=_0xc89632?{..._0x56b9a1,'st':_0x56b9a1['st']+_0x2a4ba7,'ed':_0x56b9a1['ed']+_0x2a4ba7}:_0x56b9a1['ed']>_0xc89632?{..._0x56b9a1,'ed':_0x56b9a1['ed']+_0x2a4ba7}:_0x56b9a1);}function k(_0x33928b,_0x17c339,_0x3cb90a){const _0x56d2c5=_0x217dd1;return _0x33928b==null?void 0x0:_0x33928b[_0x56d2c5(0x164)](_0x36d70a=>_0x4fc859(_0x36d70a,_0x17c339,_0x3cb90a));}function et(_0x9914ec,_0x4050ab,_0x39797e){const _0x4b75ec=_0x217dd1;return _0x9914ec==null?void 0x0:_0x9914ec[_0x4b75ec(0x164)](_0x26ad6d=>_0x7fd50e(_0x26ad6d,_0x4050ab,_0x39797e));}function A(_0x557e94,_0x329741,_0x528a87){const _0x484474=_0x217dd1;return _0x557e94==null?void 0x0:_0x557e94[_0x484474(0x164)](_0x2f7af6=>_0x23a1d4(_0x2f7af6,_0x329741,_0x528a87))['filter'](_0x30a571=>_0x30a571!=null);}function tt(_0x3f7787,_0xe830ec,_0x2fd680){const _0x1ce5c4=_0x217dd1;return _0x3f7787==null?void 0x0:_0x3f7787[_0x1ce5c4(0x164)](_0xef9991=>_0x24c8e7(_0xef9991,_0xe830ec,_0x2fd680))[_0x1ce5c4(0x1a5)](_0x4a4e72=>_0x4a4e72!=null);}function j(_0x1a8d5a){const _0x1666d3=_0x217dd1;if(!_0x1a8d5a['body'])throw Error(_0x1666d3(0x143));return _0x1a8d5a[_0x1666d3(0x220)];}function M(_0x4d0764){'@babel/helpers - typeof';const _0x2f78c2=_0x217dd1;return M=typeof Symbol=='function'&&typeof Symbol[_0x2f78c2(0x1d5)]==_0x2f78c2(0x14d)?function(_0x111b7b){return typeof _0x111b7b;}:function(_0x3516d2){const _0x488cba=_0x2f78c2;return _0x3516d2&&typeof Symbol==_0x488cba(0x18a)&&_0x3516d2['constructor']===Symbol&&_0x3516d2!==Symbol[_0x488cba(0x1c4)]?_0x488cba(0x14d):typeof _0x3516d2;},M(_0x4d0764);}function nt(_0x9e0cf1,_0x12a938){const _0x3542db=_0x217dd1;if(M(_0x9e0cf1)!='object'||!_0x9e0cf1)return _0x9e0cf1;var _0x147f44=_0x9e0cf1[Symbol[_0x3542db(0x1fd)]];if(_0x147f44!==void 0x0){var _0x23b12a=_0x147f44[_0x3542db(0x21b)](_0x9e0cf1,_0x12a938||_0x3542db(0x148));if(M(_0x23b12a)!=_0x3542db(0x1ea))return _0x23b12a;throw TypeError(_0x3542db(0x191));}return(_0x12a938==='string'?String:Number)(_0x9e0cf1);}function rt(_0x3a3027){const _0x383181=_0x217dd1;var _0x46653a=nt(_0x3a3027,'string');return M(_0x46653a)==_0x383181(0x14d)?_0x46653a:_0x46653a+'';}function N(_0x4a3b30,_0x4b4a21,_0x1cf49f){const _0x1f28da=_0x217dd1;return(_0x4b4a21=rt(_0x4b4a21))in _0x4a3b30?Object[_0x1f28da(0x22d)](_0x4a3b30,_0x4b4a21,{'value':_0x1cf49f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a3b30[_0x4b4a21]=_0x1cf49f,_0x4a3b30;}var P=class extends _0x18377d{constructor(..._0x27b5c4){const _0x255527=_0x217dd1;super(..._0x27b5c4),N(this,'_resources',new Map()),N(this,'_rawResources',new Map()),N(this,_0x255527(0x1b4),new Map()),N(this,_0x255527(0x1c5),new _0x2b03f3()),N(this,_0x255527(0x221),this[_0x255527(0x1c5)][_0x255527(0x1d8)]());}['getFormula'](_0xb6f641,_0x131d50){const _0x3ca899=_0x217dd1;var _0x2a8957;let _0x4d36e4=(_0x2a8957=this[_0x3ca899(0x157)][_0x3ca899(0x21f)](_0xb6f641))==null?void 0x0:_0x2a8957[_0x3ca899(0x1d7)][_0x131d50];return _0x4d36e4?_0x4b0aab[_0x3ca899(0x1c3)](_0x4d36e4):void 0x0;}[_0x217dd1(0x182)](_0x5ca644){const _0x3ebeb7=_0x217dd1;var _0x16bdc2;return _0x4b0aab[_0x3ebeb7(0x1c3)](((_0x16bdc2=this[_0x3ebeb7(0x157)]['get'](_0x5ca644))==null?void 0x0:_0x16bdc2[_0x3ebeb7(0x1d7)])??{});}['getResource'](_0x53b692){const _0x143138=_0x217dd1;let _0x3316fb=this['_resources']['get'](_0x53b692);return _0x3316fb?_0x4b0aab[_0x143138(0x1c3)](_0x3316fb):void 0x0;}[_0x217dd1(0x1db)](_0x598e7c,_0x3de29e,_0x48358c){const _0x3c2ed3=_0x217dd1;return this[_0x3c2ed3(0x200)](_0x598e7c,{[_0x3de29e]:_0x48358c});}['setResource'](_0x1b064d,_0x45a2b3){const _0x1a333d=_0x217dd1;return this[_0x1a333d(0x1b4)][_0x1a333d(0x1f5)](_0x1b064d)||!x(_0x45a2b3)?!0x1:(this['_resources'][_0x1a333d(0x1a1)](_0x1b064d,_0x4b0aab['deepClone'](_0x45a2b3)),this[_0x1a333d(0x1c5)][_0x1a333d(0x178)]({'unitId':_0x1b064d}),!0x0);}[_0x217dd1(0x200)](_0x1417b2,_0x1c91a7){const _0x530eb4=_0x217dd1;if(this[_0x530eb4(0x1b4)][_0x530eb4(0x1f5)](_0x1417b2)||!Object[_0x530eb4(0x1e1)](_0x1c91a7)['length']||!x({'schemaVersion':0x1,'formulas':_0x1c91a7}))return!0x1;let _0x183edd=this[_0x530eb4(0x157)][_0x530eb4(0x21f)](_0x1417b2)??b(),_0x41dee8=_0x4b0aab[_0x530eb4(0x1c3)](_0x183edd);return Object[_0x530eb4(0x16d)](_0x41dee8['formulas'],_0x4b0aab[_0x530eb4(0x1c3)](_0x1c91a7)),this[_0x530eb4(0x157)]['set'](_0x1417b2,_0x41dee8),this[_0x530eb4(0x1c5)][_0x530eb4(0x178)]({'unitId':_0x1417b2,'rangeIds':Object[_0x530eb4(0x1e1)](_0x1c91a7)}),!0x0;}[_0x217dd1(0x1bc)](_0x55aa78,_0x3b19b9){const _0x3185fb=_0x217dd1;if(this[_0x3185fb(0x1b4)][_0x3185fb(0x1f5)](_0x55aa78))return!0x1;let _0x3a18b1=this['_resources'][_0x3185fb(0x21f)](_0x55aa78);if(!(_0x3a18b1!=null&&_0x3a18b1[_0x3185fb(0x1d7)][_0x3b19b9]))return!0x1;let _0x569c61=_0x4b0aab[_0x3185fb(0x1c3)](_0x3a18b1);return delete _0x569c61[_0x3185fb(0x1d7)][_0x3b19b9],this[_0x3185fb(0x157)][_0x3185fb(0x1a1)](_0x55aa78,_0x569c61),this['_change$'][_0x3185fb(0x178)]({'unitId':_0x55aa78,'rangeIds':[_0x3b19b9]}),!0x0;}[_0x217dd1(0x1f8)](_0x4ec42a,_0x141d52){const _0x1d04ed=_0x217dd1;return _0x141d52&&typeof _0x141d52=='object'&&_0x1d04ed(0x23d)in _0x141d52&&_0x141d52[_0x1d04ed(0x23d)]!==0x1?(this[_0x1d04ed(0x1e8)](_0x4ec42a,_0x141d52,_0x1d04ed(0x163)),!0x1):x(_0x141d52)?(this['_resources'][_0x1d04ed(0x1a1)](_0x4ec42a,_0x4b0aab['deepClone'](_0x141d52)),this[_0x1d04ed(0x236)][_0x1d04ed(0x1bb)](_0x4ec42a),this[_0x1d04ed(0x1b4)][_0x1d04ed(0x1bb)](_0x4ec42a),this['_change$']['next']({'unitId':_0x4ec42a}),!0x0):(this[_0x1d04ed(0x1e8)](_0x4ec42a,_0x141d52,'invalid-resource'),!0x1);}['serialize'](_0x55fedb){const _0x587b9f=_0x217dd1;let _0x4d868b=this[_0x587b9f(0x157)]['get'](_0x55fedb);return _0x4d868b?_0x4b0aab[_0x587b9f(0x1c3)](_0x4d868b):this[_0x587b9f(0x236)][_0x587b9f(0x1f5)](_0x55fedb)?_0x4b0aab[_0x587b9f(0x1c3)](this['_rawResources'][_0x587b9f(0x21f)](_0x55fedb)):b();}['getLoadError'](_0x5b3a65){const _0x83bce7=_0x217dd1;return this[_0x83bce7(0x1b4)][_0x83bce7(0x21f)](_0x5b3a65);}['removeUnit'](_0x567732){const _0x642dbe=_0x217dd1;this[_0x642dbe(0x157)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x236)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x1b4)][_0x642dbe(0x1bb)](_0x567732),this[_0x642dbe(0x1c5)][_0x642dbe(0x178)]({'unitId':_0x567732});}['dispose'](){const _0x380c06=_0x217dd1;this[_0x380c06(0x157)]['clear'](),this[_0x380c06(0x236)]['clear'](),this[_0x380c06(0x1b4)][_0x380c06(0x21d)](),this[_0x380c06(0x1c5)]['complete'](),super[_0x380c06(0x15c)]();}[_0x217dd1(0x1e8)](_0x170e7b,_0x4e9891,_0x5a573e){const _0x3965e5=_0x217dd1;this['_resources'][_0x3965e5(0x1bb)](_0x170e7b),this[_0x3965e5(0x236)][_0x3965e5(0x1a1)](_0x170e7b,_0x4b0aab[_0x3965e5(0x1c3)](_0x4e9891)),this[_0x3965e5(0x1b4)]['set'](_0x170e7b,_0x5a573e),this[_0x3965e5(0x1c5)]['next']({'unitId':_0x170e7b});}};let it=function(_0x10513e){const _0x524e98=_0x217dd1;return _0x10513e[_0x524e98(0x224)]=_0x524e98(0x222),_0x10513e[_0x524e98(0x1f4)]=_0x524e98(0x1ae),_0x10513e[_0x524e98(0x217)]=_0x524e98(0x20f),_0x10513e[_0x524e98(0x1ac)]='error',_0x10513e;}({});function F(_0xb14ad7,_0x452cec){return function(_0x668bf7,_0x5be808){_0x452cec(_0x668bf7,_0x5be808,_0xb14ad7);};}function I(_0xd4c6b7,_0x2d85ec,_0x551c16,_0x392d22){const _0xd23448=_0x217dd1;var _0x2feea9=arguments['length'],_0x2f2361=_0x2feea9<0x3?_0x2d85ec:_0x392d22===null?_0x392d22=Object['getOwnPropertyDescriptor'](_0x2d85ec,_0x551c16):_0x392d22,_0x377118;if(typeof Reflect==_0xd23448(0x1ea)&&typeof Reflect[_0xd23448(0x188)]==_0xd23448(0x18a))_0x2f2361=Reflect[_0xd23448(0x188)](_0xd4c6b7,_0x2d85ec,_0x551c16,_0x392d22);else{for(var _0x3922d5=_0xd4c6b7[_0xd23448(0x171)]-0x1;_0x3922d5>=0x0;_0x3922d5--)(_0x377118=_0xd4c6b7[_0x3922d5])&&(_0x2f2361=(_0x2feea9<0x3?_0x377118(_0x2f2361):_0x2feea9>0x3?_0x377118(_0x2d85ec,_0x551c16,_0x2f2361):_0x377118(_0x2d85ec,_0x551c16))||_0x2f2361);}return _0x2feea9>0x3&&_0x2f2361&&Object[_0xd23448(0x22d)](_0x2d85ec,_0x551c16,_0x2f2361),_0x2f2361;}let L=class extends _0x18377d{constructor(_0x251f6e,_0x3687ee,_0x511450){const _0x15bcaa=_0x217dd1;super(),this[_0x15bcaa(0x235)]=_0x251f6e,this[_0x15bcaa(0x1be)]=_0x3687ee,this[_0x15bcaa(0x20d)]=_0x511450,N(this,_0x15bcaa(0x1b7),new Map()),N(this,_0x15bcaa(0x22f),new Map()),N(this,'_presentationChanged$',new _0x2b03f3()),N(this,_0x15bcaa(0x22a),this[_0x15bcaa(0x19d)][_0x15bcaa(0x1d8)]()),this[_0x15bcaa(0x144)](this[_0x15bcaa(0x1be)]['formulaResult$']['subscribe'](_0x2408ff=>{const _0x16b8ef=_0x15bcaa;for(let _0x4c05f0 of Object[_0x16b8ef(0x20b)](_0x2408ff))for(let _0x5c296a of Object['values'](_0x4c05f0))_0x5c296a[_0x16b8ef(0x1b2)](_0x2bbe96=>this[_0x16b8ef(0x166)](_0x2bbe96));}));}[_0x217dd1(0x1f1)](_0x254804){const _0x5222c4=_0x217dd1;var _0x31fd4e;let _0x4f695e=_0x254804[_0x5222c4(0x18f)](),_0x502059=((_0x31fd4e=_0x254804[_0x5222c4(0x169)]()[_0x5222c4(0x220)])==null||(_0x31fd4e=_0x31fd4e[_0x5222c4(0x210)])==null?void 0x0:_0x31fd4e['filter'](w))??[],_0x46299d=this[_0x5222c4(0x235)][_0x5222c4(0x182)](_0x4f695e),_0x1547f9=new Set();for(let _0x261382 of _0x502059){let _0x1b6560=_0x46299d[_0x261382[_0x5222c4(0x141)]];_0x1b6560&&(_0x1547f9['add'](R(_0x4f695e,_0x261382[_0x5222c4(0x141)])),this['register']({'unitId':_0x4f695e,'rangeId':_0x261382[_0x5222c4(0x141)]},_0x1b6560));}for(let _0x225c99 of Array[_0x5222c4(0x15a)](this[_0x5222c4(0x1b7)]['values']()))_0x225c99[_0x5222c4(0x173)]===_0x4f695e&&!_0x1547f9[_0x5222c4(0x1f5)](R(_0x225c99[_0x5222c4(0x173)],_0x225c99[_0x5222c4(0x141)]))&&this[_0x5222c4(0x214)](_0x225c99);}['register'](_0x555dac,_0x269b98){const _0x417e42=_0x217dd1;let _0x3d0d84=R(_0x555dac[_0x417e42(0x173)],_0x555dac[_0x417e42(0x141)]),_0xa4f0aa=this[_0x417e42(0x1b7)]['get'](_0x3d0d84),_0x2dbd93=this[_0x417e42(0x20d)][_0x417e42(0x22c)](_0x555dac[_0x417e42(0x173)]);if(_0xa4f0aa&&_0xa4f0aa[_0x417e42(0x1ba)]['formula']===_0x269b98[_0x417e42(0x1ab)]&&_0xa4f0aa[_0x417e42(0x1c9)]===_0x2dbd93){_0xa4f0aa[_0x417e42(0x1ba)]=_0x269b98;let _0x1f58c3=_0xa4f0aa[_0x417e42(0x207)]?this[_0x417e42(0x1be)][_0x417e42(0x160)](_0xa4f0aa['unitId'],_0xa4f0aa[_0x417e42(0x173)],_0xa4f0aa[_0x417e42(0x207)])??void 0x0:void 0x0;_0xa4f0aa['liveResult']=_0x1f58c3,this[_0x417e42(0x1ef)](_0x3d0d84,z(_0x269b98,_0x1f58c3));return;}_0xa4f0aa!=null&&_0xa4f0aa[_0x417e42(0x207)]&&this[_0x417e42(0x1c7)](_0xa4f0aa);let _0x39fc2d={..._0x555dac,'config':_0x269b98,'referenceRevision':_0x2dbd93,'presentation':z(_0x269b98,void 0x0)};if(this[_0x417e42(0x1b7)][_0x417e42(0x1a1)](_0x3d0d84,_0x39fc2d),!_0x269b98[_0x417e42(0x1ab)][_0x417e42(0x1de)]())return;let _0x47d19f=this['_registrationService'][_0x417e42(0x18b)](_0x555dac[_0x417e42(0x173)],_0x555dac[_0x417e42(0x173)],_0x269b98[_0x417e42(0x1ab)],void 0x0,{'rangeId':_0x555dac[_0x417e42(0x141)]},_0x3508be[_0x417e42(0x150)],_0x555dac[_0x417e42(0x141)]);_0x39fc2d[_0x417e42(0x207)]=_0x47d19f,this[_0x417e42(0x22f)]['set'](_0x47d19f,_0x3d0d84);}[_0x217dd1(0x214)](_0x16c20f){const _0x1fe2ee=_0x217dd1;let _0x3b9b67=R(_0x16c20f[_0x1fe2ee(0x173)],_0x16c20f['rangeId']),_0x19dffb=this[_0x1fe2ee(0x1b7)][_0x1fe2ee(0x21f)](_0x3b9b67);_0x19dffb&&(this[_0x1fe2ee(0x1c7)](_0x19dffb),this[_0x1fe2ee(0x1b7)]['delete'](_0x3b9b67));}[_0x217dd1(0x17c)](_0x57ecdb){const _0x2a02e7=_0x217dd1;for(let _0x1815e0 of Array[_0x2a02e7(0x15a)](this['_registrations'][_0x2a02e7(0x20b)]()))_0x1815e0[_0x2a02e7(0x173)]===_0x57ecdb&&this[_0x2a02e7(0x214)](_0x1815e0);}[_0x217dd1(0x1b0)](_0x342cbf){const _0x5a5a83=_0x217dd1;var _0xf5ce38;return(_0xf5ce38=this['_registrations'][_0x5a5a83(0x21f)](R(_0x342cbf['unitId'],_0x342cbf[_0x5a5a83(0x141)])))==null?void 0x0:_0xf5ce38[_0x5a5a83(0x231)];}[_0x217dd1(0x23c)](_0x536b28){const _0x473d8a=_0x217dd1;let _0x5b1984=this['_registrations']['get'](R(_0x536b28[_0x473d8a(0x173)],_0x536b28['rangeId']));return _0x5b1984?B(_0x5b1984):void 0x0;}[_0x217dd1(0x205)](){const _0x208425=_0x217dd1;return Array[_0x208425(0x15a)](this[_0x208425(0x1b7)][_0x208425(0x20b)](),_0xb547ef=>({'identity':{'unitId':_0xb547ef[_0x208425(0x173)],'rangeId':_0xb547ef['rangeId']},'config':_0xb547ef[_0x208425(0x1ba)],'referenceRevision':_0xb547ef['referenceRevision'],..._0xb547ef[_0x208425(0x202)]?{'liveResult':_0xb547ef[_0x208425(0x202)]}:null}));}[_0x217dd1(0x15c)](){const _0x116a3b=_0x217dd1;for(let _0x38620a of this[_0x116a3b(0x1b7)][_0x116a3b(0x20b)]())this['_deleteRegistration'](_0x38620a);this[_0x116a3b(0x1b7)][_0x116a3b(0x21d)](),this[_0x116a3b(0x22f)][_0x116a3b(0x21d)](),this[_0x116a3b(0x19d)][_0x116a3b(0x226)](),super[_0x116a3b(0x15c)]();}['_updateFormulaResult'](_0x59dc5b){const _0xe14cf3=_0x217dd1;let _0x15e207=this['_formulaKeys']['get'](_0x59dc5b[_0xe14cf3(0x207)]),_0x34670a=_0x15e207?this[_0xe14cf3(0x1b7)]['get'](_0x15e207):void 0x0;_0x15e207&&_0x34670a&&(_0x34670a[_0xe14cf3(0x202)]=_0x59dc5b,this[_0xe14cf3(0x1ef)](_0x15e207,z(_0x34670a['config'],_0x59dc5b)));}[_0x217dd1(0x1ef)](_0x1448e4,_0x5ba641){const _0x2c47c1=_0x217dd1;var _0x1d4feb,_0x568f60;let _0x5e66d2=this[_0x2c47c1(0x1b7)][_0x2c47c1(0x21f)](_0x1448e4);if(!_0x5e66d2||at(_0x5e66d2['presentation'],_0x5ba641))return;let _0x2d8042=_0x5e66d2[_0x2c47c1(0x231)],_0x19b738=B(_0x5e66d2);_0x5e66d2[_0x2c47c1(0x231)]=_0x5ba641,this['_presentationChanged$']['next']({'unitId':_0x5e66d2['unitId'],'rangeId':_0x5e66d2['rangeId'],'presentation':_0x5ba641,'previousPresentation':_0x2d8042,'result':B(_0x5e66d2),'previousResult':{..._0x19b738,..._0x2d8042,'value':(_0x1d4feb=_0x2d8042[_0x2c47c1(0x215)])==null?void 0x0:_0x1d4feb['v'],'valueType':((_0x568f60=_0x2d8042[_0x2c47c1(0x215)])==null?void 0x0:_0x568f60['t'])??void 0x0}});}['_deleteRegistration'](_0x55fa65){const _0x476df7=_0x217dd1;_0x55fa65[_0x476df7(0x207)]&&(this[_0x476df7(0x1be)]['deleteFormula'](_0x55fa65[_0x476df7(0x173)],_0x55fa65[_0x476df7(0x173)],[_0x55fa65[_0x476df7(0x207)]]),this[_0x476df7(0x22f)]['delete'](_0x55fa65[_0x476df7(0x207)]));}};L=I([F(0x0,_0x5e32df(P)),F(0x1,_0x5e32df(_0x51a6f6)),F(0x2,_0x5e32df(_0x506168))],L);function R(_0x18772e,_0x28f0f2){return _0x18772e+'\x00'+_0x28f0f2;}function z(_0x459b85,_0x3b34d1){const _0x3b3a83=_0x217dd1;return _0x27458f({'numberFormat':_0x459b85[_0x3b3a83(0x179)],'lastValue':_0x459b85[_0x3b3a83(0x1da)],'result':_0x3b34d1});}function B(_0x141c86){const _0x43b9f2=_0x217dd1;var _0x33f299,_0x1a2f7c,_0x5c9900;let _0x1ed6e2=_0x141c86[_0x43b9f2(0x231)],_0xad2909=_0x141c86[_0x43b9f2(0x1ba)][_0x43b9f2(0x1ab)][_0x43b9f2(0x1de)]()?_0x1ed6e2[_0x43b9f2(0x19c)]||_0x1ed6e2[_0x43b9f2(0x215)]==null?'pending':((_0x33f299=_0x141c86[_0x43b9f2(0x202)])==null?void 0x0:_0x33f299[_0x43b9f2(0x17b)])===_0x5815e0['ERROR']?_0x43b9f2(0x167):_0x43b9f2(0x20f):'empty';return{..._0x1ed6e2,'status':_0xad2909,'value':(_0x1a2f7c=_0x1ed6e2[_0x43b9f2(0x215)])==null?void 0x0:_0x1a2f7c['v'],'valueType':((_0x5c9900=_0x1ed6e2[_0x43b9f2(0x215)])==null?void 0x0:_0x5c9900['t'])??void 0x0};}function at(_0xe820e3,_0x41b29d){const _0x3376d6=_0x217dd1;var _0x3ee1d9,_0x547706,_0x401ee5,_0x1f132d;return _0xe820e3[_0x3376d6(0x201)]===_0x41b29d['text']&&_0xe820e3['color']===_0x41b29d[_0x3376d6(0x233)]&&_0xe820e3[_0x3376d6(0x228)]===_0x41b29d[_0x3376d6(0x228)]&&_0xe820e3[_0x3376d6(0x20a)]===_0x41b29d[_0x3376d6(0x20a)]&&_0xe820e3[_0x3376d6(0x19c)]===_0x41b29d[_0x3376d6(0x19c)]&&((_0x3ee1d9=_0xe820e3[_0x3376d6(0x215)])==null?void 0x0:_0x3ee1d9['t'])===((_0x547706=_0x41b29d[_0x3376d6(0x215)])==null?void 0x0:_0x547706['t'])&&Object['is']((_0x401ee5=_0xe820e3['cell'])==null?void 0x0:_0x401ee5['v'],(_0x1f132d=_0x41b29d[_0x3376d6(0x215)])==null?void 0x0:_0x1f132d['v']);}const ot={'id':'docs-formula.mutation.set-formula','type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x49cd6d,_0x18c1b7)=>!(_0x18c1b7!=null&&_0x18c1b7[_0x217dd1(0x173)])||!_0x18c1b7['rangeId']||!_0x18c1b7[_0x217dd1(0x1ba)]?!0x1:_0x49cd6d[_0x217dd1(0x21f)](P)[_0x217dd1(0x1db)](_0x18c1b7[_0x217dd1(0x173)],_0x18c1b7[_0x217dd1(0x141)],_0x18c1b7[_0x217dd1(0x1ba)])},st={'id':_0x217dd1(0x154),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x348999,_0xf1e64d)=>!(_0xf1e64d!=null&&_0xf1e64d['unitId'])||!_0xf1e64d['rangeId']?!0x1:_0x348999[_0x217dd1(0x21f)](P)[_0x217dd1(0x1bc)](_0xf1e64d['unitId'],_0xf1e64d[_0x217dd1(0x141)])},V={'id':_0x217dd1(0x168),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x478f0a,_0x431c74)=>!(_0x431c74!=null&&_0x431c74['unitId'])||!_0x431c74['resource']?!0x1:_0x478f0a['get'](P)[_0x217dd1(0x1bd)](_0x431c74[_0x217dd1(0x173)],_0x431c74[_0x217dd1(0x19f)])},H={'id':_0x217dd1(0x1ad),'type':_0x5f1099[_0x217dd1(0x19b)],'handler':(_0x4fadbf,_0x268f37)=>{const _0x5efcfd=_0x217dd1;if(!(_0x268f37!=null&&_0x268f37[_0x5efcfd(0x173)])||!_0x268f37[_0x5efcfd(0x158)]['length'])return!0x1;let _0x316e60=_0x4fadbf['get'](P),_0x5e4d34=_0x4fadbf[_0x5efcfd(0x21f)](_0x506168),_0x552fe2=_0x316e60[_0x5efcfd(0x1fa)](_0x268f37[_0x5efcfd(0x173)]);if(!_0x552fe2)return!0x1;let _0x4608ac=_0x4b0aab[_0x5efcfd(0x1c3)](_0x552fe2),_0x2d48ac=!0x1;for(let _0x30beaf of _0x268f37[_0x5efcfd(0x158)]){var _0x436b9c,_0x153ba7,_0x139e1c,_0x9e0788;let _0x2e9c01=_0x4608ac[_0x5efcfd(0x1d7)][_0x30beaf[_0x5efcfd(0x141)]];_0x2e9c01&&_0x2e9c01[_0x5efcfd(0x1ab)]===_0x30beaf[_0x5efcfd(0x175)]&&((_0x436b9c=_0x2e9c01[_0x5efcfd(0x179)])==null?void 0x0:_0x436b9c[_0x5efcfd(0x228)])===_0x30beaf[_0x5efcfd(0x1f0)]&&_0x5e4d34[_0x5efcfd(0x22c)](_0x268f37['unitId'])===_0x30beaf[_0x5efcfd(0x17d)]&&(((_0x153ba7=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x153ba7['v'])!==_0x30beaf[_0x5efcfd(0x1da)]['v']||((_0x139e1c=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x139e1c['t'])!==_0x30beaf[_0x5efcfd(0x1da)]['t']||((_0x9e0788=_0x2e9c01[_0x5efcfd(0x1da)])==null?void 0x0:_0x9e0788[_0x5efcfd(0x228)])!==_0x30beaf['lastValue']['pattern'])&&(_0x2e9c01[_0x5efcfd(0x1da)]=_0x4b0aab[_0x5efcfd(0x1c3)](_0x30beaf[_0x5efcfd(0x1da)]),_0x2d48ac=!0x0);}return!_0x2d48ac||_0x316e60[_0x5efcfd(0x1bd)](_0x268f37[_0x5efcfd(0x173)],_0x4608ac);}},U={'id':_0x217dd1(0x238),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x1fba9b,_0x464972)=>{const _0x469fcd=_0x217dd1;if(!(_0x464972!=null&&_0x464972['formula'][_0x469fcd(0x1de)]()))return!0x1;let _0x229c5d=q(_0x1fba9b,_0x464972[_0x469fcd(0x173)],'');if(!_0x229c5d)return!0x1;let _0x12cb1c=ft(_0x464972[_0x469fcd(0x21a)],_0x229c5d[_0x469fcd(0x220)],dt(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)]));if(!_0x12cb1c)return!0x1;let _0x3a81a2=pt(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)],_0x464972[_0x469fcd(0x1ab)],_0x464972[_0x469fcd(0x204)]??[]);if(!_0x3a81a2)return!0x1;let _0x8c713e=mt(_0x229c5d['body'],_0x229c5d[_0x469fcd(0x23a)],_0x229c5d[_0x469fcd(0x173)]),_0x29ca7f=ht({'documentData':_0x229c5d[_0x469fcd(0x194)],'resource':_0x229c5d[_0x469fcd(0x19f)],'rangeId':_0x8c713e,'config':{'formula':_0x464972[_0x469fcd(0x1ab)],..._0x464972['numberFormat']?{'numberFormat':_0x464972[_0x469fcd(0x179)]}:null},'startOffset':_0x12cb1c[_0x469fcd(0x1c6)],'endOffset':_0x12cb1c[_0x469fcd(0x172)]});if(!_0x29ca7f)return!0x1;let _0x39d7eb=_0x41a736(_0x1fba9b,_0x229c5d[_0x469fcd(0x173)],_0x3a81a2);return!_0x39d7eb||!J({'accessor':_0x1fba9b,'document':_0x229c5d['document'],'unitId':_0x229c5d['unitId'],'trigger':U['id'],'rangeId':_0x8c713e,'previousResource':_0x229c5d[_0x469fcd(0x19f)],'nextResource':_0x29ca7f[_0x469fcd(0x159)],'previousDocumentData':_0x229c5d['documentData'],'nextDocumentData':_0x29ca7f['nextDocumentData'],'cursorOffset':_0x29ca7f['cursorOffset'],'externalMutations':_0x39d7eb})?!0x1:{'rangeId':_0x8c713e,'startOffset':_0x29ca7f[_0x469fcd(0x1d2)]-0x1,'endOffset':_0x29ca7f[_0x469fcd(0x1d2)]};}},W={'id':_0x217dd1(0x1b3),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x4e6f81,_0x1f26cb)=>{const _0x36b63d=_0x217dd1;if(!(_0x1f26cb!=null&&_0x1f26cb['rangeId'])||!_0x1f26cb['formula'][_0x36b63d(0x1de)]())return!0x1;let _0x40727e=q(_0x4e6f81,_0x1f26cb[_0x36b63d(0x173)],''),_0x192b27=_0x40727e==null?void 0x0:_0x40727e['model'][_0x36b63d(0x213)](_0x40727e[_0x36b63d(0x173)],_0x1f26cb[_0x36b63d(0x141)]),_0x1952e7=_0x40727e?T(_0x40727e[_0x36b63d(0x194)][_0x36b63d(0x220)],_0x1f26cb['rangeId']):void 0x0;if(!_0x40727e||!_0x192b27||!_0x1952e7)return!0x1;let _0x32178c=pt(_0x4e6f81,_0x40727e['unitId'],_0x1f26cb[_0x36b63d(0x1ab)],_0x1f26cb['externalReferences']??[]);if(!_0x32178c)return!0x1;let _0x471594=_0x41a736(_0x4e6f81,_0x40727e[_0x36b63d(0x173)],_0x32178c);if(!_0x471594)return!0x1;let _0x14d5a1=Ct(_0x40727e[_0x36b63d(0x19f)]);return _0x14d5a1['formulas'][_0x1f26cb[_0x36b63d(0x141)]]={'formula':_0x1f26cb[_0x36b63d(0x1ab)],..._0x1f26cb[_0x36b63d(0x179)]?{'numberFormat':_0x1f26cb[_0x36b63d(0x179)]}:_0x192b27[_0x36b63d(0x179)]?{'numberFormat':_0x192b27[_0x36b63d(0x179)]}:null},J({'accessor':_0x4e6f81,'document':_0x40727e['document'],'unitId':_0x40727e[_0x36b63d(0x173)],'trigger':W['id'],'rangeId':_0x1f26cb[_0x36b63d(0x141)],'previousResource':_0x40727e[_0x36b63d(0x19f)],'nextResource':_0x14d5a1,'cursorOffset':_0x1952e7[_0x36b63d(0x1fc)]+0x1,'externalMutations':_0x471594});}},G={'id':'docs-formula.command.set-number-format','type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x3db119,_0xdc2de0)=>{const _0x2b584b=_0x217dd1;if(!(_0xdc2de0!=null&&_0xdc2de0[_0x2b584b(0x141)]))return!0x1;let _0x4f65f0=q(_0x3db119,_0xdc2de0[_0x2b584b(0x173)],''),_0x1d0900=_0x4f65f0==null?void 0x0:_0x4f65f0['model'][_0x2b584b(0x213)](_0x4f65f0['unitId'],_0xdc2de0[_0x2b584b(0x141)]),_0x44e61d=_0x4f65f0?T(_0x4f65f0[_0x2b584b(0x194)][_0x2b584b(0x220)],_0xdc2de0[_0x2b584b(0x141)]):void 0x0;if(!_0x4f65f0||!_0x1d0900||!_0x44e61d)return!0x1;let _0x1017d6=Ct(_0x4f65f0['resource']);return _0x1017d6[_0x2b584b(0x1d7)][_0xdc2de0[_0x2b584b(0x141)]]={..._0x1d0900,..._0xdc2de0['numberFormat']?{'numberFormat':_0xdc2de0[_0x2b584b(0x179)]}:null},_0xdc2de0[_0x2b584b(0x179)]||delete _0x1017d6['formulas'][_0xdc2de0[_0x2b584b(0x141)]][_0x2b584b(0x179)],J({'accessor':_0x3db119,'document':_0x4f65f0[_0x2b584b(0x211)],'unitId':_0x4f65f0[_0x2b584b(0x173)],'trigger':G['id'],'rangeId':_0xdc2de0[_0x2b584b(0x141)],'previousResource':_0x4f65f0[_0x2b584b(0x19f)],'nextResource':_0x1017d6,'cursorOffset':_0x44e61d['endIndex']+0x1,'externalMutations':{}});}},K={'id':_0x217dd1(0x1dd),'type':_0x5f1099['COMMAND'],'handler':(_0x22cdf3,_0xec8d54)=>ut(_0x22cdf3,_0xec8d54,'',K['id'])},ct={'id':_0x217dd1(0x1aa),'type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x48d800,_0x3d2569)=>ut(_0x48d800,_0x3d2569,(_0x3d2569==null?void 0x0:_0x3d2569[_0x217dd1(0x201)])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x5f1099[_0x217dd1(0x223)],'handler':(_0x51c21b,_0x57372a)=>{const _0x227a9e=_0x217dd1;if(!(_0x57372a!=null&&_0x57372a[_0x227a9e(0x141)]))return!0x1;let _0x2271ea=q(_0x51c21b,_0x57372a[_0x227a9e(0x173)],'');if(!_0x2271ea)return!0x1;let _0x46213e=_0x51c21b['get'](L)[_0x227a9e(0x23c)]({'unitId':_0x2271ea[_0x227a9e(0x173)],'rangeId':_0x57372a[_0x227a9e(0x141)]});return _0x46213e?ut(_0x51c21b,_0x57372a,_0x46213e[_0x227a9e(0x201)],lt['id']):!0x1;}};function ut(_0xc3b228,_0xab10db,_0xd7d583,_0x3bc059){const _0x2e0167=_0x217dd1;if(!(_0xab10db!=null&&_0xab10db[_0x2e0167(0x141)]))return!0x1;let _0x5ccbaf=q(_0xc3b228,_0xab10db['unitId'],'');if(!_0x5ccbaf)return!0x1;let _0x182d1b=Be({'documentData':_0x5ccbaf[_0x2e0167(0x194)],'resource':_0x5ccbaf[_0x2e0167(0x19f)],'rangeId':_0xab10db[_0x2e0167(0x141)],'text':_0xd7d583});return _0x182d1b?J({'accessor':_0xc3b228,'document':_0x5ccbaf['document'],'unitId':_0x5ccbaf[_0x2e0167(0x173)],'trigger':_0x3bc059,'rangeId':_0xab10db[_0x2e0167(0x141)],'previousResource':_0x5ccbaf[_0x2e0167(0x19f)],'nextResource':_0x182d1b[_0x2e0167(0x159)],'previousDocumentData':_0x5ccbaf[_0x2e0167(0x194)],'nextDocumentData':_0x182d1b[_0x2e0167(0x1f6)],'cursorOffset':_0x182d1b[_0x2e0167(0x1d2)],'externalMutations':{}}):!0x1;}function q(_0x231c7d,_0x162016,_0x4f1995){const _0x2302a7=_0x217dd1;if(_0x4f1995)return null;let _0x465657=_0x231c7d['get'](_0x147b46),_0x288d4a=(_0x162016?_0x465657['getUnit'](_0x162016,_0x138c8e['UNIVER_DOC']):_0x465657[_0x2302a7(0x1af)](_0x138c8e[_0x2302a7(0x17f)]))??null;if(!_0x288d4a)return null;let _0x8bae47=_0x288d4a['getSnapshot'](),_0x354ddc=_0x8bae47[_0x2302a7(0x220)];if(_0x8bae47[_0x2302a7(0x1c1)]||!_0x354ddc)return null;let _0x1a5c62=_0x231c7d[_0x2302a7(0x21f)](P);return _0x1a5c62['getLoadError'](_0x288d4a[_0x2302a7(0x18f)]())?null:{'document':_0x288d4a,'body':_0x354ddc,'documentData':_0x8bae47,'model':_0x1a5c62,'resource':_0x1a5c62[_0x2302a7(0x1fa)](_0x288d4a[_0x2302a7(0x18f)]())??b(),'unitId':_0x288d4a['getUnitId']()};}function dt(_0x36ca56,_0x2c5267){const _0x5ad5db=_0x217dd1;var _0x2ac5ac;return(_0x2ac5ac=_0x36ca56[_0x5ad5db(0x21f)](_0x3e1e55)['getTextRanges']({'subUnitId':_0x2c5267,'unitId':_0x2c5267}))==null?void 0x0:_0x2ac5ac[0x0];}function ft(_0x162316,_0x4065b0,_0x417eb6){const _0x7ac5b7=_0x217dd1;if((_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x15e)){var _0x59cf6d;let _0x37e37f=((_0x59cf6d=_0x4065b0[_0x7ac5b7(0x18c)])==null?void 0x0:_0x59cf6d[_0x7ac5b7(0x1a5)](_0x12e31c=>_0x12e31c[_0x7ac5b7(0x230)]===_0x162316[_0x7ac5b7(0x230)]))??[];if(_0x37e37f[_0x7ac5b7(0x171)]!==0x1)return null;let _0x28e1c5=_0x37e37f[0x0],_0x428d4d=_0x480edf(_0x4065b0,_0x28e1c5),_0x51ca3a=_0x28e1c5['startIndex']-_0x428d4d,_0x569bbc=_0x162316[_0x7ac5b7(0x161)]==='end'?_0x51ca3a:_0x162316[_0x7ac5b7(0x161)];if(!Number[_0x7ac5b7(0x14a)](_0x569bbc)||_0x569bbc<0x0||_0x569bbc>_0x51ca3a)return null;let _0x4dc413=_0x428d4d+_0x569bbc;return{'startOffset':_0x4dc413,'endOffset':_0x4dc413};}if((_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x203))return!Number['isInteger'](_0x162316[_0x7ac5b7(0x1c6)])||!Number['isInteger'](_0x162316[_0x7ac5b7(0x172)])?null:{'startOffset':Math[_0x7ac5b7(0x197)](_0x162316[_0x7ac5b7(0x1c6)],_0x162316[_0x7ac5b7(0x172)]),'endOffset':Math[_0x7ac5b7(0x14c)](_0x162316[_0x7ac5b7(0x1c6)],_0x162316[_0x7ac5b7(0x172)])};let _0x4c53e7=(_0x162316==null?void 0x0:_0x162316[_0x7ac5b7(0x1fe)])===_0x7ac5b7(0x1bf)?_0x162316[_0x7ac5b7(0x1bf)]:_0x417eb6;return!_0x4c53e7||_0x4c53e7[_0x7ac5b7(0x1a4)]?null:{'startOffset':Math[_0x7ac5b7(0x197)](_0x4c53e7[_0x7ac5b7(0x1c6)],_0x4c53e7['endOffset']),'endOffset':Math[_0x7ac5b7(0x14c)](_0x4c53e7['startOffset'],_0x4c53e7[_0x7ac5b7(0x172)])};}function pt(_0x4abf9e,_0x3e2fb5,_0x360d04,_0x281269){const _0x529894=_0x217dd1;let _0x3d4ca6=_0x4abf9e[_0x529894(0x21f)](_0x3a97e6),_0x1d0b5d=_0x360d04[_0x529894(0x1b5)]('=')?_0x360d04[_0x529894(0x15f)](0x1):_0x360d04,_0x36a637=_0x3d4ca6['sequenceNodesBuilder'](_0x1d0b5d);if(!_0x36a637)return null;let _0x8fa8a6=_0x4abf9e[_0x529894(0x21f)](_0x506168),_0x3921f7=_0x4805eb({'qualifiers':_0x7f61b(_0x36a637),'explicitReferences':_0x281269??[],'resolveBinding':_0x366cb6=>_0x8fa8a6[_0x529894(0x19e)](_0x3e2fb5,_0x366cb6)});return _0x3921f7[_0x529894(0x17b)]===_0x529894(0x180)?_0x3921f7[_0x529894(0x17a)]:null;}function mt(_0x51fba5,_0x35c5fd,_0x38511f){const _0xf5248=_0x217dd1;var _0x28146e;let _0x4cc709=_0x25429d(0x6);for(;_0x51fba5!=null&&(_0x28146e=_0x51fba5[_0xf5248(0x210)])!=null&&_0x28146e[_0xf5248(0x196)](_0x1893ff=>_0x1893ff[_0xf5248(0x141)]===_0x4cc709)||_0x35c5fd[_0xf5248(0x213)](_0x38511f,_0x4cc709);)_0x4cc709=_0x25429d(0x6);return _0x4cc709;}function ht(_0x53242e){try{return Re(_0x53242e);}catch(_0x32047a){if(_0x32047a instanceof C)return null;throw _0x32047a;}}function gt(_0x5ecc5e){const _0x1a0c03=_0x217dd1;let _0x577fe7=_0x5ecc5e[_0x1a0c03(0x152)]&&_0x5ecc5e['nextDocumentData']?vt(_0x5ecc5e[_0x1a0c03(0x211)],_0x5ecc5e[_0x1a0c03(0x173)],_0x5ecc5e['previousDocumentData'],_0x5ecc5e[_0x1a0c03(0x1f6)],_0x5ecc5e[_0x1a0c03(0x1d2)],_0x5ecc5e[_0x1a0c03(0x14b)]):null;return _0x5ecc5e[_0x1a0c03(0x152)]&&_0x5ecc5e[_0x1a0c03(0x1f6)]&&!_0x577fe7?null:{'documentRedo':_0x577fe7,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x5ecc5e[_0x1a0c03(0x173)],'resource':_0x5ecc5e[_0x1a0c03(0x159)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x5ecc5e[_0x1a0c03(0x173)],'resource':_0x5ecc5e[_0x1a0c03(0x142)]}}};}function _t(_0x9e71fd,_0x515445,_0x1d62d5,_0x4959d0){const _0x426dbf=_0x217dd1;_0x4959d0[_0x426dbf(0x151)]({'id':_0x9e71fd[_0x426dbf(0x14b)]+':'+_0x9e71fd[_0x426dbf(0x141)],'unitID':_0x9e71fd[_0x426dbf(0x173)],'redoMutations':[..._0x9e71fd['externalMutations'][_0x426dbf(0x16a)]?[_0x9e71fd['externalMutations'][_0x426dbf(0x16a)]]:[],..._0x515445[_0x426dbf(0x18d)]?[_0x515445[_0x426dbf(0x18d)]]:[],_0x515445['resourceRedo']],'undoMutations':[_0x515445['resourceUndo'],..._0x1d62d5?[_0x1d62d5]:[],..._0x9e71fd['externalMutations'][_0x426dbf(0x1a8)]?[_0x9e71fd[_0x426dbf(0x15b)][_0x426dbf(0x1a8)]]:[]]});}function J(_0x1f5cab){const _0x6ef4da=_0x217dd1;let _0x3d5518=_0x1f5cab[_0x6ef4da(0x219)][_0x6ef4da(0x21f)](_0x41c106),_0x47de34=_0x1f5cab[_0x6ef4da(0x219)][_0x6ef4da(0x21f)](_0xe640ba),_0x2e906d=_0x1f5cab['accessor'][_0x6ef4da(0x21f)](_0x3e1e55),_0x242dee=gt(_0x1f5cab);if(!_0x242dee)return!0x1;let _0x89a549=!0x1,_0x8193fd=null,_0x4a3ad3=!0x1;try{if(_0x1f5cab['externalMutations']['redoMutation']){if(!_0x3d5518[_0x6ef4da(0x170)](_0x1f5cab[_0x6ef4da(0x15b)][_0x6ef4da(0x16a)]['id'],_0x1f5cab[_0x6ef4da(0x15b)]['redoMutation']['params']))return!0x1;_0x89a549=!0x0;}if(_0x242dee['documentRedo']){let _0x3b918c=_0x3d5518[_0x6ef4da(0x170)](_0x242dee[_0x6ef4da(0x18d)]['id'],_0x242dee[_0x6ef4da(0x18d)]['params']);if(!_0x3b918c)return bt(_0x3d5518,_0x1f5cab[_0x6ef4da(0x15b)],_0x89a549),!0x1;_0x8193fd={'id':_0x2dc975['id'],'params':{..._0x3b918c,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3d5518['syncExecuteCommand'](_0x242dee['resourceRedo']['id'],_0x242dee[_0x6ef4da(0x1cc)][_0x6ef4da(0x198)]))return yt(_0x3d5518,_0x8193fd),bt(_0x3d5518,_0x1f5cab[_0x6ef4da(0x15b)],_0x89a549),!0x1;_0x4a3ad3=!0x0,_t(_0x1f5cab,_0x242dee,_0x8193fd,_0x47de34);}catch(_0x2ae161){throw _0x4a3ad3&&_0x3d5518[_0x6ef4da(0x170)](_0x242dee[_0x6ef4da(0x187)]['id'],_0x242dee[_0x6ef4da(0x187)][_0x6ef4da(0x198)]),yt(_0x3d5518,_0x8193fd),bt(_0x3d5518,_0x1f5cab['externalMutations'],_0x89a549),_0x2ae161;}return _0x2e906d[_0x6ef4da(0x1d0)]([{'startOffset':_0x1f5cab[_0x6ef4da(0x1d2)],'endOffset':_0x1f5cab['cursorOffset'],'segmentId':''}],{'unitId':_0x1f5cab[_0x6ef4da(0x173)],'subUnitId':_0x1f5cab['unitId']},!0x1,{[_0x173f0a]:!0x0}),!0x0;}function vt(_0x2be42c,_0x38a912,_0x11c169,_0x26e643,_0x29eae8,_0x586681){let _0x4782ba=xt(_0x11c169,_0x26e643,_0x2ed637(_0x2be42c,''));return _0x4782ba?{'id':_0x2dc975['id'],'params':{'unitId':_0x38a912,'actions':_0x4782ba,'segmentId':'','textRanges':[{'startOffset':_0x29eae8,'endOffset':_0x29eae8,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x586681}}:null;}function yt(_0x51be1e,_0x2912cb){const _0x3de5b3=_0x217dd1;_0x2912cb&&_0x51be1e[_0x3de5b3(0x170)](_0x2912cb['id'],_0x2912cb[_0x3de5b3(0x198)]);}function bt(_0x1fe2ff,_0x14ec56,_0x1fba62){const _0xf63ce=_0x217dd1;_0x1fba62&&_0x14ec56[_0xf63ce(0x1a8)]&&_0x1fe2ff[_0xf63ce(0x170)](_0x14ec56['undoMutation']['id'],_0x14ec56['undoMutation']['params']);}function xt(_0x52e1aa,_0x1070a5,_0x58a1f4){const _0x22e9fe=_0x217dd1;let _0x4e106a=_0x52e1aa[_0x22e9fe(0x220)],_0x358ee7=_0x1070a5['body'],_0x43a1ae=St(_0x4e106a==null?void 0x0:_0x4e106a['dataStream'],_0x358ee7==null?void 0x0:_0x358ee7[_0x22e9fe(0x153)]);if(!_0x43a1ae||!_0x358ee7)return null;let _0x9c6f50=new _0x52174a();return _0x9c6f50['retain'](_0x43a1ae['start']),_0x43a1ae[_0x22e9fe(0x1f9)]>0x0&&_0x9c6f50[_0x22e9fe(0x239)](_0x43a1ae[_0x22e9fe(0x1f9)],_0x252b2a(_0x358ee7,_0x43a1ae[_0x22e9fe(0x1a0)],_0x43a1ae[_0x22e9fe(0x1a0)]+_0x43a1ae['insertLength'],!0x1)),_0x43a1ae['deleteLength']>0x0&&_0x9c6f50[_0x22e9fe(0x1bb)](_0x43a1ae['deleteLength']),_0x267617[_0x22e9fe(0x17e)]()['editOp'](_0x9c6f50['serialize'](),_0x58a1f4);}function St(_0x3bda0e,_0xea8adb){const _0x1ccf97=_0x217dd1;if(_0x3bda0e==null||_0xea8adb==null||_0x3bda0e===_0xea8adb)return null;let _0x459067=0x0;for(;_0x459067<_0x3bda0e[_0x1ccf97(0x171)]&&_0x459067<_0xea8adb[_0x1ccf97(0x171)]&&_0x3bda0e[_0x459067]===_0xea8adb[_0x459067];)_0x459067+=0x1;let _0x25635e=_0x3bda0e[_0x1ccf97(0x171)],_0x69166a=_0xea8adb[_0x1ccf97(0x171)];for(;_0x25635e>_0x459067&&_0x69166a>_0x459067&&_0x3bda0e[_0x25635e-0x1]===_0xea8adb[_0x69166a-0x1];)--_0x25635e,--_0x69166a;return{'start':_0x459067,'deleteLength':_0x25635e-_0x459067,'insertLength':_0x69166a-_0x459067};}function Ct(_0x13e995){const _0x4bfcc2=_0x217dd1;return{'schemaVersion':0x1,'formulas':Object[_0x4bfcc2(0x225)](Object[_0x4bfcc2(0x183)](_0x13e995['formulas'])[_0x4bfcc2(0x164)](([_0x3cc414,_0x56caf2])=>[_0x3cc414,{..._0x56caf2,..._0x56caf2[_0x4bfcc2(0x179)]?{'numberFormat':{..._0x56caf2[_0x4bfcc2(0x179)]}}:null,..._0x56caf2[_0x4bfcc2(0x1da)]?{'lastValue':{..._0x56caf2[_0x4bfcc2(0x1da)]}}:null}]))};}let Y=class extends _0x18377d{constructor(_0x34e44e,_0x1dd4ab,_0x4f58af,_0x48cbd1){const _0x2a5abf=_0x217dd1;super(),this['_instanceService']=_0x34e44e,this[_0x2a5abf(0x1cf)]=_0x1dd4ab,this[_0x2a5abf(0x235)]=_0x4f58af,this[_0x2a5abf(0x1fb)]=_0x48cbd1,N(this,_0x2a5abf(0x1ee),new Set()),N(this,_0x2a5abf(0x189),!0x1),N(this,_0x2a5abf(0x229),!0x1),this[_0x2a5abf(0x162)][_0x2a5abf(0x147)](_0x138c8e[_0x2a5abf(0x17f)])[_0x2a5abf(0x1b2)](_0x519d67=>this[_0x2a5abf(0x1fb)][_0x2a5abf(0x1f1)](_0x519d67)),this['disposeWithMe'](this[_0x2a5abf(0x235)][_0x2a5abf(0x221)][_0x2a5abf(0x1ca)](({unitId:_0x5e642e})=>this[_0x2a5abf(0x1ff)](_0x5e642e))),this[_0x2a5abf(0x144)](this['_instanceService']['unitAdded$'][_0x2a5abf(0x1ca)](({unit:_0x453977})=>{const _0x5adab8=_0x2a5abf;_0x453977[_0x5adab8(0x1fe)]===_0x138c8e[_0x5adab8(0x17f)]&&this[_0x5adab8(0x184)](_0x453977['getUnitId']());})),this[_0x2a5abf(0x144)](this[_0x2a5abf(0x162)][_0x2a5abf(0x165)][_0x2a5abf(0x1ca)](_0x473bc1=>{const _0x4c5b09=_0x2a5abf;this[_0x4c5b09(0x1fb)][_0x4c5b09(0x17c)](_0x473bc1[_0x4c5b09(0x18f)]());})),this[_0x2a5abf(0x144)](this[_0x2a5abf(0x1cf)][_0x2a5abf(0x1ec)](_0x3dc0fa=>{const _0x2b81db=_0x2a5abf;if(_0x3dc0fa['id']===_0x2dc975['id']&&wt(_0x3dc0fa[_0x2b81db(0x198)])){let _0x1112e9=_0x3dc0fa['params'];_0x1112e9[_0x2b81db(0x1a4)]||this[_0x2b81db(0x1ff)](_0x1112e9[_0x2b81db(0x173)]);}}));}[_0x217dd1(0x15c)](){const _0x233b29=_0x217dd1;this[_0x233b29(0x229)]=!0x0,super[_0x233b29(0x15c)]();}[_0x217dd1(0x184)](_0x3ccb93){const _0x6117f8=_0x217dd1;this[_0x6117f8(0x1ee)][_0x6117f8(0x1e2)](_0x3ccb93),!this[_0x6117f8(0x189)]&&(this[_0x6117f8(0x189)]=!0x0,queueMicrotask(()=>{const _0x374227=_0x6117f8;if(this[_0x374227(0x189)]=!0x1,this[_0x374227(0x229)])return;let _0x543600=Array[_0x374227(0x15a)](this['_pendingUnitIds']);this[_0x374227(0x1ee)][_0x374227(0x21d)](),_0x543600['forEach'](_0x4f0e70=>this[_0x374227(0x1ff)](_0x4f0e70));}));}['_syncUnit'](_0xf760cc){const _0x48a762=_0x217dd1;let _0x5950f7=this['_instanceService'][_0x48a762(0x16c)](_0xf760cc,_0x138c8e['UNIVER_DOC']);_0x5950f7&&this[_0x48a762(0x1fb)][_0x48a762(0x1f1)](_0x5950f7);}};Y=I([F(0x0,_0x147b46),F(0x1,_0x41c106),F(0x2,_0x5e32df(P)),F(0x3,_0x5e32df(L))],Y);function wt(_0x197089){const _0x5d4dd7=_0x217dd1;return typeof _0x197089==_0x5d4dd7(0x1ea)&&!!_0x197089&&_0x5d4dd7(0x173)in _0x197089&&typeof _0x197089[_0x5d4dd7(0x173)]==_0x5d4dd7(0x22e)&&(!(_0x5d4dd7(0x1a4)in _0x197089)||_0x197089['segmentId']===void 0x0||typeof _0x197089[_0x5d4dd7(0x1a4)]==_0x5d4dd7(0x22e));}let X=class extends _0x18377d{constructor(_0x3ffb79,_0x5e3616){const _0x39df9a=_0x217dd1;super(),this[_0x39df9a(0x1ed)]=_0x3ffb79,this[_0x39df9a(0x18e)]=_0x5e3616,this[_0x39df9a(0x144)](this['_resourceManagerService'][_0x39df9a(0x218)]({'pluginName':y,'businesses':[_0x138c8e[_0x39df9a(0x17f)]],'toJson':_0x307fe0=>JSON['stringify'](this[_0x39df9a(0x18e)][_0x39df9a(0x1cb)](_0x307fe0)),'parseJson':_0x3013ba=>JSON[_0x39df9a(0x21e)](_0x3013ba),'onLoad':(_0x25bd54,_0x1b7f1b)=>{const _0x513c58=_0x39df9a;this[_0x513c58(0x18e)][_0x513c58(0x1f8)](_0x25bd54,_0x1b7f1b);},'onUnLoad':_0x489680=>this['_docFormulaModel'][_0x39df9a(0x193)](_0x489680)}));}};X=I([F(0x0,_0x2d200b),F(0x1,_0x5e32df(P))],X);var Tt=_0x217dd1(0x1a2),Et=_0x217dd1(0x232);const Dt={};let Z=class extends _0x18377d{constructor(_0x354703,_0x896f11,_0x154eb8){const _0x5621fa=_0x217dd1;super(),this['_univerInstanceService']=_0x354703,this[_0x5621fa(0x1e4)]=_0x896f11,this[_0x5621fa(0x144)](_0x154eb8[_0x5621fa(0x1e3)]({'resolve':(_0x3579e5,_0x33487f)=>{const _0x4f3b91=_0x5621fa;var _0x146552;return((_0x146552=_0x33487f[_0x4f3b91(0x210)])==null?void 0x0:_0x146552['filter'](w)[_0x4f3b91(0x164)](_0x1f40f4=>({'startOffset':_0x1f40f4['startIndex'],'endOffset':_0x1f40f4[_0x4f3b91(0x1fc)]+0x1,'text':this[_0x4f3b91(0x1e6)](_0x3579e5,_0x1f40f4[_0x4f3b91(0x141)])})))??[];}})),this['disposeWithMe'](this[_0x5621fa(0x1e4)][_0x5621fa(0x22a)][_0x5621fa(0x1ca)](({unitId:_0x206576})=>{const _0x39b4af=_0x5621fa;_0x154eb8[_0x39b4af(0x149)](_0x206576);}));}[_0x217dd1(0x1e6)](_0x571e3b,_0x53fa09){const _0x18ff6e=_0x217dd1;var _0x7c7ee9;return((_0x7c7ee9=this[_0x18ff6e(0x1e4)]['getResult']({'unitId':_0x571e3b,'rangeId':_0x53fa09}))==null?void 0x0:_0x7c7ee9[_0x18ff6e(0x201)])??'';}[_0x217dd1(0x1d1)](_0xbbd049,_0xdd5fd3,_0x5f1a82){const _0x32e49d=_0x217dd1;var _0x371394;let _0x434ec2=this['_univerInstanceService'][_0x32e49d(0x16c)](_0xbbd049,_0x138c8e[_0x32e49d(0x17f)]),_0x89cec4=_0x434ec2==null?void 0x0:_0x434ec2['getBody']();if(!_0x89cec4)return'';let _0x570218=_0x89cec4[_0x32e49d(0x153)][_0x32e49d(0x15f)](_0xdd5fd3,_0x5f1a82),_0x1dce36=((_0x371394=_0x89cec4['customRanges'])==null?void 0x0:_0x371394[_0x32e49d(0x1a5)](_0x2d16e2=>w(_0x2d16e2)&&_0x2d16e2[_0x32e49d(0x1e7)]>=_0xdd5fd3&&_0x2d16e2['endIndex']<_0x5f1a82)[_0x32e49d(0x1b9)]((_0x3f2769,_0x315471)=>_0x315471[_0x32e49d(0x1e7)]-_0x3f2769[_0x32e49d(0x1e7)]))??[];for(let _0x1104f8 of _0x1dce36){let _0x7af921=_0x1104f8['startIndex']-_0xdd5fd3,_0x1d6b27=_0x1104f8[_0x32e49d(0x1fc)]-_0xdd5fd3+0x1;_0x570218=''+_0x570218[_0x32e49d(0x15f)](0x0,_0x7af921)+this[_0x32e49d(0x1e6)](_0xbbd049,_0x1104f8[_0x32e49d(0x141)])+_0x570218[_0x32e49d(0x15f)](_0x1d6b27);}return _0x570218;}['degradeDocumentData'](_0x25a2de){return Ot(_0x25a2de);}[_0x217dd1(0x22b)](_0x23bae8,_0x1180ff,_0x153998={}){const _0x4e79d5=_0x217dd1;var _0x32fe0a;return Ve({'id':_0x23bae8,'body':_0x1180ff,'documentStyle':{}},(((_0x32fe0a=_0x1180ff[_0x4e79d5(0x210)])==null?void 0x0:_0x32fe0a[_0x4e79d5(0x1a5)](w))??[])[_0x4e79d5(0x164)](_0x4c786e=>({'rangeId':_0x4c786e[_0x4e79d5(0x141)],'text':_0x153998[_0x4c786e['rangeId']]??this[_0x4e79d5(0x1e6)](_0x23bae8,_0x4c786e[_0x4e79d5(0x141)])})))[_0x4e79d5(0x220)]??{'dataStream':''};}};Z=I([F(0x0,_0x147b46),F(0x1,_0x5e32df(L)),F(0x2,_0x5e32df(_0xbd430a))],Z);function Ot(_0x350b18){const _0x18860e=_0x217dd1;var _0x38873c,_0x508833;let _0x46aaf6=kt(_0x350b18),_0x3997c7=Ve(_0x350b18,(((_0x38873c=_0x350b18[_0x18860e(0x220)])==null||(_0x38873c=_0x38873c['customRanges'])==null?void 0x0:_0x38873c[_0x18860e(0x1a5)](w))??[])[_0x18860e(0x164)](_0x43a8d3=>({'rangeId':_0x43a8d3['rangeId'],'text':At(_0x46aaf6==null?void 0x0:_0x46aaf6[_0x18860e(0x1d7)][_0x43a8d3[_0x18860e(0x141)]])})));return _0x3997c7[_0x18860e(0x192)]=(_0x508833=_0x3997c7['resources'])==null?void 0x0:_0x508833['filter'](_0x2d81ca=>_0x2d81ca[_0x18860e(0x199)]!==y),_0x3997c7;}function kt(_0x52951a){const _0x27c6bc=_0x217dd1;var _0x4d71d5;let _0x29ce75=(_0x4d71d5=_0x52951a[_0x27c6bc(0x192)])==null||(_0x4d71d5=_0x4d71d5[_0x27c6bc(0x174)](_0x3300bd=>_0x3300bd['name']===_0x27c6bc(0x156)))==null?void 0x0:_0x4d71d5[_0x27c6bc(0x181)];if(_0x29ce75)try{let _0x5dc692=JSON['parse'](_0x29ce75);return x(_0x5dc692)?_0x5dc692:void 0x0;}catch{return;}}function At(_0x4438fc){const _0xe8ed7b=_0x217dd1;return _0x4438fc?_0x27458f({'lastValue':_0x4438fc[_0xe8ed7b(0x1da)],'numberFormat':_0x4438fc[_0xe8ed7b(0x179)]})[_0xe8ed7b(0x201)]:'';}let Q=class extends _0x18377d{constructor(_0x512f01,_0x14f8b2,_0x45e783){const _0x28d510=_0x217dd1;super(),this[_0x28d510(0x1e4)]=_0x512f01,this['_cacheEligibilityService']=_0x14f8b2,this[_0x28d510(0x144)](_0x45e783[_0x28d510(0x209)](this));}['collectMutations'](_0x24e167){const _0x12c09f=_0x217dd1;let _0x1ce1cd=new Map();for(let _0xc024ef of this[_0x12c09f(0x1e4)][_0x12c09f(0x205)]()){var _0xcad0ea;if(!this[_0x12c09f(0x16b)][_0x12c09f(0x14f)](_0xc024ef['config'][_0x12c09f(0x1ab)],_0xc024ef[_0x12c09f(0x202)])[_0x12c09f(0x21c)])continue;let _0x53e971=_0x2973cb(_0xc024ef[_0x12c09f(0x202)]),_0x23d02e=_0x53e971?_0x1b8769(_0x53e971):null;if(!_0x23d02e||jt(_0xc024ef[_0x12c09f(0x1ba)][_0x12c09f(0x1da)],_0x23d02e))continue;let _0x4e97dc=_0x1ce1cd[_0x12c09f(0x21f)](_0xc024ef[_0x12c09f(0x1c8)][_0x12c09f(0x173)])??[];_0x4e97dc[_0x12c09f(0x23b)]({'rangeId':_0xc024ef[_0x12c09f(0x1c8)]['rangeId'],'expectedFormula':_0xc024ef[_0x12c09f(0x1ba)]['formula'],'expectedNumberFormat':(_0xcad0ea=_0xc024ef['config'][_0x12c09f(0x179)])==null?void 0x0:_0xcad0ea[_0x12c09f(0x228)],'expectedReferenceRevision':_0xc024ef[_0x12c09f(0x1c9)],'lastValue':_0x23d02e}),_0x1ce1cd[_0x12c09f(0x1a1)](_0xc024ef[_0x12c09f(0x1c8)][_0x12c09f(0x173)],_0x4e97dc);}return Array[_0x12c09f(0x15a)](_0x1ce1cd,([_0x4ce7fd,_0x511e9b])=>({'id':H['id'],'params':{'unitId':_0x4ce7fd,'updates':_0x511e9b}}));}};Q=I([F(0x0,_0x5e32df(L)),F(0x1,_0x5e32df(_0x4f9c1c)),F(0x2,_0x5e32df(_0x12a840))],Q);function _0x28ce(_0x19524e,_0x1a7892){_0x19524e=_0x19524e-0x140;const _0x2a6feb=_0x2a6f();let _0x28cee0=_0x2a6feb[_0x19524e];return _0x28cee0;}function jt(_0x18f5ca,_0x1ee31e){const _0x3acddf=_0x217dd1;return(_0x18f5ca==null?void 0x0:_0x18f5ca['v'])===_0x1ee31e['v']&&(_0x18f5ca==null?void 0x0:_0x18f5ca['t'])===_0x1ee31e['t']&&(_0x18f5ca==null?void 0x0:_0x18f5ca['pattern'])===_0x1ee31e[_0x3acddf(0x228)];}let $=class extends _0x2b73e4{constructor(_0x262881=Dt,_0x3acb9a,_0x3821a4,_0xca9cb2){const _0x69240f=_0x217dd1;super(),this[_0x69240f(0x208)]=_0x262881,this[_0x69240f(0x14e)]=_0x3acb9a,this[_0x69240f(0x1cf)]=_0x3821a4,this[_0x69240f(0x1dc)]=_0xca9cb2;let {..._0x2e27c2}=_0x59447c({},Dt,this[_0x69240f(0x208)]);this[_0x69240f(0x1dc)][_0x69240f(0x1e9)](_0x69240f(0x177),_0x2e27c2);}[_0x217dd1(0x1e0)](){const _0x492f94=_0x217dd1;this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([P]),this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([L]),this['_injector'][_0x492f94(0x1e2)]([X]),this[_0x492f94(0x14e)][_0x492f94(0x1e2)]([Y]),this['_injector']['add']([Q]),this['_injector'][_0x492f94(0x1e2)]([Z]),_0x53385a(this[_0x492f94(0x14e)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x492f94(0x1b2)](_0x155fbf=>this[_0x492f94(0x144)](this['_commandService'][_0x492f94(0x1a7)](_0x155fbf)));}};N($,_0x217dd1(0x20c),y),N($,_0x217dd1(0x1c0),Tt),N($,'version',Et),N($,_0x217dd1(0x1fe),_0x138c8e[_0x217dd1(0x17f)]),$=I([_0x4eb3b4(_0x3855ef,_0x5bf116,_0x50ecdf),F(0x1,_0x5e32df(_0x11059a)),F(0x2,_0x41c106),F(0x3,_0x35fc54)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3a3a0c=_0x5a9d;(function(_0x36e180,_0x4e5afb){var _0x2e221c=_0x5a9d,_0x406648=_0x36e180();while(!![]){try{var _0x56043d=parseInt(_0x2e221c(0xeb))/0x1+-parseInt(_0x2e221c(0xef))/0x2+parseInt(_0x2e221c(0x127))/0x3+-parseInt(_0x2e221c(0x130))/0x4+-parseInt(_0x2e221c(0x11b))/0x5*(-parseInt(_0x2e221c(0x101))/0x6)+parseInt(_0x2e221c(0xf1))/0x7*(parseInt(_0x2e221c(0x133))/0x8)+parseInt(_0x2e221c(0x10d))/0x9*(-parseInt(_0x2e221c(0x12d))/0xa);if(_0x56043d===_0x4e5afb)break;else _0x406648['push'](_0x406648['shift']());}catch(_0x1fef7f){_0x406648['push'](_0x406648['shift']());}}}(_0x5938,0xd995f));import{ConvertDocFormulaToTextCommand as _0x2322c8,DocFormulaDisplayTextService as _0x153131,DocFormulaModel as _0x3de5b9,DocFormulaService as _0x5853dc,InsertDocFormulaCommand as _0x1dca28,RemoveDocFormulaCommand as _0x218400,ReplaceDocFormulaWithTextCommand as _0x1ecc26,SetDocFormulaNumberFormatCommand as _0x5f0249,UpdateDocFormulaCommand as _0x449523,isDocFormulaRange as _0x386fc6}from'@univerjs-pro/docs-formula';import{ICommandService as _0x24b4b7,IResourceLoaderService as _0x35fc3b,IUniverInstanceService as _0x462ecd,Inject as _0x54ace0,UniverInstanceType as _0x4e1ebb}from'@univerjs/core';import{FDocument as _0x4e2d9c,FDocumentParagraph as _0x524dda,FDocumentTextRange as _0x5ab49e}from'@univerjs/docs/facade';function v(_0x30c4b5,_0x515b4f){return function(_0x3d7031,_0xd0de41){_0x515b4f(_0x3d7031,_0xd0de41,_0x30c4b5);};}function y(_0x200c5c,_0x3db804,_0x141a83,_0x2ea822){var _0x505e78=_0x5a9d,_0x1d383d=arguments[_0x505e78(0xfa)],_0x3c969f=_0x1d383d<0x3?_0x3db804:_0x2ea822===null?_0x2ea822=Object[_0x505e78(0x129)](_0x3db804,_0x141a83):_0x2ea822,_0x55c476;if(typeof Reflect==_0x505e78(0xf2)&&typeof Reflect[_0x505e78(0x107)]==_0x505e78(0xf4))_0x3c969f=Reflect['decorate'](_0x200c5c,_0x3db804,_0x141a83,_0x2ea822);else{for(var _0x1c27d6=_0x200c5c[_0x505e78(0xfa)]-0x1;_0x1c27d6>=0x0;_0x1c27d6--)(_0x55c476=_0x200c5c[_0x1c27d6])&&(_0x3c969f=(_0x1d383d<0x3?_0x55c476(_0x3c969f):_0x1d383d>0x3?_0x55c476(_0x3db804,_0x141a83,_0x3c969f):_0x55c476(_0x3db804,_0x141a83))||_0x3c969f);}return _0x1d383d>0x3&&_0x3c969f&&Object['defineProperty'](_0x3db804,_0x141a83,_0x3c969f),_0x3c969f;}let b=class{constructor(_0x5c2f94,_0xbd171,_0xa7dfef,_0x3bb6a8,_0x5e9939,_0x1f1dcd){var _0x9dd27d=_0x5a9d;this[_0x9dd27d(0x10f)]=_0x5c2f94,this['_rangeId']=_0xbd171,this[_0x9dd27d(0x110)]=_0xa7dfef,this[_0x9dd27d(0x132)]=_0x3bb6a8,this[_0x9dd27d(0x116)]=_0x5e9939,this[_0x9dd27d(0x123)]=_0x1f1dcd;}[_0x3a3a0c(0x12b)](){var _0x595cea=_0x3a3a0c;return this[_0x595cea(0x105)];}[_0x3a3a0c(0x134)](){var _0x35a2b6=_0x3a3a0c;let _0x4c41ab=this['_getCustomRange']();return _0x4c41ab?{'endOffset':_0x4c41ab[_0x35a2b6(0x119)]+0x1,'rangeId':_0x4c41ab[_0x35a2b6(0x135)],'startOffset':_0x4c41ab[_0x35a2b6(0xfe)]}:null;}[_0x3a3a0c(0xed)](){var _0x3a9f67=_0x3a3a0c,_0x12743e;return((_0x12743e=this[_0x3a9f67(0x132)][_0x3a9f67(0xed)](this['_unitId'],this[_0x3a9f67(0x105)]))==null?void 0x0:_0x12743e['formula'])??'';}[_0x3a3a0c(0x11f)](){var _0x35a435=_0x3a3a0c;return this[_0x35a435(0x132)][_0x35a435(0xed)](this[_0x35a435(0x10f)],this[_0x35a435(0x105)])??null;}['getResult'](){var _0xf5afc2=_0x3a3a0c;return this[_0xf5afc2(0x116)][_0xf5afc2(0x112)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}['describe'](){var _0x1708a8=_0x3a3a0c;let _0x25e384=this[_0x1708a8(0x134)](),_0x138f39=this[_0x1708a8(0x11f)](),_0x348359=this[_0x1708a8(0x112)]();return!_0x25e384||!_0x138f39||!_0x348359?null:{..._0x25e384,'config':_0x138f39,'formula':_0x138f39[_0x1708a8(0x118)],'result':_0x348359,'type':_0x1708a8(0x118)};}[_0x3a3a0c(0xf9)](_0x187582){var _0x580aaf=_0x3a3a0c;return this[_0x580aaf(0x110)][_0x580aaf(0xf6)](_0x449523['id'],{'externalReferences':_0x187582['externalReferences'],'formula':_0x187582['formula'],'numberFormat':_0x187582[_0x580aaf(0xfc)],'rangeId':this[_0x580aaf(0x105)],'unitId':this[_0x580aaf(0x10f)]});}[_0x3a3a0c(0x113)](_0x52457e){var _0x1da569=_0x3a3a0c;return this[_0x1da569(0x110)][_0x1da569(0xf6)](_0x5f0249['id'],{'numberFormat':_0x52457e,'rangeId':this[_0x1da569(0x105)],'unitId':this[_0x1da569(0x10f)]});}[_0x3a3a0c(0x128)](){var _0x476d4d=_0x3a3a0c;return this[_0x476d4d(0x110)][_0x476d4d(0xf6)](_0x218400['id'],{'rangeId':this[_0x476d4d(0x105)],'unitId':this[_0x476d4d(0x10f)]});}['replaceWithText'](_0x4b5eb1){var _0x3e03f3=_0x3a3a0c;return this[_0x3e03f3(0x110)][_0x3e03f3(0xf6)](_0x1ecc26['id'],{'rangeId':this[_0x3e03f3(0x105)],'text':_0x4b5eb1,'unitId':this[_0x3e03f3(0x10f)]});}[_0x3a3a0c(0x102)](){var _0xe685ff=_0x3a3a0c;return this['_commandService'][_0xe685ff(0xf6)](_0x2322c8['id'],{'rangeId':this[_0xe685ff(0x105)],'unitId':this[_0xe685ff(0x10f)]});}[_0x3a3a0c(0x136)](){var _0x1f6817=_0x3a3a0c,_0x4faa91;let _0x1c8157=this[_0x1f6817(0x123)]['getUnit'](this[_0x1f6817(0x10f)],_0x4e1ebb[_0x1f6817(0x12e)]);return _0x1c8157==null||(_0x4faa91=_0x1c8157[_0x1f6817(0x12c)]()[_0x1f6817(0xfd)])==null||(_0x4faa91=_0x4faa91[_0x1f6817(0x121)])==null?void 0x0:_0x4faa91[_0x1f6817(0x114)](_0xb1f0f7=>_0xb1f0f7[_0x1f6817(0x135)]===this[_0x1f6817(0x105)]&&_0x386fc6(_0xb1f0f7));}};b=y([v(0x2,_0x24b4b7),v(0x3,_0x54ace0(_0x3de5b9)),v(0x4,_0x54ace0(_0x5853dc)),v(0x5,_0x462ecd)],b);function x(_0x39507f){'@babel/helpers - typeof';var _0x59360d=_0x3a3a0c;return x=typeof Symbol==_0x59360d(0xf4)&&typeof Symbol['iterator']=='symbol'?function(_0x4bec02){return typeof _0x4bec02;}:function(_0x4a66dc){var _0xc0f842=_0x59360d;return _0x4a66dc&&typeof Symbol=='function'&&_0x4a66dc[_0xc0f842(0x11c)]===Symbol&&_0x4a66dc!==Symbol[_0xc0f842(0x10b)]?_0xc0f842(0x100):typeof _0x4a66dc;},x(_0x39507f);}function S(_0x42e7de,_0x498698){var _0x596524=_0x3a3a0c;if(x(_0x42e7de)!='object'||!_0x42e7de)return _0x42e7de;var _0x2bb725=_0x42e7de[Symbol[_0x596524(0x10a)]];if(_0x2bb725!==void 0x0){var _0x69ea43=_0x2bb725[_0x596524(0x138)](_0x42e7de,_0x498698||'default');if(x(_0x69ea43)!=_0x596524(0xf2))return _0x69ea43;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x498698===_0x596524(0x111)?String:Number)(_0x42e7de);}function C(_0x46b597){var _0x1339a9=_0x3a3a0c,_0x106307=S(_0x46b597,_0x1339a9(0x111));return x(_0x106307)==_0x1339a9(0x100)?_0x106307:_0x106307+'';}function w(_0x5351c6,_0x4ab59d,_0x58a9af){var _0x3750d5=_0x3a3a0c;return(_0x4ab59d=C(_0x4ab59d))in _0x5351c6?Object[_0x3750d5(0xff)](_0x5351c6,_0x4ab59d,{'value':_0x58a9af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5351c6[_0x4ab59d]=_0x58a9af,_0x5351c6;}var T=class extends _0x4e2d9c{constructor(..._0x519d1d){var _0x381b60=_0x3a3a0c;super(..._0x519d1d),w(this,_0x381b60(0x10c),void 0x0),w(this,'_docsFormulaDisplayTextService',void 0x0),w(this,_0x381b60(0xea),void 0x0),w(this,_0x381b60(0x137),void 0x0);}[_0x3a3a0c(0xf3)](_0x14110c){var _0x161599=_0x3a3a0c;this[_0x161599(0x10c)]=_0x14110c[_0x161599(0x117)](_0x24b4b7),this[_0x161599(0x10e)]=_0x14110c[_0x161599(0x117)](_0x153131),this[_0x161599(0xea)]=_0x14110c['get'](_0x3de5b9),this['_docsFormulaResourceLoaderService']=_0x14110c[_0x161599(0x117)](_0x35fc3b);}[_0x3a3a0c(0x131)](){var _0x2de62f=_0x3a3a0c;return this['_getCompleteRanges']()[_0x2de62f(0x11e)](_0x2e09e4=>this[_0x2de62f(0x12f)](_0x2e09e4['rangeId']));}['getFormula'](_0x1e03e0){var _0x5b5fcc=_0x3a3a0c;return this[_0x5b5fcc(0x12a)]()[_0x5b5fcc(0xee)](_0x4fd12e=>_0x4fd12e[_0x5b5fcc(0x135)]===_0x1e03e0)?this[_0x5b5fcc(0x12f)](_0x1e03e0):null;}[_0x3a3a0c(0xf5)](_0x3efc31){var _0xed2d0a=_0x3a3a0c;let _0x3d58b0=this['_getCompleteRanges']()[_0xed2d0a(0x114)](_0x1dd3ca=>_0x1dd3ca[_0xed2d0a(0xfe)]<=_0x3efc31&&_0x3efc31<=_0x1dd3ca[_0xed2d0a(0x119)]);return _0x3d58b0?this[_0xed2d0a(0x12f)](_0x3d58b0[_0xed2d0a(0x135)]):null;}[_0x3a3a0c(0x122)](){var _0x598db9=_0x3a3a0c;let _0x3aac3f=this[_0x598db9(0x137)][_0x598db9(0x124)](this['id']);if(!_0x3aac3f)throw Error(_0x598db9(0xec)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x598db9(0x10e)][_0x598db9(0x126)](_0x3aac3f);}['insertFormula'](_0xadf386){var _0x13cccc=_0x3a3a0c;return this[_0x13cccc(0x108)]({'externalReferences':_0xadf386[_0x13cccc(0xfb)],'formula':_0xadf386[_0x13cccc(0x118)],'numberFormat':_0xadf386[_0x13cccc(0xfc)],'target':{'type':_0x13cccc(0x109),'startOffset':_0xadf386[_0x13cccc(0xf8)],'endOffset':_0xadf386[_0x13cccc(0x125)]},'unitId':this['getId']()});}[_0x3a3a0c(0x108)](_0x2ada71){var _0x471c21=_0x3a3a0c;let _0x30a7bc=this[_0x471c21(0x10c)][_0x471c21(0xf6)](_0x1dca28['id'],_0x2ada71);return _0x30a7bc?this[_0x471c21(0x12f)](_0x30a7bc[_0x471c21(0x135)]):null;}[_0x3a3a0c(0x12a)](){var _0x12c68b=_0x3a3a0c,_0x2839cc;let _0x12db94=this[_0x12c68b(0xea)]['getFormulas'](this[_0x12c68b(0x12b)]());return((_0x2839cc=this['getBody']('')['customRanges'])==null?void 0x0:_0x2839cc['filter'](_0x5e4ed8=>_0x386fc6(_0x5e4ed8)&&_0x12db94[_0x5e4ed8[_0x12c68b(0x135)]]!=null))??[];}['_createFormula'](_0x55e4e7){var _0x4942b3=_0x3a3a0c;return this[_0x4942b3(0x106)][_0x4942b3(0x104)](b,this[_0x4942b3(0x12b)](),_0x55e4e7);}};_0x4e2d9c[_0x3a3a0c(0x11d)](T);var E=class extends _0x524dda{constructor(..._0x4da8dd){var _0x78e132=_0x3a3a0c;super(..._0x4da8dd),w(this,_0x78e132(0x10c),void 0x0);}[_0x3a3a0c(0xf3)](_0x1e136c){var _0x4a2492=_0x3a3a0c;this['_docsFormulaCommandService']=_0x1e136c[_0x4a2492(0x117)](_0x24b4b7);}['insertFormula'](_0x5d1465,_0xcee93e,_0x1ac3d2={}){var _0x4506d0=_0x3a3a0c;return this[_0x4506d0(0x108)](_0x5d1465,_0xcee93e,_0x1ac3d2);}[_0x3a3a0c(0x120)](_0x76880d,_0x3972d4={}){var _0x17b82f=_0x3a3a0c;return this['_insert'](_0x17b82f(0xf7),_0x76880d,_0x3972d4);}['_insert'](_0xa0174f,_0x2a0762,_0x4ac866){var _0x2425db=_0x3a3a0c;if(this[_0x2425db(0x103)]())return null;let _0xfaf39={'externalReferences':_0x4ac866[_0x2425db(0xfb)],'formula':_0x2a0762,'numberFormat':_0x4ac866[_0x2425db(0xfc)],'target':{'type':_0x2425db(0xf0),'paragraphId':this['getId'](),'position':_0xa0174f},'unitId':this['_document'][_0x2425db(0x12b)]()},_0x4dee5d=this[_0x2425db(0x10c)]['syncExecuteCommand'](_0x1dca28['id'],_0xfaf39);return _0x4dee5d?this[_0x2425db(0x106)][_0x2425db(0x104)](b,this[_0x2425db(0x115)]['getId'](),_0x4dee5d[_0x2425db(0x135)]):null;}};function _0x5a9d(_0x3d0754,_0xbcd0a1){_0x3d0754=_0x3d0754-0xea;var _0x59387b=_0x5938();var _0x5a9d30=_0x59387b[_0x3d0754];return _0x5a9d30;}_0x524dda['extend'](E);var D=class extends _0x5ab49e{constructor(..._0x509171){var _0x429823=_0x3a3a0c;super(..._0x509171),w(this,_0x429823(0x10c),void 0x0);}['_initialize'](_0x3b0f88){var _0x21cc68=_0x3a3a0c;this[_0x21cc68(0x10c)]=_0x3b0f88[_0x21cc68(0x117)](_0x24b4b7);}[_0x3a3a0c(0x11a)](_0x46f00f,_0x1c0f9d={}){var _0x2cde12=_0x3a3a0c;let {endOffset:_0x4114bc,segmentId:_0x24f099,startOffset:_0x18c376}=this[_0x2cde12(0x134)]();return _0x24f099?null:this[_0x2cde12(0x108)](_0x18c376,_0x4114bc,_0x46f00f,_0x1c0f9d);}['_insert'](_0x40ac33,_0x2e214a,_0x49c249,_0x48f604){var _0x28ee33=_0x3a3a0c;let _0x2b44c9={'externalReferences':_0x48f604['externalReferences'],'formula':_0x49c249,'numberFormat':_0x48f604['numberFormat'],'target':{'type':_0x28ee33(0x109),'startOffset':_0x40ac33,'endOffset':_0x2e214a},'unitId':this[_0x28ee33(0x115)][_0x28ee33(0x12b)]()},_0x2ac913=this[_0x28ee33(0x10c)][_0x28ee33(0xf6)](_0x1dca28['id'],_0x2b44c9);return _0x2ac913?this[_0x28ee33(0x106)]['createInstance'](b,this[_0x28ee33(0x115)][_0x28ee33(0x12b)](),_0x2ac913[_0x28ee33(0x135)]):null;}};_0x5ab49e[_0x3a3a0c(0x11d)](D);function _0x5938(){var _0x2b9a87=['appendFormula','customRanges','saveFormulaDisplayTextSnapshot','_univerInstanceService','saveUnit','endOffset','degradeDocumentData','2837700ssPvpG','remove','getOwnPropertyDescriptor','_getCompleteRanges','getId','getSnapshot','100QMwxIK','UNIVER_DOC','_createFormula','2074308ZmAWtD','getFormulas','_model','8mBaJdj','getRange','rangeId','_getCustomRange','_docsFormulaResourceLoaderService','call','_docsFormulaModel','956527KKRstw','Document\x20','getFormula','some','3115372zQRPhj','paragraph','4236372RLCIDe','object','_initialize','function','getFormulaAt','syncExecuteCommand','end','startOffset','update','length','externalReferences','numberFormat','body','startIndex','defineProperty','symbol','54942UOneVJ','convertToText','getSegmentId','createInstance','_rangeId','_injector','decorate','_insert','range','toPrimitive','prototype','_docsFormulaCommandService','1094274AgEvBx','_docsFormulaDisplayTextService','_unitId','_commandService','string','getResult','setNumberFormat','find','_document','_service','get','formula','endIndex','replaceWithFormula','915JlzEyY','constructor','extend','map','getConfig'];_0x5938=function(){return _0x2b9a87;};return _0x5938();}export{b as FDocumentFormula};
1
+ var _0x2b355b=_0x3a44;(function(_0x3b99bc,_0x4a9c94){var _0x205c82=_0x3a44,_0x4bf381=_0x3b99bc();while(!![]){try{var _0x3785b0=-parseInt(_0x205c82(0x1d2))/0x1*(-parseInt(_0x205c82(0x190))/0x2)+-parseInt(_0x205c82(0x19f))/0x3+parseInt(_0x205c82(0x1ac))/0x4+-parseInt(_0x205c82(0x18a))/0x5+parseInt(_0x205c82(0x1b3))/0x6+parseInt(_0x205c82(0x192))/0x7+-parseInt(_0x205c82(0x193))/0x8;if(_0x3785b0===_0x4a9c94)break;else _0x4bf381['push'](_0x4bf381['shift']());}catch(_0x4d233e){_0x4bf381['push'](_0x4bf381['shift']());}}}(_0x3b5e,0x58081));import{ConvertDocFormulaToTextCommand as _0x2d4520,DocFormulaDisplayTextService as _0xb17991,DocFormulaModel as _0x32fc45,DocFormulaService as _0x5bf394,InsertDocFormulaCommand as _0x3e5dad,RemoveDocFormulaCommand as _0x3eeb8c,ReplaceDocFormulaWithTextCommand as _0x497f52,SetDocFormulaNumberFormatCommand as _0x5dba3c,UpdateDocFormulaCommand as _0x9bf949,isDocFormulaRange as _0x3a1bb9}from'@univerjs-pro/docs-formula';import{ICommandService as _0x128e28,IResourceLoaderService as _0xcfcf25,IUniverInstanceService as _0x23abd6,Inject as _0x2f2ecf,UniverInstanceType as _0x5a4427}from'@univerjs/core';import{FDocument as _0x1cb9b3,FDocumentParagraph as _0x477006,FDocumentTextRange as _0xe94339}from'@univerjs/docs/facade';function v(_0x558cab,_0x40a1cc){return function(_0x4af14b,_0x55fda7){_0x40a1cc(_0x4af14b,_0x55fda7,_0x558cab);};}function y(_0x3795b2,_0x507c35,_0x2038e8,_0x1aaa30){var _0xef8a6c=_0x3a44,_0x3016e6=arguments['length'],_0x36f69a=_0x3016e6<0x3?_0x507c35:_0x1aaa30===null?_0x1aaa30=Object['getOwnPropertyDescriptor'](_0x507c35,_0x2038e8):_0x1aaa30,_0x217356;if(typeof Reflect==_0xef8a6c(0x1b1)&&typeof Reflect[_0xef8a6c(0x1c7)]==_0xef8a6c(0x1bf))_0x36f69a=Reflect['decorate'](_0x3795b2,_0x507c35,_0x2038e8,_0x1aaa30);else{for(var _0x48fc6d=_0x3795b2[_0xef8a6c(0x1c5)]-0x1;_0x48fc6d>=0x0;_0x48fc6d--)(_0x217356=_0x3795b2[_0x48fc6d])&&(_0x36f69a=(_0x3016e6<0x3?_0x217356(_0x36f69a):_0x3016e6>0x3?_0x217356(_0x507c35,_0x2038e8,_0x36f69a):_0x217356(_0x507c35,_0x2038e8))||_0x36f69a);}return _0x3016e6>0x3&&_0x36f69a&&Object[_0xef8a6c(0x1a3)](_0x507c35,_0x2038e8,_0x36f69a),_0x36f69a;}let b=class{constructor(_0x533d09,_0x2d879f,_0x2451b0,_0x3272f3,_0x280091,_0x1d3e0e){var _0x2e43d7=_0x3a44;this[_0x2e43d7(0x1a8)]=_0x533d09,this[_0x2e43d7(0x1c1)]=_0x2d879f,this[_0x2e43d7(0x1ab)]=_0x2451b0,this['_model']=_0x3272f3,this['_service']=_0x280091,this[_0x2e43d7(0x1b9)]=_0x1d3e0e;}[_0x2b355b(0x1b2)](){var _0x524c58=_0x2b355b;return this[_0x524c58(0x1c1)];}[_0x2b355b(0x19c)](){var _0x59abd3=_0x2b355b;let _0x321151=this[_0x59abd3(0x18b)]();return _0x321151?{'endOffset':_0x321151['endIndex']+0x1,'rangeId':_0x321151[_0x59abd3(0x195)],'startOffset':_0x321151[_0x59abd3(0x199)]}:null;}[_0x2b355b(0x1b8)](){var _0x2e643a=_0x2b355b,_0x1b162e;return((_0x1b162e=this[_0x2e643a(0x1cf)][_0x2e643a(0x1b8)](this[_0x2e643a(0x1a8)],this[_0x2e643a(0x1c1)]))==null?void 0x0:_0x1b162e[_0x2e643a(0x19e)])??'';}[_0x2b355b(0x197)](){var _0x351545=_0x2b355b;return this[_0x351545(0x1cf)][_0x351545(0x1b8)](this[_0x351545(0x1a8)],this[_0x351545(0x1c1)])??null;}['getResult'](){var _0x469f77=_0x2b355b;return this['_service'][_0x469f77(0x1ae)]({'unitId':this[_0x469f77(0x1a8)],'rangeId':this['_rangeId']})??null;}['describe'](){var _0x42f651=_0x2b355b;let _0x147ae0=this[_0x42f651(0x19c)](),_0x187639=this[_0x42f651(0x197)](),_0x3f2874=this['getResult']();return!_0x147ae0||!_0x187639||!_0x3f2874?null:{..._0x147ae0,'config':_0x187639,'formula':_0x187639[_0x42f651(0x19e)],'result':_0x3f2874,'type':_0x42f651(0x19e)};}['update'](_0x45ecf7){var _0x23646f=_0x2b355b;return this['_commandService'][_0x23646f(0x18c)](_0x9bf949['id'],{'externalReferences':_0x45ecf7['externalReferences'],'formula':_0x45ecf7[_0x23646f(0x19e)],'numberFormat':_0x45ecf7['numberFormat'],'rangeId':this[_0x23646f(0x1c1)],'unitId':this[_0x23646f(0x1a8)]});}[_0x2b355b(0x1a5)](_0x2ae9e6){var _0x1acf0f=_0x2b355b;return this[_0x1acf0f(0x1ab)][_0x1acf0f(0x18c)](_0x5dba3c['id'],{'numberFormat':_0x2ae9e6,'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x2b355b(0x19a)](){var _0x349c08=_0x2b355b;return this[_0x349c08(0x1ab)]['syncExecuteCommand'](_0x3eeb8c['id'],{'rangeId':this[_0x349c08(0x1c1)],'unitId':this[_0x349c08(0x1a8)]});}[_0x2b355b(0x1c9)](_0x3d05f6){var _0x55f668=_0x2b355b;return this[_0x55f668(0x1ab)][_0x55f668(0x18c)](_0x497f52['id'],{'rangeId':this[_0x55f668(0x1c1)],'text':_0x3d05f6,'unitId':this[_0x55f668(0x1a8)]});}[_0x2b355b(0x1cc)](){var _0x4a2b0a=_0x2b355b;return this[_0x4a2b0a(0x1ab)]['syncExecuteCommand'](_0x2d4520['id'],{'rangeId':this[_0x4a2b0a(0x1c1)],'unitId':this[_0x4a2b0a(0x1a8)]});}['_getCustomRange'](){var _0x4b8c6e=_0x2b355b,_0x18a5d5;let _0x161d28=this[_0x4b8c6e(0x1b9)][_0x4b8c6e(0x1c2)](this[_0x4b8c6e(0x1a8)],_0x5a4427[_0x4b8c6e(0x1b4)]);return _0x161d28==null||(_0x18a5d5=_0x161d28['getSnapshot']()['body'])==null||(_0x18a5d5=_0x18a5d5[_0x4b8c6e(0x1cd)])==null?void 0x0:_0x18a5d5[_0x4b8c6e(0x1d1)](_0x1f7d5e=>_0x1f7d5e[_0x4b8c6e(0x195)]===this[_0x4b8c6e(0x1c1)]&&_0x3a1bb9(_0x1f7d5e));}};b=y([v(0x2,_0x128e28),v(0x3,_0x2f2ecf(_0x32fc45)),v(0x4,_0x2f2ecf(_0x5bf394)),v(0x5,_0x23abd6)],b);function x(_0x32b2e8){'@babel/helpers - typeof';var _0x2b02d8=_0x2b355b;return x=typeof Symbol=='function'&&typeof Symbol[_0x2b02d8(0x1a1)]=='symbol'?function(_0x396b3e){return typeof _0x396b3e;}:function(_0x504d0f){var _0x12042d=_0x2b02d8;return _0x504d0f&&typeof Symbol==_0x12042d(0x1bf)&&_0x504d0f[_0x12042d(0x1b7)]===Symbol&&_0x504d0f!==Symbol[_0x12042d(0x18f)]?_0x12042d(0x1a6):typeof _0x504d0f;},x(_0x32b2e8);}function S(_0x395844,_0x4f7aa0){var _0x8dafe9=_0x2b355b;if(x(_0x395844)!=_0x8dafe9(0x1b1)||!_0x395844)return _0x395844;var _0x5d5e5e=_0x395844[Symbol[_0x8dafe9(0x198)]];if(_0x5d5e5e!==void 0x0){var _0x59d213=_0x5d5e5e[_0x8dafe9(0x1ce)](_0x395844,_0x4f7aa0||_0x8dafe9(0x191));if(x(_0x59d213)!='object')return _0x59d213;throw TypeError(_0x8dafe9(0x1c6));}return(_0x4f7aa0===_0x8dafe9(0x1c0)?String:Number)(_0x395844);}function C(_0x38fd36){var _0x3fff0d=_0x2b355b,_0x3e2604=S(_0x38fd36,_0x3fff0d(0x1c0));return x(_0x3e2604)==_0x3fff0d(0x1a6)?_0x3e2604:_0x3e2604+'';}function w(_0x1313de,_0x2c3e53,_0x5b5c4f){var _0x27a84d=_0x2b355b;return(_0x2c3e53=C(_0x2c3e53))in _0x1313de?Object[_0x27a84d(0x1a3)](_0x1313de,_0x2c3e53,{'value':_0x5b5c4f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1313de[_0x2c3e53]=_0x5b5c4f,_0x1313de;}var T=class extends _0x1cb9b3{constructor(..._0x2d01d5){var _0x77f48a=_0x2b355b;super(..._0x2d01d5),w(this,_0x77f48a(0x1bd),void 0x0),w(this,_0x77f48a(0x1b6),void 0x0),w(this,_0x77f48a(0x1ca),void 0x0),w(this,_0x77f48a(0x18e),void 0x0);}['_initialize'](_0x1bc0b6){var _0x6493a8=_0x2b355b;this[_0x6493a8(0x1bd)]=_0x1bc0b6[_0x6493a8(0x196)](_0x128e28),this[_0x6493a8(0x1b6)]=_0x1bc0b6[_0x6493a8(0x196)](_0xb17991),this[_0x6493a8(0x1ca)]=_0x1bc0b6[_0x6493a8(0x196)](_0x32fc45),this['_docsFormulaResourceLoaderService']=_0x1bc0b6[_0x6493a8(0x196)](_0xcfcf25);}[_0x2b355b(0x1b0)](){var _0x488e46=_0x2b355b;return this[_0x488e46(0x1d0)]()[_0x488e46(0x1c4)](_0x3cdc72=>this[_0x488e46(0x1aa)](_0x3cdc72['rangeId']));}[_0x2b355b(0x1b8)](_0x2efd01){var _0x38170d=_0x2b355b;return this[_0x38170d(0x1d0)]()[_0x38170d(0x1a9)](_0x29dc0d=>_0x29dc0d[_0x38170d(0x195)]===_0x2efd01)?this[_0x38170d(0x1aa)](_0x2efd01):null;}[_0x2b355b(0x19b)](_0x3febe2){var _0x167dad=_0x2b355b;let _0x431509=this[_0x167dad(0x1d0)]()['find'](_0x560648=>_0x560648['startIndex']<=_0x3febe2&&_0x3febe2<=_0x560648['endIndex']);return _0x431509?this[_0x167dad(0x1aa)](_0x431509[_0x167dad(0x195)]):null;}[_0x2b355b(0x1be)](){var _0x4aa8c1=_0x2b355b;let _0x28a557=this[_0x4aa8c1(0x18e)][_0x4aa8c1(0x1d4)](this['id']);if(!_0x28a557)throw Error(_0x4aa8c1(0x18d)+this['id']+_0x4aa8c1(0x1d5));return this['_docsFormulaDisplayTextService'][_0x4aa8c1(0x1af)](_0x28a557);}[_0x2b355b(0x1c8)](_0x41d33d){var _0x191160=_0x2b355b;return this[_0x191160(0x1a2)]({'externalReferences':_0x41d33d[_0x191160(0x1bb)],'formula':_0x41d33d['formula'],'numberFormat':_0x41d33d[_0x191160(0x1b5)],'target':{'type':_0x191160(0x1a7),'startOffset':_0x41d33d[_0x191160(0x1ba)],'endOffset':_0x41d33d['endOffset']},'unitId':this[_0x191160(0x1b2)]()});}[_0x2b355b(0x1a2)](_0x46ed4e){var _0x120a7d=_0x2b355b;let _0x132226=this['_docsFormulaCommandService'][_0x120a7d(0x18c)](_0x3e5dad['id'],_0x46ed4e);return _0x132226?this[_0x120a7d(0x1aa)](_0x132226['rangeId']):null;}[_0x2b355b(0x1d0)](){var _0x1d58c3=_0x2b355b,_0x116043;let _0xb34047=this[_0x1d58c3(0x1ca)]['getFormulas'](this[_0x1d58c3(0x1b2)]());return((_0x116043=this[_0x1d58c3(0x1c3)]('')[_0x1d58c3(0x1cd)])==null?void 0x0:_0x116043['filter'](_0x258602=>_0x3a1bb9(_0x258602)&&_0xb34047[_0x258602[_0x1d58c3(0x195)]]!=null))??[];}['_createFormula'](_0x3cadc1){var _0x59c9da=_0x2b355b;return this[_0x59c9da(0x1a0)]['createInstance'](b,this[_0x59c9da(0x1b2)](),_0x3cadc1);}};_0x1cb9b3['extend'](T);function _0x3b5e(){var _0x290e25=['_insert','defineProperty','createInstance','setNumberFormat','symbol','range','_unitId','some','_createFormula','_commandService','2256652GmuLhb','end','getResult','degradeDocumentData','getFormulas','object','getId','794124FRKoMV','UNIVER_DOC','numberFormat','_docsFormulaDisplayTextService','constructor','getFormula','_univerInstanceService','startOffset','externalReferences','_document','_docsFormulaCommandService','saveFormulaDisplayTextSnapshot','function','string','_rangeId','getUnit','getBody','map','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','decorate','insertFormula','replaceWithText','_docsFormulaModel','getSegmentId','convertToText','customRanges','call','_model','_getCompleteRanges','find','5VqnOuw','replaceWithFormula','saveUnit','\x20could\x20not\x20be\x20serialized.','365840jGNHzE','_getCustomRange','syncExecuteCommand','Document\x20','_docsFormulaResourceLoaderService','prototype','106250feYDGj','default','2654498EkXvZH','6966968rLuuwy','_initialize','rangeId','get','getConfig','toPrimitive','startIndex','remove','getFormulaAt','getRange','extend','formula','110220RQLZiJ','_injector','iterator'];_0x3b5e=function(){return _0x290e25;};return _0x3b5e();}var E=class extends _0x477006{constructor(..._0x13cc1b){var _0x23ef8e=_0x2b355b;super(..._0x13cc1b),w(this,_0x23ef8e(0x1bd),void 0x0);}['_initialize'](_0x374214){var _0x5e1903=_0x2b355b;this[_0x5e1903(0x1bd)]=_0x374214[_0x5e1903(0x196)](_0x128e28);}[_0x2b355b(0x1c8)](_0x4ddb55,_0x1026ca,_0x1c34e6={}){return this['_insert'](_0x4ddb55,_0x1026ca,_0x1c34e6);}['appendFormula'](_0x560153,_0x1392d0={}){var _0x40d68b=_0x2b355b;return this['_insert'](_0x40d68b(0x1ad),_0x560153,_0x1392d0);}[_0x2b355b(0x1a2)](_0x1b3211,_0x5a92bb,_0x22039c){var _0x11d99d=_0x2b355b;if(this[_0x11d99d(0x1cb)]())return null;let _0x1f8ec8={'externalReferences':_0x22039c[_0x11d99d(0x1bb)],'formula':_0x5a92bb,'numberFormat':_0x22039c[_0x11d99d(0x1b5)],'target':{'type':'paragraph','paragraphId':this['getId'](),'position':_0x1b3211},'unitId':this['_document']['getId']()},_0x33cff7=this[_0x11d99d(0x1bd)][_0x11d99d(0x18c)](_0x3e5dad['id'],_0x1f8ec8);return _0x33cff7?this['_injector'][_0x11d99d(0x1a4)](b,this[_0x11d99d(0x1bc)][_0x11d99d(0x1b2)](),_0x33cff7[_0x11d99d(0x195)]):null;}};function _0x3a44(_0x3dbffd,_0xdf1336){_0x3dbffd=_0x3dbffd-0x18a;var _0x3b5e39=_0x3b5e();var _0x3a44fe=_0x3b5e39[_0x3dbffd];return _0x3a44fe;}_0x477006[_0x2b355b(0x19d)](E);var D=class extends _0xe94339{constructor(..._0x4a40e1){var _0x610aa9=_0x2b355b;super(..._0x4a40e1),w(this,_0x610aa9(0x1bd),void 0x0);}[_0x2b355b(0x194)](_0x280f5d){var _0x37780b=_0x2b355b;this[_0x37780b(0x1bd)]=_0x280f5d['get'](_0x128e28);}[_0x2b355b(0x1d3)](_0x36cb09,_0x40b437={}){var _0x6b855b=_0x2b355b;let {endOffset:_0x32b929,segmentId:_0x353e47,startOffset:_0x2d07d4}=this[_0x6b855b(0x19c)]();return _0x353e47?null:this[_0x6b855b(0x1a2)](_0x2d07d4,_0x32b929,_0x36cb09,_0x40b437);}[_0x2b355b(0x1a2)](_0x5c1fcd,_0xac1fe0,_0x121cff,_0x1afa9a){var _0x1306de=_0x2b355b;let _0x8edbb6={'externalReferences':_0x1afa9a[_0x1306de(0x1bb)],'formula':_0x121cff,'numberFormat':_0x1afa9a[_0x1306de(0x1b5)],'target':{'type':_0x1306de(0x1a7),'startOffset':_0x5c1fcd,'endOffset':_0xac1fe0},'unitId':this[_0x1306de(0x1bc)]['getId']()},_0x3b6c94=this[_0x1306de(0x1bd)][_0x1306de(0x18c)](_0x3e5dad['id'],_0x8edbb6);return _0x3b6c94?this[_0x1306de(0x1a0)][_0x1306de(0x1a4)](b,this[_0x1306de(0x1bc)][_0x1306de(0x1b2)](),_0x3b6c94['rangeId']):null;}};_0xe94339[_0x2b355b(0x19d)](D);export{b as FDocumentFormula};