@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/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/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4167(_0x4f2dd8,_0x356c08){_0x4f2dd8=_0x4f2dd8-0x1df;var _0x28f8b4=_0x28f8();var _0x4167c6=_0x28f8b4[_0x4f2dd8];return _0x4167c6;}(function(_0x2626ec,_0x480aff){var _0x150a1a=_0x4167,_0xbc3f5b=_0x2626ec();while(!![]){try{var _0x483d56=-parseInt(_0x150a1a(0x1ef))/0x1*(parseInt(_0x150a1a(0x206))/0x2)+-parseInt(_0x150a1a(0x1e6))/0x3*(-parseInt(_0x150a1a(0x23e))/0x4)+-parseInt(_0x150a1a(0x235))/0x5+parseInt(_0x150a1a(0x229))/0x6*(parseInt(_0x150a1a(0x209))/0x7)+-parseInt(_0x150a1a(0x223))/0x8+-parseInt(_0x150a1a(0x1f0))/0x9*(-parseInt(_0x150a1a(0x211))/0xa)+parseInt(_0x150a1a(0x1ee))/0xb*(parseInt(_0x150a1a(0x21f))/0xc);if(_0x483d56===_0x480aff)break;else _0xbc3f5b['push'](_0xbc3f5b['shift']());}catch(_0xcfa317){_0xbc3f5b['push'](_0xbc3f5b['shift']());}}}(_0x28f8,0xc51f5),function(_0x3dad24,_0x3764cb){var _0x2fef92=_0x4167;typeof exports=='object'&&typeof module<'u'?_0x3764cb(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x2fef92(0x221)&&define[_0x2fef92(0x246)]?define([_0x2fef92(0x224),'@univerjs-pro/docs-formula','@univerjs/core',_0x2fef92(0x236)],_0x3764cb):(_0x3dad24=typeof globalThis<'u'?globalThis:_0x3dad24||self,_0x3764cb(_0x3dad24[_0x2fef92(0x204)]={},_0x3dad24[_0x2fef92(0x22d)],_0x3dad24[_0x2fef92(0x23b)],_0x3dad24[_0x2fef92(0x222)]));}(this,function(_0x326a45,_0x5f16d0,_0x457a97,_0x5e2456){var _0x5a2f2d=_0x4167;Object['defineProperty'](_0x326a45,Symbol[_0x5a2f2d(0x1f7)],{'value':_0x5a2f2d(0x1e8)});function _0x41b620(_0x25a8cb,_0x4d16e9){return function(_0x1d9f05,_0x1e24f9){_0x4d16e9(_0x1d9f05,_0x1e24f9,_0x25a8cb);};}function _0x170467(_0x5bd71f,_0x11f2d0,_0xfced28,_0x34b068){var _0x3546f6=_0x5a2f2d,_0x71b998=arguments['length'],_0x259cad=_0x71b998<0x3?_0x11f2d0:_0x34b068===null?_0x34b068=Object[_0x3546f6(0x23a)](_0x11f2d0,_0xfced28):_0x34b068,_0x345238;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x3546f6(0x221))_0x259cad=Reflect[_0x3546f6(0x1e7)](_0x5bd71f,_0x11f2d0,_0xfced28,_0x34b068);else{for(var _0x534d1e=_0x5bd71f[_0x3546f6(0x1e0)]-0x1;_0x534d1e>=0x0;_0x534d1e--)(_0x345238=_0x5bd71f[_0x534d1e])&&(_0x259cad=(_0x71b998<0x3?_0x345238(_0x259cad):_0x71b998>0x3?_0x345238(_0x11f2d0,_0xfced28,_0x259cad):_0x345238(_0x11f2d0,_0xfced28))||_0x259cad);}return _0x71b998>0x3&&_0x259cad&&Object[_0x3546f6(0x226)](_0x11f2d0,_0xfced28,_0x259cad),_0x259cad;}let _0x53625=class{constructor(_0x5c3837,_0x24697e,_0x1da3dc,_0x413623,_0x2bdd7b,_0xdf15bc){var _0x273a83=_0x5a2f2d;this[_0x273a83(0x1e2)]=_0x5c3837,this['_rangeId']=_0x24697e,this[_0x273a83(0x1fb)]=_0x1da3dc,this[_0x273a83(0x20b)]=_0x413623,this[_0x273a83(0x216)]=_0x2bdd7b,this[_0x273a83(0x23d)]=_0xdf15bc;}[_0x5a2f2d(0x200)](){var _0x2e93e0=_0x5a2f2d;return this[_0x2e93e0(0x1f6)];}[_0x5a2f2d(0x242)](){var _0x12133f=_0x5a2f2d;let _0x4af952=this[_0x12133f(0x20a)]();return _0x4af952?{'endOffset':_0x4af952[_0x12133f(0x22c)]+0x1,'rangeId':_0x4af952[_0x12133f(0x20f)],'startOffset':_0x4af952['startIndex']}:null;}[_0x5a2f2d(0x215)](){var _0x58eaca=_0x5a2f2d,_0x998234;return((_0x998234=this[_0x58eaca(0x20b)][_0x58eaca(0x215)](this[_0x58eaca(0x1e2)],this[_0x58eaca(0x1f6)]))==null?void 0x0:_0x998234[_0x58eaca(0x205)])??'';}[_0x5a2f2d(0x21b)](){var _0x397ab8=_0x5a2f2d;return this[_0x397ab8(0x20b)][_0x397ab8(0x215)](this[_0x397ab8(0x1e2)],this[_0x397ab8(0x1f6)])??null;}[_0x5a2f2d(0x219)](){var _0x5ae3ef=_0x5a2f2d;return this[_0x5ae3ef(0x216)][_0x5ae3ef(0x219)]({'unitId':this[_0x5ae3ef(0x1e2)],'rangeId':this[_0x5ae3ef(0x1f6)]})??null;}[_0x5a2f2d(0x234)](){var _0x2da57c=_0x5a2f2d;let _0x2c7c0f=this[_0x2da57c(0x242)](),_0x4ce947=this[_0x2da57c(0x21b)](),_0x5a2841=this[_0x2da57c(0x219)]();return!_0x2c7c0f||!_0x4ce947||!_0x5a2841?null:{..._0x2c7c0f,'config':_0x4ce947,'formula':_0x4ce947[_0x2da57c(0x205)],'result':_0x5a2841,'type':_0x2da57c(0x205)};}[_0x5a2f2d(0x203)](_0x114871){var _0x233184=_0x5a2f2d;return this[_0x233184(0x1fb)][_0x233184(0x1e9)](_0x5f16d0[_0x233184(0x23c)]['id'],{'externalReferences':_0x114871[_0x233184(0x1eb)],'formula':_0x114871[_0x233184(0x205)],'numberFormat':_0x114871[_0x233184(0x213)],'rangeId':this[_0x233184(0x1f6)],'unitId':this[_0x233184(0x1e2)]});}[_0x5a2f2d(0x1f9)](_0x25f052){var _0x266a8c=_0x5a2f2d;return this['_commandService'][_0x266a8c(0x1e9)](_0x5f16d0[_0x266a8c(0x21e)]['id'],{'numberFormat':_0x25f052,'rangeId':this[_0x266a8c(0x1f6)],'unitId':this[_0x266a8c(0x1e2)]});}[_0x5a2f2d(0x1f2)](){var _0x1d9170=_0x5a2f2d;return this['_commandService'][_0x1d9170(0x1e9)](_0x5f16d0[_0x1d9170(0x237)]['id'],{'rangeId':this[_0x1d9170(0x1f6)],'unitId':this[_0x1d9170(0x1e2)]});}[_0x5a2f2d(0x1fa)](_0x3e7d54){var _0x20f354=_0x5a2f2d;return this[_0x20f354(0x1fb)][_0x20f354(0x1e9)](_0x5f16d0[_0x20f354(0x21a)]['id'],{'rangeId':this[_0x20f354(0x1f6)],'text':_0x3e7d54,'unitId':this[_0x20f354(0x1e2)]});}[_0x5a2f2d(0x1f5)](){var _0x15d78c=_0x5a2f2d;return this[_0x15d78c(0x1fb)]['syncExecuteCommand'](_0x5f16d0[_0x15d78c(0x230)]['id'],{'rangeId':this[_0x15d78c(0x1f6)],'unitId':this[_0x15d78c(0x1e2)]});}['_getCustomRange'](){var _0x4f39db=_0x5a2f2d,_0x15ceaf;let _0xc6936e=this['_univerInstanceService']['getUnit'](this[_0x4f39db(0x1e2)],_0x457a97[_0x4f39db(0x245)][_0x4f39db(0x1fc)]);return _0xc6936e==null||(_0x15ceaf=_0xc6936e['getSnapshot']()['body'])==null||(_0x15ceaf=_0x15ceaf[_0x4f39db(0x228)])==null?void 0x0:_0x15ceaf[_0x4f39db(0x201)](_0x2b842c=>_0x2b842c[_0x4f39db(0x20f)]===this['_rangeId']&&(0x0,_0x5f16d0[_0x4f39db(0x248)])(_0x2b842c));}};_0x53625=_0x170467([_0x41b620(0x2,_0x457a97[_0x5a2f2d(0x1e1)]),_0x41b620(0x3,(0x0,_0x457a97[_0x5a2f2d(0x238)])(_0x5f16d0[_0x5a2f2d(0x21d)])),_0x41b620(0x4,(0x0,_0x457a97[_0x5a2f2d(0x238)])(_0x5f16d0[_0x5a2f2d(0x244)])),_0x41b620(0x5,_0x457a97[_0x5a2f2d(0x1ea)])],_0x53625);function _0x24ce1a(_0xe386a7){'@babel/helpers - typeof';var _0x5bd403=_0x5a2f2d;return _0x24ce1a=typeof Symbol==_0x5bd403(0x221)&&typeof Symbol[_0x5bd403(0x247)]==_0x5bd403(0x239)?function(_0x1ba0c0){return typeof _0x1ba0c0;}:function(_0x27f59c){var _0x5bc666=_0x5bd403;return _0x27f59c&&typeof Symbol=='function'&&_0x27f59c[_0x5bc666(0x21c)]===Symbol&&_0x27f59c!==Symbol[_0x5bc666(0x1ed)]?_0x5bc666(0x239):typeof _0x27f59c;},_0x24ce1a(_0xe386a7);}function _0x474385(_0x2f0840,_0x488499){var _0x4e7c09=_0x5a2f2d;if(_0x24ce1a(_0x2f0840)!=_0x4e7c09(0x210)||!_0x2f0840)return _0x2f0840;var _0x24a485=_0x2f0840[Symbol['toPrimitive']];if(_0x24a485!==void 0x0){var _0x24baef=_0x24a485['call'](_0x2f0840,_0x488499||'default');if(_0x24ce1a(_0x24baef)!=_0x4e7c09(0x210))return _0x24baef;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x488499===_0x4e7c09(0x1ff)?String:Number)(_0x2f0840);}function _0x5bd914(_0x3d7a5a){var _0x4ba779=_0x5a2f2d,_0x50bc17=_0x474385(_0x3d7a5a,_0x4ba779(0x1ff));return _0x24ce1a(_0x50bc17)==_0x4ba779(0x239)?_0x50bc17:_0x50bc17+'';}function _0x5f4f02(_0x595634,_0x31df30,_0x244cb4){return(_0x31df30=_0x5bd914(_0x31df30))in _0x595634?Object['defineProperty'](_0x595634,_0x31df30,{'value':_0x244cb4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x595634[_0x31df30]=_0x244cb4,_0x595634;}var _0xc37571=class extends _0x5e2456[_0x5a2f2d(0x220)]{constructor(..._0x4cdb37){var _0x35366f=_0x5a2f2d;super(..._0x4cdb37),_0x5f4f02(this,_0x35366f(0x217),void 0x0),_0x5f4f02(this,_0x35366f(0x22f),void 0x0),_0x5f4f02(this,_0x35366f(0x22a),void 0x0),_0x5f4f02(this,_0x35366f(0x20c),void 0x0);}[_0x5a2f2d(0x227)](_0x542eaa){var _0x2fed60=_0x5a2f2d;this[_0x2fed60(0x217)]=_0x542eaa[_0x2fed60(0x241)](_0x457a97[_0x2fed60(0x1e1)]),this[_0x2fed60(0x22f)]=_0x542eaa[_0x2fed60(0x241)](_0x5f16d0[_0x2fed60(0x1fe)]),this['_docsFormulaModel']=_0x542eaa['get'](_0x5f16d0[_0x2fed60(0x21d)]),this[_0x2fed60(0x20c)]=_0x542eaa[_0x2fed60(0x241)](_0x457a97[_0x2fed60(0x233)]);}[_0x5a2f2d(0x207)](){var _0x18aa31=_0x5a2f2d;return this[_0x18aa31(0x1fd)]()[_0x18aa31(0x23f)](_0x1bf717=>this[_0x18aa31(0x1ec)](_0x1bf717[_0x18aa31(0x20f)]));}['getFormula'](_0x4f3491){var _0x4692b2=_0x5a2f2d;return this[_0x4692b2(0x1fd)]()[_0x4692b2(0x1e4)](_0x202295=>_0x202295[_0x4692b2(0x20f)]===_0x4f3491)?this[_0x4692b2(0x1ec)](_0x4f3491):null;}['getFormulaAt'](_0xf5b451){var _0x5ba18c=_0x5a2f2d;let _0x5633a3=this['_getCompleteRanges']()[_0x5ba18c(0x201)](_0xc1b5db=>_0xc1b5db['startIndex']<=_0xf5b451&&_0xf5b451<=_0xc1b5db['endIndex']);return _0x5633a3?this[_0x5ba18c(0x1ec)](_0x5633a3[_0x5ba18c(0x20f)]):null;}[_0x5a2f2d(0x1f1)](){var _0x3d107f=_0x5a2f2d;let _0x1faf2b=this[_0x3d107f(0x20c)][_0x3d107f(0x20e)](this['id']);if(!_0x1faf2b)throw Error(_0x3d107f(0x1f4)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this['_docsFormulaDisplayTextService'][_0x3d107f(0x225)](_0x1faf2b);}['insertFormula'](_0x449d3f){var _0x179979=_0x5a2f2d;return this['_insert']({'externalReferences':_0x449d3f[_0x179979(0x1eb)],'formula':_0x449d3f[_0x179979(0x205)],'numberFormat':_0x449d3f[_0x179979(0x213)],'target':{'type':'range','startOffset':_0x449d3f['startOffset'],'endOffset':_0x449d3f[_0x179979(0x231)]},'unitId':this[_0x179979(0x200)]()});}[_0x5a2f2d(0x22e)](_0x5d6cc3){var _0x48529d=_0x5a2f2d;let _0x351515=this[_0x48529d(0x217)]['syncExecuteCommand'](_0x5f16d0[_0x48529d(0x1f3)]['id'],_0x5d6cc3);return _0x351515?this[_0x48529d(0x1ec)](_0x351515[_0x48529d(0x20f)]):null;}[_0x5a2f2d(0x1fd)](){var _0x5c5f5e=_0x5a2f2d,_0x256f34;let _0x5c9ef7=this[_0x5c5f5e(0x22a)][_0x5c5f5e(0x207)](this[_0x5c5f5e(0x200)]());return((_0x256f34=this[_0x5c5f5e(0x208)]('')[_0x5c5f5e(0x228)])==null?void 0x0:_0x256f34[_0x5c5f5e(0x1f8)](_0x25174d=>(0x0,_0x5f16d0[_0x5c5f5e(0x248)])(_0x25174d)&&_0x5c9ef7[_0x25174d[_0x5c5f5e(0x20f)]]!=null))??[];}['_createFormula'](_0x4f7c9f){var _0x2ce703=_0x5a2f2d;return this[_0x2ce703(0x22b)][_0x2ce703(0x240)](_0x53625,this[_0x2ce703(0x200)](),_0x4f7c9f);}};_0x5e2456[_0x5a2f2d(0x220)]['extend'](_0xc37571);var _0x45bbf4=class extends _0x5e2456[_0x5a2f2d(0x20d)]{constructor(..._0x12285c){var _0x52e5a1=_0x5a2f2d;super(..._0x12285c),_0x5f4f02(this,_0x52e5a1(0x217),void 0x0);}['_initialize'](_0xb16085){var _0x1197b9=_0x5a2f2d;this[_0x1197b9(0x217)]=_0xb16085['get'](_0x457a97[_0x1197b9(0x1e1)]);}['insertFormula'](_0xeb8580,_0x397954,_0xc46931={}){var _0x1d10f8=_0x5a2f2d;return this[_0x1d10f8(0x22e)](_0xeb8580,_0x397954,_0xc46931);}[_0x5a2f2d(0x202)](_0x10c6b1,_0x4d8684={}){var _0x1ce48d=_0x5a2f2d;return this[_0x1ce48d(0x22e)](_0x1ce48d(0x214),_0x10c6b1,_0x4d8684);}['_insert'](_0x14d47e,_0x3b89f2,_0x5155fe){var _0x4e4e04=_0x5a2f2d;if(this[_0x4e4e04(0x1e3)]())return null;let _0x2dac3f={'externalReferences':_0x5155fe[_0x4e4e04(0x1eb)],'formula':_0x3b89f2,'numberFormat':_0x5155fe[_0x4e4e04(0x213)],'target':{'type':_0x4e4e04(0x1df),'paragraphId':this[_0x4e4e04(0x200)](),'position':_0x14d47e},'unitId':this[_0x4e4e04(0x218)]['getId']()},_0x136346=this[_0x4e4e04(0x217)]['syncExecuteCommand'](_0x5f16d0['InsertDocFormulaCommand']['id'],_0x2dac3f);return _0x136346?this[_0x4e4e04(0x22b)][_0x4e4e04(0x240)](_0x53625,this[_0x4e4e04(0x218)][_0x4e4e04(0x200)](),_0x136346[_0x4e4e04(0x20f)]):null;}};_0x5e2456[_0x5a2f2d(0x20d)][_0x5a2f2d(0x212)](_0x45bbf4);var _0x2f88d9=class extends _0x5e2456['FDocumentTextRange']{constructor(..._0x49a7c2){var _0x56b8e4=_0x5a2f2d;super(..._0x49a7c2),_0x5f4f02(this,_0x56b8e4(0x217),void 0x0);}[_0x5a2f2d(0x227)](_0x4391fc){var _0x356557=_0x5a2f2d;this['_docsFormulaCommandService']=_0x4391fc[_0x356557(0x241)](_0x457a97[_0x356557(0x1e1)]);}[_0x5a2f2d(0x232)](_0x185648,_0x1799de={}){var _0x5f3aa1=_0x5a2f2d;let {endOffset:_0x58c9dd,segmentId:_0x2470d2,startOffset:_0x4b56a4}=this[_0x5f3aa1(0x242)]();return _0x2470d2?null:this[_0x5f3aa1(0x22e)](_0x4b56a4,_0x58c9dd,_0x185648,_0x1799de);}['_insert'](_0x275a67,_0x5a0cb5,_0x2be3e9,_0x44d05f){var _0x277c62=_0x5a2f2d;let _0x4c69a0={'externalReferences':_0x44d05f[_0x277c62(0x1eb)],'formula':_0x2be3e9,'numberFormat':_0x44d05f[_0x277c62(0x213)],'target':{'type':'range','startOffset':_0x275a67,'endOffset':_0x5a0cb5},'unitId':this[_0x277c62(0x218)]['getId']()},_0x4bef1d=this[_0x277c62(0x217)][_0x277c62(0x1e9)](_0x5f16d0['InsertDocFormulaCommand']['id'],_0x4c69a0);return _0x4bef1d?this[_0x277c62(0x22b)][_0x277c62(0x240)](_0x53625,this['_document'][_0x277c62(0x200)](),_0x4bef1d[_0x277c62(0x20f)]):null;}};_0x5e2456[_0x5a2f2d(0x243)]['extend'](_0x2f88d9),Object[_0x5a2f2d(0x226)](_0x326a45,_0x5a2f2d(0x1e5),{'enumerable':!0x0,'get':function(){return _0x53625;}});}));function _0x28f8(){var _0x993a26=['toStringTag','filter','setNumberFormat','replaceWithText','_commandService','UNIVER_DOC','_getCompleteRanges','DocFormulaDisplayTextService','string','getId','find','appendFormula','update','UniverProDocsFormulaFacade','formula','25826sVcyjH','getFormulas','getBody','4974767LwgnJf','_getCustomRange','_model','_docsFormulaResourceLoaderService','FDocumentParagraph','saveUnit','rangeId','object','20eSjwlu','extend','numberFormat','end','getFormula','_service','_docsFormulaCommandService','_document','getResult','ReplaceDocFormulaWithTextCommand','getConfig','constructor','DocFormulaModel','SetDocFormulaNumberFormatCommand','12VPfMlX','FDocument','function','UniverDocsFacade','3881568FIubDd','exports','degradeDocumentData','defineProperty','_initialize','customRanges','12siesuS','_docsFormulaModel','_injector','endIndex','UniverProDocsFormula','_insert','_docsFormulaDisplayTextService','ConvertDocFormulaToTextCommand','endOffset','replaceWithFormula','IResourceLoaderService','describe','7070745xDnvKq','@univerjs/docs/facade','RemoveDocFormulaCommand','Inject','symbol','getOwnPropertyDescriptor','UniverCore','UpdateDocFormulaCommand','_univerInstanceService','4vrKxQK','map','createInstance','get','getRange','FDocumentTextRange','DocFormulaService','UniverInstanceType','amd','iterator','isDocFormulaRange','paragraph','length','ICommandService','_unitId','getSegmentId','some','FDocumentFormula','4155123XyiLwF','decorate','Module','syncExecuteCommand','IUniverInstanceService','externalReferences','_createFormula','prototype','1391137cMXcKN','122folziq','6071733OxGpye','saveFormulaDisplayTextSnapshot','remove','InsertDocFormulaCommand','Document\x20','convertToText','_rangeId'];_0x28f8=function(){return _0x993a26;};return _0x28f8();}
1
+ function _0xb5a0(_0x47f063,_0x48eb3b){_0x47f063=_0x47f063-0x193;var _0x3c034e=_0x3c03();var _0xb5a08a=_0x3c034e[_0x47f063];return _0xb5a08a;}(function(_0x393466,_0x575e9f){var _0x539e57=_0xb5a0,_0x30fc7a=_0x393466();while(!![]){try{var _0x48caa1=parseInt(_0x539e57(0x1c8))/0x1+parseInt(_0x539e57(0x1b8))/0x2*(-parseInt(_0x539e57(0x1c6))/0x3)+-parseInt(_0x539e57(0x1a7))/0x4+-parseInt(_0x539e57(0x1be))/0x5+parseInt(_0x539e57(0x19b))/0x6+-parseInt(_0x539e57(0x1b0))/0x7*(-parseInt(_0x539e57(0x1e2))/0x8)+parseInt(_0x539e57(0x1ef))/0x9;if(_0x48caa1===_0x575e9f)break;else _0x30fc7a['push'](_0x30fc7a['shift']());}catch(_0x6c1b94){_0x30fc7a['push'](_0x30fc7a['shift']());}}}(_0x3c03,0x1a4ed),function(_0x1f46c6,_0x35533c){var _0x418243=_0xb5a0;typeof exports==_0x418243(0x19e)&&typeof module<'u'?_0x35533c(exports,require('@univerjs-pro/docs-formula'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x418243(0x1d3)&&define[_0x418243(0x1b1)]?define([_0x418243(0x1ae),'@univerjs-pro/docs-formula','@univerjs/core','@univerjs/docs/facade'],_0x35533c):(_0x1f46c6=typeof globalThis<'u'?globalThis:_0x1f46c6||self,_0x35533c(_0x1f46c6[_0x418243(0x1d0)]={},_0x1f46c6['UniverProDocsFormula'],_0x1f46c6[_0x418243(0x1e4)],_0x1f46c6[_0x418243(0x1e9)]));}(this,function(_0xeca2dc,_0x55dc41,_0x7d4685,_0x2527dc){var _0x5ba063=_0xb5a0;Object[_0x5ba063(0x1d7)](_0xeca2dc,Symbol['toStringTag'],{'value':_0x5ba063(0x193)});function _0x53eb39(_0x12d4e6,_0x416311){return function(_0x5c4b7f,_0x2dbe2f){_0x416311(_0x5c4b7f,_0x2dbe2f,_0x12d4e6);};}function _0x33b2b1(_0x188a02,_0x2d3eb9,_0x15150f,_0x3ced38){var _0xf66048=_0x5ba063,_0x2abdc5=arguments['length'],_0x10d0db=_0x2abdc5<0x3?_0x2d3eb9:_0x3ced38===null?_0x3ced38=Object['getOwnPropertyDescriptor'](_0x2d3eb9,_0x15150f):_0x3ced38,_0x89229c;if(typeof Reflect==_0xf66048(0x19e)&&typeof Reflect[_0xf66048(0x1d6)]==_0xf66048(0x1d3))_0x10d0db=Reflect[_0xf66048(0x1d6)](_0x188a02,_0x2d3eb9,_0x15150f,_0x3ced38);else{for(var _0x1d6e59=_0x188a02['length']-0x1;_0x1d6e59>=0x0;_0x1d6e59--)(_0x89229c=_0x188a02[_0x1d6e59])&&(_0x10d0db=(_0x2abdc5<0x3?_0x89229c(_0x10d0db):_0x2abdc5>0x3?_0x89229c(_0x2d3eb9,_0x15150f,_0x10d0db):_0x89229c(_0x2d3eb9,_0x15150f))||_0x10d0db);}return _0x2abdc5>0x3&&_0x10d0db&&Object['defineProperty'](_0x2d3eb9,_0x15150f,_0x10d0db),_0x10d0db;}let _0x35ed99=class{constructor(_0x3b9126,_0x453c16,_0x2ff5c5,_0x148591,_0x1ad659,_0x13f82c){var _0x40225e=_0x5ba063;this[_0x40225e(0x1c5)]=_0x3b9126,this[_0x40225e(0x1e8)]=_0x453c16,this['_commandService']=_0x2ff5c5,this[_0x40225e(0x1a2)]=_0x148591,this[_0x40225e(0x1cd)]=_0x1ad659,this['_univerInstanceService']=_0x13f82c;}[_0x5ba063(0x1c1)](){var _0x18e155=_0x5ba063;return this[_0x18e155(0x1e8)];}['getRange'](){var _0x5ea979=_0x5ba063;let _0x1de20d=this[_0x5ea979(0x1b2)]();return _0x1de20d?{'endOffset':_0x1de20d[_0x5ea979(0x19c)]+0x1,'rangeId':_0x1de20d[_0x5ea979(0x1a8)],'startOffset':_0x1de20d[_0x5ea979(0x1d9)]}:null;}[_0x5ba063(0x199)](){var _0x1aa878=_0x5ba063,_0x19e5cd;return((_0x19e5cd=this['_model'][_0x1aa878(0x199)](this[_0x1aa878(0x1c5)],this[_0x1aa878(0x1e8)]))==null?void 0x0:_0x19e5cd[_0x1aa878(0x1f1)])??'';}[_0x5ba063(0x1f4)](){var _0x1a41a3=_0x5ba063;return this[_0x1a41a3(0x1a2)][_0x1a41a3(0x199)](this[_0x1a41a3(0x1c5)],this[_0x1a41a3(0x1e8)])??null;}[_0x5ba063(0x19f)](){var _0x20cfe7=_0x5ba063;return this[_0x20cfe7(0x1cd)][_0x20cfe7(0x19f)]({'unitId':this[_0x20cfe7(0x1c5)],'rangeId':this[_0x20cfe7(0x1e8)]})??null;}[_0x5ba063(0x1c7)](){var _0x53d2b0=_0x5ba063;let _0x278ff9=this[_0x53d2b0(0x1b5)](),_0x3eafb7=this['getConfig'](),_0x559410=this[_0x53d2b0(0x19f)]();return!_0x278ff9||!_0x3eafb7||!_0x559410?null:{..._0x278ff9,'config':_0x3eafb7,'formula':_0x3eafb7[_0x53d2b0(0x1f1)],'result':_0x559410,'type':_0x53d2b0(0x1f1)};}[_0x5ba063(0x1a4)](_0x244c28){var _0x274d0d=_0x5ba063;return this[_0x274d0d(0x19d)][_0x274d0d(0x1ad)](_0x55dc41['UpdateDocFormulaCommand']['id'],{'externalReferences':_0x244c28['externalReferences'],'formula':_0x244c28[_0x274d0d(0x1f1)],'numberFormat':_0x244c28[_0x274d0d(0x1a5)],'rangeId':this[_0x274d0d(0x1e8)],'unitId':this['_unitId']});}[_0x5ba063(0x1e3)](_0x14159f){var _0x9c74be=_0x5ba063;return this[_0x9c74be(0x19d)][_0x9c74be(0x1ad)](_0x55dc41[_0x9c74be(0x1a3)]['id'],{'numberFormat':_0x14159f,'rangeId':this[_0x9c74be(0x1e8)],'unitId':this['_unitId']});}[_0x5ba063(0x196)](){var _0x52a2de=_0x5ba063;return this['_commandService'][_0x52a2de(0x1ad)](_0x55dc41[_0x52a2de(0x1ed)]['id'],{'rangeId':this['_rangeId'],'unitId':this['_unitId']});}[_0x5ba063(0x1dc)](_0x4b7f82){var _0x5c50ee=_0x5ba063;return this['_commandService'][_0x5c50ee(0x1ad)](_0x55dc41['ReplaceDocFormulaWithTextCommand']['id'],{'rangeId':this[_0x5c50ee(0x1e8)],'text':_0x4b7f82,'unitId':this['_unitId']});}['convertToText'](){var _0x49ce68=_0x5ba063;return this['_commandService'][_0x49ce68(0x1ad)](_0x55dc41[_0x49ce68(0x1dd)]['id'],{'rangeId':this[_0x49ce68(0x1e8)],'unitId':this[_0x49ce68(0x1c5)]});}[_0x5ba063(0x1b2)](){var _0x5de28a=_0x5ba063,_0x2fa65b;let _0xf52f71=this[_0x5de28a(0x1bb)][_0x5de28a(0x1ca)](this[_0x5de28a(0x1c5)],_0x7d4685['UniverInstanceType'][_0x5de28a(0x1e7)]);return _0xf52f71==null||(_0x2fa65b=_0xf52f71[_0x5de28a(0x1cf)]()[_0x5de28a(0x1d2)])==null||(_0x2fa65b=_0x2fa65b['customRanges'])==null?void 0x0:_0x2fa65b[_0x5de28a(0x1aa)](_0x485aec=>_0x485aec[_0x5de28a(0x1a8)]===this[_0x5de28a(0x1e8)]&&(0x0,_0x55dc41[_0x5de28a(0x1df)])(_0x485aec));}};_0x35ed99=_0x33b2b1([_0x53eb39(0x2,_0x7d4685[_0x5ba063(0x1cc)]),_0x53eb39(0x3,(0x0,_0x7d4685[_0x5ba063(0x1b7)])(_0x55dc41[_0x5ba063(0x1ec)])),_0x53eb39(0x4,(0x0,_0x7d4685['Inject'])(_0x55dc41[_0x5ba063(0x1b3)])),_0x53eb39(0x5,_0x7d4685[_0x5ba063(0x1c3)])],_0x35ed99);function _0x2fa143(_0x2c8b6e){'@babel/helpers - typeof';var _0xfe1d7f=_0x5ba063;return _0x2fa143=typeof Symbol==_0xfe1d7f(0x1d3)&&typeof Symbol[_0xfe1d7f(0x1c2)]==_0xfe1d7f(0x1f3)?function(_0x14c308){return typeof _0x14c308;}:function(_0xfc86a0){var _0xf44d30=_0xfe1d7f;return _0xfc86a0&&typeof Symbol==_0xf44d30(0x1d3)&&_0xfc86a0[_0xf44d30(0x197)]===Symbol&&_0xfc86a0!==Symbol[_0xf44d30(0x1e1)]?_0xf44d30(0x1f3):typeof _0xfc86a0;},_0x2fa143(_0x2c8b6e);}function _0x59e04c(_0x528edf,_0x15b398){var _0x45e655=_0x5ba063;if(_0x2fa143(_0x528edf)!=_0x45e655(0x19e)||!_0x528edf)return _0x528edf;var _0x354a45=_0x528edf[Symbol[_0x45e655(0x1f5)]];if(_0x354a45!==void 0x0){var _0x331932=_0x354a45[_0x45e655(0x195)](_0x528edf,_0x15b398||_0x45e655(0x1cb));if(_0x2fa143(_0x331932)!=_0x45e655(0x19e))return _0x331932;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x15b398===_0x45e655(0x1e6)?String:Number)(_0x528edf);}function _0x57a35b(_0x5afabb){var _0x25e551=_0x5ba063,_0x4b1280=_0x59e04c(_0x5afabb,_0x25e551(0x1e6));return _0x2fa143(_0x4b1280)==_0x25e551(0x1f3)?_0x4b1280:_0x4b1280+'';}function _0x116288(_0x179d23,_0x480444,_0x11495e){var _0x2fbb25=_0x5ba063;return(_0x480444=_0x57a35b(_0x480444))in _0x179d23?Object[_0x2fbb25(0x1d7)](_0x179d23,_0x480444,{'value':_0x11495e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x179d23[_0x480444]=_0x11495e,_0x179d23;}var _0x50c256=class extends _0x2527dc[_0x5ba063(0x1eb)]{constructor(..._0x50ab7e){var _0x56acb8=_0x5ba063;super(..._0x50ab7e),_0x116288(this,_0x56acb8(0x19a),void 0x0),_0x116288(this,_0x56acb8(0x1f0),void 0x0),_0x116288(this,'_docsFormulaModel',void 0x0),_0x116288(this,'_docsFormulaResourceLoaderService',void 0x0);}['_initialize'](_0x1b370c){var _0x38b1c8=_0x5ba063;this['_docsFormulaCommandService']=_0x1b370c[_0x38b1c8(0x1d8)](_0x7d4685['ICommandService']),this[_0x38b1c8(0x1f0)]=_0x1b370c[_0x38b1c8(0x1d8)](_0x55dc41[_0x38b1c8(0x1ce)]),this[_0x38b1c8(0x1e0)]=_0x1b370c[_0x38b1c8(0x1d8)](_0x55dc41['DocFormulaModel']),this['_docsFormulaResourceLoaderService']=_0x1b370c['get'](_0x7d4685[_0x38b1c8(0x1c0)]);}[_0x5ba063(0x1db)](){var _0x37ad71=_0x5ba063;return this[_0x37ad71(0x1bf)]()[_0x37ad71(0x1ba)](_0x1a244c=>this[_0x37ad71(0x1c9)](_0x1a244c['rangeId']));}['getFormula'](_0x395a1d){return this['_getCompleteRanges']()['some'](_0xcd1c97=>_0xcd1c97['rangeId']===_0x395a1d)?this['_createFormula'](_0x395a1d):null;}[_0x5ba063(0x1c4)](_0x59d6e8){var _0x3e2671=_0x5ba063;let _0x1ca88b=this[_0x3e2671(0x1bf)]()[_0x3e2671(0x1aa)](_0x459135=>_0x459135[_0x3e2671(0x1d9)]<=_0x59d6e8&&_0x59d6e8<=_0x459135[_0x3e2671(0x19c)]);return _0x1ca88b?this[_0x3e2671(0x1c9)](_0x1ca88b[_0x3e2671(0x1a8)]):null;}[_0x5ba063(0x1a6)](){var _0x56e5d4=_0x5ba063;let _0x210293=this['_docsFormulaResourceLoaderService']['saveUnit'](this['id']);if(!_0x210293)throw Error(_0x56e5d4(0x1de)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this['_docsFormulaDisplayTextService'][_0x56e5d4(0x1ea)](_0x210293);}[_0x5ba063(0x1da)](_0x2083d2){var _0x46510d=_0x5ba063;return this[_0x46510d(0x1d1)]({'externalReferences':_0x2083d2[_0x46510d(0x1f2)],'formula':_0x2083d2['formula'],'numberFormat':_0x2083d2[_0x46510d(0x1a5)],'target':{'type':'range','startOffset':_0x2083d2[_0x46510d(0x1ee)],'endOffset':_0x2083d2['endOffset']},'unitId':this[_0x46510d(0x1c1)]()});}[_0x5ba063(0x1d1)](_0x1b500e){var _0x5f5d8c=_0x5ba063;let _0x143380=this[_0x5f5d8c(0x19a)]['syncExecuteCommand'](_0x55dc41[_0x5f5d8c(0x1a0)]['id'],_0x1b500e);return _0x143380?this[_0x5f5d8c(0x1c9)](_0x143380[_0x5f5d8c(0x1a8)]):null;}[_0x5ba063(0x1bf)](){var _0xaaa46f=_0x5ba063,_0x174280;let _0x46690b=this[_0xaaa46f(0x1e0)][_0xaaa46f(0x1db)](this[_0xaaa46f(0x1c1)]());return((_0x174280=this[_0xaaa46f(0x1b6)]('')[_0xaaa46f(0x1d4)])==null?void 0x0:_0x174280[_0xaaa46f(0x1e5)](_0x36bb1e=>(0x0,_0x55dc41[_0xaaa46f(0x1df)])(_0x36bb1e)&&_0x46690b[_0x36bb1e['rangeId']]!=null))??[];}[_0x5ba063(0x1c9)](_0x5c2e66){var _0x5d933a=_0x5ba063;return this[_0x5d933a(0x1bc)][_0x5d933a(0x194)](_0x35ed99,this[_0x5d933a(0x1c1)](),_0x5c2e66);}};_0x2527dc['FDocument'][_0x5ba063(0x1b9)](_0x50c256);var _0x50524a=class extends _0x2527dc[_0x5ba063(0x1a9)]{constructor(..._0x20dd38){var _0xca961e=_0x5ba063;super(..._0x20dd38),_0x116288(this,_0xca961e(0x19a),void 0x0);}['_initialize'](_0x111d33){var _0x3d2cc8=_0x5ba063;this[_0x3d2cc8(0x19a)]=_0x111d33[_0x3d2cc8(0x1d8)](_0x7d4685[_0x3d2cc8(0x1cc)]);}['insertFormula'](_0x3e771a,_0x258356,_0x283a92={}){var _0x31f138=_0x5ba063;return this[_0x31f138(0x1d1)](_0x3e771a,_0x258356,_0x283a92);}[_0x5ba063(0x1a1)](_0x522d97,_0x5d2a55={}){var _0x216731=_0x5ba063;return this['_insert'](_0x216731(0x1ab),_0x522d97,_0x5d2a55);}[_0x5ba063(0x1d1)](_0x12ad42,_0x2a237f,_0x5e2b86){var _0x55fa40=_0x5ba063;if(this[_0x55fa40(0x1ac)]())return null;let _0x12b43e={'externalReferences':_0x5e2b86[_0x55fa40(0x1f2)],'formula':_0x2a237f,'numberFormat':_0x5e2b86[_0x55fa40(0x1a5)],'target':{'type':_0x55fa40(0x1bd),'paragraphId':this['getId'](),'position':_0x12ad42},'unitId':this['_document'][_0x55fa40(0x1c1)]()},_0x5b5160=this[_0x55fa40(0x19a)][_0x55fa40(0x1ad)](_0x55dc41['InsertDocFormulaCommand']['id'],_0x12b43e);return _0x5b5160?this[_0x55fa40(0x1bc)][_0x55fa40(0x194)](_0x35ed99,this['_document'][_0x55fa40(0x1c1)](),_0x5b5160['rangeId']):null;}};_0x2527dc['FDocumentParagraph'][_0x5ba063(0x1b9)](_0x50524a);var _0x9d70b5=class extends _0x2527dc[_0x5ba063(0x1b4)]{constructor(..._0x5d17df){var _0x4fb4dd=_0x5ba063;super(..._0x5d17df),_0x116288(this,_0x4fb4dd(0x19a),void 0x0);}['_initialize'](_0x3e3820){var _0x66f35b=_0x5ba063;this[_0x66f35b(0x19a)]=_0x3e3820[_0x66f35b(0x1d8)](_0x7d4685[_0x66f35b(0x1cc)]);}[_0x5ba063(0x1d5)](_0x398e11,_0x1b7373={}){var _0x1bc618=_0x5ba063;let {endOffset:_0x490985,segmentId:_0x14d8ef,startOffset:_0x1e9930}=this[_0x1bc618(0x1b5)]();return _0x14d8ef?null:this[_0x1bc618(0x1d1)](_0x1e9930,_0x490985,_0x398e11,_0x1b7373);}[_0x5ba063(0x1d1)](_0x1f2b08,_0x151aa0,_0x130177,_0x5350ae){var _0x1a61b4=_0x5ba063;let _0x2b5043={'externalReferences':_0x5350ae[_0x1a61b4(0x1f2)],'formula':_0x130177,'numberFormat':_0x5350ae[_0x1a61b4(0x1a5)],'target':{'type':_0x1a61b4(0x198),'startOffset':_0x1f2b08,'endOffset':_0x151aa0},'unitId':this[_0x1a61b4(0x1af)][_0x1a61b4(0x1c1)]()},_0x3076b5=this['_docsFormulaCommandService'][_0x1a61b4(0x1ad)](_0x55dc41[_0x1a61b4(0x1a0)]['id'],_0x2b5043);return _0x3076b5?this[_0x1a61b4(0x1bc)][_0x1a61b4(0x194)](_0x35ed99,this['_document'][_0x1a61b4(0x1c1)](),_0x3076b5[_0x1a61b4(0x1a8)]):null;}};_0x2527dc[_0x5ba063(0x1b4)][_0x5ba063(0x1b9)](_0x9d70b5),Object[_0x5ba063(0x1d7)](_0xeca2dc,'FDocumentFormula',{'enumerable':!0x0,'get':function(){return _0x35ed99;}});}));function _0x3c03(){var _0x2de655=['_injector','paragraph','604915pEnvfw','_getCompleteRanges','IResourceLoaderService','getId','iterator','IUniverInstanceService','getFormulaAt','_unitId','211629oZZhXO','describe','179125pjrshG','_createFormula','getUnit','default','ICommandService','_service','DocFormulaDisplayTextService','getSnapshot','UniverProDocsFormulaFacade','_insert','body','function','customRanges','replaceWithFormula','decorate','defineProperty','get','startIndex','insertFormula','getFormulas','replaceWithText','ConvertDocFormulaToTextCommand','Document\x20','isDocFormulaRange','_docsFormulaModel','prototype','15800OQMaxx','setNumberFormat','UniverCore','filter','string','UNIVER_DOC','_rangeId','UniverDocsFacade','degradeDocumentData','FDocument','DocFormulaModel','RemoveDocFormulaCommand','startOffset','411615ZiSDyS','_docsFormulaDisplayTextService','formula','externalReferences','symbol','getConfig','toPrimitive','Module','createInstance','call','remove','constructor','range','getFormula','_docsFormulaCommandService','513198ROZRyv','endIndex','_commandService','object','getResult','InsertDocFormulaCommand','appendFormula','_model','SetDocFormulaNumberFormatCommand','update','numberFormat','saveFormulaDisplayTextSnapshot','270096mAqQxj','rangeId','FDocumentParagraph','find','end','getSegmentId','syncExecuteCommand','exports','_document','700aGJIEI','amd','_getCustomRange','DocFormulaService','FDocumentTextRange','getRange','getBody','Inject','6nYFQQS','extend','map','_univerInstanceService'];_0x3c03=function(){return _0x2de655;};return _0x3c03();}