@univerjs-pro/docs-formula 1.0.0-alpha.8 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x28dbb5=_0x3d51;(function(_0x25a2a7,_0x51db32){const _0x19e3e3=_0x3d51,_0xb1a0ea=_0x25a2a7();while(!![]){try{const _0x4202ed=parseInt(_0x19e3e3(0x13c))/0x1+parseInt(_0x19e3e3(0xb5))/0x2*(parseInt(_0x19e3e3(0xf1))/0x3)+-parseInt(_0x19e3e3(0xd0))/0x4*(parseInt(_0x19e3e3(0x10c))/0x5)+-parseInt(_0x19e3e3(0x82))/0x6+parseInt(_0x19e3e3(0x12e))/0x7*(parseInt(_0x19e3e3(0x14b))/0x8)+-parseInt(_0x19e3e3(0x132))/0x9*(-parseInt(_0x19e3e3(0xa7))/0xa)+-parseInt(_0x19e3e3(0xdb))/0xb*(parseInt(_0x19e3e3(0x141))/0xc);if(_0x4202ed===_0x51db32)break;else _0xb1a0ea['push'](_0xb1a0ea['shift']());}catch(_0x52c66d){_0xb1a0ea['push'](_0xb1a0ea['shift']());}}}(_0x2b80,0x2c4b0));import{FormulaCacheEligibilityService as _0x5a5924,FormulaLastValuePersistenceService as _0x30c2d1,HostExternalReferenceModel as _0x37fda7,UniverProFormulaEnginePlugin as _0x5b65fd,buildUpsertHostExternalReferenceMutations as _0x446e86,collectFormulaExternalReferenceQualifiers as _0x117c87,getScalarFormulaResultCell as _0x1dc467,resolveFormulaResultPresentation as _0x54778f,resolveHostFormulaExternalReferences as _0x565637,toFormulaLastValue as _0x1e4e05}from'@univerjs-pro/engine-formula';import{CellValueType as _0x57d6d2,CommandType as _0x710f63,CustomRangeType as _0x5ababf,DataStreamTreeTokenType as _0x509b1d,DependentOn as _0x4e81df,Disposable as _0x27b4e8,ICommandService as _0x4f28e9,IConfigService as _0xb3cd1d,IResourceManagerService as _0x32728b,IUndoRedoService as _0x49e442,IUniverInstanceService as _0x3518ae,Inject as _0x7a2843,Injector as _0x38cb61,JSONX as _0x32e4cd,Plugin as _0x271a25,TextX as _0x58e801,Tools as _0x101aa2,UniverInstanceType as _0x1df217,generateRandomId as _0x15fb30,getBodySliceForTextXAction as _0x3b7f2e,getCustomRangeInterval as _0x4725f3,getParagraphContentStartOffset as _0x2b3efa,getRichTextEditPath as _0x44a967,merge as _0x32a306,shiftExclusiveRangeOnDelete as _0x2f6c94,shiftExclusiveRangeOnInsert as _0x5becfa,shiftInclusiveRangeOnDelete as _0x50376b,shiftInclusiveRangeOnInsert as _0x22bada,touchDependencies as _0x3dcd1a}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x26e9b9,DocSelectionManagerService as _0x36ff57,DocTextResolverService as _0x771ef2,RichTextEditingMutation as _0x498afa,UniverDocsPlugin as _0x198a07}from'@univerjs/docs';import{FormulaResultStatus as _0x1ba9e6,LexerTreeBuilder as _0x54a77b,OtherFormulaBizType as _0x5c36b7,RegisterOtherFormulaService as _0x556533}from'@univerjs/engine-formula';import{Subject as _0x440a5d}from'rxjs';import{UniverLicensePlugin as _0x2b9966}from'@univerjs-pro/license';const b=_0x28dbb5(0xd1),Ae=0x1,je=_0x28dbb5(0x118),Me='';function x(){return{'schemaVersion':0x1,'formulas':{}};}function S(_0x556cb4){const _0x2d120a=_0x28dbb5;return!_0x556cb4||typeof _0x556cb4!='object'||!C(_0x556cb4,['schemaVersion',_0x2d120a(0x12b)])||!(_0x2d120a(0x92)in _0x556cb4)||_0x556cb4[_0x2d120a(0x92)]!==0x1||!(_0x2d120a(0x12b)in _0x556cb4)||!_0x556cb4[_0x2d120a(0x12b)]||typeof _0x556cb4[_0x2d120a(0x12b)]!=_0x2d120a(0x12d)||Array['isArray'](_0x556cb4[_0x2d120a(0x12b)])?!0x1:Object[_0x2d120a(0x147)](_0x556cb4['formulas'])['every'](([_0x4268e2,_0x102df2])=>_0x4268e2[_0x2d120a(0xa6)]>0x0&&Ne(_0x102df2));}function Ne(_0x46d99c){const _0x3a5e57=_0x28dbb5;return!_0x46d99c||typeof _0x46d99c!=_0x3a5e57(0x12d)||!C(_0x46d99c,[_0x3a5e57(0x78),_0x3a5e57(0xc3),_0x3a5e57(0x6d)])||!('formula'in _0x46d99c)||typeof _0x46d99c[_0x3a5e57(0x78)]!=_0x3a5e57(0x9a)||!_0x46d99c['formula'][_0x3a5e57(0xdd)]()||_0x3a5e57(0xc3)in _0x46d99c&&_0x46d99c[_0x3a5e57(0xc3)]!=null&&(typeof _0x46d99c[_0x3a5e57(0xc3)]!='object'||!C(_0x46d99c[_0x3a5e57(0xc3)],[_0x3a5e57(0x107)])||!(_0x3a5e57(0x107)in _0x46d99c[_0x3a5e57(0xc3)])||typeof _0x46d99c[_0x3a5e57(0xc3)][_0x3a5e57(0x107)]!=_0x3a5e57(0x9a))?!0x1:!(_0x3a5e57(0x6d)in _0x46d99c)||_0x46d99c['lastValue']==null||Pe(_0x46d99c[_0x3a5e57(0x6d)]);}function Pe(_0x6ec76){const _0xa2c1c8=_0x28dbb5;return!_0x6ec76||typeof _0x6ec76!=_0xa2c1c8(0x12d)||!C(_0x6ec76,['v','t',_0xa2c1c8(0x107)])||!('v'in _0x6ec76)||_0x6ec76['v']!==null&&typeof _0x6ec76['v']!='string'&&typeof _0x6ec76['v']!='number'&&typeof _0x6ec76['v']!=_0xa2c1c8(0x127)||'t'in _0x6ec76&&_0x6ec76['t']!=null&&!Fe(_0x6ec76['t'])?!0x1:!(_0xa2c1c8(0x107)in _0x6ec76)||_0x6ec76[_0xa2c1c8(0x107)]==null||typeof _0x6ec76[_0xa2c1c8(0x107)]=='string';}function C(_0x330fd1,_0x126ae7){const _0x5290fd=_0x28dbb5;let _0x2c3d69=new Set(_0x126ae7);return Object[_0x5290fd(0x121)](_0x330fd1)['every'](_0x9e4549=>_0x2c3d69[_0x5290fd(0x94)](_0x9e4549));}function Fe(_0x3e730e){const _0x4a5758=_0x28dbb5;return typeof _0x3e730e=='number'&&Object[_0x4a5758(0x145)](_0x57d6d2)[_0x4a5758(0xfd)](_0x3e730e);}const Ie=new Set([_0x509b1d[_0x28dbb5(0x10e)],_0x509b1d[_0x28dbb5(0xcb)],_0x509b1d[_0x28dbb5(0x81)],_0x509b1d['TABLE_CELL_START'],_0x509b1d[_0x28dbb5(0x154)],_0x509b1d[_0x28dbb5(0x7b)],_0x509b1d['TABLE_END'],_0x509b1d[_0x28dbb5(0xed)],_0x509b1d['COLUMN_START'],_0x509b1d[_0x28dbb5(0xa4)],_0x509b1d[_0x28dbb5(0x152)],_0x509b1d['BLOCK_START'],_0x509b1d[_0x28dbb5(0xf9)],_0x509b1d[_0x28dbb5(0xba)]]);var w=class extends Error{constructor(){const _0x120489=_0x28dbb5;super(_0x120489(0xe5));}};function Le(_0x4c42fa){const _0x448ed6=_0x28dbb5;var _0xbc22f3,_0x3c6c3d,_0x49a25a,_0x2cd5fa;let _0x5494c9=_0x101aa2[_0x448ed6(0x11c)](_0x4c42fa[_0x448ed6(0x104)]),_0x2d8021=M(_0x5494c9),{startOffset:_0x351ba6,endOffset:_0x42e4c4}=Ue(_0x2d8021,_0x4c42fa['startOffset'],_0x4c42fa[_0x448ed6(0xeb)]);Ve(_0x2d8021,_0x351ba6,_0x42e4c4);let _0x38f9f7=(_0xbc22f3=(_0x3c6c3d=_0x2d8021[_0x448ed6(0x79)])==null?void 0x0:_0x3c6c3d[_0x448ed6(0x9e)](_0x4cebe0=>{const _0x13a1be=_0x448ed6;if(!T(_0x4cebe0))return!0x1;let _0x233645=_0x4725f3(_0x4cebe0);return _0x233645['endOffset']>_0x351ba6&&_0x233645[_0x13a1be(0xe1)]<_0x42e4c4;})[_0x448ed6(0x10d)](_0x486aa1=>_0x486aa1[_0x448ed6(0xf2)]))==null?[]:_0xbc22f3;Ke(_0x2d8021,_0x351ba6,_0x42e4c4,''),_0x2d8021[_0x448ed6(0x79)]=[...(_0x49a25a=(_0x2cd5fa=_0x2d8021[_0x448ed6(0x79)])==null?void 0x0:_0x2cd5fa[_0x448ed6(0x9e)](_0x4617f0=>!_0x38f9f7[_0x448ed6(0xfd)](_0x4617f0[_0x448ed6(0xf2)])&&_0x4617f0[_0x448ed6(0xf2)]!==_0x4c42fa['rangeId']))==null?[]:_0x49a25a,He(_0x4c42fa[_0x448ed6(0xf2)],_0x351ba6)][_0x448ed6(0x98)]((_0x24604,_0x88947a)=>_0x24604['startIndex']-_0x88947a[_0x448ed6(0x80)]);let _0x508da=D(_0x4c42fa['resource']);return _0x38f9f7[_0x448ed6(0x124)](_0x5768b2=>{const _0x3b1c30=_0x448ed6;delete _0x508da[_0x3b1c30(0x12b)][_0x5768b2];}),_0x508da[_0x448ed6(0x12b)][_0x4c42fa['rangeId']]=_0x101aa2[_0x448ed6(0x11c)](_0x4c42fa[_0x448ed6(0xa1)]),{'nextDocumentData':_0x5494c9,'nextResource':_0x508da,'cursorOffset':_0x351ba6+0x1};}function Re(_0xec212a){const _0x5c2d41=_0x28dbb5;var _0x4d6705,_0x351baf;let _0x56a37c=_0x101aa2[_0x5c2d41(0x11c)](_0xec212a[_0x5c2d41(0x104)]),_0x59cc03=(_0x4d6705=M(_0x56a37c)[_0x5c2d41(0x79)])==null?void 0x0:_0x4d6705[_0x5c2d41(0x125)](_0x1660e1=>_0x1660e1[_0x5c2d41(0xf2)]===_0xec212a['rangeId']&&T(_0x1660e1));if(!_0x59cc03||!((_0x351baf=_0xec212a[_0x5c2d41(0xe8)])!=null&&_0x351baf[_0x5c2d41(0x12b)][_0xec212a[_0x5c2d41(0xf2)]]))return null;let _0x5ade28=D(_0xec212a[_0x5c2d41(0xe8)]);return _0x5ade28[_0x5c2d41(0x12b)][_0xec212a[_0x5c2d41(0xf2)]]=_0x101aa2['deepClone'](_0xec212a[_0x5c2d41(0xa1)]),{'nextDocumentData':_0x56a37c,'nextResource':_0x5ade28,'cursorOffset':_0x59cc03[_0x5c2d41(0x96)]+0x1};}function ze(_0x4a1a84){const _0x5a3808=_0x28dbb5;var _0x18cc22;let _0x5cf95a=_0x101aa2[_0x5a3808(0x11c)](_0x4a1a84[_0x5a3808(0x104)]),_0x5c1b25=qe(_0x5cf95a,_0x4a1a84[_0x5a3808(0xf2)],(_0x18cc22=_0x4a1a84[_0x5a3808(0x83)])==null?'':_0x18cc22);if(_0x5c1b25==null)return null;let _0x1289c5=D(_0x4a1a84[_0x5a3808(0xe8)]);return delete _0x1289c5[_0x5a3808(0x12b)][_0x4a1a84[_0x5a3808(0xf2)]],{'nextDocumentData':_0x5cf95a,'nextResource':_0x1289c5,'cursorOffset':_0x5c1b25};}function Be(_0x26d88d,_0x2e4134){const _0x2142d6=_0x28dbb5;var _0x28117c,_0x1a8b42;let _0x1dc5ad=_0x101aa2['deepClone'](_0x26d88d),_0x28bfab=_0x1dc5ad['body'];if(!_0x28bfab)return _0x1dc5ad;let _0x5a8482=new Map(_0x2e4134[_0x2142d6(0x10d)](_0x3ce83a=>[_0x3ce83a['rangeId'],_0x3ce83a[_0x2142d6(0x83)]])),_0x19507f=(_0x28117c=(_0x1a8b42=_0x28bfab['customRanges'])==null?void 0x0:_0x1a8b42[_0x2142d6(0x9e)](_0x131cc1=>T(_0x131cc1)&&_0x5a8482[_0x2142d6(0x94)](_0x131cc1[_0x2142d6(0xf2)]))[_0x2142d6(0x98)]((_0x4a709f,_0x4b508f)=>_0x4b508f[_0x2142d6(0x80)]-_0x4a709f[_0x2142d6(0x80)]))==null?[]:_0x28117c;for(let _0x20699 of _0x19507f){var _0x5b7e37;qe(_0x1dc5ad,_0x20699['rangeId'],(_0x5b7e37=_0x5a8482[_0x2142d6(0x128)](_0x20699['rangeId']))==null?'':_0x5b7e37);}return _0x1dc5ad;}function T(_0x1ff4a1){const _0x3bb369=_0x28dbb5;var _0x51afe1;return(_0x1ff4a1==null?void 0x0:_0x1ff4a1['rangeType'])===_0x5ababf[_0x3bb369(0xb6)]&&_0x1ff4a1[_0x3bb369(0x150)]===!0x0&&((_0x51afe1=_0x1ff4a1[_0x3bb369(0xfa)])==null?void 0x0:_0x51afe1['kind'])==='univer-docs-formula';}function E(_0x58385c,_0x2da4bb){const _0x583efb=_0x28dbb5;var _0x1e8bc5;return _0x58385c==null||(_0x1e8bc5=_0x58385c['customRanges'])==null?void 0x0:_0x1e8bc5[_0x583efb(0x125)](_0x326fff=>_0x326fff[_0x583efb(0xf2)]===_0x2da4bb&&T(_0x326fff));}function Ve(_0x4e78b7,_0x3bd4b3,_0x381e7a){const _0x2e1344=_0x28dbb5;if(_0x3bd4b3===_0x381e7a){if(Ie[_0x2e1344(0x94)](_0x4e78b7[_0x2e1344(0xd7)][_0x3bd4b3]))throw new w();return;}for(let _0x430bf6=_0x3bd4b3;_0x430bf6<_0x381e7a;_0x430bf6++)if(_0x4e78b7[_0x2e1344(0xd7)][_0x430bf6]===_0x509b1d[_0x2e1344(0x7e)]||Ie['has'](_0x4e78b7[_0x2e1344(0xd7)][_0x430bf6]))throw new w();}function He(_0x481ff7,_0xc72f70){const _0x478e9e=_0x28dbb5;return{'startIndex':_0xc72f70,'endIndex':_0xc72f70,'rangeId':_0x481ff7,'rangeType':_0x5ababf[_0x478e9e(0xb6)],'wholeEntity':!0x0,'properties':{'kind':je}};}function D(_0x292cc2){const _0x47ae1c=_0x28dbb5;return _0x292cc2?_0x101aa2[_0x47ae1c(0x11c)](_0x292cc2):x();}function Ue(_0x351928,_0x462658,_0x4142a6){const _0x1ee007=_0x28dbb5;let _0x15402b=Ge(_0x351928),_0xcc8c9b=_0x462658==null?_0x15402b:_0x462658,_0x546259=_0x4142a6==null?_0xcc8c9b:_0x4142a6;return{'startOffset':We(Math[_0x1ee007(0x113)](_0xcc8c9b,_0x546259),_0x15402b),'endOffset':We(Math[_0x1ee007(0x109)](_0xcc8c9b,_0x546259),_0x15402b)};}function _0x2b80(){const _0x15374b=['_syncScheduled','deepClone','removeUnit','symbol','slice','deleteFormula','keys','getUnitId','formulaId','forEach','find','unitAdded$','boolean','get','getBody','params','formulas','getTextRanges','object','7xBEhfe','_presentationChanged$','resolveFormula','set','9fkXIRO','add','cell','getSnapshot','getFormulas','registerProvider','startsWith','onCommandExecuted','registerFormulaWithRange','document','362195EADtol','syncExecuteCommand','_setPresentation','EMPTY','notifyTextChanged','556824tRGbyu','_univerInstanceService','invalid-resource','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','values','resources','entries','trigger','_pendingUnitIds','SUCCESS','2558192iFVKKS','getFormulaValueSync','assess','change$','ERROR','wholeEntity','docs-formula.mutation.set-resource','COLUMN_GROUP_END','source','TABLE_CELL_END','next','_registrationService','registerPluginResource','_change$','serialize','identity','_preserveInvalid','_hostExternalReferenceModel','references','unregister','getRegisteredFormulas','_resourceManagerService','_syncUnit','error','lastValue','unitId','syncUnit','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','eligible','_model','insertLength','_updateFormulaResult','status','sequenceNodesBuilder','data','formula','customRanges','_queueSync','TABLE_ROW_END','packageName','collectMutations','PARAGRAPH','updates','startIndex','TABLE_ROW_START','869214fbnCjf','text','setFormula','docs-formula.command.insert','removeFormula','sectionBreaks','presentation','docs-formula.command.convert-to-text','stringify','empty','MUTATION','_formulaKeys','nextDocumentData','editOp','iterator','unregisterUnit','schemaVersion','success','has','_instanceService','endIndex','docs-formula.mutation.set-formula','sort','cursorOffset','string','body','getFormula','_config','filter','COMMAND','insert','config','pending','customBlocks','COLUMN_END','docs-formula.mutation.remove-formula','length','2141610ViBAoW','UNIVER_DOC','customDecorations','blockRanges','setConfig','nextResource','setFormulas','push','resourceUndo','retain','disposeWithMe','_configService','_service','resolved','616fcDNSy','CUSTOM','externalMutations','name','color','CUSTOM_BLOCK','undoMutation','paragraph','unsupported-version','_docFormulaModel','getCurrentUnitOfType','getRevision','fromEntries','clear','numberFormat','liveResult','delete','resourceRedo','previousDocumentData','getUnit','DOC','_formulaService','TABLE_START','asObservable','@univerjs-pro/docs-formula','_commandService','getLoadError','4SfMjZb','DOC_FORMULA_PLUGIN','dispose','degradeDocumentData','_loadErrors','from','load','dataStream','getPresentation','unitDisposed$','registerCommand','99kvpvep','paragraphId','trim','defineProperty','function','_deleteRegistration','startOffset','redoMutation','columnGroups','isInteger','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','_injector','accessor','resource','endsWith','1.0.0-alpha.8','endOffset','_rawResources','COLUMN_GROUP_START','prototype','textRuns','assign','984EMedEH','rangeId','_resources','segmentId','getInstance','toPrimitive','type','stale','BLOCK_END','properties','subscribe','_registrations','includes','docs-formula.command.replace-with-text','selection','parse','complete','constructor','documentRedo','documentData','paragraphs','getResource','pattern','deleteLength','max','docs-formula.command.update','tables','1266215lXVvVp','map','SECTION_BREAK','replaceDocRanges','setResource','start','decorate','min','_cacheEligibilityService','register','_isDisposed','model','univer-docs-formula','getResult','disabled'];_0x2b80=function(){return _0x15374b;};return _0x2b80();}function We(_0x5e6f90,_0x4e18ec){const _0x18d6a1=_0x28dbb5;return Math[_0x18d6a1(0x109)](0x0,Math['min'](_0x5e6f90,_0x4e18ec));}function Ge(_0x2ff1ac){const _0x956327=_0x28dbb5;return _0x2ff1ac[_0x956327(0xd7)][_0x956327(0xe9)](''+_0x509b1d[_0x956327(0x7e)]+_0x509b1d[_0x956327(0x10e)])?Math[_0x956327(0x109)](0x0,_0x2ff1ac[_0x956327(0xd7)][_0x956327(0xa6)]-0x2):_0x2ff1ac['dataStream'][_0x956327(0xe9)](_0x509b1d[_0x956327(0x10e)])?Math['max'](0x0,_0x2ff1ac[_0x956327(0xd7)][_0x956327(0xa6)]-0x1):_0x2ff1ac[_0x956327(0xd7)][_0x956327(0xa6)];}function Ke(_0x165239,_0x3f776d,_0x1a355,_0x1370a2){_0x1a355>_0x3f776d&&Ye(_0x165239,_0x3f776d,_0x1a355),Je(_0x165239,_0x3f776d,_0x1370a2);}function qe(_0x30b388,_0x260ba2,_0x10fee7){const _0x50cb6f=_0x28dbb5;var _0x3c7c29,_0x558208;let _0x2edd5e=M(_0x30b388),_0x340936=(_0x3c7c29=_0x2edd5e[_0x50cb6f(0x79)])==null?void 0x0:_0x3c7c29[_0x50cb6f(0x125)](_0x569d79=>_0x569d79['rangeId']===_0x260ba2&&T(_0x569d79));if(!_0x340936)return null;let _0x125c40=_0x4725f3(_0x340936);return Ke(_0x2edd5e,_0x125c40[_0x50cb6f(0xe1)],_0x125c40[_0x50cb6f(0xeb)],_0x10fee7),_0x2edd5e['customRanges']=(_0x558208=_0x2edd5e[_0x50cb6f(0x79)])==null?void 0x0:_0x558208['filter'](_0x17299e=>_0x17299e[_0x50cb6f(0xf2)]!==_0x260ba2),_0x125c40[_0x50cb6f(0xe1)]+_0x10fee7['length'];}function Je(_0x4a610f,_0x595c66,_0x37a9f5){const _0x3c73ff=_0x28dbb5;_0x37a9f5&&(_0x4a610f[_0x3c73ff(0xd7)]=''+_0x4a610f['dataStream']['slice'](0x0,_0x595c66)+_0x37a9f5+_0x4a610f['dataStream']['slice'](_0x595c66),Xe(_0x4a610f,_0x595c66,_0x37a9f5[_0x3c73ff(0xa6)]));}function Ye(_0x4b3c7e,_0x4a6e8a,_0xe053ce){const _0x13e689=_0x28dbb5;let _0x41eb4e=_0xe053ce-_0x4a6e8a;_0x4b3c7e[_0x13e689(0xd7)]=''+_0x4b3c7e['dataStream'][_0x13e689(0x11f)](0x0,_0x4a6e8a)+_0x4b3c7e['dataStream'][_0x13e689(0x11f)](_0xe053ce),Ze(_0x4b3c7e,_0x4a6e8a,_0x41eb4e);}function Xe(_0x396133,_0xd0139f,_0x14fe64){const _0xf536bb=_0x28dbb5;_0x396133['paragraphs']=O(_0x396133['paragraphs'],_0xd0139f,_0x14fe64),_0x396133[_0xf536bb(0x87)]=O(_0x396133[_0xf536bb(0x87)],_0xd0139f,_0x14fe64),_0x396133[_0xf536bb(0xa3)]=O(_0x396133[_0xf536bb(0xa3)],_0xd0139f,_0x14fe64),_0x396133[_0xf536bb(0xef)]=Qe(_0x396133['textRuns'],_0xd0139f,_0x14fe64),_0x396133[_0xf536bb(0x10b)]=$e(_0x396133[_0xf536bb(0x10b)],_0xd0139f,_0x14fe64),_0x396133['columnGroups']=A(_0x396133[_0xf536bb(0xe3)],_0xd0139f,_0x14fe64),_0x396133[_0xf536bb(0x79)]=A(_0x396133[_0xf536bb(0x79)],_0xd0139f,_0x14fe64),_0x396133[_0xf536bb(0xa9)]=A(_0x396133[_0xf536bb(0xa9)],_0xd0139f,_0x14fe64),_0x396133[_0xf536bb(0xaa)]=A(_0x396133[_0xf536bb(0xaa)],_0xd0139f,_0x14fe64);}function Ze(_0x3d0416,_0x1da6f5,_0x54bb9a){const _0x46a9ce=_0x28dbb5;var _0x15cab2,_0x8a6312;_0x3d0416[_0x46a9ce(0x105)]=k(_0x3d0416['paragraphs'],_0x1da6f5,_0x54bb9a),_0x3d0416[_0x46a9ce(0x87)]=k(_0x3d0416[_0x46a9ce(0x87)],_0x1da6f5,_0x54bb9a),_0x3d0416[_0x46a9ce(0xa3)]=k(_0x3d0416[_0x46a9ce(0xa3)],_0x1da6f5,_0x54bb9a),_0x3d0416[_0x46a9ce(0xef)]=(_0x15cab2=et((_0x8a6312=_0x3d0416[_0x46a9ce(0xef)])==null?void 0x0:_0x8a6312[_0x46a9ce(0x10d)](_0x563846=>({..._0x563846,'startIndex':_0x563846['st'],'endIndex':_0x563846['ed']})),_0x1da6f5,_0x54bb9a))==null?void 0x0:_0x15cab2[_0x46a9ce(0x10d)](_0x14ced1=>{let {startIndex:_0x2e86d7,endIndex:_0x28cba6,..._0x164413}=_0x14ced1;return{..._0x164413,'st':_0x2e86d7,'ed':_0x28cba6};}),_0x3d0416['tables']=et(_0x3d0416[_0x46a9ce(0x10b)],_0x1da6f5,_0x54bb9a),_0x3d0416[_0x46a9ce(0xe3)]=j(_0x3d0416['columnGroups'],_0x1da6f5,_0x54bb9a),_0x3d0416[_0x46a9ce(0x79)]=j(_0x3d0416[_0x46a9ce(0x79)],_0x1da6f5,_0x54bb9a),_0x3d0416[_0x46a9ce(0xa9)]=j(_0x3d0416[_0x46a9ce(0xa9)],_0x1da6f5,_0x54bb9a),_0x3d0416[_0x46a9ce(0xaa)]=j(_0x3d0416[_0x46a9ce(0xaa)],_0x1da6f5,_0x54bb9a);}function O(_0x2cdded,_0xf6c1a,_0x2ca393){const _0x3279db=_0x28dbb5;return _0x2cdded==null?void 0x0:_0x2cdded[_0x3279db(0x10d)](_0x41a94e=>_0x41a94e['startIndex']>=_0xf6c1a?{..._0x41a94e,'startIndex':_0x41a94e['startIndex']+_0x2ca393}:_0x41a94e);}function k(_0xe1bc8c,_0x335dde,_0x1129a1){const _0x12230e=_0x28dbb5;let _0x20ba9c=_0x335dde+_0x1129a1;return _0xe1bc8c==null?void 0x0:_0xe1bc8c[_0x12230e(0x10d)](_0xe12533=>_0xe12533['startIndex']>=_0x335dde&&_0xe12533[_0x12230e(0x80)]<_0x20ba9c?null:_0xe12533[_0x12230e(0x80)]>=_0x20ba9c?{..._0xe12533,'startIndex':_0xe12533[_0x12230e(0x80)]-_0x1129a1}:_0xe12533)['filter'](_0x4dd986=>_0x4dd986!=null);}function Qe(_0x11d83d,_0x4cc759,_0x14eac3){return _0x11d83d==null?void 0x0:_0x11d83d['map'](_0x1dd0f3=>_0x1dd0f3['st']>=_0x4cc759?{..._0x1dd0f3,'st':_0x1dd0f3['st']+_0x14eac3,'ed':_0x1dd0f3['ed']+_0x14eac3}:_0x1dd0f3['ed']>_0x4cc759?{..._0x1dd0f3,'ed':_0x1dd0f3['ed']+_0x14eac3}:_0x1dd0f3);}function A(_0x809129,_0x15f722,_0x71ff18){const _0x4cc682=_0x28dbb5;return _0x809129==null?void 0x0:_0x809129[_0x4cc682(0x10d)](_0x2ad8c3=>_0x22bada(_0x2ad8c3,_0x15f722,_0x71ff18));}function $e(_0x1b4e0d,_0x1176ec,_0x56d34d){const _0x52323b=_0x28dbb5;return _0x1b4e0d==null?void 0x0:_0x1b4e0d[_0x52323b(0x10d)](_0x4d3def=>_0x5becfa(_0x4d3def,_0x1176ec,_0x56d34d));}function j(_0x43bf96,_0xb3cf1d,_0x10086f){const _0x304ec9=_0x28dbb5;return _0x43bf96==null?void 0x0:_0x43bf96[_0x304ec9(0x10d)](_0x27d3e3=>_0x50376b(_0x27d3e3,_0xb3cf1d,_0x10086f))[_0x304ec9(0x9e)](_0x28c09b=>_0x28c09b!=null);}function et(_0xdee8c3,_0x36fe5b,_0x35dd63){const _0x410f81=_0x28dbb5;return _0xdee8c3==null?void 0x0:_0xdee8c3[_0x410f81(0x10d)](_0x4f086e=>_0x2f6c94(_0x4f086e,_0x36fe5b,_0x35dd63))[_0x410f81(0x9e)](_0x3ecd50=>_0x3ecd50!=null);}function M(_0x31de1b){const _0x284b2c=_0x28dbb5;if(!_0x31de1b[_0x284b2c(0x9b)])throw Error(_0x284b2c(0x144));return _0x31de1b['body'];}function N(_0x4e0809){'@babel/helpers - typeof';const _0x5bef9a=_0x28dbb5;return N=typeof Symbol==_0x5bef9a(0xdf)&&typeof Symbol[_0x5bef9a(0x90)]==_0x5bef9a(0x11e)?function(_0x1c5097){return typeof _0x1c5097;}:function(_0x39035c){const _0x3d929c=_0x5bef9a;return _0x39035c&&typeof Symbol==_0x3d929c(0xdf)&&_0x39035c[_0x3d929c(0x102)]===Symbol&&_0x39035c!==Symbol[_0x3d929c(0xee)]?'symbol':typeof _0x39035c;},N(_0x4e0809);}function tt(_0x37c67e,_0x5c1077){const _0x85eb07=_0x28dbb5;if(N(_0x37c67e)!=_0x85eb07(0x12d)||!_0x37c67e)return _0x37c67e;var _0x5d0552=_0x37c67e[Symbol[_0x85eb07(0xf6)]];if(_0x5d0552!==void 0x0){var _0x3bfa39=_0x5d0552['call'](_0x37c67e,_0x5c1077||'default');if(N(_0x3bfa39)!=_0x85eb07(0x12d))return _0x3bfa39;throw TypeError(_0x85eb07(0x70));}return(_0x5c1077===_0x85eb07(0x9a)?String:Number)(_0x37c67e);}function nt(_0x15b969){const _0x3ada9c=_0x28dbb5;var _0x43e73f=tt(_0x15b969,_0x3ada9c(0x9a));return N(_0x43e73f)==_0x3ada9c(0x11e)?_0x43e73f:_0x43e73f+'';}function P(_0x34368a,_0x248a24,_0x646ae){const _0x24d366=_0x28dbb5;return(_0x248a24=nt(_0x248a24))in _0x34368a?Object[_0x24d366(0xde)](_0x34368a,_0x248a24,{'value':_0x646ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34368a[_0x248a24]=_0x646ae,_0x34368a;}var F=class extends _0x27b4e8{constructor(..._0x1c78bc){const _0x58b504=_0x28dbb5;super(..._0x1c78bc),P(this,_0x58b504(0xf3),new Map()),P(this,'_rawResources',new Map()),P(this,_0x58b504(0xd4),new Map()),P(this,_0x58b504(0x158),new _0x440a5d()),P(this,'change$',this[_0x58b504(0x158)][_0x58b504(0xcc)]());}[_0x28dbb5(0x9c)](_0x49e2e7,_0x553a92){const _0x44cfeb=_0x28dbb5;var _0x3fc724;let _0x438851=(_0x3fc724=this[_0x44cfeb(0xf3)][_0x44cfeb(0x128)](_0x49e2e7))==null?void 0x0:_0x3fc724[_0x44cfeb(0x12b)][_0x553a92];return _0x438851?_0x101aa2['deepClone'](_0x438851):void 0x0;}[_0x28dbb5(0x136)](_0x5acfe2){const _0x46103d=_0x28dbb5;var _0xd89d61,_0x342b3f;return _0x101aa2[_0x46103d(0x11c)]((_0xd89d61=(_0x342b3f=this['_resources'][_0x46103d(0x128)](_0x5acfe2))==null?void 0x0:_0x342b3f[_0x46103d(0x12b)])==null?{}:_0xd89d61);}[_0x28dbb5(0x106)](_0x3b39b0){const _0x2e945d=_0x28dbb5;let _0x4297d8=this[_0x2e945d(0xf3)]['get'](_0x3b39b0);return _0x4297d8?_0x101aa2[_0x2e945d(0x11c)](_0x4297d8):void 0x0;}[_0x28dbb5(0x84)](_0x32f1f5,_0x56699f,_0x13a84d){const _0x40db5c=_0x28dbb5;return this[_0x40db5c(0xad)](_0x32f1f5,{[_0x56699f]:_0x13a84d});}[_0x28dbb5(0x110)](_0xfada9b,_0x7d4b7a){const _0x899dbd=_0x28dbb5;return this[_0x899dbd(0xd4)][_0x899dbd(0x94)](_0xfada9b)||!S(_0x7d4b7a)?!0x1:(this[_0x899dbd(0xf3)][_0x899dbd(0x131)](_0xfada9b,_0x101aa2[_0x899dbd(0x11c)](_0x7d4b7a)),this[_0x899dbd(0x158)]['next']({'unitId':_0xfada9b}),!0x0);}[_0x28dbb5(0xad)](_0x52200f,_0x274d27){const _0x1f0e02=_0x28dbb5;var _0x2d8d23;if(this[_0x1f0e02(0xd4)][_0x1f0e02(0x94)](_0x52200f)||!Object['keys'](_0x274d27)[_0x1f0e02(0xa6)]||!S({'schemaVersion':0x1,'formulas':_0x274d27}))return!0x1;let _0x3f2ae1=(_0x2d8d23=this[_0x1f0e02(0xf3)][_0x1f0e02(0x128)](_0x52200f))==null?x():_0x2d8d23,_0x254947=_0x101aa2[_0x1f0e02(0x11c)](_0x3f2ae1);return Object[_0x1f0e02(0xf0)](_0x254947[_0x1f0e02(0x12b)],_0x101aa2[_0x1f0e02(0x11c)](_0x274d27)),this[_0x1f0e02(0xf3)][_0x1f0e02(0x131)](_0x52200f,_0x254947),this[_0x1f0e02(0x158)][_0x1f0e02(0x155)]({'unitId':_0x52200f,'rangeIds':Object['keys'](_0x274d27)}),!0x0;}[_0x28dbb5(0x86)](_0x530aa5,_0x1f4126){const _0x10a45f=_0x28dbb5;if(this['_loadErrors']['has'](_0x530aa5))return!0x1;let _0x1f651a=this[_0x10a45f(0xf3)]['get'](_0x530aa5);if(!(_0x1f651a!=null&&_0x1f651a[_0x10a45f(0x12b)][_0x1f4126]))return!0x1;let _0xa7c27c=_0x101aa2['deepClone'](_0x1f651a);return delete _0xa7c27c[_0x10a45f(0x12b)][_0x1f4126],this[_0x10a45f(0xf3)][_0x10a45f(0x131)](_0x530aa5,_0xa7c27c),this[_0x10a45f(0x158)]['next']({'unitId':_0x530aa5,'rangeIds':[_0x1f4126]}),!0x0;}['load'](_0x170fd9,_0x280763){const _0xfd0dac=_0x28dbb5;return _0x280763&&typeof _0x280763==_0xfd0dac(0x12d)&&_0xfd0dac(0x92)in _0x280763&&_0x280763[_0xfd0dac(0x92)]!==0x1?(this[_0xfd0dac(0x15b)](_0x170fd9,_0x280763,_0xfd0dac(0xbd)),!0x1):S(_0x280763)?(this[_0xfd0dac(0xf3)][_0xfd0dac(0x131)](_0x170fd9,_0x101aa2[_0xfd0dac(0x11c)](_0x280763)),this[_0xfd0dac(0xec)]['delete'](_0x170fd9),this['_loadErrors'][_0xfd0dac(0xc5)](_0x170fd9),this['_change$'][_0xfd0dac(0x155)]({'unitId':_0x170fd9}),!0x0):(this[_0xfd0dac(0x15b)](_0x170fd9,_0x280763,_0xfd0dac(0x143)),!0x1);}[_0x28dbb5(0x159)](_0x5e2225){const _0xc496a2=_0x28dbb5;let _0x5b9d29=this[_0xc496a2(0xf3)][_0xc496a2(0x128)](_0x5e2225);return _0x5b9d29?_0x101aa2[_0xc496a2(0x11c)](_0x5b9d29):this[_0xc496a2(0xec)][_0xc496a2(0x94)](_0x5e2225)?_0x101aa2[_0xc496a2(0x11c)](this[_0xc496a2(0xec)][_0xc496a2(0x128)](_0x5e2225)):x();}[_0x28dbb5(0xcf)](_0x454a31){const _0x3e744c=_0x28dbb5;return this[_0x3e744c(0xd4)][_0x3e744c(0x128)](_0x454a31);}[_0x28dbb5(0x11d)](_0x11fe6e){const _0x49633b=_0x28dbb5;this[_0x49633b(0xf3)][_0x49633b(0xc5)](_0x11fe6e),this[_0x49633b(0xec)][_0x49633b(0xc5)](_0x11fe6e),this[_0x49633b(0xd4)][_0x49633b(0xc5)](_0x11fe6e),this[_0x49633b(0x158)][_0x49633b(0x155)]({'unitId':_0x11fe6e});}[_0x28dbb5(0xd2)](){const _0x6f4255=_0x28dbb5;this[_0x6f4255(0xf3)]['clear'](),this[_0x6f4255(0xec)][_0x6f4255(0xc2)](),this[_0x6f4255(0xd4)][_0x6f4255(0xc2)](),this[_0x6f4255(0x158)]['complete'](),super[_0x6f4255(0xd2)]();}[_0x28dbb5(0x15b)](_0x488175,_0x2972e0,_0x2d7c84){const _0x5706ee=_0x28dbb5;this[_0x5706ee(0xf3)]['delete'](_0x488175),this['_rawResources'][_0x5706ee(0x131)](_0x488175,_0x101aa2[_0x5706ee(0x11c)](_0x2972e0)),this[_0x5706ee(0xd4)][_0x5706ee(0x131)](_0x488175,_0x2d7c84),this[_0x5706ee(0x158)][_0x5706ee(0x155)]({'unitId':_0x488175});}};let rt=function(_0x571a1f){const _0xa53556=_0x28dbb5;return _0x571a1f[_0xa53556(0x13f)]=_0xa53556(0x8b),_0x571a1f['PENDING']='pending',_0x571a1f[_0xa53556(0x14a)]=_0xa53556(0x93),_0x571a1f[_0xa53556(0x14f)]=_0xa53556(0x6c),_0x571a1f;}({});function I(_0x2371d1,_0xe03130){return function(_0x544921,_0x338ee3){_0xe03130(_0x544921,_0x338ee3,_0x2371d1);};}function L(_0x5f28a3,_0x347748,_0x617621,_0x11c53c){const _0x285d07=_0x28dbb5;var _0x509b4d=arguments[_0x285d07(0xa6)],_0x5c983d=_0x509b4d<0x3?_0x347748:_0x11c53c===null?_0x11c53c=Object['getOwnPropertyDescriptor'](_0x347748,_0x617621):_0x11c53c,_0x12d2eb;if(typeof Reflect==_0x285d07(0x12d)&&typeof Reflect[_0x285d07(0x112)]==_0x285d07(0xdf))_0x5c983d=Reflect[_0x285d07(0x112)](_0x5f28a3,_0x347748,_0x617621,_0x11c53c);else{for(var _0x431ee5=_0x5f28a3[_0x285d07(0xa6)]-0x1;_0x431ee5>=0x0;_0x431ee5--)(_0x12d2eb=_0x5f28a3[_0x431ee5])&&(_0x5c983d=(_0x509b4d<0x3?_0x12d2eb(_0x5c983d):_0x509b4d>0x3?_0x12d2eb(_0x347748,_0x617621,_0x5c983d):_0x12d2eb(_0x347748,_0x617621))||_0x5c983d);}return _0x509b4d>0x3&&_0x5c983d&&Object[_0x285d07(0xde)](_0x347748,_0x617621,_0x5c983d),_0x5c983d;}let R=class extends _0x27b4e8{constructor(_0x5a7556,_0x3b575b,_0x2e342a){const _0x28be1c=_0x28dbb5;super(),this['_model']=_0x5a7556,this['_registrationService']=_0x3b575b,this[_0x28be1c(0x15c)]=_0x2e342a,P(this,_0x28be1c(0xfc),new Map()),P(this,_0x28be1c(0x8d),new Map()),P(this,_0x28be1c(0x12f),new _0x440a5d()),P(this,'presentationChanged$',this[_0x28be1c(0x12f)][_0x28be1c(0xcc)]()),this['disposeWithMe'](this[_0x28be1c(0x156)]['formulaResult$'][_0x28be1c(0xfb)](_0x4b8517=>{const _0x16f5f5=_0x28be1c;for(let _0x13a473 of Object['values'](_0x4b8517))for(let _0x18a241 of Object['values'](_0x13a473))_0x18a241[_0x16f5f5(0x124)](_0x1ded82=>this[_0x16f5f5(0x74)](_0x1ded82));}));}['syncUnit'](_0x3134ce){const _0x17d80b=_0x28dbb5;var _0x7e9d69,_0x5be2bd;let _0x41ce3e=_0x3134ce[_0x17d80b(0x122)](),_0x326aaf=(_0x7e9d69=(_0x5be2bd=_0x3134ce['getSnapshot']()[_0x17d80b(0x9b)])==null||(_0x5be2bd=_0x5be2bd[_0x17d80b(0x79)])==null?void 0x0:_0x5be2bd[_0x17d80b(0x9e)](T))==null?[]:_0x7e9d69,_0x50005c=this['_model'][_0x17d80b(0x136)](_0x41ce3e),_0x8ed43f=new Set();for(let _0x125beb of _0x326aaf){let _0x314b65=_0x50005c[_0x125beb['rangeId']];_0x314b65&&(_0x8ed43f[_0x17d80b(0x133)](z(_0x41ce3e,_0x125beb[_0x17d80b(0xf2)])),this[_0x17d80b(0x115)]({'unitId':_0x41ce3e,'rangeId':_0x125beb[_0x17d80b(0xf2)]},_0x314b65));}for(let _0x4e423a of Array[_0x17d80b(0xd5)](this[_0x17d80b(0xfc)][_0x17d80b(0x145)]()))_0x4e423a[_0x17d80b(0x6e)]===_0x41ce3e&&!_0x8ed43f[_0x17d80b(0x94)](z(_0x4e423a[_0x17d80b(0x6e)],_0x4e423a['rangeId']))&&this[_0x17d80b(0x15e)](_0x4e423a);}[_0x28dbb5(0x115)](_0x5cebdd,_0xb3c881){const _0x52d79e=_0x28dbb5;let _0x25f589=z(_0x5cebdd[_0x52d79e(0x6e)],_0x5cebdd[_0x52d79e(0xf2)]),_0xe966f9=this[_0x52d79e(0xfc)][_0x52d79e(0x128)](_0x25f589),_0x53f35d=this['_hostExternalReferenceModel'][_0x52d79e(0xc0)](_0x5cebdd[_0x52d79e(0x6e)]);if(_0xe966f9&&_0xe966f9[_0x52d79e(0xa1)][_0x52d79e(0x78)]===_0xb3c881[_0x52d79e(0x78)]&&_0xe966f9['referenceRevision']===_0x53f35d){var _0x4a9472;_0xe966f9[_0x52d79e(0xa1)]=_0xb3c881;let _0x350f0b=_0xe966f9['formulaId']?(_0x4a9472=this[_0x52d79e(0x156)][_0x52d79e(0x14c)](_0xe966f9[_0x52d79e(0x6e)],_0xe966f9['unitId'],_0xe966f9[_0x52d79e(0x123)]))==null?void 0x0:_0x4a9472:void 0x0;_0xe966f9[_0x52d79e(0xc4)]=_0x350f0b,this[_0x52d79e(0x13e)](_0x25f589,B(_0xb3c881,_0x350f0b));return;}_0xe966f9!=null&&_0xe966f9[_0x52d79e(0x123)]&&this[_0x52d79e(0xe0)](_0xe966f9);let _0x3870d3={..._0x5cebdd,'config':_0xb3c881,'referenceRevision':_0x53f35d,'presentation':B(_0xb3c881,void 0x0)};if(this[_0x52d79e(0xfc)][_0x52d79e(0x131)](_0x25f589,_0x3870d3),!_0xb3c881[_0x52d79e(0x78)][_0x52d79e(0xdd)]())return;let _0x467605=this['_registrationService'][_0x52d79e(0x13a)](_0x5cebdd['unitId'],_0x5cebdd[_0x52d79e(0x6e)],_0xb3c881['formula'],void 0x0,{'rangeId':_0x5cebdd[_0x52d79e(0xf2)]},_0x5c36b7[_0x52d79e(0xc9)],_0x5cebdd[_0x52d79e(0xf2)]);_0x3870d3[_0x52d79e(0x123)]=_0x467605,this[_0x52d79e(0x8d)][_0x52d79e(0x131)](_0x467605,_0x25f589);}[_0x28dbb5(0x15e)](_0x4789a2){const _0xaef9a9=_0x28dbb5;let _0x57db07=z(_0x4789a2[_0xaef9a9(0x6e)],_0x4789a2[_0xaef9a9(0xf2)]),_0x3d3ea0=this['_registrations'][_0xaef9a9(0x128)](_0x57db07);_0x3d3ea0&&(this[_0xaef9a9(0xe0)](_0x3d3ea0),this['_registrations'][_0xaef9a9(0xc5)](_0x57db07));}[_0x28dbb5(0x91)](_0x5540fa){const _0x42bdc8=_0x28dbb5;for(let _0x2ae7f8 of Array[_0x42bdc8(0xd5)](this['_registrations'][_0x42bdc8(0x145)]()))_0x2ae7f8['unitId']===_0x5540fa&&this[_0x42bdc8(0x15e)](_0x2ae7f8);}[_0x28dbb5(0xd8)](_0x49e346){const _0x4d2f5a=_0x28dbb5;var _0x2796cd;return(_0x2796cd=this[_0x4d2f5a(0xfc)][_0x4d2f5a(0x128)](z(_0x49e346[_0x4d2f5a(0x6e)],_0x49e346[_0x4d2f5a(0xf2)])))==null?void 0x0:_0x2796cd[_0x4d2f5a(0x88)];}[_0x28dbb5(0x119)](_0xa93a25){const _0x3bf146=_0x28dbb5;let _0xb2c229=this['_registrations'][_0x3bf146(0x128)](z(_0xa93a25[_0x3bf146(0x6e)],_0xa93a25['rangeId']));return _0xb2c229?V(_0xb2c229):void 0x0;}[_0x28dbb5(0x69)](){const _0x40e904=_0x28dbb5;return Array['from'](this['_registrations'][_0x40e904(0x145)](),_0x44112b=>({'identity':{'unitId':_0x44112b[_0x40e904(0x6e)],'rangeId':_0x44112b[_0x40e904(0xf2)]},'config':_0x44112b[_0x40e904(0xa1)],'referenceRevision':_0x44112b['referenceRevision'],..._0x44112b[_0x40e904(0xc4)]?{'liveResult':_0x44112b['liveResult']}:null}));}[_0x28dbb5(0xd2)](){const _0x54ecdd=_0x28dbb5;for(let _0x5db320 of this[_0x54ecdd(0xfc)]['values']())this[_0x54ecdd(0xe0)](_0x5db320);this['_registrations'][_0x54ecdd(0xc2)](),this['_formulaKeys'][_0x54ecdd(0xc2)](),this[_0x54ecdd(0x12f)][_0x54ecdd(0x101)](),super[_0x54ecdd(0xd2)]();}[_0x28dbb5(0x74)](_0x1a1884){const _0x37da8c=_0x28dbb5;let _0x2d1da3=this[_0x37da8c(0x8d)][_0x37da8c(0x128)](_0x1a1884[_0x37da8c(0x123)]),_0x2e9c63=_0x2d1da3?this[_0x37da8c(0xfc)][_0x37da8c(0x128)](_0x2d1da3):void 0x0;!_0x2d1da3||!_0x2e9c63||(_0x2e9c63[_0x37da8c(0xc4)]=_0x1a1884,this[_0x37da8c(0x13e)](_0x2d1da3,B(_0x2e9c63[_0x37da8c(0xa1)],_0x1a1884)));}[_0x28dbb5(0x13e)](_0x315244,_0x7ac606){const _0x349112=_0x28dbb5;var _0x5b32e8,_0x5ee277,_0x1fa1b3;let _0x515cff=this[_0x349112(0xfc)][_0x349112(0x128)](_0x315244);if(!_0x515cff||it(_0x515cff['presentation'],_0x7ac606))return;let _0x4cba78=_0x515cff[_0x349112(0x88)],_0x319261=V(_0x515cff);_0x515cff['presentation']=_0x7ac606,this[_0x349112(0x12f)][_0x349112(0x155)]({'unitId':_0x515cff[_0x349112(0x6e)],'rangeId':_0x515cff[_0x349112(0xf2)],'presentation':_0x7ac606,'previousPresentation':_0x4cba78,'result':V(_0x515cff),'previousResult':{..._0x319261,..._0x4cba78,'value':(_0x5b32e8=_0x4cba78[_0x349112(0x134)])==null?void 0x0:_0x5b32e8['v'],'valueType':(_0x5ee277=(_0x1fa1b3=_0x4cba78[_0x349112(0x134)])==null?void 0x0:_0x1fa1b3['t'])==null?void 0x0:_0x5ee277}});}[_0x28dbb5(0xe0)](_0x3f968f){const _0x57445c=_0x28dbb5;_0x3f968f[_0x57445c(0x123)]&&(this[_0x57445c(0x156)][_0x57445c(0x120)](_0x3f968f[_0x57445c(0x6e)],_0x3f968f[_0x57445c(0x6e)],[_0x3f968f[_0x57445c(0x123)]]),this[_0x57445c(0x8d)][_0x57445c(0xc5)](_0x3f968f[_0x57445c(0x123)]));}};R=L([I(0x0,_0x7a2843(F)),I(0x1,_0x7a2843(_0x556533)),I(0x2,_0x7a2843(_0x37fda7))],R);function z(_0x2389e,_0x2cff09){return _0x2389e+'\x00'+_0x2cff09;}function B(_0x3cb7e9,_0x15f5fa){const _0x3e8181=_0x28dbb5;return _0x54778f({'numberFormat':_0x3cb7e9[_0x3e8181(0xc3)],'lastValue':_0x3cb7e9[_0x3e8181(0x6d)],'result':_0x15f5fa});}function V(_0xcbac4){const _0x383d62=_0x28dbb5;var _0xb4ed7e,_0x1c3be5,_0x53dc01,_0x542208;let _0x6ecce7=_0xcbac4[_0x383d62(0x88)],_0x751ecd=_0xcbac4[_0x383d62(0xa1)]['formula'][_0x383d62(0xdd)]()?_0x6ecce7[_0x383d62(0xf8)]||_0x6ecce7['cell']==null?_0x383d62(0xa2):((_0xb4ed7e=_0xcbac4['liveResult'])==null?void 0x0:_0xb4ed7e[_0x383d62(0x75)])===_0x1ba9e6[_0x383d62(0x14f)]?_0x383d62(0x6c):_0x383d62(0x93):'empty';return{..._0x6ecce7,'status':_0x751ecd,'value':(_0x1c3be5=_0x6ecce7[_0x383d62(0x134)])==null?void 0x0:_0x1c3be5['v'],'valueType':(_0x53dc01=(_0x542208=_0x6ecce7[_0x383d62(0x134)])==null?void 0x0:_0x542208['t'])==null?void 0x0:_0x53dc01};}function it(_0x16ca9e,_0x3dbc14){const _0x1cd4e8=_0x28dbb5;var _0x4c204a,_0x5ae0d5,_0xb46361,_0x193090;return _0x16ca9e[_0x1cd4e8(0x83)]===_0x3dbc14[_0x1cd4e8(0x83)]&&_0x16ca9e[_0x1cd4e8(0xb9)]===_0x3dbc14[_0x1cd4e8(0xb9)]&&_0x16ca9e['pattern']===_0x3dbc14['pattern']&&_0x16ca9e[_0x1cd4e8(0x153)]===_0x3dbc14[_0x1cd4e8(0x153)]&&_0x16ca9e['stale']===_0x3dbc14[_0x1cd4e8(0xf8)]&&((_0x4c204a=_0x16ca9e['cell'])==null?void 0x0:_0x4c204a['t'])===((_0x5ae0d5=_0x3dbc14[_0x1cd4e8(0x134)])==null?void 0x0:_0x5ae0d5['t'])&&Object['is']((_0xb46361=_0x16ca9e[_0x1cd4e8(0x134)])==null?void 0x0:_0xb46361['v'],(_0x193090=_0x3dbc14[_0x1cd4e8(0x134)])==null?void 0x0:_0x193090['v']);}const at={'id':_0x28dbb5(0x97),'type':_0x710f63[_0x28dbb5(0x8c)],'handler':(_0x5b1a5a,_0x193cfc)=>!(_0x193cfc!=null&&_0x193cfc['unitId'])||!_0x193cfc['rangeId']||!_0x193cfc['config']?!0x1:_0x5b1a5a[_0x28dbb5(0x128)](F)[_0x28dbb5(0x84)](_0x193cfc[_0x28dbb5(0x6e)],_0x193cfc[_0x28dbb5(0xf2)],_0x193cfc[_0x28dbb5(0xa1)])},ot={'id':_0x28dbb5(0xa5),'type':_0x710f63[_0x28dbb5(0x8c)],'handler':(_0x972765,_0x1979a1)=>!(_0x1979a1!=null&&_0x1979a1[_0x28dbb5(0x6e)])||!_0x1979a1['rangeId']?!0x1:_0x972765[_0x28dbb5(0x128)](F)[_0x28dbb5(0x86)](_0x1979a1['unitId'],_0x1979a1[_0x28dbb5(0xf2)])},H={'id':_0x28dbb5(0x151),'type':_0x710f63['MUTATION'],'handler':(_0x55039c,_0x935d8c)=>!(_0x935d8c!=null&&_0x935d8c[_0x28dbb5(0x6e)])||!_0x935d8c[_0x28dbb5(0xe8)]?!0x1:_0x55039c['get'](F)['setResource'](_0x935d8c[_0x28dbb5(0x6e)],_0x935d8c[_0x28dbb5(0xe8)])},U={'id':'docs-formula.mutation.set-last-values','type':_0x710f63[_0x28dbb5(0x8c)],'handler':(_0x35ca3d,_0x5bb7cb)=>{const _0x277dd3=_0x28dbb5;if(!(_0x5bb7cb!=null&&_0x5bb7cb[_0x277dd3(0x6e)])||!_0x5bb7cb[_0x277dd3(0x7f)][_0x277dd3(0xa6)])return!0x1;let _0x589645=_0x35ca3d[_0x277dd3(0x128)](F),_0x104d8b=_0x35ca3d[_0x277dd3(0x128)](_0x37fda7),_0x23f7b6=_0x589645[_0x277dd3(0x106)](_0x5bb7cb['unitId']);if(!_0x23f7b6)return!0x1;let _0x28a5bd=_0x101aa2[_0x277dd3(0x11c)](_0x23f7b6),_0x4a4005=!0x1;for(let _0x17db63 of _0x5bb7cb[_0x277dd3(0x7f)]){var _0x3667f6,_0x15990e,_0x292409,_0x3bbe66;let _0x47115c=_0x28a5bd[_0x277dd3(0x12b)][_0x17db63[_0x277dd3(0xf2)]];!_0x47115c||_0x47115c['formula']!==_0x17db63['expectedFormula']||((_0x3667f6=_0x47115c[_0x277dd3(0xc3)])==null?void 0x0:_0x3667f6[_0x277dd3(0x107)])!==_0x17db63['expectedNumberFormat']||_0x104d8b[_0x277dd3(0xc0)](_0x5bb7cb[_0x277dd3(0x6e)])!==_0x17db63['expectedReferenceRevision']||(((_0x15990e=_0x47115c[_0x277dd3(0x6d)])==null?void 0x0:_0x15990e['v'])!==_0x17db63[_0x277dd3(0x6d)]['v']||((_0x292409=_0x47115c['lastValue'])==null?void 0x0:_0x292409['t'])!==_0x17db63[_0x277dd3(0x6d)]['t']||((_0x3bbe66=_0x47115c[_0x277dd3(0x6d)])==null?void 0x0:_0x3bbe66[_0x277dd3(0x107)])!==_0x17db63[_0x277dd3(0x6d)][_0x277dd3(0x107)])&&(_0x47115c['lastValue']=_0x101aa2[_0x277dd3(0x11c)](_0x17db63[_0x277dd3(0x6d)]),_0x4a4005=!0x0);}return!_0x4a4005||_0x589645['setResource'](_0x5bb7cb[_0x277dd3(0x6e)],_0x28a5bd);}},W={'id':_0x28dbb5(0x85),'type':_0x710f63[_0x28dbb5(0x9f)],'handler':(_0x58ac2e,_0x2547a8)=>{const _0x4f149e=_0x28dbb5;var _0x58da8f;if(!(_0x2547a8!=null&&_0x2547a8[_0x4f149e(0x78)][_0x4f149e(0xdd)]()))return!0x1;let _0xc4a0e3=K(_0x58ac2e,_0x2547a8[_0x4f149e(0x6e)],'');if(!_0xc4a0e3)return!0x1;let _0x1db0ba=pt(_0x2547a8['target'],_0xc4a0e3[_0x4f149e(0x9b)],ft(_0x58ac2e,_0xc4a0e3[_0x4f149e(0x6e)]));if(!_0x1db0ba)return!0x1;let _0x11edc7=mt(_0x58ac2e,_0xc4a0e3[_0x4f149e(0x6e)],_0x2547a8[_0x4f149e(0x78)],(_0x58da8f=_0x2547a8['externalReferences'])==null?[]:_0x58da8f);if(!_0x11edc7)return!0x1;let _0x2adc8a=ht(_0xc4a0e3[_0x4f149e(0x9b)],_0xc4a0e3[_0x4f149e(0x117)],_0xc4a0e3[_0x4f149e(0x6e)]),_0x1223d1=gt({'documentData':_0xc4a0e3['documentData'],'resource':_0xc4a0e3[_0x4f149e(0xe8)],'rangeId':_0x2adc8a,'config':{'formula':_0x2547a8['formula'],..._0x2547a8[_0x4f149e(0xc3)]?{'numberFormat':_0x2547a8[_0x4f149e(0xc3)]}:null},'startOffset':_0x1db0ba[_0x4f149e(0xe1)],'endOffset':_0x1db0ba[_0x4f149e(0xeb)]});if(!_0x1223d1)return!0x1;let _0x599ebe=_0x446e86(_0x58ac2e,_0xc4a0e3[_0x4f149e(0x6e)],_0x11edc7);return!_0x599ebe||!q({'accessor':_0x58ac2e,'document':_0xc4a0e3['document'],'unitId':_0xc4a0e3[_0x4f149e(0x6e)],'trigger':W['id'],'rangeId':_0x2adc8a,'previousResource':_0xc4a0e3[_0x4f149e(0xe8)],'nextResource':_0x1223d1[_0x4f149e(0xac)],'previousDocumentData':_0xc4a0e3['documentData'],'nextDocumentData':_0x1223d1[_0x4f149e(0x8e)],'cursorOffset':_0x1223d1[_0x4f149e(0x99)],'externalMutations':_0x599ebe})?!0x1:{'rangeId':_0x2adc8a,'startOffset':_0x1223d1['cursorOffset']-0x1,'endOffset':_0x1223d1['cursorOffset']};}},G={'id':_0x28dbb5(0x10a),'type':_0x710f63[_0x28dbb5(0x9f)],'handler':(_0x91bd58,_0x1a92a8)=>{const _0x2e290c=_0x28dbb5;var _0x4e13f8;if(!(_0x1a92a8!=null&&_0x1a92a8[_0x2e290c(0xf2)])||!_0x1a92a8[_0x2e290c(0x78)][_0x2e290c(0xdd)]())return!0x1;let _0x41b445=K(_0x91bd58,_0x1a92a8[_0x2e290c(0x6e)],''),_0x5d08e8=_0x41b445==null?void 0x0:_0x41b445[_0x2e290c(0x117)][_0x2e290c(0x9c)](_0x41b445[_0x2e290c(0x6e)],_0x1a92a8[_0x2e290c(0xf2)]),_0x5e9f1a=_0x41b445?E(_0x41b445['documentData'][_0x2e290c(0x9b)],_0x1a92a8[_0x2e290c(0xf2)]):void 0x0;if(!_0x41b445||!_0x5d08e8||!_0x5e9f1a)return!0x1;let _0x556dc4=mt(_0x91bd58,_0x41b445[_0x2e290c(0x6e)],_0x1a92a8[_0x2e290c(0x78)],(_0x4e13f8=_0x1a92a8['externalReferences'])==null?[]:_0x4e13f8);if(!_0x556dc4)return!0x1;let _0x2ccb71=_0x446e86(_0x91bd58,_0x41b445[_0x2e290c(0x6e)],_0x556dc4);if(!_0x2ccb71)return!0x1;let _0x3a9c12=Ct(_0x41b445[_0x2e290c(0xe8)]);return _0x3a9c12['formulas'][_0x1a92a8[_0x2e290c(0xf2)]]={'formula':_0x1a92a8[_0x2e290c(0x78)],..._0x1a92a8['numberFormat']?{'numberFormat':_0x1a92a8['numberFormat']}:_0x5d08e8[_0x2e290c(0xc3)]?{'numberFormat':_0x5d08e8[_0x2e290c(0xc3)]}:null},q({'accessor':_0x91bd58,'document':_0x41b445[_0x2e290c(0x13b)],'unitId':_0x41b445['unitId'],'trigger':G['id'],'rangeId':_0x1a92a8[_0x2e290c(0xf2)],'previousResource':_0x41b445[_0x2e290c(0xe8)],'nextResource':_0x3a9c12,'cursorOffset':_0x5e9f1a['endIndex']+0x1,'externalMutations':_0x2ccb71});}},st={'id':'docs-formula.command.set-number-format','type':_0x710f63[_0x28dbb5(0x9f)],'handler':(_0x1e8d6b,_0x1438cc)=>{const _0x43d559=_0x28dbb5;if(!(_0x1438cc!=null&&_0x1438cc['rangeId']))return!0x1;let _0x21f456=K(_0x1e8d6b,_0x1438cc[_0x43d559(0x6e)],''),_0x3d5f23=_0x21f456==null?void 0x0:_0x21f456['model']['getFormula'](_0x21f456['unitId'],_0x1438cc[_0x43d559(0xf2)]),_0x557db9=_0x21f456?E(_0x21f456[_0x43d559(0x104)][_0x43d559(0x9b)],_0x1438cc[_0x43d559(0xf2)]):void 0x0;if(!_0x21f456||!_0x3d5f23||!_0x557db9)return!0x1;let _0x4269f6=Ct(_0x21f456[_0x43d559(0xe8)]);return _0x4269f6[_0x43d559(0x12b)][_0x1438cc['rangeId']]={..._0x3d5f23,..._0x1438cc['numberFormat']?{'numberFormat':_0x1438cc[_0x43d559(0xc3)]}:null},_0x1438cc[_0x43d559(0xc3)]||delete _0x4269f6[_0x43d559(0x12b)][_0x1438cc[_0x43d559(0xf2)]][_0x43d559(0xc3)],q({'accessor':_0x1e8d6b,'document':_0x21f456[_0x43d559(0x13b)],'unitId':_0x21f456[_0x43d559(0x6e)],'trigger':st['id'],'rangeId':_0x1438cc[_0x43d559(0xf2)],'previousResource':_0x21f456[_0x43d559(0xe8)],'nextResource':_0x4269f6,'cursorOffset':_0x557db9[_0x43d559(0x96)]+0x1,'externalMutations':{}});}},ct={'id':'docs-formula.command.remove','type':_0x710f63[_0x28dbb5(0x9f)],'handler':(_0x46a62,_0x48656c)=>dt(_0x46a62,_0x48656c,'',ct['id'])},lt={'id':_0x28dbb5(0xfe),'type':_0x710f63['COMMAND'],'handler':(_0x3e5118,_0x6fd857)=>{const _0xdb2439=_0x28dbb5;var _0x17c6c5;return dt(_0x3e5118,_0x6fd857,(_0x17c6c5=_0x6fd857==null?void 0x0:_0x6fd857[_0xdb2439(0x83)])==null?'':_0x17c6c5,lt['id']);}},ut={'id':_0x28dbb5(0x89),'type':_0x710f63[_0x28dbb5(0x9f)],'handler':(_0x111e89,_0x21e5b0)=>{const _0x590d61=_0x28dbb5;if(!(_0x21e5b0!=null&&_0x21e5b0['rangeId']))return!0x1;let _0x1ee5b0=K(_0x111e89,_0x21e5b0[_0x590d61(0x6e)],'');if(!_0x1ee5b0)return!0x1;let _0x395007=_0x111e89[_0x590d61(0x128)](R)[_0x590d61(0x119)]({'unitId':_0x1ee5b0['unitId'],'rangeId':_0x21e5b0[_0x590d61(0xf2)]});return _0x395007?dt(_0x111e89,_0x21e5b0,_0x395007[_0x590d61(0x83)],ut['id']):!0x1;}};function dt(_0x449585,_0x53cf0c,_0x5d352c,_0xd12f0e){const _0x294f97=_0x28dbb5;if(!(_0x53cf0c!=null&&_0x53cf0c[_0x294f97(0xf2)]))return!0x1;let _0x832ed7=K(_0x449585,_0x53cf0c[_0x294f97(0x6e)],'');if(!_0x832ed7)return!0x1;let _0x138191=ze({'documentData':_0x832ed7[_0x294f97(0x104)],'resource':_0x832ed7[_0x294f97(0xe8)],'rangeId':_0x53cf0c[_0x294f97(0xf2)],'text':_0x5d352c});return _0x138191?q({'accessor':_0x449585,'document':_0x832ed7[_0x294f97(0x13b)],'unitId':_0x832ed7[_0x294f97(0x6e)],'trigger':_0xd12f0e,'rangeId':_0x53cf0c[_0x294f97(0xf2)],'previousResource':_0x832ed7[_0x294f97(0xe8)],'nextResource':_0x138191[_0x294f97(0xac)],'previousDocumentData':_0x832ed7[_0x294f97(0x104)],'nextDocumentData':_0x138191[_0x294f97(0x8e)],'cursorOffset':_0x138191['cursorOffset'],'externalMutations':{}}):!0x1;}function K(_0x3bd5b6,_0x422af8,_0x1e510a){const _0x55c178=_0x28dbb5;var _0x3f0f00,_0x3e3306;if(_0x1e510a)return null;let _0x527c31=_0x3bd5b6[_0x55c178(0x128)](_0x3518ae),_0x25b87c=(_0x3f0f00=_0x422af8?_0x527c31[_0x55c178(0xc8)](_0x422af8,_0x1df217[_0x55c178(0xa8)]):_0x527c31[_0x55c178(0xbf)](_0x1df217[_0x55c178(0xa8)]))==null?null:_0x3f0f00;if(!_0x25b87c)return null;let _0x4878ef=_0x25b87c[_0x55c178(0x135)](),_0x5a3257=_0x4878ef[_0x55c178(0x9b)];if(_0x4878ef[_0x55c178(0x11a)]||!_0x5a3257)return null;let _0x317d81=_0x3bd5b6[_0x55c178(0x128)](F);return _0x317d81[_0x55c178(0xcf)](_0x25b87c[_0x55c178(0x122)]())?null:{'document':_0x25b87c,'body':_0x5a3257,'documentData':_0x4878ef,'model':_0x317d81,'resource':(_0x3e3306=_0x317d81[_0x55c178(0x106)](_0x25b87c[_0x55c178(0x122)]()))==null?x():_0x3e3306,'unitId':_0x25b87c[_0x55c178(0x122)]()};}function ft(_0x2363eb,_0xa0eedd){const _0x21daba=_0x28dbb5;var _0x3a6b3d;return(_0x3a6b3d=_0x2363eb[_0x21daba(0x128)](_0x36ff57)[_0x21daba(0x12c)]({'subUnitId':_0xa0eedd,'unitId':_0xa0eedd}))==null?void 0x0:_0x3a6b3d[0x0];}function pt(_0x4b1490,_0x2f48b6,_0x2f7865){const _0x1abf0b=_0x28dbb5;if((_0x4b1490==null?void 0x0:_0x4b1490[_0x1abf0b(0xf7)])===_0x1abf0b(0xbc)){var _0x44c0c1,_0x3bcd0d;let _0x359278=(_0x44c0c1=(_0x3bcd0d=_0x2f48b6['paragraphs'])==null?void 0x0:_0x3bcd0d[_0x1abf0b(0x9e)](_0x4d1f9f=>_0x4d1f9f[_0x1abf0b(0xdc)]===_0x4b1490[_0x1abf0b(0xdc)]))==null?[]:_0x44c0c1;if(_0x359278[_0x1abf0b(0xa6)]!==0x1)return null;let _0x57c3b2=_0x359278[0x0],_0x4097c7=_0x2b3efa(_0x2f48b6,_0x57c3b2),_0xfd2775=_0x57c3b2['startIndex']-_0x4097c7,_0x1a9de7=_0x4b1490['position']==='end'?_0xfd2775:_0x4b1490['position'];if(!Number[_0x1abf0b(0xe4)](_0x1a9de7)||_0x1a9de7<0x0||_0x1a9de7>_0xfd2775)return null;let _0x2d7845=_0x4097c7+_0x1a9de7;return{'startOffset':_0x2d7845,'endOffset':_0x2d7845};}if((_0x4b1490==null?void 0x0:_0x4b1490[_0x1abf0b(0xf7)])==='range')return!Number[_0x1abf0b(0xe4)](_0x4b1490[_0x1abf0b(0xe1)])||!Number[_0x1abf0b(0xe4)](_0x4b1490[_0x1abf0b(0xeb)])?null:{'startOffset':Math[_0x1abf0b(0x113)](_0x4b1490[_0x1abf0b(0xe1)],_0x4b1490['endOffset']),'endOffset':Math[_0x1abf0b(0x109)](_0x4b1490[_0x1abf0b(0xe1)],_0x4b1490['endOffset'])};let _0x4ff5dd=(_0x4b1490==null?void 0x0:_0x4b1490[_0x1abf0b(0xf7)])===_0x1abf0b(0xff)?_0x4b1490['selection']:_0x2f7865;return!_0x4ff5dd||_0x4ff5dd['segmentId']?null:{'startOffset':Math[_0x1abf0b(0x113)](_0x4ff5dd[_0x1abf0b(0xe1)],_0x4ff5dd[_0x1abf0b(0xeb)]),'endOffset':Math[_0x1abf0b(0x109)](_0x4ff5dd[_0x1abf0b(0xe1)],_0x4ff5dd[_0x1abf0b(0xeb)])};}function mt(_0x4167fb,_0x4151ee,_0x7647fd,_0x48bdb4){const _0x106e36=_0x28dbb5;let _0x1f4a9f=_0x4167fb[_0x106e36(0x128)](_0x54a77b),_0x2f1f8f=_0x7647fd[_0x106e36(0x138)]('=')?_0x7647fd[_0x106e36(0x11f)](0x1):_0x7647fd,_0x560952=_0x1f4a9f[_0x106e36(0x76)](_0x2f1f8f);if(!_0x560952)return null;let _0x3cf62c=_0x4167fb[_0x106e36(0x128)](_0x37fda7),_0x37d063=_0x565637({'qualifiers':_0x117c87(_0x560952),'explicitReferences':_0x48bdb4==null?[]:_0x48bdb4,'resolveBinding':_0x1464a8=>_0x3cf62c['resolveBinding'](_0x4151ee,_0x1464a8)});return _0x37d063[_0x106e36(0x75)]===_0x106e36(0xb4)?_0x37d063[_0x106e36(0x15d)]:null;}function ht(_0x3d1bbe,_0x340806,_0x42a867){const _0x120582=_0x28dbb5;var _0x1311b9;let _0x581e1e=_0x15fb30(0x6);for(;_0x3d1bbe!=null&&(_0x1311b9=_0x3d1bbe[_0x120582(0x79)])!=null&&_0x1311b9['some'](_0x1a41a4=>_0x1a41a4[_0x120582(0xf2)]===_0x581e1e)||_0x340806[_0x120582(0x9c)](_0x42a867,_0x581e1e);)_0x581e1e=_0x15fb30(0x6);return _0x581e1e;}function _0x3d51(_0x58040c,_0x79efcb){_0x58040c=_0x58040c-0x69;const _0x2b80b9=_0x2b80();let _0x3d5155=_0x2b80b9[_0x58040c];return _0x3d5155;}function gt(_0x53e5a7){try{return Le(_0x53e5a7);}catch(_0x577dad){if(_0x577dad instanceof w)return null;throw _0x577dad;}}function _t(_0x29f288){const _0x138b02=_0x28dbb5;let _0x25871e=_0x29f288[_0x138b02(0xc7)]&&_0x29f288[_0x138b02(0x8e)]?yt(_0x29f288[_0x138b02(0x13b)],_0x29f288[_0x138b02(0x6e)],_0x29f288[_0x138b02(0xc7)],_0x29f288['nextDocumentData'],_0x29f288['cursorOffset'],_0x29f288['trigger']):null;return _0x29f288['previousDocumentData']&&_0x29f288[_0x138b02(0x8e)]&&!_0x25871e?null:{'documentRedo':_0x25871e,'resourceRedo':{'id':H['id'],'params':{'unitId':_0x29f288[_0x138b02(0x6e)],'resource':_0x29f288[_0x138b02(0xac)]}},'resourceUndo':{'id':H['id'],'params':{'unitId':_0x29f288[_0x138b02(0x6e)],'resource':_0x29f288['previousResource']}}};}function vt(_0xb6e4cd,_0x1b3647,_0x4ebc26,_0x3a1049){const _0x3625e3=_0x28dbb5;_0x3a1049['pushUndoRedo']({'id':_0xb6e4cd[_0x3625e3(0x148)]+':'+_0xb6e4cd[_0x3625e3(0xf2)],'unitID':_0xb6e4cd['unitId'],'redoMutations':[..._0xb6e4cd[_0x3625e3(0xb7)][_0x3625e3(0xe2)]?[_0xb6e4cd[_0x3625e3(0xb7)][_0x3625e3(0xe2)]]:[],..._0x1b3647['documentRedo']?[_0x1b3647[_0x3625e3(0x103)]]:[],_0x1b3647[_0x3625e3(0xc6)]],'undoMutations':[_0x1b3647[_0x3625e3(0xaf)],..._0x4ebc26?[_0x4ebc26]:[],..._0xb6e4cd[_0x3625e3(0xb7)][_0x3625e3(0xbb)]?[_0xb6e4cd[_0x3625e3(0xb7)][_0x3625e3(0xbb)]]:[]]});}function q(_0x2db66b){const _0x28c30a=_0x28dbb5;let _0x3b1520=_0x2db66b[_0x28c30a(0xe7)][_0x28c30a(0x128)](_0x4f28e9),_0xd9c980=_0x2db66b[_0x28c30a(0xe7)][_0x28c30a(0x128)](_0x49e442),_0x1ee68c=_0x2db66b['accessor']['get'](_0x36ff57),_0xe22cf5=_t(_0x2db66b);if(!_0xe22cf5)return!0x1;let _0x4b68be=!0x1,_0xb9e755=null,_0x49b147=!0x1;try{if(_0x2db66b[_0x28c30a(0xb7)]['redoMutation']){if(!_0x3b1520['syncExecuteCommand'](_0x2db66b[_0x28c30a(0xb7)][_0x28c30a(0xe2)]['id'],_0x2db66b[_0x28c30a(0xb7)][_0x28c30a(0xe2)][_0x28c30a(0x12a)]))return!0x1;_0x4b68be=!0x0;}if(_0xe22cf5['documentRedo']){let _0x58e55c=_0x3b1520[_0x28c30a(0x13d)](_0xe22cf5[_0x28c30a(0x103)]['id'],_0xe22cf5[_0x28c30a(0x103)][_0x28c30a(0x12a)]);if(!_0x58e55c)return J(_0x3b1520,_0x2db66b[_0x28c30a(0xb7)],_0x4b68be),!0x1;_0xb9e755={'id':_0x498afa['id'],'params':{..._0x58e55c,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3b1520['syncExecuteCommand'](_0xe22cf5[_0x28c30a(0xc6)]['id'],_0xe22cf5[_0x28c30a(0xc6)]['params']))return bt(_0x3b1520,_0xb9e755),J(_0x3b1520,_0x2db66b[_0x28c30a(0xb7)],_0x4b68be),!0x1;_0x49b147=!0x0,vt(_0x2db66b,_0xe22cf5,_0xb9e755,_0xd9c980);}catch(_0x1d1058){throw _0x49b147&&_0x3b1520['syncExecuteCommand'](_0xe22cf5[_0x28c30a(0xaf)]['id'],_0xe22cf5[_0x28c30a(0xaf)][_0x28c30a(0x12a)]),bt(_0x3b1520,_0xb9e755),J(_0x3b1520,_0x2db66b[_0x28c30a(0xb7)],_0x4b68be),_0x1d1058;}return _0x1ee68c[_0x28c30a(0x10f)]([{'startOffset':_0x2db66b[_0x28c30a(0x99)],'endOffset':_0x2db66b[_0x28c30a(0x99)],'segmentId':''}],{'unitId':_0x2db66b[_0x28c30a(0x6e)],'subUnitId':_0x2db66b['unitId']},!0x1,{[_0x26e9b9]:!0x0}),!0x0;}function yt(_0x50eafb,_0x28d52f,_0x39a9f1,_0x376b60,_0x223029,_0x3fd65a){let _0x4f1305=xt(_0x39a9f1,_0x376b60,_0x44a967(_0x50eafb,''));return _0x4f1305?{'id':_0x498afa['id'],'params':{'unitId':_0x28d52f,'actions':_0x4f1305,'segmentId':'','textRanges':[{'startOffset':_0x223029,'endOffset':_0x223029,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x3fd65a}}:null;}function bt(_0x461f92,_0x4e200e){const _0x1c4963=_0x28dbb5;_0x4e200e&&_0x461f92['syncExecuteCommand'](_0x4e200e['id'],_0x4e200e[_0x1c4963(0x12a)]);}function J(_0x1d8bf3,_0x46b4b4,_0x24296f){const _0x39edff=_0x28dbb5;_0x24296f&&_0x46b4b4[_0x39edff(0xbb)]&&_0x1d8bf3[_0x39edff(0x13d)](_0x46b4b4[_0x39edff(0xbb)]['id'],_0x46b4b4[_0x39edff(0xbb)]['params']);}function xt(_0x1be3b0,_0xccc9c0,_0x739911){const _0x3d935c=_0x28dbb5;let _0x30bd81=_0x1be3b0['body'],_0x29494e=_0xccc9c0[_0x3d935c(0x9b)],_0x35d9cd=St(_0x30bd81==null?void 0x0:_0x30bd81[_0x3d935c(0xd7)],_0x29494e==null?void 0x0:_0x29494e[_0x3d935c(0xd7)]);if(!_0x35d9cd||!_0x29494e)return null;let _0x1344f7=new _0x58e801();return _0x1344f7[_0x3d935c(0xb0)](_0x35d9cd[_0x3d935c(0x111)]),_0x35d9cd['insertLength']>0x0&&_0x1344f7[_0x3d935c(0xa0)](_0x35d9cd['insertLength'],_0x3b7f2e(_0x29494e,_0x35d9cd['start'],_0x35d9cd['start']+_0x35d9cd[_0x3d935c(0x73)],!0x1)),_0x35d9cd['deleteLength']>0x0&&_0x1344f7[_0x3d935c(0xc5)](_0x35d9cd[_0x3d935c(0x108)]),_0x32e4cd[_0x3d935c(0xf5)]()[_0x3d935c(0x8f)](_0x1344f7[_0x3d935c(0x159)](),_0x739911);}function St(_0x3b9cca,_0x55a821){const _0x143bc5=_0x28dbb5;if(_0x3b9cca==null||_0x55a821==null||_0x3b9cca===_0x55a821)return null;let _0xbd4908=0x0;for(;_0xbd4908<_0x3b9cca['length']&&_0xbd4908<_0x55a821[_0x143bc5(0xa6)]&&_0x3b9cca[_0xbd4908]===_0x55a821[_0xbd4908];)_0xbd4908+=0x1;let _0x45cf63=_0x3b9cca[_0x143bc5(0xa6)],_0x444fff=_0x55a821[_0x143bc5(0xa6)];for(;_0x45cf63>_0xbd4908&&_0x444fff>_0xbd4908&&_0x3b9cca[_0x45cf63-0x1]===_0x55a821[_0x444fff-0x1];)--_0x45cf63,--_0x444fff;return{'start':_0xbd4908,'deleteLength':_0x45cf63-_0xbd4908,'insertLength':_0x444fff-_0xbd4908};}function Ct(_0x224b1a){const _0x28b14b=_0x28dbb5;return{'schemaVersion':0x1,'formulas':Object[_0x28b14b(0xc1)](Object[_0x28b14b(0x147)](_0x224b1a[_0x28b14b(0x12b)])[_0x28b14b(0x10d)](([_0x2e4382,_0x48e9b3])=>[_0x2e4382,{..._0x48e9b3,..._0x48e9b3[_0x28b14b(0xc3)]?{'numberFormat':{..._0x48e9b3[_0x28b14b(0xc3)]}}:null,..._0x48e9b3[_0x28b14b(0x6d)]?{'lastValue':{..._0x48e9b3[_0x28b14b(0x6d)]}}:null}]))};}let Y=class extends _0x27b4e8{constructor(_0xad0257,_0xe1148d,_0x104268,_0xb9a5e){const _0x3274e8=_0x28dbb5;super(),this[_0x3274e8(0x95)]=_0xad0257,this['_commandService']=_0xe1148d,this[_0x3274e8(0x72)]=_0x104268,this[_0x3274e8(0xb3)]=_0xb9a5e,P(this,'_pendingUnitIds',new Set()),P(this,_0x3274e8(0x11b),!0x1),P(this,_0x3274e8(0x116),!0x1),this[_0x3274e8(0x95)]['getAllUnitsForType'](_0x1df217['UNIVER_DOC'])[_0x3274e8(0x124)](_0x50bf1e=>this[_0x3274e8(0xb3)][_0x3274e8(0x6f)](_0x50bf1e)),this[_0x3274e8(0xb1)](this[_0x3274e8(0x72)][_0x3274e8(0x14e)][_0x3274e8(0xfb)](({unitId:_0x18c06e})=>this[_0x3274e8(0x6b)](_0x18c06e))),this[_0x3274e8(0xb1)](this[_0x3274e8(0x95)][_0x3274e8(0x126)]['subscribe'](({unit:_0x1f6287})=>{const _0x2bc469=_0x3274e8;_0x1f6287['type']===_0x1df217['UNIVER_DOC']&&this[_0x2bc469(0x7a)](_0x1f6287[_0x2bc469(0x122)]());})),this[_0x3274e8(0xb1)](this['_instanceService'][_0x3274e8(0xd9)][_0x3274e8(0xfb)](_0x82fc4=>{const _0x5425cd=_0x3274e8;this[_0x5425cd(0xb3)][_0x5425cd(0x91)](_0x82fc4[_0x5425cd(0x122)]());})),this['disposeWithMe'](this[_0x3274e8(0xce)][_0x3274e8(0x139)](_0x246c88=>{const _0x57f103=_0x3274e8;if(_0x246c88['id']===_0x498afa['id']&&wt(_0x246c88[_0x57f103(0x12a)])){let _0x1acc9a=_0x246c88[_0x57f103(0x12a)];_0x1acc9a[_0x57f103(0xf4)]||this['_syncUnit'](_0x1acc9a[_0x57f103(0x6e)]);}}));}[_0x28dbb5(0xd2)](){const _0x1617fb=_0x28dbb5;this['_isDisposed']=!0x0,super[_0x1617fb(0xd2)]();}[_0x28dbb5(0x7a)](_0x5ef5ef){const _0x7af69c=_0x28dbb5;this[_0x7af69c(0x149)]['add'](_0x5ef5ef),!this[_0x7af69c(0x11b)]&&(this[_0x7af69c(0x11b)]=!0x0,queueMicrotask(()=>{const _0x280a70=_0x7af69c;if(this[_0x280a70(0x11b)]=!0x1,this['_isDisposed'])return;let _0x1ff7ff=Array[_0x280a70(0xd5)](this[_0x280a70(0x149)]);this[_0x280a70(0x149)][_0x280a70(0xc2)](),_0x1ff7ff[_0x280a70(0x124)](_0x3dd26e=>this['_syncUnit'](_0x3dd26e));}));}['_syncUnit'](_0x91995e){const _0x1f1ede=_0x28dbb5;let _0x55831f=this[_0x1f1ede(0x95)]['getUnit'](_0x91995e,_0x1df217['UNIVER_DOC']);_0x55831f&&this[_0x1f1ede(0xb3)]['syncUnit'](_0x55831f);}};Y=L([I(0x0,_0x3518ae),I(0x1,_0x4f28e9),I(0x2,_0x7a2843(F)),I(0x3,_0x7a2843(R))],Y);function wt(_0x49a28f){const _0x26ff2a=_0x28dbb5;return typeof _0x49a28f==_0x26ff2a(0x12d)&&!!_0x49a28f&&_0x26ff2a(0x6e)in _0x49a28f&&typeof _0x49a28f[_0x26ff2a(0x6e)]==_0x26ff2a(0x9a)&&(!(_0x26ff2a(0xf4)in _0x49a28f)||_0x49a28f[_0x26ff2a(0xf4)]===void 0x0||typeof _0x49a28f['segmentId']==_0x26ff2a(0x9a));}let X=class extends _0x27b4e8{constructor(_0x30e151,_0x36de1b){const _0x586b55=_0x28dbb5;super(),this['_resourceManagerService']=_0x30e151,this['_docFormulaModel']=_0x36de1b,this[_0x586b55(0xb1)](this[_0x586b55(0x6a)][_0x586b55(0x157)]({'pluginName':b,'businesses':[_0x1df217[_0x586b55(0xa8)]],'toJson':_0xe1caa1=>JSON[_0x586b55(0x8a)](this[_0x586b55(0xbe)]['serialize'](_0xe1caa1)),'parseJson':_0x2a3f5a=>JSON[_0x586b55(0x100)](_0x2a3f5a),'onLoad':(_0x541264,_0x584d61)=>{const _0x178583=_0x586b55;this[_0x178583(0xbe)][_0x178583(0xd6)](_0x541264,_0x584d61);},'onUnLoad':_0x1e6bab=>this[_0x586b55(0xbe)][_0x586b55(0x11d)](_0x1e6bab)}));}};X=L([I(0x0,_0x32728b),I(0x1,_0x7a2843(F))],X);var Tt=_0x28dbb5(0xcd),Et=_0x28dbb5(0xea);const Dt={};let Z=class extends _0x27b4e8{constructor(_0x15e5a5,_0x36b8d1,_0x2293f7){const _0x45d8b9=_0x28dbb5;super(),this[_0x45d8b9(0x142)]=_0x15e5a5,this[_0x45d8b9(0xca)]=_0x36b8d1,this[_0x45d8b9(0xb1)](_0x2293f7[_0x45d8b9(0x115)]({'resolve':(_0x2d1ee4,_0x188566)=>{const _0x3b8808=_0x45d8b9;var _0x4ab367,_0x64765f;return(_0x4ab367=(_0x64765f=_0x188566[_0x3b8808(0x79)])==null?void 0x0:_0x64765f[_0x3b8808(0x9e)](T)[_0x3b8808(0x10d)](_0x312c04=>({'startOffset':_0x312c04[_0x3b8808(0x80)],'endOffset':_0x312c04['endIndex']+0x1,'text':this[_0x3b8808(0x130)](_0x2d1ee4,_0x312c04[_0x3b8808(0xf2)])})))==null?[]:_0x4ab367;}})),this['disposeWithMe'](this[_0x45d8b9(0xca)]['presentationChanged$'][_0x45d8b9(0xfb)](({unitId:_0x68fa66})=>{const _0x2fd4d4=_0x45d8b9;_0x2293f7[_0x2fd4d4(0x140)](_0x68fa66);}));}[_0x28dbb5(0x130)](_0x393f93,_0x8fb742){const _0x475c9e=_0x28dbb5;var _0x17e79c,_0x10eb82;return(_0x17e79c=(_0x10eb82=this[_0x475c9e(0xca)][_0x475c9e(0x119)]({'unitId':_0x393f93,'rangeId':_0x8fb742}))==null?void 0x0:_0x10eb82[_0x475c9e(0x83)])==null?'':_0x17e79c;}['resolveText'](_0x43fbc4,_0xbc7895,_0x1e6057){const _0xa776e2=_0x28dbb5;var _0x15b7b3,_0x30799c;let _0x150d68=this[_0xa776e2(0x142)]['getUnit'](_0x43fbc4,_0x1df217[_0xa776e2(0xa8)]),_0x4ac432=_0x150d68==null?void 0x0:_0x150d68[_0xa776e2(0x129)]();if(!_0x4ac432)return'';let _0x34e716=_0x4ac432[_0xa776e2(0xd7)]['slice'](_0xbc7895,_0x1e6057),_0x1393dc=(_0x15b7b3=(_0x30799c=_0x4ac432[_0xa776e2(0x79)])==null?void 0x0:_0x30799c[_0xa776e2(0x9e)](_0x964591=>T(_0x964591)&&_0x964591['startIndex']>=_0xbc7895&&_0x964591['endIndex']<_0x1e6057)['sort']((_0x4e8737,_0x97d96b)=>_0x97d96b[_0xa776e2(0x80)]-_0x4e8737[_0xa776e2(0x80)]))==null?[]:_0x15b7b3;for(let _0x4d964a of _0x1393dc){let _0x4b5d66=_0x4d964a[_0xa776e2(0x80)]-_0xbc7895,_0x1cd6a9=_0x4d964a[_0xa776e2(0x96)]-_0xbc7895+0x1;_0x34e716=''+_0x34e716[_0xa776e2(0x11f)](0x0,_0x4b5d66)+this[_0xa776e2(0x130)](_0x43fbc4,_0x4d964a['rangeId'])+_0x34e716['slice'](_0x1cd6a9);}return _0x34e716;}[_0x28dbb5(0xd3)](_0x52496d){return Ot(_0x52496d);}['degradeBody'](_0x428a25,_0x2df07c,_0x536c3d={}){const _0xb2b342=_0x28dbb5;var _0x23ec2f,_0x59e07f,_0x2d5c77;return(_0x2d5c77=Be({'id':_0x428a25,'body':_0x2df07c,'documentStyle':{}},((_0x23ec2f=(_0x59e07f=_0x2df07c[_0xb2b342(0x79)])==null?void 0x0:_0x59e07f[_0xb2b342(0x9e)](T))==null?[]:_0x23ec2f)[_0xb2b342(0x10d)](_0x409dc3=>{const _0x418552=_0xb2b342;var _0x55cbfb;return{'rangeId':_0x409dc3[_0x418552(0xf2)],'text':(_0x55cbfb=_0x536c3d[_0x409dc3['rangeId']])==null?this[_0x418552(0x130)](_0x428a25,_0x409dc3[_0x418552(0xf2)]):_0x55cbfb};}))[_0xb2b342(0x9b)])==null?{'dataStream':''}:_0x2d5c77;}};Z=L([I(0x0,_0x3518ae),I(0x1,_0x7a2843(R)),I(0x2,_0x7a2843(_0x771ef2))],Z);function Ot(_0x5cdfbc){const _0x127318=_0x28dbb5;var _0x309c5a,_0xdd9e65,_0x4683d6;let _0x3eadb6=kt(_0x5cdfbc),_0x3e0456=Be(_0x5cdfbc,((_0x309c5a=(_0xdd9e65=_0x5cdfbc[_0x127318(0x9b)])==null||(_0xdd9e65=_0xdd9e65['customRanges'])==null?void 0x0:_0xdd9e65[_0x127318(0x9e)](T))==null?[]:_0x309c5a)['map'](_0x31618c=>({'rangeId':_0x31618c[_0x127318(0xf2)],'text':At(_0x3eadb6==null?void 0x0:_0x3eadb6['formulas'][_0x31618c[_0x127318(0xf2)]])})));return _0x3e0456[_0x127318(0x146)]=(_0x4683d6=_0x3e0456[_0x127318(0x146)])==null?void 0x0:_0x4683d6[_0x127318(0x9e)](_0x15ce61=>_0x15ce61['name']!==b),_0x3e0456;}function kt(_0x28b725){const _0xe321eb=_0x28dbb5;var _0x49ff2d;let _0x443b61=(_0x49ff2d=_0x28b725['resources'])==null||(_0x49ff2d=_0x49ff2d[_0xe321eb(0x125)](_0x879387=>_0x879387[_0xe321eb(0xb8)]===_0xe321eb(0xd1)))==null?void 0x0:_0x49ff2d[_0xe321eb(0x77)];if(_0x443b61)try{let _0x1c3b0f=JSON[_0xe321eb(0x100)](_0x443b61);return S(_0x1c3b0f)?_0x1c3b0f:void 0x0;}catch{return;}}function At(_0xd2ee67){const _0x22caa8=_0x28dbb5;return _0xd2ee67?_0x54778f({'lastValue':_0xd2ee67[_0x22caa8(0x6d)],'numberFormat':_0xd2ee67[_0x22caa8(0xc3)]})[_0x22caa8(0x83)]:'';}let Q=class extends _0x27b4e8{constructor(_0x49d555,_0x4423f4,_0x44a928){const _0x51f37b=_0x28dbb5;super(),this[_0x51f37b(0xca)]=_0x49d555,this['_cacheEligibilityService']=_0x4423f4,this[_0x51f37b(0xb1)](_0x44a928[_0x51f37b(0x137)](this));}[_0x28dbb5(0x7d)](_0x18eb81){const _0x3c26ba=_0x28dbb5;let _0x219d86=new Map();for(let _0x586eee of this[_0x3c26ba(0xca)][_0x3c26ba(0x69)]()){var _0x5a901d,_0x446f9e;if(!this[_0x3c26ba(0x114)][_0x3c26ba(0x14d)](_0x586eee[_0x3c26ba(0xa1)][_0x3c26ba(0x78)],_0x586eee[_0x3c26ba(0xc4)])[_0x3c26ba(0x71)])continue;let _0x201b27=_0x1dc467(_0x586eee[_0x3c26ba(0xc4)]),_0x239a4e=_0x201b27?_0x1e4e05(_0x201b27):null;if(!_0x239a4e||jt(_0x586eee[_0x3c26ba(0xa1)][_0x3c26ba(0x6d)],_0x239a4e))continue;let _0x55abec=(_0x5a901d=_0x219d86['get'](_0x586eee[_0x3c26ba(0x15a)][_0x3c26ba(0x6e)]))==null?[]:_0x5a901d;_0x55abec[_0x3c26ba(0xae)]({'rangeId':_0x586eee[_0x3c26ba(0x15a)][_0x3c26ba(0xf2)],'expectedFormula':_0x586eee[_0x3c26ba(0xa1)][_0x3c26ba(0x78)],'expectedNumberFormat':(_0x446f9e=_0x586eee['config']['numberFormat'])==null?void 0x0:_0x446f9e[_0x3c26ba(0x107)],'expectedReferenceRevision':_0x586eee['referenceRevision'],'lastValue':_0x239a4e}),_0x219d86[_0x3c26ba(0x131)](_0x586eee[_0x3c26ba(0x15a)][_0x3c26ba(0x6e)],_0x55abec);}return Array[_0x3c26ba(0xd5)](_0x219d86,([_0x284202,_0x1acbad])=>({'id':U['id'],'params':{'unitId':_0x284202,'updates':_0x1acbad}}));}};Q=L([I(0x0,_0x7a2843(R)),I(0x1,_0x7a2843(_0x5a5924)),I(0x2,_0x7a2843(_0x30c2d1))],Q);function jt(_0x58766d,_0xf3028e){const _0x539150=_0x28dbb5;return(_0x58766d==null?void 0x0:_0x58766d['v'])===_0xf3028e['v']&&(_0x58766d==null?void 0x0:_0x58766d['t'])===_0xf3028e['t']&&(_0x58766d==null?void 0x0:_0x58766d['pattern'])===_0xf3028e[_0x539150(0x107)];}let $=class extends _0x271a25{constructor(_0x1bc551=Dt,_0x3ba277,_0x3174c2,_0xee4206){const _0x183f18=_0x28dbb5;super(),this[_0x183f18(0x9d)]=_0x1bc551,this[_0x183f18(0xe6)]=_0x3ba277,this[_0x183f18(0xce)]=_0x3174c2,this[_0x183f18(0xb2)]=_0xee4206;let {..._0x3a88f3}=_0x32a306({},Dt,this[_0x183f18(0x9d)]);this[_0x183f18(0xb2)][_0x183f18(0xab)]('docs-formula.config',_0x3a88f3);}['onStarting'](){const _0xa9d893=_0x28dbb5;this[_0xa9d893(0xe6)][_0xa9d893(0x133)]([F]),this[_0xa9d893(0xe6)]['add']([R]),this['_injector'][_0xa9d893(0x133)]([X]),this['_injector'][_0xa9d893(0x133)]([Y]),this['_injector'][_0xa9d893(0x133)]([Q]),this[_0xa9d893(0xe6)]['add']([Z]),_0x3dcd1a(this[_0xa9d893(0xe6)],[[F],[X],[Y],[Q],[Z]]),[at,ot,H,U,W,G,st,ct,lt,ut][_0xa9d893(0x124)](_0x139117=>this[_0xa9d893(0xb1)](this[_0xa9d893(0xce)][_0xa9d893(0xda)](_0x139117)));}};P($,'pluginName',b),P($,_0x28dbb5(0x7c),Tt),P($,'version',Et),P($,_0x28dbb5(0xf7),_0x1df217[_0x28dbb5(0xa8)]),$=L([_0x4e81df(_0x2b9966,_0x5b65fd,_0x198a07),I(0x1,_0x7a2843(_0x38cb61)),I(0x2,_0x4f28e9),I(0x3,_0xb3cd1d)],$);export{ut as ConvertDocFormulaToTextCommand,je as DOC_FORMULA_CUSTOM_RANGE_KIND,Me as DOC_FORMULA_OBJECT_REPLACEMENT,b as DOC_FORMULA_PLUGIN,Ae as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,F as DocFormulaModel,X as DocFormulaResourceController,rt as DocFormulaResultStatus,R as DocFormulaService,W as InsertDocFormulaCommand,w as InvalidDocFormulaInsertRangeError,ct as RemoveDocFormulaCommand,ot as RemoveDocFormulaMutation,lt as ReplaceDocFormulaWithTextCommand,U as SetDocFormulaLastValuesMutation,at as SetDocFormulaMutation,st as SetDocFormulaNumberFormatCommand,H as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,G as UpdateDocFormulaCommand,Ve as assertSafeDocFormulaInsertRange,Le as buildInsertDocFormulaActions,ze as buildRemoveDocFormulaActions,Re as buildUpdateDocFormulaActions,x as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,E as findDocFormulaRange,Ne as isDocFormulaConfig,T as isDocFormulaRange,S as isDocFormulaResource,Pe as isFormulaLastValue};
1
+ const _0x11b942=_0x48a7;(function(_0x58f04b,_0x27c6a5){const _0x2aeaa1=_0x48a7,_0x525e06=_0x58f04b();while(!![]){try{const _0x3735f5=-parseInt(_0x2aeaa1(0x134))/0x1*(parseInt(_0x2aeaa1(0x138))/0x2)+-parseInt(_0x2aeaa1(0x165))/0x3*(parseInt(_0x2aeaa1(0xbe))/0x4)+parseInt(_0x2aeaa1(0x12c))/0x5*(-parseInt(_0x2aeaa1(0x113))/0x6)+-parseInt(_0x2aeaa1(0x10f))/0x7*(-parseInt(_0x2aeaa1(0x97))/0x8)+parseInt(_0x2aeaa1(0x169))/0x9*(-parseInt(_0x2aeaa1(0x17b))/0xa)+-parseInt(_0x2aeaa1(0x132))/0xb+parseInt(_0x2aeaa1(0x16d))/0xc;if(_0x3735f5===_0x27c6a5)break;else _0x525e06['push'](_0x525e06['shift']());}catch(_0x58c0e7){_0x525e06['push'](_0x525e06['shift']());}}}(_0x2755,0xe5e74));import{FormulaCacheEligibilityService as _0x477178,FormulaLastValuePersistenceService as _0x3f3931,HostExternalReferenceModel as _0x4e55da,UniverProFormulaEnginePlugin as _0x16665e,buildUpsertHostExternalReferenceMutations as _0x1d12c5,collectFormulaExternalReferenceQualifiers as _0x59b99e,getScalarFormulaResultCell as _0xc59680,resolveFormulaResultPresentation as _0x57ce95,resolveHostFormulaExternalReferences as _0x7dadcf,toFormulaLastValue as _0x34e83b}from'@univerjs-pro/engine-formula';import{CellValueType as _0x8a3f37,CommandType as _0x5965b8,CustomRangeType as _0x3e39c6,DataStreamTreeTokenType as _0x104972,DependentOn as _0x1cc9db,Disposable as _0x35945f,ICommandService as _0x33bec9,IConfigService as _0x3270a2,IResourceManagerService as _0x1e7c1d,IUndoRedoService as _0x21b9cd,IUniverInstanceService as _0x930636,Inject as _0x3d3024,Injector as _0x13e4a3,JSONX as _0x583736,Plugin as _0x459c8d,TextX as _0x3b5ea5,Tools as _0x29e987,UniverInstanceType as _0x45653d,generateRandomId as _0x2dbc3e,getBodySliceForTextXAction as _0x1be218,getCustomRangeInterval as _0x173fb8,getParagraphContentStartOffset as _0x54e7b7,getRichTextEditPath as _0x36d11e,merge as _0x4b4880,shiftExclusiveRangeOnDelete as _0x20fbe4,shiftExclusiveRangeOnInsert as _0x15d769,shiftInclusiveRangeOnDelete as _0x3d5ca1,shiftInclusiveRangeOnInsert as _0x44d86d,touchDependencies as _0x2fa40d}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0xa0c5b1,DocSelectionManagerService as _0x42f86e,DocTextResolverService as _0x56e8c8,RichTextEditingMutation as _0x480fe8,UniverDocsPlugin as _0x44a698}from'@univerjs/docs';import{FormulaResultStatus as _0x110262,LexerTreeBuilder as _0x3c43da,OtherFormulaBizType as _0x591f38,RegisterOtherFormulaService as _0xa717d0}from'@univerjs/engine-formula';import{Subject as _0x6a8876}from'rxjs';import{UniverLicensePlugin as _0x42a144}from'@univerjs-pro/license';const y=_0x11b942(0xd5),je=0x1,Me='univer-docs-formula',Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x70ddb3){const _0x55f6e1=_0x11b942;return!_0x70ddb3||typeof _0x70ddb3!=_0x55f6e1(0xee)||!S(_0x70ddb3,['schemaVersion',_0x55f6e1(0x12b)])||!(_0x55f6e1(0xb7)in _0x70ddb3)||_0x70ddb3[_0x55f6e1(0xb7)]!==0x1||!('formulas'in _0x70ddb3)||!_0x70ddb3[_0x55f6e1(0x12b)]||typeof _0x70ddb3[_0x55f6e1(0x12b)]!=_0x55f6e1(0xee)||Array[_0x55f6e1(0xf6)](_0x70ddb3[_0x55f6e1(0x12b)])?!0x1:Object[_0x55f6e1(0x81)](_0x70ddb3['formulas'])[_0x55f6e1(0x7f)](([_0xa8bdb6,_0x2ffaba])=>_0xa8bdb6['length']>0x0&&Pe(_0x2ffaba));}function Pe(_0x448e59){const _0x35b67e=_0x11b942;return!_0x448e59||typeof _0x448e59!=_0x35b67e(0xee)||!S(_0x448e59,[_0x35b67e(0x16f),_0x35b67e(0x13c),'lastValue'])||!(_0x35b67e(0x16f)in _0x448e59)||typeof _0x448e59[_0x35b67e(0x16f)]!='string'||!_0x448e59[_0x35b67e(0x16f)]['trim']()||_0x35b67e(0x13c)in _0x448e59&&_0x448e59['numberFormat']!=null&&(typeof _0x448e59[_0x35b67e(0x13c)]!=_0x35b67e(0xee)||!S(_0x448e59[_0x35b67e(0x13c)],[_0x35b67e(0xc1)])||!('pattern'in _0x448e59[_0x35b67e(0x13c)])||typeof _0x448e59['numberFormat'][_0x35b67e(0xc1)]!=_0x35b67e(0xf2))?!0x1:!(_0x35b67e(0xdb)in _0x448e59)||_0x448e59['lastValue']==null||Fe(_0x448e59[_0x35b67e(0xdb)]);}function Fe(_0x3d6dbe){const _0x53a98d=_0x11b942;return!_0x3d6dbe||typeof _0x3d6dbe!=_0x53a98d(0xee)||!S(_0x3d6dbe,['v','t',_0x53a98d(0xc1)])||!('v'in _0x3d6dbe)||_0x3d6dbe['v']!==null&&typeof _0x3d6dbe['v']!=_0x53a98d(0xf2)&&typeof _0x3d6dbe['v']!=_0x53a98d(0x106)&&typeof _0x3d6dbe['v']!=_0x53a98d(0xe5)||'t'in _0x3d6dbe&&_0x3d6dbe['t']!=null&&!Ie(_0x3d6dbe['t'])?!0x1:!(_0x53a98d(0xc1)in _0x3d6dbe)||_0x3d6dbe[_0x53a98d(0xc1)]==null||typeof _0x3d6dbe['pattern']==_0x53a98d(0xf2);}function S(_0x224092,_0x4e35e5){const _0x348344=_0x11b942;let _0x3dfc27=new Set(_0x4e35e5);return Object[_0x348344(0xde)](_0x224092)[_0x348344(0x7f)](_0x437134=>_0x3dfc27[_0x348344(0x154)](_0x437134));}function Ie(_0x4831a1){const _0x3bd0a2=_0x11b942;return typeof _0x4831a1==_0x3bd0a2(0x106)&&Object['values'](_0x8a3f37)[_0x3bd0a2(0x15c)](_0x4831a1);}const Le=new Set([_0x104972['SECTION_BREAK'],_0x104972[_0x11b942(0x10a)],_0x104972[_0x11b942(0x16e)],_0x104972['TABLE_CELL_START'],_0x104972['TABLE_CELL_END'],_0x104972[_0x11b942(0x8f)],_0x104972[_0x11b942(0x164)],_0x104972[_0x11b942(0x155)],_0x104972[_0x11b942(0x89)],_0x104972[_0x11b942(0x16b)],_0x104972[_0x11b942(0xa7)],_0x104972[_0x11b942(0x180)],_0x104972[_0x11b942(0xf5)],_0x104972[_0x11b942(0x15a)]]);var C=class extends Error{constructor(){const _0x34c38b=_0x11b942;super(_0x34c38b(0x93));}};function Re(_0xea415d){const _0x195992=_0x11b942;var _0x5b57c2,_0x8fd26c;let _0x5fd1b0=_0x29e987['deepClone'](_0xea415d[_0x195992(0x15e)]),_0x54a2fa=j(_0x5fd1b0),{startOffset:_0x7437f3,endOffset:_0x3beea0}=We(_0x54a2fa,_0xea415d[_0x195992(0x10d)],_0xea415d['endOffset']);He(_0x54a2fa,_0x7437f3,_0x3beea0);let _0x415f09=((_0x5b57c2=_0x54a2fa[_0x195992(0xe9)])==null?void 0x0:_0x5b57c2[_0x195992(0x112)](_0x563bf3=>{const _0x2b87f1=_0x195992;if(!w(_0x563bf3))return!0x1;let _0x5aea1c=_0x173fb8(_0x563bf3);return _0x5aea1c[_0x2b87f1(0x173)]>_0x7437f3&&_0x5aea1c[_0x2b87f1(0x10d)]<_0x3beea0;})[_0x195992(0x14e)](_0x1ef998=>_0x1ef998[_0x195992(0x170)]))??[];qe(_0x54a2fa,_0x7437f3,_0x3beea0,''),_0x54a2fa[_0x195992(0xe9)]=[...((_0x8fd26c=_0x54a2fa[_0x195992(0xe9)])==null?void 0x0:_0x8fd26c['filter'](_0x2fd7c7=>!_0x415f09[_0x195992(0x15c)](_0x2fd7c7['rangeId'])&&_0x2fd7c7[_0x195992(0x170)]!==_0xea415d[_0x195992(0x170)]))??[],Ue(_0xea415d[_0x195992(0x170)],_0x7437f3)]['sort']((_0x2f5511,_0x27d02f)=>_0x2f5511['startIndex']-_0x27d02f[_0x195992(0xc8)]);let _0x5d1090=E(_0xea415d['resource']);return _0x415f09[_0x195992(0xef)](_0x207ffc=>{delete _0x5d1090['formulas'][_0x207ffc];}),_0x5d1090['formulas'][_0xea415d[_0x195992(0x170)]]=_0x29e987[_0x195992(0xe4)](_0xea415d[_0x195992(0xd6)]),{'nextDocumentData':_0x5fd1b0,'nextResource':_0x5d1090,'cursorOffset':_0x7437f3+0x1};}function ze(_0x19567a){const _0x154813=_0x11b942;var _0x327ab7,_0x497230;let _0x2061fa=_0x29e987['deepClone'](_0x19567a[_0x154813(0x15e)]),_0xc5e36c=(_0x327ab7=j(_0x2061fa)['customRanges'])==null?void 0x0:_0x327ab7[_0x154813(0xb2)](_0x3c9809=>_0x3c9809[_0x154813(0x170)]===_0x19567a[_0x154813(0x170)]&&w(_0x3c9809));if(!_0xc5e36c||!((_0x497230=_0x19567a['resource'])!=null&&_0x497230[_0x154813(0x12b)][_0x19567a[_0x154813(0x170)]]))return null;let _0x34e0e9=E(_0x19567a[_0x154813(0xf3)]);return _0x34e0e9[_0x154813(0x12b)][_0x19567a[_0x154813(0x170)]]=_0x29e987[_0x154813(0xe4)](_0x19567a['config']),{'nextDocumentData':_0x2061fa,'nextResource':_0x34e0e9,'cursorOffset':_0xc5e36c['endIndex']+0x1};}function Be(_0x2ca315){const _0x10ed2c=_0x11b942;let _0x430012=_0x29e987['deepClone'](_0x2ca315['documentData']),_0x184b6e=Je(_0x430012,_0x2ca315[_0x10ed2c(0x170)],_0x2ca315[_0x10ed2c(0x14d)]??'');if(_0x184b6e==null)return null;let _0x203891=E(_0x2ca315[_0x10ed2c(0xf3)]);return delete _0x203891[_0x10ed2c(0x12b)][_0x2ca315[_0x10ed2c(0x170)]],{'nextDocumentData':_0x430012,'nextResource':_0x203891,'cursorOffset':_0x184b6e};}function Ve(_0x405da3,_0x2000ad){const _0x1762bb=_0x11b942;var _0xff5ccc;let _0x12a0a7=_0x29e987[_0x1762bb(0xe4)](_0x405da3),_0x29eeea=_0x12a0a7[_0x1762bb(0x166)];if(!_0x29eeea)return _0x12a0a7;let _0x49e3b9=new Map(_0x2000ad['map'](_0x3b98fb=>[_0x3b98fb[_0x1762bb(0x170)],_0x3b98fb[_0x1762bb(0x14d)]])),_0x1056e3=((_0xff5ccc=_0x29eeea[_0x1762bb(0xe9)])==null?void 0x0:_0xff5ccc[_0x1762bb(0x112)](_0x5b15af=>w(_0x5b15af)&&_0x49e3b9[_0x1762bb(0x154)](_0x5b15af[_0x1762bb(0x170)]))[_0x1762bb(0x13e)]((_0x5c2361,_0x9c3430)=>_0x9c3430[_0x1762bb(0xc8)]-_0x5c2361[_0x1762bb(0xc8)]))??[];for(let _0x460505 of _0x1056e3)Je(_0x12a0a7,_0x460505[_0x1762bb(0x170)],_0x49e3b9[_0x1762bb(0x102)](_0x460505[_0x1762bb(0x170)])??'');return _0x12a0a7;}function w(_0x4bb691){const _0x3b7c80=_0x11b942;var _0x12a004;return(_0x4bb691==null?void 0x0:_0x4bb691[_0x3b7c80(0xab)])===_0x3e39c6['CUSTOM']&&_0x4bb691[_0x3b7c80(0x157)]===!0x0&&((_0x12a004=_0x4bb691[_0x3b7c80(0xad)])==null?void 0x0:_0x12a004[_0x3b7c80(0xc7)])==='univer-docs-formula';}function T(_0x477c0d,_0x1be433){const _0x4c7fef=_0x11b942;var _0x986493;return _0x477c0d==null||(_0x986493=_0x477c0d[_0x4c7fef(0xe9)])==null?void 0x0:_0x986493['find'](_0x1d6f60=>_0x1d6f60['rangeId']===_0x1be433&&w(_0x1d6f60));}function He(_0x29e64e,_0x36a886,_0x49297d){const _0x1e9800=_0x11b942;if(_0x36a886===_0x49297d){if(Le[_0x1e9800(0x154)](_0x29e64e[_0x1e9800(0x11a)][_0x36a886]))throw new C();return;}for(let _0x44ce54=_0x36a886;_0x44ce54<_0x49297d;_0x44ce54++)if(_0x29e64e['dataStream'][_0x44ce54]===_0x104972[_0x1e9800(0x175)]||Le[_0x1e9800(0x154)](_0x29e64e[_0x1e9800(0x11a)][_0x44ce54]))throw new C();}function Ue(_0x24491e,_0x551d8e){return{'startIndex':_0x551d8e,'endIndex':_0x551d8e,'rangeId':_0x24491e,'rangeType':_0x3e39c6['CUSTOM'],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x3a6a75){const _0xbfb92c=_0x11b942;return _0x3a6a75?_0x29e987[_0xbfb92c(0xe4)](_0x3a6a75):b();}function We(_0x346b65,_0x38fa8d,_0x5197a5){const _0x51f1d6=_0x11b942;let _0x2a81d2=Ke(_0x346b65),_0x5ace16=_0x38fa8d??_0x2a81d2,_0x332286=_0x5197a5??_0x5ace16;return{'startOffset':Ge(Math[_0x51f1d6(0xed)](_0x5ace16,_0x332286),_0x2a81d2),'endOffset':Ge(Math[_0x51f1d6(0x17f)](_0x5ace16,_0x332286),_0x2a81d2)};}function Ge(_0x573caf,_0x3939e5){const _0x46f4f1=_0x11b942;return Math['max'](0x0,Math[_0x46f4f1(0xed)](_0x573caf,_0x3939e5));}function Ke(_0x2e7713){const _0x1d24ae=_0x11b942;return _0x2e7713['dataStream'][_0x1d24ae(0xfc)](''+_0x104972[_0x1d24ae(0x175)]+_0x104972['SECTION_BREAK'])?Math['max'](0x0,_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)]-0x2):_0x2e7713['dataStream'][_0x1d24ae(0xfc)](_0x104972[_0x1d24ae(0xcb)])?Math[_0x1d24ae(0x17f)](0x0,_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)]-0x1):_0x2e7713[_0x1d24ae(0x11a)][_0x1d24ae(0x10b)];}function qe(_0x129a86,_0x4c36a5,_0x58d99d,_0x4f79be){_0x58d99d>_0x4c36a5&&Xe(_0x129a86,_0x4c36a5,_0x58d99d),Ye(_0x129a86,_0x4c36a5,_0x4f79be);}function Je(_0x5cec49,_0x1f2b63,_0x31aef6){const _0x5acb4f=_0x11b942;var _0xf8272,_0x3083db;let _0x2f28b7=j(_0x5cec49),_0x1e04d0=(_0xf8272=_0x2f28b7['customRanges'])==null?void 0x0:_0xf8272['find'](_0x49f6ba=>_0x49f6ba['rangeId']===_0x1f2b63&&w(_0x49f6ba));if(!_0x1e04d0)return null;let _0xe7a677=_0x173fb8(_0x1e04d0);return qe(_0x2f28b7,_0xe7a677[_0x5acb4f(0x10d)],_0xe7a677[_0x5acb4f(0x173)],_0x31aef6),_0x2f28b7[_0x5acb4f(0xe9)]=(_0x3083db=_0x2f28b7[_0x5acb4f(0xe9)])==null?void 0x0:_0x3083db['filter'](_0x215df9=>_0x215df9[_0x5acb4f(0x170)]!==_0x1f2b63),_0xe7a677[_0x5acb4f(0x10d)]+_0x31aef6['length'];}function Ye(_0x1e8759,_0x2184a8,_0x1319bc){const _0x5120ac=_0x11b942;_0x1319bc&&(_0x1e8759[_0x5120ac(0x11a)]=''+_0x1e8759[_0x5120ac(0x11a)][_0x5120ac(0x10c)](0x0,_0x2184a8)+_0x1319bc+_0x1e8759[_0x5120ac(0x11a)][_0x5120ac(0x10c)](_0x2184a8),Ze(_0x1e8759,_0x2184a8,_0x1319bc[_0x5120ac(0x10b)]));}function Xe(_0x2e8789,_0x20f1df,_0x59dfbe){const _0x2ace64=_0x11b942;let _0x16b386=_0x59dfbe-_0x20f1df;_0x2e8789[_0x2ace64(0x11a)]=''+_0x2e8789[_0x2ace64(0x11a)][_0x2ace64(0x10c)](0x0,_0x20f1df)+_0x2e8789[_0x2ace64(0x11a)][_0x2ace64(0x10c)](_0x59dfbe),Qe(_0x2e8789,_0x20f1df,_0x16b386);}function Ze(_0x568aa6,_0xb1fb5a,_0xcf68ae){const _0x1a1195=_0x11b942;_0x568aa6[_0x1a1195(0x156)]=D(_0x568aa6['paragraphs'],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x162)]=D(_0x568aa6[_0x1a1195(0x162)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x8c)]=D(_0x568aa6[_0x1a1195(0x8c)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0xdc)]=$e(_0x568aa6[_0x1a1195(0xdc)],_0xb1fb5a,_0xcf68ae),_0x568aa6['tables']=et(_0x568aa6[_0x1a1195(0x174)],_0xb1fb5a,_0xcf68ae),_0x568aa6['columnGroups']=k(_0x568aa6[_0x1a1195(0x9d)],_0xb1fb5a,_0xcf68ae),_0x568aa6['customRanges']=k(_0x568aa6[_0x1a1195(0xe9)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0xba)]=k(_0x568aa6[_0x1a1195(0xba)],_0xb1fb5a,_0xcf68ae),_0x568aa6[_0x1a1195(0x158)]=k(_0x568aa6[_0x1a1195(0x158)],_0xb1fb5a,_0xcf68ae);}function Qe(_0x10763f,_0x2f8b40,_0x42e815){const _0x2b4518=_0x11b942;var _0x3020dc,_0x533860;_0x10763f[_0x2b4518(0x156)]=O(_0x10763f[_0x2b4518(0x156)],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x162)]=O(_0x10763f['sectionBreaks'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x8c)]=O(_0x10763f['customBlocks'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xdc)]=(_0x3020dc=tt((_0x533860=_0x10763f[_0x2b4518(0xdc)])==null?void 0x0:_0x533860[_0x2b4518(0x14e)](_0x460e02=>({..._0x460e02,'startIndex':_0x460e02['st'],'endIndex':_0x460e02['ed']})),_0x2f8b40,_0x42e815))==null?void 0x0:_0x3020dc['map'](_0x1930ec=>{let {startIndex:_0x5d2e45,endIndex:_0x1a4e94,..._0x12a171}=_0x1930ec;return{..._0x12a171,'st':_0x5d2e45,'ed':_0x1a4e94};}),_0x10763f[_0x2b4518(0x174)]=tt(_0x10763f[_0x2b4518(0x174)],_0x2f8b40,_0x42e815),_0x10763f['columnGroups']=A(_0x10763f['columnGroups'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xe9)]=A(_0x10763f['customRanges'],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0xba)]=A(_0x10763f[_0x2b4518(0xba)],_0x2f8b40,_0x42e815),_0x10763f[_0x2b4518(0x158)]=A(_0x10763f[_0x2b4518(0x158)],_0x2f8b40,_0x42e815);}function D(_0x8e720f,_0x24a9f6,_0x44adbf){const _0x189360=_0x11b942;return _0x8e720f==null?void 0x0:_0x8e720f[_0x189360(0x14e)](_0x11b025=>_0x11b025[_0x189360(0xc8)]>=_0x24a9f6?{..._0x11b025,'startIndex':_0x11b025['startIndex']+_0x44adbf}:_0x11b025);}function O(_0x30025c,_0x45f48d,_0x365830){const _0x5de980=_0x11b942;let _0x180ec2=_0x45f48d+_0x365830;return _0x30025c==null?void 0x0:_0x30025c[_0x5de980(0x14e)](_0x40fddc=>_0x40fddc[_0x5de980(0xc8)]>=_0x45f48d&&_0x40fddc[_0x5de980(0xc8)]<_0x180ec2?null:_0x40fddc[_0x5de980(0xc8)]>=_0x180ec2?{..._0x40fddc,'startIndex':_0x40fddc[_0x5de980(0xc8)]-_0x365830}:_0x40fddc)[_0x5de980(0x112)](_0x45ba60=>_0x45ba60!=null);}function $e(_0x4da71b,_0x26212e,_0x21fc3a){const _0x4b5ad2=_0x11b942;return _0x4da71b==null?void 0x0:_0x4da71b[_0x4b5ad2(0x14e)](_0xe6898d=>_0xe6898d['st']>=_0x26212e?{..._0xe6898d,'st':_0xe6898d['st']+_0x21fc3a,'ed':_0xe6898d['ed']+_0x21fc3a}:_0xe6898d['ed']>_0x26212e?{..._0xe6898d,'ed':_0xe6898d['ed']+_0x21fc3a}:_0xe6898d);}function k(_0x15a7b2,_0x325651,_0x1e1363){const _0xcf15b1=_0x11b942;return _0x15a7b2==null?void 0x0:_0x15a7b2[_0xcf15b1(0x14e)](_0x2f962e=>_0x44d86d(_0x2f962e,_0x325651,_0x1e1363));}function et(_0x5ab970,_0x1fbe5a,_0x3c93ba){return _0x5ab970==null?void 0x0:_0x5ab970['map'](_0x52cf5a=>_0x15d769(_0x52cf5a,_0x1fbe5a,_0x3c93ba));}function A(_0x4f6cfa,_0x362857,_0x3c1751){const _0x1a8e21=_0x11b942;return _0x4f6cfa==null?void 0x0:_0x4f6cfa[_0x1a8e21(0x14e)](_0x15e541=>_0x3d5ca1(_0x15e541,_0x362857,_0x3c1751))[_0x1a8e21(0x112)](_0x567181=>_0x567181!=null);}function tt(_0x203008,_0x43c353,_0x143312){const _0x24b1b5=_0x11b942;return _0x203008==null?void 0x0:_0x203008[_0x24b1b5(0x14e)](_0x498371=>_0x20fbe4(_0x498371,_0x43c353,_0x143312))[_0x24b1b5(0x112)](_0x3f72dc=>_0x3f72dc!=null);}function j(_0x456650){const _0x28a72c=_0x11b942;if(!_0x456650[_0x28a72c(0x166)])throw Error(_0x28a72c(0xac));return _0x456650[_0x28a72c(0x166)];}function M(_0x278878){'@babel/helpers - typeof';const _0xd3b544=_0x11b942;return M=typeof Symbol=='function'&&typeof Symbol[_0xd3b544(0x100)]==_0xd3b544(0x88)?function(_0x174225){return typeof _0x174225;}:function(_0xd6d513){const _0x1cfdd5=_0xd3b544;return _0xd6d513&&typeof Symbol=='function'&&_0xd6d513[_0x1cfdd5(0x181)]===Symbol&&_0xd6d513!==Symbol[_0x1cfdd5(0x163)]?_0x1cfdd5(0x88):typeof _0xd6d513;},M(_0x278878);}function nt(_0x4a9f47,_0xcb17e9){const _0x4c5e3b=_0x11b942;if(M(_0x4a9f47)!=_0x4c5e3b(0xee)||!_0x4a9f47)return _0x4a9f47;var _0x5a5e97=_0x4a9f47[Symbol['toPrimitive']];if(_0x5a5e97!==void 0x0){var _0x54d828=_0x5a5e97['call'](_0x4a9f47,_0xcb17e9||_0x4c5e3b(0xca));if(M(_0x54d828)!=_0x4c5e3b(0xee))return _0x54d828;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xcb17e9==='string'?String:Number)(_0x4a9f47);}function rt(_0x55ccd1){const _0x3fd0fb=_0x11b942;var _0x3848a8=nt(_0x55ccd1,_0x3fd0fb(0xf2));return M(_0x3848a8)==_0x3fd0fb(0x88)?_0x3848a8:_0x3848a8+'';}function N(_0x14d039,_0x517f30,_0x3a645e){const _0x559784=_0x11b942;return(_0x517f30=rt(_0x517f30))in _0x14d039?Object[_0x559784(0xa8)](_0x14d039,_0x517f30,{'value':_0x3a645e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14d039[_0x517f30]=_0x3a645e,_0x14d039;}var P=class extends _0x35945f{constructor(..._0x479524){const _0x2ca207=_0x11b942;super(..._0x479524),N(this,_0x2ca207(0x147),new Map()),N(this,_0x2ca207(0x14c),new Map()),N(this,_0x2ca207(0x87),new Map()),N(this,'_change$',new _0x6a8876()),N(this,_0x2ca207(0x80),this[_0x2ca207(0xbc)]['asObservable']());}[_0x11b942(0x161)](_0x1f6232,_0x2ceb6a){const _0x552495=_0x11b942;var _0xac7178;let _0xf6de4=(_0xac7178=this['_resources'][_0x552495(0x102)](_0x1f6232))==null?void 0x0:_0xac7178[_0x552495(0x12b)][_0x2ceb6a];return _0xf6de4?_0x29e987[_0x552495(0xe4)](_0xf6de4):void 0x0;}['getFormulas'](_0x1be989){const _0x540a28=_0x11b942;var _0x1b4de5;return _0x29e987[_0x540a28(0xe4)](((_0x1b4de5=this['_resources']['get'](_0x1be989))==null?void 0x0:_0x1b4de5[_0x540a28(0x12b)])??{});}['getResource'](_0x390fe7){const _0x1132ee=_0x11b942;let _0x550689=this[_0x1132ee(0x147)][_0x1132ee(0x102)](_0x390fe7);return _0x550689?_0x29e987['deepClone'](_0x550689):void 0x0;}['setFormula'](_0x5b7bb5,_0x3359a4,_0x9128dc){const _0x186196=_0x11b942;return this[_0x186196(0x149)](_0x5b7bb5,{[_0x3359a4]:_0x9128dc});}[_0x11b942(0x11f)](_0x11d614,_0x4f84ef){const _0x1f86c6=_0x11b942;return this[_0x1f86c6(0x87)]['has'](_0x11d614)||!x(_0x4f84ef)?!0x1:(this[_0x1f86c6(0x147)][_0x1f86c6(0x172)](_0x11d614,_0x29e987['deepClone'](_0x4f84ef)),this[_0x1f86c6(0xbc)][_0x1f86c6(0xa0)]({'unitId':_0x11d614}),!0x0);}[_0x11b942(0x149)](_0x211884,_0x12aa01){const _0x55d54b=_0x11b942;if(this[_0x55d54b(0x87)]['has'](_0x211884)||!Object[_0x55d54b(0xde)](_0x12aa01)['length']||!x({'schemaVersion':0x1,'formulas':_0x12aa01}))return!0x1;let _0x541d0c=this[_0x55d54b(0x147)]['get'](_0x211884)??b(),_0x2b5690=_0x29e987[_0x55d54b(0xe4)](_0x541d0c);return Object[_0x55d54b(0xec)](_0x2b5690[_0x55d54b(0x12b)],_0x29e987[_0x55d54b(0xe4)](_0x12aa01)),this[_0x55d54b(0x147)][_0x55d54b(0x172)](_0x211884,_0x2b5690),this[_0x55d54b(0xbc)]['next']({'unitId':_0x211884,'rangeIds':Object[_0x55d54b(0xde)](_0x12aa01)}),!0x0;}[_0x11b942(0xa3)](_0x5a456e,_0x2c798b){const _0x11a1ba=_0x11b942;if(this['_loadErrors']['has'](_0x5a456e))return!0x1;let _0x43b0fc=this[_0x11a1ba(0x147)]['get'](_0x5a456e);if(!(_0x43b0fc!=null&&_0x43b0fc[_0x11a1ba(0x12b)][_0x2c798b]))return!0x1;let _0x8b3993=_0x29e987['deepClone'](_0x43b0fc);return delete _0x8b3993[_0x11a1ba(0x12b)][_0x2c798b],this['_resources'][_0x11a1ba(0x172)](_0x5a456e,_0x8b3993),this['_change$'][_0x11a1ba(0xa0)]({'unitId':_0x5a456e,'rangeIds':[_0x2c798b]}),!0x0;}[_0x11b942(0x141)](_0x325be0,_0x369cdf){const _0x15f568=_0x11b942;return _0x369cdf&&typeof _0x369cdf=='object'&&_0x15f568(0xb7)in _0x369cdf&&_0x369cdf['schemaVersion']!==0x1?(this[_0x15f568(0xff)](_0x325be0,_0x369cdf,_0x15f568(0x142)),!0x1):x(_0x369cdf)?(this['_resources'][_0x15f568(0x172)](_0x325be0,_0x29e987[_0x15f568(0xe4)](_0x369cdf)),this[_0x15f568(0x14c)]['delete'](_0x325be0),this[_0x15f568(0x87)][_0x15f568(0x91)](_0x325be0),this['_change$'][_0x15f568(0xa0)]({'unitId':_0x325be0}),!0x0):(this['_preserveInvalid'](_0x325be0,_0x369cdf,_0x15f568(0x9e)),!0x1);}[_0x11b942(0x13b)](_0x2d8f59){const _0x3235a8=_0x11b942;let _0x3b5a2d=this[_0x3235a8(0x147)][_0x3235a8(0x102)](_0x2d8f59);return _0x3b5a2d?_0x29e987[_0x3235a8(0xe4)](_0x3b5a2d):this[_0x3235a8(0x14c)][_0x3235a8(0x154)](_0x2d8f59)?_0x29e987[_0x3235a8(0xe4)](this['_rawResources']['get'](_0x2d8f59)):b();}[_0x11b942(0x176)](_0x5b8278){const _0x1e3b60=_0x11b942;return this[_0x1e3b60(0x87)]['get'](_0x5b8278);}[_0x11b942(0x133)](_0x139c78){const _0x3f9829=_0x11b942;this[_0x3f9829(0x147)][_0x3f9829(0x91)](_0x139c78),this['_rawResources'][_0x3f9829(0x91)](_0x139c78),this[_0x3f9829(0x87)]['delete'](_0x139c78),this[_0x3f9829(0xbc)][_0x3f9829(0xa0)]({'unitId':_0x139c78});}[_0x11b942(0xce)](){const _0x2a31c3=_0x11b942;this[_0x2a31c3(0x147)][_0x2a31c3(0x17c)](),this['_rawResources'][_0x2a31c3(0x17c)](),this[_0x2a31c3(0x87)]['clear'](),this[_0x2a31c3(0xbc)][_0x2a31c3(0x14b)](),super[_0x2a31c3(0xce)]();}[_0x11b942(0xff)](_0x4cd606,_0x3de666,_0x3ef237){const _0x536a52=_0x11b942;this['_resources']['delete'](_0x4cd606),this[_0x536a52(0x14c)][_0x536a52(0x172)](_0x4cd606,_0x29e987[_0x536a52(0xe4)](_0x3de666)),this[_0x536a52(0x87)][_0x536a52(0x172)](_0x4cd606,_0x3ef237),this[_0x536a52(0xbc)][_0x536a52(0xa0)]({'unitId':_0x4cd606});}};let it=function(_0x3a4437){const _0x51751b=_0x11b942;return _0x3a4437['EMPTY']=_0x51751b(0xcc),_0x3a4437['PENDING']='pending',_0x3a4437[_0x51751b(0x119)]=_0x51751b(0x11e),_0x3a4437[_0x51751b(0x160)]=_0x51751b(0x12a),_0x3a4437;}({});function F(_0x18ffd1,_0x33be9e){return function(_0x4cb237,_0xe92de0){_0x33be9e(_0x4cb237,_0xe92de0,_0x18ffd1);};}function I(_0x10e2d5,_0x41fd51,_0x47c69f,_0x22e508){const _0x314f53=_0x11b942;var _0x4d43ab=arguments[_0x314f53(0x10b)],_0x567725=_0x4d43ab<0x3?_0x41fd51:_0x22e508===null?_0x22e508=Object[_0x314f53(0x179)](_0x41fd51,_0x47c69f):_0x22e508,_0x2f2e05;if(typeof Reflect==_0x314f53(0xee)&&typeof Reflect['decorate']==_0x314f53(0xd8))_0x567725=Reflect[_0x314f53(0xf0)](_0x10e2d5,_0x41fd51,_0x47c69f,_0x22e508);else{for(var _0x54ff2d=_0x10e2d5[_0x314f53(0x10b)]-0x1;_0x54ff2d>=0x0;_0x54ff2d--)(_0x2f2e05=_0x10e2d5[_0x54ff2d])&&(_0x567725=(_0x4d43ab<0x3?_0x2f2e05(_0x567725):_0x4d43ab>0x3?_0x2f2e05(_0x41fd51,_0x47c69f,_0x567725):_0x2f2e05(_0x41fd51,_0x47c69f))||_0x567725);}return _0x4d43ab>0x3&&_0x567725&&Object[_0x314f53(0xa8)](_0x41fd51,_0x47c69f,_0x567725),_0x567725;}let L=class extends _0x35945f{constructor(_0x5a1517,_0x45f236,_0x4c537d){const _0x1ab3f8=_0x11b942;super(),this[_0x1ab3f8(0x178)]=_0x5a1517,this[_0x1ab3f8(0x12e)]=_0x45f236,this[_0x1ab3f8(0x104)]=_0x4c537d,N(this,_0x1ab3f8(0xeb),new Map()),N(this,_0x1ab3f8(0x131),new Map()),N(this,'_presentationChanged$',new _0x6a8876()),N(this,'presentationChanged$',this[_0x1ab3f8(0x17e)][_0x1ab3f8(0xf7)]()),this['disposeWithMe'](this[_0x1ab3f8(0x12e)][_0x1ab3f8(0x115)][_0x1ab3f8(0x94)](_0x397d5b=>{const _0x2d961e=_0x1ab3f8;for(let _0x2ac374 of Object['values'](_0x397d5b))for(let _0xbdb530 of Object[_0x2d961e(0xfe)](_0x2ac374))_0xbdb530[_0x2d961e(0xef)](_0x5ad07b=>this[_0x2d961e(0xc2)](_0x5ad07b));}));}[_0x11b942(0x14f)](_0x5030b0){const _0x2b5e8e=_0x11b942;var _0x51ed76;let _0x1f8ffa=_0x5030b0[_0x2b5e8e(0xdd)](),_0xd6e6b9=((_0x51ed76=_0x5030b0[_0x2b5e8e(0x10e)]()[_0x2b5e8e(0x166)])==null||(_0x51ed76=_0x51ed76[_0x2b5e8e(0xe9)])==null?void 0x0:_0x51ed76['filter'](w))??[],_0x5c89fd=this['_model'][_0x2b5e8e(0xc3)](_0x1f8ffa),_0x32d6dd=new Set();for(let _0x61aee9 of _0xd6e6b9){let _0x2ec4a7=_0x5c89fd[_0x61aee9[_0x2b5e8e(0x170)]];_0x2ec4a7&&(_0x32d6dd[_0x2b5e8e(0xfb)](R(_0x1f8ffa,_0x61aee9[_0x2b5e8e(0x170)])),this[_0x2b5e8e(0x171)]({'unitId':_0x1f8ffa,'rangeId':_0x61aee9[_0x2b5e8e(0x170)]},_0x2ec4a7));}for(let _0x1230df of Array[_0x2b5e8e(0x15f)](this[_0x2b5e8e(0xeb)][_0x2b5e8e(0xfe)]()))_0x1230df[_0x2b5e8e(0x84)]===_0x1f8ffa&&!_0x32d6dd[_0x2b5e8e(0x154)](R(_0x1230df['unitId'],_0x1230df[_0x2b5e8e(0x170)]))&&this['unregister'](_0x1230df);}['register'](_0x159979,_0x456ff0){const _0x104fa0=_0x11b942;let _0x2b2923=R(_0x159979[_0x104fa0(0x84)],_0x159979['rangeId']),_0x282abf=this[_0x104fa0(0xeb)][_0x104fa0(0x102)](_0x2b2923),_0x4de174=this[_0x104fa0(0x104)][_0x104fa0(0x9b)](_0x159979[_0x104fa0(0x84)]);if(_0x282abf&&_0x282abf[_0x104fa0(0xd6)][_0x104fa0(0x16f)]===_0x456ff0[_0x104fa0(0x16f)]&&_0x282abf[_0x104fa0(0x7e)]===_0x4de174){_0x282abf['config']=_0x456ff0;let _0x155cf1=_0x282abf['formulaId']?this[_0x104fa0(0x12e)]['getFormulaValueSync'](_0x282abf[_0x104fa0(0x84)],_0x282abf[_0x104fa0(0x84)],_0x282abf['formulaId'])??void 0x0:void 0x0;_0x282abf[_0x104fa0(0x126)]=_0x155cf1,this[_0x104fa0(0x90)](_0x2b2923,z(_0x456ff0,_0x155cf1));return;}_0x282abf!=null&&_0x282abf[_0x104fa0(0xda)]&&this[_0x104fa0(0xbd)](_0x282abf);let _0x645d11={..._0x159979,'config':_0x456ff0,'referenceRevision':_0x4de174,'presentation':z(_0x456ff0,void 0x0)};if(this['_registrations'][_0x104fa0(0x172)](_0x2b2923,_0x645d11),!_0x456ff0[_0x104fa0(0x16f)][_0x104fa0(0x8b)]())return;let _0x274559=this['_registrationService'][_0x104fa0(0x140)](_0x159979[_0x104fa0(0x84)],_0x159979[_0x104fa0(0x84)],_0x456ff0[_0x104fa0(0x16f)],void 0x0,{'rangeId':_0x159979[_0x104fa0(0x170)]},_0x591f38['DOC'],_0x159979['rangeId']);_0x645d11['formulaId']=_0x274559,this[_0x104fa0(0x131)][_0x104fa0(0x172)](_0x274559,_0x2b2923);}[_0x11b942(0xb1)](_0x2a7815){const _0x4def0a=_0x11b942;let _0x269cd7=R(_0x2a7815[_0x4def0a(0x84)],_0x2a7815[_0x4def0a(0x170)]),_0x2e5936=this['_registrations'][_0x4def0a(0x102)](_0x269cd7);_0x2e5936&&(this[_0x4def0a(0xbd)](_0x2e5936),this[_0x4def0a(0xeb)][_0x4def0a(0x91)](_0x269cd7));}[_0x11b942(0x109)](_0x2dd82a){const _0x462432=_0x11b942;for(let _0xc537f5 of Array[_0x462432(0x15f)](this[_0x462432(0xeb)][_0x462432(0xfe)]()))_0xc537f5[_0x462432(0x84)]===_0x2dd82a&&this[_0x462432(0xb1)](_0xc537f5);}['getPresentation'](_0x56b19e){const _0x3b094f=_0x11b942;var _0x4172d0;return(_0x4172d0=this[_0x3b094f(0xeb)][_0x3b094f(0x102)](R(_0x56b19e[_0x3b094f(0x84)],_0x56b19e['rangeId'])))==null?void 0x0:_0x4172d0[_0x3b094f(0x137)];}[_0x11b942(0x123)](_0x1c2f7e){const _0xe1ca3c=_0x11b942;let _0x2c7af9=this[_0xe1ca3c(0xeb)][_0xe1ca3c(0x102)](R(_0x1c2f7e[_0xe1ca3c(0x84)],_0x1c2f7e[_0xe1ca3c(0x170)]));return _0x2c7af9?B(_0x2c7af9):void 0x0;}['getRegisteredFormulas'](){const _0x3c122e=_0x11b942;return Array[_0x3c122e(0x15f)](this[_0x3c122e(0xeb)][_0x3c122e(0xfe)](),_0x5b1919=>({'identity':{'unitId':_0x5b1919[_0x3c122e(0x84)],'rangeId':_0x5b1919['rangeId']},'config':_0x5b1919[_0x3c122e(0xd6)],'referenceRevision':_0x5b1919[_0x3c122e(0x7e)],..._0x5b1919[_0x3c122e(0x126)]?{'liveResult':_0x5b1919[_0x3c122e(0x126)]}:null}));}[_0x11b942(0xce)](){const _0x295781=_0x11b942;for(let _0x4f04c5 of this[_0x295781(0xeb)][_0x295781(0xfe)]())this['_deleteRegistration'](_0x4f04c5);this[_0x295781(0xeb)][_0x295781(0x17c)](),this[_0x295781(0x131)]['clear'](),this[_0x295781(0x17e)][_0x295781(0x14b)](),super[_0x295781(0xce)]();}[_0x11b942(0xc2)](_0x1625ad){const _0x9a5ca7=_0x11b942;let _0x1cb00c=this[_0x9a5ca7(0x131)][_0x9a5ca7(0x102)](_0x1625ad['formulaId']),_0x28a1f8=_0x1cb00c?this['_registrations'][_0x9a5ca7(0x102)](_0x1cb00c):void 0x0;!_0x1cb00c||!_0x28a1f8||(_0x28a1f8[_0x9a5ca7(0x126)]=_0x1625ad,this[_0x9a5ca7(0x90)](_0x1cb00c,z(_0x28a1f8['config'],_0x1625ad)));}['_setPresentation'](_0x5a3ed7,_0x311d59){const _0x9d6f31=_0x11b942;var _0x124b71,_0x485bfe;let _0x1c1e74=this[_0x9d6f31(0xeb)][_0x9d6f31(0x102)](_0x5a3ed7);if(!_0x1c1e74||at(_0x1c1e74[_0x9d6f31(0x137)],_0x311d59))return;let _0x4fc8f9=_0x1c1e74[_0x9d6f31(0x137)],_0x334375=B(_0x1c1e74);_0x1c1e74[_0x9d6f31(0x137)]=_0x311d59,this[_0x9d6f31(0x17e)][_0x9d6f31(0xa0)]({'unitId':_0x1c1e74[_0x9d6f31(0x84)],'rangeId':_0x1c1e74[_0x9d6f31(0x170)],'presentation':_0x311d59,'previousPresentation':_0x4fc8f9,'result':B(_0x1c1e74),'previousResult':{..._0x334375,..._0x4fc8f9,'value':(_0x124b71=_0x4fc8f9[_0x9d6f31(0x8e)])==null?void 0x0:_0x124b71['v'],'valueType':((_0x485bfe=_0x4fc8f9[_0x9d6f31(0x8e)])==null?void 0x0:_0x485bfe['t'])??void 0x0}});}['_deleteRegistration'](_0x3fdd76){const _0x42639b=_0x11b942;_0x3fdd76[_0x42639b(0xda)]&&(this[_0x42639b(0x12e)]['deleteFormula'](_0x3fdd76['unitId'],_0x3fdd76[_0x42639b(0x84)],[_0x3fdd76[_0x42639b(0xda)]]),this[_0x42639b(0x131)][_0x42639b(0x91)](_0x3fdd76[_0x42639b(0xda)]));}};L=I([F(0x0,_0x3d3024(P)),F(0x1,_0x3d3024(_0xa717d0)),F(0x2,_0x3d3024(_0x4e55da))],L);function R(_0x58c0df,_0x142750){return _0x58c0df+'\x00'+_0x142750;}function z(_0x2fbfb4,_0x31e794){const _0x3dc0de=_0x11b942;return _0x57ce95({'numberFormat':_0x2fbfb4[_0x3dc0de(0x13c)],'lastValue':_0x2fbfb4[_0x3dc0de(0xdb)],'result':_0x31e794});}function B(_0x1841d6){const _0xc0e2f9=_0x11b942;var _0x55ed7e,_0x5bf50f,_0x3e9436;let _0x2a4df2=_0x1841d6[_0xc0e2f9(0x137)],_0x3009a6=_0x1841d6[_0xc0e2f9(0xd6)]['formula'][_0xc0e2f9(0x8b)]()?_0x2a4df2[_0xc0e2f9(0x11c)]||_0x2a4df2[_0xc0e2f9(0x8e)]==null?_0xc0e2f9(0x11d):((_0x55ed7e=_0x1841d6[_0xc0e2f9(0x126)])==null?void 0x0:_0x55ed7e[_0xc0e2f9(0xb3)])===_0x110262[_0xc0e2f9(0x160)]?'error':_0xc0e2f9(0x11e):_0xc0e2f9(0xcc);return{..._0x2a4df2,'status':_0x3009a6,'value':(_0x5bf50f=_0x2a4df2[_0xc0e2f9(0x8e)])==null?void 0x0:_0x5bf50f['v'],'valueType':((_0x3e9436=_0x2a4df2[_0xc0e2f9(0x8e)])==null?void 0x0:_0x3e9436['t'])??void 0x0};}function at(_0x473611,_0x1e00c8){const _0x1e38da=_0x11b942;var _0x17b95c,_0x45599b,_0x6a711e,_0xef6d9c;return _0x473611[_0x1e38da(0x14d)]===_0x1e00c8[_0x1e38da(0x14d)]&&_0x473611['color']===_0x1e00c8[_0x1e38da(0xe0)]&&_0x473611['pattern']===_0x1e00c8[_0x1e38da(0xc1)]&&_0x473611[_0x1e38da(0xfa)]===_0x1e00c8[_0x1e38da(0xfa)]&&_0x473611[_0x1e38da(0x11c)]===_0x1e00c8[_0x1e38da(0x11c)]&&((_0x17b95c=_0x473611[_0x1e38da(0x8e)])==null?void 0x0:_0x17b95c['t'])===((_0x45599b=_0x1e00c8[_0x1e38da(0x8e)])==null?void 0x0:_0x45599b['t'])&&Object['is']((_0x6a711e=_0x473611[_0x1e38da(0x8e)])==null?void 0x0:_0x6a711e['v'],(_0xef6d9c=_0x1e00c8[_0x1e38da(0x8e)])==null?void 0x0:_0xef6d9c['v']);}const ot={'id':_0x11b942(0xf8),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x6a7fdf,_0x1d683a)=>!(_0x1d683a!=null&&_0x1d683a[_0x11b942(0x84)])||!_0x1d683a[_0x11b942(0x170)]||!_0x1d683a[_0x11b942(0xd6)]?!0x1:_0x6a7fdf[_0x11b942(0x102)](P)['setFormula'](_0x1d683a[_0x11b942(0x84)],_0x1d683a['rangeId'],_0x1d683a[_0x11b942(0xd6)])},st={'id':_0x11b942(0x117),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x1c0473,_0x59a01b)=>!(_0x59a01b!=null&&_0x59a01b[_0x11b942(0x84)])||!_0x59a01b[_0x11b942(0x170)]?!0x1:_0x1c0473[_0x11b942(0x102)](P)['removeFormula'](_0x59a01b[_0x11b942(0x84)],_0x59a01b[_0x11b942(0x170)])},V={'id':_0x11b942(0xa4),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x39bea1,_0x3af3e3)=>!(_0x3af3e3!=null&&_0x3af3e3[_0x11b942(0x84)])||!_0x3af3e3[_0x11b942(0xf3)]?!0x1:_0x39bea1[_0x11b942(0x102)](P)[_0x11b942(0x11f)](_0x3af3e3[_0x11b942(0x84)],_0x3af3e3['resource'])},H={'id':_0x11b942(0xf4),'type':_0x5965b8[_0x11b942(0x15d)],'handler':(_0x2ec8d9,_0x19b904)=>{const _0x5a20b4=_0x11b942;if(!(_0x19b904!=null&&_0x19b904['unitId'])||!_0x19b904[_0x5a20b4(0x12d)]['length'])return!0x1;let _0x330a82=_0x2ec8d9[_0x5a20b4(0x102)](P),_0x4d6167=_0x2ec8d9[_0x5a20b4(0x102)](_0x4e55da),_0x8774c0=_0x330a82['getResource'](_0x19b904[_0x5a20b4(0x84)]);if(!_0x8774c0)return!0x1;let _0x14c2d8=_0x29e987[_0x5a20b4(0xe4)](_0x8774c0),_0x56185d=!0x1;for(let _0x49edf2 of _0x19b904['updates']){var _0x5aa7a9,_0x45f57e,_0x24560d,_0x8e6c24;let _0x1cbef4=_0x14c2d8['formulas'][_0x49edf2[_0x5a20b4(0x170)]];!_0x1cbef4||_0x1cbef4['formula']!==_0x49edf2[_0x5a20b4(0x150)]||((_0x5aa7a9=_0x1cbef4[_0x5a20b4(0x13c)])==null?void 0x0:_0x5aa7a9[_0x5a20b4(0xc1)])!==_0x49edf2[_0x5a20b4(0x105)]||_0x4d6167[_0x5a20b4(0x9b)](_0x19b904[_0x5a20b4(0x84)])!==_0x49edf2[_0x5a20b4(0x98)]||(((_0x45f57e=_0x1cbef4[_0x5a20b4(0xdb)])==null?void 0x0:_0x45f57e['v'])!==_0x49edf2[_0x5a20b4(0xdb)]['v']||((_0x24560d=_0x1cbef4[_0x5a20b4(0xdb)])==null?void 0x0:_0x24560d['t'])!==_0x49edf2[_0x5a20b4(0xdb)]['t']||((_0x8e6c24=_0x1cbef4['lastValue'])==null?void 0x0:_0x8e6c24['pattern'])!==_0x49edf2[_0x5a20b4(0xdb)]['pattern'])&&(_0x1cbef4['lastValue']=_0x29e987[_0x5a20b4(0xe4)](_0x49edf2[_0x5a20b4(0xdb)]),_0x56185d=!0x0);}return!_0x56185d||_0x330a82['setResource'](_0x19b904[_0x5a20b4(0x84)],_0x14c2d8);}},U={'id':_0x11b942(0x146),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x2e4465,_0x59bbf1)=>{const _0x3b6fd4=_0x11b942;if(!(_0x59bbf1!=null&&_0x59bbf1[_0x3b6fd4(0x16f)][_0x3b6fd4(0x8b)]()))return!0x1;let _0x45bb42=q(_0x2e4465,_0x59bbf1[_0x3b6fd4(0x84)],'');if(!_0x45bb42)return!0x1;let _0x11edf8=ft(_0x59bbf1[_0x3b6fd4(0xb6)],_0x45bb42[_0x3b6fd4(0x166)],dt(_0x2e4465,_0x45bb42['unitId']));if(!_0x11edf8)return!0x1;let _0x4f1f31=pt(_0x2e4465,_0x45bb42['unitId'],_0x59bbf1[_0x3b6fd4(0x16f)],_0x59bbf1['externalReferences']??[]);if(!_0x4f1f31)return!0x1;let _0x1e0526=mt(_0x45bb42[_0x3b6fd4(0x166)],_0x45bb42[_0x3b6fd4(0xd9)],_0x45bb42['unitId']),_0x213562=ht({'documentData':_0x45bb42['documentData'],'resource':_0x45bb42[_0x3b6fd4(0xf3)],'rangeId':_0x1e0526,'config':{'formula':_0x59bbf1[_0x3b6fd4(0x16f)],..._0x59bbf1[_0x3b6fd4(0x13c)]?{'numberFormat':_0x59bbf1[_0x3b6fd4(0x13c)]}:null},'startOffset':_0x11edf8[_0x3b6fd4(0x10d)],'endOffset':_0x11edf8[_0x3b6fd4(0x173)]});if(!_0x213562)return!0x1;let _0x1cb69b=_0x1d12c5(_0x2e4465,_0x45bb42['unitId'],_0x4f1f31);return!_0x1cb69b||!J({'accessor':_0x2e4465,'document':_0x45bb42[_0x3b6fd4(0x110)],'unitId':_0x45bb42[_0x3b6fd4(0x84)],'trigger':U['id'],'rangeId':_0x1e0526,'previousResource':_0x45bb42[_0x3b6fd4(0xf3)],'nextResource':_0x213562['nextResource'],'previousDocumentData':_0x45bb42[_0x3b6fd4(0x15e)],'nextDocumentData':_0x213562[_0x3b6fd4(0x17a)],'cursorOffset':_0x213562['cursorOffset'],'externalMutations':_0x1cb69b})?!0x1:{'rangeId':_0x1e0526,'startOffset':_0x213562[_0x3b6fd4(0x8a)]-0x1,'endOffset':_0x213562[_0x3b6fd4(0x8a)]};}},W={'id':_0x11b942(0xe2),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x52e4bf,_0x1aa596)=>{const _0x432aed=_0x11b942;if(!(_0x1aa596!=null&&_0x1aa596['rangeId'])||!_0x1aa596[_0x432aed(0x16f)]['trim']())return!0x1;let _0x3a4093=q(_0x52e4bf,_0x1aa596[_0x432aed(0x84)],''),_0x490cce=_0x3a4093==null?void 0x0:_0x3a4093[_0x432aed(0xd9)][_0x432aed(0x161)](_0x3a4093[_0x432aed(0x84)],_0x1aa596[_0x432aed(0x170)]),_0x1398b9=_0x3a4093?T(_0x3a4093[_0x432aed(0x15e)][_0x432aed(0x166)],_0x1aa596[_0x432aed(0x170)]):void 0x0;if(!_0x3a4093||!_0x490cce||!_0x1398b9)return!0x1;let _0x22ea79=pt(_0x52e4bf,_0x3a4093[_0x432aed(0x84)],_0x1aa596[_0x432aed(0x16f)],_0x1aa596[_0x432aed(0x9a)]??[]);if(!_0x22ea79)return!0x1;let _0x26d0cb=_0x1d12c5(_0x52e4bf,_0x3a4093[_0x432aed(0x84)],_0x22ea79);if(!_0x26d0cb)return!0x1;let _0x2be6e4=Ct(_0x3a4093[_0x432aed(0xf3)]);return _0x2be6e4[_0x432aed(0x12b)][_0x1aa596[_0x432aed(0x170)]]={'formula':_0x1aa596[_0x432aed(0x16f)],..._0x1aa596[_0x432aed(0x13c)]?{'numberFormat':_0x1aa596[_0x432aed(0x13c)]}:_0x490cce['numberFormat']?{'numberFormat':_0x490cce['numberFormat']}:null},J({'accessor':_0x52e4bf,'document':_0x3a4093[_0x432aed(0x110)],'unitId':_0x3a4093[_0x432aed(0x84)],'trigger':W['id'],'rangeId':_0x1aa596[_0x432aed(0x170)],'previousResource':_0x3a4093[_0x432aed(0xf3)],'nextResource':_0x2be6e4,'cursorOffset':_0x1398b9[_0x432aed(0xa6)]+0x1,'externalMutations':_0x26d0cb});}},G={'id':_0x11b942(0xaf),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x170c89,_0x1ddf95)=>{const _0x5b1c53=_0x11b942;if(!(_0x1ddf95!=null&&_0x1ddf95[_0x5b1c53(0x170)]))return!0x1;let _0x27efc3=q(_0x170c89,_0x1ddf95['unitId'],''),_0x347d4e=_0x27efc3==null?void 0x0:_0x27efc3['model'][_0x5b1c53(0x161)](_0x27efc3[_0x5b1c53(0x84)],_0x1ddf95[_0x5b1c53(0x170)]),_0x4eaf7d=_0x27efc3?T(_0x27efc3['documentData'][_0x5b1c53(0x166)],_0x1ddf95[_0x5b1c53(0x170)]):void 0x0;if(!_0x27efc3||!_0x347d4e||!_0x4eaf7d)return!0x1;let _0x3723e1=Ct(_0x27efc3[_0x5b1c53(0xf3)]);return _0x3723e1['formulas'][_0x1ddf95[_0x5b1c53(0x170)]]={..._0x347d4e,..._0x1ddf95[_0x5b1c53(0x13c)]?{'numberFormat':_0x1ddf95[_0x5b1c53(0x13c)]}:null},_0x1ddf95['numberFormat']||delete _0x3723e1[_0x5b1c53(0x12b)][_0x1ddf95[_0x5b1c53(0x170)]]['numberFormat'],J({'accessor':_0x170c89,'document':_0x27efc3[_0x5b1c53(0x110)],'unitId':_0x27efc3[_0x5b1c53(0x84)],'trigger':G['id'],'rangeId':_0x1ddf95[_0x5b1c53(0x170)],'previousResource':_0x27efc3['resource'],'nextResource':_0x3723e1,'cursorOffset':_0x4eaf7d['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x4e3828,_0x4cf093)=>ut(_0x4e3828,_0x4cf093,'',K['id'])},ct={'id':_0x11b942(0x114),'type':_0x5965b8['COMMAND'],'handler':(_0x17ec76,_0x9e03ed)=>ut(_0x17ec76,_0x9e03ed,(_0x9e03ed==null?void 0x0:_0x9e03ed[_0x11b942(0x14d)])??'',ct['id'])},lt={'id':_0x11b942(0x16c),'type':_0x5965b8[_0x11b942(0x9c)],'handler':(_0x159ea6,_0x1c208b)=>{const _0x306990=_0x11b942;if(!(_0x1c208b!=null&&_0x1c208b[_0x306990(0x170)]))return!0x1;let _0x2771bb=q(_0x159ea6,_0x1c208b['unitId'],'');if(!_0x2771bb)return!0x1;let _0x7f266e=_0x159ea6[_0x306990(0x102)](L)[_0x306990(0x123)]({'unitId':_0x2771bb[_0x306990(0x84)],'rangeId':_0x1c208b[_0x306990(0x170)]});return _0x7f266e?ut(_0x159ea6,_0x1c208b,_0x7f266e['text'],lt['id']):!0x1;}};function ut(_0x353ea3,_0x1fb9a0,_0x237405,_0x42e8ce){const _0x37ebb9=_0x11b942;if(!(_0x1fb9a0!=null&&_0x1fb9a0[_0x37ebb9(0x170)]))return!0x1;let _0x2fe8b5=q(_0x353ea3,_0x1fb9a0[_0x37ebb9(0x84)],'');if(!_0x2fe8b5)return!0x1;let _0xd0b72=Be({'documentData':_0x2fe8b5['documentData'],'resource':_0x2fe8b5[_0x37ebb9(0xf3)],'rangeId':_0x1fb9a0['rangeId'],'text':_0x237405});return _0xd0b72?J({'accessor':_0x353ea3,'document':_0x2fe8b5[_0x37ebb9(0x110)],'unitId':_0x2fe8b5[_0x37ebb9(0x84)],'trigger':_0x42e8ce,'rangeId':_0x1fb9a0['rangeId'],'previousResource':_0x2fe8b5[_0x37ebb9(0xf3)],'nextResource':_0xd0b72[_0x37ebb9(0xb8)],'previousDocumentData':_0x2fe8b5[_0x37ebb9(0x15e)],'nextDocumentData':_0xd0b72[_0x37ebb9(0x17a)],'cursorOffset':_0xd0b72['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x157d22,_0x5f95ca,_0x1e77b1){const _0xbead58=_0x11b942;if(_0x1e77b1)return null;let _0xf21601=_0x157d22['get'](_0x930636),_0x53461d=(_0x5f95ca?_0xf21601['getUnit'](_0x5f95ca,_0x45653d[_0xbead58(0x144)]):_0xf21601['getCurrentUnitOfType'](_0x45653d[_0xbead58(0x144)]))??null;if(!_0x53461d)return null;let _0x3683c0=_0x53461d[_0xbead58(0x10e)](),_0x965c7b=_0x3683c0['body'];if(_0x3683c0[_0xbead58(0x14a)]||!_0x965c7b)return null;let _0x13085f=_0x157d22[_0xbead58(0x102)](P);return _0x13085f['getLoadError'](_0x53461d['getUnitId']())?null:{'document':_0x53461d,'body':_0x965c7b,'documentData':_0x3683c0,'model':_0x13085f,'resource':_0x13085f[_0xbead58(0x16a)](_0x53461d[_0xbead58(0xdd)]())??b(),'unitId':_0x53461d[_0xbead58(0xdd)]()};}function dt(_0x5006e2,_0x484716){const _0x3859a2=_0x11b942;var _0x3dc8cb;return(_0x3dc8cb=_0x5006e2['get'](_0x42f86e)[_0x3859a2(0x116)]({'subUnitId':_0x484716,'unitId':_0x484716}))==null?void 0x0:_0x3dc8cb[0x0];}function ft(_0x4709ef,_0x25965f,_0x468180){const _0x5575a8=_0x11b942;if((_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])===_0x5575a8(0xc0)){var _0x38f724;let _0x190c62=((_0x38f724=_0x25965f[_0x5575a8(0x156)])==null?void 0x0:_0x38f724[_0x5575a8(0x112)](_0x94516f=>_0x94516f['paragraphId']===_0x4709ef['paragraphId']))??[];if(_0x190c62['length']!==0x1)return null;let _0x36d4b9=_0x190c62[0x0],_0x2c1532=_0x54e7b7(_0x25965f,_0x36d4b9),_0xbc45d6=_0x36d4b9[_0x5575a8(0xc8)]-_0x2c1532,_0x11b44f=_0x4709ef[_0x5575a8(0x145)]===_0x5575a8(0x96)?_0xbc45d6:_0x4709ef['position'];if(!Number[_0x5575a8(0x151)](_0x11b44f)||_0x11b44f<0x0||_0x11b44f>_0xbc45d6)return null;let _0x214e15=_0x2c1532+_0x11b44f;return{'startOffset':_0x214e15,'endOffset':_0x214e15};}if((_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])===_0x5575a8(0xe6))return!Number[_0x5575a8(0x151)](_0x4709ef[_0x5575a8(0x10d)])||!Number['isInteger'](_0x4709ef[_0x5575a8(0x173)])?null:{'startOffset':Math[_0x5575a8(0xed)](_0x4709ef[_0x5575a8(0x10d)],_0x4709ef['endOffset']),'endOffset':Math[_0x5575a8(0x17f)](_0x4709ef[_0x5575a8(0x10d)],_0x4709ef[_0x5575a8(0x173)])};let _0x5ddeec=(_0x4709ef==null?void 0x0:_0x4709ef[_0x5575a8(0xd2)])==='selection'?_0x4709ef['selection']:_0x468180;return!_0x5ddeec||_0x5ddeec[_0x5575a8(0x9f)]?null:{'startOffset':Math[_0x5575a8(0xed)](_0x5ddeec[_0x5575a8(0x10d)],_0x5ddeec[_0x5575a8(0x173)]),'endOffset':Math[_0x5575a8(0x17f)](_0x5ddeec[_0x5575a8(0x10d)],_0x5ddeec[_0x5575a8(0x173)])};}function pt(_0x112629,_0x3d4e25,_0x245075,_0x18a669){const _0x56790b=_0x11b942;let _0x1c645d=_0x112629[_0x56790b(0x102)](_0x3c43da),_0x29e0e9=_0x245075[_0x56790b(0x103)]('=')?_0x245075['slice'](0x1):_0x245075,_0x3183a7=_0x1c645d[_0x56790b(0x125)](_0x29e0e9);if(!_0x3183a7)return null;let _0x322aab=_0x112629[_0x56790b(0x102)](_0x4e55da),_0x471c9b=_0x7dadcf({'qualifiers':_0x59b99e(_0x3183a7),'explicitReferences':_0x18a669??[],'resolveBinding':_0x903b3f=>_0x322aab[_0x56790b(0xc5)](_0x3d4e25,_0x903b3f)});return _0x471c9b['status']===_0x56790b(0xe3)?_0x471c9b[_0x56790b(0xbf)]:null;}function mt(_0x45f602,_0x40a866,_0x48e831){const _0x2a0773=_0x11b942;var _0x13ac37;let _0x3e0802=_0x2dbc3e(0x6);for(;_0x45f602!=null&&(_0x13ac37=_0x45f602[_0x2a0773(0xe9)])!=null&&_0x13ac37[_0x2a0773(0x107)](_0x5a7cbe=>_0x5a7cbe[_0x2a0773(0x170)]===_0x3e0802)||_0x40a866['getFormula'](_0x48e831,_0x3e0802);)_0x3e0802=_0x2dbc3e(0x6);return _0x3e0802;}function ht(_0x1cdc3a){try{return Re(_0x1cdc3a);}catch(_0x1cc7c0){if(_0x1cc7c0 instanceof C)return null;throw _0x1cc7c0;}}function gt(_0x1f144e){const _0x45eb60=_0x11b942;let _0x21a2d5=_0x1f144e[_0x45eb60(0xb5)]&&_0x1f144e[_0x45eb60(0x17a)]?vt(_0x1f144e['document'],_0x1f144e[_0x45eb60(0x84)],_0x1f144e[_0x45eb60(0xb5)],_0x1f144e['nextDocumentData'],_0x1f144e[_0x45eb60(0x8a)],_0x1f144e[_0x45eb60(0x15b)]):null;return _0x1f144e[_0x45eb60(0xb5)]&&_0x1f144e[_0x45eb60(0x17a)]&&!_0x21a2d5?null:{'documentRedo':_0x21a2d5,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x1f144e['unitId'],'resource':_0x1f144e[_0x45eb60(0xb8)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x1f144e[_0x45eb60(0x84)],'resource':_0x1f144e[_0x45eb60(0x177)]}}};}function _t(_0x551c0a,_0x4c754b,_0x53eccf,_0x21140f){const _0x1cbb2e=_0x11b942;_0x21140f['pushUndoRedo']({'id':_0x551c0a['trigger']+':'+_0x551c0a[_0x1cbb2e(0x170)],'unitID':_0x551c0a[_0x1cbb2e(0x84)],'redoMutations':[..._0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0x167)]?[_0x551c0a['externalMutations'][_0x1cbb2e(0x167)]]:[],..._0x4c754b[_0x1cbb2e(0x152)]?[_0x4c754b[_0x1cbb2e(0x152)]]:[],_0x4c754b[_0x1cbb2e(0xd0)]],'undoMutations':[_0x4c754b[_0x1cbb2e(0x120)],..._0x53eccf?[_0x53eccf]:[],..._0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0xa1)]?[_0x551c0a[_0x1cbb2e(0xd4)][_0x1cbb2e(0xa1)]]:[]]});}function J(_0x4f1330){const _0x237f0c=_0x11b942;let _0x3dd31e=_0x4f1330[_0x237f0c(0xbb)]['get'](_0x33bec9),_0x1ca664=_0x4f1330['accessor'][_0x237f0c(0x102)](_0x21b9cd),_0x5c5085=_0x4f1330[_0x237f0c(0xbb)][_0x237f0c(0x102)](_0x42f86e),_0x306f3c=gt(_0x4f1330);if(!_0x306f3c)return!0x1;let _0x218805=!0x1,_0x5f3913=null,_0x33f174=!0x1;try{if(_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]){if(!_0x3dd31e['syncExecuteCommand'](_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]['id'],_0x4f1330[_0x237f0c(0xd4)][_0x237f0c(0x167)]['params']))return!0x1;_0x218805=!0x0;}if(_0x306f3c[_0x237f0c(0x152)]){let _0x2048db=_0x3dd31e['syncExecuteCommand'](_0x306f3c[_0x237f0c(0x152)]['id'],_0x306f3c['documentRedo'][_0x237f0c(0x13a)]);if(!_0x2048db)return bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),!0x1;_0x5f3913={'id':_0x480fe8['id'],'params':{..._0x2048db,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x3dd31e[_0x237f0c(0xf1)](_0x306f3c['resourceRedo']['id'],_0x306f3c[_0x237f0c(0xd0)][_0x237f0c(0x13a)]))return yt(_0x3dd31e,_0x5f3913),bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),!0x1;_0x33f174=!0x0,_t(_0x4f1330,_0x306f3c,_0x5f3913,_0x1ca664);}catch(_0x556456){throw _0x33f174&&_0x3dd31e[_0x237f0c(0xf1)](_0x306f3c[_0x237f0c(0x120)]['id'],_0x306f3c[_0x237f0c(0x120)]['params']),yt(_0x3dd31e,_0x5f3913),bt(_0x3dd31e,_0x4f1330[_0x237f0c(0xd4)],_0x218805),_0x556456;}return _0x5c5085[_0x237f0c(0xcf)]([{'startOffset':_0x4f1330['cursorOffset'],'endOffset':_0x4f1330[_0x237f0c(0x8a)],'segmentId':''}],{'unitId':_0x4f1330[_0x237f0c(0x84)],'subUnitId':_0x4f1330['unitId']},!0x1,{[_0xa0c5b1]:!0x0}),!0x0;}function vt(_0xd531a6,_0xa13539,_0x47eb4c,_0x273e1f,_0x4022d6,_0x107de9){let _0x5b35c7=xt(_0x47eb4c,_0x273e1f,_0x36d11e(_0xd531a6,''));return _0x5b35c7?{'id':_0x480fe8['id'],'params':{'unitId':_0xa13539,'actions':_0x5b35c7,'segmentId':'','textRanges':[{'startOffset':_0x4022d6,'endOffset':_0x4022d6,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x107de9}}:null;}function yt(_0x42e4a9,_0x84813d){_0x84813d&&_0x42e4a9['syncExecuteCommand'](_0x84813d['id'],_0x84813d['params']);}function bt(_0x4f61ee,_0x2cfd1a,_0x5b46b5){const _0x13070a=_0x11b942;_0x5b46b5&&_0x2cfd1a[_0x13070a(0xa1)]&&_0x4f61ee[_0x13070a(0xf1)](_0x2cfd1a[_0x13070a(0xa1)]['id'],_0x2cfd1a[_0x13070a(0xa1)][_0x13070a(0x13a)]);}function xt(_0x9331c9,_0x589dac,_0x233360){const _0x950300=_0x11b942;let _0x451dfc=_0x9331c9[_0x950300(0x166)],_0x1f433c=_0x589dac[_0x950300(0x166)],_0x1bbda7=St(_0x451dfc==null?void 0x0:_0x451dfc[_0x950300(0x11a)],_0x1f433c==null?void 0x0:_0x1f433c[_0x950300(0x11a)]);if(!_0x1bbda7||!_0x1f433c)return null;let _0x1a92c0=new _0x3b5ea5();return _0x1a92c0[_0x950300(0x122)](_0x1bbda7[_0x950300(0x99)]),_0x1bbda7[_0x950300(0x135)]>0x0&&_0x1a92c0[_0x950300(0x17d)](_0x1bbda7[_0x950300(0x135)],_0x1be218(_0x1f433c,_0x1bbda7[_0x950300(0x99)],_0x1bbda7[_0x950300(0x99)]+_0x1bbda7[_0x950300(0x135)],!0x1)),_0x1bbda7[_0x950300(0xb0)]>0x0&&_0x1a92c0[_0x950300(0x91)](_0x1bbda7[_0x950300(0xb0)]),_0x583736[_0x950300(0x95)]()[_0x950300(0x92)](_0x1a92c0[_0x950300(0x13b)](),_0x233360);}function St(_0xd9da5,_0x28fbd2){const _0x5e2572=_0x11b942;if(_0xd9da5==null||_0x28fbd2==null||_0xd9da5===_0x28fbd2)return null;let _0xfbb648=0x0;for(;_0xfbb648<_0xd9da5[_0x5e2572(0x10b)]&&_0xfbb648<_0x28fbd2[_0x5e2572(0x10b)]&&_0xd9da5[_0xfbb648]===_0x28fbd2[_0xfbb648];)_0xfbb648+=0x1;let _0x5ecdae=_0xd9da5['length'],_0x1b0fe3=_0x28fbd2[_0x5e2572(0x10b)];for(;_0x5ecdae>_0xfbb648&&_0x1b0fe3>_0xfbb648&&_0xd9da5[_0x5ecdae-0x1]===_0x28fbd2[_0x1b0fe3-0x1];)--_0x5ecdae,--_0x1b0fe3;return{'start':_0xfbb648,'deleteLength':_0x5ecdae-_0xfbb648,'insertLength':_0x1b0fe3-_0xfbb648};}function Ct(_0x4d0578){const _0x2ed9cf=_0x11b942;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object['entries'](_0x4d0578[_0x2ed9cf(0x12b)])[_0x2ed9cf(0x14e)](([_0x4bec15,_0x3a86a1])=>[_0x4bec15,{..._0x3a86a1,..._0x3a86a1[_0x2ed9cf(0x13c)]?{'numberFormat':{..._0x3a86a1['numberFormat']}}:null,..._0x3a86a1[_0x2ed9cf(0xdb)]?{'lastValue':{..._0x3a86a1[_0x2ed9cf(0xdb)]}}:null}]))};}let Y=class extends _0x35945f{constructor(_0x226b09,_0x3095e0,_0x574718,_0x1db3b6){const _0x164e8b=_0x11b942;super(),this[_0x164e8b(0xa5)]=_0x226b09,this[_0x164e8b(0x111)]=_0x3095e0,this[_0x164e8b(0x178)]=_0x574718,this[_0x164e8b(0x8d)]=_0x1db3b6,N(this,_0x164e8b(0xb4),new Set()),N(this,_0x164e8b(0xcd),!0x1),N(this,_0x164e8b(0x11b),!0x1),this['_instanceService'][_0x164e8b(0xdf)](_0x45653d[_0x164e8b(0x144)])[_0x164e8b(0xef)](_0xf8ecb1=>this[_0x164e8b(0x8d)]['syncUnit'](_0xf8ecb1)),this['disposeWithMe'](this[_0x164e8b(0x178)][_0x164e8b(0x80)]['subscribe'](({unitId:_0x243129})=>this['_syncUnit'](_0x243129))),this[_0x164e8b(0x128)](this[_0x164e8b(0xa5)][_0x164e8b(0xfd)][_0x164e8b(0x94)](({unit:_0x1147c4})=>{const _0x2e1619=_0x164e8b;_0x1147c4[_0x2e1619(0xd2)]===_0x45653d[_0x2e1619(0x144)]&&this['_queueSync'](_0x1147c4[_0x2e1619(0xdd)]());})),this[_0x164e8b(0x128)](this[_0x164e8b(0xa5)][_0x164e8b(0xd3)][_0x164e8b(0x94)](_0x36a31f=>{const _0x583da1=_0x164e8b;this[_0x583da1(0x8d)][_0x583da1(0x109)](_0x36a31f[_0x583da1(0xdd)]());})),this[_0x164e8b(0x128)](this[_0x164e8b(0x111)][_0x164e8b(0x136)](_0x231215=>{const _0x57a9cd=_0x164e8b;if(_0x231215['id']===_0x480fe8['id']&&wt(_0x231215['params'])){let _0x5e33e8=_0x231215[_0x57a9cd(0x13a)];_0x5e33e8[_0x57a9cd(0x9f)]||this[_0x57a9cd(0x108)](_0x5e33e8[_0x57a9cd(0x84)]);}}));}[_0x11b942(0xce)](){const _0x4815cc=_0x11b942;this[_0x4815cc(0x11b)]=!0x0,super['dispose']();}['_queueSync'](_0x4e82fd){const _0x336b71=_0x11b942;this[_0x336b71(0xb4)][_0x336b71(0xfb)](_0x4e82fd),!this[_0x336b71(0xcd)]&&(this[_0x336b71(0xcd)]=!0x0,queueMicrotask(()=>{const _0x12f257=_0x336b71;if(this[_0x12f257(0xcd)]=!0x1,this[_0x12f257(0x11b)])return;let _0x149743=Array['from'](this[_0x12f257(0xb4)]);this['_pendingUnitIds'][_0x12f257(0x17c)](),_0x149743[_0x12f257(0xef)](_0xd3bec8=>this[_0x12f257(0x108)](_0xd3bec8));}));}[_0x11b942(0x108)](_0x20c45f){const _0x5526e6=_0x11b942;let _0x219fa0=this[_0x5526e6(0xa5)][_0x5526e6(0x101)](_0x20c45f,_0x45653d[_0x5526e6(0x144)]);_0x219fa0&&this[_0x5526e6(0x8d)][_0x5526e6(0x14f)](_0x219fa0);}};Y=I([F(0x0,_0x930636),F(0x1,_0x33bec9),F(0x2,_0x3d3024(P)),F(0x3,_0x3d3024(L))],Y);function wt(_0x35e259){const _0x22e223=_0x11b942;return typeof _0x35e259=='object'&&!!_0x35e259&&'unitId'in _0x35e259&&typeof _0x35e259[_0x22e223(0x84)]=='string'&&(!(_0x22e223(0x9f)in _0x35e259)||_0x35e259[_0x22e223(0x9f)]===void 0x0||typeof _0x35e259[_0x22e223(0x9f)]=='string');}let X=class extends _0x35945f{constructor(_0x48ea6b,_0x252613){const _0x23131c=_0x11b942;super(),this[_0x23131c(0x121)]=_0x48ea6b,this['_docFormulaModel']=_0x252613,this[_0x23131c(0x128)](this[_0x23131c(0x121)]['registerPluginResource']({'pluginName':y,'businesses':[_0x45653d['UNIVER_DOC']],'toJson':_0x375474=>JSON['stringify'](this[_0x23131c(0x148)][_0x23131c(0x13b)](_0x375474)),'parseJson':_0x37e8bd=>JSON[_0x23131c(0xf9)](_0x37e8bd),'onLoad':(_0x179916,_0x1b2f80)=>{const _0x5c9a9b=_0x23131c;this['_docFormulaModel'][_0x5c9a9b(0x141)](_0x179916,_0x1b2f80);},'onUnLoad':_0x1d9538=>this[_0x23131c(0x148)][_0x23131c(0x133)](_0x1d9538)}));}};X=I([F(0x0,_0x1e7c1d),F(0x1,_0x3d3024(P))],X);var Tt=_0x11b942(0xa2),Et=_0x11b942(0xea);const Dt={};let Z=class extends _0x35945f{constructor(_0xbe2a7b,_0x51dac4,_0x9a280){const _0x33b6bb=_0x11b942;super(),this[_0x33b6bb(0x118)]=_0xbe2a7b,this[_0x33b6bb(0x159)]=_0x51dac4,this[_0x33b6bb(0x128)](_0x9a280['register']({'resolve':(_0x465869,_0x4165d0)=>{const _0x9214a=_0x33b6bb;var _0x580461;return((_0x580461=_0x4165d0['customRanges'])==null?void 0x0:_0x580461[_0x9214a(0x112)](w)[_0x9214a(0x14e)](_0x55851d=>({'startOffset':_0x55851d[_0x9214a(0xc8)],'endOffset':_0x55851d[_0x9214a(0xa6)]+0x1,'text':this[_0x9214a(0xb9)](_0x465869,_0x55851d[_0x9214a(0x170)])})))??[];}})),this[_0x33b6bb(0x128)](this[_0x33b6bb(0x159)][_0x33b6bb(0x153)]['subscribe'](({unitId:_0x45d3e3})=>{const _0x5f1a00=_0x33b6bb;_0x9a280[_0x5f1a00(0xa9)](_0x45d3e3);}));}[_0x11b942(0xb9)](_0x42fa1c,_0x38f44b){const _0x625eea=_0x11b942;var _0x25213b;return((_0x25213b=this[_0x625eea(0x159)]['getResult']({'unitId':_0x42fa1c,'rangeId':_0x38f44b}))==null?void 0x0:_0x25213b[_0x625eea(0x14d)])??'';}[_0x11b942(0x127)](_0x357f94,_0x469467,_0x4df14d){const _0x1ba136=_0x11b942;var _0x19686f;let _0x390de9=this['_univerInstanceService'][_0x1ba136(0x101)](_0x357f94,_0x45653d[_0x1ba136(0x144)]),_0x568db6=_0x390de9==null?void 0x0:_0x390de9['getBody']();if(!_0x568db6)return'';let _0x1245ae=_0x568db6[_0x1ba136(0x11a)][_0x1ba136(0x10c)](_0x469467,_0x4df14d),_0x16b933=((_0x19686f=_0x568db6[_0x1ba136(0xe9)])==null?void 0x0:_0x19686f['filter'](_0x143862=>w(_0x143862)&&_0x143862['startIndex']>=_0x469467&&_0x143862[_0x1ba136(0xa6)]<_0x4df14d)['sort']((_0x8b4e7a,_0x240a85)=>_0x240a85[_0x1ba136(0xc8)]-_0x8b4e7a[_0x1ba136(0xc8)]))??[];for(let _0x4690c8 of _0x16b933){let _0x251a47=_0x4690c8['startIndex']-_0x469467,_0x4de432=_0x4690c8[_0x1ba136(0xa6)]-_0x469467+0x1;_0x1245ae=''+_0x1245ae[_0x1ba136(0x10c)](0x0,_0x251a47)+this[_0x1ba136(0xb9)](_0x357f94,_0x4690c8[_0x1ba136(0x170)])+_0x1245ae['slice'](_0x4de432);}return _0x1245ae;}[_0x11b942(0xe8)](_0x2179b9){return Ot(_0x2179b9);}[_0x11b942(0xd7)](_0x45e8c6,_0x303cdf,_0x256bca={}){const _0x49d8eb=_0x11b942;var _0xff84e2;return Ve({'id':_0x45e8c6,'body':_0x303cdf,'documentStyle':{}},(((_0xff84e2=_0x303cdf[_0x49d8eb(0xe9)])==null?void 0x0:_0xff84e2[_0x49d8eb(0x112)](w))??[])[_0x49d8eb(0x14e)](_0x57da55=>({'rangeId':_0x57da55[_0x49d8eb(0x170)],'text':_0x256bca[_0x57da55[_0x49d8eb(0x170)]]??this[_0x49d8eb(0xb9)](_0x45e8c6,_0x57da55[_0x49d8eb(0x170)])})))[_0x49d8eb(0x166)]??{'dataStream':''};}};Z=I([F(0x0,_0x930636),F(0x1,_0x3d3024(L)),F(0x2,_0x3d3024(_0x56e8c8))],Z);function Ot(_0x6fcc2d){const _0x2735fc=_0x11b942;var _0xae345a,_0x2de02d;let _0x4e5b66=kt(_0x6fcc2d),_0x212df8=Ve(_0x6fcc2d,(((_0xae345a=_0x6fcc2d[_0x2735fc(0x166)])==null||(_0xae345a=_0xae345a[_0x2735fc(0xe9)])==null?void 0x0:_0xae345a[_0x2735fc(0x112)](w))??[])[_0x2735fc(0x14e)](_0x1f72b9=>({'rangeId':_0x1f72b9['rangeId'],'text':At(_0x4e5b66==null?void 0x0:_0x4e5b66[_0x2735fc(0x12b)][_0x1f72b9[_0x2735fc(0x170)]])})));return _0x212df8[_0x2735fc(0x168)]=(_0x2de02d=_0x212df8['resources'])==null?void 0x0:_0x2de02d[_0x2735fc(0x112)](_0x3f678d=>_0x3f678d['name']!==y),_0x212df8;}function _0x48a7(_0x266d20,_0x1ad06d){_0x266d20=_0x266d20-0x7e;const _0x2755e1=_0x2755();let _0x48a776=_0x2755e1[_0x266d20];return _0x48a776;}function kt(_0x53aa9e){const _0x131953=_0x11b942;var _0x574fac;let _0x1c3230=(_0x574fac=_0x53aa9e[_0x131953(0x168)])==null||(_0x574fac=_0x574fac[_0x131953(0xb2)](_0x5c0994=>_0x5c0994[_0x131953(0xc4)]==='DOC_FORMULA_PLUGIN'))==null?void 0x0:_0x574fac[_0x131953(0xc9)];if(_0x1c3230)try{let _0x2104b9=JSON[_0x131953(0xf9)](_0x1c3230);return x(_0x2104b9)?_0x2104b9:void 0x0;}catch{return;}}function At(_0x2844b3){const _0x506887=_0x11b942;return _0x2844b3?_0x57ce95({'lastValue':_0x2844b3[_0x506887(0xdb)],'numberFormat':_0x2844b3['numberFormat']})['text']:'';}let Q=class extends _0x35945f{constructor(_0x55f4c1,_0x363e7b,_0x436228){const _0x44fd17=_0x11b942;super(),this[_0x44fd17(0x159)]=_0x55f4c1,this[_0x44fd17(0x13f)]=_0x363e7b,this[_0x44fd17(0x128)](_0x436228[_0x44fd17(0xe1)](this));}[_0x11b942(0xd1)](_0x5c7316){const _0x2988cd=_0x11b942;let _0x2052b6=new Map();for(let _0xd6e51d of this[_0x2988cd(0x159)][_0x2988cd(0x12f)]()){var _0x4ec208;if(!this['_cacheEligibilityService'][_0x2988cd(0x139)](_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x16f)],_0xd6e51d[_0x2988cd(0x126)])[_0x2988cd(0xaa)])continue;let _0x55d954=_0xc59680(_0xd6e51d['liveResult']),_0x20c2e7=_0x55d954?_0x34e83b(_0x55d954):null;if(!_0x20c2e7||jt(_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0xdb)],_0x20c2e7))continue;let _0x2b27a0=_0x2052b6[_0x2988cd(0x102)](_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x84)])??[];_0x2b27a0[_0x2988cd(0xe7)]({'rangeId':_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x170)],'expectedFormula':_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x16f)],'expectedNumberFormat':(_0x4ec208=_0xd6e51d[_0x2988cd(0xd6)][_0x2988cd(0x13c)])==null?void 0x0:_0x4ec208['pattern'],'expectedReferenceRevision':_0xd6e51d[_0x2988cd(0x7e)],'lastValue':_0x20c2e7}),_0x2052b6[_0x2988cd(0x172)](_0xd6e51d[_0x2988cd(0x124)][_0x2988cd(0x84)],_0x2b27a0);}return Array['from'](_0x2052b6,([_0x43b818,_0x398613])=>({'id':H['id'],'params':{'unitId':_0x43b818,'updates':_0x398613}}));}};function _0x2755(){const _0x39748f=['resourceRedo','collectMutations','type','unitDisposed$','externalMutations','DOC_FORMULA_PLUGIN','config','degradeBody','function','model','formulaId','lastValue','textRuns','getUnitId','keys','getAllUnitsForType','color','registerProvider','docs-formula.command.update','resolved','deepClone','boolean','range','push','degradeDocumentData','customRanges','1.0.0-beta.0','_registrations','assign','min','object','forEach','decorate','syncExecuteCommand','string','resource','docs-formula.mutation.set-last-values','BLOCK_END','isArray','asObservable','docs-formula.mutation.set-formula','parse','source','add','endsWith','unitAdded$','values','_preserveInvalid','iterator','getUnit','get','startsWith','_hostExternalReferenceModel','expectedNumberFormat','number','some','_syncUnit','unregisterUnit','TABLE_START','length','slice','startOffset','getSnapshot','7949683tenduv','document','_commandService','filter','768hArEYI','docs-formula.command.replace-with-text','formulaResult$','getTextRanges','docs-formula.mutation.remove-formula','_univerInstanceService','SUCCESS','dataStream','_isDisposed','stale','pending','success','setResource','resourceUndo','_resourceManagerService','retain','getResult','identity','sequenceNodesBuilder','liveResult','resolveText','disposeWithMe','packageName','error','formulas','65635KgCFVn','updates','_registrationService','getRegisteredFormulas','docs-formula.config','_formulaKeys','18626883bFugrN','removeUnit','19619qBYhNk','insertLength','onCommandExecuted','presentation','140whksQy','assess','params','serialize','numberFormat','registerCommand','sort','_cacheEligibilityService','registerFormulaWithRange','load','unsupported-version','_configService','UNIVER_DOC','position','docs-formula.command.insert','_resources','_docFormulaModel','setFormulas','disabled','complete','_rawResources','text','map','syncUnit','expectedFormula','isInteger','documentRedo','presentationChanged$','has','COLUMN_GROUP_START','paragraphs','wholeEntity','blockRanges','_formulaService','CUSTOM_BLOCK','trigger','includes','MUTATION','documentData','from','ERROR','getFormula','sectionBreaks','prototype','TABLE_END','5334YghnLJ','body','redoMutation','resources','20673OuPKfx','getResource','COLUMN_END','docs-formula.command.convert-to-text','89052492HrEyIv','TABLE_ROW_START','formula','rangeId','register','set','endOffset','tables','PARAGRAPH','getLoadError','previousResource','_model','getOwnPropertyDescriptor','nextDocumentData','5930LMqTUc','clear','insert','_presentationChanged$','max','BLOCK_START','constructor','referenceRevision','every','change$','entries','_injector','version','unitId','setConfig','pluginName','_loadErrors','symbol','COLUMN_START','cursorOffset','trim','customBlocks','_service','cell','TABLE_ROW_END','_setPresentation','delete','editOp','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','subscribe','getInstance','end','8avHfle','expectedReferenceRevision','start','externalReferences','getRevision','COMMAND','columnGroups','invalid-resource','segmentId','next','undoMutation','@univerjs-pro/docs-formula','removeFormula','docs-formula.mutation.set-resource','_instanceService','endIndex','COLUMN_GROUP_END','defineProperty','notifyTextChanged','eligible','rangeType','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','properties','_config','docs-formula.command.set-number-format','deleteLength','unregister','find','status','_pendingUnitIds','previousDocumentData','target','schemaVersion','nextResource','resolveFormula','customDecorations','accessor','_change$','_deleteRegistration','3388AhzGPU','references','paragraph','pattern','_updateFormulaResult','getFormulas','name','resolveBinding','onStarting','kind','startIndex','data','default','SECTION_BREAK','empty','_syncScheduled','dispose','replaceDocRanges'];_0x2755=function(){return _0x39748f;};return _0x2755();}Q=I([F(0x0,_0x3d3024(L)),F(0x1,_0x3d3024(_0x477178)),F(0x2,_0x3d3024(_0x3f3931))],Q);function jt(_0x31401a,_0x490b12){const _0x2f6019=_0x11b942;return(_0x31401a==null?void 0x0:_0x31401a['v'])===_0x490b12['v']&&(_0x31401a==null?void 0x0:_0x31401a['t'])===_0x490b12['t']&&(_0x31401a==null?void 0x0:_0x31401a[_0x2f6019(0xc1)])===_0x490b12[_0x2f6019(0xc1)];}let $=class extends _0x459c8d{constructor(_0x3f3dd1=Dt,_0x1cab4b,_0x4d566d,_0x499c66){const _0xd24ae9=_0x11b942;super(),this[_0xd24ae9(0xae)]=_0x3f3dd1,this[_0xd24ae9(0x82)]=_0x1cab4b,this['_commandService']=_0x4d566d,this[_0xd24ae9(0x143)]=_0x499c66;let {..._0x20e663}=_0x4b4880({},Dt,this[_0xd24ae9(0xae)]);this[_0xd24ae9(0x143)][_0xd24ae9(0x85)](_0xd24ae9(0x130),_0x20e663);}[_0x11b942(0xc6)](){const _0x42379c=_0x11b942;this[_0x42379c(0x82)][_0x42379c(0xfb)]([P]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([L]),this[_0x42379c(0x82)]['add']([X]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([Y]),this[_0x42379c(0x82)][_0x42379c(0xfb)]([Q]),this[_0x42379c(0x82)]['add']([Z]),_0x2fa40d(this['_injector'],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x42379c(0xef)](_0x1b22ed=>this[_0x42379c(0x128)](this[_0x42379c(0x111)][_0x42379c(0x13d)](_0x1b22ed)));}};N($,_0x11b942(0x86),y),N($,_0x11b942(0x129),Tt),N($,_0x11b942(0x83),Et),N($,_0x11b942(0xd2),_0x45653d[_0x11b942(0x144)]),$=I([_0x1cc9db(_0x42a144,_0x16665e,_0x44a698),F(0x1,_0x3d3024(_0x13e4a3)),F(0x2,_0x33bec9),F(0x3,_0x3270a2)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0xa1cd2=_0x2e3e;(function(_0x201705,_0x3b45f8){var _0x4e089e=_0x2e3e,_0x4355c7=_0x201705();while(!![]){try{var _0x113a20=parseInt(_0x4e089e(0x21f))/0x1*(-parseInt(_0x4e089e(0x227))/0x2)+parseInt(_0x4e089e(0x218))/0x3+-parseInt(_0x4e089e(0x1f9))/0x4*(-parseInt(_0x4e089e(0x21d))/0x5)+parseInt(_0x4e089e(0x1f8))/0x6+parseInt(_0x4e089e(0x235))/0x7+-parseInt(_0x4e089e(0x1fd))/0x8+parseInt(_0x4e089e(0x21e))/0x9*(parseInt(_0x4e089e(0x231))/0xa);if(_0x113a20===_0x3b45f8)break;else _0x4355c7['push'](_0x4355c7['shift']());}catch(_0x54a307){_0x4355c7['push'](_0x4355c7['shift']());}}}(_0x24ce,0x1cff4));import{ConvertDocFormulaToTextCommand as _0x3d8403,DocFormulaDisplayTextService as _0x162eeb,DocFormulaModel as _0x502054,DocFormulaService as _0x4f48b8,InsertDocFormulaCommand as _0x1bbe95,RemoveDocFormulaCommand as _0x13f5a9,ReplaceDocFormulaWithTextCommand as _0x1e7605,SetDocFormulaNumberFormatCommand as _0x953cd9,UpdateDocFormulaCommand as _0x2cef7c,isDocFormulaRange as _0x404cdf}from'@univerjs-pro/docs-formula';import{ICommandService as _0x13557c,IResourceLoaderService as _0x4828d1,IUniverInstanceService as _0x3c0b32,Inject as _0x562a75,UniverInstanceType as _0xddfd96}from'@univerjs/core';import{FDocument as _0x822ede,FDocumentParagraph as _0x1e14e2,FDocumentTextRange as _0x5b71fe}from'@univerjs/docs/facade';function v(_0x567c89,_0x179c99){return function(_0x1adb6c,_0x473af8){_0x179c99(_0x1adb6c,_0x473af8,_0x567c89);};}function y(_0x245925,_0x1e8339,_0x3a9d64,_0x541975){var _0x52a356=_0x2e3e,_0x1c9d5e=arguments['length'],_0x433787=_0x1c9d5e<0x3?_0x1e8339:_0x541975===null?_0x541975=Object['getOwnPropertyDescriptor'](_0x1e8339,_0x3a9d64):_0x541975,_0x22dd15;if(typeof Reflect=='object'&&typeof Reflect[_0x52a356(0x1ef)]=='function')_0x433787=Reflect['decorate'](_0x245925,_0x1e8339,_0x3a9d64,_0x541975);else{for(var _0xe376a6=_0x245925[_0x52a356(0x213)]-0x1;_0xe376a6>=0x0;_0xe376a6--)(_0x22dd15=_0x245925[_0xe376a6])&&(_0x433787=(_0x1c9d5e<0x3?_0x22dd15(_0x433787):_0x1c9d5e>0x3?_0x22dd15(_0x1e8339,_0x3a9d64,_0x433787):_0x22dd15(_0x1e8339,_0x3a9d64))||_0x433787);}return _0x1c9d5e>0x3&&_0x433787&&Object[_0x52a356(0x216)](_0x1e8339,_0x3a9d64,_0x433787),_0x433787;}let b=class{constructor(_0x2293bf,_0x5347ee,_0x30732e,_0x405a6e,_0x4a828a,_0x51658d){var _0x4c1ad6=_0x2e3e;this[_0x4c1ad6(0x23a)]=_0x2293bf,this[_0x4c1ad6(0x237)]=_0x5347ee,this[_0x4c1ad6(0x202)]=_0x30732e,this[_0x4c1ad6(0x1f2)]=_0x405a6e,this[_0x4c1ad6(0x20c)]=_0x4a828a,this[_0x4c1ad6(0x22d)]=_0x51658d;}[_0xa1cd2(0x20f)](){var _0x4b2580=_0xa1cd2;return this[_0x4b2580(0x237)];}[_0xa1cd2(0x222)](){var _0x23c25e=_0xa1cd2;let _0x48a623=this[_0x23c25e(0x22b)]();return _0x48a623?{'endOffset':_0x48a623[_0x23c25e(0x1f0)]+0x1,'rangeId':_0x48a623['rangeId'],'startOffset':_0x48a623['startIndex']}:null;}[_0xa1cd2(0x232)](){var _0x29b025=_0xa1cd2,_0x21d55d,_0x1635b9;return(_0x21d55d=(_0x1635b9=this[_0x29b025(0x1f2)]['getFormula'](this[_0x29b025(0x23a)],this['_rangeId']))==null?void 0x0:_0x1635b9['formula'])==null?'':_0x21d55d;}['getConfig'](){var _0xffccdd=_0xa1cd2,_0x3388f8;return(_0x3388f8=this[_0xffccdd(0x1f2)][_0xffccdd(0x232)](this[_0xffccdd(0x23a)],this['_rangeId']))==null?null:_0x3388f8;}['getResult'](){var _0x26aaf0=_0xa1cd2,_0xf23f77;return(_0xf23f77=this[_0x26aaf0(0x20c)][_0x26aaf0(0x207)]({'unitId':this[_0x26aaf0(0x23a)],'rangeId':this[_0x26aaf0(0x237)]}))==null?null:_0xf23f77;}[_0xa1cd2(0x219)](){var _0x2becab=_0xa1cd2;let _0x499f1d=this['getRange'](),_0x2fb4c5=this[_0x2becab(0x23b)](),_0x49faa1=this[_0x2becab(0x207)]();return!_0x499f1d||!_0x2fb4c5||!_0x49faa1?null:{..._0x499f1d,'config':_0x2fb4c5,'formula':_0x2fb4c5[_0x2becab(0x1fa)],'result':_0x49faa1,'type':_0x2becab(0x1fa)};}[_0xa1cd2(0x20a)](_0x13bbdc){var _0x158cf6=_0xa1cd2;return this[_0x158cf6(0x202)]['syncExecuteCommand'](_0x2cef7c['id'],{'externalReferences':_0x13bbdc['externalReferences'],'formula':_0x13bbdc[_0x158cf6(0x1fa)],'numberFormat':_0x13bbdc['numberFormat'],'rangeId':this[_0x158cf6(0x237)],'unitId':this[_0x158cf6(0x23a)]});}['setNumberFormat'](_0x487e18){var _0x60bc84=_0xa1cd2;return this[_0x60bc84(0x202)][_0x60bc84(0x229)](_0x953cd9['id'],{'numberFormat':_0x487e18,'rangeId':this[_0x60bc84(0x237)],'unitId':this[_0x60bc84(0x23a)]});}[_0xa1cd2(0x1f5)](){var _0x1f1183=_0xa1cd2;return this[_0x1f1183(0x202)][_0x1f1183(0x229)](_0x13f5a9['id'],{'rangeId':this[_0x1f1183(0x237)],'unitId':this['_unitId']});}[_0xa1cd2(0x223)](_0x2fb957){var _0x59c9da=_0xa1cd2;return this['_commandService']['syncExecuteCommand'](_0x1e7605['id'],{'rangeId':this[_0x59c9da(0x237)],'text':_0x2fb957,'unitId':this[_0x59c9da(0x23a)]});}[_0xa1cd2(0x1fb)](){var _0x381a06=_0xa1cd2;return this['_commandService'][_0x381a06(0x229)](_0x3d8403['id'],{'rangeId':this['_rangeId'],'unitId':this[_0x381a06(0x23a)]});}[_0xa1cd2(0x22b)](){var _0x466c7c=_0xa1cd2,_0xc75546;let _0x4983b3=this[_0x466c7c(0x22d)]['getUnit'](this[_0x466c7c(0x23a)],_0xddfd96[_0x466c7c(0x206)]);return _0x4983b3==null||(_0xc75546=_0x4983b3[_0x466c7c(0x238)]()[_0x466c7c(0x200)])==null||(_0xc75546=_0xc75546[_0x466c7c(0x225)])==null?void 0x0:_0xc75546['find'](_0x581e8a=>_0x581e8a[_0x466c7c(0x211)]===this[_0x466c7c(0x237)]&&_0x404cdf(_0x581e8a));}};b=y([v(0x2,_0x13557c),v(0x3,_0x562a75(_0x502054)),v(0x4,_0x562a75(_0x4f48b8)),v(0x5,_0x3c0b32)],b);function x(_0x17f2ad){'@babel/helpers - typeof';var _0x1fa505=_0xa1cd2;return x=typeof Symbol==_0x1fa505(0x233)&&typeof Symbol[_0x1fa505(0x21b)]=='symbol'?function(_0x16c3c6){return typeof _0x16c3c6;}:function(_0x549431){var _0x3a2519=_0x1fa505;return _0x549431&&typeof Symbol==_0x3a2519(0x233)&&_0x549431['constructor']===Symbol&&_0x549431!==Symbol[_0x3a2519(0x217)]?'symbol':typeof _0x549431;},x(_0x17f2ad);}function S(_0x2eeadb,_0x11a972){var _0x39048d=_0xa1cd2;if(x(_0x2eeadb)!=_0x39048d(0x20e)||!_0x2eeadb)return _0x2eeadb;var _0x250e98=_0x2eeadb[Symbol[_0x39048d(0x221)]];if(_0x250e98!==void 0x0){var _0x5bae5e=_0x250e98[_0x39048d(0x22e)](_0x2eeadb,_0x11a972||_0x39048d(0x220));if(x(_0x5bae5e)!=_0x39048d(0x20e))return _0x5bae5e;throw TypeError(_0x39048d(0x20b));}return(_0x11a972===_0x39048d(0x21c)?String:Number)(_0x2eeadb);}function _0x2e3e(_0x249091,_0x341009){_0x249091=_0x249091-0x1ef;var _0x24ce6b=_0x24ce();var _0x2e3e96=_0x24ce6b[_0x249091];return _0x2e3e96;}function _0x24ce(){var _0x5a88e4=['_docsFormulaResourceLoaderService','syncExecuteCommand','_insert','_getCustomRange','numberFormat','_univerInstanceService','call','saveFormulaDisplayTextSnapshot','saveUnit','20JRsSUa','getFormula','function','get','442316IcDOlL','map','_rangeId','getSnapshot','_initialize','_unitId','getConfig','externalReferences','_docsFormulaModel','decorate','endIndex','_injector','_model','find','startOffset','remove','insertFormula','Document\x20','1413120CEekuG','677744sANxnR','formula','convertToText','appendFormula','1260064Ylraji','getSegmentId','getFormulas','body','createInstance','_commandService','_docsFormulaCommandService','_getCompleteRanges','endOffset','UNIVER_DOC','getResult','extend','_createFormula','update','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_service','_document','object','getId','degradeDocumentData','rangeId','_docsFormulaDisplayTextService','length','symbol','paragraph','defineProperty','prototype','62244Fyhurd','describe','range','iterator','string','5bBJeRl','49950RxwyeF','4GoLrZn','default','toPrimitive','getRange','replaceWithText','startIndex','customRanges','replaceWithFormula','111856OODsSR'];_0x24ce=function(){return _0x5a88e4;};return _0x24ce();}function C(_0x4a40dc){var _0x1ca3f5=_0xa1cd2,_0x2dc4a1=S(_0x4a40dc,_0x1ca3f5(0x21c));return x(_0x2dc4a1)==_0x1ca3f5(0x214)?_0x2dc4a1:_0x2dc4a1+'';}function w(_0x4d5388,_0x4bcad5,_0x13d827){var _0x271141=_0xa1cd2;return(_0x4bcad5=C(_0x4bcad5))in _0x4d5388?Object[_0x271141(0x216)](_0x4d5388,_0x4bcad5,{'value':_0x13d827,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d5388[_0x4bcad5]=_0x13d827,_0x4d5388;}var T=class extends _0x822ede{constructor(..._0x435b6a){var _0x548efb=_0xa1cd2;super(..._0x435b6a),w(this,_0x548efb(0x203),void 0x0),w(this,'_docsFormulaDisplayTextService',void 0x0),w(this,_0x548efb(0x23d),void 0x0),w(this,_0x548efb(0x228),void 0x0);}[_0xa1cd2(0x239)](_0x1084b7){var _0xc12fec=_0xa1cd2;this['_docsFormulaCommandService']=_0x1084b7['get'](_0x13557c),this[_0xc12fec(0x212)]=_0x1084b7['get'](_0x162eeb),this[_0xc12fec(0x23d)]=_0x1084b7[_0xc12fec(0x234)](_0x502054),this[_0xc12fec(0x228)]=_0x1084b7['get'](_0x4828d1);}[_0xa1cd2(0x1ff)](){var _0x47c377=_0xa1cd2;return this[_0x47c377(0x204)]()[_0x47c377(0x236)](_0x5f4a91=>this[_0x47c377(0x209)](_0x5f4a91[_0x47c377(0x211)]));}['getFormula'](_0x16ed19){var _0x2730bc=_0xa1cd2;return this[_0x2730bc(0x204)]()['some'](_0x17297a=>_0x17297a[_0x2730bc(0x211)]===_0x16ed19)?this['_createFormula'](_0x16ed19):null;}['getFormulaAt'](_0x4bf76d){var _0x58de7f=_0xa1cd2;let _0x32827e=this[_0x58de7f(0x204)]()[_0x58de7f(0x1f3)](_0x562d84=>_0x562d84[_0x58de7f(0x224)]<=_0x4bf76d&&_0x4bf76d<=_0x562d84[_0x58de7f(0x1f0)]);return _0x32827e?this[_0x58de7f(0x209)](_0x32827e[_0x58de7f(0x211)]):null;}[_0xa1cd2(0x22f)](){var _0x4b8f14=_0xa1cd2;let _0xbea16d=this[_0x4b8f14(0x228)][_0x4b8f14(0x230)](this['id']);if(!_0xbea16d)throw Error(_0x4b8f14(0x1f7)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x4b8f14(0x212)][_0x4b8f14(0x210)](_0xbea16d);}[_0xa1cd2(0x1f6)](_0x528362){var _0x91c0a4=_0xa1cd2;return this[_0x91c0a4(0x22a)]({'externalReferences':_0x528362[_0x91c0a4(0x23c)],'formula':_0x528362[_0x91c0a4(0x1fa)],'numberFormat':_0x528362[_0x91c0a4(0x22c)],'target':{'type':_0x91c0a4(0x21a),'startOffset':_0x528362[_0x91c0a4(0x1f4)],'endOffset':_0x528362[_0x91c0a4(0x205)]},'unitId':this['getId']()});}['_insert'](_0x1d2ab2){var _0xeeb48f=_0xa1cd2;let _0x2fd068=this[_0xeeb48f(0x203)][_0xeeb48f(0x229)](_0x1bbe95['id'],_0x1d2ab2);return _0x2fd068?this['_createFormula'](_0x2fd068[_0xeeb48f(0x211)]):null;}[_0xa1cd2(0x204)](){var _0x3bfee9=_0xa1cd2,_0x30bee6,_0x267c0e;let _0x5d0e8a=this['_docsFormulaModel'][_0x3bfee9(0x1ff)](this[_0x3bfee9(0x20f)]());return(_0x30bee6=(_0x267c0e=this['getBody']('')[_0x3bfee9(0x225)])==null?void 0x0:_0x267c0e['filter'](_0x4463f0=>_0x404cdf(_0x4463f0)&&_0x5d0e8a[_0x4463f0[_0x3bfee9(0x211)]]!=null))==null?[]:_0x30bee6;}[_0xa1cd2(0x209)](_0x3bcd64){var _0x2b5bbb=_0xa1cd2;return this[_0x2b5bbb(0x1f1)][_0x2b5bbb(0x201)](b,this[_0x2b5bbb(0x20f)](),_0x3bcd64);}};_0x822ede[_0xa1cd2(0x208)](T);var E=class extends _0x1e14e2{constructor(..._0x4793d2){super(..._0x4793d2),w(this,'_docsFormulaCommandService',void 0x0);}['_initialize'](_0x17a338){var _0x231846=_0xa1cd2;this['_docsFormulaCommandService']=_0x17a338[_0x231846(0x234)](_0x13557c);}['insertFormula'](_0x5c690d,_0x1c4980,_0x1d3b73={}){var _0x134514=_0xa1cd2;return this[_0x134514(0x22a)](_0x5c690d,_0x1c4980,_0x1d3b73);}[_0xa1cd2(0x1fc)](_0x262c9d,_0x2978c8={}){var _0x4b4a00=_0xa1cd2;return this[_0x4b4a00(0x22a)]('end',_0x262c9d,_0x2978c8);}[_0xa1cd2(0x22a)](_0x48a93f,_0x6e61d7,_0x4a7325){var _0x7ecfde=_0xa1cd2;if(this[_0x7ecfde(0x1fe)]())return null;let _0x5d79e1={'externalReferences':_0x4a7325['externalReferences'],'formula':_0x6e61d7,'numberFormat':_0x4a7325[_0x7ecfde(0x22c)],'target':{'type':_0x7ecfde(0x215),'paragraphId':this[_0x7ecfde(0x20f)](),'position':_0x48a93f},'unitId':this[_0x7ecfde(0x20d)][_0x7ecfde(0x20f)]()},_0x1dcd5c=this[_0x7ecfde(0x203)][_0x7ecfde(0x229)](_0x1bbe95['id'],_0x5d79e1);return _0x1dcd5c?this[_0x7ecfde(0x1f1)]['createInstance'](b,this[_0x7ecfde(0x20d)][_0x7ecfde(0x20f)](),_0x1dcd5c['rangeId']):null;}};_0x1e14e2[_0xa1cd2(0x208)](E);var D=class extends _0x5b71fe{constructor(..._0x1d2e76){super(..._0x1d2e76),w(this,'_docsFormulaCommandService',void 0x0);}[_0xa1cd2(0x239)](_0x2f2f8d){var _0x248b13=_0xa1cd2;this[_0x248b13(0x203)]=_0x2f2f8d[_0x248b13(0x234)](_0x13557c);}[_0xa1cd2(0x226)](_0x61a754,_0x3c875e={}){var _0x9251da=_0xa1cd2;let {endOffset:_0x53335d,segmentId:_0x1dd35c,startOffset:_0x49378b}=this[_0x9251da(0x222)]();return _0x1dd35c?null:this[_0x9251da(0x22a)](_0x49378b,_0x53335d,_0x61a754,_0x3c875e);}[_0xa1cd2(0x22a)](_0x28c5a7,_0x56e6e9,_0x44339b,_0x5b64d2){var _0x44bd6c=_0xa1cd2;let _0x39716e={'externalReferences':_0x5b64d2[_0x44bd6c(0x23c)],'formula':_0x44339b,'numberFormat':_0x5b64d2[_0x44bd6c(0x22c)],'target':{'type':'range','startOffset':_0x28c5a7,'endOffset':_0x56e6e9},'unitId':this[_0x44bd6c(0x20d)][_0x44bd6c(0x20f)]()},_0x1487a1=this[_0x44bd6c(0x203)][_0x44bd6c(0x229)](_0x1bbe95['id'],_0x39716e);return _0x1487a1?this[_0x44bd6c(0x1f1)][_0x44bd6c(0x201)](b,this[_0x44bd6c(0x20d)]['getId'](),_0x1487a1[_0x44bd6c(0x211)]):null;}};_0x5b71fe[_0xa1cd2(0x208)](D);export{b as FDocumentFormula};
1
+ var _0x133101=_0x2244;(function(_0x51647b,_0x2a87d4){var _0x5404d8=_0x2244,_0x2b9653=_0x51647b();while(!![]){try{var _0x354a8e=parseInt(_0x5404d8(0x14a))/0x1*(-parseInt(_0x5404d8(0x165))/0x2)+-parseInt(_0x5404d8(0x16f))/0x3+parseInt(_0x5404d8(0x176))/0x4*(-parseInt(_0x5404d8(0x136))/0x5)+parseInt(_0x5404d8(0x160))/0x6*(-parseInt(_0x5404d8(0x180))/0x7)+-parseInt(_0x5404d8(0x162))/0x8*(parseInt(_0x5404d8(0x170))/0x9)+-parseInt(_0x5404d8(0x14d))/0xa*(parseInt(_0x5404d8(0x146))/0xb)+parseInt(_0x5404d8(0x152))/0xc;if(_0x354a8e===_0x2a87d4)break;else _0x2b9653['push'](_0x2b9653['shift']());}catch(_0x1857e3){_0x2b9653['push'](_0x2b9653['shift']());}}}(_0x2015,0xdb4e6));import{ConvertDocFormulaToTextCommand as _0x41ff34,DocFormulaDisplayTextService as _0x45e7a7,DocFormulaModel as _0x2472e3,DocFormulaService as _0x2c6bd6,InsertDocFormulaCommand as _0x966776,RemoveDocFormulaCommand as _0x4d8ed7,ReplaceDocFormulaWithTextCommand as _0x2353c8,SetDocFormulaNumberFormatCommand as _0x32654e,UpdateDocFormulaCommand as _0x44c1dd,isDocFormulaRange as _0x594c47}from'@univerjs-pro/docs-formula';import{ICommandService as _0x269ffc,IResourceLoaderService as _0x405d32,IUniverInstanceService as _0x4041c4,Inject as _0x2874bb,UniverInstanceType as _0x400561}from'@univerjs/core';import{FDocument as _0x46eb6b,FDocumentParagraph as _0x3aae64,FDocumentTextRange as _0x296e28}from'@univerjs/docs/facade';function v(_0x1cf129,_0x14d033){return function(_0x4da9a5,_0x247519){_0x14d033(_0x4da9a5,_0x247519,_0x1cf129);};}function _0x2015(){var _0x30b31b=['remove','getFormulaAt','_getCompleteRanges','syncExecuteCommand','66494376xQkfus','_document','_unitId','getSnapshot','insertFormula','customRanges','_model','endIndex','startOffset','numberFormat','_getCustomRange','object','getSegmentId','_rangeId','9318YmObRK','length','16Kjddrp','setNumberFormat','_docsFormulaCommandService','24074iovtBk','_docsFormulaDisplayTextService','convertToText','getFormula','defineProperty','describe','_insert','replaceWithFormula','call','get','10239mxxoIY','65997LGzpDp','_injector','constructor','getFormulas','_docsFormulaModel','saveUnit','66608otTPhI','symbol','_createFormula','extend','getUnit','formula','Document\x20','replaceWithText','filter','degradeDocumentData','4053YSPdJF','_commandService','saveFormulaDisplayTextSnapshot','end','endOffset','range','update','rangeId','getResult','appendFormula','510hQQlTw','UNIVER_DOC','function','_service','paragraph','createInstance','_initialize','getId','body','startIndex','getOwnPropertyDescriptor','_docsFormulaResourceLoaderService','find','decorate','externalReferences','getConfig','11nvsegg','toPrimitive','getRange','prototype','139IMuyXI','string','some','3540070TieAFo'];_0x2015=function(){return _0x30b31b;};return _0x2015();}function y(_0x57999f,_0x2b82b7,_0x3290e9,_0x3e4d98){var _0xe80f33=_0x2244,_0x1b77a2=arguments[_0xe80f33(0x161)],_0x178a5f=_0x1b77a2<0x3?_0x2b82b7:_0x3e4d98===null?_0x3e4d98=Object[_0xe80f33(0x140)](_0x2b82b7,_0x3290e9):_0x3e4d98,_0x14d058;if(typeof Reflect==_0xe80f33(0x15d)&&typeof Reflect[_0xe80f33(0x143)]==_0xe80f33(0x138))_0x178a5f=Reflect[_0xe80f33(0x143)](_0x57999f,_0x2b82b7,_0x3290e9,_0x3e4d98);else{for(var _0x4ec2de=_0x57999f[_0xe80f33(0x161)]-0x1;_0x4ec2de>=0x0;_0x4ec2de--)(_0x14d058=_0x57999f[_0x4ec2de])&&(_0x178a5f=(_0x1b77a2<0x3?_0x14d058(_0x178a5f):_0x1b77a2>0x3?_0x14d058(_0x2b82b7,_0x3290e9,_0x178a5f):_0x14d058(_0x2b82b7,_0x3290e9))||_0x178a5f);}return _0x1b77a2>0x3&&_0x178a5f&&Object[_0xe80f33(0x169)](_0x2b82b7,_0x3290e9,_0x178a5f),_0x178a5f;}let b=class{constructor(_0x198a91,_0x27c5fe,_0x240013,_0x3e7193,_0x18f473,_0x293e0e){var _0xda714e=_0x2244;this[_0xda714e(0x154)]=_0x198a91,this['_rangeId']=_0x27c5fe,this[_0xda714e(0x12d)]=_0x240013,this[_0xda714e(0x158)]=_0x3e7193,this[_0xda714e(0x139)]=_0x18f473,this['_univerInstanceService']=_0x293e0e;}[_0x133101(0x13d)](){var _0x5346af=_0x133101;return this[_0x5346af(0x15f)];}[_0x133101(0x148)](){var _0x4b8d12=_0x133101;let _0x58fe07=this[_0x4b8d12(0x15c)]();return _0x58fe07?{'endOffset':_0x58fe07[_0x4b8d12(0x159)]+0x1,'rangeId':_0x58fe07[_0x4b8d12(0x133)],'startOffset':_0x58fe07[_0x4b8d12(0x13f)]}:null;}['getFormula'](){var _0x38f029=_0x133101,_0x3a73f6;return((_0x3a73f6=this[_0x38f029(0x158)][_0x38f029(0x168)](this[_0x38f029(0x154)],this[_0x38f029(0x15f)]))==null?void 0x0:_0x3a73f6[_0x38f029(0x17b)])??'';}[_0x133101(0x145)](){var _0x46cd71=_0x133101;return this[_0x46cd71(0x158)][_0x46cd71(0x168)](this['_unitId'],this[_0x46cd71(0x15f)])??null;}[_0x133101(0x134)](){var _0x17dfd9=_0x133101;return this['_service'][_0x17dfd9(0x134)]({'unitId':this[_0x17dfd9(0x154)],'rangeId':this['_rangeId']})??null;}[_0x133101(0x16a)](){var _0x542b84=_0x133101;let _0x153329=this[_0x542b84(0x148)](),_0x10a5a1=this[_0x542b84(0x145)](),_0x3f8e2e=this['getResult']();return!_0x153329||!_0x10a5a1||!_0x3f8e2e?null:{..._0x153329,'config':_0x10a5a1,'formula':_0x10a5a1['formula'],'result':_0x3f8e2e,'type':_0x542b84(0x17b)};}[_0x133101(0x132)](_0x30b826){var _0x2ab634=_0x133101;return this[_0x2ab634(0x12d)]['syncExecuteCommand'](_0x44c1dd['id'],{'externalReferences':_0x30b826[_0x2ab634(0x144)],'formula':_0x30b826[_0x2ab634(0x17b)],'numberFormat':_0x30b826['numberFormat'],'rangeId':this[_0x2ab634(0x15f)],'unitId':this['_unitId']});}[_0x133101(0x163)](_0x47be5f){var _0x4cf2db=_0x133101;return this[_0x4cf2db(0x12d)][_0x4cf2db(0x151)](_0x32654e['id'],{'numberFormat':_0x47be5f,'rangeId':this['_rangeId'],'unitId':this[_0x4cf2db(0x154)]});}[_0x133101(0x14e)](){var _0x2259ea=_0x133101;return this[_0x2259ea(0x12d)][_0x2259ea(0x151)](_0x4d8ed7['id'],{'rangeId':this[_0x2259ea(0x15f)],'unitId':this[_0x2259ea(0x154)]});}[_0x133101(0x17d)](_0x23e20e){var _0x54d2d1=_0x133101;return this[_0x54d2d1(0x12d)][_0x54d2d1(0x151)](_0x2353c8['id'],{'rangeId':this['_rangeId'],'text':_0x23e20e,'unitId':this[_0x54d2d1(0x154)]});}[_0x133101(0x167)](){var _0xdf8a23=_0x133101;return this[_0xdf8a23(0x12d)]['syncExecuteCommand'](_0x41ff34['id'],{'rangeId':this[_0xdf8a23(0x15f)],'unitId':this[_0xdf8a23(0x154)]});}[_0x133101(0x15c)](){var _0x135a4b=_0x133101,_0x5338eb;let _0x2f5bb9=this['_univerInstanceService'][_0x135a4b(0x17a)](this['_unitId'],_0x400561[_0x135a4b(0x137)]);return _0x2f5bb9==null||(_0x5338eb=_0x2f5bb9[_0x135a4b(0x155)]()[_0x135a4b(0x13e)])==null||(_0x5338eb=_0x5338eb[_0x135a4b(0x157)])==null?void 0x0:_0x5338eb[_0x135a4b(0x142)](_0x252415=>_0x252415['rangeId']===this[_0x135a4b(0x15f)]&&_0x594c47(_0x252415));}};b=y([v(0x2,_0x269ffc),v(0x3,_0x2874bb(_0x2472e3)),v(0x4,_0x2874bb(_0x2c6bd6)),v(0x5,_0x4041c4)],b);function x(_0x128694){'@babel/helpers - typeof';var _0x5d9136=_0x133101;return x=typeof Symbol==_0x5d9136(0x138)&&typeof Symbol['iterator']==_0x5d9136(0x177)?function(_0x3ab038){return typeof _0x3ab038;}:function(_0x29527d){var _0x2727d6=_0x5d9136;return _0x29527d&&typeof Symbol==_0x2727d6(0x138)&&_0x29527d[_0x2727d6(0x172)]===Symbol&&_0x29527d!==Symbol[_0x2727d6(0x149)]?_0x2727d6(0x177):typeof _0x29527d;},x(_0x128694);}function S(_0x277161,_0x4e6a29){var _0x4aff5a=_0x133101;if(x(_0x277161)!=_0x4aff5a(0x15d)||!_0x277161)return _0x277161;var _0x1cb84f=_0x277161[Symbol[_0x4aff5a(0x147)]];if(_0x1cb84f!==void 0x0){var _0x3e77cb=_0x1cb84f[_0x4aff5a(0x16d)](_0x277161,_0x4e6a29||'default');if(x(_0x3e77cb)!=_0x4aff5a(0x15d))return _0x3e77cb;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4e6a29==='string'?String:Number)(_0x277161);}function C(_0x1529a9){var _0x362513=_0x133101,_0x4341bd=S(_0x1529a9,_0x362513(0x14b));return x(_0x4341bd)==_0x362513(0x177)?_0x4341bd:_0x4341bd+'';}function _0x2244(_0x476b5e,_0x356898){_0x476b5e=_0x476b5e-0x12d;var _0x201551=_0x2015();var _0x2244ac=_0x201551[_0x476b5e];return _0x2244ac;}function w(_0x81e4fd,_0x383951,_0x54d0a2){return(_0x383951=C(_0x383951))in _0x81e4fd?Object['defineProperty'](_0x81e4fd,_0x383951,{'value':_0x54d0a2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x81e4fd[_0x383951]=_0x54d0a2,_0x81e4fd;}var T=class extends _0x46eb6b{constructor(..._0x16d050){var _0x17bff2=_0x133101;super(..._0x16d050),w(this,_0x17bff2(0x164),void 0x0),w(this,_0x17bff2(0x166),void 0x0),w(this,_0x17bff2(0x174),void 0x0),w(this,_0x17bff2(0x141),void 0x0);}[_0x133101(0x13c)](_0x58b937){var _0x58bd71=_0x133101;this[_0x58bd71(0x164)]=_0x58b937[_0x58bd71(0x16e)](_0x269ffc),this['_docsFormulaDisplayTextService']=_0x58b937[_0x58bd71(0x16e)](_0x45e7a7),this[_0x58bd71(0x174)]=_0x58b937['get'](_0x2472e3),this['_docsFormulaResourceLoaderService']=_0x58b937[_0x58bd71(0x16e)](_0x405d32);}[_0x133101(0x173)](){var _0x576dd2=_0x133101;return this[_0x576dd2(0x150)]()['map'](_0x13f105=>this[_0x576dd2(0x178)](_0x13f105[_0x576dd2(0x133)]));}[_0x133101(0x168)](_0x35120b){var _0x3a3b78=_0x133101;return this[_0x3a3b78(0x150)]()[_0x3a3b78(0x14c)](_0x3b3017=>_0x3b3017[_0x3a3b78(0x133)]===_0x35120b)?this[_0x3a3b78(0x178)](_0x35120b):null;}[_0x133101(0x14f)](_0x30ac11){var _0x18b922=_0x133101;let _0x257084=this[_0x18b922(0x150)]()[_0x18b922(0x142)](_0x12b1ce=>_0x12b1ce[_0x18b922(0x13f)]<=_0x30ac11&&_0x30ac11<=_0x12b1ce[_0x18b922(0x159)]);return _0x257084?this['_createFormula'](_0x257084[_0x18b922(0x133)]):null;}[_0x133101(0x12e)](){var _0xb83ae3=_0x133101;let _0x16778a=this[_0xb83ae3(0x141)][_0xb83ae3(0x175)](this['id']);if(!_0x16778a)throw Error(_0xb83ae3(0x17c)+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0xb83ae3(0x166)][_0xb83ae3(0x17f)](_0x16778a);}[_0x133101(0x156)](_0x242133){var _0x23e207=_0x133101;return this[_0x23e207(0x16b)]({'externalReferences':_0x242133['externalReferences'],'formula':_0x242133[_0x23e207(0x17b)],'numberFormat':_0x242133['numberFormat'],'target':{'type':_0x23e207(0x131),'startOffset':_0x242133[_0x23e207(0x15a)],'endOffset':_0x242133[_0x23e207(0x130)]},'unitId':this[_0x23e207(0x13d)]()});}['_insert'](_0x5c533c){var _0x229494=_0x133101;let _0x5e0d59=this[_0x229494(0x164)][_0x229494(0x151)](_0x966776['id'],_0x5c533c);return _0x5e0d59?this[_0x229494(0x178)](_0x5e0d59[_0x229494(0x133)]):null;}[_0x133101(0x150)](){var _0x2603ed=_0x133101,_0x1fa13a;let _0x33909e=this['_docsFormulaModel'][_0x2603ed(0x173)](this[_0x2603ed(0x13d)]());return((_0x1fa13a=this['getBody']('')[_0x2603ed(0x157)])==null?void 0x0:_0x1fa13a[_0x2603ed(0x17e)](_0x56b6b1=>_0x594c47(_0x56b6b1)&&_0x33909e[_0x56b6b1['rangeId']]!=null))??[];}[_0x133101(0x178)](_0x42190a){var _0xee7eb6=_0x133101;return this[_0xee7eb6(0x171)][_0xee7eb6(0x13b)](b,this['getId'](),_0x42190a);}};_0x46eb6b[_0x133101(0x179)](T);var E=class extends _0x3aae64{constructor(..._0x301ca7){super(..._0x301ca7),w(this,'_docsFormulaCommandService',void 0x0);}[_0x133101(0x13c)](_0x117c47){var _0x25ea04=_0x133101;this[_0x25ea04(0x164)]=_0x117c47[_0x25ea04(0x16e)](_0x269ffc);}['insertFormula'](_0x5e7978,_0x3959ec,_0x44408b={}){var _0x2fd2ba=_0x133101;return this[_0x2fd2ba(0x16b)](_0x5e7978,_0x3959ec,_0x44408b);}[_0x133101(0x135)](_0x311eda,_0x23e98e={}){var _0x28d7dc=_0x133101;return this[_0x28d7dc(0x16b)](_0x28d7dc(0x12f),_0x311eda,_0x23e98e);}[_0x133101(0x16b)](_0x46fbcc,_0x8ce1d5,_0x4d3c9b){var _0x2b2011=_0x133101;if(this[_0x2b2011(0x15e)]())return null;let _0x4d0a0e={'externalReferences':_0x4d3c9b[_0x2b2011(0x144)],'formula':_0x8ce1d5,'numberFormat':_0x4d3c9b[_0x2b2011(0x15b)],'target':{'type':_0x2b2011(0x13a),'paragraphId':this['getId'](),'position':_0x46fbcc},'unitId':this['_document'][_0x2b2011(0x13d)]()},_0x26b3c2=this['_docsFormulaCommandService']['syncExecuteCommand'](_0x966776['id'],_0x4d0a0e);return _0x26b3c2?this['_injector'][_0x2b2011(0x13b)](b,this[_0x2b2011(0x153)][_0x2b2011(0x13d)](),_0x26b3c2['rangeId']):null;}};_0x3aae64[_0x133101(0x179)](E);var D=class extends _0x296e28{constructor(..._0x248145){super(..._0x248145),w(this,'_docsFormulaCommandService',void 0x0);}[_0x133101(0x13c)](_0x53ecc9){var _0x2a2818=_0x133101;this[_0x2a2818(0x164)]=_0x53ecc9[_0x2a2818(0x16e)](_0x269ffc);}[_0x133101(0x16c)](_0x206fec,_0x381d3e={}){let {endOffset:_0x365f53,segmentId:_0x193178,startOffset:_0x4683bf}=this['getRange']();return _0x193178?null:this['_insert'](_0x4683bf,_0x365f53,_0x206fec,_0x381d3e);}[_0x133101(0x16b)](_0x5ee025,_0x521268,_0x1164ff,_0x212eb4){var _0x34dd2b=_0x133101;let _0x2fd09d={'externalReferences':_0x212eb4[_0x34dd2b(0x144)],'formula':_0x1164ff,'numberFormat':_0x212eb4[_0x34dd2b(0x15b)],'target':{'type':_0x34dd2b(0x131),'startOffset':_0x5ee025,'endOffset':_0x521268},'unitId':this[_0x34dd2b(0x153)][_0x34dd2b(0x13d)]()},_0x46331b=this[_0x34dd2b(0x164)][_0x34dd2b(0x151)](_0x966776['id'],_0x2fd09d);return _0x46331b?this[_0x34dd2b(0x171)][_0x34dd2b(0x13b)](b,this[_0x34dd2b(0x153)][_0x34dd2b(0x13d)](),_0x46331b[_0x34dd2b(0x133)]):null;}};_0x296e28[_0x133101(0x179)](D);export{b as FDocumentFormula};