@univerjs-pro/docs-formula 1.0.0-insiders.20260809-70eefdd → 1.0.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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 +10 -10
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x264b29=_0x2fc9;(function(_0x140946,_0x71ef0c){const _0x2a3adc=_0x2fc9,_0x3f873f=_0x140946();while(!![]){try{const _0x24b515=-parseInt(_0x2a3adc(0x1de))/0x1+parseInt(_0x2a3adc(0x259))/0x2+-parseInt(_0x2a3adc(0x1ea))/0x3+parseInt(_0x2a3adc(0x28c))/0x4*(-parseInt(_0x2a3adc(0x1f7))/0x5)+-parseInt(_0x2a3adc(0x211))/0x6*(-parseInt(_0x2a3adc(0x2c5))/0x7)+-parseInt(_0x2a3adc(0x1ed))/0x8*(parseInt(_0x2a3adc(0x1e5))/0x9)+-parseInt(_0x2a3adc(0x1d5))/0xa*(-parseInt(_0x2a3adc(0x22b))/0xb);if(_0x24b515===_0x71ef0c)break;else _0x3f873f['push'](_0x3f873f['shift']());}catch(_0x4870be){_0x3f873f['push'](_0x3f873f['shift']());}}}(_0x2be4,0xd8554));import{FormulaCacheEligibilityService as _0x41d6af,FormulaLastValuePersistenceService as _0x5d5f94,HostExternalReferenceModel as _0x2e7823,UniverProFormulaEnginePlugin as _0x5cc36f,buildUpsertHostExternalReferenceMutations as _0x342107,collectFormulaExternalReferenceQualifiers as _0x580023,getScalarFormulaResultCell as _0x5cb5f9,resolveFormulaResultPresentation as _0x4efc23,resolveHostFormulaExternalReferences as _0x1ed5e5,toFormulaLastValue as _0x7d98f0}from'@univerjs-pro/engine-formula';import{CellValueType as _0x4fd1a7,CommandType as _0x573856,CustomRangeType as _0x32b1b7,DataStreamTreeTokenType as _0x3bf844,DependentOn as _0x266f15,Disposable as _0x569963,ICommandService as _0x507020,IConfigService as _0x13ba27,IResourceManagerService as _0x582088,IUndoRedoService as _0xa9e7c7,IUniverInstanceService as _0x500c45,Inject as _0x1d2e55,Injector as _0x575280,JSONX as _0x5aefde,Plugin as _0x31a11d,TextX as _0x57e625,Tools as _0x93f070,UniverInstanceType as _0x3558e2,generateRandomId as _0x2cba69,getBodySliceForTextXAction as _0x13dfbc,getCustomRangeInterval as _0x36de56,getParagraphContentStartOffset as _0x3098d9,getRichTextEditPath as _0x124ec6,merge as _0x51b41b,shiftExclusiveRangeOnDelete as _0x2be142,shiftExclusiveRangeOnInsert as _0x1bb198,shiftInclusiveRangeOnDelete as _0x1d1076,shiftInclusiveRangeOnInsert as _0x16e4a6,touchDependencies as _0x49392e}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x26103c,DocSelectionManagerService as _0x5d7168,DocTextResolverService as _0x2412e8,RichTextEditingMutation as _0x5cadb9,UniverDocsPlugin as _0x53cb62}from'@univerjs/docs';import{FormulaResultStatus as _0x5a1425,LexerTreeBuilder as _0x4bf6a6,OtherFormulaBizType as _0x12891e,RegisterOtherFormulaService as _0x49ca84}from'@univerjs/engine-formula';import{Subject as _0x56902b}from'rxjs';import{UniverLicensePlugin as _0x2a9b80}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x264b29(0x293),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x516340){const _0x1273d3=_0x264b29;return!_0x516340||typeof _0x516340!=_0x1273d3(0x1cb)||!S(_0x516340,[_0x1273d3(0x1fb),'formulas'])||!(_0x1273d3(0x1fb)in _0x516340)||_0x516340['schemaVersion']!==0x1||!(_0x1273d3(0x2ab)in _0x516340)||!_0x516340[_0x1273d3(0x2ab)]||typeof _0x516340[_0x1273d3(0x2ab)]!=_0x1273d3(0x1cb)||Array[_0x1273d3(0x229)](_0x516340['formulas'])?!0x1:Object[_0x1273d3(0x202)](_0x516340[_0x1273d3(0x2ab)])['every'](([_0x293049,_0x3182dd])=>_0x293049['length']>0x0&&Pe(_0x3182dd));}function Pe(_0x1b4e11){const _0x59762f=_0x264b29;return!_0x1b4e11||typeof _0x1b4e11!=_0x59762f(0x1cb)||!S(_0x1b4e11,[_0x59762f(0x221),'numberFormat','lastValue'])||!('formula'in _0x1b4e11)||typeof _0x1b4e11[_0x59762f(0x221)]!=_0x59762f(0x1c5)||!_0x1b4e11['formula']['trim']()||_0x59762f(0x26d)in _0x1b4e11&&_0x1b4e11['numberFormat']!=null&&(typeof _0x1b4e11[_0x59762f(0x26d)]!=_0x59762f(0x1cb)||!S(_0x1b4e11[_0x59762f(0x26d)],[_0x59762f(0x1e3)])||!(_0x59762f(0x1e3)in _0x1b4e11[_0x59762f(0x26d)])||typeof _0x1b4e11[_0x59762f(0x26d)][_0x59762f(0x1e3)]!=_0x59762f(0x1c5))?!0x1:!('lastValue'in _0x1b4e11)||_0x1b4e11['lastValue']==null||Fe(_0x1b4e11['lastValue']);}function Fe(_0x42a9d5){const _0x4652f5=_0x264b29;return!_0x42a9d5||typeof _0x42a9d5!=_0x4652f5(0x1cb)||!S(_0x42a9d5,['v','t','pattern'])||!('v'in _0x42a9d5)||_0x42a9d5['v']!==null&&typeof _0x42a9d5['v']!='string'&&typeof _0x42a9d5['v']!=_0x4652f5(0x29c)&&typeof _0x42a9d5['v']!=_0x4652f5(0x1c2)||'t'in _0x42a9d5&&_0x42a9d5['t']!=null&&!Ie(_0x42a9d5['t'])?!0x1:!(_0x4652f5(0x1e3)in _0x42a9d5)||_0x42a9d5[_0x4652f5(0x1e3)]==null||typeof _0x42a9d5['pattern']==_0x4652f5(0x1c5);}function S(_0x3ea289,_0x533d5e){const _0x160df3=_0x264b29;let _0x3917a3=new Set(_0x533d5e);return Object[_0x160df3(0x244)](_0x3ea289)[_0x160df3(0x224)](_0x26fe5d=>_0x3917a3['has'](_0x26fe5d));}function Ie(_0x419784){const _0x524a4f=_0x264b29;return typeof _0x419784==_0x524a4f(0x29c)&&Object['values'](_0x4fd1a7)['includes'](_0x419784);}const Le=new Set([_0x3bf844[_0x264b29(0x27c)],_0x3bf844[_0x264b29(0x20c)],_0x3bf844['TABLE_ROW_START'],_0x3bf844[_0x264b29(0x23a)],_0x3bf844[_0x264b29(0x1da)],_0x3bf844[_0x264b29(0x1d1)],_0x3bf844[_0x264b29(0x2b6)],_0x3bf844[_0x264b29(0x24c)],_0x3bf844['COLUMN_START'],_0x3bf844[_0x264b29(0x209)],_0x3bf844[_0x264b29(0x26e)],_0x3bf844[_0x264b29(0x291)],_0x3bf844[_0x264b29(0x22f)],_0x3bf844[_0x264b29(0x23e)]]);var C=class extends Error{constructor(){const _0x4fa4f9=_0x264b29;super(_0x4fa4f9(0x288));}};function Re(_0x164fe8){const _0x2cfd20=_0x264b29;var _0x3ebd3f,_0x21bd2a;let _0x5311b8=_0x93f070[_0x2cfd20(0x1d0)](_0x164fe8[_0x2cfd20(0x2b3)]),_0x3ec352=j(_0x5311b8),{startOffset:_0x407d1a,endOffset:_0x6fb02e}=We(_0x3ec352,_0x164fe8['startOffset'],_0x164fe8[_0x2cfd20(0x273)]);He(_0x3ec352,_0x407d1a,_0x6fb02e);let _0x3e6481=((_0x3ebd3f=_0x3ec352[_0x2cfd20(0x1dc)])==null?void 0x0:_0x3ebd3f[_0x2cfd20(0x264)](_0x43e1a9=>{const _0x35dc61=_0x2cfd20;if(!w(_0x43e1a9))return!0x1;let _0x5ad7f7=_0x36de56(_0x43e1a9);return _0x5ad7f7[_0x35dc61(0x273)]>_0x407d1a&&_0x5ad7f7['startOffset']<_0x6fb02e;})['map'](_0x5a3a1a=>_0x5a3a1a[_0x2cfd20(0x213)]))??[];qe(_0x3ec352,_0x407d1a,_0x6fb02e,''),_0x3ec352[_0x2cfd20(0x1dc)]=[...((_0x21bd2a=_0x3ec352[_0x2cfd20(0x1dc)])==null?void 0x0:_0x21bd2a[_0x2cfd20(0x264)](_0x443d3f=>!_0x3e6481[_0x2cfd20(0x1d2)](_0x443d3f[_0x2cfd20(0x213)])&&_0x443d3f[_0x2cfd20(0x213)]!==_0x164fe8[_0x2cfd20(0x213)]))??[],Ue(_0x164fe8[_0x2cfd20(0x213)],_0x407d1a)][_0x2cfd20(0x277)]((_0x506ebd,_0x4d8e8d)=>_0x506ebd[_0x2cfd20(0x283)]-_0x4d8e8d[_0x2cfd20(0x283)]);let _0x41c12d=E(_0x164fe8[_0x2cfd20(0x2a4)]);return _0x3e6481[_0x2cfd20(0x28d)](_0x401bc2=>{const _0x2a4f40=_0x2cfd20;delete _0x41c12d[_0x2a4f40(0x2ab)][_0x401bc2];}),_0x41c12d[_0x2cfd20(0x2ab)][_0x164fe8[_0x2cfd20(0x213)]]=_0x93f070[_0x2cfd20(0x1d0)](_0x164fe8[_0x2cfd20(0x2b9)]),{'nextDocumentData':_0x5311b8,'nextResource':_0x41c12d,'cursorOffset':_0x407d1a+0x1};}function ze(_0x33ba86){const _0x291851=_0x264b29;var _0x49f17b,_0x18e379;let _0x587334=_0x93f070[_0x291851(0x1d0)](_0x33ba86[_0x291851(0x2b3)]),_0x5f4a8f=(_0x49f17b=j(_0x587334)[_0x291851(0x1dc)])==null?void 0x0:_0x49f17b['find'](_0x398f0f=>_0x398f0f[_0x291851(0x213)]===_0x33ba86['rangeId']&&w(_0x398f0f));if(!_0x5f4a8f||!((_0x18e379=_0x33ba86[_0x291851(0x2a4)])!=null&&_0x18e379[_0x291851(0x2ab)][_0x33ba86[_0x291851(0x213)]]))return null;let _0xc0315c=E(_0x33ba86[_0x291851(0x2a4)]);return _0xc0315c[_0x291851(0x2ab)][_0x33ba86[_0x291851(0x213)]]=_0x93f070[_0x291851(0x1d0)](_0x33ba86[_0x291851(0x2b9)]),{'nextDocumentData':_0x587334,'nextResource':_0xc0315c,'cursorOffset':_0x5f4a8f[_0x291851(0x1c8)]+0x1};}function Be(_0x4023e8){const _0x5bf827=_0x264b29;let _0x342405=_0x93f070[_0x5bf827(0x1d0)](_0x4023e8[_0x5bf827(0x2b3)]),_0x44ece4=Je(_0x342405,_0x4023e8['rangeId'],_0x4023e8[_0x5bf827(0x280)]??'');if(_0x44ece4==null)return null;let _0x23576a=E(_0x4023e8[_0x5bf827(0x2a4)]);return delete _0x23576a[_0x5bf827(0x2ab)][_0x4023e8[_0x5bf827(0x213)]],{'nextDocumentData':_0x342405,'nextResource':_0x23576a,'cursorOffset':_0x44ece4};}function Ve(_0xd1caef,_0x564bef){const _0x1ee925=_0x264b29;var _0x56966a;let _0x3fb241=_0x93f070[_0x1ee925(0x1d0)](_0xd1caef),_0x15a06d=_0x3fb241[_0x1ee925(0x1e1)];if(!_0x15a06d)return _0x3fb241;let _0x294546=new Map(_0x564bef[_0x1ee925(0x1eb)](_0x5dab3b=>[_0x5dab3b[_0x1ee925(0x213)],_0x5dab3b[_0x1ee925(0x280)]])),_0xb0dd63=((_0x56966a=_0x15a06d[_0x1ee925(0x1dc)])==null?void 0x0:_0x56966a[_0x1ee925(0x264)](_0x1bf19f=>w(_0x1bf19f)&&_0x294546['has'](_0x1bf19f[_0x1ee925(0x213)]))[_0x1ee925(0x277)]((_0x283207,_0x44ef68)=>_0x44ef68[_0x1ee925(0x283)]-_0x283207['startIndex']))??[];for(let _0x892272 of _0xb0dd63)Je(_0x3fb241,_0x892272['rangeId'],_0x294546['get'](_0x892272['rangeId'])??'');return _0x3fb241;}function w(_0x9051a0){const _0x30b91f=_0x264b29;var _0x11434d;return(_0x9051a0==null?void 0x0:_0x9051a0[_0x30b91f(0x1ff)])===_0x32b1b7['CUSTOM']&&_0x9051a0[_0x30b91f(0x265)]===!0x0&&((_0x11434d=_0x9051a0[_0x30b91f(0x242)])==null?void 0x0:_0x11434d[_0x30b91f(0x2af)])===_0x30b91f(0x293);}function T(_0x36da57,_0x113af7){const _0x6cfb9f=_0x264b29;var _0x5dc9f5;return _0x36da57==null||(_0x5dc9f5=_0x36da57['customRanges'])==null?void 0x0:_0x5dc9f5[_0x6cfb9f(0x254)](_0x31210c=>_0x31210c[_0x6cfb9f(0x213)]===_0x113af7&&w(_0x31210c));}function He(_0x5a8835,_0x19ddb4,_0x48a9ed){const _0x2e0421=_0x264b29;if(_0x19ddb4===_0x48a9ed){if(Le['has'](_0x5a8835['dataStream'][_0x19ddb4]))throw new C();return;}for(let _0x26514d=_0x19ddb4;_0x26514d<_0x48a9ed;_0x26514d++)if(_0x5a8835['dataStream'][_0x26514d]===_0x3bf844['PARAGRAPH']||Le[_0x2e0421(0x27b)](_0x5a8835['dataStream'][_0x26514d]))throw new C();}function Ue(_0x16b4d1,_0x1ce85c){const _0x16ea74=_0x264b29;return{'startIndex':_0x1ce85c,'endIndex':_0x1ce85c,'rangeId':_0x16b4d1,'rangeType':_0x32b1b7[_0x16ea74(0x203)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x478da8){const _0x579c4a=_0x264b29;return _0x478da8?_0x93f070[_0x579c4a(0x1d0)](_0x478da8):b();}function We(_0x2ced2d,_0x56cdbf,_0x379873){const _0x5b5bf2=_0x264b29;let _0x4f893d=Ke(_0x2ced2d),_0x170e03=_0x56cdbf??_0x4f893d,_0x24260c=_0x379873??_0x170e03;return{'startOffset':Ge(Math['min'](_0x170e03,_0x24260c),_0x4f893d),'endOffset':Ge(Math[_0x5b5bf2(0x1c1)](_0x170e03,_0x24260c),_0x4f893d)};}function Ge(_0x193a9a,_0x27678d){const _0x53eaaf=_0x264b29;return Math[_0x53eaaf(0x1c1)](0x0,Math[_0x53eaaf(0x1d6)](_0x193a9a,_0x27678d));}function Ke(_0x21a95b){const _0x36d297=_0x264b29;return _0x21a95b[_0x36d297(0x1ec)]['endsWith'](''+_0x3bf844[_0x36d297(0x267)]+_0x3bf844[_0x36d297(0x27c)])?Math[_0x36d297(0x1c1)](0x0,_0x21a95b[_0x36d297(0x1ec)]['length']-0x2):_0x21a95b['dataStream'][_0x36d297(0x227)](_0x3bf844[_0x36d297(0x27c)])?Math[_0x36d297(0x1c1)](0x0,_0x21a95b[_0x36d297(0x1ec)][_0x36d297(0x1e4)]-0x1):_0x21a95b[_0x36d297(0x1ec)]['length'];}function qe(_0x18d72a,_0x1c84c7,_0x3297f6,_0x1eeca4){_0x3297f6>_0x1c84c7&&Xe(_0x18d72a,_0x1c84c7,_0x3297f6),Ye(_0x18d72a,_0x1c84c7,_0x1eeca4);}function Je(_0x3d0012,_0x38f961,_0x508fe2){const _0xf8fc3e=_0x264b29;var _0x395cc5,_0x1c02fc;let _0x2fe546=j(_0x3d0012),_0x4aae5c=(_0x395cc5=_0x2fe546[_0xf8fc3e(0x1dc)])==null?void 0x0:_0x395cc5[_0xf8fc3e(0x254)](_0x432e0e=>_0x432e0e[_0xf8fc3e(0x213)]===_0x38f961&&w(_0x432e0e));if(!_0x4aae5c)return null;let _0x2d82e1=_0x36de56(_0x4aae5c);return qe(_0x2fe546,_0x2d82e1['startOffset'],_0x2d82e1[_0xf8fc3e(0x273)],_0x508fe2),_0x2fe546[_0xf8fc3e(0x1dc)]=(_0x1c02fc=_0x2fe546[_0xf8fc3e(0x1dc)])==null?void 0x0:_0x1c02fc[_0xf8fc3e(0x264)](_0x246ba4=>_0x246ba4[_0xf8fc3e(0x213)]!==_0x38f961),_0x2d82e1['startOffset']+_0x508fe2[_0xf8fc3e(0x1e4)];}function Ye(_0x40b250,_0x5bda61,_0x33476b){const _0x4c3453=_0x264b29;_0x33476b&&(_0x40b250[_0x4c3453(0x1ec)]=''+_0x40b250['dataStream'][_0x4c3453(0x2a2)](0x0,_0x5bda61)+_0x33476b+_0x40b250[_0x4c3453(0x1ec)][_0x4c3453(0x2a2)](_0x5bda61),Ze(_0x40b250,_0x5bda61,_0x33476b['length']));}function Xe(_0x14716d,_0x3716b0,_0x535bda){const _0x1b9afd=_0x264b29;let _0x4d751f=_0x535bda-_0x3716b0;_0x14716d[_0x1b9afd(0x1ec)]=''+_0x14716d[_0x1b9afd(0x1ec)][_0x1b9afd(0x2a2)](0x0,_0x3716b0)+_0x14716d[_0x1b9afd(0x1ec)][_0x1b9afd(0x2a2)](_0x535bda),Qe(_0x14716d,_0x3716b0,_0x4d751f);}function Ze(_0x344867,_0x19d49e,_0x14b2dd){const _0x2fd049=_0x264b29;_0x344867[_0x2fd049(0x27e)]=D(_0x344867[_0x2fd049(0x27e)],_0x19d49e,_0x14b2dd),_0x344867[_0x2fd049(0x214)]=D(_0x344867[_0x2fd049(0x214)],_0x19d49e,_0x14b2dd),_0x344867[_0x2fd049(0x20d)]=D(_0x344867['customBlocks'],_0x19d49e,_0x14b2dd),_0x344867[_0x2fd049(0x1ce)]=$e(_0x344867[_0x2fd049(0x1ce)],_0x19d49e,_0x14b2dd),_0x344867[_0x2fd049(0x282)]=et(_0x344867[_0x2fd049(0x282)],_0x19d49e,_0x14b2dd),_0x344867[_0x2fd049(0x275)]=k(_0x344867[_0x2fd049(0x275)],_0x19d49e,_0x14b2dd),_0x344867['customRanges']=k(_0x344867[_0x2fd049(0x1dc)],_0x19d49e,_0x14b2dd),_0x344867[_0x2fd049(0x2a9)]=k(_0x344867[_0x2fd049(0x2a9)],_0x19d49e,_0x14b2dd),_0x344867[_0x2fd049(0x1e7)]=k(_0x344867['blockRanges'],_0x19d49e,_0x14b2dd);}function Qe(_0x3c62bc,_0x3a6a1a,_0x353b19){const _0x52cb8=_0x264b29;var _0x42296c,_0xaa661c;_0x3c62bc[_0x52cb8(0x27e)]=O(_0x3c62bc[_0x52cb8(0x27e)],_0x3a6a1a,_0x353b19),_0x3c62bc[_0x52cb8(0x214)]=O(_0x3c62bc['sectionBreaks'],_0x3a6a1a,_0x353b19),_0x3c62bc['customBlocks']=O(_0x3c62bc['customBlocks'],_0x3a6a1a,_0x353b19),_0x3c62bc[_0x52cb8(0x1ce)]=(_0x42296c=tt((_0xaa661c=_0x3c62bc[_0x52cb8(0x1ce)])==null?void 0x0:_0xaa661c[_0x52cb8(0x1eb)](_0x38102c=>({..._0x38102c,'startIndex':_0x38102c['st'],'endIndex':_0x38102c['ed']})),_0x3a6a1a,_0x353b19))==null?void 0x0:_0x42296c[_0x52cb8(0x1eb)](_0x412ac7=>{let {startIndex:_0x4f4ecd,endIndex:_0x2496d,..._0x583839}=_0x412ac7;return{..._0x583839,'st':_0x4f4ecd,'ed':_0x2496d};}),_0x3c62bc[_0x52cb8(0x282)]=tt(_0x3c62bc['tables'],_0x3a6a1a,_0x353b19),_0x3c62bc[_0x52cb8(0x275)]=A(_0x3c62bc[_0x52cb8(0x275)],_0x3a6a1a,_0x353b19),_0x3c62bc[_0x52cb8(0x1dc)]=A(_0x3c62bc[_0x52cb8(0x1dc)],_0x3a6a1a,_0x353b19),_0x3c62bc[_0x52cb8(0x2a9)]=A(_0x3c62bc[_0x52cb8(0x2a9)],_0x3a6a1a,_0x353b19),_0x3c62bc['blockRanges']=A(_0x3c62bc[_0x52cb8(0x1e7)],_0x3a6a1a,_0x353b19);}function D(_0x3a13a6,_0xd482b3,_0x4846a1){const _0x22df56=_0x264b29;return _0x3a13a6==null?void 0x0:_0x3a13a6['map'](_0xbfe3f4=>_0xbfe3f4[_0x22df56(0x283)]>=_0xd482b3?{..._0xbfe3f4,'startIndex':_0xbfe3f4[_0x22df56(0x283)]+_0x4846a1}:_0xbfe3f4);}function O(_0x3eae3b,_0x4fd9c1,_0x44c8d2){const _0x568ce5=_0x264b29;let _0xbf98=_0x4fd9c1+_0x44c8d2;return _0x3eae3b==null?void 0x0:_0x3eae3b[_0x568ce5(0x1eb)](_0x35b7d1=>_0x35b7d1[_0x568ce5(0x283)]>=_0x4fd9c1&&_0x35b7d1[_0x568ce5(0x283)]<_0xbf98?null:_0x35b7d1[_0x568ce5(0x283)]>=_0xbf98?{..._0x35b7d1,'startIndex':_0x35b7d1[_0x568ce5(0x283)]-_0x44c8d2}:_0x35b7d1)[_0x568ce5(0x264)](_0x40d017=>_0x40d017!=null);}function _0x2be4(){const _0x13f269=['rangeType','onCommandExecuted','_injector','entries','CUSTOM','ERROR','insert','eligible','removeFormula','onStarting','COLUMN_END','status','DOC','TABLE_START','customBlocks','trigger','docs-formula.command.convert-to-text','MUTATION','12Syjzdc','previousDocumentData','rangeId','sectionBreaks','formulaResult$','cursorOffset','symbol','position','startsWith','getSnapshot','getBody','setFormulas','resolveFormula','unitDisposed$','iterator','_isDisposed','formula','register','_syncUnit','every','resolveBinding','invalid-resource','endsWith','toPrimitive','isArray','_preserveInvalid','44YOKKOx','start','SUCCESS','docs-formula.command.update','BLOCK_END','disabled','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','push','editOp','set','nextResource','_cacheEligibilityService','assess','model','notifyTextChanged','TABLE_CELL_START','setConfig','_pendingUnitIds','docs-formula.config','CUSTOM_BLOCK','nextDocumentData','dispose','getRevision','properties','redoMutation','keys','serialize','_formulaKeys','some','setFormula','change$','removeUnit','externalMutations','COLUMN_GROUP_START','_setPresentation','_rawResources','_service','range','_config','insertLength','paragraphId','find','parse','_syncScheduled','segmentId','_docFormulaModel','273744iDFgSx','getFormulas','defineProperty','1.0.0-insiders.20260809-70eefdd','data','liveResult','document','resolveText','referenceRevision','type','error','filter','wholeEntity','constructor','PARAGRAPH','getPresentation','unregister','getInstance','degradeDocumentData','unregisterUnit','numberFormat','COLUMN_GROUP_END','previousResource','PENDING','_resourceManagerService','resolved','endOffset','resources','columnGroups','unitAdded$','sort','DOC_FORMULA_PLUGIN','references','syncUnit','has','SECTION_BREAK','values','paragraphs','unitId','text','trim','tables','startIndex','getLoadError','docs-formula.command.set-number-format','deleteFormula','next','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','registerCommand','getAllUnitsForType','_deleteRegistration','874948nNCFGZ','forEach','_queueSync','externalReferences','_instanceService','BLOCK_START','retain','univer-docs-formula','docs-formula.mutation.set-formula','from','load','delete','empty','disposeWithMe','_resources','COMMAND','number','UNIVER_DOC','getUnit','getUnitId','source','get','slice','documentRedo','resource','version','color','startOffset','stringify','customDecorations','_univerInstanceService','formulas','getFormula','success','getTextRanges','kind','_change$','presentation','_model','documentData','unsupported-version','_updateFormulaResult','TABLE_END','replaceDocRanges','_commandService','config','add','pushUndoRedo','presentationChanged$','_loadErrors','cell','setResource','_configService','_formulaService','subscribe','docs-formula.mutation.set-last-values','docs-formula.mutation.set-resource','2566949VeSitE','max','boolean','params','default','string','call','lastValue','endIndex','syncExecuteCommand','registerPluginResource','object','_registrations','sequenceNodesBuilder','textRuns','_hostExternalReferenceModel','deepClone','TABLE_ROW_END','includes','_registrationService','expectedFormula','12255260CuQlTA','min','getOwnPropertyDescriptor','updates','fromEntries','TABLE_CELL_END','_presentationChanged$','customRanges','accessor','1655346bLJeZw','function','docs-formula.mutation.remove-formula','body','resourceRedo','pattern','length','15588873uSNzpX','getFormulaValueSync','blockRanges','formulaId','degradeBody','2527908FOviED','map','dataStream','8RjQpGF','selection','@univerjs-pro/docs-formula','getResource','undoMutation','resourceUndo','stale','getResult','pending','decorate','15lLhBlo','clear','collectMutations','isInteger','schemaVersion','deleteLength','asObservable','name'];_0x2be4=function(){return _0x13f269;};return _0x2be4();}function $e(_0x26a8a0,_0xf5c176,_0x437527){const _0x36515e=_0x264b29;return _0x26a8a0==null?void 0x0:_0x26a8a0[_0x36515e(0x1eb)](_0x1d2d24=>_0x1d2d24['st']>=_0xf5c176?{..._0x1d2d24,'st':_0x1d2d24['st']+_0x437527,'ed':_0x1d2d24['ed']+_0x437527}:_0x1d2d24['ed']>_0xf5c176?{..._0x1d2d24,'ed':_0x1d2d24['ed']+_0x437527}:_0x1d2d24);}function k(_0x1d966e,_0x531771,_0xbc480){const _0x56745c=_0x264b29;return _0x1d966e==null?void 0x0:_0x1d966e[_0x56745c(0x1eb)](_0x164a82=>_0x16e4a6(_0x164a82,_0x531771,_0xbc480));}function et(_0x608975,_0x31e8b8,_0x4a8cb8){const _0x1aef11=_0x264b29;return _0x608975==null?void 0x0:_0x608975[_0x1aef11(0x1eb)](_0x47ee34=>_0x1bb198(_0x47ee34,_0x31e8b8,_0x4a8cb8));}function A(_0x53934a,_0x1e3615,_0x4ae673){const _0x42e172=_0x264b29;return _0x53934a==null?void 0x0:_0x53934a[_0x42e172(0x1eb)](_0xee8c0f=>_0x1d1076(_0xee8c0f,_0x1e3615,_0x4ae673))[_0x42e172(0x264)](_0xba3ea0=>_0xba3ea0!=null);}function tt(_0x1c05a7,_0x1f4581,_0x3391b1){const _0x399021=_0x264b29;return _0x1c05a7==null?void 0x0:_0x1c05a7[_0x399021(0x1eb)](_0x12aaa9=>_0x2be142(_0x12aaa9,_0x1f4581,_0x3391b1))[_0x399021(0x264)](_0x3866f2=>_0x3866f2!=null);}function j(_0x4f7b5b){const _0x55324a=_0x264b29;if(!_0x4f7b5b['body'])throw Error('Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.');return _0x4f7b5b[_0x55324a(0x1e1)];}function M(_0x3ab4ef){'@babel/helpers - typeof';const _0x12d794=_0x264b29;return M=typeof Symbol==_0x12d794(0x1df)&&typeof Symbol[_0x12d794(0x21f)]==_0x12d794(0x217)?function(_0x51e98f){return typeof _0x51e98f;}:function(_0x4da8c8){const _0x36e84b=_0x12d794;return _0x4da8c8&&typeof Symbol=='function'&&_0x4da8c8[_0x36e84b(0x266)]===Symbol&&_0x4da8c8!==Symbol['prototype']?_0x36e84b(0x217):typeof _0x4da8c8;},M(_0x3ab4ef);}function nt(_0x51781b,_0x3e9fed){const _0x545879=_0x264b29;if(M(_0x51781b)!='object'||!_0x51781b)return _0x51781b;var _0x405d71=_0x51781b[Symbol[_0x545879(0x228)]];if(_0x405d71!==void 0x0){var _0x1fd90e=_0x405d71[_0x545879(0x1c6)](_0x51781b,_0x3e9fed||_0x545879(0x1c4));if(M(_0x1fd90e)!=_0x545879(0x1cb))return _0x1fd90e;throw TypeError(_0x545879(0x231));}return(_0x3e9fed===_0x545879(0x1c5)?String:Number)(_0x51781b);}function rt(_0x4e05ea){const _0x22ab07=_0x264b29;var _0x397b1b=nt(_0x4e05ea,_0x22ab07(0x1c5));return M(_0x397b1b)=='symbol'?_0x397b1b:_0x397b1b+'';}function N(_0x22de99,_0x4387b1,_0x477d89){const _0x2fc490=_0x264b29;return(_0x4387b1=rt(_0x4387b1))in _0x22de99?Object[_0x2fc490(0x25b)](_0x22de99,_0x4387b1,{'value':_0x477d89,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x22de99[_0x4387b1]=_0x477d89,_0x22de99;}var P=class extends _0x569963{constructor(..._0x57ae79){const _0x4f238d=_0x264b29;super(..._0x57ae79),N(this,_0x4f238d(0x29a),new Map()),N(this,_0x4f238d(0x24e),new Map()),N(this,_0x4f238d(0x2bd),new Map()),N(this,_0x4f238d(0x2b0),new _0x56902b()),N(this,_0x4f238d(0x249),this[_0x4f238d(0x2b0)][_0x4f238d(0x1fd)]());}[_0x264b29(0x2ac)](_0x10292f,_0x120b50){const _0x479d48=_0x264b29;var _0x20a0dd;let _0x98e575=(_0x20a0dd=this[_0x479d48(0x29a)][_0x479d48(0x2a1)](_0x10292f))==null?void 0x0:_0x20a0dd['formulas'][_0x120b50];return _0x98e575?_0x93f070[_0x479d48(0x1d0)](_0x98e575):void 0x0;}['getFormulas'](_0x2e7435){const _0x3994aa=_0x264b29;var _0x4f9af1;return _0x93f070[_0x3994aa(0x1d0)](((_0x4f9af1=this[_0x3994aa(0x29a)][_0x3994aa(0x2a1)](_0x2e7435))==null?void 0x0:_0x4f9af1['formulas'])??{});}[_0x264b29(0x1f0)](_0x34e99c){const _0x339cc7=_0x264b29;let _0xa04cab=this[_0x339cc7(0x29a)]['get'](_0x34e99c);return _0xa04cab?_0x93f070[_0x339cc7(0x1d0)](_0xa04cab):void 0x0;}[_0x264b29(0x248)](_0x3dd8bb,_0x552b79,_0x379ba4){const _0x2ea8bd=_0x264b29;return this[_0x2ea8bd(0x21c)](_0x3dd8bb,{[_0x552b79]:_0x379ba4});}[_0x264b29(0x2bf)](_0x4634f8,_0x2ec2bd){const _0x5a6ea4=_0x264b29;return this[_0x5a6ea4(0x2bd)][_0x5a6ea4(0x27b)](_0x4634f8)||!x(_0x2ec2bd)?!0x1:(this[_0x5a6ea4(0x29a)]['set'](_0x4634f8,_0x93f070['deepClone'](_0x2ec2bd)),this['_change$'][_0x5a6ea4(0x287)]({'unitId':_0x4634f8}),!0x0);}['setFormulas'](_0x2a5fc0,_0x6db03){const _0x3a4394=_0x264b29;if(this['_loadErrors']['has'](_0x2a5fc0)||!Object[_0x3a4394(0x244)](_0x6db03)[_0x3a4394(0x1e4)]||!x({'schemaVersion':0x1,'formulas':_0x6db03}))return!0x1;let _0x578da1=this['_resources'][_0x3a4394(0x2a1)](_0x2a5fc0)??b(),_0x2ad871=_0x93f070[_0x3a4394(0x1d0)](_0x578da1);return Object['assign'](_0x2ad871[_0x3a4394(0x2ab)],_0x93f070[_0x3a4394(0x1d0)](_0x6db03)),this[_0x3a4394(0x29a)][_0x3a4394(0x234)](_0x2a5fc0,_0x2ad871),this[_0x3a4394(0x2b0)][_0x3a4394(0x287)]({'unitId':_0x2a5fc0,'rangeIds':Object[_0x3a4394(0x244)](_0x6db03)}),!0x0;}[_0x264b29(0x207)](_0x53ca3a,_0x4f8a12){const _0x922d74=_0x264b29;if(this[_0x922d74(0x2bd)][_0x922d74(0x27b)](_0x53ca3a))return!0x1;let _0x3dcf49=this['_resources'][_0x922d74(0x2a1)](_0x53ca3a);if(!(_0x3dcf49!=null&&_0x3dcf49[_0x922d74(0x2ab)][_0x4f8a12]))return!0x1;let _0x5d5aa4=_0x93f070[_0x922d74(0x1d0)](_0x3dcf49);return delete _0x5d5aa4[_0x922d74(0x2ab)][_0x4f8a12],this[_0x922d74(0x29a)][_0x922d74(0x234)](_0x53ca3a,_0x5d5aa4),this[_0x922d74(0x2b0)][_0x922d74(0x287)]({'unitId':_0x53ca3a,'rangeIds':[_0x4f8a12]}),!0x0;}[_0x264b29(0x296)](_0x51701f,_0x29e631){const _0x511ba8=_0x264b29;return _0x29e631&&typeof _0x29e631==_0x511ba8(0x1cb)&&_0x511ba8(0x1fb)in _0x29e631&&_0x29e631[_0x511ba8(0x1fb)]!==0x1?(this['_preserveInvalid'](_0x51701f,_0x29e631,_0x511ba8(0x2b4)),!0x1):x(_0x29e631)?(this[_0x511ba8(0x29a)][_0x511ba8(0x234)](_0x51701f,_0x93f070['deepClone'](_0x29e631)),this[_0x511ba8(0x24e)][_0x511ba8(0x297)](_0x51701f),this[_0x511ba8(0x2bd)]['delete'](_0x51701f),this[_0x511ba8(0x2b0)][_0x511ba8(0x287)]({'unitId':_0x51701f}),!0x0):(this[_0x511ba8(0x22a)](_0x51701f,_0x29e631,_0x511ba8(0x226)),!0x1);}[_0x264b29(0x245)](_0x1132fa){const _0x5a69a1=_0x264b29;let _0x57639b=this['_resources']['get'](_0x1132fa);return _0x57639b?_0x93f070[_0x5a69a1(0x1d0)](_0x57639b):this[_0x5a69a1(0x24e)][_0x5a69a1(0x27b)](_0x1132fa)?_0x93f070[_0x5a69a1(0x1d0)](this['_rawResources'][_0x5a69a1(0x2a1)](_0x1132fa)):b();}[_0x264b29(0x284)](_0x5f352a){const _0x126133=_0x264b29;return this[_0x126133(0x2bd)]['get'](_0x5f352a);}[_0x264b29(0x24a)](_0x35ae72){const _0x29479a=_0x264b29;this[_0x29479a(0x29a)][_0x29479a(0x297)](_0x35ae72),this[_0x29479a(0x24e)]['delete'](_0x35ae72),this[_0x29479a(0x2bd)][_0x29479a(0x297)](_0x35ae72),this[_0x29479a(0x2b0)]['next']({'unitId':_0x35ae72});}['dispose'](){const _0x8a1078=_0x264b29;this[_0x8a1078(0x29a)][_0x8a1078(0x1f8)](),this[_0x8a1078(0x24e)][_0x8a1078(0x1f8)](),this['_loadErrors'][_0x8a1078(0x1f8)](),this[_0x8a1078(0x2b0)]['complete'](),super['dispose']();}['_preserveInvalid'](_0x30b8aa,_0x1b5fea,_0x3a2db1){const _0x5d4e7a=_0x264b29;this[_0x5d4e7a(0x29a)][_0x5d4e7a(0x297)](_0x30b8aa),this[_0x5d4e7a(0x24e)][_0x5d4e7a(0x234)](_0x30b8aa,_0x93f070[_0x5d4e7a(0x1d0)](_0x1b5fea)),this['_loadErrors'][_0x5d4e7a(0x234)](_0x30b8aa,_0x3a2db1),this[_0x5d4e7a(0x2b0)][_0x5d4e7a(0x287)]({'unitId':_0x30b8aa});}};let it=function(_0x3b063f){const _0x3a0e70=_0x264b29;return _0x3b063f['EMPTY']=_0x3a0e70(0x298),_0x3b063f[_0x3a0e70(0x270)]=_0x3a0e70(0x1f5),_0x3b063f[_0x3a0e70(0x22d)]=_0x3a0e70(0x2ad),_0x3b063f['ERROR']=_0x3a0e70(0x263),_0x3b063f;}({});function F(_0x3d53f7,_0x5b0208){return function(_0x4988db,_0x96e23c){_0x5b0208(_0x4988db,_0x96e23c,_0x3d53f7);};}function _0x2fc9(_0x44959f,_0x4775e9){_0x44959f=_0x44959f-0x1c1;const _0x2be420=_0x2be4();let _0x2fc93d=_0x2be420[_0x44959f];return _0x2fc93d;}function I(_0x7ca82a,_0x588e29,_0x19b28b,_0x307e47){const _0x30755d=_0x264b29;var _0x2304a3=arguments[_0x30755d(0x1e4)],_0xaa50d5=_0x2304a3<0x3?_0x588e29:_0x307e47===null?_0x307e47=Object[_0x30755d(0x1d7)](_0x588e29,_0x19b28b):_0x307e47,_0x5ebeb8;if(typeof Reflect==_0x30755d(0x1cb)&&typeof Reflect[_0x30755d(0x1f6)]==_0x30755d(0x1df))_0xaa50d5=Reflect['decorate'](_0x7ca82a,_0x588e29,_0x19b28b,_0x307e47);else{for(var _0x175095=_0x7ca82a[_0x30755d(0x1e4)]-0x1;_0x175095>=0x0;_0x175095--)(_0x5ebeb8=_0x7ca82a[_0x175095])&&(_0xaa50d5=(_0x2304a3<0x3?_0x5ebeb8(_0xaa50d5):_0x2304a3>0x3?_0x5ebeb8(_0x588e29,_0x19b28b,_0xaa50d5):_0x5ebeb8(_0x588e29,_0x19b28b))||_0xaa50d5);}return _0x2304a3>0x3&&_0xaa50d5&&Object[_0x30755d(0x25b)](_0x588e29,_0x19b28b,_0xaa50d5),_0xaa50d5;}let L=class extends _0x569963{constructor(_0x1dec12,_0x1bca4a,_0x4228df){const _0x52aea9=_0x264b29;super(),this['_model']=_0x1dec12,this['_registrationService']=_0x1bca4a,this['_hostExternalReferenceModel']=_0x4228df,N(this,_0x52aea9(0x1cc),new Map()),N(this,_0x52aea9(0x246),new Map()),N(this,_0x52aea9(0x1db),new _0x56902b()),N(this,_0x52aea9(0x2bc),this[_0x52aea9(0x1db)]['asObservable']()),this['disposeWithMe'](this[_0x52aea9(0x1d3)][_0x52aea9(0x215)]['subscribe'](_0x4336ab=>{const _0x3fc408=_0x52aea9;for(let _0x9964fe of Object[_0x3fc408(0x27d)](_0x4336ab))for(let _0x5f1289 of Object[_0x3fc408(0x27d)](_0x9964fe))_0x5f1289[_0x3fc408(0x28d)](_0x424f78=>this[_0x3fc408(0x2b5)](_0x424f78));}));}['syncUnit'](_0x361e45){const _0x49c295=_0x264b29;var _0x2814a9;let _0x3aac6f=_0x361e45[_0x49c295(0x29f)](),_0x5588d7=((_0x2814a9=_0x361e45[_0x49c295(0x21a)]()[_0x49c295(0x1e1)])==null||(_0x2814a9=_0x2814a9[_0x49c295(0x1dc)])==null?void 0x0:_0x2814a9['filter'](w))??[],_0x5ce361=this['_model'][_0x49c295(0x25a)](_0x3aac6f),_0x1c4b5e=new Set();for(let _0x5cab9d of _0x5588d7){let _0x28d99f=_0x5ce361[_0x5cab9d[_0x49c295(0x213)]];_0x28d99f&&(_0x1c4b5e[_0x49c295(0x2ba)](R(_0x3aac6f,_0x5cab9d['rangeId'])),this['register']({'unitId':_0x3aac6f,'rangeId':_0x5cab9d[_0x49c295(0x213)]},_0x28d99f));}for(let _0xe675f4 of Array[_0x49c295(0x295)](this[_0x49c295(0x1cc)][_0x49c295(0x27d)]()))_0xe675f4[_0x49c295(0x27f)]===_0x3aac6f&&!_0x1c4b5e[_0x49c295(0x27b)](R(_0xe675f4[_0x49c295(0x27f)],_0xe675f4['rangeId']))&&this[_0x49c295(0x269)](_0xe675f4);}['register'](_0x3638da,_0x29ebba){const _0x46a63d=_0x264b29;let _0x37cf41=R(_0x3638da[_0x46a63d(0x27f)],_0x3638da[_0x46a63d(0x213)]),_0x114263=this['_registrations'][_0x46a63d(0x2a1)](_0x37cf41),_0x301279=this[_0x46a63d(0x1cf)]['getRevision'](_0x3638da['unitId']);if(_0x114263&&_0x114263[_0x46a63d(0x2b9)]['formula']===_0x29ebba[_0x46a63d(0x221)]&&_0x114263[_0x46a63d(0x261)]===_0x301279){_0x114263[_0x46a63d(0x2b9)]=_0x29ebba;let _0x5bbd2b=_0x114263['formulaId']?this[_0x46a63d(0x1d3)][_0x46a63d(0x1e6)](_0x114263[_0x46a63d(0x27f)],_0x114263[_0x46a63d(0x27f)],_0x114263[_0x46a63d(0x1e8)])??void 0x0:void 0x0;_0x114263[_0x46a63d(0x25e)]=_0x5bbd2b,this[_0x46a63d(0x24d)](_0x37cf41,z(_0x29ebba,_0x5bbd2b));return;}_0x114263!=null&&_0x114263[_0x46a63d(0x1e8)]&&this[_0x46a63d(0x28b)](_0x114263);let _0x45b629={..._0x3638da,'config':_0x29ebba,'referenceRevision':_0x301279,'presentation':z(_0x29ebba,void 0x0)};if(this['_registrations'][_0x46a63d(0x234)](_0x37cf41,_0x45b629),!_0x29ebba[_0x46a63d(0x221)][_0x46a63d(0x281)]())return;let _0x2fa861=this[_0x46a63d(0x1d3)]['registerFormulaWithRange'](_0x3638da[_0x46a63d(0x27f)],_0x3638da[_0x46a63d(0x27f)],_0x29ebba[_0x46a63d(0x221)],void 0x0,{'rangeId':_0x3638da[_0x46a63d(0x213)]},_0x12891e[_0x46a63d(0x20b)],_0x3638da[_0x46a63d(0x213)]);_0x45b629[_0x46a63d(0x1e8)]=_0x2fa861,this[_0x46a63d(0x246)]['set'](_0x2fa861,_0x37cf41);}['unregister'](_0xa81569){const _0x8b244c=_0x264b29;let _0x126aa6=R(_0xa81569['unitId'],_0xa81569['rangeId']),_0x406180=this[_0x8b244c(0x1cc)][_0x8b244c(0x2a1)](_0x126aa6);_0x406180&&(this[_0x8b244c(0x28b)](_0x406180),this[_0x8b244c(0x1cc)]['delete'](_0x126aa6));}[_0x264b29(0x26c)](_0x36e223){const _0x1e50dc=_0x264b29;for(let _0x220a0e of Array[_0x1e50dc(0x295)](this['_registrations'][_0x1e50dc(0x27d)]()))_0x220a0e[_0x1e50dc(0x27f)]===_0x36e223&&this[_0x1e50dc(0x269)](_0x220a0e);}[_0x264b29(0x268)](_0x5d9ac4){const _0x1039d8=_0x264b29;var _0x35e7c1;return(_0x35e7c1=this[_0x1039d8(0x1cc)]['get'](R(_0x5d9ac4['unitId'],_0x5d9ac4['rangeId'])))==null?void 0x0:_0x35e7c1[_0x1039d8(0x2b1)];}[_0x264b29(0x1f4)](_0x5d9270){const _0x54e983=_0x264b29;let _0x1b3b92=this[_0x54e983(0x1cc)][_0x54e983(0x2a1)](R(_0x5d9270['unitId'],_0x5d9270[_0x54e983(0x213)]));return _0x1b3b92?B(_0x1b3b92):void 0x0;}['getRegisteredFormulas'](){const _0x5ee38a=_0x264b29;return Array[_0x5ee38a(0x295)](this[_0x5ee38a(0x1cc)]['values'](),_0x44bf51=>({'identity':{'unitId':_0x44bf51[_0x5ee38a(0x27f)],'rangeId':_0x44bf51['rangeId']},'config':_0x44bf51[_0x5ee38a(0x2b9)],'referenceRevision':_0x44bf51[_0x5ee38a(0x261)],..._0x44bf51['liveResult']?{'liveResult':_0x44bf51['liveResult']}:null}));}[_0x264b29(0x240)](){const _0x56b16b=_0x264b29;for(let _0x2ce6c2 of this[_0x56b16b(0x1cc)]['values']())this[_0x56b16b(0x28b)](_0x2ce6c2);this[_0x56b16b(0x1cc)][_0x56b16b(0x1f8)](),this[_0x56b16b(0x246)][_0x56b16b(0x1f8)](),this[_0x56b16b(0x1db)]['complete'](),super[_0x56b16b(0x240)]();}[_0x264b29(0x2b5)](_0x39f426){const _0x96f6e7=_0x264b29;let _0x19808b=this[_0x96f6e7(0x246)]['get'](_0x39f426[_0x96f6e7(0x1e8)]),_0x133974=_0x19808b?this[_0x96f6e7(0x1cc)][_0x96f6e7(0x2a1)](_0x19808b):void 0x0;!_0x19808b||!_0x133974||(_0x133974[_0x96f6e7(0x25e)]=_0x39f426,this['_setPresentation'](_0x19808b,z(_0x133974[_0x96f6e7(0x2b9)],_0x39f426)));}[_0x264b29(0x24d)](_0x3a4a1f,_0x1ea5db){const _0x59aabf=_0x264b29;var _0x32fbc5,_0x11ec67;let _0xade9f8=this[_0x59aabf(0x1cc)][_0x59aabf(0x2a1)](_0x3a4a1f);if(!_0xade9f8||at(_0xade9f8['presentation'],_0x1ea5db))return;let _0x38821e=_0xade9f8[_0x59aabf(0x2b1)],_0x4beec6=B(_0xade9f8);_0xade9f8[_0x59aabf(0x2b1)]=_0x1ea5db,this[_0x59aabf(0x1db)][_0x59aabf(0x287)]({'unitId':_0xade9f8['unitId'],'rangeId':_0xade9f8[_0x59aabf(0x213)],'presentation':_0x1ea5db,'previousPresentation':_0x38821e,'result':B(_0xade9f8),'previousResult':{..._0x4beec6,..._0x38821e,'value':(_0x32fbc5=_0x38821e['cell'])==null?void 0x0:_0x32fbc5['v'],'valueType':((_0x11ec67=_0x38821e[_0x59aabf(0x2be)])==null?void 0x0:_0x11ec67['t'])??void 0x0}});}[_0x264b29(0x28b)](_0x5e028a){const _0x36d7ca=_0x264b29;_0x5e028a[_0x36d7ca(0x1e8)]&&(this[_0x36d7ca(0x1d3)][_0x36d7ca(0x286)](_0x5e028a[_0x36d7ca(0x27f)],_0x5e028a[_0x36d7ca(0x27f)],[_0x5e028a[_0x36d7ca(0x1e8)]]),this[_0x36d7ca(0x246)][_0x36d7ca(0x297)](_0x5e028a[_0x36d7ca(0x1e8)]));}};L=I([F(0x0,_0x1d2e55(P)),F(0x1,_0x1d2e55(_0x49ca84)),F(0x2,_0x1d2e55(_0x2e7823))],L);function R(_0x50a79a,_0x3eaee8){return _0x50a79a+'\x00'+_0x3eaee8;}function z(_0x29c220,_0xc815e4){const _0x5d56ec=_0x264b29;return _0x4efc23({'numberFormat':_0x29c220[_0x5d56ec(0x26d)],'lastValue':_0x29c220[_0x5d56ec(0x1c7)],'result':_0xc815e4});}function B(_0x26b4ed){const _0x1ed0ba=_0x264b29;var _0x1e9b6b,_0x25e19c,_0x3c384d;let _0x30de9c=_0x26b4ed[_0x1ed0ba(0x2b1)],_0x207abd=_0x26b4ed[_0x1ed0ba(0x2b9)]['formula']['trim']()?_0x30de9c[_0x1ed0ba(0x1f3)]||_0x30de9c[_0x1ed0ba(0x2be)]==null?_0x1ed0ba(0x1f5):((_0x1e9b6b=_0x26b4ed[_0x1ed0ba(0x25e)])==null?void 0x0:_0x1e9b6b[_0x1ed0ba(0x20a)])===_0x5a1425[_0x1ed0ba(0x204)]?_0x1ed0ba(0x263):_0x1ed0ba(0x2ad):'empty';return{..._0x30de9c,'status':_0x207abd,'value':(_0x25e19c=_0x30de9c['cell'])==null?void 0x0:_0x25e19c['v'],'valueType':((_0x3c384d=_0x30de9c[_0x1ed0ba(0x2be)])==null?void 0x0:_0x3c384d['t'])??void 0x0};}function at(_0x284013,_0x15ec62){const _0x4f9609=_0x264b29;var _0x5ab6ae,_0x2fad34,_0xa809f5,_0x487fac;return _0x284013[_0x4f9609(0x280)]===_0x15ec62['text']&&_0x284013[_0x4f9609(0x2a6)]===_0x15ec62[_0x4f9609(0x2a6)]&&_0x284013[_0x4f9609(0x1e3)]===_0x15ec62[_0x4f9609(0x1e3)]&&_0x284013[_0x4f9609(0x2a0)]===_0x15ec62['source']&&_0x284013[_0x4f9609(0x1f3)]===_0x15ec62['stale']&&((_0x5ab6ae=_0x284013['cell'])==null?void 0x0:_0x5ab6ae['t'])===((_0x2fad34=_0x15ec62['cell'])==null?void 0x0:_0x2fad34['t'])&&Object['is']((_0xa809f5=_0x284013[_0x4f9609(0x2be)])==null?void 0x0:_0xa809f5['v'],(_0x487fac=_0x15ec62[_0x4f9609(0x2be)])==null?void 0x0:_0x487fac['v']);}const ot={'id':_0x264b29(0x294),'type':_0x573856[_0x264b29(0x210)],'handler':(_0x18d34d,_0x1b40d9)=>!(_0x1b40d9!=null&&_0x1b40d9[_0x264b29(0x27f)])||!_0x1b40d9[_0x264b29(0x213)]||!_0x1b40d9[_0x264b29(0x2b9)]?!0x1:_0x18d34d['get'](P)['setFormula'](_0x1b40d9[_0x264b29(0x27f)],_0x1b40d9[_0x264b29(0x213)],_0x1b40d9[_0x264b29(0x2b9)])},st={'id':_0x264b29(0x1e0),'type':_0x573856['MUTATION'],'handler':(_0x5a98d7,_0x2e2149)=>!(_0x2e2149!=null&&_0x2e2149['unitId'])||!_0x2e2149[_0x264b29(0x213)]?!0x1:_0x5a98d7['get'](P)[_0x264b29(0x207)](_0x2e2149[_0x264b29(0x27f)],_0x2e2149['rangeId'])},V={'id':_0x264b29(0x2c4),'type':_0x573856[_0x264b29(0x210)],'handler':(_0x3f5513,_0x3d4dc8)=>!(_0x3d4dc8!=null&&_0x3d4dc8['unitId'])||!_0x3d4dc8[_0x264b29(0x2a4)]?!0x1:_0x3f5513[_0x264b29(0x2a1)](P)[_0x264b29(0x2bf)](_0x3d4dc8[_0x264b29(0x27f)],_0x3d4dc8[_0x264b29(0x2a4)])},H={'id':_0x264b29(0x2c3),'type':_0x573856['MUTATION'],'handler':(_0x378d3f,_0x268949)=>{const _0x3eaea0=_0x264b29;if(!(_0x268949!=null&&_0x268949[_0x3eaea0(0x27f)])||!_0x268949[_0x3eaea0(0x1d8)][_0x3eaea0(0x1e4)])return!0x1;let _0x164feb=_0x378d3f[_0x3eaea0(0x2a1)](P),_0x2025ad=_0x378d3f[_0x3eaea0(0x2a1)](_0x2e7823),_0x183c39=_0x164feb[_0x3eaea0(0x1f0)](_0x268949['unitId']);if(!_0x183c39)return!0x1;let _0x37e595=_0x93f070[_0x3eaea0(0x1d0)](_0x183c39),_0x5a6e51=!0x1;for(let _0x3c952b of _0x268949[_0x3eaea0(0x1d8)]){var _0x168fb4,_0xbba325,_0x10601f,_0x52490b;let _0x48ff8e=_0x37e595[_0x3eaea0(0x2ab)][_0x3c952b[_0x3eaea0(0x213)]];!_0x48ff8e||_0x48ff8e[_0x3eaea0(0x221)]!==_0x3c952b[_0x3eaea0(0x1d4)]||((_0x168fb4=_0x48ff8e['numberFormat'])==null?void 0x0:_0x168fb4['pattern'])!==_0x3c952b['expectedNumberFormat']||_0x2025ad[_0x3eaea0(0x241)](_0x268949[_0x3eaea0(0x27f)])!==_0x3c952b['expectedReferenceRevision']||(((_0xbba325=_0x48ff8e[_0x3eaea0(0x1c7)])==null?void 0x0:_0xbba325['v'])!==_0x3c952b[_0x3eaea0(0x1c7)]['v']||((_0x10601f=_0x48ff8e[_0x3eaea0(0x1c7)])==null?void 0x0:_0x10601f['t'])!==_0x3c952b['lastValue']['t']||((_0x52490b=_0x48ff8e[_0x3eaea0(0x1c7)])==null?void 0x0:_0x52490b[_0x3eaea0(0x1e3)])!==_0x3c952b[_0x3eaea0(0x1c7)][_0x3eaea0(0x1e3)])&&(_0x48ff8e[_0x3eaea0(0x1c7)]=_0x93f070[_0x3eaea0(0x1d0)](_0x3c952b['lastValue']),_0x5a6e51=!0x0);}return!_0x5a6e51||_0x164feb[_0x3eaea0(0x2bf)](_0x268949[_0x3eaea0(0x27f)],_0x37e595);}},U={'id':'docs-formula.command.insert','type':_0x573856[_0x264b29(0x29b)],'handler':(_0x346c89,_0x21df58)=>{const _0x3e7af6=_0x264b29;if(!(_0x21df58!=null&&_0x21df58[_0x3e7af6(0x221)][_0x3e7af6(0x281)]()))return!0x1;let _0x2b30bf=q(_0x346c89,_0x21df58[_0x3e7af6(0x27f)],'');if(!_0x2b30bf)return!0x1;let _0x353bdd=ft(_0x21df58['target'],_0x2b30bf[_0x3e7af6(0x1e1)],dt(_0x346c89,_0x2b30bf[_0x3e7af6(0x27f)]));if(!_0x353bdd)return!0x1;let _0x131a06=pt(_0x346c89,_0x2b30bf[_0x3e7af6(0x27f)],_0x21df58[_0x3e7af6(0x221)],_0x21df58[_0x3e7af6(0x28f)]??[]);if(!_0x131a06)return!0x1;let _0x4911a3=mt(_0x2b30bf['body'],_0x2b30bf[_0x3e7af6(0x238)],_0x2b30bf[_0x3e7af6(0x27f)]),_0x5d912a=ht({'documentData':_0x2b30bf[_0x3e7af6(0x2b3)],'resource':_0x2b30bf[_0x3e7af6(0x2a4)],'rangeId':_0x4911a3,'config':{'formula':_0x21df58[_0x3e7af6(0x221)],..._0x21df58[_0x3e7af6(0x26d)]?{'numberFormat':_0x21df58['numberFormat']}:null},'startOffset':_0x353bdd[_0x3e7af6(0x2a7)],'endOffset':_0x353bdd['endOffset']});if(!_0x5d912a)return!0x1;let _0x5895ba=_0x342107(_0x346c89,_0x2b30bf[_0x3e7af6(0x27f)],_0x131a06);return!_0x5895ba||!J({'accessor':_0x346c89,'document':_0x2b30bf['document'],'unitId':_0x2b30bf[_0x3e7af6(0x27f)],'trigger':U['id'],'rangeId':_0x4911a3,'previousResource':_0x2b30bf[_0x3e7af6(0x2a4)],'nextResource':_0x5d912a['nextResource'],'previousDocumentData':_0x2b30bf[_0x3e7af6(0x2b3)],'nextDocumentData':_0x5d912a[_0x3e7af6(0x23f)],'cursorOffset':_0x5d912a[_0x3e7af6(0x216)],'externalMutations':_0x5895ba})?!0x1:{'rangeId':_0x4911a3,'startOffset':_0x5d912a[_0x3e7af6(0x216)]-0x1,'endOffset':_0x5d912a[_0x3e7af6(0x216)]};}},W={'id':_0x264b29(0x22e),'type':_0x573856['COMMAND'],'handler':(_0x34bb11,_0x341ddd)=>{const _0x330d6d=_0x264b29;if(!(_0x341ddd!=null&&_0x341ddd[_0x330d6d(0x213)])||!_0x341ddd[_0x330d6d(0x221)][_0x330d6d(0x281)]())return!0x1;let _0x344305=q(_0x34bb11,_0x341ddd['unitId'],''),_0x2a10f2=_0x344305==null?void 0x0:_0x344305['model']['getFormula'](_0x344305[_0x330d6d(0x27f)],_0x341ddd[_0x330d6d(0x213)]),_0x51168d=_0x344305?T(_0x344305[_0x330d6d(0x2b3)][_0x330d6d(0x1e1)],_0x341ddd[_0x330d6d(0x213)]):void 0x0;if(!_0x344305||!_0x2a10f2||!_0x51168d)return!0x1;let _0x5793ce=pt(_0x34bb11,_0x344305['unitId'],_0x341ddd[_0x330d6d(0x221)],_0x341ddd[_0x330d6d(0x28f)]??[]);if(!_0x5793ce)return!0x1;let _0x1cfe8f=_0x342107(_0x34bb11,_0x344305[_0x330d6d(0x27f)],_0x5793ce);if(!_0x1cfe8f)return!0x1;let _0x48b61f=Ct(_0x344305[_0x330d6d(0x2a4)]);return _0x48b61f[_0x330d6d(0x2ab)][_0x341ddd[_0x330d6d(0x213)]]={'formula':_0x341ddd['formula'],..._0x341ddd['numberFormat']?{'numberFormat':_0x341ddd[_0x330d6d(0x26d)]}:_0x2a10f2[_0x330d6d(0x26d)]?{'numberFormat':_0x2a10f2[_0x330d6d(0x26d)]}:null},J({'accessor':_0x34bb11,'document':_0x344305[_0x330d6d(0x25f)],'unitId':_0x344305['unitId'],'trigger':W['id'],'rangeId':_0x341ddd[_0x330d6d(0x213)],'previousResource':_0x344305[_0x330d6d(0x2a4)],'nextResource':_0x48b61f,'cursorOffset':_0x51168d[_0x330d6d(0x1c8)]+0x1,'externalMutations':_0x1cfe8f});}},G={'id':_0x264b29(0x285),'type':_0x573856[_0x264b29(0x29b)],'handler':(_0x1c9e68,_0x92ddee)=>{const _0x4a64de=_0x264b29;if(!(_0x92ddee!=null&&_0x92ddee[_0x4a64de(0x213)]))return!0x1;let _0x52daf1=q(_0x1c9e68,_0x92ddee[_0x4a64de(0x27f)],''),_0xa6002e=_0x52daf1==null?void 0x0:_0x52daf1[_0x4a64de(0x238)][_0x4a64de(0x2ac)](_0x52daf1['unitId'],_0x92ddee[_0x4a64de(0x213)]),_0x22b370=_0x52daf1?T(_0x52daf1['documentData'][_0x4a64de(0x1e1)],_0x92ddee[_0x4a64de(0x213)]):void 0x0;if(!_0x52daf1||!_0xa6002e||!_0x22b370)return!0x1;let _0x11e9f8=Ct(_0x52daf1[_0x4a64de(0x2a4)]);return _0x11e9f8['formulas'][_0x92ddee[_0x4a64de(0x213)]]={..._0xa6002e,..._0x92ddee[_0x4a64de(0x26d)]?{'numberFormat':_0x92ddee['numberFormat']}:null},_0x92ddee[_0x4a64de(0x26d)]||delete _0x11e9f8[_0x4a64de(0x2ab)][_0x92ddee[_0x4a64de(0x213)]]['numberFormat'],J({'accessor':_0x1c9e68,'document':_0x52daf1[_0x4a64de(0x25f)],'unitId':_0x52daf1['unitId'],'trigger':G['id'],'rangeId':_0x92ddee[_0x4a64de(0x213)],'previousResource':_0x52daf1['resource'],'nextResource':_0x11e9f8,'cursorOffset':_0x22b370['endIndex']+0x1,'externalMutations':{}});}},K={'id':'docs-formula.command.remove','type':_0x573856[_0x264b29(0x29b)],'handler':(_0x1751e5,_0x49997f)=>ut(_0x1751e5,_0x49997f,'',K['id'])},ct={'id':'docs-formula.command.replace-with-text','type':_0x573856[_0x264b29(0x29b)],'handler':(_0x131c81,_0x56268c)=>ut(_0x131c81,_0x56268c,(_0x56268c==null?void 0x0:_0x56268c[_0x264b29(0x280)])??'',ct['id'])},lt={'id':_0x264b29(0x20f),'type':_0x573856[_0x264b29(0x29b)],'handler':(_0x87c03d,_0x18fe53)=>{const _0x238e52=_0x264b29;if(!(_0x18fe53!=null&&_0x18fe53['rangeId']))return!0x1;let _0x3948ae=q(_0x87c03d,_0x18fe53[_0x238e52(0x27f)],'');if(!_0x3948ae)return!0x1;let _0x33ff3a=_0x87c03d[_0x238e52(0x2a1)](L)[_0x238e52(0x1f4)]({'unitId':_0x3948ae['unitId'],'rangeId':_0x18fe53['rangeId']});return _0x33ff3a?ut(_0x87c03d,_0x18fe53,_0x33ff3a[_0x238e52(0x280)],lt['id']):!0x1;}};function ut(_0x35547b,_0x20bde7,_0x2428de,_0x2406be){const _0x544274=_0x264b29;if(!(_0x20bde7!=null&&_0x20bde7[_0x544274(0x213)]))return!0x1;let _0x58eb00=q(_0x35547b,_0x20bde7[_0x544274(0x27f)],'');if(!_0x58eb00)return!0x1;let _0x4789af=Be({'documentData':_0x58eb00[_0x544274(0x2b3)],'resource':_0x58eb00['resource'],'rangeId':_0x20bde7[_0x544274(0x213)],'text':_0x2428de});return _0x4789af?J({'accessor':_0x35547b,'document':_0x58eb00[_0x544274(0x25f)],'unitId':_0x58eb00[_0x544274(0x27f)],'trigger':_0x2406be,'rangeId':_0x20bde7[_0x544274(0x213)],'previousResource':_0x58eb00['resource'],'nextResource':_0x4789af['nextResource'],'previousDocumentData':_0x58eb00[_0x544274(0x2b3)],'nextDocumentData':_0x4789af[_0x544274(0x23f)],'cursorOffset':_0x4789af['cursorOffset'],'externalMutations':{}}):!0x1;}function q(_0x163b30,_0x1f42f1,_0x2ca763){const _0x5ba69c=_0x264b29;if(_0x2ca763)return null;let _0xabe0b4=_0x163b30[_0x5ba69c(0x2a1)](_0x500c45),_0x31f23b=(_0x1f42f1?_0xabe0b4[_0x5ba69c(0x29e)](_0x1f42f1,_0x3558e2[_0x5ba69c(0x29d)]):_0xabe0b4['getCurrentUnitOfType'](_0x3558e2[_0x5ba69c(0x29d)]))??null;if(!_0x31f23b)return null;let _0x996f45=_0x31f23b[_0x5ba69c(0x21a)](),_0x220f8f=_0x996f45['body'];if(_0x996f45[_0x5ba69c(0x230)]||!_0x220f8f)return null;let _0x32eb11=_0x163b30['get'](P);return _0x32eb11['getLoadError'](_0x31f23b[_0x5ba69c(0x29f)]())?null:{'document':_0x31f23b,'body':_0x220f8f,'documentData':_0x996f45,'model':_0x32eb11,'resource':_0x32eb11[_0x5ba69c(0x1f0)](_0x31f23b[_0x5ba69c(0x29f)]())??b(),'unitId':_0x31f23b['getUnitId']()};}function dt(_0x1a5312,_0x4cfb1d){const _0xa9bbb1=_0x264b29;var _0x444144;return(_0x444144=_0x1a5312[_0xa9bbb1(0x2a1)](_0x5d7168)[_0xa9bbb1(0x2ae)]({'subUnitId':_0x4cfb1d,'unitId':_0x4cfb1d}))==null?void 0x0:_0x444144[0x0];}function ft(_0x56ea7a,_0x295d16,_0x24ef9a){const _0x127e7b=_0x264b29;if((_0x56ea7a==null?void 0x0:_0x56ea7a[_0x127e7b(0x262)])==='paragraph'){var _0x359839;let _0x11d5de=((_0x359839=_0x295d16[_0x127e7b(0x27e)])==null?void 0x0:_0x359839['filter'](_0x198e81=>_0x198e81[_0x127e7b(0x253)]===_0x56ea7a[_0x127e7b(0x253)]))??[];if(_0x11d5de[_0x127e7b(0x1e4)]!==0x1)return null;let _0x2a9cf3=_0x11d5de[0x0],_0x3e563b=_0x3098d9(_0x295d16,_0x2a9cf3),_0x14bfc3=_0x2a9cf3[_0x127e7b(0x283)]-_0x3e563b,_0x49de29=_0x56ea7a[_0x127e7b(0x218)]==='end'?_0x14bfc3:_0x56ea7a[_0x127e7b(0x218)];if(!Number[_0x127e7b(0x1fa)](_0x49de29)||_0x49de29<0x0||_0x49de29>_0x14bfc3)return null;let _0x25a5ef=_0x3e563b+_0x49de29;return{'startOffset':_0x25a5ef,'endOffset':_0x25a5ef};}if((_0x56ea7a==null?void 0x0:_0x56ea7a[_0x127e7b(0x262)])===_0x127e7b(0x250))return!Number[_0x127e7b(0x1fa)](_0x56ea7a[_0x127e7b(0x2a7)])||!Number[_0x127e7b(0x1fa)](_0x56ea7a[_0x127e7b(0x273)])?null:{'startOffset':Math['min'](_0x56ea7a[_0x127e7b(0x2a7)],_0x56ea7a['endOffset']),'endOffset':Math[_0x127e7b(0x1c1)](_0x56ea7a[_0x127e7b(0x2a7)],_0x56ea7a['endOffset'])};let _0x29767a=(_0x56ea7a==null?void 0x0:_0x56ea7a[_0x127e7b(0x262)])===_0x127e7b(0x1ee)?_0x56ea7a['selection']:_0x24ef9a;return!_0x29767a||_0x29767a[_0x127e7b(0x257)]?null:{'startOffset':Math[_0x127e7b(0x1d6)](_0x29767a[_0x127e7b(0x2a7)],_0x29767a[_0x127e7b(0x273)]),'endOffset':Math[_0x127e7b(0x1c1)](_0x29767a[_0x127e7b(0x2a7)],_0x29767a['endOffset'])};}function pt(_0xe8c28d,_0x3703b0,_0x2677f4,_0x21da84){const _0x5c0a38=_0x264b29;let _0x52d7e0=_0xe8c28d[_0x5c0a38(0x2a1)](_0x4bf6a6),_0x44358b=_0x2677f4[_0x5c0a38(0x219)]('=')?_0x2677f4[_0x5c0a38(0x2a2)](0x1):_0x2677f4,_0x10d9d0=_0x52d7e0[_0x5c0a38(0x1cd)](_0x44358b);if(!_0x10d9d0)return null;let _0x3b9d72=_0xe8c28d[_0x5c0a38(0x2a1)](_0x2e7823),_0xb97a2e=_0x1ed5e5({'qualifiers':_0x580023(_0x10d9d0),'explicitReferences':_0x21da84??[],'resolveBinding':_0x4cd40b=>_0x3b9d72[_0x5c0a38(0x225)](_0x3703b0,_0x4cd40b)});return _0xb97a2e['status']===_0x5c0a38(0x272)?_0xb97a2e[_0x5c0a38(0x279)]:null;}function mt(_0x485b96,_0x4b396c,_0x5d47b0){const _0x54b871=_0x264b29;var _0x2b4bb6;let _0x4b17a8=_0x2cba69(0x6);for(;_0x485b96!=null&&(_0x2b4bb6=_0x485b96[_0x54b871(0x1dc)])!=null&&_0x2b4bb6[_0x54b871(0x247)](_0x52d387=>_0x52d387[_0x54b871(0x213)]===_0x4b17a8)||_0x4b396c[_0x54b871(0x2ac)](_0x5d47b0,_0x4b17a8);)_0x4b17a8=_0x2cba69(0x6);return _0x4b17a8;}function ht(_0x4e29f7){try{return Re(_0x4e29f7);}catch(_0x33fe96){if(_0x33fe96 instanceof C)return null;throw _0x33fe96;}}function gt(_0x335e63){const _0x533314=_0x264b29;let _0x290fc9=_0x335e63['previousDocumentData']&&_0x335e63['nextDocumentData']?vt(_0x335e63[_0x533314(0x25f)],_0x335e63[_0x533314(0x27f)],_0x335e63[_0x533314(0x212)],_0x335e63[_0x533314(0x23f)],_0x335e63['cursorOffset'],_0x335e63[_0x533314(0x20e)]):null;return _0x335e63['previousDocumentData']&&_0x335e63['nextDocumentData']&&!_0x290fc9?null:{'documentRedo':_0x290fc9,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x335e63[_0x533314(0x27f)],'resource':_0x335e63[_0x533314(0x235)]}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x335e63[_0x533314(0x27f)],'resource':_0x335e63[_0x533314(0x26f)]}}};}function _t(_0x473d4e,_0x221e83,_0x53a984,_0x51b2fa){const _0x179513=_0x264b29;_0x51b2fa[_0x179513(0x2bb)]({'id':_0x473d4e['trigger']+':'+_0x473d4e[_0x179513(0x213)],'unitID':_0x473d4e[_0x179513(0x27f)],'redoMutations':[..._0x473d4e[_0x179513(0x24b)][_0x179513(0x243)]?[_0x473d4e[_0x179513(0x24b)][_0x179513(0x243)]]:[],..._0x221e83[_0x179513(0x2a3)]?[_0x221e83[_0x179513(0x2a3)]]:[],_0x221e83['resourceRedo']],'undoMutations':[_0x221e83['resourceUndo'],..._0x53a984?[_0x53a984]:[],..._0x473d4e[_0x179513(0x24b)][_0x179513(0x1f1)]?[_0x473d4e[_0x179513(0x24b)]['undoMutation']]:[]]});}function J(_0x1ab8a8){const _0x3dee67=_0x264b29;let _0x27c05e=_0x1ab8a8[_0x3dee67(0x1dd)][_0x3dee67(0x2a1)](_0x507020),_0x572d91=_0x1ab8a8[_0x3dee67(0x1dd)][_0x3dee67(0x2a1)](_0xa9e7c7),_0x41568f=_0x1ab8a8[_0x3dee67(0x1dd)][_0x3dee67(0x2a1)](_0x5d7168),_0xac48e5=gt(_0x1ab8a8);if(!_0xac48e5)return!0x1;let _0x3b4273=!0x1,_0x33d08c=null,_0x410165=!0x1;try{if(_0x1ab8a8[_0x3dee67(0x24b)][_0x3dee67(0x243)]){if(!_0x27c05e[_0x3dee67(0x1c9)](_0x1ab8a8[_0x3dee67(0x24b)]['redoMutation']['id'],_0x1ab8a8[_0x3dee67(0x24b)][_0x3dee67(0x243)][_0x3dee67(0x1c3)]))return!0x1;_0x3b4273=!0x0;}if(_0xac48e5[_0x3dee67(0x2a3)]){let _0x44cd73=_0x27c05e[_0x3dee67(0x1c9)](_0xac48e5[_0x3dee67(0x2a3)]['id'],_0xac48e5['documentRedo'][_0x3dee67(0x1c3)]);if(!_0x44cd73)return bt(_0x27c05e,_0x1ab8a8[_0x3dee67(0x24b)],_0x3b4273),!0x1;_0x33d08c={'id':_0x5cadb9['id'],'params':{..._0x44cd73,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x27c05e[_0x3dee67(0x1c9)](_0xac48e5[_0x3dee67(0x1e2)]['id'],_0xac48e5[_0x3dee67(0x1e2)][_0x3dee67(0x1c3)]))return yt(_0x27c05e,_0x33d08c),bt(_0x27c05e,_0x1ab8a8[_0x3dee67(0x24b)],_0x3b4273),!0x1;_0x410165=!0x0,_t(_0x1ab8a8,_0xac48e5,_0x33d08c,_0x572d91);}catch(_0x23eced){throw _0x410165&&_0x27c05e['syncExecuteCommand'](_0xac48e5[_0x3dee67(0x1f2)]['id'],_0xac48e5['resourceUndo'][_0x3dee67(0x1c3)]),yt(_0x27c05e,_0x33d08c),bt(_0x27c05e,_0x1ab8a8[_0x3dee67(0x24b)],_0x3b4273),_0x23eced;}return _0x41568f[_0x3dee67(0x2b7)]([{'startOffset':_0x1ab8a8[_0x3dee67(0x216)],'endOffset':_0x1ab8a8[_0x3dee67(0x216)],'segmentId':''}],{'unitId':_0x1ab8a8[_0x3dee67(0x27f)],'subUnitId':_0x1ab8a8[_0x3dee67(0x27f)]},!0x1,{[_0x26103c]:!0x0}),!0x0;}function vt(_0x383b3e,_0x33138a,_0x191238,_0x2a893a,_0x4bec78,_0x542474){let _0x235535=xt(_0x191238,_0x2a893a,_0x124ec6(_0x383b3e,''));return _0x235535?{'id':_0x5cadb9['id'],'params':{'unitId':_0x33138a,'actions':_0x235535,'segmentId':'','textRanges':[{'startOffset':_0x4bec78,'endOffset':_0x4bec78,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x542474}}:null;}function yt(_0x3af3a9,_0x5f1f6c){const _0x714379=_0x264b29;_0x5f1f6c&&_0x3af3a9[_0x714379(0x1c9)](_0x5f1f6c['id'],_0x5f1f6c['params']);}function bt(_0x4bfe31,_0x5811b7,_0x594fa0){const _0x5b29d4=_0x264b29;_0x594fa0&&_0x5811b7['undoMutation']&&_0x4bfe31[_0x5b29d4(0x1c9)](_0x5811b7[_0x5b29d4(0x1f1)]['id'],_0x5811b7[_0x5b29d4(0x1f1)]['params']);}function xt(_0xd1c307,_0x30c480,_0x219fce){const _0x1ee2df=_0x264b29;let _0x2ecf2d=_0xd1c307[_0x1ee2df(0x1e1)],_0x5bcec1=_0x30c480[_0x1ee2df(0x1e1)],_0x2a1a89=St(_0x2ecf2d==null?void 0x0:_0x2ecf2d[_0x1ee2df(0x1ec)],_0x5bcec1==null?void 0x0:_0x5bcec1[_0x1ee2df(0x1ec)]);if(!_0x2a1a89||!_0x5bcec1)return null;let _0x100106=new _0x57e625();return _0x100106[_0x1ee2df(0x292)](_0x2a1a89['start']),_0x2a1a89[_0x1ee2df(0x252)]>0x0&&_0x100106[_0x1ee2df(0x205)](_0x2a1a89[_0x1ee2df(0x252)],_0x13dfbc(_0x5bcec1,_0x2a1a89[_0x1ee2df(0x22c)],_0x2a1a89[_0x1ee2df(0x22c)]+_0x2a1a89[_0x1ee2df(0x252)],!0x1)),_0x2a1a89[_0x1ee2df(0x1fc)]>0x0&&_0x100106['delete'](_0x2a1a89[_0x1ee2df(0x1fc)]),_0x5aefde[_0x1ee2df(0x26a)]()[_0x1ee2df(0x233)](_0x100106[_0x1ee2df(0x245)](),_0x219fce);}function St(_0x131e15,_0x33f51d){const _0x2f6d51=_0x264b29;if(_0x131e15==null||_0x33f51d==null||_0x131e15===_0x33f51d)return null;let _0x15c521=0x0;for(;_0x15c521<_0x131e15[_0x2f6d51(0x1e4)]&&_0x15c521<_0x33f51d['length']&&_0x131e15[_0x15c521]===_0x33f51d[_0x15c521];)_0x15c521+=0x1;let _0x32c454=_0x131e15[_0x2f6d51(0x1e4)],_0x113f84=_0x33f51d[_0x2f6d51(0x1e4)];for(;_0x32c454>_0x15c521&&_0x113f84>_0x15c521&&_0x131e15[_0x32c454-0x1]===_0x33f51d[_0x113f84-0x1];)--_0x32c454,--_0x113f84;return{'start':_0x15c521,'deleteLength':_0x32c454-_0x15c521,'insertLength':_0x113f84-_0x15c521};}function Ct(_0x203b6e){const _0x11b250=_0x264b29;return{'schemaVersion':0x1,'formulas':Object[_0x11b250(0x1d9)](Object[_0x11b250(0x202)](_0x203b6e[_0x11b250(0x2ab)])[_0x11b250(0x1eb)](([_0x362548,_0x4a888b])=>[_0x362548,{..._0x4a888b,..._0x4a888b[_0x11b250(0x26d)]?{'numberFormat':{..._0x4a888b[_0x11b250(0x26d)]}}:null,..._0x4a888b['lastValue']?{'lastValue':{..._0x4a888b[_0x11b250(0x1c7)]}}:null}]))};}let Y=class extends _0x569963{constructor(_0x49c863,_0x19f090,_0x87aa3,_0x48bd3a){const _0x282e88=_0x264b29;super(),this[_0x282e88(0x290)]=_0x49c863,this[_0x282e88(0x2b8)]=_0x19f090,this[_0x282e88(0x2b2)]=_0x87aa3,this[_0x282e88(0x24f)]=_0x48bd3a,N(this,'_pendingUnitIds',new Set()),N(this,_0x282e88(0x256),!0x1),N(this,_0x282e88(0x220),!0x1),this['_instanceService'][_0x282e88(0x28a)](_0x3558e2[_0x282e88(0x29d)])['forEach'](_0x2e40c1=>this[_0x282e88(0x24f)]['syncUnit'](_0x2e40c1)),this[_0x282e88(0x299)](this[_0x282e88(0x2b2)][_0x282e88(0x249)][_0x282e88(0x2c2)](({unitId:_0x320a3c})=>this['_syncUnit'](_0x320a3c))),this[_0x282e88(0x299)](this[_0x282e88(0x290)][_0x282e88(0x276)][_0x282e88(0x2c2)](({unit:_0xfce89d})=>{const _0x71a4c0=_0x282e88;_0xfce89d[_0x71a4c0(0x262)]===_0x3558e2['UNIVER_DOC']&&this[_0x71a4c0(0x28e)](_0xfce89d[_0x71a4c0(0x29f)]());})),this[_0x282e88(0x299)](this[_0x282e88(0x290)][_0x282e88(0x21e)][_0x282e88(0x2c2)](_0x359829=>{const _0x161dd7=_0x282e88;this[_0x161dd7(0x24f)][_0x161dd7(0x26c)](_0x359829[_0x161dd7(0x29f)]());})),this[_0x282e88(0x299)](this[_0x282e88(0x2b8)][_0x282e88(0x200)](_0x1a625d=>{const _0x4c3e3d=_0x282e88;if(_0x1a625d['id']===_0x5cadb9['id']&&wt(_0x1a625d['params'])){let _0x4f933b=_0x1a625d['params'];_0x4f933b[_0x4c3e3d(0x257)]||this['_syncUnit'](_0x4f933b['unitId']);}}));}['dispose'](){const _0x119a06=_0x264b29;this[_0x119a06(0x220)]=!0x0,super['dispose']();}[_0x264b29(0x28e)](_0x39aa02){const _0xb3be78=_0x264b29;this[_0xb3be78(0x23c)][_0xb3be78(0x2ba)](_0x39aa02),!this[_0xb3be78(0x256)]&&(this[_0xb3be78(0x256)]=!0x0,queueMicrotask(()=>{const _0x5be718=_0xb3be78;if(this[_0x5be718(0x256)]=!0x1,this[_0x5be718(0x220)])return;let _0x133e3b=Array['from'](this[_0x5be718(0x23c)]);this[_0x5be718(0x23c)][_0x5be718(0x1f8)](),_0x133e3b[_0x5be718(0x28d)](_0x506d42=>this[_0x5be718(0x223)](_0x506d42));}));}['_syncUnit'](_0x3f0174){const _0x58a850=_0x264b29;let _0x22f044=this[_0x58a850(0x290)][_0x58a850(0x29e)](_0x3f0174,_0x3558e2[_0x58a850(0x29d)]);_0x22f044&&this[_0x58a850(0x24f)][_0x58a850(0x27a)](_0x22f044);}};Y=I([F(0x0,_0x500c45),F(0x1,_0x507020),F(0x2,_0x1d2e55(P)),F(0x3,_0x1d2e55(L))],Y);function wt(_0x123d83){const _0x1bb2cb=_0x264b29;return typeof _0x123d83=='object'&&!!_0x123d83&&_0x1bb2cb(0x27f)in _0x123d83&&typeof _0x123d83[_0x1bb2cb(0x27f)]==_0x1bb2cb(0x1c5)&&(!(_0x1bb2cb(0x257)in _0x123d83)||_0x123d83[_0x1bb2cb(0x257)]===void 0x0||typeof _0x123d83[_0x1bb2cb(0x257)]==_0x1bb2cb(0x1c5));}let X=class extends _0x569963{constructor(_0x288230,_0x5e6661){const _0x1185aa=_0x264b29;super(),this[_0x1185aa(0x271)]=_0x288230,this[_0x1185aa(0x258)]=_0x5e6661,this[_0x1185aa(0x299)](this[_0x1185aa(0x271)][_0x1185aa(0x1ca)]({'pluginName':y,'businesses':[_0x3558e2['UNIVER_DOC']],'toJson':_0x1588b8=>JSON[_0x1185aa(0x2a8)](this[_0x1185aa(0x258)][_0x1185aa(0x245)](_0x1588b8)),'parseJson':_0x3cdcb1=>JSON[_0x1185aa(0x255)](_0x3cdcb1),'onLoad':(_0x1ad29a,_0x21f58a)=>{const _0x4d7955=_0x1185aa;this[_0x4d7955(0x258)]['load'](_0x1ad29a,_0x21f58a);},'onUnLoad':_0xd490ad=>this[_0x1185aa(0x258)][_0x1185aa(0x24a)](_0xd490ad)}));}};X=I([F(0x0,_0x582088),F(0x1,_0x1d2e55(P))],X);var Tt=_0x264b29(0x1ef),Et=_0x264b29(0x25c);const Dt={};let Z=class extends _0x569963{constructor(_0x21929e,_0x2a7250,_0x1823c1){const _0x47879d=_0x264b29;super(),this[_0x47879d(0x2aa)]=_0x21929e,this['_formulaService']=_0x2a7250,this[_0x47879d(0x299)](_0x1823c1[_0x47879d(0x222)]({'resolve':(_0x4e41ea,_0x5ef145)=>{const _0x41bc26=_0x47879d;var _0x460aa6;return((_0x460aa6=_0x5ef145[_0x41bc26(0x1dc)])==null?void 0x0:_0x460aa6[_0x41bc26(0x264)](w)[_0x41bc26(0x1eb)](_0x109912=>({'startOffset':_0x109912[_0x41bc26(0x283)],'endOffset':_0x109912['endIndex']+0x1,'text':this[_0x41bc26(0x21d)](_0x4e41ea,_0x109912[_0x41bc26(0x213)])})))??[];}})),this[_0x47879d(0x299)](this[_0x47879d(0x2c1)][_0x47879d(0x2bc)][_0x47879d(0x2c2)](({unitId:_0x57ceef})=>{const _0x388b97=_0x47879d;_0x1823c1[_0x388b97(0x239)](_0x57ceef);}));}[_0x264b29(0x21d)](_0x105f0c,_0x5dbd96){const _0x48e7da=_0x264b29;var _0x1f9ed5;return((_0x1f9ed5=this[_0x48e7da(0x2c1)][_0x48e7da(0x1f4)]({'unitId':_0x105f0c,'rangeId':_0x5dbd96}))==null?void 0x0:_0x1f9ed5[_0x48e7da(0x280)])??'';}[_0x264b29(0x260)](_0x20cb0e,_0x50ee20,_0x3d048c){const _0x268b55=_0x264b29;var _0x5e4419;let _0x999750=this[_0x268b55(0x2aa)][_0x268b55(0x29e)](_0x20cb0e,_0x3558e2['UNIVER_DOC']),_0x53e31c=_0x999750==null?void 0x0:_0x999750[_0x268b55(0x21b)]();if(!_0x53e31c)return'';let _0x282cbe=_0x53e31c[_0x268b55(0x1ec)][_0x268b55(0x2a2)](_0x50ee20,_0x3d048c),_0x359027=((_0x5e4419=_0x53e31c[_0x268b55(0x1dc)])==null?void 0x0:_0x5e4419['filter'](_0x2a565d=>w(_0x2a565d)&&_0x2a565d['startIndex']>=_0x50ee20&&_0x2a565d[_0x268b55(0x1c8)]<_0x3d048c)[_0x268b55(0x277)]((_0x3529c0,_0x632098)=>_0x632098[_0x268b55(0x283)]-_0x3529c0[_0x268b55(0x283)]))??[];for(let _0x470b7a of _0x359027){let _0x522492=_0x470b7a[_0x268b55(0x283)]-_0x50ee20,_0x408338=_0x470b7a[_0x268b55(0x1c8)]-_0x50ee20+0x1;_0x282cbe=''+_0x282cbe['slice'](0x0,_0x522492)+this[_0x268b55(0x21d)](_0x20cb0e,_0x470b7a[_0x268b55(0x213)])+_0x282cbe[_0x268b55(0x2a2)](_0x408338);}return _0x282cbe;}[_0x264b29(0x26b)](_0xf11695){return Ot(_0xf11695);}[_0x264b29(0x1e9)](_0x2a5006,_0x22a47f,_0x18cfc9={}){const _0x5f5afe=_0x264b29;var _0xd0450c;return Ve({'id':_0x2a5006,'body':_0x22a47f,'documentStyle':{}},(((_0xd0450c=_0x22a47f[_0x5f5afe(0x1dc)])==null?void 0x0:_0xd0450c[_0x5f5afe(0x264)](w))??[])['map'](_0x42d47f=>({'rangeId':_0x42d47f[_0x5f5afe(0x213)],'text':_0x18cfc9[_0x42d47f[_0x5f5afe(0x213)]]??this['resolveFormula'](_0x2a5006,_0x42d47f[_0x5f5afe(0x213)])})))[_0x5f5afe(0x1e1)]??{'dataStream':''};}};Z=I([F(0x0,_0x500c45),F(0x1,_0x1d2e55(L)),F(0x2,_0x1d2e55(_0x2412e8))],Z);function Ot(_0x10c4d4){const _0x4d41fc=_0x264b29;var _0x36e5c3,_0x1efa5b;let _0x439887=kt(_0x10c4d4),_0x216a98=Ve(_0x10c4d4,(((_0x36e5c3=_0x10c4d4[_0x4d41fc(0x1e1)])==null||(_0x36e5c3=_0x36e5c3[_0x4d41fc(0x1dc)])==null?void 0x0:_0x36e5c3['filter'](w))??[])['map'](_0x9f4387=>({'rangeId':_0x9f4387[_0x4d41fc(0x213)],'text':At(_0x439887==null?void 0x0:_0x439887[_0x4d41fc(0x2ab)][_0x9f4387[_0x4d41fc(0x213)]])})));return _0x216a98[_0x4d41fc(0x274)]=(_0x1efa5b=_0x216a98[_0x4d41fc(0x274)])==null?void 0x0:_0x1efa5b['filter'](_0x470ed6=>_0x470ed6['name']!==y),_0x216a98;}function kt(_0x3c239c){const _0x2a3b31=_0x264b29;var _0x5aa847;let _0x1c7fca=(_0x5aa847=_0x3c239c[_0x2a3b31(0x274)])==null||(_0x5aa847=_0x5aa847[_0x2a3b31(0x254)](_0x1033e4=>_0x1033e4[_0x2a3b31(0x1fe)]===_0x2a3b31(0x278)))==null?void 0x0:_0x5aa847[_0x2a3b31(0x25d)];if(_0x1c7fca)try{let _0x56f2bc=JSON[_0x2a3b31(0x255)](_0x1c7fca);return x(_0x56f2bc)?_0x56f2bc:void 0x0;}catch{return;}}function At(_0x27a7dd){const _0x1caa8f=_0x264b29;return _0x27a7dd?_0x4efc23({'lastValue':_0x27a7dd[_0x1caa8f(0x1c7)],'numberFormat':_0x27a7dd[_0x1caa8f(0x26d)]})[_0x1caa8f(0x280)]:'';}let Q=class extends _0x569963{constructor(_0x2bac92,_0x5dd0cb,_0x429ee3){const _0x447cb1=_0x264b29;super(),this[_0x447cb1(0x2c1)]=_0x2bac92,this['_cacheEligibilityService']=_0x5dd0cb,this[_0x447cb1(0x299)](_0x429ee3['registerProvider'](this));}[_0x264b29(0x1f9)](_0x1892db){const _0x51205c=_0x264b29;let _0x3ffcb4=new Map();for(let _0xdf09b of this[_0x51205c(0x2c1)]['getRegisteredFormulas']()){var _0x3e437b;if(!this[_0x51205c(0x236)][_0x51205c(0x237)](_0xdf09b[_0x51205c(0x2b9)][_0x51205c(0x221)],_0xdf09b[_0x51205c(0x25e)])[_0x51205c(0x206)])continue;let _0x45ffb4=_0x5cb5f9(_0xdf09b[_0x51205c(0x25e)]),_0x596fd7=_0x45ffb4?_0x7d98f0(_0x45ffb4):null;if(!_0x596fd7||jt(_0xdf09b[_0x51205c(0x2b9)][_0x51205c(0x1c7)],_0x596fd7))continue;let _0x81153d=_0x3ffcb4[_0x51205c(0x2a1)](_0xdf09b['identity'][_0x51205c(0x27f)])??[];_0x81153d[_0x51205c(0x232)]({'rangeId':_0xdf09b['identity']['rangeId'],'expectedFormula':_0xdf09b[_0x51205c(0x2b9)]['formula'],'expectedNumberFormat':(_0x3e437b=_0xdf09b[_0x51205c(0x2b9)][_0x51205c(0x26d)])==null?void 0x0:_0x3e437b[_0x51205c(0x1e3)],'expectedReferenceRevision':_0xdf09b[_0x51205c(0x261)],'lastValue':_0x596fd7}),_0x3ffcb4['set'](_0xdf09b['identity'][_0x51205c(0x27f)],_0x81153d);}return Array[_0x51205c(0x295)](_0x3ffcb4,([_0x2c2cff,_0x11ebe9])=>({'id':H['id'],'params':{'unitId':_0x2c2cff,'updates':_0x11ebe9}}));}};Q=I([F(0x0,_0x1d2e55(L)),F(0x1,_0x1d2e55(_0x41d6af)),F(0x2,_0x1d2e55(_0x5d5f94))],Q);function jt(_0x4606d8,_0x4c3752){const _0x59c8c3=_0x264b29;return(_0x4606d8==null?void 0x0:_0x4606d8['v'])===_0x4c3752['v']&&(_0x4606d8==null?void 0x0:_0x4606d8['t'])===_0x4c3752['t']&&(_0x4606d8==null?void 0x0:_0x4606d8[_0x59c8c3(0x1e3)])===_0x4c3752[_0x59c8c3(0x1e3)];}let $=class extends _0x31a11d{constructor(_0x4d68c2=Dt,_0x48cfea,_0x11ed34,_0x21395d){const _0x59812a=_0x264b29;super(),this[_0x59812a(0x251)]=_0x4d68c2,this['_injector']=_0x48cfea,this[_0x59812a(0x2b8)]=_0x11ed34,this[_0x59812a(0x2c0)]=_0x21395d;let {..._0x5730f5}=_0x51b41b({},Dt,this[_0x59812a(0x251)]);this[_0x59812a(0x2c0)][_0x59812a(0x23b)](_0x59812a(0x23d),_0x5730f5);}[_0x264b29(0x208)](){const _0x24c1b7=_0x264b29;this[_0x24c1b7(0x201)]['add']([P]),this[_0x24c1b7(0x201)][_0x24c1b7(0x2ba)]([L]),this['_injector'][_0x24c1b7(0x2ba)]([X]),this['_injector'][_0x24c1b7(0x2ba)]([Y]),this[_0x24c1b7(0x201)][_0x24c1b7(0x2ba)]([Q]),this['_injector']['add']([Z]),_0x49392e(this[_0x24c1b7(0x201)],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x24c1b7(0x28d)](_0x5df6cf=>this['disposeWithMe'](this['_commandService'][_0x24c1b7(0x289)](_0x5df6cf)));}};N($,'pluginName',y),N($,'packageName',Tt),N($,_0x264b29(0x2a5),Et),N($,_0x264b29(0x262),_0x3558e2[_0x264b29(0x29d)]),$=I([_0x266f15(_0x2a9b80,_0x5cc36f,_0x53cb62),F(0x1,_0x1d2e55(_0x575280)),F(0x2,_0x507020),F(0x3,_0x13ba27)],$);export{lt as ConvertDocFormulaToTextCommand,Me as DOC_FORMULA_CUSTOM_RANGE_KIND,Ne as DOC_FORMULA_OBJECT_REPLACEMENT,y as DOC_FORMULA_PLUGIN,je as DOC_FORMULA_SCHEMA_VERSION,Z as DocFormulaDisplayTextService,Y as DocFormulaLifecycleController,P as DocFormulaModel,X as DocFormulaResourceController,it as DocFormulaResultStatus,L as DocFormulaService,U as InsertDocFormulaCommand,C as InvalidDocFormulaInsertRangeError,K as RemoveDocFormulaCommand,st as RemoveDocFormulaMutation,ct as ReplaceDocFormulaWithTextCommand,H as SetDocFormulaLastValuesMutation,ot as SetDocFormulaMutation,G as SetDocFormulaNumberFormatCommand,V as SetDocFormulaResourceMutation,$ as UniverDocsFormulaPlugin,W as UpdateDocFormulaCommand,He as assertSafeDocFormulaInsertRange,Re as buildInsertDocFormulaActions,Be as buildRemoveDocFormulaActions,ze as buildUpdateDocFormulaActions,b as createEmptyDocFormulaResource,Ot as degradeDocFormulaDocumentData,T as findDocFormulaRange,Pe as isDocFormulaConfig,w as isDocFormulaRange,x as isDocFormulaResource,Fe as isFormulaLastValue};
|
|
1
|
+
const _0x57d9cc=_0x47e0;(function(_0x1e2447,_0x4981ed){const _0xcc12e4=_0x47e0,_0x236cf4=_0x1e2447();while(!![]){try{const _0x49eec9=parseInt(_0xcc12e4(0x1ca))/0x1+-parseInt(_0xcc12e4(0x10a))/0x2*(parseInt(_0xcc12e4(0x176))/0x3)+-parseInt(_0xcc12e4(0x1cc))/0x4+parseInt(_0xcc12e4(0x12f))/0x5+-parseInt(_0xcc12e4(0x189))/0x6*(-parseInt(_0xcc12e4(0x1bc))/0x7)+parseInt(_0xcc12e4(0xe6))/0x8*(-parseInt(_0xcc12e4(0x154))/0x9)+parseInt(_0xcc12e4(0xea))/0xa;if(_0x49eec9===_0x4981ed)break;else _0x236cf4['push'](_0x236cf4['shift']());}catch(_0x10b469){_0x236cf4['push'](_0x236cf4['shift']());}}}(_0x525a,0x277f5));import{FormulaCacheEligibilityService as _0x589545,FormulaLastValuePersistenceService as _0x4d102c,HostExternalReferenceModel as _0xd24d44,UniverProFormulaEnginePlugin as _0x3cd3d5,buildUpsertHostExternalReferenceMutations as _0x5eee2b,collectFormulaExternalReferenceQualifiers as _0x2db29b,getScalarFormulaResultCell as _0x1bae38,resolveFormulaResultPresentation as _0x819468,resolveHostFormulaExternalReferences as _0x1b4c96,toFormulaLastValue as _0x47e086}from'@univerjs-pro/engine-formula';import{CellValueType as _0x460570,CommandType as _0x50d8aa,CustomRangeType as _0x4f0308,DataStreamTreeTokenType as _0x2213a9,DependentOn as _0x2afdc3,Disposable as _0x6c759e,ICommandService as _0x29cd00,IConfigService as _0x476834,IResourceManagerService as _0x491b6a,IUndoRedoService as _0x3a8e54,IUniverInstanceService as _0x2ec209,Inject as _0x562b77,Injector as _0x14f00e,JSONX as _0x3ed648,Plugin as _0x36ab54,TextX as _0x5899e6,Tools as _0x1cca7e,UniverInstanceType as _0x485006,generateRandomId as _0x317234,getBodySliceForTextXAction as _0x3580b2,getCustomRangeInterval as _0x6f7ad7,getParagraphContentStartOffset as _0x5d3170,getRichTextEditPath as _0x19915,merge as _0x50ef0e,shiftExclusiveRangeOnDelete as _0x5eefc2,shiftExclusiveRangeOnInsert as _0x330ba7,shiftInclusiveRangeOnDelete as _0x93287,shiftInclusiveRangeOnInsert as _0x55cf79,touchDependencies as _0x79798a}from'@univerjs/core';import{DOC_SELECTION_OPTION_PRESERVE_CARET as _0x4ce9e7,DocSelectionManagerService as _0x53d90b,DocTextResolverService as _0x3bca36,RichTextEditingMutation as _0x3fc66a,UniverDocsPlugin as _0x5052e5}from'@univerjs/docs';import{FormulaResultStatus as _0xb8ac26,LexerTreeBuilder as _0x9066cf,OtherFormulaBizType as _0x5ce098,RegisterOtherFormulaService as _0x75c62f}from'@univerjs/engine-formula';import{Subject as _0x5e8940}from'rxjs';import{UniverLicensePlugin as _0x59ff3a}from'@univerjs-pro/license';const y='DOC_FORMULA_PLUGIN',je=0x1,Me=_0x57d9cc(0x118),Ne='';function b(){return{'schemaVersion':0x1,'formulas':{}};}function x(_0x3b3ebe){const _0x2e5626=_0x57d9cc;return!_0x3b3ebe||typeof _0x3b3ebe!='object'||!S(_0x3b3ebe,[_0x2e5626(0x172),'formulas'])||!(_0x2e5626(0x172)in _0x3b3ebe)||_0x3b3ebe[_0x2e5626(0x172)]!==0x1||!('formulas'in _0x3b3ebe)||!_0x3b3ebe['formulas']||typeof _0x3b3ebe[_0x2e5626(0xf6)]!='object'||Array['isArray'](_0x3b3ebe['formulas'])?!0x1:Object['entries'](_0x3b3ebe['formulas'])[_0x2e5626(0x162)](([_0x1c0e49,_0x84dad4])=>_0x1c0e49['length']>0x0&&Pe(_0x84dad4));}function _0x525a(){const _0x1220d9=['tables','call','resourceRedo','ERROR','_loadErrors','646056NleKTh','load','endOffset','object','TABLE_START','rangeId','resolved','_registrationService','next','columnGroups','_resourceManagerService','packageName','numberFormat','slice','DOC','externalMutations','startsWith','referenceRevision','add','previousResource','unsupported-version','TABLE_END','type','Doc\x20Formula\x20range\x20cannot\x20cross\x20document\x20structure\x20boundaries','complete','model','customRanges','lastValue','getBody','_change$','clear','syncExecuteCommand','unitId','getFormulaValueSync','unregister','docs-formula.command.update','docs-formula.command.replace-with-text','cell','formula','COLUMN_GROUP_START','getSnapshot','retain','_updateFormulaResult','set','min','replaceDocRanges','getRegisteredFormulas','previousDocumentData','UNIVER_DOC','unregisterUnit','stale','7nujdFw','insert','setResource','resourceUndo','@univerjs-pro/docs-formula','_queueSync','_syncScheduled','empty','_configService','PARAGRAPH','assign','_registrations','_setPresentation','_hostExternalReferenceModel','87660pWseOA','TABLE_CELL_START','734440kacuxL','defineProperty','find','_instanceService','string','getInstance','values','documentData','nextResource','docs-formula.mutation.set-last-values','delete','params','textRuns','sectionBreaks','identity','setFormula','degradeBody','registerPluginResource','_formulaKeys','some','iterator','COLUMN_GROUP_END','1066040LrRfQj','get','isInteger','accessor','2489660sHPaWg','endsWith','trigger','range','presentationChanged$','endIndex','_isDisposed','CUSTOM','data','map','startIndex','onStarting','formulas','docs-formula.command.set-number-format','kind','trim','paragraph','insertLength','setFormulas','length','start','rangeType','startOffset','registerFormulaWithRange','paragraphs','decorate','undoMutation','_formulaService','document','source','serialize','disposeWithMe','25020dwhufz','liveResult','selection','number','presentation','deepClone','version','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_deleteRegistration','text','_preserveInvalid','getRevision','getAllUnitsForType','docs-formula.mutation.set-formula','univer-docs-formula','_config','getTextRanges','body','docs-formula.command.convert-to-text','deleteLength','symbol','getCurrentUnitOfType','redoMutation','pattern','Document\x20main\x20body\x20is\x20required\x20to\x20insert\x20Doc\x20Formula.','unitDisposed$','_rawResources','_commandService','_model','max','constructor','COLUMN_START','collectMutations','_resources','from','_pendingUnitIds','TABLE_CELL_END','1235070dWrrgn','getOwnPropertyDescriptor','resource','end','COMMAND','_docFormulaModel','1.0.0-rc.0','MUTATION','properties','updates','forEach','config','TABLE_ROW_START','EMPTY','dataStream','documentRedo','includes','BLOCK_START','getUnit','nextDocumentData','name','push','removeFormula','_service','editOp','registerCommand','dispose','docs-formula.command.remove','blockRanges','default','getFormulas','CUSTOM_BLOCK','sequenceNodesBuilder','SUCCESS','customDecorations','function','degradeDocumentData','9SobsTd','success','has','stringify','COLUMN_END','getResult','resolveBinding','_injector','sort','docs-formula.mutation.set-resource','status','pushUndoRedo','customBlocks','position','every','_univerInstanceService','resolveFormula','segmentId','getResource','formulaId','cursorOffset','register','getLoadError','expectedReferenceRevision','subscribe','parse','keys','resources','color','_syncUnit','schemaVersion','PENDING','disabled','resolveText','51uwxoZK','eligible','pending','SECTION_BREAK','syncUnit','filter','docs-formula.mutation.remove-formula','boolean','toPrimitive','asObservable','getFormula','getUnitId','expectedFormula','_presentationChanged$'];_0x525a=function(){return _0x1220d9;};return _0x525a();}function Pe(_0x2bce2d){const _0x21be3=_0x57d9cc;return!_0x2bce2d||typeof _0x2bce2d!=_0x21be3(0x18c)||!S(_0x2bce2d,[_0x21be3(0x1af),'numberFormat',_0x21be3(0x1a4)])||!('formula'in _0x2bce2d)||typeof _0x2bce2d[_0x21be3(0x1af)]!='string'||!_0x2bce2d['formula'][_0x21be3(0xf9)]()||_0x21be3(0x195)in _0x2bce2d&&_0x2bce2d[_0x21be3(0x195)]!=null&&(typeof _0x2bce2d[_0x21be3(0x195)]!='object'||!S(_0x2bce2d[_0x21be3(0x195)],[_0x21be3(0x121)])||!(_0x21be3(0x121)in _0x2bce2d['numberFormat'])||typeof _0x2bce2d[_0x21be3(0x195)][_0x21be3(0x121)]!='string')?!0x1:!(_0x21be3(0x1a4)in _0x2bce2d)||_0x2bce2d[_0x21be3(0x1a4)]==null||Fe(_0x2bce2d[_0x21be3(0x1a4)]);}function Fe(_0x395e25){const _0x5a2077=_0x57d9cc;return!_0x395e25||typeof _0x395e25!='object'||!S(_0x395e25,['v','t',_0x5a2077(0x121)])||!('v'in _0x395e25)||_0x395e25['v']!==null&&typeof _0x395e25['v']!=_0x5a2077(0x1d0)&&typeof _0x395e25['v']!=_0x5a2077(0x10d)&&typeof _0x395e25['v']!=_0x5a2077(0x17d)||'t'in _0x395e25&&_0x395e25['t']!=null&&!Ie(_0x395e25['t'])?!0x1:!(_0x5a2077(0x121)in _0x395e25)||_0x395e25['pattern']==null||typeof _0x395e25[_0x5a2077(0x121)]==_0x5a2077(0x1d0);}function S(_0xb65c73,_0x5a1463){const _0x57165f=_0x57d9cc;let _0x5b59ab=new Set(_0x5a1463);return Object['keys'](_0xb65c73)[_0x57165f(0x162)](_0x4192c0=>_0x5b59ab['has'](_0x4192c0));}function Ie(_0x107019){const _0x49c4e9=_0x57d9cc;return typeof _0x107019==_0x49c4e9(0x10d)&&Object[_0x49c4e9(0x1d2)](_0x460570)[_0x49c4e9(0x13f)](_0x107019);}const Le=new Set([_0x2213a9[_0x57d9cc(0x179)],_0x2213a9[_0x57d9cc(0x18d)],_0x2213a9[_0x57d9cc(0x13b)],_0x2213a9[_0x57d9cc(0x1cb)],_0x2213a9[_0x57d9cc(0x12e)],_0x2213a9['TABLE_ROW_END'],_0x2213a9[_0x57d9cc(0x19e)],_0x2213a9[_0x57d9cc(0x1b0)],_0x2213a9[_0x57d9cc(0x129)],_0x2213a9[_0x57d9cc(0x158)],_0x2213a9[_0x57d9cc(0xe5)],_0x2213a9[_0x57d9cc(0x140)],_0x2213a9['BLOCK_END'],_0x2213a9[_0x57d9cc(0x14e)]]);var C=class extends Error{constructor(){const _0x342474=_0x57d9cc;super(_0x342474(0x1a0));}};function Re(_0x2c4a84){const _0x10638a=_0x57d9cc;var _0x192651,_0x1ddb97;let _0x5637cc=_0x1cca7e[_0x10638a(0x10f)](_0x2c4a84[_0x10638a(0x1d3)]),_0x8dcc36=j(_0x5637cc),{startOffset:_0x359b1b,endOffset:_0x1ad629}=We(_0x8dcc36,_0x2c4a84[_0x10638a(0x100)],_0x2c4a84[_0x10638a(0x18b)]);He(_0x8dcc36,_0x359b1b,_0x1ad629);let _0x487fcb=((_0x192651=_0x8dcc36[_0x10638a(0x1a3)])==null?void 0x0:_0x192651[_0x10638a(0x17b)](_0x2b6c0d=>{const _0xe9bff3=_0x10638a;if(!w(_0x2b6c0d))return!0x1;let _0x25a1aa=_0x6f7ad7(_0x2b6c0d);return _0x25a1aa[_0xe9bff3(0x18b)]>_0x359b1b&&_0x25a1aa['startOffset']<_0x1ad629;})[_0x10638a(0xf3)](_0x258a26=>_0x258a26[_0x10638a(0x18e)]))??[];qe(_0x8dcc36,_0x359b1b,_0x1ad629,''),_0x8dcc36[_0x10638a(0x1a3)]=[...((_0x1ddb97=_0x8dcc36[_0x10638a(0x1a3)])==null?void 0x0:_0x1ddb97[_0x10638a(0x17b)](_0x1280bf=>!_0x487fcb[_0x10638a(0x13f)](_0x1280bf[_0x10638a(0x18e)])&&_0x1280bf['rangeId']!==_0x2c4a84[_0x10638a(0x18e)]))??[],Ue(_0x2c4a84[_0x10638a(0x18e)],_0x359b1b)][_0x10638a(0x15c)]((_0x1e8e6b,_0x23980c)=>_0x1e8e6b[_0x10638a(0xf4)]-_0x23980c[_0x10638a(0xf4)]);let _0x112ce3=E(_0x2c4a84[_0x10638a(0x131)]);return _0x487fcb['forEach'](_0x2fbfb0=>{delete _0x112ce3['formulas'][_0x2fbfb0];}),_0x112ce3[_0x10638a(0xf6)][_0x2c4a84[_0x10638a(0x18e)]]=_0x1cca7e[_0x10638a(0x10f)](_0x2c4a84['config']),{'nextDocumentData':_0x5637cc,'nextResource':_0x112ce3,'cursorOffset':_0x359b1b+0x1};}function ze(_0x239863){const _0x31f40a=_0x57d9cc;var _0x2c6bd6,_0x2dfc0f;let _0x5ba6cc=_0x1cca7e[_0x31f40a(0x10f)](_0x239863[_0x31f40a(0x1d3)]),_0x5a330c=(_0x2c6bd6=j(_0x5ba6cc)[_0x31f40a(0x1a3)])==null?void 0x0:_0x2c6bd6[_0x31f40a(0x1ce)](_0x289514=>_0x289514[_0x31f40a(0x18e)]===_0x239863[_0x31f40a(0x18e)]&&w(_0x289514));if(!_0x5a330c||!((_0x2dfc0f=_0x239863[_0x31f40a(0x131)])!=null&&_0x2dfc0f[_0x31f40a(0xf6)][_0x239863[_0x31f40a(0x18e)]]))return null;let _0x5364df=E(_0x239863[_0x31f40a(0x131)]);return _0x5364df[_0x31f40a(0xf6)][_0x239863[_0x31f40a(0x18e)]]=_0x1cca7e[_0x31f40a(0x10f)](_0x239863[_0x31f40a(0x13a)]),{'nextDocumentData':_0x5ba6cc,'nextResource':_0x5364df,'cursorOffset':_0x5a330c['endIndex']+0x1};}function Be(_0x150cff){const _0x100a61=_0x57d9cc;let _0x5b8c36=_0x1cca7e[_0x100a61(0x10f)](_0x150cff['documentData']),_0x3e29c9=Je(_0x5b8c36,_0x150cff[_0x100a61(0x18e)],_0x150cff['text']??'');if(_0x3e29c9==null)return null;let _0x3a17ac=E(_0x150cff[_0x100a61(0x131)]);return delete _0x3a17ac['formulas'][_0x150cff['rangeId']],{'nextDocumentData':_0x5b8c36,'nextResource':_0x3a17ac,'cursorOffset':_0x3e29c9};}function Ve(_0x5e97ca,_0x1bd7de){const _0x2998c2=_0x57d9cc;var _0x5840a1;let _0x4d9561=_0x1cca7e['deepClone'](_0x5e97ca),_0x2a34a7=_0x4d9561[_0x2998c2(0x11b)];if(!_0x2a34a7)return _0x4d9561;let _0x34c7b5=new Map(_0x1bd7de[_0x2998c2(0xf3)](_0x55ddd8=>[_0x55ddd8[_0x2998c2(0x18e)],_0x55ddd8[_0x2998c2(0x113)]])),_0x5da69b=((_0x5840a1=_0x2a34a7[_0x2998c2(0x1a3)])==null?void 0x0:_0x5840a1['filter'](_0x5825e0=>w(_0x5825e0)&&_0x34c7b5[_0x2998c2(0x156)](_0x5825e0['rangeId']))['sort']((_0x2024b9,_0x3b5776)=>_0x3b5776[_0x2998c2(0xf4)]-_0x2024b9[_0x2998c2(0xf4)]))??[];for(let _0x2e39ba of _0x5da69b)Je(_0x4d9561,_0x2e39ba[_0x2998c2(0x18e)],_0x34c7b5['get'](_0x2e39ba[_0x2998c2(0x18e)])??'');return _0x4d9561;}function w(_0x59c94c){const _0x311d5b=_0x57d9cc;var _0x169577;return(_0x59c94c==null?void 0x0:_0x59c94c[_0x311d5b(0xff)])===_0x4f0308[_0x311d5b(0xf1)]&&_0x59c94c['wholeEntity']===!0x0&&((_0x169577=_0x59c94c[_0x311d5b(0x137)])==null?void 0x0:_0x169577[_0x311d5b(0xf8)])==='univer-docs-formula';}function T(_0x437a75,_0x290452){const _0x1ac4de=_0x57d9cc;var _0x1531e5;return _0x437a75==null||(_0x1531e5=_0x437a75[_0x1ac4de(0x1a3)])==null?void 0x0:_0x1531e5[_0x1ac4de(0x1ce)](_0x434344=>_0x434344[_0x1ac4de(0x18e)]===_0x290452&&w(_0x434344));}function He(_0x3ea42f,_0x3cd67b,_0x113c8c){const _0x46abf1=_0x57d9cc;if(_0x3cd67b===_0x113c8c){if(Le['has'](_0x3ea42f[_0x46abf1(0x13d)][_0x3cd67b]))throw new C();return;}for(let _0x45a7d5=_0x3cd67b;_0x45a7d5<_0x113c8c;_0x45a7d5++)if(_0x3ea42f['dataStream'][_0x45a7d5]===_0x2213a9['PARAGRAPH']||Le[_0x46abf1(0x156)](_0x3ea42f['dataStream'][_0x45a7d5]))throw new C();}function Ue(_0x328a0f,_0x35d9a3){const _0x4b933a=_0x57d9cc;return{'startIndex':_0x35d9a3,'endIndex':_0x35d9a3,'rangeId':_0x328a0f,'rangeType':_0x4f0308[_0x4b933a(0xf1)],'wholeEntity':!0x0,'properties':{'kind':Me}};}function E(_0x60535e){const _0x200d70=_0x57d9cc;return _0x60535e?_0x1cca7e[_0x200d70(0x10f)](_0x60535e):b();}function We(_0x25e3ff,_0x8782e2,_0x220b0a){const _0x31c882=_0x57d9cc;let _0x2131dc=Ke(_0x25e3ff),_0x15fa0b=_0x8782e2??_0x2131dc,_0x30b4cc=_0x220b0a??_0x15fa0b;return{'startOffset':Ge(Math[_0x31c882(0x1b5)](_0x15fa0b,_0x30b4cc),_0x2131dc),'endOffset':Ge(Math[_0x31c882(0x127)](_0x15fa0b,_0x30b4cc),_0x2131dc)};}function Ge(_0x4926d6,_0x19e3c9){const _0x5e0951=_0x57d9cc;return Math[_0x5e0951(0x127)](0x0,Math[_0x5e0951(0x1b5)](_0x4926d6,_0x19e3c9));}function Ke(_0x3efc3d){const _0x311d23=_0x57d9cc;return _0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xeb)](''+_0x2213a9[_0x311d23(0x1c5)]+_0x2213a9[_0x311d23(0x179)])?Math[_0x311d23(0x127)](0x0,_0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xfd)]-0x2):_0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xeb)](_0x2213a9[_0x311d23(0x179)])?Math['max'](0x0,_0x3efc3d[_0x311d23(0x13d)][_0x311d23(0xfd)]-0x1):_0x3efc3d[_0x311d23(0x13d)]['length'];}function qe(_0x3f656a,_0x32691b,_0x328b59,_0x82675a){_0x328b59>_0x32691b&&Xe(_0x3f656a,_0x32691b,_0x328b59),Ye(_0x3f656a,_0x32691b,_0x82675a);}function Je(_0x1a5ee0,_0x2bbfbf,_0x246432){const _0x1ebf03=_0x57d9cc;var _0x17d967,_0x24a318;let _0x395f6e=j(_0x1a5ee0),_0x30aa0d=(_0x17d967=_0x395f6e[_0x1ebf03(0x1a3)])==null?void 0x0:_0x17d967['find'](_0x3d00ed=>_0x3d00ed[_0x1ebf03(0x18e)]===_0x2bbfbf&&w(_0x3d00ed));if(!_0x30aa0d)return null;let _0x2f295c=_0x6f7ad7(_0x30aa0d);return qe(_0x395f6e,_0x2f295c[_0x1ebf03(0x100)],_0x2f295c[_0x1ebf03(0x18b)],_0x246432),_0x395f6e['customRanges']=(_0x24a318=_0x395f6e[_0x1ebf03(0x1a3)])==null?void 0x0:_0x24a318[_0x1ebf03(0x17b)](_0x44ce1b=>_0x44ce1b[_0x1ebf03(0x18e)]!==_0x2bbfbf),_0x2f295c['startOffset']+_0x246432[_0x1ebf03(0xfd)];}function Ye(_0x559506,_0x59def7,_0x4b4fe1){const _0x4d3112=_0x57d9cc;_0x4b4fe1&&(_0x559506[_0x4d3112(0x13d)]=''+_0x559506[_0x4d3112(0x13d)][_0x4d3112(0x196)](0x0,_0x59def7)+_0x4b4fe1+_0x559506[_0x4d3112(0x13d)][_0x4d3112(0x196)](_0x59def7),Ze(_0x559506,_0x59def7,_0x4b4fe1[_0x4d3112(0xfd)]));}function Xe(_0x3c25e8,_0x5373f2,_0x5b53eb){const _0x4690d6=_0x57d9cc;let _0x3d77d8=_0x5b53eb-_0x5373f2;_0x3c25e8['dataStream']=''+_0x3c25e8[_0x4690d6(0x13d)][_0x4690d6(0x196)](0x0,_0x5373f2)+_0x3c25e8['dataStream'][_0x4690d6(0x196)](_0x5b53eb),Qe(_0x3c25e8,_0x5373f2,_0x3d77d8);}function Ze(_0x82d2c1,_0x8f5cd8,_0x3c5e44){const _0xbd063a=_0x57d9cc;_0x82d2c1['paragraphs']=D(_0x82d2c1[_0xbd063a(0x102)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x1d9)]=D(_0x82d2c1[_0xbd063a(0x1d9)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x160)]=D(_0x82d2c1[_0xbd063a(0x160)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x1d8)]=$e(_0x82d2c1[_0xbd063a(0x1d8)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x184)]=et(_0x82d2c1[_0xbd063a(0x184)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x192)]=k(_0x82d2c1[_0xbd063a(0x192)],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x1a3)]=k(_0x82d2c1['customRanges'],_0x8f5cd8,_0x3c5e44),_0x82d2c1[_0xbd063a(0x151)]=k(_0x82d2c1['customDecorations'],_0x8f5cd8,_0x3c5e44),_0x82d2c1['blockRanges']=k(_0x82d2c1['blockRanges'],_0x8f5cd8,_0x3c5e44);}function Qe(_0x359a66,_0x5b06a9,_0x1b34c1){const _0x355fcc=_0x57d9cc;var _0x4c1703,_0x8de51d;_0x359a66[_0x355fcc(0x102)]=O(_0x359a66[_0x355fcc(0x102)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x1d9)]=O(_0x359a66[_0x355fcc(0x1d9)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x160)]=O(_0x359a66[_0x355fcc(0x160)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x1d8)]=(_0x4c1703=tt((_0x8de51d=_0x359a66[_0x355fcc(0x1d8)])==null?void 0x0:_0x8de51d['map'](_0x4ddab4=>({..._0x4ddab4,'startIndex':_0x4ddab4['st'],'endIndex':_0x4ddab4['ed']})),_0x5b06a9,_0x1b34c1))==null?void 0x0:_0x4c1703['map'](_0xab1bf4=>{let {startIndex:_0x30a35f,endIndex:_0x1158cd,..._0x2243e0}=_0xab1bf4;return{..._0x2243e0,'st':_0x30a35f,'ed':_0x1158cd};}),_0x359a66[_0x355fcc(0x184)]=tt(_0x359a66[_0x355fcc(0x184)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x192)]=A(_0x359a66[_0x355fcc(0x192)],_0x5b06a9,_0x1b34c1),_0x359a66['customRanges']=A(_0x359a66[_0x355fcc(0x1a3)],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x151)]=A(_0x359a66['customDecorations'],_0x5b06a9,_0x1b34c1),_0x359a66[_0x355fcc(0x14b)]=A(_0x359a66['blockRanges'],_0x5b06a9,_0x1b34c1);}function D(_0x48ac61,_0x37dad4,_0xa62862){const _0x1c8818=_0x57d9cc;return _0x48ac61==null?void 0x0:_0x48ac61[_0x1c8818(0xf3)](_0x156292=>_0x156292[_0x1c8818(0xf4)]>=_0x37dad4?{..._0x156292,'startIndex':_0x156292[_0x1c8818(0xf4)]+_0xa62862}:_0x156292);}function O(_0x5e6f36,_0x32c1ac,_0x273496){const _0x37d7f5=_0x57d9cc;let _0x43640a=_0x32c1ac+_0x273496;return _0x5e6f36==null?void 0x0:_0x5e6f36[_0x37d7f5(0xf3)](_0x2876c9=>_0x2876c9[_0x37d7f5(0xf4)]>=_0x32c1ac&&_0x2876c9[_0x37d7f5(0xf4)]<_0x43640a?null:_0x2876c9[_0x37d7f5(0xf4)]>=_0x43640a?{..._0x2876c9,'startIndex':_0x2876c9[_0x37d7f5(0xf4)]-_0x273496}:_0x2876c9)[_0x37d7f5(0x17b)](_0x17ed4d=>_0x17ed4d!=null);}function $e(_0x643b27,_0x1c66c9,_0x1e8be5){const _0x296862=_0x57d9cc;return _0x643b27==null?void 0x0:_0x643b27[_0x296862(0xf3)](_0x20c51a=>_0x20c51a['st']>=_0x1c66c9?{..._0x20c51a,'st':_0x20c51a['st']+_0x1e8be5,'ed':_0x20c51a['ed']+_0x1e8be5}:_0x20c51a['ed']>_0x1c66c9?{..._0x20c51a,'ed':_0x20c51a['ed']+_0x1e8be5}:_0x20c51a);}function k(_0x1fd640,_0x3cb801,_0x3a7bee){const _0x1992fb=_0x57d9cc;return _0x1fd640==null?void 0x0:_0x1fd640[_0x1992fb(0xf3)](_0x178ad1=>_0x55cf79(_0x178ad1,_0x3cb801,_0x3a7bee));}function et(_0x348d9b,_0x12cffd,_0x42199a){const _0x43ed33=_0x57d9cc;return _0x348d9b==null?void 0x0:_0x348d9b[_0x43ed33(0xf3)](_0x535e91=>_0x330ba7(_0x535e91,_0x12cffd,_0x42199a));}function A(_0x4fa834,_0x521380,_0x2b79b0){const _0x5568eb=_0x57d9cc;return _0x4fa834==null?void 0x0:_0x4fa834[_0x5568eb(0xf3)](_0x3f40a4=>_0x93287(_0x3f40a4,_0x521380,_0x2b79b0))['filter'](_0x2b8491=>_0x2b8491!=null);}function tt(_0x21ae0b,_0x1471f0,_0x5597a4){const _0x1dcaed=_0x57d9cc;return _0x21ae0b==null?void 0x0:_0x21ae0b['map'](_0x2a0a86=>_0x5eefc2(_0x2a0a86,_0x1471f0,_0x5597a4))[_0x1dcaed(0x17b)](_0x251a3b=>_0x251a3b!=null);}function j(_0x498b5d){const _0x54a670=_0x57d9cc;if(!_0x498b5d[_0x54a670(0x11b)])throw Error(_0x54a670(0x122));return _0x498b5d[_0x54a670(0x11b)];}function M(_0x372ddc){'@babel/helpers - typeof';const _0x4ef4d8=_0x57d9cc;return M=typeof Symbol==_0x4ef4d8(0x152)&&typeof Symbol[_0x4ef4d8(0xe4)]=='symbol'?function(_0x24f753){return typeof _0x24f753;}:function(_0x11671a){const _0x5c1831=_0x4ef4d8;return _0x11671a&&typeof Symbol==_0x5c1831(0x152)&&_0x11671a[_0x5c1831(0x128)]===Symbol&&_0x11671a!==Symbol['prototype']?_0x5c1831(0x11e):typeof _0x11671a;},M(_0x372ddc);}function nt(_0x6c9f02,_0x47ea1d){const _0x4f6c84=_0x57d9cc;if(M(_0x6c9f02)!=_0x4f6c84(0x18c)||!_0x6c9f02)return _0x6c9f02;var _0x42482b=_0x6c9f02[Symbol[_0x4f6c84(0x17e)]];if(_0x42482b!==void 0x0){var _0x362aae=_0x42482b[_0x4f6c84(0x185)](_0x6c9f02,_0x47ea1d||_0x4f6c84(0x14c));if(M(_0x362aae)!=_0x4f6c84(0x18c))return _0x362aae;throw TypeError(_0x4f6c84(0x111));}return(_0x47ea1d===_0x4f6c84(0x1d0)?String:Number)(_0x6c9f02);}function rt(_0x2d6783){const _0x30bade=_0x57d9cc;var _0x5e489b=nt(_0x2d6783,_0x30bade(0x1d0));return M(_0x5e489b)==_0x30bade(0x11e)?_0x5e489b:_0x5e489b+'';}function N(_0x819d0c,_0x5c963a,_0x324b04){return(_0x5c963a=rt(_0x5c963a))in _0x819d0c?Object['defineProperty'](_0x819d0c,_0x5c963a,{'value':_0x324b04,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x819d0c[_0x5c963a]=_0x324b04,_0x819d0c;}var P=class extends _0x6c759e{constructor(..._0x238957){const _0x4beedb=_0x57d9cc;super(..._0x238957),N(this,_0x4beedb(0x12b),new Map()),N(this,'_rawResources',new Map()),N(this,_0x4beedb(0x188),new Map()),N(this,_0x4beedb(0x1a6),new _0x5e8940()),N(this,'change$',this[_0x4beedb(0x1a6)]['asObservable']());}[_0x57d9cc(0x180)](_0x268182,_0x344179){const _0x4d9029=_0x57d9cc;var _0x1609ef;let _0x4e3999=(_0x1609ef=this[_0x4d9029(0x12b)][_0x4d9029(0xe7)](_0x268182))==null?void 0x0:_0x1609ef[_0x4d9029(0xf6)][_0x344179];return _0x4e3999?_0x1cca7e['deepClone'](_0x4e3999):void 0x0;}[_0x57d9cc(0x14d)](_0xa8fa6a){const _0xe7c339=_0x57d9cc;var _0x1ca03;return _0x1cca7e[_0xe7c339(0x10f)](((_0x1ca03=this['_resources'][_0xe7c339(0xe7)](_0xa8fa6a))==null?void 0x0:_0x1ca03['formulas'])??{});}[_0x57d9cc(0x166)](_0x12bdd8){const _0x20075f=_0x57d9cc;let _0x5bb722=this[_0x20075f(0x12b)]['get'](_0x12bdd8);return _0x5bb722?_0x1cca7e['deepClone'](_0x5bb722):void 0x0;}[_0x57d9cc(0x1db)](_0x1f01ad,_0x42452f,_0x9bfd5f){const _0x32112d=_0x57d9cc;return this[_0x32112d(0xfc)](_0x1f01ad,{[_0x42452f]:_0x9bfd5f});}[_0x57d9cc(0x1be)](_0x29d9e1,_0x118312){const _0x4c978d=_0x57d9cc;return this[_0x4c978d(0x188)][_0x4c978d(0x156)](_0x29d9e1)||!x(_0x118312)?!0x1:(this['_resources'][_0x4c978d(0x1b4)](_0x29d9e1,_0x1cca7e[_0x4c978d(0x10f)](_0x118312)),this[_0x4c978d(0x1a6)]['next']({'unitId':_0x29d9e1}),!0x0);}[_0x57d9cc(0xfc)](_0x163ea0,_0x4ede77){const _0x5cd148=_0x57d9cc;if(this['_loadErrors'][_0x5cd148(0x156)](_0x163ea0)||!Object[_0x5cd148(0x16e)](_0x4ede77)[_0x5cd148(0xfd)]||!x({'schemaVersion':0x1,'formulas':_0x4ede77}))return!0x1;let _0x1abf5c=this['_resources'][_0x5cd148(0xe7)](_0x163ea0)??b(),_0xff111=_0x1cca7e[_0x5cd148(0x10f)](_0x1abf5c);return Object[_0x5cd148(0x1c6)](_0xff111[_0x5cd148(0xf6)],_0x1cca7e[_0x5cd148(0x10f)](_0x4ede77)),this[_0x5cd148(0x12b)][_0x5cd148(0x1b4)](_0x163ea0,_0xff111),this[_0x5cd148(0x1a6)][_0x5cd148(0x191)]({'unitId':_0x163ea0,'rangeIds':Object[_0x5cd148(0x16e)](_0x4ede77)}),!0x0;}[_0x57d9cc(0x145)](_0x10b342,_0x477f3c){const _0x4befcf=_0x57d9cc;if(this[_0x4befcf(0x188)][_0x4befcf(0x156)](_0x10b342))return!0x1;let _0x93325=this[_0x4befcf(0x12b)][_0x4befcf(0xe7)](_0x10b342);if(!(_0x93325!=null&&_0x93325[_0x4befcf(0xf6)][_0x477f3c]))return!0x1;let _0x67db13=_0x1cca7e[_0x4befcf(0x10f)](_0x93325);return delete _0x67db13[_0x4befcf(0xf6)][_0x477f3c],this[_0x4befcf(0x12b)][_0x4befcf(0x1b4)](_0x10b342,_0x67db13),this['_change$']['next']({'unitId':_0x10b342,'rangeIds':[_0x477f3c]}),!0x0;}[_0x57d9cc(0x18a)](_0x10ac17,_0x5f17ed){const _0x1209f5=_0x57d9cc;return _0x5f17ed&&typeof _0x5f17ed==_0x1209f5(0x18c)&&_0x1209f5(0x172)in _0x5f17ed&&_0x5f17ed['schemaVersion']!==0x1?(this[_0x1209f5(0x114)](_0x10ac17,_0x5f17ed,_0x1209f5(0x19d)),!0x1):x(_0x5f17ed)?(this[_0x1209f5(0x12b)][_0x1209f5(0x1b4)](_0x10ac17,_0x1cca7e[_0x1209f5(0x10f)](_0x5f17ed)),this[_0x1209f5(0x124)][_0x1209f5(0x1d6)](_0x10ac17),this[_0x1209f5(0x188)]['delete'](_0x10ac17),this[_0x1209f5(0x1a6)][_0x1209f5(0x191)]({'unitId':_0x10ac17}),!0x0):(this[_0x1209f5(0x114)](_0x10ac17,_0x5f17ed,'invalid-resource'),!0x1);}['serialize'](_0x976c96){const _0x5c9f8d=_0x57d9cc;let _0x52ed71=this[_0x5c9f8d(0x12b)][_0x5c9f8d(0xe7)](_0x976c96);return _0x52ed71?_0x1cca7e[_0x5c9f8d(0x10f)](_0x52ed71):this[_0x5c9f8d(0x124)]['has'](_0x976c96)?_0x1cca7e['deepClone'](this[_0x5c9f8d(0x124)][_0x5c9f8d(0xe7)](_0x976c96)):b();}[_0x57d9cc(0x16a)](_0x522188){const _0x4788ed=_0x57d9cc;return this['_loadErrors'][_0x4788ed(0xe7)](_0x522188);}['removeUnit'](_0x21d71a){const _0x3806b9=_0x57d9cc;this[_0x3806b9(0x12b)][_0x3806b9(0x1d6)](_0x21d71a),this[_0x3806b9(0x124)][_0x3806b9(0x1d6)](_0x21d71a),this[_0x3806b9(0x188)][_0x3806b9(0x1d6)](_0x21d71a),this[_0x3806b9(0x1a6)][_0x3806b9(0x191)]({'unitId':_0x21d71a});}[_0x57d9cc(0x149)](){const _0x34781f=_0x57d9cc;this[_0x34781f(0x12b)][_0x34781f(0x1a7)](),this[_0x34781f(0x124)][_0x34781f(0x1a7)](),this[_0x34781f(0x188)][_0x34781f(0x1a7)](),this[_0x34781f(0x1a6)][_0x34781f(0x1a1)](),super[_0x34781f(0x149)]();}['_preserveInvalid'](_0x2097ee,_0x5c0fb2,_0x24c82a){const _0x218165=_0x57d9cc;this[_0x218165(0x12b)][_0x218165(0x1d6)](_0x2097ee),this[_0x218165(0x124)]['set'](_0x2097ee,_0x1cca7e[_0x218165(0x10f)](_0x5c0fb2)),this[_0x218165(0x188)]['set'](_0x2097ee,_0x24c82a),this['_change$']['next']({'unitId':_0x2097ee});}};let it=function(_0x5a3c9d){const _0x11277d=_0x57d9cc;return _0x5a3c9d[_0x11277d(0x13c)]=_0x11277d(0x1c3),_0x5a3c9d[_0x11277d(0x173)]=_0x11277d(0x178),_0x5a3c9d[_0x11277d(0x150)]='success',_0x5a3c9d[_0x11277d(0x187)]='error',_0x5a3c9d;}({});function F(_0x41be58,_0x3789a0){return function(_0xabbd41,_0x4d87c8){_0x3789a0(_0xabbd41,_0x4d87c8,_0x41be58);};}function I(_0x401da0,_0x357c4e,_0x112456,_0x4edff9){const _0xfc6755=_0x57d9cc;var _0x46077a=arguments[_0xfc6755(0xfd)],_0x59241a=_0x46077a<0x3?_0x357c4e:_0x4edff9===null?_0x4edff9=Object[_0xfc6755(0x130)](_0x357c4e,_0x112456):_0x4edff9,_0x52c5e2;if(typeof Reflect==_0xfc6755(0x18c)&&typeof Reflect[_0xfc6755(0x103)]==_0xfc6755(0x152))_0x59241a=Reflect[_0xfc6755(0x103)](_0x401da0,_0x357c4e,_0x112456,_0x4edff9);else{for(var _0x1c0187=_0x401da0[_0xfc6755(0xfd)]-0x1;_0x1c0187>=0x0;_0x1c0187--)(_0x52c5e2=_0x401da0[_0x1c0187])&&(_0x59241a=(_0x46077a<0x3?_0x52c5e2(_0x59241a):_0x46077a>0x3?_0x52c5e2(_0x357c4e,_0x112456,_0x59241a):_0x52c5e2(_0x357c4e,_0x112456))||_0x59241a);}return _0x46077a>0x3&&_0x59241a&&Object[_0xfc6755(0x1cd)](_0x357c4e,_0x112456,_0x59241a),_0x59241a;}let L=class extends _0x6c759e{constructor(_0x453052,_0x478503,_0x35f3a0){const _0x1de1a7=_0x57d9cc;super(),this[_0x1de1a7(0x126)]=_0x453052,this[_0x1de1a7(0x190)]=_0x478503,this[_0x1de1a7(0x1c9)]=_0x35f3a0,N(this,_0x1de1a7(0x1c7),new Map()),N(this,_0x1de1a7(0xe2),new Map()),N(this,_0x1de1a7(0x183),new _0x5e8940()),N(this,_0x1de1a7(0xee),this['_presentationChanged$'][_0x1de1a7(0x17f)]()),this[_0x1de1a7(0x109)](this[_0x1de1a7(0x190)]['formulaResult$'][_0x1de1a7(0x16c)](_0x25681f=>{const _0x997266=_0x1de1a7;for(let _0x729def of Object['values'](_0x25681f))for(let _0x11959f of Object[_0x997266(0x1d2)](_0x729def))_0x11959f['forEach'](_0x5df794=>this[_0x997266(0x1b3)](_0x5df794));}));}[_0x57d9cc(0x17a)](_0x136f47){const _0x2c30d5=_0x57d9cc;var _0x47714a;let _0x5e0eac=_0x136f47[_0x2c30d5(0x181)](),_0x32a8d0=((_0x47714a=_0x136f47[_0x2c30d5(0x1b1)]()[_0x2c30d5(0x11b)])==null||(_0x47714a=_0x47714a['customRanges'])==null?void 0x0:_0x47714a[_0x2c30d5(0x17b)](w))??[],_0x44671c=this[_0x2c30d5(0x126)][_0x2c30d5(0x14d)](_0x5e0eac),_0xd030bf=new Set();for(let _0x166d99 of _0x32a8d0){let _0x4a840e=_0x44671c[_0x166d99['rangeId']];_0x4a840e&&(_0xd030bf[_0x2c30d5(0x19b)](R(_0x5e0eac,_0x166d99[_0x2c30d5(0x18e)])),this[_0x2c30d5(0x169)]({'unitId':_0x5e0eac,'rangeId':_0x166d99['rangeId']},_0x4a840e));}for(let _0x2b6593 of Array[_0x2c30d5(0x12c)](this[_0x2c30d5(0x1c7)][_0x2c30d5(0x1d2)]()))_0x2b6593[_0x2c30d5(0x1a9)]===_0x5e0eac&&!_0xd030bf[_0x2c30d5(0x156)](R(_0x2b6593['unitId'],_0x2b6593[_0x2c30d5(0x18e)]))&&this['unregister'](_0x2b6593);}['register'](_0x1c313b,_0x369ce8){const _0x56ad80=_0x57d9cc;let _0xea24ba=R(_0x1c313b[_0x56ad80(0x1a9)],_0x1c313b[_0x56ad80(0x18e)]),_0x5405b0=this[_0x56ad80(0x1c7)][_0x56ad80(0xe7)](_0xea24ba),_0x1e4b22=this[_0x56ad80(0x1c9)][_0x56ad80(0x115)](_0x1c313b[_0x56ad80(0x1a9)]);if(_0x5405b0&&_0x5405b0['config'][_0x56ad80(0x1af)]===_0x369ce8[_0x56ad80(0x1af)]&&_0x5405b0[_0x56ad80(0x19a)]===_0x1e4b22){_0x5405b0['config']=_0x369ce8;let _0x1f32fd=_0x5405b0[_0x56ad80(0x167)]?this[_0x56ad80(0x190)][_0x56ad80(0x1aa)](_0x5405b0[_0x56ad80(0x1a9)],_0x5405b0['unitId'],_0x5405b0[_0x56ad80(0x167)])??void 0x0:void 0x0;_0x5405b0[_0x56ad80(0x10b)]=_0x1f32fd,this[_0x56ad80(0x1c8)](_0xea24ba,z(_0x369ce8,_0x1f32fd));return;}_0x5405b0!=null&&_0x5405b0['formulaId']&&this[_0x56ad80(0x112)](_0x5405b0);let _0x1a8b08={..._0x1c313b,'config':_0x369ce8,'referenceRevision':_0x1e4b22,'presentation':z(_0x369ce8,void 0x0)};if(this[_0x56ad80(0x1c7)][_0x56ad80(0x1b4)](_0xea24ba,_0x1a8b08),!_0x369ce8[_0x56ad80(0x1af)][_0x56ad80(0xf9)]())return;let _0xd42d92=this[_0x56ad80(0x190)][_0x56ad80(0x101)](_0x1c313b[_0x56ad80(0x1a9)],_0x1c313b[_0x56ad80(0x1a9)],_0x369ce8[_0x56ad80(0x1af)],void 0x0,{'rangeId':_0x1c313b[_0x56ad80(0x18e)]},_0x5ce098[_0x56ad80(0x197)],_0x1c313b['rangeId']);_0x1a8b08[_0x56ad80(0x167)]=_0xd42d92,this[_0x56ad80(0xe2)]['set'](_0xd42d92,_0xea24ba);}[_0x57d9cc(0x1ab)](_0x84bd9d){const _0x4cc5b1=_0x57d9cc;let _0x132a0e=R(_0x84bd9d[_0x4cc5b1(0x1a9)],_0x84bd9d[_0x4cc5b1(0x18e)]),_0x821973=this[_0x4cc5b1(0x1c7)][_0x4cc5b1(0xe7)](_0x132a0e);_0x821973&&(this[_0x4cc5b1(0x112)](_0x821973),this[_0x4cc5b1(0x1c7)][_0x4cc5b1(0x1d6)](_0x132a0e));}[_0x57d9cc(0x1ba)](_0x4bfa17){const _0x59b750=_0x57d9cc;for(let _0x4522a6 of Array[_0x59b750(0x12c)](this[_0x59b750(0x1c7)]['values']()))_0x4522a6['unitId']===_0x4bfa17&&this[_0x59b750(0x1ab)](_0x4522a6);}['getPresentation'](_0x3f14e1){const _0x554e8f=_0x57d9cc;var _0x55c790;return(_0x55c790=this[_0x554e8f(0x1c7)]['get'](R(_0x3f14e1['unitId'],_0x3f14e1[_0x554e8f(0x18e)])))==null?void 0x0:_0x55c790[_0x554e8f(0x10e)];}[_0x57d9cc(0x159)](_0x3f6e94){const _0x204557=_0x57d9cc;let _0x53d1de=this[_0x204557(0x1c7)][_0x204557(0xe7)](R(_0x3f6e94['unitId'],_0x3f6e94[_0x204557(0x18e)]));return _0x53d1de?B(_0x53d1de):void 0x0;}['getRegisteredFormulas'](){const _0x11e84d=_0x57d9cc;return Array[_0x11e84d(0x12c)](this[_0x11e84d(0x1c7)][_0x11e84d(0x1d2)](),_0x2d4b99=>({'identity':{'unitId':_0x2d4b99[_0x11e84d(0x1a9)],'rangeId':_0x2d4b99[_0x11e84d(0x18e)]},'config':_0x2d4b99[_0x11e84d(0x13a)],'referenceRevision':_0x2d4b99[_0x11e84d(0x19a)],..._0x2d4b99[_0x11e84d(0x10b)]?{'liveResult':_0x2d4b99[_0x11e84d(0x10b)]}:null}));}[_0x57d9cc(0x149)](){const _0x89fcc6=_0x57d9cc;for(let _0x134af0 of this[_0x89fcc6(0x1c7)][_0x89fcc6(0x1d2)]())this['_deleteRegistration'](_0x134af0);this[_0x89fcc6(0x1c7)]['clear'](),this[_0x89fcc6(0xe2)][_0x89fcc6(0x1a7)](),this[_0x89fcc6(0x183)][_0x89fcc6(0x1a1)](),super[_0x89fcc6(0x149)]();}[_0x57d9cc(0x1b3)](_0x1664a4){const _0x54b42b=_0x57d9cc;let _0x506970=this['_formulaKeys'][_0x54b42b(0xe7)](_0x1664a4[_0x54b42b(0x167)]),_0x2040cb=_0x506970?this['_registrations'][_0x54b42b(0xe7)](_0x506970):void 0x0;!_0x506970||!_0x2040cb||(_0x2040cb['liveResult']=_0x1664a4,this[_0x54b42b(0x1c8)](_0x506970,z(_0x2040cb[_0x54b42b(0x13a)],_0x1664a4)));}[_0x57d9cc(0x1c8)](_0x1ed5ea,_0x12308c){const _0x2dac29=_0x57d9cc;var _0x15e117,_0x1b41aa;let _0x38a829=this[_0x2dac29(0x1c7)][_0x2dac29(0xe7)](_0x1ed5ea);if(!_0x38a829||at(_0x38a829[_0x2dac29(0x10e)],_0x12308c))return;let _0x558496=_0x38a829[_0x2dac29(0x10e)],_0x5a1c7c=B(_0x38a829);_0x38a829[_0x2dac29(0x10e)]=_0x12308c,this[_0x2dac29(0x183)]['next']({'unitId':_0x38a829[_0x2dac29(0x1a9)],'rangeId':_0x38a829[_0x2dac29(0x18e)],'presentation':_0x12308c,'previousPresentation':_0x558496,'result':B(_0x38a829),'previousResult':{..._0x5a1c7c,..._0x558496,'value':(_0x15e117=_0x558496[_0x2dac29(0x1ae)])==null?void 0x0:_0x15e117['v'],'valueType':((_0x1b41aa=_0x558496['cell'])==null?void 0x0:_0x1b41aa['t'])??void 0x0}});}[_0x57d9cc(0x112)](_0x422a00){const _0x1f1a9c=_0x57d9cc;_0x422a00[_0x1f1a9c(0x167)]&&(this[_0x1f1a9c(0x190)]['deleteFormula'](_0x422a00[_0x1f1a9c(0x1a9)],_0x422a00[_0x1f1a9c(0x1a9)],[_0x422a00[_0x1f1a9c(0x167)]]),this[_0x1f1a9c(0xe2)]['delete'](_0x422a00[_0x1f1a9c(0x167)]));}};L=I([F(0x0,_0x562b77(P)),F(0x1,_0x562b77(_0x75c62f)),F(0x2,_0x562b77(_0xd24d44))],L);function R(_0x322e82,_0x18fa53){return _0x322e82+'\x00'+_0x18fa53;}function z(_0x380922,_0x4b40c5){const _0x27eaf0=_0x57d9cc;return _0x819468({'numberFormat':_0x380922[_0x27eaf0(0x195)],'lastValue':_0x380922['lastValue'],'result':_0x4b40c5});}function B(_0x124e95){const _0x1261dc=_0x57d9cc;var _0xf50c6b,_0x4757d1,_0x413e0a;let _0x19e4a4=_0x124e95[_0x1261dc(0x10e)],_0x7ffd57=_0x124e95[_0x1261dc(0x13a)][_0x1261dc(0x1af)][_0x1261dc(0xf9)]()?_0x19e4a4[_0x1261dc(0x1bb)]||_0x19e4a4['cell']==null?_0x1261dc(0x178):((_0xf50c6b=_0x124e95['liveResult'])==null?void 0x0:_0xf50c6b[_0x1261dc(0x15e)])===_0xb8ac26[_0x1261dc(0x187)]?'error':_0x1261dc(0x155):_0x1261dc(0x1c3);return{..._0x19e4a4,'status':_0x7ffd57,'value':(_0x4757d1=_0x19e4a4['cell'])==null?void 0x0:_0x4757d1['v'],'valueType':((_0x413e0a=_0x19e4a4['cell'])==null?void 0x0:_0x413e0a['t'])??void 0x0};}function at(_0x3c50ba,_0x5c98ce){const _0x149904=_0x57d9cc;var _0x39bfef,_0x196964,_0x27ebe0,_0xf76c56;return _0x3c50ba[_0x149904(0x113)]===_0x5c98ce[_0x149904(0x113)]&&_0x3c50ba[_0x149904(0x170)]===_0x5c98ce[_0x149904(0x170)]&&_0x3c50ba[_0x149904(0x121)]===_0x5c98ce[_0x149904(0x121)]&&_0x3c50ba[_0x149904(0x107)]===_0x5c98ce[_0x149904(0x107)]&&_0x3c50ba[_0x149904(0x1bb)]===_0x5c98ce[_0x149904(0x1bb)]&&((_0x39bfef=_0x3c50ba[_0x149904(0x1ae)])==null?void 0x0:_0x39bfef['t'])===((_0x196964=_0x5c98ce[_0x149904(0x1ae)])==null?void 0x0:_0x196964['t'])&&Object['is']((_0x27ebe0=_0x3c50ba['cell'])==null?void 0x0:_0x27ebe0['v'],(_0xf76c56=_0x5c98ce[_0x149904(0x1ae)])==null?void 0x0:_0xf76c56['v']);}const ot={'id':_0x57d9cc(0x117),'type':_0x50d8aa[_0x57d9cc(0x136)],'handler':(_0x266af7,_0x8af5e)=>!(_0x8af5e!=null&&_0x8af5e[_0x57d9cc(0x1a9)])||!_0x8af5e[_0x57d9cc(0x18e)]||!_0x8af5e['config']?!0x1:_0x266af7['get'](P)[_0x57d9cc(0x1db)](_0x8af5e[_0x57d9cc(0x1a9)],_0x8af5e[_0x57d9cc(0x18e)],_0x8af5e[_0x57d9cc(0x13a)])},st={'id':_0x57d9cc(0x17c),'type':_0x50d8aa['MUTATION'],'handler':(_0x2e291f,_0x51f6c6)=>!(_0x51f6c6!=null&&_0x51f6c6[_0x57d9cc(0x1a9)])||!_0x51f6c6[_0x57d9cc(0x18e)]?!0x1:_0x2e291f[_0x57d9cc(0xe7)](P)[_0x57d9cc(0x145)](_0x51f6c6[_0x57d9cc(0x1a9)],_0x51f6c6[_0x57d9cc(0x18e)])},V={'id':_0x57d9cc(0x15d),'type':_0x50d8aa[_0x57d9cc(0x136)],'handler':(_0x2e0187,_0x5c11d0)=>!(_0x5c11d0!=null&&_0x5c11d0['unitId'])||!_0x5c11d0[_0x57d9cc(0x131)]?!0x1:_0x2e0187['get'](P)[_0x57d9cc(0x1be)](_0x5c11d0[_0x57d9cc(0x1a9)],_0x5c11d0[_0x57d9cc(0x131)])},H={'id':_0x57d9cc(0x1d5),'type':_0x50d8aa[_0x57d9cc(0x136)],'handler':(_0x1ee90a,_0x5831ef)=>{const _0x5a409f=_0x57d9cc;if(!(_0x5831ef!=null&&_0x5831ef[_0x5a409f(0x1a9)])||!_0x5831ef['updates'][_0x5a409f(0xfd)])return!0x1;let _0x55fb68=_0x1ee90a[_0x5a409f(0xe7)](P),_0x4feb4e=_0x1ee90a[_0x5a409f(0xe7)](_0xd24d44),_0x5d683e=_0x55fb68[_0x5a409f(0x166)](_0x5831ef[_0x5a409f(0x1a9)]);if(!_0x5d683e)return!0x1;let _0x55ce5c=_0x1cca7e['deepClone'](_0x5d683e),_0x3c193a=!0x1;for(let _0x50571c of _0x5831ef[_0x5a409f(0x138)]){var _0x1bf819,_0x37b2ea,_0x2cfcd8,_0x2f25c4;let _0x752619=_0x55ce5c[_0x5a409f(0xf6)][_0x50571c[_0x5a409f(0x18e)]];!_0x752619||_0x752619['formula']!==_0x50571c[_0x5a409f(0x182)]||((_0x1bf819=_0x752619[_0x5a409f(0x195)])==null?void 0x0:_0x1bf819['pattern'])!==_0x50571c['expectedNumberFormat']||_0x4feb4e['getRevision'](_0x5831ef[_0x5a409f(0x1a9)])!==_0x50571c[_0x5a409f(0x16b)]||(((_0x37b2ea=_0x752619['lastValue'])==null?void 0x0:_0x37b2ea['v'])!==_0x50571c[_0x5a409f(0x1a4)]['v']||((_0x2cfcd8=_0x752619[_0x5a409f(0x1a4)])==null?void 0x0:_0x2cfcd8['t'])!==_0x50571c[_0x5a409f(0x1a4)]['t']||((_0x2f25c4=_0x752619[_0x5a409f(0x1a4)])==null?void 0x0:_0x2f25c4[_0x5a409f(0x121)])!==_0x50571c[_0x5a409f(0x1a4)][_0x5a409f(0x121)])&&(_0x752619[_0x5a409f(0x1a4)]=_0x1cca7e[_0x5a409f(0x10f)](_0x50571c[_0x5a409f(0x1a4)]),_0x3c193a=!0x0);}return!_0x3c193a||_0x55fb68[_0x5a409f(0x1be)](_0x5831ef['unitId'],_0x55ce5c);}},U={'id':'docs-formula.command.insert','type':_0x50d8aa['COMMAND'],'handler':(_0x579fcb,_0x5913eb)=>{const _0x5b1682=_0x57d9cc;if(!(_0x5913eb!=null&&_0x5913eb[_0x5b1682(0x1af)][_0x5b1682(0xf9)]()))return!0x1;let _0x3d135d=q(_0x579fcb,_0x5913eb[_0x5b1682(0x1a9)],'');if(!_0x3d135d)return!0x1;let _0xbd68b2=ft(_0x5913eb['target'],_0x3d135d[_0x5b1682(0x11b)],dt(_0x579fcb,_0x3d135d[_0x5b1682(0x1a9)]));if(!_0xbd68b2)return!0x1;let _0x3846b0=pt(_0x579fcb,_0x3d135d[_0x5b1682(0x1a9)],_0x5913eb[_0x5b1682(0x1af)],_0x5913eb['externalReferences']??[]);if(!_0x3846b0)return!0x1;let _0x5a1e5a=mt(_0x3d135d[_0x5b1682(0x11b)],_0x3d135d[_0x5b1682(0x1a2)],_0x3d135d[_0x5b1682(0x1a9)]),_0x5cbeb1=ht({'documentData':_0x3d135d[_0x5b1682(0x1d3)],'resource':_0x3d135d[_0x5b1682(0x131)],'rangeId':_0x5a1e5a,'config':{'formula':_0x5913eb['formula'],..._0x5913eb[_0x5b1682(0x195)]?{'numberFormat':_0x5913eb[_0x5b1682(0x195)]}:null},'startOffset':_0xbd68b2[_0x5b1682(0x100)],'endOffset':_0xbd68b2['endOffset']});if(!_0x5cbeb1)return!0x1;let _0x4b6aaf=_0x5eee2b(_0x579fcb,_0x3d135d[_0x5b1682(0x1a9)],_0x3846b0);return!_0x4b6aaf||!J({'accessor':_0x579fcb,'document':_0x3d135d[_0x5b1682(0x106)],'unitId':_0x3d135d['unitId'],'trigger':U['id'],'rangeId':_0x5a1e5a,'previousResource':_0x3d135d[_0x5b1682(0x131)],'nextResource':_0x5cbeb1[_0x5b1682(0x1d4)],'previousDocumentData':_0x3d135d['documentData'],'nextDocumentData':_0x5cbeb1[_0x5b1682(0x142)],'cursorOffset':_0x5cbeb1[_0x5b1682(0x168)],'externalMutations':_0x4b6aaf})?!0x1:{'rangeId':_0x5a1e5a,'startOffset':_0x5cbeb1['cursorOffset']-0x1,'endOffset':_0x5cbeb1[_0x5b1682(0x168)]};}},W={'id':_0x57d9cc(0x1ac),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x32df27,_0x10f432)=>{const _0xf2ed9c=_0x57d9cc;if(!(_0x10f432!=null&&_0x10f432[_0xf2ed9c(0x18e)])||!_0x10f432['formula']['trim']())return!0x1;let _0x314744=q(_0x32df27,_0x10f432['unitId'],''),_0x24efe5=_0x314744==null?void 0x0:_0x314744[_0xf2ed9c(0x1a2)]['getFormula'](_0x314744[_0xf2ed9c(0x1a9)],_0x10f432['rangeId']),_0x27c78c=_0x314744?T(_0x314744[_0xf2ed9c(0x1d3)]['body'],_0x10f432[_0xf2ed9c(0x18e)]):void 0x0;if(!_0x314744||!_0x24efe5||!_0x27c78c)return!0x1;let _0x235887=pt(_0x32df27,_0x314744[_0xf2ed9c(0x1a9)],_0x10f432[_0xf2ed9c(0x1af)],_0x10f432['externalReferences']??[]);if(!_0x235887)return!0x1;let _0x4a9cd9=_0x5eee2b(_0x32df27,_0x314744[_0xf2ed9c(0x1a9)],_0x235887);if(!_0x4a9cd9)return!0x1;let _0x4db041=Ct(_0x314744[_0xf2ed9c(0x131)]);return _0x4db041[_0xf2ed9c(0xf6)][_0x10f432[_0xf2ed9c(0x18e)]]={'formula':_0x10f432[_0xf2ed9c(0x1af)],..._0x10f432[_0xf2ed9c(0x195)]?{'numberFormat':_0x10f432[_0xf2ed9c(0x195)]}:_0x24efe5[_0xf2ed9c(0x195)]?{'numberFormat':_0x24efe5[_0xf2ed9c(0x195)]}:null},J({'accessor':_0x32df27,'document':_0x314744[_0xf2ed9c(0x106)],'unitId':_0x314744[_0xf2ed9c(0x1a9)],'trigger':W['id'],'rangeId':_0x10f432['rangeId'],'previousResource':_0x314744[_0xf2ed9c(0x131)],'nextResource':_0x4db041,'cursorOffset':_0x27c78c[_0xf2ed9c(0xef)]+0x1,'externalMutations':_0x4a9cd9});}},G={'id':_0x57d9cc(0xf7),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x296496,_0x1728fe)=>{const _0x3a20cc=_0x57d9cc;if(!(_0x1728fe!=null&&_0x1728fe[_0x3a20cc(0x18e)]))return!0x1;let _0x6397cf=q(_0x296496,_0x1728fe[_0x3a20cc(0x1a9)],''),_0x304a83=_0x6397cf==null?void 0x0:_0x6397cf['model']['getFormula'](_0x6397cf[_0x3a20cc(0x1a9)],_0x1728fe[_0x3a20cc(0x18e)]),_0x1551d0=_0x6397cf?T(_0x6397cf[_0x3a20cc(0x1d3)][_0x3a20cc(0x11b)],_0x1728fe['rangeId']):void 0x0;if(!_0x6397cf||!_0x304a83||!_0x1551d0)return!0x1;let _0x22c0b7=Ct(_0x6397cf[_0x3a20cc(0x131)]);return _0x22c0b7[_0x3a20cc(0xf6)][_0x1728fe[_0x3a20cc(0x18e)]]={..._0x304a83,..._0x1728fe['numberFormat']?{'numberFormat':_0x1728fe['numberFormat']}:null},_0x1728fe[_0x3a20cc(0x195)]||delete _0x22c0b7[_0x3a20cc(0xf6)][_0x1728fe['rangeId']][_0x3a20cc(0x195)],J({'accessor':_0x296496,'document':_0x6397cf[_0x3a20cc(0x106)],'unitId':_0x6397cf[_0x3a20cc(0x1a9)],'trigger':G['id'],'rangeId':_0x1728fe[_0x3a20cc(0x18e)],'previousResource':_0x6397cf[_0x3a20cc(0x131)],'nextResource':_0x22c0b7,'cursorOffset':_0x1551d0[_0x3a20cc(0xef)]+0x1,'externalMutations':{}});}},K={'id':_0x57d9cc(0x14a),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x2a70dd,_0x56b59f)=>ut(_0x2a70dd,_0x56b59f,'',K['id'])},ct={'id':_0x57d9cc(0x1ad),'type':_0x50d8aa['COMMAND'],'handler':(_0x3c2a3e,_0x1662e9)=>ut(_0x3c2a3e,_0x1662e9,(_0x1662e9==null?void 0x0:_0x1662e9[_0x57d9cc(0x113)])??'',ct['id'])},lt={'id':_0x57d9cc(0x11c),'type':_0x50d8aa[_0x57d9cc(0x133)],'handler':(_0x507f41,_0x2df32c)=>{const _0x526010=_0x57d9cc;if(!(_0x2df32c!=null&&_0x2df32c[_0x526010(0x18e)]))return!0x1;let _0x4b3939=q(_0x507f41,_0x2df32c[_0x526010(0x1a9)],'');if(!_0x4b3939)return!0x1;let _0x4f9ed7=_0x507f41[_0x526010(0xe7)](L)['getResult']({'unitId':_0x4b3939[_0x526010(0x1a9)],'rangeId':_0x2df32c[_0x526010(0x18e)]});return _0x4f9ed7?ut(_0x507f41,_0x2df32c,_0x4f9ed7[_0x526010(0x113)],lt['id']):!0x1;}};function ut(_0xb452eb,_0x1a17ee,_0x46ec61,_0x2e6b48){const _0x5cd283=_0x57d9cc;if(!(_0x1a17ee!=null&&_0x1a17ee[_0x5cd283(0x18e)]))return!0x1;let _0x53a78b=q(_0xb452eb,_0x1a17ee['unitId'],'');if(!_0x53a78b)return!0x1;let _0x37687b=Be({'documentData':_0x53a78b[_0x5cd283(0x1d3)],'resource':_0x53a78b[_0x5cd283(0x131)],'rangeId':_0x1a17ee[_0x5cd283(0x18e)],'text':_0x46ec61});return _0x37687b?J({'accessor':_0xb452eb,'document':_0x53a78b[_0x5cd283(0x106)],'unitId':_0x53a78b[_0x5cd283(0x1a9)],'trigger':_0x2e6b48,'rangeId':_0x1a17ee[_0x5cd283(0x18e)],'previousResource':_0x53a78b['resource'],'nextResource':_0x37687b[_0x5cd283(0x1d4)],'previousDocumentData':_0x53a78b[_0x5cd283(0x1d3)],'nextDocumentData':_0x37687b[_0x5cd283(0x142)],'cursorOffset':_0x37687b[_0x5cd283(0x168)],'externalMutations':{}}):!0x1;}function q(_0x4f22c0,_0x3c8d96,_0x5e92de){const _0x25946a=_0x57d9cc;if(_0x5e92de)return null;let _0x31db59=_0x4f22c0[_0x25946a(0xe7)](_0x2ec209),_0x113872=(_0x3c8d96?_0x31db59[_0x25946a(0x141)](_0x3c8d96,_0x485006[_0x25946a(0x1b9)]):_0x31db59[_0x25946a(0x11f)](_0x485006['UNIVER_DOC']))??null;if(!_0x113872)return null;let _0x4a5592=_0x113872[_0x25946a(0x1b1)](),_0x23d1fe=_0x4a5592['body'];if(_0x4a5592[_0x25946a(0x174)]||!_0x23d1fe)return null;let _0x4448e8=_0x4f22c0[_0x25946a(0xe7)](P);return _0x4448e8[_0x25946a(0x16a)](_0x113872[_0x25946a(0x181)]())?null:{'document':_0x113872,'body':_0x23d1fe,'documentData':_0x4a5592,'model':_0x4448e8,'resource':_0x4448e8['getResource'](_0x113872[_0x25946a(0x181)]())??b(),'unitId':_0x113872['getUnitId']()};}function dt(_0x3116cc,_0x4672e3){const _0x3e6d96=_0x57d9cc;var _0x18d196;return(_0x18d196=_0x3116cc[_0x3e6d96(0xe7)](_0x53d90b)[_0x3e6d96(0x11a)]({'subUnitId':_0x4672e3,'unitId':_0x4672e3}))==null?void 0x0:_0x18d196[0x0];}function ft(_0x14a71c,_0x35f1a8,_0x5e2eea){const _0x509835=_0x57d9cc;if((_0x14a71c==null?void 0x0:_0x14a71c[_0x509835(0x19f)])===_0x509835(0xfa)){var _0x4bcf7c;let _0x14f861=((_0x4bcf7c=_0x35f1a8[_0x509835(0x102)])==null?void 0x0:_0x4bcf7c[_0x509835(0x17b)](_0x30e7aa=>_0x30e7aa['paragraphId']===_0x14a71c['paragraphId']))??[];if(_0x14f861[_0x509835(0xfd)]!==0x1)return null;let _0x5821da=_0x14f861[0x0],_0x4a3e52=_0x5d3170(_0x35f1a8,_0x5821da),_0x866500=_0x5821da[_0x509835(0xf4)]-_0x4a3e52,_0x3df705=_0x14a71c[_0x509835(0x161)]===_0x509835(0x132)?_0x866500:_0x14a71c['position'];if(!Number[_0x509835(0xe8)](_0x3df705)||_0x3df705<0x0||_0x3df705>_0x866500)return null;let _0x704b9=_0x4a3e52+_0x3df705;return{'startOffset':_0x704b9,'endOffset':_0x704b9};}if((_0x14a71c==null?void 0x0:_0x14a71c[_0x509835(0x19f)])===_0x509835(0xed))return!Number[_0x509835(0xe8)](_0x14a71c[_0x509835(0x100)])||!Number[_0x509835(0xe8)](_0x14a71c[_0x509835(0x18b)])?null:{'startOffset':Math[_0x509835(0x1b5)](_0x14a71c[_0x509835(0x100)],_0x14a71c['endOffset']),'endOffset':Math['max'](_0x14a71c[_0x509835(0x100)],_0x14a71c[_0x509835(0x18b)])};let _0x4a59e6=(_0x14a71c==null?void 0x0:_0x14a71c['type'])===_0x509835(0x10c)?_0x14a71c['selection']:_0x5e2eea;return!_0x4a59e6||_0x4a59e6[_0x509835(0x165)]?null:{'startOffset':Math[_0x509835(0x1b5)](_0x4a59e6[_0x509835(0x100)],_0x4a59e6[_0x509835(0x18b)]),'endOffset':Math[_0x509835(0x127)](_0x4a59e6['startOffset'],_0x4a59e6[_0x509835(0x18b)])};}function pt(_0x3b7825,_0x14c7f5,_0xf5205c,_0x520cba){const _0x15dc96=_0x57d9cc;let _0x29e75c=_0x3b7825[_0x15dc96(0xe7)](_0x9066cf),_0x1dabdd=_0xf5205c[_0x15dc96(0x199)]('=')?_0xf5205c[_0x15dc96(0x196)](0x1):_0xf5205c,_0x5eb28a=_0x29e75c[_0x15dc96(0x14f)](_0x1dabdd);if(!_0x5eb28a)return null;let _0x48a910=_0x3b7825[_0x15dc96(0xe7)](_0xd24d44),_0xce3f81=_0x1b4c96({'qualifiers':_0x2db29b(_0x5eb28a),'explicitReferences':_0x520cba??[],'resolveBinding':_0x5d9d97=>_0x48a910[_0x15dc96(0x15a)](_0x14c7f5,_0x5d9d97)});return _0xce3f81[_0x15dc96(0x15e)]===_0x15dc96(0x18f)?_0xce3f81['references']:null;}function mt(_0x1ad8b3,_0x5070dd,_0x316cfd){const _0x5cbe2b=_0x57d9cc;var _0x352d3d;let _0x3db99c=_0x317234(0x6);for(;_0x1ad8b3!=null&&(_0x352d3d=_0x1ad8b3[_0x5cbe2b(0x1a3)])!=null&&_0x352d3d[_0x5cbe2b(0xe3)](_0x21ddc5=>_0x21ddc5[_0x5cbe2b(0x18e)]===_0x3db99c)||_0x5070dd[_0x5cbe2b(0x180)](_0x316cfd,_0x3db99c);)_0x3db99c=_0x317234(0x6);return _0x3db99c;}function ht(_0x42ac3a){try{return Re(_0x42ac3a);}catch(_0x400875){if(_0x400875 instanceof C)return null;throw _0x400875;}}function gt(_0x107387){const _0x14a3ea=_0x57d9cc;let _0x1522fc=_0x107387[_0x14a3ea(0x1b8)]&&_0x107387[_0x14a3ea(0x142)]?vt(_0x107387['document'],_0x107387['unitId'],_0x107387[_0x14a3ea(0x1b8)],_0x107387[_0x14a3ea(0x142)],_0x107387[_0x14a3ea(0x168)],_0x107387[_0x14a3ea(0xec)]):null;return _0x107387[_0x14a3ea(0x1b8)]&&_0x107387[_0x14a3ea(0x142)]&&!_0x1522fc?null:{'documentRedo':_0x1522fc,'resourceRedo':{'id':V['id'],'params':{'unitId':_0x107387[_0x14a3ea(0x1a9)],'resource':_0x107387['nextResource']}},'resourceUndo':{'id':V['id'],'params':{'unitId':_0x107387[_0x14a3ea(0x1a9)],'resource':_0x107387[_0x14a3ea(0x19c)]}}};}function _t(_0x38a6ff,_0x2aa6ac,_0x125650,_0x297217){const _0x13d8da=_0x57d9cc;_0x297217[_0x13d8da(0x15f)]({'id':_0x38a6ff[_0x13d8da(0xec)]+':'+_0x38a6ff[_0x13d8da(0x18e)],'unitID':_0x38a6ff[_0x13d8da(0x1a9)],'redoMutations':[..._0x38a6ff[_0x13d8da(0x198)][_0x13d8da(0x120)]?[_0x38a6ff[_0x13d8da(0x198)]['redoMutation']]:[],..._0x2aa6ac[_0x13d8da(0x13e)]?[_0x2aa6ac[_0x13d8da(0x13e)]]:[],_0x2aa6ac['resourceRedo']],'undoMutations':[_0x2aa6ac[_0x13d8da(0x1bf)],..._0x125650?[_0x125650]:[],..._0x38a6ff[_0x13d8da(0x198)][_0x13d8da(0x104)]?[_0x38a6ff[_0x13d8da(0x198)][_0x13d8da(0x104)]]:[]]});}function J(_0x5eefcf){const _0x212b6f=_0x57d9cc;let _0x32cc71=_0x5eefcf[_0x212b6f(0xe9)]['get'](_0x29cd00),_0x4ce480=_0x5eefcf[_0x212b6f(0xe9)]['get'](_0x3a8e54),_0x5581ce=_0x5eefcf[_0x212b6f(0xe9)][_0x212b6f(0xe7)](_0x53d90b),_0x1d43dc=gt(_0x5eefcf);if(!_0x1d43dc)return!0x1;let _0x39eac6=!0x1,_0x4b7be7=null,_0x58950b=!0x1;try{if(_0x5eefcf['externalMutations'][_0x212b6f(0x120)]){if(!_0x32cc71[_0x212b6f(0x1a8)](_0x5eefcf[_0x212b6f(0x198)]['redoMutation']['id'],_0x5eefcf[_0x212b6f(0x198)][_0x212b6f(0x120)][_0x212b6f(0x1d7)]))return!0x1;_0x39eac6=!0x0;}if(_0x1d43dc[_0x212b6f(0x13e)]){let _0x280753=_0x32cc71[_0x212b6f(0x1a8)](_0x1d43dc[_0x212b6f(0x13e)]['id'],_0x1d43dc['documentRedo'][_0x212b6f(0x1d7)]);if(!_0x280753)return bt(_0x32cc71,_0x5eefcf['externalMutations'],_0x39eac6),!0x1;_0x4b7be7={'id':_0x3fc66a['id'],'params':{..._0x280753,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'segmentId':''}};}if(!_0x32cc71['syncExecuteCommand'](_0x1d43dc['resourceRedo']['id'],_0x1d43dc[_0x212b6f(0x186)]['params']))return yt(_0x32cc71,_0x4b7be7),bt(_0x32cc71,_0x5eefcf[_0x212b6f(0x198)],_0x39eac6),!0x1;_0x58950b=!0x0,_t(_0x5eefcf,_0x1d43dc,_0x4b7be7,_0x4ce480);}catch(_0x4a1f44){throw _0x58950b&&_0x32cc71['syncExecuteCommand'](_0x1d43dc[_0x212b6f(0x1bf)]['id'],_0x1d43dc[_0x212b6f(0x1bf)][_0x212b6f(0x1d7)]),yt(_0x32cc71,_0x4b7be7),bt(_0x32cc71,_0x5eefcf['externalMutations'],_0x39eac6),_0x4a1f44;}return _0x5581ce[_0x212b6f(0x1b6)]([{'startOffset':_0x5eefcf[_0x212b6f(0x168)],'endOffset':_0x5eefcf[_0x212b6f(0x168)],'segmentId':''}],{'unitId':_0x5eefcf[_0x212b6f(0x1a9)],'subUnitId':_0x5eefcf[_0x212b6f(0x1a9)]},!0x1,{[_0x4ce9e7]:!0x0}),!0x0;}function vt(_0x41b704,_0x3e29ad,_0x2300ca,_0x124392,_0xadd7fc,_0x43cb17){let _0x2fb29a=xt(_0x2300ca,_0x124392,_0x19915(_0x41b704,''));return _0x2fb29a?{'id':_0x3fc66a['id'],'params':{'unitId':_0x3e29ad,'actions':_0x2fb29a,'segmentId':'','textRanges':[{'startOffset':_0xadd7fc,'endOffset':_0xadd7fc,'collapsed':!0x0,'segmentId':''}],'isEditing':!0x1,'noHistory':!0x0,'noNeedSetTextRange':!0x0,'trigger':_0x43cb17}}:null;}function yt(_0x43f887,_0x2d57fc){const _0x5dd256=_0x57d9cc;_0x2d57fc&&_0x43f887['syncExecuteCommand'](_0x2d57fc['id'],_0x2d57fc[_0x5dd256(0x1d7)]);}function bt(_0x5107ee,_0x2ce8cd,_0x4de5db){const _0x592281=_0x57d9cc;_0x4de5db&&_0x2ce8cd[_0x592281(0x104)]&&_0x5107ee[_0x592281(0x1a8)](_0x2ce8cd[_0x592281(0x104)]['id'],_0x2ce8cd[_0x592281(0x104)]['params']);}function xt(_0x4f5261,_0x425af0,_0x2913cf){const _0x3eb6a8=_0x57d9cc;let _0x113827=_0x4f5261['body'],_0x47a2cd=_0x425af0[_0x3eb6a8(0x11b)],_0x83c76f=St(_0x113827==null?void 0x0:_0x113827['dataStream'],_0x47a2cd==null?void 0x0:_0x47a2cd['dataStream']);if(!_0x83c76f||!_0x47a2cd)return null;let _0x5b642d=new _0x5899e6();return _0x5b642d[_0x3eb6a8(0x1b2)](_0x83c76f[_0x3eb6a8(0xfe)]),_0x83c76f['insertLength']>0x0&&_0x5b642d[_0x3eb6a8(0x1bd)](_0x83c76f[_0x3eb6a8(0xfb)],_0x3580b2(_0x47a2cd,_0x83c76f['start'],_0x83c76f[_0x3eb6a8(0xfe)]+_0x83c76f['insertLength'],!0x1)),_0x83c76f[_0x3eb6a8(0x11d)]>0x0&&_0x5b642d[_0x3eb6a8(0x1d6)](_0x83c76f[_0x3eb6a8(0x11d)]),_0x3ed648[_0x3eb6a8(0x1d1)]()[_0x3eb6a8(0x147)](_0x5b642d[_0x3eb6a8(0x108)](),_0x2913cf);}function St(_0xbeeedd,_0x2e381e){const _0x1b584b=_0x57d9cc;if(_0xbeeedd==null||_0x2e381e==null||_0xbeeedd===_0x2e381e)return null;let _0x208083=0x0;for(;_0x208083<_0xbeeedd['length']&&_0x208083<_0x2e381e[_0x1b584b(0xfd)]&&_0xbeeedd[_0x208083]===_0x2e381e[_0x208083];)_0x208083+=0x1;let _0x283b35=_0xbeeedd[_0x1b584b(0xfd)],_0x171207=_0x2e381e[_0x1b584b(0xfd)];for(;_0x283b35>_0x208083&&_0x171207>_0x208083&&_0xbeeedd[_0x283b35-0x1]===_0x2e381e[_0x171207-0x1];)--_0x283b35,--_0x171207;return{'start':_0x208083,'deleteLength':_0x283b35-_0x208083,'insertLength':_0x171207-_0x208083};}function Ct(_0x5993df){const _0x4a7061=_0x57d9cc;return{'schemaVersion':0x1,'formulas':Object['fromEntries'](Object['entries'](_0x5993df['formulas'])[_0x4a7061(0xf3)](([_0x859309,_0xa6b3c3])=>[_0x859309,{..._0xa6b3c3,..._0xa6b3c3[_0x4a7061(0x195)]?{'numberFormat':{..._0xa6b3c3['numberFormat']}}:null,..._0xa6b3c3['lastValue']?{'lastValue':{..._0xa6b3c3[_0x4a7061(0x1a4)]}}:null}]))};}let Y=class extends _0x6c759e{constructor(_0x1c3430,_0x12c525,_0x4e6c45,_0x42cbfd){const _0x2a5a1a=_0x57d9cc;super(),this[_0x2a5a1a(0x1cf)]=_0x1c3430,this[_0x2a5a1a(0x125)]=_0x12c525,this['_model']=_0x4e6c45,this['_service']=_0x42cbfd,N(this,_0x2a5a1a(0x12d),new Set()),N(this,_0x2a5a1a(0x1c2),!0x1),N(this,'_isDisposed',!0x1),this[_0x2a5a1a(0x1cf)][_0x2a5a1a(0x116)](_0x485006['UNIVER_DOC'])['forEach'](_0x5a5dfc=>this[_0x2a5a1a(0x146)]['syncUnit'](_0x5a5dfc)),this[_0x2a5a1a(0x109)](this[_0x2a5a1a(0x126)]['change$'][_0x2a5a1a(0x16c)](({unitId:_0x3c3a72})=>this['_syncUnit'](_0x3c3a72))),this['disposeWithMe'](this[_0x2a5a1a(0x1cf)]['unitAdded$']['subscribe'](({unit:_0x506ff3})=>{const _0x514be3=_0x2a5a1a;_0x506ff3['type']===_0x485006[_0x514be3(0x1b9)]&&this[_0x514be3(0x1c1)](_0x506ff3[_0x514be3(0x181)]());})),this[_0x2a5a1a(0x109)](this[_0x2a5a1a(0x1cf)][_0x2a5a1a(0x123)][_0x2a5a1a(0x16c)](_0x4e6ecc=>{const _0x45723f=_0x2a5a1a;this[_0x45723f(0x146)]['unregisterUnit'](_0x4e6ecc[_0x45723f(0x181)]());})),this[_0x2a5a1a(0x109)](this['_commandService']['onCommandExecuted'](_0x28bee7=>{const _0x3e3e8a=_0x2a5a1a;if(_0x28bee7['id']===_0x3fc66a['id']&&wt(_0x28bee7['params'])){let _0x31803e=_0x28bee7[_0x3e3e8a(0x1d7)];_0x31803e[_0x3e3e8a(0x165)]||this[_0x3e3e8a(0x171)](_0x31803e[_0x3e3e8a(0x1a9)]);}}));}['dispose'](){const _0x4b4283=_0x57d9cc;this[_0x4b4283(0xf0)]=!0x0,super[_0x4b4283(0x149)]();}[_0x57d9cc(0x1c1)](_0x4ca6c1){const _0x158f71=_0x57d9cc;this[_0x158f71(0x12d)][_0x158f71(0x19b)](_0x4ca6c1),!this[_0x158f71(0x1c2)]&&(this[_0x158f71(0x1c2)]=!0x0,queueMicrotask(()=>{const _0xd1275d=_0x158f71;if(this[_0xd1275d(0x1c2)]=!0x1,this['_isDisposed'])return;let _0x4075e5=Array[_0xd1275d(0x12c)](this[_0xd1275d(0x12d)]);this[_0xd1275d(0x12d)][_0xd1275d(0x1a7)](),_0x4075e5['forEach'](_0xcaa62b=>this[_0xd1275d(0x171)](_0xcaa62b));}));}['_syncUnit'](_0x30812e){const _0x3e7dca=_0x57d9cc;let _0x43d902=this['_instanceService']['getUnit'](_0x30812e,_0x485006['UNIVER_DOC']);_0x43d902&&this[_0x3e7dca(0x146)][_0x3e7dca(0x17a)](_0x43d902);}};Y=I([F(0x0,_0x2ec209),F(0x1,_0x29cd00),F(0x2,_0x562b77(P)),F(0x3,_0x562b77(L))],Y);function wt(_0x58d244){const _0x699a99=_0x57d9cc;return typeof _0x58d244==_0x699a99(0x18c)&&!!_0x58d244&&_0x699a99(0x1a9)in _0x58d244&&typeof _0x58d244['unitId']==_0x699a99(0x1d0)&&(!(_0x699a99(0x165)in _0x58d244)||_0x58d244[_0x699a99(0x165)]===void 0x0||typeof _0x58d244[_0x699a99(0x165)]==_0x699a99(0x1d0));}let X=class extends _0x6c759e{constructor(_0x43529d,_0xb7cbfc){const _0x1ccb66=_0x57d9cc;super(),this[_0x1ccb66(0x193)]=_0x43529d,this[_0x1ccb66(0x134)]=_0xb7cbfc,this[_0x1ccb66(0x109)](this[_0x1ccb66(0x193)][_0x1ccb66(0xe1)]({'pluginName':y,'businesses':[_0x485006[_0x1ccb66(0x1b9)]],'toJson':_0x415c87=>JSON[_0x1ccb66(0x157)](this[_0x1ccb66(0x134)][_0x1ccb66(0x108)](_0x415c87)),'parseJson':_0x20ce81=>JSON[_0x1ccb66(0x16d)](_0x20ce81),'onLoad':(_0x3c4f43,_0x42716b)=>{const _0x3c35d4=_0x1ccb66;this[_0x3c35d4(0x134)][_0x3c35d4(0x18a)](_0x3c4f43,_0x42716b);},'onUnLoad':_0x3a924b=>this[_0x1ccb66(0x134)]['removeUnit'](_0x3a924b)}));}};X=I([F(0x0,_0x491b6a),F(0x1,_0x562b77(P))],X);var Tt=_0x57d9cc(0x1c0),Et=_0x57d9cc(0x135);function _0x47e0(_0x2e507d,_0x28698d){_0x2e507d=_0x2e507d-0xe0;const _0x525a17=_0x525a();let _0x47e087=_0x525a17[_0x2e507d];return _0x47e087;}const Dt={};let Z=class extends _0x6c759e{constructor(_0x11f0a7,_0x25edb3,_0x59fdd0){const _0x11b834=_0x57d9cc;super(),this[_0x11b834(0x163)]=_0x11f0a7,this[_0x11b834(0x105)]=_0x25edb3,this[_0x11b834(0x109)](_0x59fdd0['register']({'resolve':(_0x45f325,_0x590f90)=>{const _0x25265c=_0x11b834;var _0x3c30cf;return((_0x3c30cf=_0x590f90['customRanges'])==null?void 0x0:_0x3c30cf[_0x25265c(0x17b)](w)[_0x25265c(0xf3)](_0x426ad9=>({'startOffset':_0x426ad9[_0x25265c(0xf4)],'endOffset':_0x426ad9[_0x25265c(0xef)]+0x1,'text':this[_0x25265c(0x164)](_0x45f325,_0x426ad9[_0x25265c(0x18e)])})))??[];}})),this[_0x11b834(0x109)](this['_formulaService'][_0x11b834(0xee)][_0x11b834(0x16c)](({unitId:_0x451280})=>{_0x59fdd0['notifyTextChanged'](_0x451280);}));}[_0x57d9cc(0x164)](_0x1f4305,_0x3e7333){const _0x255c96=_0x57d9cc;var _0x5e636c;return((_0x5e636c=this['_formulaService'][_0x255c96(0x159)]({'unitId':_0x1f4305,'rangeId':_0x3e7333}))==null?void 0x0:_0x5e636c[_0x255c96(0x113)])??'';}[_0x57d9cc(0x175)](_0x18309f,_0x2e7f1b,_0x3eac27){const _0x234e4b=_0x57d9cc;var _0x308482;let _0x1f3bb9=this['_univerInstanceService']['getUnit'](_0x18309f,_0x485006[_0x234e4b(0x1b9)]),_0x40e93f=_0x1f3bb9==null?void 0x0:_0x1f3bb9[_0x234e4b(0x1a5)]();if(!_0x40e93f)return'';let _0x2d2672=_0x40e93f[_0x234e4b(0x13d)]['slice'](_0x2e7f1b,_0x3eac27),_0x579685=((_0x308482=_0x40e93f[_0x234e4b(0x1a3)])==null?void 0x0:_0x308482[_0x234e4b(0x17b)](_0x4ba2ce=>w(_0x4ba2ce)&&_0x4ba2ce[_0x234e4b(0xf4)]>=_0x2e7f1b&&_0x4ba2ce['endIndex']<_0x3eac27)['sort']((_0x564589,_0x79dd08)=>_0x79dd08[_0x234e4b(0xf4)]-_0x564589[_0x234e4b(0xf4)]))??[];for(let _0x136cfd of _0x579685){let _0xd07120=_0x136cfd[_0x234e4b(0xf4)]-_0x2e7f1b,_0x1a30f7=_0x136cfd[_0x234e4b(0xef)]-_0x2e7f1b+0x1;_0x2d2672=''+_0x2d2672[_0x234e4b(0x196)](0x0,_0xd07120)+this['resolveFormula'](_0x18309f,_0x136cfd[_0x234e4b(0x18e)])+_0x2d2672[_0x234e4b(0x196)](_0x1a30f7);}return _0x2d2672;}[_0x57d9cc(0x153)](_0x5134c0){return Ot(_0x5134c0);}[_0x57d9cc(0xe0)](_0x241642,_0x4d246c,_0x5d2c60={}){const _0xcddbcf=_0x57d9cc;var _0x39f78d;return Ve({'id':_0x241642,'body':_0x4d246c,'documentStyle':{}},(((_0x39f78d=_0x4d246c[_0xcddbcf(0x1a3)])==null?void 0x0:_0x39f78d['filter'](w))??[])[_0xcddbcf(0xf3)](_0x17b383=>({'rangeId':_0x17b383[_0xcddbcf(0x18e)],'text':_0x5d2c60[_0x17b383['rangeId']]??this['resolveFormula'](_0x241642,_0x17b383[_0xcddbcf(0x18e)])})))[_0xcddbcf(0x11b)]??{'dataStream':''};}};Z=I([F(0x0,_0x2ec209),F(0x1,_0x562b77(L)),F(0x2,_0x562b77(_0x3bca36))],Z);function Ot(_0xabb8ac){const _0x2697c0=_0x57d9cc;var _0x32fc3d,_0x424f2e;let _0x84acd7=kt(_0xabb8ac),_0x702b8c=Ve(_0xabb8ac,(((_0x32fc3d=_0xabb8ac[_0x2697c0(0x11b)])==null||(_0x32fc3d=_0x32fc3d[_0x2697c0(0x1a3)])==null?void 0x0:_0x32fc3d[_0x2697c0(0x17b)](w))??[])[_0x2697c0(0xf3)](_0x4d9fe3=>({'rangeId':_0x4d9fe3['rangeId'],'text':At(_0x84acd7==null?void 0x0:_0x84acd7[_0x2697c0(0xf6)][_0x4d9fe3[_0x2697c0(0x18e)]])})));return _0x702b8c[_0x2697c0(0x16f)]=(_0x424f2e=_0x702b8c[_0x2697c0(0x16f)])==null?void 0x0:_0x424f2e[_0x2697c0(0x17b)](_0x1694e6=>_0x1694e6[_0x2697c0(0x143)]!==y),_0x702b8c;}function kt(_0x4f1523){const _0x2176fc=_0x57d9cc;var _0x1da458;let _0x4888b7=(_0x1da458=_0x4f1523['resources'])==null||(_0x1da458=_0x1da458[_0x2176fc(0x1ce)](_0x2cc38e=>_0x2cc38e[_0x2176fc(0x143)]==='DOC_FORMULA_PLUGIN'))==null?void 0x0:_0x1da458[_0x2176fc(0xf2)];if(_0x4888b7)try{let _0x44985d=JSON[_0x2176fc(0x16d)](_0x4888b7);return x(_0x44985d)?_0x44985d:void 0x0;}catch{return;}}function At(_0x5591a6){const _0x3bd865=_0x57d9cc;return _0x5591a6?_0x819468({'lastValue':_0x5591a6[_0x3bd865(0x1a4)],'numberFormat':_0x5591a6['numberFormat']})['text']:'';}let Q=class extends _0x6c759e{constructor(_0x309b5b,_0x53f39f,_0x48214c){const _0x244073=_0x57d9cc;super(),this[_0x244073(0x105)]=_0x309b5b,this['_cacheEligibilityService']=_0x53f39f,this[_0x244073(0x109)](_0x48214c['registerProvider'](this));}[_0x57d9cc(0x12a)](_0x4047b4){const _0x49841d=_0x57d9cc;let _0x3a03c7=new Map();for(let _0x4f0935 of this[_0x49841d(0x105)][_0x49841d(0x1b7)]()){var _0x1e8ae3;if(!this['_cacheEligibilityService']['assess'](_0x4f0935[_0x49841d(0x13a)][_0x49841d(0x1af)],_0x4f0935[_0x49841d(0x10b)])[_0x49841d(0x177)])continue;let _0x101cfb=_0x1bae38(_0x4f0935['liveResult']),_0x5a6c9b=_0x101cfb?_0x47e086(_0x101cfb):null;if(!_0x5a6c9b||jt(_0x4f0935[_0x49841d(0x13a)][_0x49841d(0x1a4)],_0x5a6c9b))continue;let _0x275b87=_0x3a03c7[_0x49841d(0xe7)](_0x4f0935[_0x49841d(0x1da)][_0x49841d(0x1a9)])??[];_0x275b87[_0x49841d(0x144)]({'rangeId':_0x4f0935[_0x49841d(0x1da)][_0x49841d(0x18e)],'expectedFormula':_0x4f0935['config']['formula'],'expectedNumberFormat':(_0x1e8ae3=_0x4f0935[_0x49841d(0x13a)]['numberFormat'])==null?void 0x0:_0x1e8ae3['pattern'],'expectedReferenceRevision':_0x4f0935['referenceRevision'],'lastValue':_0x5a6c9b}),_0x3a03c7[_0x49841d(0x1b4)](_0x4f0935['identity']['unitId'],_0x275b87);}return Array[_0x49841d(0x12c)](_0x3a03c7,([_0x1cc259,_0x1a7ce7])=>({'id':H['id'],'params':{'unitId':_0x1cc259,'updates':_0x1a7ce7}}));}};Q=I([F(0x0,_0x562b77(L)),F(0x1,_0x562b77(_0x589545)),F(0x2,_0x562b77(_0x4d102c))],Q);function jt(_0x3fe974,_0x17d866){const _0x15ba40=_0x57d9cc;return(_0x3fe974==null?void 0x0:_0x3fe974['v'])===_0x17d866['v']&&(_0x3fe974==null?void 0x0:_0x3fe974['t'])===_0x17d866['t']&&(_0x3fe974==null?void 0x0:_0x3fe974['pattern'])===_0x17d866[_0x15ba40(0x121)];}let $=class extends _0x36ab54{constructor(_0x360537=Dt,_0x42fd68,_0x16d8a1,_0x4bc75e){const _0x88bb63=_0x57d9cc;super(),this[_0x88bb63(0x119)]=_0x360537,this[_0x88bb63(0x15b)]=_0x42fd68,this[_0x88bb63(0x125)]=_0x16d8a1,this[_0x88bb63(0x1c4)]=_0x4bc75e;let {..._0xb62eb2}=_0x50ef0e({},Dt,this[_0x88bb63(0x119)]);this[_0x88bb63(0x1c4)]['setConfig']('docs-formula.config',_0xb62eb2);}[_0x57d9cc(0xf5)](){const _0x5a68f7=_0x57d9cc;this['_injector'][_0x5a68f7(0x19b)]([P]),this[_0x5a68f7(0x15b)][_0x5a68f7(0x19b)]([L]),this[_0x5a68f7(0x15b)]['add']([X]),this['_injector'][_0x5a68f7(0x19b)]([Y]),this['_injector']['add']([Q]),this[_0x5a68f7(0x15b)][_0x5a68f7(0x19b)]([Z]),_0x79798a(this['_injector'],[[P],[X],[Y],[Q],[Z]]),[ot,st,V,H,U,W,G,K,ct,lt][_0x5a68f7(0x139)](_0x1623e2=>this[_0x5a68f7(0x109)](this[_0x5a68f7(0x125)][_0x5a68f7(0x148)](_0x1623e2)));}};N($,'pluginName',y),N($,_0x57d9cc(0x194),Tt),N($,_0x57d9cc(0x110),Et),N($,_0x57d9cc(0x19f),_0x485006[_0x57d9cc(0x1b9)]),$=I([_0x2afdc3(_0x59ff3a,_0x3cd3d5,_0x5052e5),F(0x1,_0x562b77(_0x14f00e)),F(0x2,_0x29cd00),F(0x3,_0x476834)],$);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 _0x380426=_0x1779;(function(_0x3ff714,_0x59bf90){var _0x4fbff3=_0x1779,_0x15cfb1=_0x3ff714();while(!![]){try{var _0x222c71=parseInt(_0x4fbff3(0x222))/0x1*(-parseInt(_0x4fbff3(0x218))/0x2)+parseInt(_0x4fbff3(0x220))/0x3+parseInt(_0x4fbff3(0x1e6))/0x4+parseInt(_0x4fbff3(0x217))/0x5+-parseInt(_0x4fbff3(0x1e5))/0x6*(-parseInt(_0x4fbff3(0x207))/0x7)+-parseInt(_0x4fbff3(0x21f))/0x8*(parseInt(_0x4fbff3(0x1f7))/0x9)+parseInt(_0x4fbff3(0x1f5))/0xa;if(_0x222c71===_0x59bf90)break;else _0x15cfb1['push'](_0x15cfb1['shift']());}catch(_0x33d565){_0x15cfb1['push'](_0x15cfb1['shift']());}}}(_0x3690,0x6fa40));import{ConvertDocFormulaToTextCommand as _0x2d4cac,DocFormulaDisplayTextService as _0x2da8f8,DocFormulaModel as _0x1acf10,DocFormulaService as _0x41ad49,InsertDocFormulaCommand as _0x1fbcf3,RemoveDocFormulaCommand as _0x51a7e7,ReplaceDocFormulaWithTextCommand as _0xea3076,SetDocFormulaNumberFormatCommand as _0x1f21bd,UpdateDocFormulaCommand as _0x5af9a2,isDocFormulaRange as _0x7283c7}from'@univerjs-pro/docs-formula';import{ICommandService as _0x2e7174,IResourceLoaderService as _0x49c7ff,IUniverInstanceService as _0x5a0386,Inject as _0x5e76b0,UniverInstanceType as _0x51f383}from'@univerjs/core';import{FDocument as _0x20993f,FDocumentParagraph as _0x198950,FDocumentTextRange as _0x40b1ca}from'@univerjs/docs/facade';function v(_0x32c58a,_0x3f462b){return function(_0x2cef10,_0x165048){_0x3f462b(_0x2cef10,_0x165048,_0x32c58a);};}function y(_0x15ae5e,_0x1c1583,_0x5de14d,_0x1abefd){var _0x132cd7=_0x1779,_0x24c5d0=arguments['length'],_0x5671d7=_0x24c5d0<0x3?_0x1c1583:_0x1abefd===null?_0x1abefd=Object[_0x132cd7(0x1ee)](_0x1c1583,_0x5de14d):_0x1abefd,_0x43b6e4;if(typeof Reflect==_0x132cd7(0x21d)&&typeof Reflect['decorate']=='function')_0x5671d7=Reflect[_0x132cd7(0x1ef)](_0x15ae5e,_0x1c1583,_0x5de14d,_0x1abefd);else{for(var _0x1b67a1=_0x15ae5e['length']-0x1;_0x1b67a1>=0x0;_0x1b67a1--)(_0x43b6e4=_0x15ae5e[_0x1b67a1])&&(_0x5671d7=(_0x24c5d0<0x3?_0x43b6e4(_0x5671d7):_0x24c5d0>0x3?_0x43b6e4(_0x1c1583,_0x5de14d,_0x5671d7):_0x43b6e4(_0x1c1583,_0x5de14d))||_0x5671d7);}return _0x24c5d0>0x3&&_0x5671d7&&Object[_0x132cd7(0x1eb)](_0x1c1583,_0x5de14d,_0x5671d7),_0x5671d7;}function _0x1779(_0x1e3b19,_0x7a410f){_0x1e3b19=_0x1e3b19-0x1e2;var _0x36900f=_0x3690();var _0x17795d=_0x36900f[_0x1e3b19];return _0x17795d;}let b=class{constructor(_0xdfc9bf,_0x2c805d,_0x26d84f,_0x230857,_0x487791,_0x1c1fef){var _0x2632b0=_0x1779;this[_0x2632b0(0x1e7)]=_0xdfc9bf,this['_rangeId']=_0x2c805d,this[_0x2632b0(0x228)]=_0x26d84f,this[_0x2632b0(0x1ff)]=_0x230857,this[_0x2632b0(0x21b)]=_0x487791,this['_univerInstanceService']=_0x1c1fef;}['getId'](){var _0x2bd534=_0x1779;return this[_0x2bd534(0x1fa)];}['getRange'](){var _0x569c3e=_0x1779;let _0x23cff6=this[_0x569c3e(0x1e8)]();return _0x23cff6?{'endOffset':_0x23cff6[_0x569c3e(0x1ea)]+0x1,'rangeId':_0x23cff6['rangeId'],'startOffset':_0x23cff6['startIndex']}:null;}[_0x380426(0x230)](){var _0x77c82f=_0x380426,_0x1a7575;return((_0x1a7575=this[_0x77c82f(0x1ff)][_0x77c82f(0x230)](this['_unitId'],this[_0x77c82f(0x1fa)]))==null?void 0x0:_0x1a7575[_0x77c82f(0x22a)])??'';}[_0x380426(0x223)](){var _0x39bb7e=_0x380426;return this[_0x39bb7e(0x1ff)][_0x39bb7e(0x230)](this[_0x39bb7e(0x1e7)],this[_0x39bb7e(0x1fa)])??null;}['getResult'](){var _0x1aad90=_0x380426;return this['_service'][_0x1aad90(0x209)]({'unitId':this[_0x1aad90(0x1e7)],'rangeId':this[_0x1aad90(0x1fa)]})??null;}[_0x380426(0x206)](){var _0x3253c0=_0x380426;let _0x4a7796=this[_0x3253c0(0x1f1)](),_0x472c49=this[_0x3253c0(0x223)](),_0x4699db=this[_0x3253c0(0x209)]();return!_0x4a7796||!_0x472c49||!_0x4699db?null:{..._0x4a7796,'config':_0x472c49,'formula':_0x472c49['formula'],'result':_0x4699db,'type':'formula'};}[_0x380426(0x213)](_0x1e5f7e){var _0x7ba4f2=_0x380426;return this[_0x7ba4f2(0x228)]['syncExecuteCommand'](_0x5af9a2['id'],{'externalReferences':_0x1e5f7e['externalReferences'],'formula':_0x1e5f7e[_0x7ba4f2(0x22a)],'numberFormat':_0x1e5f7e[_0x7ba4f2(0x219)],'rangeId':this[_0x7ba4f2(0x1fa)],'unitId':this[_0x7ba4f2(0x1e7)]});}[_0x380426(0x1fc)](_0x28be45){var _0x4c0177=_0x380426;return this[_0x4c0177(0x228)][_0x4c0177(0x21c)](_0x1f21bd['id'],{'numberFormat':_0x28be45,'rangeId':this[_0x4c0177(0x1fa)],'unitId':this[_0x4c0177(0x1e7)]});}[_0x380426(0x229)](){var _0xd20ecd=_0x380426;return this[_0xd20ecd(0x228)][_0xd20ecd(0x21c)](_0x51a7e7['id'],{'rangeId':this['_rangeId'],'unitId':this[_0xd20ecd(0x1e7)]});}[_0x380426(0x1ec)](_0x4ed62d){var _0x172c7e=_0x380426;return this[_0x172c7e(0x228)][_0x172c7e(0x21c)](_0xea3076['id'],{'rangeId':this[_0x172c7e(0x1fa)],'text':_0x4ed62d,'unitId':this[_0x172c7e(0x1e7)]});}[_0x380426(0x21e)](){var _0x123e58=_0x380426;return this[_0x123e58(0x228)]['syncExecuteCommand'](_0x2d4cac['id'],{'rangeId':this[_0x123e58(0x1fa)],'unitId':this[_0x123e58(0x1e7)]});}[_0x380426(0x1e8)](){var _0x5ddef5=_0x380426,_0x37260e;let _0x550636=this['_univerInstanceService']['getUnit'](this[_0x5ddef5(0x1e7)],_0x51f383[_0x5ddef5(0x20e)]);return _0x550636==null||(_0x37260e=_0x550636[_0x5ddef5(0x20b)]()[_0x5ddef5(0x221)])==null||(_0x37260e=_0x37260e[_0x5ddef5(0x210)])==null?void 0x0:_0x37260e[_0x5ddef5(0x1e4)](_0x102fc9=>_0x102fc9[_0x5ddef5(0x22f)]===this[_0x5ddef5(0x1fa)]&&_0x7283c7(_0x102fc9));}};b=y([v(0x2,_0x2e7174),v(0x3,_0x5e76b0(_0x1acf10)),v(0x4,_0x5e76b0(_0x41ad49)),v(0x5,_0x5a0386)],b);function x(_0x189ee5){'@babel/helpers - typeof';var _0x24068e=_0x380426;return x=typeof Symbol==_0x24068e(0x20c)&&typeof Symbol[_0x24068e(0x202)]==_0x24068e(0x1f4)?function(_0x293179){return typeof _0x293179;}:function(_0x5e46ee){var _0x1404c4=_0x24068e;return _0x5e46ee&&typeof Symbol=='function'&&_0x5e46ee['constructor']===Symbol&&_0x5e46ee!==Symbol[_0x1404c4(0x1f3)]?_0x1404c4(0x1f4):typeof _0x5e46ee;},x(_0x189ee5);}function S(_0x557c89,_0x4edcbc){var _0x4aae38=_0x380426;if(x(_0x557c89)!=_0x4aae38(0x21d)||!_0x557c89)return _0x557c89;var _0x38bec6=_0x557c89[Symbol['toPrimitive']];if(_0x38bec6!==void 0x0){var _0x31e576=_0x38bec6[_0x4aae38(0x214)](_0x557c89,_0x4edcbc||_0x4aae38(0x232));if(x(_0x31e576)!=_0x4aae38(0x21d))return _0x31e576;throw TypeError(_0x4aae38(0x1e3));}return(_0x4edcbc===_0x4aae38(0x22b)?String:Number)(_0x557c89);}function C(_0xc87f5c){var _0x2a72ad=_0x380426,_0x325ec9=S(_0xc87f5c,_0x2a72ad(0x22b));return x(_0x325ec9)==_0x2a72ad(0x1f4)?_0x325ec9:_0x325ec9+'';}function w(_0xbe310a,_0xbc8d3a,_0xf6bf5c){var _0x569efa=_0x380426;return(_0xbc8d3a=C(_0xbc8d3a))in _0xbe310a?Object[_0x569efa(0x1eb)](_0xbe310a,_0xbc8d3a,{'value':_0xf6bf5c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xbe310a[_0xbc8d3a]=_0xf6bf5c,_0xbe310a;}var T=class extends _0x20993f{constructor(..._0x2cb71f){var _0x4bc6a8=_0x380426;super(..._0x2cb71f),w(this,_0x4bc6a8(0x215),void 0x0),w(this,'_docsFormulaDisplayTextService',void 0x0),w(this,_0x4bc6a8(0x216),void 0x0),w(this,_0x4bc6a8(0x1fd),void 0x0);}[_0x380426(0x1f2)](_0x5ed23c){var _0x450af9=_0x380426;this[_0x450af9(0x215)]=_0x5ed23c['get'](_0x2e7174),this['_docsFormulaDisplayTextService']=_0x5ed23c[_0x450af9(0x204)](_0x2da8f8),this[_0x450af9(0x216)]=_0x5ed23c[_0x450af9(0x204)](_0x1acf10),this[_0x450af9(0x1fd)]=_0x5ed23c[_0x450af9(0x204)](_0x49c7ff);}[_0x380426(0x227)](){var _0x411550=_0x380426;return this[_0x411550(0x21a)]()['map'](_0xe1a6fb=>this[_0x411550(0x22d)](_0xe1a6fb['rangeId']));}[_0x380426(0x230)](_0x1a5076){var _0x486112=_0x380426;return this[_0x486112(0x21a)]()[_0x486112(0x1fe)](_0x1394a9=>_0x1394a9[_0x486112(0x22f)]===_0x1a5076)?this[_0x486112(0x22d)](_0x1a5076):null;}[_0x380426(0x1e2)](_0x308aae){var _0x1f36d6=_0x380426;let _0x1e64c8=this['_getCompleteRanges']()[_0x1f36d6(0x1e4)](_0xedbce0=>_0xedbce0[_0x1f36d6(0x1f9)]<=_0x308aae&&_0x308aae<=_0xedbce0[_0x1f36d6(0x1ea)]);return _0x1e64c8?this[_0x1f36d6(0x22d)](_0x1e64c8[_0x1f36d6(0x22f)]):null;}[_0x380426(0x20a)](){var _0x47e676=_0x380426;let _0x29056a=this[_0x47e676(0x1fd)][_0x47e676(0x203)](this['id']);if(!_0x29056a)throw Error(_0x47e676(0x22c)+this['id']+_0x47e676(0x211));return this[_0x47e676(0x1fb)][_0x47e676(0x22e)](_0x29056a);}[_0x380426(0x224)](_0x1c9733){var _0x1dd8c2=_0x380426;return this[_0x1dd8c2(0x205)]({'externalReferences':_0x1c9733[_0x1dd8c2(0x1f0)],'formula':_0x1c9733[_0x1dd8c2(0x22a)],'numberFormat':_0x1c9733[_0x1dd8c2(0x219)],'target':{'type':_0x1dd8c2(0x225),'startOffset':_0x1c9733[_0x1dd8c2(0x233)],'endOffset':_0x1c9733[_0x1dd8c2(0x200)]},'unitId':this[_0x1dd8c2(0x212)]()});}[_0x380426(0x205)](_0x5e3338){var _0x4fa28c=_0x380426;let _0x420670=this[_0x4fa28c(0x215)][_0x4fa28c(0x21c)](_0x1fbcf3['id'],_0x5e3338);return _0x420670?this[_0x4fa28c(0x22d)](_0x420670[_0x4fa28c(0x22f)]):null;}[_0x380426(0x21a)](){var _0x4cfd8b=_0x380426,_0x2b92b8;let _0x424000=this[_0x4cfd8b(0x216)][_0x4cfd8b(0x227)](this[_0x4cfd8b(0x212)]());return((_0x2b92b8=this[_0x4cfd8b(0x1e9)]('')['customRanges'])==null?void 0x0:_0x2b92b8[_0x4cfd8b(0x20f)](_0x3bca73=>_0x7283c7(_0x3bca73)&&_0x424000[_0x3bca73['rangeId']]!=null))??[];}[_0x380426(0x22d)](_0x35abbc){var _0x37b7e6=_0x380426;return this[_0x37b7e6(0x20d)][_0x37b7e6(0x226)](b,this[_0x37b7e6(0x212)](),_0x35abbc);}};_0x20993f['extend'](T);var E=class extends _0x198950{constructor(..._0x30551c){super(..._0x30551c),w(this,'_docsFormulaCommandService',void 0x0);}[_0x380426(0x1f2)](_0x1f8aef){var _0x149f88=_0x380426;this[_0x149f88(0x215)]=_0x1f8aef[_0x149f88(0x204)](_0x2e7174);}[_0x380426(0x224)](_0x558480,_0x2564bb,_0x732e2a={}){var _0x4265b5=_0x380426;return this[_0x4265b5(0x205)](_0x558480,_0x2564bb,_0x732e2a);}[_0x380426(0x1ed)](_0x2ff3c2,_0x2f5470={}){var _0x576114=_0x380426;return this['_insert'](_0x576114(0x1f6),_0x2ff3c2,_0x2f5470);}[_0x380426(0x205)](_0x3f8cbf,_0x3078a3,_0x89a0ee){var _0x1af0cf=_0x380426;if(this[_0x1af0cf(0x231)]())return null;let _0x5583fb={'externalReferences':_0x89a0ee[_0x1af0cf(0x1f0)],'formula':_0x3078a3,'numberFormat':_0x89a0ee['numberFormat'],'target':{'type':'paragraph','paragraphId':this['getId'](),'position':_0x3f8cbf},'unitId':this[_0x1af0cf(0x1f8)][_0x1af0cf(0x212)]()},_0x3abc08=this['_docsFormulaCommandService'][_0x1af0cf(0x21c)](_0x1fbcf3['id'],_0x5583fb);return _0x3abc08?this[_0x1af0cf(0x20d)][_0x1af0cf(0x226)](b,this[_0x1af0cf(0x1f8)][_0x1af0cf(0x212)](),_0x3abc08['rangeId']):null;}};_0x198950[_0x380426(0x208)](E);var D=class extends _0x40b1ca{constructor(..._0x4a5780){var _0x1b1c48=_0x380426;super(..._0x4a5780),w(this,_0x1b1c48(0x215),void 0x0);}['_initialize'](_0x4a92fd){var _0x3fcfbc=_0x380426;this[_0x3fcfbc(0x215)]=_0x4a92fd[_0x3fcfbc(0x204)](_0x2e7174);}[_0x380426(0x201)](_0x5d9edd,_0x158d2b={}){var _0x40b85a=_0x380426;let {endOffset:_0x19120d,segmentId:_0x35bd15,startOffset:_0x472cc8}=this[_0x40b85a(0x1f1)]();return _0x35bd15?null:this[_0x40b85a(0x205)](_0x472cc8,_0x19120d,_0x5d9edd,_0x158d2b);}[_0x380426(0x205)](_0x1e25df,_0x1d9770,_0x2f53ce,_0x1a19f0){var _0x4f4c9c=_0x380426;let _0x22da60={'externalReferences':_0x1a19f0['externalReferences'],'formula':_0x2f53ce,'numberFormat':_0x1a19f0[_0x4f4c9c(0x219)],'target':{'type':_0x4f4c9c(0x225),'startOffset':_0x1e25df,'endOffset':_0x1d9770},'unitId':this[_0x4f4c9c(0x1f8)][_0x4f4c9c(0x212)]()},_0x3c77b3=this[_0x4f4c9c(0x215)][_0x4f4c9c(0x21c)](_0x1fbcf3['id'],_0x22da60);return _0x3c77b3?this[_0x4f4c9c(0x20d)][_0x4f4c9c(0x226)](b,this[_0x4f4c9c(0x1f8)]['getId'](),_0x3c77b3[_0x4f4c9c(0x22f)]):null;}};_0x40b1ca[_0x380426(0x208)](D);function _0x3690(){var _0x528ff1=['getSegmentId','default','startOffset','getFormulaAt','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','41880vYJNtF','1986180vsiWYv','_unitId','_getCustomRange','getBody','endIndex','defineProperty','replaceWithText','appendFormula','getOwnPropertyDescriptor','decorate','externalReferences','getRange','_initialize','prototype','symbol','1073610SSrTeH','end','9awmCtH','_document','startIndex','_rangeId','_docsFormulaDisplayTextService','setNumberFormat','_docsFormulaResourceLoaderService','some','_model','endOffset','replaceWithFormula','iterator','saveUnit','get','_insert','describe','231eFWbCI','extend','getResult','saveFormulaDisplayTextSnapshot','getSnapshot','function','_injector','UNIVER_DOC','filter','customRanges','\x20could\x20not\x20be\x20serialized.','getId','update','call','_docsFormulaCommandService','_docsFormulaModel','85840qRKzTm','6URfrTx','numberFormat','_getCompleteRanges','_service','syncExecuteCommand','object','convertToText','3028352sVleLr','2192547eIgmwZ','body','248813bEAXYH','getConfig','insertFormula','range','createInstance','getFormulas','_commandService','remove','formula','string','Document\x20','_createFormula','degradeDocumentData','rangeId','getFormula'];_0x3690=function(){return _0x528ff1;};return _0x3690();}export{b as FDocumentFormula};
|
|
1
|
+
var _0x38962f=_0x1e42;(function(_0x2c8896,_0x2c7a38){var _0x16d654=_0x1e42,_0x1421e9=_0x2c8896();while(!![]){try{var _0x479c61=parseInt(_0x16d654(0x13e))/0x1*(-parseInt(_0x16d654(0x179))/0x2)+-parseInt(_0x16d654(0x162))/0x3+-parseInt(_0x16d654(0x17f))/0x4+-parseInt(_0x16d654(0x149))/0x5+-parseInt(_0x16d654(0x174))/0x6+-parseInt(_0x16d654(0x157))/0x7+parseInt(_0x16d654(0x170))/0x8;if(_0x479c61===_0x2c7a38)break;else _0x1421e9['push'](_0x1421e9['shift']());}catch(_0x1616e1){_0x1421e9['push'](_0x1421e9['shift']());}}}(_0x26ea,0x60474));import{ConvertDocFormulaToTextCommand as _0x5630ac,DocFormulaDisplayTextService as _0x503b3d,DocFormulaModel as _0x430368,DocFormulaService as _0x5e35b9,InsertDocFormulaCommand as _0x3db5b8,RemoveDocFormulaCommand as _0x5c8158,ReplaceDocFormulaWithTextCommand as _0x169f0a,SetDocFormulaNumberFormatCommand as _0x5d2be8,UpdateDocFormulaCommand as _0x9c564d,isDocFormulaRange as _0x2ec456}from'@univerjs-pro/docs-formula';import{ICommandService as _0x15d819,IResourceLoaderService as _0x5aabfe,IUniverInstanceService as _0x232552,Inject as _0x1a7be6,UniverInstanceType as _0x42414d}from'@univerjs/core';import{FDocument as _0x55da0f,FDocumentParagraph as _0x589793,FDocumentTextRange as _0x2362be}from'@univerjs/docs/facade';function v(_0x51931b,_0x390995){return function(_0x3c3122,_0x784975){_0x390995(_0x3c3122,_0x784975,_0x51931b);};}function y(_0x5d8d87,_0x84954,_0x233c77,_0x171d26){var _0x1ab2c5=_0x1e42,_0x2da630=arguments[_0x1ab2c5(0x151)],_0x145800=_0x2da630<0x3?_0x84954:_0x171d26===null?_0x171d26=Object[_0x1ab2c5(0x17e)](_0x84954,_0x233c77):_0x171d26,_0x28b326;if(typeof Reflect==_0x1ab2c5(0x13f)&&typeof Reflect['decorate']==_0x1ab2c5(0x154))_0x145800=Reflect['decorate'](_0x5d8d87,_0x84954,_0x233c77,_0x171d26);else{for(var _0x521019=_0x5d8d87[_0x1ab2c5(0x151)]-0x1;_0x521019>=0x0;_0x521019--)(_0x28b326=_0x5d8d87[_0x521019])&&(_0x145800=(_0x2da630<0x3?_0x28b326(_0x145800):_0x2da630>0x3?_0x28b326(_0x84954,_0x233c77,_0x145800):_0x28b326(_0x84954,_0x233c77))||_0x145800);}return _0x2da630>0x3&&_0x145800&&Object[_0x1ab2c5(0x15c)](_0x84954,_0x233c77,_0x145800),_0x145800;}let b=class{constructor(_0x2e699f,_0x54f53d,_0x37184e,_0x10db18,_0x29dd3a,_0x2275b8){var _0x375ff4=_0x1e42;this[_0x375ff4(0x140)]=_0x2e699f,this[_0x375ff4(0x148)]=_0x54f53d,this['_commandService']=_0x37184e,this[_0x375ff4(0x177)]=_0x10db18,this[_0x375ff4(0x141)]=_0x29dd3a,this[_0x375ff4(0x14a)]=_0x2275b8;}['getId'](){var _0x443ee3=_0x1e42;return this[_0x443ee3(0x148)];}[_0x38962f(0x13c)](){var _0x54b65a=_0x38962f;let _0x2a72bf=this[_0x54b65a(0x17c)]();return _0x2a72bf?{'endOffset':_0x2a72bf[_0x54b65a(0x180)]+0x1,'rangeId':_0x2a72bf[_0x54b65a(0x13b)],'startOffset':_0x2a72bf['startIndex']}:null;}[_0x38962f(0x14e)](){var _0xe44337=_0x38962f,_0xaea5db;return((_0xaea5db=this['_model']['getFormula'](this[_0xe44337(0x140)],this[_0xe44337(0x148)]))==null?void 0x0:_0xaea5db[_0xe44337(0x15e)])??'';}[_0x38962f(0x181)](){var _0x152406=_0x38962f;return this['_model'][_0x152406(0x14e)](this[_0x152406(0x140)],this[_0x152406(0x148)])??null;}[_0x38962f(0x144)](){var _0x7d072f=_0x38962f;return this[_0x7d072f(0x141)][_0x7d072f(0x144)]({'unitId':this[_0x7d072f(0x140)],'rangeId':this[_0x7d072f(0x148)]})??null;}[_0x38962f(0x178)](){var _0x3cdcbb=_0x38962f;let _0x592a75=this['getRange'](),_0x4c04d2=this[_0x3cdcbb(0x181)](),_0x55fc9c=this[_0x3cdcbb(0x144)]();return!_0x592a75||!_0x4c04d2||!_0x55fc9c?null:{..._0x592a75,'config':_0x4c04d2,'formula':_0x4c04d2[_0x3cdcbb(0x15e)],'result':_0x55fc9c,'type':_0x3cdcbb(0x15e)};}['update'](_0x42774d){var _0x46f641=_0x38962f;return this[_0x46f641(0x188)][_0x46f641(0x187)](_0x9c564d['id'],{'externalReferences':_0x42774d[_0x46f641(0x182)],'formula':_0x42774d[_0x46f641(0x15e)],'numberFormat':_0x42774d[_0x46f641(0x155)],'rangeId':this[_0x46f641(0x148)],'unitId':this[_0x46f641(0x140)]});}[_0x38962f(0x163)](_0xc855d2){var _0xab8155=_0x38962f;return this['_commandService'][_0xab8155(0x187)](_0x5d2be8['id'],{'numberFormat':_0xc855d2,'rangeId':this[_0xab8155(0x148)],'unitId':this[_0xab8155(0x140)]});}[_0x38962f(0x16c)](){var _0x38f81d=_0x38962f;return this[_0x38f81d(0x188)][_0x38f81d(0x187)](_0x5c8158['id'],{'rangeId':this[_0x38f81d(0x148)],'unitId':this[_0x38f81d(0x140)]});}[_0x38962f(0x16f)](_0x4258ae){var _0x160483=_0x38962f;return this['_commandService'][_0x160483(0x187)](_0x169f0a['id'],{'rangeId':this[_0x160483(0x148)],'text':_0x4258ae,'unitId':this[_0x160483(0x140)]});}['convertToText'](){var _0x38891b=_0x38962f;return this['_commandService'][_0x38891b(0x187)](_0x5630ac['id'],{'rangeId':this[_0x38891b(0x148)],'unitId':this[_0x38891b(0x140)]});}[_0x38962f(0x17c)](){var _0x2c6d3b=_0x38962f,_0xdfa00f;let _0x4bd2cb=this[_0x2c6d3b(0x14a)][_0x2c6d3b(0x183)](this[_0x2c6d3b(0x140)],_0x42414d[_0x2c6d3b(0x15b)]);return _0x4bd2cb==null||(_0xdfa00f=_0x4bd2cb[_0x2c6d3b(0x185)]()[_0x2c6d3b(0x143)])==null||(_0xdfa00f=_0xdfa00f[_0x2c6d3b(0x147)])==null?void 0x0:_0xdfa00f['find'](_0x1f3d17=>_0x1f3d17[_0x2c6d3b(0x13b)]===this[_0x2c6d3b(0x148)]&&_0x2ec456(_0x1f3d17));}};b=y([v(0x2,_0x15d819),v(0x3,_0x1a7be6(_0x430368)),v(0x4,_0x1a7be6(_0x5e35b9)),v(0x5,_0x232552)],b);function x(_0x25b11f){'@babel/helpers - typeof';var _0x1284ca=_0x38962f;return x=typeof Symbol==_0x1284ca(0x154)&&typeof Symbol['iterator']==_0x1284ca(0x145)?function(_0x383255){return typeof _0x383255;}:function(_0x5777b2){var _0x36c2c7=_0x1284ca;return _0x5777b2&&typeof Symbol==_0x36c2c7(0x154)&&_0x5777b2[_0x36c2c7(0x14c)]===Symbol&&_0x5777b2!==Symbol['prototype']?_0x36c2c7(0x145):typeof _0x5777b2;},x(_0x25b11f);}function S(_0x5d6807,_0x337bc5){var _0x5aa34c=_0x38962f;if(x(_0x5d6807)!=_0x5aa34c(0x13f)||!_0x5d6807)return _0x5d6807;var _0x4554dc=_0x5d6807[Symbol[_0x5aa34c(0x16d)]];if(_0x4554dc!==void 0x0){var _0x7dfebe=_0x4554dc[_0x5aa34c(0x176)](_0x5d6807,_0x337bc5||_0x5aa34c(0x13d));if(x(_0x7dfebe)!=_0x5aa34c(0x13f))return _0x7dfebe;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x337bc5===_0x5aa34c(0x165)?String:Number)(_0x5d6807);}function C(_0x1bb409){var _0x536077=_0x38962f,_0x3e5984=S(_0x1bb409,_0x536077(0x165));return x(_0x3e5984)==_0x536077(0x145)?_0x3e5984:_0x3e5984+'';}function _0x26ea(){var _0x59e4f6=['getRange','default','1uBRExi','object','_unitId','_service','filter','body','getResult','symbol','_docsFormulaDisplayTextService','customRanges','_rangeId','2202725UfrVqz','_univerInstanceService','get','constructor','insertFormula','getFormula','getSegmentId','startOffset','length','_createFormula','replaceWithFormula','function','numberFormat','_docsFormulaModel','2823555ubevcQ','end','degradeDocumentData','saveUnit','UNIVER_DOC','defineProperty','saveFormulaDisplayTextSnapshot','formula','_initialize','_document','getFormulaAt','714615dAmohY','setNumberFormat','getBody','string','extend','some','_docsFormulaCommandService','Document\x20','map','_injector','remove','toPrimitive','_insert','replaceWithText','15752392YZNJmf','range','getId','_docsFormulaResourceLoaderService','2610960HkWkxC','find','call','_model','describe','29158CnCvee','appendFormula','createInstance','_getCustomRange','paragraph','getOwnPropertyDescriptor','171356SanboD','endIndex','getConfig','externalReferences','getUnit','_getCompleteRanges','getSnapshot','\x20could\x20not\x20be\x20serialized.','syncExecuteCommand','_commandService','rangeId'];_0x26ea=function(){return _0x59e4f6;};return _0x26ea();}function w(_0x5458d5,_0x4d8686,_0x5880d0){var _0x3f95ca=_0x38962f;return(_0x4d8686=C(_0x4d8686))in _0x5458d5?Object[_0x3f95ca(0x15c)](_0x5458d5,_0x4d8686,{'value':_0x5880d0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5458d5[_0x4d8686]=_0x5880d0,_0x5458d5;}function _0x1e42(_0x16a32e,_0x524e8f){_0x16a32e=_0x16a32e-0x13b;var _0x26eac0=_0x26ea();var _0x1e4254=_0x26eac0[_0x16a32e];return _0x1e4254;}var T=class extends _0x55da0f{constructor(..._0x42340d){var _0x1ad76f=_0x38962f;super(..._0x42340d),w(this,_0x1ad76f(0x168),void 0x0),w(this,_0x1ad76f(0x146),void 0x0),w(this,_0x1ad76f(0x156),void 0x0),w(this,_0x1ad76f(0x173),void 0x0);}[_0x38962f(0x15f)](_0x1b2c89){var _0x53a655=_0x38962f;this[_0x53a655(0x168)]=_0x1b2c89[_0x53a655(0x14b)](_0x15d819),this[_0x53a655(0x146)]=_0x1b2c89[_0x53a655(0x14b)](_0x503b3d),this[_0x53a655(0x156)]=_0x1b2c89['get'](_0x430368),this[_0x53a655(0x173)]=_0x1b2c89['get'](_0x5aabfe);}['getFormulas'](){var _0x1cb4aa=_0x38962f;return this['_getCompleteRanges']()[_0x1cb4aa(0x16a)](_0x930586=>this[_0x1cb4aa(0x152)](_0x930586['rangeId']));}[_0x38962f(0x14e)](_0x2bd645){var _0x59d242=_0x38962f;return this[_0x59d242(0x184)]()[_0x59d242(0x167)](_0x5a297a=>_0x5a297a[_0x59d242(0x13b)]===_0x2bd645)?this['_createFormula'](_0x2bd645):null;}[_0x38962f(0x161)](_0x4fe1b7){var _0x4d38c3=_0x38962f;let _0x124282=this['_getCompleteRanges']()[_0x4d38c3(0x175)](_0x2850b9=>_0x2850b9['startIndex']<=_0x4fe1b7&&_0x4fe1b7<=_0x2850b9[_0x4d38c3(0x180)]);return _0x124282?this['_createFormula'](_0x124282[_0x4d38c3(0x13b)]):null;}[_0x38962f(0x15d)](){var _0x2d7c7a=_0x38962f;let _0x4c2f44=this[_0x2d7c7a(0x173)][_0x2d7c7a(0x15a)](this['id']);if(!_0x4c2f44)throw Error(_0x2d7c7a(0x169)+this['id']+_0x2d7c7a(0x186));return this[_0x2d7c7a(0x146)][_0x2d7c7a(0x159)](_0x4c2f44);}[_0x38962f(0x14d)](_0x19d9e3){var _0x5bb829=_0x38962f;return this['_insert']({'externalReferences':_0x19d9e3[_0x5bb829(0x182)],'formula':_0x19d9e3[_0x5bb829(0x15e)],'numberFormat':_0x19d9e3['numberFormat'],'target':{'type':_0x5bb829(0x171),'startOffset':_0x19d9e3[_0x5bb829(0x150)],'endOffset':_0x19d9e3['endOffset']},'unitId':this[_0x5bb829(0x172)]()});}[_0x38962f(0x16e)](_0x467f44){var _0x1a93a2=_0x38962f;let _0x4a5fee=this[_0x1a93a2(0x168)]['syncExecuteCommand'](_0x3db5b8['id'],_0x467f44);return _0x4a5fee?this['_createFormula'](_0x4a5fee[_0x1a93a2(0x13b)]):null;}[_0x38962f(0x184)](){var _0x374308=_0x38962f,_0x5b9374;let _0x1a0f54=this['_docsFormulaModel']['getFormulas'](this[_0x374308(0x172)]());return((_0x5b9374=this[_0x374308(0x164)]('')['customRanges'])==null?void 0x0:_0x5b9374[_0x374308(0x142)](_0xef2a09=>_0x2ec456(_0xef2a09)&&_0x1a0f54[_0xef2a09[_0x374308(0x13b)]]!=null))??[];}[_0x38962f(0x152)](_0x4c4c03){var _0xe9b90c=_0x38962f;return this[_0xe9b90c(0x16b)]['createInstance'](b,this[_0xe9b90c(0x172)](),_0x4c4c03);}};_0x55da0f[_0x38962f(0x166)](T);var E=class extends _0x589793{constructor(..._0x4ab080){var _0x378f2e=_0x38962f;super(..._0x4ab080),w(this,_0x378f2e(0x168),void 0x0);}[_0x38962f(0x15f)](_0x5dedec){var _0x4d2e8d=_0x38962f;this[_0x4d2e8d(0x168)]=_0x5dedec['get'](_0x15d819);}[_0x38962f(0x14d)](_0xc7a121,_0x1ba6a5,_0x39db6e={}){return this['_insert'](_0xc7a121,_0x1ba6a5,_0x39db6e);}[_0x38962f(0x17a)](_0x1a7892,_0xeb9c7f={}){var _0x592027=_0x38962f;return this[_0x592027(0x16e)](_0x592027(0x158),_0x1a7892,_0xeb9c7f);}[_0x38962f(0x16e)](_0x58b7ff,_0x3fbe01,_0x1316dc){var _0x4c5ac8=_0x38962f;if(this[_0x4c5ac8(0x14f)]())return null;let _0x44eaaf={'externalReferences':_0x1316dc[_0x4c5ac8(0x182)],'formula':_0x3fbe01,'numberFormat':_0x1316dc[_0x4c5ac8(0x155)],'target':{'type':_0x4c5ac8(0x17d),'paragraphId':this[_0x4c5ac8(0x172)](),'position':_0x58b7ff},'unitId':this[_0x4c5ac8(0x160)][_0x4c5ac8(0x172)]()},_0x45c04f=this['_docsFormulaCommandService'][_0x4c5ac8(0x187)](_0x3db5b8['id'],_0x44eaaf);return _0x45c04f?this[_0x4c5ac8(0x16b)][_0x4c5ac8(0x17b)](b,this[_0x4c5ac8(0x160)]['getId'](),_0x45c04f[_0x4c5ac8(0x13b)]):null;}};_0x589793[_0x38962f(0x166)](E);var D=class extends _0x2362be{constructor(..._0x47fcd8){super(..._0x47fcd8),w(this,'_docsFormulaCommandService',void 0x0);}[_0x38962f(0x15f)](_0x5d02d0){var _0x21d43c=_0x38962f;this[_0x21d43c(0x168)]=_0x5d02d0[_0x21d43c(0x14b)](_0x15d819);}[_0x38962f(0x153)](_0x26a1a8,_0x1385d4={}){var _0x40dba9=_0x38962f;let {endOffset:_0x2ea00b,segmentId:_0x106598,startOffset:_0x6d55a9}=this[_0x40dba9(0x13c)]();return _0x106598?null:this[_0x40dba9(0x16e)](_0x6d55a9,_0x2ea00b,_0x26a1a8,_0x1385d4);}[_0x38962f(0x16e)](_0x1f1c0c,_0x34293c,_0x49ce71,_0x5d9d1f){var _0x181709=_0x38962f;let _0xa89452={'externalReferences':_0x5d9d1f[_0x181709(0x182)],'formula':_0x49ce71,'numberFormat':_0x5d9d1f[_0x181709(0x155)],'target':{'type':_0x181709(0x171),'startOffset':_0x1f1c0c,'endOffset':_0x34293c},'unitId':this[_0x181709(0x160)][_0x181709(0x172)]()},_0x4ddd00=this['_docsFormulaCommandService'][_0x181709(0x187)](_0x3db5b8['id'],_0xa89452);return _0x4ddd00?this[_0x181709(0x16b)][_0x181709(0x17b)](b,this[_0x181709(0x160)]['getId'](),_0x4ddd00[_0x181709(0x13b)]):null;}};_0x2362be[_0x38962f(0x166)](D);export{b as FDocumentFormula};
|