@univerjs-pro/docs-formula 1.0.0-alpha.8 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
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 _0x4f6fbf=_0x2954;(function(_0x642624,_0xea1d35){const _0xa811c5=_0x2954,_0x16e0dd=_0x642624();while(!![]){try{const _0x5f1cad=parseInt(_0xa811c5(0x1d0))/0x1+-parseInt(_0xa811c5(0x237))/0x2*(-parseInt(_0xa811c5(0x1e0))/0x3)+-parseInt(_0xa811c5(0x23a))/0x4+parseInt(_0xa811c5(0x211))/0x5*(-parseInt(_0xa811c5(0x1b6))/0x6)+-parseInt(_0xa811c5(0x255))/0x7+-parseInt(_0xa811c5(0x1ef))/0x8+-parseInt(_0xa811c5(0x1cc))/0x9*(-parseInt(_0xa811c5(0x238))/0xa);if(_0x5f1cad===_0xea1d35)break;else _0x16e0dd['push'](_0x16e0dd['shift']());}catch(_0x2fe612){_0x16e0dd['push'](_0x16e0dd['shift']());}}}(_0x4a54,0xcb1fb));import{FormulaCacheEligibilityService as _0x4a49c8,FormulaLastValuePersistenceService as _0x13e281,HostExternalReferenceModel as _0x10c960,UniverProFormulaEnginePlugin as _0x3b8edb,buildUpsertHostExternalReferenceMutations as _0x3007cb,collectFormulaExternalReferenceQualifiers as _0x1e38dc,getScalarFormulaResultCell as _0x4ea63e,resolveFormulaResultPresentation as _0x42aa2e,resolveHostFormulaExternalReferences as _0x25aab3,toFormulaLastValue as _0x4677a5}from'@univerjs-pro/engine-formula';import{CellValueType as _0x359b1c,CommandType as _0x54b120,CustomRangeType as _0xd7705f,DataStreamTreeTokenType as _0x32085f,DependentOn as _0x156929,Disposable as _0x31b7da,ICommandService as _0x17a79b,IConfigService as _0x430bb8,IResourceManagerService as _0x5cca76,IUndoRedoService as _0x108c62,IUniverInstanceService as _0x2f4b97,Inject as _0x2acef3,Injector as _0x4d35b9,JSONX as _0xd1312c,Plugin as _0x19285f,TextX as _0x5043cb,Tools as _0x5009bd,UniverInstanceType as _0x84701a,generateRandomId as _0x567cbf,getBodySliceForTextXAction as _0x3936fb,getCustomRangeInterval as _0x98f7fa,getParagraphContentStartOffset as _0x3d7e00,getRichTextEditPath as _0x3a85ac,merge as _0x51f985,shiftExclusiveRangeOnDelete as _0x40f2b0,shiftExclusiveRangeOnInsert as _0x3994a9,shiftInclusiveRangeOnDelete as _0x1884f3,shiftInclusiveRangeOnInsert as _0x4c9420,touchDependencies as _0x446bb5}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x53247e,DocSelectionManagerService as _0x415e0a,DocTextResolverService as _0x1f7daa,RichTextEditingMutation as _0x152a2b,UniverDocsPlugin as _0x2a1d9f}from'@univerjs/docs';function _0x4a54(){const _0x42315e=['function','number','externalReferences','@univerjs-pro/docs-formula','_registrations','CUSTOM','ERROR','PENDING','segmentId','deepClone','startIndex','object','textRuns','max','find','pushUndoRedo','parse','syncUnit','TABLE_START','formula','identity','degradeBody','_deleteRegistration','liveResult','_model','_service','references','20WwCHFO','getResult','selection','onStarting','dispose','getBody','default','getUnit','CUSTOM_BLOCK','entries','getCurrentUnitOfType','_cacheEligibilityService','registerProvider','unsupported-version','length','dataStream','UNIVER_DOC','collectMutations','updates','decorate','_syncUnit','customDecorations','resources','defineProperty','eligible','_syncScheduled','_preserveInvalid','_instanceService','resolveText','COLUMN_END','_resourceManagerService','disabled','resourceUndo','type','assign','string','customBlocks','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','2kUkkOJ','139660WbMqJk','serialize','1551016RXiAhJ','startOffset','_config','getUnitId','trigger','disposeWithMe','_docFormulaModel','isArray','removeFormula','setConfig','complete','load','endsWith','_commandService','previousDocumentData','docs-formula.command.set-number-format','slice','add','_configService','stale','accessor','_presentationChanged$','SUCCESS','_updateFormulaResult','setFormulas','_queueSync','cursorOffset','5397560PlNoqN','_loadErrors','DOC_FORMULA_PLUGIN','referenceRevision','BLOCK_START','filter','resource','tables','text','docs-formula.mutation.set-last-values','documentData','prototype','source','getRegisteredFormulas','_registrationService','success','stringify','endOffset','nextResource','_hostExternalReferenceModel','subscribe','_setPresentation','docs-formula.mutation.set-formula','asObservable','getRevision','pending','getResource','resolveFormula','unregister','docs-formula.command.insert','every','trim','get','lastValue','call','body','formulaId','_formulaService','schemaVersion','paragraph','TABLE_END','model','values','constructor','keys','_pendingUnitIds','_resources','startsWith','push','name','error','sequenceNodesBuilder','replaceDocRanges','formulas','getTextRanges','getSnapshot','numberFormat','sectionBreaks','isInteger','presentation','getFormulas','removeUnit','notifyTextChanged','pluginName','unitAdded$','iterator','previousResource','PARAGRAPH','set','redoMutation','EMPTY','toPrimitive','documentRedo','_formulaKeys','next','expectedFormula','getInstance','sort','paragraphs','unregisterUnit','start','presentationChanged$','endIndex','columnGroups','unitDisposed$','SECTION_BREAK','min','expectedReferenceRevision','assess','syncExecuteCommand','setFormula','params','DOC','docs-formula.mutation.set-resource','2117124ZzMwXg','COLUMN_GROUP_START','undoMutation','paragraphId','_rawResources','getPresentation','boolean','COLUMN_START','1.0.0-beta.1','forEach','_change$','degradeDocumentData','pattern','unitId','some','position','status','from','data','insertLength','delete','_injector','1683BnuUar','docs-formula.mutation.remove-formula','register','resourceRedo','1344174JtSUvb','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','clear','nextDocumentData','setResource','onCommandExecuted','map','BLOCK_END','_isDisposed','rangeType','document','COLUMN_GROUP_END','end','getFormula','empty','cell','802491PjCcgv','externalMutations','getFormulaValueSync','TABLE_CELL_START','MUTATION','customRanges','rangeId','symbol','blockRanges','color','getLoadError','COMMAND','expectedNumberFormat','config','packageName','6568544lADEmq','range','target','includes','univer-docs-formula','editOp','has'];_0x4a54=function(){return _0x42315e;};return _0x4a54();}import{FormulaResultStatus as _0xa56ea4,LexerTreeBuilder as _0x4b333e,OtherFormulaBizType as _0x1fd681,RegisterOtherFormulaService as _0x13ff1c}from'@univerjs/engine-formula';import{Subject as _0x3ff55e}from'rxjs';import{UniverLicensePlugin as _0x347af6}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x4f6fbf(0x1f3),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x3e34b4){const _0x3dae30=_0x4f6fbf;return!_0x3e34b4||typeof _0x3e34b4!=_0x3dae30(0x201)||!S(_0x3e34b4,['schemaVersion',_0x3dae30(0x18d)])||!('schemaVersion'in _0x3e34b4)||_0x3e34b4[_0x3dae30(0x27b)]!==0x1||!(_0x3dae30(0x18d)in _0x3e34b4)||!_0x3e34b4[_0x3dae30(0x18d)]||typeof _0x3e34b4[_0x3dae30(0x18d)]!=_0x3dae30(0x201)||Array[_0x3dae30(0x241)](_0x3e34b4[_0x3dae30(0x18d)])?!0x1:Object[_0x3dae30(0x21a)](_0x3e34b4[_0x3dae30(0x18d)])['every'](([_0x575ce8,_0x246bed])=>_0x575ce8[_0x3dae30(0x21f)]>0x0&&Pe(_0x246bed));}function Pe(_0x184980){const _0xe2888d=_0x4f6fbf;return!_0x184980||typeof _0x184980!='object'||!S(_0x184980,[_0xe2888d(0x209),_0xe2888d(0x190),'lastValue'])||!('formula'in _0x184980)||typeof _0x184980[_0xe2888d(0x209)]!=_0xe2888d(0x234)||!_0x184980[_0xe2888d(0x209)][_0xe2888d(0x274)]()||_0xe2888d(0x190)in _0x184980&&_0x184980[_0xe2888d(0x190)]!=null&&(typeof _0x184980[_0xe2888d(0x190)]!='object'||!S(_0x184980[_0xe2888d(0x190)],[_0xe2888d(0x1c2)])||!(_0xe2888d(0x1c2)in _0x184980['numberFormat'])||typeof _0x184980['numberFormat'][_0xe2888d(0x1c2)]!=_0xe2888d(0x234))?!0x1:!(_0xe2888d(0x276)in _0x184980)||_0x184980[_0xe2888d(0x276)]==null||Fe(_0x184980[_0xe2888d(0x276)]);}function Fe(_0x536d71){const _0x32cf83=_0x4f6fbf;return!_0x536d71||typeof _0x536d71!=_0x32cf83(0x201)||!S(_0x536d71,['v','t',_0x32cf83(0x1c2)])||!('v'in _0x536d71)||_0x536d71['v']!==null&&typeof _0x536d71['v']!='string'&&typeof _0x536d71['v']!=_0x32cf83(0x1f7)&&typeof _0x536d71['v']!=_0x32cf83(0x1bc)||'t'in _0x536d71&&_0x536d71['t']!=null&&!Ie(_0x536d71['t'])?!0x1:!(_0x32cf83(0x1c2)in _0x536d71)||_0x536d71[_0x32cf83(0x1c2)]==null||typeof _0x536d71[_0x32cf83(0x1c2)]==_0x32cf83(0x234);}function S(_0x1a6f97,_0xa6321d){const _0x516b73=_0x4f6fbf;let _0x3e8571=new Set(_0xa6321d);return Object['keys'](_0x1a6f97)[_0x516b73(0x273)](_0x4b5ed8=>_0x3e8571[_0x516b73(0x1f5)](_0x4b5ed8));}function Ie(_0x37c0a2){const _0x570ba5=_0x4f6fbf;return typeof _0x37c0a2=='number'&&Object[_0x570ba5(0x27f)](_0x359b1c)[_0x570ba5(0x1f2)](_0x37c0a2);}const Le=new Set([_0x32085f[_0x4f6fbf(0x1ad)],_0x32085f[_0x4f6fbf(0x208)],_0x32085f['TABLE_ROW_START'],_0x32085f[_0x4f6fbf(0x1e3)],_0x32085f['TABLE_CELL_END'],_0x32085f['TABLE_ROW_END'],_0x32085f[_0x4f6fbf(0x27d)],_0x32085f[_0x4f6fbf(0x1b7)],_0x32085f[_0x4f6fbf(0x1bd)],_0x32085f[_0x4f6fbf(0x22e)],_0x32085f[_0x4f6fbf(0x1db)],_0x32085f[_0x4f6fbf(0x259)],_0x32085f[_0x4f6fbf(0x1d7)],_0x32085f[_0x4f6fbf(0x219)]]);var C=class extends Error{constructor(){super('Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries');}};function Re(_0x2cd420){const _0x58654c=_0x4f6fbf;var _0x94e591,_0x44a1be;let _0x541e05=_0x5009bd[_0x58654c(0x1ff)](_0x2cd420[_0x58654c(0x25f)]),_0x1b53f3=j(_0x541e05),{startOffset:_0x12da56,endOffset:_0x4d3421}=We(_0x1b53f3,_0x2cd420[_0x58654c(0x23b)],_0x2cd420['endOffset']);He(_0x1b53f3,_0x12da56,_0x4d3421);let _0xd60b36=((_0x94e591=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x94e591[_0x58654c(0x25a)](_0x374dbb=>{const _0x2d66df=_0x58654c;if(!w(_0x374dbb))return!0x1;let _0x232890=_0x98f7fa(_0x374dbb);return _0x232890['endOffset']>_0x12da56&&_0x232890[_0x2d66df(0x23b)]<_0x4d3421;})[_0x58654c(0x1d6)](_0x5afd88=>_0x5afd88[_0x58654c(0x1e6)]))??[];qe(_0x1b53f3,_0x12da56,_0x4d3421,''),_0x1b53f3[_0x58654c(0x1e5)]=[...((_0x44a1be=_0x1b53f3[_0x58654c(0x1e5)])==null?void 0x0:_0x44a1be[_0x58654c(0x25a)](_0x3465b9=>!_0xd60b36[_0x58654c(0x1f2)](_0x3465b9[_0x58654c(0x1e6)])&&_0x3465b9[_0x58654c(0x1e6)]!==_0x2cd420[_0x58654c(0x1e6)]))??[],Ue(_0x2cd420[_0x58654c(0x1e6)],_0x12da56)]['sort']((_0xb510a7,_0xaca23e)=>_0xb510a7[_0x58654c(0x200)]-_0xaca23e[_0x58654c(0x200)]);let _0x3d7b7c=E(_0x2cd420[_0x58654c(0x25b)]);return _0xd60b36[_0x58654c(0x1bf)](_0x4bee5d=>{delete _0x3d7b7c['formulas'][_0x4bee5d];}),_0x3d7b7c[_0x58654c(0x18d)][_0x2cd420[_0x58654c(0x1e6)]]=_0x5009bd['deepClone'](_0x2cd420['config']),{'nextDocumentData':_0x541e05,'nextResource':_0x3d7b7c,'cursorOffset':_0x12da56+0x1};}function ze(_0x1e8c66){const _0x71457=_0x4f6fbf;var _0x193dd0,_0x783bc0;let _0x37838d=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x25f)]),_0x40db35=(_0x193dd0=j(_0x37838d)[_0x71457(0x1e5)])==null?void 0x0:_0x193dd0[_0x71457(0x204)](_0x3cfab0=>_0x3cfab0[_0x71457(0x1e6)]===_0x1e8c66['rangeId']&&w(_0x3cfab0));if(!_0x40db35||!((_0x783bc0=_0x1e8c66[_0x71457(0x25b)])!=null&&_0x783bc0[_0x71457(0x18d)][_0x1e8c66[_0x71457(0x1e6)]]))return null;let _0x299d05=E(_0x1e8c66[_0x71457(0x25b)]);return _0x299d05[_0x71457(0x18d)][_0x1e8c66['rangeId']]=_0x5009bd[_0x71457(0x1ff)](_0x1e8c66[_0x71457(0x1ed)]),{'nextDocumentData':_0x37838d,'nextResource':_0x299d05,'cursorOffset':_0x40db35[_0x71457(0x1aa)]+0x1};}function Be(_0x23af8e){const _0x2f725f=_0x4f6fbf;let _0x5c5d58=_0x5009bd[_0x2f725f(0x1ff)](_0x23af8e[_0x2f725f(0x25f)]),_0x5f2a24=Je(_0x5c5d58,_0x23af8e[_0x2f725f(0x1e6)],_0x23af8e[_0x2f725f(0x25d)]??'');if(_0x5f2a24==null)return null;let _0x3ba75c=E(_0x23af8e[_0x2f725f(0x25b)]);return delete _0x3ba75c[_0x2f725f(0x18d)][_0x23af8e[_0x2f725f(0x1e6)]],{'nextDocumentData':_0x5c5d58,'nextResource':_0x3ba75c,'cursorOffset':_0x5f2a24};}function Ve(_0x32418b,_0x331c79){const _0x4bf123=_0x4f6fbf;var _0xb4058;let _0x5e8907=_0x5009bd[_0x4bf123(0x1ff)](_0x32418b),_0x5b5aea=_0x5e8907['body'];if(!_0x5b5aea)return _0x5e8907;let _0xd2410d=new Map(_0x331c79[_0x4bf123(0x1d6)](_0x4efe11=>[_0x4efe11[_0x4bf123(0x1e6)],_0x4efe11[_0x4bf123(0x25d)]])),_0x408c87=((_0xb4058=_0x5b5aea[_0x4bf123(0x1e5)])==null?void 0x0:_0xb4058[_0x4bf123(0x25a)](_0x3892eb=>w(_0x3892eb)&&_0xd2410d['has'](_0x3892eb['rangeId']))[_0x4bf123(0x1a5)]((_0x4e5438,_0x3cc080)=>_0x3cc080[_0x4bf123(0x200)]-_0x4e5438[_0x4bf123(0x200)]))??[];for(let _0x5b888c of _0x408c87)Je(_0x5e8907,_0x5b888c[_0x4bf123(0x1e6)],_0xd2410d[_0x4bf123(0x275)](_0x5b888c['rangeId'])??'');return _0x5e8907;}function w(_0x3a2263){const _0x1e0f51=_0x4f6fbf;var _0x476355;return(_0x3a2263==null?void 0x0:_0x3a2263[_0x1e0f51(0x1d9)])===_0xd7705f[_0x1e0f51(0x1fb)]&&_0x3a2263['wholeEntity']===!0x0&&((_0x476355=_0x3a2263['properties'])==null?void 0x0:_0x476355['kind'])===_0x1e0f51(0x1f3);}function T(_0x24ccdf,_0x47139d){const _0x3399c7=_0x4f6fbf;var _0x24f333;return _0x24ccdf==null||(_0x24f333=_0x24ccdf['customRanges'])==null?void 0x0:_0x24f333[_0x3399c7(0x204)](_0x5efb1b=>_0x5efb1b[_0x3399c7(0x1e6)]===_0x47139d&&w(_0x5efb1b));}function He(_0xc8aad3,_0x26e80d,_0x2fc235){const _0x2d62cf=_0x4f6fbf;if(_0x26e80d===_0x2fc235){if(Le[_0x2d62cf(0x1f5)](_0xc8aad3['dataStream'][_0x26e80d]))throw new C();return;}for(let _0x3b1735=_0x26e80d;_0x3b1735<_0x2fc235;_0x3b1735++)if(_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]===_0x32085f[_0x2d62cf(0x19b)]||Le['has'](_0xc8aad3[_0x2d62cf(0x220)][_0x3b1735]))throw new C();}function Ue(_0x43adeb,_0xf0b9e4){const _0x1c8611=_0x4f6fbf;return{'startIndex':_0xf0b9e4,'endIndex':_0xf0b9e4,'rangeId':_0x43adeb,'rangeType':_0xd7705f[_0x1c8611(0x1fb)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x5a23c0){return _0x5a23c0?_0x5009bd['deepClone'](_0x5a23c0):b();}function We(_0x3b22d8,_0x18157e,_0x4bbcab){const _0x287758=_0x4f6fbf;let _0x4a3033=Ke(_0x3b22d8),_0x2e9bd7=_0x18157e??_0x4a3033,_0x32148c=_0x4bbcab??_0x2e9bd7;return{'startOffset':Ge(Math['min'](_0x2e9bd7,_0x32148c),_0x4a3033),'endOffset':Ge(Math[_0x287758(0x203)](_0x2e9bd7,_0x32148c),_0x4a3033)};}function Ge(_0x598dba,_0x4f92f5){const _0x17417e=_0x4f6fbf;return Math[_0x17417e(0x203)](0x0,Math[_0x17417e(0x1ae)](_0x598dba,_0x4f92f5));}function Ke(_0x5c1145){const _0x4f0748=_0x4f6fbf;return _0x5c1145[_0x4f0748(0x220)][_0x4f0748(0x246)](''+_0x32085f['PARAGRAPH']+_0x32085f['SECTION_BREAK'])?Math[_0x4f0748(0x203)](0x0,_0x5c1145[_0x4f0748(0x220)]['length']-0x2):_0x5c1145[_0x4f0748(0x220)]['endsWith'](_0x32085f['SECTION_BREAK'])?Math['max'](0x0,_0x5c1145['dataStream'][_0x4f0748(0x21f)]-0x1):_0x5c1145[_0x4f0748(0x220)]['length'];}function qe(_0x59a4dc,_0x442822,_0x1fd8c2,_0x26c4fb){_0x1fd8c2>_0x442822&&Xe(_0x59a4dc,_0x442822,_0x1fd8c2),Ye(_0x59a4dc,_0x442822,_0x26c4fb);}function Je(_0x428dc2,_0x4a2edd,_0x4e6412){const _0x22a44a=_0x4f6fbf;var _0x32f839,_0x343abc;let _0x342872=j(_0x428dc2),_0x32332f=(_0x32f839=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x32f839['find'](_0xf95006=>_0xf95006[_0x22a44a(0x1e6)]===_0x4a2edd&&w(_0xf95006));if(!_0x32332f)return null;let _0x47f11f=_0x98f7fa(_0x32332f);return qe(_0x342872,_0x47f11f[_0x22a44a(0x23b)],_0x47f11f[_0x22a44a(0x266)],_0x4e6412),_0x342872['customRanges']=(_0x343abc=_0x342872[_0x22a44a(0x1e5)])==null?void 0x0:_0x343abc[_0x22a44a(0x25a)](_0x52674d=>_0x52674d[_0x22a44a(0x1e6)]!==_0x4a2edd),_0x47f11f[_0x22a44a(0x23b)]+_0x4e6412[_0x22a44a(0x21f)];}function Ye(_0x12c189,_0x341000,_0x5deca6){const _0x3d5d99=_0x4f6fbf;_0x5deca6&&(_0x12c189[_0x3d5d99(0x220)]=''+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](0x0,_0x341000)+_0x5deca6+_0x12c189[_0x3d5d99(0x220)][_0x3d5d99(0x24a)](_0x341000),Ze(_0x12c189,_0x341000,_0x5deca6[_0x3d5d99(0x21f)]));}function Xe(_0x540787,_0x1375d8,_0x49d527){const _0x129bfd=_0x4f6fbf;let _0x2c751b=_0x49d527-_0x1375d8;_0x540787[_0x129bfd(0x220)]=''+_0x540787[_0x129bfd(0x220)][_0x129bfd(0x24a)](0x0,_0x1375d8)+_0x540787[_0x129bfd(0x220)]['slice'](_0x49d527),Qe(_0x540787,_0x1375d8,_0x2c751b);}function Ze(_0x2269b6,_0x238246,_0x328933){const _0x3135c4=_0x4f6fbf;_0x2269b6[_0x3135c4(0x1a6)]=D(_0x2269b6[_0x3135c4(0x1a6)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x191)]=D(_0x2269b6[_0x3135c4(0x191)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x235)]=D(_0x2269b6[_0x3135c4(0x235)],_0x238246,_0x328933),_0x2269b6['textRuns']=$e(_0x2269b6[_0x3135c4(0x202)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x25c)]=et(_0x2269b6['tables'],_0x238246,_0x328933),_0x2269b6['columnGroups']=k(_0x2269b6[_0x3135c4(0x1ab)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e5)]=k(_0x2269b6[_0x3135c4(0x1e5)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x226)]=k(_0x2269b6[_0x3135c4(0x226)],_0x238246,_0x328933),_0x2269b6[_0x3135c4(0x1e8)]=k(_0x2269b6[_0x3135c4(0x1e8)],_0x238246,_0x328933);}function Qe(_0x14dba0,_0xd08de5,_0x1e5b6e){const _0x341a6e=_0x4f6fbf;var _0x3b6ef0,_0x4c31ff;_0x14dba0[_0x341a6e(0x1a6)]=O(_0x14dba0[_0x341a6e(0x1a6)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x191)]=O(_0x14dba0[_0x341a6e(0x191)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x235)]=O(_0x14dba0['customBlocks'],_0xd08de5,_0x1e5b6e),_0x14dba0['textRuns']=(_0x3b6ef0=tt((_0x4c31ff=_0x14dba0['textRuns'])==null?void 0x0:_0x4c31ff[_0x341a6e(0x1d6)](_0x445f23=>({..._0x445f23,'startIndex':_0x445f23['st'],'endIndex':_0x445f23['ed']})),_0xd08de5,_0x1e5b6e))==null?void 0x0:_0x3b6ef0[_0x341a6e(0x1d6)](_0x5c4cfb=>{let {startIndex:_0x24aafc,endIndex:_0x44116d,..._0x3f0a2a}=_0x5c4cfb;return{..._0x3f0a2a,'st':_0x24aafc,'ed':_0x44116d};}),_0x14dba0[_0x341a6e(0x25c)]=tt(_0x14dba0[_0x341a6e(0x25c)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1ab)]=A(_0x14dba0[_0x341a6e(0x1ab)],_0xd08de5,_0x1e5b6e),_0x14dba0[_0x341a6e(0x1e5)]=A(_0x14dba0[_0x341a6e(0x1e5)],_0xd08de5,_0x1e5b6e),_0x14dba0['customDecorations']=A(_0x14dba0[_0x341a6e(0x226)],_0xd08de5,_0x1e5b6e),_0x14dba0['blockRanges']=A(_0x14dba0['blockRanges'],_0xd08de5,_0x1e5b6e);}function D(_0x78d465,_0x3d8819,_0x2ada22){const _0x19a89e=_0x4f6fbf;return _0x78d465==null?void 0x0:_0x78d465[_0x19a89e(0x1d6)](_0x1aa610=>_0x1aa610['startIndex']>=_0x3d8819?{..._0x1aa610,'startIndex':_0x1aa610[_0x19a89e(0x200)]+_0x2ada22}:_0x1aa610);}function O(_0x25e5dc,_0x3eca54,_0x34f649){const _0x4e13d1=_0x4f6fbf;let _0xe75554=_0x3eca54+_0x34f649;return _0x25e5dc==null?void 0x0:_0x25e5dc[_0x4e13d1(0x1d6)](_0x5547ff=>_0x5547ff[_0x4e13d1(0x200)]>=_0x3eca54&&_0x5547ff[_0x4e13d1(0x200)]<_0xe75554?null:_0x5547ff[_0x4e13d1(0x200)]>=_0xe75554?{..._0x5547ff,'startIndex':_0x5547ff[_0x4e13d1(0x200)]-_0x34f649}:_0x5547ff)[_0x4e13d1(0x25a)](_0x1ece29=>_0x1ece29!=null);}function $e(_0xba0856,_0x5f33a4,_0x34307f){const _0x2ddc48=_0x4f6fbf;return _0xba0856==null?void 0x0:_0xba0856[_0x2ddc48(0x1d6)](_0x1d1d07=>_0x1d1d07['st']>=_0x5f33a4?{..._0x1d1d07,'st':_0x1d1d07['st']+_0x34307f,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07['ed']>_0x5f33a4?{..._0x1d1d07,'ed':_0x1d1d07['ed']+_0x34307f}:_0x1d1d07);}function k(_0x5b926e,_0x375611,_0x38cea8){const _0x5ea0b8=_0x4f6fbf;return _0x5b926e==null?void 0x0:_0x5b926e[_0x5ea0b8(0x1d6)](_0x55dfe6=>_0x4c9420(_0x55dfe6,_0x375611,_0x38cea8));}function et(_0x50877a,_0x20a746,_0x4dbaf1){const _0x273a76=_0x4f6fbf;return _0x50877a==null?void 0x0:_0x50877a[_0x273a76(0x1d6)](_0x30eb79=>_0x3994a9(_0x30eb79,_0x20a746,_0x4dbaf1));}function A(_0x47a5d3,_0x48891e,_0x15b595){return _0x47a5d3==null?void 0x0:_0x47a5d3['map'](_0x2cd407=>_0x1884f3(_0x2cd407,_0x48891e,_0x15b595))['filter'](_0x228e06=>_0x228e06!=null);}function tt(_0x4d14f5,_0x57c7e9,_0x57caef){return _0x4d14f5==null?void 0x0:_0x4d14f5['map'](_0x591868=>_0x40f2b0(_0x591868,_0x57c7e9,_0x57caef))['filter'](_0x1fc113=>_0x1fc113!=null);}function j(_0x28db63){const _0x44da8d=_0x4f6fbf;if(!_0x28db63[_0x44da8d(0x278)])throw Error(_0x44da8d(0x236));return _0x28db63[_0x44da8d(0x278)];}function M(_0xa76fe8){'@babel/helpers - typeof';const _0x27cd80=_0x4f6fbf;return M=typeof Symbol==_0x27cd80(0x1f6)&&typeof Symbol[_0x27cd80(0x199)]==_0x27cd80(0x1e7)?function(_0x1af0da){return typeof _0x1af0da;}:function(_0xd01203){const _0x4f6265=_0x27cd80;return _0xd01203&&typeof Symbol==_0x4f6265(0x1f6)&&_0xd01203[_0x4f6265(0x280)]===Symbol&&_0xd01203!==Symbol[_0x4f6265(0x260)]?_0x4f6265(0x1e7):typeof _0xd01203;},M(_0xa76fe8);}function nt(_0x56d852,_0x6aeaea){const _0x2f97e2=_0x4f6fbf;if(M(_0x56d852)!=_0x2f97e2(0x201)||!_0x56d852)return _0x56d852;var _0x3faaab=_0x56d852[Symbol[_0x2f97e2(0x19f)]];if(_0x3faaab!==void 0x0){var _0x41e97c=_0x3faaab[_0x2f97e2(0x277)](_0x56d852,_0x6aeaea||_0x2f97e2(0x217));if(M(_0x41e97c)!='object')return _0x41e97c;throw TypeError(_0x2f97e2(0x1d1));}return(_0x6aeaea===_0x2f97e2(0x234)?String:Number)(_0x56d852);}function rt(_0x260bb0){const _0x2aa2be=_0x4f6fbf;var _0x40659d=nt(_0x260bb0,'string');return M(_0x40659d)==_0x2aa2be(0x1e7)?_0x40659d:_0x40659d+'';}function N(_0x2d4945,_0x1d8eef,_0x4e6f27){const _0x442684=_0x4f6fbf;return(_0x1d8eef=rt(_0x1d8eef))in _0x2d4945?Object[_0x442684(0x228)](_0x2d4945,_0x1d8eef,{'value':_0x4e6f27,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2d4945[_0x1d8eef]=_0x4e6f27,_0x2d4945;}var P=class extends _0x31b7da{constructor(..._0x4e3f7c){const _0x2f7838=_0x4f6fbf;super(..._0x4e3f7c),N(this,_0x2f7838(0x186),new Map()),N(this,_0x2f7838(0x1ba),new Map()),N(this,_0x2f7838(0x256),new Map()),N(this,_0x2f7838(0x1c0),new _0x3ff55e()),N(this,'change$',this[_0x2f7838(0x1c0)][_0x2f7838(0x26c)]());}[_0x4f6fbf(0x1dd)](_0x4abe52,_0x19ff96){const _0x553282=_0x4f6fbf;var _0x3c7bf8;let _0x5ed942=(_0x3c7bf8=this[_0x553282(0x186)][_0x553282(0x275)](_0x4abe52))==null?void 0x0:_0x3c7bf8[_0x553282(0x18d)][_0x19ff96];return _0x5ed942?_0x5009bd[_0x553282(0x1ff)](_0x5ed942):void 0x0;}[_0x4f6fbf(0x194)](_0x3ec31d){const _0x145e20=_0x4f6fbf;var _0x48e563;return _0x5009bd[_0x145e20(0x1ff)](((_0x48e563=this[_0x145e20(0x186)][_0x145e20(0x275)](_0x3ec31d))==null?void 0x0:_0x48e563[_0x145e20(0x18d)])??{});}[_0x4f6fbf(0x26f)](_0x412d9a){const _0x328c48=_0x4f6fbf;let _0x5eaf02=this[_0x328c48(0x186)][_0x328c48(0x275)](_0x412d9a);return _0x5eaf02?_0x5009bd[_0x328c48(0x1ff)](_0x5eaf02):void 0x0;}[_0x4f6fbf(0x1b2)](_0x10dce6,_0x375f12,_0x21f518){const _0x203429=_0x4f6fbf;return this[_0x203429(0x252)](_0x10dce6,{[_0x375f12]:_0x21f518});}[_0x4f6fbf(0x1d4)](_0x5a2967,_0x11830c){const _0x228796=_0x4f6fbf;return this['_loadErrors'][_0x228796(0x1f5)](_0x5a2967)||!x(_0x11830c)?!0x1:(this['_resources'][_0x228796(0x19c)](_0x5a2967,_0x5009bd[_0x228796(0x1ff)](_0x11830c)),this[_0x228796(0x1c0)]['next']({'unitId':_0x5a2967}),!0x0);}[_0x4f6fbf(0x252)](_0x11bfa9,_0x186616){const _0x37d9c5=_0x4f6fbf;if(this[_0x37d9c5(0x256)]['has'](_0x11bfa9)||!Object[_0x37d9c5(0x281)](_0x186616)[_0x37d9c5(0x21f)]||!x({'schemaVersion':0x1,'formulas':_0x186616}))return!0x1;let _0x2b0550=this[_0x37d9c5(0x186)][_0x37d9c5(0x275)](_0x11bfa9)??b(),_0x128f85=_0x5009bd[_0x37d9c5(0x1ff)](_0x2b0550);return Object[_0x37d9c5(0x233)](_0x128f85[_0x37d9c5(0x18d)],_0x5009bd[_0x37d9c5(0x1ff)](_0x186616)),this[_0x37d9c5(0x186)]['set'](_0x11bfa9,_0x128f85),this[_0x37d9c5(0x1c0)][_0x37d9c5(0x1a2)]({'unitId':_0x11bfa9,'rangeIds':Object[_0x37d9c5(0x281)](_0x186616)}),!0x0;}[_0x4f6fbf(0x242)](_0x30d3d5,_0x4a76c2){const _0x1f7905=_0x4f6fbf;if(this[_0x1f7905(0x256)][_0x1f7905(0x1f5)](_0x30d3d5))return!0x1;let _0x2ab402=this[_0x1f7905(0x186)][_0x1f7905(0x275)](_0x30d3d5);if(!(_0x2ab402!=null&&_0x2ab402[_0x1f7905(0x18d)][_0x4a76c2]))return!0x1;let _0x32c2e5=_0x5009bd[_0x1f7905(0x1ff)](_0x2ab402);return delete _0x32c2e5[_0x1f7905(0x18d)][_0x4a76c2],this[_0x1f7905(0x186)][_0x1f7905(0x19c)](_0x30d3d5,_0x32c2e5),this['_change$']['next']({'unitId':_0x30d3d5,'rangeIds':[_0x4a76c2]}),!0x0;}[_0x4f6fbf(0x245)](_0x31862c,_0x437cbd){const _0x513979=_0x4f6fbf;return _0x437cbd&&typeof _0x437cbd==_0x513979(0x201)&&_0x513979(0x27b)in _0x437cbd&&_0x437cbd['schemaVersion']!==0x1?(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,_0x513979(0x21e)),!0x1):x(_0x437cbd)?(this['_resources'][_0x513979(0x19c)](_0x31862c,_0x5009bd['deepClone'](_0x437cbd)),this[_0x513979(0x1ba)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x256)][_0x513979(0x1ca)](_0x31862c),this[_0x513979(0x1c0)][_0x513979(0x1a2)]({'unitId':_0x31862c}),!0x0):(this[_0x513979(0x22b)](_0x31862c,_0x437cbd,'invalid-resource'),!0x1);}[_0x4f6fbf(0x239)](_0x186a05){const _0x34ea94=_0x4f6fbf;let _0x2cd08f=this[_0x34ea94(0x186)][_0x34ea94(0x275)](_0x186a05);return _0x2cd08f?_0x5009bd[_0x34ea94(0x1ff)](_0x2cd08f):this['_rawResources'][_0x34ea94(0x1f5)](_0x186a05)?_0x5009bd[_0x34ea94(0x1ff)](this[_0x34ea94(0x1ba)][_0x34ea94(0x275)](_0x186a05)):b();}[_0x4f6fbf(0x1ea)](_0x5f4820){const _0xa516f2=_0x4f6fbf;return this[_0xa516f2(0x256)][_0xa516f2(0x275)](_0x5f4820);}[_0x4f6fbf(0x195)](_0x487c7a){const _0x18f04f=_0x4f6fbf;this[_0x18f04f(0x186)]['delete'](_0x487c7a),this[_0x18f04f(0x1ba)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x256)][_0x18f04f(0x1ca)](_0x487c7a),this[_0x18f04f(0x1c0)][_0x18f04f(0x1a2)]({'unitId':_0x487c7a});}[_0x4f6fbf(0x215)](){const _0x478b95=_0x4f6fbf;this[_0x478b95(0x186)][_0x478b95(0x1d2)](),this[_0x478b95(0x1ba)][_0x478b95(0x1d2)](),this[_0x478b95(0x256)][_0x478b95(0x1d2)](),this['_change$']['complete'](),super[_0x478b95(0x215)]();}[_0x4f6fbf(0x22b)](_0x1f9401,_0x4fd209,_0x3f12aa){const _0x4554e5=_0x4f6fbf;this[_0x4554e5(0x186)]['delete'](_0x1f9401),this[_0x4554e5(0x1ba)]['set'](_0x1f9401,_0x5009bd['deepClone'](_0x4fd209)),this['_loadErrors']['set'](_0x1f9401,_0x3f12aa),this[_0x4554e5(0x1c0)][_0x4554e5(0x1a2)]({'unitId':_0x1f9401});}};let it=function(_0x37d957){const _0x2ba963=_0x4f6fbf;return _0x37d957[_0x2ba963(0x19e)]=_0x2ba963(0x1de),_0x37d957[_0x2ba963(0x1fd)]=_0x2ba963(0x26e),_0x37d957[_0x2ba963(0x250)]='success',_0x37d957['ERROR']=_0x2ba963(0x18a),_0x37d957;}({});function F(_0x48d28a,_0x4c1267){return function(_0x460ff6,_0x42bb57){_0x4c1267(_0x460ff6,_0x42bb57,_0x48d28a);};}function I(_0x4a534b,_0x5288fc,_0x4b784f,_0x285269){const _0x2d4b29=_0x4f6fbf;var _0x7fe339=arguments['length'],_0x344cd4=_0x7fe339<0x3?_0x5288fc:_0x285269===null?_0x285269=Object['getOwnPropertyDescriptor'](_0x5288fc,_0x4b784f):_0x285269,_0x1cd98a;if(typeof Reflect==_0x2d4b29(0x201)&&typeof Reflect[_0x2d4b29(0x224)]==_0x2d4b29(0x1f6))_0x344cd4=Reflect[_0x2d4b29(0x224)](_0x4a534b,_0x5288fc,_0x4b784f,_0x285269);else{for(var _0x6335fe=_0x4a534b[_0x2d4b29(0x21f)]-0x1;_0x6335fe>=0x0;_0x6335fe--)(_0x1cd98a=_0x4a534b[_0x6335fe])&&(_0x344cd4=(_0x7fe339<0x3?_0x1cd98a(_0x344cd4):_0x7fe339>0x3?_0x1cd98a(_0x5288fc,_0x4b784f,_0x344cd4):_0x1cd98a(_0x5288fc,_0x4b784f))||_0x344cd4);}return _0x7fe339>0x3&&_0x344cd4&&Object[_0x2d4b29(0x228)](_0x5288fc,_0x4b784f,_0x344cd4),_0x344cd4;}let L=class extends _0x31b7da{constructor(_0x61dd4e,_0x2f85ad,_0x1c6603){const _0x13d8a9=_0x4f6fbf;super(),this[_0x13d8a9(0x20e)]=_0x61dd4e,this[_0x13d8a9(0x263)]=_0x2f85ad,this['_hostExternalReferenceModel']=_0x1c6603,N(this,_0x13d8a9(0x1fa),new Map()),N(this,'_formulaKeys',new Map()),N(this,_0x13d8a9(0x24f),new _0x3ff55e()),N(this,_0x13d8a9(0x1a9),this['_presentationChanged$']['asObservable']()),this[_0x13d8a9(0x23f)](this[_0x13d8a9(0x263)]['formulaResult$']['subscribe'](_0x5d62aa=>{for(let _0x786e3a of Object['values'](_0x5d62aa))for(let _0x2fa587 of Object['values'](_0x786e3a))_0x2fa587['forEach'](_0x59aaab=>this['_updateFormulaResult'](_0x59aaab));}));}['syncUnit'](_0x3628d5){const _0x31c429=_0x4f6fbf;var _0x45fdcc;let _0x30d2cc=_0x3628d5[_0x31c429(0x23d)](),_0x59da12=((_0x45fdcc=_0x3628d5[_0x31c429(0x18f)]()['body'])==null||(_0x45fdcc=_0x45fdcc[_0x31c429(0x1e5)])==null?void 0x0:_0x45fdcc[_0x31c429(0x25a)](w))??[],_0x3ef9be=this[_0x31c429(0x20e)][_0x31c429(0x194)](_0x30d2cc),_0x1f9acc=new Set();for(let _0x2f2274 of _0x59da12){let _0x4f8aec=_0x3ef9be[_0x2f2274[_0x31c429(0x1e6)]];_0x4f8aec&&(_0x1f9acc[_0x31c429(0x24b)](R(_0x30d2cc,_0x2f2274[_0x31c429(0x1e6)])),this[_0x31c429(0x1ce)]({'unitId':_0x30d2cc,'rangeId':_0x2f2274['rangeId']},_0x4f8aec));}for(let _0x331425 of Array[_0x31c429(0x1c7)](this[_0x31c429(0x1fa)][_0x31c429(0x27f)]()))_0x331425[_0x31c429(0x1c3)]===_0x30d2cc&&!_0x1f9acc[_0x31c429(0x1f5)](R(_0x331425['unitId'],_0x331425[_0x31c429(0x1e6)]))&&this[_0x31c429(0x271)](_0x331425);}[_0x4f6fbf(0x1ce)](_0x16d436,_0x312629){const _0x4bc2c6=_0x4f6fbf;let _0x52878b=R(_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436[_0x4bc2c6(0x1e6)]),_0x1e92af=this[_0x4bc2c6(0x1fa)]['get'](_0x52878b),_0x470f14=this[_0x4bc2c6(0x268)]['getRevision'](_0x16d436[_0x4bc2c6(0x1c3)]);if(_0x1e92af&&_0x1e92af[_0x4bc2c6(0x1ed)][_0x4bc2c6(0x209)]===_0x312629['formula']&&_0x1e92af[_0x4bc2c6(0x258)]===_0x470f14){_0x1e92af['config']=_0x312629;let _0x33484b=_0x1e92af[_0x4bc2c6(0x279)]?this['_registrationService'][_0x4bc2c6(0x1e2)](_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x1c3)],_0x1e92af[_0x4bc2c6(0x279)])??void 0x0:void 0x0;_0x1e92af[_0x4bc2c6(0x20d)]=_0x33484b,this['_setPresentation'](_0x52878b,z(_0x312629,_0x33484b));return;}_0x1e92af!=null&&_0x1e92af[_0x4bc2c6(0x279)]&&this[_0x4bc2c6(0x20c)](_0x1e92af);let _0x50b8cd={..._0x16d436,'config':_0x312629,'referenceRevision':_0x470f14,'presentation':z(_0x312629,void 0x0)};if(this[_0x4bc2c6(0x1fa)][_0x4bc2c6(0x19c)](_0x52878b,_0x50b8cd),!_0x312629[_0x4bc2c6(0x209)][_0x4bc2c6(0x274)]())return;let _0x1d6f40=this['_registrationService']['registerFormulaWithRange'](_0x16d436[_0x4bc2c6(0x1c3)],_0x16d436['unitId'],_0x312629[_0x4bc2c6(0x209)],void 0x0,{'rangeId':_0x16d436['rangeId']},_0x1fd681[_0x4bc2c6(0x1b4)],_0x16d436[_0x4bc2c6(0x1e6)]);_0x50b8cd[_0x4bc2c6(0x279)]=_0x1d6f40,this[_0x4bc2c6(0x1a1)][_0x4bc2c6(0x19c)](_0x1d6f40,_0x52878b);}[_0x4f6fbf(0x271)](_0x3f20f0){const _0x2f1f1b=_0x4f6fbf;let _0x5ed15b=R(_0x3f20f0['unitId'],_0x3f20f0[_0x2f1f1b(0x1e6)]),_0x122d55=this['_registrations'][_0x2f1f1b(0x275)](_0x5ed15b);_0x122d55&&(this[_0x2f1f1b(0x20c)](_0x122d55),this[_0x2f1f1b(0x1fa)]['delete'](_0x5ed15b));}[_0x4f6fbf(0x1a7)](_0x55507e){const _0x193183=_0x4f6fbf;for(let _0x5c4a0c of Array['from'](this['_registrations'][_0x193183(0x27f)]()))_0x5c4a0c['unitId']===_0x55507e&&this[_0x193183(0x271)](_0x5c4a0c);}[_0x4f6fbf(0x1bb)](_0x3067e2){const _0x354f69=_0x4f6fbf;var _0x41d9ea;return(_0x41d9ea=this[_0x354f69(0x1fa)]['get'](R(_0x3067e2[_0x354f69(0x1c3)],_0x3067e2[_0x354f69(0x1e6)])))==null?void 0x0:_0x41d9ea[_0x354f69(0x193)];}[_0x4f6fbf(0x212)](_0x323fa2){const _0x407a20=_0x4f6fbf;let _0x5298a4=this[_0x407a20(0x1fa)][_0x407a20(0x275)](R(_0x323fa2[_0x407a20(0x1c3)],_0x323fa2[_0x407a20(0x1e6)]));return _0x5298a4?B(_0x5298a4):void 0x0;}[_0x4f6fbf(0x262)](){const _0x556ef4=_0x4f6fbf;return Array[_0x556ef4(0x1c7)](this['_registrations']['values'](),_0x44f77f=>({'identity':{'unitId':_0x44f77f['unitId'],'rangeId':_0x44f77f['rangeId']},'config':_0x44f77f['config'],'referenceRevision':_0x44f77f[_0x556ef4(0x258)],..._0x44f77f['liveResult']?{'liveResult':_0x44f77f['liveResult']}:null}));}[_0x4f6fbf(0x215)](){const _0x3d6e9e=_0x4f6fbf;for(let _0x1beb96 of this[_0x3d6e9e(0x1fa)]['values']())this['_deleteRegistration'](_0x1beb96);this[_0x3d6e9e(0x1fa)]['clear'](),this[_0x3d6e9e(0x1a1)][_0x3d6e9e(0x1d2)](),this['_presentationChanged$'][_0x3d6e9e(0x244)](),super[_0x3d6e9e(0x215)]();}[_0x4f6fbf(0x251)](_0x3913b3){const _0x1e1a02=_0x4f6fbf;let _0x597c15=this[_0x1e1a02(0x1a1)]['get'](_0x3913b3[_0x1e1a02(0x279)]),_0x42416c=_0x597c15?this[_0x1e1a02(0x1fa)]['get'](_0x597c15):void 0x0;!_0x597c15||!_0x42416c||(_0x42416c[_0x1e1a02(0x20d)]=_0x3913b3,this[_0x1e1a02(0x26a)](_0x597c15,z(_0x42416c[_0x1e1a02(0x1ed)],_0x3913b3)));}[_0x4f6fbf(0x26a)](_0x31df09,_0x44edfb){const _0x43bb91=_0x4f6fbf;var _0x35c93c,_0x58abf2;let _0x55c5ca=this[_0x43bb91(0x1fa)][_0x43bb91(0x275)](_0x31df09);if(!_0x55c5ca||at(_0x55c5ca['presentation'],_0x44edfb))return;let _0x4c7f38=_0x55c5ca[_0x43bb91(0x193)],_0x95b55=B(_0x55c5ca);_0x55c5ca['presentation']=_0x44edfb,this[_0x43bb91(0x24f)][_0x43bb91(0x1a2)]({'unitId':_0x55c5ca['unitId'],'rangeId':_0x55c5ca[_0x43bb91(0x1e6)],'presentation':_0x44edfb,'previousPresentation':_0x4c7f38,'result':B(_0x55c5ca),'previousResult':{..._0x95b55,..._0x4c7f38,'value':(_0x35c93c=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x35c93c['v'],'valueType':((_0x58abf2=_0x4c7f38[_0x43bb91(0x1df)])==null?void 0x0:_0x58abf2['t'])??void 0x0}});}[_0x4f6fbf(0x20c)](_0x4f36e2){const _0x4da46c=_0x4f6fbf;_0x4f36e2[_0x4da46c(0x279)]&&(this[_0x4da46c(0x263)]['deleteFormula'](_0x4f36e2[_0x4da46c(0x1c3)],_0x4f36e2[_0x4da46c(0x1c3)],[_0x4f36e2[_0x4da46c(0x279)]]),this['_formulaKeys'][_0x4da46c(0x1ca)](_0x4f36e2[_0x4da46c(0x279)]));}};L=I([F(0x0,_0x2acef3(P)),F(0x1,_0x2acef3(_0x13ff1c)),F(0x2,_0x2acef3(_0x10c960))],L);function R(_0x58f1d6,_0x49206a){return _0x58f1d6+'\x00'+_0x49206a;}function z(_0x50bcdf,_0x46e716){return _0x42aa2e({'numberFormat':_0x50bcdf['numberFormat'],'lastValue':_0x50bcdf['lastValue'],'result':_0x46e716});}function B(_0x39b239){const _0x51163b=_0x4f6fbf;var _0x53f904,_0xdcb372,_0x1f2f38;let _0x11e8c2=_0x39b239['presentation'],_0x56e1bf=_0x39b239['config']['formula'][_0x51163b(0x274)]()?_0x11e8c2['stale']||_0x11e8c2[_0x51163b(0x1df)]==null?_0x51163b(0x26e):((_0x53f904=_0x39b239[_0x51163b(0x20d)])==null?void 0x0:_0x53f904[_0x51163b(0x1c6)])===_0xa56ea4[_0x51163b(0x1fc)]?'error':_0x51163b(0x264):_0x51163b(0x1de);return{..._0x11e8c2,'status':_0x56e1bf,'value':(_0xdcb372=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0xdcb372['v'],'valueType':((_0x1f2f38=_0x11e8c2[_0x51163b(0x1df)])==null?void 0x0:_0x1f2f38['t'])??void 0x0};}function at(_0x46de42,_0x105086){const _0x5d6e2c=_0x4f6fbf;var _0x2fa9d2,_0x4365b3,_0x40c266,_0x6f78c6;return _0x46de42[_0x5d6e2c(0x25d)]===_0x105086[_0x5d6e2c(0x25d)]&&_0x46de42[_0x5d6e2c(0x1e9)]===_0x105086[_0x5d6e2c(0x1e9)]&&_0x46de42['pattern']===_0x105086[_0x5d6e2c(0x1c2)]&&_0x46de42['source']===_0x105086[_0x5d6e2c(0x261)]&&_0x46de42[_0x5d6e2c(0x24d)]===_0x105086[_0x5d6e2c(0x24d)]&&((_0x2fa9d2=_0x46de42['cell'])==null?void 0x0:_0x2fa9d2['t'])===((_0x4365b3=_0x105086['cell'])==null?void 0x0:_0x4365b3['t'])&&Object['is']((_0x40c266=_0x46de42[_0x5d6e2c(0x1df)])==null?void 0x0:_0x40c266['v'],(_0x6f78c6=_0x105086[_0x5d6e2c(0x1df)])==null?void 0x0:_0x6f78c6['v']);}const ot={'id':_0x4f6fbf(0x26b),'type':_0x54b120['MUTATION'],'handler':(_0x204bad,_0x213e4c)=>!(_0x213e4c!=null&&_0x213e4c[_0x4f6fbf(0x1c3)])||!_0x213e4c[_0x4f6fbf(0x1e6)]||!_0x213e4c['config']?!0x1:_0x204bad[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1b2)](_0x213e4c[_0x4f6fbf(0x1c3)],_0x213e4c['rangeId'],_0x213e4c[_0x4f6fbf(0x1ed)])},st={'id':_0x4f6fbf(0x1cd),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0x45e125,_0x162caa)=>!(_0x162caa!=null&&_0x162caa[_0x4f6fbf(0x1c3)])||!_0x162caa['rangeId']?!0x1:_0x45e125['get'](P)[_0x4f6fbf(0x242)](_0x162caa[_0x4f6fbf(0x1c3)],_0x162caa[_0x4f6fbf(0x1e6)])},V={'id':_0x4f6fbf(0x1b5),'type':_0x54b120['MUTATION'],'handler':(_0x374b44,_0x100684)=>!(_0x100684!=null&&_0x100684['unitId'])||!_0x100684[_0x4f6fbf(0x25b)]?!0x1:_0x374b44[_0x4f6fbf(0x275)](P)[_0x4f6fbf(0x1d4)](_0x100684[_0x4f6fbf(0x1c3)],_0x100684[_0x4f6fbf(0x25b)])},H={'id':_0x4f6fbf(0x25e),'type':_0x54b120[_0x4f6fbf(0x1e4)],'handler':(_0xdca892,_0xd345f4)=>{const _0x18d233=_0x4f6fbf;if(!(_0xd345f4!=null&&_0xd345f4[_0x18d233(0x1c3)])||!_0xd345f4['updates'][_0x18d233(0x21f)])return!0x1;let _0xa1f684=_0xdca892['get'](P),_0x51e22d=_0xdca892[_0x18d233(0x275)](_0x10c960),_0x5b79ad=_0xa1f684['getResource'](_0xd345f4[_0x18d233(0x1c3)]);if(!_0x5b79ad)return!0x1;let _0xb826d7=_0x5009bd[_0x18d233(0x1ff)](_0x5b79ad),_0x3d9d97=!0x1;for(let _0x276f92 of _0xd345f4[_0x18d233(0x223)]){var _0x589757,_0x50d19b,_0x136ad6,_0x50709e;let _0x2d9dc7=_0xb826d7[_0x18d233(0x18d)][_0x276f92['rangeId']];!_0x2d9dc7||_0x2d9dc7[_0x18d233(0x209)]!==_0x276f92[_0x18d233(0x1a3)]||((_0x589757=_0x2d9dc7[_0x18d233(0x190)])==null?void 0x0:_0x589757[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x1ec)]||_0x51e22d[_0x18d233(0x26d)](_0xd345f4[_0x18d233(0x1c3)])!==_0x276f92[_0x18d233(0x1af)]||(((_0x50d19b=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50d19b['v'])!==_0x276f92[_0x18d233(0x276)]['v']||((_0x136ad6=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x136ad6['t'])!==_0x276f92[_0x18d233(0x276)]['t']||((_0x50709e=_0x2d9dc7[_0x18d233(0x276)])==null?void 0x0:_0x50709e[_0x18d233(0x1c2)])!==_0x276f92[_0x18d233(0x276)][_0x18d233(0x1c2)])&&(_0x2d9dc7['lastValue']=_0x5009bd[_0x18d233(0x1ff)](_0x276f92[_0x18d233(0x276)]),_0x3d9d97=!0x0);}return!_0x3d9d97||_0xa1f684[_0x18d233(0x1d4)](_0xd345f4[_0x18d233(0x1c3)],_0xb826d7);}},U={'id':_0x4f6fbf(0x272),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x497e3e,_0x148eaf)=>{const _0x58c822=_0x4f6fbf;if(!(_0x148eaf!=null&&_0x148eaf[_0x58c822(0x209)][_0x58c822(0x274)]()))return!0x1;let _0x520505=q(_0x497e3e,_0x148eaf[_0x58c822(0x1c3)],'');if(!_0x520505)return!0x1;let _0xdc7397=ft(_0x148eaf[_0x58c822(0x1f1)],_0x520505['body'],dt(_0x497e3e,_0x520505[_0x58c822(0x1c3)]));if(!_0xdc7397)return!0x1;let _0x9ecf4d=pt(_0x497e3e,_0x520505['unitId'],_0x148eaf[_0x58c822(0x209)],_0x148eaf['externalReferences']??[]);if(!_0x9ecf4d)return!0x1;let _0x411619=mt(_0x520505['body'],_0x520505[_0x58c822(0x27e)],_0x520505[_0x58c822(0x1c3)]),_0x5ce0a0=ht({'documentData':_0x520505[_0x58c822(0x25f)],'resource':_0x520505[_0x58c822(0x25b)],'rangeId':_0x411619,'config':{'formula':_0x148eaf[_0x58c822(0x209)],..._0x148eaf['numberFormat']?{'numberFormat':_0x148eaf[_0x58c822(0x190)]}:null},'startOffset':_0xdc7397['startOffset'],'endOffset':_0xdc7397['endOffset']});if(!_0x5ce0a0)return!0x1;let _0x4d1f62=_0x3007cb(_0x497e3e,_0x520505['unitId'],_0x9ecf4d);return!_0x4d1f62||!J({'accessor':_0x497e3e,'document':_0x520505[_0x58c822(0x1da)],'unitId':_0x520505[_0x58c822(0x1c3)],'trigger':U['id'],'rangeId':_0x411619,'previousResource':_0x520505[_0x58c822(0x25b)],'nextResource':_0x5ce0a0['nextResource'],'previousDocumentData':_0x520505['documentData'],'nextDocumentData':_0x5ce0a0[_0x58c822(0x1d3)],'cursorOffset':_0x5ce0a0[_0x58c822(0x254)],'externalMutations':_0x4d1f62})?!0x1:{'rangeId':_0x411619,'startOffset':_0x5ce0a0[_0x58c822(0x254)]-0x1,'endOffset':_0x5ce0a0[_0x58c822(0x254)]};}},W={'id':'docs-formula.command.update','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x776d37,_0x51b77a)=>{const _0x2fc63f=_0x4f6fbf;if(!(_0x51b77a!=null&&_0x51b77a[_0x2fc63f(0x1e6)])||!_0x51b77a[_0x2fc63f(0x209)]['trim']())return!0x1;let _0x5bb46c=q(_0x776d37,_0x51b77a[_0x2fc63f(0x1c3)],''),_0x18801=_0x5bb46c==null?void 0x0:_0x5bb46c[_0x2fc63f(0x27e)]['getFormula'](_0x5bb46c[_0x2fc63f(0x1c3)],_0x51b77a['rangeId']),_0x48444f=_0x5bb46c?T(_0x5bb46c[_0x2fc63f(0x25f)][_0x2fc63f(0x278)],_0x51b77a[_0x2fc63f(0x1e6)]):void 0x0;if(!_0x5bb46c||!_0x18801||!_0x48444f)return!0x1;let _0x2185b2=pt(_0x776d37,_0x5bb46c['unitId'],_0x51b77a[_0x2fc63f(0x209)],_0x51b77a[_0x2fc63f(0x1f8)]??[]);if(!_0x2185b2)return!0x1;let _0x1cd9ca=_0x3007cb(_0x776d37,_0x5bb46c[_0x2fc63f(0x1c3)],_0x2185b2);if(!_0x1cd9ca)return!0x1;let _0x2dab58=Ct(_0x5bb46c[_0x2fc63f(0x25b)]);return _0x2dab58['formulas'][_0x51b77a['rangeId']]={'formula':_0x51b77a[_0x2fc63f(0x209)],..._0x51b77a[_0x2fc63f(0x190)]?{'numberFormat':_0x51b77a[_0x2fc63f(0x190)]}:_0x18801['numberFormat']?{'numberFormat':_0x18801[_0x2fc63f(0x190)]}:null},J({'accessor':_0x776d37,'document':_0x5bb46c[_0x2fc63f(0x1da)],'unitId':_0x5bb46c['unitId'],'trigger':W['id'],'rangeId':_0x51b77a[_0x2fc63f(0x1e6)],'previousResource':_0x5bb46c[_0x2fc63f(0x25b)],'nextResource':_0x2dab58,'cursorOffset':_0x48444f[_0x2fc63f(0x1aa)]+0x1,'externalMutations':_0x1cd9ca});}},G={'id':_0x4f6fbf(0x249),'type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0xc776df,_0x3a4272)=>{const _0x28839b=_0x4f6fbf;if(!(_0x3a4272!=null&&_0x3a4272[_0x28839b(0x1e6)]))return!0x1;let _0x3e9660=q(_0xc776df,_0x3a4272[_0x28839b(0x1c3)],''),_0x332d8e=_0x3e9660==null?void 0x0:_0x3e9660[_0x28839b(0x27e)][_0x28839b(0x1dd)](_0x3e9660[_0x28839b(0x1c3)],_0x3a4272[_0x28839b(0x1e6)]),_0x2d9e40=_0x3e9660?T(_0x3e9660[_0x28839b(0x25f)][_0x28839b(0x278)],_0x3a4272[_0x28839b(0x1e6)]):void 0x0;if(!_0x3e9660||!_0x332d8e||!_0x2d9e40)return!0x1;let _0x2fd01e=Ct(_0x3e9660[_0x28839b(0x25b)]);return _0x2fd01e[_0x28839b(0x18d)][_0x3a4272['rangeId']]={..._0x332d8e,..._0x3a4272[_0x28839b(0x190)]?{'numberFormat':_0x3a4272['numberFormat']}:null},_0x3a4272['numberFormat']||delete _0x2fd01e['formulas'][_0x3a4272['rangeId']][_0x28839b(0x190)],J({'accessor':_0xc776df,'document':_0x3e9660[_0x28839b(0x1da)],'unitId':_0x3e9660[_0x28839b(0x1c3)],'trigger':G['id'],'rangeId':_0x3a4272[_0x28839b(0x1e6)],'previousResource':_0x3e9660['resource'],'nextResource':_0x2fd01e,'cursorOffset':_0x2d9e40['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x2cdb50,_0x572ab1)=>ut(_0x2cdb50,_0x572ab1,'',K['id'])},ct={'id':'docs-formula.command.replace-with-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x1392e2,_0x27f65f)=>ut(_0x1392e2,_0x27f65f,(_0x27f65f==null?void 0x0:_0x27f65f[_0x4f6fbf(0x25d)])??'',ct['id'])},lt={'id':'docs-formula.command.convert-to-text','type':_0x54b120[_0x4f6fbf(0x1eb)],'handler':(_0x50c63a,_0x32fa5e)=>{const _0x2059b3=_0x4f6fbf;if(!(_0x32fa5e!=null&&_0x32fa5e['rangeId']))return!0x1;let _0x151528=q(_0x50c63a,_0x32fa5e[_0x2059b3(0x1c3)],'');if(!_0x151528)return!0x1;let _0x1a1be8=_0x50c63a[_0x2059b3(0x275)](L)[_0x2059b3(0x212)]({'unitId':_0x151528[_0x2059b3(0x1c3)],'rangeId':_0x32fa5e[_0x2059b3(0x1e6)]});return _0x1a1be8?ut(_0x50c63a,_0x32fa5e,_0x1a1be8[_0x2059b3(0x25d)],lt['id']):!0x1;}};function ut(_0x56d2be,_0x10b1d9,_0x5aaf2a,_0x4ca40c){const _0x166931=_0x4f6fbf;if(!(_0x10b1d9!=null&&_0x10b1d9[_0x166931(0x1e6)]))return!0x1;let _0x11fdbd=q(_0x56d2be,_0x10b1d9[_0x166931(0x1c3)],'');if(!_0x11fdbd)return!0x1;let _0x501f1c=Be({'documentData':_0x11fdbd[_0x166931(0x25f)],'resource':_0x11fdbd[_0x166931(0x25b)],'rangeId':_0x10b1d9[_0x166931(0x1e6)],'text':_0x5aaf2a});return _0x501f1c?J({'accessor':_0x56d2be,'document':_0x11fdbd[_0x166931(0x1da)],'unitId':_0x11fdbd[_0x166931(0x1c3)],'trigger':_0x4ca40c,'rangeId':_0x10b1d9[_0x166931(0x1e6)],'previousResource':_0x11fdbd['resource'],'nextResource':_0x501f1c[_0x166931(0x267)],'previousDocumentData':_0x11fdbd[_0x166931(0x25f)],'nextDocumentData':_0x501f1c[_0x166931(0x1d3)],'cursorOffset':_0x501f1c['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x31eafb,_0x328a01,_0x330ba9){const _0x4a5d9c=_0x4f6fbf;if(_0x330ba9)return null;let _0x15702c=_0x31eafb['get'](_0x2f4b97),_0x178af1=(_0x328a01?_0x15702c['getUnit'](_0x328a01,_0x84701a[_0x4a5d9c(0x221)]):_0x15702c[_0x4a5d9c(0x21b)](_0x84701a[_0x4a5d9c(0x221)]))??null;if(!_0x178af1)return null;let _0x368064=_0x178af1[_0x4a5d9c(0x18f)](),_0x3400d0=_0x368064[_0x4a5d9c(0x278)];if(_0x368064[_0x4a5d9c(0x230)]||!_0x3400d0)return null;let _0x1abf1c=_0x31eafb[_0x4a5d9c(0x275)](P);return _0x1abf1c[_0x4a5d9c(0x1ea)](_0x178af1[_0x4a5d9c(0x23d)]())?null:{'document':_0x178af1,'body':_0x3400d0,'documentData':_0x368064,'model':_0x1abf1c,'resource':_0x1abf1c['getResource'](_0x178af1['getUnitId']())??b(),'unitId':_0x178af1[_0x4a5d9c(0x23d)]()};}function dt(_0x377032,_0x31fbac){const _0x80addd=_0x4f6fbf;var _0x5d69ed;return(_0x5d69ed=_0x377032['get'](_0x415e0a)[_0x80addd(0x18e)]({'subUnitId':_0x31fbac,'unitId':_0x31fbac}))==null?void 0x0:_0x5d69ed[0x0];}function ft(_0x38a6c8,_0x2adc89,_0x2e9cf4){const _0x5b85e=_0x4f6fbf;if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x27c)){var _0x4999ca;let _0x3219e5=((_0x4999ca=_0x2adc89[_0x5b85e(0x1a6)])==null?void 0x0:_0x4999ca[_0x5b85e(0x25a)](_0x3b9055=>_0x3b9055['paragraphId']===_0x38a6c8[_0x5b85e(0x1b9)]))??[];if(_0x3219e5[_0x5b85e(0x21f)]!==0x1)return null;let _0x36a49d=_0x3219e5[0x0],_0x4bd618=_0x3d7e00(_0x2adc89,_0x36a49d),_0x79391b=_0x36a49d[_0x5b85e(0x200)]-_0x4bd618,_0x4e98c2=_0x38a6c8[_0x5b85e(0x1c5)]===_0x5b85e(0x1dc)?_0x79391b:_0x38a6c8['position'];if(!Number['isInteger'](_0x4e98c2)||_0x4e98c2<0x0||_0x4e98c2>_0x79391b)return null;let _0x231df6=_0x4bd618+_0x4e98c2;return{'startOffset':_0x231df6,'endOffset':_0x231df6};}if((_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x1f0))return!Number[_0x5b85e(0x192)](_0x38a6c8['startOffset'])||!Number[_0x5b85e(0x192)](_0x38a6c8['endOffset'])?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)]),'endOffset':Math[_0x5b85e(0x203)](_0x38a6c8[_0x5b85e(0x23b)],_0x38a6c8[_0x5b85e(0x266)])};let _0x4978f9=(_0x38a6c8==null?void 0x0:_0x38a6c8[_0x5b85e(0x232)])===_0x5b85e(0x213)?_0x38a6c8[_0x5b85e(0x213)]:_0x2e9cf4;return!_0x4978f9||_0x4978f9[_0x5b85e(0x1fe)]?null:{'startOffset':Math[_0x5b85e(0x1ae)](_0x4978f9['startOffset'],_0x4978f9[_0x5b85e(0x266)]),'endOffset':Math['max'](_0x4978f9[_0x5b85e(0x23b)],_0x4978f9[_0x5b85e(0x266)])};}function pt(_0x17ca72,_0x397a1c,_0x450613,_0x532fc4){const _0xd0e8c3=_0x4f6fbf;let _0x1a30cb=_0x17ca72[_0xd0e8c3(0x275)](_0x4b333e),_0x54cef0=_0x450613[_0xd0e8c3(0x187)]('=')?_0x450613[_0xd0e8c3(0x24a)](0x1):_0x450613,_0x3e4c4b=_0x1a30cb[_0xd0e8c3(0x18b)](_0x54cef0);if(!_0x3e4c4b)return null;let _0x30bf24=_0x17ca72[_0xd0e8c3(0x275)](_0x10c960),_0x5015=_0x25aab3({'qualifiers':_0x1e38dc(_0x3e4c4b),'explicitReferences':_0x532fc4??[],'resolveBinding':_0x21553d=>_0x30bf24['resolveBinding'](_0x397a1c,_0x21553d)});return _0x5015['status']==='resolved'?_0x5015[_0xd0e8c3(0x210)]:null;}function mt(_0x419e4f,_0x19e2c3,_0x21c953){const _0x2597d1=_0x4f6fbf;var _0x481150;let _0x491d9c=_0x567cbf(0x6);for(;_0x419e4f!=null&&(_0x481150=_0x419e4f[_0x2597d1(0x1e5)])!=null&&_0x481150[_0x2597d1(0x1c4)](_0x40b5a1=>_0x40b5a1[_0x2597d1(0x1e6)]===_0x491d9c)||_0x19e2c3[_0x2597d1(0x1dd)](_0x21c953,_0x491d9c);)_0x491d9c=_0x567cbf(0x6);return _0x491d9c;}function ht(_0x5a924f){try{return Re(_0x5a924f);}catch(_0x469312){if(_0x469312 instanceof C)return null;throw _0x469312;}}function gt(_0x40d906){const _0x38eab9=_0x4f6fbf;let _0x5bbf2d=_0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]?vt(_0x40d906[_0x38eab9(0x1da)],_0x40d906['unitId'],_0x40d906[_0x38eab9(0x248)],_0x40d906['nextDocumentData'],_0x40d906[_0x38eab9(0x254)],_0x40d906['trigger']):null;return _0x40d906['previousDocumentData']&&_0x40d906[_0x38eab9(0x1d3)]&&!_0x5bbf2d?null:{'documentRedo':_0x5bbf2d,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x267)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x40d906[_0x38eab9(0x1c3)],'resource':_0x40d906[_0x38eab9(0x19a)]}}};}function _t(_0x95b682,_0x5778eb,_0x5824b0,_0x2160cd){const _0x64c243=_0x4f6fbf;_0x2160cd[_0x64c243(0x205)]({'id':_0x95b682[_0x64c243(0x23e)]+':'+_0x95b682[_0x64c243(0x1e6)],'unitID':_0x95b682['unitId'],'redoMutations':[..._0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x19d)]]:[],..._0x5778eb[_0x64c243(0x1a0)]?[_0x5778eb[_0x64c243(0x1a0)]]:[],_0x5778eb[_0x64c243(0x1cf)]],'undoMutations':[_0x5778eb[_0x64c243(0x231)],..._0x5824b0?[_0x5824b0]:[],..._0x95b682['externalMutations']['undoMutation']?[_0x95b682[_0x64c243(0x1e1)][_0x64c243(0x1b8)]]:[]]});}function J(_0xac5ff2){const _0x144e60=_0x4f6fbf;let _0x374ab0=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x17a79b),_0xa10563=_0xac5ff2['accessor'][_0x144e60(0x275)](_0x108c62),_0x197671=_0xac5ff2[_0x144e60(0x24e)][_0x144e60(0x275)](_0x415e0a),_0x227bdc=gt(_0xac5ff2);if(!_0x227bdc)return!0x1;let _0x1c4e0f=!0x1,_0x33d83b=null,_0xe61f55=!0x1;try{if(_0xac5ff2[_0x144e60(0x1e1)][_0x144e60(0x19d)]){if(!_0x374ab0[_0x144e60(0x1b1)](_0xac5ff2[_0x144e60(0x1e1)]['redoMutation']['id'],_0xac5ff2['externalMutations'][_0x144e60(0x19d)]['params']))return!0x1;_0x1c4e0f=!0x0;}if(_0x227bdc['documentRedo']){let _0xef1ab=_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1a0)]['id'],_0x227bdc['documentRedo'][_0x144e60(0x1b3)]);if(!_0xef1ab)return bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0x33d83b={'id':_0x152a2b['id'],'params':{..._0xef1ab,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x1cf)]['id'],_0x227bdc['resourceRedo'][_0x144e60(0x1b3)]))return yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),!0x1;_0xe61f55=!0x0,_t(_0xac5ff2,_0x227bdc,_0x33d83b,_0xa10563);}catch(_0x44eac3){throw _0xe61f55&&_0x374ab0[_0x144e60(0x1b1)](_0x227bdc[_0x144e60(0x231)]['id'],_0x227bdc[_0x144e60(0x231)]['params']),yt(_0x374ab0,_0x33d83b),bt(_0x374ab0,_0xac5ff2[_0x144e60(0x1e1)],_0x1c4e0f),_0x44eac3;}return _0x197671[_0x144e60(0x18c)]([{'startOffset':_0xac5ff2[_0x144e60(0x254)],'endOffset':_0xac5ff2['cursorOffset'],'segmentId':''}],{'unitId':_0xac5ff2[_0x144e60(0x1c3)],'subUnitId':_0xac5ff2[_0x144e60(0x1c3)]},!0x1,{[_0x53247e]:!0x0}),!0x0;}function vt(_0x2e8df0,_0x4f03da,_0x5df35d,_0x1edad3,_0x336b6e,_0x260ae4){let _0x18fe95=xt(_0x5df35d,_0x1edad3,_0x3a85ac(_0x2e8df0,''));return _0x18fe95?{'id':_0x152a2b['id'],'params':{'unitId':_0x4f03da,'actions':_0x18fe95,'segmentId':'','textRanges':[{'startOffset':_0x336b6e,'endOffset':_0x336b6e,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x260ae4}}:null;}function yt(_0x779167,_0xb80bb8){const _0x115612=_0x4f6fbf;_0xb80bb8&&_0x779167[_0x115612(0x1b1)](_0xb80bb8['id'],_0xb80bb8[_0x115612(0x1b3)]);}function bt(_0x3dd89a,_0x3fed1f,_0x2f903e){const _0x336f94=_0x4f6fbf;_0x2f903e&&_0x3fed1f[_0x336f94(0x1b8)]&&_0x3dd89a[_0x336f94(0x1b1)](_0x3fed1f[_0x336f94(0x1b8)]['id'],_0x3fed1f[_0x336f94(0x1b8)][_0x336f94(0x1b3)]);}function xt(_0x973c37,_0x50f3fd,_0x3d3a38){const _0x5b1b25=_0x4f6fbf;let _0x5ef30b=_0x973c37['body'],_0x485c18=_0x50f3fd['body'],_0x1e622d=St(_0x5ef30b==null?void 0x0:_0x5ef30b['dataStream'],_0x485c18==null?void 0x0:_0x485c18[_0x5b1b25(0x220)]);if(!_0x1e622d||!_0x485c18)return null;let _0x1e20f9=new _0x5043cb();return _0x1e20f9['retain'](_0x1e622d[_0x5b1b25(0x1a8)]),_0x1e622d['insertLength']>0x0&&_0x1e20f9['insert'](_0x1e622d[_0x5b1b25(0x1c9)],_0x3936fb(_0x485c18,_0x1e622d['start'],_0x1e622d[_0x5b1b25(0x1a8)]+_0x1e622d['insertLength'],!0x1)),_0x1e622d['deleteLength']>0x0&&_0x1e20f9['delete'](_0x1e622d['deleteLength']),_0xd1312c[_0x5b1b25(0x1a4)]()[_0x5b1b25(0x1f4)](_0x1e20f9[_0x5b1b25(0x239)](),_0x3d3a38);}function St(_0x313fcc,_0x345efe){const _0x25b5cc=_0x4f6fbf;if(_0x313fcc==null||_0x345efe==null||_0x313fcc===_0x345efe)return null;let _0x179c81=0x0;for(;_0x179c81<_0x313fcc[_0x25b5cc(0x21f)]&&_0x179c81<_0x345efe[_0x25b5cc(0x21f)]&&_0x313fcc[_0x179c81]===_0x345efe[_0x179c81];)_0x179c81+=0x1;let _0x279c43=_0x313fcc[_0x25b5cc(0x21f)],_0x13b25c=_0x345efe[_0x25b5cc(0x21f)];for(;_0x279c43>_0x179c81&&_0x13b25c>_0x179c81&&_0x313fcc[_0x279c43-0x1]===_0x345efe[_0x13b25c-0x1];)--_0x279c43,--_0x13b25c;return{'start':_0x179c81,'deleteLength':_0x279c43-_0x179c81,'insertLength':_0x13b25c-_0x179c81};}function Ct(_0x271602){const _0x49dead=_0x4f6fbf;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object[_0x49dead(0x21a)](_0x271602['formulas'])[_0x49dead(0x1d6)](([_0x2c48db,_0x14bdad])=>[_0x2c48db,{..._0x14bdad,..._0x14bdad[_0x49dead(0x190)]?{'numberFormat':{..._0x14bdad[_0x49dead(0x190)]}}:null,..._0x14bdad[_0x49dead(0x276)]?{'lastValue':{..._0x14bdad[_0x49dead(0x276)]}}:null}]))};}let Y=class extends _0x31b7da{constructor(_0x3a74cd,_0x589688,_0x422c8f,_0x5f4511){const _0x55b9f6=_0x4f6fbf;super(),this[_0x55b9f6(0x22c)]=_0x3a74cd,this[_0x55b9f6(0x247)]=_0x589688,this['_model']=_0x422c8f,this[_0x55b9f6(0x20f)]=_0x5f4511,N(this,'_pendingUnitIds',new Set()),N(this,_0x55b9f6(0x22a),!0x1),N(this,_0x55b9f6(0x1d8),!0x1),this[_0x55b9f6(0x22c)]['getAllUnitsForType'](_0x84701a[_0x55b9f6(0x221)])[_0x55b9f6(0x1bf)](_0x321b23=>this['_service'][_0x55b9f6(0x207)](_0x321b23)),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x20e)]['change$'][_0x55b9f6(0x269)](({unitId:_0x50a077})=>this['_syncUnit'](_0x50a077))),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x198)][_0x55b9f6(0x269)](({unit:_0x10d103})=>{const _0x75da1c=_0x55b9f6;_0x10d103['type']===_0x84701a[_0x75da1c(0x221)]&&this[_0x75da1c(0x253)](_0x10d103[_0x75da1c(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x22c)][_0x55b9f6(0x1ac)][_0x55b9f6(0x269)](_0x2193aa=>{const _0x24dfa=_0x55b9f6;this[_0x24dfa(0x20f)][_0x24dfa(0x1a7)](_0x2193aa[_0x24dfa(0x23d)]());})),this[_0x55b9f6(0x23f)](this[_0x55b9f6(0x247)][_0x55b9f6(0x1d5)](_0x3099f2=>{const _0x4dcc23=_0x55b9f6;if(_0x3099f2['id']===_0x152a2b['id']&&wt(_0x3099f2[_0x4dcc23(0x1b3)])){let _0x2a2315=_0x3099f2['params'];_0x2a2315[_0x4dcc23(0x1fe)]||this[_0x4dcc23(0x225)](_0x2a2315[_0x4dcc23(0x1c3)]);}}));}[_0x4f6fbf(0x215)](){this['_isDisposed']=!0x0,super['dispose']();}['_queueSync'](_0x4fd253){const _0x44e433=_0x4f6fbf;this['_pendingUnitIds'][_0x44e433(0x24b)](_0x4fd253),!this['_syncScheduled']&&(this[_0x44e433(0x22a)]=!0x0,queueMicrotask(()=>{const _0x1e6364=_0x44e433;if(this[_0x1e6364(0x22a)]=!0x1,this['_isDisposed'])return;let _0x1d6034=Array[_0x1e6364(0x1c7)](this['_pendingUnitIds']);this[_0x1e6364(0x185)]['clear'](),_0x1d6034['forEach'](_0x5dbb03=>this[_0x1e6364(0x225)](_0x5dbb03));}));}[_0x4f6fbf(0x225)](_0x59ebe6){const _0x231c81=_0x4f6fbf;let _0x20fc3c=this[_0x231c81(0x22c)][_0x231c81(0x218)](_0x59ebe6,_0x84701a[_0x231c81(0x221)]);_0x20fc3c&&this[_0x231c81(0x20f)][_0x231c81(0x207)](_0x20fc3c);}};Y=I([F(0x0,_0x2f4b97),F(0x1,_0x17a79b),F(0x2,_0x2acef3(P)),F(0x3,_0x2acef3(L))],Y);function wt(_0xef09c0){const _0x81ba37=_0x4f6fbf;return typeof _0xef09c0=='object'&&!!_0xef09c0&&_0x81ba37(0x1c3)in _0xef09c0&&typeof _0xef09c0[_0x81ba37(0x1c3)]==_0x81ba37(0x234)&&(!('segmentId'in _0xef09c0)||_0xef09c0[_0x81ba37(0x1fe)]===void 0x0||typeof _0xef09c0[_0x81ba37(0x1fe)]==_0x81ba37(0x234));}let X=class extends _0x31b7da{constructor(_0x29741d,_0x3db2c5){const _0x437d83=_0x4f6fbf;super(),this[_0x437d83(0x22f)]=_0x29741d,this[_0x437d83(0x240)]=_0x3db2c5,this[_0x437d83(0x23f)](this['_resourceManagerService']['registerPluginResource']({'pluginName':y,'businesses':[_0x84701a[_0x437d83(0x221)]],'toJson':_0x4b0be0=>JSON[_0x437d83(0x265)](this[_0x437d83(0x240)][_0x437d83(0x239)](_0x4b0be0)),'parseJson':_0xcb6804=>JSON[_0x437d83(0x206)](_0xcb6804),'onLoad':(_0x222d68,_0x1958d0)=>{const _0x31f69d=_0x437d83;this['_docFormulaModel'][_0x31f69d(0x245)](_0x222d68,_0x1958d0);},'onUnLoad':_0x158bf1=>this[_0x437d83(0x240)][_0x437d83(0x195)](_0x158bf1)}));}};X=I([F(0x0,_0x5cca76),F(0x1,_0x2acef3(P))],X);var Tt=_0x4f6fbf(0x1f9),Et=_0x4f6fbf(0x1be);const Dt={};let Z=class extends _0x31b7da{constructor(_0x211df5,_0xced93a,_0x2316f3){const _0x5b10e7=_0x4f6fbf;super(),this['_univerInstanceService']=_0x211df5,this[_0x5b10e7(0x27a)]=_0xced93a,this[_0x5b10e7(0x23f)](_0x2316f3[_0x5b10e7(0x1ce)]({'resolve':(_0x2a809a,_0x5e4362)=>{const _0x1365fb=_0x5b10e7;var _0x15cfe5;return((_0x15cfe5=_0x5e4362[_0x1365fb(0x1e5)])==null?void 0x0:_0x15cfe5[_0x1365fb(0x25a)](w)['map'](_0x5f2138=>({'startOffset':_0x5f2138[_0x1365fb(0x200)],'endOffset':_0x5f2138['endIndex']+0x1,'text':this[_0x1365fb(0x270)](_0x2a809a,_0x5f2138['rangeId'])})))??[];}})),this['disposeWithMe'](this['_formulaService'][_0x5b10e7(0x1a9)][_0x5b10e7(0x269)](({unitId:_0x892902})=>{const _0x1b2626=_0x5b10e7;_0x2316f3[_0x1b2626(0x196)](_0x892902);}));}['resolveFormula'](_0x44392c,_0x2f12cf){const _0x554681=_0x4f6fbf;var _0x21d135;return((_0x21d135=this[_0x554681(0x27a)]['getResult']({'unitId':_0x44392c,'rangeId':_0x2f12cf}))==null?void 0x0:_0x21d135[_0x554681(0x25d)])??'';}[_0x4f6fbf(0x22d)](_0x86de3c,_0x2a3e85,_0x4f4414){const _0x4d658f=_0x4f6fbf;var _0x5d30be;let _0x407395=this['_univerInstanceService'][_0x4d658f(0x218)](_0x86de3c,_0x84701a[_0x4d658f(0x221)]),_0x1c19c4=_0x407395==null?void 0x0:_0x407395[_0x4d658f(0x216)]();if(!_0x1c19c4)return'';let _0x9f8927=_0x1c19c4[_0x4d658f(0x220)][_0x4d658f(0x24a)](_0x2a3e85,_0x4f4414),_0x4e883=((_0x5d30be=_0x1c19c4[_0x4d658f(0x1e5)])==null?void 0x0:_0x5d30be[_0x4d658f(0x25a)](_0x44c1af=>w(_0x44c1af)&&_0x44c1af[_0x4d658f(0x200)]>=_0x2a3e85&&_0x44c1af[_0x4d658f(0x1aa)]<_0x4f4414)[_0x4d658f(0x1a5)]((_0x34d89d,_0x45949d)=>_0x45949d[_0x4d658f(0x200)]-_0x34d89d[_0x4d658f(0x200)]))??[];for(let _0x2994f7 of _0x4e883){let _0x219154=_0x2994f7[_0x4d658f(0x200)]-_0x2a3e85,_0x415af0=_0x2994f7[_0x4d658f(0x1aa)]-_0x2a3e85+0x1;_0x9f8927=''+_0x9f8927[_0x4d658f(0x24a)](0x0,_0x219154)+this[_0x4d658f(0x270)](_0x86de3c,_0x2994f7[_0x4d658f(0x1e6)])+_0x9f8927[_0x4d658f(0x24a)](_0x415af0);}return _0x9f8927;}[_0x4f6fbf(0x1c1)](_0x4820e2){return Ot(_0x4820e2);}[_0x4f6fbf(0x20b)](_0x5a13e3,_0x491922,_0x106144={}){const _0x43042e=_0x4f6fbf;var _0x2b54f4;return Ve({'id':_0x5a13e3,'body':_0x491922,'documentStyle':{}},(((_0x2b54f4=_0x491922['customRanges'])==null?void 0x0:_0x2b54f4[_0x43042e(0x25a)](w))??[])[_0x43042e(0x1d6)](_0x5627e9=>({'rangeId':_0x5627e9[_0x43042e(0x1e6)],'text':_0x106144[_0x5627e9['rangeId']]??this[_0x43042e(0x270)](_0x5a13e3,_0x5627e9[_0x43042e(0x1e6)])})))[_0x43042e(0x278)]??{'dataStream':''};}};Z=I([F(0x0,_0x2f4b97),F(0x1,_0x2acef3(L)),F(0x2,_0x2acef3(_0x1f7daa))],Z);function Ot(_0x56db1a){const _0x5933a0=_0x4f6fbf;var _0xdb26db,_0xd656d6;let _0x39be67=kt(_0x56db1a),_0x457b60=Ve(_0x56db1a,(((_0xdb26db=_0x56db1a[_0x5933a0(0x278)])==null||(_0xdb26db=_0xdb26db[_0x5933a0(0x1e5)])==null?void 0x0:_0xdb26db[_0x5933a0(0x25a)](w))??[])['map'](_0x148ed3=>({'rangeId':_0x148ed3[_0x5933a0(0x1e6)],'text':At(_0x39be67==null?void 0x0:_0x39be67[_0x5933a0(0x18d)][_0x148ed3[_0x5933a0(0x1e6)]])})));return _0x457b60[_0x5933a0(0x227)]=(_0xd656d6=_0x457b60[_0x5933a0(0x227)])==null?void 0x0:_0xd656d6[_0x5933a0(0x25a)](_0x30ff69=>_0x30ff69[_0x5933a0(0x189)]!==y),_0x457b60;}function kt(_0x3aef76){const _0x3cc693=_0x4f6fbf;var _0x36bdaf;let _0x3ee909=(_0x36bdaf=_0x3aef76['resources'])==null||(_0x36bdaf=_0x36bdaf['find'](_0x39ba72=>_0x39ba72[_0x3cc693(0x189)]===_0x3cc693(0x257)))==null?void 0x0:_0x36bdaf[_0x3cc693(0x1c8)];if(_0x3ee909)try{let _0x278d4c=JSON[_0x3cc693(0x206)](_0x3ee909);return x(_0x278d4c)?_0x278d4c:void 0x0;}catch{return;}}function At(_0x16a8bf){const _0x156e40=_0x4f6fbf;return _0x16a8bf?_0x42aa2e({'lastValue':_0x16a8bf[_0x156e40(0x276)],'numberFormat':_0x16a8bf[_0x156e40(0x190)]})[_0x156e40(0x25d)]:'';}let Q=class extends _0x31b7da{constructor(_0x246c9f,_0x3ee08e,_0x82609c){const _0x4e486d=_0x4f6fbf;super(),this[_0x4e486d(0x27a)]=_0x246c9f,this[_0x4e486d(0x21c)]=_0x3ee08e,this[_0x4e486d(0x23f)](_0x82609c[_0x4e486d(0x21d)](this));}[_0x4f6fbf(0x222)](_0x3052ea){const _0x372047=_0x4f6fbf;let _0x45f49e=new Map();for(let _0xfffea7 of this[_0x372047(0x27a)][_0x372047(0x262)]()){var _0x174b59;if(!this[_0x372047(0x21c)][_0x372047(0x1b0)](_0xfffea7['config'][_0x372047(0x209)],_0xfffea7[_0x372047(0x20d)])[_0x372047(0x229)])continue;let _0x2c6bad=_0x4ea63e(_0xfffea7[_0x372047(0x20d)]),_0x3e751d=_0x2c6bad?_0x4677a5(_0x2c6bad):null;if(!_0x3e751d||jt(_0xfffea7[_0x372047(0x1ed)][_0x372047(0x276)],_0x3e751d))continue;let _0x560a30=_0x45f49e[_0x372047(0x275)](_0xfffea7[_0x372047(0x20a)][_0x372047(0x1c3)])??[];_0x560a30[_0x372047(0x188)]({'rangeId':_0xfffea7['identity']['rangeId'],'expectedFormula':_0xfffea7[_0x372047(0x1ed)][_0x372047(0x209)],'expectedNumberFormat':(_0x174b59=_0xfffea7['config'][_0x372047(0x190)])==null?void 0x0:_0x174b59[_0x372047(0x1c2)],'expectedReferenceRevision':_0xfffea7['referenceRevision'],'lastValue':_0x3e751d}),_0x45f49e[_0x372047(0x19c)](_0xfffea7['identity'][_0x372047(0x1c3)],_0x560a30);}return Array[_0x372047(0x1c7)](_0x45f49e,([_0x350635,_0x2319e8])=>({'id':H['id'],'params':{'unitId':_0x350635,'updates':_0x2319e8}}));}};Q=I([F(0x0,_0x2acef3(L)),F(0x1,_0x2acef3(_0x4a49c8)),F(0x2,_0x2acef3(_0x13e281))],Q);function jt(_0x194155,_0x4fa5f4){const _0x91ca0=_0x4f6fbf;return(_0x194155==null?void 0x0:_0x194155['v'])===_0x4fa5f4['v']&&(_0x194155==null?void 0x0:_0x194155['t'])===_0x4fa5f4['t']&&(_0x194155==null?void 0x0:_0x194155[_0x91ca0(0x1c2)])===_0x4fa5f4[_0x91ca0(0x1c2)];}let $=class extends _0x19285f{constructor(_0x3679ee=Dt,_0x5995c5,_0xe06a7c,_0x24058d){const _0x5b59f5=_0x4f6fbf;super(),this[_0x5b59f5(0x23c)]=_0x3679ee,this[_0x5b59f5(0x1cb)]=_0x5995c5,this['_commandService']=_0xe06a7c,this[_0x5b59f5(0x24c)]=_0x24058d;let {..._0x4fbac5}=_0x51f985({},Dt,this[_0x5b59f5(0x23c)]);this[_0x5b59f5(0x24c)][_0x5b59f5(0x243)]('docs-formula.config',_0x4fbac5);}[_0x4f6fbf(0x214)](){const _0x9a9932=_0x4f6fbf;this[_0x9a9932(0x1cb)]['add']([P]),this[_0x9a9932(0x1cb)]['add']([L]),this[_0x9a9932(0x1cb)]['add']([X]),this[_0x9a9932(0x1cb)]['add']([Y]),this[_0x9a9932(0x1cb)][_0x9a9932(0x24b)]([Q]),this['_injector']['add']([Z]),_0x446bb5(this[_0x9a9932(0x1cb)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x9a9932(0x1bf)](_0x48b6f4=>this[_0x9a9932(0x23f)](this['_commandService']['registerCommand'](_0x48b6f4)));}};N($,_0x4f6fbf(0x197),y),N($,_0x4f6fbf(0x1ee),Tt),N($,'version',Et),N($,_0x4f6fbf(0x232),_0x84701a[_0x4f6fbf(0x221)]),$=I([_0x156929(_0x347af6,_0x3b8edb,_0x2a1d9f),F(0x1,_0x2acef3(_0x4d35b9)),F(0x2,_0x17a79b),F(0x3,_0x430bb8)],$);function _0x2954(_0x4fcc29,_0x3ae27a){_0x4fcc29=_0x4fcc29-0x185;const _0x4a5468=_0x4a54();let _0x2954e5=_0x4a5468[_0x4fcc29];return _0x2954e5;}export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
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 _0x4e28be=_0x4d49;(function(_0xfe661f,_0x42b94b){var _0x20428d=_0x4d49,_0x8b30d1=_0xfe661f();while(!![]){try{var _0x7dfc5c=-parseInt(_0x20428d(0xbf))/0x1*(parseInt(_0x20428d(0xc9))/0x2)+parseInt(_0x20428d(0xdd))/0x3+-parseInt(_0x20428d(0xd0))/0x4+-parseInt(_0x20428d(0xda))/0x5*(-parseInt(_0x20428d(0xb6))/0x6)+parseInt(_0x20428d(0xd6))/0x7*(parseInt(_0x20428d(0xa4))/0x8)+-parseInt(_0x20428d(0xa0))/0x9*(-parseInt(_0x20428d(0xe5))/0xa)+-parseInt(_0x20428d(0xac))/0xb;if(_0x7dfc5c===_0x42b94b)break;else _0x8b30d1['push'](_0x8b30d1['shift']());}catch(_0x5db816){_0x8b30d1['push'](_0x8b30d1['shift']());}}}(_0x3963,0x8064b));function _0x3963(){var _0x115ccb=['getOwnPropertyDescriptor','endOffset','_createFormula','9725320cFLeMc','formula','getFormulas','_getCustomRange','_document','_injector','function','defineProperty','_rangeId','getConfig','6LZXilN','getFormulaAt','update','find','saveUnit','extend','describe','startIndex','range','562967UqTvbc','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_docsFormulaResourceLoaderService','getSnapshot','_commandService','prototype','_univerInstanceService','_unitId','insertFormula','_service','2FCkmuu','_insert','customRanges','numberFormat','map','syncExecuteCommand','iterator','1378892TlXyBt','rangeId','_getCompleteRanges','getRange','get','convertToText','291277xytsSG','decorate','getResult','_initialize','2549005IKycKp','string','remove','1722618NIBtjq','_docsFormulaCommandService','toPrimitive','getId','replaceWithFormula','filter','default','startOffset','1627870snBkpd','getFormula','_docsFormulaDisplayTextService','end','externalReferences','_docsFormulaModel','getUnit','paragraph','saveFormulaDisplayTextSnapshot','36lCrfbP','symbol','endIndex','_model','112StECWJ','object','getBody','length','UNIVER_DOC'];_0x3963=function(){return _0x115ccb;};return _0x3963();}import{ConvertDocFormulaToTextCommand as _0x22f059,DocFormulaDisplayTextService as _0x5dac4d,DocFormulaModel as _0x3c45d1,DocFormulaService as _0x443123,InsertDocFormulaCommand as _0xd93c8a,RemoveDocFormulaCommand as _0x2463be,ReplaceDocFormulaWithTextCommand as _0x56d891,SetDocFormulaNumberFormatCommand as _0x2555df,UpdateDocFormulaCommand as _0x159a2b,isDocFormulaRange as _0x291b33}from'@univerjs-pro/docs-formula';import{ICommandService as _0x3b22a1,IResourceLoaderService as _0x7784c8,IUniverInstanceService as _0x219ab7,Inject as _0x20f2aa,UniverInstanceType as _0x81e326}from'@univerjs/core';import{FDocument as _0x3a0dba,FDocumentParagraph as _0x277b0f,FDocumentTextRange as _0x3239ce}from'@univerjs/docs/facade';function v(_0x280af4,_0x1a2190){return function(_0x13bb37,_0x4e4987){_0x1a2190(_0x13bb37,_0x4e4987,_0x280af4);};}function y(_0x414fd2,_0x595af4,_0x322e29,_0x25610b){var _0x1ffbff=_0x4d49,_0x1709d8=arguments[_0x1ffbff(0xa7)],_0x5cc7f8=_0x1709d8<0x3?_0x595af4:_0x25610b===null?_0x25610b=Object[_0x1ffbff(0xa9)](_0x595af4,_0x322e29):_0x25610b,_0x17f427;if(typeof Reflect==_0x1ffbff(0xa5)&&typeof Reflect['decorate']==_0x1ffbff(0xb2))_0x5cc7f8=Reflect[_0x1ffbff(0xd7)](_0x414fd2,_0x595af4,_0x322e29,_0x25610b);else{for(var _0x38ec96=_0x414fd2[_0x1ffbff(0xa7)]-0x1;_0x38ec96>=0x0;_0x38ec96--)(_0x17f427=_0x414fd2[_0x38ec96])&&(_0x5cc7f8=(_0x1709d8<0x3?_0x17f427(_0x5cc7f8):_0x1709d8>0x3?_0x17f427(_0x595af4,_0x322e29,_0x5cc7f8):_0x17f427(_0x595af4,_0x322e29))||_0x5cc7f8);}return _0x1709d8>0x3&&_0x5cc7f8&&Object[_0x1ffbff(0xb3)](_0x595af4,_0x322e29,_0x5cc7f8),_0x5cc7f8;}function _0x4d49(_0x530cdc,_0x215455){_0x530cdc=_0x530cdc-0x9e;var _0x3963a1=_0x3963();var _0x4d4975=_0x3963a1[_0x530cdc];return _0x4d4975;}let b=class{constructor(_0x1515cd,_0x375851,_0x194dc0,_0x42cb12,_0x5062f4,_0x526fec){var _0x3501d3=_0x4d49;this['_unitId']=_0x1515cd,this[_0x3501d3(0xb4)]=_0x375851,this[_0x3501d3(0xc3)]=_0x194dc0,this[_0x3501d3(0xa3)]=_0x42cb12,this[_0x3501d3(0xc8)]=_0x5062f4,this[_0x3501d3(0xc5)]=_0x526fec;}[_0x4e28be(0xe0)](){var _0x40c903=_0x4e28be;return this[_0x40c903(0xb4)];}[_0x4e28be(0xd3)](){var _0x45416d=_0x4e28be;let _0x10d2f4=this[_0x45416d(0xaf)]();return _0x10d2f4?{'endOffset':_0x10d2f4['endIndex']+0x1,'rangeId':_0x10d2f4[_0x45416d(0xd1)],'startOffset':_0x10d2f4[_0x45416d(0xbd)]}:null;}[_0x4e28be(0xe6)](){var _0x38a396=_0x4e28be,_0x41614c;return((_0x41614c=this[_0x38a396(0xa3)][_0x38a396(0xe6)](this[_0x38a396(0xc6)],this[_0x38a396(0xb4)]))==null?void 0x0:_0x41614c[_0x38a396(0xad)])??'';}[_0x4e28be(0xb5)](){var _0x221806=_0x4e28be;return this[_0x221806(0xa3)][_0x221806(0xe6)](this[_0x221806(0xc6)],this[_0x221806(0xb4)])??null;}[_0x4e28be(0xd8)](){var _0x1e7fc7=_0x4e28be;return this['_service'][_0x1e7fc7(0xd8)]({'unitId':this['_unitId'],'rangeId':this['_rangeId']})??null;}[_0x4e28be(0xbc)](){var _0x53fce4=_0x4e28be;let _0x24a710=this[_0x53fce4(0xd3)](),_0x2e00f8=this[_0x53fce4(0xb5)](),_0x3e6526=this[_0x53fce4(0xd8)]();return!_0x24a710||!_0x2e00f8||!_0x3e6526?null:{..._0x24a710,'config':_0x2e00f8,'formula':_0x2e00f8[_0x53fce4(0xad)],'result':_0x3e6526,'type':_0x53fce4(0xad)};}[_0x4e28be(0xb8)](_0x279bd1){var _0x1efc1f=_0x4e28be;return this[_0x1efc1f(0xc3)][_0x1efc1f(0xce)](_0x159a2b['id'],{'externalReferences':_0x279bd1['externalReferences'],'formula':_0x279bd1[_0x1efc1f(0xad)],'numberFormat':_0x279bd1['numberFormat'],'rangeId':this[_0x1efc1f(0xb4)],'unitId':this[_0x1efc1f(0xc6)]});}['setNumberFormat'](_0x38128f){var _0x806013=_0x4e28be;return this[_0x806013(0xc3)][_0x806013(0xce)](_0x2555df['id'],{'numberFormat':_0x38128f,'rangeId':this['_rangeId'],'unitId':this[_0x806013(0xc6)]});}[_0x4e28be(0xdc)](){var _0x5c1a9d=_0x4e28be;return this[_0x5c1a9d(0xc3)]['syncExecuteCommand'](_0x2463be['id'],{'rangeId':this[_0x5c1a9d(0xb4)],'unitId':this[_0x5c1a9d(0xc6)]});}['replaceWithText'](_0xf50edc){var _0x4986c6=_0x4e28be;return this[_0x4986c6(0xc3)][_0x4986c6(0xce)](_0x56d891['id'],{'rangeId':this[_0x4986c6(0xb4)],'text':_0xf50edc,'unitId':this['_unitId']});}[_0x4e28be(0xd5)](){var _0x3ea5ab=_0x4e28be;return this[_0x3ea5ab(0xc3)][_0x3ea5ab(0xce)](_0x22f059['id'],{'rangeId':this[_0x3ea5ab(0xb4)],'unitId':this[_0x3ea5ab(0xc6)]});}[_0x4e28be(0xaf)](){var _0x19400a=_0x4e28be,_0x2ad9e1;let _0x24bcd1=this['_univerInstanceService'][_0x19400a(0xeb)](this[_0x19400a(0xc6)],_0x81e326[_0x19400a(0xa8)]);return _0x24bcd1==null||(_0x2ad9e1=_0x24bcd1[_0x19400a(0xc2)]()['body'])==null||(_0x2ad9e1=_0x2ad9e1[_0x19400a(0xcb)])==null?void 0x0:_0x2ad9e1[_0x19400a(0xb9)](_0x1c4df9=>_0x1c4df9[_0x19400a(0xd1)]===this[_0x19400a(0xb4)]&&_0x291b33(_0x1c4df9));}};b=y([v(0x2,_0x3b22a1),v(0x3,_0x20f2aa(_0x3c45d1)),v(0x4,_0x20f2aa(_0x443123)),v(0x5,_0x219ab7)],b);function x(_0x379f0e){'@babel/helpers - typeof';var _0x33f81c=_0x4e28be;return x=typeof Symbol==_0x33f81c(0xb2)&&typeof Symbol[_0x33f81c(0xcf)]=='symbol'?function(_0x3c95fe){return typeof _0x3c95fe;}:function(_0x4071fc){var _0xc65f18=_0x33f81c;return _0x4071fc&&typeof Symbol=='function'&&_0x4071fc['constructor']===Symbol&&_0x4071fc!==Symbol[_0xc65f18(0xc4)]?_0xc65f18(0xa1):typeof _0x4071fc;},x(_0x379f0e);}function S(_0x1e951a,_0x1acf72){var _0x1ca689=_0x4e28be;if(x(_0x1e951a)!=_0x1ca689(0xa5)||!_0x1e951a)return _0x1e951a;var _0x478fd1=_0x1e951a[Symbol[_0x1ca689(0xdf)]];if(_0x478fd1!==void 0x0){var _0x51a6c2=_0x478fd1['call'](_0x1e951a,_0x1acf72||_0x1ca689(0xe3));if(x(_0x51a6c2)!='object')return _0x51a6c2;throw TypeError(_0x1ca689(0xc0));}return(_0x1acf72===_0x1ca689(0xdb)?String:Number)(_0x1e951a);}function C(_0x5d1d30){var _0x16c34a=_0x4e28be,_0x1fee72=S(_0x5d1d30,_0x16c34a(0xdb));return x(_0x1fee72)==_0x16c34a(0xa1)?_0x1fee72:_0x1fee72+'';}function w(_0x3cedbe,_0xd2481c,_0x1a6e8c){var _0x44cae5=_0x4e28be;return(_0xd2481c=C(_0xd2481c))in _0x3cedbe?Object[_0x44cae5(0xb3)](_0x3cedbe,_0xd2481c,{'value':_0x1a6e8c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3cedbe[_0xd2481c]=_0x1a6e8c,_0x3cedbe;}var T=class extends _0x3a0dba{constructor(..._0x169e0b){var _0x1ab1a7=_0x4e28be;super(..._0x169e0b),w(this,_0x1ab1a7(0xde),void 0x0),w(this,_0x1ab1a7(0xe7),void 0x0),w(this,_0x1ab1a7(0xea),void 0x0),w(this,_0x1ab1a7(0xc1),void 0x0);}[_0x4e28be(0xd9)](_0x205e67){var _0x38e7c8=_0x4e28be;this['_docsFormulaCommandService']=_0x205e67[_0x38e7c8(0xd4)](_0x3b22a1),this[_0x38e7c8(0xe7)]=_0x205e67[_0x38e7c8(0xd4)](_0x5dac4d),this[_0x38e7c8(0xea)]=_0x205e67[_0x38e7c8(0xd4)](_0x3c45d1),this[_0x38e7c8(0xc1)]=_0x205e67[_0x38e7c8(0xd4)](_0x7784c8);}['getFormulas'](){var _0x206cc5=_0x4e28be;return this['_getCompleteRanges']()[_0x206cc5(0xcd)](_0xc0ab62=>this[_0x206cc5(0xab)](_0xc0ab62[_0x206cc5(0xd1)]));}['getFormula'](_0x5bd39d){var _0x453377=_0x4e28be;return this['_getCompleteRanges']()['some'](_0x1d97b5=>_0x1d97b5[_0x453377(0xd1)]===_0x5bd39d)?this[_0x453377(0xab)](_0x5bd39d):null;}[_0x4e28be(0xb7)](_0x8ddba8){var _0x1f0079=_0x4e28be;let _0x44320c=this[_0x1f0079(0xd2)]()['find'](_0x317713=>_0x317713[_0x1f0079(0xbd)]<=_0x8ddba8&&_0x8ddba8<=_0x317713[_0x1f0079(0xa2)]);return _0x44320c?this[_0x1f0079(0xab)](_0x44320c['rangeId']):null;}[_0x4e28be(0x9f)](){var _0x16b60c=_0x4e28be;let _0x2f9b82=this[_0x16b60c(0xc1)][_0x16b60c(0xba)](this['id']);if(!_0x2f9b82)throw Error('Document\x20'+this['id']+'\x20could\x20not\x20be\x20serialized.');return this[_0x16b60c(0xe7)]['degradeDocumentData'](_0x2f9b82);}[_0x4e28be(0xc7)](_0x273448){var _0x801168=_0x4e28be;return this['_insert']({'externalReferences':_0x273448[_0x801168(0xe9)],'formula':_0x273448['formula'],'numberFormat':_0x273448[_0x801168(0xcc)],'target':{'type':_0x801168(0xbe),'startOffset':_0x273448[_0x801168(0xe4)],'endOffset':_0x273448[_0x801168(0xaa)]},'unitId':this[_0x801168(0xe0)]()});}[_0x4e28be(0xca)](_0x14090a){var _0xf0aa83=_0x4e28be;let _0x3a47b8=this[_0xf0aa83(0xde)][_0xf0aa83(0xce)](_0xd93c8a['id'],_0x14090a);return _0x3a47b8?this[_0xf0aa83(0xab)](_0x3a47b8['rangeId']):null;}[_0x4e28be(0xd2)](){var _0x283512=_0x4e28be,_0x2e7a94;let _0x4cfd4f=this[_0x283512(0xea)][_0x283512(0xae)](this[_0x283512(0xe0)]());return((_0x2e7a94=this[_0x283512(0xa6)]('')[_0x283512(0xcb)])==null?void 0x0:_0x2e7a94[_0x283512(0xe2)](_0x936feb=>_0x291b33(_0x936feb)&&_0x4cfd4f[_0x936feb[_0x283512(0xd1)]]!=null))??[];}[_0x4e28be(0xab)](_0x475325){var _0x427ebd=_0x4e28be;return this['_injector']['createInstance'](b,this[_0x427ebd(0xe0)](),_0x475325);}};_0x3a0dba[_0x4e28be(0xbb)](T);var E=class extends _0x277b0f{constructor(..._0x2135e7){var _0x2190ed=_0x4e28be;super(..._0x2135e7),w(this,_0x2190ed(0xde),void 0x0);}[_0x4e28be(0xd9)](_0x3f10c5){var _0x427e9b=_0x4e28be;this['_docsFormulaCommandService']=_0x3f10c5[_0x427e9b(0xd4)](_0x3b22a1);}[_0x4e28be(0xc7)](_0x595ebf,_0x16a2b8,_0x2a0060={}){var _0x17d198=_0x4e28be;return this[_0x17d198(0xca)](_0x595ebf,_0x16a2b8,_0x2a0060);}['appendFormula'](_0x55999f,_0xeced5={}){var _0x355b97=_0x4e28be;return this[_0x355b97(0xca)](_0x355b97(0xe8),_0x55999f,_0xeced5);}['_insert'](_0x37af3a,_0x174e1f,_0x89d0d1){var _0x44232e=_0x4e28be;if(this['getSegmentId']())return null;let _0x4095fd={'externalReferences':_0x89d0d1[_0x44232e(0xe9)],'formula':_0x174e1f,'numberFormat':_0x89d0d1['numberFormat'],'target':{'type':_0x44232e(0x9e),'paragraphId':this['getId'](),'position':_0x37af3a},'unitId':this[_0x44232e(0xb0)][_0x44232e(0xe0)]()},_0x4e7a15=this[_0x44232e(0xde)][_0x44232e(0xce)](_0xd93c8a['id'],_0x4095fd);return _0x4e7a15?this[_0x44232e(0xb1)]['createInstance'](b,this[_0x44232e(0xb0)]['getId'](),_0x4e7a15[_0x44232e(0xd1)]):null;}};_0x277b0f[_0x4e28be(0xbb)](E);var D=class extends _0x3239ce{constructor(..._0x4fa4e1){var _0x348eb2=_0x4e28be;super(..._0x4fa4e1),w(this,_0x348eb2(0xde),void 0x0);}['_initialize'](_0x5d0c7d){var _0x256d73=_0x4e28be;this[_0x256d73(0xde)]=_0x5d0c7d[_0x256d73(0xd4)](_0x3b22a1);}[_0x4e28be(0xe1)](_0x488718,_0x158d30={}){var _0x333fa8=_0x4e28be;let {endOffset:_0x42d808,segmentId:_0x36c68,startOffset:_0x2d4fac}=this[_0x333fa8(0xd3)]();return _0x36c68?null:this['_insert'](_0x2d4fac,_0x42d808,_0x488718,_0x158d30);}[_0x4e28be(0xca)](_0x2e3419,_0x39496e,_0x2fb01a,_0x470988){var _0x504ca5=_0x4e28be;let _0x34bade={'externalReferences':_0x470988[_0x504ca5(0xe9)],'formula':_0x2fb01a,'numberFormat':_0x470988[_0x504ca5(0xcc)],'target':{'type':_0x504ca5(0xbe),'startOffset':_0x2e3419,'endOffset':_0x39496e},'unitId':this[_0x504ca5(0xb0)][_0x504ca5(0xe0)]()},_0x56e6fc=this[_0x504ca5(0xde)][_0x504ca5(0xce)](_0xd93c8a['id'],_0x34bade);return _0x56e6fc?this[_0x504ca5(0xb1)]['createInstance'](b,this[_0x504ca5(0xb0)][_0x504ca5(0xe0)](),_0x56e6fc[_0x504ca5(0xd1)]):null;}};_0x3239ce[_0x4e28be(0xbb)](D);export{b as FDocumentFormula};
|