@univerjs-pro/docs-code 1.0.0-alpha.4 → 1.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2efb50=_0x6f88;(function(_0x43514a,_0x20bf76){const _0x3ccc66=_0x6f88,_0x2c4d34=_0x43514a();while(!![]){try{const _0x1a8885=-parseInt(_0x3ccc66(0x143))/0x1+parseInt(_0x3ccc66(0x13c))/0x2*(-parseInt(_0x3ccc66(0x136))/0x3)+parseInt(_0x3ccc66(0x12c))/0x4*(-parseInt(_0x3ccc66(0xe2))/0x5)+parseInt(_0x3ccc66(0x151))/0x6*(-parseInt(_0x3ccc66(0x132))/0x7)+-parseInt(_0x3ccc66(0xc5))/0x8*(-parseInt(_0x3ccc66(0xfa))/0x9)+parseInt(_0x3ccc66(0x14c))/0xa+parseInt(_0x3ccc66(0xc6))/0xb;if(_0x1a8885===_0x20bf76)break;else _0x2c4d34['push'](_0x2c4d34['shift']());}catch(_0xa0174d){_0x2c4d34['push'](_0x2c4d34['shift']());}}}(_0x3984,0xda90a));import{BuildTextUtils as _0x364499,CommandType as _0x33ac8c,DataStreamTreeTokenType as _0x1314f9,DependentOn as _0x3b5fed,Disposable as _0x548644,DocumentBlockRangeType as _0x339a0c,ICommandService as _0x4c3a60,IConfigService as _0x1c4ada,IResourceManagerService as _0x5b26a5,IUniverInstanceService as _0x4b72a3,Inject as _0x8efd81,Injector as _0x232b49,JSONX as _0x1a6531,Plugin as _0x5a1391,TextX as _0x5e8a72,UniverInstanceType as _0x727df5,containsInteriorInsertionOffset as _0x10db6c,containsStreamIndex as _0x5234f8,createParagraphId as _0x2feb68,generateRandomId as _0x3275ad,getBlockRangeInterval as _0x2a1a77,getBodySliceForTextXAction as _0x139c29,getParagraphContentStartOffset as _0x44217a,getParagraphContentStartOffsets as _0x25a651,getParagraphFollowingBlockOffset as _0x588559,getSingleDataStreamChange as _0x54c010,intersectsOperationalIntervals as _0x307fa5,merge as _0x5d9446,shiftExclusiveRangeOnDelete as _0x1df613,shiftExclusiveRangeOnInsert as _0x1dda83,shiftInclusiveRangeOnDelete as _0x3f04e8,shiftInclusiveRangeOnInsert as _0x23043b}from'@univerjs/core';import{DocSelectionManagerService as _0x324bf4,RichTextEditingMutation as _0x50260d,UniverDocsPlugin as _0x33f3a6,getContentInsertRange as _0x4e708a,isHeaderFooterSelection as _0x3830d1}from'@univerjs/docs';import{Subject as _0xd242a9}from'rxjs';import{UniverLicensePlugin as _0x14ed34}from'@univerjs-pro/license';const ye={'language':_0x2efb50(0xad),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x3bd6e8){return{...ye,..._0x3bd6e8};}function x(_0x1dd508){const _0x4d91b1=_0x2efb50;var _0x1df205;let _0x2145c5=(_0x1df205=_0x1dd508==null?void 0x0:_0x1dd508[_0x4d91b1(0x138)])==null?{}:_0x1df205;return{'codes':Object['fromEntries'](Object[_0x4d91b1(0x111)](_0x2145c5)['map'](([_0x2bbea9,_0x156c46])=>[_0x2bbea9,b(_0x156c46)]))};}function S(_0x522ed8,_0x218fc4,_0x4328c0){const _0x51cf13=_0x2efb50;let _0x25977a=x(_0x522ed8);return _0x25977a[_0x51cf13(0x138)][_0x218fc4]=b({..._0x25977a[_0x51cf13(0x138)][_0x218fc4],..._0x4328c0}),_0x25977a;}function C(_0xbe33f9,_0x2b9618){const _0x12b9c2=_0x2efb50;let _0x5d89f5=x(_0xbe33f9);return delete _0x5d89f5[_0x12b9c2(0x138)][_0x2b9618],_0x5d89f5;}const be=_0x2efb50(0xfe);function _0x3984(){const _0x2601be=['Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','16056CnXMRL','symbol','map','_injector','Document\x20body\x20is\x20required','clear','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1386974iHAGSC','set','get','insert','compose','cursorOffset','insert-new','spaceAbove','push','13762430JDEUip','_config','_resources','DOC_CODE_PLUGIN','columns','30KnJUaH','stringify','javascript','from','defineProperty','reduce','dispose','CODE','tables','onStarting','docs-code.command.update','sectionBreaks','PARAGRAPH','documentData','getBody','removeUnit','getCodeConfig','_setResource','removeCode','blockRanges','some','startOffset','complete','textStyle','registerPluginResource','blockId','50088yIuUYp','16878103vsGVQj','delete','customBlocks','_initResource','SECTION_BREAK','getOwnPropertyDescriptor','customRanges','length','call','getUnit','string','prototype','getInstance','fromEntries','docs-code.command.exit','every','docs-code.command.consume-boundary-delete','setCodeConfig','max','columnGroups','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','registerCommand','indentEnd','serialize','startIndex','removeOp','left','insertLength','5syZbHC','startTokenOffset','nextMetadata','editOp','slice','getCurrentUnitOfType','parse','direction','textRuns','keys','body','disposeWithMe','_change$','default','selectionManager','getTextRanges','_commandService','_docsCodeModel','getUnitId','previousDocumentData','_resourceManagerService','getParagraphsInRange','isArray','COMMAND','1818SRMFMe','BLOCK_START','type','find','monospace','endOffset','docs-code.command.cancel-empty-paragraph','TABLE_CELL_START','paragraphStartIndex','customDecorations','getSnapshot','min','deserialize','TABLE_CELL_END','pluginName','model','toPrimitive','paragraphId','convert-paragraph','insertionMode','insertOp','version','unitId','entries','UNIVER_DOC','config','deleteLength','add','paragraphs','next','paragraph','filter','docs-code.command.insert-below','commandService','docs-code.command.remove','_configService','spaceBelow','metadata','right','sort','BLOCK_END','bullet','paragraphStyle','change$','iterator','handler','asObservable','replaceOp','start','forEach','5424788CoFlwd','replaceDocRanges','syncExecuteCommand','nextDocumentData','endTokenOffset','endsWith','302127OPfZGz','blockType','function','indexOf','120htFuAs','endIndex','codes','dataStream','object'];_0x3984=function(){return _0x2601be;};return _0x3984();}var w=class extends Error{constructor(_0x31c769=_0x2efb50(0x13b)){super(_0x31c769);}};function xe(_0x354b32){const _0x5e9da5=_0x2efb50;var _0x3c980e,_0x5508c1,_0x5923d8;let _0xc85557=T(_0x354b32[_0x5e9da5(0xb8)]),_0x59f6ff=D(_0xc85557),_0x3706a8=Ce(_0x354b32[_0x5e9da5(0xc0)],_0x354b32[_0x5e9da5(0xff)]),_0x5775e8=_0x3706a8?(_0x3c980e=_0x59f6ff['blockRanges'])==null?void 0x0:_0x3c980e[_0x5e9da5(0xfd)](_0x23416a=>{const _0x477612=_0x5e9da5;let _0x23c800=_0x2a1a77(_0x23416a);return _0x23c800['startOffset']===_0x3706a8[_0x477612(0xc0)]&&_0x23c800[_0x477612(0xff)]===_0x3706a8[_0x477612(0xff)];}):void 0x0,{startOffset:_0xb6c540,endOffset:_0x3846aa}=_0x5775e8?_0x3706a8:ze(_0x59f6ff,_0x354b32['startOffset'],_0x354b32[_0x5e9da5(0xff)],_0x354b32[_0x5e9da5(0x10d)]);if(!_0x5775e8&&we(_0x59f6ff,_0xb6c540,_0x3846aa))throw new w(_0x5e9da5(0xda));let _0xb0de32=He(_0x59f6ff,_0xb6c540,_0x3846aa),_0x59a20b=(_0x5508c1=_0x5775e8==null?void 0x0:_0x5775e8[_0x5e9da5(0xc4)])==null?_0x354b32[_0x5e9da5(0xc4)]:_0x5508c1,_0x38a7ad=S(_0x354b32[_0x5e9da5(0x11f)],_0x59a20b,{...ye,..._0x354b32['config']});if(_0x5775e8)return _0x5775e8[_0x5e9da5(0x133)]=_0x339a0c[_0x5e9da5(0xb2)],Se(_0x59f6ff,_0xb6c540,_0x3846aa),Pe(_0x59f6ff,_0xb6c540,_0x3846aa,_0xb0de32),A(_0x59f6ff,_0x5775e8),{'nextDocumentData':_0xc85557,'nextMetadata':_0x38a7ad,'cursorOffset':_0xb6c540+0x1};if(_0xb6c540===_0x3846aa){var _0x585dda,_0x3453c0;let _0x2fd3cf=''+_0x1314f9[_0x5e9da5(0xfb)]+_0x1314f9[_0x5e9da5(0xb7)]+_0x1314f9['BLOCK_END'];j(_0x59f6ff,_0xb6c540,_0x2fd3cf,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x2feb68(new Set((_0x585dda=_0x59f6ff[_0x5e9da5(0x116)])==null?void 0x0:_0x585dda[_0x5e9da5(0x13e)](_0x44f426=>_0x44f426[_0x5e9da5(0x10b)]))),'paragraphStyle':Ne(!0x0,!0x0,_0xb0de32)}],'blockRanges':[{'blockId':_0x59a20b,'blockType':_0x339a0c[_0x5e9da5(0xb2)],'startIndex':0x0,'endIndex':_0x2fd3cf[_0x5e9da5(0xcd)]-0x1}]});let _0x14e8f1=(_0x3453c0=_0x59f6ff[_0x5e9da5(0xbe)])==null?void 0x0:_0x3453c0['find'](_0x4002a1=>_0x4002a1[_0x5e9da5(0xc4)]===_0x59a20b);return _0x14e8f1&&A(_0x59f6ff,_0x14e8f1),{'nextDocumentData':_0xc85557,'nextMetadata':_0x38a7ad,'cursorOffset':_0xb6c540+0x1};}j(_0x59f6ff,_0x3846aa,_0x1314f9[_0x5e9da5(0x122)]),j(_0x59f6ff,_0xb6c540,_0x1314f9['BLOCK_START']),Pe(_0x59f6ff,_0xb6c540,_0x3846aa+0x1,_0xb0de32);let _0x417bb7={'blockId':_0x59a20b,'blockType':_0x339a0c[_0x5e9da5(0xb2)],'startIndex':_0xb6c540,'endIndex':_0x3846aa+0x1};return _0x59f6ff[_0x5e9da5(0xbe)]=[...(_0x5923d8=_0x59f6ff[_0x5e9da5(0xbe)])==null?[]:_0x5923d8,_0x417bb7]['sort']((_0x5e284b,_0x6a47a7)=>_0x5e284b['startIndex']-_0x6a47a7['startIndex']),A(_0x59f6ff,_0x417bb7),{'nextDocumentData':_0xc85557,'nextMetadata':_0x38a7ad,'cursorOffset':_0xb6c540+0x1};}function Se(_0x238edc,_0x3b450d,_0x15c1c3){const _0x3fdfd5=_0x2efb50;var _0x1143c2;((_0x1143c2=_0x238edc[_0x3fdfd5(0x116)])==null?[]:_0x1143c2)[_0x3fdfd5(0x119)](_0x224c35=>_0x224c35[_0x3fdfd5(0xde)]>_0x3b450d&&_0x224c35[_0x3fdfd5(0xde)]<_0x15c1c3)[_0x3fdfd5(0x12b)](_0x33baba=>{const _0xf3fb77=_0x3fdfd5;var _0x5ac81e;let _0x3d8c05={...(_0x5ac81e=_0x33baba[_0xf3fb77(0x124)])==null?{}:_0x5ac81e};delete _0x3d8c05['spaceAbove'],delete _0x3d8c05[_0xf3fb77(0x11e)],_0x33baba[_0xf3fb77(0x124)]=_0x3d8c05;});}function Ce(_0x42a82d,_0x24760a){const _0x8c7fd=_0x2efb50;return _0x42a82d==null||_0x24760a==null||_0x42a82d===_0x24760a?null:{'startOffset':Math[_0x8c7fd(0x105)](_0x42a82d,_0x24760a),'endOffset':Math[_0x8c7fd(0xd8)](_0x42a82d,_0x24760a)};}function we(_0x3c20b2,_0x1fbe8d,_0x1c25eb){const _0x490575=_0x2efb50;var _0x3e7584;return((_0x3e7584=_0x3c20b2['blockRanges'])==null?[]:_0x3e7584)[_0x490575(0xbf)](_0x49e190=>{let _0x59cd1e=_0x2a1a77(_0x49e190);return _0x1fbe8d===_0x1c25eb?_0x10db6c(_0x59cd1e,_0x1fbe8d):_0x307fa5(_0x59cd1e,{'startOffset':_0x1fbe8d,'endOffset':_0x1c25eb});});}function Te(_0x362c75){const _0x365f2d=_0x2efb50;return{'nextDocumentData':T(_0x362c75['documentData']),'nextMetadata':S(_0x362c75[_0x365f2d(0x11f)],_0x362c75[_0x365f2d(0xc4)],_0x362c75[_0x365f2d(0x113)]),'cursorOffset':0x0};}function Ee(_0x64ccaf){const _0x5c0e5f=_0x2efb50;let _0xc0d4c7=T(_0x64ccaf[_0x5c0e5f(0xb8)]),_0x174408=D(_0xc0d4c7),_0x555cd9=Ae(_0x174408,_0x64ccaf['blockId']);if(!_0x555cd9)return null;let _0x505e34=Le(_0x174408,_0x555cd9);return{'nextDocumentData':_0xc0d4c7,'nextMetadata':C(_0x64ccaf[_0x5c0e5f(0x11f)],_0x64ccaf[_0x5c0e5f(0xc4)]),'cursorOffset':_0x505e34};}function De(_0x38ab0c){const _0x3fc3a5=_0x2efb50;var _0x182ffa;let _0x128206=T(_0x38ab0c[_0x3fc3a5(0xb8)]),_0x85bd16=D(_0x128206),_0x5ad35f=Ae(_0x85bd16,_0x38ab0c[_0x3fc3a5(0xc4)]);if(!_0x5ad35f)return null;let _0x646b09=_0x2a1a77(_0x5ad35f);return M(_0x85bd16,_0x646b09[_0x3fc3a5(0xc0)],_0x646b09[_0x3fc3a5(0xff)]),_0x85bd16[_0x3fc3a5(0xbe)]=(_0x182ffa=_0x85bd16[_0x3fc3a5(0xbe)])==null?void 0x0:_0x182ffa[_0x3fc3a5(0x119)](_0x537978=>_0x537978['blockId']!==_0x38ab0c[_0x3fc3a5(0xc4)]),{'nextDocumentData':_0x128206,'nextMetadata':C(_0x38ab0c[_0x3fc3a5(0x11f)],_0x38ab0c[_0x3fc3a5(0xc4)]),'cursorOffset':_0x5ad35f[_0x3fc3a5(0xde)]};}function Oe(_0x200c81){const _0x57f9cd=_0x2efb50;let _0x16b59e=T(_0x200c81[_0x57f9cd(0xb8)]),_0x296b61=D(_0x16b59e),_0x546edc=Me(_0x296b61,_0x200c81[_0x57f9cd(0x148)]);return _0x546edc&&ke(_0x16b59e,_0x296b61,_0x546edc,_0x200c81[_0x57f9cd(0x148)],_0x200c81['paragraphStartIndex'])||null;}function ke(_0x2b626a,_0x38ac89,_0x1e7612,_0x14a968,_0x3150fc){const _0x443f56=_0x2efb50;let _0x534e6b=Je(_0x38ac89,_0x1e7612,_0x14a968,_0x3150fc);if(!_0x534e6b)return null;let _0x23db10=_0x534e6b[_0x443f56(0x130)]-0x1;return M(_0x38ac89,_0x534e6b[_0x443f56(0x118)][_0x443f56(0xde)],_0x534e6b['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x2b626a,'cursorOffset':_0x23db10};}function _0x6f88(_0x6ef34d,_0x5127f9){_0x6ef34d=_0x6ef34d-0xad;const _0x39847b=_0x3984();let _0x6f8822=_0x39847b[_0x6ef34d];return _0x6f8822;}function Ae(_0x1c621c,_0x30dc93){const _0x524c77=_0x2efb50;var _0x615322;return _0x1c621c==null||(_0x615322=_0x1c621c[_0x524c77(0xbe)])==null?void 0x0:_0x615322[_0x524c77(0xfd)](_0x4bb0c8=>_0x4bb0c8['blockType']===_0x339a0c[_0x524c77(0xb2)]&&_0x4bb0c8[_0x524c77(0xc4)]===_0x30dc93);}function je(_0x50dbd1){const _0x5a9497=_0x2efb50;var _0xcd82b3;let _0x434201=_0x50dbd1['documentData'][_0x5a9497(0xec)];if(!_0x434201)return!0x1;let _0x5494ce=_0x50dbd1[_0x5a9497(0xe9)]===_0x5a9497(0xe0)?_0x50dbd1['cursorOffset']-0x1:_0x50dbd1[_0x5a9497(0x148)],_0x3deb0b=_0x50dbd1[_0x5a9497(0xe9)]===_0x5a9497(0x120)?_0x50dbd1[_0x5a9497(0x148)]+0x1:_0x5494ce;return((_0xcd82b3=_0x434201['blockRanges'])==null?[]:_0xcd82b3)['some'](_0x1f49cb=>_0x1f49cb[_0x5a9497(0x133)]===_0x339a0c[_0x5a9497(0xb2)]?_0x5494ce===_0x1f49cb[_0x5a9497(0xde)]||_0x5494ce===_0x1f49cb['endIndex']||_0x3deb0b===_0x1f49cb['startIndex']||_0x3deb0b===_0x1f49cb[_0x5a9497(0x137)]:!0x1);}function Me(_0x3e73d0,_0x439b80){const _0xe91e06=_0x2efb50;var _0x12ea6d;return(_0x12ea6d=_0x3e73d0[_0xe91e06(0xbe)])==null?void 0x0:_0x12ea6d[_0xe91e06(0xfd)](_0x1d3f2d=>{const _0x449c12=_0xe91e06;let _0x4df5ae=k(_0x1d3f2d);return _0x1d3f2d[_0x449c12(0x133)]===_0x339a0c['CODE']&&_0x1d3f2d['startIndex']<=_0x439b80&&_0x439b80<=_0x4df5ae+0x2;});}function Ne(_0x1d3932,_0x2c3727,_0x59d3f5=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1d3932&&_0x59d3f5?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0x1340d7,_0x20646d,_0x11aff9,_0x4e29b3=!0x1){const _0x2c86c7=_0x2efb50;var _0x2d516;let _0x2fd19d=((_0x2d516=_0x1340d7['paragraphs'])==null?[]:_0x2d516)[_0x2c86c7(0x119)](_0x57165c=>_0x57165c[_0x2c86c7(0xde)]>_0x20646d&&_0x57165c[_0x2c86c7(0xde)]<_0x11aff9);_0x2fd19d['forEach']((_0x3a3fc1,_0x431847)=>{const _0x4b2b8b=_0x2c86c7;var _0x4db40b;_0x3a3fc1[_0x4b2b8b(0x124)]={...(_0x4db40b=_0x3a3fc1[_0x4b2b8b(0x124)])==null?{}:_0x4db40b,...Ne(_0x431847===0x0,_0x431847===_0x2fd19d[_0x4b2b8b(0xcd)]-0x1,_0x4e29b3)};});}function Fe(_0xa58c17){const _0x37db71=_0x2efb50;var _0x5738b7,_0x4ca92a;let _0x253d09={..._0xa58c17==null?{}:_0xa58c17};return delete _0x253d09[_0x37db71(0xdc)],delete _0x253d09['indentStart'],delete _0x253d09[_0x37db71(0x14a)],delete _0x253d09[_0x37db71(0x11e)],((_0x5738b7=_0x253d09[_0x37db71(0xc2)])==null?void 0x0:_0x5738b7['ff'])===be&&((_0x4ca92a=_0x253d09[_0x37db71(0xc2)])==null?void 0x0:_0x4ca92a['fs'])===0xc&&delete _0x253d09['textStyle'],_0x253d09;}function Ie(_0x173d48,_0x3ff2e0){const _0x109afd=_0x2efb50;var _0x320ee8;let _0x13a6a5=k(_0x3ff2e0);return((_0x320ee8=_0x173d48[_0x109afd(0x116)])==null?[]:_0x320ee8)[_0x109afd(0x119)](_0x11f46b=>_0x11f46b[_0x109afd(0xde)]>_0x3ff2e0['startIndex']&&_0x11f46b['startIndex']<_0x13a6a5);}function Le(_0x1068e8,_0xf1918f){const _0x51891e=_0x2efb50;var _0x168f42;let _0x446b40=k(_0xf1918f);return Ie(_0x1068e8,_0xf1918f)['forEach'](_0x2cd4bc=>{_0x2cd4bc['paragraphStyle']=Fe(_0x2cd4bc['paragraphStyle']);}),M(_0x1068e8,_0x446b40,_0x446b40+0x1),M(_0x1068e8,_0xf1918f[_0x51891e(0xde)],_0xf1918f['startIndex']+0x1),_0x1068e8[_0x51891e(0xbe)]=(_0x168f42=_0x1068e8[_0x51891e(0xbe)])==null?void 0x0:_0x168f42[_0x51891e(0x119)](_0x2bcc49=>_0x2bcc49[_0x51891e(0xc4)]!==_0xf1918f[_0x51891e(0xc4)]),_0xf1918f[_0x51891e(0xde)];}function T(_0x508f54){const _0x2b2aee=_0x2efb50;return{..._0x508f54,'body':_0x508f54[_0x2b2aee(0xec)]?Re(_0x508f54['body']):_0x508f54[_0x2b2aee(0xec)]};}function Re(_0x2a7454){const _0xc42c76=_0x2efb50;var _0xadffe2,_0x3e3307,_0x4606a8,_0x57d446,_0x123d20,_0x170b8e,_0xeff341,_0x58a32c,_0x1b0487;return{..._0x2a7454,'paragraphs':(_0xadffe2=_0x2a7454[_0xc42c76(0x116)])==null?void 0x0:_0xadffe2[_0xc42c76(0x13e)](_0x31a139=>({..._0x31a139,'bullet':E(_0x31a139[_0xc42c76(0x123)]),'paragraphStyle':E(_0x31a139[_0xc42c76(0x124)])})),'sectionBreaks':(_0x3e3307=_0x2a7454[_0xc42c76(0xb6)])==null?void 0x0:_0x3e3307['map'](_0x257919=>({..._0x257919})),'textRuns':(_0x4606a8=_0x2a7454[_0xc42c76(0xea)])==null?void 0x0:_0x4606a8[_0xc42c76(0x13e)](_0x2fb6f4=>({..._0x2fb6f4})),'tables':(_0x57d446=_0x2a7454[_0xc42c76(0xb3)])==null?void 0x0:_0x57d446['map'](_0x54372c=>({..._0x54372c})),'columnGroups':(_0x123d20=_0x2a7454[_0xc42c76(0xd9)])==null?void 0x0:_0x123d20[_0xc42c76(0x13e)](_0xb21901=>{const _0x3e5ee0=_0xc42c76;var _0x2fddb1;return{..._0xb21901,'columns':(_0x2fddb1=_0xb21901[_0x3e5ee0(0x150)])==null?void 0x0:_0x2fddb1[_0x3e5ee0(0x13e)](_0x5e9d0b=>E(_0x5e9d0b))};}),'blockRanges':(_0x170b8e=_0x2a7454[_0xc42c76(0xbe)])==null?void 0x0:_0x170b8e['map'](_0x12cecf=>({..._0x12cecf})),'customRanges':(_0xeff341=_0x2a7454[_0xc42c76(0xcc)])==null?void 0x0:_0xeff341[_0xc42c76(0x13e)](_0x3cb439=>({..._0x3cb439})),'customDecorations':(_0x58a32c=_0x2a7454[_0xc42c76(0x103)])==null?void 0x0:_0x58a32c[_0xc42c76(0x13e)](_0x5e167a=>({..._0x5e167a})),'customBlocks':(_0x1b0487=_0x2a7454[_0xc42c76(0xc8)])==null?void 0x0:_0x1b0487[_0xc42c76(0x13e)](_0x42743f=>({..._0x42743f}))};}function E(_0x4e3996){const _0x2832b5=_0x2efb50;return Array[_0x2832b5(0xf8)](_0x4e3996)?_0x4e3996[_0x2832b5(0x13e)](_0x1fb41e=>E(_0x1fb41e)):!_0x4e3996||typeof _0x4e3996!='object'?_0x4e3996:Object[_0x2832b5(0xd3)](Object['entries'](_0x4e3996)['map'](([_0x63b58d,_0x5e66bc])=>[_0x63b58d,E(_0x5e66bc)]));}function D(_0x371751){const _0x37154f=_0x2efb50;if(!_0x371751[_0x37154f(0xec)])throw Error(_0x37154f(0x140));return _0x371751[_0x37154f(0xec)];}function ze(_0x2d302f,_0x1ee2a6,_0x53c960,_0x5b4918=_0x2efb50(0x10c)){const _0x7cab90=_0x2efb50;if(_0x1ee2a6==null||_0x53c960==null){let _0x3b7924=Ve(_0x2d302f);return{'startOffset':_0x3b7924,'endOffset':_0x3b7924};}let _0x4106d7=Math[_0x7cab90(0x105)](_0x1ee2a6,_0x53c960),_0x30a4da=Math['max'](_0x1ee2a6,_0x53c960),_0x445513=Ke(_0x2d302f,_0x4106d7,_0x30a4da);return _0x4106d7===_0x30a4da?_0x5b4918==='insert-new'?{'startOffset':_0x4106d7,'endOffset':_0x30a4da}:Be(_0x2d302f,_0x4106d7,_0x445513):Ue(_0x2d302f,_0x4106d7,_0x30a4da,_0x445513);}function Be(_0x40934c,_0x3282f9,_0x4917aa){const _0x47f356=_0x2efb50;let _0x4e72a9=We(_0x40934c,_0x3282f9);if(_0x4e72a9){let _0x40abc3=O(_0x40934c,_0x4e72a9,_0x4917aa);if(_0x40abc3<_0x4e72a9['startIndex'])return{'startOffset':_0x40abc3,'endOffset':_0x4917aa?Math['min'](_0x4e72a9[_0x47f356(0xde)]+0x1,_0x4917aa[_0x47f356(0xff)]):_0x4e72a9[_0x47f356(0xde)]+0x1};}let _0x400a2d=_0x3282f9===0x0&&_0x40934c['dataStream'][0x0]===_0x1314f9[_0x47f356(0xb7)]?0x1:_0x3282f9;return{'startOffset':_0x400a2d,'endOffset':_0x400a2d};}function Ve(_0x54e0b5){const _0x1af17f=_0x2efb50;return _0x54e0b5[_0x1af17f(0x139)][_0x1af17f(0x131)](_0x1314f9['SECTION_BREAK'])?Math[_0x1af17f(0xd8)](0x0,_0x54e0b5[_0x1af17f(0x139)][_0x1af17f(0xcd)]-0x1):_0x54e0b5[_0x1af17f(0x139)][_0x1af17f(0xcd)];}function He(_0x49f03e,_0x2d64ac,_0x3d0fcd){const _0x3db77a=_0x2efb50;var _0x369376;let _0x59056f=Math['min'](_0x2d64ac,_0x3d0fcd),_0xd8d845=Math[_0x3db77a(0xd8)](_0x2d64ac,_0x3d0fcd);return!!((_0x369376=_0x49f03e[_0x3db77a(0xb3)])!=null&&_0x369376[_0x3db77a(0xbf)](_0x480c7e=>_0x59056f>_0x480c7e[_0x3db77a(0xde)]&&_0x59056f<_0x480c7e[_0x3db77a(0x137)]||_0xd8d845>_0x480c7e[_0x3db77a(0xde)]&&_0xd8d845<_0x480c7e[_0x3db77a(0x137)]||_0x59056f<=_0x480c7e[_0x3db77a(0xde)]&&_0xd8d845>=_0x480c7e[_0x3db77a(0x137)]));}function Ue(_0x1a81f2,_0x419df5,_0x7dde05,_0x116b6f){const _0xe5a87e=_0x2efb50;var _0x33bf68,_0xc79728;let _0x3e49cb=[...(_0x33bf68=_0x1a81f2[_0xe5a87e(0x116)])==null?[]:_0x33bf68][_0xe5a87e(0x121)]((_0x57fe9d,_0x4b8b02)=>_0x57fe9d[_0xe5a87e(0xde)]-_0x4b8b02[_0xe5a87e(0xde)]),_0x2d92fc=_0x25a651(_0x1a81f2),_0x3ecf2f=_0x3e49cb[_0xe5a87e(0xfd)](_0x4e115c=>O(_0x1a81f2,_0x4e115c,_0x116b6f,_0x2d92fc)<=_0x419df5&&_0x419df5<=_0x4e115c[_0xe5a87e(0xde)]),_0x395218=(_0xc79728=_0x3e49cb['find'](_0x5cfa9b=>_0x5cfa9b[_0xe5a87e(0xde)]>=_0x7dde05-0x1))==null?_0x3e49cb[_0x3e49cb['length']-0x1]:_0xc79728;return{'startOffset':_0x3ecf2f?O(_0x1a81f2,_0x3ecf2f,_0x116b6f,_0x2d92fc):_0x419df5,'endOffset':_0x395218?Ge(_0x395218,_0x116b6f):_0x7dde05};}function We(_0x17f212,_0x38b68d){const _0x13bb13=_0x2efb50;var _0x4f1780;let _0x491a8e=[...(_0x4f1780=_0x17f212[_0x13bb13(0x116)])==null?[]:_0x4f1780]['sort']((_0x310451,_0x3d57e1)=>_0x310451[_0x13bb13(0xde)]-_0x3d57e1[_0x13bb13(0xde)]),_0x45b5a0=_0x25a651(_0x17f212);return _0x491a8e[_0x13bb13(0xfd)](_0x20b1af=>{const _0x4b7b3f=_0x13bb13;var _0x58c43e;return((_0x58c43e=_0x45b5a0[_0x4b7b3f(0x145)](_0x20b1af[_0x4b7b3f(0xde)]))==null?0x0:_0x58c43e)<=_0x38b68d&&_0x38b68d<=_0x20b1af['startIndex'];});}function O(_0x3be065,_0x597797,_0x35a773,_0x209c88){const _0x3a4c66=_0x2efb50;var _0x3fd1be;let _0x211050=(_0x3fd1be=_0x209c88==null?void 0x0:_0x209c88[_0x3a4c66(0x145)](_0x597797[_0x3a4c66(0xde)]))==null?_0x44217a(_0x3be065,_0x597797):_0x3fd1be;return _0x35a773?Math[_0x3a4c66(0xd8)](_0x211050,_0x35a773[_0x3a4c66(0xc0)]):_0x211050;}function Ge(_0x36beeb,_0x1c58b3){const _0x5be13b=_0x2efb50;let _0x29566e=_0x36beeb['startIndex']+0x1;return _0x1c58b3?Math[_0x5be13b(0x105)](_0x29566e,_0x1c58b3['endOffset']):_0x29566e;}function Ke(_0x3abd25,_0x3cd165,_0x53bc81){const _0x135345=_0x2efb50;let _0x1454d2=qe(_0x3abd25,_0x3cd165),_0x3e5a6d=qe(_0x3abd25,_0x3cd165===_0x53bc81?_0x53bc81:Math[_0x135345(0xd8)](_0x3cd165,_0x53bc81-0x1));if(!(!_0x1454d2&&!_0x3e5a6d)){if(!_0x1454d2||!_0x3e5a6d||_0x1454d2[_0x135345(0xe3)]!==_0x3e5a6d[_0x135345(0xe3)]||_0x1454d2[_0x135345(0x130)]!==_0x3e5a6d[_0x135345(0x130)])throw new w();return _0x1454d2;}}function qe(_0x301a5e,_0x553077){const _0xedd48=_0x2efb50;let _0x56354d=_0x301a5e[_0xedd48(0x139)],_0x2419b0=-0x1;for(let _0x3ebee1=Math[_0xedd48(0x105)](_0x553077,_0x56354d[_0xedd48(0xcd)]-0x1);_0x3ebee1>=0x0;_0x3ebee1--){let _0xd184c=_0x56354d[_0x3ebee1];if(_0xd184c===_0x1314f9[_0xedd48(0x107)])return;if(_0xd184c===_0x1314f9[_0xedd48(0x101)]){_0x2419b0=_0x3ebee1;break;}}if(_0x2419b0<0x0)return;let _0x135915=_0x56354d[_0xedd48(0x135)](_0x1314f9[_0xedd48(0x107)],_0x2419b0+0x1);if(!(_0x135915<0x0||_0x553077<_0x2419b0+0x1||_0x553077>_0x135915-0x1))return{'startOffset':_0x2419b0+0x1,'endOffset':Math[_0xedd48(0xd8)](_0x2419b0+0x1,_0x135915-0x1),'startTokenOffset':_0x2419b0,'endTokenOffset':_0x135915};}function k(_0x130709){const _0x453771=_0x2efb50;return _0x2a1a77(_0x130709)[_0x453771(0xff)]-0x1;}function Je(_0x4f6263,_0x29b36a,_0x126cfe,_0x432ff2){const _0x1a3b84=_0x2efb50;var _0x411d2e;let _0xcf0c47=k(_0x29b36a),_0x225e8e=((_0x411d2e=_0x4f6263['paragraphs'])==null?[]:_0x411d2e)[_0x1a3b84(0xfd)](_0x2c2028=>_0x2c2028[_0x1a3b84(0xde)]===_0xcf0c47+0x1);if(!_0x225e8e||_0x432ff2!=null&&_0x225e8e[_0x1a3b84(0xde)]!==_0x432ff2||_0x126cfe!=null&&(_0x126cfe<_0xcf0c47||_0x126cfe>_0x225e8e[_0x1a3b84(0xde)]+0x1)||_0x4f6263[_0x1a3b84(0x139)][_0x225e8e[_0x1a3b84(0xde)]]!==_0x1314f9[_0x1a3b84(0xb7)])return null;let _0x4c0291=_0x44217a(_0x4f6263,_0x225e8e),_0x5a73b4=_0x4f6263[_0x1a3b84(0x139)]['slice'](_0x4c0291,_0x225e8e[_0x1a3b84(0xde)]);return Array[_0x1a3b84(0xae)](_0x5a73b4)[_0x1a3b84(0xd5)](_0xe571e=>_0xe571e===_0x1314f9[_0x1a3b84(0x122)])?{'paragraph':_0x225e8e,'endTokenOffset':_0xcf0c47}:null;}function A(_0x1a540a,_0x5c1d3d){const _0x10ad42=_0x2efb50;var _0x2d2226;let _0x3ae24f=k(_0x5c1d3d),_0x569c46=_0x1a540a[_0x10ad42(0x139)][_0x3ae24f+0x1];_0x569c46!==_0x1314f9[_0x10ad42(0xca)]&&_0x569c46!==void 0x0||j(_0x1a540a,_0x3ae24f+0x1,_0x1314f9[_0x10ad42(0xb7)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2feb68(new Set((_0x2d2226=_0x1a540a[_0x10ad42(0x116)])==null?void 0x0:_0x2d2226['map'](_0x26c1f8=>_0x26c1f8[_0x10ad42(0x10b)])))}]});}function j(_0x32d1c8,_0x611837,_0x23330e,_0x10a216={}){const _0x14821b=_0x2efb50;var _0x223f74,_0x537433;if(_0x23330e){if(_0x32d1c8[_0x14821b(0x139)]=''+_0x32d1c8[_0x14821b(0x139)][_0x14821b(0xe6)](0x0,_0x611837)+_0x23330e+_0x32d1c8[_0x14821b(0x139)][_0x14821b(0xe6)](_0x611837),Ye(_0x32d1c8,_0x611837,_0x23330e[_0x14821b(0xcd)]),(_0x223f74=_0x10a216['paragraphs'])!=null&&_0x223f74['length']){var _0x174429;_0x32d1c8[_0x14821b(0x116)]=[...(_0x174429=_0x32d1c8[_0x14821b(0x116)])==null?[]:_0x174429,..._0x10a216[_0x14821b(0x116)]['map'](_0xdc582a=>({..._0xdc582a,'startIndex':_0xdc582a[_0x14821b(0xde)]+_0x611837}))][_0x14821b(0x121)]((_0x7ebbae,_0x4c20bb)=>_0x7ebbae[_0x14821b(0xde)]-_0x4c20bb[_0x14821b(0xde)]);}if((_0x537433=_0x10a216[_0x14821b(0xbe)])!=null&&_0x537433['length']){var _0x1e2de4;_0x32d1c8[_0x14821b(0xbe)]=[...(_0x1e2de4=_0x32d1c8[_0x14821b(0xbe)])==null?[]:_0x1e2de4,..._0x10a216['blockRanges'][_0x14821b(0x13e)](_0x19ef83=>({..._0x19ef83,'startIndex':_0x19ef83[_0x14821b(0xde)]+_0x611837,'endIndex':_0x19ef83['endIndex']+_0x611837}))]['sort']((_0x5e5097,_0x3b297d)=>_0x5e5097[_0x14821b(0xde)]-_0x3b297d[_0x14821b(0xde)]);}}}function M(_0xffa0fc,_0x260b1d,_0xc47e9e){const _0x59854e=_0x2efb50;let _0x41886d=_0xc47e9e-_0x260b1d;_0xffa0fc['dataStream']=''+_0xffa0fc[_0x59854e(0x139)][_0x59854e(0xe6)](0x0,_0x260b1d)+_0xffa0fc[_0x59854e(0x139)][_0x59854e(0xe6)](_0xc47e9e),Xe(_0xffa0fc,_0x260b1d,_0x41886d);}function Ye(_0x39e1da,_0x3d4ab1,_0x2cc757){const _0x3f2b40=_0x2efb50;_0x39e1da[_0x3f2b40(0x116)]=N(_0x39e1da[_0x3f2b40(0x116)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xb6)]=N(_0x39e1da[_0x3f2b40(0xb6)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xc8)]=N(_0x39e1da['customBlocks'],_0x3d4ab1,_0x2cc757),_0x39e1da['textRuns']=Ze(_0x39e1da['textRuns'],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xb3)]=Qe(_0x39e1da[_0x3f2b40(0xb3)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xd9)]=F(_0x39e1da['columnGroups'],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xcc)]=F(_0x39e1da[_0x3f2b40(0xcc)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0x103)]=F(_0x39e1da[_0x3f2b40(0x103)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xbe)]=F(_0x39e1da[_0x3f2b40(0xbe)],_0x3d4ab1,_0x2cc757);}function Xe(_0x503536,_0x22f042,_0xfb6f18){const _0xbe8cf8=_0x2efb50;var _0x12cbeb,_0x5b35a6;_0x503536[_0xbe8cf8(0x116)]=P(_0x503536[_0xbe8cf8(0x116)],_0x22f042,_0xfb6f18),_0x503536['sectionBreaks']=P(_0x503536[_0xbe8cf8(0xb6)],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xc8)]=P(_0x503536[_0xbe8cf8(0xc8)],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xea)]=(_0x12cbeb=$e((_0x5b35a6=_0x503536[_0xbe8cf8(0xea)])==null?void 0x0:_0x5b35a6[_0xbe8cf8(0x13e)](_0x591d0b=>({..._0x591d0b,'startIndex':_0x591d0b['st'],'endIndex':_0x591d0b['ed']})),_0x22f042,_0xfb6f18))==null?void 0x0:_0x12cbeb[_0xbe8cf8(0x13e)](_0x23138c=>{let {startIndex:_0x2ad51f,endIndex:_0x13afec,..._0x331160}=_0x23138c;return{..._0x331160,'st':_0x2ad51f,'ed':_0x13afec};}),_0x503536[_0xbe8cf8(0xb3)]=$e(_0x503536['tables'],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xd9)]=I(_0x503536['columnGroups'],_0x22f042,_0xfb6f18),_0x503536['customRanges']=I(_0x503536[_0xbe8cf8(0xcc)],_0x22f042,_0xfb6f18),_0x503536['customDecorations']=I(_0x503536[_0xbe8cf8(0x103)],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xbe)]=I(_0x503536[_0xbe8cf8(0xbe)],_0x22f042,_0xfb6f18);}function N(_0x1e261d,_0x4f3e8f,_0x1011db){const _0x363735=_0x2efb50;return _0x1e261d==null?void 0x0:_0x1e261d[_0x363735(0x13e)](_0x1bce6e=>_0x1bce6e[_0x363735(0xde)]>=_0x4f3e8f?{..._0x1bce6e,'startIndex':_0x1bce6e[_0x363735(0xde)]+_0x1011db}:_0x1bce6e);}function P(_0x512a4a,_0x27f720,_0x35207f){const _0x5a2fe8=_0x2efb50;let _0x96b97d=_0x27f720+_0x35207f;return _0x512a4a==null?void 0x0:_0x512a4a[_0x5a2fe8(0x13e)](_0x426838=>_0x426838[_0x5a2fe8(0xde)]>=_0x27f720&&_0x426838['startIndex']<_0x96b97d?null:_0x426838['startIndex']>=_0x96b97d?{..._0x426838,'startIndex':_0x426838['startIndex']-_0x35207f}:_0x426838)[_0x5a2fe8(0x119)](_0x5d5cee=>_0x5d5cee!=null);}function Ze(_0x4a313e,_0x2360bc,_0x1fb768){const _0x4a4380=_0x2efb50;return _0x4a313e==null?void 0x0:_0x4a313e[_0x4a4380(0x13e)](_0x597405=>_0x597405['st']>=_0x2360bc?{..._0x597405,'st':_0x597405['st']+_0x1fb768,'ed':_0x597405['ed']+_0x1fb768}:_0x597405['ed']>_0x2360bc?{..._0x597405,'ed':_0x597405['ed']+_0x1fb768}:_0x597405);}function F(_0x2366ec,_0x1ff3b0,_0x423844){return _0x2366ec==null?void 0x0:_0x2366ec['map'](_0x4649e4=>_0x23043b(_0x4649e4,_0x1ff3b0,_0x423844));}function Qe(_0x3f3d6f,_0x44a35d,_0x353e34){const _0x11bdf6=_0x2efb50;return _0x3f3d6f==null?void 0x0:_0x3f3d6f[_0x11bdf6(0x13e)](_0x215aef=>_0x1dda83(_0x215aef,_0x44a35d,_0x353e34));}function I(_0x5a6966,_0x491dd2,_0x471a47){const _0x1e91cd=_0x2efb50;return _0x5a6966==null?void 0x0:_0x5a6966[_0x1e91cd(0x13e)](_0x21909a=>_0x3f04e8(_0x21909a,_0x491dd2,_0x471a47))[_0x1e91cd(0x119)](_0x2b7fcd=>_0x2b7fcd!=null);}function $e(_0x3129f5,_0x18e17a,_0x1eb409){const _0xae25cb=_0x2efb50;return _0x3129f5==null?void 0x0:_0x3129f5[_0xae25cb(0x13e)](_0x115c3b=>_0x1df613(_0x115c3b,_0x18e17a,_0x1eb409))[_0xae25cb(0x119)](_0x2ab5a3=>_0x2ab5a3!=null);}function L(_0xf84dbe){'@babel/helpers - typeof';const _0x50e146=_0x2efb50;return L=typeof Symbol==_0x50e146(0x134)&&typeof Symbol[_0x50e146(0x126)]=='symbol'?function(_0x4a2964){return typeof _0x4a2964;}:function(_0xf016ce){const _0x4b2390=_0x50e146;return _0xf016ce&&typeof Symbol=='function'&&_0xf016ce['constructor']===Symbol&&_0xf016ce!==Symbol[_0x4b2390(0xd1)]?_0x4b2390(0x13d):typeof _0xf016ce;},L(_0xf84dbe);}function et(_0x246ffd,_0x1fc5b7){const _0x5dded0=_0x2efb50;if(L(_0x246ffd)!='object'||!_0x246ffd)return _0x246ffd;var _0x2a43fd=_0x246ffd[Symbol[_0x5dded0(0x10a)]];if(_0x2a43fd!==void 0x0){var _0x5d39f2=_0x2a43fd[_0x5dded0(0xce)](_0x246ffd,_0x1fc5b7||_0x5dded0(0xef));if(L(_0x5d39f2)!=_0x5dded0(0x13a))return _0x5d39f2;throw TypeError(_0x5dded0(0x142));}return(_0x1fc5b7===_0x5dded0(0xd0)?String:Number)(_0x246ffd);}function tt(_0x2ad57f){const _0x4349a4=_0x2efb50;var _0x38f121=et(_0x2ad57f,_0x4349a4(0xd0));return L(_0x38f121)==_0x4349a4(0x13d)?_0x38f121:_0x38f121+'';}function R(_0x41e168,_0x3e45d8,_0x2ac0a9){return(_0x3e45d8=tt(_0x3e45d8))in _0x41e168?Object['defineProperty'](_0x41e168,_0x3e45d8,{'value':_0x2ac0a9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41e168[_0x3e45d8]=_0x2ac0a9,_0x41e168;}var z=class extends _0x548644{constructor(..._0x2012d9){const _0x5cbbe7=_0x2efb50;super(..._0x2012d9),R(this,_0x5cbbe7(0x14e),new Map()),R(this,_0x5cbbe7(0xee),new _0xd242a9()),R(this,_0x5cbbe7(0x125),this[_0x5cbbe7(0xee)][_0x5cbbe7(0x128)]());}[_0x2efb50(0xbb)](_0x1343ad,_0x40c146){const _0x3e1d34=_0x2efb50;return x(this[_0x3e1d34(0x14e)][_0x3e1d34(0x145)](_0x1343ad))['codes'][_0x40c146];}[_0x2efb50(0xd7)](_0xe61b14,_0x2ac796,_0x37af91){const _0x5dc0d1=_0x2efb50;this[_0x5dc0d1(0xbc)](_0xe61b14,_0x2ac796,S(this[_0x5dc0d1(0x14e)]['get'](_0xe61b14),_0x2ac796,_0x37af91));}[_0x2efb50(0xbd)](_0x31d54e,_0xb451e7){const _0x35ca2b=_0x2efb50;this[_0x35ca2b(0xbc)](_0x31d54e,_0xb451e7,C(this[_0x35ca2b(0x14e)][_0x35ca2b(0x145)](_0x31d54e),_0xb451e7));}[_0x2efb50(0xdd)](_0x47d209){const _0x37b6b0=_0x2efb50;return x(this[_0x37b6b0(0x14e)]['get'](_0x47d209));}[_0x2efb50(0x106)](_0x521106,_0x33c94b){const _0x1de2b0=_0x2efb50;this['_resources'][_0x1de2b0(0x144)](_0x521106,x(_0x33c94b)),this[_0x1de2b0(0xee)]['next']({'unitId':_0x521106});}[_0x2efb50(0xba)](_0xd9d99a){const _0x149003=_0x2efb50;this[_0x149003(0x14e)]['delete'](_0xd9d99a),this['_change$'][_0x149003(0x117)]({'unitId':_0xd9d99a});}['dispose'](){const _0x4415ed=_0x2efb50;super[_0x4415ed(0xb1)](),this[_0x4415ed(0x14e)][_0x4415ed(0x141)](),this[_0x4415ed(0xee)][_0x4415ed(0xc1)]();}[_0x2efb50(0xbc)](_0x470ba7,_0x3b2559,_0x54f004){const _0x562aed=_0x2efb50;this['_resources'][_0x562aed(0x144)](_0x470ba7,_0x54f004),this[_0x562aed(0xee)][_0x562aed(0x117)]({'unitId':_0x470ba7,'blockId':_0x3b2559});}};const nt={'id':_0x2efb50(0x11a),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':_0x441dfe=>{const _0x37fb33=_0x2efb50;var _0x4001c0;if(_0x3830d1(G(_0x441dfe)))return!0x1;let _0x540b53=_0x4e708a(_0x441dfe);if(_0x540b53)return _0x441dfe[_0x37fb33(0x145)](_0x4c3a60)['syncExecuteCommand'](B['id'],{'startOffset':_0x540b53['startOffset'],'endOffset':_0x540b53[_0x37fb33(0xff)],'insertionMode':_0x37fb33(0x149),'unitId':_0x540b53[_0x37fb33(0x110)]});let _0x47b029=lt(_0x441dfe);if(!_0x47b029)return!0x1;let _0x59c2d2=(_0x4001c0=_0x441dfe[_0x37fb33(0x145)](_0x4b72a3)[_0x37fb33(0xe7)](_0x727df5['UNIVER_DOC']))==null?void 0x0:_0x4001c0[_0x37fb33(0xb9)](),_0x10e509=_0x59c2d2?_0x588559(_0x59c2d2,_0x47b029):_0x47b029[_0x37fb33(0xde)]+0x1;return _0x441dfe[_0x37fb33(0x145)](_0x4c3a60)[_0x37fb33(0x12e)](B['id'],{'startOffset':_0x10e509,'endOffset':_0x10e509});}},rt={'id':_0x2efb50(0xd6),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x33ac8c['COMMAND'],'handler':(_0x58b758,_0x60a13c)=>{const _0x5a1105=_0x2efb50;var _0x25c297;let _0x83a590=W(_0x58b758,_0x60a13c==null?void 0x0:_0x60a13c[_0x5a1105(0x110)]);if(!_0x83a590)return!0x1;let _0xf5a2dd=G(_0x58b758);if(_0x3830d1(_0xf5a2dd))return!0x1;let _0x3bd9c7=_0x83a590[_0x5a1105(0x109)]['serialize'](_0x83a590[_0x5a1105(0x110)]),_0x42df78=ot(_0x60a13c,_0xf5a2dd),_0x5fa28=st(_0x83a590[_0x5a1105(0xf5)],_0x42df78);if(_0x5fa28){if(_0x5fa28['blockType']!==_0x339a0c[_0x5a1105(0xb2)])return!0x1;let _0x5dba47=Ee({'blockId':_0x5fa28[_0x5a1105(0xc4)],'documentData':_0x83a590[_0x5a1105(0xf5)],'metadata':_0x3bd9c7});if(!_0x5dba47)return!0x1;let _0x1a0688=Y(_0x83a590['commandService'],_0x83a590[_0x5a1105(0xf0)],_0x83a590['unitId'],_0x83a590[_0x5a1105(0xf5)],_0x5dba47['nextDocumentData'],B['id'],_0x5dba47['cursorOffset']);return _0x1a0688&&_0x5dba47[_0x5a1105(0xe4)]&&_0x83a590[_0x5a1105(0x109)][_0x5a1105(0x106)](_0x83a590[_0x5a1105(0x110)],_0x5dba47[_0x5a1105(0xe4)]),_0x1a0688;}let _0xc1331f=(_0x25c297=_0x60a13c==null?void 0x0:_0x60a13c['blockId'])==null?_0x3275ad(0x6):_0x25c297,_0x35b4e6;try{_0x35b4e6=xe({'blockId':_0xc1331f,'config':_0x60a13c==null?void 0x0:_0x60a13c[_0x5a1105(0x113)],'documentData':_0x83a590[_0x5a1105(0xf5)],'endOffset':_0x42df78==null?void 0x0:_0x42df78[_0x5a1105(0xff)],'insertionMode':_0x60a13c==null?void 0x0:_0x60a13c[_0x5a1105(0x10d)],'metadata':_0x3bd9c7,'startOffset':_0x42df78==null?void 0x0:_0x42df78[_0x5a1105(0xc0)]});}catch(_0x245947){if(_0x245947 instanceof w)return!0x1;throw _0x245947;}let _0x894ebe=Y(_0x83a590[_0x5a1105(0x11b)],_0x83a590[_0x5a1105(0xf0)],_0x83a590[_0x5a1105(0x110)],_0x83a590['previousDocumentData'],_0x35b4e6[_0x5a1105(0x12f)],B['id'],_0x35b4e6['cursorOffset']);return _0x894ebe&&_0x35b4e6[_0x5a1105(0xe4)]&&_0x83a590[_0x5a1105(0x109)][_0x5a1105(0x106)](_0x83a590[_0x5a1105(0x110)],_0x35b4e6[_0x5a1105(0xe4)]),_0x894ebe;}},it={'id':_0x2efb50(0xb5),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x5a360b,_0xab4992)=>{const _0x1c56cd=_0x2efb50;if(!_0xab4992)return!0x1;let _0x204d83=W(_0x5a360b,_0xab4992[_0x1c56cd(0x110)]);if(!_0x204d83)return!0x1;let _0x52761f=Te({'blockId':_0xab4992[_0x1c56cd(0xc4)],'config':_0xab4992['config'],'documentData':_0x204d83[_0x1c56cd(0xf5)],'metadata':_0x204d83[_0x1c56cd(0x109)][_0x1c56cd(0xdd)](_0x204d83[_0x1c56cd(0x110)])});return _0x52761f['nextMetadata']&&_0x204d83[_0x1c56cd(0x109)][_0x1c56cd(0x106)](_0x204d83[_0x1c56cd(0x110)],_0x52761f[_0x1c56cd(0xe4)]),!0x0;}},at={'id':_0x2efb50(0xd4),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x226a9a,_0x41c2e0)=>V[_0x2efb50(0x127)](_0x226a9a,_0x41c2e0)},V={'id':'docs-code.command.unwrap','type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x1e891d,_0x320ee7)=>{const _0x49eb11=_0x2efb50;if(!_0x320ee7)return!0x1;let _0x4e794e=W(_0x1e891d,_0x320ee7==null?void 0x0:_0x320ee7[_0x49eb11(0x110)]);if(!_0x4e794e)return!0x1;let _0x2970cc=Ee({'blockId':_0x320ee7[_0x49eb11(0xc4)],'documentData':_0x4e794e[_0x49eb11(0xf5)],'metadata':_0x4e794e['model'][_0x49eb11(0xdd)](_0x4e794e[_0x49eb11(0x110)])});if(!_0x2970cc)return!0x1;let _0x2a5e9c=Y(_0x4e794e[_0x49eb11(0x11b)],_0x4e794e[_0x49eb11(0xf0)],_0x4e794e[_0x49eb11(0x110)],_0x4e794e[_0x49eb11(0xf5)],_0x2970cc[_0x49eb11(0x12f)],V['id'],_0x2970cc[_0x49eb11(0x148)]);return _0x2a5e9c&&_0x2970cc['nextMetadata']&&_0x4e794e['model'][_0x49eb11(0x106)](_0x4e794e['unitId'],_0x2970cc[_0x49eb11(0xe4)]),_0x2a5e9c;}},H={'id':_0x2efb50(0x11c),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x50fb9a,_0x4a5bb8)=>{const _0x2b59ea=_0x2efb50;if(!_0x4a5bb8)return!0x1;let _0x3bcbd6=W(_0x50fb9a,_0x4a5bb8==null?void 0x0:_0x4a5bb8[_0x2b59ea(0x110)]);if(!_0x3bcbd6)return!0x1;let _0x21e844=De({'blockId':_0x4a5bb8[_0x2b59ea(0xc4)],'documentData':_0x3bcbd6[_0x2b59ea(0xf5)],'metadata':_0x3bcbd6[_0x2b59ea(0x109)]['serialize'](_0x3bcbd6[_0x2b59ea(0x110)])});if(!_0x21e844)return!0x1;let _0x5ca792=Y(_0x3bcbd6[_0x2b59ea(0x11b)],_0x3bcbd6[_0x2b59ea(0xf0)],_0x3bcbd6[_0x2b59ea(0x110)],_0x3bcbd6['previousDocumentData'],_0x21e844[_0x2b59ea(0x12f)],H['id'],_0x21e844['cursorOffset']);return _0x5ca792&&_0x21e844[_0x2b59ea(0xe4)]&&_0x3bcbd6[_0x2b59ea(0x109)][_0x2b59ea(0x106)](_0x3bcbd6[_0x2b59ea(0x110)],_0x21e844[_0x2b59ea(0xe4)]),_0x5ca792;}},U={'id':_0x2efb50(0x100),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0xe7a3bc,_0x3a49ea)=>{const _0x366cfe=_0x2efb50;var _0x1ce127,_0x3c48df;let _0xb64d9a=W(_0xe7a3bc,_0x3a49ea==null?void 0x0:_0x3a49ea[_0x366cfe(0x110)]);if(!_0xb64d9a)return!0x1;let _0x21581c=(_0x1ce127=_0x3a49ea==null?void 0x0:_0x3a49ea['cursorOffset'])==null?(_0x3c48df=G(_0xe7a3bc))==null?void 0x0:_0x3c48df[_0x366cfe(0xc0)]:_0x1ce127;if(_0x21581c==null)return!0x1;let _0x2dc604=Oe({'cursorOffset':_0x21581c,'documentData':_0xb64d9a[_0x366cfe(0xf5)],'paragraphStartIndex':_0x3a49ea==null?void 0x0:_0x3a49ea[_0x366cfe(0x102)]});return _0x2dc604?Y(_0xb64d9a['commandService'],_0xb64d9a['selectionManager'],_0xb64d9a[_0x366cfe(0x110)],_0xb64d9a[_0x366cfe(0xf5)],_0x2dc604[_0x366cfe(0x12f)],U['id'],_0x2dc604['cursorOffset']):!0x1;}};function W(_0x487abd,_0x55b109){const _0x3f479b=_0x2efb50;let _0x257dd5=_0x487abd[_0x3f479b(0x145)](_0x4b72a3),_0x240fcb=_0x55b109?_0x257dd5[_0x3f479b(0xcf)](_0x55b109,_0x727df5[_0x3f479b(0x112)]):_0x257dd5[_0x3f479b(0xe7)](_0x727df5[_0x3f479b(0x112)]);return _0x240fcb?{'commandService':_0x487abd[_0x3f479b(0x145)](_0x4c3a60),'model':_0x487abd[_0x3f479b(0x145)](z),'previousDocumentData':_0x240fcb[_0x3f479b(0x104)](),'selectionManager':_0x487abd[_0x3f479b(0x145)](_0x324bf4),'unitId':_0x240fcb[_0x3f479b(0xf4)]()}:null;}function G(_0x496ed7){const _0x4505bc=_0x2efb50;var _0x584e2a;return(_0x584e2a=_0x496ed7[_0x4505bc(0x145)](_0x324bf4)[_0x4505bc(0xf1)]())==null?void 0x0:_0x584e2a[0x0];}function ot(_0x3c673e,_0x422fb3){const _0x810dd=_0x2efb50;var _0x4f659f,_0x282b87;let _0x34138f=(_0x4f659f=_0x3c673e==null?void 0x0:_0x3c673e[_0x810dd(0xc0)])==null?_0x422fb3==null?void 0x0:_0x422fb3[_0x810dd(0xc0)]:_0x4f659f,_0x4a3deb=(_0x282b87=_0x3c673e==null?void 0x0:_0x3c673e[_0x810dd(0xff)])==null?_0x422fb3==null?void 0x0:_0x422fb3[_0x810dd(0xff)]:_0x282b87;if(!(_0x34138f==null||_0x4a3deb==null))return{'endOffset':Math[_0x810dd(0xd8)](_0x34138f,_0x4a3deb),'startOffset':Math['min'](_0x34138f,_0x4a3deb)};}function st(_0x67f2,_0x17bb25){const _0x2eb7b8=_0x2efb50;var _0x4ad406;if(!_0x17bb25)return;let _0x2e96ed=ct(_0x17bb25);return(_0x4ad406=_0x67f2[_0x2eb7b8(0xec)])==null||(_0x4ad406=_0x4ad406[_0x2eb7b8(0xbe)])==null?void 0x0:_0x4ad406[_0x2eb7b8(0xfd)](_0x408831=>{const _0x16d21d=_0x2eb7b8;let _0x4da88f=_0x2a1a77(_0x408831);return _0x17bb25['startOffset']===_0x17bb25[_0x16d21d(0xff)]?_0x10db6c(_0x4da88f,_0x2e96ed):_0x5234f8(_0x4da88f,_0x2e96ed);});}function ct(_0x36ab72){const _0x54f5ad=_0x2efb50;return _0x36ab72[_0x54f5ad(0xc0)]===_0x36ab72[_0x54f5ad(0xff)]?_0x36ab72[_0x54f5ad(0xc0)]:_0x36ab72['startOffset']+0x1;}function lt(_0x80af4f){const _0x199f85=_0x2efb50;var _0x1628e1,_0x7ad65f,_0x5d884d;let _0x1bac63=G(_0x80af4f);if(!_0x1bac63)return null;let _0xb869e1=_0x80af4f['get'](_0x4b72a3)[_0x199f85(0xe7)](_0x727df5[_0x199f85(0x112)]),_0x192c34=_0xb869e1==null?void 0x0:_0xb869e1['getBody']();return _0x192c34?(_0x1628e1=_0x364499['range'][_0x199f85(0xf7)](_0x1bac63,(_0x7ad65f=_0x192c34[_0x199f85(0x116)])==null?[]:_0x7ad65f,(_0x5d884d=_0x192c34[_0x199f85(0x139)])==null?'':_0x5d884d)[0x0])==null?null:_0x1628e1:null;}function ut(_0x10acd4,_0x3b4ca8){const _0x1d0243=_0x2efb50;let _0x48a408=_0x10acd4[_0x1d0243(0xec)],_0xcab6c=_0x3b4ca8[_0x1d0243(0xec)],_0x1e6855=_0x54c010(_0x48a408,_0xcab6c);return[_0x1e6855&&_0xcab6c?dt(_0xcab6c,_0x1e6855):null,_0x1e6855?null:ft(_0x48a408,_0xcab6c)][_0x1d0243(0x119)](Boolean)[_0x1d0243(0xb0)]((_0x324817,_0x1e7601)=>_0x1a6531[_0x1d0243(0x147)](_0x324817,_0x1e7601),null);}function dt(_0x492945,_0x7f19a0){const _0x4afcc1=_0x2efb50;let _0xfad2a5=new _0x5e8a72();return _0xfad2a5['retain'](_0x7f19a0[_0x4afcc1(0x12a)]),_0x7f19a0[_0x4afcc1(0xe1)]>0x0&&_0xfad2a5[_0x4afcc1(0x146)](_0x7f19a0[_0x4afcc1(0xe1)],_0x139c29(_0x492945,_0x7f19a0[_0x4afcc1(0x12a)],_0x7f19a0[_0x4afcc1(0x12a)]+_0x7f19a0[_0x4afcc1(0xe1)],!0x1)),_0x7f19a0['deleteLength']>0x0&&_0xfad2a5[_0x4afcc1(0xc7)](_0x7f19a0[_0x4afcc1(0x114)]),_0x1a6531[_0x4afcc1(0xd2)]()[_0x4afcc1(0xe5)](_0xfad2a5[_0x4afcc1(0xdd)](),[_0x4afcc1(0xec)]);}function ft(_0x7b3da0,_0x36cb87){const _0x2ce1a3=_0x2efb50;let _0x2f820a=[],_0x4d41b2=_0x7b3da0?mt(_0x7b3da0):void 0x0,_0x4079d1=_0x36cb87?mt(_0x36cb87):void 0x0;for(let _0x2a0a90 of pt)K(_0x1a6531[_0x2ce1a3(0xd2)](),['body',_0x2a0a90],_0x4d41b2==null?void 0x0:_0x4d41b2[_0x2a0a90],_0x4079d1==null?void 0x0:_0x4079d1[_0x2a0a90],_0x2f820a);return _0x2f820a[_0x2ce1a3(0xb0)]((_0x433681,_0x2742a0)=>_0x1a6531[_0x2ce1a3(0x147)](_0x433681,_0x2742a0),null);}const pt=[_0x2efb50(0x116),_0x2efb50(0xb6),_0x2efb50(0xb3),_0x2efb50(0xd9),_0x2efb50(0xbe),_0x2efb50(0xc8),_0x2efb50(0xcc),'customDecorations',_0x2efb50(0xea)];function mt(_0xf9b96e){return _0xf9b96e;}function K(_0xdf0364,_0x403ae4,_0x1567ed,_0x1b9160,_0x4ed876){const _0xf93fe2=_0x2efb50;if(!J(_0x1567ed,_0x1b9160)){if(_0x1567ed==null){_0x4ed876[_0xf93fe2(0x14b)](_0xdf0364[_0xf93fe2(0x10e)](_0x403ae4,_0x1b9160));return;}if(_0x1b9160==null){_0x4ed876[_0xf93fe2(0x14b)](_0xdf0364['removeOp'](_0x403ae4,_0x1567ed));return;}if(Array['isArray'](_0x1567ed)&&Array['isArray'](_0x1b9160)){ht(_0xdf0364,_0x403ae4,_0x1567ed,_0x1b9160,_0x4ed876);return;}if(q(_0x1567ed)&&q(_0x1b9160)){new Set([...Object[_0xf93fe2(0xeb)](_0x1567ed),...Object[_0xf93fe2(0xeb)](_0x1b9160)])[_0xf93fe2(0x12b)](_0x95db9c=>{K(_0xdf0364,[..._0x403ae4,_0x95db9c],_0x1567ed[_0x95db9c],_0x1b9160[_0x95db9c],_0x4ed876);});return;}_0x4ed876[_0xf93fe2(0x14b)](_0xdf0364[_0xf93fe2(0x129)](_0x403ae4,_0x1567ed,_0x1b9160));}}function ht(_0x1fdb55,_0x594dcf,_0x36e36f,_0x5b73db,_0x41db76){const _0x5b5e5b=_0x2efb50;if(_0x36e36f[_0x5b5e5b(0xcd)]===_0x5b73db[_0x5b5e5b(0xcd)]){_0x36e36f['forEach']((_0x4487c4,_0x204782)=>K(_0x1fdb55,[..._0x594dcf,_0x204782],_0x4487c4,_0x5b73db[_0x204782],_0x41db76));return;}let _0x293eda=0x0;for(;_0x293eda<_0x36e36f[_0x5b5e5b(0xcd)]&&_0x293eda<_0x5b73db['length']&&J(_0x36e36f[_0x293eda],_0x5b73db[_0x293eda]);)_0x293eda++;let _0x3e30b1=_0x36e36f[_0x5b5e5b(0xcd)]-0x1,_0x1f4308=_0x5b73db[_0x5b5e5b(0xcd)]-0x1;for(;_0x3e30b1>=_0x293eda&&_0x1f4308>=_0x293eda&&J(_0x36e36f[_0x3e30b1],_0x5b73db[_0x1f4308]);)_0x3e30b1--,_0x1f4308--;for(let _0x511a41=_0x3e30b1;_0x511a41>=_0x293eda;_0x511a41--)_0x41db76[_0x5b5e5b(0x14b)](_0x1fdb55[_0x5b5e5b(0xdf)]([..._0x594dcf,_0x511a41],_0x36e36f[_0x511a41]));for(let _0x3a43ab=_0x293eda;_0x3a43ab<=_0x1f4308;_0x3a43ab++)_0x41db76[_0x5b5e5b(0x14b)](_0x1fdb55[_0x5b5e5b(0x10e)]([..._0x594dcf,_0x3a43ab],_0x5b73db[_0x3a43ab]));}function q(_0x44292b){const _0x4708cc=_0x2efb50;return typeof _0x44292b==_0x4708cc(0x13a)&&!!_0x44292b&&!Array[_0x4708cc(0xf8)](_0x44292b);}function J(_0x5ae4df,_0x1acab4){const _0x2fed35=_0x2efb50;return JSON[_0x2fed35(0x152)](_0x5ae4df)===JSON[_0x2fed35(0x152)](_0x1acab4);}function Y(_0x157d43,_0xe79597,_0x2d08fe,_0x133a88,_0xe2a366,_0x15b77b,_0x577c12){const _0x134f79=_0x2efb50;let _0x37942d=ut(_0x133a88,_0xe2a366);return _0x37942d?!!_0x157d43[_0x134f79(0x12e)](_0x50260d['id'],{'unitId':_0x2d08fe,'actions':_0x37942d,'textRanges':[{'startOffset':_0x577c12,'endOffset':_0x577c12,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x15b77b}):(_0xe79597[_0x134f79(0x12d)]([{'startOffset':_0x577c12,'endOffset':_0x577c12}],{'unitId':_0x2d08fe,'subUnitId':_0x2d08fe},!0x1),!0x0);}const X=_0x2efb50(0x14f);var gt='@univerjs-pro/docs-code',_t='1.0.0-alpha.4';const vt={};function Z(_0x280bf0,_0x3505db){return function(_0x3d4522,_0x3ee104){_0x3505db(_0x3d4522,_0x3ee104,_0x280bf0);};}function yt(_0x4ae12a,_0x221994,_0xa2a068,_0x478c99){const _0x18796d=_0x2efb50;var _0x443b67=arguments[_0x18796d(0xcd)],_0x246688=_0x443b67<0x3?_0x221994:_0x478c99===null?_0x478c99=Object[_0x18796d(0xcb)](_0x221994,_0xa2a068):_0x478c99,_0x349987;if(typeof Reflect==_0x18796d(0x13a)&&typeof Reflect['decorate']==_0x18796d(0x134))_0x246688=Reflect['decorate'](_0x4ae12a,_0x221994,_0xa2a068,_0x478c99);else{for(var _0x33fc99=_0x4ae12a[_0x18796d(0xcd)]-0x1;_0x33fc99>=0x0;_0x33fc99--)(_0x349987=_0x4ae12a[_0x33fc99])&&(_0x246688=(_0x443b67<0x3?_0x349987(_0x246688):_0x443b67>0x3?_0x349987(_0x221994,_0xa2a068,_0x246688):_0x349987(_0x221994,_0xa2a068))||_0x246688);}return _0x443b67>0x3&&_0x246688&&Object[_0x18796d(0xaf)](_0x221994,_0xa2a068,_0x246688),_0x246688;}let Q=class extends _0x548644{constructor(_0x569cfa,_0x26a7c5){const _0x37c96b=_0x2efb50;super(),this[_0x37c96b(0xf6)]=_0x569cfa,this[_0x37c96b(0xf3)]=_0x26a7c5,this['_initResource']();}[_0x2efb50(0xc9)](){const _0x453aad=_0x2efb50;this[_0x453aad(0xed)](this['_resourceManagerService'][_0x453aad(0xc3)]({'pluginName':X,'businesses':[_0x727df5[_0x453aad(0x112)]],'toJson':_0x5972de=>JSON[_0x453aad(0x152)](this[_0x453aad(0xf3)][_0x453aad(0xdd)](_0x5972de)),'parseJson':_0x27fa62=>x(JSON[_0x453aad(0xe8)](_0x27fa62)),'onLoad':(_0x455cfd,_0xb478df)=>this['_docsCodeModel']['deserialize'](_0x455cfd,_0xb478df),'onUnLoad':_0x5d0cf0=>this['_docsCodeModel']['removeUnit'](_0x5d0cf0)}));}};Q=yt([Z(0x0,_0x5b26a5),Z(0x1,_0x8efd81(z))],Q);let $=class extends _0x5a1391{constructor(_0x12da37=vt,_0x20b4d4,_0x56fe53,_0x391c76){const _0xed794f=_0x2efb50;super(),this['_config']=_0x12da37,this[_0xed794f(0x13f)]=_0x20b4d4,this[_0xed794f(0xf2)]=_0x56fe53,this[_0xed794f(0x11d)]=_0x391c76;let {..._0x7b1530}=_0x5d9446({},vt,this[_0xed794f(0x14d)]);this[_0xed794f(0x11d)]['setConfig']('docs-code.config',_0x7b1530);}[_0x2efb50(0xb4)](){const _0x23db06=_0x2efb50;this[_0x23db06(0x13f)]['add']([z]),this[_0x23db06(0x13f)][_0x23db06(0x115)]([Q]),this[_0x23db06(0x13f)][_0x23db06(0x145)](z),this[_0x23db06(0x13f)][_0x23db06(0x145)](Q),[B,nt,it,V,H,at,U,rt]['forEach'](_0x18eccf=>this['disposeWithMe'](this[_0x23db06(0xf2)][_0x23db06(0xdb)](_0x18eccf)));}};R($,_0x2efb50(0x108),X),R($,'packageName',gt),R($,_0x2efb50(0x10f),_t),R($,_0x2efb50(0xfc),_0x727df5[_0x2efb50(0x112)]),$=yt([_0x3b5fed(_0x14ed34,_0x33f3a6),Z(0x1,_0x8efd81(_0x232b49)),Z(0x2,_0x4c3a60),Z(0x3,_0x1c4ada)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};
1
+ const _0x1edc1f=_0x23a6;function _0x23a6(_0x5563f6,_0x426ced){_0x5563f6=_0x5563f6-0x1b6;const _0x8e7208=_0x8e72();let _0x23a61a=_0x8e7208[_0x5563f6];return _0x23a61a;}(function(_0x1953ae,_0x259e0d){const _0xce95f5=_0x23a6,_0x43d89e=_0x1953ae();while(!![]){try{const _0x272354=parseInt(_0xce95f5(0x206))/0x1+-parseInt(_0xce95f5(0x254))/0x2*(parseInt(_0xce95f5(0x1ce))/0x3)+-parseInt(_0xce95f5(0x1de))/0x4*(parseInt(_0xce95f5(0x1ed))/0x5)+-parseInt(_0xce95f5(0x1e5))/0x6*(parseInt(_0xce95f5(0x23e))/0x7)+parseInt(_0xce95f5(0x1e1))/0x8*(parseInt(_0xce95f5(0x256))/0x9)+-parseInt(_0xce95f5(0x1bc))/0xa+parseInt(_0xce95f5(0x20b))/0xb*(parseInt(_0xce95f5(0x1dd))/0xc);if(_0x272354===_0x259e0d)break;else _0x43d89e['push'](_0x43d89e['shift']());}catch(_0x118d37){_0x43d89e['push'](_0x43d89e['shift']());}}}(_0x8e72,0xcf039));import{BuildTextUtils as _0xfcd91,CommandType as _0x3aa002,DataStreamTreeTokenType as _0x43b06f,DependentOn as _0x2f1165,Disposable as _0x11f1e7,DocumentBlockRangeType as _0x37a99f,ICommandService as _0x1d61d6,IConfigService as _0x4a9167,IResourceManagerService as _0x50ae34,IUniverInstanceService as _0x45d141,Inject as _0x5c4b8b,Injector as _0x193e69,JSONX as _0x3e4a71,Plugin as _0x19b9cc,TextX as _0x37143f,UniverInstanceType as _0x41a83a,containsInteriorInsertionOffset as _0x52963d,containsStreamIndex as _0xf103f,createParagraphId as _0x5cfb3a,generateRandomId as _0x35a556,getBlockRangeInterval as _0x4a1bb2,getBodySliceForTextXAction as _0x2fb9bb,getParagraphContentStartOffset as _0x120216,getParagraphContentStartOffsets as _0xfa281d,getParagraphFollowingBlockOffset as _0x2be263,getSingleDataStreamChange as _0x1817eb,intersectsOperationalIntervals as _0x2f8ce5,merge as _0x559340,shiftExclusiveRangeOnDelete as _0x1c7981,shiftExclusiveRangeOnInsert as _0x2dea21,shiftInclusiveRangeOnDelete as _0x3a6def,shiftInclusiveRangeOnInsert as _0x5bff0d}from'@univerjs/core';import{DocSelectionManagerService as _0x2ed20d,RichTextEditingMutation as _0xc563fa,UniverDocsPlugin as _0x3f1e99,getContentInsertRange as _0x517640,isHeaderFooterSelection as _0xaf3991}from'@univerjs/docs';import{Subject as _0x3b77df}from'rxjs';import{UniverLicensePlugin as _0x4c3c74}from'@univerjs-pro/license';const ye={'language':_0x1edc1f(0x252),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x307f11){return{...ye,..._0x307f11};}function x(_0x28cbb9){const _0x1c8662=_0x1edc1f;var _0x4f48cb;let _0xb2010d=(_0x4f48cb=_0x28cbb9==null?void 0x0:_0x28cbb9[_0x1c8662(0x1ec)])==null?{}:_0x4f48cb;return{'codes':Object[_0x1c8662(0x1f6)](Object[_0x1c8662(0x1c9)](_0xb2010d)['map'](([_0x4db315,_0x9f0254])=>[_0x4db315,b(_0x9f0254)]))};}function S(_0x38e080,_0x200d32,_0xf00307){const _0x25d111=_0x1edc1f;let _0x3bedf1=x(_0x38e080);return _0x3bedf1['codes'][_0x200d32]=b({..._0x3bedf1[_0x25d111(0x1ec)][_0x200d32],..._0xf00307}),_0x3bedf1;}function C(_0x20a188,_0x56154a){let _0x51484b=x(_0x20a188);return delete _0x51484b['codes'][_0x56154a],_0x51484b;}const be=_0x1edc1f(0x253);var w=class extends Error{constructor(_0xfbf296='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0xfbf296);}};function xe(_0x7f1a3f){const _0x5b9022=_0x1edc1f;var _0x284857,_0x2ae09d,_0x4a5043;let _0x7621eb=T(_0x7f1a3f[_0x5b9022(0x244)]),_0x56992c=D(_0x7621eb),_0x1987bb=Ce(_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)]),_0x4ce653=_0x1987bb?(_0x284857=_0x56992c['blockRanges'])==null?void 0x0:_0x284857[_0x5b9022(0x212)](_0xdfaf5e=>{const _0x3ec8ce=_0x5b9022;let _0x1ed206=_0x4a1bb2(_0xdfaf5e);return _0x1ed206[_0x3ec8ce(0x232)]===_0x1987bb['startOffset']&&_0x1ed206[_0x3ec8ce(0x1e3)]===_0x1987bb[_0x3ec8ce(0x1e3)];}):void 0x0,{startOffset:_0x508923,endOffset:_0x577321}=_0x4ce653?_0x1987bb:ze(_0x56992c,_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)],_0x7f1a3f[_0x5b9022(0x21b)]);if(!_0x4ce653&&we(_0x56992c,_0x508923,_0x577321))throw new w(_0x5b9022(0x1c6));let _0x3e20fa=He(_0x56992c,_0x508923,_0x577321),_0x2741d6=(_0x2ae09d=_0x4ce653==null?void 0x0:_0x4ce653[_0x5b9022(0x1e4)])==null?_0x7f1a3f[_0x5b9022(0x1e4)]:_0x2ae09d,_0x7585d5=S(_0x7f1a3f[_0x5b9022(0x247)],_0x2741d6,{...ye,..._0x7f1a3f[_0x5b9022(0x1c1)]});if(_0x4ce653)return _0x4ce653[_0x5b9022(0x210)]=_0x37a99f['CODE'],Se(_0x56992c,_0x508923,_0x577321),Pe(_0x56992c,_0x508923,_0x577321,_0x3e20fa),A(_0x56992c,_0x4ce653),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};if(_0x508923===_0x577321){var _0x38de6b,_0x167dc0;let _0xf03c04=''+_0x43b06f[_0x5b9022(0x251)]+_0x43b06f[_0x5b9022(0x202)]+_0x43b06f[_0x5b9022(0x241)];j(_0x56992c,_0x508923,_0xf03c04,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x5cfb3a(new Set((_0x38de6b=_0x56992c[_0x5b9022(0x1c7)])==null?void 0x0:_0x38de6b[_0x5b9022(0x200)](_0xc6777d=>_0xc6777d[_0x5b9022(0x214)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x3e20fa)}],'blockRanges':[{'blockId':_0x2741d6,'blockType':_0x37a99f['CODE'],'startIndex':0x0,'endIndex':_0xf03c04[_0x5b9022(0x1d8)]-0x1}]});let _0x3d4e00=(_0x167dc0=_0x56992c['blockRanges'])==null?void 0x0:_0x167dc0[_0x5b9022(0x212)](_0x3fa19f=>_0x3fa19f['blockId']===_0x2741d6);return _0x3d4e00&&A(_0x56992c,_0x3d4e00),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}j(_0x56992c,_0x577321,_0x43b06f['BLOCK_END']),j(_0x56992c,_0x508923,_0x43b06f[_0x5b9022(0x251)]),Pe(_0x56992c,_0x508923,_0x577321+0x1,_0x3e20fa);let _0x3f12a0={'blockId':_0x2741d6,'blockType':_0x37a99f[_0x5b9022(0x1ca)],'startIndex':_0x508923,'endIndex':_0x577321+0x1};return _0x56992c[_0x5b9022(0x1ba)]=[...(_0x4a5043=_0x56992c[_0x5b9022(0x1ba)])==null?[]:_0x4a5043,_0x3f12a0][_0x5b9022(0x1ef)]((_0x1d97d5,_0x5b26b6)=>_0x1d97d5[_0x5b9022(0x209)]-_0x5b26b6[_0x5b9022(0x209)]),A(_0x56992c,_0x3f12a0),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}function Se(_0x4fbf36,_0x21ff01,_0x7e8aac){const _0x23846b=_0x1edc1f;var _0x129efd;((_0x129efd=_0x4fbf36[_0x23846b(0x1c7)])==null?[]:_0x129efd)[_0x23846b(0x1c3)](_0x50d51d=>_0x50d51d[_0x23846b(0x209)]>_0x21ff01&&_0x50d51d[_0x23846b(0x209)]<_0x7e8aac)['forEach'](_0x4f4536=>{const _0x47fbfe=_0x23846b;var _0x15221b;let _0x121bc1={...(_0x15221b=_0x4f4536['paragraphStyle'])==null?{}:_0x15221b};delete _0x121bc1[_0x47fbfe(0x250)],delete _0x121bc1[_0x47fbfe(0x1d5)],_0x4f4536[_0x47fbfe(0x1f3)]=_0x121bc1;});}function Ce(_0x27ef0e,_0x411f04){const _0x3fc7ed=_0x1edc1f;return _0x27ef0e==null||_0x411f04==null||_0x27ef0e===_0x411f04?null:{'startOffset':Math[_0x3fc7ed(0x21d)](_0x27ef0e,_0x411f04),'endOffset':Math['max'](_0x27ef0e,_0x411f04)};}function we(_0x306450,_0x260541,_0x3dfe98){const _0xfe562f=_0x1edc1f;var _0x1475f7;return((_0x1475f7=_0x306450[_0xfe562f(0x1ba)])==null?[]:_0x1475f7)[_0xfe562f(0x22d)](_0xe29a2f=>{let _0x23a889=_0x4a1bb2(_0xe29a2f);return _0x260541===_0x3dfe98?_0x52963d(_0x23a889,_0x260541):_0x2f8ce5(_0x23a889,{'startOffset':_0x260541,'endOffset':_0x3dfe98});});}function Te(_0x3025ad){const _0x245eb3=_0x1edc1f;return{'nextDocumentData':T(_0x3025ad[_0x245eb3(0x244)]),'nextMetadata':S(_0x3025ad['metadata'],_0x3025ad[_0x245eb3(0x1e4)],_0x3025ad['config']),'cursorOffset':0x0};}function Ee(_0x797abf){const _0x59be64=_0x1edc1f;let _0x1fcc1a=T(_0x797abf[_0x59be64(0x244)]),_0x2bc488=D(_0x1fcc1a),_0x199f43=Ae(_0x2bc488,_0x797abf[_0x59be64(0x1e4)]);if(!_0x199f43)return null;let _0x1c0045=Le(_0x2bc488,_0x199f43);return{'nextDocumentData':_0x1fcc1a,'nextMetadata':C(_0x797abf[_0x59be64(0x247)],_0x797abf[_0x59be64(0x1e4)]),'cursorOffset':_0x1c0045};}function De(_0x4a339d){const _0x3b9e48=_0x1edc1f;var _0x42a2dd;let _0x3596c1=T(_0x4a339d['documentData']),_0x48dbbc=D(_0x3596c1),_0x3479a6=Ae(_0x48dbbc,_0x4a339d[_0x3b9e48(0x1e4)]);if(!_0x3479a6)return null;let _0x237fea=_0x4a1bb2(_0x3479a6);return M(_0x48dbbc,_0x237fea[_0x3b9e48(0x232)],_0x237fea['endOffset']),_0x48dbbc[_0x3b9e48(0x1ba)]=(_0x42a2dd=_0x48dbbc[_0x3b9e48(0x1ba)])==null?void 0x0:_0x42a2dd[_0x3b9e48(0x1c3)](_0x1472a3=>_0x1472a3['blockId']!==_0x4a339d[_0x3b9e48(0x1e4)]),{'nextDocumentData':_0x3596c1,'nextMetadata':C(_0x4a339d[_0x3b9e48(0x247)],_0x4a339d['blockId']),'cursorOffset':_0x3479a6[_0x3b9e48(0x209)]};}function Oe(_0x1a9080){const _0x1d5a9c=_0x1edc1f;let _0x4527a6=T(_0x1a9080[_0x1d5a9c(0x244)]),_0x492847=D(_0x4527a6),_0xc17f9d=Me(_0x492847,_0x1a9080[_0x1d5a9c(0x23f)]);return _0xc17f9d&&ke(_0x4527a6,_0x492847,_0xc17f9d,_0x1a9080[_0x1d5a9c(0x23f)],_0x1a9080[_0x1d5a9c(0x1d4)])||null;}function ke(_0x2d2570,_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9){const _0x3a120f=_0x1edc1f;let _0x40d752=Je(_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9);if(!_0x40d752)return null;let _0x4bf4fe=_0x40d752[_0x3a120f(0x1e7)]-0x1;return M(_0x52abab,_0x40d752[_0x3a120f(0x20a)][_0x3a120f(0x209)],_0x40d752[_0x3a120f(0x20a)]['startIndex']+0x1),{'nextDocumentData':_0x2d2570,'cursorOffset':_0x4bf4fe};}function Ae(_0x489c95,_0x560fcd){const _0x3272a9=_0x1edc1f;var _0xb9996f;return _0x489c95==null||(_0xb9996f=_0x489c95[_0x3272a9(0x1ba)])==null?void 0x0:_0xb9996f[_0x3272a9(0x212)](_0xdc7ab5=>_0xdc7ab5['blockType']===_0x37a99f['CODE']&&_0xdc7ab5[_0x3272a9(0x1e4)]===_0x560fcd);}function je(_0x645ce5){const _0xaed9d0=_0x1edc1f;var _0x279075;let _0x304ce2=_0x645ce5[_0xaed9d0(0x244)][_0xaed9d0(0x1bf)];if(!_0x304ce2)return!0x1;let _0x60761b=_0x645ce5['direction']===_0xaed9d0(0x1b6)?_0x645ce5[_0xaed9d0(0x23f)]-0x1:_0x645ce5[_0xaed9d0(0x23f)],_0x14a22e=_0x645ce5[_0xaed9d0(0x1d9)]===_0xaed9d0(0x1fc)?_0x645ce5[_0xaed9d0(0x23f)]+0x1:_0x60761b;return((_0x279075=_0x304ce2[_0xaed9d0(0x1ba)])==null?[]:_0x279075)[_0xaed9d0(0x22d)](_0x3f72c6=>_0x3f72c6[_0xaed9d0(0x210)]===_0x37a99f[_0xaed9d0(0x1ca)]?_0x60761b===_0x3f72c6[_0xaed9d0(0x209)]||_0x60761b===_0x3f72c6['endIndex']||_0x14a22e===_0x3f72c6[_0xaed9d0(0x209)]||_0x14a22e===_0x3f72c6[_0xaed9d0(0x1c8)]:!0x1);}function Me(_0x28ca91,_0x2be5f1){var _0x187905;return(_0x187905=_0x28ca91['blockRanges'])==null?void 0x0:_0x187905['find'](_0x106f17=>{const _0x3f0a95=_0x23a6;let _0x441a14=k(_0x106f17);return _0x106f17[_0x3f0a95(0x210)]===_0x37a99f[_0x3f0a95(0x1ca)]&&_0x106f17[_0x3f0a95(0x209)]<=_0x2be5f1&&_0x2be5f1<=_0x441a14+0x2;});}function Ne(_0x5d3417,_0x240100,_0x1c7802=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5d3417&&_0x1c7802?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0xa421fb,_0x2b1935,_0x52fa33,_0x1a15a0=!0x1){const _0x22720c=_0x1edc1f;var _0x7abf3d;let _0x11249c=((_0x7abf3d=_0xa421fb[_0x22720c(0x1c7)])==null?[]:_0x7abf3d)[_0x22720c(0x1c3)](_0xae4d76=>_0xae4d76[_0x22720c(0x209)]>_0x2b1935&&_0xae4d76[_0x22720c(0x209)]<_0x52fa33);_0x11249c[_0x22720c(0x258)]((_0x2833cc,_0x57ad5e)=>{const _0x32f090=_0x22720c;var _0xe8f4dc;_0x2833cc[_0x32f090(0x1f3)]={...(_0xe8f4dc=_0x2833cc[_0x32f090(0x1f3)])==null?{}:_0xe8f4dc,...Ne(_0x57ad5e===0x0,_0x57ad5e===_0x11249c['length']-0x1,_0x1a15a0)};});}function Fe(_0x5ec983){const _0x177b4d=_0x1edc1f;var _0x53e81e,_0x372e46;let _0x4e3dab={..._0x5ec983==null?{}:_0x5ec983};return delete _0x4e3dab[_0x177b4d(0x1cb)],delete _0x4e3dab[_0x177b4d(0x1d2)],delete _0x4e3dab['spaceAbove'],delete _0x4e3dab[_0x177b4d(0x1d5)],((_0x53e81e=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x53e81e['ff'])===be&&((_0x372e46=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x372e46['fs'])===0xc&&delete _0x4e3dab[_0x177b4d(0x1bd)],_0x4e3dab;}function Ie(_0x2ba1fe,_0x4eb7c3){const _0x3ebb31=_0x1edc1f;var _0x1f5fe3;let _0x22b3e9=k(_0x4eb7c3);return((_0x1f5fe3=_0x2ba1fe[_0x3ebb31(0x1c7)])==null?[]:_0x1f5fe3)['filter'](_0x5762eb=>_0x5762eb['startIndex']>_0x4eb7c3[_0x3ebb31(0x209)]&&_0x5762eb[_0x3ebb31(0x209)]<_0x22b3e9);}function Le(_0x41c8bc,_0x2196a2){const _0x2dbf3c=_0x1edc1f;var _0x43cc62;let _0x73b7ab=k(_0x2196a2);return Ie(_0x41c8bc,_0x2196a2)[_0x2dbf3c(0x258)](_0x26a0c1=>{const _0x4f6127=_0x2dbf3c;_0x26a0c1[_0x4f6127(0x1f3)]=Fe(_0x26a0c1[_0x4f6127(0x1f3)]);}),M(_0x41c8bc,_0x73b7ab,_0x73b7ab+0x1),M(_0x41c8bc,_0x2196a2[_0x2dbf3c(0x209)],_0x2196a2[_0x2dbf3c(0x209)]+0x1),_0x41c8bc['blockRanges']=(_0x43cc62=_0x41c8bc['blockRanges'])==null?void 0x0:_0x43cc62['filter'](_0x46b16e=>_0x46b16e[_0x2dbf3c(0x1e4)]!==_0x2196a2['blockId']),_0x2196a2[_0x2dbf3c(0x209)];}function T(_0x4e21ea){const _0x21f041=_0x1edc1f;return{..._0x4e21ea,'body':_0x4e21ea['body']?Re(_0x4e21ea[_0x21f041(0x1bf)]):_0x4e21ea[_0x21f041(0x1bf)]};}function Re(_0x474c38){const _0x2f6a46=_0x1edc1f;var _0x2f7a38,_0xa190d0,_0x5a0484,_0x16f43f,_0x521dc4,_0x2e53b0,_0x33fcba,_0xfadd5b,_0x443b8c;return{..._0x474c38,'paragraphs':(_0x2f7a38=_0x474c38['paragraphs'])==null?void 0x0:_0x2f7a38[_0x2f6a46(0x200)](_0xfbfec4=>({..._0xfbfec4,'bullet':E(_0xfbfec4[_0x2f6a46(0x22c)]),'paragraphStyle':E(_0xfbfec4['paragraphStyle'])})),'sectionBreaks':(_0xa190d0=_0x474c38[_0x2f6a46(0x1f2)])==null?void 0x0:_0xa190d0[_0x2f6a46(0x200)](_0x547762=>({..._0x547762})),'textRuns':(_0x5a0484=_0x474c38[_0x2f6a46(0x235)])==null?void 0x0:_0x5a0484['map'](_0x21c40b=>({..._0x21c40b})),'tables':(_0x16f43f=_0x474c38[_0x2f6a46(0x1b7)])==null?void 0x0:_0x16f43f[_0x2f6a46(0x200)](_0x1ddc7d=>({..._0x1ddc7d})),'columnGroups':(_0x521dc4=_0x474c38[_0x2f6a46(0x24c)])==null?void 0x0:_0x521dc4['map'](_0x1ca51e=>{const _0x3ba0e2=_0x2f6a46;var _0x4ee516;return{..._0x1ca51e,'columns':(_0x4ee516=_0x1ca51e[_0x3ba0e2(0x22e)])==null?void 0x0:_0x4ee516['map'](_0x3a047a=>E(_0x3a047a))};}),'blockRanges':(_0x2e53b0=_0x474c38[_0x2f6a46(0x1ba)])==null?void 0x0:_0x2e53b0[_0x2f6a46(0x200)](_0xe60677=>({..._0xe60677})),'customRanges':(_0x33fcba=_0x474c38['customRanges'])==null?void 0x0:_0x33fcba[_0x2f6a46(0x200)](_0x49d08f=>({..._0x49d08f})),'customDecorations':(_0xfadd5b=_0x474c38[_0x2f6a46(0x24f)])==null?void 0x0:_0xfadd5b['map'](_0x5ad929=>({..._0x5ad929})),'customBlocks':(_0x443b8c=_0x474c38[_0x2f6a46(0x1c4)])==null?void 0x0:_0x443b8c['map'](_0x256944=>({..._0x256944}))};}function E(_0x594720){const _0x2bd9ac=_0x1edc1f;return Array[_0x2bd9ac(0x215)](_0x594720)?_0x594720[_0x2bd9ac(0x200)](_0x51cb5c=>E(_0x51cb5c)):!_0x594720||typeof _0x594720!=_0x2bd9ac(0x1d0)?_0x594720:Object[_0x2bd9ac(0x1f6)](Object[_0x2bd9ac(0x1c9)](_0x594720)['map'](([_0x1e7ee8,_0x2f217d])=>[_0x1e7ee8,E(_0x2f217d)]));}function D(_0x23da4c){const _0x33d802=_0x1edc1f;if(!_0x23da4c[_0x33d802(0x1bf)])throw Error(_0x33d802(0x1dc));return _0x23da4c[_0x33d802(0x1bf)];}function ze(_0x1e2bce,_0x3295fa,_0x5c7f26,_0x4a0e7f='convert-paragraph'){const _0x301df6=_0x1edc1f;if(_0x3295fa==null||_0x5c7f26==null){let _0x2b733a=Ve(_0x1e2bce);return{'startOffset':_0x2b733a,'endOffset':_0x2b733a};}let _0x4d1e9a=Math[_0x301df6(0x21d)](_0x3295fa,_0x5c7f26),_0x179487=Math['max'](_0x3295fa,_0x5c7f26),_0x27816b=Ke(_0x1e2bce,_0x4d1e9a,_0x179487);return _0x4d1e9a===_0x179487?_0x4a0e7f===_0x301df6(0x23b)?{'startOffset':_0x4d1e9a,'endOffset':_0x179487}:Be(_0x1e2bce,_0x4d1e9a,_0x27816b):Ue(_0x1e2bce,_0x4d1e9a,_0x179487,_0x27816b);}function Be(_0x313d01,_0x4ab787,_0x1fd7e8){const _0x1b5f80=_0x1edc1f;let _0x14071c=We(_0x313d01,_0x4ab787);if(_0x14071c){let _0x1c5a35=O(_0x313d01,_0x14071c,_0x1fd7e8);if(_0x1c5a35<_0x14071c['startIndex'])return{'startOffset':_0x1c5a35,'endOffset':_0x1fd7e8?Math[_0x1b5f80(0x21d)](_0x14071c['startIndex']+0x1,_0x1fd7e8['endOffset']):_0x14071c[_0x1b5f80(0x209)]+0x1};}let _0x5e3b24=_0x4ab787===0x0&&_0x313d01[_0x1b5f80(0x213)][0x0]===_0x43b06f[_0x1b5f80(0x202)]?0x1:_0x4ab787;return{'startOffset':_0x5e3b24,'endOffset':_0x5e3b24};}function Ve(_0x4bd124){const _0x30a261=_0x1edc1f;return _0x4bd124[_0x30a261(0x213)]['endsWith'](_0x43b06f[_0x30a261(0x221)])?Math['max'](0x0,_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)]-0x1):_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)];}function He(_0x2772cd,_0x55222c,_0x3fa04a){const _0x57f7cd=_0x1edc1f;var _0x25893e;let _0x58d03f=Math['min'](_0x55222c,_0x3fa04a),_0x1e2a6f=Math[_0x57f7cd(0x255)](_0x55222c,_0x3fa04a);return!!((_0x25893e=_0x2772cd[_0x57f7cd(0x1b7)])!=null&&_0x25893e['some'](_0x1c9ab3=>_0x58d03f>_0x1c9ab3['startIndex']&&_0x58d03f<_0x1c9ab3['endIndex']||_0x1e2a6f>_0x1c9ab3['startIndex']&&_0x1e2a6f<_0x1c9ab3['endIndex']||_0x58d03f<=_0x1c9ab3[_0x57f7cd(0x209)]&&_0x1e2a6f>=_0x1c9ab3['endIndex']));}function Ue(_0x5caaa6,_0x37be9d,_0x4197d9,_0x3d98f7){const _0x222982=_0x1edc1f;var _0x5c03ad,_0x48d39a;let _0x2f18d3=[...(_0x5c03ad=_0x5caaa6[_0x222982(0x1c7)])==null?[]:_0x5c03ad]['sort']((_0x39e6c7,_0x58f275)=>_0x39e6c7['startIndex']-_0x58f275[_0x222982(0x209)]),_0x6d6f7c=_0xfa281d(_0x5caaa6),_0x1b0422=_0x2f18d3[_0x222982(0x212)](_0x511870=>O(_0x5caaa6,_0x511870,_0x3d98f7,_0x6d6f7c)<=_0x37be9d&&_0x37be9d<=_0x511870[_0x222982(0x209)]),_0x10e20f=(_0x48d39a=_0x2f18d3[_0x222982(0x212)](_0x1dae8f=>_0x1dae8f[_0x222982(0x209)]>=_0x4197d9-0x1))==null?_0x2f18d3[_0x2f18d3[_0x222982(0x1d8)]-0x1]:_0x48d39a;return{'startOffset':_0x1b0422?O(_0x5caaa6,_0x1b0422,_0x3d98f7,_0x6d6f7c):_0x37be9d,'endOffset':_0x10e20f?Ge(_0x10e20f,_0x3d98f7):_0x4197d9};}function We(_0x2cfd43,_0x30ae6b){const _0x555386=_0x1edc1f;var _0x574a76;let _0x407150=[...(_0x574a76=_0x2cfd43[_0x555386(0x1c7)])==null?[]:_0x574a76][_0x555386(0x1ef)]((_0x4ad069,_0x2d67a5)=>_0x4ad069[_0x555386(0x209)]-_0x2d67a5['startIndex']),_0x3072bf=_0xfa281d(_0x2cfd43);return _0x407150[_0x555386(0x212)](_0x34f090=>{const _0x1f3156=_0x555386;var _0x3954c2;return((_0x3954c2=_0x3072bf['get'](_0x34f090[_0x1f3156(0x209)]))==null?0x0:_0x3954c2)<=_0x30ae6b&&_0x30ae6b<=_0x34f090[_0x1f3156(0x209)];});}function O(_0x195e3c,_0x8b32e6,_0x29a97c,_0x43aa1f){const _0x4422f6=_0x1edc1f;var _0x29cb00;let _0x5f1912=(_0x29cb00=_0x43aa1f==null?void 0x0:_0x43aa1f[_0x4422f6(0x1c5)](_0x8b32e6[_0x4422f6(0x209)]))==null?_0x120216(_0x195e3c,_0x8b32e6):_0x29cb00;return _0x29a97c?Math['max'](_0x5f1912,_0x29a97c[_0x4422f6(0x232)]):_0x5f1912;}function _0x8e72(){const _0x39c2a7=['constructor','config','range','filter','customBlocks','get','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphs','endIndex','entries','CODE','indentEnd','_resourceManagerService','reduce','33414zhlrmf','delete','object','getUnit','indentStart','asObservable','paragraphStartIndex','spaceBelow','customRanges','clear','length','direction','syncExecuteCommand','docs-code.command.insert','Document\x20body\x20is\x20required','36cpAREC','32PQMKrg','prototype','getCurrentUnitOfType','3169592BrLEop','registerCommand','endOffset','blockId','125796jcPnRf','parse','endTokenOffset','dispose','_setResource','_resources','next','codes','624555AgKcGI','deserialize','sort','setConfig','getSnapshot','sectionBreaks','paragraphStyle','_initResource','_docsCodeModel','fromEntries','replaceDocRanges','docs-code.command.insert-below','getCodeConfig','removeUnit','nextMetadata','right','version','previousDocumentData','toPrimitive','map','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','insertOp','getParagraphsInRange','_configService','726450eooLjA','getUnitId','docs-code.command.cancel-empty-paragraph','startIndex','paragraph','8596379eAHdDC','insert','_change$','setCodeConfig','removeCode','blockType','set','find','dataStream','paragraphId','isArray','startTokenOffset','docs-code.command.remove','replaceOp','docs-code.command.update','slice','insertionMode','compose','min','symbol','insertLength','defineProperty','SECTION_BREAK','decorate','getTextRanges','_config','add','1.0.0-alpha.5','packageName','deleteLength','getInstance','pluginName','default','bullet','some','columns','TABLE_CELL_START','UNIVER_DOC','docs-code.command.consume-boundary-delete','startOffset','type','TABLE_CELL_END','textRuns','_injector','COMMAND','@univerjs-pro/docs-code','stringify','DOC_CODE_PLUGIN','insert-new','start','disposeWithMe','427rcytkD','cursorOffset','editOp','BLOCK_END','unitId','nextDocumentData','documentData','handler','function','metadata','retain','_commandService','keys','string','columnGroups','model','commandService','customDecorations','spaceAbove','BLOCK_START','javascript','monospace','102tsDXdL','max','18eXrUOc','push','forEach','left','tables','selectionManager','docs-code.config','blockRanges','getBody','1691340ekNFtK','textStyle','serialize','body'];_0x8e72=function(){return _0x39c2a7;};return _0x8e72();}function Ge(_0x293382,_0x4a7339){const _0x36c01d=_0x1edc1f;let _0x36086a=_0x293382['startIndex']+0x1;return _0x4a7339?Math[_0x36c01d(0x21d)](_0x36086a,_0x4a7339[_0x36c01d(0x1e3)]):_0x36086a;}function Ke(_0x51acc4,_0x4726ef,_0x122a9a){const _0x39e9be=_0x1edc1f;let _0x3451b8=qe(_0x51acc4,_0x4726ef),_0x282a9d=qe(_0x51acc4,_0x4726ef===_0x122a9a?_0x122a9a:Math[_0x39e9be(0x255)](_0x4726ef,_0x122a9a-0x1));if(!(!_0x3451b8&&!_0x282a9d)){if(!_0x3451b8||!_0x282a9d||_0x3451b8[_0x39e9be(0x216)]!==_0x282a9d[_0x39e9be(0x216)]||_0x3451b8[_0x39e9be(0x1e7)]!==_0x282a9d[_0x39e9be(0x1e7)])throw new w();return _0x3451b8;}}function qe(_0x327038,_0x244c8a){const _0x53ef0e=_0x1edc1f;let _0x1a9b4f=_0x327038[_0x53ef0e(0x213)],_0x44e4ca=-0x1;for(let _0x36c1b3=Math['min'](_0x244c8a,_0x1a9b4f['length']-0x1);_0x36c1b3>=0x0;_0x36c1b3--){let _0x565fd2=_0x1a9b4f[_0x36c1b3];if(_0x565fd2===_0x43b06f[_0x53ef0e(0x234)])return;if(_0x565fd2===_0x43b06f[_0x53ef0e(0x22f)]){_0x44e4ca=_0x36c1b3;break;}}if(_0x44e4ca<0x0)return;let _0x301ca3=_0x1a9b4f['indexOf'](_0x43b06f[_0x53ef0e(0x234)],_0x44e4ca+0x1);if(!(_0x301ca3<0x0||_0x244c8a<_0x44e4ca+0x1||_0x244c8a>_0x301ca3-0x1))return{'startOffset':_0x44e4ca+0x1,'endOffset':Math['max'](_0x44e4ca+0x1,_0x301ca3-0x1),'startTokenOffset':_0x44e4ca,'endTokenOffset':_0x301ca3};}function k(_0x1ceff5){const _0x3abe2e=_0x1edc1f;return _0x4a1bb2(_0x1ceff5)[_0x3abe2e(0x1e3)]-0x1;}function Je(_0x3cfc2b,_0x851298,_0x14102e,_0x44e5d1){const _0x591bfb=_0x1edc1f;var _0x3fc070;let _0x5dd03d=k(_0x851298),_0x334d6c=((_0x3fc070=_0x3cfc2b['paragraphs'])==null?[]:_0x3fc070)[_0x591bfb(0x212)](_0x1c9ad0=>_0x1c9ad0['startIndex']===_0x5dd03d+0x1);if(!_0x334d6c||_0x44e5d1!=null&&_0x334d6c[_0x591bfb(0x209)]!==_0x44e5d1||_0x14102e!=null&&(_0x14102e<_0x5dd03d||_0x14102e>_0x334d6c[_0x591bfb(0x209)]+0x1)||_0x3cfc2b[_0x591bfb(0x213)][_0x334d6c['startIndex']]!==_0x43b06f['PARAGRAPH'])return null;let _0x2edc6c=_0x120216(_0x3cfc2b,_0x334d6c),_0x386a2f=_0x3cfc2b[_0x591bfb(0x213)][_0x591bfb(0x21a)](_0x2edc6c,_0x334d6c[_0x591bfb(0x209)]);return Array['from'](_0x386a2f)['every'](_0x28c881=>_0x28c881===_0x43b06f['BLOCK_END'])?{'paragraph':_0x334d6c,'endTokenOffset':_0x5dd03d}:null;}function A(_0x8b786,_0x1277d4){const _0x482353=_0x1edc1f;var _0x521d0f;let _0x71585c=k(_0x1277d4),_0x5272ee=_0x8b786[_0x482353(0x213)][_0x71585c+0x1];_0x5272ee!==_0x43b06f[_0x482353(0x221)]&&_0x5272ee!==void 0x0||j(_0x8b786,_0x71585c+0x1,_0x43b06f[_0x482353(0x202)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5cfb3a(new Set((_0x521d0f=_0x8b786[_0x482353(0x1c7)])==null?void 0x0:_0x521d0f[_0x482353(0x200)](_0x1f1ab3=>_0x1f1ab3[_0x482353(0x214)])))}]});}function j(_0x4e0ad8,_0x41ce78,_0x376913,_0x5a3652={}){const _0x923f57=_0x1edc1f;var _0x3dfb23,_0x156807;if(_0x376913){if(_0x4e0ad8[_0x923f57(0x213)]=''+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](0x0,_0x41ce78)+_0x376913+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](_0x41ce78),Ye(_0x4e0ad8,_0x41ce78,_0x376913[_0x923f57(0x1d8)]),(_0x3dfb23=_0x5a3652[_0x923f57(0x1c7)])!=null&&_0x3dfb23['length']){var _0x560979;_0x4e0ad8['paragraphs']=[...(_0x560979=_0x4e0ad8['paragraphs'])==null?[]:_0x560979,..._0x5a3652[_0x923f57(0x1c7)][_0x923f57(0x200)](_0x1e1138=>({..._0x1e1138,'startIndex':_0x1e1138[_0x923f57(0x209)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x581a7f,_0x493f48)=>_0x581a7f['startIndex']-_0x493f48[_0x923f57(0x209)]);}if((_0x156807=_0x5a3652['blockRanges'])!=null&&_0x156807['length']){var _0x5eb810;_0x4e0ad8[_0x923f57(0x1ba)]=[...(_0x5eb810=_0x4e0ad8[_0x923f57(0x1ba)])==null?[]:_0x5eb810,..._0x5a3652[_0x923f57(0x1ba)][_0x923f57(0x200)](_0x23af5b=>({..._0x23af5b,'startIndex':_0x23af5b[_0x923f57(0x209)]+_0x41ce78,'endIndex':_0x23af5b[_0x923f57(0x1c8)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x25efdc,_0x1aa5bc)=>_0x25efdc[_0x923f57(0x209)]-_0x1aa5bc[_0x923f57(0x209)]);}}}function M(_0x2107f2,_0x5a9d66,_0x605d1b){const _0xa9c126=_0x1edc1f;let _0x5efc7d=_0x605d1b-_0x5a9d66;_0x2107f2[_0xa9c126(0x213)]=''+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](0x0,_0x5a9d66)+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](_0x605d1b),Xe(_0x2107f2,_0x5a9d66,_0x5efc7d);}function Ye(_0x27522b,_0x31bdb3,_0xe28e98){const _0xa52bbd=_0x1edc1f;_0x27522b[_0xa52bbd(0x1c7)]=N(_0x27522b[_0xa52bbd(0x1c7)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1f2)]=N(_0x27522b[_0xa52bbd(0x1f2)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1c4)]=N(_0x27522b[_0xa52bbd(0x1c4)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x235)]=Ze(_0x27522b[_0xa52bbd(0x235)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1b7)]=Qe(_0x27522b['tables'],_0x31bdb3,_0xe28e98),_0x27522b['columnGroups']=F(_0x27522b['columnGroups'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1d6)]=F(_0x27522b['customRanges'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x24f)]=F(_0x27522b['customDecorations'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1ba)]=F(_0x27522b[_0xa52bbd(0x1ba)],_0x31bdb3,_0xe28e98);}function Xe(_0x585b0f,_0x413ff8,_0x1662bf){const _0x32b9b2=_0x1edc1f;var _0x4a2d3a,_0x3af86f;_0x585b0f[_0x32b9b2(0x1c7)]=P(_0x585b0f[_0x32b9b2(0x1c7)],_0x413ff8,_0x1662bf),_0x585b0f['sectionBreaks']=P(_0x585b0f[_0x32b9b2(0x1f2)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1c4)]=P(_0x585b0f[_0x32b9b2(0x1c4)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x235)]=(_0x4a2d3a=$e((_0x3af86f=_0x585b0f[_0x32b9b2(0x235)])==null?void 0x0:_0x3af86f[_0x32b9b2(0x200)](_0x532b78=>({..._0x532b78,'startIndex':_0x532b78['st'],'endIndex':_0x532b78['ed']})),_0x413ff8,_0x1662bf))==null?void 0x0:_0x4a2d3a[_0x32b9b2(0x200)](_0x1304a0=>{let {startIndex:_0x4a4620,endIndex:_0x3eb96d,..._0x7b8602}=_0x1304a0;return{..._0x7b8602,'st':_0x4a4620,'ed':_0x3eb96d};}),_0x585b0f['tables']=$e(_0x585b0f[_0x32b9b2(0x1b7)],_0x413ff8,_0x1662bf),_0x585b0f['columnGroups']=I(_0x585b0f['columnGroups'],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1d6)]=I(_0x585b0f[_0x32b9b2(0x1d6)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x24f)]=I(_0x585b0f[_0x32b9b2(0x24f)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1ba)]=I(_0x585b0f[_0x32b9b2(0x1ba)],_0x413ff8,_0x1662bf);}function N(_0x173330,_0x576081,_0x398334){const _0x11ab3e=_0x1edc1f;return _0x173330==null?void 0x0:_0x173330[_0x11ab3e(0x200)](_0x2b2737=>_0x2b2737[_0x11ab3e(0x209)]>=_0x576081?{..._0x2b2737,'startIndex':_0x2b2737[_0x11ab3e(0x209)]+_0x398334}:_0x2b2737);}function P(_0x4362bb,_0x2d3740,_0x42bbb5){const _0x231117=_0x1edc1f;let _0x5e213c=_0x2d3740+_0x42bbb5;return _0x4362bb==null?void 0x0:_0x4362bb[_0x231117(0x200)](_0x44647f=>_0x44647f[_0x231117(0x209)]>=_0x2d3740&&_0x44647f[_0x231117(0x209)]<_0x5e213c?null:_0x44647f['startIndex']>=_0x5e213c?{..._0x44647f,'startIndex':_0x44647f[_0x231117(0x209)]-_0x42bbb5}:_0x44647f)[_0x231117(0x1c3)](_0x38c18d=>_0x38c18d!=null);}function Ze(_0x28329,_0x135f68,_0x2921a6){const _0x266ff6=_0x1edc1f;return _0x28329==null?void 0x0:_0x28329[_0x266ff6(0x200)](_0x5ad48=>_0x5ad48['st']>=_0x135f68?{..._0x5ad48,'st':_0x5ad48['st']+_0x2921a6,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48['ed']>_0x135f68?{..._0x5ad48,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48);}function F(_0x9f8b7c,_0x49427f,_0x3614a6){const _0x5e982f=_0x1edc1f;return _0x9f8b7c==null?void 0x0:_0x9f8b7c[_0x5e982f(0x200)](_0x204faf=>_0x5bff0d(_0x204faf,_0x49427f,_0x3614a6));}function Qe(_0x41a0fc,_0x17fe16,_0x5c4771){const _0x1e168b=_0x1edc1f;return _0x41a0fc==null?void 0x0:_0x41a0fc[_0x1e168b(0x200)](_0x52cb67=>_0x2dea21(_0x52cb67,_0x17fe16,_0x5c4771));}function I(_0x5b7bca,_0x4e2c5b,_0x305bce){const _0x5a5875=_0x1edc1f;return _0x5b7bca==null?void 0x0:_0x5b7bca[_0x5a5875(0x200)](_0x54a1d4=>_0x3a6def(_0x54a1d4,_0x4e2c5b,_0x305bce))[_0x5a5875(0x1c3)](_0x5a48fc=>_0x5a48fc!=null);}function $e(_0x580c67,_0x3e38ae,_0x35be3f){const _0x9aad91=_0x1edc1f;return _0x580c67==null?void 0x0:_0x580c67[_0x9aad91(0x200)](_0x2ad4ad=>_0x1c7981(_0x2ad4ad,_0x3e38ae,_0x35be3f))['filter'](_0x17dfb4=>_0x17dfb4!=null);}function L(_0x3b899a){'@babel/helpers - typeof';return L=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x299715){return typeof _0x299715;}:function(_0x213cdf){const _0x4280e8=_0x23a6;return _0x213cdf&&typeof Symbol==_0x4280e8(0x246)&&_0x213cdf[_0x4280e8(0x1c0)]===Symbol&&_0x213cdf!==Symbol[_0x4280e8(0x1df)]?_0x4280e8(0x21e):typeof _0x213cdf;},L(_0x3b899a);}function et(_0x6d9f6e,_0x591df4){const _0x159597=_0x1edc1f;if(L(_0x6d9f6e)!=_0x159597(0x1d0)||!_0x6d9f6e)return _0x6d9f6e;var _0xe02695=_0x6d9f6e[Symbol[_0x159597(0x1ff)]];if(_0xe02695!==void 0x0){var _0x51aced=_0xe02695['call'](_0x6d9f6e,_0x591df4||_0x159597(0x22b));if(L(_0x51aced)!=_0x159597(0x1d0))return _0x51aced;throw TypeError(_0x159597(0x201));}return(_0x591df4===_0x159597(0x24b)?String:Number)(_0x6d9f6e);}function tt(_0x5131ee){const _0x6db2e1=_0x1edc1f;var _0x2762ca=et(_0x5131ee,_0x6db2e1(0x24b));return L(_0x2762ca)==_0x6db2e1(0x21e)?_0x2762ca:_0x2762ca+'';}function R(_0x52061a,_0x301eb9,_0x3666f7){const _0x5a7a91=_0x1edc1f;return(_0x301eb9=tt(_0x301eb9))in _0x52061a?Object[_0x5a7a91(0x220)](_0x52061a,_0x301eb9,{'value':_0x3666f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52061a[_0x301eb9]=_0x3666f7,_0x52061a;}var z=class extends _0x11f1e7{constructor(..._0x4293ae){const _0xa9b073=_0x1edc1f;super(..._0x4293ae),R(this,_0xa9b073(0x1ea),new Map()),R(this,'_change$',new _0x3b77df()),R(this,'change$',this['_change$'][_0xa9b073(0x1d3)]());}[_0x1edc1f(0x1f9)](_0x137ef2,_0x573a48){const _0x6ba313=_0x1edc1f;return x(this[_0x6ba313(0x1ea)][_0x6ba313(0x1c5)](_0x137ef2))[_0x6ba313(0x1ec)][_0x573a48];}[_0x1edc1f(0x20e)](_0x59afdc,_0x48b802,_0x138a2a){const _0x47e1de=_0x1edc1f;this[_0x47e1de(0x1e9)](_0x59afdc,_0x48b802,S(this[_0x47e1de(0x1ea)][_0x47e1de(0x1c5)](_0x59afdc),_0x48b802,_0x138a2a));}[_0x1edc1f(0x20f)](_0x2b8a47,_0x17bdfd){const _0x52486f=_0x1edc1f;this[_0x52486f(0x1e9)](_0x2b8a47,_0x17bdfd,C(this['_resources']['get'](_0x2b8a47),_0x17bdfd));}['serialize'](_0x1127c7){const _0x36b5c4=_0x1edc1f;return x(this[_0x36b5c4(0x1ea)][_0x36b5c4(0x1c5)](_0x1127c7));}[_0x1edc1f(0x1ee)](_0x167424,_0x3c0f94){const _0x2805ee=_0x1edc1f;this[_0x2805ee(0x1ea)]['set'](_0x167424,x(_0x3c0f94)),this[_0x2805ee(0x20d)][_0x2805ee(0x1eb)]({'unitId':_0x167424});}[_0x1edc1f(0x1fa)](_0x11ab7f){const _0xa509e2=_0x1edc1f;this['_resources'][_0xa509e2(0x1cf)](_0x11ab7f),this[_0xa509e2(0x20d)][_0xa509e2(0x1eb)]({'unitId':_0x11ab7f});}[_0x1edc1f(0x1e8)](){const _0x687d96=_0x1edc1f;super['dispose'](),this[_0x687d96(0x1ea)][_0x687d96(0x1d7)](),this[_0x687d96(0x20d)]['complete']();}['_setResource'](_0x3222d2,_0x3d5508,_0x30019d){const _0x4fe003=_0x1edc1f;this[_0x4fe003(0x1ea)][_0x4fe003(0x211)](_0x3222d2,_0x30019d),this[_0x4fe003(0x20d)]['next']({'unitId':_0x3222d2,'blockId':_0x3d5508});}};const nt={'id':_0x1edc1f(0x1f8),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':_0x1299d4=>{const _0x6ca46c=_0x1edc1f;var _0x1cbe0f;if(_0xaf3991(G(_0x1299d4)))return!0x1;let _0x5de034=_0x517640(_0x1299d4);if(_0x5de034)return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)[_0x6ca46c(0x1da)](B['id'],{'startOffset':_0x5de034['startOffset'],'endOffset':_0x5de034[_0x6ca46c(0x1e3)],'insertionMode':_0x6ca46c(0x23b),'unitId':_0x5de034['unitId']});let _0x5b8e57=lt(_0x1299d4);if(!_0x5b8e57)return!0x1;let _0xd7e1ed=(_0x1cbe0f=_0x1299d4[_0x6ca46c(0x1c5)](_0x45d141)[_0x6ca46c(0x1e0)](_0x41a83a[_0x6ca46c(0x230)]))==null?void 0x0:_0x1cbe0f[_0x6ca46c(0x1bb)](),_0x4dc5a3=_0xd7e1ed?_0x2be263(_0xd7e1ed,_0x5b8e57):_0x5b8e57[_0x6ca46c(0x209)]+0x1;return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)['syncExecuteCommand'](B['id'],{'startOffset':_0x4dc5a3,'endOffset':_0x4dc5a3});}},rt={'id':_0x1edc1f(0x231),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':()=>!0x0},B={'id':_0x1edc1f(0x1db),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x51d502,_0x5cbfc6)=>{const _0x2c49b1=_0x1edc1f;var _0x314c02;let _0x1c88e1=W(_0x51d502,_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x242)]);if(!_0x1c88e1)return!0x1;let _0x50f317=G(_0x51d502);if(_0xaf3991(_0x50f317))return!0x1;let _0x11a8b9=_0x1c88e1['model'][_0x2c49b1(0x1be)](_0x1c88e1['unitId']),_0x1f840f=ot(_0x5cbfc6,_0x50f317),_0x58d62b=st(_0x1c88e1['previousDocumentData'],_0x1f840f);if(_0x58d62b){if(_0x58d62b[_0x2c49b1(0x210)]!==_0x37a99f[_0x2c49b1(0x1ca)])return!0x1;let _0x45126f=Ee({'blockId':_0x58d62b[_0x2c49b1(0x1e4)],'documentData':_0x1c88e1[_0x2c49b1(0x1fe)],'metadata':_0x11a8b9});if(!_0x45126f)return!0x1;let _0x337949=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1[_0x2c49b1(0x1b8)],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x45126f[_0x2c49b1(0x243)],B['id'],_0x45126f['cursorOffset']);return _0x337949&&_0x45126f[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x45126f['nextMetadata']),_0x337949;}let _0x52408c=(_0x314c02=_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1e4)])==null?_0x35a556(0x6):_0x314c02,_0x22d24b;try{_0x22d24b=xe({'blockId':_0x52408c,'config':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1c1)],'documentData':_0x1c88e1['previousDocumentData'],'endOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x1e3)],'insertionMode':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x21b)],'metadata':_0x11a8b9,'startOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x232)]});}catch(_0x1a8da2){if(_0x1a8da2 instanceof w)return!0x1;throw _0x1a8da2;}let _0x21e3eb=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1['selectionManager'],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x22d24b[_0x2c49b1(0x243)],B['id'],_0x22d24b['cursorOffset']);return _0x21e3eb&&_0x22d24b[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x22d24b[_0x2c49b1(0x1fb)]),_0x21e3eb;}},it={'id':_0x1edc1f(0x219),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2b4099,_0x62152c)=>{const _0x427aa2=_0x1edc1f;if(!_0x62152c)return!0x1;let _0x1c4820=W(_0x2b4099,_0x62152c[_0x427aa2(0x242)]);if(!_0x1c4820)return!0x1;let _0xd96c8=Te({'blockId':_0x62152c[_0x427aa2(0x1e4)],'config':_0x62152c[_0x427aa2(0x1c1)],'documentData':_0x1c4820[_0x427aa2(0x1fe)],'metadata':_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1be)](_0x1c4820[_0x427aa2(0x242)])});return _0xd96c8[_0x427aa2(0x1fb)]&&_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1ee)](_0x1c4820[_0x427aa2(0x242)],_0xd96c8[_0x427aa2(0x1fb)]),!0x0;}},at={'id':'docs-code.command.exit','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x456bcb,_0x29383d)=>V[_0x1edc1f(0x245)](_0x456bcb,_0x29383d)},V={'id':'docs-code.command.unwrap','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x133b58,_0x5a87dd)=>{const _0x476c71=_0x1edc1f;if(!_0x5a87dd)return!0x1;let _0x2c5dfe=W(_0x133b58,_0x5a87dd==null?void 0x0:_0x5a87dd[_0x476c71(0x242)]);if(!_0x2c5dfe)return!0x1;let _0x16d910=Ee({'blockId':_0x5a87dd[_0x476c71(0x1e4)],'documentData':_0x2c5dfe[_0x476c71(0x1fe)],'metadata':_0x2c5dfe[_0x476c71(0x24d)][_0x476c71(0x1be)](_0x2c5dfe[_0x476c71(0x242)])});if(!_0x16d910)return!0x1;let _0x5bd894=Y(_0x2c5dfe[_0x476c71(0x24e)],_0x2c5dfe[_0x476c71(0x1b8)],_0x2c5dfe[_0x476c71(0x242)],_0x2c5dfe[_0x476c71(0x1fe)],_0x16d910['nextDocumentData'],V['id'],_0x16d910['cursorOffset']);return _0x5bd894&&_0x16d910[_0x476c71(0x1fb)]&&_0x2c5dfe['model'][_0x476c71(0x1ee)](_0x2c5dfe[_0x476c71(0x242)],_0x16d910[_0x476c71(0x1fb)]),_0x5bd894;}},H={'id':_0x1edc1f(0x217),'type':_0x3aa002['COMMAND'],'handler':(_0x228bfb,_0x5b4858)=>{const _0x594854=_0x1edc1f;if(!_0x5b4858)return!0x1;let _0x365f56=W(_0x228bfb,_0x5b4858==null?void 0x0:_0x5b4858[_0x594854(0x242)]);if(!_0x365f56)return!0x1;let _0x116f05=De({'blockId':_0x5b4858['blockId'],'documentData':_0x365f56[_0x594854(0x1fe)],'metadata':_0x365f56[_0x594854(0x24d)][_0x594854(0x1be)](_0x365f56[_0x594854(0x242)])});if(!_0x116f05)return!0x1;let _0x4782bf=Y(_0x365f56[_0x594854(0x24e)],_0x365f56[_0x594854(0x1b8)],_0x365f56[_0x594854(0x242)],_0x365f56[_0x594854(0x1fe)],_0x116f05[_0x594854(0x243)],H['id'],_0x116f05[_0x594854(0x23f)]);return _0x4782bf&&_0x116f05[_0x594854(0x1fb)]&&_0x365f56['model']['deserialize'](_0x365f56['unitId'],_0x116f05[_0x594854(0x1fb)]),_0x4782bf;}},U={'id':_0x1edc1f(0x208),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2665c4,_0x492459)=>{const _0x1fb50d=_0x1edc1f;var _0x2358ee,_0x19c2dd;let _0x38ef90=W(_0x2665c4,_0x492459==null?void 0x0:_0x492459['unitId']);if(!_0x38ef90)return!0x1;let _0x4e4483=(_0x2358ee=_0x492459==null?void 0x0:_0x492459[_0x1fb50d(0x23f)])==null?(_0x19c2dd=G(_0x2665c4))==null?void 0x0:_0x19c2dd['startOffset']:_0x2358ee;if(_0x4e4483==null)return!0x1;let _0x1f1ebe=Oe({'cursorOffset':_0x4e4483,'documentData':_0x38ef90[_0x1fb50d(0x1fe)],'paragraphStartIndex':_0x492459==null?void 0x0:_0x492459['paragraphStartIndex']});return _0x1f1ebe?Y(_0x38ef90[_0x1fb50d(0x24e)],_0x38ef90[_0x1fb50d(0x1b8)],_0x38ef90[_0x1fb50d(0x242)],_0x38ef90['previousDocumentData'],_0x1f1ebe['nextDocumentData'],U['id'],_0x1f1ebe[_0x1fb50d(0x23f)]):!0x1;}};function W(_0x38bb69,_0x23551e){const _0x42c831=_0x1edc1f;let _0x7c4f2f=_0x38bb69[_0x42c831(0x1c5)](_0x45d141),_0x2c6831=_0x23551e?_0x7c4f2f[_0x42c831(0x1d1)](_0x23551e,_0x41a83a['UNIVER_DOC']):_0x7c4f2f[_0x42c831(0x1e0)](_0x41a83a[_0x42c831(0x230)]);return _0x2c6831?{'commandService':_0x38bb69[_0x42c831(0x1c5)](_0x1d61d6),'model':_0x38bb69[_0x42c831(0x1c5)](z),'previousDocumentData':_0x2c6831[_0x42c831(0x1f1)](),'selectionManager':_0x38bb69[_0x42c831(0x1c5)](_0x2ed20d),'unitId':_0x2c6831[_0x42c831(0x207)]()}:null;}function G(_0x3b88c5){const _0x5f526e=_0x1edc1f;var _0x59663d;return(_0x59663d=_0x3b88c5[_0x5f526e(0x1c5)](_0x2ed20d)[_0x5f526e(0x223)]())==null?void 0x0:_0x59663d[0x0];}function ot(_0x5434fd,_0x278b13){const _0x352e8a=_0x1edc1f;var _0x5ef020,_0xac05ce;let _0x134fcb=(_0x5ef020=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x232)])==null?_0x278b13==null?void 0x0:_0x278b13[_0x352e8a(0x232)]:_0x5ef020,_0xf21aba=(_0xac05ce=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x1e3)])==null?_0x278b13==null?void 0x0:_0x278b13['endOffset']:_0xac05ce;if(!(_0x134fcb==null||_0xf21aba==null))return{'endOffset':Math[_0x352e8a(0x255)](_0x134fcb,_0xf21aba),'startOffset':Math['min'](_0x134fcb,_0xf21aba)};}function st(_0x285f17,_0x425f11){const _0x1ccc35=_0x1edc1f;var _0xf9d1e9;if(!_0x425f11)return;let _0x42430f=ct(_0x425f11);return(_0xf9d1e9=_0x285f17[_0x1ccc35(0x1bf)])==null||(_0xf9d1e9=_0xf9d1e9[_0x1ccc35(0x1ba)])==null?void 0x0:_0xf9d1e9[_0x1ccc35(0x212)](_0x5a1c45=>{const _0x1622c0=_0x1ccc35;let _0x368919=_0x4a1bb2(_0x5a1c45);return _0x425f11[_0x1622c0(0x232)]===_0x425f11[_0x1622c0(0x1e3)]?_0x52963d(_0x368919,_0x42430f):_0xf103f(_0x368919,_0x42430f);});}function ct(_0x4469b9){const _0x1c95f9=_0x1edc1f;return _0x4469b9[_0x1c95f9(0x232)]===_0x4469b9['endOffset']?_0x4469b9[_0x1c95f9(0x232)]:_0x4469b9[_0x1c95f9(0x232)]+0x1;}function lt(_0x349823){const _0x49a036=_0x1edc1f;var _0x4132a8,_0x3ab5e5,_0x2a1833;let _0x169461=G(_0x349823);if(!_0x169461)return null;let _0x13c1c0=_0x349823['get'](_0x45d141)[_0x49a036(0x1e0)](_0x41a83a[_0x49a036(0x230)]),_0x3f5cc5=_0x13c1c0==null?void 0x0:_0x13c1c0['getBody']();return _0x3f5cc5?(_0x4132a8=_0xfcd91[_0x49a036(0x1c2)][_0x49a036(0x204)](_0x169461,(_0x3ab5e5=_0x3f5cc5['paragraphs'])==null?[]:_0x3ab5e5,(_0x2a1833=_0x3f5cc5['dataStream'])==null?'':_0x2a1833)[0x0])==null?null:_0x4132a8:null;}function ut(_0x4eedbd,_0x1617cd){const _0x58f9f3=_0x1edc1f;let _0x3aac93=_0x4eedbd[_0x58f9f3(0x1bf)],_0x1344ca=_0x1617cd[_0x58f9f3(0x1bf)],_0x7d55a5=_0x1817eb(_0x3aac93,_0x1344ca);return[_0x7d55a5&&_0x1344ca?dt(_0x1344ca,_0x7d55a5):null,_0x7d55a5?null:ft(_0x3aac93,_0x1344ca)][_0x58f9f3(0x1c3)](Boolean)[_0x58f9f3(0x1cd)]((_0x16d52a,_0x49e2fa)=>_0x3e4a71['compose'](_0x16d52a,_0x49e2fa),null);}function dt(_0x4433d9,_0x4f145c){const _0x233ddb=_0x1edc1f;let _0x2505dd=new _0x37143f();return _0x2505dd[_0x233ddb(0x248)](_0x4f145c[_0x233ddb(0x23c)]),_0x4f145c[_0x233ddb(0x21f)]>0x0&&_0x2505dd[_0x233ddb(0x20c)](_0x4f145c[_0x233ddb(0x21f)],_0x2fb9bb(_0x4433d9,_0x4f145c[_0x233ddb(0x23c)],_0x4f145c['start']+_0x4f145c[_0x233ddb(0x21f)],!0x1)),_0x4f145c[_0x233ddb(0x228)]>0x0&&_0x2505dd[_0x233ddb(0x1cf)](_0x4f145c[_0x233ddb(0x228)]),_0x3e4a71['getInstance']()[_0x233ddb(0x240)](_0x2505dd[_0x233ddb(0x1be)](),['body']);}function ft(_0x48fec7,_0x4c0831){const _0x4af238=_0x1edc1f;let _0x436df2=[],_0xb44f48=_0x48fec7?mt(_0x48fec7):void 0x0,_0x559897=_0x4c0831?mt(_0x4c0831):void 0x0;for(let _0xed924e of pt)K(_0x3e4a71[_0x4af238(0x229)](),['body',_0xed924e],_0xb44f48==null?void 0x0:_0xb44f48[_0xed924e],_0x559897==null?void 0x0:_0x559897[_0xed924e],_0x436df2);return _0x436df2['reduce']((_0x49ab30,_0x49244f)=>_0x3e4a71[_0x4af238(0x21c)](_0x49ab30,_0x49244f),null);}const pt=[_0x1edc1f(0x1c7),_0x1edc1f(0x1f2),_0x1edc1f(0x1b7),_0x1edc1f(0x24c),_0x1edc1f(0x1ba),_0x1edc1f(0x1c4),_0x1edc1f(0x1d6),_0x1edc1f(0x24f),_0x1edc1f(0x235)];function mt(_0x399380){return _0x399380;}function K(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e){const _0x52f1a0=_0x1edc1f;if(!J(_0x2b97b6,_0x18a0c8)){if(_0x2b97b6==null){_0x33f94e['push'](_0x2c2330[_0x52f1a0(0x203)](_0x87c84a,_0x18a0c8));return;}if(_0x18a0c8==null){_0x33f94e[_0x52f1a0(0x257)](_0x2c2330['removeOp'](_0x87c84a,_0x2b97b6));return;}if(Array[_0x52f1a0(0x215)](_0x2b97b6)&&Array['isArray'](_0x18a0c8)){ht(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e);return;}if(q(_0x2b97b6)&&q(_0x18a0c8)){new Set([...Object[_0x52f1a0(0x24a)](_0x2b97b6),...Object['keys'](_0x18a0c8)])[_0x52f1a0(0x258)](_0x1feff9=>{K(_0x2c2330,[..._0x87c84a,_0x1feff9],_0x2b97b6[_0x1feff9],_0x18a0c8[_0x1feff9],_0x33f94e);});return;}_0x33f94e[_0x52f1a0(0x257)](_0x2c2330[_0x52f1a0(0x218)](_0x87c84a,_0x2b97b6,_0x18a0c8));}}function ht(_0x38fa16,_0x33ccba,_0x2e174c,_0x1990d4,_0x3960df){const _0x24448a=_0x1edc1f;if(_0x2e174c[_0x24448a(0x1d8)]===_0x1990d4[_0x24448a(0x1d8)]){_0x2e174c[_0x24448a(0x258)]((_0x26c010,_0x4702c2)=>K(_0x38fa16,[..._0x33ccba,_0x4702c2],_0x26c010,_0x1990d4[_0x4702c2],_0x3960df));return;}let _0x498ee4=0x0;for(;_0x498ee4<_0x2e174c[_0x24448a(0x1d8)]&&_0x498ee4<_0x1990d4[_0x24448a(0x1d8)]&&J(_0x2e174c[_0x498ee4],_0x1990d4[_0x498ee4]);)_0x498ee4++;let _0x30a2a6=_0x2e174c[_0x24448a(0x1d8)]-0x1,_0x479fcc=_0x1990d4[_0x24448a(0x1d8)]-0x1;for(;_0x30a2a6>=_0x498ee4&&_0x479fcc>=_0x498ee4&&J(_0x2e174c[_0x30a2a6],_0x1990d4[_0x479fcc]);)_0x30a2a6--,_0x479fcc--;for(let _0x24c9eb=_0x30a2a6;_0x24c9eb>=_0x498ee4;_0x24c9eb--)_0x3960df[_0x24448a(0x257)](_0x38fa16['removeOp']([..._0x33ccba,_0x24c9eb],_0x2e174c[_0x24c9eb]));for(let _0x1beb4e=_0x498ee4;_0x1beb4e<=_0x479fcc;_0x1beb4e++)_0x3960df['push'](_0x38fa16[_0x24448a(0x203)]([..._0x33ccba,_0x1beb4e],_0x1990d4[_0x1beb4e]));}function q(_0x56dcc6){const _0x5310ad=_0x1edc1f;return typeof _0x56dcc6==_0x5310ad(0x1d0)&&!!_0x56dcc6&&!Array[_0x5310ad(0x215)](_0x56dcc6);}function J(_0x1e0222,_0x3f5ec5){const _0x595e24=_0x1edc1f;return JSON[_0x595e24(0x239)](_0x1e0222)===JSON[_0x595e24(0x239)](_0x3f5ec5);}function Y(_0x52af4b,_0x3c6e8a,_0x3aeeac,_0x4ae4dc,_0xea0621,_0x5c7f74,_0x2ba5d5){const _0x465c4c=_0x1edc1f;let _0x48908d=ut(_0x4ae4dc,_0xea0621);return _0x48908d?!!_0x52af4b[_0x465c4c(0x1da)](_0xc563fa['id'],{'unitId':_0x3aeeac,'actions':_0x48908d,'textRanges':[{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5c7f74}):(_0x3c6e8a[_0x465c4c(0x1f7)]([{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5}],{'unitId':_0x3aeeac,'subUnitId':_0x3aeeac},!0x1),!0x0);}const X=_0x1edc1f(0x23a);var gt=_0x1edc1f(0x238),_t=_0x1edc1f(0x226);const vt={};function Z(_0x12d672,_0x53d951){return function(_0x1286b1,_0xc98794){_0x53d951(_0x1286b1,_0xc98794,_0x12d672);};}function yt(_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442){const _0x56e66a=_0x1edc1f;var _0x351313=arguments[_0x56e66a(0x1d8)],_0x28c126=_0x351313<0x3?_0x3f585c:_0x1b8442===null?_0x1b8442=Object['getOwnPropertyDescriptor'](_0x3f585c,_0x69d9a3):_0x1b8442,_0x524676;if(typeof Reflect==_0x56e66a(0x1d0)&&typeof Reflect[_0x56e66a(0x222)]==_0x56e66a(0x246))_0x28c126=Reflect[_0x56e66a(0x222)](_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442);else{for(var _0x13ceb1=_0x5d656f[_0x56e66a(0x1d8)]-0x1;_0x13ceb1>=0x0;_0x13ceb1--)(_0x524676=_0x5d656f[_0x13ceb1])&&(_0x28c126=(_0x351313<0x3?_0x524676(_0x28c126):_0x351313>0x3?_0x524676(_0x3f585c,_0x69d9a3,_0x28c126):_0x524676(_0x3f585c,_0x69d9a3))||_0x28c126);}return _0x351313>0x3&&_0x28c126&&Object[_0x56e66a(0x220)](_0x3f585c,_0x69d9a3,_0x28c126),_0x28c126;}let Q=class extends _0x11f1e7{constructor(_0x38ac2b,_0x14d407){const _0x2f0bec=_0x1edc1f;super(),this[_0x2f0bec(0x1cc)]=_0x38ac2b,this[_0x2f0bec(0x1f5)]=_0x14d407,this[_0x2f0bec(0x1f4)]();}[_0x1edc1f(0x1f4)](){const _0x3222d1=_0x1edc1f;this[_0x3222d1(0x23d)](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x41a83a['UNIVER_DOC']],'toJson':_0x5e6d5d=>JSON[_0x3222d1(0x239)](this[_0x3222d1(0x1f5)][_0x3222d1(0x1be)](_0x5e6d5d)),'parseJson':_0x23f59e=>x(JSON[_0x3222d1(0x1e6)](_0x23f59e)),'onLoad':(_0x537f2c,_0x451d0b)=>this[_0x3222d1(0x1f5)][_0x3222d1(0x1ee)](_0x537f2c,_0x451d0b),'onUnLoad':_0xbdb392=>this['_docsCodeModel'][_0x3222d1(0x1fa)](_0xbdb392)}));}};Q=yt([Z(0x0,_0x50ae34),Z(0x1,_0x5c4b8b(z))],Q);let $=class extends _0x19b9cc{constructor(_0x3892b3=vt,_0x2e3095,_0x255e3e,_0x2b7c55){const _0x56b48e=_0x1edc1f;super(),this[_0x56b48e(0x224)]=_0x3892b3,this[_0x56b48e(0x236)]=_0x2e3095,this['_commandService']=_0x255e3e,this['_configService']=_0x2b7c55;let {..._0x27948e}=_0x559340({},vt,this[_0x56b48e(0x224)]);this[_0x56b48e(0x205)][_0x56b48e(0x1f0)](_0x56b48e(0x1b9),_0x27948e);}['onStarting'](){const _0x960035=_0x1edc1f;this[_0x960035(0x236)]['add']([z]),this[_0x960035(0x236)][_0x960035(0x225)]([Q]),this[_0x960035(0x236)][_0x960035(0x1c5)](z),this[_0x960035(0x236)]['get'](Q),[B,nt,it,V,H,at,U,rt][_0x960035(0x258)](_0x4247a0=>this[_0x960035(0x23d)](this[_0x960035(0x249)][_0x960035(0x1e2)](_0x4247a0)));}};R($,_0x1edc1f(0x22a),X),R($,_0x1edc1f(0x227),gt),R($,_0x1edc1f(0x1fd),_t),R($,_0x1edc1f(0x233),_0x41a83a['UNIVER_DOC']),$=yt([_0x2f1165(_0x4c3c74,_0x3f1e99),Z(0x1,_0x5c4b8b(_0x193e69)),Z(0x2,_0x1d61d6),Z(0x3,_0x4a9167)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0xc28667=_0x23c8;(function(_0x4ca686,_0x1e9929){var _0x2f19aa=_0x23c8,_0x4e9ac5=_0x4ca686();while(!![]){try{var _0x54a079=-parseInt(_0x2f19aa(0x1dc))/0x1*(-parseInt(_0x2f19aa(0x1b2))/0x2)+-parseInt(_0x2f19aa(0x1ed))/0x3*(parseInt(_0x2f19aa(0x1cf))/0x4)+-parseInt(_0x2f19aa(0x1e5))/0x5*(parseInt(_0x2f19aa(0x1af))/0x6)+parseInt(_0x2f19aa(0x1db))/0x7*(-parseInt(_0x2f19aa(0x1c6))/0x8)+-parseInt(_0x2f19aa(0x1d6))/0x9*(-parseInt(_0x2f19aa(0x1a8))/0xa)+parseInt(_0x2f19aa(0x1ae))/0xb*(-parseInt(_0x2f19aa(0x1e9))/0xc)+parseInt(_0x2f19aa(0x1d8))/0xd*(parseInt(_0x2f19aa(0x1e3))/0xe);if(_0x54a079===_0x1e9929)break;else _0x4e9ac5['push'](_0x4e9ac5['shift']());}catch(_0x4fc326){_0x4e9ac5['push'](_0x4e9ac5['shift']());}}}(_0x2806,0x7c4c2));import{DocsCodeInsertCommand as _0x5e25a0,DocsCodeModel as _0x575b7f,DocsCodeRemoveCommand as _0x569bef,DocsCodeUnwrapCommand as _0x4f5662,DocsCodeUpdateCommand as _0x515223,normalizeDocsCodeConfig as _0x5868a1}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x32d35e,DocumentBlockRangeType as _0x3c6527,ICommandService as _0x487a2e,Inject as _0x1caf36,Injector as _0x2f1f97,generateRandomId as _0x599f06}from'@univerjs/core';import{FDocument as _0xe614ba,isParagraphFacade as _0xc842b1}from'@univerjs/docs/facade';function _0x23c8(_0x3c4d37,_0x31500f){_0x3c4d37=_0x3c4d37-0x1a8;var _0x28066e=_0x2806();var _0x23c86b=_0x28066e[_0x3c4d37];return _0x23c86b;}function _0x2806(){var _0x18fbeb=['get','text','getCodeAt','replace','4taUvSe','string','getText','map','findCodeByText','blockId','from','160065mfmfcB','_blockId','9728498ChlGNx','_getBlockRanges','prototype','2140166ZuwZAw','1BHhhER','BLOCK_END','function','_document','object','default','getConfig','56HkUpPd','_getDocumentData','674315vdlZoz','_injector','BLOCK_START','_getBlockRange','267780WhoWyt','call','getCode','findCodes','1902828HYYtQu','symbol','dataStream','250hPZjpX','decorate','remove','defineProperty','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','341GOtXhs','36NaVjTI','blockRanges','syncExecuteCommand','247092EJoDGi','PARAGRAPH','config','iterator','_createFDocumentCode','some','startIndex','getCodeConfig','find','save','endIndex','includes','getId','CODE','createInstance','_unitId','getCodes','slice','filter','constructor','24mcbbZX','length','body','describe','extend'];_0x2806=function(){return _0x18fbeb;};return _0x2806();}function m(_0x377e16){'@babel/helpers - typeof';var _0x3ad09c=_0x23c8;return m=typeof Symbol=='function'&&typeof Symbol[_0x3ad09c(0x1b5)]==_0x3ad09c(0x1ee)?function(_0x3f69cb){return typeof _0x3f69cb;}:function(_0x71df4a){var _0x16ac0d=_0x3ad09c;return _0x71df4a&&typeof Symbol==_0x16ac0d(0x1de)&&_0x71df4a[_0x16ac0d(0x1c5)]===Symbol&&_0x71df4a!==Symbol[_0x16ac0d(0x1da)]?_0x16ac0d(0x1ee):typeof _0x71df4a;},m(_0x377e16);}function h(_0x1c8529,_0x3c7b85){var _0xd38a91=_0x23c8;if(m(_0x1c8529)!='object'||!_0x1c8529)return _0x1c8529;var _0x368c79=_0x1c8529[Symbol['toPrimitive']];if(_0x368c79!==void 0x0){var _0x15445e=_0x368c79[_0xd38a91(0x1ea)](_0x1c8529,_0x3c7b85||_0xd38a91(0x1e1));if(m(_0x15445e)!=_0xd38a91(0x1e0))return _0x15445e;throw TypeError(_0xd38a91(0x1ad));}return(_0x3c7b85===_0xd38a91(0x1d0)?String:Number)(_0x1c8529);}function g(_0x5786ed){var _0x5ec6dd=_0x23c8,_0x2e74e0=h(_0x5786ed,_0x5ec6dd(0x1d0));return m(_0x2e74e0)==_0x5ec6dd(0x1ee)?_0x2e74e0:_0x2e74e0+'';}function _(_0x172900,_0x5ce765,_0x3eebe2){var _0x5bfc80=_0x23c8;return(_0x5ce765=g(_0x5ce765))in _0x172900?Object[_0x5bfc80(0x1ab)](_0x172900,_0x5ce765,{'value':_0x3eebe2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x172900[_0x5ce765]=_0x3eebe2,_0x172900;}function v(_0x17c283,_0x8e44e6){return function(_0x2f5547,_0x5403db){_0x8e44e6(_0x2f5547,_0x5403db,_0x17c283);};}function y(_0x4ff95f,_0x282dc0,_0x1fff9e,_0x24aa9c){var _0x44a08e=_0x23c8,_0x304b86=arguments[_0x44a08e(0x1c7)],_0x359516=_0x304b86<0x3?_0x282dc0:_0x24aa9c===null?_0x24aa9c=Object['getOwnPropertyDescriptor'](_0x282dc0,_0x1fff9e):_0x24aa9c,_0x5404fc;if(typeof Reflect==_0x44a08e(0x1e0)&&typeof Reflect[_0x44a08e(0x1a9)]==_0x44a08e(0x1de))_0x359516=Reflect['decorate'](_0x4ff95f,_0x282dc0,_0x1fff9e,_0x24aa9c);else{for(var _0x4e3058=_0x4ff95f[_0x44a08e(0x1c7)]-0x1;_0x4e3058>=0x0;_0x4e3058--)(_0x5404fc=_0x4ff95f[_0x4e3058])&&(_0x359516=(_0x304b86<0x3?_0x5404fc(_0x359516):_0x304b86>0x3?_0x5404fc(_0x282dc0,_0x1fff9e,_0x359516):_0x5404fc(_0x282dc0,_0x1fff9e))||_0x359516);}return _0x304b86>0x3&&_0x359516&&Object['defineProperty'](_0x282dc0,_0x1fff9e,_0x359516),_0x359516;}let b=class{constructor(_0x3de3c5,_0x5ec139,_0x565399){var _0x3d4b93=_0x23c8;this[_0x3d4b93(0x1df)]=_0x3de3c5,this['_blockId']=_0x5ec139,this[_0x3d4b93(0x1e6)]=_0x565399,_(this,_0x3d4b93(0x1c1),void 0x0),this[_0x3d4b93(0x1c1)]=this[_0x3d4b93(0x1df)][_0x3d4b93(0x1be)]();}['getId'](){var _0x5cb8da=_0x23c8;return this[_0x5cb8da(0x1d7)];}['getRange'](){var _0x20dee9=_0x23c8;let _0x474361=this[_0x20dee9(0x1e8)]();return _0x474361?{'blockId':_0x474361[_0x20dee9(0x1d4)],'endIndex':_0x474361[_0x20dee9(0x1bc)],'startIndex':_0x474361[_0x20dee9(0x1b8)]}:null;}['getText'](){var _0xaf892d=_0x23c8,_0x4e5e20;let _0x6f661f=this[_0xaf892d(0x1e8)](),_0x418af5=(_0x4e5e20=this['_getDocumentData']()['body'])==null?void 0x0:_0x4e5e20[_0xaf892d(0x1ef)];return!_0x6f661f||!_0x418af5?'':x(_0x418af5[_0xaf892d(0x1c3)](_0x6f661f['startIndex']+0x1,_0x6f661f[_0xaf892d(0x1bc)]));}[_0xc28667(0x1c9)](){var _0x4bed6e=_0xc28667;let _0x3a2b79=this[_0x4bed6e(0x1ac)]();return _0x3a2b79?{..._0x3a2b79,'config':this['getConfig'](),'text':this[_0x4bed6e(0x1d1)](),'type':_0x3c6527[_0x4bed6e(0x1bf)]}:null;}[_0xc28667(0x1e2)](){var _0x5ea84b=_0xc28667;return _0x5868a1(this[_0x5ea84b(0x1e6)][_0x5ea84b(0x1cb)](_0x575b7f)[_0x5ea84b(0x1b9)](this[_0x5ea84b(0x1c1)],this[_0x5ea84b(0x1d7)]));}['updateConfig'](_0x1743f3){var _0x335a2d=_0xc28667;return this['_injector'][_0x335a2d(0x1cb)](_0x487a2e)[_0x335a2d(0x1b1)](_0x515223['id'],{'blockId':this['_blockId'],'config':_0x1743f3[_0x335a2d(0x1b4)],'unitId':this[_0x335a2d(0x1c1)]});}['unwrap'](){var _0x21dadc=_0xc28667;return this[_0x21dadc(0x1e6)][_0x21dadc(0x1cb)](_0x487a2e)[_0x21dadc(0x1b1)](_0x4f5662['id'],{'blockId':this[_0x21dadc(0x1d7)],'unitId':this[_0x21dadc(0x1c1)]});}[_0xc28667(0x1aa)](){var _0x5f1f5e=_0xc28667;return this['_injector'][_0x5f1f5e(0x1cb)](_0x487a2e)[_0x5f1f5e(0x1b1)](_0x569bef['id'],{'blockId':this[_0x5f1f5e(0x1d7)],'unitId':this[_0x5f1f5e(0x1c1)]});}[_0xc28667(0x1e8)](){var _0x290af7=_0xc28667,_0x2b496b;let _0x1ce03f=(_0x2b496b=this[_0x290af7(0x1e4)]()[_0x290af7(0x1c8)])==null||(_0x2b496b=_0x2b496b[_0x290af7(0x1b0)])==null?void 0x0:_0x2b496b[_0x290af7(0x1ba)](_0x28f228=>_0x28f228['blockId']===this['_blockId']&&_0x28f228['blockType']===_0x3c6527[_0x290af7(0x1bf)]);return _0x1ce03f==null?null:_0x1ce03f;}[_0xc28667(0x1e4)](){var _0x1bfef6=_0xc28667;return this[_0x1bfef6(0x1df)][_0x1bfef6(0x1bb)]();}};b=y([v(0x2,_0x1caf36(_0x2f1f97))],b);function x(_0x2b3474){var _0x235bf8=_0xc28667;return Array[_0x235bf8(0x1d5)](_0x2b3474)[_0x235bf8(0x1d2)](_0xce168c=>_0xce168c===_0x32d35e[_0x235bf8(0x1b3)]?'\x0a':_0xce168c)[_0x235bf8(0x1c4)](_0x3320c3=>_0x3320c3!==_0x32d35e[_0x235bf8(0x1e7)]&&_0x3320c3!==_0x32d35e[_0x235bf8(0x1dd)]&&_0x3320c3!==_0x32d35e['SECTION_BREAK'])['join']('')[_0x235bf8(0x1ce)](/\n$/,'');}var S=class extends _0xe614ba{[_0xc28667(0x1c2)](){var _0x3f252d=_0xc28667;return this[_0x3f252d(0x1d9)]()[_0x3f252d(0x1c4)](_0x97e83=>_0x97e83['blockType']===_0x3c6527[_0x3f252d(0x1bf)])['map'](_0x1258b1=>this[_0x3f252d(0x1b6)](_0x1258b1[_0x3f252d(0x1d4)]));}[_0xc28667(0x1eb)](_0x820bdd){var _0x27d6f1=_0xc28667;return this[_0x27d6f1(0x1d9)]()[_0x27d6f1(0x1b7)](_0x225eed=>_0x225eed['blockId']===_0x820bdd&&_0x225eed['blockType']===_0x3c6527[_0x27d6f1(0x1bf)])?this[_0x27d6f1(0x1b6)](_0x820bdd):null;}[_0xc28667(0x1cd)](_0x46979e){var _0x448b66=_0xc28667;let _0x58acc8=this[_0x448b66(0x1d9)]()['find'](_0x1cb4be=>_0x1cb4be['blockType']===_0x3c6527['CODE']&&_0x1cb4be[_0x448b66(0x1b8)]<=_0x46979e&&_0x46979e<=_0x1cb4be['endIndex']);return _0x58acc8?this['_createFDocumentCode'](_0x58acc8[_0x448b66(0x1d4)]):null;}[_0xc28667(0x1d3)](_0x4795a0){var _0x1fc468=_0xc28667,_0x5afb78;return(_0x5afb78=this[_0x1fc468(0x1ec)](_0x4795a0)[0x0])==null?null:_0x5afb78;}[_0xc28667(0x1ec)](_0x571a5a){var _0x509b97=_0xc28667;let _0x183125=typeof _0x571a5a=='string'?{'text':_0x571a5a}:_0x571a5a;return this[_0x509b97(0x1c2)]()[_0x509b97(0x1c4)](_0x118735=>!(_0x183125[_0x509b97(0x1d4)]&&_0x118735[_0x509b97(0x1be)]()!==_0x183125['blockId']||_0x183125[_0x509b97(0x1cc)]&&!_0x118735[_0x509b97(0x1d1)]()[_0x509b97(0x1bd)](_0x183125[_0x509b97(0x1cc)])));}['insertCode'](_0x4e9435={},_0x28c475={}){var _0x45b65d=_0xc28667,_0x4cc467;let _0x23f6e1=this[_0x45b65d(0x1e6)][_0x45b65d(0x1cb)](_0x487a2e),_0x10079b=_0xc842b1(_0x4e9435)?{..._0x28c475,..._0x4e9435[_0x45b65d(0x1ac)]()}:_0x4e9435,_0x5a3150=(_0x4cc467=_0x10079b[_0x45b65d(0x1d4)])==null?_0x599f06(0x6):_0x4cc467;return _0x23f6e1[_0x45b65d(0x1b1)](_0x5e25a0['id'],{..._0x10079b,'blockId':_0x5a3150,'unitId':this[_0x45b65d(0x1be)]()})?this[_0x45b65d(0x1eb)](_0x5a3150):null;}[_0xc28667(0x1d9)](){var _0x4d3684,_0x4c1935;return(_0x4d3684=(_0x4c1935=this['save']()['body'])==null?void 0x0:_0x4c1935['blockRanges'])==null?[]:_0x4d3684;}[_0xc28667(0x1b6)](_0x5f4cd4){var _0x39e7db=_0xc28667;return this[_0x39e7db(0x1e6)][_0x39e7db(0x1c0)](b,this,_0x5f4cd4);}};_0xe614ba[_0xc28667(0x1ca)](S);export{b as FDocumentCode};
1
+ var _0x34987a=_0x5064;(function(_0x482e08,_0xeccf4d){var _0x5b01dd=_0x5064,_0x3f840b=_0x482e08();while(!![]){try{var _0x17fd6e=parseInt(_0x5b01dd(0x11b))/0x1*(parseInt(_0x5b01dd(0x13d))/0x2)+parseInt(_0x5b01dd(0x14f))/0x3*(parseInt(_0x5b01dd(0x148))/0x4)+-parseInt(_0x5b01dd(0x11c))/0x5+parseInt(_0x5b01dd(0x13c))/0x6+-parseInt(_0x5b01dd(0x147))/0x7+-parseInt(_0x5b01dd(0x129))/0x8+parseInt(_0x5b01dd(0x11f))/0x9;if(_0x17fd6e===_0xeccf4d)break;else _0x3f840b['push'](_0x3f840b['shift']());}catch(_0x3710a3){_0x3f840b['push'](_0x3f840b['shift']());}}}(_0x2c3b,0x82b40));import{DocsCodeInsertCommand as _0x283188,DocsCodeModel as _0x5c7c81,DocsCodeRemoveCommand as _0x4c29ee,DocsCodeUnwrapCommand as _0x59180b,DocsCodeUpdateCommand as _0x1c568f,normalizeDocsCodeConfig as _0x3c561f}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x574512,DocumentBlockRangeType as _0x1f97f5,ICommandService as _0x343936,Inject as _0x31d0f4,Injector as _0xaab248,generateRandomId as _0x526346}from'@univerjs/core';import{FDocument as _0x3f5d42,isParagraphFacade as _0x3435f0}from'@univerjs/docs/facade';function m(_0x15288e){'@babel/helpers - typeof';var _0x205ea8=_0x5064;return m=typeof Symbol==_0x205ea8(0x13b)&&typeof Symbol[_0x205ea8(0x122)]==_0x205ea8(0x144)?function(_0x4557e8){return typeof _0x4557e8;}:function(_0x58d4cf){var _0x40a0e8=_0x205ea8;return _0x58d4cf&&typeof Symbol==_0x40a0e8(0x13b)&&_0x58d4cf[_0x40a0e8(0x13e)]===Symbol&&_0x58d4cf!==Symbol[_0x40a0e8(0x131)]?'symbol':typeof _0x58d4cf;},m(_0x15288e);}function _0x5064(_0x5435fe,_0x17d738){_0x5435fe=_0x5435fe-0x110;var _0x2c3b23=_0x2c3b();var _0x506425=_0x2c3b23[_0x5435fe];return _0x506425;}function h(_0x4e2eee,_0x4b81ff){var _0x12dbd8=_0x5064;if(m(_0x4e2eee)!=_0x12dbd8(0x12c)||!_0x4e2eee)return _0x4e2eee;var _0x302da1=_0x4e2eee[Symbol[_0x12dbd8(0x139)]];if(_0x302da1!==void 0x0){var _0x3d7c0c=_0x302da1['call'](_0x4e2eee,_0x4b81ff||'default');if(m(_0x3d7c0c)!=_0x12dbd8(0x12c))return _0x3d7c0c;throw TypeError(_0x12dbd8(0x110));}return(_0x4b81ff===_0x12dbd8(0x128)?String:Number)(_0x4e2eee);}function g(_0x1cc58b){var _0x221d6a=_0x5064,_0x120fe1=h(_0x1cc58b,'string');return m(_0x120fe1)==_0x221d6a(0x144)?_0x120fe1:_0x120fe1+'';}function _(_0x248988,_0x565112,_0x3c1de7){var _0x12abe9=_0x5064;return(_0x565112=g(_0x565112))in _0x248988?Object[_0x12abe9(0x14a)](_0x248988,_0x565112,{'value':_0x3c1de7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x248988[_0x565112]=_0x3c1de7,_0x248988;}function v(_0x14192,_0x47cd7e){return function(_0x421050,_0x413323){_0x47cd7e(_0x421050,_0x413323,_0x14192);};}function _0x2c3b(){var _0x1d36da=['object','_getBlockRanges','_getDocumentData','_getBlockRange','blockType','prototype','blockId','_blockId','getOwnPropertyDescriptor','config','_document','getId','startIndex','toPrimitive','getRange','function','3739824zyFQTb','2LUzGmC','constructor','includes','blockRanges','getText','extend','text','symbol','getCodeConfig','body','6624562GONNJz','12iisekw','_unitId','defineProperty','slice','replace','some','find','338307rcspHt','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endIndex','BLOCK_START','map','_createFDocumentCode','CODE','getCodes','save','PARAGRAPH','insertCode','from','255082cxHsRG','4797915IfTNTT','getConfig','get','15972012yRhFgr','decorate','SECTION_BREAK','iterator','BLOCK_END','join','syncExecuteCommand','getCodeAt','unwrap','string','4400416lZgflm','_injector','length'];_0x2c3b=function(){return _0x1d36da;};return _0x2c3b();}function y(_0x5f15c1,_0x262083,_0x1c4ba5,_0x317c46){var _0x738448=_0x5064,_0x4ecf10=arguments[_0x738448(0x12b)],_0x46f0cc=_0x4ecf10<0x3?_0x262083:_0x317c46===null?_0x317c46=Object[_0x738448(0x134)](_0x262083,_0x1c4ba5):_0x317c46,_0x4bfe73;if(typeof Reflect==_0x738448(0x12c)&&typeof Reflect[_0x738448(0x120)]==_0x738448(0x13b))_0x46f0cc=Reflect[_0x738448(0x120)](_0x5f15c1,_0x262083,_0x1c4ba5,_0x317c46);else{for(var _0x1ea30=_0x5f15c1[_0x738448(0x12b)]-0x1;_0x1ea30>=0x0;_0x1ea30--)(_0x4bfe73=_0x5f15c1[_0x1ea30])&&(_0x46f0cc=(_0x4ecf10<0x3?_0x4bfe73(_0x46f0cc):_0x4ecf10>0x3?_0x4bfe73(_0x262083,_0x1c4ba5,_0x46f0cc):_0x4bfe73(_0x262083,_0x1c4ba5))||_0x46f0cc);}return _0x4ecf10>0x3&&_0x46f0cc&&Object[_0x738448(0x14a)](_0x262083,_0x1c4ba5,_0x46f0cc),_0x46f0cc;}let b=class{constructor(_0x4f5526,_0x43aa99,_0x4e1c93){var _0x339b2b=_0x5064;this[_0x339b2b(0x136)]=_0x4f5526,this[_0x339b2b(0x133)]=_0x43aa99,this[_0x339b2b(0x12a)]=_0x4e1c93,_(this,_0x339b2b(0x149),void 0x0),this[_0x339b2b(0x149)]=this['_document'][_0x339b2b(0x137)]();}[_0x34987a(0x137)](){var _0x1093f9=_0x34987a;return this[_0x1093f9(0x133)];}['getRange'](){var _0x211038=_0x34987a;let _0xe6e042=this[_0x211038(0x12f)]();return _0xe6e042?{'blockId':_0xe6e042[_0x211038(0x132)],'endIndex':_0xe6e042['endIndex'],'startIndex':_0xe6e042['startIndex']}:null;}['getText'](){var _0xf8af7d=_0x34987a,_0x545981;let _0x56fcff=this[_0xf8af7d(0x12f)](),_0x463421=(_0x545981=this[_0xf8af7d(0x12e)]()[_0xf8af7d(0x146)])==null?void 0x0:_0x545981['dataStream'];return!_0x56fcff||!_0x463421?'':x(_0x463421[_0xf8af7d(0x14b)](_0x56fcff[_0xf8af7d(0x138)]+0x1,_0x56fcff[_0xf8af7d(0x111)]));}['describe'](){var _0xe7a4a2=_0x34987a;let _0x41cf18=this[_0xe7a4a2(0x13a)]();return _0x41cf18?{..._0x41cf18,'config':this[_0xe7a4a2(0x11d)](),'text':this[_0xe7a4a2(0x141)](),'type':_0x1f97f5[_0xe7a4a2(0x115)]}:null;}[_0x34987a(0x11d)](){var _0x2a7f49=_0x34987a;return _0x3c561f(this[_0x2a7f49(0x12a)][_0x2a7f49(0x11e)](_0x5c7c81)[_0x2a7f49(0x145)](this[_0x2a7f49(0x149)],this['_blockId']));}['updateConfig'](_0x22e24b){var _0x19e3b0=_0x34987a;return this['_injector'][_0x19e3b0(0x11e)](_0x343936)[_0x19e3b0(0x125)](_0x1c568f['id'],{'blockId':this['_blockId'],'config':_0x22e24b[_0x19e3b0(0x135)],'unitId':this[_0x19e3b0(0x149)]});}[_0x34987a(0x127)](){var _0x1435c5=_0x34987a;return this[_0x1435c5(0x12a)]['get'](_0x343936)[_0x1435c5(0x125)](_0x59180b['id'],{'blockId':this[_0x1435c5(0x133)],'unitId':this['_unitId']});}['remove'](){var _0x5d9eda=_0x34987a;return this[_0x5d9eda(0x12a)][_0x5d9eda(0x11e)](_0x343936)[_0x5d9eda(0x125)](_0x4c29ee['id'],{'blockId':this['_blockId'],'unitId':this[_0x5d9eda(0x149)]});}['_getBlockRange'](){var _0x307291=_0x34987a,_0x5937b9;let _0x41650d=(_0x5937b9=this[_0x307291(0x12e)]()[_0x307291(0x146)])==null||(_0x5937b9=_0x5937b9['blockRanges'])==null?void 0x0:_0x5937b9[_0x307291(0x14e)](_0x8c4dad=>_0x8c4dad[_0x307291(0x132)]===this[_0x307291(0x133)]&&_0x8c4dad[_0x307291(0x130)]===_0x1f97f5[_0x307291(0x115)]);return _0x41650d==null?null:_0x41650d;}['_getDocumentData'](){var _0x4c0ec0=_0x34987a;return this[_0x4c0ec0(0x136)][_0x4c0ec0(0x117)]();}};b=y([v(0x2,_0x31d0f4(_0xaab248))],b);function x(_0x15f76f){var _0x362a0a=_0x34987a;return Array[_0x362a0a(0x11a)](_0x15f76f)[_0x362a0a(0x113)](_0x146b78=>_0x146b78===_0x574512[_0x362a0a(0x118)]?'\x0a':_0x146b78)[_0x362a0a(0x150)](_0x3f3bc0=>_0x3f3bc0!==_0x574512[_0x362a0a(0x112)]&&_0x3f3bc0!==_0x574512[_0x362a0a(0x123)]&&_0x3f3bc0!==_0x574512[_0x362a0a(0x121)])[_0x362a0a(0x124)]('')[_0x362a0a(0x14c)](/\n$/,'');}var S=class extends _0x3f5d42{[_0x34987a(0x116)](){var _0x2c8e07=_0x34987a;return this[_0x2c8e07(0x12d)]()['filter'](_0x520d17=>_0x520d17[_0x2c8e07(0x130)]===_0x1f97f5[_0x2c8e07(0x115)])['map'](_0x17e483=>this[_0x2c8e07(0x114)](_0x17e483[_0x2c8e07(0x132)]));}['getCode'](_0x3d2592){var _0x51c729=_0x34987a;return this['_getBlockRanges']()[_0x51c729(0x14d)](_0x553f12=>_0x553f12['blockId']===_0x3d2592&&_0x553f12[_0x51c729(0x130)]===_0x1f97f5[_0x51c729(0x115)])?this[_0x51c729(0x114)](_0x3d2592):null;}[_0x34987a(0x126)](_0x2e0b32){var _0x318066=_0x34987a;let _0x260742=this[_0x318066(0x12d)]()[_0x318066(0x14e)](_0xa8c62d=>_0xa8c62d['blockType']===_0x1f97f5[_0x318066(0x115)]&&_0xa8c62d[_0x318066(0x138)]<=_0x2e0b32&&_0x2e0b32<=_0xa8c62d[_0x318066(0x111)]);return _0x260742?this[_0x318066(0x114)](_0x260742[_0x318066(0x132)]):null;}['findCodeByText'](_0x54328a){var _0xe8450b;return(_0xe8450b=this['findCodes'](_0x54328a)[0x0])==null?null:_0xe8450b;}['findCodes'](_0x363729){var _0x2c5fb3=_0x34987a;let _0x4dc16e=typeof _0x363729==_0x2c5fb3(0x128)?{'text':_0x363729}:_0x363729;return this['getCodes']()['filter'](_0x10f78a=>!(_0x4dc16e[_0x2c5fb3(0x132)]&&_0x10f78a[_0x2c5fb3(0x137)]()!==_0x4dc16e[_0x2c5fb3(0x132)]||_0x4dc16e[_0x2c5fb3(0x143)]&&!_0x10f78a['getText']()[_0x2c5fb3(0x13f)](_0x4dc16e[_0x2c5fb3(0x143)])));}[_0x34987a(0x119)](_0x56c919={},_0x307ee8={}){var _0x4a12bb=_0x34987a,_0x4d212f;let _0x32382d=this[_0x4a12bb(0x12a)][_0x4a12bb(0x11e)](_0x343936),_0xcd72a0=_0x3435f0(_0x56c919)?{..._0x307ee8,..._0x56c919[_0x4a12bb(0x13a)]()}:_0x56c919,_0x559766=(_0x4d212f=_0xcd72a0[_0x4a12bb(0x132)])==null?_0x526346(0x6):_0x4d212f;return _0x32382d[_0x4a12bb(0x125)](_0x283188['id'],{..._0xcd72a0,'blockId':_0x559766,'unitId':this[_0x4a12bb(0x137)]()})?this['getCode'](_0x559766):null;}[_0x34987a(0x12d)](){var _0x114c8e=_0x34987a,_0x3657fc,_0x1a262c;return(_0x3657fc=(_0x1a262c=this[_0x114c8e(0x117)]()['body'])==null?void 0x0:_0x1a262c[_0x114c8e(0x140)])==null?[]:_0x3657fc;}['_createFDocumentCode'](_0xe115b){var _0x265d6f=_0x34987a;return this[_0x265d6f(0x12a)]['createInstance'](b,this,_0xe115b);}};_0x3f5d42[_0x34987a(0x142)](S);export{b as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2efb50=_0x6f88;(function(_0x43514a,_0x20bf76){const _0x3ccc66=_0x6f88,_0x2c4d34=_0x43514a();while(!![]){try{const _0x1a8885=-parseInt(_0x3ccc66(0x143))/0x1+parseInt(_0x3ccc66(0x13c))/0x2*(-parseInt(_0x3ccc66(0x136))/0x3)+parseInt(_0x3ccc66(0x12c))/0x4*(-parseInt(_0x3ccc66(0xe2))/0x5)+parseInt(_0x3ccc66(0x151))/0x6*(-parseInt(_0x3ccc66(0x132))/0x7)+-parseInt(_0x3ccc66(0xc5))/0x8*(-parseInt(_0x3ccc66(0xfa))/0x9)+parseInt(_0x3ccc66(0x14c))/0xa+parseInt(_0x3ccc66(0xc6))/0xb;if(_0x1a8885===_0x20bf76)break;else _0x2c4d34['push'](_0x2c4d34['shift']());}catch(_0xa0174d){_0x2c4d34['push'](_0x2c4d34['shift']());}}}(_0x3984,0xda90a));import{BuildTextUtils as _0x364499,CommandType as _0x33ac8c,DataStreamTreeTokenType as _0x1314f9,DependentOn as _0x3b5fed,Disposable as _0x548644,DocumentBlockRangeType as _0x339a0c,ICommandService as _0x4c3a60,IConfigService as _0x1c4ada,IResourceManagerService as _0x5b26a5,IUniverInstanceService as _0x4b72a3,Inject as _0x8efd81,Injector as _0x232b49,JSONX as _0x1a6531,Plugin as _0x5a1391,TextX as _0x5e8a72,UniverInstanceType as _0x727df5,containsInteriorInsertionOffset as _0x10db6c,containsStreamIndex as _0x5234f8,createParagraphId as _0x2feb68,generateRandomId as _0x3275ad,getBlockRangeInterval as _0x2a1a77,getBodySliceForTextXAction as _0x139c29,getParagraphContentStartOffset as _0x44217a,getParagraphContentStartOffsets as _0x25a651,getParagraphFollowingBlockOffset as _0x588559,getSingleDataStreamChange as _0x54c010,intersectsOperationalIntervals as _0x307fa5,merge as _0x5d9446,shiftExclusiveRangeOnDelete as _0x1df613,shiftExclusiveRangeOnInsert as _0x1dda83,shiftInclusiveRangeOnDelete as _0x3f04e8,shiftInclusiveRangeOnInsert as _0x23043b}from'@univerjs/core';import{DocSelectionManagerService as _0x324bf4,RichTextEditingMutation as _0x50260d,UniverDocsPlugin as _0x33f3a6,getContentInsertRange as _0x4e708a,isHeaderFooterSelection as _0x3830d1}from'@univerjs/docs';import{Subject as _0xd242a9}from'rxjs';import{UniverLicensePlugin as _0x14ed34}from'@univerjs-pro/license';const ye={'language':_0x2efb50(0xad),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x3bd6e8){return{...ye,..._0x3bd6e8};}function x(_0x1dd508){const _0x4d91b1=_0x2efb50;var _0x1df205;let _0x2145c5=(_0x1df205=_0x1dd508==null?void 0x0:_0x1dd508[_0x4d91b1(0x138)])==null?{}:_0x1df205;return{'codes':Object['fromEntries'](Object[_0x4d91b1(0x111)](_0x2145c5)['map'](([_0x2bbea9,_0x156c46])=>[_0x2bbea9,b(_0x156c46)]))};}function S(_0x522ed8,_0x218fc4,_0x4328c0){const _0x51cf13=_0x2efb50;let _0x25977a=x(_0x522ed8);return _0x25977a[_0x51cf13(0x138)][_0x218fc4]=b({..._0x25977a[_0x51cf13(0x138)][_0x218fc4],..._0x4328c0}),_0x25977a;}function C(_0xbe33f9,_0x2b9618){const _0x12b9c2=_0x2efb50;let _0x5d89f5=x(_0xbe33f9);return delete _0x5d89f5[_0x12b9c2(0x138)][_0x2b9618],_0x5d89f5;}const be=_0x2efb50(0xfe);function _0x3984(){const _0x2601be=['Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','16056CnXMRL','symbol','map','_injector','Document\x20body\x20is\x20required','clear','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1386974iHAGSC','set','get','insert','compose','cursorOffset','insert-new','spaceAbove','push','13762430JDEUip','_config','_resources','DOC_CODE_PLUGIN','columns','30KnJUaH','stringify','javascript','from','defineProperty','reduce','dispose','CODE','tables','onStarting','docs-code.command.update','sectionBreaks','PARAGRAPH','documentData','getBody','removeUnit','getCodeConfig','_setResource','removeCode','blockRanges','some','startOffset','complete','textStyle','registerPluginResource','blockId','50088yIuUYp','16878103vsGVQj','delete','customBlocks','_initResource','SECTION_BREAK','getOwnPropertyDescriptor','customRanges','length','call','getUnit','string','prototype','getInstance','fromEntries','docs-code.command.exit','every','docs-code.command.consume-boundary-delete','setCodeConfig','max','columnGroups','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','registerCommand','indentEnd','serialize','startIndex','removeOp','left','insertLength','5syZbHC','startTokenOffset','nextMetadata','editOp','slice','getCurrentUnitOfType','parse','direction','textRuns','keys','body','disposeWithMe','_change$','default','selectionManager','getTextRanges','_commandService','_docsCodeModel','getUnitId','previousDocumentData','_resourceManagerService','getParagraphsInRange','isArray','COMMAND','1818SRMFMe','BLOCK_START','type','find','monospace','endOffset','docs-code.command.cancel-empty-paragraph','TABLE_CELL_START','paragraphStartIndex','customDecorations','getSnapshot','min','deserialize','TABLE_CELL_END','pluginName','model','toPrimitive','paragraphId','convert-paragraph','insertionMode','insertOp','version','unitId','entries','UNIVER_DOC','config','deleteLength','add','paragraphs','next','paragraph','filter','docs-code.command.insert-below','commandService','docs-code.command.remove','_configService','spaceBelow','metadata','right','sort','BLOCK_END','bullet','paragraphStyle','change$','iterator','handler','asObservable','replaceOp','start','forEach','5424788CoFlwd','replaceDocRanges','syncExecuteCommand','nextDocumentData','endTokenOffset','endsWith','302127OPfZGz','blockType','function','indexOf','120htFuAs','endIndex','codes','dataStream','object'];_0x3984=function(){return _0x2601be;};return _0x3984();}var w=class extends Error{constructor(_0x31c769=_0x2efb50(0x13b)){super(_0x31c769);}};function xe(_0x354b32){const _0x5e9da5=_0x2efb50;var _0x3c980e,_0x5508c1,_0x5923d8;let _0xc85557=T(_0x354b32[_0x5e9da5(0xb8)]),_0x59f6ff=D(_0xc85557),_0x3706a8=Ce(_0x354b32[_0x5e9da5(0xc0)],_0x354b32[_0x5e9da5(0xff)]),_0x5775e8=_0x3706a8?(_0x3c980e=_0x59f6ff['blockRanges'])==null?void 0x0:_0x3c980e[_0x5e9da5(0xfd)](_0x23416a=>{const _0x477612=_0x5e9da5;let _0x23c800=_0x2a1a77(_0x23416a);return _0x23c800['startOffset']===_0x3706a8[_0x477612(0xc0)]&&_0x23c800[_0x477612(0xff)]===_0x3706a8[_0x477612(0xff)];}):void 0x0,{startOffset:_0xb6c540,endOffset:_0x3846aa}=_0x5775e8?_0x3706a8:ze(_0x59f6ff,_0x354b32['startOffset'],_0x354b32[_0x5e9da5(0xff)],_0x354b32[_0x5e9da5(0x10d)]);if(!_0x5775e8&&we(_0x59f6ff,_0xb6c540,_0x3846aa))throw new w(_0x5e9da5(0xda));let _0xb0de32=He(_0x59f6ff,_0xb6c540,_0x3846aa),_0x59a20b=(_0x5508c1=_0x5775e8==null?void 0x0:_0x5775e8[_0x5e9da5(0xc4)])==null?_0x354b32[_0x5e9da5(0xc4)]:_0x5508c1,_0x38a7ad=S(_0x354b32[_0x5e9da5(0x11f)],_0x59a20b,{...ye,..._0x354b32['config']});if(_0x5775e8)return _0x5775e8[_0x5e9da5(0x133)]=_0x339a0c[_0x5e9da5(0xb2)],Se(_0x59f6ff,_0xb6c540,_0x3846aa),Pe(_0x59f6ff,_0xb6c540,_0x3846aa,_0xb0de32),A(_0x59f6ff,_0x5775e8),{'nextDocumentData':_0xc85557,'nextMetadata':_0x38a7ad,'cursorOffset':_0xb6c540+0x1};if(_0xb6c540===_0x3846aa){var _0x585dda,_0x3453c0;let _0x2fd3cf=''+_0x1314f9[_0x5e9da5(0xfb)]+_0x1314f9[_0x5e9da5(0xb7)]+_0x1314f9['BLOCK_END'];j(_0x59f6ff,_0xb6c540,_0x2fd3cf,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x2feb68(new Set((_0x585dda=_0x59f6ff[_0x5e9da5(0x116)])==null?void 0x0:_0x585dda[_0x5e9da5(0x13e)](_0x44f426=>_0x44f426[_0x5e9da5(0x10b)]))),'paragraphStyle':Ne(!0x0,!0x0,_0xb0de32)}],'blockRanges':[{'blockId':_0x59a20b,'blockType':_0x339a0c[_0x5e9da5(0xb2)],'startIndex':0x0,'endIndex':_0x2fd3cf[_0x5e9da5(0xcd)]-0x1}]});let _0x14e8f1=(_0x3453c0=_0x59f6ff[_0x5e9da5(0xbe)])==null?void 0x0:_0x3453c0['find'](_0x4002a1=>_0x4002a1[_0x5e9da5(0xc4)]===_0x59a20b);return _0x14e8f1&&A(_0x59f6ff,_0x14e8f1),{'nextDocumentData':_0xc85557,'nextMetadata':_0x38a7ad,'cursorOffset':_0xb6c540+0x1};}j(_0x59f6ff,_0x3846aa,_0x1314f9[_0x5e9da5(0x122)]),j(_0x59f6ff,_0xb6c540,_0x1314f9['BLOCK_START']),Pe(_0x59f6ff,_0xb6c540,_0x3846aa+0x1,_0xb0de32);let _0x417bb7={'blockId':_0x59a20b,'blockType':_0x339a0c[_0x5e9da5(0xb2)],'startIndex':_0xb6c540,'endIndex':_0x3846aa+0x1};return _0x59f6ff[_0x5e9da5(0xbe)]=[...(_0x5923d8=_0x59f6ff[_0x5e9da5(0xbe)])==null?[]:_0x5923d8,_0x417bb7]['sort']((_0x5e284b,_0x6a47a7)=>_0x5e284b['startIndex']-_0x6a47a7['startIndex']),A(_0x59f6ff,_0x417bb7),{'nextDocumentData':_0xc85557,'nextMetadata':_0x38a7ad,'cursorOffset':_0xb6c540+0x1};}function Se(_0x238edc,_0x3b450d,_0x15c1c3){const _0x3fdfd5=_0x2efb50;var _0x1143c2;((_0x1143c2=_0x238edc[_0x3fdfd5(0x116)])==null?[]:_0x1143c2)[_0x3fdfd5(0x119)](_0x224c35=>_0x224c35[_0x3fdfd5(0xde)]>_0x3b450d&&_0x224c35[_0x3fdfd5(0xde)]<_0x15c1c3)[_0x3fdfd5(0x12b)](_0x33baba=>{const _0xf3fb77=_0x3fdfd5;var _0x5ac81e;let _0x3d8c05={...(_0x5ac81e=_0x33baba[_0xf3fb77(0x124)])==null?{}:_0x5ac81e};delete _0x3d8c05['spaceAbove'],delete _0x3d8c05[_0xf3fb77(0x11e)],_0x33baba[_0xf3fb77(0x124)]=_0x3d8c05;});}function Ce(_0x42a82d,_0x24760a){const _0x8c7fd=_0x2efb50;return _0x42a82d==null||_0x24760a==null||_0x42a82d===_0x24760a?null:{'startOffset':Math[_0x8c7fd(0x105)](_0x42a82d,_0x24760a),'endOffset':Math[_0x8c7fd(0xd8)](_0x42a82d,_0x24760a)};}function we(_0x3c20b2,_0x1fbe8d,_0x1c25eb){const _0x490575=_0x2efb50;var _0x3e7584;return((_0x3e7584=_0x3c20b2['blockRanges'])==null?[]:_0x3e7584)[_0x490575(0xbf)](_0x49e190=>{let _0x59cd1e=_0x2a1a77(_0x49e190);return _0x1fbe8d===_0x1c25eb?_0x10db6c(_0x59cd1e,_0x1fbe8d):_0x307fa5(_0x59cd1e,{'startOffset':_0x1fbe8d,'endOffset':_0x1c25eb});});}function Te(_0x362c75){const _0x365f2d=_0x2efb50;return{'nextDocumentData':T(_0x362c75['documentData']),'nextMetadata':S(_0x362c75[_0x365f2d(0x11f)],_0x362c75[_0x365f2d(0xc4)],_0x362c75[_0x365f2d(0x113)]),'cursorOffset':0x0};}function Ee(_0x64ccaf){const _0x5c0e5f=_0x2efb50;let _0xc0d4c7=T(_0x64ccaf[_0x5c0e5f(0xb8)]),_0x174408=D(_0xc0d4c7),_0x555cd9=Ae(_0x174408,_0x64ccaf['blockId']);if(!_0x555cd9)return null;let _0x505e34=Le(_0x174408,_0x555cd9);return{'nextDocumentData':_0xc0d4c7,'nextMetadata':C(_0x64ccaf[_0x5c0e5f(0x11f)],_0x64ccaf[_0x5c0e5f(0xc4)]),'cursorOffset':_0x505e34};}function De(_0x38ab0c){const _0x3fc3a5=_0x2efb50;var _0x182ffa;let _0x128206=T(_0x38ab0c[_0x3fc3a5(0xb8)]),_0x85bd16=D(_0x128206),_0x5ad35f=Ae(_0x85bd16,_0x38ab0c[_0x3fc3a5(0xc4)]);if(!_0x5ad35f)return null;let _0x646b09=_0x2a1a77(_0x5ad35f);return M(_0x85bd16,_0x646b09[_0x3fc3a5(0xc0)],_0x646b09[_0x3fc3a5(0xff)]),_0x85bd16[_0x3fc3a5(0xbe)]=(_0x182ffa=_0x85bd16[_0x3fc3a5(0xbe)])==null?void 0x0:_0x182ffa[_0x3fc3a5(0x119)](_0x537978=>_0x537978['blockId']!==_0x38ab0c[_0x3fc3a5(0xc4)]),{'nextDocumentData':_0x128206,'nextMetadata':C(_0x38ab0c[_0x3fc3a5(0x11f)],_0x38ab0c[_0x3fc3a5(0xc4)]),'cursorOffset':_0x5ad35f[_0x3fc3a5(0xde)]};}function Oe(_0x200c81){const _0x57f9cd=_0x2efb50;let _0x16b59e=T(_0x200c81[_0x57f9cd(0xb8)]),_0x296b61=D(_0x16b59e),_0x546edc=Me(_0x296b61,_0x200c81[_0x57f9cd(0x148)]);return _0x546edc&&ke(_0x16b59e,_0x296b61,_0x546edc,_0x200c81[_0x57f9cd(0x148)],_0x200c81['paragraphStartIndex'])||null;}function ke(_0x2b626a,_0x38ac89,_0x1e7612,_0x14a968,_0x3150fc){const _0x443f56=_0x2efb50;let _0x534e6b=Je(_0x38ac89,_0x1e7612,_0x14a968,_0x3150fc);if(!_0x534e6b)return null;let _0x23db10=_0x534e6b[_0x443f56(0x130)]-0x1;return M(_0x38ac89,_0x534e6b[_0x443f56(0x118)][_0x443f56(0xde)],_0x534e6b['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x2b626a,'cursorOffset':_0x23db10};}function _0x6f88(_0x6ef34d,_0x5127f9){_0x6ef34d=_0x6ef34d-0xad;const _0x39847b=_0x3984();let _0x6f8822=_0x39847b[_0x6ef34d];return _0x6f8822;}function Ae(_0x1c621c,_0x30dc93){const _0x524c77=_0x2efb50;var _0x615322;return _0x1c621c==null||(_0x615322=_0x1c621c[_0x524c77(0xbe)])==null?void 0x0:_0x615322[_0x524c77(0xfd)](_0x4bb0c8=>_0x4bb0c8['blockType']===_0x339a0c[_0x524c77(0xb2)]&&_0x4bb0c8[_0x524c77(0xc4)]===_0x30dc93);}function je(_0x50dbd1){const _0x5a9497=_0x2efb50;var _0xcd82b3;let _0x434201=_0x50dbd1['documentData'][_0x5a9497(0xec)];if(!_0x434201)return!0x1;let _0x5494ce=_0x50dbd1[_0x5a9497(0xe9)]===_0x5a9497(0xe0)?_0x50dbd1['cursorOffset']-0x1:_0x50dbd1[_0x5a9497(0x148)],_0x3deb0b=_0x50dbd1[_0x5a9497(0xe9)]===_0x5a9497(0x120)?_0x50dbd1[_0x5a9497(0x148)]+0x1:_0x5494ce;return((_0xcd82b3=_0x434201['blockRanges'])==null?[]:_0xcd82b3)['some'](_0x1f49cb=>_0x1f49cb[_0x5a9497(0x133)]===_0x339a0c[_0x5a9497(0xb2)]?_0x5494ce===_0x1f49cb[_0x5a9497(0xde)]||_0x5494ce===_0x1f49cb['endIndex']||_0x3deb0b===_0x1f49cb['startIndex']||_0x3deb0b===_0x1f49cb[_0x5a9497(0x137)]:!0x1);}function Me(_0x3e73d0,_0x439b80){const _0xe91e06=_0x2efb50;var _0x12ea6d;return(_0x12ea6d=_0x3e73d0[_0xe91e06(0xbe)])==null?void 0x0:_0x12ea6d[_0xe91e06(0xfd)](_0x1d3f2d=>{const _0x449c12=_0xe91e06;let _0x4df5ae=k(_0x1d3f2d);return _0x1d3f2d[_0x449c12(0x133)]===_0x339a0c['CODE']&&_0x1d3f2d['startIndex']<=_0x439b80&&_0x439b80<=_0x4df5ae+0x2;});}function Ne(_0x1d3932,_0x2c3727,_0x59d3f5=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1d3932&&_0x59d3f5?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0x1340d7,_0x20646d,_0x11aff9,_0x4e29b3=!0x1){const _0x2c86c7=_0x2efb50;var _0x2d516;let _0x2fd19d=((_0x2d516=_0x1340d7['paragraphs'])==null?[]:_0x2d516)[_0x2c86c7(0x119)](_0x57165c=>_0x57165c[_0x2c86c7(0xde)]>_0x20646d&&_0x57165c[_0x2c86c7(0xde)]<_0x11aff9);_0x2fd19d['forEach']((_0x3a3fc1,_0x431847)=>{const _0x4b2b8b=_0x2c86c7;var _0x4db40b;_0x3a3fc1[_0x4b2b8b(0x124)]={...(_0x4db40b=_0x3a3fc1[_0x4b2b8b(0x124)])==null?{}:_0x4db40b,...Ne(_0x431847===0x0,_0x431847===_0x2fd19d[_0x4b2b8b(0xcd)]-0x1,_0x4e29b3)};});}function Fe(_0xa58c17){const _0x37db71=_0x2efb50;var _0x5738b7,_0x4ca92a;let _0x253d09={..._0xa58c17==null?{}:_0xa58c17};return delete _0x253d09[_0x37db71(0xdc)],delete _0x253d09['indentStart'],delete _0x253d09[_0x37db71(0x14a)],delete _0x253d09[_0x37db71(0x11e)],((_0x5738b7=_0x253d09[_0x37db71(0xc2)])==null?void 0x0:_0x5738b7['ff'])===be&&((_0x4ca92a=_0x253d09[_0x37db71(0xc2)])==null?void 0x0:_0x4ca92a['fs'])===0xc&&delete _0x253d09['textStyle'],_0x253d09;}function Ie(_0x173d48,_0x3ff2e0){const _0x109afd=_0x2efb50;var _0x320ee8;let _0x13a6a5=k(_0x3ff2e0);return((_0x320ee8=_0x173d48[_0x109afd(0x116)])==null?[]:_0x320ee8)[_0x109afd(0x119)](_0x11f46b=>_0x11f46b[_0x109afd(0xde)]>_0x3ff2e0['startIndex']&&_0x11f46b['startIndex']<_0x13a6a5);}function Le(_0x1068e8,_0xf1918f){const _0x51891e=_0x2efb50;var _0x168f42;let _0x446b40=k(_0xf1918f);return Ie(_0x1068e8,_0xf1918f)['forEach'](_0x2cd4bc=>{_0x2cd4bc['paragraphStyle']=Fe(_0x2cd4bc['paragraphStyle']);}),M(_0x1068e8,_0x446b40,_0x446b40+0x1),M(_0x1068e8,_0xf1918f[_0x51891e(0xde)],_0xf1918f['startIndex']+0x1),_0x1068e8[_0x51891e(0xbe)]=(_0x168f42=_0x1068e8[_0x51891e(0xbe)])==null?void 0x0:_0x168f42[_0x51891e(0x119)](_0x2bcc49=>_0x2bcc49[_0x51891e(0xc4)]!==_0xf1918f[_0x51891e(0xc4)]),_0xf1918f[_0x51891e(0xde)];}function T(_0x508f54){const _0x2b2aee=_0x2efb50;return{..._0x508f54,'body':_0x508f54[_0x2b2aee(0xec)]?Re(_0x508f54['body']):_0x508f54[_0x2b2aee(0xec)]};}function Re(_0x2a7454){const _0xc42c76=_0x2efb50;var _0xadffe2,_0x3e3307,_0x4606a8,_0x57d446,_0x123d20,_0x170b8e,_0xeff341,_0x58a32c,_0x1b0487;return{..._0x2a7454,'paragraphs':(_0xadffe2=_0x2a7454[_0xc42c76(0x116)])==null?void 0x0:_0xadffe2[_0xc42c76(0x13e)](_0x31a139=>({..._0x31a139,'bullet':E(_0x31a139[_0xc42c76(0x123)]),'paragraphStyle':E(_0x31a139[_0xc42c76(0x124)])})),'sectionBreaks':(_0x3e3307=_0x2a7454[_0xc42c76(0xb6)])==null?void 0x0:_0x3e3307['map'](_0x257919=>({..._0x257919})),'textRuns':(_0x4606a8=_0x2a7454[_0xc42c76(0xea)])==null?void 0x0:_0x4606a8[_0xc42c76(0x13e)](_0x2fb6f4=>({..._0x2fb6f4})),'tables':(_0x57d446=_0x2a7454[_0xc42c76(0xb3)])==null?void 0x0:_0x57d446['map'](_0x54372c=>({..._0x54372c})),'columnGroups':(_0x123d20=_0x2a7454[_0xc42c76(0xd9)])==null?void 0x0:_0x123d20[_0xc42c76(0x13e)](_0xb21901=>{const _0x3e5ee0=_0xc42c76;var _0x2fddb1;return{..._0xb21901,'columns':(_0x2fddb1=_0xb21901[_0x3e5ee0(0x150)])==null?void 0x0:_0x2fddb1[_0x3e5ee0(0x13e)](_0x5e9d0b=>E(_0x5e9d0b))};}),'blockRanges':(_0x170b8e=_0x2a7454[_0xc42c76(0xbe)])==null?void 0x0:_0x170b8e['map'](_0x12cecf=>({..._0x12cecf})),'customRanges':(_0xeff341=_0x2a7454[_0xc42c76(0xcc)])==null?void 0x0:_0xeff341[_0xc42c76(0x13e)](_0x3cb439=>({..._0x3cb439})),'customDecorations':(_0x58a32c=_0x2a7454[_0xc42c76(0x103)])==null?void 0x0:_0x58a32c[_0xc42c76(0x13e)](_0x5e167a=>({..._0x5e167a})),'customBlocks':(_0x1b0487=_0x2a7454[_0xc42c76(0xc8)])==null?void 0x0:_0x1b0487[_0xc42c76(0x13e)](_0x42743f=>({..._0x42743f}))};}function E(_0x4e3996){const _0x2832b5=_0x2efb50;return Array[_0x2832b5(0xf8)](_0x4e3996)?_0x4e3996[_0x2832b5(0x13e)](_0x1fb41e=>E(_0x1fb41e)):!_0x4e3996||typeof _0x4e3996!='object'?_0x4e3996:Object[_0x2832b5(0xd3)](Object['entries'](_0x4e3996)['map'](([_0x63b58d,_0x5e66bc])=>[_0x63b58d,E(_0x5e66bc)]));}function D(_0x371751){const _0x37154f=_0x2efb50;if(!_0x371751[_0x37154f(0xec)])throw Error(_0x37154f(0x140));return _0x371751[_0x37154f(0xec)];}function ze(_0x2d302f,_0x1ee2a6,_0x53c960,_0x5b4918=_0x2efb50(0x10c)){const _0x7cab90=_0x2efb50;if(_0x1ee2a6==null||_0x53c960==null){let _0x3b7924=Ve(_0x2d302f);return{'startOffset':_0x3b7924,'endOffset':_0x3b7924};}let _0x4106d7=Math[_0x7cab90(0x105)](_0x1ee2a6,_0x53c960),_0x30a4da=Math['max'](_0x1ee2a6,_0x53c960),_0x445513=Ke(_0x2d302f,_0x4106d7,_0x30a4da);return _0x4106d7===_0x30a4da?_0x5b4918==='insert-new'?{'startOffset':_0x4106d7,'endOffset':_0x30a4da}:Be(_0x2d302f,_0x4106d7,_0x445513):Ue(_0x2d302f,_0x4106d7,_0x30a4da,_0x445513);}function Be(_0x40934c,_0x3282f9,_0x4917aa){const _0x47f356=_0x2efb50;let _0x4e72a9=We(_0x40934c,_0x3282f9);if(_0x4e72a9){let _0x40abc3=O(_0x40934c,_0x4e72a9,_0x4917aa);if(_0x40abc3<_0x4e72a9['startIndex'])return{'startOffset':_0x40abc3,'endOffset':_0x4917aa?Math['min'](_0x4e72a9[_0x47f356(0xde)]+0x1,_0x4917aa[_0x47f356(0xff)]):_0x4e72a9[_0x47f356(0xde)]+0x1};}let _0x400a2d=_0x3282f9===0x0&&_0x40934c['dataStream'][0x0]===_0x1314f9[_0x47f356(0xb7)]?0x1:_0x3282f9;return{'startOffset':_0x400a2d,'endOffset':_0x400a2d};}function Ve(_0x54e0b5){const _0x1af17f=_0x2efb50;return _0x54e0b5[_0x1af17f(0x139)][_0x1af17f(0x131)](_0x1314f9['SECTION_BREAK'])?Math[_0x1af17f(0xd8)](0x0,_0x54e0b5[_0x1af17f(0x139)][_0x1af17f(0xcd)]-0x1):_0x54e0b5[_0x1af17f(0x139)][_0x1af17f(0xcd)];}function He(_0x49f03e,_0x2d64ac,_0x3d0fcd){const _0x3db77a=_0x2efb50;var _0x369376;let _0x59056f=Math['min'](_0x2d64ac,_0x3d0fcd),_0xd8d845=Math[_0x3db77a(0xd8)](_0x2d64ac,_0x3d0fcd);return!!((_0x369376=_0x49f03e[_0x3db77a(0xb3)])!=null&&_0x369376[_0x3db77a(0xbf)](_0x480c7e=>_0x59056f>_0x480c7e[_0x3db77a(0xde)]&&_0x59056f<_0x480c7e[_0x3db77a(0x137)]||_0xd8d845>_0x480c7e[_0x3db77a(0xde)]&&_0xd8d845<_0x480c7e[_0x3db77a(0x137)]||_0x59056f<=_0x480c7e[_0x3db77a(0xde)]&&_0xd8d845>=_0x480c7e[_0x3db77a(0x137)]));}function Ue(_0x1a81f2,_0x419df5,_0x7dde05,_0x116b6f){const _0xe5a87e=_0x2efb50;var _0x33bf68,_0xc79728;let _0x3e49cb=[...(_0x33bf68=_0x1a81f2[_0xe5a87e(0x116)])==null?[]:_0x33bf68][_0xe5a87e(0x121)]((_0x57fe9d,_0x4b8b02)=>_0x57fe9d[_0xe5a87e(0xde)]-_0x4b8b02[_0xe5a87e(0xde)]),_0x2d92fc=_0x25a651(_0x1a81f2),_0x3ecf2f=_0x3e49cb[_0xe5a87e(0xfd)](_0x4e115c=>O(_0x1a81f2,_0x4e115c,_0x116b6f,_0x2d92fc)<=_0x419df5&&_0x419df5<=_0x4e115c[_0xe5a87e(0xde)]),_0x395218=(_0xc79728=_0x3e49cb['find'](_0x5cfa9b=>_0x5cfa9b[_0xe5a87e(0xde)]>=_0x7dde05-0x1))==null?_0x3e49cb[_0x3e49cb['length']-0x1]:_0xc79728;return{'startOffset':_0x3ecf2f?O(_0x1a81f2,_0x3ecf2f,_0x116b6f,_0x2d92fc):_0x419df5,'endOffset':_0x395218?Ge(_0x395218,_0x116b6f):_0x7dde05};}function We(_0x17f212,_0x38b68d){const _0x13bb13=_0x2efb50;var _0x4f1780;let _0x491a8e=[...(_0x4f1780=_0x17f212[_0x13bb13(0x116)])==null?[]:_0x4f1780]['sort']((_0x310451,_0x3d57e1)=>_0x310451[_0x13bb13(0xde)]-_0x3d57e1[_0x13bb13(0xde)]),_0x45b5a0=_0x25a651(_0x17f212);return _0x491a8e[_0x13bb13(0xfd)](_0x20b1af=>{const _0x4b7b3f=_0x13bb13;var _0x58c43e;return((_0x58c43e=_0x45b5a0[_0x4b7b3f(0x145)](_0x20b1af[_0x4b7b3f(0xde)]))==null?0x0:_0x58c43e)<=_0x38b68d&&_0x38b68d<=_0x20b1af['startIndex'];});}function O(_0x3be065,_0x597797,_0x35a773,_0x209c88){const _0x3a4c66=_0x2efb50;var _0x3fd1be;let _0x211050=(_0x3fd1be=_0x209c88==null?void 0x0:_0x209c88[_0x3a4c66(0x145)](_0x597797[_0x3a4c66(0xde)]))==null?_0x44217a(_0x3be065,_0x597797):_0x3fd1be;return _0x35a773?Math[_0x3a4c66(0xd8)](_0x211050,_0x35a773[_0x3a4c66(0xc0)]):_0x211050;}function Ge(_0x36beeb,_0x1c58b3){const _0x5be13b=_0x2efb50;let _0x29566e=_0x36beeb['startIndex']+0x1;return _0x1c58b3?Math[_0x5be13b(0x105)](_0x29566e,_0x1c58b3['endOffset']):_0x29566e;}function Ke(_0x3abd25,_0x3cd165,_0x53bc81){const _0x135345=_0x2efb50;let _0x1454d2=qe(_0x3abd25,_0x3cd165),_0x3e5a6d=qe(_0x3abd25,_0x3cd165===_0x53bc81?_0x53bc81:Math[_0x135345(0xd8)](_0x3cd165,_0x53bc81-0x1));if(!(!_0x1454d2&&!_0x3e5a6d)){if(!_0x1454d2||!_0x3e5a6d||_0x1454d2[_0x135345(0xe3)]!==_0x3e5a6d[_0x135345(0xe3)]||_0x1454d2[_0x135345(0x130)]!==_0x3e5a6d[_0x135345(0x130)])throw new w();return _0x1454d2;}}function qe(_0x301a5e,_0x553077){const _0xedd48=_0x2efb50;let _0x56354d=_0x301a5e[_0xedd48(0x139)],_0x2419b0=-0x1;for(let _0x3ebee1=Math[_0xedd48(0x105)](_0x553077,_0x56354d[_0xedd48(0xcd)]-0x1);_0x3ebee1>=0x0;_0x3ebee1--){let _0xd184c=_0x56354d[_0x3ebee1];if(_0xd184c===_0x1314f9[_0xedd48(0x107)])return;if(_0xd184c===_0x1314f9[_0xedd48(0x101)]){_0x2419b0=_0x3ebee1;break;}}if(_0x2419b0<0x0)return;let _0x135915=_0x56354d[_0xedd48(0x135)](_0x1314f9[_0xedd48(0x107)],_0x2419b0+0x1);if(!(_0x135915<0x0||_0x553077<_0x2419b0+0x1||_0x553077>_0x135915-0x1))return{'startOffset':_0x2419b0+0x1,'endOffset':Math[_0xedd48(0xd8)](_0x2419b0+0x1,_0x135915-0x1),'startTokenOffset':_0x2419b0,'endTokenOffset':_0x135915};}function k(_0x130709){const _0x453771=_0x2efb50;return _0x2a1a77(_0x130709)[_0x453771(0xff)]-0x1;}function Je(_0x4f6263,_0x29b36a,_0x126cfe,_0x432ff2){const _0x1a3b84=_0x2efb50;var _0x411d2e;let _0xcf0c47=k(_0x29b36a),_0x225e8e=((_0x411d2e=_0x4f6263['paragraphs'])==null?[]:_0x411d2e)[_0x1a3b84(0xfd)](_0x2c2028=>_0x2c2028[_0x1a3b84(0xde)]===_0xcf0c47+0x1);if(!_0x225e8e||_0x432ff2!=null&&_0x225e8e[_0x1a3b84(0xde)]!==_0x432ff2||_0x126cfe!=null&&(_0x126cfe<_0xcf0c47||_0x126cfe>_0x225e8e[_0x1a3b84(0xde)]+0x1)||_0x4f6263[_0x1a3b84(0x139)][_0x225e8e[_0x1a3b84(0xde)]]!==_0x1314f9[_0x1a3b84(0xb7)])return null;let _0x4c0291=_0x44217a(_0x4f6263,_0x225e8e),_0x5a73b4=_0x4f6263[_0x1a3b84(0x139)]['slice'](_0x4c0291,_0x225e8e[_0x1a3b84(0xde)]);return Array[_0x1a3b84(0xae)](_0x5a73b4)[_0x1a3b84(0xd5)](_0xe571e=>_0xe571e===_0x1314f9[_0x1a3b84(0x122)])?{'paragraph':_0x225e8e,'endTokenOffset':_0xcf0c47}:null;}function A(_0x1a540a,_0x5c1d3d){const _0x10ad42=_0x2efb50;var _0x2d2226;let _0x3ae24f=k(_0x5c1d3d),_0x569c46=_0x1a540a[_0x10ad42(0x139)][_0x3ae24f+0x1];_0x569c46!==_0x1314f9[_0x10ad42(0xca)]&&_0x569c46!==void 0x0||j(_0x1a540a,_0x3ae24f+0x1,_0x1314f9[_0x10ad42(0xb7)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2feb68(new Set((_0x2d2226=_0x1a540a[_0x10ad42(0x116)])==null?void 0x0:_0x2d2226['map'](_0x26c1f8=>_0x26c1f8[_0x10ad42(0x10b)])))}]});}function j(_0x32d1c8,_0x611837,_0x23330e,_0x10a216={}){const _0x14821b=_0x2efb50;var _0x223f74,_0x537433;if(_0x23330e){if(_0x32d1c8[_0x14821b(0x139)]=''+_0x32d1c8[_0x14821b(0x139)][_0x14821b(0xe6)](0x0,_0x611837)+_0x23330e+_0x32d1c8[_0x14821b(0x139)][_0x14821b(0xe6)](_0x611837),Ye(_0x32d1c8,_0x611837,_0x23330e[_0x14821b(0xcd)]),(_0x223f74=_0x10a216['paragraphs'])!=null&&_0x223f74['length']){var _0x174429;_0x32d1c8[_0x14821b(0x116)]=[...(_0x174429=_0x32d1c8[_0x14821b(0x116)])==null?[]:_0x174429,..._0x10a216[_0x14821b(0x116)]['map'](_0xdc582a=>({..._0xdc582a,'startIndex':_0xdc582a[_0x14821b(0xde)]+_0x611837}))][_0x14821b(0x121)]((_0x7ebbae,_0x4c20bb)=>_0x7ebbae[_0x14821b(0xde)]-_0x4c20bb[_0x14821b(0xde)]);}if((_0x537433=_0x10a216[_0x14821b(0xbe)])!=null&&_0x537433['length']){var _0x1e2de4;_0x32d1c8[_0x14821b(0xbe)]=[...(_0x1e2de4=_0x32d1c8[_0x14821b(0xbe)])==null?[]:_0x1e2de4,..._0x10a216['blockRanges'][_0x14821b(0x13e)](_0x19ef83=>({..._0x19ef83,'startIndex':_0x19ef83[_0x14821b(0xde)]+_0x611837,'endIndex':_0x19ef83['endIndex']+_0x611837}))]['sort']((_0x5e5097,_0x3b297d)=>_0x5e5097[_0x14821b(0xde)]-_0x3b297d[_0x14821b(0xde)]);}}}function M(_0xffa0fc,_0x260b1d,_0xc47e9e){const _0x59854e=_0x2efb50;let _0x41886d=_0xc47e9e-_0x260b1d;_0xffa0fc['dataStream']=''+_0xffa0fc[_0x59854e(0x139)][_0x59854e(0xe6)](0x0,_0x260b1d)+_0xffa0fc[_0x59854e(0x139)][_0x59854e(0xe6)](_0xc47e9e),Xe(_0xffa0fc,_0x260b1d,_0x41886d);}function Ye(_0x39e1da,_0x3d4ab1,_0x2cc757){const _0x3f2b40=_0x2efb50;_0x39e1da[_0x3f2b40(0x116)]=N(_0x39e1da[_0x3f2b40(0x116)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xb6)]=N(_0x39e1da[_0x3f2b40(0xb6)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xc8)]=N(_0x39e1da['customBlocks'],_0x3d4ab1,_0x2cc757),_0x39e1da['textRuns']=Ze(_0x39e1da['textRuns'],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xb3)]=Qe(_0x39e1da[_0x3f2b40(0xb3)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xd9)]=F(_0x39e1da['columnGroups'],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xcc)]=F(_0x39e1da[_0x3f2b40(0xcc)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0x103)]=F(_0x39e1da[_0x3f2b40(0x103)],_0x3d4ab1,_0x2cc757),_0x39e1da[_0x3f2b40(0xbe)]=F(_0x39e1da[_0x3f2b40(0xbe)],_0x3d4ab1,_0x2cc757);}function Xe(_0x503536,_0x22f042,_0xfb6f18){const _0xbe8cf8=_0x2efb50;var _0x12cbeb,_0x5b35a6;_0x503536[_0xbe8cf8(0x116)]=P(_0x503536[_0xbe8cf8(0x116)],_0x22f042,_0xfb6f18),_0x503536['sectionBreaks']=P(_0x503536[_0xbe8cf8(0xb6)],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xc8)]=P(_0x503536[_0xbe8cf8(0xc8)],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xea)]=(_0x12cbeb=$e((_0x5b35a6=_0x503536[_0xbe8cf8(0xea)])==null?void 0x0:_0x5b35a6[_0xbe8cf8(0x13e)](_0x591d0b=>({..._0x591d0b,'startIndex':_0x591d0b['st'],'endIndex':_0x591d0b['ed']})),_0x22f042,_0xfb6f18))==null?void 0x0:_0x12cbeb[_0xbe8cf8(0x13e)](_0x23138c=>{let {startIndex:_0x2ad51f,endIndex:_0x13afec,..._0x331160}=_0x23138c;return{..._0x331160,'st':_0x2ad51f,'ed':_0x13afec};}),_0x503536[_0xbe8cf8(0xb3)]=$e(_0x503536['tables'],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xd9)]=I(_0x503536['columnGroups'],_0x22f042,_0xfb6f18),_0x503536['customRanges']=I(_0x503536[_0xbe8cf8(0xcc)],_0x22f042,_0xfb6f18),_0x503536['customDecorations']=I(_0x503536[_0xbe8cf8(0x103)],_0x22f042,_0xfb6f18),_0x503536[_0xbe8cf8(0xbe)]=I(_0x503536[_0xbe8cf8(0xbe)],_0x22f042,_0xfb6f18);}function N(_0x1e261d,_0x4f3e8f,_0x1011db){const _0x363735=_0x2efb50;return _0x1e261d==null?void 0x0:_0x1e261d[_0x363735(0x13e)](_0x1bce6e=>_0x1bce6e[_0x363735(0xde)]>=_0x4f3e8f?{..._0x1bce6e,'startIndex':_0x1bce6e[_0x363735(0xde)]+_0x1011db}:_0x1bce6e);}function P(_0x512a4a,_0x27f720,_0x35207f){const _0x5a2fe8=_0x2efb50;let _0x96b97d=_0x27f720+_0x35207f;return _0x512a4a==null?void 0x0:_0x512a4a[_0x5a2fe8(0x13e)](_0x426838=>_0x426838[_0x5a2fe8(0xde)]>=_0x27f720&&_0x426838['startIndex']<_0x96b97d?null:_0x426838['startIndex']>=_0x96b97d?{..._0x426838,'startIndex':_0x426838['startIndex']-_0x35207f}:_0x426838)[_0x5a2fe8(0x119)](_0x5d5cee=>_0x5d5cee!=null);}function Ze(_0x4a313e,_0x2360bc,_0x1fb768){const _0x4a4380=_0x2efb50;return _0x4a313e==null?void 0x0:_0x4a313e[_0x4a4380(0x13e)](_0x597405=>_0x597405['st']>=_0x2360bc?{..._0x597405,'st':_0x597405['st']+_0x1fb768,'ed':_0x597405['ed']+_0x1fb768}:_0x597405['ed']>_0x2360bc?{..._0x597405,'ed':_0x597405['ed']+_0x1fb768}:_0x597405);}function F(_0x2366ec,_0x1ff3b0,_0x423844){return _0x2366ec==null?void 0x0:_0x2366ec['map'](_0x4649e4=>_0x23043b(_0x4649e4,_0x1ff3b0,_0x423844));}function Qe(_0x3f3d6f,_0x44a35d,_0x353e34){const _0x11bdf6=_0x2efb50;return _0x3f3d6f==null?void 0x0:_0x3f3d6f[_0x11bdf6(0x13e)](_0x215aef=>_0x1dda83(_0x215aef,_0x44a35d,_0x353e34));}function I(_0x5a6966,_0x491dd2,_0x471a47){const _0x1e91cd=_0x2efb50;return _0x5a6966==null?void 0x0:_0x5a6966[_0x1e91cd(0x13e)](_0x21909a=>_0x3f04e8(_0x21909a,_0x491dd2,_0x471a47))[_0x1e91cd(0x119)](_0x2b7fcd=>_0x2b7fcd!=null);}function $e(_0x3129f5,_0x18e17a,_0x1eb409){const _0xae25cb=_0x2efb50;return _0x3129f5==null?void 0x0:_0x3129f5[_0xae25cb(0x13e)](_0x115c3b=>_0x1df613(_0x115c3b,_0x18e17a,_0x1eb409))[_0xae25cb(0x119)](_0x2ab5a3=>_0x2ab5a3!=null);}function L(_0xf84dbe){'@babel/helpers - typeof';const _0x50e146=_0x2efb50;return L=typeof Symbol==_0x50e146(0x134)&&typeof Symbol[_0x50e146(0x126)]=='symbol'?function(_0x4a2964){return typeof _0x4a2964;}:function(_0xf016ce){const _0x4b2390=_0x50e146;return _0xf016ce&&typeof Symbol=='function'&&_0xf016ce['constructor']===Symbol&&_0xf016ce!==Symbol[_0x4b2390(0xd1)]?_0x4b2390(0x13d):typeof _0xf016ce;},L(_0xf84dbe);}function et(_0x246ffd,_0x1fc5b7){const _0x5dded0=_0x2efb50;if(L(_0x246ffd)!='object'||!_0x246ffd)return _0x246ffd;var _0x2a43fd=_0x246ffd[Symbol[_0x5dded0(0x10a)]];if(_0x2a43fd!==void 0x0){var _0x5d39f2=_0x2a43fd[_0x5dded0(0xce)](_0x246ffd,_0x1fc5b7||_0x5dded0(0xef));if(L(_0x5d39f2)!=_0x5dded0(0x13a))return _0x5d39f2;throw TypeError(_0x5dded0(0x142));}return(_0x1fc5b7===_0x5dded0(0xd0)?String:Number)(_0x246ffd);}function tt(_0x2ad57f){const _0x4349a4=_0x2efb50;var _0x38f121=et(_0x2ad57f,_0x4349a4(0xd0));return L(_0x38f121)==_0x4349a4(0x13d)?_0x38f121:_0x38f121+'';}function R(_0x41e168,_0x3e45d8,_0x2ac0a9){return(_0x3e45d8=tt(_0x3e45d8))in _0x41e168?Object['defineProperty'](_0x41e168,_0x3e45d8,{'value':_0x2ac0a9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41e168[_0x3e45d8]=_0x2ac0a9,_0x41e168;}var z=class extends _0x548644{constructor(..._0x2012d9){const _0x5cbbe7=_0x2efb50;super(..._0x2012d9),R(this,_0x5cbbe7(0x14e),new Map()),R(this,_0x5cbbe7(0xee),new _0xd242a9()),R(this,_0x5cbbe7(0x125),this[_0x5cbbe7(0xee)][_0x5cbbe7(0x128)]());}[_0x2efb50(0xbb)](_0x1343ad,_0x40c146){const _0x3e1d34=_0x2efb50;return x(this[_0x3e1d34(0x14e)][_0x3e1d34(0x145)](_0x1343ad))['codes'][_0x40c146];}[_0x2efb50(0xd7)](_0xe61b14,_0x2ac796,_0x37af91){const _0x5dc0d1=_0x2efb50;this[_0x5dc0d1(0xbc)](_0xe61b14,_0x2ac796,S(this[_0x5dc0d1(0x14e)]['get'](_0xe61b14),_0x2ac796,_0x37af91));}[_0x2efb50(0xbd)](_0x31d54e,_0xb451e7){const _0x35ca2b=_0x2efb50;this[_0x35ca2b(0xbc)](_0x31d54e,_0xb451e7,C(this[_0x35ca2b(0x14e)][_0x35ca2b(0x145)](_0x31d54e),_0xb451e7));}[_0x2efb50(0xdd)](_0x47d209){const _0x37b6b0=_0x2efb50;return x(this[_0x37b6b0(0x14e)]['get'](_0x47d209));}[_0x2efb50(0x106)](_0x521106,_0x33c94b){const _0x1de2b0=_0x2efb50;this['_resources'][_0x1de2b0(0x144)](_0x521106,x(_0x33c94b)),this[_0x1de2b0(0xee)]['next']({'unitId':_0x521106});}[_0x2efb50(0xba)](_0xd9d99a){const _0x149003=_0x2efb50;this[_0x149003(0x14e)]['delete'](_0xd9d99a),this['_change$'][_0x149003(0x117)]({'unitId':_0xd9d99a});}['dispose'](){const _0x4415ed=_0x2efb50;super[_0x4415ed(0xb1)](),this[_0x4415ed(0x14e)][_0x4415ed(0x141)](),this[_0x4415ed(0xee)][_0x4415ed(0xc1)]();}[_0x2efb50(0xbc)](_0x470ba7,_0x3b2559,_0x54f004){const _0x562aed=_0x2efb50;this['_resources'][_0x562aed(0x144)](_0x470ba7,_0x54f004),this[_0x562aed(0xee)][_0x562aed(0x117)]({'unitId':_0x470ba7,'blockId':_0x3b2559});}};const nt={'id':_0x2efb50(0x11a),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':_0x441dfe=>{const _0x37fb33=_0x2efb50;var _0x4001c0;if(_0x3830d1(G(_0x441dfe)))return!0x1;let _0x540b53=_0x4e708a(_0x441dfe);if(_0x540b53)return _0x441dfe[_0x37fb33(0x145)](_0x4c3a60)['syncExecuteCommand'](B['id'],{'startOffset':_0x540b53['startOffset'],'endOffset':_0x540b53[_0x37fb33(0xff)],'insertionMode':_0x37fb33(0x149),'unitId':_0x540b53[_0x37fb33(0x110)]});let _0x47b029=lt(_0x441dfe);if(!_0x47b029)return!0x1;let _0x59c2d2=(_0x4001c0=_0x441dfe[_0x37fb33(0x145)](_0x4b72a3)[_0x37fb33(0xe7)](_0x727df5['UNIVER_DOC']))==null?void 0x0:_0x4001c0[_0x37fb33(0xb9)](),_0x10e509=_0x59c2d2?_0x588559(_0x59c2d2,_0x47b029):_0x47b029[_0x37fb33(0xde)]+0x1;return _0x441dfe[_0x37fb33(0x145)](_0x4c3a60)[_0x37fb33(0x12e)](B['id'],{'startOffset':_0x10e509,'endOffset':_0x10e509});}},rt={'id':_0x2efb50(0xd6),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x33ac8c['COMMAND'],'handler':(_0x58b758,_0x60a13c)=>{const _0x5a1105=_0x2efb50;var _0x25c297;let _0x83a590=W(_0x58b758,_0x60a13c==null?void 0x0:_0x60a13c[_0x5a1105(0x110)]);if(!_0x83a590)return!0x1;let _0xf5a2dd=G(_0x58b758);if(_0x3830d1(_0xf5a2dd))return!0x1;let _0x3bd9c7=_0x83a590[_0x5a1105(0x109)]['serialize'](_0x83a590[_0x5a1105(0x110)]),_0x42df78=ot(_0x60a13c,_0xf5a2dd),_0x5fa28=st(_0x83a590[_0x5a1105(0xf5)],_0x42df78);if(_0x5fa28){if(_0x5fa28['blockType']!==_0x339a0c[_0x5a1105(0xb2)])return!0x1;let _0x5dba47=Ee({'blockId':_0x5fa28[_0x5a1105(0xc4)],'documentData':_0x83a590[_0x5a1105(0xf5)],'metadata':_0x3bd9c7});if(!_0x5dba47)return!0x1;let _0x1a0688=Y(_0x83a590['commandService'],_0x83a590[_0x5a1105(0xf0)],_0x83a590['unitId'],_0x83a590[_0x5a1105(0xf5)],_0x5dba47['nextDocumentData'],B['id'],_0x5dba47['cursorOffset']);return _0x1a0688&&_0x5dba47[_0x5a1105(0xe4)]&&_0x83a590[_0x5a1105(0x109)][_0x5a1105(0x106)](_0x83a590[_0x5a1105(0x110)],_0x5dba47[_0x5a1105(0xe4)]),_0x1a0688;}let _0xc1331f=(_0x25c297=_0x60a13c==null?void 0x0:_0x60a13c['blockId'])==null?_0x3275ad(0x6):_0x25c297,_0x35b4e6;try{_0x35b4e6=xe({'blockId':_0xc1331f,'config':_0x60a13c==null?void 0x0:_0x60a13c[_0x5a1105(0x113)],'documentData':_0x83a590[_0x5a1105(0xf5)],'endOffset':_0x42df78==null?void 0x0:_0x42df78[_0x5a1105(0xff)],'insertionMode':_0x60a13c==null?void 0x0:_0x60a13c[_0x5a1105(0x10d)],'metadata':_0x3bd9c7,'startOffset':_0x42df78==null?void 0x0:_0x42df78[_0x5a1105(0xc0)]});}catch(_0x245947){if(_0x245947 instanceof w)return!0x1;throw _0x245947;}let _0x894ebe=Y(_0x83a590[_0x5a1105(0x11b)],_0x83a590[_0x5a1105(0xf0)],_0x83a590[_0x5a1105(0x110)],_0x83a590['previousDocumentData'],_0x35b4e6[_0x5a1105(0x12f)],B['id'],_0x35b4e6['cursorOffset']);return _0x894ebe&&_0x35b4e6[_0x5a1105(0xe4)]&&_0x83a590[_0x5a1105(0x109)][_0x5a1105(0x106)](_0x83a590[_0x5a1105(0x110)],_0x35b4e6[_0x5a1105(0xe4)]),_0x894ebe;}},it={'id':_0x2efb50(0xb5),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x5a360b,_0xab4992)=>{const _0x1c56cd=_0x2efb50;if(!_0xab4992)return!0x1;let _0x204d83=W(_0x5a360b,_0xab4992[_0x1c56cd(0x110)]);if(!_0x204d83)return!0x1;let _0x52761f=Te({'blockId':_0xab4992[_0x1c56cd(0xc4)],'config':_0xab4992['config'],'documentData':_0x204d83[_0x1c56cd(0xf5)],'metadata':_0x204d83[_0x1c56cd(0x109)][_0x1c56cd(0xdd)](_0x204d83[_0x1c56cd(0x110)])});return _0x52761f['nextMetadata']&&_0x204d83[_0x1c56cd(0x109)][_0x1c56cd(0x106)](_0x204d83[_0x1c56cd(0x110)],_0x52761f[_0x1c56cd(0xe4)]),!0x0;}},at={'id':_0x2efb50(0xd4),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x226a9a,_0x41c2e0)=>V[_0x2efb50(0x127)](_0x226a9a,_0x41c2e0)},V={'id':'docs-code.command.unwrap','type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x1e891d,_0x320ee7)=>{const _0x49eb11=_0x2efb50;if(!_0x320ee7)return!0x1;let _0x4e794e=W(_0x1e891d,_0x320ee7==null?void 0x0:_0x320ee7[_0x49eb11(0x110)]);if(!_0x4e794e)return!0x1;let _0x2970cc=Ee({'blockId':_0x320ee7[_0x49eb11(0xc4)],'documentData':_0x4e794e[_0x49eb11(0xf5)],'metadata':_0x4e794e['model'][_0x49eb11(0xdd)](_0x4e794e[_0x49eb11(0x110)])});if(!_0x2970cc)return!0x1;let _0x2a5e9c=Y(_0x4e794e[_0x49eb11(0x11b)],_0x4e794e[_0x49eb11(0xf0)],_0x4e794e[_0x49eb11(0x110)],_0x4e794e[_0x49eb11(0xf5)],_0x2970cc[_0x49eb11(0x12f)],V['id'],_0x2970cc[_0x49eb11(0x148)]);return _0x2a5e9c&&_0x2970cc['nextMetadata']&&_0x4e794e['model'][_0x49eb11(0x106)](_0x4e794e['unitId'],_0x2970cc[_0x49eb11(0xe4)]),_0x2a5e9c;}},H={'id':_0x2efb50(0x11c),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0x50fb9a,_0x4a5bb8)=>{const _0x2b59ea=_0x2efb50;if(!_0x4a5bb8)return!0x1;let _0x3bcbd6=W(_0x50fb9a,_0x4a5bb8==null?void 0x0:_0x4a5bb8[_0x2b59ea(0x110)]);if(!_0x3bcbd6)return!0x1;let _0x21e844=De({'blockId':_0x4a5bb8[_0x2b59ea(0xc4)],'documentData':_0x3bcbd6[_0x2b59ea(0xf5)],'metadata':_0x3bcbd6[_0x2b59ea(0x109)]['serialize'](_0x3bcbd6[_0x2b59ea(0x110)])});if(!_0x21e844)return!0x1;let _0x5ca792=Y(_0x3bcbd6[_0x2b59ea(0x11b)],_0x3bcbd6[_0x2b59ea(0xf0)],_0x3bcbd6[_0x2b59ea(0x110)],_0x3bcbd6['previousDocumentData'],_0x21e844[_0x2b59ea(0x12f)],H['id'],_0x21e844['cursorOffset']);return _0x5ca792&&_0x21e844[_0x2b59ea(0xe4)]&&_0x3bcbd6[_0x2b59ea(0x109)][_0x2b59ea(0x106)](_0x3bcbd6[_0x2b59ea(0x110)],_0x21e844[_0x2b59ea(0xe4)]),_0x5ca792;}},U={'id':_0x2efb50(0x100),'type':_0x33ac8c[_0x2efb50(0xf9)],'handler':(_0xe7a3bc,_0x3a49ea)=>{const _0x366cfe=_0x2efb50;var _0x1ce127,_0x3c48df;let _0xb64d9a=W(_0xe7a3bc,_0x3a49ea==null?void 0x0:_0x3a49ea[_0x366cfe(0x110)]);if(!_0xb64d9a)return!0x1;let _0x21581c=(_0x1ce127=_0x3a49ea==null?void 0x0:_0x3a49ea['cursorOffset'])==null?(_0x3c48df=G(_0xe7a3bc))==null?void 0x0:_0x3c48df[_0x366cfe(0xc0)]:_0x1ce127;if(_0x21581c==null)return!0x1;let _0x2dc604=Oe({'cursorOffset':_0x21581c,'documentData':_0xb64d9a[_0x366cfe(0xf5)],'paragraphStartIndex':_0x3a49ea==null?void 0x0:_0x3a49ea[_0x366cfe(0x102)]});return _0x2dc604?Y(_0xb64d9a['commandService'],_0xb64d9a['selectionManager'],_0xb64d9a[_0x366cfe(0x110)],_0xb64d9a[_0x366cfe(0xf5)],_0x2dc604[_0x366cfe(0x12f)],U['id'],_0x2dc604['cursorOffset']):!0x1;}};function W(_0x487abd,_0x55b109){const _0x3f479b=_0x2efb50;let _0x257dd5=_0x487abd[_0x3f479b(0x145)](_0x4b72a3),_0x240fcb=_0x55b109?_0x257dd5[_0x3f479b(0xcf)](_0x55b109,_0x727df5[_0x3f479b(0x112)]):_0x257dd5[_0x3f479b(0xe7)](_0x727df5[_0x3f479b(0x112)]);return _0x240fcb?{'commandService':_0x487abd[_0x3f479b(0x145)](_0x4c3a60),'model':_0x487abd[_0x3f479b(0x145)](z),'previousDocumentData':_0x240fcb[_0x3f479b(0x104)](),'selectionManager':_0x487abd[_0x3f479b(0x145)](_0x324bf4),'unitId':_0x240fcb[_0x3f479b(0xf4)]()}:null;}function G(_0x496ed7){const _0x4505bc=_0x2efb50;var _0x584e2a;return(_0x584e2a=_0x496ed7[_0x4505bc(0x145)](_0x324bf4)[_0x4505bc(0xf1)]())==null?void 0x0:_0x584e2a[0x0];}function ot(_0x3c673e,_0x422fb3){const _0x810dd=_0x2efb50;var _0x4f659f,_0x282b87;let _0x34138f=(_0x4f659f=_0x3c673e==null?void 0x0:_0x3c673e[_0x810dd(0xc0)])==null?_0x422fb3==null?void 0x0:_0x422fb3[_0x810dd(0xc0)]:_0x4f659f,_0x4a3deb=(_0x282b87=_0x3c673e==null?void 0x0:_0x3c673e[_0x810dd(0xff)])==null?_0x422fb3==null?void 0x0:_0x422fb3[_0x810dd(0xff)]:_0x282b87;if(!(_0x34138f==null||_0x4a3deb==null))return{'endOffset':Math[_0x810dd(0xd8)](_0x34138f,_0x4a3deb),'startOffset':Math['min'](_0x34138f,_0x4a3deb)};}function st(_0x67f2,_0x17bb25){const _0x2eb7b8=_0x2efb50;var _0x4ad406;if(!_0x17bb25)return;let _0x2e96ed=ct(_0x17bb25);return(_0x4ad406=_0x67f2[_0x2eb7b8(0xec)])==null||(_0x4ad406=_0x4ad406[_0x2eb7b8(0xbe)])==null?void 0x0:_0x4ad406[_0x2eb7b8(0xfd)](_0x408831=>{const _0x16d21d=_0x2eb7b8;let _0x4da88f=_0x2a1a77(_0x408831);return _0x17bb25['startOffset']===_0x17bb25[_0x16d21d(0xff)]?_0x10db6c(_0x4da88f,_0x2e96ed):_0x5234f8(_0x4da88f,_0x2e96ed);});}function ct(_0x36ab72){const _0x54f5ad=_0x2efb50;return _0x36ab72[_0x54f5ad(0xc0)]===_0x36ab72[_0x54f5ad(0xff)]?_0x36ab72[_0x54f5ad(0xc0)]:_0x36ab72['startOffset']+0x1;}function lt(_0x80af4f){const _0x199f85=_0x2efb50;var _0x1628e1,_0x7ad65f,_0x5d884d;let _0x1bac63=G(_0x80af4f);if(!_0x1bac63)return null;let _0xb869e1=_0x80af4f['get'](_0x4b72a3)[_0x199f85(0xe7)](_0x727df5[_0x199f85(0x112)]),_0x192c34=_0xb869e1==null?void 0x0:_0xb869e1['getBody']();return _0x192c34?(_0x1628e1=_0x364499['range'][_0x199f85(0xf7)](_0x1bac63,(_0x7ad65f=_0x192c34[_0x199f85(0x116)])==null?[]:_0x7ad65f,(_0x5d884d=_0x192c34[_0x199f85(0x139)])==null?'':_0x5d884d)[0x0])==null?null:_0x1628e1:null;}function ut(_0x10acd4,_0x3b4ca8){const _0x1d0243=_0x2efb50;let _0x48a408=_0x10acd4[_0x1d0243(0xec)],_0xcab6c=_0x3b4ca8[_0x1d0243(0xec)],_0x1e6855=_0x54c010(_0x48a408,_0xcab6c);return[_0x1e6855&&_0xcab6c?dt(_0xcab6c,_0x1e6855):null,_0x1e6855?null:ft(_0x48a408,_0xcab6c)][_0x1d0243(0x119)](Boolean)[_0x1d0243(0xb0)]((_0x324817,_0x1e7601)=>_0x1a6531[_0x1d0243(0x147)](_0x324817,_0x1e7601),null);}function dt(_0x492945,_0x7f19a0){const _0x4afcc1=_0x2efb50;let _0xfad2a5=new _0x5e8a72();return _0xfad2a5['retain'](_0x7f19a0[_0x4afcc1(0x12a)]),_0x7f19a0[_0x4afcc1(0xe1)]>0x0&&_0xfad2a5[_0x4afcc1(0x146)](_0x7f19a0[_0x4afcc1(0xe1)],_0x139c29(_0x492945,_0x7f19a0[_0x4afcc1(0x12a)],_0x7f19a0[_0x4afcc1(0x12a)]+_0x7f19a0[_0x4afcc1(0xe1)],!0x1)),_0x7f19a0['deleteLength']>0x0&&_0xfad2a5[_0x4afcc1(0xc7)](_0x7f19a0[_0x4afcc1(0x114)]),_0x1a6531[_0x4afcc1(0xd2)]()[_0x4afcc1(0xe5)](_0xfad2a5[_0x4afcc1(0xdd)](),[_0x4afcc1(0xec)]);}function ft(_0x7b3da0,_0x36cb87){const _0x2ce1a3=_0x2efb50;let _0x2f820a=[],_0x4d41b2=_0x7b3da0?mt(_0x7b3da0):void 0x0,_0x4079d1=_0x36cb87?mt(_0x36cb87):void 0x0;for(let _0x2a0a90 of pt)K(_0x1a6531[_0x2ce1a3(0xd2)](),['body',_0x2a0a90],_0x4d41b2==null?void 0x0:_0x4d41b2[_0x2a0a90],_0x4079d1==null?void 0x0:_0x4079d1[_0x2a0a90],_0x2f820a);return _0x2f820a[_0x2ce1a3(0xb0)]((_0x433681,_0x2742a0)=>_0x1a6531[_0x2ce1a3(0x147)](_0x433681,_0x2742a0),null);}const pt=[_0x2efb50(0x116),_0x2efb50(0xb6),_0x2efb50(0xb3),_0x2efb50(0xd9),_0x2efb50(0xbe),_0x2efb50(0xc8),_0x2efb50(0xcc),'customDecorations',_0x2efb50(0xea)];function mt(_0xf9b96e){return _0xf9b96e;}function K(_0xdf0364,_0x403ae4,_0x1567ed,_0x1b9160,_0x4ed876){const _0xf93fe2=_0x2efb50;if(!J(_0x1567ed,_0x1b9160)){if(_0x1567ed==null){_0x4ed876[_0xf93fe2(0x14b)](_0xdf0364[_0xf93fe2(0x10e)](_0x403ae4,_0x1b9160));return;}if(_0x1b9160==null){_0x4ed876[_0xf93fe2(0x14b)](_0xdf0364['removeOp'](_0x403ae4,_0x1567ed));return;}if(Array['isArray'](_0x1567ed)&&Array['isArray'](_0x1b9160)){ht(_0xdf0364,_0x403ae4,_0x1567ed,_0x1b9160,_0x4ed876);return;}if(q(_0x1567ed)&&q(_0x1b9160)){new Set([...Object[_0xf93fe2(0xeb)](_0x1567ed),...Object[_0xf93fe2(0xeb)](_0x1b9160)])[_0xf93fe2(0x12b)](_0x95db9c=>{K(_0xdf0364,[..._0x403ae4,_0x95db9c],_0x1567ed[_0x95db9c],_0x1b9160[_0x95db9c],_0x4ed876);});return;}_0x4ed876[_0xf93fe2(0x14b)](_0xdf0364[_0xf93fe2(0x129)](_0x403ae4,_0x1567ed,_0x1b9160));}}function ht(_0x1fdb55,_0x594dcf,_0x36e36f,_0x5b73db,_0x41db76){const _0x5b5e5b=_0x2efb50;if(_0x36e36f[_0x5b5e5b(0xcd)]===_0x5b73db[_0x5b5e5b(0xcd)]){_0x36e36f['forEach']((_0x4487c4,_0x204782)=>K(_0x1fdb55,[..._0x594dcf,_0x204782],_0x4487c4,_0x5b73db[_0x204782],_0x41db76));return;}let _0x293eda=0x0;for(;_0x293eda<_0x36e36f[_0x5b5e5b(0xcd)]&&_0x293eda<_0x5b73db['length']&&J(_0x36e36f[_0x293eda],_0x5b73db[_0x293eda]);)_0x293eda++;let _0x3e30b1=_0x36e36f[_0x5b5e5b(0xcd)]-0x1,_0x1f4308=_0x5b73db[_0x5b5e5b(0xcd)]-0x1;for(;_0x3e30b1>=_0x293eda&&_0x1f4308>=_0x293eda&&J(_0x36e36f[_0x3e30b1],_0x5b73db[_0x1f4308]);)_0x3e30b1--,_0x1f4308--;for(let _0x511a41=_0x3e30b1;_0x511a41>=_0x293eda;_0x511a41--)_0x41db76[_0x5b5e5b(0x14b)](_0x1fdb55[_0x5b5e5b(0xdf)]([..._0x594dcf,_0x511a41],_0x36e36f[_0x511a41]));for(let _0x3a43ab=_0x293eda;_0x3a43ab<=_0x1f4308;_0x3a43ab++)_0x41db76[_0x5b5e5b(0x14b)](_0x1fdb55[_0x5b5e5b(0x10e)]([..._0x594dcf,_0x3a43ab],_0x5b73db[_0x3a43ab]));}function q(_0x44292b){const _0x4708cc=_0x2efb50;return typeof _0x44292b==_0x4708cc(0x13a)&&!!_0x44292b&&!Array[_0x4708cc(0xf8)](_0x44292b);}function J(_0x5ae4df,_0x1acab4){const _0x2fed35=_0x2efb50;return JSON[_0x2fed35(0x152)](_0x5ae4df)===JSON[_0x2fed35(0x152)](_0x1acab4);}function Y(_0x157d43,_0xe79597,_0x2d08fe,_0x133a88,_0xe2a366,_0x15b77b,_0x577c12){const _0x134f79=_0x2efb50;let _0x37942d=ut(_0x133a88,_0xe2a366);return _0x37942d?!!_0x157d43[_0x134f79(0x12e)](_0x50260d['id'],{'unitId':_0x2d08fe,'actions':_0x37942d,'textRanges':[{'startOffset':_0x577c12,'endOffset':_0x577c12,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x15b77b}):(_0xe79597[_0x134f79(0x12d)]([{'startOffset':_0x577c12,'endOffset':_0x577c12}],{'unitId':_0x2d08fe,'subUnitId':_0x2d08fe},!0x1),!0x0);}const X=_0x2efb50(0x14f);var gt='@univerjs-pro/docs-code',_t='1.0.0-alpha.4';const vt={};function Z(_0x280bf0,_0x3505db){return function(_0x3d4522,_0x3ee104){_0x3505db(_0x3d4522,_0x3ee104,_0x280bf0);};}function yt(_0x4ae12a,_0x221994,_0xa2a068,_0x478c99){const _0x18796d=_0x2efb50;var _0x443b67=arguments[_0x18796d(0xcd)],_0x246688=_0x443b67<0x3?_0x221994:_0x478c99===null?_0x478c99=Object[_0x18796d(0xcb)](_0x221994,_0xa2a068):_0x478c99,_0x349987;if(typeof Reflect==_0x18796d(0x13a)&&typeof Reflect['decorate']==_0x18796d(0x134))_0x246688=Reflect['decorate'](_0x4ae12a,_0x221994,_0xa2a068,_0x478c99);else{for(var _0x33fc99=_0x4ae12a[_0x18796d(0xcd)]-0x1;_0x33fc99>=0x0;_0x33fc99--)(_0x349987=_0x4ae12a[_0x33fc99])&&(_0x246688=(_0x443b67<0x3?_0x349987(_0x246688):_0x443b67>0x3?_0x349987(_0x221994,_0xa2a068,_0x246688):_0x349987(_0x221994,_0xa2a068))||_0x246688);}return _0x443b67>0x3&&_0x246688&&Object[_0x18796d(0xaf)](_0x221994,_0xa2a068,_0x246688),_0x246688;}let Q=class extends _0x548644{constructor(_0x569cfa,_0x26a7c5){const _0x37c96b=_0x2efb50;super(),this[_0x37c96b(0xf6)]=_0x569cfa,this[_0x37c96b(0xf3)]=_0x26a7c5,this['_initResource']();}[_0x2efb50(0xc9)](){const _0x453aad=_0x2efb50;this[_0x453aad(0xed)](this['_resourceManagerService'][_0x453aad(0xc3)]({'pluginName':X,'businesses':[_0x727df5[_0x453aad(0x112)]],'toJson':_0x5972de=>JSON[_0x453aad(0x152)](this[_0x453aad(0xf3)][_0x453aad(0xdd)](_0x5972de)),'parseJson':_0x27fa62=>x(JSON[_0x453aad(0xe8)](_0x27fa62)),'onLoad':(_0x455cfd,_0xb478df)=>this['_docsCodeModel']['deserialize'](_0x455cfd,_0xb478df),'onUnLoad':_0x5d0cf0=>this['_docsCodeModel']['removeUnit'](_0x5d0cf0)}));}};Q=yt([Z(0x0,_0x5b26a5),Z(0x1,_0x8efd81(z))],Q);let $=class extends _0x5a1391{constructor(_0x12da37=vt,_0x20b4d4,_0x56fe53,_0x391c76){const _0xed794f=_0x2efb50;super(),this['_config']=_0x12da37,this[_0xed794f(0x13f)]=_0x20b4d4,this[_0xed794f(0xf2)]=_0x56fe53,this[_0xed794f(0x11d)]=_0x391c76;let {..._0x7b1530}=_0x5d9446({},vt,this[_0xed794f(0x14d)]);this[_0xed794f(0x11d)]['setConfig']('docs-code.config',_0x7b1530);}[_0x2efb50(0xb4)](){const _0x23db06=_0x2efb50;this[_0x23db06(0x13f)]['add']([z]),this[_0x23db06(0x13f)][_0x23db06(0x115)]([Q]),this[_0x23db06(0x13f)][_0x23db06(0x145)](z),this[_0x23db06(0x13f)][_0x23db06(0x145)](Q),[B,nt,it,V,H,at,U,rt]['forEach'](_0x18eccf=>this['disposeWithMe'](this[_0x23db06(0xf2)][_0x23db06(0xdb)](_0x18eccf)));}};R($,_0x2efb50(0x108),X),R($,'packageName',gt),R($,_0x2efb50(0x10f),_t),R($,_0x2efb50(0xfc),_0x727df5[_0x2efb50(0x112)]),$=yt([_0x3b5fed(_0x14ed34,_0x33f3a6),Z(0x1,_0x8efd81(_0x232b49)),Z(0x2,_0x4c3a60),Z(0x3,_0x1c4ada)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};
1
+ const _0x1edc1f=_0x23a6;function _0x23a6(_0x5563f6,_0x426ced){_0x5563f6=_0x5563f6-0x1b6;const _0x8e7208=_0x8e72();let _0x23a61a=_0x8e7208[_0x5563f6];return _0x23a61a;}(function(_0x1953ae,_0x259e0d){const _0xce95f5=_0x23a6,_0x43d89e=_0x1953ae();while(!![]){try{const _0x272354=parseInt(_0xce95f5(0x206))/0x1+-parseInt(_0xce95f5(0x254))/0x2*(parseInt(_0xce95f5(0x1ce))/0x3)+-parseInt(_0xce95f5(0x1de))/0x4*(parseInt(_0xce95f5(0x1ed))/0x5)+-parseInt(_0xce95f5(0x1e5))/0x6*(parseInt(_0xce95f5(0x23e))/0x7)+parseInt(_0xce95f5(0x1e1))/0x8*(parseInt(_0xce95f5(0x256))/0x9)+-parseInt(_0xce95f5(0x1bc))/0xa+parseInt(_0xce95f5(0x20b))/0xb*(parseInt(_0xce95f5(0x1dd))/0xc);if(_0x272354===_0x259e0d)break;else _0x43d89e['push'](_0x43d89e['shift']());}catch(_0x118d37){_0x43d89e['push'](_0x43d89e['shift']());}}}(_0x8e72,0xcf039));import{BuildTextUtils as _0xfcd91,CommandType as _0x3aa002,DataStreamTreeTokenType as _0x43b06f,DependentOn as _0x2f1165,Disposable as _0x11f1e7,DocumentBlockRangeType as _0x37a99f,ICommandService as _0x1d61d6,IConfigService as _0x4a9167,IResourceManagerService as _0x50ae34,IUniverInstanceService as _0x45d141,Inject as _0x5c4b8b,Injector as _0x193e69,JSONX as _0x3e4a71,Plugin as _0x19b9cc,TextX as _0x37143f,UniverInstanceType as _0x41a83a,containsInteriorInsertionOffset as _0x52963d,containsStreamIndex as _0xf103f,createParagraphId as _0x5cfb3a,generateRandomId as _0x35a556,getBlockRangeInterval as _0x4a1bb2,getBodySliceForTextXAction as _0x2fb9bb,getParagraphContentStartOffset as _0x120216,getParagraphContentStartOffsets as _0xfa281d,getParagraphFollowingBlockOffset as _0x2be263,getSingleDataStreamChange as _0x1817eb,intersectsOperationalIntervals as _0x2f8ce5,merge as _0x559340,shiftExclusiveRangeOnDelete as _0x1c7981,shiftExclusiveRangeOnInsert as _0x2dea21,shiftInclusiveRangeOnDelete as _0x3a6def,shiftInclusiveRangeOnInsert as _0x5bff0d}from'@univerjs/core';import{DocSelectionManagerService as _0x2ed20d,RichTextEditingMutation as _0xc563fa,UniverDocsPlugin as _0x3f1e99,getContentInsertRange as _0x517640,isHeaderFooterSelection as _0xaf3991}from'@univerjs/docs';import{Subject as _0x3b77df}from'rxjs';import{UniverLicensePlugin as _0x4c3c74}from'@univerjs-pro/license';const ye={'language':_0x1edc1f(0x252),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function b(_0x307f11){return{...ye,..._0x307f11};}function x(_0x28cbb9){const _0x1c8662=_0x1edc1f;var _0x4f48cb;let _0xb2010d=(_0x4f48cb=_0x28cbb9==null?void 0x0:_0x28cbb9[_0x1c8662(0x1ec)])==null?{}:_0x4f48cb;return{'codes':Object[_0x1c8662(0x1f6)](Object[_0x1c8662(0x1c9)](_0xb2010d)['map'](([_0x4db315,_0x9f0254])=>[_0x4db315,b(_0x9f0254)]))};}function S(_0x38e080,_0x200d32,_0xf00307){const _0x25d111=_0x1edc1f;let _0x3bedf1=x(_0x38e080);return _0x3bedf1['codes'][_0x200d32]=b({..._0x3bedf1[_0x25d111(0x1ec)][_0x200d32],..._0xf00307}),_0x3bedf1;}function C(_0x20a188,_0x56154a){let _0x51484b=x(_0x20a188);return delete _0x51484b['codes'][_0x56154a],_0x51484b;}const be=_0x1edc1f(0x253);var w=class extends Error{constructor(_0xfbf296='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0xfbf296);}};function xe(_0x7f1a3f){const _0x5b9022=_0x1edc1f;var _0x284857,_0x2ae09d,_0x4a5043;let _0x7621eb=T(_0x7f1a3f[_0x5b9022(0x244)]),_0x56992c=D(_0x7621eb),_0x1987bb=Ce(_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)]),_0x4ce653=_0x1987bb?(_0x284857=_0x56992c['blockRanges'])==null?void 0x0:_0x284857[_0x5b9022(0x212)](_0xdfaf5e=>{const _0x3ec8ce=_0x5b9022;let _0x1ed206=_0x4a1bb2(_0xdfaf5e);return _0x1ed206[_0x3ec8ce(0x232)]===_0x1987bb['startOffset']&&_0x1ed206[_0x3ec8ce(0x1e3)]===_0x1987bb[_0x3ec8ce(0x1e3)];}):void 0x0,{startOffset:_0x508923,endOffset:_0x577321}=_0x4ce653?_0x1987bb:ze(_0x56992c,_0x7f1a3f[_0x5b9022(0x232)],_0x7f1a3f[_0x5b9022(0x1e3)],_0x7f1a3f[_0x5b9022(0x21b)]);if(!_0x4ce653&&we(_0x56992c,_0x508923,_0x577321))throw new w(_0x5b9022(0x1c6));let _0x3e20fa=He(_0x56992c,_0x508923,_0x577321),_0x2741d6=(_0x2ae09d=_0x4ce653==null?void 0x0:_0x4ce653[_0x5b9022(0x1e4)])==null?_0x7f1a3f[_0x5b9022(0x1e4)]:_0x2ae09d,_0x7585d5=S(_0x7f1a3f[_0x5b9022(0x247)],_0x2741d6,{...ye,..._0x7f1a3f[_0x5b9022(0x1c1)]});if(_0x4ce653)return _0x4ce653[_0x5b9022(0x210)]=_0x37a99f['CODE'],Se(_0x56992c,_0x508923,_0x577321),Pe(_0x56992c,_0x508923,_0x577321,_0x3e20fa),A(_0x56992c,_0x4ce653),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};if(_0x508923===_0x577321){var _0x38de6b,_0x167dc0;let _0xf03c04=''+_0x43b06f[_0x5b9022(0x251)]+_0x43b06f[_0x5b9022(0x202)]+_0x43b06f[_0x5b9022(0x241)];j(_0x56992c,_0x508923,_0xf03c04,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x5cfb3a(new Set((_0x38de6b=_0x56992c[_0x5b9022(0x1c7)])==null?void 0x0:_0x38de6b[_0x5b9022(0x200)](_0xc6777d=>_0xc6777d[_0x5b9022(0x214)]))),'paragraphStyle':Ne(!0x0,!0x0,_0x3e20fa)}],'blockRanges':[{'blockId':_0x2741d6,'blockType':_0x37a99f['CODE'],'startIndex':0x0,'endIndex':_0xf03c04[_0x5b9022(0x1d8)]-0x1}]});let _0x3d4e00=(_0x167dc0=_0x56992c['blockRanges'])==null?void 0x0:_0x167dc0[_0x5b9022(0x212)](_0x3fa19f=>_0x3fa19f['blockId']===_0x2741d6);return _0x3d4e00&&A(_0x56992c,_0x3d4e00),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}j(_0x56992c,_0x577321,_0x43b06f['BLOCK_END']),j(_0x56992c,_0x508923,_0x43b06f[_0x5b9022(0x251)]),Pe(_0x56992c,_0x508923,_0x577321+0x1,_0x3e20fa);let _0x3f12a0={'blockId':_0x2741d6,'blockType':_0x37a99f[_0x5b9022(0x1ca)],'startIndex':_0x508923,'endIndex':_0x577321+0x1};return _0x56992c[_0x5b9022(0x1ba)]=[...(_0x4a5043=_0x56992c[_0x5b9022(0x1ba)])==null?[]:_0x4a5043,_0x3f12a0][_0x5b9022(0x1ef)]((_0x1d97d5,_0x5b26b6)=>_0x1d97d5[_0x5b9022(0x209)]-_0x5b26b6[_0x5b9022(0x209)]),A(_0x56992c,_0x3f12a0),{'nextDocumentData':_0x7621eb,'nextMetadata':_0x7585d5,'cursorOffset':_0x508923+0x1};}function Se(_0x4fbf36,_0x21ff01,_0x7e8aac){const _0x23846b=_0x1edc1f;var _0x129efd;((_0x129efd=_0x4fbf36[_0x23846b(0x1c7)])==null?[]:_0x129efd)[_0x23846b(0x1c3)](_0x50d51d=>_0x50d51d[_0x23846b(0x209)]>_0x21ff01&&_0x50d51d[_0x23846b(0x209)]<_0x7e8aac)['forEach'](_0x4f4536=>{const _0x47fbfe=_0x23846b;var _0x15221b;let _0x121bc1={...(_0x15221b=_0x4f4536['paragraphStyle'])==null?{}:_0x15221b};delete _0x121bc1[_0x47fbfe(0x250)],delete _0x121bc1[_0x47fbfe(0x1d5)],_0x4f4536[_0x47fbfe(0x1f3)]=_0x121bc1;});}function Ce(_0x27ef0e,_0x411f04){const _0x3fc7ed=_0x1edc1f;return _0x27ef0e==null||_0x411f04==null||_0x27ef0e===_0x411f04?null:{'startOffset':Math[_0x3fc7ed(0x21d)](_0x27ef0e,_0x411f04),'endOffset':Math['max'](_0x27ef0e,_0x411f04)};}function we(_0x306450,_0x260541,_0x3dfe98){const _0xfe562f=_0x1edc1f;var _0x1475f7;return((_0x1475f7=_0x306450[_0xfe562f(0x1ba)])==null?[]:_0x1475f7)[_0xfe562f(0x22d)](_0xe29a2f=>{let _0x23a889=_0x4a1bb2(_0xe29a2f);return _0x260541===_0x3dfe98?_0x52963d(_0x23a889,_0x260541):_0x2f8ce5(_0x23a889,{'startOffset':_0x260541,'endOffset':_0x3dfe98});});}function Te(_0x3025ad){const _0x245eb3=_0x1edc1f;return{'nextDocumentData':T(_0x3025ad[_0x245eb3(0x244)]),'nextMetadata':S(_0x3025ad['metadata'],_0x3025ad[_0x245eb3(0x1e4)],_0x3025ad['config']),'cursorOffset':0x0};}function Ee(_0x797abf){const _0x59be64=_0x1edc1f;let _0x1fcc1a=T(_0x797abf[_0x59be64(0x244)]),_0x2bc488=D(_0x1fcc1a),_0x199f43=Ae(_0x2bc488,_0x797abf[_0x59be64(0x1e4)]);if(!_0x199f43)return null;let _0x1c0045=Le(_0x2bc488,_0x199f43);return{'nextDocumentData':_0x1fcc1a,'nextMetadata':C(_0x797abf[_0x59be64(0x247)],_0x797abf[_0x59be64(0x1e4)]),'cursorOffset':_0x1c0045};}function De(_0x4a339d){const _0x3b9e48=_0x1edc1f;var _0x42a2dd;let _0x3596c1=T(_0x4a339d['documentData']),_0x48dbbc=D(_0x3596c1),_0x3479a6=Ae(_0x48dbbc,_0x4a339d[_0x3b9e48(0x1e4)]);if(!_0x3479a6)return null;let _0x237fea=_0x4a1bb2(_0x3479a6);return M(_0x48dbbc,_0x237fea[_0x3b9e48(0x232)],_0x237fea['endOffset']),_0x48dbbc[_0x3b9e48(0x1ba)]=(_0x42a2dd=_0x48dbbc[_0x3b9e48(0x1ba)])==null?void 0x0:_0x42a2dd[_0x3b9e48(0x1c3)](_0x1472a3=>_0x1472a3['blockId']!==_0x4a339d[_0x3b9e48(0x1e4)]),{'nextDocumentData':_0x3596c1,'nextMetadata':C(_0x4a339d[_0x3b9e48(0x247)],_0x4a339d['blockId']),'cursorOffset':_0x3479a6[_0x3b9e48(0x209)]};}function Oe(_0x1a9080){const _0x1d5a9c=_0x1edc1f;let _0x4527a6=T(_0x1a9080[_0x1d5a9c(0x244)]),_0x492847=D(_0x4527a6),_0xc17f9d=Me(_0x492847,_0x1a9080[_0x1d5a9c(0x23f)]);return _0xc17f9d&&ke(_0x4527a6,_0x492847,_0xc17f9d,_0x1a9080[_0x1d5a9c(0x23f)],_0x1a9080[_0x1d5a9c(0x1d4)])||null;}function ke(_0x2d2570,_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9){const _0x3a120f=_0x1edc1f;let _0x40d752=Je(_0x52abab,_0x2cdcd0,_0xcd8894,_0x23bec9);if(!_0x40d752)return null;let _0x4bf4fe=_0x40d752[_0x3a120f(0x1e7)]-0x1;return M(_0x52abab,_0x40d752[_0x3a120f(0x20a)][_0x3a120f(0x209)],_0x40d752[_0x3a120f(0x20a)]['startIndex']+0x1),{'nextDocumentData':_0x2d2570,'cursorOffset':_0x4bf4fe};}function Ae(_0x489c95,_0x560fcd){const _0x3272a9=_0x1edc1f;var _0xb9996f;return _0x489c95==null||(_0xb9996f=_0x489c95[_0x3272a9(0x1ba)])==null?void 0x0:_0xb9996f[_0x3272a9(0x212)](_0xdc7ab5=>_0xdc7ab5['blockType']===_0x37a99f['CODE']&&_0xdc7ab5[_0x3272a9(0x1e4)]===_0x560fcd);}function je(_0x645ce5){const _0xaed9d0=_0x1edc1f;var _0x279075;let _0x304ce2=_0x645ce5[_0xaed9d0(0x244)][_0xaed9d0(0x1bf)];if(!_0x304ce2)return!0x1;let _0x60761b=_0x645ce5['direction']===_0xaed9d0(0x1b6)?_0x645ce5[_0xaed9d0(0x23f)]-0x1:_0x645ce5[_0xaed9d0(0x23f)],_0x14a22e=_0x645ce5[_0xaed9d0(0x1d9)]===_0xaed9d0(0x1fc)?_0x645ce5[_0xaed9d0(0x23f)]+0x1:_0x60761b;return((_0x279075=_0x304ce2[_0xaed9d0(0x1ba)])==null?[]:_0x279075)[_0xaed9d0(0x22d)](_0x3f72c6=>_0x3f72c6[_0xaed9d0(0x210)]===_0x37a99f[_0xaed9d0(0x1ca)]?_0x60761b===_0x3f72c6[_0xaed9d0(0x209)]||_0x60761b===_0x3f72c6['endIndex']||_0x14a22e===_0x3f72c6[_0xaed9d0(0x209)]||_0x14a22e===_0x3f72c6[_0xaed9d0(0x1c8)]:!0x1);}function Me(_0x28ca91,_0x2be5f1){var _0x187905;return(_0x187905=_0x28ca91['blockRanges'])==null?void 0x0:_0x187905['find'](_0x106f17=>{const _0x3f0a95=_0x23a6;let _0x441a14=k(_0x106f17);return _0x106f17[_0x3f0a95(0x210)]===_0x37a99f[_0x3f0a95(0x1ca)]&&_0x106f17[_0x3f0a95(0x209)]<=_0x2be5f1&&_0x2be5f1<=_0x441a14+0x2;});}function Ne(_0x5d3417,_0x240100,_0x1c7802=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5d3417&&_0x1c7802?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':be,'fs':0xc}};}function Pe(_0xa421fb,_0x2b1935,_0x52fa33,_0x1a15a0=!0x1){const _0x22720c=_0x1edc1f;var _0x7abf3d;let _0x11249c=((_0x7abf3d=_0xa421fb[_0x22720c(0x1c7)])==null?[]:_0x7abf3d)[_0x22720c(0x1c3)](_0xae4d76=>_0xae4d76[_0x22720c(0x209)]>_0x2b1935&&_0xae4d76[_0x22720c(0x209)]<_0x52fa33);_0x11249c[_0x22720c(0x258)]((_0x2833cc,_0x57ad5e)=>{const _0x32f090=_0x22720c;var _0xe8f4dc;_0x2833cc[_0x32f090(0x1f3)]={...(_0xe8f4dc=_0x2833cc[_0x32f090(0x1f3)])==null?{}:_0xe8f4dc,...Ne(_0x57ad5e===0x0,_0x57ad5e===_0x11249c['length']-0x1,_0x1a15a0)};});}function Fe(_0x5ec983){const _0x177b4d=_0x1edc1f;var _0x53e81e,_0x372e46;let _0x4e3dab={..._0x5ec983==null?{}:_0x5ec983};return delete _0x4e3dab[_0x177b4d(0x1cb)],delete _0x4e3dab[_0x177b4d(0x1d2)],delete _0x4e3dab['spaceAbove'],delete _0x4e3dab[_0x177b4d(0x1d5)],((_0x53e81e=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x53e81e['ff'])===be&&((_0x372e46=_0x4e3dab[_0x177b4d(0x1bd)])==null?void 0x0:_0x372e46['fs'])===0xc&&delete _0x4e3dab[_0x177b4d(0x1bd)],_0x4e3dab;}function Ie(_0x2ba1fe,_0x4eb7c3){const _0x3ebb31=_0x1edc1f;var _0x1f5fe3;let _0x22b3e9=k(_0x4eb7c3);return((_0x1f5fe3=_0x2ba1fe[_0x3ebb31(0x1c7)])==null?[]:_0x1f5fe3)['filter'](_0x5762eb=>_0x5762eb['startIndex']>_0x4eb7c3[_0x3ebb31(0x209)]&&_0x5762eb[_0x3ebb31(0x209)]<_0x22b3e9);}function Le(_0x41c8bc,_0x2196a2){const _0x2dbf3c=_0x1edc1f;var _0x43cc62;let _0x73b7ab=k(_0x2196a2);return Ie(_0x41c8bc,_0x2196a2)[_0x2dbf3c(0x258)](_0x26a0c1=>{const _0x4f6127=_0x2dbf3c;_0x26a0c1[_0x4f6127(0x1f3)]=Fe(_0x26a0c1[_0x4f6127(0x1f3)]);}),M(_0x41c8bc,_0x73b7ab,_0x73b7ab+0x1),M(_0x41c8bc,_0x2196a2[_0x2dbf3c(0x209)],_0x2196a2[_0x2dbf3c(0x209)]+0x1),_0x41c8bc['blockRanges']=(_0x43cc62=_0x41c8bc['blockRanges'])==null?void 0x0:_0x43cc62['filter'](_0x46b16e=>_0x46b16e[_0x2dbf3c(0x1e4)]!==_0x2196a2['blockId']),_0x2196a2[_0x2dbf3c(0x209)];}function T(_0x4e21ea){const _0x21f041=_0x1edc1f;return{..._0x4e21ea,'body':_0x4e21ea['body']?Re(_0x4e21ea[_0x21f041(0x1bf)]):_0x4e21ea[_0x21f041(0x1bf)]};}function Re(_0x474c38){const _0x2f6a46=_0x1edc1f;var _0x2f7a38,_0xa190d0,_0x5a0484,_0x16f43f,_0x521dc4,_0x2e53b0,_0x33fcba,_0xfadd5b,_0x443b8c;return{..._0x474c38,'paragraphs':(_0x2f7a38=_0x474c38['paragraphs'])==null?void 0x0:_0x2f7a38[_0x2f6a46(0x200)](_0xfbfec4=>({..._0xfbfec4,'bullet':E(_0xfbfec4[_0x2f6a46(0x22c)]),'paragraphStyle':E(_0xfbfec4['paragraphStyle'])})),'sectionBreaks':(_0xa190d0=_0x474c38[_0x2f6a46(0x1f2)])==null?void 0x0:_0xa190d0[_0x2f6a46(0x200)](_0x547762=>({..._0x547762})),'textRuns':(_0x5a0484=_0x474c38[_0x2f6a46(0x235)])==null?void 0x0:_0x5a0484['map'](_0x21c40b=>({..._0x21c40b})),'tables':(_0x16f43f=_0x474c38[_0x2f6a46(0x1b7)])==null?void 0x0:_0x16f43f[_0x2f6a46(0x200)](_0x1ddc7d=>({..._0x1ddc7d})),'columnGroups':(_0x521dc4=_0x474c38[_0x2f6a46(0x24c)])==null?void 0x0:_0x521dc4['map'](_0x1ca51e=>{const _0x3ba0e2=_0x2f6a46;var _0x4ee516;return{..._0x1ca51e,'columns':(_0x4ee516=_0x1ca51e[_0x3ba0e2(0x22e)])==null?void 0x0:_0x4ee516['map'](_0x3a047a=>E(_0x3a047a))};}),'blockRanges':(_0x2e53b0=_0x474c38[_0x2f6a46(0x1ba)])==null?void 0x0:_0x2e53b0[_0x2f6a46(0x200)](_0xe60677=>({..._0xe60677})),'customRanges':(_0x33fcba=_0x474c38['customRanges'])==null?void 0x0:_0x33fcba[_0x2f6a46(0x200)](_0x49d08f=>({..._0x49d08f})),'customDecorations':(_0xfadd5b=_0x474c38[_0x2f6a46(0x24f)])==null?void 0x0:_0xfadd5b['map'](_0x5ad929=>({..._0x5ad929})),'customBlocks':(_0x443b8c=_0x474c38[_0x2f6a46(0x1c4)])==null?void 0x0:_0x443b8c['map'](_0x256944=>({..._0x256944}))};}function E(_0x594720){const _0x2bd9ac=_0x1edc1f;return Array[_0x2bd9ac(0x215)](_0x594720)?_0x594720[_0x2bd9ac(0x200)](_0x51cb5c=>E(_0x51cb5c)):!_0x594720||typeof _0x594720!=_0x2bd9ac(0x1d0)?_0x594720:Object[_0x2bd9ac(0x1f6)](Object[_0x2bd9ac(0x1c9)](_0x594720)['map'](([_0x1e7ee8,_0x2f217d])=>[_0x1e7ee8,E(_0x2f217d)]));}function D(_0x23da4c){const _0x33d802=_0x1edc1f;if(!_0x23da4c[_0x33d802(0x1bf)])throw Error(_0x33d802(0x1dc));return _0x23da4c[_0x33d802(0x1bf)];}function ze(_0x1e2bce,_0x3295fa,_0x5c7f26,_0x4a0e7f='convert-paragraph'){const _0x301df6=_0x1edc1f;if(_0x3295fa==null||_0x5c7f26==null){let _0x2b733a=Ve(_0x1e2bce);return{'startOffset':_0x2b733a,'endOffset':_0x2b733a};}let _0x4d1e9a=Math[_0x301df6(0x21d)](_0x3295fa,_0x5c7f26),_0x179487=Math['max'](_0x3295fa,_0x5c7f26),_0x27816b=Ke(_0x1e2bce,_0x4d1e9a,_0x179487);return _0x4d1e9a===_0x179487?_0x4a0e7f===_0x301df6(0x23b)?{'startOffset':_0x4d1e9a,'endOffset':_0x179487}:Be(_0x1e2bce,_0x4d1e9a,_0x27816b):Ue(_0x1e2bce,_0x4d1e9a,_0x179487,_0x27816b);}function Be(_0x313d01,_0x4ab787,_0x1fd7e8){const _0x1b5f80=_0x1edc1f;let _0x14071c=We(_0x313d01,_0x4ab787);if(_0x14071c){let _0x1c5a35=O(_0x313d01,_0x14071c,_0x1fd7e8);if(_0x1c5a35<_0x14071c['startIndex'])return{'startOffset':_0x1c5a35,'endOffset':_0x1fd7e8?Math[_0x1b5f80(0x21d)](_0x14071c['startIndex']+0x1,_0x1fd7e8['endOffset']):_0x14071c[_0x1b5f80(0x209)]+0x1};}let _0x5e3b24=_0x4ab787===0x0&&_0x313d01[_0x1b5f80(0x213)][0x0]===_0x43b06f[_0x1b5f80(0x202)]?0x1:_0x4ab787;return{'startOffset':_0x5e3b24,'endOffset':_0x5e3b24};}function Ve(_0x4bd124){const _0x30a261=_0x1edc1f;return _0x4bd124[_0x30a261(0x213)]['endsWith'](_0x43b06f[_0x30a261(0x221)])?Math['max'](0x0,_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)]-0x1):_0x4bd124[_0x30a261(0x213)][_0x30a261(0x1d8)];}function He(_0x2772cd,_0x55222c,_0x3fa04a){const _0x57f7cd=_0x1edc1f;var _0x25893e;let _0x58d03f=Math['min'](_0x55222c,_0x3fa04a),_0x1e2a6f=Math[_0x57f7cd(0x255)](_0x55222c,_0x3fa04a);return!!((_0x25893e=_0x2772cd[_0x57f7cd(0x1b7)])!=null&&_0x25893e['some'](_0x1c9ab3=>_0x58d03f>_0x1c9ab3['startIndex']&&_0x58d03f<_0x1c9ab3['endIndex']||_0x1e2a6f>_0x1c9ab3['startIndex']&&_0x1e2a6f<_0x1c9ab3['endIndex']||_0x58d03f<=_0x1c9ab3[_0x57f7cd(0x209)]&&_0x1e2a6f>=_0x1c9ab3['endIndex']));}function Ue(_0x5caaa6,_0x37be9d,_0x4197d9,_0x3d98f7){const _0x222982=_0x1edc1f;var _0x5c03ad,_0x48d39a;let _0x2f18d3=[...(_0x5c03ad=_0x5caaa6[_0x222982(0x1c7)])==null?[]:_0x5c03ad]['sort']((_0x39e6c7,_0x58f275)=>_0x39e6c7['startIndex']-_0x58f275[_0x222982(0x209)]),_0x6d6f7c=_0xfa281d(_0x5caaa6),_0x1b0422=_0x2f18d3[_0x222982(0x212)](_0x511870=>O(_0x5caaa6,_0x511870,_0x3d98f7,_0x6d6f7c)<=_0x37be9d&&_0x37be9d<=_0x511870[_0x222982(0x209)]),_0x10e20f=(_0x48d39a=_0x2f18d3[_0x222982(0x212)](_0x1dae8f=>_0x1dae8f[_0x222982(0x209)]>=_0x4197d9-0x1))==null?_0x2f18d3[_0x2f18d3[_0x222982(0x1d8)]-0x1]:_0x48d39a;return{'startOffset':_0x1b0422?O(_0x5caaa6,_0x1b0422,_0x3d98f7,_0x6d6f7c):_0x37be9d,'endOffset':_0x10e20f?Ge(_0x10e20f,_0x3d98f7):_0x4197d9};}function We(_0x2cfd43,_0x30ae6b){const _0x555386=_0x1edc1f;var _0x574a76;let _0x407150=[...(_0x574a76=_0x2cfd43[_0x555386(0x1c7)])==null?[]:_0x574a76][_0x555386(0x1ef)]((_0x4ad069,_0x2d67a5)=>_0x4ad069[_0x555386(0x209)]-_0x2d67a5['startIndex']),_0x3072bf=_0xfa281d(_0x2cfd43);return _0x407150[_0x555386(0x212)](_0x34f090=>{const _0x1f3156=_0x555386;var _0x3954c2;return((_0x3954c2=_0x3072bf['get'](_0x34f090[_0x1f3156(0x209)]))==null?0x0:_0x3954c2)<=_0x30ae6b&&_0x30ae6b<=_0x34f090[_0x1f3156(0x209)];});}function O(_0x195e3c,_0x8b32e6,_0x29a97c,_0x43aa1f){const _0x4422f6=_0x1edc1f;var _0x29cb00;let _0x5f1912=(_0x29cb00=_0x43aa1f==null?void 0x0:_0x43aa1f[_0x4422f6(0x1c5)](_0x8b32e6[_0x4422f6(0x209)]))==null?_0x120216(_0x195e3c,_0x8b32e6):_0x29cb00;return _0x29a97c?Math['max'](_0x5f1912,_0x29a97c[_0x4422f6(0x232)]):_0x5f1912;}function _0x8e72(){const _0x39c2a7=['constructor','config','range','filter','customBlocks','get','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','paragraphs','endIndex','entries','CODE','indentEnd','_resourceManagerService','reduce','33414zhlrmf','delete','object','getUnit','indentStart','asObservable','paragraphStartIndex','spaceBelow','customRanges','clear','length','direction','syncExecuteCommand','docs-code.command.insert','Document\x20body\x20is\x20required','36cpAREC','32PQMKrg','prototype','getCurrentUnitOfType','3169592BrLEop','registerCommand','endOffset','blockId','125796jcPnRf','parse','endTokenOffset','dispose','_setResource','_resources','next','codes','624555AgKcGI','deserialize','sort','setConfig','getSnapshot','sectionBreaks','paragraphStyle','_initResource','_docsCodeModel','fromEntries','replaceDocRanges','docs-code.command.insert-below','getCodeConfig','removeUnit','nextMetadata','right','version','previousDocumentData','toPrimitive','map','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','insertOp','getParagraphsInRange','_configService','726450eooLjA','getUnitId','docs-code.command.cancel-empty-paragraph','startIndex','paragraph','8596379eAHdDC','insert','_change$','setCodeConfig','removeCode','blockType','set','find','dataStream','paragraphId','isArray','startTokenOffset','docs-code.command.remove','replaceOp','docs-code.command.update','slice','insertionMode','compose','min','symbol','insertLength','defineProperty','SECTION_BREAK','decorate','getTextRanges','_config','add','1.0.0-alpha.5','packageName','deleteLength','getInstance','pluginName','default','bullet','some','columns','TABLE_CELL_START','UNIVER_DOC','docs-code.command.consume-boundary-delete','startOffset','type','TABLE_CELL_END','textRuns','_injector','COMMAND','@univerjs-pro/docs-code','stringify','DOC_CODE_PLUGIN','insert-new','start','disposeWithMe','427rcytkD','cursorOffset','editOp','BLOCK_END','unitId','nextDocumentData','documentData','handler','function','metadata','retain','_commandService','keys','string','columnGroups','model','commandService','customDecorations','spaceAbove','BLOCK_START','javascript','monospace','102tsDXdL','max','18eXrUOc','push','forEach','left','tables','selectionManager','docs-code.config','blockRanges','getBody','1691340ekNFtK','textStyle','serialize','body'];_0x8e72=function(){return _0x39c2a7;};return _0x8e72();}function Ge(_0x293382,_0x4a7339){const _0x36c01d=_0x1edc1f;let _0x36086a=_0x293382['startIndex']+0x1;return _0x4a7339?Math[_0x36c01d(0x21d)](_0x36086a,_0x4a7339[_0x36c01d(0x1e3)]):_0x36086a;}function Ke(_0x51acc4,_0x4726ef,_0x122a9a){const _0x39e9be=_0x1edc1f;let _0x3451b8=qe(_0x51acc4,_0x4726ef),_0x282a9d=qe(_0x51acc4,_0x4726ef===_0x122a9a?_0x122a9a:Math[_0x39e9be(0x255)](_0x4726ef,_0x122a9a-0x1));if(!(!_0x3451b8&&!_0x282a9d)){if(!_0x3451b8||!_0x282a9d||_0x3451b8[_0x39e9be(0x216)]!==_0x282a9d[_0x39e9be(0x216)]||_0x3451b8[_0x39e9be(0x1e7)]!==_0x282a9d[_0x39e9be(0x1e7)])throw new w();return _0x3451b8;}}function qe(_0x327038,_0x244c8a){const _0x53ef0e=_0x1edc1f;let _0x1a9b4f=_0x327038[_0x53ef0e(0x213)],_0x44e4ca=-0x1;for(let _0x36c1b3=Math['min'](_0x244c8a,_0x1a9b4f['length']-0x1);_0x36c1b3>=0x0;_0x36c1b3--){let _0x565fd2=_0x1a9b4f[_0x36c1b3];if(_0x565fd2===_0x43b06f[_0x53ef0e(0x234)])return;if(_0x565fd2===_0x43b06f[_0x53ef0e(0x22f)]){_0x44e4ca=_0x36c1b3;break;}}if(_0x44e4ca<0x0)return;let _0x301ca3=_0x1a9b4f['indexOf'](_0x43b06f[_0x53ef0e(0x234)],_0x44e4ca+0x1);if(!(_0x301ca3<0x0||_0x244c8a<_0x44e4ca+0x1||_0x244c8a>_0x301ca3-0x1))return{'startOffset':_0x44e4ca+0x1,'endOffset':Math['max'](_0x44e4ca+0x1,_0x301ca3-0x1),'startTokenOffset':_0x44e4ca,'endTokenOffset':_0x301ca3};}function k(_0x1ceff5){const _0x3abe2e=_0x1edc1f;return _0x4a1bb2(_0x1ceff5)[_0x3abe2e(0x1e3)]-0x1;}function Je(_0x3cfc2b,_0x851298,_0x14102e,_0x44e5d1){const _0x591bfb=_0x1edc1f;var _0x3fc070;let _0x5dd03d=k(_0x851298),_0x334d6c=((_0x3fc070=_0x3cfc2b['paragraphs'])==null?[]:_0x3fc070)[_0x591bfb(0x212)](_0x1c9ad0=>_0x1c9ad0['startIndex']===_0x5dd03d+0x1);if(!_0x334d6c||_0x44e5d1!=null&&_0x334d6c[_0x591bfb(0x209)]!==_0x44e5d1||_0x14102e!=null&&(_0x14102e<_0x5dd03d||_0x14102e>_0x334d6c[_0x591bfb(0x209)]+0x1)||_0x3cfc2b[_0x591bfb(0x213)][_0x334d6c['startIndex']]!==_0x43b06f['PARAGRAPH'])return null;let _0x2edc6c=_0x120216(_0x3cfc2b,_0x334d6c),_0x386a2f=_0x3cfc2b[_0x591bfb(0x213)][_0x591bfb(0x21a)](_0x2edc6c,_0x334d6c[_0x591bfb(0x209)]);return Array['from'](_0x386a2f)['every'](_0x28c881=>_0x28c881===_0x43b06f['BLOCK_END'])?{'paragraph':_0x334d6c,'endTokenOffset':_0x5dd03d}:null;}function A(_0x8b786,_0x1277d4){const _0x482353=_0x1edc1f;var _0x521d0f;let _0x71585c=k(_0x1277d4),_0x5272ee=_0x8b786[_0x482353(0x213)][_0x71585c+0x1];_0x5272ee!==_0x43b06f[_0x482353(0x221)]&&_0x5272ee!==void 0x0||j(_0x8b786,_0x71585c+0x1,_0x43b06f[_0x482353(0x202)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5cfb3a(new Set((_0x521d0f=_0x8b786[_0x482353(0x1c7)])==null?void 0x0:_0x521d0f[_0x482353(0x200)](_0x1f1ab3=>_0x1f1ab3[_0x482353(0x214)])))}]});}function j(_0x4e0ad8,_0x41ce78,_0x376913,_0x5a3652={}){const _0x923f57=_0x1edc1f;var _0x3dfb23,_0x156807;if(_0x376913){if(_0x4e0ad8[_0x923f57(0x213)]=''+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](0x0,_0x41ce78)+_0x376913+_0x4e0ad8[_0x923f57(0x213)][_0x923f57(0x21a)](_0x41ce78),Ye(_0x4e0ad8,_0x41ce78,_0x376913[_0x923f57(0x1d8)]),(_0x3dfb23=_0x5a3652[_0x923f57(0x1c7)])!=null&&_0x3dfb23['length']){var _0x560979;_0x4e0ad8['paragraphs']=[...(_0x560979=_0x4e0ad8['paragraphs'])==null?[]:_0x560979,..._0x5a3652[_0x923f57(0x1c7)][_0x923f57(0x200)](_0x1e1138=>({..._0x1e1138,'startIndex':_0x1e1138[_0x923f57(0x209)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x581a7f,_0x493f48)=>_0x581a7f['startIndex']-_0x493f48[_0x923f57(0x209)]);}if((_0x156807=_0x5a3652['blockRanges'])!=null&&_0x156807['length']){var _0x5eb810;_0x4e0ad8[_0x923f57(0x1ba)]=[...(_0x5eb810=_0x4e0ad8[_0x923f57(0x1ba)])==null?[]:_0x5eb810,..._0x5a3652[_0x923f57(0x1ba)][_0x923f57(0x200)](_0x23af5b=>({..._0x23af5b,'startIndex':_0x23af5b[_0x923f57(0x209)]+_0x41ce78,'endIndex':_0x23af5b[_0x923f57(0x1c8)]+_0x41ce78}))][_0x923f57(0x1ef)]((_0x25efdc,_0x1aa5bc)=>_0x25efdc[_0x923f57(0x209)]-_0x1aa5bc[_0x923f57(0x209)]);}}}function M(_0x2107f2,_0x5a9d66,_0x605d1b){const _0xa9c126=_0x1edc1f;let _0x5efc7d=_0x605d1b-_0x5a9d66;_0x2107f2[_0xa9c126(0x213)]=''+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](0x0,_0x5a9d66)+_0x2107f2[_0xa9c126(0x213)][_0xa9c126(0x21a)](_0x605d1b),Xe(_0x2107f2,_0x5a9d66,_0x5efc7d);}function Ye(_0x27522b,_0x31bdb3,_0xe28e98){const _0xa52bbd=_0x1edc1f;_0x27522b[_0xa52bbd(0x1c7)]=N(_0x27522b[_0xa52bbd(0x1c7)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1f2)]=N(_0x27522b[_0xa52bbd(0x1f2)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1c4)]=N(_0x27522b[_0xa52bbd(0x1c4)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x235)]=Ze(_0x27522b[_0xa52bbd(0x235)],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1b7)]=Qe(_0x27522b['tables'],_0x31bdb3,_0xe28e98),_0x27522b['columnGroups']=F(_0x27522b['columnGroups'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1d6)]=F(_0x27522b['customRanges'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x24f)]=F(_0x27522b['customDecorations'],_0x31bdb3,_0xe28e98),_0x27522b[_0xa52bbd(0x1ba)]=F(_0x27522b[_0xa52bbd(0x1ba)],_0x31bdb3,_0xe28e98);}function Xe(_0x585b0f,_0x413ff8,_0x1662bf){const _0x32b9b2=_0x1edc1f;var _0x4a2d3a,_0x3af86f;_0x585b0f[_0x32b9b2(0x1c7)]=P(_0x585b0f[_0x32b9b2(0x1c7)],_0x413ff8,_0x1662bf),_0x585b0f['sectionBreaks']=P(_0x585b0f[_0x32b9b2(0x1f2)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1c4)]=P(_0x585b0f[_0x32b9b2(0x1c4)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x235)]=(_0x4a2d3a=$e((_0x3af86f=_0x585b0f[_0x32b9b2(0x235)])==null?void 0x0:_0x3af86f[_0x32b9b2(0x200)](_0x532b78=>({..._0x532b78,'startIndex':_0x532b78['st'],'endIndex':_0x532b78['ed']})),_0x413ff8,_0x1662bf))==null?void 0x0:_0x4a2d3a[_0x32b9b2(0x200)](_0x1304a0=>{let {startIndex:_0x4a4620,endIndex:_0x3eb96d,..._0x7b8602}=_0x1304a0;return{..._0x7b8602,'st':_0x4a4620,'ed':_0x3eb96d};}),_0x585b0f['tables']=$e(_0x585b0f[_0x32b9b2(0x1b7)],_0x413ff8,_0x1662bf),_0x585b0f['columnGroups']=I(_0x585b0f['columnGroups'],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1d6)]=I(_0x585b0f[_0x32b9b2(0x1d6)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x24f)]=I(_0x585b0f[_0x32b9b2(0x24f)],_0x413ff8,_0x1662bf),_0x585b0f[_0x32b9b2(0x1ba)]=I(_0x585b0f[_0x32b9b2(0x1ba)],_0x413ff8,_0x1662bf);}function N(_0x173330,_0x576081,_0x398334){const _0x11ab3e=_0x1edc1f;return _0x173330==null?void 0x0:_0x173330[_0x11ab3e(0x200)](_0x2b2737=>_0x2b2737[_0x11ab3e(0x209)]>=_0x576081?{..._0x2b2737,'startIndex':_0x2b2737[_0x11ab3e(0x209)]+_0x398334}:_0x2b2737);}function P(_0x4362bb,_0x2d3740,_0x42bbb5){const _0x231117=_0x1edc1f;let _0x5e213c=_0x2d3740+_0x42bbb5;return _0x4362bb==null?void 0x0:_0x4362bb[_0x231117(0x200)](_0x44647f=>_0x44647f[_0x231117(0x209)]>=_0x2d3740&&_0x44647f[_0x231117(0x209)]<_0x5e213c?null:_0x44647f['startIndex']>=_0x5e213c?{..._0x44647f,'startIndex':_0x44647f[_0x231117(0x209)]-_0x42bbb5}:_0x44647f)[_0x231117(0x1c3)](_0x38c18d=>_0x38c18d!=null);}function Ze(_0x28329,_0x135f68,_0x2921a6){const _0x266ff6=_0x1edc1f;return _0x28329==null?void 0x0:_0x28329[_0x266ff6(0x200)](_0x5ad48=>_0x5ad48['st']>=_0x135f68?{..._0x5ad48,'st':_0x5ad48['st']+_0x2921a6,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48['ed']>_0x135f68?{..._0x5ad48,'ed':_0x5ad48['ed']+_0x2921a6}:_0x5ad48);}function F(_0x9f8b7c,_0x49427f,_0x3614a6){const _0x5e982f=_0x1edc1f;return _0x9f8b7c==null?void 0x0:_0x9f8b7c[_0x5e982f(0x200)](_0x204faf=>_0x5bff0d(_0x204faf,_0x49427f,_0x3614a6));}function Qe(_0x41a0fc,_0x17fe16,_0x5c4771){const _0x1e168b=_0x1edc1f;return _0x41a0fc==null?void 0x0:_0x41a0fc[_0x1e168b(0x200)](_0x52cb67=>_0x2dea21(_0x52cb67,_0x17fe16,_0x5c4771));}function I(_0x5b7bca,_0x4e2c5b,_0x305bce){const _0x5a5875=_0x1edc1f;return _0x5b7bca==null?void 0x0:_0x5b7bca[_0x5a5875(0x200)](_0x54a1d4=>_0x3a6def(_0x54a1d4,_0x4e2c5b,_0x305bce))[_0x5a5875(0x1c3)](_0x5a48fc=>_0x5a48fc!=null);}function $e(_0x580c67,_0x3e38ae,_0x35be3f){const _0x9aad91=_0x1edc1f;return _0x580c67==null?void 0x0:_0x580c67[_0x9aad91(0x200)](_0x2ad4ad=>_0x1c7981(_0x2ad4ad,_0x3e38ae,_0x35be3f))['filter'](_0x17dfb4=>_0x17dfb4!=null);}function L(_0x3b899a){'@babel/helpers - typeof';return L=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x299715){return typeof _0x299715;}:function(_0x213cdf){const _0x4280e8=_0x23a6;return _0x213cdf&&typeof Symbol==_0x4280e8(0x246)&&_0x213cdf[_0x4280e8(0x1c0)]===Symbol&&_0x213cdf!==Symbol[_0x4280e8(0x1df)]?_0x4280e8(0x21e):typeof _0x213cdf;},L(_0x3b899a);}function et(_0x6d9f6e,_0x591df4){const _0x159597=_0x1edc1f;if(L(_0x6d9f6e)!=_0x159597(0x1d0)||!_0x6d9f6e)return _0x6d9f6e;var _0xe02695=_0x6d9f6e[Symbol[_0x159597(0x1ff)]];if(_0xe02695!==void 0x0){var _0x51aced=_0xe02695['call'](_0x6d9f6e,_0x591df4||_0x159597(0x22b));if(L(_0x51aced)!=_0x159597(0x1d0))return _0x51aced;throw TypeError(_0x159597(0x201));}return(_0x591df4===_0x159597(0x24b)?String:Number)(_0x6d9f6e);}function tt(_0x5131ee){const _0x6db2e1=_0x1edc1f;var _0x2762ca=et(_0x5131ee,_0x6db2e1(0x24b));return L(_0x2762ca)==_0x6db2e1(0x21e)?_0x2762ca:_0x2762ca+'';}function R(_0x52061a,_0x301eb9,_0x3666f7){const _0x5a7a91=_0x1edc1f;return(_0x301eb9=tt(_0x301eb9))in _0x52061a?Object[_0x5a7a91(0x220)](_0x52061a,_0x301eb9,{'value':_0x3666f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x52061a[_0x301eb9]=_0x3666f7,_0x52061a;}var z=class extends _0x11f1e7{constructor(..._0x4293ae){const _0xa9b073=_0x1edc1f;super(..._0x4293ae),R(this,_0xa9b073(0x1ea),new Map()),R(this,'_change$',new _0x3b77df()),R(this,'change$',this['_change$'][_0xa9b073(0x1d3)]());}[_0x1edc1f(0x1f9)](_0x137ef2,_0x573a48){const _0x6ba313=_0x1edc1f;return x(this[_0x6ba313(0x1ea)][_0x6ba313(0x1c5)](_0x137ef2))[_0x6ba313(0x1ec)][_0x573a48];}[_0x1edc1f(0x20e)](_0x59afdc,_0x48b802,_0x138a2a){const _0x47e1de=_0x1edc1f;this[_0x47e1de(0x1e9)](_0x59afdc,_0x48b802,S(this[_0x47e1de(0x1ea)][_0x47e1de(0x1c5)](_0x59afdc),_0x48b802,_0x138a2a));}[_0x1edc1f(0x20f)](_0x2b8a47,_0x17bdfd){const _0x52486f=_0x1edc1f;this[_0x52486f(0x1e9)](_0x2b8a47,_0x17bdfd,C(this['_resources']['get'](_0x2b8a47),_0x17bdfd));}['serialize'](_0x1127c7){const _0x36b5c4=_0x1edc1f;return x(this[_0x36b5c4(0x1ea)][_0x36b5c4(0x1c5)](_0x1127c7));}[_0x1edc1f(0x1ee)](_0x167424,_0x3c0f94){const _0x2805ee=_0x1edc1f;this[_0x2805ee(0x1ea)]['set'](_0x167424,x(_0x3c0f94)),this[_0x2805ee(0x20d)][_0x2805ee(0x1eb)]({'unitId':_0x167424});}[_0x1edc1f(0x1fa)](_0x11ab7f){const _0xa509e2=_0x1edc1f;this['_resources'][_0xa509e2(0x1cf)](_0x11ab7f),this[_0xa509e2(0x20d)][_0xa509e2(0x1eb)]({'unitId':_0x11ab7f});}[_0x1edc1f(0x1e8)](){const _0x687d96=_0x1edc1f;super['dispose'](),this[_0x687d96(0x1ea)][_0x687d96(0x1d7)](),this[_0x687d96(0x20d)]['complete']();}['_setResource'](_0x3222d2,_0x3d5508,_0x30019d){const _0x4fe003=_0x1edc1f;this[_0x4fe003(0x1ea)][_0x4fe003(0x211)](_0x3222d2,_0x30019d),this[_0x4fe003(0x20d)]['next']({'unitId':_0x3222d2,'blockId':_0x3d5508});}};const nt={'id':_0x1edc1f(0x1f8),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':_0x1299d4=>{const _0x6ca46c=_0x1edc1f;var _0x1cbe0f;if(_0xaf3991(G(_0x1299d4)))return!0x1;let _0x5de034=_0x517640(_0x1299d4);if(_0x5de034)return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)[_0x6ca46c(0x1da)](B['id'],{'startOffset':_0x5de034['startOffset'],'endOffset':_0x5de034[_0x6ca46c(0x1e3)],'insertionMode':_0x6ca46c(0x23b),'unitId':_0x5de034['unitId']});let _0x5b8e57=lt(_0x1299d4);if(!_0x5b8e57)return!0x1;let _0xd7e1ed=(_0x1cbe0f=_0x1299d4[_0x6ca46c(0x1c5)](_0x45d141)[_0x6ca46c(0x1e0)](_0x41a83a[_0x6ca46c(0x230)]))==null?void 0x0:_0x1cbe0f[_0x6ca46c(0x1bb)](),_0x4dc5a3=_0xd7e1ed?_0x2be263(_0xd7e1ed,_0x5b8e57):_0x5b8e57[_0x6ca46c(0x209)]+0x1;return _0x1299d4[_0x6ca46c(0x1c5)](_0x1d61d6)['syncExecuteCommand'](B['id'],{'startOffset':_0x4dc5a3,'endOffset':_0x4dc5a3});}},rt={'id':_0x1edc1f(0x231),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':()=>!0x0},B={'id':_0x1edc1f(0x1db),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x51d502,_0x5cbfc6)=>{const _0x2c49b1=_0x1edc1f;var _0x314c02;let _0x1c88e1=W(_0x51d502,_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x242)]);if(!_0x1c88e1)return!0x1;let _0x50f317=G(_0x51d502);if(_0xaf3991(_0x50f317))return!0x1;let _0x11a8b9=_0x1c88e1['model'][_0x2c49b1(0x1be)](_0x1c88e1['unitId']),_0x1f840f=ot(_0x5cbfc6,_0x50f317),_0x58d62b=st(_0x1c88e1['previousDocumentData'],_0x1f840f);if(_0x58d62b){if(_0x58d62b[_0x2c49b1(0x210)]!==_0x37a99f[_0x2c49b1(0x1ca)])return!0x1;let _0x45126f=Ee({'blockId':_0x58d62b[_0x2c49b1(0x1e4)],'documentData':_0x1c88e1[_0x2c49b1(0x1fe)],'metadata':_0x11a8b9});if(!_0x45126f)return!0x1;let _0x337949=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1[_0x2c49b1(0x1b8)],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x45126f[_0x2c49b1(0x243)],B['id'],_0x45126f['cursorOffset']);return _0x337949&&_0x45126f[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x45126f['nextMetadata']),_0x337949;}let _0x52408c=(_0x314c02=_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1e4)])==null?_0x35a556(0x6):_0x314c02,_0x22d24b;try{_0x22d24b=xe({'blockId':_0x52408c,'config':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x1c1)],'documentData':_0x1c88e1['previousDocumentData'],'endOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x1e3)],'insertionMode':_0x5cbfc6==null?void 0x0:_0x5cbfc6[_0x2c49b1(0x21b)],'metadata':_0x11a8b9,'startOffset':_0x1f840f==null?void 0x0:_0x1f840f[_0x2c49b1(0x232)]});}catch(_0x1a8da2){if(_0x1a8da2 instanceof w)return!0x1;throw _0x1a8da2;}let _0x21e3eb=Y(_0x1c88e1[_0x2c49b1(0x24e)],_0x1c88e1['selectionManager'],_0x1c88e1[_0x2c49b1(0x242)],_0x1c88e1[_0x2c49b1(0x1fe)],_0x22d24b[_0x2c49b1(0x243)],B['id'],_0x22d24b['cursorOffset']);return _0x21e3eb&&_0x22d24b[_0x2c49b1(0x1fb)]&&_0x1c88e1[_0x2c49b1(0x24d)][_0x2c49b1(0x1ee)](_0x1c88e1[_0x2c49b1(0x242)],_0x22d24b[_0x2c49b1(0x1fb)]),_0x21e3eb;}},it={'id':_0x1edc1f(0x219),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2b4099,_0x62152c)=>{const _0x427aa2=_0x1edc1f;if(!_0x62152c)return!0x1;let _0x1c4820=W(_0x2b4099,_0x62152c[_0x427aa2(0x242)]);if(!_0x1c4820)return!0x1;let _0xd96c8=Te({'blockId':_0x62152c[_0x427aa2(0x1e4)],'config':_0x62152c[_0x427aa2(0x1c1)],'documentData':_0x1c4820[_0x427aa2(0x1fe)],'metadata':_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1be)](_0x1c4820[_0x427aa2(0x242)])});return _0xd96c8[_0x427aa2(0x1fb)]&&_0x1c4820[_0x427aa2(0x24d)][_0x427aa2(0x1ee)](_0x1c4820[_0x427aa2(0x242)],_0xd96c8[_0x427aa2(0x1fb)]),!0x0;}},at={'id':'docs-code.command.exit','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x456bcb,_0x29383d)=>V[_0x1edc1f(0x245)](_0x456bcb,_0x29383d)},V={'id':'docs-code.command.unwrap','type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x133b58,_0x5a87dd)=>{const _0x476c71=_0x1edc1f;if(!_0x5a87dd)return!0x1;let _0x2c5dfe=W(_0x133b58,_0x5a87dd==null?void 0x0:_0x5a87dd[_0x476c71(0x242)]);if(!_0x2c5dfe)return!0x1;let _0x16d910=Ee({'blockId':_0x5a87dd[_0x476c71(0x1e4)],'documentData':_0x2c5dfe[_0x476c71(0x1fe)],'metadata':_0x2c5dfe[_0x476c71(0x24d)][_0x476c71(0x1be)](_0x2c5dfe[_0x476c71(0x242)])});if(!_0x16d910)return!0x1;let _0x5bd894=Y(_0x2c5dfe[_0x476c71(0x24e)],_0x2c5dfe[_0x476c71(0x1b8)],_0x2c5dfe[_0x476c71(0x242)],_0x2c5dfe[_0x476c71(0x1fe)],_0x16d910['nextDocumentData'],V['id'],_0x16d910['cursorOffset']);return _0x5bd894&&_0x16d910[_0x476c71(0x1fb)]&&_0x2c5dfe['model'][_0x476c71(0x1ee)](_0x2c5dfe[_0x476c71(0x242)],_0x16d910[_0x476c71(0x1fb)]),_0x5bd894;}},H={'id':_0x1edc1f(0x217),'type':_0x3aa002['COMMAND'],'handler':(_0x228bfb,_0x5b4858)=>{const _0x594854=_0x1edc1f;if(!_0x5b4858)return!0x1;let _0x365f56=W(_0x228bfb,_0x5b4858==null?void 0x0:_0x5b4858[_0x594854(0x242)]);if(!_0x365f56)return!0x1;let _0x116f05=De({'blockId':_0x5b4858['blockId'],'documentData':_0x365f56[_0x594854(0x1fe)],'metadata':_0x365f56[_0x594854(0x24d)][_0x594854(0x1be)](_0x365f56[_0x594854(0x242)])});if(!_0x116f05)return!0x1;let _0x4782bf=Y(_0x365f56[_0x594854(0x24e)],_0x365f56[_0x594854(0x1b8)],_0x365f56[_0x594854(0x242)],_0x365f56[_0x594854(0x1fe)],_0x116f05[_0x594854(0x243)],H['id'],_0x116f05[_0x594854(0x23f)]);return _0x4782bf&&_0x116f05[_0x594854(0x1fb)]&&_0x365f56['model']['deserialize'](_0x365f56['unitId'],_0x116f05[_0x594854(0x1fb)]),_0x4782bf;}},U={'id':_0x1edc1f(0x208),'type':_0x3aa002[_0x1edc1f(0x237)],'handler':(_0x2665c4,_0x492459)=>{const _0x1fb50d=_0x1edc1f;var _0x2358ee,_0x19c2dd;let _0x38ef90=W(_0x2665c4,_0x492459==null?void 0x0:_0x492459['unitId']);if(!_0x38ef90)return!0x1;let _0x4e4483=(_0x2358ee=_0x492459==null?void 0x0:_0x492459[_0x1fb50d(0x23f)])==null?(_0x19c2dd=G(_0x2665c4))==null?void 0x0:_0x19c2dd['startOffset']:_0x2358ee;if(_0x4e4483==null)return!0x1;let _0x1f1ebe=Oe({'cursorOffset':_0x4e4483,'documentData':_0x38ef90[_0x1fb50d(0x1fe)],'paragraphStartIndex':_0x492459==null?void 0x0:_0x492459['paragraphStartIndex']});return _0x1f1ebe?Y(_0x38ef90[_0x1fb50d(0x24e)],_0x38ef90[_0x1fb50d(0x1b8)],_0x38ef90[_0x1fb50d(0x242)],_0x38ef90['previousDocumentData'],_0x1f1ebe['nextDocumentData'],U['id'],_0x1f1ebe[_0x1fb50d(0x23f)]):!0x1;}};function W(_0x38bb69,_0x23551e){const _0x42c831=_0x1edc1f;let _0x7c4f2f=_0x38bb69[_0x42c831(0x1c5)](_0x45d141),_0x2c6831=_0x23551e?_0x7c4f2f[_0x42c831(0x1d1)](_0x23551e,_0x41a83a['UNIVER_DOC']):_0x7c4f2f[_0x42c831(0x1e0)](_0x41a83a[_0x42c831(0x230)]);return _0x2c6831?{'commandService':_0x38bb69[_0x42c831(0x1c5)](_0x1d61d6),'model':_0x38bb69[_0x42c831(0x1c5)](z),'previousDocumentData':_0x2c6831[_0x42c831(0x1f1)](),'selectionManager':_0x38bb69[_0x42c831(0x1c5)](_0x2ed20d),'unitId':_0x2c6831[_0x42c831(0x207)]()}:null;}function G(_0x3b88c5){const _0x5f526e=_0x1edc1f;var _0x59663d;return(_0x59663d=_0x3b88c5[_0x5f526e(0x1c5)](_0x2ed20d)[_0x5f526e(0x223)]())==null?void 0x0:_0x59663d[0x0];}function ot(_0x5434fd,_0x278b13){const _0x352e8a=_0x1edc1f;var _0x5ef020,_0xac05ce;let _0x134fcb=(_0x5ef020=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x232)])==null?_0x278b13==null?void 0x0:_0x278b13[_0x352e8a(0x232)]:_0x5ef020,_0xf21aba=(_0xac05ce=_0x5434fd==null?void 0x0:_0x5434fd[_0x352e8a(0x1e3)])==null?_0x278b13==null?void 0x0:_0x278b13['endOffset']:_0xac05ce;if(!(_0x134fcb==null||_0xf21aba==null))return{'endOffset':Math[_0x352e8a(0x255)](_0x134fcb,_0xf21aba),'startOffset':Math['min'](_0x134fcb,_0xf21aba)};}function st(_0x285f17,_0x425f11){const _0x1ccc35=_0x1edc1f;var _0xf9d1e9;if(!_0x425f11)return;let _0x42430f=ct(_0x425f11);return(_0xf9d1e9=_0x285f17[_0x1ccc35(0x1bf)])==null||(_0xf9d1e9=_0xf9d1e9[_0x1ccc35(0x1ba)])==null?void 0x0:_0xf9d1e9[_0x1ccc35(0x212)](_0x5a1c45=>{const _0x1622c0=_0x1ccc35;let _0x368919=_0x4a1bb2(_0x5a1c45);return _0x425f11[_0x1622c0(0x232)]===_0x425f11[_0x1622c0(0x1e3)]?_0x52963d(_0x368919,_0x42430f):_0xf103f(_0x368919,_0x42430f);});}function ct(_0x4469b9){const _0x1c95f9=_0x1edc1f;return _0x4469b9[_0x1c95f9(0x232)]===_0x4469b9['endOffset']?_0x4469b9[_0x1c95f9(0x232)]:_0x4469b9[_0x1c95f9(0x232)]+0x1;}function lt(_0x349823){const _0x49a036=_0x1edc1f;var _0x4132a8,_0x3ab5e5,_0x2a1833;let _0x169461=G(_0x349823);if(!_0x169461)return null;let _0x13c1c0=_0x349823['get'](_0x45d141)[_0x49a036(0x1e0)](_0x41a83a[_0x49a036(0x230)]),_0x3f5cc5=_0x13c1c0==null?void 0x0:_0x13c1c0['getBody']();return _0x3f5cc5?(_0x4132a8=_0xfcd91[_0x49a036(0x1c2)][_0x49a036(0x204)](_0x169461,(_0x3ab5e5=_0x3f5cc5['paragraphs'])==null?[]:_0x3ab5e5,(_0x2a1833=_0x3f5cc5['dataStream'])==null?'':_0x2a1833)[0x0])==null?null:_0x4132a8:null;}function ut(_0x4eedbd,_0x1617cd){const _0x58f9f3=_0x1edc1f;let _0x3aac93=_0x4eedbd[_0x58f9f3(0x1bf)],_0x1344ca=_0x1617cd[_0x58f9f3(0x1bf)],_0x7d55a5=_0x1817eb(_0x3aac93,_0x1344ca);return[_0x7d55a5&&_0x1344ca?dt(_0x1344ca,_0x7d55a5):null,_0x7d55a5?null:ft(_0x3aac93,_0x1344ca)][_0x58f9f3(0x1c3)](Boolean)[_0x58f9f3(0x1cd)]((_0x16d52a,_0x49e2fa)=>_0x3e4a71['compose'](_0x16d52a,_0x49e2fa),null);}function dt(_0x4433d9,_0x4f145c){const _0x233ddb=_0x1edc1f;let _0x2505dd=new _0x37143f();return _0x2505dd[_0x233ddb(0x248)](_0x4f145c[_0x233ddb(0x23c)]),_0x4f145c[_0x233ddb(0x21f)]>0x0&&_0x2505dd[_0x233ddb(0x20c)](_0x4f145c[_0x233ddb(0x21f)],_0x2fb9bb(_0x4433d9,_0x4f145c[_0x233ddb(0x23c)],_0x4f145c['start']+_0x4f145c[_0x233ddb(0x21f)],!0x1)),_0x4f145c[_0x233ddb(0x228)]>0x0&&_0x2505dd[_0x233ddb(0x1cf)](_0x4f145c[_0x233ddb(0x228)]),_0x3e4a71['getInstance']()[_0x233ddb(0x240)](_0x2505dd[_0x233ddb(0x1be)](),['body']);}function ft(_0x48fec7,_0x4c0831){const _0x4af238=_0x1edc1f;let _0x436df2=[],_0xb44f48=_0x48fec7?mt(_0x48fec7):void 0x0,_0x559897=_0x4c0831?mt(_0x4c0831):void 0x0;for(let _0xed924e of pt)K(_0x3e4a71[_0x4af238(0x229)](),['body',_0xed924e],_0xb44f48==null?void 0x0:_0xb44f48[_0xed924e],_0x559897==null?void 0x0:_0x559897[_0xed924e],_0x436df2);return _0x436df2['reduce']((_0x49ab30,_0x49244f)=>_0x3e4a71[_0x4af238(0x21c)](_0x49ab30,_0x49244f),null);}const pt=[_0x1edc1f(0x1c7),_0x1edc1f(0x1f2),_0x1edc1f(0x1b7),_0x1edc1f(0x24c),_0x1edc1f(0x1ba),_0x1edc1f(0x1c4),_0x1edc1f(0x1d6),_0x1edc1f(0x24f),_0x1edc1f(0x235)];function mt(_0x399380){return _0x399380;}function K(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e){const _0x52f1a0=_0x1edc1f;if(!J(_0x2b97b6,_0x18a0c8)){if(_0x2b97b6==null){_0x33f94e['push'](_0x2c2330[_0x52f1a0(0x203)](_0x87c84a,_0x18a0c8));return;}if(_0x18a0c8==null){_0x33f94e[_0x52f1a0(0x257)](_0x2c2330['removeOp'](_0x87c84a,_0x2b97b6));return;}if(Array[_0x52f1a0(0x215)](_0x2b97b6)&&Array['isArray'](_0x18a0c8)){ht(_0x2c2330,_0x87c84a,_0x2b97b6,_0x18a0c8,_0x33f94e);return;}if(q(_0x2b97b6)&&q(_0x18a0c8)){new Set([...Object[_0x52f1a0(0x24a)](_0x2b97b6),...Object['keys'](_0x18a0c8)])[_0x52f1a0(0x258)](_0x1feff9=>{K(_0x2c2330,[..._0x87c84a,_0x1feff9],_0x2b97b6[_0x1feff9],_0x18a0c8[_0x1feff9],_0x33f94e);});return;}_0x33f94e[_0x52f1a0(0x257)](_0x2c2330[_0x52f1a0(0x218)](_0x87c84a,_0x2b97b6,_0x18a0c8));}}function ht(_0x38fa16,_0x33ccba,_0x2e174c,_0x1990d4,_0x3960df){const _0x24448a=_0x1edc1f;if(_0x2e174c[_0x24448a(0x1d8)]===_0x1990d4[_0x24448a(0x1d8)]){_0x2e174c[_0x24448a(0x258)]((_0x26c010,_0x4702c2)=>K(_0x38fa16,[..._0x33ccba,_0x4702c2],_0x26c010,_0x1990d4[_0x4702c2],_0x3960df));return;}let _0x498ee4=0x0;for(;_0x498ee4<_0x2e174c[_0x24448a(0x1d8)]&&_0x498ee4<_0x1990d4[_0x24448a(0x1d8)]&&J(_0x2e174c[_0x498ee4],_0x1990d4[_0x498ee4]);)_0x498ee4++;let _0x30a2a6=_0x2e174c[_0x24448a(0x1d8)]-0x1,_0x479fcc=_0x1990d4[_0x24448a(0x1d8)]-0x1;for(;_0x30a2a6>=_0x498ee4&&_0x479fcc>=_0x498ee4&&J(_0x2e174c[_0x30a2a6],_0x1990d4[_0x479fcc]);)_0x30a2a6--,_0x479fcc--;for(let _0x24c9eb=_0x30a2a6;_0x24c9eb>=_0x498ee4;_0x24c9eb--)_0x3960df[_0x24448a(0x257)](_0x38fa16['removeOp']([..._0x33ccba,_0x24c9eb],_0x2e174c[_0x24c9eb]));for(let _0x1beb4e=_0x498ee4;_0x1beb4e<=_0x479fcc;_0x1beb4e++)_0x3960df['push'](_0x38fa16[_0x24448a(0x203)]([..._0x33ccba,_0x1beb4e],_0x1990d4[_0x1beb4e]));}function q(_0x56dcc6){const _0x5310ad=_0x1edc1f;return typeof _0x56dcc6==_0x5310ad(0x1d0)&&!!_0x56dcc6&&!Array[_0x5310ad(0x215)](_0x56dcc6);}function J(_0x1e0222,_0x3f5ec5){const _0x595e24=_0x1edc1f;return JSON[_0x595e24(0x239)](_0x1e0222)===JSON[_0x595e24(0x239)](_0x3f5ec5);}function Y(_0x52af4b,_0x3c6e8a,_0x3aeeac,_0x4ae4dc,_0xea0621,_0x5c7f74,_0x2ba5d5){const _0x465c4c=_0x1edc1f;let _0x48908d=ut(_0x4ae4dc,_0xea0621);return _0x48908d?!!_0x52af4b[_0x465c4c(0x1da)](_0xc563fa['id'],{'unitId':_0x3aeeac,'actions':_0x48908d,'textRanges':[{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x5c7f74}):(_0x3c6e8a[_0x465c4c(0x1f7)]([{'startOffset':_0x2ba5d5,'endOffset':_0x2ba5d5}],{'unitId':_0x3aeeac,'subUnitId':_0x3aeeac},!0x1),!0x0);}const X=_0x1edc1f(0x23a);var gt=_0x1edc1f(0x238),_t=_0x1edc1f(0x226);const vt={};function Z(_0x12d672,_0x53d951){return function(_0x1286b1,_0xc98794){_0x53d951(_0x1286b1,_0xc98794,_0x12d672);};}function yt(_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442){const _0x56e66a=_0x1edc1f;var _0x351313=arguments[_0x56e66a(0x1d8)],_0x28c126=_0x351313<0x3?_0x3f585c:_0x1b8442===null?_0x1b8442=Object['getOwnPropertyDescriptor'](_0x3f585c,_0x69d9a3):_0x1b8442,_0x524676;if(typeof Reflect==_0x56e66a(0x1d0)&&typeof Reflect[_0x56e66a(0x222)]==_0x56e66a(0x246))_0x28c126=Reflect[_0x56e66a(0x222)](_0x5d656f,_0x3f585c,_0x69d9a3,_0x1b8442);else{for(var _0x13ceb1=_0x5d656f[_0x56e66a(0x1d8)]-0x1;_0x13ceb1>=0x0;_0x13ceb1--)(_0x524676=_0x5d656f[_0x13ceb1])&&(_0x28c126=(_0x351313<0x3?_0x524676(_0x28c126):_0x351313>0x3?_0x524676(_0x3f585c,_0x69d9a3,_0x28c126):_0x524676(_0x3f585c,_0x69d9a3))||_0x28c126);}return _0x351313>0x3&&_0x28c126&&Object[_0x56e66a(0x220)](_0x3f585c,_0x69d9a3,_0x28c126),_0x28c126;}let Q=class extends _0x11f1e7{constructor(_0x38ac2b,_0x14d407){const _0x2f0bec=_0x1edc1f;super(),this[_0x2f0bec(0x1cc)]=_0x38ac2b,this[_0x2f0bec(0x1f5)]=_0x14d407,this[_0x2f0bec(0x1f4)]();}[_0x1edc1f(0x1f4)](){const _0x3222d1=_0x1edc1f;this[_0x3222d1(0x23d)](this['_resourceManagerService']['registerPluginResource']({'pluginName':X,'businesses':[_0x41a83a['UNIVER_DOC']],'toJson':_0x5e6d5d=>JSON[_0x3222d1(0x239)](this[_0x3222d1(0x1f5)][_0x3222d1(0x1be)](_0x5e6d5d)),'parseJson':_0x23f59e=>x(JSON[_0x3222d1(0x1e6)](_0x23f59e)),'onLoad':(_0x537f2c,_0x451d0b)=>this[_0x3222d1(0x1f5)][_0x3222d1(0x1ee)](_0x537f2c,_0x451d0b),'onUnLoad':_0xbdb392=>this['_docsCodeModel'][_0x3222d1(0x1fa)](_0xbdb392)}));}};Q=yt([Z(0x0,_0x50ae34),Z(0x1,_0x5c4b8b(z))],Q);let $=class extends _0x19b9cc{constructor(_0x3892b3=vt,_0x2e3095,_0x255e3e,_0x2b7c55){const _0x56b48e=_0x1edc1f;super(),this[_0x56b48e(0x224)]=_0x3892b3,this[_0x56b48e(0x236)]=_0x2e3095,this['_commandService']=_0x255e3e,this['_configService']=_0x2b7c55;let {..._0x27948e}=_0x559340({},vt,this[_0x56b48e(0x224)]);this[_0x56b48e(0x205)][_0x56b48e(0x1f0)](_0x56b48e(0x1b9),_0x27948e);}['onStarting'](){const _0x960035=_0x1edc1f;this[_0x960035(0x236)]['add']([z]),this[_0x960035(0x236)][_0x960035(0x225)]([Q]),this[_0x960035(0x236)][_0x960035(0x1c5)](z),this[_0x960035(0x236)]['get'](Q),[B,nt,it,V,H,at,U,rt][_0x960035(0x258)](_0x4247a0=>this[_0x960035(0x23d)](this[_0x960035(0x249)][_0x960035(0x1e2)](_0x4247a0)));}};R($,_0x1edc1f(0x22a),X),R($,_0x1edc1f(0x227),gt),R($,_0x1edc1f(0x1fd),_t),R($,_0x1edc1f(0x233),_0x41a83a['UNIVER_DOC']),$=yt([_0x2f1165(_0x4c3c74,_0x3f1e99),Z(0x1,_0x5c4b8b(_0x193e69)),Z(0x2,_0x1d61d6),Z(0x3,_0x4a9167)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,rt as DocsCodeConsumeBoundaryDeleteCommand,nt as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,z as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,it as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,Oe as buildCancelEmptyCodeParagraphActions,je as isCodeBoundaryDelete,b as normalizeDocsCodeConfig};