@univerjs-pro/docs-code 0.25.1 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x241f87=_0x29cf;(function(_0x18baa3,_0x55c35f){const _0x515468=_0x29cf,_0x21289d=_0x18baa3();while(!![]){try{const _0x3caab2=-parseInt(_0x515468(0x179))/0x1+-parseInt(_0x515468(0x17b))/0x2*(parseInt(_0x515468(0x132))/0x3)+-parseInt(_0x515468(0x162))/0x4+parseInt(_0x515468(0x158))/0x5+-parseInt(_0x515468(0x124))/0x6*(parseInt(_0x515468(0x17f))/0x7)+-parseInt(_0x515468(0x108))/0x8+parseInt(_0x515468(0x16d))/0x9*(parseInt(_0x515468(0x163))/0xa);if(_0x3caab2===_0x55c35f)break;else _0x21289d['push'](_0x21289d['shift']());}catch(_0x221454){_0x21289d['push'](_0x21289d['shift']());}}}(_0x4d6f,0x826f9));import{BuildTextUtils as _0x2498f1,CommandType as _0xf7d768,DataStreamTreeTokenType as _0x315efc,DependentOn as _0x419fa,Disposable as _0xbc666b,ICommandService as _0x18fc6a,IConfigService as _0x596c0d,IResourceManagerService as _0x5984a4,IUniverInstanceService as _0x34f6cb,Inject as _0x44b855,Injector as _0xbfc494,JSONX as _0x2a087c,Plugin as _0x114981,Tools as _0x13dd56,UniverInstanceType as _0x10c6fb,generateRandomId as _0x4c62b6,merge as _0x516f4d}from'@univerjs/core';import{DocSelectionManagerService as _0x7c5adf,RichTextEditingMutation as _0x26d8b3,UniverDocsPlugin as _0x23a9de}from'@univerjs/docs';import{DocContentInsertService as _0x1528b5}from'@univerjs/docs-ui';import{Subject as _0x2c84e7}from'rxjs';import{UniverLicensePlugin as _0x4ccab1}from'@univerjs-pro/license';const S='DOC_CODE_PLUGIN',C='code',w={'language':_0x241f87(0x134),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x5d116c){return{...w,..._0x5d116c};}function E(_0x4b7259){const _0x5b4895=_0x241f87;var _0x1148fb;let _0xe7b1c6=(_0x1148fb=_0x4b7259==null?void 0x0:_0x4b7259[_0x5b4895(0x14a)])==null?{}:_0x1148fb;return{'codes':Object[_0x5b4895(0x17d)](Object[_0x5b4895(0x12a)](_0xe7b1c6)[_0x5b4895(0x13d)](([_0x245a1f,_0x2d25b6])=>[_0x245a1f,T(_0x2d25b6)]))};}function D(_0x590f5c,_0x4af11e,_0x3d1e81){const _0x444219=_0x241f87;let _0xc4c0cf=E(_0x590f5c);return _0xc4c0cf[_0x444219(0x14a)][_0x4af11e]=T({..._0xc4c0cf[_0x444219(0x14a)][_0x4af11e],..._0x3d1e81}),_0xc4c0cf;}function te(_0xe58c86,_0xd36340){const _0x230283=_0x241f87;let _0x234959=E(_0xe58c86);return delete _0x234959[_0x230283(0x14a)][_0xd36340],_0x234959;}const ne=_0x241f87(0x184);function re(_0x288b3b){const _0x57892e=_0x241f87;var _0x3b053b,_0x32a3e,_0x3d1c75;let _0x29a168=A(_0x288b3b[_0x57892e(0x18b)]),_0x5baa45=j(_0x29a168),_0x77d76c=ae(_0x288b3b['startOffset'],_0x288b3b['endOffset']),_0x194c04=_0x77d76c?(_0x3b053b=_0x5baa45[_0x57892e(0x122)])==null?void 0x0:_0x3b053b['find'](_0x1f7eb5=>_0x1f7eb5[_0x57892e(0x187)]===_0x77d76c[_0x57892e(0x136)]&&_0x1f7eb5[_0x57892e(0x189)]+0x1===_0x77d76c[_0x57892e(0x131)]):void 0x0,{startOffset:_0x1387bb,endOffset:_0x43c269}=_0x194c04?_0x77d76c:ge(_0x5baa45,_0x288b3b[_0x57892e(0x136)],_0x288b3b[_0x57892e(0x131)]),_0x38619e=ve(_0x5baa45,_0x1387bb,_0x43c269),_0x43702=(_0x32a3e=_0x194c04==null?void 0x0:_0x194c04[_0x57892e(0x14c)])==null?_0x288b3b['blockId']:_0x32a3e,_0x6fddce=D(_0x288b3b[_0x57892e(0x13e)],_0x43702,{...w,..._0x288b3b[_0x57892e(0x15a)]});if(_0x194c04)return _0x194c04[_0x57892e(0x175)]=C,ie(_0x5baa45,_0x1387bb,_0x43c269),fe(_0x5baa45,_0x1387bb,_0x43c269,_0x38619e),{'nextDocumentData':_0x29a168,'nextMetadata':_0x6fddce,'cursorOffset':_0x1387bb+0x1};if(_0x1387bb===_0x43c269){let _0x58bd08=''+_0x315efc[_0x57892e(0x111)]+_0x315efc['PARAGRAPH']+_0x315efc[_0x57892e(0x17e)];return F(_0x5baa45,_0x1387bb,_0x58bd08,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x38619e)}],'blockRanges':[{'blockId':_0x43702,'blockType':C,'startIndex':0x0,'endIndex':_0x58bd08[_0x57892e(0x14f)]-0x1}]}),{'nextDocumentData':_0x29a168,'nextMetadata':_0x6fddce,'cursorOffset':_0x1387bb+0x1};}return F(_0x5baa45,_0x43c269,_0x315efc[_0x57892e(0x17e)]),F(_0x5baa45,_0x1387bb,_0x315efc[_0x57892e(0x111)]),fe(_0x5baa45,_0x1387bb,_0x43c269+0x1,_0x38619e),_0x5baa45[_0x57892e(0x122)]=[...(_0x3d1c75=_0x5baa45[_0x57892e(0x122)])==null?[]:_0x3d1c75,{'blockId':_0x43702,'blockType':C,'startIndex':_0x1387bb,'endIndex':_0x43c269+0x1}]['sort']((_0x457402,_0x1a4dd8)=>_0x457402[_0x57892e(0x187)]-_0x1a4dd8['startIndex']),{'nextDocumentData':_0x29a168,'nextMetadata':_0x6fddce,'cursorOffset':_0x1387bb+0x1};}function ie(_0x18ea96,_0x28c629,_0x2c47b2){const _0x37fdd3=_0x241f87;var _0x3a00b0;((_0x3a00b0=_0x18ea96[_0x37fdd3(0x123)])==null?[]:_0x3a00b0)[_0x37fdd3(0x13b)](_0x2d3b7d=>_0x2d3b7d[_0x37fdd3(0x187)]>_0x28c629&&_0x2d3b7d[_0x37fdd3(0x187)]<_0x2c47b2)['forEach'](_0x55a630=>{const _0x21d7da=_0x37fdd3;var _0x2f9718;let _0x4f831c={...(_0x2f9718=_0x55a630[_0x21d7da(0x16f)])==null?{}:_0x2f9718};delete _0x4f831c[_0x21d7da(0x188)],delete _0x4f831c[_0x21d7da(0x137)],_0x55a630[_0x21d7da(0x16f)]=_0x4f831c;});}function _0x29cf(_0x3b6b20,_0x4775b1){_0x3b6b20=_0x3b6b20-0x106;const _0x4d6fd0=_0x4d6f();let _0x29cf9d=_0x4d6fd0[_0x3b6b20];return _0x29cf9d;}function ae(_0x2c6d15,_0x593f02){const _0x3b4bd9=_0x241f87;return _0x2c6d15==null||_0x593f02==null||_0x2c6d15===_0x593f02?null:{'startOffset':Math[_0x3b4bd9(0x12d)](_0x2c6d15,_0x593f02),'endOffset':Math[_0x3b4bd9(0x113)](_0x2c6d15,_0x593f02)};}function O(_0x257326){const _0x2bbc0a=_0x241f87;return{'nextDocumentData':A(_0x257326['documentData']),'nextMetadata':D(_0x257326[_0x2bbc0a(0x13e)],_0x257326[_0x2bbc0a(0x14c)],_0x257326['config']),'cursorOffset':0x0};}function oe(_0x4596f2){const _0x336b97=_0x241f87;var _0x25f75d,_0xa5f548;let _0x301d8f=A(_0x4596f2[_0x336b97(0x18b)]),_0x1ee218=j(_0x301d8f),_0x11188b=de(_0x1ee218,_0x4596f2[_0x336b97(0x150)]);if(!_0x11188b)return null;let _0x3f376c=me(_0x1ee218,_0x11188b),_0x4a5aef=_0x3f376c[_0x3f376c[_0x336b97(0x14f)]-0x1];if(!_0x4a5aef||!he(_0x1ee218,_0x11188b,_0x4a5aef)||_0x4596f2[_0x336b97(0x150)]<_0x4a5aef[_0x336b97(0x187)])return null;let _0x200633=N(_0x1ee218,_0x11188b,_0x4a5aef);if(_0x200633>=_0x11188b[_0x336b97(0x189)])return null;_0x1ee218[_0x336b97(0x12b)]=[_0x1ee218[_0x336b97(0x12b)][_0x336b97(0x135)](0x0,_0x200633),_0x315efc['BLOCK_END'],_0x1ee218['dataStream'][_0x336b97(0x135)](_0x200633,_0x11188b['endIndex']),_0x1ee218['dataStream']['slice'](_0x11188b['endIndex']+0x1)][_0x336b97(0x11b)](''),B(_0x1ee218[_0x336b97(0x123)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),B(_0x1ee218[_0x336b97(0x13f)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),B(_0x1ee218[_0x336b97(0x133)],_0x200633,_0x11188b['endIndex'],0x1),Te(_0x1ee218[_0x336b97(0x110)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),V(_0x1ee218[_0x336b97(0x139)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),V(_0x1ee218['customRanges'],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),V(_0x1ee218[_0x336b97(0x146)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),(_0x25f75d=_0x1ee218['blockRanges'])==null||_0x25f75d[_0x336b97(0x167)](_0xa80d91=>{const _0x161f05=_0x336b97;_0xa80d91===_0x11188b||_0xa80d91[_0x161f05(0x14c)]===_0x11188b['blockId']?_0xa80d91[_0x161f05(0x189)]=_0x200633:_0xa80d91[_0x161f05(0x187)]>=_0x200633&&_0xa80d91['startIndex']<_0x11188b[_0x161f05(0x189)]&&(_0xa80d91[_0x161f05(0x187)]+=0x1,_0xa80d91[_0x161f05(0x189)]+=0x1);});let _0x1f1502=me(_0x1ee218,{..._0x11188b,'endIndex':_0x200633});_0x1f1502['forEach']((_0x1bebed,_0x34477b)=>{const _0x4de273=_0x336b97;var _0x421ef0;_0x1bebed['paragraphStyle']={...(_0x421ef0=_0x1bebed[_0x4de273(0x16f)])==null?{}:_0x421ef0,...k(_0x34477b===0x0,_0x34477b===_0x1f1502['length']-0x1)};});let _0x69f4ac=(_0xa5f548=_0x1ee218[_0x336b97(0x123)])==null?void 0x0:_0xa5f548['find'](_0x1daf4c=>_0x1daf4c['startIndex']===_0x200633+0x1);return _0x69f4ac&&(_0x69f4ac[_0x336b97(0x16f)]=pe(_0x69f4ac['paragraphStyle'])),{'nextDocumentData':_0x301d8f,'cursorOffset':_0x200633+0x1};}function se(_0x428621){const _0x151b1a=_0x241f87;let _0x557979=A(_0x428621[_0x151b1a(0x18b)]),_0x458dc1=j(_0x557979),_0x483045=de(_0x458dc1,_0x428621[_0x151b1a(0x150)]);return _0x483045&&ce(_0x557979,_0x458dc1,_0x483045,_0x428621[_0x151b1a(0x150)],_0x428621['paragraphStartIndex'])||null;}function ce(_0x388a55,_0x440e75,_0x3e7c42,_0x3461ce,_0x2482f4){const _0xe1c2e8=_0x241f87;let _0x4a6c24=be(_0x440e75,_0x3e7c42,_0x3461ce,_0x2482f4);if(!_0x4a6c24)return null;let _0x1853c0=_0x4a6c24[_0xe1c2e8(0x178)]-0x1;return xe(_0x440e75,_0x4a6c24[_0xe1c2e8(0x11c)][_0xe1c2e8(0x187)],_0x4a6c24['paragraph'][_0xe1c2e8(0x187)]+0x1),{'nextDocumentData':_0x388a55,'cursorOffset':_0x1853c0};}function le(_0x38020a,_0x3444f1){const _0x4ec846=_0x241f87;var _0xf3530;return _0x38020a==null||(_0xf3530=_0x38020a['blockRanges'])==null?void 0x0:_0xf3530[_0x4ec846(0x119)](_0x2267af=>_0x2267af[_0x4ec846(0x175)]===_0x4ec846(0x141)&&_0x2267af[_0x4ec846(0x187)]<=_0x3444f1&&_0x3444f1<=_0x2267af[_0x4ec846(0x189)]);}function ue(_0x225bc1){const _0x466c1b=_0x241f87;var _0x2a4c1a;let _0xf9ebce=_0x225bc1['documentData']['body'];if(!_0xf9ebce)return!0x1;let _0x636d4f=_0x225bc1['direction']==='left'?_0x225bc1[_0x466c1b(0x150)]-0x1:_0x225bc1[_0x466c1b(0x150)],_0x4c37c0=_0x225bc1[_0x466c1b(0x13a)]==='right'?_0x225bc1['cursorOffset']+0x1:_0x636d4f;return((_0x2a4c1a=_0xf9ebce[_0x466c1b(0x122)])==null?[]:_0x2a4c1a)[_0x466c1b(0x16a)](_0x9f9db=>_0x9f9db[_0x466c1b(0x175)]===_0x466c1b(0x141)?_0x636d4f===_0x9f9db[_0x466c1b(0x187)]||_0x636d4f===_0x9f9db[_0x466c1b(0x189)]||_0x4c37c0===_0x9f9db[_0x466c1b(0x187)]||_0x4c37c0===_0x9f9db['endIndex']:!0x1);}function de(_0x2060b3,_0x565982){const _0x530ce9=_0x241f87;var _0x1926c4;return(_0x1926c4=_0x2060b3[_0x530ce9(0x122)])==null?void 0x0:_0x1926c4[_0x530ce9(0x119)](_0x4cbd53=>{const _0x1818c1=_0x530ce9;let _0x119325=P(_0x2060b3,_0x4cbd53);return _0x4cbd53['blockType']===_0x1818c1(0x141)&&_0x4cbd53[_0x1818c1(0x187)]<=_0x565982&&_0x565982<=_0x119325+0x2;});}function k(_0x37958d,_0x4e708e,_0x5aa9e3=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x37958d&&_0x5aa9e3?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x37d869,_0x1692cb,_0x463046,_0x15c12b=!0x1){const _0x472c0c=_0x241f87;var _0x501c15;let _0x7a98c0=((_0x501c15=_0x37d869[_0x472c0c(0x123)])==null?[]:_0x501c15)[_0x472c0c(0x13b)](_0x593b1d=>_0x593b1d[_0x472c0c(0x187)]>_0x1692cb&&_0x593b1d[_0x472c0c(0x187)]<_0x463046);_0x7a98c0[_0x472c0c(0x167)]((_0x20412b,_0x2f22a0)=>{const _0x5da845=_0x472c0c;var _0x39750b;_0x20412b[_0x5da845(0x16f)]={...(_0x39750b=_0x20412b['paragraphStyle'])==null?{}:_0x39750b,...k(_0x2f22a0===0x0,_0x2f22a0===_0x7a98c0[_0x5da845(0x14f)]-0x1,_0x15c12b)};});}function pe(_0xbb6af6){const _0x215644=_0x241f87;var _0x3ead72,_0x112880;let _0x11c462={..._0xbb6af6==null?{}:_0xbb6af6};return delete _0x11c462[_0x215644(0x12c)],delete _0x11c462['indentStart'],delete _0x11c462[_0x215644(0x188)],delete _0x11c462['spaceBelow'],((_0x3ead72=_0x11c462[_0x215644(0x11d)])==null?void 0x0:_0x3ead72['ff'])===ne&&((_0x112880=_0x11c462[_0x215644(0x11d)])==null?void 0x0:_0x112880['fs'])===0xc&&delete _0x11c462['textStyle'],_0x11c462;}function me(_0x4890ae,_0x4ac798){const _0x4e0b20=_0x241f87;var _0x36efbd;let _0x406227=P(_0x4890ae,_0x4ac798);return((_0x36efbd=_0x4890ae[_0x4e0b20(0x123)])==null?[]:_0x36efbd)[_0x4e0b20(0x13b)](_0x1539bd=>_0x1539bd[_0x4e0b20(0x187)]>_0x4ac798[_0x4e0b20(0x187)]&&_0x1539bd[_0x4e0b20(0x187)]<_0x406227);}function he(_0x4a0298,_0x5345f1,_0x3ff7fe){const _0x1301d1=_0x241f87;let _0x18fd5f=N(_0x4a0298,_0x5345f1,_0x3ff7fe),_0x8e5dce=_0x4a0298[_0x1301d1(0x12b)][_0x1301d1(0x135)](_0x18fd5f,_0x3ff7fe[_0x1301d1(0x187)]);return Array[_0x1301d1(0x10b)](_0x8e5dce)[_0x1301d1(0x106)](_0x1f28bb=>_0x1f28bb===_0x315efc[_0x1301d1(0x111)]||_0x1f28bb===_0x315efc[_0x1301d1(0x17e)]);}function A(_0xd26f75){const _0x21f438=_0x241f87;return _0x13dd56[_0x21f438(0x176)](_0xd26f75);}function j(_0x3f52e9){const _0xa8ffb0=_0x241f87;if(!_0x3f52e9[_0xa8ffb0(0x170)])throw Error(_0xa8ffb0(0x10e));return _0x3f52e9[_0xa8ffb0(0x170)];}function ge(_0x5f88b9,_0x22dca7,_0x587920){const _0x206eed=_0x241f87;if(_0x22dca7==null||_0x587920==null){let _0x47afa2=_e(_0x5f88b9);return{'startOffset':_0x47afa2,'endOffset':_0x47afa2};}let _0x908976=Math[_0x206eed(0x12d)](_0x22dca7,_0x587920),_0x1f0527=Math[_0x206eed(0x113)](_0x22dca7,_0x587920);return _0x908976===_0x1f0527?{'startOffset':_0x908976,'endOffset':_0x908976}:ye(_0x5f88b9,_0x908976,_0x1f0527);}function _e(_0x119da6){const _0x101abb=_0x241f87;return _0x119da6['dataStream'][_0x101abb(0x159)](_0x315efc[_0x101abb(0x14d)])?Math['max'](0x0,_0x119da6[_0x101abb(0x12b)][_0x101abb(0x14f)]-0x1):_0x119da6['dataStream']['length'];}function ve(_0x42c820,_0x9ce8d9,_0x461bce){const _0x169810=_0x241f87;var _0x190bb7;let _0x4ab61b=Math['min'](_0x9ce8d9,_0x461bce),_0x5177a4=Math['max'](_0x9ce8d9,_0x461bce);return!!((_0x190bb7=_0x42c820[_0x169810(0x139)])!=null&&_0x190bb7[_0x169810(0x16a)](_0x30fa85=>_0x4ab61b>_0x30fa85[_0x169810(0x187)]&&_0x4ab61b<_0x30fa85[_0x169810(0x189)]||_0x5177a4>_0x30fa85['startIndex']&&_0x5177a4<_0x30fa85[_0x169810(0x189)]||_0x4ab61b<=_0x30fa85[_0x169810(0x187)]&&_0x5177a4>=_0x30fa85[_0x169810(0x189)]));}function ye(_0x206494,_0x370176,_0x102b57){const _0x396b91=_0x241f87;var _0x259b95,_0xb5ba3e;let _0x25676d=[...(_0x259b95=_0x206494[_0x396b91(0x123)])==null?[]:_0x259b95][_0x396b91(0x154)]((_0x573d85,_0x1336c4)=>_0x573d85[_0x396b91(0x187)]-_0x1336c4[_0x396b91(0x187)]),_0x1a8bee=_0x25676d[_0x396b91(0x119)]((_0x1a14ed,_0x1f2c35)=>(_0x1f2c35===0x0?0x0:_0x25676d[_0x1f2c35-0x1][_0x396b91(0x187)]+0x1)<=_0x370176&&_0x370176<=_0x1a14ed['startIndex']),_0x2b148b=(_0xb5ba3e=_0x25676d[_0x396b91(0x119)](_0x11f625=>_0x11f625['startIndex']>=_0x102b57-0x1))==null?_0x25676d[_0x25676d['length']-0x1]:_0xb5ba3e;return{'startOffset':_0x1a8bee?M(_0x25676d,_0x1a8bee):_0x370176,'endOffset':_0x2b148b?_0x2b148b['startIndex']+0x1:_0x102b57};}function M(_0x24b5ce,_0x5ce6cf){const _0x105a34=_0x241f87;let _0x3c531b=_0x24b5ce[_0x105a34(0x117)](_0x5ce6cf);return _0x3c531b>0x0?_0x24b5ce[_0x3c531b-0x1][_0x105a34(0x187)]+0x1:0x0;}function N(_0xfaa875,_0x331a9a,_0x1ad470){const _0x4a70b7=_0x241f87;var _0x426dad;return Math[_0x4a70b7(0x113)](M((_0x426dad=_0xfaa875['paragraphs'])==null?[]:_0x426dad,_0x1ad470),_0x331a9a[_0x4a70b7(0x187)]+0x1);}function P(_0x3e7eae,_0x1e581f){const _0x54ed3e=_0x241f87;return _0x3e7eae[_0x54ed3e(0x12b)][_0x1e581f[_0x54ed3e(0x189)]]===_0x315efc[_0x54ed3e(0x17e)]?_0x1e581f[_0x54ed3e(0x189)]:_0x3e7eae[_0x54ed3e(0x12b)][_0x1e581f[_0x54ed3e(0x189)]+0x1]===_0x315efc['BLOCK_END']?_0x1e581f[_0x54ed3e(0x189)]+0x1:_0x1e581f[_0x54ed3e(0x189)];}function be(_0x37ba8a,_0x4bc7b4,_0x2bb834,_0x44b9fa){const _0x4016cc=_0x241f87;var _0x162fa8,_0x4884b7;let _0x26ce20=P(_0x37ba8a,_0x4bc7b4),_0x3c9567=((_0x162fa8=_0x37ba8a[_0x4016cc(0x123)])==null?[]:_0x162fa8)['find'](_0x5748fc=>_0x5748fc['startIndex']===_0x26ce20+0x1);if(!_0x3c9567||_0x44b9fa!=null&&_0x3c9567[_0x4016cc(0x187)]!==_0x44b9fa||_0x2bb834<_0x26ce20||_0x2bb834>_0x3c9567[_0x4016cc(0x187)]+0x1||_0x37ba8a[_0x4016cc(0x12b)][_0x3c9567[_0x4016cc(0x187)]]!==_0x315efc[_0x4016cc(0x138)])return null;let _0x2902fb=M((_0x4884b7=_0x37ba8a[_0x4016cc(0x123)])==null?[]:_0x4884b7,_0x3c9567),_0x427e52=_0x37ba8a[_0x4016cc(0x12b)][_0x4016cc(0x135)](_0x2902fb,_0x3c9567['startIndex']);return Array[_0x4016cc(0x10b)](_0x427e52)[_0x4016cc(0x106)](_0x17f308=>_0x17f308===_0x315efc['BLOCK_END'])?{'paragraph':_0x3c9567,'endTokenOffset':_0x26ce20}:null;}function F(_0x32f537,_0xcf4c49,_0x2ec36e,_0x3859fa={}){const _0x3f6b1f=_0x241f87;var _0xb1057f,_0x41454b;if(_0x2ec36e){if(_0x32f537[_0x3f6b1f(0x12b)]=''+_0x32f537[_0x3f6b1f(0x12b)]['slice'](0x0,_0xcf4c49)+_0x2ec36e+_0x32f537[_0x3f6b1f(0x12b)][_0x3f6b1f(0x135)](_0xcf4c49),Se(_0x32f537,_0xcf4c49,_0x2ec36e['length']),(_0xb1057f=_0x3859fa[_0x3f6b1f(0x123)])!=null&&_0xb1057f[_0x3f6b1f(0x14f)]){var _0x5c35a1;_0x32f537[_0x3f6b1f(0x123)]=[...(_0x5c35a1=_0x32f537['paragraphs'])==null?[]:_0x5c35a1,..._0x3859fa[_0x3f6b1f(0x123)][_0x3f6b1f(0x13d)](_0x513e50=>({..._0x513e50,'startIndex':_0x513e50[_0x3f6b1f(0x187)]+_0xcf4c49}))]['sort']((_0x5ecf92,_0x40a814)=>_0x5ecf92[_0x3f6b1f(0x187)]-_0x40a814[_0x3f6b1f(0x187)]);}if((_0x41454b=_0x3859fa[_0x3f6b1f(0x122)])!=null&&_0x41454b[_0x3f6b1f(0x14f)]){var _0x3bf3e8;_0x32f537['blockRanges']=[...(_0x3bf3e8=_0x32f537[_0x3f6b1f(0x122)])==null?[]:_0x3bf3e8,..._0x3859fa['blockRanges'][_0x3f6b1f(0x13d)](_0x3f6255=>({..._0x3f6255,'startIndex':_0x3f6255['startIndex']+_0xcf4c49,'endIndex':_0x3f6255['endIndex']+_0xcf4c49}))]['sort']((_0x132f7d,_0x216e09)=>_0x132f7d[_0x3f6b1f(0x187)]-_0x216e09[_0x3f6b1f(0x187)]);}}}function xe(_0x49653c,_0x1a521d,_0x1bb774){const _0x17de77=_0x241f87;let _0xa0e9be=_0x1bb774-_0x1a521d;_0x49653c[_0x17de77(0x12b)]=''+_0x49653c[_0x17de77(0x12b)]['slice'](0x0,_0x1a521d)+_0x49653c[_0x17de77(0x12b)][_0x17de77(0x135)](_0x1bb774),Ce(_0x49653c,_0x1a521d,_0xa0e9be);}function Se(_0x20492a,_0x51ff38,_0x4727a8){const _0x520574=_0x241f87;_0x20492a[_0x520574(0x123)]=I(_0x20492a[_0x520574(0x123)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x13f)]=I(_0x20492a[_0x520574(0x13f)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x133)]=I(_0x20492a[_0x520574(0x133)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x110)]=we(_0x20492a[_0x520574(0x110)],_0x51ff38,_0x4727a8),_0x20492a['tables']=R(_0x20492a[_0x520574(0x139)],_0x51ff38,_0x4727a8),_0x20492a['customRanges']=R(_0x20492a[_0x520574(0x130)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x146)]=R(_0x20492a[_0x520574(0x146)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x122)]=R(_0x20492a[_0x520574(0x122)],_0x51ff38,_0x4727a8);}function Ce(_0x53f655,_0xb5c05c,_0x1fdb4f){const _0x3813da=_0x241f87;var _0x6d5cb4,_0x39abf8;_0x53f655['paragraphs']=L(_0x53f655[_0x3813da(0x123)],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x13f)]=L(_0x53f655[_0x3813da(0x13f)],_0xb5c05c,_0x1fdb4f),_0x53f655['customBlocks']=L(_0x53f655['customBlocks'],_0xb5c05c,_0x1fdb4f),_0x53f655['textRuns']=(_0x6d5cb4=z((_0x39abf8=_0x53f655[_0x3813da(0x110)])==null?void 0x0:_0x39abf8[_0x3813da(0x13d)](_0x402aea=>({..._0x402aea,'startIndex':_0x402aea['st'],'endIndex':_0x402aea['ed']})),_0xb5c05c,_0x1fdb4f))==null?void 0x0:_0x6d5cb4[_0x3813da(0x13d)](_0x4df46c=>{let {startIndex:_0x40b1cc,endIndex:_0x408b3c,..._0x288d91}=_0x4df46c;return{..._0x288d91,'st':_0x40b1cc,'ed':_0x408b3c};}),_0x53f655['tables']=z(_0x53f655['tables'],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x130)]=z(_0x53f655[_0x3813da(0x130)],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x146)]=z(_0x53f655[_0x3813da(0x146)],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x122)]=z(_0x53f655['blockRanges'],_0xb5c05c,_0x1fdb4f);}function I(_0x2a6b80,_0x47a61b,_0x23949f){const _0x89c517=_0x241f87;return _0x2a6b80==null?void 0x0:_0x2a6b80[_0x89c517(0x13d)](_0x4d0bb=>_0x4d0bb[_0x89c517(0x187)]>=_0x47a61b?{..._0x4d0bb,'startIndex':_0x4d0bb['startIndex']+_0x23949f}:_0x4d0bb);}function L(_0x275d6c,_0x1d2314,_0x3d5951){const _0x3d0008=_0x241f87;let _0x3f4e7d=_0x1d2314+_0x3d5951;return _0x275d6c==null?void 0x0:_0x275d6c[_0x3d0008(0x13d)](_0x43d6d7=>_0x43d6d7['startIndex']>=_0x1d2314&&_0x43d6d7[_0x3d0008(0x187)]<_0x3f4e7d?null:_0x43d6d7[_0x3d0008(0x187)]>=_0x3f4e7d?{..._0x43d6d7,'startIndex':_0x43d6d7[_0x3d0008(0x187)]-_0x3d5951}:_0x43d6d7)[_0x3d0008(0x13b)](_0x2f5fd6=>_0x2f5fd6!=null);}function we(_0x5aa3b6,_0x1d5236,_0x55db2e){const _0x1b8f8c=_0x241f87;return _0x5aa3b6==null?void 0x0:_0x5aa3b6[_0x1b8f8c(0x13d)](_0x1874c0=>_0x1874c0['st']>=_0x1d5236?{..._0x1874c0,'st':_0x1874c0['st']+_0x55db2e,'ed':_0x1874c0['ed']+_0x55db2e}:_0x1874c0['ed']>_0x1d5236?{..._0x1874c0,'ed':_0x1874c0['ed']+_0x55db2e}:_0x1874c0);}function R(_0x1b78ca,_0x4ba889,_0x1c643f){const _0x14c3ff=_0x241f87;return _0x1b78ca==null?void 0x0:_0x1b78ca[_0x14c3ff(0x13d)](_0x8ae2e5=>_0x8ae2e5[_0x14c3ff(0x187)]>=_0x4ba889?{..._0x8ae2e5,'startIndex':_0x8ae2e5[_0x14c3ff(0x187)]+_0x1c643f,'endIndex':_0x8ae2e5[_0x14c3ff(0x189)]+_0x1c643f}:_0x8ae2e5[_0x14c3ff(0x189)]>=_0x4ba889?{..._0x8ae2e5,'endIndex':_0x8ae2e5[_0x14c3ff(0x189)]+_0x1c643f}:_0x8ae2e5);}function z(_0x51ac1d,_0x420445,_0x5a0447){const _0x4c680d=_0x241f87;let _0x4eac23=_0x420445+_0x5a0447;return _0x51ac1d==null?void 0x0:_0x51ac1d['map'](_0x5d7c80=>_0x5d7c80[_0x4c680d(0x187)]>=_0x420445&&_0x5d7c80['endIndex']<_0x4eac23?null:_0x5d7c80[_0x4c680d(0x187)]>=_0x4eac23?{..._0x5d7c80,'startIndex':_0x5d7c80[_0x4c680d(0x187)]-_0x5a0447,'endIndex':_0x5d7c80['endIndex']-_0x5a0447}:_0x5d7c80[_0x4c680d(0x189)]>=_0x420445?{..._0x5d7c80,'startIndex':_0x5d7c80[_0x4c680d(0x187)]<_0x420445?_0x5d7c80[_0x4c680d(0x187)]:_0x420445,'endIndex':Math['max'](_0x420445,_0x5d7c80[_0x4c680d(0x189)]-_0x5a0447)}:_0x5d7c80)['filter'](_0x4d326a=>_0x4d326a!=null);}function B(_0x138369,_0x35a3c3,_0x33eff7,_0x260325){const _0x510bd1=_0x241f87;_0x138369==null||_0x138369[_0x510bd1(0x167)](_0x3420ec=>{const _0x3f8924=_0x510bd1;_0x3420ec['startIndex']>=_0x35a3c3&&_0x3420ec[_0x3f8924(0x187)]<_0x33eff7&&(_0x3420ec[_0x3f8924(0x187)]+=_0x260325);});}function Te(_0x1af2aa,_0x1e75fa,_0x435c47,_0x51622e){const _0x50bab6=_0x241f87;_0x1af2aa==null||_0x1af2aa[_0x50bab6(0x167)](_0x3b0748=>{_0x3b0748['st']>=_0x1e75fa&&_0x3b0748['st']<_0x435c47?(_0x3b0748['st']+=_0x51622e,_0x3b0748['ed']+=_0x51622e):_0x3b0748['ed']>_0x1e75fa&&_0x3b0748['ed']<_0x435c47&&(_0x3b0748['ed']+=_0x51622e);});}function V(_0x53bc94,_0x51e751,_0x2a4431,_0x6d74b8){const _0x4757dd=_0x241f87;_0x53bc94==null||_0x53bc94[_0x4757dd(0x167)](_0x12c081=>{const _0xe73656=_0x4757dd;_0x12c081[_0xe73656(0x187)]>=_0x51e751&&_0x12c081[_0xe73656(0x187)]<_0x2a4431?(_0x12c081[_0xe73656(0x187)]+=_0x6d74b8,_0x12c081[_0xe73656(0x189)]+=_0x6d74b8):_0x12c081[_0xe73656(0x189)]>_0x51e751&&_0x12c081['endIndex']<_0x2a4431&&(_0x12c081[_0xe73656(0x189)]+=_0x6d74b8);});}function H(_0x5048b0){'@babel/helpers - typeof';const _0x30974f=_0x241f87;return H=typeof Symbol==_0x30974f(0x15c)&&typeof Symbol[_0x30974f(0x156)]==_0x30974f(0x174)?function(_0x1c6173){return typeof _0x1c6173;}:function(_0xd4fa21){const _0x3239b5=_0x30974f;return _0xd4fa21&&typeof Symbol=='function'&&_0xd4fa21[_0x3239b5(0x15b)]===Symbol&&_0xd4fa21!==Symbol[_0x3239b5(0x10a)]?_0x3239b5(0x174):typeof _0xd4fa21;},H(_0x5048b0);}function Ee(_0x394825,_0xdc7d90){const _0x213313=_0x241f87;if(H(_0x394825)!=_0x213313(0x12f)||!_0x394825)return _0x394825;var _0x320887=_0x394825[Symbol[_0x213313(0x166)]];if(_0x320887!==void 0x0){var _0x16ca57=_0x320887[_0x213313(0x118)](_0x394825,_0xdc7d90||_0x213313(0x14b));if(H(_0x16ca57)!=_0x213313(0x12f))return _0x16ca57;throw TypeError(_0x213313(0x109));}return(_0xdc7d90===_0x213313(0x165)?String:Number)(_0x394825);}function De(_0x49b267){const _0x5213e5=_0x241f87;var _0x3bc5a3=Ee(_0x49b267,_0x5213e5(0x165));return H(_0x3bc5a3)=='symbol'?_0x3bc5a3:_0x3bc5a3+'';}function U(_0x4b1c00,_0x4dca14,_0x3d279a){return(_0x4dca14=De(_0x4dca14))in _0x4b1c00?Object['defineProperty'](_0x4b1c00,_0x4dca14,{'value':_0x3d279a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b1c00[_0x4dca14]=_0x3d279a,_0x4b1c00;}var W=class extends _0xbc666b{constructor(..._0x1c26c2){const _0x2ec173=_0x241f87;super(..._0x1c26c2),U(this,_0x2ec173(0x186),new Map()),U(this,'_change$',new _0x2c84e7()),U(this,_0x2ec173(0x128),this[_0x2ec173(0x114)][_0x2ec173(0x181)]());}[_0x241f87(0x172)](_0x5c2d59,_0x5698f9){const _0x5c3da1=_0x241f87;return E(this['_resources'][_0x5c3da1(0x14e)](_0x5c2d59))[_0x5c3da1(0x14a)][_0x5698f9];}[_0x241f87(0x169)](_0x5b7a6c,_0x561b33,_0x16c0b7){const _0x3dadbe=_0x241f87;this['_setResource'](_0x5b7a6c,_0x561b33,D(this[_0x3dadbe(0x186)][_0x3dadbe(0x14e)](_0x5b7a6c),_0x561b33,_0x16c0b7));}[_0x241f87(0x121)](_0x385f9b,_0x170f27){const _0x1c9534=_0x241f87;this[_0x1c9534(0x116)](_0x385f9b,_0x170f27,te(this[_0x1c9534(0x186)][_0x1c9534(0x14e)](_0x385f9b),_0x170f27));}[_0x241f87(0x16c)](_0x2a18a9){const _0x5a7370=_0x241f87;return E(this[_0x5a7370(0x186)]['get'](_0x2a18a9));}[_0x241f87(0x182)](_0xe52063,_0x5061ea){const _0x3bcaa0=_0x241f87;this['_resources'][_0x3bcaa0(0x152)](_0xe52063,E(_0x5061ea)),this['_change$'][_0x3bcaa0(0x180)]({'unitId':_0xe52063});}[_0x241f87(0x15e)](_0x11cbe3){const _0x3e8345=_0x241f87;this[_0x3e8345(0x186)]['delete'](_0x11cbe3),this[_0x3e8345(0x114)][_0x3e8345(0x180)]({'unitId':_0x11cbe3});}[_0x241f87(0x153)](){const _0x3f941d=_0x241f87;super[_0x3f941d(0x153)](),this['_resources']['clear'](),this['_change$']['complete']();}['_setResource'](_0x39404f,_0x32beae,_0x4e29bc){const _0xf0408b=_0x241f87;this[_0xf0408b(0x186)]['set'](_0x39404f,_0x4e29bc),this[_0xf0408b(0x114)]['next']({'unitId':_0x39404f,'blockId':_0x32beae});}};const Oe={'id':'docs-code.command.insert-below','type':_0xf7d768[_0x241f87(0x160)],'handler':_0x113306=>{const _0x50c0ce=_0x241f87;let _0x276ed6=Me(_0x113306);if(_0x276ed6)return _0x113306['get'](_0x18fc6a)['syncExecuteCommand'](G['id'],{'startOffset':_0x276ed6[_0x50c0ce(0x136)],'endOffset':_0x276ed6['endOffset'],'unitId':_0x276ed6[_0x50c0ce(0x18a)]});let _0x4158e5=Ne(_0x113306);if(!_0x4158e5)return!0x1;let _0xdb08e2=_0x4158e5[_0x50c0ce(0x187)]+0x1;return _0x113306[_0x50c0ce(0x14e)](_0x18fc6a)[_0x50c0ce(0x140)](G['id'],{'startOffset':_0xdb08e2,'endOffset':_0xdb08e2});}},ke={'id':_0x241f87(0x185),'type':_0xf7d768[_0x241f87(0x160)],'handler':()=>!0x0},G={'id':_0x241f87(0x148),'type':_0xf7d768[_0x241f87(0x160)],'handler':(_0x10038c,_0x38623c)=>{const _0x235268=_0x241f87;var _0x4115a2,_0x8d48cc,_0x1d21d6;let _0x2c0439=q(_0x10038c,_0x38623c==null?void 0x0:_0x38623c['unitId']);if(!_0x2c0439)return!0x1;let _0x249c54=J(_0x10038c),_0x53e4d9=re({'blockId':(_0x4115a2=_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x14c)])==null?_0x4c62b6(0x6):_0x4115a2,'config':_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x15a)],'documentData':_0x2c0439[_0x235268(0x17a)],'endOffset':(_0x8d48cc=_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x131)])==null?_0x249c54==null?void 0x0:_0x249c54[_0x235268(0x131)]:_0x8d48cc,'metadata':_0x2c0439[_0x235268(0x157)][_0x235268(0x16c)](_0x2c0439[_0x235268(0x18a)]),'startOffset':(_0x1d21d6=_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x136)])==null?_0x249c54==null?void 0x0:_0x249c54[_0x235268(0x136)]:_0x1d21d6}),_0x79fa77=X(_0x2c0439[_0x235268(0x11f)],_0x2c0439[_0x235268(0x18a)],_0x2c0439[_0x235268(0x17a)],_0x53e4d9[_0x235268(0x13c)],_0x53e4d9[_0x235268(0x150)]);return _0x79fa77&&_0x53e4d9[_0x235268(0x155)]&&_0x2c0439['model'][_0x235268(0x182)](_0x2c0439[_0x235268(0x18a)],_0x53e4d9['nextMetadata']),_0x79fa77;}},Ae={'id':_0x241f87(0x120),'type':_0xf7d768[_0x241f87(0x160)],'handler':(_0x1148c1,_0x42151c)=>{const _0x14e549=_0x241f87;if(!_0x42151c)return!0x1;let _0x20e250=q(_0x1148c1,_0x42151c[_0x14e549(0x18a)]);if(!_0x20e250)return!0x1;let _0x5c9444=O({'blockId':_0x42151c['blockId'],'config':_0x42151c[_0x14e549(0x15a)],'documentData':_0x20e250['previousDocumentData'],'metadata':_0x20e250['model']['serialize'](_0x20e250[_0x14e549(0x18a)])});return _0x5c9444[_0x14e549(0x155)]&&_0x20e250['model'][_0x14e549(0x182)](_0x20e250[_0x14e549(0x18a)],_0x5c9444[_0x14e549(0x155)]),!0x0;}},K={'id':_0x241f87(0x115),'type':_0xf7d768[_0x241f87(0x160)],'handler':(_0x56951f,_0x5b736f)=>{const _0xd97516=_0x241f87;var _0x36ac66,_0x546b52;let _0x2d1148=q(_0x56951f,_0x5b736f==null?void 0x0:_0x5b736f['unitId']);if(!_0x2d1148)return!0x1;let _0x3a1ef3=(_0x36ac66=_0x5b736f==null?void 0x0:_0x5b736f[_0xd97516(0x150)])==null?(_0x546b52=J(_0x56951f))==null?void 0x0:_0x546b52[_0xd97516(0x136)]:_0x36ac66;if(_0x3a1ef3==null)return!0x1;let _0x1ca68c=oe({'cursorOffset':_0x3a1ef3,'documentData':_0x2d1148[_0xd97516(0x17a)]});return _0x1ca68c?X(_0x2d1148[_0xd97516(0x11f)],_0x2d1148[_0xd97516(0x18a)],_0x2d1148[_0xd97516(0x17a)],_0x1ca68c['nextDocumentData'],_0x1ca68c['cursorOffset']):!0x1;}},je={'id':'docs-code.command.cancel-empty-paragraph','type':_0xf7d768['COMMAND'],'handler':(_0x5223a2,_0x4d2d52)=>{const _0x429ef1=_0x241f87;var _0x781f60,_0x190fe0;let _0x3e326d=q(_0x5223a2,_0x4d2d52==null?void 0x0:_0x4d2d52[_0x429ef1(0x18a)]);if(!_0x3e326d)return!0x1;let _0x52ce49=(_0x781f60=_0x4d2d52==null?void 0x0:_0x4d2d52[_0x429ef1(0x150)])==null?(_0x190fe0=J(_0x5223a2))==null?void 0x0:_0x190fe0[_0x429ef1(0x136)]:_0x781f60;if(_0x52ce49==null)return!0x1;let _0xf83121=se({'cursorOffset':_0x52ce49,'documentData':_0x3e326d[_0x429ef1(0x17a)],'paragraphStartIndex':_0x4d2d52==null?void 0x0:_0x4d2d52[_0x429ef1(0x145)]});return _0xf83121?X(_0x3e326d['commandService'],_0x3e326d[_0x429ef1(0x18a)],_0x3e326d['previousDocumentData'],_0xf83121['nextDocumentData'],_0xf83121['cursorOffset']):!0x1;}};function q(_0x2b47b7,_0x1fbe93){const _0x106551=_0x241f87;let _0x563da7=_0x2b47b7[_0x106551(0x14e)](_0x34f6cb),_0x37efd8=_0x1fbe93?_0x563da7[_0x106551(0x177)](_0x1fbe93):_0x563da7[_0x106551(0x11a)](_0x10c6fb[_0x106551(0x12e)]);return _0x37efd8?{'commandService':_0x2b47b7[_0x106551(0x14e)](_0x18fc6a),'model':_0x2b47b7['get'](W),'previousDocumentData':_0x37efd8[_0x106551(0x149)](),'unitId':_0x37efd8[_0x106551(0x147)]()}:null;}function J(_0x486d67){const _0x3fbef0=_0x241f87;var _0x5995df;return(_0x5995df=_0x486d67[_0x3fbef0(0x14e)](_0x7c5adf)[_0x3fbef0(0x161)]())==null?void 0x0:_0x5995df[0x0];}function _0x4d6f(){const _0x30697e=['replaceOp','fromEntries','BLOCK_END','806071NteNVN','next','asObservable','deserialize','reduce','monospace','docs-code.command.consume-boundary-delete','_resources','startIndex','spaceAbove','endIndex','unitId','documentData','every','parse','2930168FurIlb','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','prototype','from','_initResource','decorate','Document\x20body\x20is\x20required','registerCommand','textRuns','BLOCK_START','_config','max','_change$','docs-code.command.exit','_setResource','indexOf','call','find','getCurrentUnitOfType','join','paragraph','textStyle','consumeInsertRange','commandService','docs-code.command.update','removeCode','blockRanges','paragraphs','18EfqnTW','compose','stringify','diffValue','change$','version','entries','dataStream','indentEnd','min','UNIVER_DOC','object','customRanges','endOffset','45126RwYwrI','customBlocks','javascript','slice','startOffset','spaceBelow','PARAGRAPH','tables','direction','filter','nextDocumentData','map','metadata','sectionBreaks','syncExecuteCommand','code','_commandService','_docsCodeModel','packageName','paragraphStartIndex','customDecorations','getUnitId','docs-code.command.insert','getSnapshot','codes','default','blockId','SECTION_BREAK','get','length','cursorOffset','defineProperty','set','dispose','sort','nextMetadata','iterator','model','35270wSNLtd','endsWith','config','constructor','function','onStarting','removeUnit','_configService','COMMAND','getTextRanges','73756Yuxloz','19249760NITeLz','_resourceManagerService','string','toPrimitive','forEach','disposeWithMe','setCodeConfig','some','_injector','serialize','9sAxSwS','add','paragraphStyle','body','getInstance','getCodeConfig','getParagraphsInRange','symbol','blockType','deepClone','getUniverDocInstance','endTokenOffset','96000JSxVXd','previousDocumentData','76ikFQVc'];_0x4d6f=function(){return _0x30697e;};return _0x4d6f();}function Me(_0x5ed89d){const _0x4c89e2=_0x241f87;var _0x34b9e5;let _0x5b055f=(_0x34b9e5=_0x5ed89d[_0x4c89e2(0x14e)](_0x34f6cb)[_0x4c89e2(0x11a)](_0x10c6fb['UNIVER_DOC']))==null?void 0x0:_0x34b9e5['getUnitId']();try{return _0x5ed89d[_0x4c89e2(0x14e)](_0x1528b5)[_0x4c89e2(0x11e)](_0x5b055f);}catch{return null;}}function Ne(_0x20c878){const _0x579614=_0x241f87;var _0x80671e,_0xcf9e82,_0x2a7d06;let _0x3536df=J(_0x20c878);if(!_0x3536df)return null;let _0x5a0519=_0x20c878['get'](_0x34f6cb)[_0x579614(0x11a)](_0x10c6fb[_0x579614(0x12e)]),_0x363a08=_0x5a0519==null?void 0x0:_0x5a0519['getBody']();return _0x363a08?(_0x80671e=_0x2498f1['range'][_0x579614(0x173)](_0x3536df,(_0xcf9e82=_0x363a08[_0x579614(0x123)])==null?[]:_0xcf9e82,(_0x2a7d06=_0x363a08[_0x579614(0x12b)])==null?'':_0x2a7d06)[0x0])==null?null:_0x80671e:null;}function Pe(_0x1f6e29,_0x14895a){const _0x398951=_0x241f87;var _0x2bd6ee,_0x2042a0,_0x587cb3,_0x55fa86,_0x444311,_0x5dec40,_0x1d3feb,_0x52f77a,_0x404cd5,_0x3e508c,_0x367433,_0x548a14,_0x1029f0,_0x18565d,_0xe14c32,_0xdcda85,_0x17aa87,_0x4e4ae2;let _0xeb853e=_0x2a087c[_0x398951(0x171)]();return[Y(_0xeb853e,[_0x398951(0x170),'dataStream'],(_0x2bd6ee=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x2bd6ee[_0x398951(0x12b)],(_0x2042a0=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x2042a0[_0x398951(0x12b)]),Y(_0xeb853e,['body',_0x398951(0x123)],(_0x587cb3=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x587cb3[_0x398951(0x123)],(_0x55fa86=_0x14895a['body'])==null?void 0x0:_0x55fa86[_0x398951(0x123)]),Y(_0xeb853e,['body','sectionBreaks'],(_0x444311=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x444311[_0x398951(0x13f)],(_0x5dec40=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x5dec40['sectionBreaks']),Y(_0xeb853e,[_0x398951(0x170),_0x398951(0x110)],(_0x1d3feb=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x1d3feb[_0x398951(0x110)],(_0x52f77a=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x52f77a[_0x398951(0x110)]),Y(_0xeb853e,[_0x398951(0x170),_0x398951(0x133)],(_0x404cd5=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x404cd5[_0x398951(0x133)],(_0x3e508c=_0x14895a['body'])==null?void 0x0:_0x3e508c['customBlocks']),Y(_0xeb853e,['body','customRanges'],(_0x367433=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x367433[_0x398951(0x130)],(_0x548a14=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x548a14['customRanges']),Y(_0xeb853e,['body','customDecorations'],(_0x1029f0=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x1029f0[_0x398951(0x146)],(_0x18565d=_0x14895a['body'])==null?void 0x0:_0x18565d[_0x398951(0x146)]),Y(_0xeb853e,[_0x398951(0x170),'tables'],(_0xe14c32=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0xe14c32[_0x398951(0x139)],(_0xdcda85=_0x14895a['body'])==null?void 0x0:_0xdcda85[_0x398951(0x139)]),Y(_0xeb853e,[_0x398951(0x170),'blockRanges'],(_0x17aa87=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x17aa87[_0x398951(0x122)],(_0x4e4ae2=_0x14895a['body'])==null?void 0x0:_0x4e4ae2['blockRanges'])]['filter'](Boolean)[_0x398951(0x183)]((_0x31e663,_0x419ab1)=>_0x2a087c[_0x398951(0x125)](_0x31e663,_0x419ab1),null);}function Y(_0x5f299a,_0xa0bb0e,_0x324a77,_0x4e6fb8){const _0x23b4d9=_0x241f87;return _0x13dd56[_0x23b4d9(0x127)](_0x324a77,_0x4e6fb8)?null:_0x5f299a[_0x23b4d9(0x17c)](_0xa0bb0e,_0x324a77,_0x4e6fb8);}function X(_0xe48783,_0x29d45d,_0x3c5a08,_0x17ef38,_0x3318d8){let _0x520cab=Pe(_0x3c5a08,_0x17ef38);return _0x520cab?!!_0xe48783['syncExecuteCommand'](_0x26d8b3['id'],{'unitId':_0x29d45d,'actions':_0x520cab,'textRanges':[{'startOffset':_0x3318d8,'endOffset':_0x3318d8,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Fe='@univerjs-pro/docs-code',Ie='0.25.1';const Le={};function Z(_0x5bcc78,_0x160383){return function(_0x21b875,_0x59a683){_0x160383(_0x21b875,_0x59a683,_0x5bcc78);};}function Re(_0x11068f,_0x525450,_0x4e72a9,_0x133cd6){const _0x24ff0e=_0x241f87;var _0x4f00e0=arguments[_0x24ff0e(0x14f)],_0x59d809=_0x4f00e0<0x3?_0x525450:_0x133cd6===null?_0x133cd6=Object['getOwnPropertyDescriptor'](_0x525450,_0x4e72a9):_0x133cd6,_0x42e882;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x24ff0e(0x15c))_0x59d809=Reflect[_0x24ff0e(0x10d)](_0x11068f,_0x525450,_0x4e72a9,_0x133cd6);else{for(var _0x41bbc3=_0x11068f[_0x24ff0e(0x14f)]-0x1;_0x41bbc3>=0x0;_0x41bbc3--)(_0x42e882=_0x11068f[_0x41bbc3])&&(_0x59d809=(_0x4f00e0<0x3?_0x42e882(_0x59d809):_0x4f00e0>0x3?_0x42e882(_0x525450,_0x4e72a9,_0x59d809):_0x42e882(_0x525450,_0x4e72a9))||_0x59d809);}return _0x4f00e0>0x3&&_0x59d809&&Object[_0x24ff0e(0x151)](_0x525450,_0x4e72a9,_0x59d809),_0x59d809;}let Q=class extends _0xbc666b{constructor(_0x290c75,_0x5356db){const _0x59e5a1=_0x241f87;super(),this[_0x59e5a1(0x164)]=_0x290c75,this[_0x59e5a1(0x143)]=_0x5356db,this[_0x59e5a1(0x10c)]();}[_0x241f87(0x10c)](){const _0x24a3d1=_0x241f87;this[_0x24a3d1(0x168)](this[_0x24a3d1(0x164)]['registerPluginResource']({'pluginName':S,'businesses':[_0x10c6fb[_0x24a3d1(0x12e)]],'toJson':_0x1ab12c=>JSON[_0x24a3d1(0x126)](this[_0x24a3d1(0x143)][_0x24a3d1(0x16c)](_0x1ab12c)),'parseJson':_0x2cc20f=>E(JSON[_0x24a3d1(0x107)](_0x2cc20f)),'onLoad':(_0x2222b6,_0x4ef074)=>this['_docsCodeModel'][_0x24a3d1(0x182)](_0x2222b6,_0x4ef074),'onUnLoad':_0x5c18af=>this['_docsCodeModel'][_0x24a3d1(0x15e)](_0x5c18af)}));}};Q=Re([Z(0x0,_0x5984a4),Z(0x1,_0x44b855(W))],Q);let $=class extends _0x114981{constructor(_0x2d06ef=Le,_0x2d08f2,_0x5d54fd,_0x100f22){const _0x3ad667=_0x241f87;super(),this['_config']=_0x2d06ef,this[_0x3ad667(0x16b)]=_0x2d08f2,this[_0x3ad667(0x142)]=_0x5d54fd,this[_0x3ad667(0x15f)]=_0x100f22;let {..._0x11d2f6}=_0x516f4d({},Le,this[_0x3ad667(0x112)]);this['_configService']['setConfig']('docs-code.config',_0x11d2f6);}[_0x241f87(0x15d)](){const _0x153e46=_0x241f87;this[_0x153e46(0x16b)][_0x153e46(0x16e)]([W]),this[_0x153e46(0x16b)][_0x153e46(0x16e)]([Q]),this[_0x153e46(0x16b)][_0x153e46(0x14e)](W),this['_injector'][_0x153e46(0x14e)](Q),[G,Oe,Ae,K,je,ke]['forEach'](_0x136db7=>this['disposeWithMe'](this[_0x153e46(0x142)][_0x153e46(0x10f)](_0x136db7)));}};U($,'pluginName',S),U($,_0x241f87(0x144),Fe),U($,_0x241f87(0x129),Ie),U($,'type',_0x10c6fb[_0x241f87(0x12e)]),$=Re([_0x419fa(_0x4ccab1,_0x23a9de),Z(0x1,_0x44b855(_0xbfc494)),Z(0x2,_0x18fc6a),Z(0x3,_0x596c0d)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
1
+ const _0x37dc9a=_0x31fd;(function(_0x4f0847,_0x9088c8){const _0x3e17f2=_0x31fd,_0x3bb6b9=_0x4f0847();while(!![]){try{const _0x5ae12b=-parseInt(_0x3e17f2(0x10b))/0x1+parseInt(_0x3e17f2(0xc6))/0x2+-parseInt(_0x3e17f2(0xff))/0x3+-parseInt(_0x3e17f2(0x115))/0x4*(parseInt(_0x3e17f2(0xec))/0x5)+-parseInt(_0x3e17f2(0xd8))/0x6+-parseInt(_0x3e17f2(0xd5))/0x7+parseInt(_0x3e17f2(0xd0))/0x8*(parseInt(_0x3e17f2(0xd9))/0x9);if(_0x5ae12b===_0x9088c8)break;else _0x3bb6b9['push'](_0x3bb6b9['shift']());}catch(_0xc11232){_0x3bb6b9['push'](_0x3bb6b9['shift']());}}}(_0x3124,0xd58fd));import{BuildTextUtils as _0x2ff854,CommandType as _0x5564de,DataStreamTreeTokenType as _0xd71c63,DependentOn as _0x36a9b7,Disposable as _0x1f83fe,ICommandService as _0x3dc52c,IConfigService as _0x1373ca,IResourceManagerService as _0x3d90e8,IUniverInstanceService as _0x538bca,Inject as _0x396106,Injector as _0x4b35e7,JSONX as _0x78d219,Plugin as _0x44b3d8,Tools as _0x1153b,UniverInstanceType as _0x275947,generateRandomId as _0x1e03a8,merge as _0x259bce}from'@univerjs/core';import{DocSelectionManagerService as _0x3e6948,RichTextEditingMutation as _0x2c1b72,UniverDocsPlugin as _0x14c4d3}from'@univerjs/docs';import{DocContentInsertService as _0xa010f0}from'@univerjs/docs-ui';import{Subject as _0x3fa960}from'rxjs';import{UniverLicensePlugin as _0x39cf8c}from'@univerjs-pro/license';const S=_0x37dc9a(0x107),C='code',w={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x135bd4){return{...w,..._0x135bd4};}function E(_0x4b52da){const _0x2560e6=_0x37dc9a;var _0x128606;let _0xaae513=(_0x128606=_0x4b52da==null?void 0x0:_0x4b52da['codes'])==null?{}:_0x128606;return{'codes':Object[_0x2560e6(0xc9)](Object[_0x2560e6(0x9e)](_0xaae513)[_0x2560e6(0x105)](([_0x429b67,_0x3817bd])=>[_0x429b67,T(_0x3817bd)]))};}function D(_0x25911f,_0x26819c,_0x49088f){const _0x6ee1c5=_0x37dc9a;let _0x4f523b=E(_0x25911f);return _0x4f523b[_0x6ee1c5(0xf0)][_0x26819c]=T({..._0x4f523b[_0x6ee1c5(0xf0)][_0x26819c],..._0x49088f}),_0x4f523b;}function te(_0x52cc13,_0x401e4b){const _0x5835bb=_0x37dc9a;let _0xfa1a20=E(_0x52cc13);return delete _0xfa1a20[_0x5835bb(0xf0)][_0x401e4b],_0xfa1a20;}const ne=_0x37dc9a(0x116);function re(_0x1d9d36){const _0x408f74=_0x37dc9a;var _0x5f2692,_0x5f3d20,_0x58a209;let _0x27e19d=A(_0x1d9d36[_0x408f74(0xa0)]),_0x479df4=j(_0x27e19d),_0x11ec0b=ae(_0x1d9d36[_0x408f74(0xb8)],_0x1d9d36[_0x408f74(0xa6)]),_0x4dc15a=_0x11ec0b?(_0x5f2692=_0x479df4['blockRanges'])==null?void 0x0:_0x5f2692[_0x408f74(0xde)](_0x56572c=>_0x56572c[_0x408f74(0x101)]===_0x11ec0b['startOffset']&&_0x56572c[_0x408f74(0x118)]+0x1===_0x11ec0b[_0x408f74(0xa6)]):void 0x0,{startOffset:_0x41064b,endOffset:_0x4f6000}=_0x4dc15a?_0x11ec0b:ge(_0x479df4,_0x1d9d36['startOffset'],_0x1d9d36[_0x408f74(0xa6)]),_0x55f169=ve(_0x479df4,_0x41064b,_0x4f6000),_0x40d771=(_0x5f3d20=_0x4dc15a==null?void 0x0:_0x4dc15a['blockId'])==null?_0x1d9d36['blockId']:_0x5f3d20,_0x2ca3d4=D(_0x1d9d36[_0x408f74(0x10a)],_0x40d771,{...w,..._0x1d9d36[_0x408f74(0xb6)]});if(_0x4dc15a)return _0x4dc15a['blockType']=C,ie(_0x479df4,_0x41064b,_0x4f6000),fe(_0x479df4,_0x41064b,_0x4f6000,_0x55f169),{'nextDocumentData':_0x27e19d,'nextMetadata':_0x2ca3d4,'cursorOffset':_0x41064b+0x1};if(_0x41064b===_0x4f6000){let _0x2e568f=''+_0xd71c63[_0x408f74(0xce)]+_0xd71c63['PARAGRAPH']+_0xd71c63[_0x408f74(0xe6)];return F(_0x479df4,_0x41064b,_0x2e568f,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x55f169)}],'blockRanges':[{'blockId':_0x40d771,'blockType':C,'startIndex':0x0,'endIndex':_0x2e568f['length']-0x1}]}),{'nextDocumentData':_0x27e19d,'nextMetadata':_0x2ca3d4,'cursorOffset':_0x41064b+0x1};}return F(_0x479df4,_0x4f6000,_0xd71c63[_0x408f74(0xe6)]),F(_0x479df4,_0x41064b,_0xd71c63[_0x408f74(0xce)]),fe(_0x479df4,_0x41064b,_0x4f6000+0x1,_0x55f169),_0x479df4[_0x408f74(0xac)]=[...(_0x58a209=_0x479df4[_0x408f74(0xac)])==null?[]:_0x58a209,{'blockId':_0x40d771,'blockType':C,'startIndex':_0x41064b,'endIndex':_0x4f6000+0x1}][_0x408f74(0xdf)]((_0x3e941f,_0xc374fd)=>_0x3e941f[_0x408f74(0x101)]-_0xc374fd['startIndex']),{'nextDocumentData':_0x27e19d,'nextMetadata':_0x2ca3d4,'cursorOffset':_0x41064b+0x1};}function ie(_0x35ab95,_0x28fa4a,_0x593f36){const _0x5eb7cd=_0x37dc9a;var _0xe3e3b1;((_0xe3e3b1=_0x35ab95[_0x5eb7cd(0xd1)])==null?[]:_0xe3e3b1)[_0x5eb7cd(0xcc)](_0x2ce628=>_0x2ce628[_0x5eb7cd(0x101)]>_0x28fa4a&&_0x2ce628[_0x5eb7cd(0x101)]<_0x593f36)[_0x5eb7cd(0xda)](_0x3add5f=>{const _0x4dbb12=_0x5eb7cd;var _0x467f12;let _0x31afcd={...(_0x467f12=_0x3add5f['paragraphStyle'])==null?{}:_0x467f12};delete _0x31afcd[_0x4dbb12(0x109)],delete _0x31afcd[_0x4dbb12(0x9a)],_0x3add5f[_0x4dbb12(0xa9)]=_0x31afcd;});}function ae(_0x5e131e,_0x400335){const _0x312b9e=_0x37dc9a;return _0x5e131e==null||_0x400335==null||_0x5e131e===_0x400335?null:{'startOffset':Math[_0x312b9e(0xc7)](_0x5e131e,_0x400335),'endOffset':Math['max'](_0x5e131e,_0x400335)};}function O(_0x28335b){const _0x36c396=_0x37dc9a;return{'nextDocumentData':A(_0x28335b[_0x36c396(0xa0)]),'nextMetadata':D(_0x28335b[_0x36c396(0x10a)],_0x28335b[_0x36c396(0xbb)],_0x28335b[_0x36c396(0xb6)]),'cursorOffset':0x0};}function oe(_0x451ec1){const _0xca0eda=_0x37dc9a;var _0x22b5ac,_0x289e0e;let _0x4ec3f3=A(_0x451ec1[_0xca0eda(0xa0)]),_0xaa6609=j(_0x4ec3f3),_0x229d4c=de(_0xaa6609,_0x451ec1[_0xca0eda(0x108)]);if(!_0x229d4c)return null;let _0x4fcc77=me(_0xaa6609,_0x229d4c),_0x55c53c=_0x4fcc77[_0x4fcc77[_0xca0eda(0xf3)]-0x1];if(!_0x55c53c||!he(_0xaa6609,_0x229d4c,_0x55c53c)||_0x451ec1['cursorOffset']<_0x55c53c[_0xca0eda(0x101)])return null;let _0x48b945=N(_0xaa6609,_0x229d4c,_0x55c53c);if(_0x48b945>=_0x229d4c[_0xca0eda(0x118)])return null;_0xaa6609[_0xca0eda(0xfd)]=[_0xaa6609['dataStream'][_0xca0eda(0xdd)](0x0,_0x48b945),_0xd71c63[_0xca0eda(0xe6)],_0xaa6609[_0xca0eda(0xfd)]['slice'](_0x48b945,_0x229d4c[_0xca0eda(0x118)]),_0xaa6609[_0xca0eda(0xfd)]['slice'](_0x229d4c[_0xca0eda(0x118)]+0x1)][_0xca0eda(0xb9)](''),B(_0xaa6609[_0xca0eda(0xd1)],_0x48b945,_0x229d4c[_0xca0eda(0x118)],0x1),B(_0xaa6609['sectionBreaks'],_0x48b945,_0x229d4c[_0xca0eda(0x118)],0x1),B(_0xaa6609[_0xca0eda(0x119)],_0x48b945,_0x229d4c[_0xca0eda(0x118)],0x1),Te(_0xaa6609['textRuns'],_0x48b945,_0x229d4c[_0xca0eda(0x118)],0x1),V(_0xaa6609[_0xca0eda(0xaf)],_0x48b945,_0x229d4c[_0xca0eda(0x118)],0x1),V(_0xaa6609[_0xca0eda(0x9b)],_0x48b945,_0x229d4c[_0xca0eda(0x118)],0x1),V(_0xaa6609[_0xca0eda(0x10d)],_0x48b945,_0x229d4c['endIndex'],0x1),(_0x22b5ac=_0xaa6609[_0xca0eda(0xac)])==null||_0x22b5ac[_0xca0eda(0xda)](_0x25eeef=>{const _0x2a9433=_0xca0eda;_0x25eeef===_0x229d4c||_0x25eeef[_0x2a9433(0xbb)]===_0x229d4c[_0x2a9433(0xbb)]?_0x25eeef[_0x2a9433(0x118)]=_0x48b945:_0x25eeef['startIndex']>=_0x48b945&&_0x25eeef[_0x2a9433(0x101)]<_0x229d4c[_0x2a9433(0x118)]&&(_0x25eeef['startIndex']+=0x1,_0x25eeef[_0x2a9433(0x118)]+=0x1);});let _0x462300=me(_0xaa6609,{..._0x229d4c,'endIndex':_0x48b945});_0x462300[_0xca0eda(0xda)]((_0x5687e8,_0x3cc329)=>{const _0xeb2083=_0xca0eda;var _0x4ec0e6;_0x5687e8[_0xeb2083(0xa9)]={...(_0x4ec0e6=_0x5687e8[_0xeb2083(0xa9)])==null?{}:_0x4ec0e6,...k(_0x3cc329===0x0,_0x3cc329===_0x462300[_0xeb2083(0xf3)]-0x1)};});let _0x4cd43a=(_0x289e0e=_0xaa6609[_0xca0eda(0xd1)])==null?void 0x0:_0x289e0e['find'](_0x36335f=>_0x36335f['startIndex']===_0x48b945+0x1);return _0x4cd43a&&(_0x4cd43a[_0xca0eda(0xa9)]=pe(_0x4cd43a[_0xca0eda(0xa9)])),{'nextDocumentData':_0x4ec3f3,'cursorOffset':_0x48b945+0x1};}function se(_0x493838){const _0x2976ff=_0x37dc9a;let _0xefd4f3=A(_0x493838[_0x2976ff(0xa0)]),_0x4de6fc=j(_0xefd4f3),_0x3004fc=de(_0x4de6fc,_0x493838[_0x2976ff(0x108)]);return _0x3004fc&&ce(_0xefd4f3,_0x4de6fc,_0x3004fc,_0x493838[_0x2976ff(0x108)],_0x493838[_0x2976ff(0xb4)])||null;}function ce(_0x3c8b68,_0xff5fb6,_0x235288,_0x4ef4dc,_0x13cd39){const _0x1bc8f2=_0x37dc9a;let _0x175ba2=be(_0xff5fb6,_0x235288,_0x4ef4dc,_0x13cd39);if(!_0x175ba2)return null;let _0x203062=_0x175ba2[_0x1bc8f2(0xa5)]-0x1;return xe(_0xff5fb6,_0x175ba2[_0x1bc8f2(0x10c)][_0x1bc8f2(0x101)],_0x175ba2[_0x1bc8f2(0x10c)][_0x1bc8f2(0x101)]+0x1),{'nextDocumentData':_0x3c8b68,'cursorOffset':_0x203062};}function le(_0x524bea,_0x26feb6){const _0x3f385b=_0x37dc9a;var _0x4716f3;return _0x524bea==null||(_0x4716f3=_0x524bea[_0x3f385b(0xac)])==null?void 0x0:_0x4716f3[_0x3f385b(0xde)](_0x432dc0=>_0x432dc0[_0x3f385b(0xe9)]==='code'&&_0x432dc0[_0x3f385b(0x101)]<=_0x26feb6&&_0x26feb6<=_0x432dc0[_0x3f385b(0x118)]);}function ue(_0x2d73f1){const _0x5b762c=_0x37dc9a;var _0x550a28;let _0x3616ab=_0x2d73f1[_0x5b762c(0xa0)][_0x5b762c(0xa7)];if(!_0x3616ab)return!0x1;let _0x5d3259=_0x2d73f1['direction']===_0x5b762c(0xad)?_0x2d73f1[_0x5b762c(0x108)]-0x1:_0x2d73f1[_0x5b762c(0x108)],_0x4afc3a=_0x2d73f1['direction']===_0x5b762c(0xf8)?_0x2d73f1[_0x5b762c(0x108)]+0x1:_0x5d3259;return((_0x550a28=_0x3616ab[_0x5b762c(0xac)])==null?[]:_0x550a28)[_0x5b762c(0xa1)](_0x30e0f1=>_0x30e0f1['blockType']===_0x5b762c(0xd2)?_0x5d3259===_0x30e0f1[_0x5b762c(0x101)]||_0x5d3259===_0x30e0f1['endIndex']||_0x4afc3a===_0x30e0f1[_0x5b762c(0x101)]||_0x4afc3a===_0x30e0f1[_0x5b762c(0x118)]:!0x1);}function de(_0x38a0e7,_0x406971){const _0x1d4bcd=_0x37dc9a;var _0x393388;return(_0x393388=_0x38a0e7[_0x1d4bcd(0xac)])==null?void 0x0:_0x393388[_0x1d4bcd(0xde)](_0x5af563=>{const _0x416cb8=_0x1d4bcd;let _0x312341=P(_0x38a0e7,_0x5af563);return _0x5af563[_0x416cb8(0xe9)]===_0x416cb8(0xd2)&&_0x5af563['startIndex']<=_0x406971&&_0x406971<=_0x312341+0x2;});}function k(_0x6329a8,_0x27e2ed,_0x3166cc=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x6329a8&&_0x3166cc?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x289a0f,_0xd4601a,_0x15c296,_0x4a1768=!0x1){const _0x395f6b=_0x37dc9a;var _0x1d953d;let _0xb953db=((_0x1d953d=_0x289a0f[_0x395f6b(0xd1)])==null?[]:_0x1d953d)['filter'](_0x240f19=>_0x240f19['startIndex']>_0xd4601a&&_0x240f19['startIndex']<_0x15c296);_0xb953db[_0x395f6b(0xda)]((_0x77091f,_0x11f03d)=>{const _0x4a0b78=_0x395f6b;var _0x88925a;_0x77091f[_0x4a0b78(0xa9)]={...(_0x88925a=_0x77091f[_0x4a0b78(0xa9)])==null?{}:_0x88925a,...k(_0x11f03d===0x0,_0x11f03d===_0xb953db[_0x4a0b78(0xf3)]-0x1,_0x4a1768)};});}function pe(_0x5915e5){const _0x52dcb1=_0x37dc9a;var _0x556b13,_0x17a0e6;let _0x9d2f3a={..._0x5915e5==null?{}:_0x5915e5};return delete _0x9d2f3a[_0x52dcb1(0xaa)],delete _0x9d2f3a[_0x52dcb1(0xd3)],delete _0x9d2f3a['spaceAbove'],delete _0x9d2f3a[_0x52dcb1(0x9a)],((_0x556b13=_0x9d2f3a[_0x52dcb1(0xee)])==null?void 0x0:_0x556b13['ff'])===ne&&((_0x17a0e6=_0x9d2f3a[_0x52dcb1(0xee)])==null?void 0x0:_0x17a0e6['fs'])===0xc&&delete _0x9d2f3a[_0x52dcb1(0xee)],_0x9d2f3a;}function me(_0x2bccce,_0x40eb09){const _0x45303e=_0x37dc9a;var _0x593347;let _0x1f3c97=P(_0x2bccce,_0x40eb09);return((_0x593347=_0x2bccce[_0x45303e(0xd1)])==null?[]:_0x593347)[_0x45303e(0xcc)](_0x4de2eb=>_0x4de2eb[_0x45303e(0x101)]>_0x40eb09[_0x45303e(0x101)]&&_0x4de2eb['startIndex']<_0x1f3c97);}function he(_0x466d43,_0x5f4b00,_0x2d7179){const _0x175ea2=_0x37dc9a;let _0x937ddc=N(_0x466d43,_0x5f4b00,_0x2d7179),_0x48d455=_0x466d43[_0x175ea2(0xfd)]['slice'](_0x937ddc,_0x2d7179[_0x175ea2(0x101)]);return Array[_0x175ea2(0xa2)](_0x48d455)[_0x175ea2(0x98)](_0x271f00=>_0x271f00===_0xd71c63[_0x175ea2(0xce)]||_0x271f00===_0xd71c63[_0x175ea2(0xe6)]);}function A(_0x3dfaf9){const _0x306014=_0x37dc9a;return _0x1153b[_0x306014(0x117)](_0x3dfaf9);}function j(_0x431062){if(!_0x431062['body'])throw Error('Document\x20body\x20is\x20required');return _0x431062['body'];}function ge(_0x4d1a74,_0x478b43,_0x172f6c){const _0x95255a=_0x37dc9a;if(_0x478b43==null||_0x172f6c==null){let _0xdfaa6d=_e(_0x4d1a74);return{'startOffset':_0xdfaa6d,'endOffset':_0xdfaa6d};}let _0x596727=Math[_0x95255a(0xc7)](_0x478b43,_0x172f6c),_0x16ee2c=Math[_0x95255a(0xab)](_0x478b43,_0x172f6c);return _0x596727===_0x16ee2c?{'startOffset':_0x596727,'endOffset':_0x596727}:ye(_0x4d1a74,_0x596727,_0x16ee2c);}function _e(_0x429e60){const _0x108365=_0x37dc9a;return _0x429e60[_0x108365(0xfd)][_0x108365(0x112)](_0xd71c63['SECTION_BREAK'])?Math[_0x108365(0xab)](0x0,_0x429e60[_0x108365(0xfd)][_0x108365(0xf3)]-0x1):_0x429e60[_0x108365(0xfd)][_0x108365(0xf3)];}function _0x31fd(_0x239d93,_0x49de14){_0x239d93=_0x239d93-0x8f;const _0x312462=_0x3124();let _0x31fde0=_0x312462[_0x239d93];return _0x31fde0;}function ve(_0xfe25fa,_0x45c2c7,_0x58a4c3){const _0x24959b=_0x37dc9a;var _0x475d0e;let _0x187562=Math[_0x24959b(0xc7)](_0x45c2c7,_0x58a4c3),_0x52eb29=Math[_0x24959b(0xab)](_0x45c2c7,_0x58a4c3);return!!((_0x475d0e=_0xfe25fa[_0x24959b(0xaf)])!=null&&_0x475d0e[_0x24959b(0xa1)](_0x238d86=>_0x187562>_0x238d86['startIndex']&&_0x187562<_0x238d86['endIndex']||_0x52eb29>_0x238d86[_0x24959b(0x101)]&&_0x52eb29<_0x238d86[_0x24959b(0x118)]||_0x187562<=_0x238d86[_0x24959b(0x101)]&&_0x52eb29>=_0x238d86[_0x24959b(0x118)]));}function ye(_0x518327,_0x2d4aaa,_0x36d4b3){const _0x28b2bb=_0x37dc9a;var _0x411c00,_0xd41809;let _0x359e52=[...(_0x411c00=_0x518327[_0x28b2bb(0xd1)])==null?[]:_0x411c00]['sort']((_0x4ed70e,_0x463d8d)=>_0x4ed70e[_0x28b2bb(0x101)]-_0x463d8d[_0x28b2bb(0x101)]),_0x4fefc4=_0x359e52[_0x28b2bb(0xde)]((_0x295428,_0x11399d)=>(_0x11399d===0x0?0x0:_0x359e52[_0x11399d-0x1][_0x28b2bb(0x101)]+0x1)<=_0x2d4aaa&&_0x2d4aaa<=_0x295428[_0x28b2bb(0x101)]),_0x29049c=(_0xd41809=_0x359e52[_0x28b2bb(0xde)](_0x2318bd=>_0x2318bd[_0x28b2bb(0x101)]>=_0x36d4b3-0x1))==null?_0x359e52[_0x359e52[_0x28b2bb(0xf3)]-0x1]:_0xd41809;return{'startOffset':_0x4fefc4?M(_0x359e52,_0x4fefc4):_0x2d4aaa,'endOffset':_0x29049c?_0x29049c[_0x28b2bb(0x101)]+0x1:_0x36d4b3};}function _0x3124(){const _0x48315b=['BLOCK_START','removeUnit','4608slUCaH','paragraphs','code','indentStart','registerCommand','8105055nLIKpq','pluginName','constructor','3531378ritrOS','76914UqMNaB','forEach','docs-code.command.consume-boundary-delete','removeCode','slice','find','sort','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_resourceManagerService','change$','getSnapshot','docs-code.command.cancel-empty-paragraph','complete','BLOCK_END','deserialize','_config','blockType','_initResource','commandService','85QjKcko','next','textStyle','_commandService','codes','string','delete','length','_injector','getCodeConfig','_docsCodeModel','textRuns','right','packageName','getCurrentUnitOfType','defineProperty','getUniverDocInstance','dataStream','parse','1211325gnkGhw','disposeWithMe','startIndex','toPrimitive','nextDocumentData','unitId','map','UNIVER_DOC','DOC_CODE_PLUGIN','cursorOffset','spaceAbove','metadata','1017647hMKTOS','paragraph','customDecorations','_configService','indexOf','symbol','getUnitId','endsWith','_setResource','docs-code.command.exit','378412qYLakD','monospace','deepClone','endIndex','customBlocks','getInstance','syncExecuteCommand','consumeInsertRange','nextMetadata','@univerjs-pro/docs-code','clear','PARAGRAPH','sectionBreaks','reduce','every','default','spaceBelow','customRanges','type','previousDocumentData','entries','_change$','documentData','some','from','dispose','_resources','endTokenOffset','endOffset','body','set','paragraphStyle','indentEnd','max','blockRanges','left','stringify','tables','add','range','docs-code.command.update','COMMAND','paragraphStartIndex','model','config','getTextRanges','startOffset','join','call','blockId','get','function','getOwnPropertyDescriptor','asObservable','iterator','onStarting','0.25.2','replaceOp','compose','registerPluginResource','1456708tMfpoP','min','decorate','fromEntries','serialize','object','filter','getBody'];_0x3124=function(){return _0x48315b;};return _0x3124();}function M(_0x4ac626,_0x298a1a){const _0x3bbb84=_0x37dc9a;let _0x1aea1d=_0x4ac626[_0x3bbb84(0x10f)](_0x298a1a);return _0x1aea1d>0x0?_0x4ac626[_0x1aea1d-0x1][_0x3bbb84(0x101)]+0x1:0x0;}function N(_0x4b6332,_0x136315,_0x175c6f){const _0x35767d=_0x37dc9a;var _0x5c9209;return Math[_0x35767d(0xab)](M((_0x5c9209=_0x4b6332[_0x35767d(0xd1)])==null?[]:_0x5c9209,_0x175c6f),_0x136315[_0x35767d(0x101)]+0x1);}function P(_0x5c0881,_0xeb17b6){const _0x5f04e1=_0x37dc9a;return _0x5c0881[_0x5f04e1(0xfd)][_0xeb17b6[_0x5f04e1(0x118)]]===_0xd71c63[_0x5f04e1(0xe6)]?_0xeb17b6[_0x5f04e1(0x118)]:_0x5c0881['dataStream'][_0xeb17b6[_0x5f04e1(0x118)]+0x1]===_0xd71c63[_0x5f04e1(0xe6)]?_0xeb17b6[_0x5f04e1(0x118)]+0x1:_0xeb17b6[_0x5f04e1(0x118)];}function be(_0x39aa7d,_0x3ca925,_0x458e11,_0x2ce898){const _0xc43011=_0x37dc9a;var _0xda33c1,_0x2abc9d;let _0x1667bc=P(_0x39aa7d,_0x3ca925),_0x45f192=((_0xda33c1=_0x39aa7d[_0xc43011(0xd1)])==null?[]:_0xda33c1)['find'](_0x173a91=>_0x173a91[_0xc43011(0x101)]===_0x1667bc+0x1);if(!_0x45f192||_0x2ce898!=null&&_0x45f192[_0xc43011(0x101)]!==_0x2ce898||_0x458e11<_0x1667bc||_0x458e11>_0x45f192[_0xc43011(0x101)]+0x1||_0x39aa7d['dataStream'][_0x45f192[_0xc43011(0x101)]]!==_0xd71c63[_0xc43011(0x95)])return null;let _0x4e9aef=M((_0x2abc9d=_0x39aa7d[_0xc43011(0xd1)])==null?[]:_0x2abc9d,_0x45f192),_0x270687=_0x39aa7d[_0xc43011(0xfd)][_0xc43011(0xdd)](_0x4e9aef,_0x45f192[_0xc43011(0x101)]);return Array[_0xc43011(0xa2)](_0x270687)[_0xc43011(0x98)](_0x4248e3=>_0x4248e3===_0xd71c63[_0xc43011(0xe6)])?{'paragraph':_0x45f192,'endTokenOffset':_0x1667bc}:null;}function F(_0x38e37b,_0x421ffe,_0x36a12e,_0x56a3b1={}){const _0x390bfb=_0x37dc9a;var _0x130f10,_0x3124f0;if(_0x36a12e){if(_0x38e37b[_0x390bfb(0xfd)]=''+_0x38e37b[_0x390bfb(0xfd)]['slice'](0x0,_0x421ffe)+_0x36a12e+_0x38e37b[_0x390bfb(0xfd)][_0x390bfb(0xdd)](_0x421ffe),Se(_0x38e37b,_0x421ffe,_0x36a12e[_0x390bfb(0xf3)]),(_0x130f10=_0x56a3b1[_0x390bfb(0xd1)])!=null&&_0x130f10['length']){var _0x572873;_0x38e37b['paragraphs']=[...(_0x572873=_0x38e37b['paragraphs'])==null?[]:_0x572873,..._0x56a3b1[_0x390bfb(0xd1)][_0x390bfb(0x105)](_0x4db20e=>({..._0x4db20e,'startIndex':_0x4db20e[_0x390bfb(0x101)]+_0x421ffe}))][_0x390bfb(0xdf)]((_0x22b3e3,_0x3c77ea)=>_0x22b3e3[_0x390bfb(0x101)]-_0x3c77ea[_0x390bfb(0x101)]);}if((_0x3124f0=_0x56a3b1['blockRanges'])!=null&&_0x3124f0[_0x390bfb(0xf3)]){var _0x470991;_0x38e37b[_0x390bfb(0xac)]=[...(_0x470991=_0x38e37b['blockRanges'])==null?[]:_0x470991,..._0x56a3b1[_0x390bfb(0xac)][_0x390bfb(0x105)](_0x1e0e18=>({..._0x1e0e18,'startIndex':_0x1e0e18[_0x390bfb(0x101)]+_0x421ffe,'endIndex':_0x1e0e18[_0x390bfb(0x118)]+_0x421ffe}))]['sort']((_0x589746,_0x529d01)=>_0x589746[_0x390bfb(0x101)]-_0x529d01[_0x390bfb(0x101)]);}}}function xe(_0x38ae25,_0x25b9c9,_0x2dd54f){const _0x5201f0=_0x37dc9a;let _0x1ad66c=_0x2dd54f-_0x25b9c9;_0x38ae25[_0x5201f0(0xfd)]=''+_0x38ae25[_0x5201f0(0xfd)]['slice'](0x0,_0x25b9c9)+_0x38ae25[_0x5201f0(0xfd)][_0x5201f0(0xdd)](_0x2dd54f),Ce(_0x38ae25,_0x25b9c9,_0x1ad66c);}function Se(_0x35dfae,_0x1009b8,_0x1b6c4d){const _0x5213b7=_0x37dc9a;_0x35dfae[_0x5213b7(0xd1)]=I(_0x35dfae[_0x5213b7(0xd1)],_0x1009b8,_0x1b6c4d),_0x35dfae[_0x5213b7(0x96)]=I(_0x35dfae[_0x5213b7(0x96)],_0x1009b8,_0x1b6c4d),_0x35dfae[_0x5213b7(0x119)]=I(_0x35dfae['customBlocks'],_0x1009b8,_0x1b6c4d),_0x35dfae[_0x5213b7(0xf7)]=we(_0x35dfae[_0x5213b7(0xf7)],_0x1009b8,_0x1b6c4d),_0x35dfae['tables']=R(_0x35dfae[_0x5213b7(0xaf)],_0x1009b8,_0x1b6c4d),_0x35dfae[_0x5213b7(0x9b)]=R(_0x35dfae[_0x5213b7(0x9b)],_0x1009b8,_0x1b6c4d),_0x35dfae[_0x5213b7(0x10d)]=R(_0x35dfae['customDecorations'],_0x1009b8,_0x1b6c4d),_0x35dfae[_0x5213b7(0xac)]=R(_0x35dfae[_0x5213b7(0xac)],_0x1009b8,_0x1b6c4d);}function Ce(_0x3b5d1b,_0x3291e1,_0x209b23){const _0x18034d=_0x37dc9a;var _0x4da9a9,_0x141e1b;_0x3b5d1b[_0x18034d(0xd1)]=L(_0x3b5d1b[_0x18034d(0xd1)],_0x3291e1,_0x209b23),_0x3b5d1b[_0x18034d(0x96)]=L(_0x3b5d1b[_0x18034d(0x96)],_0x3291e1,_0x209b23),_0x3b5d1b[_0x18034d(0x119)]=L(_0x3b5d1b[_0x18034d(0x119)],_0x3291e1,_0x209b23),_0x3b5d1b['textRuns']=(_0x4da9a9=z((_0x141e1b=_0x3b5d1b[_0x18034d(0xf7)])==null?void 0x0:_0x141e1b[_0x18034d(0x105)](_0x5d22f6=>({..._0x5d22f6,'startIndex':_0x5d22f6['st'],'endIndex':_0x5d22f6['ed']})),_0x3291e1,_0x209b23))==null?void 0x0:_0x4da9a9[_0x18034d(0x105)](_0x5e4e65=>{let {startIndex:_0x1beca7,endIndex:_0xfcfa1b,..._0x13dc84}=_0x5e4e65;return{..._0x13dc84,'st':_0x1beca7,'ed':_0xfcfa1b};}),_0x3b5d1b[_0x18034d(0xaf)]=z(_0x3b5d1b[_0x18034d(0xaf)],_0x3291e1,_0x209b23),_0x3b5d1b[_0x18034d(0x9b)]=z(_0x3b5d1b[_0x18034d(0x9b)],_0x3291e1,_0x209b23),_0x3b5d1b[_0x18034d(0x10d)]=z(_0x3b5d1b[_0x18034d(0x10d)],_0x3291e1,_0x209b23),_0x3b5d1b['blockRanges']=z(_0x3b5d1b[_0x18034d(0xac)],_0x3291e1,_0x209b23);}function I(_0x276527,_0x2d6856,_0x29ba46){const _0xebfec=_0x37dc9a;return _0x276527==null?void 0x0:_0x276527['map'](_0x25d4ea=>_0x25d4ea[_0xebfec(0x101)]>=_0x2d6856?{..._0x25d4ea,'startIndex':_0x25d4ea[_0xebfec(0x101)]+_0x29ba46}:_0x25d4ea);}function L(_0x5d2e88,_0x29e57b,_0x4c0e27){const _0x395522=_0x37dc9a;let _0x73f7e1=_0x29e57b+_0x4c0e27;return _0x5d2e88==null?void 0x0:_0x5d2e88[_0x395522(0x105)](_0x473260=>_0x473260['startIndex']>=_0x29e57b&&_0x473260[_0x395522(0x101)]<_0x73f7e1?null:_0x473260[_0x395522(0x101)]>=_0x73f7e1?{..._0x473260,'startIndex':_0x473260[_0x395522(0x101)]-_0x4c0e27}:_0x473260)[_0x395522(0xcc)](_0x1d48aa=>_0x1d48aa!=null);}function we(_0x598ca0,_0x39611c,_0x426e7b){return _0x598ca0==null?void 0x0:_0x598ca0['map'](_0x2b4c1a=>_0x2b4c1a['st']>=_0x39611c?{..._0x2b4c1a,'st':_0x2b4c1a['st']+_0x426e7b,'ed':_0x2b4c1a['ed']+_0x426e7b}:_0x2b4c1a['ed']>_0x39611c?{..._0x2b4c1a,'ed':_0x2b4c1a['ed']+_0x426e7b}:_0x2b4c1a);}function R(_0x29aaa0,_0x41603b,_0x5284d8){const _0x49c3d0=_0x37dc9a;return _0x29aaa0==null?void 0x0:_0x29aaa0[_0x49c3d0(0x105)](_0x17a017=>_0x17a017['startIndex']>=_0x41603b?{..._0x17a017,'startIndex':_0x17a017[_0x49c3d0(0x101)]+_0x5284d8,'endIndex':_0x17a017['endIndex']+_0x5284d8}:_0x17a017[_0x49c3d0(0x118)]>=_0x41603b?{..._0x17a017,'endIndex':_0x17a017['endIndex']+_0x5284d8}:_0x17a017);}function z(_0x62aede,_0x17b597,_0x9c3b1d){const _0x113b27=_0x37dc9a;let _0x4836a8=_0x17b597+_0x9c3b1d;return _0x62aede==null?void 0x0:_0x62aede[_0x113b27(0x105)](_0x4fb1c1=>_0x4fb1c1[_0x113b27(0x101)]>=_0x17b597&&_0x4fb1c1[_0x113b27(0x118)]<_0x4836a8?null:_0x4fb1c1[_0x113b27(0x101)]>=_0x4836a8?{..._0x4fb1c1,'startIndex':_0x4fb1c1[_0x113b27(0x101)]-_0x9c3b1d,'endIndex':_0x4fb1c1[_0x113b27(0x118)]-_0x9c3b1d}:_0x4fb1c1[_0x113b27(0x118)]>=_0x17b597?{..._0x4fb1c1,'startIndex':_0x4fb1c1['startIndex']<_0x17b597?_0x4fb1c1[_0x113b27(0x101)]:_0x17b597,'endIndex':Math['max'](_0x17b597,_0x4fb1c1['endIndex']-_0x9c3b1d)}:_0x4fb1c1)[_0x113b27(0xcc)](_0x204ecf=>_0x204ecf!=null);}function B(_0x125bbc,_0x2d27cc,_0x398685,_0x2eec87){const _0x15988d=_0x37dc9a;_0x125bbc==null||_0x125bbc[_0x15988d(0xda)](_0x235ea5=>{const _0x46ec33=_0x15988d;_0x235ea5[_0x46ec33(0x101)]>=_0x2d27cc&&_0x235ea5[_0x46ec33(0x101)]<_0x398685&&(_0x235ea5[_0x46ec33(0x101)]+=_0x2eec87);});}function Te(_0x536895,_0x414768,_0x16ac25,_0xc455e8){const _0x16a664=_0x37dc9a;_0x536895==null||_0x536895[_0x16a664(0xda)](_0x4dcfde=>{_0x4dcfde['st']>=_0x414768&&_0x4dcfde['st']<_0x16ac25?(_0x4dcfde['st']+=_0xc455e8,_0x4dcfde['ed']+=_0xc455e8):_0x4dcfde['ed']>_0x414768&&_0x4dcfde['ed']<_0x16ac25&&(_0x4dcfde['ed']+=_0xc455e8);});}function V(_0x8fe4f6,_0x4723e4,_0x1667d7,_0x2abbb6){const _0x1e5b90=_0x37dc9a;_0x8fe4f6==null||_0x8fe4f6[_0x1e5b90(0xda)](_0x2ff037=>{const _0x463924=_0x1e5b90;_0x2ff037[_0x463924(0x101)]>=_0x4723e4&&_0x2ff037[_0x463924(0x101)]<_0x1667d7?(_0x2ff037[_0x463924(0x101)]+=_0x2abbb6,_0x2ff037[_0x463924(0x118)]+=_0x2abbb6):_0x2ff037[_0x463924(0x118)]>_0x4723e4&&_0x2ff037[_0x463924(0x118)]<_0x1667d7&&(_0x2ff037[_0x463924(0x118)]+=_0x2abbb6);});}function H(_0x4affa4){'@babel/helpers - typeof';const _0x4dac3f=_0x37dc9a;return H=typeof Symbol=='function'&&typeof Symbol[_0x4dac3f(0xc0)]==_0x4dac3f(0x110)?function(_0x37ee27){return typeof _0x37ee27;}:function(_0x13bfde){const _0xebc20d=_0x4dac3f;return _0x13bfde&&typeof Symbol==_0xebc20d(0xbd)&&_0x13bfde[_0xebc20d(0xd7)]===Symbol&&_0x13bfde!==Symbol['prototype']?_0xebc20d(0x110):typeof _0x13bfde;},H(_0x4affa4);}function Ee(_0x27bb0e,_0x38df8e){const _0x3d3be5=_0x37dc9a;if(H(_0x27bb0e)!=_0x3d3be5(0xcb)||!_0x27bb0e)return _0x27bb0e;var _0x1cf558=_0x27bb0e[Symbol[_0x3d3be5(0x102)]];if(_0x1cf558!==void 0x0){var _0x1d6a8b=_0x1cf558[_0x3d3be5(0xba)](_0x27bb0e,_0x38df8e||_0x3d3be5(0x99));if(H(_0x1d6a8b)!=_0x3d3be5(0xcb))return _0x1d6a8b;throw TypeError(_0x3d3be5(0xe0));}return(_0x38df8e===_0x3d3be5(0xf1)?String:Number)(_0x27bb0e);}function De(_0x3b5d38){const _0x1849fb=_0x37dc9a;var _0x3d5ab3=Ee(_0x3b5d38,_0x1849fb(0xf1));return H(_0x3d5ab3)==_0x1849fb(0x110)?_0x3d5ab3:_0x3d5ab3+'';}function U(_0x5b52b1,_0x268646,_0x3076eb){const _0x53ffd9=_0x37dc9a;return(_0x268646=De(_0x268646))in _0x5b52b1?Object[_0x53ffd9(0xfb)](_0x5b52b1,_0x268646,{'value':_0x3076eb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5b52b1[_0x268646]=_0x3076eb,_0x5b52b1;}var W=class extends _0x1f83fe{constructor(..._0x2d939d){const _0x2fafe9=_0x37dc9a;super(..._0x2d939d),U(this,_0x2fafe9(0xa4),new Map()),U(this,'_change$',new _0x3fa960()),U(this,_0x2fafe9(0xe2),this[_0x2fafe9(0x9f)][_0x2fafe9(0xbf)]());}[_0x37dc9a(0xf5)](_0xe3cda2,_0x33a324){const _0x3c1c86=_0x37dc9a;return E(this[_0x3c1c86(0xa4)][_0x3c1c86(0xbc)](_0xe3cda2))[_0x3c1c86(0xf0)][_0x33a324];}['setCodeConfig'](_0x6df39,_0x62efe5,_0x34ff8f){const _0x32c3a1=_0x37dc9a;this[_0x32c3a1(0x113)](_0x6df39,_0x62efe5,D(this['_resources'][_0x32c3a1(0xbc)](_0x6df39),_0x62efe5,_0x34ff8f));}[_0x37dc9a(0xdc)](_0x4aad08,_0x6223a6){const _0x21bf6c=_0x37dc9a;this[_0x21bf6c(0x113)](_0x4aad08,_0x6223a6,te(this[_0x21bf6c(0xa4)][_0x21bf6c(0xbc)](_0x4aad08),_0x6223a6));}['serialize'](_0x3dc97e){const _0x3c1f65=_0x37dc9a;return E(this[_0x3c1f65(0xa4)][_0x3c1f65(0xbc)](_0x3dc97e));}[_0x37dc9a(0xe7)](_0x187197,_0x11cbaf){const _0x37e32c=_0x37dc9a;this['_resources'][_0x37e32c(0xa8)](_0x187197,E(_0x11cbaf)),this[_0x37e32c(0x9f)][_0x37e32c(0xed)]({'unitId':_0x187197});}[_0x37dc9a(0xcf)](_0x5f15a6){const _0x2af2b2=_0x37dc9a;this['_resources'][_0x2af2b2(0xf2)](_0x5f15a6),this[_0x2af2b2(0x9f)]['next']({'unitId':_0x5f15a6});}[_0x37dc9a(0xa3)](){const _0x48e8cf=_0x37dc9a;super[_0x48e8cf(0xa3)](),this[_0x48e8cf(0xa4)][_0x48e8cf(0x94)](),this[_0x48e8cf(0x9f)][_0x48e8cf(0xe5)]();}[_0x37dc9a(0x113)](_0x1db533,_0x521470,_0x2c54c3){const _0x42e77d=_0x37dc9a;this[_0x42e77d(0xa4)][_0x42e77d(0xa8)](_0x1db533,_0x2c54c3),this[_0x42e77d(0x9f)]['next']({'unitId':_0x1db533,'blockId':_0x521470});}};const Oe={'id':'docs-code.command.insert-below','type':_0x5564de['COMMAND'],'handler':_0x390993=>{const _0x4e3f10=_0x37dc9a;let _0x421f0e=Me(_0x390993);if(_0x421f0e)return _0x390993['get'](_0x3dc52c)[_0x4e3f10(0x90)](G['id'],{'startOffset':_0x421f0e[_0x4e3f10(0xb8)],'endOffset':_0x421f0e[_0x4e3f10(0xa6)],'unitId':_0x421f0e['unitId']});let _0x224c9c=Ne(_0x390993);if(!_0x224c9c)return!0x1;let _0x2bfe08=_0x224c9c[_0x4e3f10(0x101)]+0x1;return _0x390993[_0x4e3f10(0xbc)](_0x3dc52c)['syncExecuteCommand'](G['id'],{'startOffset':_0x2bfe08,'endOffset':_0x2bfe08});}},ke={'id':_0x37dc9a(0xdb),'type':_0x5564de[_0x37dc9a(0xb3)],'handler':()=>!0x0},G={'id':'docs-code.command.insert','type':_0x5564de['COMMAND'],'handler':(_0x16ec17,_0x5c741f)=>{const _0x4ef937=_0x37dc9a;var _0x17e9d3,_0x36db2d,_0x20af27;let _0x4b301d=q(_0x16ec17,_0x5c741f==null?void 0x0:_0x5c741f['unitId']);if(!_0x4b301d)return!0x1;let _0x55ec1e=J(_0x16ec17),_0x2b5869=re({'blockId':(_0x17e9d3=_0x5c741f==null?void 0x0:_0x5c741f[_0x4ef937(0xbb)])==null?_0x1e03a8(0x6):_0x17e9d3,'config':_0x5c741f==null?void 0x0:_0x5c741f[_0x4ef937(0xb6)],'documentData':_0x4b301d[_0x4ef937(0x9d)],'endOffset':(_0x36db2d=_0x5c741f==null?void 0x0:_0x5c741f['endOffset'])==null?_0x55ec1e==null?void 0x0:_0x55ec1e[_0x4ef937(0xa6)]:_0x36db2d,'metadata':_0x4b301d[_0x4ef937(0xb5)]['serialize'](_0x4b301d['unitId']),'startOffset':(_0x20af27=_0x5c741f==null?void 0x0:_0x5c741f[_0x4ef937(0xb8)])==null?_0x55ec1e==null?void 0x0:_0x55ec1e[_0x4ef937(0xb8)]:_0x20af27}),_0x260875=X(_0x4b301d[_0x4ef937(0xeb)],_0x4b301d[_0x4ef937(0x104)],_0x4b301d[_0x4ef937(0x9d)],_0x2b5869[_0x4ef937(0x103)],_0x2b5869[_0x4ef937(0x108)]);return _0x260875&&_0x2b5869['nextMetadata']&&_0x4b301d[_0x4ef937(0xb5)][_0x4ef937(0xe7)](_0x4b301d['unitId'],_0x2b5869['nextMetadata']),_0x260875;}},Ae={'id':_0x37dc9a(0xb2),'type':_0x5564de['COMMAND'],'handler':(_0x237adc,_0x7e1f83)=>{const _0x427437=_0x37dc9a;if(!_0x7e1f83)return!0x1;let _0x44d0fb=q(_0x237adc,_0x7e1f83['unitId']);if(!_0x44d0fb)return!0x1;let _0x5219fe=O({'blockId':_0x7e1f83['blockId'],'config':_0x7e1f83['config'],'documentData':_0x44d0fb[_0x427437(0x9d)],'metadata':_0x44d0fb['model'][_0x427437(0xca)](_0x44d0fb[_0x427437(0x104)])});return _0x5219fe['nextMetadata']&&_0x44d0fb[_0x427437(0xb5)]['deserialize'](_0x44d0fb['unitId'],_0x5219fe[_0x427437(0x92)]),!0x0;}},K={'id':_0x37dc9a(0x114),'type':_0x5564de[_0x37dc9a(0xb3)],'handler':(_0x1394a1,_0x444f98)=>{const _0xbdfb79=_0x37dc9a;var _0x51fe4b,_0x59cb81;let _0x4dfa50=q(_0x1394a1,_0x444f98==null?void 0x0:_0x444f98[_0xbdfb79(0x104)]);if(!_0x4dfa50)return!0x1;let _0x3bab18=(_0x51fe4b=_0x444f98==null?void 0x0:_0x444f98[_0xbdfb79(0x108)])==null?(_0x59cb81=J(_0x1394a1))==null?void 0x0:_0x59cb81[_0xbdfb79(0xb8)]:_0x51fe4b;if(_0x3bab18==null)return!0x1;let _0x19b457=oe({'cursorOffset':_0x3bab18,'documentData':_0x4dfa50['previousDocumentData']});return _0x19b457?X(_0x4dfa50['commandService'],_0x4dfa50['unitId'],_0x4dfa50[_0xbdfb79(0x9d)],_0x19b457[_0xbdfb79(0x103)],_0x19b457[_0xbdfb79(0x108)]):!0x1;}},je={'id':_0x37dc9a(0xe4),'type':_0x5564de[_0x37dc9a(0xb3)],'handler':(_0x477529,_0x124bc8)=>{const _0x540084=_0x37dc9a;var _0x2135ee,_0x108c1b;let _0x48b2ff=q(_0x477529,_0x124bc8==null?void 0x0:_0x124bc8['unitId']);if(!_0x48b2ff)return!0x1;let _0x4e07bc=(_0x2135ee=_0x124bc8==null?void 0x0:_0x124bc8['cursorOffset'])==null?(_0x108c1b=J(_0x477529))==null?void 0x0:_0x108c1b[_0x540084(0xb8)]:_0x2135ee;if(_0x4e07bc==null)return!0x1;let _0x4d6b7e=se({'cursorOffset':_0x4e07bc,'documentData':_0x48b2ff[_0x540084(0x9d)],'paragraphStartIndex':_0x124bc8==null?void 0x0:_0x124bc8[_0x540084(0xb4)]});return _0x4d6b7e?X(_0x48b2ff[_0x540084(0xeb)],_0x48b2ff['unitId'],_0x48b2ff[_0x540084(0x9d)],_0x4d6b7e[_0x540084(0x103)],_0x4d6b7e[_0x540084(0x108)]):!0x1;}};function q(_0x3a68bc,_0x1bcd5e){const _0x1775a2=_0x37dc9a;let _0x2f506c=_0x3a68bc[_0x1775a2(0xbc)](_0x538bca),_0x1823d7=_0x1bcd5e?_0x2f506c[_0x1775a2(0xfc)](_0x1bcd5e):_0x2f506c[_0x1775a2(0xfa)](_0x275947[_0x1775a2(0x106)]);return _0x1823d7?{'commandService':_0x3a68bc[_0x1775a2(0xbc)](_0x3dc52c),'model':_0x3a68bc[_0x1775a2(0xbc)](W),'previousDocumentData':_0x1823d7[_0x1775a2(0xe3)](),'unitId':_0x1823d7[_0x1775a2(0x111)]()}:null;}function J(_0x25ac17){const _0x2a8751=_0x37dc9a;var _0x29ac59;return(_0x29ac59=_0x25ac17[_0x2a8751(0xbc)](_0x3e6948)[_0x2a8751(0xb7)]())==null?void 0x0:_0x29ac59[0x0];}function Me(_0x4f37a0){const _0x4a88b0=_0x37dc9a;var _0x5a132f;let _0x300b7d=(_0x5a132f=_0x4f37a0['get'](_0x538bca)[_0x4a88b0(0xfa)](_0x275947[_0x4a88b0(0x106)]))==null?void 0x0:_0x5a132f[_0x4a88b0(0x111)]();try{return _0x4f37a0[_0x4a88b0(0xbc)](_0xa010f0)[_0x4a88b0(0x91)](_0x300b7d);}catch{return null;}}function Ne(_0xb0d7ab){const _0x6c209c=_0x37dc9a;var _0x48739b,_0x566431,_0x2917e6;let _0x411307=J(_0xb0d7ab);if(!_0x411307)return null;let _0x2a419e=_0xb0d7ab['get'](_0x538bca)[_0x6c209c(0xfa)](_0x275947[_0x6c209c(0x106)]),_0x31d12d=_0x2a419e==null?void 0x0:_0x2a419e[_0x6c209c(0xcd)]();return _0x31d12d?(_0x48739b=_0x2ff854[_0x6c209c(0xb1)]['getParagraphsInRange'](_0x411307,(_0x566431=_0x31d12d['paragraphs'])==null?[]:_0x566431,(_0x2917e6=_0x31d12d[_0x6c209c(0xfd)])==null?'':_0x2917e6)[0x0])==null?null:_0x48739b:null;}function Pe(_0x4d449c,_0x13117e){const _0x5230ae=_0x37dc9a;var _0x3f6a21,_0x19474e,_0xfaa363,_0xbf1958,_0x39b042,_0x3c86e4,_0xa7ca3b,_0x42a772,_0x1c27b7,_0x47fef3,_0x59291b,_0x1f5be5,_0x212b74,_0x1d72e6,_0x5e52e8,_0xfef69e,_0xc23206,_0x20790b;let _0x5bf33e=_0x78d219[_0x5230ae(0x8f)]();return[Y(_0x5bf33e,[_0x5230ae(0xa7),_0x5230ae(0xfd)],(_0x3f6a21=_0x4d449c[_0x5230ae(0xa7)])==null?void 0x0:_0x3f6a21[_0x5230ae(0xfd)],(_0x19474e=_0x13117e['body'])==null?void 0x0:_0x19474e[_0x5230ae(0xfd)]),Y(_0x5bf33e,['body',_0x5230ae(0xd1)],(_0xfaa363=_0x4d449c['body'])==null?void 0x0:_0xfaa363[_0x5230ae(0xd1)],(_0xbf1958=_0x13117e['body'])==null?void 0x0:_0xbf1958[_0x5230ae(0xd1)]),Y(_0x5bf33e,[_0x5230ae(0xa7),_0x5230ae(0x96)],(_0x39b042=_0x4d449c['body'])==null?void 0x0:_0x39b042['sectionBreaks'],(_0x3c86e4=_0x13117e['body'])==null?void 0x0:_0x3c86e4['sectionBreaks']),Y(_0x5bf33e,[_0x5230ae(0xa7),'textRuns'],(_0xa7ca3b=_0x4d449c[_0x5230ae(0xa7)])==null?void 0x0:_0xa7ca3b[_0x5230ae(0xf7)],(_0x42a772=_0x13117e[_0x5230ae(0xa7)])==null?void 0x0:_0x42a772[_0x5230ae(0xf7)]),Y(_0x5bf33e,[_0x5230ae(0xa7),'customBlocks'],(_0x1c27b7=_0x4d449c[_0x5230ae(0xa7)])==null?void 0x0:_0x1c27b7[_0x5230ae(0x119)],(_0x47fef3=_0x13117e[_0x5230ae(0xa7)])==null?void 0x0:_0x47fef3[_0x5230ae(0x119)]),Y(_0x5bf33e,[_0x5230ae(0xa7),_0x5230ae(0x9b)],(_0x59291b=_0x4d449c['body'])==null?void 0x0:_0x59291b[_0x5230ae(0x9b)],(_0x1f5be5=_0x13117e[_0x5230ae(0xa7)])==null?void 0x0:_0x1f5be5[_0x5230ae(0x9b)]),Y(_0x5bf33e,[_0x5230ae(0xa7),_0x5230ae(0x10d)],(_0x212b74=_0x4d449c[_0x5230ae(0xa7)])==null?void 0x0:_0x212b74[_0x5230ae(0x10d)],(_0x1d72e6=_0x13117e[_0x5230ae(0xa7)])==null?void 0x0:_0x1d72e6[_0x5230ae(0x10d)]),Y(_0x5bf33e,['body',_0x5230ae(0xaf)],(_0x5e52e8=_0x4d449c['body'])==null?void 0x0:_0x5e52e8['tables'],(_0xfef69e=_0x13117e[_0x5230ae(0xa7)])==null?void 0x0:_0xfef69e[_0x5230ae(0xaf)]),Y(_0x5bf33e,[_0x5230ae(0xa7),_0x5230ae(0xac)],(_0xc23206=_0x4d449c[_0x5230ae(0xa7)])==null?void 0x0:_0xc23206[_0x5230ae(0xac)],(_0x20790b=_0x13117e['body'])==null?void 0x0:_0x20790b['blockRanges'])]['filter'](Boolean)[_0x5230ae(0x97)]((_0x1c55ce,_0x1939fb)=>_0x78d219[_0x5230ae(0xc4)](_0x1c55ce,_0x1939fb),null);}function Y(_0x30d1f5,_0x8fe520,_0x36ecc2,_0x5be841){const _0x554ca7=_0x37dc9a;return _0x1153b['diffValue'](_0x36ecc2,_0x5be841)?null:_0x30d1f5[_0x554ca7(0xc3)](_0x8fe520,_0x36ecc2,_0x5be841);}function X(_0x19c741,_0x27e2b4,_0x5abb22,_0x53b9f7,_0x39806d){const _0x4dffb9=_0x37dc9a;let _0x2c690b=Pe(_0x5abb22,_0x53b9f7);return _0x2c690b?!!_0x19c741[_0x4dffb9(0x90)](_0x2c1b72['id'],{'unitId':_0x27e2b4,'actions':_0x2c690b,'textRanges':[{'startOffset':_0x39806d,'endOffset':_0x39806d,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Fe=_0x37dc9a(0x93),Ie=_0x37dc9a(0xc2);const Le={};function Z(_0x133b56,_0x54131e){return function(_0x463106,_0xcb88b0){_0x54131e(_0x463106,_0xcb88b0,_0x133b56);};}function Re(_0x2b4bf7,_0x5602ba,_0x59377a,_0x5ce049){const _0x187342=_0x37dc9a;var _0x544942=arguments[_0x187342(0xf3)],_0x51eec1=_0x544942<0x3?_0x5602ba:_0x5ce049===null?_0x5ce049=Object[_0x187342(0xbe)](_0x5602ba,_0x59377a):_0x5ce049,_0x4ef697;if(typeof Reflect==_0x187342(0xcb)&&typeof Reflect[_0x187342(0xc8)]==_0x187342(0xbd))_0x51eec1=Reflect['decorate'](_0x2b4bf7,_0x5602ba,_0x59377a,_0x5ce049);else{for(var _0x13aeb9=_0x2b4bf7[_0x187342(0xf3)]-0x1;_0x13aeb9>=0x0;_0x13aeb9--)(_0x4ef697=_0x2b4bf7[_0x13aeb9])&&(_0x51eec1=(_0x544942<0x3?_0x4ef697(_0x51eec1):_0x544942>0x3?_0x4ef697(_0x5602ba,_0x59377a,_0x51eec1):_0x4ef697(_0x5602ba,_0x59377a))||_0x51eec1);}return _0x544942>0x3&&_0x51eec1&&Object[_0x187342(0xfb)](_0x5602ba,_0x59377a,_0x51eec1),_0x51eec1;}let Q=class extends _0x1f83fe{constructor(_0x5017f6,_0x30cc6a){const _0x44909e=_0x37dc9a;super(),this[_0x44909e(0xe1)]=_0x5017f6,this['_docsCodeModel']=_0x30cc6a,this[_0x44909e(0xea)]();}[_0x37dc9a(0xea)](){const _0xf4dec8=_0x37dc9a;this['disposeWithMe'](this[_0xf4dec8(0xe1)][_0xf4dec8(0xc5)]({'pluginName':S,'businesses':[_0x275947[_0xf4dec8(0x106)]],'toJson':_0x27abb5=>JSON[_0xf4dec8(0xae)](this[_0xf4dec8(0xf6)][_0xf4dec8(0xca)](_0x27abb5)),'parseJson':_0x4c01b4=>E(JSON[_0xf4dec8(0xfe)](_0x4c01b4)),'onLoad':(_0x1ff91b,_0x19881b)=>this[_0xf4dec8(0xf6)]['deserialize'](_0x1ff91b,_0x19881b),'onUnLoad':_0x328a52=>this[_0xf4dec8(0xf6)]['removeUnit'](_0x328a52)}));}};Q=Re([Z(0x0,_0x3d90e8),Z(0x1,_0x396106(W))],Q);let $=class extends _0x44b3d8{constructor(_0x11d015=Le,_0x1020c2,_0x2d7c8a,_0x131aed){const _0x5bd7cb=_0x37dc9a;super(),this['_config']=_0x11d015,this[_0x5bd7cb(0xf4)]=_0x1020c2,this[_0x5bd7cb(0xef)]=_0x2d7c8a,this[_0x5bd7cb(0x10e)]=_0x131aed;let {..._0x1121c8}=_0x259bce({},Le,this[_0x5bd7cb(0xe8)]);this[_0x5bd7cb(0x10e)]['setConfig']('docs-code.config',_0x1121c8);}[_0x37dc9a(0xc1)](){const _0x43f82a=_0x37dc9a;this[_0x43f82a(0xf4)][_0x43f82a(0xb0)]([W]),this['_injector'][_0x43f82a(0xb0)]([Q]),this[_0x43f82a(0xf4)][_0x43f82a(0xbc)](W),this[_0x43f82a(0xf4)]['get'](Q),[G,Oe,Ae,K,je,ke]['forEach'](_0x250a2e=>this[_0x43f82a(0x100)](this[_0x43f82a(0xef)][_0x43f82a(0xd4)](_0x250a2e)));}};U($,_0x37dc9a(0xd6),S),U($,_0x37dc9a(0xf9),Fe),U($,'version',Ie),U($,_0x37dc9a(0x9c),_0x275947[_0x37dc9a(0x106)]),$=Re([_0x36a9b7(_0x39cf8c,_0x14c4d3),Z(0x1,_0x396106(_0x4b35e7)),Z(0x2,_0x3dc52c),Z(0x3,_0x1373ca)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5d8d(){const _0x42e8ab=['get','length','text','body','object','forEach','call','getInstance','getRange','from','compose','previousDocumentData','toPrimitive','syncExecuteCommand','spaceAbove','reduce','change$','nextDocumentData','dataStream','model','nextMetadata','paragraph','next','startIndex','615CfMHDz','cursorOffset','serialize','getText','getTextRanges','filter','deserialize','spaceBelow','generateRandomId','textStyle','2654316TmZdFj','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverDocs','DocSelectionManagerService','getCodes','Subject','join','code','clear','docs-code-','_getBlockRange','paragraphs','map','JSONX','replaceOp','indexOf','every','BLOCK_START','prototype','UniverInstanceType','getUniverDocInstance','unitId','34950dbLMWV','1379174cNDnxz','replace','docs-code.command.insert','docs-code.command.cancel-empty-paragraph','@univerjs/docs-ui/facade','Tools','FDocument','commandService','paragraphStartIndex','BLOCK_END','getDocumentData','some','docs-code.command.exit','customDecorations','rxjs','dispose','Module','getConfig','indentEnd','fromEntries','amd','now','updateConfig','endTokenOffset','sort','16mbnQpB','string','endIndex','symbol','getCodeConfig','diffValue','UniverDocsUiFacade','_change$','defineProperty','min','assign','_resources','delete','@univerjs/core','endOffset','_commandService','find','Document\x20body\x20is\x20required','COMMAND','documentData','blockRanges','slice','metadata','deepClone','includes','toStringTag','getSnapshot','describe','cancelEmptyParagraph','paragraphStyle','function','max','default','210303jLzdna','blockId','tables','codes','customBlocks','asObservable','27024Tgjqea','removeUnit','_setResource','@univerjs/docs-ui','1763832aVTfWU','indentStart','javascript','_runtime','SECTION_BREAK','startOffset','set','DataStreamTreeTokenType','FDocsCode','UniverCore','@univerjs/docs','9289150zEosDs','blockType','CommandType','findCodes','18OKmasd','customRanges','textRuns','sectionBreaks','getUnitId','config','ICommandService','getId'];_0x5d8d=function(){return _0x42e8ab;};return _0x5d8d();}function _0xe374(_0x45391c,_0x52d691){_0x45391c=_0x45391c-0x8f;const _0x5d8db9=_0x5d8d();let _0xe374b2=_0x5d8db9[_0x45391c];return _0xe374b2;}(function(_0x38ba8f,_0x2ac555){const _0x3891cc=_0xe374,_0x350c40=_0x38ba8f();while(!![]){try{const _0x343935=-parseInt(_0x3891cc(0x11a))/0x1+parseInt(_0x3891cc(0x11b))/0x2+-parseInt(_0x3891cc(0x104))/0x3+parseInt(_0x3891cc(0xc7))/0x4*(-parseInt(_0x3891cc(0xfa))/0x5)+-parseInt(_0x3891cc(0xda))/0x6*(-parseInt(_0x3891cc(0xcb))/0x7)+parseInt(_0x3891cc(0xa0))/0x8*(-parseInt(_0x3891cc(0xc1))/0x9)+parseInt(_0x3891cc(0xd6))/0xa;if(_0x343935===_0x2ac555)break;else _0x350c40['push'](_0x350c40['shift']());}catch(_0x46e6fc){_0x350c40['push'](_0x350c40['shift']());}}}(_0x5d8d,0x8cdda),function(_0x37b6b0,_0x2d5a77){const _0x205215=_0xe374;typeof exports=='object'&&typeof module<'u'?_0x2d5a77(exports,require('@univerjs/core'),require('@univerjs/docs-ui/facade'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('rxjs')):typeof define==_0x205215(0xbe)&&define[_0x205215(0x9b)]?define(['exports',_0x205215(0xad),_0x205215(0x11f),_0x205215(0xd5),_0x205215(0xca),_0x205215(0x95)],_0x2d5a77):(_0x37b6b0=typeof globalThis<'u'?globalThis:_0x37b6b0||self,_0x2d5a77(_0x37b6b0['UniverProDocsCodeFacade']={},_0x37b6b0[_0x205215(0xd4)],_0x37b6b0[_0x205215(0xa6)],_0x37b6b0[_0x205215(0x106)],_0x37b6b0['UniverDocsUi'],_0x37b6b0[_0x205215(0x95)]));}(this,function(_0x44d374,_0x431ac1,_0x219e08,_0x378e18,_0x1be97d,_0x3ca085){const _0x7b5c2c=_0xe374;Object[_0x7b5c2c(0xa8)](_0x44d374,Symbol[_0x7b5c2c(0xb9)],{'value':_0x7b5c2c(0x97)});let _0x282176=_0x7b5c2c(0x10b),_0x624673={'language':_0x7b5c2c(0xcd),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0xe71c91(_0x39e02d){return{..._0x624673,..._0x39e02d};}function _0x5da300(_0x3e565d){const _0x5b2755=_0x7b5c2c;var _0x56e14b;let _0x30e3b0=(_0x56e14b=_0x3e565d==null?void 0x0:_0x3e565d[_0x5b2755(0xc4)])==null?{}:_0x56e14b;return{'codes':Object[_0x5b2755(0x9a)](Object['entries'](_0x30e3b0)[_0x5b2755(0x110)](([_0x388f7b,_0x2f3bb1])=>[_0x388f7b,_0xe71c91(_0x2f3bb1)]))};}function _0x33f24f(_0x3b7edc,_0x2e5fd0,_0x30cdd1){const _0xa06711=_0x7b5c2c;let _0x59bcc3=_0x5da300(_0x3b7edc);return _0x59bcc3['codes'][_0x2e5fd0]=_0xe71c91({..._0x59bcc3[_0xa06711(0xc4)][_0x2e5fd0],..._0x30cdd1}),_0x59bcc3;}function _0x1e0bce(_0x529a84,_0x386ede){const _0x38f131=_0x7b5c2c;let _0x373b04=_0x5da300(_0x529a84);return delete _0x373b04[_0x38f131(0xc4)][_0x386ede],_0x373b04;}let _0x1f74c6='monospace';function _0x4c6273(_0x3fc3e6){const _0x49eac6=_0x7b5c2c;var _0x51229b,_0x561589,_0x58a822;let _0x32bca9=_0x569b5a(_0x3fc3e6['documentData']),_0x5c26a5=_0x27dccd(_0x32bca9),_0x4cfcae=_0x4864e7(_0x3fc3e6[_0x49eac6(0xd0)],_0x3fc3e6[_0x49eac6(0xae)]),_0x43c16b=_0x4cfcae?(_0x51229b=_0x5c26a5[_0x49eac6(0xb4)])==null?void 0x0:_0x51229b[_0x49eac6(0xb0)](_0x3657af=>_0x3657af[_0x49eac6(0xf9)]===_0x4cfcae[_0x49eac6(0xd0)]&&_0x3657af[_0x49eac6(0xa2)]+0x1===_0x4cfcae[_0x49eac6(0xae)]):void 0x0,{startOffset:_0x5026c1,endOffset:_0x51b3e7}=_0x43c16b?_0x4cfcae:_0x5c4291(_0x5c26a5,_0x3fc3e6[_0x49eac6(0xd0)],_0x3fc3e6[_0x49eac6(0xae)]),_0x1b777e=_0x291260(_0x5c26a5,_0x5026c1,_0x51b3e7),_0x2f109f=(_0x561589=_0x43c16b==null?void 0x0:_0x43c16b[_0x49eac6(0xc2)])==null?_0x3fc3e6[_0x49eac6(0xc2)]:_0x561589,_0x41efbb=_0x33f24f(_0x3fc3e6[_0x49eac6(0xb6)],_0x2f109f,{..._0x624673,..._0x3fc3e6[_0x49eac6(0xdf)]});if(_0x43c16b)return _0x43c16b[_0x49eac6(0xd7)]=_0x282176,_0x5bc73d(_0x5c26a5,_0x5026c1,_0x51b3e7),_0x1bda46(_0x5c26a5,_0x5026c1,_0x51b3e7,_0x1b777e),{'nextDocumentData':_0x32bca9,'nextMetadata':_0x41efbb,'cursorOffset':_0x5026c1+0x1};if(_0x5026c1===_0x51b3e7){let _0x2dda68=''+_0x431ac1[_0x49eac6(0xd2)][_0x49eac6(0x115)]+_0x431ac1[_0x49eac6(0xd2)]['PARAGRAPH']+_0x431ac1['DataStreamTreeTokenType'][_0x49eac6(0x90)];return _0x30977d(_0x5c26a5,_0x5026c1,_0x2dda68,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':_0x28bfe0(!0x0,!0x0,_0x1b777e)}],'blockRanges':[{'blockId':_0x2f109f,'blockType':_0x282176,'startIndex':0x0,'endIndex':_0x2dda68[_0x49eac6(0xe3)]-0x1}]}),{'nextDocumentData':_0x32bca9,'nextMetadata':_0x41efbb,'cursorOffset':_0x5026c1+0x1};}return _0x30977d(_0x5c26a5,_0x51b3e7,_0x431ac1[_0x49eac6(0xd2)]['BLOCK_END']),_0x30977d(_0x5c26a5,_0x5026c1,_0x431ac1['DataStreamTreeTokenType'][_0x49eac6(0x115)]),_0x1bda46(_0x5c26a5,_0x5026c1,_0x51b3e7+0x1,_0x1b777e),_0x5c26a5[_0x49eac6(0xb4)]=[...(_0x58a822=_0x5c26a5[_0x49eac6(0xb4)])==null?[]:_0x58a822,{'blockId':_0x2f109f,'blockType':_0x282176,'startIndex':_0x5026c1,'endIndex':_0x51b3e7+0x1}][_0x49eac6(0x9f)]((_0x23723d,_0x164e4a)=>_0x23723d[_0x49eac6(0xf9)]-_0x164e4a[_0x49eac6(0xf9)]),{'nextDocumentData':_0x32bca9,'nextMetadata':_0x41efbb,'cursorOffset':_0x5026c1+0x1};}function _0x5bc73d(_0x442078,_0x2558da,_0x4c5d22){const _0x11797f=_0x7b5c2c;var _0x2f486a;((_0x2f486a=_0x442078['paragraphs'])==null?[]:_0x2f486a)['filter'](_0x3670d8=>_0x3670d8['startIndex']>_0x2558da&&_0x3670d8[_0x11797f(0xf9)]<_0x4c5d22)[_0x11797f(0xe7)](_0x167b71=>{const _0xa8bda=_0x11797f;var _0xe0db93;let _0x42cbe3={...(_0xe0db93=_0x167b71[_0xa8bda(0xbd)])==null?{}:_0xe0db93};delete _0x42cbe3[_0xa8bda(0xf0)],delete _0x42cbe3[_0xa8bda(0x101)],_0x167b71['paragraphStyle']=_0x42cbe3;});}function _0x4864e7(_0x2841e5,_0x590032){const _0x4a3ddf=_0x7b5c2c;return _0x2841e5==null||_0x590032==null||_0x2841e5===_0x590032?null:{'startOffset':Math[_0x4a3ddf(0xa9)](_0x2841e5,_0x590032),'endOffset':Math[_0x4a3ddf(0xbf)](_0x2841e5,_0x590032)};}function _0x490615(_0x4de06e){const _0xbbc9cc=_0x7b5c2c;return{'nextDocumentData':_0x569b5a(_0x4de06e[_0xbbc9cc(0xb3)]),'nextMetadata':_0x33f24f(_0x4de06e[_0xbbc9cc(0xb6)],_0x4de06e[_0xbbc9cc(0xc2)],_0x4de06e[_0xbbc9cc(0xdf)]),'cursorOffset':0x0};}function _0x2387ec(_0x129c99){const _0x4beca6=_0x7b5c2c;var _0xf984eb,_0x5c3d4d;let _0x427d34=_0x569b5a(_0x129c99[_0x4beca6(0xb3)]),_0x1d5c77=_0x27dccd(_0x427d34),_0x43e73b=_0x580889(_0x1d5c77,_0x129c99[_0x4beca6(0xfb)]);if(!_0x43e73b)return null;let _0x5a046f=_0x89ea5a(_0x1d5c77,_0x43e73b),_0xdfe34d=_0x5a046f[_0x5a046f[_0x4beca6(0xe3)]-0x1];if(!_0xdfe34d||!_0x4e6ab6(_0x1d5c77,_0x43e73b,_0xdfe34d)||_0x129c99[_0x4beca6(0xfb)]<_0xdfe34d[_0x4beca6(0xf9)])return null;let _0x26cce8=_0x2a7bc4(_0x1d5c77,_0x43e73b,_0xdfe34d);if(_0x26cce8>=_0x43e73b[_0x4beca6(0xa2)])return null;_0x1d5c77[_0x4beca6(0xf4)]=[_0x1d5c77[_0x4beca6(0xf4)][_0x4beca6(0xb5)](0x0,_0x26cce8),_0x431ac1[_0x4beca6(0xd2)][_0x4beca6(0x90)],_0x1d5c77[_0x4beca6(0xf4)]['slice'](_0x26cce8,_0x43e73b['endIndex']),_0x1d5c77['dataStream']['slice'](_0x43e73b[_0x4beca6(0xa2)]+0x1)][_0x4beca6(0x10a)](''),_0x2c61e7(_0x1d5c77[_0x4beca6(0x10f)],_0x26cce8,_0x43e73b[_0x4beca6(0xa2)],0x1),_0x2c61e7(_0x1d5c77['sectionBreaks'],_0x26cce8,_0x43e73b[_0x4beca6(0xa2)],0x1),_0x2c61e7(_0x1d5c77[_0x4beca6(0xc5)],_0x26cce8,_0x43e73b['endIndex'],0x1),_0x1add7e(_0x1d5c77[_0x4beca6(0xdc)],_0x26cce8,_0x43e73b[_0x4beca6(0xa2)],0x1),_0x47c34d(_0x1d5c77[_0x4beca6(0xc3)],_0x26cce8,_0x43e73b['endIndex'],0x1),_0x47c34d(_0x1d5c77[_0x4beca6(0xdb)],_0x26cce8,_0x43e73b[_0x4beca6(0xa2)],0x1),_0x47c34d(_0x1d5c77[_0x4beca6(0x94)],_0x26cce8,_0x43e73b[_0x4beca6(0xa2)],0x1),(_0xf984eb=_0x1d5c77[_0x4beca6(0xb4)])==null||_0xf984eb[_0x4beca6(0xe7)](_0xefcc9c=>{const _0x518b82=_0x4beca6;_0xefcc9c===_0x43e73b||_0xefcc9c[_0x518b82(0xc2)]===_0x43e73b[_0x518b82(0xc2)]?_0xefcc9c[_0x518b82(0xa2)]=_0x26cce8:_0xefcc9c[_0x518b82(0xf9)]>=_0x26cce8&&_0xefcc9c[_0x518b82(0xf9)]<_0x43e73b[_0x518b82(0xa2)]&&(_0xefcc9c[_0x518b82(0xf9)]+=0x1,_0xefcc9c[_0x518b82(0xa2)]+=0x1);});let _0x32a514=_0x89ea5a(_0x1d5c77,{..._0x43e73b,'endIndex':_0x26cce8});_0x32a514[_0x4beca6(0xe7)]((_0x367b46,_0x2a4fd8)=>{const _0x1a2a59=_0x4beca6;var _0x33ce3b;_0x367b46[_0x1a2a59(0xbd)]={...(_0x33ce3b=_0x367b46[_0x1a2a59(0xbd)])==null?{}:_0x33ce3b,..._0x28bfe0(_0x2a4fd8===0x0,_0x2a4fd8===_0x32a514['length']-0x1)};});let _0x1f38da=(_0x5c3d4d=_0x1d5c77['paragraphs'])==null?void 0x0:_0x5c3d4d[_0x4beca6(0xb0)](_0x1478ca=>_0x1478ca[_0x4beca6(0xf9)]===_0x26cce8+0x1);return _0x1f38da&&(_0x1f38da[_0x4beca6(0xbd)]=_0x5b7ecf(_0x1f38da[_0x4beca6(0xbd)])),{'nextDocumentData':_0x427d34,'cursorOffset':_0x26cce8+0x1};}function _0x3c5a6c(_0x10ed62){const _0x42069c=_0x7b5c2c;let _0x29ed06=_0x569b5a(_0x10ed62['documentData']),_0x5f4c8c=_0x27dccd(_0x29ed06),_0x4d78d3=_0x580889(_0x5f4c8c,_0x10ed62['cursorOffset']);return _0x4d78d3&&_0x158475(_0x29ed06,_0x5f4c8c,_0x4d78d3,_0x10ed62[_0x42069c(0xfb)],_0x10ed62[_0x42069c(0x8f)])||null;}function _0x158475(_0x5a98ea,_0x455563,_0x4e1bbc,_0x8e1363,_0x4b98d5){const _0x1822b3=_0x7b5c2c;let _0x180caf=_0x4c59fa(_0x455563,_0x4e1bbc,_0x8e1363,_0x4b98d5);if(!_0x180caf)return null;let _0x53559a=_0x180caf[_0x1822b3(0x9e)]-0x1;return _0x37dcaf(_0x455563,_0x180caf[_0x1822b3(0xf7)][_0x1822b3(0xf9)],_0x180caf[_0x1822b3(0xf7)]['startIndex']+0x1),{'nextDocumentData':_0x5a98ea,'cursorOffset':_0x53559a};}function _0x580889(_0x43641f,_0x221378){const _0x3fc500=_0x7b5c2c;var _0x216650;return(_0x216650=_0x43641f[_0x3fc500(0xb4)])==null?void 0x0:_0x216650[_0x3fc500(0xb0)](_0x265868=>{const _0x260e20=_0x3fc500;let _0x18992d=_0x2f6ccd(_0x43641f,_0x265868);return _0x265868[_0x260e20(0xd7)]===_0x260e20(0x10b)&&_0x265868['startIndex']<=_0x221378&&_0x221378<=_0x18992d+0x2;});}function _0x28bfe0(_0x4e1cf3,_0x3eec0f,_0x4ac6bc=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x4e1cf3&&_0x4ac6bc?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x1f74c6,'fs':0xc}};}function _0x1bda46(_0x337f6c,_0x5dd254,_0x1993a7,_0x592aee=!0x1){const _0x48a810=_0x7b5c2c;var _0x39d9d5;let _0x260ea3=((_0x39d9d5=_0x337f6c[_0x48a810(0x10f)])==null?[]:_0x39d9d5)['filter'](_0x4e409a=>_0x4e409a['startIndex']>_0x5dd254&&_0x4e409a[_0x48a810(0xf9)]<_0x1993a7);_0x260ea3[_0x48a810(0xe7)]((_0x19eca7,_0x1f78ed)=>{const _0x55d002=_0x48a810;var _0x26f38e;_0x19eca7['paragraphStyle']={...(_0x26f38e=_0x19eca7[_0x55d002(0xbd)])==null?{}:_0x26f38e,..._0x28bfe0(_0x1f78ed===0x0,_0x1f78ed===_0x260ea3[_0x55d002(0xe3)]-0x1,_0x592aee)};});}function _0x5b7ecf(_0x106c6f){const _0x4fc95a=_0x7b5c2c;var _0x23ffdf,_0x50e852;let _0x1b6d3d={..._0x106c6f==null?{}:_0x106c6f};return delete _0x1b6d3d[_0x4fc95a(0x99)],delete _0x1b6d3d[_0x4fc95a(0xcc)],delete _0x1b6d3d[_0x4fc95a(0xf0)],delete _0x1b6d3d[_0x4fc95a(0x101)],((_0x23ffdf=_0x1b6d3d['textStyle'])==null?void 0x0:_0x23ffdf['ff'])===_0x1f74c6&&((_0x50e852=_0x1b6d3d[_0x4fc95a(0x103)])==null?void 0x0:_0x50e852['fs'])===0xc&&delete _0x1b6d3d[_0x4fc95a(0x103)],_0x1b6d3d;}function _0x89ea5a(_0x1dd078,_0x5029b6){const _0x54c455=_0x7b5c2c;var _0x3ab0c8;let _0x19c6af=_0x2f6ccd(_0x1dd078,_0x5029b6);return((_0x3ab0c8=_0x1dd078[_0x54c455(0x10f)])==null?[]:_0x3ab0c8)['filter'](_0x1ee4e4=>_0x1ee4e4['startIndex']>_0x5029b6['startIndex']&&_0x1ee4e4['startIndex']<_0x19c6af);}function _0x4e6ab6(_0x2d6aef,_0x5947b5,_0x3c1ad5){const _0x170299=_0x7b5c2c;let _0x1ceb12=_0x2a7bc4(_0x2d6aef,_0x5947b5,_0x3c1ad5),_0x29a7bf=_0x2d6aef[_0x170299(0xf4)][_0x170299(0xb5)](_0x1ceb12,_0x3c1ad5[_0x170299(0xf9)]);return Array[_0x170299(0xeb)](_0x29a7bf)[_0x170299(0x114)](_0x211798=>_0x211798===_0x431ac1[_0x170299(0xd2)]['BLOCK_START']||_0x211798===_0x431ac1[_0x170299(0xd2)][_0x170299(0x90)]);}function _0x569b5a(_0x311990){const _0x57a49f=_0x7b5c2c;return _0x431ac1['Tools'][_0x57a49f(0xb7)](_0x311990);}function _0x27dccd(_0x572553){const _0x35482e=_0x7b5c2c;if(!_0x572553[_0x35482e(0xe5)])throw Error(_0x35482e(0xb1));return _0x572553[_0x35482e(0xe5)];}function _0x5c4291(_0x465d8c,_0x2ef549,_0x4925b2){const _0x5b300e=_0x7b5c2c;if(_0x2ef549==null||_0x4925b2==null){let _0x1da9e4=_0x4ff4b6(_0x465d8c);return{'startOffset':_0x1da9e4,'endOffset':_0x1da9e4};}let _0x1e6d2a=Math[_0x5b300e(0xa9)](_0x2ef549,_0x4925b2),_0x2296d2=Math[_0x5b300e(0xbf)](_0x2ef549,_0x4925b2);return _0x1e6d2a===_0x2296d2?{'startOffset':_0x1e6d2a,'endOffset':_0x1e6d2a}:_0x41a556(_0x465d8c,_0x1e6d2a,_0x2296d2);}function _0x4ff4b6(_0x5cbfca){const _0x900a32=_0x7b5c2c;return _0x5cbfca[_0x900a32(0xf4)]['endsWith'](_0x431ac1[_0x900a32(0xd2)][_0x900a32(0xcf)])?Math[_0x900a32(0xbf)](0x0,_0x5cbfca[_0x900a32(0xf4)]['length']-0x1):_0x5cbfca[_0x900a32(0xf4)][_0x900a32(0xe3)];}function _0x291260(_0x205ee9,_0x5a8e92,_0x2268c2){const _0x5ce981=_0x7b5c2c;var _0xee6cf1;let _0x225983=Math[_0x5ce981(0xa9)](_0x5a8e92,_0x2268c2),_0x3988d9=Math['max'](_0x5a8e92,_0x2268c2);return!!((_0xee6cf1=_0x205ee9[_0x5ce981(0xc3)])!=null&&_0xee6cf1[_0x5ce981(0x92)](_0x5384ac=>_0x225983>_0x5384ac[_0x5ce981(0xf9)]&&_0x225983<_0x5384ac[_0x5ce981(0xa2)]||_0x3988d9>_0x5384ac[_0x5ce981(0xf9)]&&_0x3988d9<_0x5384ac[_0x5ce981(0xa2)]||_0x225983<=_0x5384ac[_0x5ce981(0xf9)]&&_0x3988d9>=_0x5384ac[_0x5ce981(0xa2)]));}function _0x41a556(_0x2b2a06,_0x1d1cce,_0x2b4f47){const _0x3a9d66=_0x7b5c2c;var _0x1a1cae,_0x18cbbb;let _0x50ab1c=[...(_0x1a1cae=_0x2b2a06[_0x3a9d66(0x10f)])==null?[]:_0x1a1cae][_0x3a9d66(0x9f)]((_0x573113,_0x168bd3)=>_0x573113['startIndex']-_0x168bd3[_0x3a9d66(0xf9)]),_0x416cb9=_0x50ab1c['find']((_0x13fe76,_0x268231)=>(_0x268231===0x0?0x0:_0x50ab1c[_0x268231-0x1][_0x3a9d66(0xf9)]+0x1)<=_0x1d1cce&&_0x1d1cce<=_0x13fe76[_0x3a9d66(0xf9)]),_0x443a9d=(_0x18cbbb=_0x50ab1c[_0x3a9d66(0xb0)](_0x1ed73e=>_0x1ed73e['startIndex']>=_0x2b4f47-0x1))==null?_0x50ab1c[_0x50ab1c[_0x3a9d66(0xe3)]-0x1]:_0x18cbbb;return{'startOffset':_0x416cb9?_0x3ff899(_0x50ab1c,_0x416cb9):_0x1d1cce,'endOffset':_0x443a9d?_0x443a9d['startIndex']+0x1:_0x2b4f47};}function _0x3ff899(_0x3db912,_0x14f361){const _0x3a10be=_0x7b5c2c;let _0x29358f=_0x3db912[_0x3a10be(0x113)](_0x14f361);return _0x29358f>0x0?_0x3db912[_0x29358f-0x1][_0x3a10be(0xf9)]+0x1:0x0;}function _0x2a7bc4(_0x3d18b5,_0x4d7e52,_0x3eae08){const _0x22590a=_0x7b5c2c;var _0x42ecfb;return Math[_0x22590a(0xbf)](_0x3ff899((_0x42ecfb=_0x3d18b5[_0x22590a(0x10f)])==null?[]:_0x42ecfb,_0x3eae08),_0x4d7e52[_0x22590a(0xf9)]+0x1);}function _0x2f6ccd(_0x2c5c2f,_0x4aa135){const _0x596c05=_0x7b5c2c;return _0x2c5c2f['dataStream'][_0x4aa135[_0x596c05(0xa2)]]===_0x431ac1['DataStreamTreeTokenType'][_0x596c05(0x90)]?_0x4aa135[_0x596c05(0xa2)]:_0x2c5c2f[_0x596c05(0xf4)][_0x4aa135[_0x596c05(0xa2)]+0x1]===_0x431ac1[_0x596c05(0xd2)][_0x596c05(0x90)]?_0x4aa135[_0x596c05(0xa2)]+0x1:_0x4aa135[_0x596c05(0xa2)];}function _0x4c59fa(_0x330582,_0x3955ec,_0x3bb328,_0x5c75ab){const _0x329e57=_0x7b5c2c;var _0x3661b6,_0x3d0c79;let _0x5d6880=_0x2f6ccd(_0x330582,_0x3955ec),_0x81a67b=((_0x3661b6=_0x330582[_0x329e57(0x10f)])==null?[]:_0x3661b6)[_0x329e57(0xb0)](_0x24da3a=>_0x24da3a['startIndex']===_0x5d6880+0x1);if(!_0x81a67b||_0x5c75ab!=null&&_0x81a67b['startIndex']!==_0x5c75ab||_0x3bb328<_0x5d6880||_0x3bb328>_0x81a67b['startIndex']+0x1||_0x330582[_0x329e57(0xf4)][_0x81a67b[_0x329e57(0xf9)]]!==_0x431ac1[_0x329e57(0xd2)]['PARAGRAPH'])return null;let _0x47e0df=_0x3ff899((_0x3d0c79=_0x330582[_0x329e57(0x10f)])==null?[]:_0x3d0c79,_0x81a67b),_0x3833cc=_0x330582[_0x329e57(0xf4)][_0x329e57(0xb5)](_0x47e0df,_0x81a67b[_0x329e57(0xf9)]);return Array['from'](_0x3833cc)[_0x329e57(0x114)](_0x4d0be9=>_0x4d0be9===_0x431ac1[_0x329e57(0xd2)][_0x329e57(0x90)])?{'paragraph':_0x81a67b,'endTokenOffset':_0x5d6880}:null;}function _0x30977d(_0x5b88b0,_0x2e5cfe,_0x42f996,_0x500d94={}){const _0x49dbd3=_0x7b5c2c;var _0x43cd2a,_0x10bbd8;if(_0x42f996){if(_0x5b88b0['dataStream']=''+_0x5b88b0[_0x49dbd3(0xf4)]['slice'](0x0,_0x2e5cfe)+_0x42f996+_0x5b88b0[_0x49dbd3(0xf4)][_0x49dbd3(0xb5)](_0x2e5cfe),_0x1a68f1(_0x5b88b0,_0x2e5cfe,_0x42f996[_0x49dbd3(0xe3)]),(_0x43cd2a=_0x500d94[_0x49dbd3(0x10f)])!=null&&_0x43cd2a[_0x49dbd3(0xe3)]){var _0x13be4b;_0x5b88b0['paragraphs']=[...(_0x13be4b=_0x5b88b0[_0x49dbd3(0x10f)])==null?[]:_0x13be4b,..._0x500d94['paragraphs'][_0x49dbd3(0x110)](_0x55f317=>({..._0x55f317,'startIndex':_0x55f317['startIndex']+_0x2e5cfe}))][_0x49dbd3(0x9f)]((_0x33bdbb,_0x55db3f)=>_0x33bdbb[_0x49dbd3(0xf9)]-_0x55db3f[_0x49dbd3(0xf9)]);}if((_0x10bbd8=_0x500d94[_0x49dbd3(0xb4)])!=null&&_0x10bbd8['length']){var _0x148c2b;_0x5b88b0[_0x49dbd3(0xb4)]=[...(_0x148c2b=_0x5b88b0[_0x49dbd3(0xb4)])==null?[]:_0x148c2b,..._0x500d94[_0x49dbd3(0xb4)][_0x49dbd3(0x110)](_0x1f1292=>({..._0x1f1292,'startIndex':_0x1f1292[_0x49dbd3(0xf9)]+_0x2e5cfe,'endIndex':_0x1f1292[_0x49dbd3(0xa2)]+_0x2e5cfe}))][_0x49dbd3(0x9f)]((_0x3f277f,_0x54e0c6)=>_0x3f277f[_0x49dbd3(0xf9)]-_0x54e0c6[_0x49dbd3(0xf9)]);}}}function _0x37dcaf(_0x2ed34c,_0x3ed65f,_0x312810){const _0x2a07c9=_0x7b5c2c;let _0x4e1fe4=_0x312810-_0x3ed65f;_0x2ed34c[_0x2a07c9(0xf4)]=''+_0x2ed34c[_0x2a07c9(0xf4)]['slice'](0x0,_0x3ed65f)+_0x2ed34c['dataStream'][_0x2a07c9(0xb5)](_0x312810),_0x36b131(_0x2ed34c,_0x3ed65f,_0x4e1fe4);}function _0x1a68f1(_0x1a4151,_0x6313eb,_0x49894a){const _0x2d38b9=_0x7b5c2c;_0x1a4151['paragraphs']=_0x511fd2(_0x1a4151[_0x2d38b9(0x10f)],_0x6313eb,_0x49894a),_0x1a4151[_0x2d38b9(0xdd)]=_0x511fd2(_0x1a4151['sectionBreaks'],_0x6313eb,_0x49894a),_0x1a4151[_0x2d38b9(0xc5)]=_0x511fd2(_0x1a4151[_0x2d38b9(0xc5)],_0x6313eb,_0x49894a),_0x1a4151[_0x2d38b9(0xdc)]=_0x4589c0(_0x1a4151[_0x2d38b9(0xdc)],_0x6313eb,_0x49894a),_0x1a4151['tables']=_0x537bc6(_0x1a4151['tables'],_0x6313eb,_0x49894a),_0x1a4151[_0x2d38b9(0xdb)]=_0x537bc6(_0x1a4151[_0x2d38b9(0xdb)],_0x6313eb,_0x49894a),_0x1a4151['customDecorations']=_0x537bc6(_0x1a4151[_0x2d38b9(0x94)],_0x6313eb,_0x49894a),_0x1a4151[_0x2d38b9(0xb4)]=_0x537bc6(_0x1a4151[_0x2d38b9(0xb4)],_0x6313eb,_0x49894a);}function _0x36b131(_0x29a1df,_0x2d5888,_0x1bde94){const _0x58ed8c=_0x7b5c2c;var _0x28ce09,_0x2ab039;_0x29a1df['paragraphs']=_0x5ba6d6(_0x29a1df['paragraphs'],_0x2d5888,_0x1bde94),_0x29a1df[_0x58ed8c(0xdd)]=_0x5ba6d6(_0x29a1df[_0x58ed8c(0xdd)],_0x2d5888,_0x1bde94),_0x29a1df[_0x58ed8c(0xc5)]=_0x5ba6d6(_0x29a1df[_0x58ed8c(0xc5)],_0x2d5888,_0x1bde94),_0x29a1df[_0x58ed8c(0xdc)]=(_0x28ce09=_0xda3dfe((_0x2ab039=_0x29a1df[_0x58ed8c(0xdc)])==null?void 0x0:_0x2ab039[_0x58ed8c(0x110)](_0x158ac8=>({..._0x158ac8,'startIndex':_0x158ac8['st'],'endIndex':_0x158ac8['ed']})),_0x2d5888,_0x1bde94))==null?void 0x0:_0x28ce09[_0x58ed8c(0x110)](_0x5c43e2=>{let {startIndex:_0x3e22ea,endIndex:_0x22eb64,..._0x2dd328}=_0x5c43e2;return{..._0x2dd328,'st':_0x3e22ea,'ed':_0x22eb64};}),_0x29a1df[_0x58ed8c(0xc3)]=_0xda3dfe(_0x29a1df[_0x58ed8c(0xc3)],_0x2d5888,_0x1bde94),_0x29a1df[_0x58ed8c(0xdb)]=_0xda3dfe(_0x29a1df['customRanges'],_0x2d5888,_0x1bde94),_0x29a1df[_0x58ed8c(0x94)]=_0xda3dfe(_0x29a1df[_0x58ed8c(0x94)],_0x2d5888,_0x1bde94),_0x29a1df[_0x58ed8c(0xb4)]=_0xda3dfe(_0x29a1df[_0x58ed8c(0xb4)],_0x2d5888,_0x1bde94);}function _0x511fd2(_0x5084f1,_0x26582e,_0x26f9d4){const _0x202ef9=_0x7b5c2c;return _0x5084f1==null?void 0x0:_0x5084f1['map'](_0x237f6f=>_0x237f6f[_0x202ef9(0xf9)]>=_0x26582e?{..._0x237f6f,'startIndex':_0x237f6f['startIndex']+_0x26f9d4}:_0x237f6f);}function _0x5ba6d6(_0x220f48,_0x2834d7,_0x1fd1af){const _0x2a1d00=_0x7b5c2c;let _0x66f269=_0x2834d7+_0x1fd1af;return _0x220f48==null?void 0x0:_0x220f48['map'](_0x1bc725=>_0x1bc725[_0x2a1d00(0xf9)]>=_0x2834d7&&_0x1bc725['startIndex']<_0x66f269?null:_0x1bc725[_0x2a1d00(0xf9)]>=_0x66f269?{..._0x1bc725,'startIndex':_0x1bc725[_0x2a1d00(0xf9)]-_0x1fd1af}:_0x1bc725)[_0x2a1d00(0xff)](_0x21ebee=>_0x21ebee!=null);}function _0x4589c0(_0x56d583,_0x5610c6,_0x5b294c){const _0x4ed553=_0x7b5c2c;return _0x56d583==null?void 0x0:_0x56d583[_0x4ed553(0x110)](_0x541f8e=>_0x541f8e['st']>=_0x5610c6?{..._0x541f8e,'st':_0x541f8e['st']+_0x5b294c,'ed':_0x541f8e['ed']+_0x5b294c}:_0x541f8e['ed']>_0x5610c6?{..._0x541f8e,'ed':_0x541f8e['ed']+_0x5b294c}:_0x541f8e);}function _0x537bc6(_0x4225c1,_0x2960c9,_0x520c2c){const _0x15ed83=_0x7b5c2c;return _0x4225c1==null?void 0x0:_0x4225c1[_0x15ed83(0x110)](_0x15b798=>_0x15b798[_0x15ed83(0xf9)]>=_0x2960c9?{..._0x15b798,'startIndex':_0x15b798[_0x15ed83(0xf9)]+_0x520c2c,'endIndex':_0x15b798[_0x15ed83(0xa2)]+_0x520c2c}:_0x15b798['endIndex']>=_0x2960c9?{..._0x15b798,'endIndex':_0x15b798[_0x15ed83(0xa2)]+_0x520c2c}:_0x15b798);}function _0xda3dfe(_0x2013db,_0x99246a,_0x1f3eb0){const _0x4f3225=_0x7b5c2c;let _0x4e5b0d=_0x99246a+_0x1f3eb0;return _0x2013db==null?void 0x0:_0x2013db[_0x4f3225(0x110)](_0x266793=>_0x266793[_0x4f3225(0xf9)]>=_0x99246a&&_0x266793[_0x4f3225(0xa2)]<_0x4e5b0d?null:_0x266793[_0x4f3225(0xf9)]>=_0x4e5b0d?{..._0x266793,'startIndex':_0x266793['startIndex']-_0x1f3eb0,'endIndex':_0x266793[_0x4f3225(0xa2)]-_0x1f3eb0}:_0x266793[_0x4f3225(0xa2)]>=_0x99246a?{..._0x266793,'startIndex':_0x266793[_0x4f3225(0xf9)]<_0x99246a?_0x266793[_0x4f3225(0xf9)]:_0x99246a,'endIndex':Math[_0x4f3225(0xbf)](_0x99246a,_0x266793[_0x4f3225(0xa2)]-_0x1f3eb0)}:_0x266793)[_0x4f3225(0xff)](_0x52cc18=>_0x52cc18!=null);}function _0x2c61e7(_0x49778d,_0x2bab89,_0x45c950,_0x4c69da){const _0xa85879=_0x7b5c2c;_0x49778d==null||_0x49778d[_0xa85879(0xe7)](_0x57371b=>{const _0x94d6b6=_0xa85879;_0x57371b[_0x94d6b6(0xf9)]>=_0x2bab89&&_0x57371b[_0x94d6b6(0xf9)]<_0x45c950&&(_0x57371b[_0x94d6b6(0xf9)]+=_0x4c69da);});}function _0x1add7e(_0x2d3dc2,_0x3b76da,_0x39ed0e,_0x285587){const _0x314c92=_0x7b5c2c;_0x2d3dc2==null||_0x2d3dc2[_0x314c92(0xe7)](_0x3571f4=>{_0x3571f4['st']>=_0x3b76da&&_0x3571f4['st']<_0x39ed0e?(_0x3571f4['st']+=_0x285587,_0x3571f4['ed']+=_0x285587):_0x3571f4['ed']>_0x3b76da&&_0x3571f4['ed']<_0x39ed0e&&(_0x3571f4['ed']+=_0x285587);});}function _0x47c34d(_0x5513aa,_0x2db617,_0x20515e,_0x20e7a5){_0x5513aa==null||_0x5513aa['forEach'](_0x40bd21=>{const _0x26b935=_0xe374;_0x40bd21['startIndex']>=_0x2db617&&_0x40bd21[_0x26b935(0xf9)]<_0x20515e?(_0x40bd21[_0x26b935(0xf9)]+=_0x20e7a5,_0x40bd21[_0x26b935(0xa2)]+=_0x20e7a5):_0x40bd21[_0x26b935(0xa2)]>_0x2db617&&_0x40bd21['endIndex']<_0x20515e&&(_0x40bd21['endIndex']+=_0x20e7a5);});}function _0x352909(_0x433e10){'@babel/helpers - typeof';return _0x352909=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x21f110){return typeof _0x21f110;}:function(_0x503586){const _0xe45652=_0xe374;return _0x503586&&typeof Symbol==_0xe45652(0xbe)&&_0x503586['constructor']===Symbol&&_0x503586!==Symbol[_0xe45652(0x116)]?_0xe45652(0xa3):typeof _0x503586;},_0x352909(_0x433e10);}function _0x2b6f63(_0x4b5bce,_0x3822e3){const _0x44b7f0=_0x7b5c2c;if(_0x352909(_0x4b5bce)!=_0x44b7f0(0xe6)||!_0x4b5bce)return _0x4b5bce;var _0x4ecab7=_0x4b5bce[Symbol[_0x44b7f0(0xee)]];if(_0x4ecab7!==void 0x0){var _0x3d9444=_0x4ecab7[_0x44b7f0(0xe8)](_0x4b5bce,_0x3822e3||_0x44b7f0(0xc0));if(_0x352909(_0x3d9444)!='object')return _0x3d9444;throw TypeError(_0x44b7f0(0x105));}return(_0x3822e3===_0x44b7f0(0xa1)?String:Number)(_0x4b5bce);}function _0x1a386f(_0x2769ad){const _0x115c80=_0x7b5c2c;var _0x145591=_0x2b6f63(_0x2769ad,_0x115c80(0xa1));return _0x352909(_0x145591)==_0x115c80(0xa3)?_0x145591:_0x145591+'';}function _0x57ce78(_0x776edd,_0x3968e4,_0x20044c){const _0x3852be=_0x7b5c2c;return(_0x3968e4=_0x1a386f(_0x3968e4))in _0x776edd?Object[_0x3852be(0xa8)](_0x776edd,_0x3968e4,{'value':_0x20044c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x776edd[_0x3968e4]=_0x20044c,_0x776edd;}var _0x37eff3=class extends _0x431ac1['Disposable']{constructor(..._0x111eea){const _0x56e907=_0x7b5c2c;super(..._0x111eea),_0x57ce78(this,_0x56e907(0xab),new Map()),_0x57ce78(this,_0x56e907(0xa7),new _0x3ca085[(_0x56e907(0x109))]()),_0x57ce78(this,_0x56e907(0xf2),this['_change$'][_0x56e907(0xc6)]());}[_0x7b5c2c(0xa4)](_0x7f1268,_0x5d6272){const _0x5f4ba7=_0x7b5c2c;return _0x5da300(this[_0x5f4ba7(0xab)][_0x5f4ba7(0xe2)](_0x7f1268))[_0x5f4ba7(0xc4)][_0x5d6272];}['setCodeConfig'](_0x441ea1,_0x14555f,_0x49d209){const _0x40864c=_0x7b5c2c;this[_0x40864c(0xc9)](_0x441ea1,_0x14555f,_0x33f24f(this[_0x40864c(0xab)][_0x40864c(0xe2)](_0x441ea1),_0x14555f,_0x49d209));}['removeCode'](_0x1eef0d,_0x425d96){const _0xa55ff0=_0x7b5c2c;this[_0xa55ff0(0xc9)](_0x1eef0d,_0x425d96,_0x1e0bce(this[_0xa55ff0(0xab)]['get'](_0x1eef0d),_0x425d96));}[_0x7b5c2c(0xfc)](_0x29fa8a){const _0x537759=_0x7b5c2c;return _0x5da300(this['_resources'][_0x537759(0xe2)](_0x29fa8a));}[_0x7b5c2c(0x100)](_0x5a3994,_0x5cccb1){const _0x44d99e=_0x7b5c2c;this[_0x44d99e(0xab)][_0x44d99e(0xd1)](_0x5a3994,_0x5da300(_0x5cccb1)),this[_0x44d99e(0xa7)][_0x44d99e(0xf8)]({'unitId':_0x5a3994});}[_0x7b5c2c(0xc8)](_0xdf6ce9){const _0x141599=_0x7b5c2c;this[_0x141599(0xab)][_0x141599(0xac)](_0xdf6ce9),this['_change$'][_0x141599(0xf8)]({'unitId':_0xdf6ce9});}[_0x7b5c2c(0x96)](){const _0xf98a28=_0x7b5c2c;super[_0xf98a28(0x96)](),this['_resources'][_0xf98a28(0x10c)](),this[_0xf98a28(0xa7)]['complete']();}[_0x7b5c2c(0xc9)](_0x3d2305,_0x3642db,_0x125894){const _0x221baa=_0x7b5c2c;this[_0x221baa(0xab)][_0x221baa(0xd1)](_0x3d2305,_0x125894),this[_0x221baa(0xa7)][_0x221baa(0xf8)]({'unitId':_0x3d2305,'blockId':_0x3642db});}};_0x431ac1[_0x7b5c2c(0xd8)][_0x7b5c2c(0xb2)],_0x431ac1[_0x7b5c2c(0xd8)]['COMMAND'];let _0xa75296={'id':_0x7b5c2c(0x11d),'type':_0x431ac1['CommandType'][_0x7b5c2c(0xb2)],'handler':(_0x8af041,_0x25c212)=>{const _0x15c0a0=_0x7b5c2c;var _0x39da3b,_0x57b301,_0x5e8b75;let _0x273724=_0x1493ec(_0x8af041,_0x25c212==null?void 0x0:_0x25c212[_0x15c0a0(0x119)]);if(!_0x273724)return!0x1;let _0x483c38=_0x1d8dc1(_0x8af041),_0x20483e=_0x4c6273({'blockId':(_0x39da3b=_0x25c212==null?void 0x0:_0x25c212[_0x15c0a0(0xc2)])==null?(0x0,_0x431ac1[_0x15c0a0(0x102)])(0x6):_0x39da3b,'config':_0x25c212==null?void 0x0:_0x25c212['config'],'documentData':_0x273724[_0x15c0a0(0xed)],'endOffset':(_0x57b301=_0x25c212==null?void 0x0:_0x25c212['endOffset'])==null?_0x483c38==null?void 0x0:_0x483c38[_0x15c0a0(0xae)]:_0x57b301,'metadata':_0x273724[_0x15c0a0(0xf5)][_0x15c0a0(0xfc)](_0x273724[_0x15c0a0(0x119)]),'startOffset':(_0x5e8b75=_0x25c212==null?void 0x0:_0x25c212['startOffset'])==null?_0x483c38==null?void 0x0:_0x483c38[_0x15c0a0(0xd0)]:_0x5e8b75}),_0x3b4615=_0x14e91d(_0x273724['commandService'],_0x273724[_0x15c0a0(0x119)],_0x273724[_0x15c0a0(0xed)],_0x20483e[_0x15c0a0(0xf3)],_0x20483e[_0x15c0a0(0xfb)]);return _0x3b4615&&_0x20483e[_0x15c0a0(0xf6)]&&_0x273724['model']['deserialize'](_0x273724[_0x15c0a0(0x119)],_0x20483e[_0x15c0a0(0xf6)]),_0x3b4615;}},_0x572273={'id':'docs-code.command.update','type':_0x431ac1[_0x7b5c2c(0xd8)][_0x7b5c2c(0xb2)],'handler':(_0xea335a,_0x2c65e9)=>{const _0x21e1bd=_0x7b5c2c;if(!_0x2c65e9)return!0x1;let _0x35bdbd=_0x1493ec(_0xea335a,_0x2c65e9['unitId']);if(!_0x35bdbd)return!0x1;let _0x8e0bd2=_0x490615({'blockId':_0x2c65e9[_0x21e1bd(0xc2)],'config':_0x2c65e9['config'],'documentData':_0x35bdbd[_0x21e1bd(0xed)],'metadata':_0x35bdbd[_0x21e1bd(0xf5)][_0x21e1bd(0xfc)](_0x35bdbd['unitId'])});return _0x8e0bd2[_0x21e1bd(0xf6)]&&_0x35bdbd[_0x21e1bd(0xf5)][_0x21e1bd(0x100)](_0x35bdbd[_0x21e1bd(0x119)],_0x8e0bd2['nextMetadata']),!0x0;}},_0x429f0a={'id':_0x7b5c2c(0x93),'type':_0x431ac1[_0x7b5c2c(0xd8)][_0x7b5c2c(0xb2)],'handler':(_0x24f010,_0x3049d6)=>{const _0x491e14=_0x7b5c2c;var _0xe5838,_0x447f35;let _0x5a7eab=_0x1493ec(_0x24f010,_0x3049d6==null?void 0x0:_0x3049d6['unitId']);if(!_0x5a7eab)return!0x1;let _0x3bc765=(_0xe5838=_0x3049d6==null?void 0x0:_0x3049d6[_0x491e14(0xfb)])==null?(_0x447f35=_0x1d8dc1(_0x24f010))==null?void 0x0:_0x447f35[_0x491e14(0xd0)]:_0xe5838;if(_0x3bc765==null)return!0x1;let _0x4329fb=_0x2387ec({'cursorOffset':_0x3bc765,'documentData':_0x5a7eab[_0x491e14(0xed)]});return _0x4329fb?_0x14e91d(_0x5a7eab['commandService'],_0x5a7eab[_0x491e14(0x119)],_0x5a7eab[_0x491e14(0xed)],_0x4329fb[_0x491e14(0xf3)],_0x4329fb[_0x491e14(0xfb)]):!0x1;}},_0x18928f={'id':_0x7b5c2c(0x11e),'type':_0x431ac1['CommandType'][_0x7b5c2c(0xb2)],'handler':(_0x3e1399,_0x1f29e3)=>{const _0x4af502=_0x7b5c2c;var _0x115726,_0x4ce43d;let _0x431581=_0x1493ec(_0x3e1399,_0x1f29e3==null?void 0x0:_0x1f29e3[_0x4af502(0x119)]);if(!_0x431581)return!0x1;let _0x21dcf1=(_0x115726=_0x1f29e3==null?void 0x0:_0x1f29e3[_0x4af502(0xfb)])==null?(_0x4ce43d=_0x1d8dc1(_0x3e1399))==null?void 0x0:_0x4ce43d[_0x4af502(0xd0)]:_0x115726;if(_0x21dcf1==null)return!0x1;let _0x4a0f80=_0x3c5a6c({'cursorOffset':_0x21dcf1,'documentData':_0x431581[_0x4af502(0xed)],'paragraphStartIndex':_0x1f29e3==null?void 0x0:_0x1f29e3[_0x4af502(0x8f)]});return _0x4a0f80?_0x14e91d(_0x431581['commandService'],_0x431581[_0x4af502(0x119)],_0x431581['previousDocumentData'],_0x4a0f80[_0x4af502(0xf3)],_0x4a0f80['cursorOffset']):!0x1;}};function _0x1493ec(_0x4a57f5,_0x4e644d){const _0x23b13a=_0x7b5c2c;let _0x3a39fc=_0x4a57f5[_0x23b13a(0xe2)](_0x431ac1['IUniverInstanceService']),_0x36e4b6=_0x4e644d?_0x3a39fc[_0x23b13a(0x118)](_0x4e644d):_0x3a39fc['getCurrentUnitOfType'](_0x431ac1[_0x23b13a(0x117)]['UNIVER_DOC']);return _0x36e4b6?{'commandService':_0x4a57f5[_0x23b13a(0xe2)](_0x431ac1[_0x23b13a(0xe0)]),'model':_0x4a57f5[_0x23b13a(0xe2)](_0x37eff3),'previousDocumentData':_0x36e4b6[_0x23b13a(0xba)](),'unitId':_0x36e4b6[_0x23b13a(0xde)]()}:null;}function _0x1d8dc1(_0xf34ffa){const _0x403dd2=_0x7b5c2c;var _0x33bef4;return(_0x33bef4=_0xf34ffa[_0x403dd2(0xe2)](_0x378e18[_0x403dd2(0x107)])[_0x403dd2(0xfe)]())==null?void 0x0:_0x33bef4[0x0];}function _0x283303(_0x59a33e,_0x3690dd){const _0x5f27c9=_0x7b5c2c;var _0x1c7610,_0xc19c8f,_0x170dc2,_0x2a1055,_0x1da183,_0x3cf7dd,_0x4d9879,_0x55d4a6,_0x496938,_0x34de3b,_0x457708,_0x4e7cb0,_0x4ddf47,_0x1dbfaf,_0x10fbe7,_0x4967a3,_0x7639bc,_0x892296;let _0x5b365d=_0x431ac1[_0x5f27c9(0x111)][_0x5f27c9(0xe9)]();return[_0x27f077(_0x5b365d,['body','dataStream'],(_0x1c7610=_0x59a33e['body'])==null?void 0x0:_0x1c7610[_0x5f27c9(0xf4)],(_0xc19c8f=_0x3690dd['body'])==null?void 0x0:_0xc19c8f['dataStream']),_0x27f077(_0x5b365d,[_0x5f27c9(0xe5),'paragraphs'],(_0x170dc2=_0x59a33e[_0x5f27c9(0xe5)])==null?void 0x0:_0x170dc2['paragraphs'],(_0x2a1055=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x2a1055['paragraphs']),_0x27f077(_0x5b365d,[_0x5f27c9(0xe5),_0x5f27c9(0xdd)],(_0x1da183=_0x59a33e[_0x5f27c9(0xe5)])==null?void 0x0:_0x1da183[_0x5f27c9(0xdd)],(_0x3cf7dd=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x3cf7dd[_0x5f27c9(0xdd)]),_0x27f077(_0x5b365d,[_0x5f27c9(0xe5),_0x5f27c9(0xdc)],(_0x4d9879=_0x59a33e[_0x5f27c9(0xe5)])==null?void 0x0:_0x4d9879[_0x5f27c9(0xdc)],(_0x55d4a6=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x55d4a6[_0x5f27c9(0xdc)]),_0x27f077(_0x5b365d,[_0x5f27c9(0xe5),_0x5f27c9(0xc5)],(_0x496938=_0x59a33e[_0x5f27c9(0xe5)])==null?void 0x0:_0x496938[_0x5f27c9(0xc5)],(_0x34de3b=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x34de3b[_0x5f27c9(0xc5)]),_0x27f077(_0x5b365d,[_0x5f27c9(0xe5),'customRanges'],(_0x457708=_0x59a33e[_0x5f27c9(0xe5)])==null?void 0x0:_0x457708[_0x5f27c9(0xdb)],(_0x4e7cb0=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x4e7cb0[_0x5f27c9(0xdb)]),_0x27f077(_0x5b365d,['body',_0x5f27c9(0x94)],(_0x4ddf47=_0x59a33e[_0x5f27c9(0xe5)])==null?void 0x0:_0x4ddf47['customDecorations'],(_0x1dbfaf=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x1dbfaf[_0x5f27c9(0x94)]),_0x27f077(_0x5b365d,[_0x5f27c9(0xe5),'tables'],(_0x10fbe7=_0x59a33e[_0x5f27c9(0xe5)])==null?void 0x0:_0x10fbe7[_0x5f27c9(0xc3)],(_0x4967a3=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x4967a3[_0x5f27c9(0xc3)]),_0x27f077(_0x5b365d,['body',_0x5f27c9(0xb4)],(_0x7639bc=_0x59a33e['body'])==null?void 0x0:_0x7639bc['blockRanges'],(_0x892296=_0x3690dd[_0x5f27c9(0xe5)])==null?void 0x0:_0x892296[_0x5f27c9(0xb4)])][_0x5f27c9(0xff)](Boolean)[_0x5f27c9(0xf1)]((_0x2ff8b7,_0x41e785)=>_0x431ac1[_0x5f27c9(0x111)][_0x5f27c9(0xec)](_0x2ff8b7,_0x41e785),null);}function _0x27f077(_0x8991c,_0x34c4b3,_0x2b0ae7,_0xd9f6f){const _0x3944af=_0x7b5c2c;return _0x431ac1[_0x3944af(0x120)][_0x3944af(0xa5)](_0x2b0ae7,_0xd9f6f)?null:_0x8991c[_0x3944af(0x112)](_0x34c4b3,_0x2b0ae7,_0xd9f6f);}function _0x14e91d(_0x2a4f19,_0x494272,_0x4fc767,_0x2a863b,_0x555eec){const _0x4c4630=_0x7b5c2c;let _0x18f767=_0x283303(_0x4fc767,_0x2a863b);return _0x18f767?!!_0x2a4f19[_0x4c4630(0xef)](_0x378e18['RichTextEditingMutation']['id'],{'unitId':_0x494272,'actions':_0x18f767,'textRanges':[{'startOffset':_0x555eec,'endOffset':_0x555eec,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var _0x26408=class{constructor(_0x53fc14){const _0x35408b=_0x7b5c2c;this[_0x35408b(0xce)]=_0x53fc14;}[_0x7b5c2c(0xe1)](){const _0x34d6d3=_0x7b5c2c;return this[_0x34d6d3(0xce)][_0x34d6d3(0xc2)];}[_0x7b5c2c(0xea)](){const _0x591abc=_0x7b5c2c;let _0x58d1fa=this[_0x591abc(0x10e)]();return _0x58d1fa?{'blockId':_0x58d1fa[_0x591abc(0xc2)],'endIndex':_0x58d1fa[_0x591abc(0xa2)],'startIndex':_0x58d1fa[_0x591abc(0xf9)]}:null;}['getText'](){const _0x2ddf3a=_0x7b5c2c;var _0xff4b8e;let _0x22bd03=this['_getBlockRange'](),_0x35b83d=(_0xff4b8e=this[_0x2ddf3a(0xce)]['getDocumentData']()[_0x2ddf3a(0xe5)])==null?void 0x0:_0xff4b8e[_0x2ddf3a(0xf4)];return!_0x22bd03||!_0x35b83d?'':_0x1ab760(_0x35b83d[_0x2ddf3a(0xb5)](_0x22bd03[_0x2ddf3a(0xf9)]+0x1,_0x22bd03[_0x2ddf3a(0xa2)]));}[_0x7b5c2c(0xbb)](){const _0x3a792e=_0x7b5c2c;let _0x39a9b0=this['getRange']();return _0x39a9b0?{..._0x39a9b0,'config':this[_0x3a792e(0x98)](),'text':this[_0x3a792e(0xfd)](),'type':_0x3a792e(0x10b)}:null;}['getConfig'](){const _0x58e705=_0x7b5c2c;var _0x36250d;return _0xe71c91((_0x36250d=this[_0x58e705(0xce)]['model'])==null?void 0x0:_0x36250d['getCodeConfig'](this[_0x58e705(0xce)][_0x58e705(0x119)],this[_0x58e705(0xce)][_0x58e705(0xc2)]));}[_0x7b5c2c(0x9d)](_0x4f3b8f){const _0x2aa809=_0x7b5c2c;var _0x1c8fa7;return!!((_0x1c8fa7=this[_0x2aa809(0xce)][_0x2aa809(0x122)])!=null&&_0x1c8fa7[_0x2aa809(0xef)](_0x572273['id'],{'blockId':this[_0x2aa809(0xce)]['blockId'],'config':_0x4f3b8f[_0x2aa809(0xdf)],'unitId':this[_0x2aa809(0xce)][_0x2aa809(0x119)]}));}['exit'](_0x2547fc){const _0x214cfd=_0x7b5c2c;var _0x3ee1bc;return!!((_0x3ee1bc=this[_0x214cfd(0xce)][_0x214cfd(0x122)])!=null&&_0x3ee1bc[_0x214cfd(0xef)](_0x429f0a['id'],{'cursorOffset':_0x2547fc,'unitId':this[_0x214cfd(0xce)][_0x214cfd(0x119)]}));}[_0x7b5c2c(0xbc)](_0x53c7c8={}){const _0x37b1a0=_0x7b5c2c;var _0x2ab6a3;return!!((_0x2ab6a3=this[_0x37b1a0(0xce)][_0x37b1a0(0x122)])!=null&&_0x2ab6a3[_0x37b1a0(0xef)](_0x18928f['id'],{..._0x53c7c8,'unitId':this[_0x37b1a0(0xce)][_0x37b1a0(0x119)]}));}[_0x7b5c2c(0x10e)](){const _0x18063f=_0x7b5c2c;var _0x406fe9;return(_0x406fe9=this['_runtime'][_0x18063f(0x91)]()[_0x18063f(0xe5)])==null||(_0x406fe9=_0x406fe9['blockRanges'])==null?void 0x0:_0x406fe9[_0x18063f(0xb0)](_0x2dd78c=>_0x2dd78c['blockId']===this['_runtime'][_0x18063f(0xc2)]&&_0x2dd78c[_0x18063f(0xd7)]==='code');}};function _0x1ab760(_0x5e3e74){const _0x560603=_0x7b5c2c;return Array[_0x560603(0xeb)](_0x5e3e74)[_0x560603(0x110)](_0x26ef0b=>_0x26ef0b===_0x431ac1[_0x560603(0xd2)]['PARAGRAPH']?'\x0a':_0x26ef0b)['filter'](_0x45f5a8=>_0x45f5a8!==_0x431ac1[_0x560603(0xd2)]['BLOCK_START']&&_0x45f5a8!==_0x431ac1[_0x560603(0xd2)][_0x560603(0x90)]&&_0x45f5a8!==_0x431ac1[_0x560603(0xd2)]['SECTION_BREAK'])[_0x560603(0x10a)]('')[_0x560603(0x11c)](/\n$/,'');}Object[_0x7b5c2c(0xaa)](_0x219e08[_0x7b5c2c(0x121)][_0x7b5c2c(0x116)],{'getCodes'(){const _0x2d8909=_0x7b5c2c;var _0x5e57da,_0x5ac982;return(_0x5e57da=(_0x5ac982=this[_0x2d8909(0xba)]()[_0x2d8909(0xe5)])==null||(_0x5ac982=_0x5ac982[_0x2d8909(0xb4)])==null?void 0x0:_0x5ac982[_0x2d8909(0xff)](_0x23ee2b=>_0x23ee2b['blockType']===_0x2d8909(0x10b))[_0x2d8909(0x110)](_0x3b6449=>_0x49d969(this,_0x3b6449[_0x2d8909(0xc2)])))==null?[]:_0x5e57da;},'getCode'(_0x36d019){const _0x3b4e5d=_0x7b5c2c;var _0x222059;return!((_0x222059=this['getSnapshot']()[_0x3b4e5d(0xe5)])==null||(_0x222059=_0x222059[_0x3b4e5d(0xb4)])==null)&&_0x222059[_0x3b4e5d(0x92)](_0x50cbeb=>_0x50cbeb[_0x3b4e5d(0xc2)]===_0x36d019&&_0x50cbeb[_0x3b4e5d(0xd7)]===_0x3b4e5d(0x10b))?_0x49d969(this,_0x36d019):null;},'getCodeAt'(_0x30411e){const _0x17af56=_0x7b5c2c;var _0x10d0fc;let _0x4f4d89=(_0x10d0fc=this[_0x17af56(0xba)]()[_0x17af56(0xe5)])==null||(_0x10d0fc=_0x10d0fc[_0x17af56(0xb4)])==null||(_0x10d0fc=_0x10d0fc[_0x17af56(0xb0)](_0x5aeda3=>_0x5aeda3[_0x17af56(0xd7)]===_0x17af56(0x10b)&&_0x5aeda3[_0x17af56(0xf9)]<=_0x30411e&&_0x30411e<=_0x5aeda3[_0x17af56(0xa2)]))==null?void 0x0:_0x10d0fc[_0x17af56(0xc2)];return _0x4f4d89?_0x49d969(this,_0x4f4d89):null;},'findCodeByText'(_0x1d9d94){const _0x146994=_0x7b5c2c;var _0x37a8b0;return(_0x37a8b0=this[_0x146994(0xd9)](_0x1d9d94)[0x0])==null?null:_0x37a8b0;},'findCodes'(_0x4440ed){const _0x3a4a68=_0x7b5c2c;let _0x30f94a=typeof _0x4440ed==_0x3a4a68(0xa1)?{'text':_0x4440ed}:_0x4440ed;return this[_0x3a4a68(0x108)]()[_0x3a4a68(0xff)](_0x4d48f0=>!(_0x30f94a[_0x3a4a68(0xc2)]&&_0x4d48f0['getId']()!==_0x30f94a[_0x3a4a68(0xc2)]||_0x30f94a[_0x3a4a68(0xe4)]&&!_0x4d48f0[_0x3a4a68(0xfd)]()[_0x3a4a68(0xb8)](_0x30f94a['text'])));},'insertCode'(_0x4ec40d={}){const _0x5580f1=_0x7b5c2c;var _0x18784a,_0x3d6758;let _0x2fad86=(_0x18784a=_0x4ec40d[_0x5580f1(0xc2)])==null?_0x5580f1(0x10d)+Date[_0x5580f1(0x9c)]():_0x18784a;return(_0x3d6758=_0x5818b7(this))!=null&&_0x3d6758[_0x5580f1(0xef)](_0xa75296['id'],{..._0x4ec40d,'blockId':_0x2fad86,'unitId':this['getId']()})?_0x49d969(this,_0x2fad86):null;},'exitCode'(_0x2fcae7){const _0x2d18e8=_0x7b5c2c;var _0x578dd0;return!!((_0x578dd0=_0x5818b7(this))!=null&&_0x578dd0[_0x2d18e8(0xef)](_0x429f0a['id'],{'cursorOffset':_0x2fcae7,'unitId':this[_0x2d18e8(0xe1)]()}));},'cancelEmptyCodeParagraph'(_0x46cb4a={}){const _0x198336=_0x7b5c2c;var _0x42b7c9;return!!((_0x42b7c9=_0x5818b7(this))!=null&&_0x42b7c9['syncExecuteCommand'](_0x18928f['id'],{..._0x46cb4a,'unitId':this[_0x198336(0xe1)]()}));}});function _0x49d969(_0x51f4a3,_0x3c07aa){const _0x3a24ad=_0x7b5c2c;let _0x3ed24b=_0x46f1ee(_0x51f4a3);return new _0x26408({'blockId':_0x3c07aa,'commandService':_0x5818b7(_0x51f4a3),'getDocumentData':()=>_0x51f4a3[_0x3a24ad(0xba)](),'model':_0x3ed24b==null?void 0x0:_0x3ed24b[_0x3a24ad(0xe2)](_0x37eff3),'unitId':_0x51f4a3[_0x3a24ad(0xe1)]()});}function _0x5818b7(_0x246b0d){const _0x194ff2=_0x7b5c2c;var _0x51437e,_0x4d2476;return(_0x51437e=_0x246b0d[_0x194ff2(0xaf)])==null?(_0x4d2476=_0x46f1ee(_0x246b0d))==null?void 0x0:_0x4d2476['get'](_0x431ac1['ICommandService']):_0x51437e;}function _0x46f1ee(_0x5cd5dc){return _0x5cd5dc['_injector'];}_0x44d374[_0x7b5c2c(0xd3)]=_0x26408;}));
1
+ (function(_0x901939,_0x20f555){const _0x299e43=_0x55f3,_0x30dd35=_0x901939();while(!![]){try{const _0x295681=-parseInt(_0x299e43(0x1c7))/0x1*(-parseInt(_0x299e43(0x1db))/0x2)+-parseInt(_0x299e43(0x21f))/0x3*(-parseInt(_0x299e43(0x232))/0x4)+-parseInt(_0x299e43(0x1f9))/0x5+parseInt(_0x299e43(0x233))/0x6+-parseInt(_0x299e43(0x238))/0x7*(-parseInt(_0x299e43(0x1f5))/0x8)+-parseInt(_0x299e43(0x243))/0x9+-parseInt(_0x299e43(0x201))/0xa*(parseInt(_0x299e43(0x1be))/0xb);if(_0x295681===_0x20f555)break;else _0x30dd35['push'](_0x30dd35['shift']());}catch(_0x536aca){_0x30dd35['push'](_0x30dd35['shift']());}}}(_0x5bcb,0xe66f9),function(_0x116402,_0x100580){const _0x4b42ae=_0x55f3;typeof exports=='object'&&typeof module<'u'?_0x100580(exports,require('@univerjs/core'),require('@univerjs/docs-ui/facade'),require('@univerjs/docs'),require('@univerjs/docs-ui'),require('rxjs')):typeof define==_0x4b42ae(0x217)&&define[_0x4b42ae(0x206)]?define(['exports',_0x4b42ae(0x215),'@univerjs/docs-ui/facade',_0x4b42ae(0x1d2),'@univerjs/docs-ui',_0x4b42ae(0x20d)],_0x100580):(_0x116402=typeof globalThis<'u'?globalThis:_0x116402||self,_0x100580(_0x116402[_0x4b42ae(0x203)]={},_0x116402[_0x4b42ae(0x1d1)],_0x116402['UniverDocsUiFacade'],_0x116402[_0x4b42ae(0x1c5)],_0x116402[_0x4b42ae(0x1d9)],_0x116402['rxjs']));}(this,function(_0x59f703,_0x130d90,_0x590fb2,_0x3782ac,_0x568618,_0x432803){const _0x587181=_0x55f3;Object[_0x587181(0x1eb)](_0x59f703,Symbol['toStringTag'],{'value':_0x587181(0x1d5)});let _0x335111='code',_0x3286d0={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x2615d7(_0xb625e1){return{..._0x3286d0,..._0xb625e1};}function _0x1fb8d2(_0x44e25d){const _0x467bf6=_0x587181;var _0x2dd2dd;let _0x2e2f31=(_0x2dd2dd=_0x44e25d==null?void 0x0:_0x44e25d['codes'])==null?{}:_0x2dd2dd;return{'codes':Object['fromEntries'](Object['entries'](_0x2e2f31)[_0x467bf6(0x1de)](([_0x4d69a5,_0x5c3278])=>[_0x4d69a5,_0x2615d7(_0x5c3278)]))};}function _0x54f6d8(_0x19b0f2,_0x3be360,_0x5889d3){const _0x4efe0c=_0x587181;let _0x1ee330=_0x1fb8d2(_0x19b0f2);return _0x1ee330[_0x4efe0c(0x21b)][_0x3be360]=_0x2615d7({..._0x1ee330['codes'][_0x3be360],..._0x5889d3}),_0x1ee330;}function _0x165921(_0x246857,_0x2d6891){const _0x2757b8=_0x587181;let _0x3123ec=_0x1fb8d2(_0x246857);return delete _0x3123ec[_0x2757b8(0x21b)][_0x2d6891],_0x3123ec;}let _0xad48bd=_0x587181(0x229);function _0x5037bf(_0x15059e){const _0x44b2a6=_0x587181;var _0x18f44d,_0x22e663,_0x4bbce1;let _0x2e7380=_0x410541(_0x15059e[_0x44b2a6(0x207)]),_0x1f35de=_0x148484(_0x2e7380),_0x1eb2fe=_0x51142b(_0x15059e[_0x44b2a6(0x1cb)],_0x15059e[_0x44b2a6(0x1e6)]),_0x559bdc=_0x1eb2fe?(_0x18f44d=_0x1f35de[_0x44b2a6(0x1f1)])==null?void 0x0:_0x18f44d['find'](_0x408f94=>_0x408f94[_0x44b2a6(0x216)]===_0x1eb2fe['startOffset']&&_0x408f94['endIndex']+0x1===_0x1eb2fe['endOffset']):void 0x0,{startOffset:_0xc05f66,endOffset:_0x50c557}=_0x559bdc?_0x1eb2fe:_0x517f21(_0x1f35de,_0x15059e['startOffset'],_0x15059e[_0x44b2a6(0x1e6)]),_0x2f6ece=_0x73a482(_0x1f35de,_0xc05f66,_0x50c557),_0x4e3f28=(_0x22e663=_0x559bdc==null?void 0x0:_0x559bdc['blockId'])==null?_0x15059e[_0x44b2a6(0x23f)]:_0x22e663,_0x2bf9bc=_0x54f6d8(_0x15059e[_0x44b2a6(0x1b5)],_0x4e3f28,{..._0x3286d0,..._0x15059e[_0x44b2a6(0x1bc)]});if(_0x559bdc)return _0x559bdc[_0x44b2a6(0x1b8)]=_0x335111,_0x56530a(_0x1f35de,_0xc05f66,_0x50c557),_0x3a8e5e(_0x1f35de,_0xc05f66,_0x50c557,_0x2f6ece),{'nextDocumentData':_0x2e7380,'nextMetadata':_0x2bf9bc,'cursorOffset':_0xc05f66+0x1};if(_0xc05f66===_0x50c557){let _0x319591=''+_0x130d90[_0x44b2a6(0x20c)][_0x44b2a6(0x1f3)]+_0x130d90['DataStreamTreeTokenType'][_0x44b2a6(0x212)]+_0x130d90['DataStreamTreeTokenType']['BLOCK_END'];return _0x4e268d(_0x1f35de,_0xc05f66,_0x319591,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':_0x3e9d20(!0x0,!0x0,_0x2f6ece)}],'blockRanges':[{'blockId':_0x4e3f28,'blockType':_0x335111,'startIndex':0x0,'endIndex':_0x319591['length']-0x1}]}),{'nextDocumentData':_0x2e7380,'nextMetadata':_0x2bf9bc,'cursorOffset':_0xc05f66+0x1};}return _0x4e268d(_0x1f35de,_0x50c557,_0x130d90[_0x44b2a6(0x20c)][_0x44b2a6(0x1d0)]),_0x4e268d(_0x1f35de,_0xc05f66,_0x130d90[_0x44b2a6(0x20c)][_0x44b2a6(0x1f3)]),_0x3a8e5e(_0x1f35de,_0xc05f66,_0x50c557+0x1,_0x2f6ece),_0x1f35de['blockRanges']=[...(_0x4bbce1=_0x1f35de[_0x44b2a6(0x1f1)])==null?[]:_0x4bbce1,{'blockId':_0x4e3f28,'blockType':_0x335111,'startIndex':_0xc05f66,'endIndex':_0x50c557+0x1}][_0x44b2a6(0x223)]((_0x3d88da,_0x5b36e5)=>_0x3d88da[_0x44b2a6(0x216)]-_0x5b36e5['startIndex']),{'nextDocumentData':_0x2e7380,'nextMetadata':_0x2bf9bc,'cursorOffset':_0xc05f66+0x1};}function _0x56530a(_0xd604ea,_0x4caf25,_0x7b85d9){const _0x42358a=_0x587181;var _0x3b658e;((_0x3b658e=_0xd604ea['paragraphs'])==null?[]:_0x3b658e)['filter'](_0x4ec537=>_0x4ec537[_0x42358a(0x216)]>_0x4caf25&&_0x4ec537[_0x42358a(0x216)]<_0x7b85d9)[_0x42358a(0x1d4)](_0x3ceadf=>{const _0x1b88e2=_0x42358a;var _0x21aa55;let _0x5def11={...(_0x21aa55=_0x3ceadf[_0x1b88e2(0x21c)])==null?{}:_0x21aa55};delete _0x5def11[_0x1b88e2(0x1c2)],delete _0x5def11['spaceBelow'],_0x3ceadf[_0x1b88e2(0x21c)]=_0x5def11;});}function _0x51142b(_0xed4925,_0x451b6b){const _0x1e8dd7=_0x587181;return _0xed4925==null||_0x451b6b==null||_0xed4925===_0x451b6b?null:{'startOffset':Math[_0x1e8dd7(0x239)](_0xed4925,_0x451b6b),'endOffset':Math['max'](_0xed4925,_0x451b6b)};}function _0x4b0862(_0x362265){const _0x84cfeb=_0x587181;return{'nextDocumentData':_0x410541(_0x362265[_0x84cfeb(0x207)]),'nextMetadata':_0x54f6d8(_0x362265[_0x84cfeb(0x1b5)],_0x362265[_0x84cfeb(0x23f)],_0x362265[_0x84cfeb(0x1bc)]),'cursorOffset':0x0};}function _0x27dbcf(_0x203cf6){const _0x555434=_0x587181;var _0x288035,_0x47dfa8;let _0x140499=_0x410541(_0x203cf6[_0x555434(0x207)]),_0x4facf5=_0x148484(_0x140499),_0x230ac5=_0x33664f(_0x4facf5,_0x203cf6[_0x555434(0x1c0)]);if(!_0x230ac5)return null;let _0x265cb9=_0x4527c1(_0x4facf5,_0x230ac5),_0x184ad0=_0x265cb9[_0x265cb9[_0x555434(0x246)]-0x1];if(!_0x184ad0||!_0x520c52(_0x4facf5,_0x230ac5,_0x184ad0)||_0x203cf6['cursorOffset']<_0x184ad0[_0x555434(0x216)])return null;let _0x102e3f=_0x5ed7a0(_0x4facf5,_0x230ac5,_0x184ad0);if(_0x102e3f>=_0x230ac5[_0x555434(0x1b6)])return null;_0x4facf5[_0x555434(0x1c3)]=[_0x4facf5[_0x555434(0x1c3)][_0x555434(0x1ba)](0x0,_0x102e3f),_0x130d90[_0x555434(0x20c)]['BLOCK_END'],_0x4facf5[_0x555434(0x1c3)][_0x555434(0x1ba)](_0x102e3f,_0x230ac5[_0x555434(0x1b6)]),_0x4facf5[_0x555434(0x1c3)][_0x555434(0x1ba)](_0x230ac5[_0x555434(0x1b6)]+0x1)][_0x555434(0x1e9)](''),_0x29f4af(_0x4facf5[_0x555434(0x20a)],_0x102e3f,_0x230ac5[_0x555434(0x1b6)],0x1),_0x29f4af(_0x4facf5['sectionBreaks'],_0x102e3f,_0x230ac5['endIndex'],0x1),_0x29f4af(_0x4facf5[_0x555434(0x237)],_0x102e3f,_0x230ac5[_0x555434(0x1b6)],0x1),_0x57a3a7(_0x4facf5[_0x555434(0x202)],_0x102e3f,_0x230ac5['endIndex'],0x1),_0x760a16(_0x4facf5['tables'],_0x102e3f,_0x230ac5[_0x555434(0x1b6)],0x1),_0x760a16(_0x4facf5['customRanges'],_0x102e3f,_0x230ac5[_0x555434(0x1b6)],0x1),_0x760a16(_0x4facf5[_0x555434(0x242)],_0x102e3f,_0x230ac5[_0x555434(0x1b6)],0x1),(_0x288035=_0x4facf5[_0x555434(0x1f1)])==null||_0x288035[_0x555434(0x1d4)](_0x4aeb1c=>{const _0x2e6125=_0x555434;_0x4aeb1c===_0x230ac5||_0x4aeb1c[_0x2e6125(0x23f)]===_0x230ac5[_0x2e6125(0x23f)]?_0x4aeb1c[_0x2e6125(0x1b6)]=_0x102e3f:_0x4aeb1c[_0x2e6125(0x216)]>=_0x102e3f&&_0x4aeb1c[_0x2e6125(0x216)]<_0x230ac5[_0x2e6125(0x1b6)]&&(_0x4aeb1c[_0x2e6125(0x216)]+=0x1,_0x4aeb1c[_0x2e6125(0x1b6)]+=0x1);});let _0x39b2b5=_0x4527c1(_0x4facf5,{..._0x230ac5,'endIndex':_0x102e3f});_0x39b2b5[_0x555434(0x1d4)]((_0x565c1a,_0x167fd8)=>{const _0x140b9b=_0x555434;var _0x4f08e2;_0x565c1a[_0x140b9b(0x21c)]={...(_0x4f08e2=_0x565c1a[_0x140b9b(0x21c)])==null?{}:_0x4f08e2,..._0x3e9d20(_0x167fd8===0x0,_0x167fd8===_0x39b2b5[_0x140b9b(0x246)]-0x1)};});let _0x853706=(_0x47dfa8=_0x4facf5[_0x555434(0x20a)])==null?void 0x0:_0x47dfa8[_0x555434(0x23a)](_0x48fccd=>_0x48fccd[_0x555434(0x216)]===_0x102e3f+0x1);return _0x853706&&(_0x853706[_0x555434(0x21c)]=_0x3de1b5(_0x853706['paragraphStyle'])),{'nextDocumentData':_0x140499,'cursorOffset':_0x102e3f+0x1};}function _0x57a9b5(_0x18b392){const _0x1aaa68=_0x587181;let _0x541979=_0x410541(_0x18b392[_0x1aaa68(0x207)]),_0x2d2d35=_0x148484(_0x541979),_0x20d277=_0x33664f(_0x2d2d35,_0x18b392['cursorOffset']);return _0x20d277&&_0x195739(_0x541979,_0x2d2d35,_0x20d277,_0x18b392['cursorOffset'],_0x18b392['paragraphStartIndex'])||null;}function _0x195739(_0x56a2f0,_0x28cb64,_0x20f8f9,_0x1a3637,_0x6d3027){const _0x489d1=_0x587181;let _0x2b33c3=_0x2fbac2(_0x28cb64,_0x20f8f9,_0x1a3637,_0x6d3027);if(!_0x2b33c3)return null;let _0x240128=_0x2b33c3[_0x489d1(0x1ca)]-0x1;return _0x548e90(_0x28cb64,_0x2b33c3[_0x489d1(0x227)][_0x489d1(0x216)],_0x2b33c3['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x56a2f0,'cursorOffset':_0x240128};}function _0x33664f(_0x1a14b3,_0x514c94){const _0x2d6896=_0x587181;var _0x1762c4;return(_0x1762c4=_0x1a14b3[_0x2d6896(0x1f1)])==null?void 0x0:_0x1762c4['find'](_0xd153da=>{const _0x1ce807=_0x2d6896;let _0x302d45=_0x167712(_0x1a14b3,_0xd153da);return _0xd153da[_0x1ce807(0x1b8)]==='code'&&_0xd153da[_0x1ce807(0x216)]<=_0x514c94&&_0x514c94<=_0x302d45+0x2;});}function _0x3e9d20(_0x1fdc99,_0x1870a2,_0x16f2d8=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1fdc99&&_0x16f2d8?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0xad48bd,'fs':0xc}};}function _0x3a8e5e(_0x14ac55,_0x2fb1d,_0x17c53b,_0x23093c=!0x1){const _0x3a69fc=_0x587181;var _0x1bbea2;let _0x5a19e4=((_0x1bbea2=_0x14ac55[_0x3a69fc(0x20a)])==null?[]:_0x1bbea2)[_0x3a69fc(0x1f7)](_0x23542f=>_0x23542f['startIndex']>_0x2fb1d&&_0x23542f['startIndex']<_0x17c53b);_0x5a19e4[_0x3a69fc(0x1d4)]((_0x112275,_0xe899f1)=>{const _0x3d7818=_0x3a69fc;var _0x14421a;_0x112275[_0x3d7818(0x21c)]={...(_0x14421a=_0x112275[_0x3d7818(0x21c)])==null?{}:_0x14421a,..._0x3e9d20(_0xe899f1===0x0,_0xe899f1===_0x5a19e4[_0x3d7818(0x246)]-0x1,_0x23093c)};});}function _0x3de1b5(_0x5ef3c0){const _0x18b3ab=_0x587181;var _0x28a1ed,_0x17e121;let _0x4e841f={..._0x5ef3c0==null?{}:_0x5ef3c0};return delete _0x4e841f[_0x18b3ab(0x200)],delete _0x4e841f[_0x18b3ab(0x21a)],delete _0x4e841f['spaceAbove'],delete _0x4e841f[_0x18b3ab(0x1d3)],((_0x28a1ed=_0x4e841f['textStyle'])==null?void 0x0:_0x28a1ed['ff'])===_0xad48bd&&((_0x17e121=_0x4e841f[_0x18b3ab(0x23b)])==null?void 0x0:_0x17e121['fs'])===0xc&&delete _0x4e841f[_0x18b3ab(0x23b)],_0x4e841f;}function _0x4527c1(_0x1f6fe8,_0x9abb60){const _0x517e73=_0x587181;var _0x1f6209;let _0x160e67=_0x167712(_0x1f6fe8,_0x9abb60);return((_0x1f6209=_0x1f6fe8[_0x517e73(0x20a)])==null?[]:_0x1f6209)[_0x517e73(0x1f7)](_0x162a04=>_0x162a04[_0x517e73(0x216)]>_0x9abb60[_0x517e73(0x216)]&&_0x162a04['startIndex']<_0x160e67);}function _0x520c52(_0x2cfdca,_0xdde9fa,_0x1b7cd8){const _0x3596b2=_0x587181;let _0x588ee7=_0x5ed7a0(_0x2cfdca,_0xdde9fa,_0x1b7cd8),_0xd2e393=_0x2cfdca[_0x3596b2(0x1c3)]['slice'](_0x588ee7,_0x1b7cd8[_0x3596b2(0x216)]);return Array[_0x3596b2(0x1bd)](_0xd2e393)['every'](_0x229afc=>_0x229afc===_0x130d90[_0x3596b2(0x20c)]['BLOCK_START']||_0x229afc===_0x130d90['DataStreamTreeTokenType']['BLOCK_END']);}function _0x410541(_0x21241a){const _0x2bb240=_0x587181;return _0x130d90[_0x2bb240(0x245)]['deepClone'](_0x21241a);}function _0x148484(_0x2f824b){const _0x5e8b83=_0x587181;if(!_0x2f824b[_0x5e8b83(0x230)])throw Error(_0x5e8b83(0x23d));return _0x2f824b['body'];}function _0x517f21(_0x317a57,_0x435444,_0x36aa17){const _0x318e2b=_0x587181;if(_0x435444==null||_0x36aa17==null){let _0x40a8cd=_0x4d2c3f(_0x317a57);return{'startOffset':_0x40a8cd,'endOffset':_0x40a8cd};}let _0x36cd93=Math[_0x318e2b(0x239)](_0x435444,_0x36aa17),_0xede5c3=Math[_0x318e2b(0x211)](_0x435444,_0x36aa17);return _0x36cd93===_0xede5c3?{'startOffset':_0x36cd93,'endOffset':_0x36cd93}:_0x21b1d3(_0x317a57,_0x36cd93,_0xede5c3);}function _0x4d2c3f(_0x332e55){const _0x2b7e77=_0x587181;return _0x332e55['dataStream'][_0x2b7e77(0x231)](_0x130d90[_0x2b7e77(0x20c)][_0x2b7e77(0x1ec)])?Math[_0x2b7e77(0x211)](0x0,_0x332e55[_0x2b7e77(0x1c3)][_0x2b7e77(0x246)]-0x1):_0x332e55[_0x2b7e77(0x1c3)][_0x2b7e77(0x246)];}function _0x73a482(_0xebc79a,_0x285733,_0x3e2d1f){const _0x5aaba=_0x587181;var _0x4e5ffb;let _0x233229=Math['min'](_0x285733,_0x3e2d1f),_0x4fe36f=Math[_0x5aaba(0x211)](_0x285733,_0x3e2d1f);return!!((_0x4e5ffb=_0xebc79a[_0x5aaba(0x228)])!=null&&_0x4e5ffb['some'](_0x27e31a=>_0x233229>_0x27e31a[_0x5aaba(0x216)]&&_0x233229<_0x27e31a[_0x5aaba(0x1b6)]||_0x4fe36f>_0x27e31a[_0x5aaba(0x216)]&&_0x4fe36f<_0x27e31a[_0x5aaba(0x1b6)]||_0x233229<=_0x27e31a[_0x5aaba(0x216)]&&_0x4fe36f>=_0x27e31a[_0x5aaba(0x1b6)]));}function _0x21b1d3(_0x4cb78e,_0x3cde93,_0x336f7f){const _0x4866e1=_0x587181;var _0x176565,_0x500444;let _0x2cc327=[...(_0x176565=_0x4cb78e[_0x4866e1(0x20a)])==null?[]:_0x176565]['sort']((_0x2661ff,_0x6d3c78)=>_0x2661ff[_0x4866e1(0x216)]-_0x6d3c78[_0x4866e1(0x216)]),_0x34b08b=_0x2cc327['find']((_0x513f04,_0x4e7831)=>(_0x4e7831===0x0?0x0:_0x2cc327[_0x4e7831-0x1]['startIndex']+0x1)<=_0x3cde93&&_0x3cde93<=_0x513f04[_0x4866e1(0x216)]),_0x2116bc=(_0x500444=_0x2cc327[_0x4866e1(0x23a)](_0x1a96c8=>_0x1a96c8[_0x4866e1(0x216)]>=_0x336f7f-0x1))==null?_0x2cc327[_0x2cc327[_0x4866e1(0x246)]-0x1]:_0x500444;return{'startOffset':_0x34b08b?_0x77bba(_0x2cc327,_0x34b08b):_0x3cde93,'endOffset':_0x2116bc?_0x2116bc[_0x4866e1(0x216)]+0x1:_0x336f7f};}function _0x77bba(_0x20c92b,_0x93145d){const _0x83ceae=_0x587181;let _0x47d3f5=_0x20c92b['indexOf'](_0x93145d);return _0x47d3f5>0x0?_0x20c92b[_0x47d3f5-0x1][_0x83ceae(0x216)]+0x1:0x0;}function _0x5ed7a0(_0x127e9b,_0x3b2322,_0xfcc029){const _0x532941=_0x587181;var _0xfff018;return Math[_0x532941(0x211)](_0x77bba((_0xfff018=_0x127e9b[_0x532941(0x20a)])==null?[]:_0xfff018,_0xfcc029),_0x3b2322['startIndex']+0x1);}function _0x167712(_0x520f5b,_0x55e369){const _0x3964fe=_0x587181;return _0x520f5b[_0x3964fe(0x1c3)][_0x55e369[_0x3964fe(0x1b6)]]===_0x130d90[_0x3964fe(0x20c)][_0x3964fe(0x1d0)]?_0x55e369['endIndex']:_0x520f5b[_0x3964fe(0x1c3)][_0x55e369[_0x3964fe(0x1b6)]+0x1]===_0x130d90[_0x3964fe(0x20c)][_0x3964fe(0x1d0)]?_0x55e369[_0x3964fe(0x1b6)]+0x1:_0x55e369['endIndex'];}function _0x2fbac2(_0x3fa238,_0x2c8457,_0x3186c8,_0x426fea){const _0x5438ff=_0x587181;var _0x1610a1,_0x207dc0;let _0x31d38d=_0x167712(_0x3fa238,_0x2c8457),_0x48d7fe=((_0x1610a1=_0x3fa238['paragraphs'])==null?[]:_0x1610a1)['find'](_0x1850ab=>_0x1850ab['startIndex']===_0x31d38d+0x1);if(!_0x48d7fe||_0x426fea!=null&&_0x48d7fe[_0x5438ff(0x216)]!==_0x426fea||_0x3186c8<_0x31d38d||_0x3186c8>_0x48d7fe[_0x5438ff(0x216)]+0x1||_0x3fa238[_0x5438ff(0x1c3)][_0x48d7fe[_0x5438ff(0x216)]]!==_0x130d90[_0x5438ff(0x20c)]['PARAGRAPH'])return null;let _0x4d912b=_0x77bba((_0x207dc0=_0x3fa238[_0x5438ff(0x20a)])==null?[]:_0x207dc0,_0x48d7fe),_0x978dd4=_0x3fa238[_0x5438ff(0x1c3)][_0x5438ff(0x1ba)](_0x4d912b,_0x48d7fe[_0x5438ff(0x216)]);return Array[_0x5438ff(0x1bd)](_0x978dd4)['every'](_0x2d4955=>_0x2d4955===_0x130d90[_0x5438ff(0x20c)]['BLOCK_END'])?{'paragraph':_0x48d7fe,'endTokenOffset':_0x31d38d}:null;}function _0x4e268d(_0x25afb6,_0x381331,_0x1ff8b0,_0x2700e4={}){const _0x1cf468=_0x587181;var _0x4d767d,_0x1ada37;if(_0x1ff8b0){if(_0x25afb6[_0x1cf468(0x1c3)]=''+_0x25afb6[_0x1cf468(0x1c3)][_0x1cf468(0x1ba)](0x0,_0x381331)+_0x1ff8b0+_0x25afb6[_0x1cf468(0x1c3)]['slice'](_0x381331),_0x5ebf09(_0x25afb6,_0x381331,_0x1ff8b0[_0x1cf468(0x246)]),(_0x4d767d=_0x2700e4[_0x1cf468(0x20a)])!=null&&_0x4d767d[_0x1cf468(0x246)]){var _0x29378f;_0x25afb6[_0x1cf468(0x20a)]=[...(_0x29378f=_0x25afb6['paragraphs'])==null?[]:_0x29378f,..._0x2700e4[_0x1cf468(0x20a)][_0x1cf468(0x1de)](_0x150466=>({..._0x150466,'startIndex':_0x150466['startIndex']+_0x381331}))][_0x1cf468(0x223)]((_0x3ba586,_0x3b8e93)=>_0x3ba586[_0x1cf468(0x216)]-_0x3b8e93[_0x1cf468(0x216)]);}if((_0x1ada37=_0x2700e4['blockRanges'])!=null&&_0x1ada37['length']){var _0x1a2d16;_0x25afb6[_0x1cf468(0x1f1)]=[...(_0x1a2d16=_0x25afb6[_0x1cf468(0x1f1)])==null?[]:_0x1a2d16,..._0x2700e4[_0x1cf468(0x1f1)][_0x1cf468(0x1de)](_0x1375e3=>({..._0x1375e3,'startIndex':_0x1375e3[_0x1cf468(0x216)]+_0x381331,'endIndex':_0x1375e3[_0x1cf468(0x1b6)]+_0x381331}))][_0x1cf468(0x223)]((_0x4a2024,_0x5dc303)=>_0x4a2024[_0x1cf468(0x216)]-_0x5dc303['startIndex']);}}}function _0x548e90(_0x53a211,_0x3fa927,_0x576f18){const _0x5e7529=_0x587181;let _0x16d479=_0x576f18-_0x3fa927;_0x53a211[_0x5e7529(0x1c3)]=''+_0x53a211[_0x5e7529(0x1c3)][_0x5e7529(0x1ba)](0x0,_0x3fa927)+_0x53a211[_0x5e7529(0x1c3)][_0x5e7529(0x1ba)](_0x576f18),_0x1b1b1d(_0x53a211,_0x3fa927,_0x16d479);}function _0x5ebf09(_0x5c9443,_0x2f4c84,_0x44b658){const _0x2f4780=_0x587181;_0x5c9443[_0x2f4780(0x20a)]=_0x35b13d(_0x5c9443[_0x2f4780(0x20a)],_0x2f4c84,_0x44b658),_0x5c9443[_0x2f4780(0x1cc)]=_0x35b13d(_0x5c9443['sectionBreaks'],_0x2f4c84,_0x44b658),_0x5c9443[_0x2f4780(0x237)]=_0x35b13d(_0x5c9443[_0x2f4780(0x237)],_0x2f4c84,_0x44b658),_0x5c9443[_0x2f4780(0x202)]=_0x20d62b(_0x5c9443[_0x2f4780(0x202)],_0x2f4c84,_0x44b658),_0x5c9443[_0x2f4780(0x228)]=_0x3295b8(_0x5c9443[_0x2f4780(0x228)],_0x2f4c84,_0x44b658),_0x5c9443[_0x2f4780(0x1fb)]=_0x3295b8(_0x5c9443[_0x2f4780(0x1fb)],_0x2f4c84,_0x44b658),_0x5c9443[_0x2f4780(0x242)]=_0x3295b8(_0x5c9443[_0x2f4780(0x242)],_0x2f4c84,_0x44b658),_0x5c9443['blockRanges']=_0x3295b8(_0x5c9443[_0x2f4780(0x1f1)],_0x2f4c84,_0x44b658);}function _0x1b1b1d(_0x22b12d,_0x3976e8,_0x379a35){const _0x30d705=_0x587181;var _0x2d29b5,_0x4cbae0;_0x22b12d[_0x30d705(0x20a)]=_0x365532(_0x22b12d[_0x30d705(0x20a)],_0x3976e8,_0x379a35),_0x22b12d[_0x30d705(0x1cc)]=_0x365532(_0x22b12d[_0x30d705(0x1cc)],_0x3976e8,_0x379a35),_0x22b12d[_0x30d705(0x237)]=_0x365532(_0x22b12d[_0x30d705(0x237)],_0x3976e8,_0x379a35),_0x22b12d[_0x30d705(0x202)]=(_0x2d29b5=_0x56ce0b((_0x4cbae0=_0x22b12d[_0x30d705(0x202)])==null?void 0x0:_0x4cbae0[_0x30d705(0x1de)](_0x143cf1=>({..._0x143cf1,'startIndex':_0x143cf1['st'],'endIndex':_0x143cf1['ed']})),_0x3976e8,_0x379a35))==null?void 0x0:_0x2d29b5[_0x30d705(0x1de)](_0x209ce7=>{let {startIndex:_0x277d87,endIndex:_0x33fe9e,..._0x57f16a}=_0x209ce7;return{..._0x57f16a,'st':_0x277d87,'ed':_0x33fe9e};}),_0x22b12d[_0x30d705(0x228)]=_0x56ce0b(_0x22b12d[_0x30d705(0x228)],_0x3976e8,_0x379a35),_0x22b12d[_0x30d705(0x1fb)]=_0x56ce0b(_0x22b12d['customRanges'],_0x3976e8,_0x379a35),_0x22b12d[_0x30d705(0x242)]=_0x56ce0b(_0x22b12d[_0x30d705(0x242)],_0x3976e8,_0x379a35),_0x22b12d[_0x30d705(0x1f1)]=_0x56ce0b(_0x22b12d[_0x30d705(0x1f1)],_0x3976e8,_0x379a35);}function _0x35b13d(_0x492f6a,_0x253206,_0x2d903d){const _0x28fda3=_0x587181;return _0x492f6a==null?void 0x0:_0x492f6a[_0x28fda3(0x1de)](_0x480814=>_0x480814[_0x28fda3(0x216)]>=_0x253206?{..._0x480814,'startIndex':_0x480814[_0x28fda3(0x216)]+_0x2d903d}:_0x480814);}function _0x365532(_0x5474ea,_0x95f54,_0x5f1645){const _0x11d383=_0x587181;let _0x33e3f3=_0x95f54+_0x5f1645;return _0x5474ea==null?void 0x0:_0x5474ea[_0x11d383(0x1de)](_0x2549e9=>_0x2549e9['startIndex']>=_0x95f54&&_0x2549e9[_0x11d383(0x216)]<_0x33e3f3?null:_0x2549e9['startIndex']>=_0x33e3f3?{..._0x2549e9,'startIndex':_0x2549e9[_0x11d383(0x216)]-_0x5f1645}:_0x2549e9)[_0x11d383(0x1f7)](_0x304f73=>_0x304f73!=null);}function _0x20d62b(_0x5d1c68,_0x5c24b4,_0x27ef50){const _0x17b841=_0x587181;return _0x5d1c68==null?void 0x0:_0x5d1c68[_0x17b841(0x1de)](_0x11f1a5=>_0x11f1a5['st']>=_0x5c24b4?{..._0x11f1a5,'st':_0x11f1a5['st']+_0x27ef50,'ed':_0x11f1a5['ed']+_0x27ef50}:_0x11f1a5['ed']>_0x5c24b4?{..._0x11f1a5,'ed':_0x11f1a5['ed']+_0x27ef50}:_0x11f1a5);}function _0x3295b8(_0xc1bdb6,_0x384128,_0x5adc51){const _0x30e4bf=_0x587181;return _0xc1bdb6==null?void 0x0:_0xc1bdb6[_0x30e4bf(0x1de)](_0x461d53=>_0x461d53[_0x30e4bf(0x216)]>=_0x384128?{..._0x461d53,'startIndex':_0x461d53['startIndex']+_0x5adc51,'endIndex':_0x461d53[_0x30e4bf(0x1b6)]+_0x5adc51}:_0x461d53[_0x30e4bf(0x1b6)]>=_0x384128?{..._0x461d53,'endIndex':_0x461d53[_0x30e4bf(0x1b6)]+_0x5adc51}:_0x461d53);}function _0x56ce0b(_0x388ffd,_0x4c6215,_0x81255f){const _0x57420d=_0x587181;let _0x4bf42a=_0x4c6215+_0x81255f;return _0x388ffd==null?void 0x0:_0x388ffd[_0x57420d(0x1de)](_0x2040df=>_0x2040df[_0x57420d(0x216)]>=_0x4c6215&&_0x2040df[_0x57420d(0x1b6)]<_0x4bf42a?null:_0x2040df['startIndex']>=_0x4bf42a?{..._0x2040df,'startIndex':_0x2040df[_0x57420d(0x216)]-_0x81255f,'endIndex':_0x2040df['endIndex']-_0x81255f}:_0x2040df['endIndex']>=_0x4c6215?{..._0x2040df,'startIndex':_0x2040df[_0x57420d(0x216)]<_0x4c6215?_0x2040df[_0x57420d(0x216)]:_0x4c6215,'endIndex':Math[_0x57420d(0x211)](_0x4c6215,_0x2040df[_0x57420d(0x1b6)]-_0x81255f)}:_0x2040df)[_0x57420d(0x1f7)](_0x1d801b=>_0x1d801b!=null);}function _0x29f4af(_0x2c837d,_0x25558b,_0xd7545f,_0x35c1b5){const _0x19aebd=_0x587181;_0x2c837d==null||_0x2c837d[_0x19aebd(0x1d4)](_0xb046e1=>{const _0x35e8dc=_0x19aebd;_0xb046e1[_0x35e8dc(0x216)]>=_0x25558b&&_0xb046e1[_0x35e8dc(0x216)]<_0xd7545f&&(_0xb046e1[_0x35e8dc(0x216)]+=_0x35c1b5);});}function _0x57a3a7(_0x9a322a,_0x1d4fd8,_0x88c6be,_0x2650ff){const _0x363ffb=_0x587181;_0x9a322a==null||_0x9a322a[_0x363ffb(0x1d4)](_0x386a35=>{_0x386a35['st']>=_0x1d4fd8&&_0x386a35['st']<_0x88c6be?(_0x386a35['st']+=_0x2650ff,_0x386a35['ed']+=_0x2650ff):_0x386a35['ed']>_0x1d4fd8&&_0x386a35['ed']<_0x88c6be&&(_0x386a35['ed']+=_0x2650ff);});}function _0x760a16(_0x13d983,_0x51218e,_0x3e6e51,_0x18c2eb){_0x13d983==null||_0x13d983['forEach'](_0x1bd3d8=>{const _0x57cc20=_0x55f3;_0x1bd3d8['startIndex']>=_0x51218e&&_0x1bd3d8[_0x57cc20(0x216)]<_0x3e6e51?(_0x1bd3d8[_0x57cc20(0x216)]+=_0x18c2eb,_0x1bd3d8[_0x57cc20(0x1b6)]+=_0x18c2eb):_0x1bd3d8[_0x57cc20(0x1b6)]>_0x51218e&&_0x1bd3d8[_0x57cc20(0x1b6)]<_0x3e6e51&&(_0x1bd3d8[_0x57cc20(0x1b6)]+=_0x18c2eb);});}function _0x1cfabc(_0x317186){'@babel/helpers - typeof';const _0x28fe0b=_0x587181;return _0x1cfabc=typeof Symbol=='function'&&typeof Symbol[_0x28fe0b(0x214)]==_0x28fe0b(0x1e7)?function(_0xd2f9){return typeof _0xd2f9;}:function(_0x2e38f4){const _0x170691=_0x28fe0b;return _0x2e38f4&&typeof Symbol=='function'&&_0x2e38f4[_0x170691(0x23c)]===Symbol&&_0x2e38f4!==Symbol[_0x170691(0x1da)]?_0x170691(0x1e7):typeof _0x2e38f4;},_0x1cfabc(_0x317186);}function _0x4ad675(_0x491ec7,_0x11896e){const _0x7030e4=_0x587181;if(_0x1cfabc(_0x491ec7)!='object'||!_0x491ec7)return _0x491ec7;var _0x19d93f=_0x491ec7[Symbol[_0x7030e4(0x1bf)]];if(_0x19d93f!==void 0x0){var _0x1f1126=_0x19d93f[_0x7030e4(0x236)](_0x491ec7,_0x11896e||_0x7030e4(0x1e1));if(_0x1cfabc(_0x1f1126)!='object')return _0x1f1126;throw TypeError(_0x7030e4(0x22d));}return(_0x11896e===_0x7030e4(0x210)?String:Number)(_0x491ec7);}function _0x3983d3(_0x3c085d){const _0x4ddd77=_0x587181;var _0x38ad87=_0x4ad675(_0x3c085d,'string');return _0x1cfabc(_0x38ad87)==_0x4ddd77(0x1e7)?_0x38ad87:_0x38ad87+'';}function _0x2c1233(_0x26d3c4,_0x2601c8,_0x5c120a){const _0x2a28b2=_0x587181;return(_0x2601c8=_0x3983d3(_0x2601c8))in _0x26d3c4?Object[_0x2a28b2(0x1eb)](_0x26d3c4,_0x2601c8,{'value':_0x5c120a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x26d3c4[_0x2601c8]=_0x5c120a,_0x26d3c4;}var _0x3eabab=class extends _0x130d90[_0x587181(0x22f)]{constructor(..._0x28243){const _0x253f6d=_0x587181;super(..._0x28243),_0x2c1233(this,_0x253f6d(0x1e3),new Map()),_0x2c1233(this,_0x253f6d(0x1c4),new _0x432803[(_0x253f6d(0x205))]()),_0x2c1233(this,_0x253f6d(0x1c1),this['_change$']['asObservable']());}[_0x587181(0x1c6)](_0x178e70,_0x4d3fb3){const _0x5e6916=_0x587181;return _0x1fb8d2(this[_0x5e6916(0x1e3)][_0x5e6916(0x1d7)](_0x178e70))[_0x5e6916(0x21b)][_0x4d3fb3];}[_0x587181(0x235)](_0x5468d0,_0x2b8d73,_0x2ef511){const _0x18abde=_0x587181;this[_0x18abde(0x20b)](_0x5468d0,_0x2b8d73,_0x54f6d8(this['_resources'][_0x18abde(0x1d7)](_0x5468d0),_0x2b8d73,_0x2ef511));}[_0x587181(0x22e)](_0x281765,_0x549e7f){const _0x16f722=_0x587181;this[_0x16f722(0x20b)](_0x281765,_0x549e7f,_0x165921(this['_resources']['get'](_0x281765),_0x549e7f));}[_0x587181(0x1d6)](_0x50e1a2){const _0x1cf5ea=_0x587181;return _0x1fb8d2(this[_0x1cf5ea(0x1e3)][_0x1cf5ea(0x1d7)](_0x50e1a2));}[_0x587181(0x1ff)](_0x53043b,_0x427cbd){const _0xe25ab3=_0x587181;this['_resources'][_0xe25ab3(0x1dc)](_0x53043b,_0x1fb8d2(_0x427cbd)),this['_change$']['next']({'unitId':_0x53043b});}[_0x587181(0x208)](_0x2f8749){const _0x384b3b=_0x587181;this[_0x384b3b(0x1e3)][_0x384b3b(0x226)](_0x2f8749),this[_0x384b3b(0x1c4)]['next']({'unitId':_0x2f8749});}[_0x587181(0x1f8)](){const _0x171ee7=_0x587181;super['dispose'](),this['_resources'][_0x171ee7(0x1cf)](),this[_0x171ee7(0x1c4)][_0x171ee7(0x204)]();}[_0x587181(0x20b)](_0x14bb50,_0xdb3c01,_0x116597){const _0x1d39a7=_0x587181;this['_resources'][_0x1d39a7(0x1dc)](_0x14bb50,_0x116597),this[_0x1d39a7(0x1c4)][_0x1d39a7(0x20f)]({'unitId':_0x14bb50,'blockId':_0xdb3c01});}};_0x130d90[_0x587181(0x1b7)][_0x587181(0x23e)],_0x130d90['CommandType'][_0x587181(0x23e)];let _0x3c3236={'id':_0x587181(0x22a),'type':_0x130d90[_0x587181(0x1b7)][_0x587181(0x23e)],'handler':(_0x24da40,_0x4ba114)=>{const _0x874771=_0x587181;var _0x19fb35,_0x26af21,_0x564667;let _0x198aa1=_0x220667(_0x24da40,_0x4ba114==null?void 0x0:_0x4ba114[_0x874771(0x1e8)]);if(!_0x198aa1)return!0x1;let _0x3610f5=_0x56955d(_0x24da40),_0x50f5dd=_0x5037bf({'blockId':(_0x19fb35=_0x4ba114==null?void 0x0:_0x4ba114[_0x874771(0x23f)])==null?(0x0,_0x130d90[_0x874771(0x1f6)])(0x6):_0x19fb35,'config':_0x4ba114==null?void 0x0:_0x4ba114[_0x874771(0x1bc)],'documentData':_0x198aa1[_0x874771(0x224)],'endOffset':(_0x26af21=_0x4ba114==null?void 0x0:_0x4ba114[_0x874771(0x1e6)])==null?_0x3610f5==null?void 0x0:_0x3610f5[_0x874771(0x1e6)]:_0x26af21,'metadata':_0x198aa1[_0x874771(0x234)][_0x874771(0x1d6)](_0x198aa1[_0x874771(0x1e8)]),'startOffset':(_0x564667=_0x4ba114==null?void 0x0:_0x4ba114[_0x874771(0x1cb)])==null?_0x3610f5==null?void 0x0:_0x3610f5[_0x874771(0x1cb)]:_0x564667}),_0xe97b3f=_0x1349b0(_0x198aa1['commandService'],_0x198aa1['unitId'],_0x198aa1[_0x874771(0x224)],_0x50f5dd['nextDocumentData'],_0x50f5dd['cursorOffset']);return _0xe97b3f&&_0x50f5dd[_0x874771(0x220)]&&_0x198aa1['model'][_0x874771(0x1ff)](_0x198aa1[_0x874771(0x1e8)],_0x50f5dd['nextMetadata']),_0xe97b3f;}},_0x2d3bdb={'id':'docs-code.command.update','type':_0x130d90['CommandType'][_0x587181(0x23e)],'handler':(_0x5df109,_0x13fff6)=>{const _0x2a793f=_0x587181;if(!_0x13fff6)return!0x1;let _0x7b4d94=_0x220667(_0x5df109,_0x13fff6[_0x2a793f(0x1e8)]);if(!_0x7b4d94)return!0x1;let _0x17a503=_0x4b0862({'blockId':_0x13fff6[_0x2a793f(0x23f)],'config':_0x13fff6['config'],'documentData':_0x7b4d94[_0x2a793f(0x224)],'metadata':_0x7b4d94[_0x2a793f(0x234)][_0x2a793f(0x1d6)](_0x7b4d94['unitId'])});return _0x17a503['nextMetadata']&&_0x7b4d94[_0x2a793f(0x234)][_0x2a793f(0x1ff)](_0x7b4d94['unitId'],_0x17a503[_0x2a793f(0x220)]),!0x0;}},_0x343a88={'id':_0x587181(0x222),'type':_0x130d90['CommandType'][_0x587181(0x23e)],'handler':(_0x229dc7,_0x404fba)=>{const _0x595f42=_0x587181;var _0x58df4b,_0x5adc0d;let _0x36fe44=_0x220667(_0x229dc7,_0x404fba==null?void 0x0:_0x404fba[_0x595f42(0x1e8)]);if(!_0x36fe44)return!0x1;let _0x3c5a07=(_0x58df4b=_0x404fba==null?void 0x0:_0x404fba[_0x595f42(0x1c0)])==null?(_0x5adc0d=_0x56955d(_0x229dc7))==null?void 0x0:_0x5adc0d[_0x595f42(0x1cb)]:_0x58df4b;if(_0x3c5a07==null)return!0x1;let _0x136339=_0x27dbcf({'cursorOffset':_0x3c5a07,'documentData':_0x36fe44[_0x595f42(0x224)]});return _0x136339?_0x1349b0(_0x36fe44['commandService'],_0x36fe44[_0x595f42(0x1e8)],_0x36fe44['previousDocumentData'],_0x136339['nextDocumentData'],_0x136339['cursorOffset']):!0x1;}},_0x4c126e={'id':_0x587181(0x213),'type':_0x130d90[_0x587181(0x1b7)][_0x587181(0x23e)],'handler':(_0x3fb1b4,_0x4c7579)=>{const _0x1e895b=_0x587181;var _0x39f27b,_0xa3715f;let _0x135a6a=_0x220667(_0x3fb1b4,_0x4c7579==null?void 0x0:_0x4c7579[_0x1e895b(0x1e8)]);if(!_0x135a6a)return!0x1;let _0x1a9c21=(_0x39f27b=_0x4c7579==null?void 0x0:_0x4c7579[_0x1e895b(0x1c0)])==null?(_0xa3715f=_0x56955d(_0x3fb1b4))==null?void 0x0:_0xa3715f['startOffset']:_0x39f27b;if(_0x1a9c21==null)return!0x1;let _0x52be29=_0x57a9b5({'cursorOffset':_0x1a9c21,'documentData':_0x135a6a[_0x1e895b(0x224)],'paragraphStartIndex':_0x4c7579==null?void 0x0:_0x4c7579[_0x1e895b(0x225)]});return _0x52be29?_0x1349b0(_0x135a6a[_0x1e895b(0x1e2)],_0x135a6a[_0x1e895b(0x1e8)],_0x135a6a[_0x1e895b(0x224)],_0x52be29[_0x1e895b(0x1ef)],_0x52be29[_0x1e895b(0x1c0)]):!0x1;}};function _0x220667(_0x179863,_0x3852b2){const _0xdd5541=_0x587181;let _0x45616b=_0x179863[_0xdd5541(0x1d7)](_0x130d90[_0xdd5541(0x240)]),_0x23a186=_0x3852b2?_0x45616b['getUniverDocInstance'](_0x3852b2):_0x45616b[_0xdd5541(0x221)](_0x130d90[_0xdd5541(0x1ce)][_0xdd5541(0x1cd)]);return _0x23a186?{'commandService':_0x179863[_0xdd5541(0x1d7)](_0x130d90[_0xdd5541(0x1ed)]),'model':_0x179863[_0xdd5541(0x1d7)](_0x3eabab),'previousDocumentData':_0x23a186[_0xdd5541(0x1dd)](),'unitId':_0x23a186[_0xdd5541(0x1e5)]()}:null;}function _0x56955d(_0x2bcb13){const _0x4f6508=_0x587181;var _0x34ae26;return(_0x34ae26=_0x2bcb13['get'](_0x3782ac[_0x4f6508(0x22c)])[_0x4f6508(0x1c9)]())==null?void 0x0:_0x34ae26[0x0];}function _0x57da22(_0x3c4b73,_0x4a366b){const _0x4f4f44=_0x587181;var _0x1a192d,_0x4273e6,_0x2946f3,_0x5fd5f1,_0x25a3bc,_0x16cdd6,_0x14ac02,_0x1768ab,_0x174a12,_0x3bb238,_0x4d6a7e,_0x31bbbd,_0x2df4d8,_0x5abfe3,_0x389871,_0x5523c0,_0x5e9845,_0x302d49;let _0x4285de=_0x130d90['JSONX'][_0x4f4f44(0x1e0)]();return[_0x2b1474(_0x4285de,[_0x4f4f44(0x230),'dataStream'],(_0x1a192d=_0x3c4b73['body'])==null?void 0x0:_0x1a192d[_0x4f4f44(0x1c3)],(_0x4273e6=_0x4a366b[_0x4f4f44(0x230)])==null?void 0x0:_0x4273e6[_0x4f4f44(0x1c3)]),_0x2b1474(_0x4285de,[_0x4f4f44(0x230),_0x4f4f44(0x20a)],(_0x2946f3=_0x3c4b73[_0x4f4f44(0x230)])==null?void 0x0:_0x2946f3[_0x4f4f44(0x20a)],(_0x5fd5f1=_0x4a366b[_0x4f4f44(0x230)])==null?void 0x0:_0x5fd5f1['paragraphs']),_0x2b1474(_0x4285de,['body',_0x4f4f44(0x1cc)],(_0x25a3bc=_0x3c4b73[_0x4f4f44(0x230)])==null?void 0x0:_0x25a3bc['sectionBreaks'],(_0x16cdd6=_0x4a366b[_0x4f4f44(0x230)])==null?void 0x0:_0x16cdd6[_0x4f4f44(0x1cc)]),_0x2b1474(_0x4285de,[_0x4f4f44(0x230),_0x4f4f44(0x202)],(_0x14ac02=_0x3c4b73['body'])==null?void 0x0:_0x14ac02[_0x4f4f44(0x202)],(_0x1768ab=_0x4a366b[_0x4f4f44(0x230)])==null?void 0x0:_0x1768ab[_0x4f4f44(0x202)]),_0x2b1474(_0x4285de,[_0x4f4f44(0x230),_0x4f4f44(0x237)],(_0x174a12=_0x3c4b73[_0x4f4f44(0x230)])==null?void 0x0:_0x174a12[_0x4f4f44(0x237)],(_0x3bb238=_0x4a366b[_0x4f4f44(0x230)])==null?void 0x0:_0x3bb238[_0x4f4f44(0x237)]),_0x2b1474(_0x4285de,['body','customRanges'],(_0x4d6a7e=_0x3c4b73[_0x4f4f44(0x230)])==null?void 0x0:_0x4d6a7e['customRanges'],(_0x31bbbd=_0x4a366b[_0x4f4f44(0x230)])==null?void 0x0:_0x31bbbd[_0x4f4f44(0x1fb)]),_0x2b1474(_0x4285de,['body',_0x4f4f44(0x242)],(_0x2df4d8=_0x3c4b73[_0x4f4f44(0x230)])==null?void 0x0:_0x2df4d8[_0x4f4f44(0x242)],(_0x5abfe3=_0x4a366b['body'])==null?void 0x0:_0x5abfe3[_0x4f4f44(0x242)]),_0x2b1474(_0x4285de,['body',_0x4f4f44(0x228)],(_0x389871=_0x3c4b73[_0x4f4f44(0x230)])==null?void 0x0:_0x389871[_0x4f4f44(0x228)],(_0x5523c0=_0x4a366b[_0x4f4f44(0x230)])==null?void 0x0:_0x5523c0[_0x4f4f44(0x228)]),_0x2b1474(_0x4285de,['body',_0x4f4f44(0x1f1)],(_0x5e9845=_0x3c4b73[_0x4f4f44(0x230)])==null?void 0x0:_0x5e9845[_0x4f4f44(0x1f1)],(_0x302d49=_0x4a366b['body'])==null?void 0x0:_0x302d49[_0x4f4f44(0x1f1)])][_0x4f4f44(0x1f7)](Boolean)[_0x4f4f44(0x1ea)]((_0x3ddc07,_0x3dc257)=>_0x130d90[_0x4f4f44(0x1fc)]['compose'](_0x3ddc07,_0x3dc257),null);}function _0x2b1474(_0x251b87,_0x4c8a31,_0x190f17,_0x6fd3d8){const _0x340a92=_0x587181;return _0x130d90[_0x340a92(0x245)]['diffValue'](_0x190f17,_0x6fd3d8)?null:_0x251b87['replaceOp'](_0x4c8a31,_0x190f17,_0x6fd3d8);}function _0x1349b0(_0x5738c9,_0x525bf4,_0x215ad4,_0x40925c,_0x1d5e9f){const _0x3d3c18=_0x587181;let _0x5a8ba0=_0x57da22(_0x215ad4,_0x40925c);return _0x5a8ba0?!!_0x5738c9[_0x3d3c18(0x209)](_0x3782ac[_0x3d3c18(0x241)]['id'],{'unitId':_0x525bf4,'actions':_0x5a8ba0,'textRanges':[{'startOffset':_0x1d5e9f,'endOffset':_0x1d5e9f,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var _0x149b19=class{constructor(_0x297899){const _0x36e736=_0x587181;this[_0x36e736(0x1df)]=_0x297899;}[_0x587181(0x1bb)](){return this['_runtime']['blockId'];}[_0x587181(0x1fa)](){const _0x4ebf1b=_0x587181;let _0x502141=this[_0x4ebf1b(0x1fd)]();return _0x502141?{'blockId':_0x502141['blockId'],'endIndex':_0x502141[_0x4ebf1b(0x1b6)],'startIndex':_0x502141[_0x4ebf1b(0x216)]}:null;}[_0x587181(0x218)](){const _0x5408d1=_0x587181;var _0x22ee78;let _0x46138a=this[_0x5408d1(0x1fd)](),_0x1ab205=(_0x22ee78=this['_runtime'][_0x5408d1(0x21d)]()[_0x5408d1(0x230)])==null?void 0x0:_0x22ee78[_0x5408d1(0x1c3)];return!_0x46138a||!_0x1ab205?'':_0x36565f(_0x1ab205[_0x5408d1(0x1ba)](_0x46138a[_0x5408d1(0x216)]+0x1,_0x46138a[_0x5408d1(0x1b6)]));}['describe'](){const _0xfc0799=_0x587181;let _0x30b837=this[_0xfc0799(0x1fa)]();return _0x30b837?{..._0x30b837,'config':this['getConfig'](),'text':this[_0xfc0799(0x218)](),'type':'code'}:null;}[_0x587181(0x219)](){const _0x36dd16=_0x587181;var _0x1ca2a8;return _0x2615d7((_0x1ca2a8=this[_0x36dd16(0x1df)][_0x36dd16(0x234)])==null?void 0x0:_0x1ca2a8[_0x36dd16(0x1c6)](this['_runtime'][_0x36dd16(0x1e8)],this[_0x36dd16(0x1df)]['blockId']));}[_0x587181(0x1fe)](_0x549c4b){const _0x18751d=_0x587181;var _0x5a5fc8;return!!((_0x5a5fc8=this[_0x18751d(0x1df)][_0x18751d(0x1e2)])!=null&&_0x5a5fc8['syncExecuteCommand'](_0x2d3bdb['id'],{'blockId':this['_runtime'][_0x18751d(0x23f)],'config':_0x549c4b['config'],'unitId':this[_0x18751d(0x1df)]['unitId']}));}['exit'](_0x4fa49f){const _0x376691=_0x587181;var _0x2f0515;return!!((_0x2f0515=this[_0x376691(0x1df)][_0x376691(0x1e2)])!=null&&_0x2f0515[_0x376691(0x209)](_0x343a88['id'],{'cursorOffset':_0x4fa49f,'unitId':this[_0x376691(0x1df)][_0x376691(0x1e8)]}));}[_0x587181(0x1f4)](_0x1e682d={}){const _0xd4d752=_0x587181;var _0x4833a3;return!!((_0x4833a3=this[_0xd4d752(0x1df)]['commandService'])!=null&&_0x4833a3[_0xd4d752(0x209)](_0x4c126e['id'],{..._0x1e682d,'unitId':this['_runtime'][_0xd4d752(0x1e8)]}));}[_0x587181(0x1fd)](){const _0x1d35c0=_0x587181;var _0x2c0895;return(_0x2c0895=this[_0x1d35c0(0x1df)][_0x1d35c0(0x21d)]()[_0x1d35c0(0x230)])==null||(_0x2c0895=_0x2c0895['blockRanges'])==null?void 0x0:_0x2c0895[_0x1d35c0(0x23a)](_0x5a043e=>_0x5a043e[_0x1d35c0(0x23f)]===this[_0x1d35c0(0x1df)][_0x1d35c0(0x23f)]&&_0x5a043e[_0x1d35c0(0x1b8)]===_0x1d35c0(0x22b));}};function _0x36565f(_0x9ac260){const _0x1ad5ed=_0x587181;return Array['from'](_0x9ac260)['map'](_0x1c903a=>_0x1c903a===_0x130d90[_0x1ad5ed(0x20c)]['PARAGRAPH']?'\x0a':_0x1c903a)[_0x1ad5ed(0x1f7)](_0x369140=>_0x369140!==_0x130d90[_0x1ad5ed(0x20c)][_0x1ad5ed(0x1f3)]&&_0x369140!==_0x130d90['DataStreamTreeTokenType']['BLOCK_END']&&_0x369140!==_0x130d90[_0x1ad5ed(0x20c)]['SECTION_BREAK'])['join']('')[_0x1ad5ed(0x1c8)](/\n$/,'');}Object[_0x587181(0x1e4)](_0x590fb2[_0x587181(0x1d8)]['prototype'],{'getCodes'(){const _0x547b68=_0x587181;var _0x195ca7,_0x4cd4d4;return(_0x195ca7=(_0x4cd4d4=this['getSnapshot']()[_0x547b68(0x230)])==null||(_0x4cd4d4=_0x4cd4d4[_0x547b68(0x1f1)])==null?void 0x0:_0x4cd4d4[_0x547b68(0x1f7)](_0x53354a=>_0x53354a[_0x547b68(0x1b8)]===_0x547b68(0x22b))[_0x547b68(0x1de)](_0x1ee3c7=>_0x4d94c8(this,_0x1ee3c7['blockId'])))==null?[]:_0x195ca7;},'getCode'(_0x745c0c){const _0xc32fb4=_0x587181;var _0x35764a;return!((_0x35764a=this[_0xc32fb4(0x1dd)]()[_0xc32fb4(0x230)])==null||(_0x35764a=_0x35764a['blockRanges'])==null)&&_0x35764a['some'](_0x291cb5=>_0x291cb5['blockId']===_0x745c0c&&_0x291cb5[_0xc32fb4(0x1b8)]==='code')?_0x4d94c8(this,_0x745c0c):null;},'getCodeAt'(_0x201446){const _0x22396e=_0x587181;var _0x8df50c;let _0x2eebe0=(_0x8df50c=this[_0x22396e(0x1dd)]()[_0x22396e(0x230)])==null||(_0x8df50c=_0x8df50c[_0x22396e(0x1f1)])==null||(_0x8df50c=_0x8df50c[_0x22396e(0x23a)](_0x370055=>_0x370055[_0x22396e(0x1b8)]===_0x22396e(0x22b)&&_0x370055[_0x22396e(0x216)]<=_0x201446&&_0x201446<=_0x370055[_0x22396e(0x1b6)]))==null?void 0x0:_0x8df50c[_0x22396e(0x23f)];return _0x2eebe0?_0x4d94c8(this,_0x2eebe0):null;},'findCodeByText'(_0x2355e9){const _0xc06717=_0x587181;var _0x46fca4;return(_0x46fca4=this[_0xc06717(0x21e)](_0x2355e9)[0x0])==null?null:_0x46fca4;},'findCodes'(_0x4c6a5a){const _0x389599=_0x587181;let _0x392b9c=typeof _0x4c6a5a==_0x389599(0x210)?{'text':_0x4c6a5a}:_0x4c6a5a;return this[_0x389599(0x1ee)]()[_0x389599(0x1f7)](_0x4bbd8f=>!(_0x392b9c[_0x389599(0x23f)]&&_0x4bbd8f[_0x389599(0x1bb)]()!==_0x392b9c[_0x389599(0x23f)]||_0x392b9c[_0x389599(0x1b9)]&&!_0x4bbd8f[_0x389599(0x218)]()[_0x389599(0x244)](_0x392b9c[_0x389599(0x1b9)])));},'insertCode'(_0x2295ee={}){const _0x442e1e=_0x587181;var _0x39ae42,_0x3b0403;let _0x591677=(_0x39ae42=_0x2295ee[_0x442e1e(0x23f)])==null?'docs-code-'+Date[_0x442e1e(0x1f0)]():_0x39ae42;return(_0x3b0403=_0x228495(this))!=null&&_0x3b0403['syncExecuteCommand'](_0x3c3236['id'],{..._0x2295ee,'blockId':_0x591677,'unitId':this[_0x442e1e(0x1bb)]()})?_0x4d94c8(this,_0x591677):null;},'exitCode'(_0xcbc308){const _0x459e5c=_0x587181;var _0x4157f0;return!!((_0x4157f0=_0x228495(this))!=null&&_0x4157f0[_0x459e5c(0x209)](_0x343a88['id'],{'cursorOffset':_0xcbc308,'unitId':this[_0x459e5c(0x1bb)]()}));},'cancelEmptyCodeParagraph'(_0x2d3538={}){const _0x117ce5=_0x587181;var _0x255682;return!!((_0x255682=_0x228495(this))!=null&&_0x255682[_0x117ce5(0x209)](_0x4c126e['id'],{..._0x2d3538,'unitId':this['getId']()}));}});function _0x4d94c8(_0x303b40,_0x5f24cc){const _0x5dff35=_0x587181;let _0x354639=_0x45fcfc(_0x303b40);return new _0x149b19({'blockId':_0x5f24cc,'commandService':_0x228495(_0x303b40),'getDocumentData':()=>_0x303b40[_0x5dff35(0x1dd)](),'model':_0x354639==null?void 0x0:_0x354639[_0x5dff35(0x1d7)](_0x3eabab),'unitId':_0x303b40[_0x5dff35(0x1bb)]()});}function _0x228495(_0x4ba21e){const _0x10eaa4=_0x587181;var _0x14add9,_0x170622;return(_0x14add9=_0x4ba21e['_commandService'])==null?(_0x170622=_0x45fcfc(_0x4ba21e))==null?void 0x0:_0x170622[_0x10eaa4(0x1d7)](_0x130d90[_0x10eaa4(0x1ed)]):_0x14add9;}function _0x45fcfc(_0x23d5fc){const _0x44458c=_0x587181;return _0x23d5fc[_0x44458c(0x1f2)];}_0x59f703[_0x587181(0x20e)]=_0x149b19;}));function _0x55f3(_0x121bfe,_0x32a3ff){_0x121bfe=_0x121bfe-0x1b5;const _0x5bcb11=_0x5bcb();let _0x55f359=_0x5bcb11[_0x121bfe];return _0x55f359;}function _0x5bcb(){const _0x2124c2=['join','reduce','defineProperty','SECTION_BREAK','ICommandService','getCodes','nextDocumentData','now','blockRanges','_injector','BLOCK_START','cancelEmptyParagraph','125192VzXfSZ','generateRandomId','filter','dispose','4332675PSpjks','getRange','customRanges','JSONX','_getBlockRange','updateConfig','deserialize','indentEnd','5235710fDOUrC','textRuns','UniverProDocsCodeFacade','complete','Subject','amd','documentData','removeUnit','syncExecuteCommand','paragraphs','_setResource','DataStreamTreeTokenType','rxjs','FDocsCode','next','string','max','PARAGRAPH','docs-code.command.cancel-empty-paragraph','iterator','@univerjs/core','startIndex','function','getText','getConfig','indentStart','codes','paragraphStyle','getDocumentData','findCodes','9VMtnct','nextMetadata','getCurrentUnitOfType','docs-code.command.exit','sort','previousDocumentData','paragraphStartIndex','delete','paragraph','tables','monospace','docs-code.command.insert','code','DocSelectionManagerService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeCode','Disposable','body','endsWith','1947724owfxSg','6854460oNEklx','model','setCodeConfig','call','customBlocks','749JvfxYh','min','find','textStyle','constructor','Document\x20body\x20is\x20required','COMMAND','blockId','IUniverInstanceService','RichTextEditingMutation','customDecorations','4609008YNxLeM','includes','Tools','length','metadata','endIndex','CommandType','blockType','text','slice','getId','config','from','55PcMfbY','toPrimitive','cursorOffset','change$','spaceAbove','dataStream','_change$','UniverDocs','getCodeConfig','3cPBQMU','replace','getTextRanges','endTokenOffset','startOffset','sectionBreaks','UNIVER_DOC','UniverInstanceType','clear','BLOCK_END','UniverCore','@univerjs/docs','spaceBelow','forEach','Module','serialize','get','FDocument','UniverDocsUi','prototype','441814GwSGGC','set','getSnapshot','map','_runtime','getInstance','default','commandService','_resources','assign','getUnitId','endOffset','symbol','unitId'];_0x5bcb=function(){return _0x2124c2;};return _0x5bcb();}