@univerjs-pro/docs-formula 1.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js ADDED
@@ -0,0 +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};
@@ -0,0 +1,11 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ import type { IDocFormulaInsertCommandParams, IDocFormulaInsertCommandResult, IDocFormulaRemoveCommandParams, IDocFormulaSetNumberFormatCommandParams, IDocFormulaUpdateCommandParams } from '../common/type';
3
+ export declare const InsertDocFormulaCommand: ICommand<IDocFormulaInsertCommandParams, IDocFormulaInsertCommandResult | false>;
4
+ export declare const UpdateDocFormulaCommand: ICommand<IDocFormulaUpdateCommandParams>;
5
+ export declare const SetDocFormulaNumberFormatCommand: ICommand<IDocFormulaSetNumberFormatCommandParams>;
6
+ export declare const RemoveDocFormulaCommand: ICommand<IDocFormulaRemoveCommandParams>;
7
+ export interface IReplaceDocFormulaWithTextCommandParams extends IDocFormulaRemoveCommandParams {
8
+ text: string;
9
+ }
10
+ export declare const ReplaceDocFormulaWithTextCommand: ICommand<IReplaceDocFormulaWithTextCommandParams>;
11
+ export declare const ConvertDocFormulaToTextCommand: ICommand<IDocFormulaRemoveCommandParams>;
@@ -0,0 +1,34 @@
1
+ import type { IFormulaLastValue } from '@univerjs-pro/engine-formula';
2
+ import type { IMutation } from '@univerjs/core';
3
+ import type { IDocFormulaConfig, IDocFormulaResource } from '../common/type';
4
+ export interface ISetDocFormulaMutationParams {
5
+ unitId: string;
6
+ rangeId: string;
7
+ config: IDocFormulaConfig;
8
+ }
9
+ export interface IRemoveDocFormulaMutationParams {
10
+ unitId: string;
11
+ rangeId: string;
12
+ }
13
+ export interface ISetDocFormulaResourceMutationParams {
14
+ unitId: string;
15
+ resource: IDocFormulaResource;
16
+ }
17
+ export interface ISetDocFormulaLastValuesMutationParams {
18
+ unitId: string;
19
+ updates: readonly {
20
+ rangeId: string;
21
+ expectedFormula: string;
22
+ expectedNumberFormat?: string;
23
+ expectedReferenceRevision: number;
24
+ lastValue: IFormulaLastValue;
25
+ }[];
26
+ }
27
+ export declare const SetDocFormulaMutation: IMutation<ISetDocFormulaMutationParams>;
28
+ export declare const RemoveDocFormulaMutation: IMutation<IRemoveDocFormulaMutationParams>;
29
+ export declare const SetDocFormulaResourceMutation: IMutation<ISetDocFormulaResourceMutationParams>;
30
+ /**
31
+ * Applies derived cache values with a Formula-source compare-and-set guard.
32
+ * The mutation is intentionally excluded from user undo history.
33
+ */
34
+ export declare const SetDocFormulaLastValuesMutation: IMutation<ISetDocFormulaLastValuesMutationParams>;
@@ -0,0 +1,41 @@
1
+ import type { ICustomRange, IDocumentBody, IDocumentData } from '@univerjs/core';
2
+ import type { IDocFormulaConfig, IDocFormulaResource } from './type';
3
+ export declare class InvalidDocFormulaInsertRangeError extends Error {
4
+ constructor();
5
+ }
6
+ export interface IDocFormulaActionBuildResult {
7
+ nextDocumentData: IDocumentData;
8
+ nextResource: IDocFormulaResource;
9
+ cursorOffset: number;
10
+ }
11
+ export interface IInsertDocFormulaActionParams {
12
+ documentData: IDocumentData;
13
+ resource?: IDocFormulaResource;
14
+ rangeId: string;
15
+ config: IDocFormulaConfig;
16
+ startOffset?: number;
17
+ endOffset?: number;
18
+ }
19
+ export interface IUpdateDocFormulaActionParams {
20
+ documentData: IDocumentData;
21
+ resource?: IDocFormulaResource;
22
+ rangeId: string;
23
+ config: IDocFormulaConfig;
24
+ }
25
+ export interface IRemoveDocFormulaActionParams {
26
+ documentData: IDocumentData;
27
+ resource?: IDocFormulaResource;
28
+ rangeId: string;
29
+ text?: string;
30
+ }
31
+ export interface IDocFormulaTextReplacement {
32
+ rangeId: string;
33
+ text: string;
34
+ }
35
+ export declare function buildInsertDocFormulaActions(params: IInsertDocFormulaActionParams): IDocFormulaActionBuildResult;
36
+ export declare function buildUpdateDocFormulaActions(params: IUpdateDocFormulaActionParams): IDocFormulaActionBuildResult | null;
37
+ export declare function buildRemoveDocFormulaActions(params: IRemoveDocFormulaActionParams): IDocFormulaActionBuildResult | null;
38
+ export declare function buildDocFormulaTextProjection(documentData: IDocumentData, replacements: readonly IDocFormulaTextReplacement[]): IDocumentData;
39
+ export declare function isDocFormulaRange(range: ICustomRange | undefined | null): range is ICustomRange;
40
+ export declare function findDocFormulaRange(body: IDocumentBody | undefined, rangeId: string): ICustomRange | undefined;
41
+ export declare function assertSafeDocFormulaInsertRange(body: IDocumentBody, startOffset: number, endOffset: number): void;
@@ -0,0 +1,4 @@
1
+ export declare const DOC_FORMULA_PLUGIN = "DOC_FORMULA_PLUGIN";
2
+ export declare const DOC_FORMULA_SCHEMA_VERSION = 1;
3
+ export declare const DOC_FORMULA_CUSTOM_RANGE_KIND = "univer-docs-formula";
4
+ export declare const DOC_FORMULA_OBJECT_REPLACEMENT = "\uFFFC";
@@ -0,0 +1,6 @@
1
+ import type { IFormulaLastValue } from '@univerjs-pro/engine-formula';
2
+ import type { IDocFormulaConfig, IDocFormulaResource } from './type';
3
+ export declare function createEmptyDocFormulaResource(): IDocFormulaResource;
4
+ export declare function isDocFormulaResource(value: unknown): value is IDocFormulaResource;
5
+ export declare function isDocFormulaConfig(value: unknown): value is IDocFormulaConfig;
6
+ export declare function isFormulaLastValue(value: unknown): value is IFormulaLastValue;
@@ -0,0 +1,86 @@
1
+ import type { IFormulaLastValue, IFormulaResultPresentation, IHostExternalReference } from '@univerjs-pro/engine-formula';
2
+ import type { CellValueType, ITextRangeParam } from '@univerjs/core';
3
+ import type { DOC_FORMULA_SCHEMA_VERSION } from './const';
4
+ export interface IDocFormulaConfig {
5
+ formula: string;
6
+ numberFormat?: {
7
+ pattern: string;
8
+ };
9
+ lastValue?: IFormulaLastValue;
10
+ }
11
+ export interface IDocFormulaResource {
12
+ schemaVersion: typeof DOC_FORMULA_SCHEMA_VERSION;
13
+ formulas: Record<string, IDocFormulaConfig>;
14
+ }
15
+ export type DocFormulaResourceLoadError = 'invalid-resource' | 'unsupported-version';
16
+ export declare enum DocFormulaResultStatus {
17
+ EMPTY = "empty",
18
+ PENDING = "pending",
19
+ SUCCESS = "success",
20
+ ERROR = "error"
21
+ }
22
+ export interface IDocFormulaResult extends IFormulaResultPresentation {
23
+ status: DocFormulaResultStatus;
24
+ value: unknown;
25
+ valueType?: CellValueType;
26
+ }
27
+ /**
28
+ * Insertion target used by `InsertDocFormulaCommand`.
29
+ *
30
+ * - `paragraph` resolves a persisted `paragraphId` against the latest body.
31
+ * Numeric positions are zero-based UTF-16 offsets relative to the paragraph;
32
+ * `'end'` is the semantic append position.
33
+ * - `range` is a snapshot-relative main-body range for immediate replacement.
34
+ * - `selection` is an editor selection captured for one immediate insertion.
35
+ */
36
+ export type IDocFormulaInsertTarget = {
37
+ type: 'paragraph';
38
+ paragraphId: string;
39
+ position: 'end' | number;
40
+ } | {
41
+ type: 'range';
42
+ startOffset: number;
43
+ endOffset: number;
44
+ } | {
45
+ type: 'selection';
46
+ selection: ITextRangeParam;
47
+ };
48
+ export interface IDocFormulaInsertCommandParams {
49
+ unitId?: string;
50
+ formula: string;
51
+ numberFormat?: {
52
+ pattern: string;
53
+ };
54
+ externalReferences?: readonly IHostExternalReference[];
55
+ /**
56
+ * Stable paragraph, immediate range, or captured selection target.
57
+ *
58
+ * When omitted, the Command uses the active main-body editor selection.
59
+ */
60
+ target?: IDocFormulaInsertTarget;
61
+ }
62
+ export interface IDocFormulaInsertCommandResult {
63
+ endOffset: number;
64
+ rangeId: string;
65
+ startOffset: number;
66
+ }
67
+ export interface IDocFormulaUpdateCommandParams {
68
+ unitId?: string;
69
+ rangeId: string;
70
+ formula: string;
71
+ numberFormat?: {
72
+ pattern: string;
73
+ };
74
+ externalReferences?: readonly IHostExternalReference[];
75
+ }
76
+ export interface IDocFormulaSetNumberFormatCommandParams {
77
+ unitId?: string;
78
+ rangeId: string;
79
+ numberFormat?: {
80
+ pattern: string;
81
+ };
82
+ }
83
+ export interface IDocFormulaRemoveCommandParams {
84
+ unitId?: string;
85
+ rangeId: string;
86
+ }
@@ -0,0 +1,5 @@
1
+ export declare const DOCS_FORMULA_PLUGIN_CONFIG_KEY = "docs-formula.config";
2
+ export declare const configSymbol: unique symbol;
3
+ export interface IUniverDocsFormulaConfig {
4
+ }
5
+ export declare const defaultPluginConfig: IUniverDocsFormulaConfig;
@@ -0,0 +1,16 @@
1
+ import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
2
+ import { DocFormulaModel } from '../models/doc-formula-model';
3
+ import { DocFormulaService } from '../services/doc-formula.service';
4
+ export declare class DocFormulaLifecycleController extends Disposable {
5
+ private readonly _instanceService;
6
+ private readonly _commandService;
7
+ private readonly _model;
8
+ private readonly _service;
9
+ private readonly _pendingUnitIds;
10
+ private _syncScheduled;
11
+ private _isDisposed;
12
+ constructor(_instanceService: IUniverInstanceService, _commandService: ICommandService, _model: DocFormulaModel, _service: DocFormulaService);
13
+ dispose(): void;
14
+ private _queueSync;
15
+ private _syncUnit;
16
+ }
@@ -0,0 +1,7 @@
1
+ import { Disposable, IResourceManagerService } from '@univerjs/core';
2
+ import { DocFormulaModel } from '../models/doc-formula-model';
3
+ export declare class DocFormulaResourceController extends Disposable {
4
+ private readonly _resourceManagerService;
5
+ private readonly _docFormulaModel;
6
+ constructor(_resourceManagerService: IResourceManagerService, _docFormulaModel: DocFormulaModel);
7
+ }