@univerjs-pro/docs-code 0.25.0-insiders.20260604-29ebbff → 0.25.0-insiders.20260613-5ff0e1f

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x4854d9=_0x4e64;function _0x4e64(_0x4f3385,_0x3a3ed6){_0x4f3385=_0x4f3385-0xfd;var _0x4838b0=_0x4838();var _0x4e64c9=_0x4838b0[_0x4f3385];return _0x4e64c9;}(function(_0x516eac,_0x198e5c){var _0x1e2172=_0x4e64,_0x2e690d=_0x516eac();while(!![]){try{var _0x454f5a=-parseInt(_0x1e2172(0x12f))/0x1+-parseInt(_0x1e2172(0x135))/0x2+parseInt(_0x1e2172(0x12a))/0x3+parseInt(_0x1e2172(0x10c))/0x4*(-parseInt(_0x1e2172(0x144))/0x5)+-parseInt(_0x1e2172(0xfd))/0x6+parseInt(_0x1e2172(0x129))/0x7*(parseInt(_0x1e2172(0x10a))/0x8)+parseInt(_0x1e2172(0x140))/0x9;if(_0x454f5a===_0x198e5c)break;else _0x2e690d['push'](_0x2e690d['shift']());}catch(_0x256ff3){_0x2e690d['push'](_0x2e690d['shift']());}}}(_0x4838,0x360c0),Object[_0x4854d9(0x128)](exports,Symbol[_0x4854d9(0x14c)],{'value':_0x4854d9(0x14f)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x180120){'@babel/helpers - typeof';var _0x210587=_0x4854d9;return r=typeof Symbol==_0x210587(0x11d)&&typeof Symbol['iterator']==_0x210587(0x127)?function(_0x48fe0a){return typeof _0x48fe0a;}:function(_0x5b3be9){var _0x3d91bb=_0x210587;return _0x5b3be9&&typeof Symbol==_0x3d91bb(0x11d)&&_0x5b3be9[_0x3d91bb(0xff)]===Symbol&&_0x5b3be9!==Symbol[_0x3d91bb(0x103)]?'symbol':typeof _0x5b3be9;},r(_0x180120);}function i(_0x170700,_0x197f2d){var _0x2490e1=_0x4854d9;if(r(_0x170700)!='object'||!_0x170700)return _0x170700;var _0x6a4121=_0x170700[Symbol['toPrimitive']];if(_0x6a4121!==void 0x0){var _0xd1a204=_0x6a4121[_0x2490e1(0x11b)](_0x170700,_0x197f2d||_0x2490e1(0x148));if(r(_0xd1a204)!='object')return _0xd1a204;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x197f2d===_0x2490e1(0x13e)?String:Number)(_0x170700);}function a(_0x359950){var _0x5a7205=_0x4854d9,_0xcae954=i(_0x359950,_0x5a7205(0x13e));return r(_0xcae954)==_0x5a7205(0x127)?_0xcae954:_0xcae954+'';}function o(_0x5bebe3,_0x3dc970,_0x7c752e){var _0x1ac0d7=_0x4854d9;return(_0x3dc970=a(_0x3dc970))in _0x5bebe3?Object[_0x1ac0d7(0x128)](_0x5bebe3,_0x3dc970,{'value':_0x7c752e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5bebe3[_0x3dc970]=_0x7c752e,_0x5bebe3;}function s(_0x3b706c,_0x2b065b){return function(_0x8d7fee,_0x451001){_0x2b065b(_0x8d7fee,_0x451001,_0x3b706c);};}function c(_0x1bf087,_0x50a59,_0x356462,_0xe8172d){var _0x578359=_0x4854d9,_0x2e5e30=arguments['length'],_0x3ba35f=_0x2e5e30<0x3?_0x50a59:_0xe8172d===null?_0xe8172d=Object[_0x578359(0x14a)](_0x50a59,_0x356462):_0xe8172d,_0x5e231d;if(typeof Reflect==_0x578359(0x122)&&typeof Reflect[_0x578359(0x100)]==_0x578359(0x11d))_0x3ba35f=Reflect[_0x578359(0x100)](_0x1bf087,_0x50a59,_0x356462,_0xe8172d);else{for(var _0x127209=_0x1bf087[_0x578359(0x11f)]-0x1;_0x127209>=0x0;_0x127209--)(_0x5e231d=_0x1bf087[_0x127209])&&(_0x3ba35f=(_0x2e5e30<0x3?_0x5e231d(_0x3ba35f):_0x2e5e30>0x3?_0x5e231d(_0x50a59,_0x356462,_0x3ba35f):_0x5e231d(_0x50a59,_0x356462))||_0x3ba35f);}return _0x2e5e30>0x3&&_0x3ba35f&&Object[_0x578359(0x128)](_0x50a59,_0x356462,_0x3ba35f),_0x3ba35f;}let l=class{constructor(_0x2077b4,_0x12b4fb,_0x5cf42f){var _0x3c8e26=_0x4854d9;this[_0x3c8e26(0x109)]=_0x2077b4,this['_blockId']=_0x12b4fb,this[_0x3c8e26(0x110)]=_0x5cf42f,o(this,_0x3c8e26(0xfe),void 0x0),this[_0x3c8e26(0xfe)]=this[_0x3c8e26(0x109)][_0x3c8e26(0x12d)]();}[_0x4854d9(0x12d)](){return this['_blockId'];}[_0x4854d9(0x124)](){var _0x438500=_0x4854d9;let _0x38b2e5=this['_getBlockRange']();return _0x38b2e5?{'blockId':_0x38b2e5['blockId'],'endIndex':_0x38b2e5[_0x438500(0x14e)],'startIndex':_0x38b2e5[_0x438500(0x108)]}:null;}[_0x4854d9(0x12b)](){var _0x406a61=_0x4854d9,_0x447fb5;let _0x25f855=this[_0x406a61(0x137)](),_0x3bfbbf=(_0x447fb5=this['_getDocumentData']()['body'])==null?void 0x0:_0x447fb5[_0x406a61(0x104)];return!_0x25f855||!_0x3bfbbf?'':u(_0x3bfbbf[_0x406a61(0x116)](_0x25f855['startIndex']+0x1,_0x25f855[_0x406a61(0x14e)]));}[_0x4854d9(0x125)](){var _0x42bb2b=_0x4854d9;let _0x2bd783=this[_0x42bb2b(0x124)]();return _0x2bd783?{..._0x2bd783,'config':this[_0x42bb2b(0x131)](),'text':this[_0x42bb2b(0x12b)](),'type':t['DocumentBlockRangeType'][_0x42bb2b(0x101)]}:null;}['getConfig'](){var _0x5c8cd6=_0x4854d9;return(0x0,e[_0x5c8cd6(0x106)])(this[_0x5c8cd6(0x110)]['get'](e[_0x5c8cd6(0x111)])[_0x5c8cd6(0x10d)](this[_0x5c8cd6(0xfe)],this[_0x5c8cd6(0x13f)]));}['updateConfig'](_0xd14d07){var _0x551a77=_0x4854d9;return this[_0x551a77(0x110)][_0x551a77(0x117)](t[_0x551a77(0x136)])[_0x551a77(0x12c)](e[_0x551a77(0x119)]['id'],{'blockId':this[_0x551a77(0x13f)],'config':_0xd14d07[_0x551a77(0x10e)],'unitId':this[_0x551a77(0xfe)]});}[_0x4854d9(0x13b)](_0x198d0a){var _0x3d458b=_0x4854d9;return this[_0x3d458b(0x110)][_0x3d458b(0x117)](t[_0x3d458b(0x136)])['syncExecuteCommand'](e[_0x3d458b(0x102)]['id'],{'cursorOffset':_0x198d0a,'unitId':this[_0x3d458b(0xfe)]});}[_0x4854d9(0x130)](_0x4a9dad={}){var _0x181128=_0x4854d9;return this[_0x181128(0x110)][_0x181128(0x117)](t[_0x181128(0x136)])[_0x181128(0x12c)](e[_0x181128(0x13c)]['id'],{..._0x4a9dad,'unitId':this['_unitId']});}[_0x4854d9(0x145)](){var _0x1885f8=_0x4854d9;return this[_0x1885f8(0x109)][_0x1885f8(0x114)]();}[_0x4854d9(0x137)](){var _0x4b7fcf=_0x4854d9,_0x3ae4cb;let _0x5f12a4=(_0x3ae4cb=this[_0x4b7fcf(0x145)]()[_0x4b7fcf(0x113)])==null||(_0x3ae4cb=_0x3ae4cb[_0x4b7fcf(0x139)])==null?void 0x0:_0x3ae4cb[_0x4b7fcf(0x147)](_0x336bfb=>_0x336bfb[_0x4b7fcf(0x14b)]===this[_0x4b7fcf(0x13f)]&&_0x336bfb[_0x4b7fcf(0x138)]===t[_0x4b7fcf(0x12e)][_0x4b7fcf(0x101)]);return _0x5f12a4==null?null:_0x5f12a4;}};function _0x4838(){var _0x337489=['DocsCodeUpdateCommand','from','call','findCodes','function','filter','length','PARAGRAPH','join','object','extend','getRange','describe','_getBlockRanges','symbol','defineProperty','3071278etmWCq','875220GYbVgy','getText','syncExecuteCommand','getId','DocumentBlockRangeType','382986apIaWY','cancelEmptyParagraph','getConfig','FDocumentCode','SECTION_BREAK','exitCode','455518FTxhPl','ICommandService','_getBlockRange','blockType','blockRanges','Inject','exit','DocsCodeCancelEmptyParagraphCommand','replace','string','_blockId','5047821EGrzgV','Injector','map','FDocument','370RRCnRH','_getDocumentData','insertCode','find','default','DocsCodeInsertCommand','getOwnPropertyDescriptor','blockId','toStringTag','BLOCK_END','endIndex','Module','text','1058484dPMINm','_unitId','constructor','decorate','CODE','DocsCodeExitCommand','prototype','dataStream','createInstance','normalizeDocsCodeConfig','_createFDocumentCode','startIndex','_document','8PgkviU','some','15288gSpBEE','getCodeConfig','config','getCodes','_injector','DocsCodeModel','DataStreamTreeTokenType','body','save','includes','slice','get','generateRandomId'];_0x4838=function(){return _0x337489;};return _0x4838();}l=c([s(0x2,(0x0,t[_0x4854d9(0x13a)])(t[_0x4854d9(0x141)]))],l);function u(_0x2790c3){var _0x57d09c=_0x4854d9;return Array[_0x57d09c(0x11a)](_0x2790c3)[_0x57d09c(0x142)](_0x6e3473=>_0x6e3473===t[_0x57d09c(0x112)][_0x57d09c(0x120)]?'\x0a':_0x6e3473)['filter'](_0x5bbd02=>_0x5bbd02!==t[_0x57d09c(0x112)]['BLOCK_START']&&_0x5bbd02!==t[_0x57d09c(0x112)][_0x57d09c(0x14d)]&&_0x5bbd02!==t[_0x57d09c(0x112)][_0x57d09c(0x133)])[_0x57d09c(0x121)]('')[_0x57d09c(0x13d)](/\n$/,'');}var d=class extends n[_0x4854d9(0x143)]{[_0x4854d9(0x10f)](){var _0x53eebf=_0x4854d9;return this[_0x53eebf(0x126)]()[_0x53eebf(0x11e)](_0x117ac3=>_0x117ac3[_0x53eebf(0x138)]===t[_0x53eebf(0x12e)]['CODE'])[_0x53eebf(0x142)](_0x384ebb=>this[_0x53eebf(0x107)](_0x384ebb[_0x53eebf(0x14b)]));}['getCode'](_0x111c6c){var _0x32042d=_0x4854d9;return this['_getBlockRanges']()[_0x32042d(0x10b)](_0x291676=>_0x291676['blockId']===_0x111c6c&&_0x291676[_0x32042d(0x138)]===t[_0x32042d(0x12e)][_0x32042d(0x101)])?this[_0x32042d(0x107)](_0x111c6c):null;}['getCodeAt'](_0x3f8059){var _0x12ca04=_0x4854d9;let _0x22c70d=this[_0x12ca04(0x126)]()[_0x12ca04(0x147)](_0x30f1f7=>_0x30f1f7[_0x12ca04(0x138)]===t[_0x12ca04(0x12e)][_0x12ca04(0x101)]&&_0x30f1f7[_0x12ca04(0x108)]<=_0x3f8059&&_0x3f8059<=_0x30f1f7[_0x12ca04(0x14e)]);return _0x22c70d?this[_0x12ca04(0x107)](_0x22c70d[_0x12ca04(0x14b)]):null;}['findCodeByText'](_0x5ee390){var _0x473273=_0x4854d9,_0x1decea;return(_0x1decea=this[_0x473273(0x11c)](_0x5ee390)[0x0])==null?null:_0x1decea;}[_0x4854d9(0x11c)](_0x24f251){var _0x480327=_0x4854d9;let _0x400706=typeof _0x24f251==_0x480327(0x13e)?{'text':_0x24f251}:_0x24f251;return this[_0x480327(0x10f)]()[_0x480327(0x11e)](_0x4b3d06=>!(_0x400706['blockId']&&_0x4b3d06[_0x480327(0x12d)]()!==_0x400706['blockId']||_0x400706[_0x480327(0x150)]&&!_0x4b3d06[_0x480327(0x12b)]()[_0x480327(0x115)](_0x400706[_0x480327(0x150)])));}[_0x4854d9(0x146)](_0xc5e4c8={}){var _0x52bff6=_0x4854d9,_0x45e736;let _0x129d70=this[_0x52bff6(0x110)]['get'](t[_0x52bff6(0x136)]),_0x3a2926=(_0x45e736=_0xc5e4c8['blockId'])==null?(0x0,t[_0x52bff6(0x118)])(0x6):_0x45e736;return _0x129d70['syncExecuteCommand'](e[_0x52bff6(0x149)]['id'],{..._0xc5e4c8,'blockId':_0x3a2926,'unitId':this[_0x52bff6(0x12d)]()})?this[_0x52bff6(0x107)](_0x3a2926):null;}[_0x4854d9(0x134)](_0x4eebc6){var _0x4ec728=_0x4854d9;return this[_0x4ec728(0x110)][_0x4ec728(0x117)](t[_0x4ec728(0x136)])[_0x4ec728(0x12c)](e[_0x4ec728(0x102)]['id'],{'cursorOffset':_0x4eebc6,'unitId':this[_0x4ec728(0x12d)]()});}['cancelEmptyCodeParagraph'](_0x26fdca={}){var _0x2f7776=_0x4854d9;return this[_0x2f7776(0x110)]['get'](t[_0x2f7776(0x136)])[_0x2f7776(0x12c)](e[_0x2f7776(0x13c)]['id'],{..._0x26fdca,'unitId':this[_0x2f7776(0x12d)]()});}['_getBlockRanges'](){var _0x4bd049=_0x4854d9,_0x16236f,_0x2bed49;return(_0x16236f=(_0x2bed49=this['save']()['body'])==null?void 0x0:_0x2bed49[_0x4bd049(0x139)])==null?[]:_0x16236f;}[_0x4854d9(0x107)](_0x4b5fa2){var _0xb0e4=_0x4854d9;return this[_0xb0e4(0x110)][_0xb0e4(0x105)](l,this,_0x4b5fa2);}};n[_0x4854d9(0x143)][_0x4854d9(0x123)](d),Object[_0x4854d9(0x128)](exports,_0x4854d9(0x132),{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x1e8f6=_0x3d0b;function _0x2521(){var _0x16d68a=['_getBlockRanges','function','extend','exitCode','decorate','paragraph','_createFDocumentCode','BLOCK_END','map','12vvCqKV','getId','blockRanges','84MzAreG','symbol','504050jwddjw','blockId','defineProperty','getOwnPropertyDescriptor','length','getCodeConfig','SECTION_BREAK','DocumentBlockRangeType','object','includes','join','getKey','_blockId','exit','ICommandService','_unitId','CODE','string','slice','DocsCodeExitCommand','DocsCodeCancelEmptyParagraphCommand','createInstance','getConfig','updateConfig','2QViJqt','PARAGRAPH','blockType','Module','getRange','_getDocumentData','from','DocsCodeInsertCommand','filter','getCode','toPrimitive','4405159MQvqsX','text','some','1707888MPLeIv','FDocument','prototype','_getBlockRange','save','call','endIndex','1274549czvXVe','get','getText','_injector','DataStreamTreeTokenType','5682332TNThSK','syncExecuteCommand','startIndex','BLOCK_START','cancelEmptyParagraph','519048SRuSBz','findCodeByText','generateRandomId','default','DocsCodeUpdateCommand','387672UpMXNX','getType','normalizeDocsCodeConfig','_document','cancelEmptyCodeParagraph','5VixRae','dataStream','body','27EzTrmN'];_0x2521=function(){return _0x16d68a;};return _0x2521();}(function(_0x2d8d03,_0x2e91de){var _0x5068e0=_0x3d0b,_0x512647=_0x2d8d03();while(!![]){try{var _0x537bdd=-parseInt(_0x5068e0(0x200))/0x1*(parseInt(_0x5068e0(0x23e))/0x2)+parseInt(_0x5068e0(0x20f))/0x3+parseInt(_0x5068e0(0x205))/0x4*(-parseInt(_0x5068e0(0x214))/0x5)+parseInt(_0x5068e0(0x221))/0x6*(parseInt(_0x5068e0(0x1f9))/0x7)+-parseInt(_0x5068e0(0x20a))/0x8+parseInt(_0x5068e0(0x217))/0x9*(parseInt(_0x5068e0(0x226))/0xa)+-parseInt(_0x5068e0(0x1f6))/0xb*(-parseInt(_0x5068e0(0x224))/0xc);if(_0x537bdd===_0x2e91de)break;else _0x512647['push'](_0x512647['shift']());}catch(_0x34f18){_0x512647['push'](_0x512647['shift']());}}}(_0x2521,0xc629d),Object[_0x1e8f6(0x228)](exports,Symbol['toStringTag'],{'value':_0x1e8f6(0x241)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x173f8c){'@babel/helpers - typeof';var _0x1b569e=_0x1e8f6;return r=typeof Symbol==_0x1b569e(0x219)&&typeof Symbol['iterator']==_0x1b569e(0x225)?function(_0x5e17e4){return typeof _0x5e17e4;}:function(_0x272866){var _0xd3ce86=_0x1b569e;return _0x272866&&typeof Symbol==_0xd3ce86(0x219)&&_0x272866['constructor']===Symbol&&_0x272866!==Symbol[_0xd3ce86(0x1fb)]?_0xd3ce86(0x225):typeof _0x272866;},r(_0x173f8c);}function i(_0x3a74a8,_0x1183b9){var _0x3c5754=_0x1e8f6;if(r(_0x3a74a8)!=_0x3c5754(0x22e)||!_0x3a74a8)return _0x3a74a8;var _0x48146f=_0x3a74a8[Symbol[_0x3c5754(0x1f5)]];if(_0x48146f!==void 0x0){var _0x18a577=_0x48146f[_0x3c5754(0x1fe)](_0x3a74a8,_0x1183b9||_0x3c5754(0x20d));if(r(_0x18a577)!=_0x3c5754(0x22e))return _0x18a577;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1183b9===_0x3c5754(0x237)?String:Number)(_0x3a74a8);}function a(_0x5827d9){var _0x20655e=_0x1e8f6,_0xacac79=i(_0x5827d9,_0x20655e(0x237));return r(_0xacac79)==_0x20655e(0x225)?_0xacac79:_0xacac79+'';}function o(_0x9a31bd,_0x5b7da8,_0xa6cd3c){var _0x4fe17e=_0x1e8f6;return(_0x5b7da8=a(_0x5b7da8))in _0x9a31bd?Object[_0x4fe17e(0x228)](_0x9a31bd,_0x5b7da8,{'value':_0xa6cd3c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x9a31bd[_0x5b7da8]=_0xa6cd3c,_0x9a31bd;}function s(_0x3d8bf9,_0x52b4b4){return function(_0x1ccfae,_0x22ecd2){_0x52b4b4(_0x1ccfae,_0x22ecd2,_0x3d8bf9);};}function c(_0x52fbdd,_0x3f4c61,_0x1807d0,_0x5e71a7){var _0x1f36f2=_0x1e8f6,_0x4fbe30=arguments[_0x1f36f2(0x22a)],_0xa6a075=_0x4fbe30<0x3?_0x3f4c61:_0x5e71a7===null?_0x5e71a7=Object[_0x1f36f2(0x229)](_0x3f4c61,_0x1807d0):_0x5e71a7,_0x7644d6;if(typeof Reflect==_0x1f36f2(0x22e)&&typeof Reflect[_0x1f36f2(0x21c)]==_0x1f36f2(0x219))_0xa6a075=Reflect[_0x1f36f2(0x21c)](_0x52fbdd,_0x3f4c61,_0x1807d0,_0x5e71a7);else{for(var _0x5c4892=_0x52fbdd[_0x1f36f2(0x22a)]-0x1;_0x5c4892>=0x0;_0x5c4892--)(_0x7644d6=_0x52fbdd[_0x5c4892])&&(_0xa6a075=(_0x4fbe30<0x3?_0x7644d6(_0xa6a075):_0x4fbe30>0x3?_0x7644d6(_0x3f4c61,_0x1807d0,_0xa6a075):_0x7644d6(_0x3f4c61,_0x1807d0))||_0xa6a075);}return _0x4fbe30>0x3&&_0xa6a075&&Object[_0x1f36f2(0x228)](_0x3f4c61,_0x1807d0,_0xa6a075),_0xa6a075;}function _0x3d0b(_0x2e5428,_0x14dc81){_0x2e5428=_0x2e5428-0x1f0;var _0x2521b6=_0x2521();var _0x3d0b64=_0x2521b6[_0x2e5428];return _0x3d0b64;}let l=class{constructor(_0x361e76,_0x57b332,_0x284475){var _0x40b253=_0x1e8f6;this[_0x40b253(0x212)]=_0x361e76,this[_0x40b253(0x232)]=_0x57b332,this[_0x40b253(0x203)]=_0x284475,o(this,_0x40b253(0x235),void 0x0),this['_unitId']=this[_0x40b253(0x212)][_0x40b253(0x222)]();}[_0x1e8f6(0x222)](){var _0x5b7ee5=_0x1e8f6;return this[_0x5b7ee5(0x232)];}[_0x1e8f6(0x242)](){var _0x357bc8=_0x1e8f6;let _0x220d78=this[_0x357bc8(0x1fc)]();return _0x220d78?{'blockId':_0x220d78[_0x357bc8(0x227)],'endIndex':_0x220d78[_0x357bc8(0x1ff)],'startIndex':_0x220d78['startIndex']}:null;}[_0x1e8f6(0x202)](){var _0x290b5d=_0x1e8f6,_0x38b259;let _0x50a7e9=this[_0x290b5d(0x1fc)](),_0x409c25=(_0x38b259=this['_getDocumentData']()['body'])==null?void 0x0:_0x38b259[_0x290b5d(0x215)];return!_0x50a7e9||!_0x409c25?'':u(_0x409c25[_0x290b5d(0x238)](_0x50a7e9[_0x290b5d(0x207)]+0x1,_0x50a7e9[_0x290b5d(0x1ff)]));}['describe'](){var _0x44e29a=_0x1e8f6;let _0x14f6c8=this['getRange']();return _0x14f6c8?{..._0x14f6c8,'config':this[_0x44e29a(0x23c)](),'text':this[_0x44e29a(0x202)](),'type':t[_0x44e29a(0x22d)][_0x44e29a(0x236)]}:null;}[_0x1e8f6(0x23c)](){var _0x153640=_0x1e8f6;return(0x0,e[_0x153640(0x211)])(this[_0x153640(0x203)][_0x153640(0x201)](e['DocsCodeModel'])[_0x153640(0x22b)](this['_unitId'],this['_blockId']));}[_0x1e8f6(0x23d)](_0x48d411){var _0x8cbfba=_0x1e8f6;return this[_0x8cbfba(0x203)]['get'](t[_0x8cbfba(0x234)])[_0x8cbfba(0x206)](e[_0x8cbfba(0x20e)]['id'],{'blockId':this[_0x8cbfba(0x232)],'config':_0x48d411['config'],'unitId':this[_0x8cbfba(0x235)]});}[_0x1e8f6(0x233)](_0xa496fc){var _0x55acb7=_0x1e8f6;return this[_0x55acb7(0x203)][_0x55acb7(0x201)](t[_0x55acb7(0x234)])['syncExecuteCommand'](e[_0x55acb7(0x239)]['id'],{'cursorOffset':_0xa496fc,'unitId':this[_0x55acb7(0x235)]});}[_0x1e8f6(0x209)](_0x25b84d={}){var _0x59f8e1=_0x1e8f6;return this['_injector'][_0x59f8e1(0x201)](t['ICommandService'])[_0x59f8e1(0x206)](e[_0x59f8e1(0x23a)]['id'],{..._0x25b84d,'unitId':this[_0x59f8e1(0x235)]});}[_0x1e8f6(0x1f0)](){var _0x560b35=_0x1e8f6;return this[_0x560b35(0x212)][_0x560b35(0x1fd)]();}[_0x1e8f6(0x1fc)](){var _0x47c81f=_0x1e8f6,_0x40f8aa;let _0x58725f=(_0x40f8aa=this['_getDocumentData']()[_0x47c81f(0x216)])==null||(_0x40f8aa=_0x40f8aa[_0x47c81f(0x223)])==null?void 0x0:_0x40f8aa['find'](_0x314666=>_0x314666[_0x47c81f(0x227)]===this['_blockId']&&_0x314666[_0x47c81f(0x240)]===t[_0x47c81f(0x22d)]['CODE']);return _0x58725f==null?null:_0x58725f;}};l=c([s(0x2,(0x0,t['Inject'])(t['Injector']))],l);function u(_0x3de832){var _0x1c45b9=_0x1e8f6;return Array[_0x1c45b9(0x1f1)](_0x3de832)[_0x1c45b9(0x220)](_0xc7635b=>_0xc7635b===t['DataStreamTreeTokenType'][_0x1c45b9(0x23f)]?'\x0a':_0xc7635b)[_0x1c45b9(0x1f3)](_0x227d0c=>_0x227d0c!==t['DataStreamTreeTokenType'][_0x1c45b9(0x208)]&&_0x227d0c!==t['DataStreamTreeTokenType'][_0x1c45b9(0x21f)]&&_0x227d0c!==t[_0x1c45b9(0x204)][_0x1c45b9(0x22c)])[_0x1c45b9(0x230)]('')['replace'](/\n$/,'');}var d=class extends n[_0x1e8f6(0x1fa)]{['getCodes'](){var _0x42400d=_0x1e8f6;return this[_0x42400d(0x218)]()[_0x42400d(0x1f3)](_0x513dea=>_0x513dea[_0x42400d(0x240)]===t[_0x42400d(0x22d)]['CODE'])[_0x42400d(0x220)](_0x2d1b67=>this[_0x42400d(0x21e)](_0x2d1b67[_0x42400d(0x227)]));}[_0x1e8f6(0x1f4)](_0x133ff5){var _0x162507=_0x1e8f6;return this[_0x162507(0x218)]()[_0x162507(0x1f8)](_0x39908e=>_0x39908e['blockId']===_0x133ff5&&_0x39908e[_0x162507(0x240)]===t[_0x162507(0x22d)][_0x162507(0x236)])?this[_0x162507(0x21e)](_0x133ff5):null;}['getCodeAt'](_0x2c6561){var _0x317901=_0x1e8f6;let _0x455918=this[_0x317901(0x218)]()['find'](_0x115f32=>_0x115f32['blockType']===t['DocumentBlockRangeType']['CODE']&&_0x115f32[_0x317901(0x207)]<=_0x2c6561&&_0x2c6561<=_0x115f32['endIndex']);return _0x455918?this[_0x317901(0x21e)](_0x455918['blockId']):null;}[_0x1e8f6(0x20b)](_0xd1d33e){var _0x8e5ceb;return(_0x8e5ceb=this['findCodes'](_0xd1d33e)[0x0])==null?null:_0x8e5ceb;}['findCodes'](_0x4a13fe){var _0x46690e=_0x1e8f6;let _0x518e06=typeof _0x4a13fe==_0x46690e(0x237)?{'text':_0x4a13fe}:_0x4a13fe;return this['getCodes']()[_0x46690e(0x1f3)](_0x45fdf2=>!(_0x518e06['blockId']&&_0x45fdf2[_0x46690e(0x222)]()!==_0x518e06[_0x46690e(0x227)]||_0x518e06['text']&&!_0x45fdf2['getText']()[_0x46690e(0x22f)](_0x518e06[_0x46690e(0x1f7)])));}['insertCode'](_0x173be={},_0x11265c={}){var _0x30209a=_0x1e8f6,_0x14789a;let _0x3562f9=this[_0x30209a(0x203)]['get'](t[_0x30209a(0x234)]),_0x3db111=f(_0x173be)?{..._0x11265c,...p(_0x173be)}:_0x173be,_0x2ed701=(_0x14789a=_0x3db111[_0x30209a(0x227)])==null?(0x0,t[_0x30209a(0x20c)])(0x6):_0x14789a;return _0x3562f9['syncExecuteCommand'](e[_0x30209a(0x1f2)]['id'],{..._0x3db111,'blockId':_0x2ed701,'unitId':this[_0x30209a(0x222)]()})?this[_0x30209a(0x21e)](_0x2ed701):null;}[_0x1e8f6(0x21b)](_0x3a5abe){var _0x4a38c0=_0x1e8f6;return this['_injector'][_0x4a38c0(0x201)](t['ICommandService'])[_0x4a38c0(0x206)](e[_0x4a38c0(0x239)]['id'],{'cursorOffset':_0x3a5abe,'unitId':this['getId']()});}[_0x1e8f6(0x213)](_0x134b15={}){var _0x5be94f=_0x1e8f6;return this[_0x5be94f(0x203)]['get'](t[_0x5be94f(0x234)])[_0x5be94f(0x206)](e[_0x5be94f(0x23a)]['id'],{..._0x134b15,'unitId':this[_0x5be94f(0x222)]()});}[_0x1e8f6(0x218)](){var _0x39f197=_0x1e8f6,_0x4cb148,_0x56c4f4;return(_0x4cb148=(_0x56c4f4=this[_0x39f197(0x1fd)]()[_0x39f197(0x216)])==null?void 0x0:_0x56c4f4[_0x39f197(0x223)])==null?[]:_0x4cb148;}[_0x1e8f6(0x21e)](_0x380827){var _0x5904bf=_0x1e8f6;return this[_0x5904bf(0x203)][_0x5904bf(0x23b)](l,this,_0x380827);}};function f(_0x352e84){var _0x3c4761=_0x1e8f6;return typeof _0x352e84==_0x3c4761(0x22e)&&!!_0x352e84&&typeof _0x352e84[_0x3c4761(0x231)]==_0x3c4761(0x219)&&typeof _0x352e84[_0x3c4761(0x242)]==_0x3c4761(0x219)&&typeof _0x352e84[_0x3c4761(0x210)]==_0x3c4761(0x219)&&_0x352e84[_0x3c4761(0x210)]()===_0x3c4761(0x21d);}function p(_0x5759be){var _0x55342b=_0x1e8f6;return _0x5759be[_0x55342b(0x242)]();}n['FDocument'][_0x1e8f6(0x21a)](d),Object[_0x1e8f6(0x228)](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x11780b=_0x4eb0;(function(_0x2f7b00,_0x233392){const _0x5ecffd=_0x4eb0,_0x18509f=_0x2f7b00();while(!![]){try{const _0x100712=-parseInt(_0x5ecffd(0xb1))/0x1+parseInt(_0x5ecffd(0x116))/0x2+-parseInt(_0x5ecffd(0xf4))/0x3*(parseInt(_0x5ecffd(0x8b))/0x4)+-parseInt(_0x5ecffd(0xb8))/0x5+-parseInt(_0x5ecffd(0xa4))/0x6+-parseInt(_0x5ecffd(0xbe))/0x7+parseInt(_0x5ecffd(0x9b))/0x8;if(_0x100712===_0x233392)break;else _0x18509f['push'](_0x18509f['shift']());}catch(_0x2619d8){_0x18509f['push'](_0x18509f['shift']());}}}(_0x100f,0x589d9),Object[_0x11780b(0xeb)](exports,Symbol[_0x11780b(0xbf)],{'value':_0x11780b(0xd4)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x11780b(0x91),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x33d800){return{...i,..._0x33d800};}function o(_0x25eadf){const _0x19983f=_0x11780b;var _0x5cbf67;let _0x3f31df=(_0x5cbf67=_0x25eadf==null?void 0x0:_0x25eadf[_0x19983f(0xee)])==null?{}:_0x5cbf67;return{'codes':Object[_0x19983f(0x108)](Object[_0x19983f(0xe0)](_0x3f31df)[_0x19983f(0xcc)](([_0x25c378,_0xa89def])=>[_0x25c378,a(_0xa89def)]))};}function s(_0x503e0d,_0xa400b8,_0x15e494){const _0x224ce8=_0x11780b;let _0x1a163f=o(_0x503e0d);return _0x1a163f[_0x224ce8(0xee)][_0xa400b8]=a({..._0x1a163f[_0x224ce8(0xee)][_0xa400b8],..._0x15e494}),_0x1a163f;}function c(_0x2c26b5,_0x148ce6){let _0x31db29=o(_0x2c26b5);return delete _0x31db29['codes'][_0x148ce6],_0x31db29;}const l='monospace';function u(_0x4357a8){const _0x3f1a14=_0x11780b;var _0x74fa7e,_0x23b33e,_0xa91255;let _0x124566=C(_0x4357a8[_0x3f1a14(0xa6)]),_0x59ef62=w(_0x124566),_0x412459=f(_0x4357a8['startOffset'],_0x4357a8[_0x3f1a14(0xcd)]),_0x11bef6=_0x412459?(_0x74fa7e=_0x59ef62[_0x3f1a14(0xb9)])==null?void 0x0:_0x74fa7e[_0x3f1a14(0x125)](_0x12f2ec=>_0x12f2ec['startIndex']===_0x412459[_0x3f1a14(0xe2)]&&_0x12f2ec[_0x3f1a14(0xf5)]+0x1===_0x412459[_0x3f1a14(0xcd)]):void 0x0,{startOffset:_0x428a1c,endOffset:_0x27c35b}=_0x11bef6?_0x412459:ne(_0x59ef62,_0x4357a8[_0x3f1a14(0xe2)],_0x4357a8[_0x3f1a14(0xcd)]),_0x210fd2=ie(_0x59ef62,_0x428a1c,_0x27c35b),_0x2366ad=(_0x23b33e=_0x11bef6==null?void 0x0:_0x11bef6[_0x3f1a14(0xa3)])==null?_0x4357a8['blockId']:_0x23b33e,_0x3c4bee=s(_0x4357a8['metadata'],_0x2366ad,{...i,..._0x4357a8[_0x3f1a14(0xb5)]});if(_0x11bef6)return _0x11bef6['blockType']=e[_0x3f1a14(0xc9)][_0x3f1a14(0x111)],d(_0x59ef62,_0x428a1c,_0x27c35b),x(_0x59ef62,_0x428a1c,_0x27c35b,_0x210fd2),{'nextDocumentData':_0x124566,'nextMetadata':_0x3c4bee,'cursorOffset':_0x428a1c+0x1};if(_0x428a1c===_0x27c35b){let _0x3d1f34=''+e['DataStreamTreeTokenType'][_0x3f1a14(0x96)]+e[_0x3f1a14(0xb7)][_0x3f1a14(0xd3)]+e['DataStreamTreeTokenType'][_0x3f1a14(0xc5)];return O(_0x59ef62,_0x428a1c,_0x3d1f34,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':b(!0x0,!0x0,_0x210fd2)}],'blockRanges':[{'blockId':_0x2366ad,'blockType':e[_0x3f1a14(0xc9)][_0x3f1a14(0x111)],'startIndex':0x0,'endIndex':_0x3d1f34[_0x3f1a14(0xc1)]-0x1}]}),{'nextDocumentData':_0x124566,'nextMetadata':_0x3c4bee,'cursorOffset':_0x428a1c+0x1};}return O(_0x59ef62,_0x27c35b,e[_0x3f1a14(0xb7)][_0x3f1a14(0xc5)]),O(_0x59ef62,_0x428a1c,e[_0x3f1a14(0xb7)]['BLOCK_START']),x(_0x59ef62,_0x428a1c,_0x27c35b+0x1,_0x210fd2),_0x59ef62[_0x3f1a14(0xb9)]=[...(_0xa91255=_0x59ef62['blockRanges'])==null?[]:_0xa91255,{'blockId':_0x2366ad,'blockType':e[_0x3f1a14(0xc9)][_0x3f1a14(0x111)],'startIndex':_0x428a1c,'endIndex':_0x27c35b+0x1}][_0x3f1a14(0x9c)]((_0x2c55cd,_0x350c15)=>_0x2c55cd[_0x3f1a14(0x8a)]-_0x350c15[_0x3f1a14(0x8a)]),{'nextDocumentData':_0x124566,'nextMetadata':_0x3c4bee,'cursorOffset':_0x428a1c+0x1};}function d(_0x1f9e4a,_0x24a5cd,_0x570f64){const _0x558ffb=_0x11780b;var _0x14f87c;((_0x14f87c=_0x1f9e4a[_0x558ffb(0x8f)])==null?[]:_0x14f87c)['filter'](_0x10345b=>_0x10345b[_0x558ffb(0x8a)]>_0x24a5cd&&_0x10345b[_0x558ffb(0x8a)]<_0x570f64)[_0x558ffb(0xa1)](_0x189dd5=>{const _0x447d73=_0x558ffb;var _0x308f56;let _0x3620c3={...(_0x308f56=_0x189dd5[_0x447d73(0xef)])==null?{}:_0x308f56};delete _0x3620c3['spaceAbove'],delete _0x3620c3[_0x447d73(0x101)],_0x189dd5[_0x447d73(0xef)]=_0x3620c3;});}function f(_0x12d1ee,_0x3c759e){const _0x60e239=_0x11780b;return _0x12d1ee==null||_0x3c759e==null||_0x12d1ee===_0x3c759e?null:{'startOffset':Math['min'](_0x12d1ee,_0x3c759e),'endOffset':Math[_0x60e239(0x105)](_0x12d1ee,_0x3c759e)};}function p(_0xaffdcb){const _0x442d3b=_0x11780b;return{'nextDocumentData':C(_0xaffdcb[_0x442d3b(0xa6)]),'nextMetadata':s(_0xaffdcb[_0x442d3b(0x10c)],_0xaffdcb[_0x442d3b(0xa3)],_0xaffdcb[_0x442d3b(0xb5)]),'cursorOffset':0x0};}function m(_0xc5e0db){const _0xdbf7ad=_0x11780b;var _0x1c69e1,_0x5cbc76;let _0x50bc75=C(_0xc5e0db['documentData']),_0x549982=w(_0x50bc75),_0x1486e0=y(_0x549982,_0xc5e0db[_0xdbf7ad(0xe8)]);if(!_0x1486e0)return null;let _0x10a9a9=S(_0x549982,_0x1486e0),_0x44764e=_0x10a9a9[_0x10a9a9[_0xdbf7ad(0xc1)]-0x1];if(!_0x44764e||!te(_0x549982,_0x1486e0,_0x44764e)||_0xc5e0db[_0xdbf7ad(0xe8)]<_0x44764e[_0xdbf7ad(0x8a)])return null;let _0x180e83=E(_0x549982,_0x1486e0,_0x44764e);if(_0x180e83>=_0x1486e0[_0xdbf7ad(0xf5)])return null;_0x549982['dataStream']=[_0x549982[_0xdbf7ad(0xdb)][_0xdbf7ad(0x93)](0x0,_0x180e83),e[_0xdbf7ad(0xb7)][_0xdbf7ad(0xc5)],_0x549982[_0xdbf7ad(0xdb)]['slice'](_0x180e83,_0x1486e0[_0xdbf7ad(0xf5)]),_0x549982['dataStream'][_0xdbf7ad(0x93)](_0x1486e0[_0xdbf7ad(0xf5)]+0x1)][_0xdbf7ad(0x126)](''),N(_0x549982[_0xdbf7ad(0x8f)],_0x180e83,_0x1486e0['endIndex'],0x1),N(_0x549982[_0xdbf7ad(0x123)],_0x180e83,_0x1486e0['endIndex'],0x1),N(_0x549982[_0xdbf7ad(0x81)],_0x180e83,_0x1486e0['endIndex'],0x1),de(_0x549982['textRuns'],_0x180e83,_0x1486e0[_0xdbf7ad(0xf5)],0x1),P(_0x549982[_0xdbf7ad(0xaf)],_0x180e83,_0x1486e0[_0xdbf7ad(0xf5)],0x1),P(_0x549982['customRanges'],_0x180e83,_0x1486e0['endIndex'],0x1),P(_0x549982[_0xdbf7ad(0xbd)],_0x180e83,_0x1486e0['endIndex'],0x1),(_0x1c69e1=_0x549982[_0xdbf7ad(0xb9)])==null||_0x1c69e1[_0xdbf7ad(0xa1)](_0x3abdb0=>{const _0x108e9c=_0xdbf7ad;_0x3abdb0===_0x1486e0||_0x3abdb0[_0x108e9c(0xa3)]===_0x1486e0[_0x108e9c(0xa3)]?_0x3abdb0[_0x108e9c(0xf5)]=_0x180e83:_0x3abdb0[_0x108e9c(0x8a)]>=_0x180e83&&_0x3abdb0[_0x108e9c(0x8a)]<_0x1486e0[_0x108e9c(0xf5)]&&(_0x3abdb0[_0x108e9c(0x8a)]+=0x1,_0x3abdb0[_0x108e9c(0xf5)]+=0x1);});let _0xab5705=S(_0x549982,{..._0x1486e0,'endIndex':_0x180e83});_0xab5705['forEach']((_0x19594c,_0x425a99)=>{const _0x125ecf=_0xdbf7ad;var _0x165562;_0x19594c['paragraphStyle']={...(_0x165562=_0x19594c['paragraphStyle'])==null?{}:_0x165562,...b(_0x425a99===0x0,_0x425a99===_0xab5705[_0x125ecf(0xc1)]-0x1)};});let _0x1a942a=(_0x5cbc76=_0x549982[_0xdbf7ad(0x8f)])==null?void 0x0:_0x5cbc76['find'](_0x287511=>_0x287511[_0xdbf7ad(0x8a)]===_0x180e83+0x1);return _0x1a942a&&(_0x1a942a['paragraphStyle']=ee(_0x1a942a[_0xdbf7ad(0xef)])),{'nextDocumentData':_0x50bc75,'cursorOffset':_0x180e83+0x1};}function h(_0x32befb){const _0x21711d=_0x11780b;let _0x1b2b99=C(_0x32befb['documentData']),_0x52ae09=w(_0x1b2b99),_0x2c857b=y(_0x52ae09,_0x32befb[_0x21711d(0xe8)]);return _0x2c857b&&g(_0x1b2b99,_0x52ae09,_0x2c857b,_0x32befb[_0x21711d(0xe8)],_0x32befb['paragraphStartIndex'])||null;}function g(_0x5630e0,_0xbdfe72,_0x25b767,_0x159564,_0x5c39d6){const _0x474bf8=_0x11780b;let _0x45b03d=oe(_0xbdfe72,_0x25b767,_0x159564,_0x5c39d6);if(!_0x45b03d)return null;let _0x435e4f=_0x45b03d['endTokenOffset']-0x1;return se(_0xbdfe72,_0x45b03d[_0x474bf8(0x118)][_0x474bf8(0x8a)],_0x45b03d[_0x474bf8(0x118)][_0x474bf8(0x8a)]+0x1),{'nextDocumentData':_0x5630e0,'cursorOffset':_0x435e4f};}function _(_0x504845,_0x50f0ad){const _0x5a6dab=_0x11780b;var _0x5ba1a3;return _0x504845==null||(_0x5ba1a3=_0x504845[_0x5a6dab(0xb9)])==null?void 0x0:_0x5ba1a3['find'](_0x5e3121=>_0x5e3121[_0x5a6dab(0x100)]===e[_0x5a6dab(0xc9)][_0x5a6dab(0x111)]&&_0x5e3121[_0x5a6dab(0x8a)]<=_0x50f0ad&&_0x50f0ad<=_0x5e3121[_0x5a6dab(0xf5)]);}function v(_0x514021){const _0x330611=_0x11780b;var _0x59bc75;let _0x5eb5fe=_0x514021['documentData'][_0x330611(0x9d)];if(!_0x5eb5fe)return!0x1;let _0x185aa1=_0x514021[_0x330611(0xfd)]===_0x330611(0xbb)?_0x514021[_0x330611(0xe8)]-0x1:_0x514021['cursorOffset'],_0x4bbaca=_0x514021[_0x330611(0xfd)]===_0x330611(0xf3)?_0x514021['cursorOffset']+0x1:_0x185aa1;return((_0x59bc75=_0x5eb5fe['blockRanges'])==null?[]:_0x59bc75)[_0x330611(0x8c)](_0x38c827=>_0x38c827['blockType']===e['DocumentBlockRangeType']['CODE']?_0x185aa1===_0x38c827[_0x330611(0x8a)]||_0x185aa1===_0x38c827[_0x330611(0xf5)]||_0x4bbaca===_0x38c827['startIndex']||_0x4bbaca===_0x38c827['endIndex']:!0x1);}function y(_0x4b47ba,_0x1ad859){const _0x5869cc=_0x11780b;var _0x1e3e2a;return(_0x1e3e2a=_0x4b47ba[_0x5869cc(0xb9)])==null?void 0x0:_0x1e3e2a[_0x5869cc(0x125)](_0x4833ba=>{const _0x3dda8e=_0x5869cc;let _0x5220e5=D(_0x4b47ba,_0x4833ba);return _0x4833ba[_0x3dda8e(0x100)]===e[_0x3dda8e(0xc9)][_0x3dda8e(0x111)]&&_0x4833ba[_0x3dda8e(0x8a)]<=_0x1ad859&&_0x1ad859<=_0x5220e5+0x2;});}function b(_0x35fd49,_0x1f2fbc,_0x31be77=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x35fd49&&_0x31be77?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x1277d5,_0x5d50b1,_0x51c76f,_0x578885=!0x1){const _0x55dc32=_0x11780b;var _0x5cb390;let _0xe9177e=((_0x5cb390=_0x1277d5[_0x55dc32(0x8f)])==null?[]:_0x5cb390)[_0x55dc32(0x103)](_0x1ed71e=>_0x1ed71e[_0x55dc32(0x8a)]>_0x5d50b1&&_0x1ed71e[_0x55dc32(0x8a)]<_0x51c76f);_0xe9177e[_0x55dc32(0xa1)]((_0x3bfb29,_0x52128f)=>{const _0x511c1a=_0x55dc32;var _0x453028;_0x3bfb29[_0x511c1a(0xef)]={...(_0x453028=_0x3bfb29[_0x511c1a(0xef)])==null?{}:_0x453028,...b(_0x52128f===0x0,_0x52128f===_0xe9177e[_0x511c1a(0xc1)]-0x1,_0x578885)};});}function ee(_0x1d27ad){const _0x56b995=_0x11780b;var _0x1c8dbe,_0x2b1e7c;let _0x3b5c3f={..._0x1d27ad==null?{}:_0x1d27ad};return delete _0x3b5c3f[_0x56b995(0x124)],delete _0x3b5c3f[_0x56b995(0xe3)],delete _0x3b5c3f[_0x56b995(0xca)],delete _0x3b5c3f[_0x56b995(0x101)],((_0x1c8dbe=_0x3b5c3f[_0x56b995(0x95)])==null?void 0x0:_0x1c8dbe['ff'])===l&&((_0x2b1e7c=_0x3b5c3f[_0x56b995(0x95)])==null?void 0x0:_0x2b1e7c['fs'])===0xc&&delete _0x3b5c3f[_0x56b995(0x95)],_0x3b5c3f;}function S(_0x2561d3,_0x10f3b8){const _0x506bc2=_0x11780b;var _0xf5cb88;let _0x28160b=D(_0x2561d3,_0x10f3b8);return((_0xf5cb88=_0x2561d3[_0x506bc2(0x8f)])==null?[]:_0xf5cb88)['filter'](_0x4dc0b2=>_0x4dc0b2[_0x506bc2(0x8a)]>_0x10f3b8['startIndex']&&_0x4dc0b2['startIndex']<_0x28160b);}function te(_0x5befa6,_0x4e2d49,_0x3b613b){const _0x20a6bc=_0x11780b;let _0x3b3500=E(_0x5befa6,_0x4e2d49,_0x3b613b),_0x234c42=_0x5befa6[_0x20a6bc(0xdb)][_0x20a6bc(0x93)](_0x3b3500,_0x3b613b[_0x20a6bc(0x8a)]);return Array[_0x20a6bc(0x113)](_0x234c42)[_0x20a6bc(0xb0)](_0x25a49a=>_0x25a49a===e[_0x20a6bc(0xb7)]['BLOCK_START']||_0x25a49a===e[_0x20a6bc(0xb7)][_0x20a6bc(0xc5)]);}function C(_0x384c01){const _0x4ea4ef=_0x11780b;return e[_0x4ea4ef(0x8e)]['deepClone'](_0x384c01);}function _0x4eb0(_0x181e3f,_0x324761){_0x181e3f=_0x181e3f-0x80;const _0x100f56=_0x100f();let _0x4eb0ee=_0x100f56[_0x181e3f];return _0x4eb0ee;}function w(_0xf7203d){const _0x24f6fa=_0x11780b;if(!_0xf7203d['body'])throw Error(_0x24f6fa(0xf7));return _0xf7203d[_0x24f6fa(0x9d)];}function ne(_0x4b8d68,_0x2a215d,_0x32dca0){const _0x65f34b=_0x11780b;if(_0x2a215d==null||_0x32dca0==null){let _0x588132=re(_0x4b8d68);return{'startOffset':_0x588132,'endOffset':_0x588132};}let _0x29771b=Math[_0x65f34b(0xdf)](_0x2a215d,_0x32dca0),_0xd77d7=Math[_0x65f34b(0x105)](_0x2a215d,_0x32dca0);return _0x29771b===_0xd77d7?{'startOffset':_0x29771b,'endOffset':_0x29771b}:ae(_0x4b8d68,_0x29771b,_0xd77d7);}function re(_0x1f7b89){const _0x5d81b7=_0x11780b;return _0x1f7b89[_0x5d81b7(0xdb)][_0x5d81b7(0x120)](e[_0x5d81b7(0xb7)][_0x5d81b7(0x112)])?Math[_0x5d81b7(0x105)](0x0,_0x1f7b89[_0x5d81b7(0xdb)][_0x5d81b7(0xc1)]-0x1):_0x1f7b89[_0x5d81b7(0xdb)][_0x5d81b7(0xc1)];}function ie(_0x5dbf82,_0x3e0b89,_0x38d58c){const _0x35a730=_0x11780b;var _0x22fe72;let _0x4b22ea=Math[_0x35a730(0xdf)](_0x3e0b89,_0x38d58c),_0x1312f6=Math[_0x35a730(0x105)](_0x3e0b89,_0x38d58c);return!!((_0x22fe72=_0x5dbf82[_0x35a730(0xaf)])!=null&&_0x22fe72[_0x35a730(0x8c)](_0x3bf26b=>_0x4b22ea>_0x3bf26b[_0x35a730(0x8a)]&&_0x4b22ea<_0x3bf26b['endIndex']||_0x1312f6>_0x3bf26b['startIndex']&&_0x1312f6<_0x3bf26b['endIndex']||_0x4b22ea<=_0x3bf26b[_0x35a730(0x8a)]&&_0x1312f6>=_0x3bf26b['endIndex']));}function ae(_0x52b86a,_0x5420cf,_0x142f01){const _0x10edd4=_0x11780b;var _0xd43d40,_0x53c541;let _0x1c27d4=[...(_0xd43d40=_0x52b86a[_0x10edd4(0x8f)])==null?[]:_0xd43d40][_0x10edd4(0x9c)]((_0x106f6c,_0x1604e5)=>_0x106f6c[_0x10edd4(0x8a)]-_0x1604e5[_0x10edd4(0x8a)]),_0x183c40=_0x1c27d4[_0x10edd4(0x125)]((_0x21d922,_0x18660e)=>(_0x18660e===0x0?0x0:_0x1c27d4[_0x18660e-0x1][_0x10edd4(0x8a)]+0x1)<=_0x5420cf&&_0x5420cf<=_0x21d922[_0x10edd4(0x8a)]),_0x4e01d1=(_0x53c541=_0x1c27d4[_0x10edd4(0x125)](_0x249c16=>_0x249c16[_0x10edd4(0x8a)]>=_0x142f01-0x1))==null?_0x1c27d4[_0x1c27d4[_0x10edd4(0xc1)]-0x1]:_0x53c541;return{'startOffset':_0x183c40?T(_0x1c27d4,_0x183c40):_0x5420cf,'endOffset':_0x4e01d1?_0x4e01d1['startIndex']+0x1:_0x142f01};}function T(_0x34919c,_0x11178f){const _0x37fd2c=_0x11780b;let _0x552b9d=_0x34919c['indexOf'](_0x11178f);return _0x552b9d>0x0?_0x34919c[_0x552b9d-0x1][_0x37fd2c(0x8a)]+0x1:0x0;}function E(_0xa54690,_0x1bad75,_0x4c4eff){const _0x575bfd=_0x11780b;var _0x437cc1;return Math[_0x575bfd(0x105)](T((_0x437cc1=_0xa54690[_0x575bfd(0x8f)])==null?[]:_0x437cc1,_0x4c4eff),_0x1bad75[_0x575bfd(0x8a)]+0x1);}function D(_0x320f7e,_0x3ead88){const _0x15e6dc=_0x11780b;return _0x320f7e[_0x15e6dc(0xdb)][_0x3ead88[_0x15e6dc(0xf5)]]===e[_0x15e6dc(0xb7)][_0x15e6dc(0xc5)]?_0x3ead88[_0x15e6dc(0xf5)]:_0x320f7e[_0x15e6dc(0xdb)][_0x3ead88[_0x15e6dc(0xf5)]+0x1]===e['DataStreamTreeTokenType']['BLOCK_END']?_0x3ead88['endIndex']+0x1:_0x3ead88['endIndex'];}function oe(_0x1a07c2,_0x53fcb7,_0x1dcb1e,_0x5b930f){const _0x42ac53=_0x11780b;var _0x3afcd7,_0x1954c7;let _0x43b7b4=D(_0x1a07c2,_0x53fcb7),_0x5293f4=((_0x3afcd7=_0x1a07c2['paragraphs'])==null?[]:_0x3afcd7)[_0x42ac53(0x125)](_0x40c151=>_0x40c151['startIndex']===_0x43b7b4+0x1);if(!_0x5293f4||_0x5b930f!=null&&_0x5293f4['startIndex']!==_0x5b930f||_0x1dcb1e<_0x43b7b4||_0x1dcb1e>_0x5293f4['startIndex']+0x1||_0x1a07c2[_0x42ac53(0xdb)][_0x5293f4[_0x42ac53(0x8a)]]!==e[_0x42ac53(0xb7)][_0x42ac53(0xd3)])return null;let _0x2d734f=T((_0x1954c7=_0x1a07c2[_0x42ac53(0x8f)])==null?[]:_0x1954c7,_0x5293f4),_0x3c2d4d=_0x1a07c2[_0x42ac53(0xdb)][_0x42ac53(0x93)](_0x2d734f,_0x5293f4[_0x42ac53(0x8a)]);return Array[_0x42ac53(0x113)](_0x3c2d4d)['every'](_0x416286=>_0x416286===e[_0x42ac53(0xb7)][_0x42ac53(0xc5)])?{'paragraph':_0x5293f4,'endTokenOffset':_0x43b7b4}:null;}function O(_0x5c87ed,_0x28b7c5,_0x265000,_0xf9e209={}){const _0x33f3c2=_0x11780b;var _0x16d236,_0x2d6d43;if(_0x265000){if(_0x5c87ed[_0x33f3c2(0xdb)]=''+_0x5c87ed[_0x33f3c2(0xdb)][_0x33f3c2(0x93)](0x0,_0x28b7c5)+_0x265000+_0x5c87ed[_0x33f3c2(0xdb)]['slice'](_0x28b7c5),ce(_0x5c87ed,_0x28b7c5,_0x265000[_0x33f3c2(0xc1)]),(_0x16d236=_0xf9e209[_0x33f3c2(0x8f)])!=null&&_0x16d236['length']){var _0x167cba;_0x5c87ed[_0x33f3c2(0x8f)]=[...(_0x167cba=_0x5c87ed['paragraphs'])==null?[]:_0x167cba,..._0xf9e209[_0x33f3c2(0x8f)][_0x33f3c2(0xcc)](_0x3c6690=>({..._0x3c6690,'startIndex':_0x3c6690[_0x33f3c2(0x8a)]+_0x28b7c5}))]['sort']((_0xdcea36,_0x38e91c)=>_0xdcea36[_0x33f3c2(0x8a)]-_0x38e91c['startIndex']);}if((_0x2d6d43=_0xf9e209[_0x33f3c2(0xb9)])!=null&&_0x2d6d43['length']){var _0x5e0b15;_0x5c87ed[_0x33f3c2(0xb9)]=[...(_0x5e0b15=_0x5c87ed['blockRanges'])==null?[]:_0x5e0b15,..._0xf9e209[_0x33f3c2(0xb9)][_0x33f3c2(0xcc)](_0x34a1c2=>({..._0x34a1c2,'startIndex':_0x34a1c2[_0x33f3c2(0x8a)]+_0x28b7c5,'endIndex':_0x34a1c2[_0x33f3c2(0xf5)]+_0x28b7c5}))]['sort']((_0x297309,_0x4f845e)=>_0x297309[_0x33f3c2(0x8a)]-_0x4f845e[_0x33f3c2(0x8a)]);}}}function se(_0x1ba6f2,_0x4c172d,_0xf22e2e){const _0x2f212b=_0x11780b;let _0x1d8143=_0xf22e2e-_0x4c172d;_0x1ba6f2[_0x2f212b(0xdb)]=''+_0x1ba6f2[_0x2f212b(0xdb)][_0x2f212b(0x93)](0x0,_0x4c172d)+_0x1ba6f2[_0x2f212b(0xdb)]['slice'](_0xf22e2e),le(_0x1ba6f2,_0x4c172d,_0x1d8143);}function ce(_0x250386,_0x50a9c7,_0x38be15){const _0x20d944=_0x11780b;_0x250386[_0x20d944(0x8f)]=k(_0x250386['paragraphs'],_0x50a9c7,_0x38be15),_0x250386[_0x20d944(0x123)]=k(_0x250386[_0x20d944(0x123)],_0x50a9c7,_0x38be15),_0x250386['customBlocks']=k(_0x250386[_0x20d944(0x81)],_0x50a9c7,_0x38be15),_0x250386['textRuns']=ue(_0x250386[_0x20d944(0x83)],_0x50a9c7,_0x38be15),_0x250386[_0x20d944(0xaf)]=j(_0x250386[_0x20d944(0xaf)],_0x50a9c7,_0x38be15),_0x250386['customRanges']=j(_0x250386[_0x20d944(0x117)],_0x50a9c7,_0x38be15),_0x250386[_0x20d944(0xbd)]=j(_0x250386[_0x20d944(0xbd)],_0x50a9c7,_0x38be15),_0x250386[_0x20d944(0xb9)]=j(_0x250386[_0x20d944(0xb9)],_0x50a9c7,_0x38be15);}function le(_0x1e5ee5,_0x400b9e,_0x245ccd){const _0x3dfeb2=_0x11780b;var _0x4daf15,_0x4b9580;_0x1e5ee5[_0x3dfeb2(0x8f)]=A(_0x1e5ee5['paragraphs'],_0x400b9e,_0x245ccd),_0x1e5ee5['sectionBreaks']=A(_0x1e5ee5[_0x3dfeb2(0x123)],_0x400b9e,_0x245ccd),_0x1e5ee5[_0x3dfeb2(0x81)]=A(_0x1e5ee5['customBlocks'],_0x400b9e,_0x245ccd),_0x1e5ee5[_0x3dfeb2(0x83)]=(_0x4daf15=M((_0x4b9580=_0x1e5ee5['textRuns'])==null?void 0x0:_0x4b9580['map'](_0x529d6d=>({..._0x529d6d,'startIndex':_0x529d6d['st'],'endIndex':_0x529d6d['ed']})),_0x400b9e,_0x245ccd))==null?void 0x0:_0x4daf15['map'](_0xb767f1=>{let {startIndex:_0x19dc44,endIndex:_0x52df73,..._0x1f76c3}=_0xb767f1;return{..._0x1f76c3,'st':_0x19dc44,'ed':_0x52df73};}),_0x1e5ee5[_0x3dfeb2(0xaf)]=M(_0x1e5ee5[_0x3dfeb2(0xaf)],_0x400b9e,_0x245ccd),_0x1e5ee5[_0x3dfeb2(0x117)]=M(_0x1e5ee5[_0x3dfeb2(0x117)],_0x400b9e,_0x245ccd),_0x1e5ee5['customDecorations']=M(_0x1e5ee5[_0x3dfeb2(0xbd)],_0x400b9e,_0x245ccd),_0x1e5ee5['blockRanges']=M(_0x1e5ee5[_0x3dfeb2(0xb9)],_0x400b9e,_0x245ccd);}function k(_0x40c39a,_0x1740e5,_0x4b683a){const _0x1514de=_0x11780b;return _0x40c39a==null?void 0x0:_0x40c39a['map'](_0x523207=>_0x523207[_0x1514de(0x8a)]>=_0x1740e5?{..._0x523207,'startIndex':_0x523207[_0x1514de(0x8a)]+_0x4b683a}:_0x523207);}function A(_0x2dbb70,_0x33fb39,_0x4da5dd){const _0x41a628=_0x11780b;let _0x382d22=_0x33fb39+_0x4da5dd;return _0x2dbb70==null?void 0x0:_0x2dbb70[_0x41a628(0xcc)](_0x244aba=>_0x244aba[_0x41a628(0x8a)]>=_0x33fb39&&_0x244aba[_0x41a628(0x8a)]<_0x382d22?null:_0x244aba[_0x41a628(0x8a)]>=_0x382d22?{..._0x244aba,'startIndex':_0x244aba[_0x41a628(0x8a)]-_0x4da5dd}:_0x244aba)[_0x41a628(0x103)](_0x4be37d=>_0x4be37d!=null);}function ue(_0x34101b,_0x4047e9,_0x5c7780){return _0x34101b==null?void 0x0:_0x34101b['map'](_0x5c5712=>_0x5c5712['st']>=_0x4047e9?{..._0x5c5712,'st':_0x5c5712['st']+_0x5c7780,'ed':_0x5c5712['ed']+_0x5c7780}:_0x5c5712['ed']>_0x4047e9?{..._0x5c5712,'ed':_0x5c5712['ed']+_0x5c7780}:_0x5c5712);}function j(_0x225aa3,_0x34e78d,_0x548326){const _0x293213=_0x11780b;return _0x225aa3==null?void 0x0:_0x225aa3['map'](_0x1e0db4=>_0x1e0db4[_0x293213(0x8a)]>=_0x34e78d?{..._0x1e0db4,'startIndex':_0x1e0db4['startIndex']+_0x548326,'endIndex':_0x1e0db4[_0x293213(0xf5)]+_0x548326}:_0x1e0db4['endIndex']>=_0x34e78d?{..._0x1e0db4,'endIndex':_0x1e0db4[_0x293213(0xf5)]+_0x548326}:_0x1e0db4);}function M(_0x1e4541,_0xb389da,_0xfcbbc1){const _0x4fa6d9=_0x11780b;let _0x44779b=_0xb389da+_0xfcbbc1;return _0x1e4541==null?void 0x0:_0x1e4541['map'](_0x1cc380=>_0x1cc380['startIndex']>=_0xb389da&&_0x1cc380[_0x4fa6d9(0xf5)]<_0x44779b?null:_0x1cc380[_0x4fa6d9(0x8a)]>=_0x44779b?{..._0x1cc380,'startIndex':_0x1cc380[_0x4fa6d9(0x8a)]-_0xfcbbc1,'endIndex':_0x1cc380[_0x4fa6d9(0xf5)]-_0xfcbbc1}:_0x1cc380[_0x4fa6d9(0xf5)]>=_0xb389da?{..._0x1cc380,'startIndex':_0x1cc380['startIndex']<_0xb389da?_0x1cc380[_0x4fa6d9(0x8a)]:_0xb389da,'endIndex':Math[_0x4fa6d9(0x105)](_0xb389da,_0x1cc380[_0x4fa6d9(0xf5)]-_0xfcbbc1)}:_0x1cc380)[_0x4fa6d9(0x103)](_0x324a99=>_0x324a99!=null);}function N(_0x542564,_0x21295d,_0x52180f,_0x2bf56c){const _0x21f12f=_0x11780b;_0x542564==null||_0x542564[_0x21f12f(0xa1)](_0x3bbad0=>{const _0x9dc07f=_0x21f12f;_0x3bbad0[_0x9dc07f(0x8a)]>=_0x21295d&&_0x3bbad0[_0x9dc07f(0x8a)]<_0x52180f&&(_0x3bbad0[_0x9dc07f(0x8a)]+=_0x2bf56c);});}function de(_0x5cb1ba,_0x5751e1,_0x538fa6,_0x65b6a4){const _0x240001=_0x11780b;_0x5cb1ba==null||_0x5cb1ba[_0x240001(0xa1)](_0x48722a=>{_0x48722a['st']>=_0x5751e1&&_0x48722a['st']<_0x538fa6?(_0x48722a['st']+=_0x65b6a4,_0x48722a['ed']+=_0x65b6a4):_0x48722a['ed']>_0x5751e1&&_0x48722a['ed']<_0x538fa6&&(_0x48722a['ed']+=_0x65b6a4);});}function P(_0x37c44b,_0x30b703,_0x18eeab,_0x429027){const _0x563d2c=_0x11780b;_0x37c44b==null||_0x37c44b[_0x563d2c(0xa1)](_0xbc4b62=>{const _0x215354=_0x563d2c;_0xbc4b62[_0x215354(0x8a)]>=_0x30b703&&_0xbc4b62[_0x215354(0x8a)]<_0x18eeab?(_0xbc4b62[_0x215354(0x8a)]+=_0x429027,_0xbc4b62[_0x215354(0xf5)]+=_0x429027):_0xbc4b62[_0x215354(0xf5)]>_0x30b703&&_0xbc4b62['endIndex']<_0x18eeab&&(_0xbc4b62[_0x215354(0xf5)]+=_0x429027);});}function F(_0x532230){'@babel/helpers - typeof';const _0x32a839=_0x11780b;return F=typeof Symbol==_0x32a839(0x11c)&&typeof Symbol[_0x32a839(0x114)]==_0x32a839(0x102)?function(_0x2d5bf3){return typeof _0x2d5bf3;}:function(_0x612231){const _0xfacfbd=_0x32a839;return _0x612231&&typeof Symbol==_0xfacfbd(0x11c)&&_0x612231['constructor']===Symbol&&_0x612231!==Symbol[_0xfacfbd(0x106)]?_0xfacfbd(0x102):typeof _0x612231;},F(_0x532230);}function fe(_0x404e8c,_0x597c72){const _0x4e36ac=_0x11780b;if(F(_0x404e8c)!='object'||!_0x404e8c)return _0x404e8c;var _0x1baa30=_0x404e8c[Symbol[_0x4e36ac(0x92)]];if(_0x1baa30!==void 0x0){var _0x55d04a=_0x1baa30['call'](_0x404e8c,_0x597c72||_0x4e36ac(0x109));if(F(_0x55d04a)!='object')return _0x55d04a;throw TypeError(_0x4e36ac(0xd2));}return(_0x597c72===_0x4e36ac(0xa8)?String:Number)(_0x404e8c);}function pe(_0x5c73f1){const _0x47ffa6=_0x11780b;var _0x5b48c8=fe(_0x5c73f1,_0x47ffa6(0xa8));return F(_0x5b48c8)=='symbol'?_0x5b48c8:_0x5b48c8+'';}function I(_0x15e310,_0x8393dc,_0x32a72f){const _0x39167e=_0x11780b;return(_0x8393dc=pe(_0x8393dc))in _0x15e310?Object[_0x39167e(0xeb)](_0x15e310,_0x8393dc,{'value':_0x32a72f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15e310[_0x8393dc]=_0x32a72f,_0x15e310;}var L=class extends e[_0x11780b(0x88)]{constructor(..._0x5172eb){const _0x543204=_0x11780b;super(..._0x5172eb),I(this,_0x543204(0x84),new Map()),I(this,_0x543204(0xc2),new n[(_0x543204(0x99))]()),I(this,_0x543204(0xf1),this['_change$'][_0x543204(0xd5)]());}['getCodeConfig'](_0x4c29e9,_0x3a511d){const _0xf8eb6f=_0x11780b;return o(this[_0xf8eb6f(0x84)][_0xf8eb6f(0x85)](_0x4c29e9))[_0xf8eb6f(0xee)][_0x3a511d];}[_0x11780b(0xf0)](_0x212939,_0x422c18,_0x4dcce1){this['_setResource'](_0x212939,_0x422c18,s(this['_resources']['get'](_0x212939),_0x422c18,_0x4dcce1));}[_0x11780b(0xc3)](_0x35c7f6,_0x1f4e48){const _0x249ab8=_0x11780b;this[_0x249ab8(0xd9)](_0x35c7f6,_0x1f4e48,c(this[_0x249ab8(0x84)][_0x249ab8(0x85)](_0x35c7f6),_0x1f4e48));}[_0x11780b(0xcf)](_0x1082c0){const _0x2b3d0f=_0x11780b;return o(this[_0x2b3d0f(0x84)][_0x2b3d0f(0x85)](_0x1082c0));}['deserialize'](_0x2f86b7,_0x53e801){const _0x1c7ffd=_0x11780b;this[_0x1c7ffd(0x84)]['set'](_0x2f86b7,o(_0x53e801)),this[_0x1c7ffd(0xc2)][_0x1c7ffd(0x110)]({'unitId':_0x2f86b7});}['removeUnit'](_0x5649ec){const _0x4f7f83=_0x11780b;this[_0x4f7f83(0x84)][_0x4f7f83(0xb2)](_0x5649ec),this[_0x4f7f83(0xc2)][_0x4f7f83(0x110)]({'unitId':_0x5649ec});}[_0x11780b(0xf8)](){const _0x4c9bad=_0x11780b;super[_0x4c9bad(0xf8)](),this[_0x4c9bad(0x84)]['clear'](),this[_0x4c9bad(0xc2)]['complete']();}[_0x11780b(0xd9)](_0xe927cc,_0x5ee057,_0x1df747){const _0x4b7e72=_0x11780b;this[_0x4b7e72(0x84)][_0x4b7e72(0x104)](_0xe927cc,_0x1df747),this[_0x4b7e72(0xc2)][_0x4b7e72(0x110)]({'unitId':_0xe927cc,'blockId':_0x5ee057});}};const R={'id':_0x11780b(0xd0),'type':e[_0x11780b(0xea)][_0x11780b(0xa9)],'handler':_0x43b80a=>{const _0x120c51=_0x11780b;let _0x4c402c=me(_0x43b80a);if(_0x4c402c)return _0x43b80a[_0x120c51(0x85)](e['ICommandService'])[_0x120c51(0xed)](B['id'],{'startOffset':_0x4c402c[_0x120c51(0xe2)],'endOffset':_0x4c402c[_0x120c51(0xcd)],'unitId':_0x4c402c[_0x120c51(0x98)]});let _0x33cd70=he(_0x43b80a);if(!_0x33cd70)return!0x1;let _0x3754cc=_0x33cd70[_0x120c51(0x8a)]+0x1;return _0x43b80a[_0x120c51(0x85)](e['ICommandService'])[_0x120c51(0xed)](B['id'],{'startOffset':_0x3754cc,'endOffset':_0x3754cc});}},z={'id':_0x11780b(0xba),'type':e[_0x11780b(0xea)]['COMMAND'],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':e[_0x11780b(0xea)][_0x11780b(0xa9)],'handler':(_0x58ca9c,_0x76d543)=>{const _0x204bc1=_0x11780b;var _0x25480c,_0x47570b,_0x3e66a4;let _0x5f2795=W(_0x58ca9c,_0x76d543==null?void 0x0:_0x76d543[_0x204bc1(0x98)]);if(!_0x5f2795)return!0x1;let _0x4a2eb0=G(_0x58ca9c),_0x40222d=u({'blockId':(_0x25480c=_0x76d543==null?void 0x0:_0x76d543[_0x204bc1(0xa3)])==null?(0x0,e[_0x204bc1(0x82)])(0x6):_0x25480c,'config':_0x76d543==null?void 0x0:_0x76d543[_0x204bc1(0xb5)],'documentData':_0x5f2795[_0x204bc1(0xf6)],'endOffset':(_0x47570b=_0x76d543==null?void 0x0:_0x76d543['endOffset'])==null?_0x4a2eb0==null?void 0x0:_0x4a2eb0[_0x204bc1(0xcd)]:_0x47570b,'metadata':_0x5f2795[_0x204bc1(0x90)][_0x204bc1(0xcf)](_0x5f2795[_0x204bc1(0x98)]),'startOffset':(_0x3e66a4=_0x76d543==null?void 0x0:_0x76d543[_0x204bc1(0xe2)])==null?_0x4a2eb0==null?void 0x0:_0x4a2eb0['startOffset']:_0x3e66a4}),_0x4db053=q(_0x5f2795['commandService'],_0x5f2795[_0x204bc1(0x98)],_0x5f2795[_0x204bc1(0xf6)],_0x40222d[_0x204bc1(0xe5)],_0x40222d[_0x204bc1(0xe8)]);return _0x4db053&&_0x40222d[_0x204bc1(0xb3)]&&_0x5f2795[_0x204bc1(0x90)][_0x204bc1(0x89)](_0x5f2795[_0x204bc1(0x98)],_0x40222d['nextMetadata']),_0x4db053;}},V={'id':'docs-code.command.update','type':e['CommandType'][_0x11780b(0xa9)],'handler':(_0x48e83d,_0x205f47)=>{const _0x2e5419=_0x11780b;if(!_0x205f47)return!0x1;let _0x143a20=W(_0x48e83d,_0x205f47['unitId']);if(!_0x143a20)return!0x1;let _0x3474b0=p({'blockId':_0x205f47[_0x2e5419(0xa3)],'config':_0x205f47[_0x2e5419(0xb5)],'documentData':_0x143a20[_0x2e5419(0xf6)],'metadata':_0x143a20[_0x2e5419(0x90)][_0x2e5419(0xcf)](_0x143a20[_0x2e5419(0x98)])});return _0x3474b0['nextMetadata']&&_0x143a20[_0x2e5419(0x90)][_0x2e5419(0x89)](_0x143a20[_0x2e5419(0x98)],_0x3474b0[_0x2e5419(0xb3)]),!0x0;}},H={'id':'docs-code.command.exit','type':e[_0x11780b(0xea)]['COMMAND'],'handler':(_0x5e8bd0,_0x8425b1)=>{const _0xc39a9e=_0x11780b;var _0x4f3526,_0x5c34e7;let _0x158dcc=W(_0x5e8bd0,_0x8425b1==null?void 0x0:_0x8425b1[_0xc39a9e(0x98)]);if(!_0x158dcc)return!0x1;let _0x327f23=(_0x4f3526=_0x8425b1==null?void 0x0:_0x8425b1[_0xc39a9e(0xe8)])==null?(_0x5c34e7=G(_0x5e8bd0))==null?void 0x0:_0x5c34e7[_0xc39a9e(0xe2)]:_0x4f3526;if(_0x327f23==null)return!0x1;let _0x1e1212=m({'cursorOffset':_0x327f23,'documentData':_0x158dcc['previousDocumentData']});return _0x1e1212?q(_0x158dcc[_0xc39a9e(0x94)],_0x158dcc[_0xc39a9e(0x98)],_0x158dcc[_0xc39a9e(0xf6)],_0x1e1212[_0xc39a9e(0xe5)],_0x1e1212[_0xc39a9e(0xe8)]):!0x1;}},U={'id':_0x11780b(0xde),'type':e['CommandType'][_0x11780b(0xa9)],'handler':(_0x4de584,_0xb2a8d2)=>{const _0x23ba23=_0x11780b;var _0x36afbc,_0x2c610c;let _0x1a57b5=W(_0x4de584,_0xb2a8d2==null?void 0x0:_0xb2a8d2[_0x23ba23(0x98)]);if(!_0x1a57b5)return!0x1;let _0x167a6b=(_0x36afbc=_0xb2a8d2==null?void 0x0:_0xb2a8d2[_0x23ba23(0xe8)])==null?(_0x2c610c=G(_0x4de584))==null?void 0x0:_0x2c610c[_0x23ba23(0xe2)]:_0x36afbc;if(_0x167a6b==null)return!0x1;let _0x5a2f03=h({'cursorOffset':_0x167a6b,'documentData':_0x1a57b5[_0x23ba23(0xf6)],'paragraphStartIndex':_0xb2a8d2==null?void 0x0:_0xb2a8d2['paragraphStartIndex']});return _0x5a2f03?q(_0x1a57b5[_0x23ba23(0x94)],_0x1a57b5[_0x23ba23(0x98)],_0x1a57b5[_0x23ba23(0xf6)],_0x5a2f03[_0x23ba23(0xe5)],_0x5a2f03['cursorOffset']):!0x1;}};function W(_0x584d40,_0x304c6b){const _0xf8a52=_0x11780b;let _0x14c90d=_0x584d40[_0xf8a52(0x85)](e[_0xf8a52(0xac)]),_0x16203e=_0x304c6b?_0x14c90d[_0xf8a52(0x10a)](_0x304c6b):_0x14c90d['getCurrentUnitOfType'](e[_0xf8a52(0x115)][_0xf8a52(0x86)]);return _0x16203e?{'commandService':_0x584d40[_0xf8a52(0x85)](e[_0xf8a52(0xe4)]),'model':_0x584d40[_0xf8a52(0x85)](L),'previousDocumentData':_0x16203e[_0xf8a52(0xa2)](),'unitId':_0x16203e[_0xf8a52(0xae)]()}:null;}function G(_0x1604de){const _0x29e923=_0x11780b;var _0x251396;return(_0x251396=_0x1604de[_0x29e923(0x85)](t[_0x29e923(0x121)])[_0x29e923(0x11d)]())==null?void 0x0:_0x251396[0x0];}function me(_0x25dbf6){const _0x1c3a5d=_0x11780b;var _0x53bd3f;let _0x15da59=(_0x53bd3f=_0x25dbf6[_0x1c3a5d(0x85)](e[_0x1c3a5d(0xac)])[_0x1c3a5d(0xdc)](e[_0x1c3a5d(0x115)]['UNIVER_DOC']))==null?void 0x0:_0x53bd3f[_0x1c3a5d(0xae)]();try{return _0x25dbf6['get'](t[_0x1c3a5d(0x9f)])['consumeInsertRange'](_0x15da59);}catch{return null;}}function he(_0x2e2e1f){const _0x3109b8=_0x11780b;var _0x4b70cf,_0x507163,_0x16e1cd;let _0x1febd4=G(_0x2e2e1f);if(!_0x1febd4)return null;let _0x5ce73d=_0x2e2e1f[_0x3109b8(0x85)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e[_0x3109b8(0x115)][_0x3109b8(0x86)]),_0x5e0e09=_0x5ce73d==null?void 0x0:_0x5ce73d[_0x3109b8(0x80)]();return _0x5e0e09?(_0x4b70cf=e[_0x3109b8(0x9e)][_0x3109b8(0x11b)]['getParagraphsInRange'](_0x1febd4,(_0x507163=_0x5e0e09[_0x3109b8(0x8f)])==null?[]:_0x507163,(_0x16e1cd=_0x5e0e09[_0x3109b8(0xdb)])==null?'':_0x16e1cd)[0x0])==null?null:_0x4b70cf:null;}function ge(_0x45a5a4,_0x8869b0){const _0x803c48=_0x11780b;var _0x27e9e4,_0x2fa358,_0x134dd9,_0x4df358,_0x3b6315,_0x164d1d,_0x58389d,_0x38db40,_0x57a500,_0x9c6638,_0x1cb6d4,_0x4613b2,_0x3fc431,_0x368a0d,_0x51d074,_0x36b9bb,_0x278bd6,_0x244d06;let _0x52a837=e[_0x803c48(0x9a)][_0x803c48(0xa5)]();return[K(_0x52a837,['body','dataStream'],(_0x27e9e4=_0x45a5a4[_0x803c48(0x9d)])==null?void 0x0:_0x27e9e4[_0x803c48(0xdb)],(_0x2fa358=_0x8869b0['body'])==null?void 0x0:_0x2fa358[_0x803c48(0xdb)]),K(_0x52a837,[_0x803c48(0x9d),'paragraphs'],(_0x134dd9=_0x45a5a4[_0x803c48(0x9d)])==null?void 0x0:_0x134dd9['paragraphs'],(_0x4df358=_0x8869b0[_0x803c48(0x9d)])==null?void 0x0:_0x4df358['paragraphs']),K(_0x52a837,[_0x803c48(0x9d),'sectionBreaks'],(_0x3b6315=_0x45a5a4[_0x803c48(0x9d)])==null?void 0x0:_0x3b6315[_0x803c48(0x123)],(_0x164d1d=_0x8869b0[_0x803c48(0x9d)])==null?void 0x0:_0x164d1d[_0x803c48(0x123)]),K(_0x52a837,[_0x803c48(0x9d),_0x803c48(0x83)],(_0x58389d=_0x45a5a4[_0x803c48(0x9d)])==null?void 0x0:_0x58389d[_0x803c48(0x83)],(_0x38db40=_0x8869b0[_0x803c48(0x9d)])==null?void 0x0:_0x38db40['textRuns']),K(_0x52a837,['body',_0x803c48(0x81)],(_0x57a500=_0x45a5a4[_0x803c48(0x9d)])==null?void 0x0:_0x57a500['customBlocks'],(_0x9c6638=_0x8869b0[_0x803c48(0x9d)])==null?void 0x0:_0x9c6638['customBlocks']),K(_0x52a837,[_0x803c48(0x9d),'customRanges'],(_0x1cb6d4=_0x45a5a4['body'])==null?void 0x0:_0x1cb6d4[_0x803c48(0x117)],(_0x4613b2=_0x8869b0[_0x803c48(0x9d)])==null?void 0x0:_0x4613b2[_0x803c48(0x117)]),K(_0x52a837,[_0x803c48(0x9d),_0x803c48(0xbd)],(_0x3fc431=_0x45a5a4[_0x803c48(0x9d)])==null?void 0x0:_0x3fc431['customDecorations'],(_0x368a0d=_0x8869b0[_0x803c48(0x9d)])==null?void 0x0:_0x368a0d[_0x803c48(0xbd)]),K(_0x52a837,['body',_0x803c48(0xaf)],(_0x51d074=_0x45a5a4['body'])==null?void 0x0:_0x51d074[_0x803c48(0xaf)],(_0x36b9bb=_0x8869b0[_0x803c48(0x9d)])==null?void 0x0:_0x36b9bb['tables']),K(_0x52a837,['body',_0x803c48(0xb9)],(_0x278bd6=_0x45a5a4[_0x803c48(0x9d)])==null?void 0x0:_0x278bd6[_0x803c48(0xb9)],(_0x244d06=_0x8869b0['body'])==null?void 0x0:_0x244d06['blockRanges'])]['filter'](Boolean)[_0x803c48(0xab)]((_0x5d25a5,_0x3cb0e4)=>e[_0x803c48(0x9a)][_0x803c48(0x10d)](_0x5d25a5,_0x3cb0e4),null);}function K(_0x535e22,_0x403c81,_0x47ddd2,_0x2fab8){const _0x4e0455=_0x11780b;return e[_0x4e0455(0x8e)][_0x4e0455(0xfa)](_0x47ddd2,_0x2fab8)?null:_0x535e22['replaceOp'](_0x403c81,_0x47ddd2,_0x2fab8);}function q(_0x40fa55,_0x49f900,_0x47d9cb,_0x142220,_0x4dd8cd){const _0x9abb22=_0x11780b;let _0x42a441=ge(_0x47d9cb,_0x142220);return _0x42a441?!!_0x40fa55['syncExecuteCommand'](t[_0x9abb22(0xaa)]['id'],{'unitId':_0x49f900,'actions':_0x42a441,'textRanges':[{'startOffset':_0x4dd8cd,'endOffset':_0x4dd8cd,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x11780b(0xdd);var _e='@univerjs-pro/docs-code',ve='0.25.0-insiders.20260604-29ebbff';function _0x100f(){const _0x495e5d=['find','join','_configService','removeUnit','getBody','customBlocks','generateRandomId','textRuns','_resources','get','UNIVER_DOC','DocsCodeModel','Disposable','deserialize','startIndex','856BlruhB','some','Inject','Tools','paragraphs','model','javascript','toPrimitive','slice','commandService','textStyle','BLOCK_START','DocsCodeInsertCommand','unitId','Subject','JSONX','8277768YlukEy','sort','body','BuildTextUtils','DocContentInsertService','IConfigService','forEach','getSnapshot','blockId','362280kdKihy','getInstance','documentData','pluginName','string','COMMAND','RichTextEditingMutation','reduce','IUniverInstanceService','decorate','getUnitId','tables','every','487010ATHfVM','delete','nextMetadata','setConfig','config','DependentOn','DataStreamTreeTokenType','1558310eXHSxs','blockRanges','docs-code.command.consume-boundary-delete','left','merge','customDecorations','18326IcMjtF','toStringTag','object','length','_change$','removeCode','DEFAULT_CODE_CONFIG','BLOCK_END','Plugin','version','getOwnPropertyDescriptor','DocumentBlockRangeType','spaceAbove','_resourceManagerService','map','endOffset','UniverDocsPlugin','serialize','docs-code.command.insert-below','docs-code.config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','Module','asObservable','_docsCodeModel','_injector','IResourceManagerService','_setResource','onStarting','dataStream','getCurrentUnitOfType','DOC_CODE_PLUGIN','docs-code.command.cancel-empty-paragraph','min','entries','registerCommand','startOffset','indentStart','ICommandService','nextDocumentData','disposeWithMe','buildExitCodeActions','cursorOffset','DocsCodeExitCommand','CommandType','defineProperty','DOCS_CODE_PLUGIN','syncExecuteCommand','codes','paragraphStyle','setCodeConfig','change$','type','right','4359HrZJOe','endIndex','previousDocumentData','Document\x20body\x20is\x20required','dispose','_config','diffValue','buildUpdateCodeActions','stringify','direction','_initResource','_commandService','blockType','spaceBelow','symbol','filter','set','max','prototype','normalizeDocsCodeConfig','fromEntries','default','getUniverDocInstance','UniverLicensePlugin','metadata','compose','DocsCodeInsertBelowCommand','findCodeRangeAtOffset','next','CODE','SECTION_BREAK','from','iterator','UniverInstanceType','1001720cwmuhJ','customRanges','paragraph','packageName','add','range','function','getTextRanges','registerPluginResource','buildInsertCodeActions','endsWith','DocSelectionManagerService','UniverDocsCodePlugin','sectionBreaks','indentEnd'];_0x100f=function(){return _0x495e5d;};return _0x100f();}const Y={};function X(_0x1b9ca9,_0x24ab72){return function(_0x395b8a,_0x369e99){_0x24ab72(_0x395b8a,_0x369e99,_0x1b9ca9);};}function Z(_0x353fc4,_0x24dd53,_0x493965,_0x21871e){const _0x149b62=_0x11780b;var _0x5ef5fe=arguments[_0x149b62(0xc1)],_0x5c08b1=_0x5ef5fe<0x3?_0x24dd53:_0x21871e===null?_0x21871e=Object[_0x149b62(0xc8)](_0x24dd53,_0x493965):_0x21871e,_0x8e4222;if(typeof Reflect==_0x149b62(0xc0)&&typeof Reflect[_0x149b62(0xad)]==_0x149b62(0x11c))_0x5c08b1=Reflect['decorate'](_0x353fc4,_0x24dd53,_0x493965,_0x21871e);else{for(var _0x3a0c6d=_0x353fc4[_0x149b62(0xc1)]-0x1;_0x3a0c6d>=0x0;_0x3a0c6d--)(_0x8e4222=_0x353fc4[_0x3a0c6d])&&(_0x5c08b1=(_0x5ef5fe<0x3?_0x8e4222(_0x5c08b1):_0x5ef5fe>0x3?_0x8e4222(_0x24dd53,_0x493965,_0x5c08b1):_0x8e4222(_0x24dd53,_0x493965))||_0x5c08b1);}return _0x5ef5fe>0x3&&_0x5c08b1&&Object[_0x149b62(0xeb)](_0x24dd53,_0x493965,_0x5c08b1),_0x5c08b1;}let Q=class extends e['Disposable']{constructor(_0x445c1d,_0x2f75a2){const _0x34ed59=_0x11780b;super(),this[_0x34ed59(0xcb)]=_0x445c1d,this[_0x34ed59(0xd6)]=_0x2f75a2,this[_0x34ed59(0xfe)]();}[_0x11780b(0xfe)](){const _0x581a86=_0x11780b;this[_0x581a86(0xe6)](this[_0x581a86(0xcb)][_0x581a86(0x11e)]({'pluginName':J,'businesses':[e[_0x581a86(0x115)]['UNIVER_DOC']],'toJson':_0x1c8b39=>JSON[_0x581a86(0xfc)](this[_0x581a86(0xd6)][_0x581a86(0xcf)](_0x1c8b39)),'parseJson':_0x21d6f1=>o(JSON['parse'](_0x21d6f1)),'onLoad':(_0x3a96a6,_0x54300e)=>this[_0x581a86(0xd6)][_0x581a86(0x89)](_0x3a96a6,_0x54300e),'onUnLoad':_0x33e623=>this['_docsCodeModel'][_0x581a86(0x128)](_0x33e623)}));}};Q=Z([X(0x0,e[_0x11780b(0xd8)]),X(0x1,(0x0,e[_0x11780b(0x8d)])(L))],Q);let $=class extends e[_0x11780b(0xc6)]{constructor(_0xe4a4c3=Y,_0x1eea96,_0x38ddd7,_0x448e2c){const _0x3ef62b=_0x11780b;super(),this[_0x3ef62b(0xf9)]=_0xe4a4c3,this[_0x3ef62b(0xd7)]=_0x1eea96,this['_commandService']=_0x38ddd7,this[_0x3ef62b(0x127)]=_0x448e2c;let {..._0xfce691}=(0x0,e[_0x3ef62b(0xbc)])({},Y,this[_0x3ef62b(0xf9)]);this[_0x3ef62b(0x127)][_0x3ef62b(0xb4)](_0x3ef62b(0xd1),_0xfce691);}[_0x11780b(0xda)](){const _0xbb7845=_0x11780b;this[_0xbb7845(0xd7)][_0xbb7845(0x11a)]([L]),this[_0xbb7845(0xd7)][_0xbb7845(0x11a)]([Q]),this[_0xbb7845(0xd7)][_0xbb7845(0x85)](L),this['_injector'][_0xbb7845(0x85)](Q),[B,R,V,H,U,z]['forEach'](_0x92f616=>this[_0xbb7845(0xe6)](this[_0xbb7845(0xff)][_0xbb7845(0xe1)](_0x92f616)));}};I($,_0x11780b(0xa7),J),I($,_0x11780b(0x119),_e),I($,_0x11780b(0xc7),ve),I($,_0x11780b(0xf2),e['UniverInstanceType'][_0x11780b(0x86)]),$=Z([(0x0,e[_0x11780b(0xb6)])(r[_0x11780b(0x10b)],t[_0x11780b(0xce)]),X(0x1,(0x0,e[_0x11780b(0x8d)])(e['Injector'])),X(0x2,e['ICommandService']),X(0x3,e[_0x11780b(0xa0)])],$),exports[_0x11780b(0xc4)]=i,exports[_0x11780b(0xec)]=J,exports['DocsCodeCancelEmptyParagraphCommand']=U,exports['DocsCodeConsumeBoundaryDeleteCommand']=z,exports[_0x11780b(0xe9)]=H,exports[_0x11780b(0x10e)]=R,exports[_0x11780b(0x97)]=B,exports[_0x11780b(0x87)]=L,exports['DocsCodeUpdateCommand']=V,Object[_0x11780b(0xeb)](exports,_0x11780b(0x122),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports[_0x11780b(0xe7)]=m,exports[_0x11780b(0x11f)]=u,exports[_0x11780b(0xfb)]=p,exports[_0x11780b(0x10f)]=_,exports['isCodeBoundaryDelete']=v,exports[_0x11780b(0x107)]=a;
1
+ const _0x42576e=_0x1714;(function(_0x3c0042,_0x448ec8){const _0x5ab346=_0x1714,_0x3c63b6=_0x3c0042();while(!![]){try{const _0x3a1d9b=-parseInt(_0x5ab346(0x137))/0x1*(-parseInt(_0x5ab346(0x108))/0x2)+parseInt(_0x5ab346(0xfd))/0x3+parseInt(_0x5ab346(0xe3))/0x4+parseInt(_0x5ab346(0x13c))/0x5+parseInt(_0x5ab346(0x12c))/0x6+-parseInt(_0x5ab346(0xb9))/0x7+parseInt(_0x5ab346(0xb8))/0x8*(-parseInt(_0x5ab346(0x138))/0x9);if(_0x3a1d9b===_0x448ec8)break;else _0x3c63b6['push'](_0x3c63b6['shift']());}catch(_0x44d8e0){_0x3c63b6['push'](_0x3c63b6['shift']());}}}(_0x5804,0xf2ce9),Object[_0x42576e(0x119)](exports,Symbol[_0x42576e(0xf7)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x42576e(0xd2),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x41c093){return{...i,..._0x41c093};}function o(_0xa33664){const _0x2c76f9=_0x42576e;var _0xa9a631;let _0x27366b=(_0xa9a631=_0xa33664==null?void 0x0:_0xa33664[_0x2c76f9(0xf5)])==null?{}:_0xa9a631;return{'codes':Object['fromEntries'](Object['entries'](_0x27366b)[_0x2c76f9(0x12a)](([_0x1e2c38,_0x5ea956])=>[_0x1e2c38,a(_0x5ea956)]))};}function s(_0x3c9cd5,_0x31362a,_0xcc3256){const _0x1dc6f6=_0x42576e;let _0x98a1f1=o(_0x3c9cd5);return _0x98a1f1[_0x1dc6f6(0xf5)][_0x31362a]=a({..._0x98a1f1[_0x1dc6f6(0xf5)][_0x31362a],..._0xcc3256}),_0x98a1f1;}function c(_0x4644e2,_0x39cbcc){const _0x47ec67=_0x42576e;let _0x5b0836=o(_0x4644e2);return delete _0x5b0836[_0x47ec67(0xf5)][_0x39cbcc],_0x5b0836;}const l=_0x42576e(0xe2);function u(_0x2f8912){const _0x2447f1=_0x42576e;var _0x3e3f27,_0x10dcd8,_0x1541d4;let _0x5ae9e9=C(_0x2f8912['documentData']),_0x40308d=w(_0x5ae9e9),_0x4ed45a=f(_0x2f8912[_0x2447f1(0xea)],_0x2f8912['endOffset']),_0x4868de=_0x4ed45a?(_0x3e3f27=_0x40308d[_0x2447f1(0xe0)])==null?void 0x0:_0x3e3f27[_0x2447f1(0xbe)](_0x3392b2=>_0x3392b2[_0x2447f1(0xca)]===_0x4ed45a['startOffset']&&_0x3392b2['endIndex']+0x1===_0x4ed45a['endOffset']):void 0x0,{startOffset:_0x59d7c1,endOffset:_0xe1e5be}=_0x4868de?_0x4ed45a:ne(_0x40308d,_0x2f8912[_0x2447f1(0xea)],_0x2f8912['endOffset']),_0x2e86cd=ie(_0x40308d,_0x59d7c1,_0xe1e5be),_0x21e6c6=(_0x10dcd8=_0x4868de==null?void 0x0:_0x4868de[_0x2447f1(0x11c)])==null?_0x2f8912[_0x2447f1(0x11c)]:_0x10dcd8,_0xedd634=s(_0x2f8912[_0x2447f1(0x13e)],_0x21e6c6,{...i,..._0x2f8912[_0x2447f1(0x114)]});if(_0x4868de)return _0x4868de['blockType']=e[_0x2447f1(0xe6)][_0x2447f1(0xfe)],d(_0x40308d,_0x59d7c1,_0xe1e5be),x(_0x40308d,_0x59d7c1,_0xe1e5be,_0x2e86cd),{'nextDocumentData':_0x5ae9e9,'nextMetadata':_0xedd634,'cursorOffset':_0x59d7c1+0x1};if(_0x59d7c1===_0xe1e5be){var _0x401a4d;let _0x6d67bd=''+e[_0x2447f1(0x136)]['BLOCK_START']+e[_0x2447f1(0x136)][_0x2447f1(0x129)]+e[_0x2447f1(0x136)][_0x2447f1(0xdd)];return O(_0x40308d,_0x59d7c1,_0x6d67bd,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x401a4d=_0x40308d[_0x2447f1(0xee)])==null?void 0x0:_0x401a4d[_0x2447f1(0x12a)](_0x371ec1=>_0x371ec1[_0x2447f1(0x127)]))),'paragraphStyle':b(!0x0,!0x0,_0x2e86cd)}],'blockRanges':[{'blockId':_0x21e6c6,'blockType':e[_0x2447f1(0xe6)][_0x2447f1(0xfe)],'startIndex':0x0,'endIndex':_0x6d67bd['length']-0x1}]}),{'nextDocumentData':_0x5ae9e9,'nextMetadata':_0xedd634,'cursorOffset':_0x59d7c1+0x1};}return O(_0x40308d,_0xe1e5be,e['DataStreamTreeTokenType']['BLOCK_END']),O(_0x40308d,_0x59d7c1,e['DataStreamTreeTokenType'][_0x2447f1(0x106)]),x(_0x40308d,_0x59d7c1,_0xe1e5be+0x1,_0x2e86cd),_0x40308d['blockRanges']=[...(_0x1541d4=_0x40308d['blockRanges'])==null?[]:_0x1541d4,{'blockId':_0x21e6c6,'blockType':e[_0x2447f1(0xe6)][_0x2447f1(0xfe)],'startIndex':_0x59d7c1,'endIndex':_0xe1e5be+0x1}][_0x2447f1(0x115)]((_0xaa663e,_0x1a8fcb)=>_0xaa663e[_0x2447f1(0xca)]-_0x1a8fcb['startIndex']),{'nextDocumentData':_0x5ae9e9,'nextMetadata':_0xedd634,'cursorOffset':_0x59d7c1+0x1};}function d(_0x5a9ff6,_0x328a9c,_0x29f903){const _0x4fecc8=_0x42576e;var _0xc1ef1d;((_0xc1ef1d=_0x5a9ff6[_0x4fecc8(0xee)])==null?[]:_0xc1ef1d)[_0x4fecc8(0xd8)](_0x3f6178=>_0x3f6178[_0x4fecc8(0xca)]>_0x328a9c&&_0x3f6178[_0x4fecc8(0xca)]<_0x29f903)['forEach'](_0x1a2df3=>{const _0x14af91=_0x4fecc8;var _0x35e830;let _0x55834d={...(_0x35e830=_0x1a2df3[_0x14af91(0x109)])==null?{}:_0x35e830};delete _0x55834d[_0x14af91(0xbd)],delete _0x55834d[_0x14af91(0x120)],_0x1a2df3[_0x14af91(0x109)]=_0x55834d;});}function _0x1714(_0x38de2c,_0x36eee4){_0x38de2c=_0x38de2c-0xaf;const _0x58040c=_0x5804();let _0x1714b2=_0x58040c[_0x38de2c];return _0x1714b2;}function f(_0x20cb24,_0x21ff53){const _0x1cf958=_0x42576e;return _0x20cb24==null||_0x21ff53==null||_0x20cb24===_0x21ff53?null:{'startOffset':Math[_0x1cf958(0x14e)](_0x20cb24,_0x21ff53),'endOffset':Math[_0x1cf958(0xb3)](_0x20cb24,_0x21ff53)};}function p(_0x36016d){const _0x15fd77=_0x42576e;return{'nextDocumentData':C(_0x36016d['documentData']),'nextMetadata':s(_0x36016d[_0x15fd77(0x13e)],_0x36016d[_0x15fd77(0x11c)],_0x36016d['config']),'cursorOffset':0x0};}function m(_0x36c7a7){const _0x3eb9e8=_0x42576e;var _0x3ed62f,_0x449d45;let _0x56b73b=C(_0x36c7a7[_0x3eb9e8(0x104)]),_0x2b2677=w(_0x56b73b),_0x358abf=y(_0x2b2677,_0x36c7a7[_0x3eb9e8(0x14f)]);if(!_0x358abf)return null;let _0x156ed7=S(_0x2b2677,_0x358abf),_0x521f83=_0x156ed7[_0x156ed7[_0x3eb9e8(0xf9)]-0x1];if(!_0x521f83||!te(_0x2b2677,_0x358abf,_0x521f83)||_0x36c7a7[_0x3eb9e8(0x14f)]<_0x521f83['startIndex'])return null;let _0x24f77e=E(_0x2b2677,_0x358abf,_0x521f83);if(_0x24f77e>=_0x358abf['endIndex'])return null;_0x2b2677[_0x3eb9e8(0x10b)]=[_0x2b2677['dataStream'][_0x3eb9e8(0x143)](0x0,_0x24f77e),e[_0x3eb9e8(0x136)][_0x3eb9e8(0xdd)],_0x2b2677['dataStream'][_0x3eb9e8(0x143)](_0x24f77e,_0x358abf[_0x3eb9e8(0x141)]),_0x2b2677[_0x3eb9e8(0x10b)][_0x3eb9e8(0x143)](_0x358abf['endIndex']+0x1)][_0x3eb9e8(0xf4)](''),N(_0x2b2677['paragraphs'],_0x24f77e,_0x358abf[_0x3eb9e8(0x141)],0x1),N(_0x2b2677[_0x3eb9e8(0xd9)],_0x24f77e,_0x358abf[_0x3eb9e8(0x141)],0x1),N(_0x2b2677[_0x3eb9e8(0x14d)],_0x24f77e,_0x358abf[_0x3eb9e8(0x141)],0x1),de(_0x2b2677['textRuns'],_0x24f77e,_0x358abf[_0x3eb9e8(0x141)],0x1),P(_0x2b2677['tables'],_0x24f77e,_0x358abf[_0x3eb9e8(0x141)],0x1),P(_0x2b2677['customRanges'],_0x24f77e,_0x358abf[_0x3eb9e8(0x141)],0x1),P(_0x2b2677[_0x3eb9e8(0xe1)],_0x24f77e,_0x358abf[_0x3eb9e8(0x141)],0x1),(_0x3ed62f=_0x2b2677[_0x3eb9e8(0xe0)])==null||_0x3ed62f[_0x3eb9e8(0x102)](_0x313a2c=>{const _0x260a08=_0x3eb9e8;_0x313a2c===_0x358abf||_0x313a2c['blockId']===_0x358abf[_0x260a08(0x11c)]?_0x313a2c['endIndex']=_0x24f77e:_0x313a2c[_0x260a08(0xca)]>=_0x24f77e&&_0x313a2c[_0x260a08(0xca)]<_0x358abf['endIndex']&&(_0x313a2c[_0x260a08(0xca)]+=0x1,_0x313a2c[_0x260a08(0x141)]+=0x1);});let _0x2e5771=S(_0x2b2677,{..._0x358abf,'endIndex':_0x24f77e});_0x2e5771[_0x3eb9e8(0x102)]((_0x2a192c,_0x569a28)=>{const _0x20d35e=_0x3eb9e8;var _0x21491e;_0x2a192c['paragraphStyle']={...(_0x21491e=_0x2a192c[_0x20d35e(0x109)])==null?{}:_0x21491e,...b(_0x569a28===0x0,_0x569a28===_0x2e5771[_0x20d35e(0xf9)]-0x1)};});let _0x27edb7=(_0x449d45=_0x2b2677[_0x3eb9e8(0xee)])==null?void 0x0:_0x449d45[_0x3eb9e8(0xbe)](_0x41b18f=>_0x41b18f[_0x3eb9e8(0xca)]===_0x24f77e+0x1);return _0x27edb7&&(_0x27edb7[_0x3eb9e8(0x109)]=ee(_0x27edb7[_0x3eb9e8(0x109)])),{'nextDocumentData':_0x56b73b,'cursorOffset':_0x24f77e+0x1};}function h(_0x47e99b){const _0x2d0fba=_0x42576e;let _0xf6921c=C(_0x47e99b['documentData']),_0x3864a5=w(_0xf6921c),_0x2a2a53=y(_0x3864a5,_0x47e99b[_0x2d0fba(0x14f)]);return _0x2a2a53&&g(_0xf6921c,_0x3864a5,_0x2a2a53,_0x47e99b[_0x2d0fba(0x14f)],_0x47e99b[_0x2d0fba(0xd1)])||null;}function g(_0x2a0b0d,_0x27cae2,_0x1bc05f,_0x95fec0,_0x1c470d){const _0x13d513=_0x42576e;let _0x1be98b=oe(_0x27cae2,_0x1bc05f,_0x95fec0,_0x1c470d);if(!_0x1be98b)return null;let _0x284ce2=_0x1be98b[_0x13d513(0x11a)]-0x1;return se(_0x27cae2,_0x1be98b['paragraph'][_0x13d513(0xca)],_0x1be98b[_0x13d513(0xda)][_0x13d513(0xca)]+0x1),{'nextDocumentData':_0x2a0b0d,'cursorOffset':_0x284ce2};}function _(_0x4ea2de,_0x1c83f3){const _0x3a71cb=_0x42576e;var _0x57cf4e;return _0x4ea2de==null||(_0x57cf4e=_0x4ea2de[_0x3a71cb(0xe0)])==null?void 0x0:_0x57cf4e['find'](_0x98c17a=>_0x98c17a[_0x3a71cb(0xb4)]===e[_0x3a71cb(0xe6)][_0x3a71cb(0xfe)]&&_0x98c17a[_0x3a71cb(0xca)]<=_0x1c83f3&&_0x1c83f3<=_0x98c17a[_0x3a71cb(0x141)]);}function v(_0xf4885e){const _0x5a7f0a=_0x42576e;var _0x2392a8;let _0x539053=_0xf4885e[_0x5a7f0a(0x104)][_0x5a7f0a(0xdb)];if(!_0x539053)return!0x1;let _0x1317c0=_0xf4885e['direction']==='left'?_0xf4885e[_0x5a7f0a(0x14f)]-0x1:_0xf4885e[_0x5a7f0a(0x14f)],_0x1d3f9b=_0xf4885e[_0x5a7f0a(0x117)]===_0x5a7f0a(0x151)?_0xf4885e[_0x5a7f0a(0x14f)]+0x1:_0x1317c0;return((_0x2392a8=_0x539053['blockRanges'])==null?[]:_0x2392a8)[_0x5a7f0a(0x11d)](_0x257095=>_0x257095[_0x5a7f0a(0xb4)]===e[_0x5a7f0a(0xe6)][_0x5a7f0a(0xfe)]?_0x1317c0===_0x257095[_0x5a7f0a(0xca)]||_0x1317c0===_0x257095['endIndex']||_0x1d3f9b===_0x257095[_0x5a7f0a(0xca)]||_0x1d3f9b===_0x257095[_0x5a7f0a(0x141)]:!0x1);}function y(_0x3ef281,_0x1b4a77){const _0x4d8530=_0x42576e;var _0x3914a4;return(_0x3914a4=_0x3ef281[_0x4d8530(0xe0)])==null?void 0x0:_0x3914a4[_0x4d8530(0xbe)](_0x552bf8=>{const _0x92a3e1=_0x4d8530;let _0x10882a=D(_0x3ef281,_0x552bf8);return _0x552bf8['blockType']===e['DocumentBlockRangeType']['CODE']&&_0x552bf8[_0x92a3e1(0xca)]<=_0x1b4a77&&_0x1b4a77<=_0x10882a+0x2;});}function b(_0x46d6df,_0x2b5743,_0x271ec2=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x46d6df&&_0x271ec2?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x4a1ae8,_0x37aac4,_0x10761e,_0x113d11=!0x1){const _0xbc7e3f=_0x42576e;var _0x498055;let _0x40e20d=((_0x498055=_0x4a1ae8[_0xbc7e3f(0xee)])==null?[]:_0x498055)[_0xbc7e3f(0xd8)](_0xd047e0=>_0xd047e0['startIndex']>_0x37aac4&&_0xd047e0[_0xbc7e3f(0xca)]<_0x10761e);_0x40e20d[_0xbc7e3f(0x102)]((_0x411fc4,_0x21b132)=>{const _0x449b2a=_0xbc7e3f;var _0x3a7163;_0x411fc4[_0x449b2a(0x109)]={...(_0x3a7163=_0x411fc4[_0x449b2a(0x109)])==null?{}:_0x3a7163,...b(_0x21b132===0x0,_0x21b132===_0x40e20d[_0x449b2a(0xf9)]-0x1,_0x113d11)};});}function ee(_0x4ebdf1){const _0x116db0=_0x42576e;var _0x474c60,_0x335cad;let _0x113d1d={..._0x4ebdf1==null?{}:_0x4ebdf1};return delete _0x113d1d[_0x116db0(0xe4)],delete _0x113d1d[_0x116db0(0xeb)],delete _0x113d1d[_0x116db0(0xbd)],delete _0x113d1d['spaceBelow'],((_0x474c60=_0x113d1d[_0x116db0(0xe7)])==null?void 0x0:_0x474c60['ff'])===l&&((_0x335cad=_0x113d1d[_0x116db0(0xe7)])==null?void 0x0:_0x335cad['fs'])===0xc&&delete _0x113d1d[_0x116db0(0xe7)],_0x113d1d;}function S(_0x569819,_0x325e9e){const _0x3571e1=_0x42576e;var _0x2509ef;let _0x43403b=D(_0x569819,_0x325e9e);return((_0x2509ef=_0x569819[_0x3571e1(0xee)])==null?[]:_0x2509ef)[_0x3571e1(0xd8)](_0x335b20=>_0x335b20[_0x3571e1(0xca)]>_0x325e9e[_0x3571e1(0xca)]&&_0x335b20['startIndex']<_0x43403b);}function te(_0xf46fe7,_0x11924c,_0x511a71){const _0x76c485=_0x42576e;let _0x4a16f3=E(_0xf46fe7,_0x11924c,_0x511a71),_0x320a8d=_0xf46fe7[_0x76c485(0x10b)][_0x76c485(0x143)](_0x4a16f3,_0x511a71[_0x76c485(0xca)]);return Array[_0x76c485(0x113)](_0x320a8d)['every'](_0x4c5e2e=>_0x4c5e2e===e['DataStreamTreeTokenType'][_0x76c485(0x106)]||_0x4c5e2e===e[_0x76c485(0x136)]['BLOCK_END']);}function C(_0xb66f40){const _0x6f7394=_0x42576e;return e['Tools'][_0x6f7394(0xed)](_0xb66f40);}function w(_0x585d20){const _0x1d773e=_0x42576e;if(!_0x585d20[_0x1d773e(0xdb)])throw Error('Document\x20body\x20is\x20required');return _0x585d20['body'];}function ne(_0x146c1a,_0x2a5766,_0x57e3a2){const _0x2d22e9=_0x42576e;if(_0x2a5766==null||_0x57e3a2==null){let _0x496253=re(_0x146c1a);return{'startOffset':_0x496253,'endOffset':_0x496253};}let _0x48e120=Math[_0x2d22e9(0x14e)](_0x2a5766,_0x57e3a2),_0x731401=Math['max'](_0x2a5766,_0x57e3a2);return _0x48e120===_0x731401?{'startOffset':_0x48e120,'endOffset':_0x48e120}:ae(_0x146c1a,_0x48e120,_0x731401);}function re(_0x58ab20){const _0x49d783=_0x42576e;return _0x58ab20['dataStream'][_0x49d783(0xde)](e[_0x49d783(0x136)][_0x49d783(0x12e)])?Math[_0x49d783(0xb3)](0x0,_0x58ab20[_0x49d783(0x10b)][_0x49d783(0xf9)]-0x1):_0x58ab20[_0x49d783(0x10b)]['length'];}function ie(_0x19c426,_0xba8792,_0x380be7){const _0xe44e4=_0x42576e;var _0x103e87;let _0x520a9a=Math[_0xe44e4(0x14e)](_0xba8792,_0x380be7),_0x319fd3=Math[_0xe44e4(0xb3)](_0xba8792,_0x380be7);return!!((_0x103e87=_0x19c426[_0xe44e4(0x131)])!=null&&_0x103e87[_0xe44e4(0x11d)](_0x3615b7=>_0x520a9a>_0x3615b7[_0xe44e4(0xca)]&&_0x520a9a<_0x3615b7[_0xe44e4(0x141)]||_0x319fd3>_0x3615b7[_0xe44e4(0xca)]&&_0x319fd3<_0x3615b7[_0xe44e4(0x141)]||_0x520a9a<=_0x3615b7[_0xe44e4(0xca)]&&_0x319fd3>=_0x3615b7[_0xe44e4(0x141)]));}function ae(_0x5042b9,_0x5e0290,_0x2ba594){const _0x2a1426=_0x42576e;var _0x10ece5,_0x195532;let _0x4ceb0b=[...(_0x10ece5=_0x5042b9[_0x2a1426(0xee)])==null?[]:_0x10ece5][_0x2a1426(0x115)]((_0x25b1a1,_0x446184)=>_0x25b1a1['startIndex']-_0x446184[_0x2a1426(0xca)]),_0x48319a=_0x4ceb0b[_0x2a1426(0xbe)]((_0x552416,_0x2c7ced)=>(_0x2c7ced===0x0?0x0:_0x4ceb0b[_0x2c7ced-0x1][_0x2a1426(0xca)]+0x1)<=_0x5e0290&&_0x5e0290<=_0x552416[_0x2a1426(0xca)]),_0x308f93=(_0x195532=_0x4ceb0b[_0x2a1426(0xbe)](_0x5938c2=>_0x5938c2['startIndex']>=_0x2ba594-0x1))==null?_0x4ceb0b[_0x4ceb0b['length']-0x1]:_0x195532;return{'startOffset':_0x48319a?T(_0x4ceb0b,_0x48319a):_0x5e0290,'endOffset':_0x308f93?_0x308f93[_0x2a1426(0xca)]+0x1:_0x2ba594};}function T(_0x50624d,_0x35fcc8){let _0x867420=_0x50624d['indexOf'](_0x35fcc8);return _0x867420>0x0?_0x50624d[_0x867420-0x1]['startIndex']+0x1:0x0;}function E(_0x58cdd7,_0x332dcf,_0x5af737){const _0x2ae9ed=_0x42576e;var _0x3a0a83;return Math['max'](T((_0x3a0a83=_0x58cdd7['paragraphs'])==null?[]:_0x3a0a83,_0x5af737),_0x332dcf[_0x2ae9ed(0xca)]+0x1);}function D(_0xa9d655,_0x48d0a2){const _0x57e4de=_0x42576e;return _0xa9d655[_0x57e4de(0x10b)][_0x48d0a2['endIndex']]===e[_0x57e4de(0x136)][_0x57e4de(0xdd)]?_0x48d0a2[_0x57e4de(0x141)]:_0xa9d655['dataStream'][_0x48d0a2['endIndex']+0x1]===e[_0x57e4de(0x136)][_0x57e4de(0xdd)]?_0x48d0a2[_0x57e4de(0x141)]+0x1:_0x48d0a2[_0x57e4de(0x141)];}function oe(_0xada766,_0x1391e7,_0x536deb,_0x9112dc){const _0x4e81ea=_0x42576e;var _0x2bbe3e,_0x176e47;let _0x47e5a2=D(_0xada766,_0x1391e7),_0x3c5656=((_0x2bbe3e=_0xada766[_0x4e81ea(0xee)])==null?[]:_0x2bbe3e)[_0x4e81ea(0xbe)](_0x3eef58=>_0x3eef58[_0x4e81ea(0xca)]===_0x47e5a2+0x1);if(!_0x3c5656||_0x9112dc!=null&&_0x3c5656[_0x4e81ea(0xca)]!==_0x9112dc||_0x536deb<_0x47e5a2||_0x536deb>_0x3c5656[_0x4e81ea(0xca)]+0x1||_0xada766[_0x4e81ea(0x10b)][_0x3c5656[_0x4e81ea(0xca)]]!==e[_0x4e81ea(0x136)][_0x4e81ea(0x129)])return null;let _0x5520ac=T((_0x176e47=_0xada766[_0x4e81ea(0xee)])==null?[]:_0x176e47,_0x3c5656),_0x7fe6b4=_0xada766[_0x4e81ea(0x10b)][_0x4e81ea(0x143)](_0x5520ac,_0x3c5656[_0x4e81ea(0xca)]);return Array[_0x4e81ea(0x113)](_0x7fe6b4)[_0x4e81ea(0xc2)](_0x423741=>_0x423741===e[_0x4e81ea(0x136)][_0x4e81ea(0xdd)])?{'paragraph':_0x3c5656,'endTokenOffset':_0x47e5a2}:null;}function O(_0x2ea8d5,_0x55f05e,_0x433562,_0x34c508={}){const _0x54542e=_0x42576e;var _0x2f18be,_0x480c44;if(_0x433562){if(_0x2ea8d5[_0x54542e(0x10b)]=''+_0x2ea8d5[_0x54542e(0x10b)]['slice'](0x0,_0x55f05e)+_0x433562+_0x2ea8d5['dataStream'][_0x54542e(0x143)](_0x55f05e),ce(_0x2ea8d5,_0x55f05e,_0x433562['length']),(_0x2f18be=_0x34c508[_0x54542e(0xee)])!=null&&_0x2f18be[_0x54542e(0xf9)]){var _0x27ef4f;_0x2ea8d5[_0x54542e(0xee)]=[...(_0x27ef4f=_0x2ea8d5['paragraphs'])==null?[]:_0x27ef4f,..._0x34c508[_0x54542e(0xee)][_0x54542e(0x12a)](_0x4a3752=>({..._0x4a3752,'startIndex':_0x4a3752[_0x54542e(0xca)]+_0x55f05e}))][_0x54542e(0x115)]((_0xb8b216,_0x376eb9)=>_0xb8b216[_0x54542e(0xca)]-_0x376eb9[_0x54542e(0xca)]);}if((_0x480c44=_0x34c508['blockRanges'])!=null&&_0x480c44[_0x54542e(0xf9)]){var _0x4656fd;_0x2ea8d5[_0x54542e(0xe0)]=[...(_0x4656fd=_0x2ea8d5[_0x54542e(0xe0)])==null?[]:_0x4656fd,..._0x34c508['blockRanges'][_0x54542e(0x12a)](_0x1e03ae=>({..._0x1e03ae,'startIndex':_0x1e03ae[_0x54542e(0xca)]+_0x55f05e,'endIndex':_0x1e03ae['endIndex']+_0x55f05e}))][_0x54542e(0x115)]((_0x111039,_0x1c6602)=>_0x111039[_0x54542e(0xca)]-_0x1c6602[_0x54542e(0xca)]);}}}function se(_0x49b279,_0x56ff77,_0x288385){const _0x41c252=_0x42576e;let _0x42e709=_0x288385-_0x56ff77;_0x49b279['dataStream']=''+_0x49b279[_0x41c252(0x10b)][_0x41c252(0x143)](0x0,_0x56ff77)+_0x49b279[_0x41c252(0x10b)][_0x41c252(0x143)](_0x288385),le(_0x49b279,_0x56ff77,_0x42e709);}function ce(_0xff83f1,_0x2bae8b,_0x4eafe5){const _0x2155c1=_0x42576e;_0xff83f1[_0x2155c1(0xee)]=k(_0xff83f1[_0x2155c1(0xee)],_0x2bae8b,_0x4eafe5),_0xff83f1[_0x2155c1(0xd9)]=k(_0xff83f1['sectionBreaks'],_0x2bae8b,_0x4eafe5),_0xff83f1[_0x2155c1(0x14d)]=k(_0xff83f1['customBlocks'],_0x2bae8b,_0x4eafe5),_0xff83f1[_0x2155c1(0x135)]=ue(_0xff83f1[_0x2155c1(0x135)],_0x2bae8b,_0x4eafe5),_0xff83f1['tables']=j(_0xff83f1[_0x2155c1(0x131)],_0x2bae8b,_0x4eafe5),_0xff83f1[_0x2155c1(0x100)]=j(_0xff83f1[_0x2155c1(0x100)],_0x2bae8b,_0x4eafe5),_0xff83f1[_0x2155c1(0xe1)]=j(_0xff83f1[_0x2155c1(0xe1)],_0x2bae8b,_0x4eafe5),_0xff83f1[_0x2155c1(0xe0)]=j(_0xff83f1[_0x2155c1(0xe0)],_0x2bae8b,_0x4eafe5);}function le(_0x47ce1e,_0x5c9d42,_0x5eab11){const _0x4b60fd=_0x42576e;var _0x2bab25,_0x17707d;_0x47ce1e['paragraphs']=A(_0x47ce1e[_0x4b60fd(0xee)],_0x5c9d42,_0x5eab11),_0x47ce1e[_0x4b60fd(0xd9)]=A(_0x47ce1e[_0x4b60fd(0xd9)],_0x5c9d42,_0x5eab11),_0x47ce1e[_0x4b60fd(0x14d)]=A(_0x47ce1e[_0x4b60fd(0x14d)],_0x5c9d42,_0x5eab11),_0x47ce1e['textRuns']=(_0x2bab25=M((_0x17707d=_0x47ce1e['textRuns'])==null?void 0x0:_0x17707d['map'](_0x229eea=>({..._0x229eea,'startIndex':_0x229eea['st'],'endIndex':_0x229eea['ed']})),_0x5c9d42,_0x5eab11))==null?void 0x0:_0x2bab25['map'](_0x1b5026=>{let {startIndex:_0x196734,endIndex:_0x460432,..._0x4e5a0e}=_0x1b5026;return{..._0x4e5a0e,'st':_0x196734,'ed':_0x460432};}),_0x47ce1e[_0x4b60fd(0x131)]=M(_0x47ce1e['tables'],_0x5c9d42,_0x5eab11),_0x47ce1e[_0x4b60fd(0x100)]=M(_0x47ce1e[_0x4b60fd(0x100)],_0x5c9d42,_0x5eab11),_0x47ce1e[_0x4b60fd(0xe1)]=M(_0x47ce1e[_0x4b60fd(0xe1)],_0x5c9d42,_0x5eab11),_0x47ce1e[_0x4b60fd(0xe0)]=M(_0x47ce1e[_0x4b60fd(0xe0)],_0x5c9d42,_0x5eab11);}function k(_0x3879c3,_0x503db8,_0x35da48){const _0x547180=_0x42576e;return _0x3879c3==null?void 0x0:_0x3879c3[_0x547180(0x12a)](_0x81d12c=>_0x81d12c[_0x547180(0xca)]>=_0x503db8?{..._0x81d12c,'startIndex':_0x81d12c[_0x547180(0xca)]+_0x35da48}:_0x81d12c);}function A(_0x16db0b,_0x472ffa,_0x2d1588){const _0x12204e=_0x42576e;let _0x2e43ef=_0x472ffa+_0x2d1588;return _0x16db0b==null?void 0x0:_0x16db0b['map'](_0x124699=>_0x124699[_0x12204e(0xca)]>=_0x472ffa&&_0x124699[_0x12204e(0xca)]<_0x2e43ef?null:_0x124699[_0x12204e(0xca)]>=_0x2e43ef?{..._0x124699,'startIndex':_0x124699[_0x12204e(0xca)]-_0x2d1588}:_0x124699)[_0x12204e(0xd8)](_0x2d8459=>_0x2d8459!=null);}function ue(_0x38c705,_0x1081d7,_0x412978){return _0x38c705==null?void 0x0:_0x38c705['map'](_0x49585f=>_0x49585f['st']>=_0x1081d7?{..._0x49585f,'st':_0x49585f['st']+_0x412978,'ed':_0x49585f['ed']+_0x412978}:_0x49585f['ed']>_0x1081d7?{..._0x49585f,'ed':_0x49585f['ed']+_0x412978}:_0x49585f);}function j(_0x3603e1,_0x57e72c,_0x270756){const _0x3e7f50=_0x42576e;return _0x3603e1==null?void 0x0:_0x3603e1[_0x3e7f50(0x12a)](_0x2114a2=>_0x2114a2[_0x3e7f50(0xca)]>=_0x57e72c?{..._0x2114a2,'startIndex':_0x2114a2['startIndex']+_0x270756,'endIndex':_0x2114a2[_0x3e7f50(0x141)]+_0x270756}:_0x2114a2[_0x3e7f50(0x141)]>=_0x57e72c?{..._0x2114a2,'endIndex':_0x2114a2[_0x3e7f50(0x141)]+_0x270756}:_0x2114a2);}function M(_0x2506b7,_0x520af2,_0x44bd9a){const _0x1ad810=_0x42576e;let _0x5d9e62=_0x520af2+_0x44bd9a;return _0x2506b7==null?void 0x0:_0x2506b7[_0x1ad810(0x12a)](_0xf4a9ce=>_0xf4a9ce['startIndex']>=_0x520af2&&_0xf4a9ce[_0x1ad810(0x141)]<_0x5d9e62?null:_0xf4a9ce[_0x1ad810(0xca)]>=_0x5d9e62?{..._0xf4a9ce,'startIndex':_0xf4a9ce[_0x1ad810(0xca)]-_0x44bd9a,'endIndex':_0xf4a9ce[_0x1ad810(0x141)]-_0x44bd9a}:_0xf4a9ce[_0x1ad810(0x141)]>=_0x520af2?{..._0xf4a9ce,'startIndex':_0xf4a9ce[_0x1ad810(0xca)]<_0x520af2?_0xf4a9ce['startIndex']:_0x520af2,'endIndex':Math[_0x1ad810(0xb3)](_0x520af2,_0xf4a9ce['endIndex']-_0x44bd9a)}:_0xf4a9ce)[_0x1ad810(0xd8)](_0x3f410d=>_0x3f410d!=null);}function N(_0x24167f,_0x2d0df8,_0x2b556c,_0x117042){const _0x3f3209=_0x42576e;_0x24167f==null||_0x24167f[_0x3f3209(0x102)](_0x401882=>{const _0x329f6d=_0x3f3209;_0x401882[_0x329f6d(0xca)]>=_0x2d0df8&&_0x401882[_0x329f6d(0xca)]<_0x2b556c&&(_0x401882[_0x329f6d(0xca)]+=_0x117042);});}function de(_0x37f833,_0x20aab2,_0x301e8d,_0x4b63ee){const _0x37a097=_0x42576e;_0x37f833==null||_0x37f833[_0x37a097(0x102)](_0xd38bb=>{_0xd38bb['st']>=_0x20aab2&&_0xd38bb['st']<_0x301e8d?(_0xd38bb['st']+=_0x4b63ee,_0xd38bb['ed']+=_0x4b63ee):_0xd38bb['ed']>_0x20aab2&&_0xd38bb['ed']<_0x301e8d&&(_0xd38bb['ed']+=_0x4b63ee);});}function P(_0x5f035a,_0x5a0425,_0x3c2569,_0x23e0e9){const _0x50a424=_0x42576e;_0x5f035a==null||_0x5f035a[_0x50a424(0x102)](_0x21dbb2=>{const _0x177c46=_0x50a424;_0x21dbb2[_0x177c46(0xca)]>=_0x5a0425&&_0x21dbb2[_0x177c46(0xca)]<_0x3c2569?(_0x21dbb2[_0x177c46(0xca)]+=_0x23e0e9,_0x21dbb2[_0x177c46(0x141)]+=_0x23e0e9):_0x21dbb2[_0x177c46(0x141)]>_0x5a0425&&_0x21dbb2[_0x177c46(0x141)]<_0x3c2569&&(_0x21dbb2[_0x177c46(0x141)]+=_0x23e0e9);});}function F(_0x563d30){'@babel/helpers - typeof';const _0x56ac96=_0x42576e;return F=typeof Symbol=='function'&&typeof Symbol[_0x56ac96(0xff)]==_0x56ac96(0x140)?function(_0x560469){return typeof _0x560469;}:function(_0xe7bf24){const _0x20a081=_0x56ac96;return _0xe7bf24&&typeof Symbol==_0x20a081(0x126)&&_0xe7bf24[_0x20a081(0xe5)]===Symbol&&_0xe7bf24!==Symbol[_0x20a081(0x121)]?_0x20a081(0x140):typeof _0xe7bf24;},F(_0x563d30);}function fe(_0x44f387,_0x53e674){const _0x12672f=_0x42576e;if(F(_0x44f387)!=_0x12672f(0x148)||!_0x44f387)return _0x44f387;var _0x5d6cb5=_0x44f387[Symbol['toPrimitive']];if(_0x5d6cb5!==void 0x0){var _0x2eb13b=_0x5d6cb5[_0x12672f(0x101)](_0x44f387,_0x53e674||_0x12672f(0xf2));if(F(_0x2eb13b)!=_0x12672f(0x148))return _0x2eb13b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x53e674===_0x12672f(0xba)?String:Number)(_0x44f387);}function pe(_0x4c2687){const _0x172102=_0x42576e;var _0x3befcb=fe(_0x4c2687,'string');return F(_0x3befcb)==_0x172102(0x140)?_0x3befcb:_0x3befcb+'';}function I(_0x437a51,_0x38302c,_0xb666f2){const _0x366c82=_0x42576e;return(_0x38302c=pe(_0x38302c))in _0x437a51?Object[_0x366c82(0x119)](_0x437a51,_0x38302c,{'value':_0xb666f2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x437a51[_0x38302c]=_0xb666f2,_0x437a51;}var L=class extends e[_0x42576e(0x10a)]{constructor(..._0xe2ed3f){const _0x57dd1f=_0x42576e;super(..._0xe2ed3f),I(this,'_resources',new Map()),I(this,_0x57dd1f(0x123),new n['Subject']()),I(this,_0x57dd1f(0xf1),this['_change$'][_0x57dd1f(0xbb)]());}['getCodeConfig'](_0x2c2e27,_0x5bb90c){return o(this['_resources']['get'](_0x2c2e27))['codes'][_0x5bb90c];}[_0x42576e(0x14b)](_0x25ecfa,_0x1f818a,_0x4129df){const _0x1f3408=_0x42576e;this['_setResource'](_0x25ecfa,_0x1f818a,s(this[_0x1f3408(0x107)][_0x1f3408(0xfb)](_0x25ecfa),_0x1f818a,_0x4129df));}['removeCode'](_0x50c155,_0x123aee){const _0x290488=_0x42576e;this[_0x290488(0x14c)](_0x50c155,_0x123aee,c(this[_0x290488(0x107)]['get'](_0x50c155),_0x123aee));}[_0x42576e(0xb5)](_0x17bdbc){const _0x30934c=_0x42576e;return o(this[_0x30934c(0x107)][_0x30934c(0xfb)](_0x17bdbc));}[_0x42576e(0xd7)](_0xcb806e,_0x265926){const _0x9120b1=_0x42576e;this[_0x9120b1(0x107)]['set'](_0xcb806e,o(_0x265926)),this[_0x9120b1(0x123)][_0x9120b1(0x12b)]({'unitId':_0xcb806e});}[_0x42576e(0x122)](_0x51e653){const _0x177bf7=_0x42576e;this[_0x177bf7(0x107)][_0x177bf7(0xfc)](_0x51e653),this[_0x177bf7(0x123)][_0x177bf7(0x12b)]({'unitId':_0x51e653});}[_0x42576e(0xd5)](){const _0x582d61=_0x42576e;super[_0x582d61(0xd5)](),this[_0x582d61(0x107)][_0x582d61(0x14a)](),this['_change$']['complete']();}[_0x42576e(0x14c)](_0x46ccb9,_0x11d128,_0x20de63){const _0x5dc829=_0x42576e;this[_0x5dc829(0x107)][_0x5dc829(0x12f)](_0x46ccb9,_0x20de63),this[_0x5dc829(0x123)][_0x5dc829(0x12b)]({'unitId':_0x46ccb9,'blockId':_0x11d128});}};const R={'id':'docs-code.command.insert-below','type':e[_0x42576e(0xcd)][_0x42576e(0xcf)],'handler':_0x3fc699=>{const _0x2d32b2=_0x42576e;let _0x3886c9=me(_0x3fc699);if(_0x3886c9)return _0x3fc699[_0x2d32b2(0xfb)](e[_0x2d32b2(0x10d)])[_0x2d32b2(0xc5)](B['id'],{'startOffset':_0x3886c9[_0x2d32b2(0xea)],'endOffset':_0x3886c9[_0x2d32b2(0x12d)],'unitId':_0x3886c9[_0x2d32b2(0x145)]});let _0x1a71c2=he(_0x3fc699);if(!_0x1a71c2)return!0x1;let _0x5e016b=_0x1a71c2[_0x2d32b2(0xca)]+0x1;return _0x3fc699['get'](e[_0x2d32b2(0x10d)])['syncExecuteCommand'](B['id'],{'startOffset':_0x5e016b,'endOffset':_0x5e016b});}},z={'id':_0x42576e(0xc9),'type':e[_0x42576e(0xcd)][_0x42576e(0xcf)],'handler':()=>!0x0},B={'id':_0x42576e(0x103),'type':e['CommandType'][_0x42576e(0xcf)],'handler':(_0x28e647,_0x276965)=>{const _0x529fd9=_0x42576e;var _0x4f9b2a,_0x5d4cd0,_0x4254ee;let _0x58698c=W(_0x28e647,_0x276965==null?void 0x0:_0x276965['unitId']);if(!_0x58698c)return!0x1;let _0x6fa11=G(_0x28e647),_0x2e2b6e=u({'blockId':(_0x4f9b2a=_0x276965==null?void 0x0:_0x276965[_0x529fd9(0x11c)])==null?(0x0,e['generateRandomId'])(0x6):_0x4f9b2a,'config':_0x276965==null?void 0x0:_0x276965[_0x529fd9(0x114)],'documentData':_0x58698c[_0x529fd9(0x110)],'endOffset':(_0x5d4cd0=_0x276965==null?void 0x0:_0x276965[_0x529fd9(0x12d)])==null?_0x6fa11==null?void 0x0:_0x6fa11[_0x529fd9(0x12d)]:_0x5d4cd0,'metadata':_0x58698c[_0x529fd9(0x13f)]['serialize'](_0x58698c[_0x529fd9(0x145)]),'startOffset':(_0x4254ee=_0x276965==null?void 0x0:_0x276965[_0x529fd9(0xea)])==null?_0x6fa11==null?void 0x0:_0x6fa11[_0x529fd9(0xea)]:_0x4254ee}),_0x41d57c=q(_0x58698c['commandService'],_0x58698c[_0x529fd9(0x145)],_0x58698c[_0x529fd9(0x110)],_0x2e2b6e[_0x529fd9(0xc6)],_0x2e2b6e[_0x529fd9(0x14f)]);return _0x41d57c&&_0x2e2b6e[_0x529fd9(0x142)]&&_0x58698c[_0x529fd9(0x13f)][_0x529fd9(0xd7)](_0x58698c[_0x529fd9(0x145)],_0x2e2b6e[_0x529fd9(0x142)]),_0x41d57c;}},V={'id':'docs-code.command.update','type':e[_0x42576e(0xcd)][_0x42576e(0xcf)],'handler':(_0x3d8e3b,_0x2777f1)=>{const _0x1cb036=_0x42576e;if(!_0x2777f1)return!0x1;let _0x13aeff=W(_0x3d8e3b,_0x2777f1['unitId']);if(!_0x13aeff)return!0x1;let _0x1aa745=p({'blockId':_0x2777f1[_0x1cb036(0x11c)],'config':_0x2777f1[_0x1cb036(0x114)],'documentData':_0x13aeff[_0x1cb036(0x110)],'metadata':_0x13aeff[_0x1cb036(0x13f)][_0x1cb036(0xb5)](_0x13aeff[_0x1cb036(0x145)])});return _0x1aa745[_0x1cb036(0x142)]&&_0x13aeff[_0x1cb036(0x13f)][_0x1cb036(0xd7)](_0x13aeff[_0x1cb036(0x145)],_0x1aa745[_0x1cb036(0x142)]),!0x0;}},H={'id':_0x42576e(0xf8),'type':e['CommandType']['COMMAND'],'handler':(_0x3f5f49,_0x3db614)=>{const _0x256200=_0x42576e;var _0x35e1dd,_0x43b12e;let _0x3793af=W(_0x3f5f49,_0x3db614==null?void 0x0:_0x3db614[_0x256200(0x145)]);if(!_0x3793af)return!0x1;let _0x2b2158=(_0x35e1dd=_0x3db614==null?void 0x0:_0x3db614[_0x256200(0x14f)])==null?(_0x43b12e=G(_0x3f5f49))==null?void 0x0:_0x43b12e['startOffset']:_0x35e1dd;if(_0x2b2158==null)return!0x1;let _0x43fb78=m({'cursorOffset':_0x2b2158,'documentData':_0x3793af[_0x256200(0x110)]});return _0x43fb78?q(_0x3793af[_0x256200(0x147)],_0x3793af[_0x256200(0x145)],_0x3793af[_0x256200(0x110)],_0x43fb78[_0x256200(0xc6)],_0x43fb78[_0x256200(0x14f)]):!0x1;}},U={'id':_0x42576e(0xbc),'type':e[_0x42576e(0xcd)][_0x42576e(0xcf)],'handler':(_0x1ebcb7,_0x30154d)=>{const _0x526ef8=_0x42576e;var _0x3c6492,_0xb00dd1;let _0x518051=W(_0x1ebcb7,_0x30154d==null?void 0x0:_0x30154d[_0x526ef8(0x145)]);if(!_0x518051)return!0x1;let _0x4fc7a1=(_0x3c6492=_0x30154d==null?void 0x0:_0x30154d['cursorOffset'])==null?(_0xb00dd1=G(_0x1ebcb7))==null?void 0x0:_0xb00dd1[_0x526ef8(0xea)]:_0x3c6492;if(_0x4fc7a1==null)return!0x1;let _0x35db9b=h({'cursorOffset':_0x4fc7a1,'documentData':_0x518051['previousDocumentData'],'paragraphStartIndex':_0x30154d==null?void 0x0:_0x30154d[_0x526ef8(0xd1)]});return _0x35db9b?q(_0x518051[_0x526ef8(0x147)],_0x518051[_0x526ef8(0x145)],_0x518051[_0x526ef8(0x110)],_0x35db9b[_0x526ef8(0xc6)],_0x35db9b[_0x526ef8(0x14f)]):!0x1;}};function W(_0x353a05,_0x556689){const _0x49e0f4=_0x42576e;let _0x3df12=_0x353a05[_0x49e0f4(0xfb)](e[_0x49e0f4(0xc8)]),_0x81d915=_0x556689?_0x3df12[_0x49e0f4(0xd0)](_0x556689):_0x3df12[_0x49e0f4(0x11e)](e[_0x49e0f4(0x10c)][_0x49e0f4(0x152)]);return _0x81d915?{'commandService':_0x353a05[_0x49e0f4(0xfb)](e[_0x49e0f4(0x10d)]),'model':_0x353a05[_0x49e0f4(0xfb)](L),'previousDocumentData':_0x81d915['getSnapshot'](),'unitId':_0x81d915['getUnitId']()}:null;}function G(_0x976ef9){const _0x424a06=_0x42576e;var _0xb8ed10;return(_0xb8ed10=_0x976ef9[_0x424a06(0xfb)](t['DocSelectionManagerService'])[_0x424a06(0x139)]())==null?void 0x0:_0xb8ed10[0x0];}function me(_0x43fb5a){const _0x110d87=_0x42576e;var _0x1591f3;let _0x266cc7=(_0x1591f3=_0x43fb5a['get'](e[_0x110d87(0xc8)])[_0x110d87(0x11e)](e[_0x110d87(0x10c)][_0x110d87(0x152)]))==null?void 0x0:_0x1591f3['getUnitId']();try{return _0x43fb5a[_0x110d87(0xfb)](t[_0x110d87(0xb6)])[_0x110d87(0x124)](_0x266cc7);}catch{return null;}}function he(_0x2f298f){const _0x15f248=_0x42576e;var _0x38196e,_0xae7bad,_0x37aff5;let _0x515501=G(_0x2f298f);if(!_0x515501)return null;let _0x328a9e=_0x2f298f[_0x15f248(0xfb)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType'][_0x15f248(0x152)]),_0x8c83ba=_0x328a9e==null?void 0x0:_0x328a9e[_0x15f248(0x11b)]();return _0x8c83ba?(_0x38196e=e['BuildTextUtils'][_0x15f248(0xb1)][_0x15f248(0xcc)](_0x515501,(_0xae7bad=_0x8c83ba[_0x15f248(0xee)])==null?[]:_0xae7bad,(_0x37aff5=_0x8c83ba[_0x15f248(0x10b)])==null?'':_0x37aff5)[0x0])==null?null:_0x38196e:null;}function ge(_0x3e13cc,_0x5e6b85){const _0x3224a4=_0x42576e;var _0x1807aa,_0x2adf41,_0x2a7d3e,_0x52043c,_0x59764c,_0x1cbe3c,_0x5b1bc5,_0x100ba5,_0x56b486,_0x1e0ca0,_0x22a0d1,_0x200fd0,_0x5775d0,_0x203287,_0x162b43,_0x564f21,_0x348625,_0x3a09d8;let _0x4deccb=e[_0x3224a4(0xc7)][_0x3224a4(0xb2)]();return[K(_0x4deccb,['body',_0x3224a4(0x10b)],(_0x1807aa=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x1807aa['dataStream'],(_0x2adf41=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x2adf41[_0x3224a4(0x10b)]),K(_0x4deccb,['body',_0x3224a4(0xee)],(_0x2a7d3e=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x2a7d3e[_0x3224a4(0xee)],(_0x52043c=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x52043c[_0x3224a4(0xee)]),K(_0x4deccb,[_0x3224a4(0xdb),'sectionBreaks'],(_0x59764c=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x59764c[_0x3224a4(0xd9)],(_0x1cbe3c=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x1cbe3c[_0x3224a4(0xd9)]),K(_0x4deccb,[_0x3224a4(0xdb),_0x3224a4(0x135)],(_0x5b1bc5=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x5b1bc5[_0x3224a4(0x135)],(_0x100ba5=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x100ba5[_0x3224a4(0x135)]),K(_0x4deccb,[_0x3224a4(0xdb),_0x3224a4(0x14d)],(_0x56b486=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x56b486['customBlocks'],(_0x1e0ca0=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x1e0ca0[_0x3224a4(0x14d)]),K(_0x4deccb,['body','customRanges'],(_0x22a0d1=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x22a0d1[_0x3224a4(0x100)],(_0x200fd0=_0x5e6b85['body'])==null?void 0x0:_0x200fd0[_0x3224a4(0x100)]),K(_0x4deccb,[_0x3224a4(0xdb),_0x3224a4(0xe1)],(_0x5775d0=_0x3e13cc['body'])==null?void 0x0:_0x5775d0['customDecorations'],(_0x203287=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x203287[_0x3224a4(0xe1)]),K(_0x4deccb,[_0x3224a4(0xdb),_0x3224a4(0x131)],(_0x162b43=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x162b43[_0x3224a4(0x131)],(_0x564f21=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x564f21['tables']),K(_0x4deccb,[_0x3224a4(0xdb),_0x3224a4(0xe0)],(_0x348625=_0x3e13cc[_0x3224a4(0xdb)])==null?void 0x0:_0x348625[_0x3224a4(0xe0)],(_0x3a09d8=_0x5e6b85[_0x3224a4(0xdb)])==null?void 0x0:_0x3a09d8[_0x3224a4(0xe0)])][_0x3224a4(0xd8)](Boolean)[_0x3224a4(0x10e)]((_0x9da4ed,_0x393b28)=>e[_0x3224a4(0xc7)][_0x3224a4(0x116)](_0x9da4ed,_0x393b28),null);}function K(_0x9e3cdd,_0x29b3af,_0x12bd9e,_0x44cc01){const _0x4650d3=_0x42576e;return e[_0x4650d3(0x13b)][_0x4650d3(0x125)](_0x12bd9e,_0x44cc01)?null:_0x9e3cdd[_0x4650d3(0xf3)](_0x29b3af,_0x12bd9e,_0x44cc01);}function q(_0xe97f3,_0x5f0805,_0x362ca5,_0x5e8794,_0x53a545){const _0x104ca0=_0x42576e;let _0x1b180d=ge(_0x362ca5,_0x5e8794);return _0x1b180d?!!_0xe97f3['syncExecuteCommand'](t[_0x104ca0(0xaf)]['id'],{'unitId':_0x5f0805,'actions':_0x1b180d,'textRanges':[{'startOffset':_0x53a545,'endOffset':_0x53a545,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J='DOC_CODE_PLUGIN';var _e=_0x42576e(0x130),ve=_0x42576e(0xef);function _0x5804(){const _0x204c23=['getParagraphsInRange','CommandType','UniverDocsPlugin','COMMAND','getUniverDocInstance','paragraphStartIndex','javascript','setConfig','UniverLicensePlugin','dispose','registerPluginResource','deserialize','filter','sectionBreaks','paragraph','body','Inject','BLOCK_END','endsWith','DependentOn','blockRanges','customDecorations','monospace','6965368LFAVPO','indentEnd','constructor','DocumentBlockRangeType','textStyle','onStarting','buildExitCodeActions','startOffset','indentStart','docs-code.config','deepClone','paragraphs','0.25.0-insiders.20260613-5ff0e1f','_configService','change$','default','replaceOp','join','codes','DocsCodeExitCommand','toStringTag','docs-code.command.exit','length','DocsCodeInsertBelowCommand','get','delete','3706791gzhnQK','CODE','iterator','customRanges','call','forEach','docs-code.command.insert','documentData','_docsCodeModel','BLOCK_START','_resources','10fcOAAj','paragraphStyle','Disposable','dataStream','UniverInstanceType','ICommandService','reduce','_resourceManagerService','previousDocumentData','version','IConfigService','from','config','sort','compose','direction','add','defineProperty','endTokenOffset','getBody','blockId','some','getCurrentUnitOfType','IResourceManagerService','spaceBelow','prototype','removeUnit','_change$','consumeInsertRange','diffValue','function','paragraphId','findCodeRangeAtOffset','PARAGRAPH','map','next','4102116itAZUt','endOffset','SECTION_BREAK','set','@univerjs-pro/docs-code','tables','DocsCodeConsumeBoundaryDeleteCommand','Injector','DOCS_CODE_PLUGIN','textRuns','DataStreamTreeTokenType','34839giBGPN','9tDbBYD','getTextRanges','Plugin','Tools','2297685xfXHeU','merge','metadata','model','symbol','endIndex','nextMetadata','slice','type','unitId','DocsCodeUpdateCommand','commandService','object','DocsCodeModel','clear','setCodeConfig','_setResource','customBlocks','min','cursorOffset','_commandService','right','UNIVER_DOC','isCodeBoundaryDelete','RichTextEditingMutation','DocsCodeCancelEmptyParagraphCommand','range','getInstance','max','blockType','serialize','DocContentInsertService','parse','10509544YIEWdM','13902889IryFKr','string','asObservable','docs-code.command.cancel-empty-paragraph','spaceAbove','find','buildCancelEmptyCodeParagraphActions','pluginName','normalizeDocsCodeConfig','every','_config','stringify','syncExecuteCommand','nextDocumentData','JSONX','IUniverInstanceService','docs-code.command.consume-boundary-delete','startIndex','_injector'];_0x5804=function(){return _0x204c23;};return _0x5804();}const Y={};function X(_0xacaf14,_0x18208d){return function(_0x8b2bb5,_0x2efa8b){_0x18208d(_0x8b2bb5,_0x2efa8b,_0xacaf14);};}function Z(_0x260084,_0x2e6aeb,_0x2569a2,_0x3a3cd2){const _0x37f3c3=_0x42576e;var _0x5d615b=arguments[_0x37f3c3(0xf9)],_0x3b8987=_0x5d615b<0x3?_0x2e6aeb:_0x3a3cd2===null?_0x3a3cd2=Object['getOwnPropertyDescriptor'](_0x2e6aeb,_0x2569a2):_0x3a3cd2,_0x408a34;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x37f3c3(0x126))_0x3b8987=Reflect['decorate'](_0x260084,_0x2e6aeb,_0x2569a2,_0x3a3cd2);else{for(var _0x300101=_0x260084['length']-0x1;_0x300101>=0x0;_0x300101--)(_0x408a34=_0x260084[_0x300101])&&(_0x3b8987=(_0x5d615b<0x3?_0x408a34(_0x3b8987):_0x5d615b>0x3?_0x408a34(_0x2e6aeb,_0x2569a2,_0x3b8987):_0x408a34(_0x2e6aeb,_0x2569a2))||_0x3b8987);}return _0x5d615b>0x3&&_0x3b8987&&Object[_0x37f3c3(0x119)](_0x2e6aeb,_0x2569a2,_0x3b8987),_0x3b8987;}let Q=class extends e[_0x42576e(0x10a)]{constructor(_0x1b8d59,_0x2eea46){const _0x11907f=_0x42576e;super(),this['_resourceManagerService']=_0x1b8d59,this[_0x11907f(0x105)]=_0x2eea46,this['_initResource']();}['_initResource'](){const _0x4871f1=_0x42576e;this['disposeWithMe'](this[_0x4871f1(0x10f)][_0x4871f1(0xd6)]({'pluginName':J,'businesses':[e[_0x4871f1(0x10c)][_0x4871f1(0x152)]],'toJson':_0x1674de=>JSON[_0x4871f1(0xc4)](this[_0x4871f1(0x105)][_0x4871f1(0xb5)](_0x1674de)),'parseJson':_0x46b7ed=>o(JSON[_0x4871f1(0xb7)](_0x46b7ed)),'onLoad':(_0x4684d3,_0x1c0593)=>this[_0x4871f1(0x105)][_0x4871f1(0xd7)](_0x4684d3,_0x1c0593),'onUnLoad':_0x51de22=>this[_0x4871f1(0x105)]['removeUnit'](_0x51de22)}));}};Q=Z([X(0x0,e[_0x42576e(0x11f)]),X(0x1,(0x0,e[_0x42576e(0xdc)])(L))],Q);let $=class extends e[_0x42576e(0x13a)]{constructor(_0x3435b1=Y,_0x13e02e,_0x994708,_0x1303b1){const _0x2af8bd=_0x42576e;super(),this[_0x2af8bd(0xc3)]=_0x3435b1,this['_injector']=_0x13e02e,this[_0x2af8bd(0x150)]=_0x994708,this[_0x2af8bd(0xf0)]=_0x1303b1;let {..._0x3723be}=(0x0,e[_0x2af8bd(0x13d)])({},Y,this['_config']);this['_configService'][_0x2af8bd(0xd3)](_0x2af8bd(0xec),_0x3723be);}[_0x42576e(0xe8)](){const _0x39829e=_0x42576e;this[_0x39829e(0xcb)][_0x39829e(0x118)]([L]),this[_0x39829e(0xcb)]['add']([Q]),this[_0x39829e(0xcb)][_0x39829e(0xfb)](L),this['_injector']['get'](Q),[B,R,V,H,U,z][_0x39829e(0x102)](_0x1e3243=>this['disposeWithMe'](this[_0x39829e(0x150)]['registerCommand'](_0x1e3243)));}};I($,_0x42576e(0xc0),J),I($,'packageName',_e),I($,_0x42576e(0x111),ve),I($,_0x42576e(0x144),e[_0x42576e(0x10c)]['UNIVER_DOC']),$=Z([(0x0,e[_0x42576e(0xdf)])(r[_0x42576e(0xd4)],t[_0x42576e(0xce)]),X(0x1,(0x0,e[_0x42576e(0xdc)])(e[_0x42576e(0x133)])),X(0x2,e[_0x42576e(0x10d)]),X(0x3,e[_0x42576e(0x112)])],$),exports['DEFAULT_CODE_CONFIG']=i,exports[_0x42576e(0x134)]=J,exports[_0x42576e(0xb0)]=U,exports[_0x42576e(0x132)]=z,exports[_0x42576e(0xf6)]=H,exports[_0x42576e(0xfa)]=R,exports['DocsCodeInsertCommand']=B,exports[_0x42576e(0x149)]=L,exports[_0x42576e(0x146)]=V,Object[_0x42576e(0x119)](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x42576e(0xbf)]=h,exports[_0x42576e(0xe9)]=m,exports['buildInsertCodeActions']=u,exports['buildUpdateCodeActions']=p,exports[_0x42576e(0x128)]=_,exports[_0x42576e(0x153)]=v,exports[_0x42576e(0xc1)]=a;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x32cc06=_0x3109;(function(_0x584d46,_0x565e67){var _0x17033c=_0x3109,_0x43d8f0=_0x584d46();while(!![]){try{var _0x311a6d=-parseInt(_0x17033c(0x197))/0x1+parseInt(_0x17033c(0x190))/0x2+-parseInt(_0x17033c(0x1b5))/0x3+parseInt(_0x17033c(0x17b))/0x4*(-parseInt(_0x17033c(0x1b9))/0x5)+-parseInt(_0x17033c(0x19d))/0x6+-parseInt(_0x17033c(0x184))/0x7*(-parseInt(_0x17033c(0x1a3))/0x8)+parseInt(_0x17033c(0x1b8))/0x9;if(_0x311a6d===_0x565e67)break;else _0x43d8f0['push'](_0x43d8f0['shift']());}catch(_0x350194){_0x43d8f0['push'](_0x43d8f0['shift']());}}}(_0x1bdc,0x9a740));import{DocsCodeCancelEmptyParagraphCommand as _0x3e88be,DocsCodeExitCommand as _0x2acfb4,DocsCodeInsertCommand as _0x902187,DocsCodeModel as _0x4e097f,DocsCodeUpdateCommand as _0x55a75c,normalizeDocsCodeConfig as _0x32b8ae}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x27d002,DocumentBlockRangeType as _0xefddf8,ICommandService as _0x41d2b2,Inject as _0x4ffd1a,Injector as _0x4ccfbe,generateRandomId as _0x198240}from'@univerjs/core';function _0x1bdc(){var _0x1e94b6=['get','getCode','insertCode','symbol','2244830FNpyzy','length','cancelEmptyParagraph','body','getRange','_injector','prototype','815185xVMcuX','save','getCodeAt','cancelEmptyCodeParagraph','createInstance','endIndex','6932214jetCYl','blockRanges','_blockId','_getBlockRanges','defineProperty','join','40lGNOKm','toPrimitive','decorate','updateConfig','default','getText','syncExecuteCommand','startIndex','_getDocumentData','call','blockType','exitCode','config','blockId','getId','findCodeByText','string','describe','214767fCQClK','constructor','text','20020905HRAVWj','216865mjPCnZ','PARAGRAPH','CODE','_unitId','SECTION_BREAK','_createFDocumentCode','iterator','76XOCdwR','object','map','BLOCK_START','_getBlockRange','findCodes','getConfig','find','dataStream','212674JbeSBp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','from','filter','function','_document','getCodes','includes'];_0x1bdc=function(){return _0x1e94b6;};return _0x1bdc();}import{FDocument as _0xe85f03}from'@univerjs/docs/facade';function p(_0x475078){'@babel/helpers - typeof';var _0x5d8ab5=_0x3109;return p=typeof Symbol==_0x5d8ab5(0x188)&&typeof Symbol[_0x5d8ab5(0x17a)]==_0x5d8ab5(0x18f)?function(_0x1527d9){return typeof _0x1527d9;}:function(_0x2b07e0){var _0x32bcd1=_0x5d8ab5;return _0x2b07e0&&typeof Symbol==_0x32bcd1(0x188)&&_0x2b07e0[_0x32bcd1(0x1b6)]===Symbol&&_0x2b07e0!==Symbol[_0x32bcd1(0x196)]?_0x32bcd1(0x18f):typeof _0x2b07e0;},p(_0x475078);}function m(_0x46f54a,_0xeb8b62){var _0x5e85b2=_0x3109;if(p(_0x46f54a)!='object'||!_0x46f54a)return _0x46f54a;var _0x1cc00e=_0x46f54a[Symbol[_0x5e85b2(0x1a4)]];if(_0x1cc00e!==void 0x0){var _0x20a35=_0x1cc00e[_0x5e85b2(0x1ac)](_0x46f54a,_0xeb8b62||_0x5e85b2(0x1a7));if(p(_0x20a35)!=_0x5e85b2(0x17c))return _0x20a35;throw TypeError(_0x5e85b2(0x185));}return(_0xeb8b62===_0x5e85b2(0x1b3)?String:Number)(_0x46f54a);}function h(_0x39353e){var _0x9a12fb=_0x3109,_0x3dd04a=m(_0x39353e,_0x9a12fb(0x1b3));return p(_0x3dd04a)==_0x9a12fb(0x18f)?_0x3dd04a:_0x3dd04a+'';}function g(_0x5f559a,_0x36ecc9,_0x453ed2){var _0x3a2040=_0x3109;return(_0x36ecc9=h(_0x36ecc9))in _0x5f559a?Object[_0x3a2040(0x1a1)](_0x5f559a,_0x36ecc9,{'value':_0x453ed2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f559a[_0x36ecc9]=_0x453ed2,_0x5f559a;}function _(_0x56f7e2,_0x488c10){return function(_0x17ca06,_0x29483d){_0x488c10(_0x17ca06,_0x29483d,_0x56f7e2);};}function v(_0x101b56,_0x144ae5,_0x5897ae,_0x17c1f0){var _0x103e38=_0x3109,_0x377cbc=arguments[_0x103e38(0x191)],_0xed1a08=_0x377cbc<0x3?_0x144ae5:_0x17c1f0===null?_0x17c1f0=Object['getOwnPropertyDescriptor'](_0x144ae5,_0x5897ae):_0x17c1f0,_0x23be39;if(typeof Reflect==_0x103e38(0x17c)&&typeof Reflect[_0x103e38(0x1a5)]==_0x103e38(0x188))_0xed1a08=Reflect[_0x103e38(0x1a5)](_0x101b56,_0x144ae5,_0x5897ae,_0x17c1f0);else{for(var _0x2ae601=_0x101b56[_0x103e38(0x191)]-0x1;_0x2ae601>=0x0;_0x2ae601--)(_0x23be39=_0x101b56[_0x2ae601])&&(_0xed1a08=(_0x377cbc<0x3?_0x23be39(_0xed1a08):_0x377cbc>0x3?_0x23be39(_0x144ae5,_0x5897ae,_0xed1a08):_0x23be39(_0x144ae5,_0x5897ae))||_0xed1a08);}return _0x377cbc>0x3&&_0xed1a08&&Object['defineProperty'](_0x144ae5,_0x5897ae,_0xed1a08),_0xed1a08;}let y=class{constructor(_0x5bd17f,_0x5ddb55,_0x498605){var _0x19a766=_0x3109;this[_0x19a766(0x189)]=_0x5bd17f,this[_0x19a766(0x19f)]=_0x5ddb55,this['_injector']=_0x498605,g(this,_0x19a766(0x1bc),void 0x0),this['_unitId']=this[_0x19a766(0x189)][_0x19a766(0x1b1)]();}[_0x32cc06(0x1b1)](){var _0x5919ed=_0x32cc06;return this[_0x5919ed(0x19f)];}[_0x32cc06(0x194)](){var _0x2c034e=_0x32cc06;let _0xb9c85e=this[_0x2c034e(0x17f)]();return _0xb9c85e?{'blockId':_0xb9c85e[_0x2c034e(0x1b0)],'endIndex':_0xb9c85e[_0x2c034e(0x19c)],'startIndex':_0xb9c85e[_0x2c034e(0x1aa)]}:null;}[_0x32cc06(0x1a8)](){var _0x490df4=_0x32cc06,_0x348f01;let _0x32f7ea=this[_0x490df4(0x17f)](),_0x4e207a=(_0x348f01=this[_0x490df4(0x1ab)]()[_0x490df4(0x193)])==null?void 0x0:_0x348f01[_0x490df4(0x183)];return!_0x32f7ea||!_0x4e207a?'':b(_0x4e207a['slice'](_0x32f7ea['startIndex']+0x1,_0x32f7ea[_0x490df4(0x19c)]));}[_0x32cc06(0x1b4)](){var _0x235d47=_0x32cc06;let _0x299a2c=this[_0x235d47(0x194)]();return _0x299a2c?{..._0x299a2c,'config':this[_0x235d47(0x181)](),'text':this[_0x235d47(0x1a8)](),'type':_0xefddf8[_0x235d47(0x1bb)]}:null;}[_0x32cc06(0x181)](){var _0x1ac4fb=_0x32cc06;return _0x32b8ae(this[_0x1ac4fb(0x195)][_0x1ac4fb(0x18c)](_0x4e097f)['getCodeConfig'](this[_0x1ac4fb(0x1bc)],this[_0x1ac4fb(0x19f)]));}[_0x32cc06(0x1a6)](_0x3b8a3a){var _0xde77f2=_0x32cc06;return this[_0xde77f2(0x195)][_0xde77f2(0x18c)](_0x41d2b2)['syncExecuteCommand'](_0x55a75c['id'],{'blockId':this[_0xde77f2(0x19f)],'config':_0x3b8a3a[_0xde77f2(0x1af)],'unitId':this[_0xde77f2(0x1bc)]});}['exit'](_0x5746a2){var _0x51ad42=_0x32cc06;return this[_0x51ad42(0x195)][_0x51ad42(0x18c)](_0x41d2b2)[_0x51ad42(0x1a9)](_0x2acfb4['id'],{'cursorOffset':_0x5746a2,'unitId':this[_0x51ad42(0x1bc)]});}[_0x32cc06(0x192)](_0x188157={}){var _0x236be6=_0x32cc06;return this[_0x236be6(0x195)][_0x236be6(0x18c)](_0x41d2b2)[_0x236be6(0x1a9)](_0x3e88be['id'],{..._0x188157,'unitId':this[_0x236be6(0x1bc)]});}[_0x32cc06(0x1ab)](){var _0x366ff1=_0x32cc06;return this[_0x366ff1(0x189)][_0x366ff1(0x198)]();}[_0x32cc06(0x17f)](){var _0x53feaf=_0x32cc06,_0x521a1a;let _0x5ca813=(_0x521a1a=this[_0x53feaf(0x1ab)]()[_0x53feaf(0x193)])==null||(_0x521a1a=_0x521a1a[_0x53feaf(0x19e)])==null?void 0x0:_0x521a1a[_0x53feaf(0x182)](_0x3d5bd0=>_0x3d5bd0[_0x53feaf(0x1b0)]===this[_0x53feaf(0x19f)]&&_0x3d5bd0['blockType']===_0xefddf8[_0x53feaf(0x1bb)]);return _0x5ca813==null?null:_0x5ca813;}};y=v([_(0x2,_0x4ffd1a(_0x4ccfbe))],y);function b(_0x328b4f){var _0x1e29a7=_0x32cc06;return Array[_0x1e29a7(0x186)](_0x328b4f)[_0x1e29a7(0x17d)](_0xc955a8=>_0xc955a8===_0x27d002[_0x1e29a7(0x1ba)]?'\x0a':_0xc955a8)[_0x1e29a7(0x187)](_0x13fdc4=>_0x13fdc4!==_0x27d002[_0x1e29a7(0x17e)]&&_0x13fdc4!==_0x27d002['BLOCK_END']&&_0x13fdc4!==_0x27d002[_0x1e29a7(0x1bd)])[_0x1e29a7(0x1a2)]('')['replace'](/\n$/,'');}function _0x3109(_0x245723,_0x24ab4f){_0x245723=_0x245723-0x179;var _0x1bdc4b=_0x1bdc();var _0x3109df=_0x1bdc4b[_0x245723];return _0x3109df;}var x=class extends _0xe85f03{[_0x32cc06(0x18a)](){var _0xc71e15=_0x32cc06;return this[_0xc71e15(0x1a0)]()['filter'](_0x1bae12=>_0x1bae12[_0xc71e15(0x1ad)]===_0xefddf8[_0xc71e15(0x1bb)])[_0xc71e15(0x17d)](_0x580373=>this['_createFDocumentCode'](_0x580373['blockId']));}[_0x32cc06(0x18d)](_0x3e9ead){var _0x61388=_0x32cc06;return this['_getBlockRanges']()['some'](_0x2cc378=>_0x2cc378[_0x61388(0x1b0)]===_0x3e9ead&&_0x2cc378[_0x61388(0x1ad)]===_0xefddf8[_0x61388(0x1bb)])?this['_createFDocumentCode'](_0x3e9ead):null;}[_0x32cc06(0x199)](_0x46d526){var _0x179588=_0x32cc06;let _0x525ad4=this[_0x179588(0x1a0)]()[_0x179588(0x182)](_0x46735f=>_0x46735f[_0x179588(0x1ad)]===_0xefddf8[_0x179588(0x1bb)]&&_0x46735f[_0x179588(0x1aa)]<=_0x46d526&&_0x46d526<=_0x46735f[_0x179588(0x19c)]);return _0x525ad4?this[_0x179588(0x179)](_0x525ad4[_0x179588(0x1b0)]):null;}[_0x32cc06(0x1b2)](_0x36bf3d){var _0x38866d=_0x32cc06,_0x3bde68;return(_0x3bde68=this[_0x38866d(0x180)](_0x36bf3d)[0x0])==null?null:_0x3bde68;}['findCodes'](_0x40e8a5){var _0x546491=_0x32cc06;let _0x2cef31=typeof _0x40e8a5==_0x546491(0x1b3)?{'text':_0x40e8a5}:_0x40e8a5;return this[_0x546491(0x18a)]()['filter'](_0x39bd81=>!(_0x2cef31['blockId']&&_0x39bd81['getId']()!==_0x2cef31[_0x546491(0x1b0)]||_0x2cef31['text']&&!_0x39bd81[_0x546491(0x1a8)]()[_0x546491(0x18b)](_0x2cef31[_0x546491(0x1b7)])));}[_0x32cc06(0x18e)](_0x284f96={}){var _0x4c6335=_0x32cc06,_0x3d1cef;let _0x538883=this['_injector'][_0x4c6335(0x18c)](_0x41d2b2),_0x45a6c9=(_0x3d1cef=_0x284f96[_0x4c6335(0x1b0)])==null?_0x198240(0x6):_0x3d1cef;return _0x538883[_0x4c6335(0x1a9)](_0x902187['id'],{..._0x284f96,'blockId':_0x45a6c9,'unitId':this[_0x4c6335(0x1b1)]()})?this[_0x4c6335(0x179)](_0x45a6c9):null;}[_0x32cc06(0x1ae)](_0x2f2981){var _0x3955f0=_0x32cc06;return this['_injector'][_0x3955f0(0x18c)](_0x41d2b2)[_0x3955f0(0x1a9)](_0x2acfb4['id'],{'cursorOffset':_0x2f2981,'unitId':this[_0x3955f0(0x1b1)]()});}[_0x32cc06(0x19a)](_0x17c271={}){var _0x277f38=_0x32cc06;return this[_0x277f38(0x195)][_0x277f38(0x18c)](_0x41d2b2)[_0x277f38(0x1a9)](_0x3e88be['id'],{..._0x17c271,'unitId':this['getId']()});}[_0x32cc06(0x1a0)](){var _0x54250f=_0x32cc06,_0x3d7bf8,_0x3a952a;return(_0x3d7bf8=(_0x3a952a=this[_0x54250f(0x198)]()[_0x54250f(0x193)])==null?void 0x0:_0x3a952a['blockRanges'])==null?[]:_0x3d7bf8;}[_0x32cc06(0x179)](_0x1ccecf){var _0x4ad32e=_0x32cc06;return this[_0x4ad32e(0x195)][_0x4ad32e(0x19b)](y,this,_0x1ccecf);}};_0xe85f03['extend'](x);export{y as FDocumentCode};
1
+ var _0x9faa5c=_0x1070;(function(_0x490d13,_0xc7d3a4){var _0xc9dfa4=_0x1070,_0x209066=_0x490d13();while(!![]){try{var _0xe2ba1e=parseInt(_0xc9dfa4(0x1e8))/0x1*(parseInt(_0xc9dfa4(0x1c5))/0x2)+-parseInt(_0xc9dfa4(0x1c3))/0x3+-parseInt(_0xc9dfa4(0x1b8))/0x4+parseInt(_0xc9dfa4(0x1ba))/0x5*(-parseInt(_0xc9dfa4(0x1be))/0x6)+parseInt(_0xc9dfa4(0x1e0))/0x7+parseInt(_0xc9dfa4(0x1df))/0x8*(-parseInt(_0xc9dfa4(0x1f1))/0x9)+parseInt(_0xc9dfa4(0x1c0))/0xa*(parseInt(_0xc9dfa4(0x1a9))/0xb);if(_0xe2ba1e===_0xc7d3a4)break;else _0x209066['push'](_0x209066['shift']());}catch(_0x1fb4fa){_0x209066['push'](_0x209066['shift']());}}}(_0x4960,0xb3dda));import{DocsCodeCancelEmptyParagraphCommand as _0x498f13,DocsCodeExitCommand as _0x456d68,DocsCodeInsertCommand as _0x52c4be,DocsCodeModel as _0x5ba651,DocsCodeUpdateCommand as _0x2c6dd2,normalizeDocsCodeConfig as _0x279c7c}from'@univerjs-pro/docs-code';function _0x4960(){var _0x201e42=['192oxeFkR','5845497PpHYtt','paragraph','BLOCK_END','string','_getDocumentData','findCodes','_getBlockRange','body','31087VRaZBs','join','_document','length','find','blockRanges','decorate','defineProperty','dataStream','188847NxoLju','insertCode','object','33yTBRpn','BLOCK_START','prototype','describe','function','extend','_blockId','get','getConfig','blockType','updateConfig','getText','getCode','save','CODE','4584500glbSXf','constructor','4155835FolvVL','includes','_getBlockRanges','symbol','6rioqcS','cancelEmptyParagraph','8099290mBLSZI','findCodeByText','getId','3965433nKruFv','default','82abNDIB','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','text','toPrimitive','getCodeConfig','cancelEmptyCodeParagraph','some','getType','getRange','getCodeAt','syncExecuteCommand','call','map','blockId','_createFDocumentCode','filter','_unitId','endIndex','SECTION_BREAK','slice','startIndex','replace','_injector','getKey'];_0x4960=function(){return _0x201e42;};return _0x4960();}import{DataStreamTreeTokenType as _0xc101be,DocumentBlockRangeType as _0x259fe0,ICommandService as _0x22a214,Inject as _0x2c49bf,Injector as _0x13dfdf,generateRandomId as _0x1d07a4}from'@univerjs/core';import{FDocument as _0x21a962}from'@univerjs/docs/facade';function p(_0x312c4d){'@babel/helpers - typeof';var _0x3c387f=_0x1070;return p=typeof Symbol==_0x3c387f(0x1ad)&&typeof Symbol[_0x3c387f(0x1c6)]==_0x3c387f(0x1bd)?function(_0x38c158){return typeof _0x38c158;}:function(_0x39f610){var _0x2bf0ef=_0x3c387f;return _0x39f610&&typeof Symbol=='function'&&_0x39f610[_0x2bf0ef(0x1b9)]===Symbol&&_0x39f610!==Symbol[_0x2bf0ef(0x1ab)]?'symbol':typeof _0x39f610;},p(_0x312c4d);}function m(_0x16aed3,_0x4668ac){var _0x4b10a8=_0x1070;if(p(_0x16aed3)!=_0x4b10a8(0x1a8)||!_0x16aed3)return _0x16aed3;var _0x4841cc=_0x16aed3[Symbol[_0x4b10a8(0x1ca)]];if(_0x4841cc!==void 0x0){var _0x54761c=_0x4841cc[_0x4b10a8(0x1d2)](_0x16aed3,_0x4668ac||_0x4b10a8(0x1c4));if(p(_0x54761c)!='object')return _0x54761c;throw TypeError(_0x4b10a8(0x1c7));}return(_0x4668ac===_0x4b10a8(0x1e3)?String:Number)(_0x16aed3);}function h(_0x4d7151){var _0x1aaa32=_0x1070,_0x1d7031=m(_0x4d7151,_0x1aaa32(0x1e3));return p(_0x1d7031)==_0x1aaa32(0x1bd)?_0x1d7031:_0x1d7031+'';}function g(_0x353020,_0x5be1ee,_0x5e1ad1){var _0x19acdf=_0x1070;return(_0x5be1ee=h(_0x5be1ee))in _0x353020?Object[_0x19acdf(0x1ef)](_0x353020,_0x5be1ee,{'value':_0x5e1ad1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x353020[_0x5be1ee]=_0x5e1ad1,_0x353020;}function _(_0x3977dc,_0x2fd735){return function(_0x4fbc04,_0xa449f4){_0x2fd735(_0x4fbc04,_0xa449f4,_0x3977dc);};}function _0x1070(_0x20c2f4,_0x1e9170){_0x20c2f4=_0x20c2f4-0x1a7;var _0x496054=_0x4960();var _0x107005=_0x496054[_0x20c2f4];return _0x107005;}function v(_0x4af206,_0x28c613,_0x238213,_0x53a565){var _0x5b9353=_0x1070,_0x4ed88f=arguments[_0x5b9353(0x1eb)],_0x19795a=_0x4ed88f<0x3?_0x28c613:_0x53a565===null?_0x53a565=Object['getOwnPropertyDescriptor'](_0x28c613,_0x238213):_0x53a565,_0x127a4a;if(typeof Reflect==_0x5b9353(0x1a8)&&typeof Reflect[_0x5b9353(0x1ee)]==_0x5b9353(0x1ad))_0x19795a=Reflect[_0x5b9353(0x1ee)](_0x4af206,_0x28c613,_0x238213,_0x53a565);else{for(var _0x19a108=_0x4af206[_0x5b9353(0x1eb)]-0x1;_0x19a108>=0x0;_0x19a108--)(_0x127a4a=_0x4af206[_0x19a108])&&(_0x19795a=(_0x4ed88f<0x3?_0x127a4a(_0x19795a):_0x4ed88f>0x3?_0x127a4a(_0x28c613,_0x238213,_0x19795a):_0x127a4a(_0x28c613,_0x238213))||_0x19795a);}return _0x4ed88f>0x3&&_0x19795a&&Object[_0x5b9353(0x1ef)](_0x28c613,_0x238213,_0x19795a),_0x19795a;}let y=class{constructor(_0x3cfaed,_0x1624ed,_0x33c853){var _0x2d406c=_0x1070;this[_0x2d406c(0x1ea)]=_0x3cfaed,this[_0x2d406c(0x1af)]=_0x1624ed,this['_injector']=_0x33c853,g(this,_0x2d406c(0x1d7),void 0x0),this['_unitId']=this[_0x2d406c(0x1ea)]['getId']();}[_0x9faa5c(0x1c2)](){var _0x477c20=_0x9faa5c;return this[_0x477c20(0x1af)];}[_0x9faa5c(0x1cf)](){var _0x18755e=_0x9faa5c;let _0x33632b=this['_getBlockRange']();return _0x33632b?{'blockId':_0x33632b[_0x18755e(0x1d4)],'endIndex':_0x33632b[_0x18755e(0x1d8)],'startIndex':_0x33632b[_0x18755e(0x1db)]}:null;}[_0x9faa5c(0x1b4)](){var _0x361129=_0x9faa5c,_0xf37df4;let _0x15f5e0=this[_0x361129(0x1e6)](),_0x49be09=(_0xf37df4=this[_0x361129(0x1e4)]()[_0x361129(0x1e7)])==null?void 0x0:_0xf37df4[_0x361129(0x1f0)];return!_0x15f5e0||!_0x49be09?'':b(_0x49be09[_0x361129(0x1da)](_0x15f5e0[_0x361129(0x1db)]+0x1,_0x15f5e0[_0x361129(0x1d8)]));}[_0x9faa5c(0x1ac)](){var _0x23c341=_0x9faa5c;let _0x2caf82=this[_0x23c341(0x1cf)]();return _0x2caf82?{..._0x2caf82,'config':this[_0x23c341(0x1b1)](),'text':this[_0x23c341(0x1b4)](),'type':_0x259fe0[_0x23c341(0x1b7)]}:null;}[_0x9faa5c(0x1b1)](){var _0x1ed060=_0x9faa5c;return _0x279c7c(this[_0x1ed060(0x1dd)][_0x1ed060(0x1b0)](_0x5ba651)[_0x1ed060(0x1cb)](this['_unitId'],this['_blockId']));}[_0x9faa5c(0x1b3)](_0x5a1fba){var _0x5742f9=_0x9faa5c;return this[_0x5742f9(0x1dd)][_0x5742f9(0x1b0)](_0x22a214)['syncExecuteCommand'](_0x2c6dd2['id'],{'blockId':this['_blockId'],'config':_0x5a1fba['config'],'unitId':this[_0x5742f9(0x1d7)]});}['exit'](_0x1ff3d1){var _0x59e8db=_0x9faa5c;return this[_0x59e8db(0x1dd)][_0x59e8db(0x1b0)](_0x22a214)[_0x59e8db(0x1d1)](_0x456d68['id'],{'cursorOffset':_0x1ff3d1,'unitId':this['_unitId']});}[_0x9faa5c(0x1bf)](_0x9c4d31={}){var _0x26ece7=_0x9faa5c;return this[_0x26ece7(0x1dd)]['get'](_0x22a214)[_0x26ece7(0x1d1)](_0x498f13['id'],{..._0x9c4d31,'unitId':this[_0x26ece7(0x1d7)]});}[_0x9faa5c(0x1e4)](){var _0x4c77c3=_0x9faa5c;return this[_0x4c77c3(0x1ea)][_0x4c77c3(0x1b6)]();}['_getBlockRange'](){var _0xc9f2d5=_0x9faa5c,_0x748980;let _0x2f3252=(_0x748980=this['_getDocumentData']()[_0xc9f2d5(0x1e7)])==null||(_0x748980=_0x748980[_0xc9f2d5(0x1ed)])==null?void 0x0:_0x748980[_0xc9f2d5(0x1ec)](_0x356444=>_0x356444[_0xc9f2d5(0x1d4)]===this[_0xc9f2d5(0x1af)]&&_0x356444[_0xc9f2d5(0x1b2)]===_0x259fe0[_0xc9f2d5(0x1b7)]);return _0x2f3252==null?null:_0x2f3252;}};y=v([_(0x2,_0x2c49bf(_0x13dfdf))],y);function b(_0x611da1){var _0x2fa847=_0x9faa5c;return Array['from'](_0x611da1)[_0x2fa847(0x1d3)](_0xa3f077=>_0xa3f077===_0xc101be['PARAGRAPH']?'\x0a':_0xa3f077)[_0x2fa847(0x1d6)](_0x2182c2=>_0x2182c2!==_0xc101be[_0x2fa847(0x1aa)]&&_0x2182c2!==_0xc101be[_0x2fa847(0x1e2)]&&_0x2182c2!==_0xc101be[_0x2fa847(0x1d9)])[_0x2fa847(0x1e9)]('')[_0x2fa847(0x1dc)](/\n$/,'');}var x=class extends _0x21a962{['getCodes'](){var _0x5f2a72=_0x9faa5c;return this[_0x5f2a72(0x1bc)]()['filter'](_0x3f13fd=>_0x3f13fd[_0x5f2a72(0x1b2)]===_0x259fe0[_0x5f2a72(0x1b7)])['map'](_0x5031e8=>this[_0x5f2a72(0x1d5)](_0x5031e8[_0x5f2a72(0x1d4)]));}[_0x9faa5c(0x1b5)](_0x27a2ec){var _0xae3006=_0x9faa5c;return this[_0xae3006(0x1bc)]()[_0xae3006(0x1cd)](_0x54ff3f=>_0x54ff3f[_0xae3006(0x1d4)]===_0x27a2ec&&_0x54ff3f[_0xae3006(0x1b2)]===_0x259fe0['CODE'])?this[_0xae3006(0x1d5)](_0x27a2ec):null;}[_0x9faa5c(0x1d0)](_0x3e9798){var _0x436adc=_0x9faa5c;let _0x13fa15=this[_0x436adc(0x1bc)]()[_0x436adc(0x1ec)](_0x2820ea=>_0x2820ea[_0x436adc(0x1b2)]===_0x259fe0['CODE']&&_0x2820ea[_0x436adc(0x1db)]<=_0x3e9798&&_0x3e9798<=_0x2820ea[_0x436adc(0x1d8)]);return _0x13fa15?this[_0x436adc(0x1d5)](_0x13fa15['blockId']):null;}[_0x9faa5c(0x1c1)](_0x1c0154){var _0x2c4236=_0x9faa5c,_0x5c0d65;return(_0x5c0d65=this[_0x2c4236(0x1e5)](_0x1c0154)[0x0])==null?null:_0x5c0d65;}[_0x9faa5c(0x1e5)](_0x40a35c){var _0x59a532=_0x9faa5c;let _0x83e05d=typeof _0x40a35c==_0x59a532(0x1e3)?{'text':_0x40a35c}:_0x40a35c;return this['getCodes']()[_0x59a532(0x1d6)](_0x425696=>!(_0x83e05d['blockId']&&_0x425696[_0x59a532(0x1c2)]()!==_0x83e05d[_0x59a532(0x1d4)]||_0x83e05d[_0x59a532(0x1c9)]&&!_0x425696['getText']()[_0x59a532(0x1bb)](_0x83e05d['text'])));}[_0x9faa5c(0x1a7)](_0x2fb400={},_0x3cdfc8={}){var _0x572aa3=_0x9faa5c,_0x507288;let _0x9909de=this['_injector'][_0x572aa3(0x1b0)](_0x22a214),_0x8c1663=S(_0x2fb400)?{..._0x3cdfc8,...C(_0x2fb400)}:_0x2fb400,_0x676718=(_0x507288=_0x8c1663[_0x572aa3(0x1d4)])==null?_0x1d07a4(0x6):_0x507288;return _0x9909de['syncExecuteCommand'](_0x52c4be['id'],{..._0x8c1663,'blockId':_0x676718,'unitId':this[_0x572aa3(0x1c2)]()})?this[_0x572aa3(0x1d5)](_0x676718):null;}['exitCode'](_0x22a9ae){var _0x4f646c=_0x9faa5c;return this['_injector']['get'](_0x22a214)[_0x4f646c(0x1d1)](_0x456d68['id'],{'cursorOffset':_0x22a9ae,'unitId':this[_0x4f646c(0x1c2)]()});}[_0x9faa5c(0x1cc)](_0x3c6253={}){var _0x1a028c=_0x9faa5c;return this['_injector'][_0x1a028c(0x1b0)](_0x22a214)['syncExecuteCommand'](_0x498f13['id'],{..._0x3c6253,'unitId':this[_0x1a028c(0x1c2)]()});}[_0x9faa5c(0x1bc)](){var _0x1ba628=_0x9faa5c,_0x37dd40,_0x5ac15d;return(_0x37dd40=(_0x5ac15d=this[_0x1ba628(0x1b6)]()[_0x1ba628(0x1e7)])==null?void 0x0:_0x5ac15d[_0x1ba628(0x1ed)])==null?[]:_0x37dd40;}['_createFDocumentCode'](_0x2b5176){var _0x47b3e1=_0x9faa5c;return this[_0x47b3e1(0x1dd)][_0x47b3e1(0x1c8)](y,this,_0x2b5176);}};function S(_0x181789){var _0xfa6c92=_0x9faa5c;return typeof _0x181789=='object'&&!!_0x181789&&typeof _0x181789[_0xfa6c92(0x1de)]==_0xfa6c92(0x1ad)&&typeof _0x181789[_0xfa6c92(0x1cf)]==_0xfa6c92(0x1ad)&&typeof _0x181789['getType']==_0xfa6c92(0x1ad)&&_0x181789[_0xfa6c92(0x1ce)]()===_0xfa6c92(0x1e1);}function C(_0x477590){var _0x277954=_0x9faa5c;return _0x477590[_0x277954(0x1cf)]();}_0x21a962[_0x9faa5c(0x1ae)](x);export{y as FDocumentCode};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x36d246=_0x1458;(function(_0x255f20,_0x407554){const _0x4aa0c6=_0x1458,_0x41dce1=_0x255f20();while(!![]){try{const _0xcd4860=-parseInt(_0x4aa0c6(0x18e))/0x1*(parseInt(_0x4aa0c6(0x1b5))/0x2)+parseInt(_0x4aa0c6(0x1bf))/0x3+-parseInt(_0x4aa0c6(0x17d))/0x4+parseInt(_0x4aa0c6(0x1eb))/0x5+-parseInt(_0x4aa0c6(0x174))/0x6+parseInt(_0x4aa0c6(0x1d7))/0x7+-parseInt(_0x4aa0c6(0x1a4))/0x8;if(_0xcd4860===_0x407554)break;else _0x41dce1['push'](_0x41dce1['shift']());}catch(_0x2b4b2a){_0x41dce1['push'](_0x41dce1['shift']());}}}(_0x4482,0xab7eb));import{BuildTextUtils as _0x1df61f,CommandType as _0x3ba3c1,DataStreamTreeTokenType as _0x11bfde,DependentOn as _0x50e2e6,Disposable as _0x4b8a05,DocumentBlockRangeType as _0x47897f,ICommandService as _0x5b0f49,IConfigService as _0x5f2336,IResourceManagerService as _0x1a8f7f,IUniverInstanceService as _0x152e8f,Inject as _0x13ce68,Injector as _0x4d48d7,JSONX as _0x2c9aac,Plugin as _0x26ec4c,Tools as _0x16aa24,UniverInstanceType as _0x41c201,generateRandomId as _0x522144,merge as _0x157a02}from'@univerjs/core';import{DocContentInsertService as _0x5bc796,DocSelectionManagerService as _0x130243,RichTextEditingMutation as _0x15ecd9,UniverDocsPlugin as _0x3b5e01}from'@univerjs/docs';import{Subject as _0x1b3649}from'rxjs';import{UniverLicensePlugin as _0x9b0c05}from'@univerjs-pro/license';const S={'language':_0x36d246(0x1b3),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0xb46737){return{...S,..._0xb46737};}function w(_0x4b46b3){const _0xc3d7d3=_0x36d246;var _0xfcd661;let _0xb63446=(_0xfcd661=_0x4b46b3==null?void 0x0:_0x4b46b3['codes'])==null?{}:_0xfcd661;return{'codes':Object[_0xc3d7d3(0x196)](Object['entries'](_0xb63446)[_0xc3d7d3(0x1ec)](([_0x1c6d3e,_0x1b6e21])=>[_0x1c6d3e,C(_0x1b6e21)]))};}function T(_0x180d63,_0x13243b,_0xe5d400){const _0x45ded5=_0x36d246;let _0xeb788f=w(_0x180d63);return _0xeb788f[_0x45ded5(0x1ed)][_0x13243b]=C({..._0xeb788f[_0x45ded5(0x1ed)][_0x13243b],..._0xe5d400}),_0xeb788f;}function _0x1458(_0x181b6c,_0x2ebd37){_0x181b6c=_0x181b6c-0x168;const _0x448210=_0x4482();let _0x1458c6=_0x448210[_0x181b6c];return _0x1458c6;}function ne(_0x689283,_0x1ac0d7){const _0x54f297=_0x36d246;let _0x34f231=w(_0x689283);return delete _0x34f231[_0x54f297(0x1ed)][_0x1ac0d7],_0x34f231;}const re='monospace';function E(_0x4a1347){const _0x24ec6f=_0x36d246;var _0x118b7f,_0x103a01,_0x314042;let _0x5b1153=k(_0x4a1347['documentData']),_0x4d9c84=A(_0x5b1153),_0x5a19da=ae(_0x4a1347['startOffset'],_0x4a1347[_0x24ec6f(0x19e)]),_0x1d40db=_0x5a19da?(_0x118b7f=_0x4d9c84[_0x24ec6f(0x19d)])==null?void 0x0:_0x118b7f[_0x24ec6f(0x1bc)](_0x423306=>_0x423306[_0x24ec6f(0x1a5)]===_0x5a19da[_0x24ec6f(0x1d8)]&&_0x423306[_0x24ec6f(0x1e1)]+0x1===_0x5a19da[_0x24ec6f(0x19e)]):void 0x0,{startOffset:_0x1d5e0f,endOffset:_0x395d15}=_0x1d40db?_0x5a19da:ge(_0x4d9c84,_0x4a1347['startOffset'],_0x4a1347[_0x24ec6f(0x19e)]),_0x191184=ve(_0x4d9c84,_0x1d5e0f,_0x395d15),_0x59ae68=(_0x103a01=_0x1d40db==null?void 0x0:_0x1d40db['blockId'])==null?_0x4a1347[_0x24ec6f(0x1cc)]:_0x103a01,_0xd9c2f3=T(_0x4a1347[_0x24ec6f(0x188)],_0x59ae68,{...S,..._0x4a1347[_0x24ec6f(0x16d)]});if(_0x1d40db)return _0x1d40db['blockType']=_0x47897f[_0x24ec6f(0x18c)],ie(_0x4d9c84,_0x1d5e0f,_0x395d15),fe(_0x4d9c84,_0x1d5e0f,_0x395d15,_0x191184),{'nextDocumentData':_0x5b1153,'nextMetadata':_0xd9c2f3,'cursorOffset':_0x1d5e0f+0x1};if(_0x1d5e0f===_0x395d15){let _0x3e96e4=''+_0x11bfde['BLOCK_START']+_0x11bfde[_0x24ec6f(0x189)]+_0x11bfde[_0x24ec6f(0x1aa)];return P(_0x4d9c84,_0x1d5e0f,_0x3e96e4,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':O(!0x0,!0x0,_0x191184)}],'blockRanges':[{'blockId':_0x59ae68,'blockType':_0x47897f['CODE'],'startIndex':0x0,'endIndex':_0x3e96e4[_0x24ec6f(0x1a3)]-0x1}]}),{'nextDocumentData':_0x5b1153,'nextMetadata':_0xd9c2f3,'cursorOffset':_0x1d5e0f+0x1};}return P(_0x4d9c84,_0x395d15,_0x11bfde[_0x24ec6f(0x1aa)]),P(_0x4d9c84,_0x1d5e0f,_0x11bfde[_0x24ec6f(0x1ca)]),fe(_0x4d9c84,_0x1d5e0f,_0x395d15+0x1,_0x191184),_0x4d9c84['blockRanges']=[...(_0x314042=_0x4d9c84[_0x24ec6f(0x19d)])==null?[]:_0x314042,{'blockId':_0x59ae68,'blockType':_0x47897f['CODE'],'startIndex':_0x1d5e0f,'endIndex':_0x395d15+0x1}][_0x24ec6f(0x17f)]((_0x34e022,_0x1b77e4)=>_0x34e022['startIndex']-_0x1b77e4['startIndex']),{'nextDocumentData':_0x5b1153,'nextMetadata':_0xd9c2f3,'cursorOffset':_0x1d5e0f+0x1};}function ie(_0x24afa5,_0x8bfbbd,_0x38674b){const _0x42c5fb=_0x36d246;var _0xf3d73f;((_0xf3d73f=_0x24afa5[_0x42c5fb(0x17e)])==null?[]:_0xf3d73f)[_0x42c5fb(0x1d1)](_0x4ec129=>_0x4ec129[_0x42c5fb(0x1a5)]>_0x8bfbbd&&_0x4ec129[_0x42c5fb(0x1a5)]<_0x38674b)[_0x42c5fb(0x191)](_0x2323c4=>{const _0x4aebab=_0x42c5fb;var _0x353792;let _0x4e7780={...(_0x353792=_0x2323c4['paragraphStyle'])==null?{}:_0x353792};delete _0x4e7780[_0x4aebab(0x1d2)],delete _0x4e7780[_0x4aebab(0x178)],_0x2323c4[_0x4aebab(0x1bd)]=_0x4e7780;});}function ae(_0x52b0cd,_0x41f091){const _0x5c8b60=_0x36d246;return _0x52b0cd==null||_0x41f091==null||_0x52b0cd===_0x41f091?null:{'startOffset':Math[_0x5c8b60(0x16b)](_0x52b0cd,_0x41f091),'endOffset':Math[_0x5c8b60(0x1ce)](_0x52b0cd,_0x41f091)};}function D(_0x9462eb){const _0xb74f74=_0x36d246;return{'nextDocumentData':k(_0x9462eb['documentData']),'nextMetadata':T(_0x9462eb['metadata'],_0x9462eb[_0xb74f74(0x1cc)],_0x9462eb[_0xb74f74(0x16d)]),'cursorOffset':0x0};}function oe(_0x576061){const _0x303efc=_0x36d246;var _0x41f6c6,_0x4ef5a2;let _0x16b9f1=k(_0x576061[_0x303efc(0x18d)]),_0x4a1812=A(_0x16b9f1),_0x334f9b=de(_0x4a1812,_0x576061['cursorOffset']);if(!_0x334f9b)return null;let _0x9aeb9c=me(_0x4a1812,_0x334f9b),_0x105a6a=_0x9aeb9c[_0x9aeb9c[_0x303efc(0x1a3)]-0x1];if(!_0x105a6a||!he(_0x4a1812,_0x334f9b,_0x105a6a)||_0x576061[_0x303efc(0x170)]<_0x105a6a[_0x303efc(0x1a5)])return null;let _0x2d3f75=M(_0x4a1812,_0x334f9b,_0x105a6a);if(_0x2d3f75>=_0x334f9b[_0x303efc(0x1e1)])return null;_0x4a1812['dataStream']=[_0x4a1812['dataStream'][_0x303efc(0x1b2)](0x0,_0x2d3f75),_0x11bfde['BLOCK_END'],_0x4a1812[_0x303efc(0x184)][_0x303efc(0x1b2)](_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)]),_0x4a1812[_0x303efc(0x184)][_0x303efc(0x1b2)](_0x334f9b[_0x303efc(0x1e1)]+0x1)][_0x303efc(0x1e0)](''),z(_0x4a1812['paragraphs'],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),z(_0x4a1812[_0x303efc(0x192)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),z(_0x4a1812[_0x303efc(0x1a6)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),Te(_0x4a1812[_0x303efc(0x181)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),B(_0x4a1812[_0x303efc(0x1e6)],_0x2d3f75,_0x334f9b['endIndex'],0x1),B(_0x4a1812[_0x303efc(0x16a)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),B(_0x4a1812[_0x303efc(0x175)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),(_0x41f6c6=_0x4a1812[_0x303efc(0x19d)])==null||_0x41f6c6[_0x303efc(0x191)](_0x14bee0=>{const _0xdba521=_0x303efc;_0x14bee0===_0x334f9b||_0x14bee0[_0xdba521(0x1cc)]===_0x334f9b['blockId']?_0x14bee0[_0xdba521(0x1e1)]=_0x2d3f75:_0x14bee0[_0xdba521(0x1a5)]>=_0x2d3f75&&_0x14bee0[_0xdba521(0x1a5)]<_0x334f9b[_0xdba521(0x1e1)]&&(_0x14bee0[_0xdba521(0x1a5)]+=0x1,_0x14bee0['endIndex']+=0x1);});let _0x485fef=me(_0x4a1812,{..._0x334f9b,'endIndex':_0x2d3f75});_0x485fef['forEach']((_0x2b3fc2,_0x102dc2)=>{const _0x5e509c=_0x303efc;var _0x2921d2;_0x2b3fc2['paragraphStyle']={...(_0x2921d2=_0x2b3fc2[_0x5e509c(0x1bd)])==null?{}:_0x2921d2,...O(_0x102dc2===0x0,_0x102dc2===_0x485fef[_0x5e509c(0x1a3)]-0x1)};});let _0x150df0=(_0x4ef5a2=_0x4a1812['paragraphs'])==null?void 0x0:_0x4ef5a2[_0x303efc(0x1bc)](_0xda243=>_0xda243['startIndex']===_0x2d3f75+0x1);return _0x150df0&&(_0x150df0[_0x303efc(0x1bd)]=pe(_0x150df0[_0x303efc(0x1bd)])),{'nextDocumentData':_0x16b9f1,'cursorOffset':_0x2d3f75+0x1};}function se(_0x27348a){const _0x594b6a=_0x36d246;let _0x37ef4b=k(_0x27348a[_0x594b6a(0x18d)]),_0x838f40=A(_0x37ef4b),_0x1b98c2=de(_0x838f40,_0x27348a['cursorOffset']);return _0x1b98c2&&ce(_0x37ef4b,_0x838f40,_0x1b98c2,_0x27348a['cursorOffset'],_0x27348a[_0x594b6a(0x1e5)])||null;}function ce(_0x27869b,_0x5e68c4,_0x2b993e,_0x1004ac,_0x9baaa8){const _0xa9288=_0x36d246;let _0x3a9835=be(_0x5e68c4,_0x2b993e,_0x1004ac,_0x9baaa8);if(!_0x3a9835)return null;let _0xd3e3ce=_0x3a9835['endTokenOffset']-0x1;return xe(_0x5e68c4,_0x3a9835['paragraph'][_0xa9288(0x1a5)],_0x3a9835[_0xa9288(0x1ab)][_0xa9288(0x1a5)]+0x1),{'nextDocumentData':_0x27869b,'cursorOffset':_0xd3e3ce};}function le(_0x2d8a6d,_0x124a0e){const _0x23ecde=_0x36d246;var _0x4f3a50;return _0x2d8a6d==null||(_0x4f3a50=_0x2d8a6d[_0x23ecde(0x19d)])==null?void 0x0:_0x4f3a50[_0x23ecde(0x1bc)](_0x4c6768=>_0x4c6768['blockType']===_0x47897f[_0x23ecde(0x18c)]&&_0x4c6768['startIndex']<=_0x124a0e&&_0x124a0e<=_0x4c6768[_0x23ecde(0x1e1)]);}function ue(_0x2fae78){const _0x2bb63d=_0x36d246;var _0xdf7d3e;let _0x1cbdaf=_0x2fae78[_0x2bb63d(0x18d)]['body'];if(!_0x1cbdaf)return!0x1;let _0x5000d5=_0x2fae78[_0x2bb63d(0x17b)]===_0x2bb63d(0x1af)?_0x2fae78[_0x2bb63d(0x170)]-0x1:_0x2fae78[_0x2bb63d(0x170)],_0xac756d=_0x2fae78['direction']===_0x2bb63d(0x1be)?_0x2fae78['cursorOffset']+0x1:_0x5000d5;return((_0xdf7d3e=_0x1cbdaf[_0x2bb63d(0x19d)])==null?[]:_0xdf7d3e)[_0x2bb63d(0x1d0)](_0x4d2e3c=>_0x4d2e3c[_0x2bb63d(0x1a0)]===_0x47897f[_0x2bb63d(0x18c)]?_0x5000d5===_0x4d2e3c[_0x2bb63d(0x1a5)]||_0x5000d5===_0x4d2e3c[_0x2bb63d(0x1e1)]||_0xac756d===_0x4d2e3c['startIndex']||_0xac756d===_0x4d2e3c[_0x2bb63d(0x1e1)]:!0x1);}function de(_0x5c0ef0,_0x36ad16){const _0x8e16b9=_0x36d246;var _0x433d40;return(_0x433d40=_0x5c0ef0['blockRanges'])==null?void 0x0:_0x433d40[_0x8e16b9(0x1bc)](_0x3849c1=>{const _0x4314f9=_0x8e16b9;let _0xf91492=N(_0x5c0ef0,_0x3849c1);return _0x3849c1[_0x4314f9(0x1a0)]===_0x47897f[_0x4314f9(0x18c)]&&_0x3849c1['startIndex']<=_0x36ad16&&_0x36ad16<=_0xf91492+0x2;});}function O(_0x1e8d79,_0x2272d2,_0x2a30d0=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1e8d79&&_0x2a30d0?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':re,'fs':0xc}};}function fe(_0x4a29d3,_0x87f05d,_0x4a488d,_0x27deaf=!0x1){const _0x4328a6=_0x36d246;var _0x5d554e;let _0x4579f7=((_0x5d554e=_0x4a29d3['paragraphs'])==null?[]:_0x5d554e)['filter'](_0x5bebf6=>_0x5bebf6[_0x4328a6(0x1a5)]>_0x87f05d&&_0x5bebf6[_0x4328a6(0x1a5)]<_0x4a488d);_0x4579f7[_0x4328a6(0x191)]((_0x39970e,_0x48809f)=>{const _0x1285e3=_0x4328a6;var _0x54e14e;_0x39970e[_0x1285e3(0x1bd)]={...(_0x54e14e=_0x39970e[_0x1285e3(0x1bd)])==null?{}:_0x54e14e,...O(_0x48809f===0x0,_0x48809f===_0x4579f7['length']-0x1,_0x27deaf)};});}function pe(_0x31fa01){const _0x1425fa=_0x36d246;var _0x410212,_0x45e944;let _0x570ae8={..._0x31fa01==null?{}:_0x31fa01};return delete _0x570ae8['indentEnd'],delete _0x570ae8['indentStart'],delete _0x570ae8[_0x1425fa(0x1d2)],delete _0x570ae8['spaceBelow'],((_0x410212=_0x570ae8['textStyle'])==null?void 0x0:_0x410212['ff'])===re&&((_0x45e944=_0x570ae8['textStyle'])==null?void 0x0:_0x45e944['fs'])===0xc&&delete _0x570ae8['textStyle'],_0x570ae8;}function me(_0x391cc2,_0x282c7a){const _0x5999fb=_0x36d246;var _0x3132b3;let _0x45c594=N(_0x391cc2,_0x282c7a);return((_0x3132b3=_0x391cc2[_0x5999fb(0x17e)])==null?[]:_0x3132b3)[_0x5999fb(0x1d1)](_0x10d251=>_0x10d251[_0x5999fb(0x1a5)]>_0x282c7a[_0x5999fb(0x1a5)]&&_0x10d251[_0x5999fb(0x1a5)]<_0x45c594);}function he(_0x2770b0,_0x5afa8b,_0x252003){const _0x5ede42=_0x36d246;let _0x220715=M(_0x2770b0,_0x5afa8b,_0x252003),_0x4f445d=_0x2770b0[_0x5ede42(0x184)][_0x5ede42(0x1b2)](_0x220715,_0x252003[_0x5ede42(0x1a5)]);return Array[_0x5ede42(0x1a9)](_0x4f445d)[_0x5ede42(0x193)](_0x4abac2=>_0x4abac2===_0x11bfde[_0x5ede42(0x1ca)]||_0x4abac2===_0x11bfde[_0x5ede42(0x1aa)]);}function k(_0x845ce8){const _0x230aca=_0x36d246;return _0x16aa24[_0x230aca(0x1b8)](_0x845ce8);}function A(_0x129a85){const _0x53e485=_0x36d246;if(!_0x129a85[_0x53e485(0x1c1)])throw Error('Document\x20body\x20is\x20required');return _0x129a85[_0x53e485(0x1c1)];}function ge(_0x1f10de,_0x4ffadf,_0x5ce141){const _0x4a3c9c=_0x36d246;if(_0x4ffadf==null||_0x5ce141==null){let _0x33be7b=_e(_0x1f10de);return{'startOffset':_0x33be7b,'endOffset':_0x33be7b};}let _0x22e6be=Math[_0x4a3c9c(0x16b)](_0x4ffadf,_0x5ce141),_0x128c0d=Math['max'](_0x4ffadf,_0x5ce141);return _0x22e6be===_0x128c0d?{'startOffset':_0x22e6be,'endOffset':_0x22e6be}:ye(_0x1f10de,_0x22e6be,_0x128c0d);}function _e(_0x33129f){const _0x485d8f=_0x36d246;return _0x33129f['dataStream'][_0x485d8f(0x185)](_0x11bfde[_0x485d8f(0x1bb)])?Math[_0x485d8f(0x1ce)](0x0,_0x33129f[_0x485d8f(0x184)][_0x485d8f(0x1a3)]-0x1):_0x33129f['dataStream'][_0x485d8f(0x1a3)];}function ve(_0x21ca6c,_0x51f757,_0x3c2206){const _0x3af1ba=_0x36d246;var _0x345947;let _0x3e48ca=Math[_0x3af1ba(0x16b)](_0x51f757,_0x3c2206),_0x55515c=Math[_0x3af1ba(0x1ce)](_0x51f757,_0x3c2206);return!!((_0x345947=_0x21ca6c[_0x3af1ba(0x1e6)])!=null&&_0x345947[_0x3af1ba(0x1d0)](_0x442944=>_0x3e48ca>_0x442944[_0x3af1ba(0x1a5)]&&_0x3e48ca<_0x442944[_0x3af1ba(0x1e1)]||_0x55515c>_0x442944[_0x3af1ba(0x1a5)]&&_0x55515c<_0x442944[_0x3af1ba(0x1e1)]||_0x3e48ca<=_0x442944[_0x3af1ba(0x1a5)]&&_0x55515c>=_0x442944[_0x3af1ba(0x1e1)]));}function ye(_0x53f596,_0x37ffb4,_0x35ddde){const _0x1515ba=_0x36d246;var _0x288e53,_0x2b7c9c;let _0x1221a8=[...(_0x288e53=_0x53f596['paragraphs'])==null?[]:_0x288e53][_0x1515ba(0x17f)]((_0x234d1f,_0x211cf2)=>_0x234d1f['startIndex']-_0x211cf2[_0x1515ba(0x1a5)]),_0x2f2cef=_0x1221a8[_0x1515ba(0x1bc)]((_0x429bb9,_0xa8c56f)=>(_0xa8c56f===0x0?0x0:_0x1221a8[_0xa8c56f-0x1][_0x1515ba(0x1a5)]+0x1)<=_0x37ffb4&&_0x37ffb4<=_0x429bb9[_0x1515ba(0x1a5)]),_0x3becfa=(_0x2b7c9c=_0x1221a8[_0x1515ba(0x1bc)](_0x37a1c6=>_0x37a1c6[_0x1515ba(0x1a5)]>=_0x35ddde-0x1))==null?_0x1221a8[_0x1221a8['length']-0x1]:_0x2b7c9c;return{'startOffset':_0x2f2cef?j(_0x1221a8,_0x2f2cef):_0x37ffb4,'endOffset':_0x3becfa?_0x3becfa[_0x1515ba(0x1a5)]+0x1:_0x35ddde};}function j(_0x33ee50,_0x54c6b7){const _0x48bd4a=_0x36d246;let _0x41cade=_0x33ee50[_0x48bd4a(0x177)](_0x54c6b7);return _0x41cade>0x0?_0x33ee50[_0x41cade-0x1][_0x48bd4a(0x1a5)]+0x1:0x0;}function M(_0x4ffd82,_0x55544b,_0x58e740){const _0x410d24=_0x36d246;var _0x317865;return Math[_0x410d24(0x1ce)](j((_0x317865=_0x4ffd82['paragraphs'])==null?[]:_0x317865,_0x58e740),_0x55544b[_0x410d24(0x1a5)]+0x1);}function N(_0x5bfbfd,_0x37de5a){const _0x3c57c0=_0x36d246;return _0x5bfbfd['dataStream'][_0x37de5a[_0x3c57c0(0x1e1)]]===_0x11bfde['BLOCK_END']?_0x37de5a[_0x3c57c0(0x1e1)]:_0x5bfbfd[_0x3c57c0(0x184)][_0x37de5a['endIndex']+0x1]===_0x11bfde[_0x3c57c0(0x1aa)]?_0x37de5a[_0x3c57c0(0x1e1)]+0x1:_0x37de5a['endIndex'];}function be(_0x2dede0,_0x5c2846,_0x4b71dc,_0x87f003){const _0x4ff48d=_0x36d246;var _0x1861dd,_0x22b9c0;let _0x5db7f9=N(_0x2dede0,_0x5c2846),_0x53a309=((_0x1861dd=_0x2dede0['paragraphs'])==null?[]:_0x1861dd)[_0x4ff48d(0x1bc)](_0x898e08=>_0x898e08['startIndex']===_0x5db7f9+0x1);if(!_0x53a309||_0x87f003!=null&&_0x53a309[_0x4ff48d(0x1a5)]!==_0x87f003||_0x4b71dc<_0x5db7f9||_0x4b71dc>_0x53a309[_0x4ff48d(0x1a5)]+0x1||_0x2dede0[_0x4ff48d(0x184)][_0x53a309[_0x4ff48d(0x1a5)]]!==_0x11bfde[_0x4ff48d(0x189)])return null;let _0x1c1b06=j((_0x22b9c0=_0x2dede0[_0x4ff48d(0x17e)])==null?[]:_0x22b9c0,_0x53a309),_0x32901b=_0x2dede0[_0x4ff48d(0x184)][_0x4ff48d(0x1b2)](_0x1c1b06,_0x53a309[_0x4ff48d(0x1a5)]);return Array[_0x4ff48d(0x1a9)](_0x32901b)[_0x4ff48d(0x193)](_0x591c7e=>_0x591c7e===_0x11bfde[_0x4ff48d(0x1aa)])?{'paragraph':_0x53a309,'endTokenOffset':_0x5db7f9}:null;}function P(_0x2d374a,_0x434174,_0x22cc8f,_0x47dd4b={}){const _0x3e09be=_0x36d246;var _0x23fcba,_0x3a132e;if(_0x22cc8f){if(_0x2d374a['dataStream']=''+_0x2d374a[_0x3e09be(0x184)][_0x3e09be(0x1b2)](0x0,_0x434174)+_0x22cc8f+_0x2d374a[_0x3e09be(0x184)]['slice'](_0x434174),Se(_0x2d374a,_0x434174,_0x22cc8f[_0x3e09be(0x1a3)]),(_0x23fcba=_0x47dd4b['paragraphs'])!=null&&_0x23fcba[_0x3e09be(0x1a3)]){var _0x592978;_0x2d374a['paragraphs']=[...(_0x592978=_0x2d374a['paragraphs'])==null?[]:_0x592978,..._0x47dd4b[_0x3e09be(0x17e)]['map'](_0x271611=>({..._0x271611,'startIndex':_0x271611[_0x3e09be(0x1a5)]+_0x434174}))][_0x3e09be(0x17f)]((_0x5a278e,_0x442a3d)=>_0x5a278e['startIndex']-_0x442a3d[_0x3e09be(0x1a5)]);}if((_0x3a132e=_0x47dd4b['blockRanges'])!=null&&_0x3a132e['length']){var _0x372ca1;_0x2d374a['blockRanges']=[...(_0x372ca1=_0x2d374a[_0x3e09be(0x19d)])==null?[]:_0x372ca1,..._0x47dd4b['blockRanges']['map'](_0x3e3ddc=>({..._0x3e3ddc,'startIndex':_0x3e3ddc[_0x3e09be(0x1a5)]+_0x434174,'endIndex':_0x3e3ddc[_0x3e09be(0x1e1)]+_0x434174}))]['sort']((_0x5efe0b,_0x7cdcc2)=>_0x5efe0b[_0x3e09be(0x1a5)]-_0x7cdcc2['startIndex']);}}}function xe(_0x437901,_0x16d3b7,_0x3b3e98){const _0x363967=_0x36d246;let _0x3417d7=_0x3b3e98-_0x16d3b7;_0x437901[_0x363967(0x184)]=''+_0x437901[_0x363967(0x184)]['slice'](0x0,_0x16d3b7)+_0x437901[_0x363967(0x184)][_0x363967(0x1b2)](_0x3b3e98),Ce(_0x437901,_0x16d3b7,_0x3417d7);}function Se(_0x27d92c,_0x3eec44,_0x5b80f5){const _0x459c8a=_0x36d246;_0x27d92c[_0x459c8a(0x17e)]=F(_0x27d92c[_0x459c8a(0x17e)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x192)]=F(_0x27d92c[_0x459c8a(0x192)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x1a6)]=F(_0x27d92c['customBlocks'],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x181)]=we(_0x27d92c[_0x459c8a(0x181)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x1e6)]=L(_0x27d92c[_0x459c8a(0x1e6)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x16a)]=L(_0x27d92c[_0x459c8a(0x16a)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x175)]=L(_0x27d92c[_0x459c8a(0x175)],_0x3eec44,_0x5b80f5),_0x27d92c['blockRanges']=L(_0x27d92c['blockRanges'],_0x3eec44,_0x5b80f5);}function Ce(_0x27f587,_0x5d6e2b,_0x71b6e0){const _0x351f33=_0x36d246;var _0xbeea63,_0x3f94d1;_0x27f587[_0x351f33(0x17e)]=I(_0x27f587[_0x351f33(0x17e)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x192)]=I(_0x27f587['sectionBreaks'],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x1a6)]=I(_0x27f587[_0x351f33(0x1a6)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x181)]=(_0xbeea63=R((_0x3f94d1=_0x27f587[_0x351f33(0x181)])==null?void 0x0:_0x3f94d1[_0x351f33(0x1ec)](_0x49679c=>({..._0x49679c,'startIndex':_0x49679c['st'],'endIndex':_0x49679c['ed']})),_0x5d6e2b,_0x71b6e0))==null?void 0x0:_0xbeea63[_0x351f33(0x1ec)](_0xf96d2a=>{let {startIndex:_0x2279b6,endIndex:_0x2e2082,..._0x30fbae}=_0xf96d2a;return{..._0x30fbae,'st':_0x2279b6,'ed':_0x2e2082};}),_0x27f587[_0x351f33(0x1e6)]=R(_0x27f587[_0x351f33(0x1e6)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x16a)]=R(_0x27f587['customRanges'],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x175)]=R(_0x27f587[_0x351f33(0x175)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x19d)]=R(_0x27f587[_0x351f33(0x19d)],_0x5d6e2b,_0x71b6e0);}function F(_0xc31fb2,_0x4ff945,_0x29ad29){const _0x31439f=_0x36d246;return _0xc31fb2==null?void 0x0:_0xc31fb2[_0x31439f(0x1ec)](_0x55a153=>_0x55a153[_0x31439f(0x1a5)]>=_0x4ff945?{..._0x55a153,'startIndex':_0x55a153[_0x31439f(0x1a5)]+_0x29ad29}:_0x55a153);}function I(_0x3e769e,_0x5bbbe9,_0x3eab7b){const _0x3aec84=_0x36d246;let _0x29f02a=_0x5bbbe9+_0x3eab7b;return _0x3e769e==null?void 0x0:_0x3e769e[_0x3aec84(0x1ec)](_0x2750df=>_0x2750df['startIndex']>=_0x5bbbe9&&_0x2750df[_0x3aec84(0x1a5)]<_0x29f02a?null:_0x2750df[_0x3aec84(0x1a5)]>=_0x29f02a?{..._0x2750df,'startIndex':_0x2750df[_0x3aec84(0x1a5)]-_0x3eab7b}:_0x2750df)['filter'](_0x2d5b7f=>_0x2d5b7f!=null);}function _0x4482(){const _0x1427dc=['getTextRanges','BLOCK_START','decorate','blockId','docs-code.config','max','defineProperty','some','filter','spaceAbove','syncExecuteCommand','0.25.0-insiders.20260604-29ebbff','serialize','disposeWithMe','4071312YqGajR','startOffset','removeUnit','getCodeConfig','clear','symbol','range','deserialize','removeCode','join','endIndex','delete','onStarting','previousDocumentData','paragraphStartIndex','tables','version','model','_change$','iterator','6162415TCeVXS','map','codes','getSnapshot','setCodeConfig','customRanges','min','_injector','config','registerCommand','get','cursorOffset','_resourceManagerService','complete','function','6710838SfnAWP','customDecorations','COMMAND','indexOf','spaceBelow','constructor','registerPluginResource','direction','replaceOp','2707428gCxglD','paragraphs','sort','docs-code.command.consume-boundary-delete','textRuns','next','getInstance','dataStream','endsWith','commandService','_setResource','metadata','PARAGRAPH','unitId','getBody','CODE','documentData','53279QJcQGD','UNIVER_DOC','_configService','forEach','sectionBreaks','every','_initResource','dispose','fromEntries','call','asObservable','parse','getCurrentUnitOfType','docs-code.command.cancel-empty-paragraph','_docsCodeModel','blockRanges','endOffset','add','blockType','pluginName','_commandService','length','2806880YnxZnu','startIndex','customBlocks','toPrimitive','getUniverDocInstance','from','BLOCK_END','paragraph','reduce','setConfig','set','left','_resources','object','slice','javascript','packageName','2prodkP','getParagraphsInRange','DOC_CODE_PLUGIN','deepClone','getOwnPropertyDescriptor','type','SECTION_BREAK','find','paragraphStyle','right','3263439nAsqwf','stringify','body','getUnitId','nextMetadata','prototype','docs-code.command.exit','nextDocumentData','docs-code.command.update','_config'];_0x4482=function(){return _0x1427dc;};return _0x4482();}function we(_0x55d9b5,_0x1e9af8,_0x5ca1b0){const _0x1dd754=_0x36d246;return _0x55d9b5==null?void 0x0:_0x55d9b5[_0x1dd754(0x1ec)](_0x51b011=>_0x51b011['st']>=_0x1e9af8?{..._0x51b011,'st':_0x51b011['st']+_0x5ca1b0,'ed':_0x51b011['ed']+_0x5ca1b0}:_0x51b011['ed']>_0x1e9af8?{..._0x51b011,'ed':_0x51b011['ed']+_0x5ca1b0}:_0x51b011);}function L(_0x10d240,_0x44ae26,_0x340e82){const _0x497929=_0x36d246;return _0x10d240==null?void 0x0:_0x10d240[_0x497929(0x1ec)](_0x47ffb2=>_0x47ffb2['startIndex']>=_0x44ae26?{..._0x47ffb2,'startIndex':_0x47ffb2[_0x497929(0x1a5)]+_0x340e82,'endIndex':_0x47ffb2['endIndex']+_0x340e82}:_0x47ffb2[_0x497929(0x1e1)]>=_0x44ae26?{..._0x47ffb2,'endIndex':_0x47ffb2[_0x497929(0x1e1)]+_0x340e82}:_0x47ffb2);}function R(_0x14a6ef,_0x343afa,_0x16b386){const _0x263fb7=_0x36d246;let _0x1dd460=_0x343afa+_0x16b386;return _0x14a6ef==null?void 0x0:_0x14a6ef[_0x263fb7(0x1ec)](_0x19ec05=>_0x19ec05[_0x263fb7(0x1a5)]>=_0x343afa&&_0x19ec05[_0x263fb7(0x1e1)]<_0x1dd460?null:_0x19ec05[_0x263fb7(0x1a5)]>=_0x1dd460?{..._0x19ec05,'startIndex':_0x19ec05[_0x263fb7(0x1a5)]-_0x16b386,'endIndex':_0x19ec05['endIndex']-_0x16b386}:_0x19ec05[_0x263fb7(0x1e1)]>=_0x343afa?{..._0x19ec05,'startIndex':_0x19ec05[_0x263fb7(0x1a5)]<_0x343afa?_0x19ec05['startIndex']:_0x343afa,'endIndex':Math['max'](_0x343afa,_0x19ec05[_0x263fb7(0x1e1)]-_0x16b386)}:_0x19ec05)[_0x263fb7(0x1d1)](_0x11e56e=>_0x11e56e!=null);}function z(_0x4f7ca3,_0x5b2e51,_0x297a1a,_0x5d5c92){_0x4f7ca3==null||_0x4f7ca3['forEach'](_0x5cdec7=>{const _0x335c6a=_0x1458;_0x5cdec7[_0x335c6a(0x1a5)]>=_0x5b2e51&&_0x5cdec7[_0x335c6a(0x1a5)]<_0x297a1a&&(_0x5cdec7[_0x335c6a(0x1a5)]+=_0x5d5c92);});}function Te(_0x56a85c,_0x51f05d,_0x13465e,_0x18b350){const _0x562870=_0x36d246;_0x56a85c==null||_0x56a85c[_0x562870(0x191)](_0x252385=>{_0x252385['st']>=_0x51f05d&&_0x252385['st']<_0x13465e?(_0x252385['st']+=_0x18b350,_0x252385['ed']+=_0x18b350):_0x252385['ed']>_0x51f05d&&_0x252385['ed']<_0x13465e&&(_0x252385['ed']+=_0x18b350);});}function B(_0x74a063,_0x41d228,_0xcfdd44,_0xe141c5){const _0x5ee7b2=_0x36d246;_0x74a063==null||_0x74a063[_0x5ee7b2(0x191)](_0x39171b=>{const _0x12b8cb=_0x5ee7b2;_0x39171b[_0x12b8cb(0x1a5)]>=_0x41d228&&_0x39171b[_0x12b8cb(0x1a5)]<_0xcfdd44?(_0x39171b[_0x12b8cb(0x1a5)]+=_0xe141c5,_0x39171b[_0x12b8cb(0x1e1)]+=_0xe141c5):_0x39171b[_0x12b8cb(0x1e1)]>_0x41d228&&_0x39171b[_0x12b8cb(0x1e1)]<_0xcfdd44&&(_0x39171b[_0x12b8cb(0x1e1)]+=_0xe141c5);});}function V(_0x2fdbc2){'@babel/helpers - typeof';const _0x458c35=_0x36d246;return V=typeof Symbol=='function'&&typeof Symbol[_0x458c35(0x1ea)]==_0x458c35(0x1dc)?function(_0xaa330d){return typeof _0xaa330d;}:function(_0x2a7ac2){const _0x3fd536=_0x458c35;return _0x2a7ac2&&typeof Symbol==_0x3fd536(0x173)&&_0x2a7ac2[_0x3fd536(0x179)]===Symbol&&_0x2a7ac2!==Symbol[_0x3fd536(0x1c4)]?_0x3fd536(0x1dc):typeof _0x2a7ac2;},V(_0x2fdbc2);}function Ee(_0x58f210,_0x4a5471){const _0xe736bb=_0x36d246;if(V(_0x58f210)!=_0xe736bb(0x1b1)||!_0x58f210)return _0x58f210;var _0x1c8831=_0x58f210[Symbol[_0xe736bb(0x1a7)]];if(_0x1c8831!==void 0x0){var _0x40bd62=_0x1c8831[_0xe736bb(0x197)](_0x58f210,_0x4a5471||'default');if(V(_0x40bd62)!='object')return _0x40bd62;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4a5471==='string'?String:Number)(_0x58f210);}function De(_0x46713c){const _0x4b5647=_0x36d246;var _0x4b209f=Ee(_0x46713c,'string');return V(_0x4b209f)==_0x4b5647(0x1dc)?_0x4b209f:_0x4b209f+'';}function H(_0x5de958,_0x488c86,_0x4ac445){const _0x89b729=_0x36d246;return(_0x488c86=De(_0x488c86))in _0x5de958?Object[_0x89b729(0x1cf)](_0x5de958,_0x488c86,{'value':_0x4ac445,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5de958[_0x488c86]=_0x4ac445,_0x5de958;}var U=class extends _0x4b8a05{constructor(..._0x3c73f3){const _0xa2ad93=_0x36d246;super(..._0x3c73f3),H(this,_0xa2ad93(0x1b0),new Map()),H(this,_0xa2ad93(0x1e9),new _0x1b3649()),H(this,'change$',this[_0xa2ad93(0x1e9)][_0xa2ad93(0x198)]());}[_0x36d246(0x1da)](_0x4e6f36,_0x3b08c1){const _0x2c40f2=_0x36d246;return w(this['_resources']['get'](_0x4e6f36))[_0x2c40f2(0x1ed)][_0x3b08c1];}[_0x36d246(0x169)](_0x14d344,_0x5e9d6f,_0xea5993){const _0x4d3de0=_0x36d246;this[_0x4d3de0(0x187)](_0x14d344,_0x5e9d6f,T(this[_0x4d3de0(0x1b0)][_0x4d3de0(0x16f)](_0x14d344),_0x5e9d6f,_0xea5993));}[_0x36d246(0x1df)](_0x2d3bb6,_0x38a2b2){const _0x6307d9=_0x36d246;this[_0x6307d9(0x187)](_0x2d3bb6,_0x38a2b2,ne(this[_0x6307d9(0x1b0)][_0x6307d9(0x16f)](_0x2d3bb6),_0x38a2b2));}[_0x36d246(0x1d5)](_0x500002){const _0x2c7f14=_0x36d246;return w(this[_0x2c7f14(0x1b0)][_0x2c7f14(0x16f)](_0x500002));}[_0x36d246(0x1de)](_0x421c42,_0x64049e){const _0x3acb99=_0x36d246;this[_0x3acb99(0x1b0)][_0x3acb99(0x1ae)](_0x421c42,w(_0x64049e)),this[_0x3acb99(0x1e9)][_0x3acb99(0x182)]({'unitId':_0x421c42});}['removeUnit'](_0xe7675e){const _0x25c689=_0x36d246;this['_resources'][_0x25c689(0x1e2)](_0xe7675e),this['_change$'][_0x25c689(0x182)]({'unitId':_0xe7675e});}[_0x36d246(0x195)](){const _0x49c8fb=_0x36d246;super[_0x49c8fb(0x195)](),this['_resources'][_0x49c8fb(0x1db)](),this[_0x49c8fb(0x1e9)][_0x49c8fb(0x172)]();}['_setResource'](_0x1199f8,_0x303a54,_0x4c51ea){const _0x48722b=_0x36d246;this['_resources'][_0x48722b(0x1ae)](_0x1199f8,_0x4c51ea),this[_0x48722b(0x1e9)][_0x48722b(0x182)]({'unitId':_0x1199f8,'blockId':_0x303a54});}};const Oe={'id':'docs-code.command.insert-below','type':_0x3ba3c1[_0x36d246(0x176)],'handler':_0x1c1c14=>{const _0x2171c1=_0x36d246;let _0x2bef72=Me(_0x1c1c14);if(_0x2bef72)return _0x1c1c14[_0x2171c1(0x16f)](_0x5b0f49)[_0x2171c1(0x1d3)](W['id'],{'startOffset':_0x2bef72[_0x2171c1(0x1d8)],'endOffset':_0x2bef72[_0x2171c1(0x19e)],'unitId':_0x2bef72[_0x2171c1(0x18a)]});let _0x108b9c=Ne(_0x1c1c14);if(!_0x108b9c)return!0x1;let _0xfd96fa=_0x108b9c['startIndex']+0x1;return _0x1c1c14[_0x2171c1(0x16f)](_0x5b0f49)[_0x2171c1(0x1d3)](W['id'],{'startOffset':_0xfd96fa,'endOffset':_0xfd96fa});}},ke={'id':_0x36d246(0x180),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':()=>!0x0},W={'id':'docs-code.command.insert','type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x205ab8,_0x115964)=>{const _0x9a8f24=_0x36d246;var _0x431002,_0x15425a,_0x32a74f;let _0x1e3b2e=K(_0x205ab8,_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x18a)]);if(!_0x1e3b2e)return!0x1;let _0x4f2f62=q(_0x205ab8),_0x592d0d=E({'blockId':(_0x431002=_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x1cc)])==null?_0x522144(0x6):_0x431002,'config':_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x16d)],'documentData':_0x1e3b2e[_0x9a8f24(0x1e4)],'endOffset':(_0x15425a=_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x19e)])==null?_0x4f2f62==null?void 0x0:_0x4f2f62[_0x9a8f24(0x19e)]:_0x15425a,'metadata':_0x1e3b2e[_0x9a8f24(0x1e8)]['serialize'](_0x1e3b2e[_0x9a8f24(0x18a)]),'startOffset':(_0x32a74f=_0x115964==null?void 0x0:_0x115964['startOffset'])==null?_0x4f2f62==null?void 0x0:_0x4f2f62[_0x9a8f24(0x1d8)]:_0x32a74f}),_0x5c29d2=Y(_0x1e3b2e[_0x9a8f24(0x186)],_0x1e3b2e['unitId'],_0x1e3b2e[_0x9a8f24(0x1e4)],_0x592d0d[_0x9a8f24(0x1c6)],_0x592d0d['cursorOffset']);return _0x5c29d2&&_0x592d0d[_0x9a8f24(0x1c3)]&&_0x1e3b2e[_0x9a8f24(0x1e8)][_0x9a8f24(0x1de)](_0x1e3b2e[_0x9a8f24(0x18a)],_0x592d0d[_0x9a8f24(0x1c3)]),_0x5c29d2;}},Ae={'id':_0x36d246(0x1c7),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x22f82c,_0x116318)=>{const _0x537db9=_0x36d246;if(!_0x116318)return!0x1;let _0x1c881c=K(_0x22f82c,_0x116318[_0x537db9(0x18a)]);if(!_0x1c881c)return!0x1;let _0x3dfe0c=D({'blockId':_0x116318[_0x537db9(0x1cc)],'config':_0x116318[_0x537db9(0x16d)],'documentData':_0x1c881c[_0x537db9(0x1e4)],'metadata':_0x1c881c[_0x537db9(0x1e8)][_0x537db9(0x1d5)](_0x1c881c[_0x537db9(0x18a)])});return _0x3dfe0c['nextMetadata']&&_0x1c881c[_0x537db9(0x1e8)][_0x537db9(0x1de)](_0x1c881c[_0x537db9(0x18a)],_0x3dfe0c[_0x537db9(0x1c3)]),!0x0;}},je={'id':_0x36d246(0x1c5),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x5f3449,_0xa0806)=>{const _0x42186e=_0x36d246;var _0x1d6025,_0x9b0854;let _0x212b07=K(_0x5f3449,_0xa0806==null?void 0x0:_0xa0806[_0x42186e(0x18a)]);if(!_0x212b07)return!0x1;let _0x107e59=(_0x1d6025=_0xa0806==null?void 0x0:_0xa0806[_0x42186e(0x170)])==null?(_0x9b0854=q(_0x5f3449))==null?void 0x0:_0x9b0854[_0x42186e(0x1d8)]:_0x1d6025;if(_0x107e59==null)return!0x1;let _0x1af4e3=oe({'cursorOffset':_0x107e59,'documentData':_0x212b07['previousDocumentData']});return _0x1af4e3?Y(_0x212b07['commandService'],_0x212b07[_0x42186e(0x18a)],_0x212b07[_0x42186e(0x1e4)],_0x1af4e3[_0x42186e(0x1c6)],_0x1af4e3[_0x42186e(0x170)]):!0x1;}},G={'id':_0x36d246(0x19b),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x96998d,_0x4e6074)=>{const _0x28858a=_0x36d246;var _0x1293f9,_0x5ec92f;let _0x80fb9a=K(_0x96998d,_0x4e6074==null?void 0x0:_0x4e6074['unitId']);if(!_0x80fb9a)return!0x1;let _0x2b87da=(_0x1293f9=_0x4e6074==null?void 0x0:_0x4e6074[_0x28858a(0x170)])==null?(_0x5ec92f=q(_0x96998d))==null?void 0x0:_0x5ec92f[_0x28858a(0x1d8)]:_0x1293f9;if(_0x2b87da==null)return!0x1;let _0x59ea9e=se({'cursorOffset':_0x2b87da,'documentData':_0x80fb9a[_0x28858a(0x1e4)],'paragraphStartIndex':_0x4e6074==null?void 0x0:_0x4e6074[_0x28858a(0x1e5)]});return _0x59ea9e?Y(_0x80fb9a['commandService'],_0x80fb9a['unitId'],_0x80fb9a[_0x28858a(0x1e4)],_0x59ea9e[_0x28858a(0x1c6)],_0x59ea9e[_0x28858a(0x170)]):!0x1;}};function K(_0x260621,_0x16be0e){const _0x54a9c1=_0x36d246;let _0x40e3cc=_0x260621[_0x54a9c1(0x16f)](_0x152e8f),_0x5d3545=_0x16be0e?_0x40e3cc[_0x54a9c1(0x1a8)](_0x16be0e):_0x40e3cc['getCurrentUnitOfType'](_0x41c201[_0x54a9c1(0x18f)]);return _0x5d3545?{'commandService':_0x260621['get'](_0x5b0f49),'model':_0x260621[_0x54a9c1(0x16f)](U),'previousDocumentData':_0x5d3545[_0x54a9c1(0x168)](),'unitId':_0x5d3545['getUnitId']()}:null;}function q(_0x57fd25){const _0x5da433=_0x36d246;var _0x525c36;return(_0x525c36=_0x57fd25['get'](_0x130243)[_0x5da433(0x1c9)]())==null?void 0x0:_0x525c36[0x0];}function Me(_0x55204c){const _0x47ad88=_0x36d246;var _0x5c5752;let _0x6f5db6=(_0x5c5752=_0x55204c[_0x47ad88(0x16f)](_0x152e8f)[_0x47ad88(0x19a)](_0x41c201[_0x47ad88(0x18f)]))==null?void 0x0:_0x5c5752[_0x47ad88(0x1c2)]();try{return _0x55204c[_0x47ad88(0x16f)](_0x5bc796)['consumeInsertRange'](_0x6f5db6);}catch{return null;}}function Ne(_0xea4578){const _0x22ebf6=_0x36d246;var _0x13a257,_0x385425,_0x53362d;let _0x249ada=q(_0xea4578);if(!_0x249ada)return null;let _0x1ecbc3=_0xea4578[_0x22ebf6(0x16f)](_0x152e8f)[_0x22ebf6(0x19a)](_0x41c201[_0x22ebf6(0x18f)]),_0x18f69c=_0x1ecbc3==null?void 0x0:_0x1ecbc3[_0x22ebf6(0x18b)]();return _0x18f69c?(_0x13a257=_0x1df61f[_0x22ebf6(0x1dd)][_0x22ebf6(0x1b6)](_0x249ada,(_0x385425=_0x18f69c[_0x22ebf6(0x17e)])==null?[]:_0x385425,(_0x53362d=_0x18f69c[_0x22ebf6(0x184)])==null?'':_0x53362d)[0x0])==null?null:_0x13a257:null;}function Pe(_0x462309,_0x57055a){const _0x4f1100=_0x36d246;var _0x83da72,_0x4e8adf,_0x1ffaca,_0x56245b,_0x19d914,_0x3bc39d,_0x2ee3b2,_0xb826d2,_0x36cc89,_0x24ca57,_0x5dd58f,_0x1c298f,_0x255550,_0x35c21b,_0xd6d0f3,_0x3ad206,_0x1bce9d,_0x106094;let _0x40dfa2=_0x2c9aac[_0x4f1100(0x183)]();return[J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x184)],(_0x83da72=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x83da72[_0x4f1100(0x184)],(_0x4e8adf=_0x57055a['body'])==null?void 0x0:_0x4e8adf[_0x4f1100(0x184)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x17e)],(_0x1ffaca=_0x462309['body'])==null?void 0x0:_0x1ffaca[_0x4f1100(0x17e)],(_0x56245b=_0x57055a['body'])==null?void 0x0:_0x56245b[_0x4f1100(0x17e)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x192)],(_0x19d914=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x19d914[_0x4f1100(0x192)],(_0x3bc39d=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x3bc39d[_0x4f1100(0x192)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x181)],(_0x2ee3b2=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x2ee3b2[_0x4f1100(0x181)],(_0xb826d2=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0xb826d2['textRuns']),J(_0x40dfa2,[_0x4f1100(0x1c1),'customBlocks'],(_0x36cc89=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x36cc89[_0x4f1100(0x1a6)],(_0x24ca57=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x24ca57['customBlocks']),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x16a)],(_0x5dd58f=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x5dd58f[_0x4f1100(0x16a)],(_0x1c298f=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x1c298f[_0x4f1100(0x16a)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x175)],(_0x255550=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x255550['customDecorations'],(_0x35c21b=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x35c21b[_0x4f1100(0x175)]),J(_0x40dfa2,['body',_0x4f1100(0x1e6)],(_0xd6d0f3=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0xd6d0f3[_0x4f1100(0x1e6)],(_0x3ad206=_0x57055a['body'])==null?void 0x0:_0x3ad206[_0x4f1100(0x1e6)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x19d)],(_0x1bce9d=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x1bce9d[_0x4f1100(0x19d)],(_0x106094=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x106094[_0x4f1100(0x19d)])][_0x4f1100(0x1d1)](Boolean)[_0x4f1100(0x1ac)]((_0x224246,_0x3117b7)=>_0x2c9aac['compose'](_0x224246,_0x3117b7),null);}function J(_0x1f3147,_0x15f714,_0x3d4e1a,_0x27c090){const _0x3adf91=_0x36d246;return _0x16aa24['diffValue'](_0x3d4e1a,_0x27c090)?null:_0x1f3147[_0x3adf91(0x17c)](_0x15f714,_0x3d4e1a,_0x27c090);}function Y(_0x1413d8,_0x23570d,_0x23f38a,_0x1cafc2,_0x3d0cd0){let _0x46fdee=Pe(_0x23f38a,_0x1cafc2);return _0x46fdee?!!_0x1413d8['syncExecuteCommand'](_0x15ecd9['id'],{'unitId':_0x23570d,'actions':_0x46fdee,'textRanges':[{'startOffset':_0x3d0cd0,'endOffset':_0x3d0cd0,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const X=_0x36d246(0x1b7);var Fe='@univerjs-pro/docs-code',Ie=_0x36d246(0x1d4);const Le={};function Z(_0x313e16,_0x516366){return function(_0x5c8c8a,_0x412c47){_0x516366(_0x5c8c8a,_0x412c47,_0x313e16);};}function Re(_0x25a330,_0x5bc690,_0x16df35,_0x2af41a){const _0x5cb88d=_0x36d246;var _0x304b59=arguments[_0x5cb88d(0x1a3)],_0x2ae487=_0x304b59<0x3?_0x5bc690:_0x2af41a===null?_0x2af41a=Object[_0x5cb88d(0x1b9)](_0x5bc690,_0x16df35):_0x2af41a,_0xa16b53;if(typeof Reflect==_0x5cb88d(0x1b1)&&typeof Reflect[_0x5cb88d(0x1cb)]==_0x5cb88d(0x173))_0x2ae487=Reflect[_0x5cb88d(0x1cb)](_0x25a330,_0x5bc690,_0x16df35,_0x2af41a);else{for(var _0x1ed72b=_0x25a330[_0x5cb88d(0x1a3)]-0x1;_0x1ed72b>=0x0;_0x1ed72b--)(_0xa16b53=_0x25a330[_0x1ed72b])&&(_0x2ae487=(_0x304b59<0x3?_0xa16b53(_0x2ae487):_0x304b59>0x3?_0xa16b53(_0x5bc690,_0x16df35,_0x2ae487):_0xa16b53(_0x5bc690,_0x16df35))||_0x2ae487);}return _0x304b59>0x3&&_0x2ae487&&Object['defineProperty'](_0x5bc690,_0x16df35,_0x2ae487),_0x2ae487;}let Q=class extends _0x4b8a05{constructor(_0x16faec,_0x2d3a93){const _0x5cf917=_0x36d246;super(),this[_0x5cf917(0x171)]=_0x16faec,this[_0x5cf917(0x19c)]=_0x2d3a93,this[_0x5cf917(0x194)]();}['_initResource'](){const _0x177a4d=_0x36d246;this[_0x177a4d(0x1d6)](this[_0x177a4d(0x171)][_0x177a4d(0x17a)]({'pluginName':X,'businesses':[_0x41c201['UNIVER_DOC']],'toJson':_0x21b5f8=>JSON[_0x177a4d(0x1c0)](this['_docsCodeModel'][_0x177a4d(0x1d5)](_0x21b5f8)),'parseJson':_0xb52cc8=>w(JSON[_0x177a4d(0x199)](_0xb52cc8)),'onLoad':(_0x1af6a2,_0x5a6ded)=>this[_0x177a4d(0x19c)][_0x177a4d(0x1de)](_0x1af6a2,_0x5a6ded),'onUnLoad':_0x5aa097=>this[_0x177a4d(0x19c)][_0x177a4d(0x1d9)](_0x5aa097)}));}};Q=Re([Z(0x0,_0x1a8f7f),Z(0x1,_0x13ce68(U))],Q);let $=class extends _0x26ec4c{constructor(_0x5ae3f4=Le,_0x3d66c4,_0xeeb7ee,_0x3cbd34){const _0x5cf189=_0x36d246;super(),this[_0x5cf189(0x1c8)]=_0x5ae3f4,this[_0x5cf189(0x16c)]=_0x3d66c4,this[_0x5cf189(0x1a2)]=_0xeeb7ee,this['_configService']=_0x3cbd34;let {..._0x57a91b}=_0x157a02({},Le,this[_0x5cf189(0x1c8)]);this[_0x5cf189(0x190)][_0x5cf189(0x1ad)](_0x5cf189(0x1cd),_0x57a91b);}[_0x36d246(0x1e3)](){const _0x34ab3d=_0x36d246;this['_injector'][_0x34ab3d(0x19f)]([U]),this[_0x34ab3d(0x16c)]['add']([Q]),this[_0x34ab3d(0x16c)][_0x34ab3d(0x16f)](U),this[_0x34ab3d(0x16c)]['get'](Q),[W,Oe,Ae,je,G,ke][_0x34ab3d(0x191)](_0x3d8e6f=>this[_0x34ab3d(0x1d6)](this[_0x34ab3d(0x1a2)][_0x34ab3d(0x16e)](_0x3d8e6f)));}};H($,_0x36d246(0x1a1),X),H($,_0x36d246(0x1b4),Fe),H($,_0x36d246(0x1e7),Ie),H($,_0x36d246(0x1ba),_0x41c201[_0x36d246(0x18f)]),$=Re([_0x50e2e6(_0x9b0c05,_0x3b5e01),Z(0x1,_0x13ce68(_0x4d48d7)),Z(0x2,_0x5b0f49),Z(0x3,_0x5f2336)],$);export{S as DEFAULT_CODE_CONFIG,X as DOCS_CODE_PLUGIN,G as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,je as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,W as DocsCodeInsertCommand,U as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,E as buildInsertCodeActions,D as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
1
+ function _0x5a31(_0x1c2fa2,_0x3d081){_0x1c2fa2=_0x1c2fa2-0x126;const _0x7f61cb=_0x7f61();let _0x5a3109=_0x7f61cb[_0x1c2fa2];return _0x5a3109;}const _0x32228a=_0x5a31;(function(_0x541094,_0x2bf2f7){const _0x19c9d3=_0x5a31,_0x2f6b70=_0x541094();while(!![]){try{const _0x16cecd=-parseInt(_0x19c9d3(0x1a8))/0x1+parseInt(_0x19c9d3(0x13a))/0x2*(-parseInt(_0x19c9d3(0x170))/0x3)+-parseInt(_0x19c9d3(0x152))/0x4+-parseInt(_0x19c9d3(0x17b))/0x5*(-parseInt(_0x19c9d3(0x1a2))/0x6)+-parseInt(_0x19c9d3(0x193))/0x7+-parseInt(_0x19c9d3(0x1a0))/0x8*(-parseInt(_0x19c9d3(0x126))/0x9)+-parseInt(_0x19c9d3(0x1ad))/0xa*(-parseInt(_0x19c9d3(0x14d))/0xb);if(_0x16cecd===_0x2bf2f7)break;else _0x2f6b70['push'](_0x2f6b70['shift']());}catch(_0xafff94){_0x2f6b70['push'](_0x2f6b70['shift']());}}}(_0x7f61,0xba173));import{BuildTextUtils as _0x3df5ca,CommandType as _0x119629,DataStreamTreeTokenType as _0x5f1f13,DependentOn as _0x119ba8,Disposable as _0x2c13b2,DocumentBlockRangeType as _0x133263,ICommandService as _0x5d6f06,IConfigService as _0x1e6417,IResourceManagerService as _0x335e62,IUniverInstanceService as _0x4e1fbc,Inject as _0x2c4bc4,Injector as _0x382794,JSONX as _0x2725dd,Plugin as _0x4f2da3,Tools as _0x439388,UniverInstanceType as _0x314853,createParagraphId as _0x41b0f5,generateRandomId as _0x38bf25,merge as _0x5c6bbb}from'@univerjs/core';import{DocContentInsertService as _0x157d07,DocSelectionManagerService as _0x3e133d,RichTextEditingMutation as _0x37489d,UniverDocsPlugin as _0x1c988a}from'@univerjs/docs';import{Subject as _0x5e31df}from'rxjs';import{UniverLicensePlugin as _0x1d8255}from'@univerjs-pro/license';const S={'language':_0x32228a(0x149),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x5e00fb){return{...S,..._0x5e00fb};}function w(_0x58435d){const _0x4142ea=_0x32228a;var _0x5d149c;let _0x27cb21=(_0x5d149c=_0x58435d==null?void 0x0:_0x58435d['codes'])==null?{}:_0x5d149c;return{'codes':Object[_0x4142ea(0x17e)](Object['entries'](_0x27cb21)[_0x4142ea(0x132)](([_0x1f2149,_0x29eaa0])=>[_0x1f2149,C(_0x29eaa0)]))};}function T(_0x2a7abe,_0x2349ed,_0x99733a){const _0x66bccd=_0x32228a;let _0x356452=w(_0x2a7abe);return _0x356452[_0x66bccd(0x18c)][_0x2349ed]=C({..._0x356452[_0x66bccd(0x18c)][_0x2349ed],..._0x99733a}),_0x356452;}function re(_0x2f4f77,_0xf44279){let _0x163193=w(_0x2f4f77);return delete _0x163193['codes'][_0xf44279],_0x163193;}const E=_0x32228a(0x15f);function ie(_0x3c64ec){const _0x30e229=_0x32228a;var _0x16dc60,_0x436803,_0x3499d1;let _0xb4e8f3=O(_0x3c64ec[_0x30e229(0x141)]),_0x3c3619=k(_0xb4e8f3),_0x295f6c=oe(_0x3c64ec[_0x30e229(0x155)],_0x3c64ec[_0x30e229(0x19d)]),_0x555da4=_0x295f6c?(_0x16dc60=_0x3c3619['blockRanges'])==null?void 0x0:_0x16dc60[_0x30e229(0x1a4)](_0xd522f7=>_0xd522f7[_0x30e229(0x14b)]===_0x295f6c[_0x30e229(0x155)]&&_0xd522f7[_0x30e229(0x15d)]+0x1===_0x295f6c[_0x30e229(0x19d)]):void 0x0,{startOffset:_0x78566,endOffset:_0x5886e6}=_0x555da4?_0x295f6c:ve(_0x3c3619,_0x3c64ec[_0x30e229(0x155)],_0x3c64ec[_0x30e229(0x19d)]),_0x2cd2f7=be(_0x3c3619,_0x78566,_0x5886e6),_0x1878b7=(_0x436803=_0x555da4==null?void 0x0:_0x555da4[_0x30e229(0x165)])==null?_0x3c64ec[_0x30e229(0x165)]:_0x436803,_0x2009f3=T(_0x3c64ec[_0x30e229(0x181)],_0x1878b7,{...S,..._0x3c64ec['config']});if(_0x555da4)return _0x555da4[_0x30e229(0x1aa)]=_0x133263[_0x30e229(0x147)],ae(_0x3c3619,_0x78566,_0x5886e6),me(_0x3c3619,_0x78566,_0x5886e6,_0x2cd2f7),{'nextDocumentData':_0xb4e8f3,'nextMetadata':_0x2009f3,'cursorOffset':_0x78566+0x1};if(_0x78566===_0x5886e6){var _0x257ac1;let _0x485435=''+_0x5f1f13['BLOCK_START']+_0x5f1f13[_0x30e229(0x185)]+_0x5f1f13[_0x30e229(0x15e)];return N(_0x3c3619,_0x78566,_0x485435,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x41b0f5(new Set((_0x257ac1=_0x3c3619[_0x30e229(0x16f)])==null?void 0x0:_0x257ac1['map'](_0x4c4be5=>_0x4c4be5[_0x30e229(0x1a7)]))),'paragraphStyle':D(!0x0,!0x0,_0x2cd2f7)}],'blockRanges':[{'blockId':_0x1878b7,'blockType':_0x133263[_0x30e229(0x147)],'startIndex':0x0,'endIndex':_0x485435['length']-0x1}]}),{'nextDocumentData':_0xb4e8f3,'nextMetadata':_0x2009f3,'cursorOffset':_0x78566+0x1};}return N(_0x3c3619,_0x5886e6,_0x5f1f13[_0x30e229(0x15e)]),N(_0x3c3619,_0x78566,_0x5f1f13[_0x30e229(0x12a)]),me(_0x3c3619,_0x78566,_0x5886e6+0x1,_0x2cd2f7),_0x3c3619['blockRanges']=[...(_0x3499d1=_0x3c3619[_0x30e229(0x172)])==null?[]:_0x3499d1,{'blockId':_0x1878b7,'blockType':_0x133263[_0x30e229(0x147)],'startIndex':_0x78566,'endIndex':_0x5886e6+0x1}]['sort']((_0x180a35,_0x4549cc)=>_0x180a35[_0x30e229(0x14b)]-_0x4549cc['startIndex']),{'nextDocumentData':_0xb4e8f3,'nextMetadata':_0x2009f3,'cursorOffset':_0x78566+0x1};}function ae(_0x5030ab,_0x5a453b,_0xa37734){const _0x377144=_0x32228a;var _0x53e375;((_0x53e375=_0x5030ab['paragraphs'])==null?[]:_0x53e375)[_0x377144(0x17f)](_0x349ac3=>_0x349ac3['startIndex']>_0x5a453b&&_0x349ac3[_0x377144(0x14b)]<_0xa37734)[_0x377144(0x1a6)](_0x199c59=>{const _0x1bdb9c=_0x377144;var _0x20f8e8;let _0x34eab4={...(_0x20f8e8=_0x199c59['paragraphStyle'])==null?{}:_0x20f8e8};delete _0x34eab4[_0x1bdb9c(0x162)],delete _0x34eab4[_0x1bdb9c(0x154)],_0x199c59[_0x1bdb9c(0x171)]=_0x34eab4;});}function oe(_0x2c0e92,_0x14b1b4){const _0x459036=_0x32228a;return _0x2c0e92==null||_0x14b1b4==null||_0x2c0e92===_0x14b1b4?null:{'startOffset':Math[_0x459036(0x179)](_0x2c0e92,_0x14b1b4),'endOffset':Math[_0x459036(0x18f)](_0x2c0e92,_0x14b1b4)};}function se(_0x817611){const _0x2fb609=_0x32228a;return{'nextDocumentData':O(_0x817611[_0x2fb609(0x141)]),'nextMetadata':T(_0x817611[_0x2fb609(0x181)],_0x817611[_0x2fb609(0x165)],_0x817611['config']),'cursorOffset':0x0};}function ce(_0x492e56){const _0x4b13cb=_0x32228a;var _0x445492,_0x249435;let _0x1311a3=O(_0x492e56[_0x4b13cb(0x141)]),_0x2ecc5b=k(_0x1311a3),_0x4d2441=pe(_0x2ecc5b,_0x492e56[_0x4b13cb(0x196)]);if(!_0x4d2441)return null;let _0x3852df=ge(_0x2ecc5b,_0x4d2441),_0x13926c=_0x3852df[_0x3852df[_0x4b13cb(0x13e)]-0x1];if(!_0x13926c||!_e(_0x2ecc5b,_0x4d2441,_0x13926c)||_0x492e56[_0x4b13cb(0x196)]<_0x13926c[_0x4b13cb(0x14b)])return null;let _0x3ce8db=j(_0x2ecc5b,_0x4d2441,_0x13926c);if(_0x3ce8db>=_0x4d2441[_0x4b13cb(0x15d)])return null;_0x2ecc5b['dataStream']=[_0x2ecc5b[_0x4b13cb(0x15b)][_0x4b13cb(0x134)](0x0,_0x3ce8db),_0x5f1f13[_0x4b13cb(0x15e)],_0x2ecc5b[_0x4b13cb(0x15b)][_0x4b13cb(0x134)](_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)]),_0x2ecc5b[_0x4b13cb(0x15b)][_0x4b13cb(0x134)](_0x4d2441[_0x4b13cb(0x15d)]+0x1)]['join'](''),R(_0x2ecc5b[_0x4b13cb(0x16f)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),R(_0x2ecc5b[_0x4b13cb(0x15a)],_0x3ce8db,_0x4d2441['endIndex'],0x1),R(_0x2ecc5b[_0x4b13cb(0x12c)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),De(_0x2ecc5b['textRuns'],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),z(_0x2ecc5b[_0x4b13cb(0x194)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),z(_0x2ecc5b[_0x4b13cb(0x17c)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),z(_0x2ecc5b[_0x4b13cb(0x17a)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),(_0x445492=_0x2ecc5b[_0x4b13cb(0x172)])==null||_0x445492[_0x4b13cb(0x1a6)](_0x5b1876=>{const _0x4f099d=_0x4b13cb;_0x5b1876===_0x4d2441||_0x5b1876[_0x4f099d(0x165)]===_0x4d2441['blockId']?_0x5b1876[_0x4f099d(0x15d)]=_0x3ce8db:_0x5b1876['startIndex']>=_0x3ce8db&&_0x5b1876[_0x4f099d(0x14b)]<_0x4d2441[_0x4f099d(0x15d)]&&(_0x5b1876[_0x4f099d(0x14b)]+=0x1,_0x5b1876[_0x4f099d(0x15d)]+=0x1);});let _0x19ee11=ge(_0x2ecc5b,{..._0x4d2441,'endIndex':_0x3ce8db});_0x19ee11[_0x4b13cb(0x1a6)]((_0x3942f0,_0x58d133)=>{const _0x43e954=_0x4b13cb;var _0x29f0b4;_0x3942f0['paragraphStyle']={...(_0x29f0b4=_0x3942f0[_0x43e954(0x171)])==null?{}:_0x29f0b4,...D(_0x58d133===0x0,_0x58d133===_0x19ee11[_0x43e954(0x13e)]-0x1)};});let _0x19d799=(_0x249435=_0x2ecc5b[_0x4b13cb(0x16f)])==null?void 0x0:_0x249435[_0x4b13cb(0x1a4)](_0x1af5f2=>_0x1af5f2[_0x4b13cb(0x14b)]===_0x3ce8db+0x1);return _0x19d799&&(_0x19d799[_0x4b13cb(0x171)]=he(_0x19d799[_0x4b13cb(0x171)])),{'nextDocumentData':_0x1311a3,'cursorOffset':_0x3ce8db+0x1};}function le(_0x18bc02){const _0x1fb38c=_0x32228a;let _0x4b4b62=O(_0x18bc02[_0x1fb38c(0x141)]),_0x50e2b4=k(_0x4b4b62),_0x4d099b=pe(_0x50e2b4,_0x18bc02[_0x1fb38c(0x196)]);return _0x4d099b&&ue(_0x4b4b62,_0x50e2b4,_0x4d099b,_0x18bc02[_0x1fb38c(0x196)],_0x18bc02[_0x1fb38c(0x199)])||null;}function ue(_0x3ab584,_0xaeefbd,_0x17058c,_0x14cd55,_0x5628ca){const _0x5950bb=_0x32228a;let _0x464252=Se(_0xaeefbd,_0x17058c,_0x14cd55,_0x5628ca);if(!_0x464252)return null;let _0x4dd5d1=_0x464252[_0x5950bb(0x131)]-0x1;return Ce(_0xaeefbd,_0x464252[_0x5950bb(0x175)][_0x5950bb(0x14b)],_0x464252[_0x5950bb(0x175)][_0x5950bb(0x14b)]+0x1),{'nextDocumentData':_0x3ab584,'cursorOffset':_0x4dd5d1};}function de(_0x1b4e0e,_0x16b26e){const _0x2eea45=_0x32228a;var _0x440d84;return _0x1b4e0e==null||(_0x440d84=_0x1b4e0e[_0x2eea45(0x172)])==null?void 0x0:_0x440d84[_0x2eea45(0x1a4)](_0x16c9b0=>_0x16c9b0[_0x2eea45(0x1aa)]===_0x133263[_0x2eea45(0x147)]&&_0x16c9b0[_0x2eea45(0x14b)]<=_0x16b26e&&_0x16b26e<=_0x16c9b0['endIndex']);}function fe(_0x1001f1){const _0x2c2f65=_0x32228a;var _0x529483;let _0x1b0ec4=_0x1001f1['documentData'][_0x2c2f65(0x195)];if(!_0x1b0ec4)return!0x1;let _0x5ec87b=_0x1001f1[_0x2c2f65(0x128)]===_0x2c2f65(0x161)?_0x1001f1['cursorOffset']-0x1:_0x1001f1[_0x2c2f65(0x196)],_0xd83a30=_0x1001f1[_0x2c2f65(0x128)]==='right'?_0x1001f1[_0x2c2f65(0x196)]+0x1:_0x5ec87b;return((_0x529483=_0x1b0ec4[_0x2c2f65(0x172)])==null?[]:_0x529483)[_0x2c2f65(0x18d)](_0x2ab71f=>_0x2ab71f[_0x2c2f65(0x1aa)]===_0x133263['CODE']?_0x5ec87b===_0x2ab71f[_0x2c2f65(0x14b)]||_0x5ec87b===_0x2ab71f[_0x2c2f65(0x15d)]||_0xd83a30===_0x2ab71f['startIndex']||_0xd83a30===_0x2ab71f[_0x2c2f65(0x15d)]:!0x1);}function pe(_0x265207,_0x330489){const _0x4f6f7d=_0x32228a;var _0x17705e;return(_0x17705e=_0x265207[_0x4f6f7d(0x172)])==null?void 0x0:_0x17705e[_0x4f6f7d(0x1a4)](_0x170188=>{const _0xcf5fff=_0x4f6f7d;let _0x4cba5c=M(_0x265207,_0x170188);return _0x170188[_0xcf5fff(0x1aa)]===_0x133263['CODE']&&_0x170188['startIndex']<=_0x330489&&_0x330489<=_0x4cba5c+0x2;});}function D(_0x5e0002,_0x33f8fa,_0x4de7d7=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5e0002&&_0x4de7d7?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':E,'fs':0xc}};}function me(_0x2a9abd,_0x431ecb,_0x7f2699,_0x54f6f6=!0x1){const _0x5818f8=_0x32228a;var _0x2f4d55;let _0x589595=((_0x2f4d55=_0x2a9abd[_0x5818f8(0x16f)])==null?[]:_0x2f4d55)[_0x5818f8(0x17f)](_0x5b78eb=>_0x5b78eb[_0x5818f8(0x14b)]>_0x431ecb&&_0x5b78eb[_0x5818f8(0x14b)]<_0x7f2699);_0x589595[_0x5818f8(0x1a6)]((_0x493ca5,_0x3e5e5b)=>{const _0x1fd3e4=_0x5818f8;var _0x1d11f1;_0x493ca5[_0x1fd3e4(0x171)]={...(_0x1d11f1=_0x493ca5[_0x1fd3e4(0x171)])==null?{}:_0x1d11f1,...D(_0x3e5e5b===0x0,_0x3e5e5b===_0x589595[_0x1fd3e4(0x13e)]-0x1,_0x54f6f6)};});}function he(_0x1402df){const _0x1c2f43=_0x32228a;var _0x20c4e7,_0x251947;let _0x580371={..._0x1402df==null?{}:_0x1402df};return delete _0x580371[_0x1c2f43(0x178)],delete _0x580371['indentStart'],delete _0x580371[_0x1c2f43(0x162)],delete _0x580371[_0x1c2f43(0x154)],((_0x20c4e7=_0x580371[_0x1c2f43(0x164)])==null?void 0x0:_0x20c4e7['ff'])===E&&((_0x251947=_0x580371['textStyle'])==null?void 0x0:_0x251947['fs'])===0xc&&delete _0x580371[_0x1c2f43(0x164)],_0x580371;}function ge(_0xeef81f,_0xe0e95a){const _0x321a9a=_0x32228a;var _0x2b519d;let _0x1cc87b=M(_0xeef81f,_0xe0e95a);return((_0x2b519d=_0xeef81f[_0x321a9a(0x16f)])==null?[]:_0x2b519d)['filter'](_0x1db1d4=>_0x1db1d4[_0x321a9a(0x14b)]>_0xe0e95a[_0x321a9a(0x14b)]&&_0x1db1d4['startIndex']<_0x1cc87b);}function _e(_0x3ac9a6,_0x1b90ff,_0x4be5d6){const _0x500b28=_0x32228a;let _0x2a05fd=j(_0x3ac9a6,_0x1b90ff,_0x4be5d6),_0x52c96e=_0x3ac9a6['dataStream'][_0x500b28(0x134)](_0x2a05fd,_0x4be5d6['startIndex']);return Array['from'](_0x52c96e)['every'](_0x31ae5b=>_0x31ae5b===_0x5f1f13['BLOCK_START']||_0x31ae5b===_0x5f1f13['BLOCK_END']);}function O(_0x4a39e4){return _0x439388['deepClone'](_0x4a39e4);}function k(_0x47c2bc){const _0x17f930=_0x32228a;if(!_0x47c2bc['body'])throw Error('Document\x20body\x20is\x20required');return _0x47c2bc[_0x17f930(0x195)];}function ve(_0x33a4a0,_0xecb8db,_0x51c073){const _0x4547c4=_0x32228a;if(_0xecb8db==null||_0x51c073==null){let _0x411df4=ye(_0x33a4a0);return{'startOffset':_0x411df4,'endOffset':_0x411df4};}let _0x5cc490=Math[_0x4547c4(0x179)](_0xecb8db,_0x51c073),_0x5d2bb6=Math[_0x4547c4(0x18f)](_0xecb8db,_0x51c073);return _0x5cc490===_0x5d2bb6?{'startOffset':_0x5cc490,'endOffset':_0x5cc490}:xe(_0x33a4a0,_0x5cc490,_0x5d2bb6);}function ye(_0x365daf){const _0x2ff483=_0x32228a;return _0x365daf['dataStream']['endsWith'](_0x5f1f13[_0x2ff483(0x139)])?Math[_0x2ff483(0x18f)](0x0,_0x365daf[_0x2ff483(0x15b)][_0x2ff483(0x13e)]-0x1):_0x365daf[_0x2ff483(0x15b)][_0x2ff483(0x13e)];}function be(_0x4c1059,_0x2adc32,_0x254ba4){const _0x31b2d9=_0x32228a;var _0x66cfa4;let _0x301a87=Math[_0x31b2d9(0x179)](_0x2adc32,_0x254ba4),_0xbfdf4f=Math['max'](_0x2adc32,_0x254ba4);return!!((_0x66cfa4=_0x4c1059[_0x31b2d9(0x194)])!=null&&_0x66cfa4['some'](_0x44374d=>_0x301a87>_0x44374d['startIndex']&&_0x301a87<_0x44374d[_0x31b2d9(0x15d)]||_0xbfdf4f>_0x44374d[_0x31b2d9(0x14b)]&&_0xbfdf4f<_0x44374d['endIndex']||_0x301a87<=_0x44374d[_0x31b2d9(0x14b)]&&_0xbfdf4f>=_0x44374d[_0x31b2d9(0x15d)]));}function xe(_0x2108f7,_0x360f0e,_0x24aafc){const _0x54047f=_0x32228a;var _0x35ace7,_0x153364;let _0x48c17d=[...(_0x35ace7=_0x2108f7[_0x54047f(0x16f)])==null?[]:_0x35ace7][_0x54047f(0x138)]((_0x40b6b0,_0x590011)=>_0x40b6b0[_0x54047f(0x14b)]-_0x590011[_0x54047f(0x14b)]),_0x143bec=_0x48c17d[_0x54047f(0x1a4)]((_0x5e40f0,_0x59ce0e)=>(_0x59ce0e===0x0?0x0:_0x48c17d[_0x59ce0e-0x1][_0x54047f(0x14b)]+0x1)<=_0x360f0e&&_0x360f0e<=_0x5e40f0[_0x54047f(0x14b)]),_0x3dc2e8=(_0x153364=_0x48c17d[_0x54047f(0x1a4)](_0x1c99a9=>_0x1c99a9[_0x54047f(0x14b)]>=_0x24aafc-0x1))==null?_0x48c17d[_0x48c17d[_0x54047f(0x13e)]-0x1]:_0x153364;return{'startOffset':_0x143bec?A(_0x48c17d,_0x143bec):_0x360f0e,'endOffset':_0x3dc2e8?_0x3dc2e8[_0x54047f(0x14b)]+0x1:_0x24aafc};}function A(_0x421c44,_0x3b00b7){const _0x1cb4a8=_0x32228a;let _0x4f9d6f=_0x421c44[_0x1cb4a8(0x177)](_0x3b00b7);return _0x4f9d6f>0x0?_0x421c44[_0x4f9d6f-0x1][_0x1cb4a8(0x14b)]+0x1:0x0;}function j(_0x5727d7,_0x1bd5ea,_0x4a797a){const _0x35cf9d=_0x32228a;var _0x3dad57;return Math[_0x35cf9d(0x18f)](A((_0x3dad57=_0x5727d7[_0x35cf9d(0x16f)])==null?[]:_0x3dad57,_0x4a797a),_0x1bd5ea['startIndex']+0x1);}function M(_0xa72053,_0x3c95f4){const _0x523f2d=_0x32228a;return _0xa72053[_0x523f2d(0x15b)][_0x3c95f4[_0x523f2d(0x15d)]]===_0x5f1f13[_0x523f2d(0x15e)]?_0x3c95f4['endIndex']:_0xa72053['dataStream'][_0x3c95f4['endIndex']+0x1]===_0x5f1f13['BLOCK_END']?_0x3c95f4['endIndex']+0x1:_0x3c95f4['endIndex'];}function _0x7f61(){const _0x6c329d=['getCurrentUnitOfType','PARAGRAPH','textRuns','docs-code.command.insert','change$','symbol','_configService','disposeWithMe','codes','some','_config','max','unitId','COMMAND','iterator','5838952ljBQWp','tables','body','cursorOffset','setCodeConfig','setConfig','paragraphStartIndex','getBody','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','set','endOffset','getUniverDocInstance','dispose','2720blUPwq','_docsCodeModel','83466uXRFGa','object','find','add','forEach','paragraphId','103368vNwUuY','defineProperty','blockType','type','commandService','180XaPJNh','39681AtcNtk','getCodeConfig','direction','getParagraphsInRange','BLOCK_START','compose','customBlocks','nextMetadata','_initResource','serialize','@univerjs-pro/docs-code','endTokenOffset','map','getUnitId','slice','_setResource','complete','range','sort','SECTION_BREAK','6nVuXDW','docs-code.command.exit','removeUnit','_resourceManagerService','length','get','registerCommand','documentData','packageName','_change$','prototype','syncExecuteCommand','config','CODE','delete','javascript','decorate','startIndex','function','574519aJwrMN','deserialize','UNIVER_DOC','diffValue','_resources','1883996iUMZZu','version','spaceBelow','startOffset','docs-code.config','consumeInsertRange','registerPluginResource','next','sectionBreaks','dataStream','docs-code.command.cancel-empty-paragraph','endIndex','BLOCK_END','monospace','every','left','spaceAbove','nextDocumentData','textStyle','blockId','getOwnPropertyDescriptor','reduce','toPrimitive','from','getInstance','_injector','_commandService','string','removeCode','paragraphs','338007Ufxshy','paragraphStyle','blockRanges','asObservable','constructor','paragraph','onStarting','indexOf','indentEnd','min','customDecorations','25bPWxML','customRanges','model','fromEntries','filter','pluginName','metadata','previousDocumentData','0.25.0-insiders.20260613-5ff0e1f'];_0x7f61=function(){return _0x6c329d;};return _0x7f61();}function Se(_0x3c031b,_0x198e7a,_0x239622,_0x5d5b81){const _0x3d67c3=_0x32228a;var _0x327ae5,_0x13957d;let _0x178209=M(_0x3c031b,_0x198e7a),_0x4f3e66=((_0x327ae5=_0x3c031b['paragraphs'])==null?[]:_0x327ae5)[_0x3d67c3(0x1a4)](_0x3b008d=>_0x3b008d[_0x3d67c3(0x14b)]===_0x178209+0x1);if(!_0x4f3e66||_0x5d5b81!=null&&_0x4f3e66[_0x3d67c3(0x14b)]!==_0x5d5b81||_0x239622<_0x178209||_0x239622>_0x4f3e66[_0x3d67c3(0x14b)]+0x1||_0x3c031b['dataStream'][_0x4f3e66['startIndex']]!==_0x5f1f13[_0x3d67c3(0x185)])return null;let _0x4bb323=A((_0x13957d=_0x3c031b[_0x3d67c3(0x16f)])==null?[]:_0x13957d,_0x4f3e66),_0x2d159e=_0x3c031b[_0x3d67c3(0x15b)]['slice'](_0x4bb323,_0x4f3e66['startIndex']);return Array[_0x3d67c3(0x169)](_0x2d159e)[_0x3d67c3(0x160)](_0x1d6e62=>_0x1d6e62===_0x5f1f13['BLOCK_END'])?{'paragraph':_0x4f3e66,'endTokenOffset':_0x178209}:null;}function N(_0x201ab2,_0x4e65a5,_0x5db56f,_0x40c5f6={}){const _0x4317cb=_0x32228a;var _0xfa78a7,_0x3ff237;if(_0x5db56f){if(_0x201ab2[_0x4317cb(0x15b)]=''+_0x201ab2[_0x4317cb(0x15b)]['slice'](0x0,_0x4e65a5)+_0x5db56f+_0x201ab2['dataStream']['slice'](_0x4e65a5),we(_0x201ab2,_0x4e65a5,_0x5db56f[_0x4317cb(0x13e)]),(_0xfa78a7=_0x40c5f6[_0x4317cb(0x16f)])!=null&&_0xfa78a7[_0x4317cb(0x13e)]){var _0xdfd41b;_0x201ab2[_0x4317cb(0x16f)]=[...(_0xdfd41b=_0x201ab2[_0x4317cb(0x16f)])==null?[]:_0xdfd41b,..._0x40c5f6[_0x4317cb(0x16f)]['map'](_0x549469=>({..._0x549469,'startIndex':_0x549469[_0x4317cb(0x14b)]+_0x4e65a5}))][_0x4317cb(0x138)]((_0x29e5c3,_0x3db18c)=>_0x29e5c3[_0x4317cb(0x14b)]-_0x3db18c[_0x4317cb(0x14b)]);}if((_0x3ff237=_0x40c5f6[_0x4317cb(0x172)])!=null&&_0x3ff237[_0x4317cb(0x13e)]){var _0x5c8eee;_0x201ab2[_0x4317cb(0x172)]=[...(_0x5c8eee=_0x201ab2[_0x4317cb(0x172)])==null?[]:_0x5c8eee,..._0x40c5f6[_0x4317cb(0x172)][_0x4317cb(0x132)](_0x5bc8cb=>({..._0x5bc8cb,'startIndex':_0x5bc8cb[_0x4317cb(0x14b)]+_0x4e65a5,'endIndex':_0x5bc8cb['endIndex']+_0x4e65a5}))][_0x4317cb(0x138)]((_0x466668,_0x1987d1)=>_0x466668['startIndex']-_0x1987d1[_0x4317cb(0x14b)]);}}}function Ce(_0xa27b6c,_0xc36158,_0x505f94){const _0x5c194b=_0x32228a;let _0x5140f5=_0x505f94-_0xc36158;_0xa27b6c['dataStream']=''+_0xa27b6c[_0x5c194b(0x15b)][_0x5c194b(0x134)](0x0,_0xc36158)+_0xa27b6c[_0x5c194b(0x15b)][_0x5c194b(0x134)](_0x505f94),Te(_0xa27b6c,_0xc36158,_0x5140f5);}function we(_0xaa6229,_0x49034a,_0x1ed777){const _0x4ca0f8=_0x32228a;_0xaa6229[_0x4ca0f8(0x16f)]=P(_0xaa6229[_0x4ca0f8(0x16f)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x15a)]=P(_0xaa6229[_0x4ca0f8(0x15a)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x12c)]=P(_0xaa6229[_0x4ca0f8(0x12c)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x186)]=Ee(_0xaa6229[_0x4ca0f8(0x186)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x194)]=I(_0xaa6229[_0x4ca0f8(0x194)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x17c)]=I(_0xaa6229[_0x4ca0f8(0x17c)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x17a)]=I(_0xaa6229['customDecorations'],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x172)]=I(_0xaa6229[_0x4ca0f8(0x172)],_0x49034a,_0x1ed777);}function Te(_0xc3b00f,_0x20c5c5,_0x33c89c){const _0x553c9d=_0x32228a;var _0x32e7ad,_0x4845bc;_0xc3b00f[_0x553c9d(0x16f)]=F(_0xc3b00f[_0x553c9d(0x16f)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x15a)]=F(_0xc3b00f['sectionBreaks'],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x12c)]=F(_0xc3b00f[_0x553c9d(0x12c)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x186)]=(_0x32e7ad=L((_0x4845bc=_0xc3b00f[_0x553c9d(0x186)])==null?void 0x0:_0x4845bc['map'](_0x46f31f=>({..._0x46f31f,'startIndex':_0x46f31f['st'],'endIndex':_0x46f31f['ed']})),_0x20c5c5,_0x33c89c))==null?void 0x0:_0x32e7ad[_0x553c9d(0x132)](_0x1795f5=>{let {startIndex:_0x27664a,endIndex:_0x82241c,..._0x2156e5}=_0x1795f5;return{..._0x2156e5,'st':_0x27664a,'ed':_0x82241c};}),_0xc3b00f[_0x553c9d(0x194)]=L(_0xc3b00f[_0x553c9d(0x194)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x17c)]=L(_0xc3b00f['customRanges'],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x17a)]=L(_0xc3b00f[_0x553c9d(0x17a)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x172)]=L(_0xc3b00f[_0x553c9d(0x172)],_0x20c5c5,_0x33c89c);}function P(_0x3da4aa,_0x53c0b1,_0x2c7255){const _0x4b9e95=_0x32228a;return _0x3da4aa==null?void 0x0:_0x3da4aa[_0x4b9e95(0x132)](_0x80b719=>_0x80b719[_0x4b9e95(0x14b)]>=_0x53c0b1?{..._0x80b719,'startIndex':_0x80b719['startIndex']+_0x2c7255}:_0x80b719);}function F(_0xef2a79,_0x4e445e,_0x3bd9aa){const _0x5e2c73=_0x32228a;let _0x57d765=_0x4e445e+_0x3bd9aa;return _0xef2a79==null?void 0x0:_0xef2a79[_0x5e2c73(0x132)](_0x54eb78=>_0x54eb78[_0x5e2c73(0x14b)]>=_0x4e445e&&_0x54eb78[_0x5e2c73(0x14b)]<_0x57d765?null:_0x54eb78['startIndex']>=_0x57d765?{..._0x54eb78,'startIndex':_0x54eb78[_0x5e2c73(0x14b)]-_0x3bd9aa}:_0x54eb78)['filter'](_0x38dafb=>_0x38dafb!=null);}function Ee(_0x1b7a55,_0x20e323,_0x14804a){const _0x14fb3a=_0x32228a;return _0x1b7a55==null?void 0x0:_0x1b7a55[_0x14fb3a(0x132)](_0x21f42d=>_0x21f42d['st']>=_0x20e323?{..._0x21f42d,'st':_0x21f42d['st']+_0x14804a,'ed':_0x21f42d['ed']+_0x14804a}:_0x21f42d['ed']>_0x20e323?{..._0x21f42d,'ed':_0x21f42d['ed']+_0x14804a}:_0x21f42d);}function I(_0x57d080,_0x55db21,_0x2ec604){const _0x391dfa=_0x32228a;return _0x57d080==null?void 0x0:_0x57d080[_0x391dfa(0x132)](_0x5c7c29=>_0x5c7c29['startIndex']>=_0x55db21?{..._0x5c7c29,'startIndex':_0x5c7c29[_0x391dfa(0x14b)]+_0x2ec604,'endIndex':_0x5c7c29[_0x391dfa(0x15d)]+_0x2ec604}:_0x5c7c29[_0x391dfa(0x15d)]>=_0x55db21?{..._0x5c7c29,'endIndex':_0x5c7c29[_0x391dfa(0x15d)]+_0x2ec604}:_0x5c7c29);}function L(_0x48b7b5,_0x2ccd3a,_0x45d54f){const _0x5edd1e=_0x32228a;let _0x3f349f=_0x2ccd3a+_0x45d54f;return _0x48b7b5==null?void 0x0:_0x48b7b5[_0x5edd1e(0x132)](_0x525ac8=>_0x525ac8[_0x5edd1e(0x14b)]>=_0x2ccd3a&&_0x525ac8[_0x5edd1e(0x15d)]<_0x3f349f?null:_0x525ac8['startIndex']>=_0x3f349f?{..._0x525ac8,'startIndex':_0x525ac8['startIndex']-_0x45d54f,'endIndex':_0x525ac8[_0x5edd1e(0x15d)]-_0x45d54f}:_0x525ac8[_0x5edd1e(0x15d)]>=_0x2ccd3a?{..._0x525ac8,'startIndex':_0x525ac8['startIndex']<_0x2ccd3a?_0x525ac8[_0x5edd1e(0x14b)]:_0x2ccd3a,'endIndex':Math[_0x5edd1e(0x18f)](_0x2ccd3a,_0x525ac8[_0x5edd1e(0x15d)]-_0x45d54f)}:_0x525ac8)['filter'](_0x1cc640=>_0x1cc640!=null);}function R(_0x447172,_0x49a73e,_0x253c27,_0x44a2f4){const _0x302b83=_0x32228a;_0x447172==null||_0x447172[_0x302b83(0x1a6)](_0x169b88=>{const _0x1ccd8b=_0x302b83;_0x169b88[_0x1ccd8b(0x14b)]>=_0x49a73e&&_0x169b88[_0x1ccd8b(0x14b)]<_0x253c27&&(_0x169b88[_0x1ccd8b(0x14b)]+=_0x44a2f4);});}function De(_0x55744f,_0x39b30d,_0xe364b5,_0x28d5b5){const _0x5427a7=_0x32228a;_0x55744f==null||_0x55744f[_0x5427a7(0x1a6)](_0x383f8f=>{_0x383f8f['st']>=_0x39b30d&&_0x383f8f['st']<_0xe364b5?(_0x383f8f['st']+=_0x28d5b5,_0x383f8f['ed']+=_0x28d5b5):_0x383f8f['ed']>_0x39b30d&&_0x383f8f['ed']<_0xe364b5&&(_0x383f8f['ed']+=_0x28d5b5);});}function z(_0x5a39e0,_0x293cce,_0x35b71f,_0x345305){_0x5a39e0==null||_0x5a39e0['forEach'](_0x245116=>{const _0x108eeb=_0x5a31;_0x245116[_0x108eeb(0x14b)]>=_0x293cce&&_0x245116[_0x108eeb(0x14b)]<_0x35b71f?(_0x245116[_0x108eeb(0x14b)]+=_0x345305,_0x245116[_0x108eeb(0x15d)]+=_0x345305):_0x245116['endIndex']>_0x293cce&&_0x245116[_0x108eeb(0x15d)]<_0x35b71f&&(_0x245116[_0x108eeb(0x15d)]+=_0x345305);});}function B(_0x1cf255){'@babel/helpers - typeof';const _0x290537=_0x32228a;return B=typeof Symbol==_0x290537(0x14c)&&typeof Symbol[_0x290537(0x192)]=='symbol'?function(_0x3fde1a){return typeof _0x3fde1a;}:function(_0x3dfbb1){const _0x94a508=_0x290537;return _0x3dfbb1&&typeof Symbol=='function'&&_0x3dfbb1[_0x94a508(0x174)]===Symbol&&_0x3dfbb1!==Symbol[_0x94a508(0x144)]?_0x94a508(0x189):typeof _0x3dfbb1;},B(_0x1cf255);}function Oe(_0x501706,_0x10c89c){const _0x1d7c33=_0x32228a;if(B(_0x501706)!=_0x1d7c33(0x1a3)||!_0x501706)return _0x501706;var _0x2d3240=_0x501706[Symbol[_0x1d7c33(0x168)]];if(_0x2d3240!==void 0x0){var _0x5c2342=_0x2d3240['call'](_0x501706,_0x10c89c||'default');if(B(_0x5c2342)!=_0x1d7c33(0x1a3))return _0x5c2342;throw TypeError(_0x1d7c33(0x19b));}return(_0x10c89c===_0x1d7c33(0x16d)?String:Number)(_0x501706);}function ke(_0x1cc6b5){const _0x18e07c=_0x32228a;var _0x20fa3a=Oe(_0x1cc6b5,_0x18e07c(0x16d));return B(_0x20fa3a)==_0x18e07c(0x189)?_0x20fa3a:_0x20fa3a+'';}function V(_0x368947,_0x53df43,_0x3d2d04){const _0x2dd4a7=_0x32228a;return(_0x53df43=ke(_0x53df43))in _0x368947?Object[_0x2dd4a7(0x1a9)](_0x368947,_0x53df43,{'value':_0x3d2d04,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x368947[_0x53df43]=_0x3d2d04,_0x368947;}var H=class extends _0x2c13b2{constructor(..._0x2aa538){const _0x2616ee=_0x32228a;super(..._0x2aa538),V(this,_0x2616ee(0x151),new Map()),V(this,_0x2616ee(0x143),new _0x5e31df()),V(this,_0x2616ee(0x188),this[_0x2616ee(0x143)][_0x2616ee(0x173)]());}[_0x32228a(0x127)](_0x328095,_0x4aa464){const _0x3b84f8=_0x32228a;return w(this['_resources'][_0x3b84f8(0x13f)](_0x328095))['codes'][_0x4aa464];}[_0x32228a(0x197)](_0x106bb0,_0x1dbdb9,_0x11a677){const _0x4397ab=_0x32228a;this['_setResource'](_0x106bb0,_0x1dbdb9,T(this[_0x4397ab(0x151)][_0x4397ab(0x13f)](_0x106bb0),_0x1dbdb9,_0x11a677));}[_0x32228a(0x16e)](_0x15f4df,_0x218888){const _0x33a796=_0x32228a;this['_setResource'](_0x15f4df,_0x218888,re(this[_0x33a796(0x151)][_0x33a796(0x13f)](_0x15f4df),_0x218888));}['serialize'](_0x289bd0){const _0x143fe1=_0x32228a;return w(this['_resources'][_0x143fe1(0x13f)](_0x289bd0));}['deserialize'](_0x28d013,_0xd12d47){const _0x437ab7=_0x32228a;this[_0x437ab7(0x151)][_0x437ab7(0x19c)](_0x28d013,w(_0xd12d47)),this[_0x437ab7(0x143)][_0x437ab7(0x159)]({'unitId':_0x28d013});}[_0x32228a(0x13c)](_0x6efce1){const _0x2358b2=_0x32228a;this[_0x2358b2(0x151)][_0x2358b2(0x148)](_0x6efce1),this[_0x2358b2(0x143)][_0x2358b2(0x159)]({'unitId':_0x6efce1});}[_0x32228a(0x19f)](){const _0x21c6e4=_0x32228a;super[_0x21c6e4(0x19f)](),this[_0x21c6e4(0x151)]['clear'](),this['_change$'][_0x21c6e4(0x136)]();}[_0x32228a(0x135)](_0x55691d,_0x35f597,_0x3e0c68){const _0x5f2d46=_0x32228a;this[_0x5f2d46(0x151)][_0x5f2d46(0x19c)](_0x55691d,_0x3e0c68),this[_0x5f2d46(0x143)]['next']({'unitId':_0x55691d,'blockId':_0x35f597});}};const Ae={'id':'docs-code.command.insert-below','type':_0x119629[_0x32228a(0x191)],'handler':_0x5b27f6=>{const _0x21a79d=_0x32228a;let _0x4265e7=Pe(_0x5b27f6);if(_0x4265e7)return _0x5b27f6[_0x21a79d(0x13f)](_0x5d6f06)['syncExecuteCommand'](U['id'],{'startOffset':_0x4265e7[_0x21a79d(0x155)],'endOffset':_0x4265e7[_0x21a79d(0x19d)],'unitId':_0x4265e7[_0x21a79d(0x190)]});let _0x1a4e88=Fe(_0x5b27f6);if(!_0x1a4e88)return!0x1;let _0x1e8060=_0x1a4e88[_0x21a79d(0x14b)]+0x1;return _0x5b27f6[_0x21a79d(0x13f)](_0x5d6f06)[_0x21a79d(0x145)](U['id'],{'startOffset':_0x1e8060,'endOffset':_0x1e8060});}},je={'id':'docs-code.command.consume-boundary-delete','type':_0x119629[_0x32228a(0x191)],'handler':()=>!0x0},U={'id':_0x32228a(0x187),'type':_0x119629[_0x32228a(0x191)],'handler':(_0x36be36,_0x1a31da)=>{const _0x1c8719=_0x32228a;var _0x4e96de,_0x4311e8,_0x3ba251;let _0x3b7cfc=G(_0x36be36,_0x1a31da==null?void 0x0:_0x1a31da[_0x1c8719(0x190)]);if(!_0x3b7cfc)return!0x1;let _0x55d273=K(_0x36be36),_0x1ef1fd=ie({'blockId':(_0x4e96de=_0x1a31da==null?void 0x0:_0x1a31da['blockId'])==null?_0x38bf25(0x6):_0x4e96de,'config':_0x1a31da==null?void 0x0:_0x1a31da[_0x1c8719(0x146)],'documentData':_0x3b7cfc[_0x1c8719(0x182)],'endOffset':(_0x4311e8=_0x1a31da==null?void 0x0:_0x1a31da['endOffset'])==null?_0x55d273==null?void 0x0:_0x55d273[_0x1c8719(0x19d)]:_0x4311e8,'metadata':_0x3b7cfc[_0x1c8719(0x17d)][_0x1c8719(0x12f)](_0x3b7cfc['unitId']),'startOffset':(_0x3ba251=_0x1a31da==null?void 0x0:_0x1a31da['startOffset'])==null?_0x55d273==null?void 0x0:_0x55d273[_0x1c8719(0x155)]:_0x3ba251}),_0x560f13=J(_0x3b7cfc[_0x1c8719(0x1ac)],_0x3b7cfc['unitId'],_0x3b7cfc[_0x1c8719(0x182)],_0x1ef1fd[_0x1c8719(0x163)],_0x1ef1fd[_0x1c8719(0x196)]);return _0x560f13&&_0x1ef1fd['nextMetadata']&&_0x3b7cfc[_0x1c8719(0x17d)][_0x1c8719(0x14e)](_0x3b7cfc[_0x1c8719(0x190)],_0x1ef1fd[_0x1c8719(0x12d)]),_0x560f13;}},Me={'id':'docs-code.command.update','type':_0x119629[_0x32228a(0x191)],'handler':(_0x34983f,_0x56418e)=>{const _0x299500=_0x32228a;if(!_0x56418e)return!0x1;let _0x27f502=G(_0x34983f,_0x56418e[_0x299500(0x190)]);if(!_0x27f502)return!0x1;let _0x750c6a=se({'blockId':_0x56418e[_0x299500(0x165)],'config':_0x56418e['config'],'documentData':_0x27f502['previousDocumentData'],'metadata':_0x27f502['model']['serialize'](_0x27f502[_0x299500(0x190)])});return _0x750c6a['nextMetadata']&&_0x27f502[_0x299500(0x17d)][_0x299500(0x14e)](_0x27f502['unitId'],_0x750c6a[_0x299500(0x12d)]),!0x0;}},W={'id':_0x32228a(0x13b),'type':_0x119629[_0x32228a(0x191)],'handler':(_0x34489b,_0x1b06c7)=>{const _0x3760cd=_0x32228a;var _0xf12787,_0x2db3a1;let _0x433c34=G(_0x34489b,_0x1b06c7==null?void 0x0:_0x1b06c7['unitId']);if(!_0x433c34)return!0x1;let _0x1ef3e9=(_0xf12787=_0x1b06c7==null?void 0x0:_0x1b06c7[_0x3760cd(0x196)])==null?(_0x2db3a1=K(_0x34489b))==null?void 0x0:_0x2db3a1['startOffset']:_0xf12787;if(_0x1ef3e9==null)return!0x1;let _0x46ca9f=ce({'cursorOffset':_0x1ef3e9,'documentData':_0x433c34[_0x3760cd(0x182)]});return _0x46ca9f?J(_0x433c34[_0x3760cd(0x1ac)],_0x433c34[_0x3760cd(0x190)],_0x433c34[_0x3760cd(0x182)],_0x46ca9f[_0x3760cd(0x163)],_0x46ca9f[_0x3760cd(0x196)]):!0x1;}},Ne={'id':_0x32228a(0x15c),'type':_0x119629[_0x32228a(0x191)],'handler':(_0x21db0b,_0x97aafd)=>{const _0xd05e26=_0x32228a;var _0x18d026,_0x5325f2;let _0x439612=G(_0x21db0b,_0x97aafd==null?void 0x0:_0x97aafd[_0xd05e26(0x190)]);if(!_0x439612)return!0x1;let _0x4f593b=(_0x18d026=_0x97aafd==null?void 0x0:_0x97aafd['cursorOffset'])==null?(_0x5325f2=K(_0x21db0b))==null?void 0x0:_0x5325f2[_0xd05e26(0x155)]:_0x18d026;if(_0x4f593b==null)return!0x1;let _0x54d294=le({'cursorOffset':_0x4f593b,'documentData':_0x439612[_0xd05e26(0x182)],'paragraphStartIndex':_0x97aafd==null?void 0x0:_0x97aafd['paragraphStartIndex']});return _0x54d294?J(_0x439612[_0xd05e26(0x1ac)],_0x439612[_0xd05e26(0x190)],_0x439612[_0xd05e26(0x182)],_0x54d294['nextDocumentData'],_0x54d294['cursorOffset']):!0x1;}};function G(_0x355998,_0x58a8f1){const _0xaf9667=_0x32228a;let _0xc33f2f=_0x355998[_0xaf9667(0x13f)](_0x4e1fbc),_0x4ccbd0=_0x58a8f1?_0xc33f2f[_0xaf9667(0x19e)](_0x58a8f1):_0xc33f2f[_0xaf9667(0x184)](_0x314853[_0xaf9667(0x14f)]);return _0x4ccbd0?{'commandService':_0x355998[_0xaf9667(0x13f)](_0x5d6f06),'model':_0x355998[_0xaf9667(0x13f)](H),'previousDocumentData':_0x4ccbd0['getSnapshot'](),'unitId':_0x4ccbd0[_0xaf9667(0x133)]()}:null;}function K(_0x22b4c3){const _0x4594e3=_0x32228a;var _0x11b785;return(_0x11b785=_0x22b4c3[_0x4594e3(0x13f)](_0x3e133d)['getTextRanges']())==null?void 0x0:_0x11b785[0x0];}function Pe(_0x47cfc5){const _0x6318b9=_0x32228a;var _0x5e9d48;let _0x9984e6=(_0x5e9d48=_0x47cfc5[_0x6318b9(0x13f)](_0x4e1fbc)['getCurrentUnitOfType'](_0x314853[_0x6318b9(0x14f)]))==null?void 0x0:_0x5e9d48[_0x6318b9(0x133)]();try{return _0x47cfc5[_0x6318b9(0x13f)](_0x157d07)[_0x6318b9(0x157)](_0x9984e6);}catch{return null;}}function Fe(_0x3602f3){const _0xc47835=_0x32228a;var _0x3b3f4b,_0x47535b,_0x474f38;let _0x1e797b=K(_0x3602f3);if(!_0x1e797b)return null;let _0x52d2ae=_0x3602f3[_0xc47835(0x13f)](_0x4e1fbc)[_0xc47835(0x184)](_0x314853['UNIVER_DOC']),_0x6b2959=_0x52d2ae==null?void 0x0:_0x52d2ae[_0xc47835(0x19a)]();return _0x6b2959?(_0x3b3f4b=_0x3df5ca[_0xc47835(0x137)][_0xc47835(0x129)](_0x1e797b,(_0x47535b=_0x6b2959[_0xc47835(0x16f)])==null?[]:_0x47535b,(_0x474f38=_0x6b2959[_0xc47835(0x15b)])==null?'':_0x474f38)[0x0])==null?null:_0x3b3f4b:null;}function Ie(_0x3358ef,_0x5f569c){const _0x3bc747=_0x32228a;var _0x5025f6,_0x561e0e,_0x23b19e,_0x243741,_0x29048c,_0x12b64a,_0x446ef0,_0x40a710,_0x247858,_0x21ac8b,_0x248c3a,_0x3f2d90,_0x4f127d,_0x46a271,_0x2a3888,_0x29681d,_0xf74476,_0x4607d4;let _0x284aaa=_0x2725dd[_0x3bc747(0x16a)]();return[q(_0x284aaa,['body',_0x3bc747(0x15b)],(_0x5025f6=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x5025f6[_0x3bc747(0x15b)],(_0x561e0e=_0x5f569c['body'])==null?void 0x0:_0x561e0e['dataStream']),q(_0x284aaa,[_0x3bc747(0x195),'paragraphs'],(_0x23b19e=_0x3358ef['body'])==null?void 0x0:_0x23b19e[_0x3bc747(0x16f)],(_0x243741=_0x5f569c['body'])==null?void 0x0:_0x243741['paragraphs']),q(_0x284aaa,['body',_0x3bc747(0x15a)],(_0x29048c=_0x3358ef['body'])==null?void 0x0:_0x29048c[_0x3bc747(0x15a)],(_0x12b64a=_0x5f569c['body'])==null?void 0x0:_0x12b64a[_0x3bc747(0x15a)]),q(_0x284aaa,[_0x3bc747(0x195),_0x3bc747(0x186)],(_0x446ef0=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x446ef0[_0x3bc747(0x186)],(_0x40a710=_0x5f569c['body'])==null?void 0x0:_0x40a710[_0x3bc747(0x186)]),q(_0x284aaa,['body',_0x3bc747(0x12c)],(_0x247858=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x247858[_0x3bc747(0x12c)],(_0x21ac8b=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x21ac8b['customBlocks']),q(_0x284aaa,[_0x3bc747(0x195),_0x3bc747(0x17c)],(_0x248c3a=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x248c3a[_0x3bc747(0x17c)],(_0x3f2d90=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x3f2d90['customRanges']),q(_0x284aaa,[_0x3bc747(0x195),'customDecorations'],(_0x4f127d=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x4f127d[_0x3bc747(0x17a)],(_0x46a271=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x46a271[_0x3bc747(0x17a)]),q(_0x284aaa,[_0x3bc747(0x195),_0x3bc747(0x194)],(_0x2a3888=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x2a3888[_0x3bc747(0x194)],(_0x29681d=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x29681d['tables']),q(_0x284aaa,['body',_0x3bc747(0x172)],(_0xf74476=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0xf74476[_0x3bc747(0x172)],(_0x4607d4=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x4607d4[_0x3bc747(0x172)])]['filter'](Boolean)[_0x3bc747(0x167)]((_0x105905,_0x577e5c)=>_0x2725dd[_0x3bc747(0x12b)](_0x105905,_0x577e5c),null);}function q(_0x455190,_0x30e350,_0x2f1f24,_0x17b8de){const _0x278348=_0x32228a;return _0x439388[_0x278348(0x150)](_0x2f1f24,_0x17b8de)?null:_0x455190['replaceOp'](_0x30e350,_0x2f1f24,_0x17b8de);}function J(_0x19c853,_0xfa974f,_0x8890db,_0x28b21e,_0xb1e39a){const _0x176a78=_0x32228a;let _0x2f5d26=Ie(_0x8890db,_0x28b21e);return _0x2f5d26?!!_0x19c853[_0x176a78(0x145)](_0x37489d['id'],{'unitId':_0xfa974f,'actions':_0x2f5d26,'textRanges':[{'startOffset':_0xb1e39a,'endOffset':_0xb1e39a,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y='DOC_CODE_PLUGIN';var Le=_0x32228a(0x130),Re=_0x32228a(0x183);const ze={};function X(_0x4fdac1,_0x18043c){return function(_0x461ac6,_0x5028e1){_0x18043c(_0x461ac6,_0x5028e1,_0x4fdac1);};}function Z(_0xc67381,_0x9bfa54,_0x523730,_0x2daa8c){const _0x18df2a=_0x32228a;var _0x433fd0=arguments['length'],_0x1ea23b=_0x433fd0<0x3?_0x9bfa54:_0x2daa8c===null?_0x2daa8c=Object[_0x18df2a(0x166)](_0x9bfa54,_0x523730):_0x2daa8c,_0x5aa2e7;if(typeof Reflect==_0x18df2a(0x1a3)&&typeof Reflect[_0x18df2a(0x14a)]=='function')_0x1ea23b=Reflect[_0x18df2a(0x14a)](_0xc67381,_0x9bfa54,_0x523730,_0x2daa8c);else{for(var _0x446c05=_0xc67381[_0x18df2a(0x13e)]-0x1;_0x446c05>=0x0;_0x446c05--)(_0x5aa2e7=_0xc67381[_0x446c05])&&(_0x1ea23b=(_0x433fd0<0x3?_0x5aa2e7(_0x1ea23b):_0x433fd0>0x3?_0x5aa2e7(_0x9bfa54,_0x523730,_0x1ea23b):_0x5aa2e7(_0x9bfa54,_0x523730))||_0x1ea23b);}return _0x433fd0>0x3&&_0x1ea23b&&Object[_0x18df2a(0x1a9)](_0x9bfa54,_0x523730,_0x1ea23b),_0x1ea23b;}let Q=class extends _0x2c13b2{constructor(_0x3ccf99,_0x51a1bb){const _0x1fa283=_0x32228a;super(),this[_0x1fa283(0x13d)]=_0x3ccf99,this[_0x1fa283(0x1a1)]=_0x51a1bb,this[_0x1fa283(0x12e)]();}[_0x32228a(0x12e)](){const _0x5b3342=_0x32228a;this[_0x5b3342(0x18b)](this[_0x5b3342(0x13d)][_0x5b3342(0x158)]({'pluginName':Y,'businesses':[_0x314853[_0x5b3342(0x14f)]],'toJson':_0x1c8e3a=>JSON['stringify'](this[_0x5b3342(0x1a1)]['serialize'](_0x1c8e3a)),'parseJson':_0x4c13de=>w(JSON['parse'](_0x4c13de)),'onLoad':(_0x42bad6,_0x30eef0)=>this[_0x5b3342(0x1a1)]['deserialize'](_0x42bad6,_0x30eef0),'onUnLoad':_0x26bbb7=>this[_0x5b3342(0x1a1)]['removeUnit'](_0x26bbb7)}));}};Q=Z([X(0x0,_0x335e62),X(0x1,_0x2c4bc4(H))],Q);let $=class extends _0x4f2da3{constructor(_0x5a371c=ze,_0x160475,_0xb782c9,_0x3a344f){const _0x230fad=_0x32228a;super(),this[_0x230fad(0x18e)]=_0x5a371c,this[_0x230fad(0x16b)]=_0x160475,this[_0x230fad(0x16c)]=_0xb782c9,this[_0x230fad(0x18a)]=_0x3a344f;let {..._0xd898a0}=_0x5c6bbb({},ze,this[_0x230fad(0x18e)]);this[_0x230fad(0x18a)][_0x230fad(0x198)](_0x230fad(0x156),_0xd898a0);}[_0x32228a(0x176)](){const _0x6cbd81=_0x32228a;this[_0x6cbd81(0x16b)][_0x6cbd81(0x1a5)]([H]),this[_0x6cbd81(0x16b)][_0x6cbd81(0x1a5)]([Q]),this['_injector'][_0x6cbd81(0x13f)](H),this[_0x6cbd81(0x16b)][_0x6cbd81(0x13f)](Q),[U,Ae,Me,W,Ne,je]['forEach'](_0x560c3d=>this['disposeWithMe'](this['_commandService'][_0x6cbd81(0x140)](_0x560c3d)));}};V($,_0x32228a(0x180),Y),V($,_0x32228a(0x142),Le),V($,_0x32228a(0x153),Re),V($,_0x32228a(0x1ab),_0x314853[_0x32228a(0x14f)]),$=Z([_0x119ba8(_0x1d8255,_0x1c988a),X(0x1,_0x2c4bc4(_0x382794)),X(0x2,_0x5d6f06),X(0x3,_0x1e6417)],$);export{S as DEFAULT_CODE_CONFIG,Y as DOCS_CODE_PLUGIN,Ne as DocsCodeCancelEmptyParagraphCommand,je as DocsCodeConsumeBoundaryDeleteCommand,W as DocsCodeExitCommand,Ae as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Me as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,le as buildCancelEmptyCodeParagraphActions,ce as buildExitCodeActions,ie as buildInsertCodeActions,se as buildUpdateCodeActions,de as findCodeRangeAtOffset,fe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x32cc06=_0x3109;(function(_0x584d46,_0x565e67){var _0x17033c=_0x3109,_0x43d8f0=_0x584d46();while(!![]){try{var _0x311a6d=-parseInt(_0x17033c(0x197))/0x1+parseInt(_0x17033c(0x190))/0x2+-parseInt(_0x17033c(0x1b5))/0x3+parseInt(_0x17033c(0x17b))/0x4*(-parseInt(_0x17033c(0x1b9))/0x5)+-parseInt(_0x17033c(0x19d))/0x6+-parseInt(_0x17033c(0x184))/0x7*(-parseInt(_0x17033c(0x1a3))/0x8)+parseInt(_0x17033c(0x1b8))/0x9;if(_0x311a6d===_0x565e67)break;else _0x43d8f0['push'](_0x43d8f0['shift']());}catch(_0x350194){_0x43d8f0['push'](_0x43d8f0['shift']());}}}(_0x1bdc,0x9a740));import{DocsCodeCancelEmptyParagraphCommand as _0x3e88be,DocsCodeExitCommand as _0x2acfb4,DocsCodeInsertCommand as _0x902187,DocsCodeModel as _0x4e097f,DocsCodeUpdateCommand as _0x55a75c,normalizeDocsCodeConfig as _0x32b8ae}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x27d002,DocumentBlockRangeType as _0xefddf8,ICommandService as _0x41d2b2,Inject as _0x4ffd1a,Injector as _0x4ccfbe,generateRandomId as _0x198240}from'@univerjs/core';function _0x1bdc(){var _0x1e94b6=['get','getCode','insertCode','symbol','2244830FNpyzy','length','cancelEmptyParagraph','body','getRange','_injector','prototype','815185xVMcuX','save','getCodeAt','cancelEmptyCodeParagraph','createInstance','endIndex','6932214jetCYl','blockRanges','_blockId','_getBlockRanges','defineProperty','join','40lGNOKm','toPrimitive','decorate','updateConfig','default','getText','syncExecuteCommand','startIndex','_getDocumentData','call','blockType','exitCode','config','blockId','getId','findCodeByText','string','describe','214767fCQClK','constructor','text','20020905HRAVWj','216865mjPCnZ','PARAGRAPH','CODE','_unitId','SECTION_BREAK','_createFDocumentCode','iterator','76XOCdwR','object','map','BLOCK_START','_getBlockRange','findCodes','getConfig','find','dataStream','212674JbeSBp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','from','filter','function','_document','getCodes','includes'];_0x1bdc=function(){return _0x1e94b6;};return _0x1bdc();}import{FDocument as _0xe85f03}from'@univerjs/docs/facade';function p(_0x475078){'@babel/helpers - typeof';var _0x5d8ab5=_0x3109;return p=typeof Symbol==_0x5d8ab5(0x188)&&typeof Symbol[_0x5d8ab5(0x17a)]==_0x5d8ab5(0x18f)?function(_0x1527d9){return typeof _0x1527d9;}:function(_0x2b07e0){var _0x32bcd1=_0x5d8ab5;return _0x2b07e0&&typeof Symbol==_0x32bcd1(0x188)&&_0x2b07e0[_0x32bcd1(0x1b6)]===Symbol&&_0x2b07e0!==Symbol[_0x32bcd1(0x196)]?_0x32bcd1(0x18f):typeof _0x2b07e0;},p(_0x475078);}function m(_0x46f54a,_0xeb8b62){var _0x5e85b2=_0x3109;if(p(_0x46f54a)!='object'||!_0x46f54a)return _0x46f54a;var _0x1cc00e=_0x46f54a[Symbol[_0x5e85b2(0x1a4)]];if(_0x1cc00e!==void 0x0){var _0x20a35=_0x1cc00e[_0x5e85b2(0x1ac)](_0x46f54a,_0xeb8b62||_0x5e85b2(0x1a7));if(p(_0x20a35)!=_0x5e85b2(0x17c))return _0x20a35;throw TypeError(_0x5e85b2(0x185));}return(_0xeb8b62===_0x5e85b2(0x1b3)?String:Number)(_0x46f54a);}function h(_0x39353e){var _0x9a12fb=_0x3109,_0x3dd04a=m(_0x39353e,_0x9a12fb(0x1b3));return p(_0x3dd04a)==_0x9a12fb(0x18f)?_0x3dd04a:_0x3dd04a+'';}function g(_0x5f559a,_0x36ecc9,_0x453ed2){var _0x3a2040=_0x3109;return(_0x36ecc9=h(_0x36ecc9))in _0x5f559a?Object[_0x3a2040(0x1a1)](_0x5f559a,_0x36ecc9,{'value':_0x453ed2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f559a[_0x36ecc9]=_0x453ed2,_0x5f559a;}function _(_0x56f7e2,_0x488c10){return function(_0x17ca06,_0x29483d){_0x488c10(_0x17ca06,_0x29483d,_0x56f7e2);};}function v(_0x101b56,_0x144ae5,_0x5897ae,_0x17c1f0){var _0x103e38=_0x3109,_0x377cbc=arguments[_0x103e38(0x191)],_0xed1a08=_0x377cbc<0x3?_0x144ae5:_0x17c1f0===null?_0x17c1f0=Object['getOwnPropertyDescriptor'](_0x144ae5,_0x5897ae):_0x17c1f0,_0x23be39;if(typeof Reflect==_0x103e38(0x17c)&&typeof Reflect[_0x103e38(0x1a5)]==_0x103e38(0x188))_0xed1a08=Reflect[_0x103e38(0x1a5)](_0x101b56,_0x144ae5,_0x5897ae,_0x17c1f0);else{for(var _0x2ae601=_0x101b56[_0x103e38(0x191)]-0x1;_0x2ae601>=0x0;_0x2ae601--)(_0x23be39=_0x101b56[_0x2ae601])&&(_0xed1a08=(_0x377cbc<0x3?_0x23be39(_0xed1a08):_0x377cbc>0x3?_0x23be39(_0x144ae5,_0x5897ae,_0xed1a08):_0x23be39(_0x144ae5,_0x5897ae))||_0xed1a08);}return _0x377cbc>0x3&&_0xed1a08&&Object['defineProperty'](_0x144ae5,_0x5897ae,_0xed1a08),_0xed1a08;}let y=class{constructor(_0x5bd17f,_0x5ddb55,_0x498605){var _0x19a766=_0x3109;this[_0x19a766(0x189)]=_0x5bd17f,this[_0x19a766(0x19f)]=_0x5ddb55,this['_injector']=_0x498605,g(this,_0x19a766(0x1bc),void 0x0),this['_unitId']=this[_0x19a766(0x189)][_0x19a766(0x1b1)]();}[_0x32cc06(0x1b1)](){var _0x5919ed=_0x32cc06;return this[_0x5919ed(0x19f)];}[_0x32cc06(0x194)](){var _0x2c034e=_0x32cc06;let _0xb9c85e=this[_0x2c034e(0x17f)]();return _0xb9c85e?{'blockId':_0xb9c85e[_0x2c034e(0x1b0)],'endIndex':_0xb9c85e[_0x2c034e(0x19c)],'startIndex':_0xb9c85e[_0x2c034e(0x1aa)]}:null;}[_0x32cc06(0x1a8)](){var _0x490df4=_0x32cc06,_0x348f01;let _0x32f7ea=this[_0x490df4(0x17f)](),_0x4e207a=(_0x348f01=this[_0x490df4(0x1ab)]()[_0x490df4(0x193)])==null?void 0x0:_0x348f01[_0x490df4(0x183)];return!_0x32f7ea||!_0x4e207a?'':b(_0x4e207a['slice'](_0x32f7ea['startIndex']+0x1,_0x32f7ea[_0x490df4(0x19c)]));}[_0x32cc06(0x1b4)](){var _0x235d47=_0x32cc06;let _0x299a2c=this[_0x235d47(0x194)]();return _0x299a2c?{..._0x299a2c,'config':this[_0x235d47(0x181)](),'text':this[_0x235d47(0x1a8)](),'type':_0xefddf8[_0x235d47(0x1bb)]}:null;}[_0x32cc06(0x181)](){var _0x1ac4fb=_0x32cc06;return _0x32b8ae(this[_0x1ac4fb(0x195)][_0x1ac4fb(0x18c)](_0x4e097f)['getCodeConfig'](this[_0x1ac4fb(0x1bc)],this[_0x1ac4fb(0x19f)]));}[_0x32cc06(0x1a6)](_0x3b8a3a){var _0xde77f2=_0x32cc06;return this[_0xde77f2(0x195)][_0xde77f2(0x18c)](_0x41d2b2)['syncExecuteCommand'](_0x55a75c['id'],{'blockId':this[_0xde77f2(0x19f)],'config':_0x3b8a3a[_0xde77f2(0x1af)],'unitId':this[_0xde77f2(0x1bc)]});}['exit'](_0x5746a2){var _0x51ad42=_0x32cc06;return this[_0x51ad42(0x195)][_0x51ad42(0x18c)](_0x41d2b2)[_0x51ad42(0x1a9)](_0x2acfb4['id'],{'cursorOffset':_0x5746a2,'unitId':this[_0x51ad42(0x1bc)]});}[_0x32cc06(0x192)](_0x188157={}){var _0x236be6=_0x32cc06;return this[_0x236be6(0x195)][_0x236be6(0x18c)](_0x41d2b2)[_0x236be6(0x1a9)](_0x3e88be['id'],{..._0x188157,'unitId':this[_0x236be6(0x1bc)]});}[_0x32cc06(0x1ab)](){var _0x366ff1=_0x32cc06;return this[_0x366ff1(0x189)][_0x366ff1(0x198)]();}[_0x32cc06(0x17f)](){var _0x53feaf=_0x32cc06,_0x521a1a;let _0x5ca813=(_0x521a1a=this[_0x53feaf(0x1ab)]()[_0x53feaf(0x193)])==null||(_0x521a1a=_0x521a1a[_0x53feaf(0x19e)])==null?void 0x0:_0x521a1a[_0x53feaf(0x182)](_0x3d5bd0=>_0x3d5bd0[_0x53feaf(0x1b0)]===this[_0x53feaf(0x19f)]&&_0x3d5bd0['blockType']===_0xefddf8[_0x53feaf(0x1bb)]);return _0x5ca813==null?null:_0x5ca813;}};y=v([_(0x2,_0x4ffd1a(_0x4ccfbe))],y);function b(_0x328b4f){var _0x1e29a7=_0x32cc06;return Array[_0x1e29a7(0x186)](_0x328b4f)[_0x1e29a7(0x17d)](_0xc955a8=>_0xc955a8===_0x27d002[_0x1e29a7(0x1ba)]?'\x0a':_0xc955a8)[_0x1e29a7(0x187)](_0x13fdc4=>_0x13fdc4!==_0x27d002[_0x1e29a7(0x17e)]&&_0x13fdc4!==_0x27d002['BLOCK_END']&&_0x13fdc4!==_0x27d002[_0x1e29a7(0x1bd)])[_0x1e29a7(0x1a2)]('')['replace'](/\n$/,'');}function _0x3109(_0x245723,_0x24ab4f){_0x245723=_0x245723-0x179;var _0x1bdc4b=_0x1bdc();var _0x3109df=_0x1bdc4b[_0x245723];return _0x3109df;}var x=class extends _0xe85f03{[_0x32cc06(0x18a)](){var _0xc71e15=_0x32cc06;return this[_0xc71e15(0x1a0)]()['filter'](_0x1bae12=>_0x1bae12[_0xc71e15(0x1ad)]===_0xefddf8[_0xc71e15(0x1bb)])[_0xc71e15(0x17d)](_0x580373=>this['_createFDocumentCode'](_0x580373['blockId']));}[_0x32cc06(0x18d)](_0x3e9ead){var _0x61388=_0x32cc06;return this['_getBlockRanges']()['some'](_0x2cc378=>_0x2cc378[_0x61388(0x1b0)]===_0x3e9ead&&_0x2cc378[_0x61388(0x1ad)]===_0xefddf8[_0x61388(0x1bb)])?this['_createFDocumentCode'](_0x3e9ead):null;}[_0x32cc06(0x199)](_0x46d526){var _0x179588=_0x32cc06;let _0x525ad4=this[_0x179588(0x1a0)]()[_0x179588(0x182)](_0x46735f=>_0x46735f[_0x179588(0x1ad)]===_0xefddf8[_0x179588(0x1bb)]&&_0x46735f[_0x179588(0x1aa)]<=_0x46d526&&_0x46d526<=_0x46735f[_0x179588(0x19c)]);return _0x525ad4?this[_0x179588(0x179)](_0x525ad4[_0x179588(0x1b0)]):null;}[_0x32cc06(0x1b2)](_0x36bf3d){var _0x38866d=_0x32cc06,_0x3bde68;return(_0x3bde68=this[_0x38866d(0x180)](_0x36bf3d)[0x0])==null?null:_0x3bde68;}['findCodes'](_0x40e8a5){var _0x546491=_0x32cc06;let _0x2cef31=typeof _0x40e8a5==_0x546491(0x1b3)?{'text':_0x40e8a5}:_0x40e8a5;return this[_0x546491(0x18a)]()['filter'](_0x39bd81=>!(_0x2cef31['blockId']&&_0x39bd81['getId']()!==_0x2cef31[_0x546491(0x1b0)]||_0x2cef31['text']&&!_0x39bd81[_0x546491(0x1a8)]()[_0x546491(0x18b)](_0x2cef31[_0x546491(0x1b7)])));}[_0x32cc06(0x18e)](_0x284f96={}){var _0x4c6335=_0x32cc06,_0x3d1cef;let _0x538883=this['_injector'][_0x4c6335(0x18c)](_0x41d2b2),_0x45a6c9=(_0x3d1cef=_0x284f96[_0x4c6335(0x1b0)])==null?_0x198240(0x6):_0x3d1cef;return _0x538883[_0x4c6335(0x1a9)](_0x902187['id'],{..._0x284f96,'blockId':_0x45a6c9,'unitId':this[_0x4c6335(0x1b1)]()})?this[_0x4c6335(0x179)](_0x45a6c9):null;}[_0x32cc06(0x1ae)](_0x2f2981){var _0x3955f0=_0x32cc06;return this['_injector'][_0x3955f0(0x18c)](_0x41d2b2)[_0x3955f0(0x1a9)](_0x2acfb4['id'],{'cursorOffset':_0x2f2981,'unitId':this[_0x3955f0(0x1b1)]()});}[_0x32cc06(0x19a)](_0x17c271={}){var _0x277f38=_0x32cc06;return this[_0x277f38(0x195)][_0x277f38(0x18c)](_0x41d2b2)[_0x277f38(0x1a9)](_0x3e88be['id'],{..._0x17c271,'unitId':this['getId']()});}[_0x32cc06(0x1a0)](){var _0x54250f=_0x32cc06,_0x3d7bf8,_0x3a952a;return(_0x3d7bf8=(_0x3a952a=this[_0x54250f(0x198)]()[_0x54250f(0x193)])==null?void 0x0:_0x3a952a['blockRanges'])==null?[]:_0x3d7bf8;}[_0x32cc06(0x179)](_0x1ccecf){var _0x4ad32e=_0x32cc06;return this[_0x4ad32e(0x195)][_0x4ad32e(0x19b)](y,this,_0x1ccecf);}};_0xe85f03['extend'](x);export{y as FDocumentCode};
1
+ var _0x9faa5c=_0x1070;(function(_0x490d13,_0xc7d3a4){var _0xc9dfa4=_0x1070,_0x209066=_0x490d13();while(!![]){try{var _0xe2ba1e=parseInt(_0xc9dfa4(0x1e8))/0x1*(parseInt(_0xc9dfa4(0x1c5))/0x2)+-parseInt(_0xc9dfa4(0x1c3))/0x3+-parseInt(_0xc9dfa4(0x1b8))/0x4+parseInt(_0xc9dfa4(0x1ba))/0x5*(-parseInt(_0xc9dfa4(0x1be))/0x6)+parseInt(_0xc9dfa4(0x1e0))/0x7+parseInt(_0xc9dfa4(0x1df))/0x8*(-parseInt(_0xc9dfa4(0x1f1))/0x9)+parseInt(_0xc9dfa4(0x1c0))/0xa*(parseInt(_0xc9dfa4(0x1a9))/0xb);if(_0xe2ba1e===_0xc7d3a4)break;else _0x209066['push'](_0x209066['shift']());}catch(_0x1fb4fa){_0x209066['push'](_0x209066['shift']());}}}(_0x4960,0xb3dda));import{DocsCodeCancelEmptyParagraphCommand as _0x498f13,DocsCodeExitCommand as _0x456d68,DocsCodeInsertCommand as _0x52c4be,DocsCodeModel as _0x5ba651,DocsCodeUpdateCommand as _0x2c6dd2,normalizeDocsCodeConfig as _0x279c7c}from'@univerjs-pro/docs-code';function _0x4960(){var _0x201e42=['192oxeFkR','5845497PpHYtt','paragraph','BLOCK_END','string','_getDocumentData','findCodes','_getBlockRange','body','31087VRaZBs','join','_document','length','find','blockRanges','decorate','defineProperty','dataStream','188847NxoLju','insertCode','object','33yTBRpn','BLOCK_START','prototype','describe','function','extend','_blockId','get','getConfig','blockType','updateConfig','getText','getCode','save','CODE','4584500glbSXf','constructor','4155835FolvVL','includes','_getBlockRanges','symbol','6rioqcS','cancelEmptyParagraph','8099290mBLSZI','findCodeByText','getId','3965433nKruFv','default','82abNDIB','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createInstance','text','toPrimitive','getCodeConfig','cancelEmptyCodeParagraph','some','getType','getRange','getCodeAt','syncExecuteCommand','call','map','blockId','_createFDocumentCode','filter','_unitId','endIndex','SECTION_BREAK','slice','startIndex','replace','_injector','getKey'];_0x4960=function(){return _0x201e42;};return _0x4960();}import{DataStreamTreeTokenType as _0xc101be,DocumentBlockRangeType as _0x259fe0,ICommandService as _0x22a214,Inject as _0x2c49bf,Injector as _0x13dfdf,generateRandomId as _0x1d07a4}from'@univerjs/core';import{FDocument as _0x21a962}from'@univerjs/docs/facade';function p(_0x312c4d){'@babel/helpers - typeof';var _0x3c387f=_0x1070;return p=typeof Symbol==_0x3c387f(0x1ad)&&typeof Symbol[_0x3c387f(0x1c6)]==_0x3c387f(0x1bd)?function(_0x38c158){return typeof _0x38c158;}:function(_0x39f610){var _0x2bf0ef=_0x3c387f;return _0x39f610&&typeof Symbol=='function'&&_0x39f610[_0x2bf0ef(0x1b9)]===Symbol&&_0x39f610!==Symbol[_0x2bf0ef(0x1ab)]?'symbol':typeof _0x39f610;},p(_0x312c4d);}function m(_0x16aed3,_0x4668ac){var _0x4b10a8=_0x1070;if(p(_0x16aed3)!=_0x4b10a8(0x1a8)||!_0x16aed3)return _0x16aed3;var _0x4841cc=_0x16aed3[Symbol[_0x4b10a8(0x1ca)]];if(_0x4841cc!==void 0x0){var _0x54761c=_0x4841cc[_0x4b10a8(0x1d2)](_0x16aed3,_0x4668ac||_0x4b10a8(0x1c4));if(p(_0x54761c)!='object')return _0x54761c;throw TypeError(_0x4b10a8(0x1c7));}return(_0x4668ac===_0x4b10a8(0x1e3)?String:Number)(_0x16aed3);}function h(_0x4d7151){var _0x1aaa32=_0x1070,_0x1d7031=m(_0x4d7151,_0x1aaa32(0x1e3));return p(_0x1d7031)==_0x1aaa32(0x1bd)?_0x1d7031:_0x1d7031+'';}function g(_0x353020,_0x5be1ee,_0x5e1ad1){var _0x19acdf=_0x1070;return(_0x5be1ee=h(_0x5be1ee))in _0x353020?Object[_0x19acdf(0x1ef)](_0x353020,_0x5be1ee,{'value':_0x5e1ad1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x353020[_0x5be1ee]=_0x5e1ad1,_0x353020;}function _(_0x3977dc,_0x2fd735){return function(_0x4fbc04,_0xa449f4){_0x2fd735(_0x4fbc04,_0xa449f4,_0x3977dc);};}function _0x1070(_0x20c2f4,_0x1e9170){_0x20c2f4=_0x20c2f4-0x1a7;var _0x496054=_0x4960();var _0x107005=_0x496054[_0x20c2f4];return _0x107005;}function v(_0x4af206,_0x28c613,_0x238213,_0x53a565){var _0x5b9353=_0x1070,_0x4ed88f=arguments[_0x5b9353(0x1eb)],_0x19795a=_0x4ed88f<0x3?_0x28c613:_0x53a565===null?_0x53a565=Object['getOwnPropertyDescriptor'](_0x28c613,_0x238213):_0x53a565,_0x127a4a;if(typeof Reflect==_0x5b9353(0x1a8)&&typeof Reflect[_0x5b9353(0x1ee)]==_0x5b9353(0x1ad))_0x19795a=Reflect[_0x5b9353(0x1ee)](_0x4af206,_0x28c613,_0x238213,_0x53a565);else{for(var _0x19a108=_0x4af206[_0x5b9353(0x1eb)]-0x1;_0x19a108>=0x0;_0x19a108--)(_0x127a4a=_0x4af206[_0x19a108])&&(_0x19795a=(_0x4ed88f<0x3?_0x127a4a(_0x19795a):_0x4ed88f>0x3?_0x127a4a(_0x28c613,_0x238213,_0x19795a):_0x127a4a(_0x28c613,_0x238213))||_0x19795a);}return _0x4ed88f>0x3&&_0x19795a&&Object[_0x5b9353(0x1ef)](_0x28c613,_0x238213,_0x19795a),_0x19795a;}let y=class{constructor(_0x3cfaed,_0x1624ed,_0x33c853){var _0x2d406c=_0x1070;this[_0x2d406c(0x1ea)]=_0x3cfaed,this[_0x2d406c(0x1af)]=_0x1624ed,this['_injector']=_0x33c853,g(this,_0x2d406c(0x1d7),void 0x0),this['_unitId']=this[_0x2d406c(0x1ea)]['getId']();}[_0x9faa5c(0x1c2)](){var _0x477c20=_0x9faa5c;return this[_0x477c20(0x1af)];}[_0x9faa5c(0x1cf)](){var _0x18755e=_0x9faa5c;let _0x33632b=this['_getBlockRange']();return _0x33632b?{'blockId':_0x33632b[_0x18755e(0x1d4)],'endIndex':_0x33632b[_0x18755e(0x1d8)],'startIndex':_0x33632b[_0x18755e(0x1db)]}:null;}[_0x9faa5c(0x1b4)](){var _0x361129=_0x9faa5c,_0xf37df4;let _0x15f5e0=this[_0x361129(0x1e6)](),_0x49be09=(_0xf37df4=this[_0x361129(0x1e4)]()[_0x361129(0x1e7)])==null?void 0x0:_0xf37df4[_0x361129(0x1f0)];return!_0x15f5e0||!_0x49be09?'':b(_0x49be09[_0x361129(0x1da)](_0x15f5e0[_0x361129(0x1db)]+0x1,_0x15f5e0[_0x361129(0x1d8)]));}[_0x9faa5c(0x1ac)](){var _0x23c341=_0x9faa5c;let _0x2caf82=this[_0x23c341(0x1cf)]();return _0x2caf82?{..._0x2caf82,'config':this[_0x23c341(0x1b1)](),'text':this[_0x23c341(0x1b4)](),'type':_0x259fe0[_0x23c341(0x1b7)]}:null;}[_0x9faa5c(0x1b1)](){var _0x1ed060=_0x9faa5c;return _0x279c7c(this[_0x1ed060(0x1dd)][_0x1ed060(0x1b0)](_0x5ba651)[_0x1ed060(0x1cb)](this['_unitId'],this['_blockId']));}[_0x9faa5c(0x1b3)](_0x5a1fba){var _0x5742f9=_0x9faa5c;return this[_0x5742f9(0x1dd)][_0x5742f9(0x1b0)](_0x22a214)['syncExecuteCommand'](_0x2c6dd2['id'],{'blockId':this['_blockId'],'config':_0x5a1fba['config'],'unitId':this[_0x5742f9(0x1d7)]});}['exit'](_0x1ff3d1){var _0x59e8db=_0x9faa5c;return this[_0x59e8db(0x1dd)][_0x59e8db(0x1b0)](_0x22a214)[_0x59e8db(0x1d1)](_0x456d68['id'],{'cursorOffset':_0x1ff3d1,'unitId':this['_unitId']});}[_0x9faa5c(0x1bf)](_0x9c4d31={}){var _0x26ece7=_0x9faa5c;return this[_0x26ece7(0x1dd)]['get'](_0x22a214)[_0x26ece7(0x1d1)](_0x498f13['id'],{..._0x9c4d31,'unitId':this[_0x26ece7(0x1d7)]});}[_0x9faa5c(0x1e4)](){var _0x4c77c3=_0x9faa5c;return this[_0x4c77c3(0x1ea)][_0x4c77c3(0x1b6)]();}['_getBlockRange'](){var _0xc9f2d5=_0x9faa5c,_0x748980;let _0x2f3252=(_0x748980=this['_getDocumentData']()[_0xc9f2d5(0x1e7)])==null||(_0x748980=_0x748980[_0xc9f2d5(0x1ed)])==null?void 0x0:_0x748980[_0xc9f2d5(0x1ec)](_0x356444=>_0x356444[_0xc9f2d5(0x1d4)]===this[_0xc9f2d5(0x1af)]&&_0x356444[_0xc9f2d5(0x1b2)]===_0x259fe0[_0xc9f2d5(0x1b7)]);return _0x2f3252==null?null:_0x2f3252;}};y=v([_(0x2,_0x2c49bf(_0x13dfdf))],y);function b(_0x611da1){var _0x2fa847=_0x9faa5c;return Array['from'](_0x611da1)[_0x2fa847(0x1d3)](_0xa3f077=>_0xa3f077===_0xc101be['PARAGRAPH']?'\x0a':_0xa3f077)[_0x2fa847(0x1d6)](_0x2182c2=>_0x2182c2!==_0xc101be[_0x2fa847(0x1aa)]&&_0x2182c2!==_0xc101be[_0x2fa847(0x1e2)]&&_0x2182c2!==_0xc101be[_0x2fa847(0x1d9)])[_0x2fa847(0x1e9)]('')[_0x2fa847(0x1dc)](/\n$/,'');}var x=class extends _0x21a962{['getCodes'](){var _0x5f2a72=_0x9faa5c;return this[_0x5f2a72(0x1bc)]()['filter'](_0x3f13fd=>_0x3f13fd[_0x5f2a72(0x1b2)]===_0x259fe0[_0x5f2a72(0x1b7)])['map'](_0x5031e8=>this[_0x5f2a72(0x1d5)](_0x5031e8[_0x5f2a72(0x1d4)]));}[_0x9faa5c(0x1b5)](_0x27a2ec){var _0xae3006=_0x9faa5c;return this[_0xae3006(0x1bc)]()[_0xae3006(0x1cd)](_0x54ff3f=>_0x54ff3f[_0xae3006(0x1d4)]===_0x27a2ec&&_0x54ff3f[_0xae3006(0x1b2)]===_0x259fe0['CODE'])?this[_0xae3006(0x1d5)](_0x27a2ec):null;}[_0x9faa5c(0x1d0)](_0x3e9798){var _0x436adc=_0x9faa5c;let _0x13fa15=this[_0x436adc(0x1bc)]()[_0x436adc(0x1ec)](_0x2820ea=>_0x2820ea[_0x436adc(0x1b2)]===_0x259fe0['CODE']&&_0x2820ea[_0x436adc(0x1db)]<=_0x3e9798&&_0x3e9798<=_0x2820ea[_0x436adc(0x1d8)]);return _0x13fa15?this[_0x436adc(0x1d5)](_0x13fa15['blockId']):null;}[_0x9faa5c(0x1c1)](_0x1c0154){var _0x2c4236=_0x9faa5c,_0x5c0d65;return(_0x5c0d65=this[_0x2c4236(0x1e5)](_0x1c0154)[0x0])==null?null:_0x5c0d65;}[_0x9faa5c(0x1e5)](_0x40a35c){var _0x59a532=_0x9faa5c;let _0x83e05d=typeof _0x40a35c==_0x59a532(0x1e3)?{'text':_0x40a35c}:_0x40a35c;return this['getCodes']()[_0x59a532(0x1d6)](_0x425696=>!(_0x83e05d['blockId']&&_0x425696[_0x59a532(0x1c2)]()!==_0x83e05d[_0x59a532(0x1d4)]||_0x83e05d[_0x59a532(0x1c9)]&&!_0x425696['getText']()[_0x59a532(0x1bb)](_0x83e05d['text'])));}[_0x9faa5c(0x1a7)](_0x2fb400={},_0x3cdfc8={}){var _0x572aa3=_0x9faa5c,_0x507288;let _0x9909de=this['_injector'][_0x572aa3(0x1b0)](_0x22a214),_0x8c1663=S(_0x2fb400)?{..._0x3cdfc8,...C(_0x2fb400)}:_0x2fb400,_0x676718=(_0x507288=_0x8c1663[_0x572aa3(0x1d4)])==null?_0x1d07a4(0x6):_0x507288;return _0x9909de['syncExecuteCommand'](_0x52c4be['id'],{..._0x8c1663,'blockId':_0x676718,'unitId':this[_0x572aa3(0x1c2)]()})?this[_0x572aa3(0x1d5)](_0x676718):null;}['exitCode'](_0x22a9ae){var _0x4f646c=_0x9faa5c;return this['_injector']['get'](_0x22a214)[_0x4f646c(0x1d1)](_0x456d68['id'],{'cursorOffset':_0x22a9ae,'unitId':this[_0x4f646c(0x1c2)]()});}[_0x9faa5c(0x1cc)](_0x3c6253={}){var _0x1a028c=_0x9faa5c;return this['_injector'][_0x1a028c(0x1b0)](_0x22a214)['syncExecuteCommand'](_0x498f13['id'],{..._0x3c6253,'unitId':this[_0x1a028c(0x1c2)]()});}[_0x9faa5c(0x1bc)](){var _0x1ba628=_0x9faa5c,_0x37dd40,_0x5ac15d;return(_0x37dd40=(_0x5ac15d=this[_0x1ba628(0x1b6)]()[_0x1ba628(0x1e7)])==null?void 0x0:_0x5ac15d[_0x1ba628(0x1ed)])==null?[]:_0x37dd40;}['_createFDocumentCode'](_0x2b5176){var _0x47b3e1=_0x9faa5c;return this[_0x47b3e1(0x1dd)][_0x47b3e1(0x1c8)](y,this,_0x2b5176);}};function S(_0x181789){var _0xfa6c92=_0x9faa5c;return typeof _0x181789=='object'&&!!_0x181789&&typeof _0x181789[_0xfa6c92(0x1de)]==_0xfa6c92(0x1ad)&&typeof _0x181789[_0xfa6c92(0x1cf)]==_0xfa6c92(0x1ad)&&typeof _0x181789['getType']==_0xfa6c92(0x1ad)&&_0x181789[_0xfa6c92(0x1ce)]()===_0xfa6c92(0x1e1);}function C(_0x477590){var _0x277954=_0x9faa5c;return _0x477590[_0x277954(0x1cf)]();}_0x21a962[_0x9faa5c(0x1ae)](x);export{y as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x36d246=_0x1458;(function(_0x255f20,_0x407554){const _0x4aa0c6=_0x1458,_0x41dce1=_0x255f20();while(!![]){try{const _0xcd4860=-parseInt(_0x4aa0c6(0x18e))/0x1*(parseInt(_0x4aa0c6(0x1b5))/0x2)+parseInt(_0x4aa0c6(0x1bf))/0x3+-parseInt(_0x4aa0c6(0x17d))/0x4+parseInt(_0x4aa0c6(0x1eb))/0x5+-parseInt(_0x4aa0c6(0x174))/0x6+parseInt(_0x4aa0c6(0x1d7))/0x7+-parseInt(_0x4aa0c6(0x1a4))/0x8;if(_0xcd4860===_0x407554)break;else _0x41dce1['push'](_0x41dce1['shift']());}catch(_0x2b4b2a){_0x41dce1['push'](_0x41dce1['shift']());}}}(_0x4482,0xab7eb));import{BuildTextUtils as _0x1df61f,CommandType as _0x3ba3c1,DataStreamTreeTokenType as _0x11bfde,DependentOn as _0x50e2e6,Disposable as _0x4b8a05,DocumentBlockRangeType as _0x47897f,ICommandService as _0x5b0f49,IConfigService as _0x5f2336,IResourceManagerService as _0x1a8f7f,IUniverInstanceService as _0x152e8f,Inject as _0x13ce68,Injector as _0x4d48d7,JSONX as _0x2c9aac,Plugin as _0x26ec4c,Tools as _0x16aa24,UniverInstanceType as _0x41c201,generateRandomId as _0x522144,merge as _0x157a02}from'@univerjs/core';import{DocContentInsertService as _0x5bc796,DocSelectionManagerService as _0x130243,RichTextEditingMutation as _0x15ecd9,UniverDocsPlugin as _0x3b5e01}from'@univerjs/docs';import{Subject as _0x1b3649}from'rxjs';import{UniverLicensePlugin as _0x9b0c05}from'@univerjs-pro/license';const S={'language':_0x36d246(0x1b3),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0xb46737){return{...S,..._0xb46737};}function w(_0x4b46b3){const _0xc3d7d3=_0x36d246;var _0xfcd661;let _0xb63446=(_0xfcd661=_0x4b46b3==null?void 0x0:_0x4b46b3['codes'])==null?{}:_0xfcd661;return{'codes':Object[_0xc3d7d3(0x196)](Object['entries'](_0xb63446)[_0xc3d7d3(0x1ec)](([_0x1c6d3e,_0x1b6e21])=>[_0x1c6d3e,C(_0x1b6e21)]))};}function T(_0x180d63,_0x13243b,_0xe5d400){const _0x45ded5=_0x36d246;let _0xeb788f=w(_0x180d63);return _0xeb788f[_0x45ded5(0x1ed)][_0x13243b]=C({..._0xeb788f[_0x45ded5(0x1ed)][_0x13243b],..._0xe5d400}),_0xeb788f;}function _0x1458(_0x181b6c,_0x2ebd37){_0x181b6c=_0x181b6c-0x168;const _0x448210=_0x4482();let _0x1458c6=_0x448210[_0x181b6c];return _0x1458c6;}function ne(_0x689283,_0x1ac0d7){const _0x54f297=_0x36d246;let _0x34f231=w(_0x689283);return delete _0x34f231[_0x54f297(0x1ed)][_0x1ac0d7],_0x34f231;}const re='monospace';function E(_0x4a1347){const _0x24ec6f=_0x36d246;var _0x118b7f,_0x103a01,_0x314042;let _0x5b1153=k(_0x4a1347['documentData']),_0x4d9c84=A(_0x5b1153),_0x5a19da=ae(_0x4a1347['startOffset'],_0x4a1347[_0x24ec6f(0x19e)]),_0x1d40db=_0x5a19da?(_0x118b7f=_0x4d9c84[_0x24ec6f(0x19d)])==null?void 0x0:_0x118b7f[_0x24ec6f(0x1bc)](_0x423306=>_0x423306[_0x24ec6f(0x1a5)]===_0x5a19da[_0x24ec6f(0x1d8)]&&_0x423306[_0x24ec6f(0x1e1)]+0x1===_0x5a19da[_0x24ec6f(0x19e)]):void 0x0,{startOffset:_0x1d5e0f,endOffset:_0x395d15}=_0x1d40db?_0x5a19da:ge(_0x4d9c84,_0x4a1347['startOffset'],_0x4a1347[_0x24ec6f(0x19e)]),_0x191184=ve(_0x4d9c84,_0x1d5e0f,_0x395d15),_0x59ae68=(_0x103a01=_0x1d40db==null?void 0x0:_0x1d40db['blockId'])==null?_0x4a1347[_0x24ec6f(0x1cc)]:_0x103a01,_0xd9c2f3=T(_0x4a1347[_0x24ec6f(0x188)],_0x59ae68,{...S,..._0x4a1347[_0x24ec6f(0x16d)]});if(_0x1d40db)return _0x1d40db['blockType']=_0x47897f[_0x24ec6f(0x18c)],ie(_0x4d9c84,_0x1d5e0f,_0x395d15),fe(_0x4d9c84,_0x1d5e0f,_0x395d15,_0x191184),{'nextDocumentData':_0x5b1153,'nextMetadata':_0xd9c2f3,'cursorOffset':_0x1d5e0f+0x1};if(_0x1d5e0f===_0x395d15){let _0x3e96e4=''+_0x11bfde['BLOCK_START']+_0x11bfde[_0x24ec6f(0x189)]+_0x11bfde[_0x24ec6f(0x1aa)];return P(_0x4d9c84,_0x1d5e0f,_0x3e96e4,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':O(!0x0,!0x0,_0x191184)}],'blockRanges':[{'blockId':_0x59ae68,'blockType':_0x47897f['CODE'],'startIndex':0x0,'endIndex':_0x3e96e4[_0x24ec6f(0x1a3)]-0x1}]}),{'nextDocumentData':_0x5b1153,'nextMetadata':_0xd9c2f3,'cursorOffset':_0x1d5e0f+0x1};}return P(_0x4d9c84,_0x395d15,_0x11bfde[_0x24ec6f(0x1aa)]),P(_0x4d9c84,_0x1d5e0f,_0x11bfde[_0x24ec6f(0x1ca)]),fe(_0x4d9c84,_0x1d5e0f,_0x395d15+0x1,_0x191184),_0x4d9c84['blockRanges']=[...(_0x314042=_0x4d9c84[_0x24ec6f(0x19d)])==null?[]:_0x314042,{'blockId':_0x59ae68,'blockType':_0x47897f['CODE'],'startIndex':_0x1d5e0f,'endIndex':_0x395d15+0x1}][_0x24ec6f(0x17f)]((_0x34e022,_0x1b77e4)=>_0x34e022['startIndex']-_0x1b77e4['startIndex']),{'nextDocumentData':_0x5b1153,'nextMetadata':_0xd9c2f3,'cursorOffset':_0x1d5e0f+0x1};}function ie(_0x24afa5,_0x8bfbbd,_0x38674b){const _0x42c5fb=_0x36d246;var _0xf3d73f;((_0xf3d73f=_0x24afa5[_0x42c5fb(0x17e)])==null?[]:_0xf3d73f)[_0x42c5fb(0x1d1)](_0x4ec129=>_0x4ec129[_0x42c5fb(0x1a5)]>_0x8bfbbd&&_0x4ec129[_0x42c5fb(0x1a5)]<_0x38674b)[_0x42c5fb(0x191)](_0x2323c4=>{const _0x4aebab=_0x42c5fb;var _0x353792;let _0x4e7780={...(_0x353792=_0x2323c4['paragraphStyle'])==null?{}:_0x353792};delete _0x4e7780[_0x4aebab(0x1d2)],delete _0x4e7780[_0x4aebab(0x178)],_0x2323c4[_0x4aebab(0x1bd)]=_0x4e7780;});}function ae(_0x52b0cd,_0x41f091){const _0x5c8b60=_0x36d246;return _0x52b0cd==null||_0x41f091==null||_0x52b0cd===_0x41f091?null:{'startOffset':Math[_0x5c8b60(0x16b)](_0x52b0cd,_0x41f091),'endOffset':Math[_0x5c8b60(0x1ce)](_0x52b0cd,_0x41f091)};}function D(_0x9462eb){const _0xb74f74=_0x36d246;return{'nextDocumentData':k(_0x9462eb['documentData']),'nextMetadata':T(_0x9462eb['metadata'],_0x9462eb[_0xb74f74(0x1cc)],_0x9462eb[_0xb74f74(0x16d)]),'cursorOffset':0x0};}function oe(_0x576061){const _0x303efc=_0x36d246;var _0x41f6c6,_0x4ef5a2;let _0x16b9f1=k(_0x576061[_0x303efc(0x18d)]),_0x4a1812=A(_0x16b9f1),_0x334f9b=de(_0x4a1812,_0x576061['cursorOffset']);if(!_0x334f9b)return null;let _0x9aeb9c=me(_0x4a1812,_0x334f9b),_0x105a6a=_0x9aeb9c[_0x9aeb9c[_0x303efc(0x1a3)]-0x1];if(!_0x105a6a||!he(_0x4a1812,_0x334f9b,_0x105a6a)||_0x576061[_0x303efc(0x170)]<_0x105a6a[_0x303efc(0x1a5)])return null;let _0x2d3f75=M(_0x4a1812,_0x334f9b,_0x105a6a);if(_0x2d3f75>=_0x334f9b[_0x303efc(0x1e1)])return null;_0x4a1812['dataStream']=[_0x4a1812['dataStream'][_0x303efc(0x1b2)](0x0,_0x2d3f75),_0x11bfde['BLOCK_END'],_0x4a1812[_0x303efc(0x184)][_0x303efc(0x1b2)](_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)]),_0x4a1812[_0x303efc(0x184)][_0x303efc(0x1b2)](_0x334f9b[_0x303efc(0x1e1)]+0x1)][_0x303efc(0x1e0)](''),z(_0x4a1812['paragraphs'],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),z(_0x4a1812[_0x303efc(0x192)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),z(_0x4a1812[_0x303efc(0x1a6)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),Te(_0x4a1812[_0x303efc(0x181)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),B(_0x4a1812[_0x303efc(0x1e6)],_0x2d3f75,_0x334f9b['endIndex'],0x1),B(_0x4a1812[_0x303efc(0x16a)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),B(_0x4a1812[_0x303efc(0x175)],_0x2d3f75,_0x334f9b[_0x303efc(0x1e1)],0x1),(_0x41f6c6=_0x4a1812[_0x303efc(0x19d)])==null||_0x41f6c6[_0x303efc(0x191)](_0x14bee0=>{const _0xdba521=_0x303efc;_0x14bee0===_0x334f9b||_0x14bee0[_0xdba521(0x1cc)]===_0x334f9b['blockId']?_0x14bee0[_0xdba521(0x1e1)]=_0x2d3f75:_0x14bee0[_0xdba521(0x1a5)]>=_0x2d3f75&&_0x14bee0[_0xdba521(0x1a5)]<_0x334f9b[_0xdba521(0x1e1)]&&(_0x14bee0[_0xdba521(0x1a5)]+=0x1,_0x14bee0['endIndex']+=0x1);});let _0x485fef=me(_0x4a1812,{..._0x334f9b,'endIndex':_0x2d3f75});_0x485fef['forEach']((_0x2b3fc2,_0x102dc2)=>{const _0x5e509c=_0x303efc;var _0x2921d2;_0x2b3fc2['paragraphStyle']={...(_0x2921d2=_0x2b3fc2[_0x5e509c(0x1bd)])==null?{}:_0x2921d2,...O(_0x102dc2===0x0,_0x102dc2===_0x485fef[_0x5e509c(0x1a3)]-0x1)};});let _0x150df0=(_0x4ef5a2=_0x4a1812['paragraphs'])==null?void 0x0:_0x4ef5a2[_0x303efc(0x1bc)](_0xda243=>_0xda243['startIndex']===_0x2d3f75+0x1);return _0x150df0&&(_0x150df0[_0x303efc(0x1bd)]=pe(_0x150df0[_0x303efc(0x1bd)])),{'nextDocumentData':_0x16b9f1,'cursorOffset':_0x2d3f75+0x1};}function se(_0x27348a){const _0x594b6a=_0x36d246;let _0x37ef4b=k(_0x27348a[_0x594b6a(0x18d)]),_0x838f40=A(_0x37ef4b),_0x1b98c2=de(_0x838f40,_0x27348a['cursorOffset']);return _0x1b98c2&&ce(_0x37ef4b,_0x838f40,_0x1b98c2,_0x27348a['cursorOffset'],_0x27348a[_0x594b6a(0x1e5)])||null;}function ce(_0x27869b,_0x5e68c4,_0x2b993e,_0x1004ac,_0x9baaa8){const _0xa9288=_0x36d246;let _0x3a9835=be(_0x5e68c4,_0x2b993e,_0x1004ac,_0x9baaa8);if(!_0x3a9835)return null;let _0xd3e3ce=_0x3a9835['endTokenOffset']-0x1;return xe(_0x5e68c4,_0x3a9835['paragraph'][_0xa9288(0x1a5)],_0x3a9835[_0xa9288(0x1ab)][_0xa9288(0x1a5)]+0x1),{'nextDocumentData':_0x27869b,'cursorOffset':_0xd3e3ce};}function le(_0x2d8a6d,_0x124a0e){const _0x23ecde=_0x36d246;var _0x4f3a50;return _0x2d8a6d==null||(_0x4f3a50=_0x2d8a6d[_0x23ecde(0x19d)])==null?void 0x0:_0x4f3a50[_0x23ecde(0x1bc)](_0x4c6768=>_0x4c6768['blockType']===_0x47897f[_0x23ecde(0x18c)]&&_0x4c6768['startIndex']<=_0x124a0e&&_0x124a0e<=_0x4c6768[_0x23ecde(0x1e1)]);}function ue(_0x2fae78){const _0x2bb63d=_0x36d246;var _0xdf7d3e;let _0x1cbdaf=_0x2fae78[_0x2bb63d(0x18d)]['body'];if(!_0x1cbdaf)return!0x1;let _0x5000d5=_0x2fae78[_0x2bb63d(0x17b)]===_0x2bb63d(0x1af)?_0x2fae78[_0x2bb63d(0x170)]-0x1:_0x2fae78[_0x2bb63d(0x170)],_0xac756d=_0x2fae78['direction']===_0x2bb63d(0x1be)?_0x2fae78['cursorOffset']+0x1:_0x5000d5;return((_0xdf7d3e=_0x1cbdaf[_0x2bb63d(0x19d)])==null?[]:_0xdf7d3e)[_0x2bb63d(0x1d0)](_0x4d2e3c=>_0x4d2e3c[_0x2bb63d(0x1a0)]===_0x47897f[_0x2bb63d(0x18c)]?_0x5000d5===_0x4d2e3c[_0x2bb63d(0x1a5)]||_0x5000d5===_0x4d2e3c[_0x2bb63d(0x1e1)]||_0xac756d===_0x4d2e3c['startIndex']||_0xac756d===_0x4d2e3c[_0x2bb63d(0x1e1)]:!0x1);}function de(_0x5c0ef0,_0x36ad16){const _0x8e16b9=_0x36d246;var _0x433d40;return(_0x433d40=_0x5c0ef0['blockRanges'])==null?void 0x0:_0x433d40[_0x8e16b9(0x1bc)](_0x3849c1=>{const _0x4314f9=_0x8e16b9;let _0xf91492=N(_0x5c0ef0,_0x3849c1);return _0x3849c1[_0x4314f9(0x1a0)]===_0x47897f[_0x4314f9(0x18c)]&&_0x3849c1['startIndex']<=_0x36ad16&&_0x36ad16<=_0xf91492+0x2;});}function O(_0x1e8d79,_0x2272d2,_0x2a30d0=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1e8d79&&_0x2a30d0?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':re,'fs':0xc}};}function fe(_0x4a29d3,_0x87f05d,_0x4a488d,_0x27deaf=!0x1){const _0x4328a6=_0x36d246;var _0x5d554e;let _0x4579f7=((_0x5d554e=_0x4a29d3['paragraphs'])==null?[]:_0x5d554e)['filter'](_0x5bebf6=>_0x5bebf6[_0x4328a6(0x1a5)]>_0x87f05d&&_0x5bebf6[_0x4328a6(0x1a5)]<_0x4a488d);_0x4579f7[_0x4328a6(0x191)]((_0x39970e,_0x48809f)=>{const _0x1285e3=_0x4328a6;var _0x54e14e;_0x39970e[_0x1285e3(0x1bd)]={...(_0x54e14e=_0x39970e[_0x1285e3(0x1bd)])==null?{}:_0x54e14e,...O(_0x48809f===0x0,_0x48809f===_0x4579f7['length']-0x1,_0x27deaf)};});}function pe(_0x31fa01){const _0x1425fa=_0x36d246;var _0x410212,_0x45e944;let _0x570ae8={..._0x31fa01==null?{}:_0x31fa01};return delete _0x570ae8['indentEnd'],delete _0x570ae8['indentStart'],delete _0x570ae8[_0x1425fa(0x1d2)],delete _0x570ae8['spaceBelow'],((_0x410212=_0x570ae8['textStyle'])==null?void 0x0:_0x410212['ff'])===re&&((_0x45e944=_0x570ae8['textStyle'])==null?void 0x0:_0x45e944['fs'])===0xc&&delete _0x570ae8['textStyle'],_0x570ae8;}function me(_0x391cc2,_0x282c7a){const _0x5999fb=_0x36d246;var _0x3132b3;let _0x45c594=N(_0x391cc2,_0x282c7a);return((_0x3132b3=_0x391cc2[_0x5999fb(0x17e)])==null?[]:_0x3132b3)[_0x5999fb(0x1d1)](_0x10d251=>_0x10d251[_0x5999fb(0x1a5)]>_0x282c7a[_0x5999fb(0x1a5)]&&_0x10d251[_0x5999fb(0x1a5)]<_0x45c594);}function he(_0x2770b0,_0x5afa8b,_0x252003){const _0x5ede42=_0x36d246;let _0x220715=M(_0x2770b0,_0x5afa8b,_0x252003),_0x4f445d=_0x2770b0[_0x5ede42(0x184)][_0x5ede42(0x1b2)](_0x220715,_0x252003[_0x5ede42(0x1a5)]);return Array[_0x5ede42(0x1a9)](_0x4f445d)[_0x5ede42(0x193)](_0x4abac2=>_0x4abac2===_0x11bfde[_0x5ede42(0x1ca)]||_0x4abac2===_0x11bfde[_0x5ede42(0x1aa)]);}function k(_0x845ce8){const _0x230aca=_0x36d246;return _0x16aa24[_0x230aca(0x1b8)](_0x845ce8);}function A(_0x129a85){const _0x53e485=_0x36d246;if(!_0x129a85[_0x53e485(0x1c1)])throw Error('Document\x20body\x20is\x20required');return _0x129a85[_0x53e485(0x1c1)];}function ge(_0x1f10de,_0x4ffadf,_0x5ce141){const _0x4a3c9c=_0x36d246;if(_0x4ffadf==null||_0x5ce141==null){let _0x33be7b=_e(_0x1f10de);return{'startOffset':_0x33be7b,'endOffset':_0x33be7b};}let _0x22e6be=Math[_0x4a3c9c(0x16b)](_0x4ffadf,_0x5ce141),_0x128c0d=Math['max'](_0x4ffadf,_0x5ce141);return _0x22e6be===_0x128c0d?{'startOffset':_0x22e6be,'endOffset':_0x22e6be}:ye(_0x1f10de,_0x22e6be,_0x128c0d);}function _e(_0x33129f){const _0x485d8f=_0x36d246;return _0x33129f['dataStream'][_0x485d8f(0x185)](_0x11bfde[_0x485d8f(0x1bb)])?Math[_0x485d8f(0x1ce)](0x0,_0x33129f[_0x485d8f(0x184)][_0x485d8f(0x1a3)]-0x1):_0x33129f['dataStream'][_0x485d8f(0x1a3)];}function ve(_0x21ca6c,_0x51f757,_0x3c2206){const _0x3af1ba=_0x36d246;var _0x345947;let _0x3e48ca=Math[_0x3af1ba(0x16b)](_0x51f757,_0x3c2206),_0x55515c=Math[_0x3af1ba(0x1ce)](_0x51f757,_0x3c2206);return!!((_0x345947=_0x21ca6c[_0x3af1ba(0x1e6)])!=null&&_0x345947[_0x3af1ba(0x1d0)](_0x442944=>_0x3e48ca>_0x442944[_0x3af1ba(0x1a5)]&&_0x3e48ca<_0x442944[_0x3af1ba(0x1e1)]||_0x55515c>_0x442944[_0x3af1ba(0x1a5)]&&_0x55515c<_0x442944[_0x3af1ba(0x1e1)]||_0x3e48ca<=_0x442944[_0x3af1ba(0x1a5)]&&_0x55515c>=_0x442944[_0x3af1ba(0x1e1)]));}function ye(_0x53f596,_0x37ffb4,_0x35ddde){const _0x1515ba=_0x36d246;var _0x288e53,_0x2b7c9c;let _0x1221a8=[...(_0x288e53=_0x53f596['paragraphs'])==null?[]:_0x288e53][_0x1515ba(0x17f)]((_0x234d1f,_0x211cf2)=>_0x234d1f['startIndex']-_0x211cf2[_0x1515ba(0x1a5)]),_0x2f2cef=_0x1221a8[_0x1515ba(0x1bc)]((_0x429bb9,_0xa8c56f)=>(_0xa8c56f===0x0?0x0:_0x1221a8[_0xa8c56f-0x1][_0x1515ba(0x1a5)]+0x1)<=_0x37ffb4&&_0x37ffb4<=_0x429bb9[_0x1515ba(0x1a5)]),_0x3becfa=(_0x2b7c9c=_0x1221a8[_0x1515ba(0x1bc)](_0x37a1c6=>_0x37a1c6[_0x1515ba(0x1a5)]>=_0x35ddde-0x1))==null?_0x1221a8[_0x1221a8['length']-0x1]:_0x2b7c9c;return{'startOffset':_0x2f2cef?j(_0x1221a8,_0x2f2cef):_0x37ffb4,'endOffset':_0x3becfa?_0x3becfa[_0x1515ba(0x1a5)]+0x1:_0x35ddde};}function j(_0x33ee50,_0x54c6b7){const _0x48bd4a=_0x36d246;let _0x41cade=_0x33ee50[_0x48bd4a(0x177)](_0x54c6b7);return _0x41cade>0x0?_0x33ee50[_0x41cade-0x1][_0x48bd4a(0x1a5)]+0x1:0x0;}function M(_0x4ffd82,_0x55544b,_0x58e740){const _0x410d24=_0x36d246;var _0x317865;return Math[_0x410d24(0x1ce)](j((_0x317865=_0x4ffd82['paragraphs'])==null?[]:_0x317865,_0x58e740),_0x55544b[_0x410d24(0x1a5)]+0x1);}function N(_0x5bfbfd,_0x37de5a){const _0x3c57c0=_0x36d246;return _0x5bfbfd['dataStream'][_0x37de5a[_0x3c57c0(0x1e1)]]===_0x11bfde['BLOCK_END']?_0x37de5a[_0x3c57c0(0x1e1)]:_0x5bfbfd[_0x3c57c0(0x184)][_0x37de5a['endIndex']+0x1]===_0x11bfde[_0x3c57c0(0x1aa)]?_0x37de5a[_0x3c57c0(0x1e1)]+0x1:_0x37de5a['endIndex'];}function be(_0x2dede0,_0x5c2846,_0x4b71dc,_0x87f003){const _0x4ff48d=_0x36d246;var _0x1861dd,_0x22b9c0;let _0x5db7f9=N(_0x2dede0,_0x5c2846),_0x53a309=((_0x1861dd=_0x2dede0['paragraphs'])==null?[]:_0x1861dd)[_0x4ff48d(0x1bc)](_0x898e08=>_0x898e08['startIndex']===_0x5db7f9+0x1);if(!_0x53a309||_0x87f003!=null&&_0x53a309[_0x4ff48d(0x1a5)]!==_0x87f003||_0x4b71dc<_0x5db7f9||_0x4b71dc>_0x53a309[_0x4ff48d(0x1a5)]+0x1||_0x2dede0[_0x4ff48d(0x184)][_0x53a309[_0x4ff48d(0x1a5)]]!==_0x11bfde[_0x4ff48d(0x189)])return null;let _0x1c1b06=j((_0x22b9c0=_0x2dede0[_0x4ff48d(0x17e)])==null?[]:_0x22b9c0,_0x53a309),_0x32901b=_0x2dede0[_0x4ff48d(0x184)][_0x4ff48d(0x1b2)](_0x1c1b06,_0x53a309[_0x4ff48d(0x1a5)]);return Array[_0x4ff48d(0x1a9)](_0x32901b)[_0x4ff48d(0x193)](_0x591c7e=>_0x591c7e===_0x11bfde[_0x4ff48d(0x1aa)])?{'paragraph':_0x53a309,'endTokenOffset':_0x5db7f9}:null;}function P(_0x2d374a,_0x434174,_0x22cc8f,_0x47dd4b={}){const _0x3e09be=_0x36d246;var _0x23fcba,_0x3a132e;if(_0x22cc8f){if(_0x2d374a['dataStream']=''+_0x2d374a[_0x3e09be(0x184)][_0x3e09be(0x1b2)](0x0,_0x434174)+_0x22cc8f+_0x2d374a[_0x3e09be(0x184)]['slice'](_0x434174),Se(_0x2d374a,_0x434174,_0x22cc8f[_0x3e09be(0x1a3)]),(_0x23fcba=_0x47dd4b['paragraphs'])!=null&&_0x23fcba[_0x3e09be(0x1a3)]){var _0x592978;_0x2d374a['paragraphs']=[...(_0x592978=_0x2d374a['paragraphs'])==null?[]:_0x592978,..._0x47dd4b[_0x3e09be(0x17e)]['map'](_0x271611=>({..._0x271611,'startIndex':_0x271611[_0x3e09be(0x1a5)]+_0x434174}))][_0x3e09be(0x17f)]((_0x5a278e,_0x442a3d)=>_0x5a278e['startIndex']-_0x442a3d[_0x3e09be(0x1a5)]);}if((_0x3a132e=_0x47dd4b['blockRanges'])!=null&&_0x3a132e['length']){var _0x372ca1;_0x2d374a['blockRanges']=[...(_0x372ca1=_0x2d374a[_0x3e09be(0x19d)])==null?[]:_0x372ca1,..._0x47dd4b['blockRanges']['map'](_0x3e3ddc=>({..._0x3e3ddc,'startIndex':_0x3e3ddc[_0x3e09be(0x1a5)]+_0x434174,'endIndex':_0x3e3ddc[_0x3e09be(0x1e1)]+_0x434174}))]['sort']((_0x5efe0b,_0x7cdcc2)=>_0x5efe0b[_0x3e09be(0x1a5)]-_0x7cdcc2['startIndex']);}}}function xe(_0x437901,_0x16d3b7,_0x3b3e98){const _0x363967=_0x36d246;let _0x3417d7=_0x3b3e98-_0x16d3b7;_0x437901[_0x363967(0x184)]=''+_0x437901[_0x363967(0x184)]['slice'](0x0,_0x16d3b7)+_0x437901[_0x363967(0x184)][_0x363967(0x1b2)](_0x3b3e98),Ce(_0x437901,_0x16d3b7,_0x3417d7);}function Se(_0x27d92c,_0x3eec44,_0x5b80f5){const _0x459c8a=_0x36d246;_0x27d92c[_0x459c8a(0x17e)]=F(_0x27d92c[_0x459c8a(0x17e)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x192)]=F(_0x27d92c[_0x459c8a(0x192)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x1a6)]=F(_0x27d92c['customBlocks'],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x181)]=we(_0x27d92c[_0x459c8a(0x181)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x1e6)]=L(_0x27d92c[_0x459c8a(0x1e6)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x16a)]=L(_0x27d92c[_0x459c8a(0x16a)],_0x3eec44,_0x5b80f5),_0x27d92c[_0x459c8a(0x175)]=L(_0x27d92c[_0x459c8a(0x175)],_0x3eec44,_0x5b80f5),_0x27d92c['blockRanges']=L(_0x27d92c['blockRanges'],_0x3eec44,_0x5b80f5);}function Ce(_0x27f587,_0x5d6e2b,_0x71b6e0){const _0x351f33=_0x36d246;var _0xbeea63,_0x3f94d1;_0x27f587[_0x351f33(0x17e)]=I(_0x27f587[_0x351f33(0x17e)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x192)]=I(_0x27f587['sectionBreaks'],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x1a6)]=I(_0x27f587[_0x351f33(0x1a6)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x181)]=(_0xbeea63=R((_0x3f94d1=_0x27f587[_0x351f33(0x181)])==null?void 0x0:_0x3f94d1[_0x351f33(0x1ec)](_0x49679c=>({..._0x49679c,'startIndex':_0x49679c['st'],'endIndex':_0x49679c['ed']})),_0x5d6e2b,_0x71b6e0))==null?void 0x0:_0xbeea63[_0x351f33(0x1ec)](_0xf96d2a=>{let {startIndex:_0x2279b6,endIndex:_0x2e2082,..._0x30fbae}=_0xf96d2a;return{..._0x30fbae,'st':_0x2279b6,'ed':_0x2e2082};}),_0x27f587[_0x351f33(0x1e6)]=R(_0x27f587[_0x351f33(0x1e6)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x16a)]=R(_0x27f587['customRanges'],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x175)]=R(_0x27f587[_0x351f33(0x175)],_0x5d6e2b,_0x71b6e0),_0x27f587[_0x351f33(0x19d)]=R(_0x27f587[_0x351f33(0x19d)],_0x5d6e2b,_0x71b6e0);}function F(_0xc31fb2,_0x4ff945,_0x29ad29){const _0x31439f=_0x36d246;return _0xc31fb2==null?void 0x0:_0xc31fb2[_0x31439f(0x1ec)](_0x55a153=>_0x55a153[_0x31439f(0x1a5)]>=_0x4ff945?{..._0x55a153,'startIndex':_0x55a153[_0x31439f(0x1a5)]+_0x29ad29}:_0x55a153);}function I(_0x3e769e,_0x5bbbe9,_0x3eab7b){const _0x3aec84=_0x36d246;let _0x29f02a=_0x5bbbe9+_0x3eab7b;return _0x3e769e==null?void 0x0:_0x3e769e[_0x3aec84(0x1ec)](_0x2750df=>_0x2750df['startIndex']>=_0x5bbbe9&&_0x2750df[_0x3aec84(0x1a5)]<_0x29f02a?null:_0x2750df[_0x3aec84(0x1a5)]>=_0x29f02a?{..._0x2750df,'startIndex':_0x2750df[_0x3aec84(0x1a5)]-_0x3eab7b}:_0x2750df)['filter'](_0x2d5b7f=>_0x2d5b7f!=null);}function _0x4482(){const _0x1427dc=['getTextRanges','BLOCK_START','decorate','blockId','docs-code.config','max','defineProperty','some','filter','spaceAbove','syncExecuteCommand','0.25.0-insiders.20260604-29ebbff','serialize','disposeWithMe','4071312YqGajR','startOffset','removeUnit','getCodeConfig','clear','symbol','range','deserialize','removeCode','join','endIndex','delete','onStarting','previousDocumentData','paragraphStartIndex','tables','version','model','_change$','iterator','6162415TCeVXS','map','codes','getSnapshot','setCodeConfig','customRanges','min','_injector','config','registerCommand','get','cursorOffset','_resourceManagerService','complete','function','6710838SfnAWP','customDecorations','COMMAND','indexOf','spaceBelow','constructor','registerPluginResource','direction','replaceOp','2707428gCxglD','paragraphs','sort','docs-code.command.consume-boundary-delete','textRuns','next','getInstance','dataStream','endsWith','commandService','_setResource','metadata','PARAGRAPH','unitId','getBody','CODE','documentData','53279QJcQGD','UNIVER_DOC','_configService','forEach','sectionBreaks','every','_initResource','dispose','fromEntries','call','asObservable','parse','getCurrentUnitOfType','docs-code.command.cancel-empty-paragraph','_docsCodeModel','blockRanges','endOffset','add','blockType','pluginName','_commandService','length','2806880YnxZnu','startIndex','customBlocks','toPrimitive','getUniverDocInstance','from','BLOCK_END','paragraph','reduce','setConfig','set','left','_resources','object','slice','javascript','packageName','2prodkP','getParagraphsInRange','DOC_CODE_PLUGIN','deepClone','getOwnPropertyDescriptor','type','SECTION_BREAK','find','paragraphStyle','right','3263439nAsqwf','stringify','body','getUnitId','nextMetadata','prototype','docs-code.command.exit','nextDocumentData','docs-code.command.update','_config'];_0x4482=function(){return _0x1427dc;};return _0x4482();}function we(_0x55d9b5,_0x1e9af8,_0x5ca1b0){const _0x1dd754=_0x36d246;return _0x55d9b5==null?void 0x0:_0x55d9b5[_0x1dd754(0x1ec)](_0x51b011=>_0x51b011['st']>=_0x1e9af8?{..._0x51b011,'st':_0x51b011['st']+_0x5ca1b0,'ed':_0x51b011['ed']+_0x5ca1b0}:_0x51b011['ed']>_0x1e9af8?{..._0x51b011,'ed':_0x51b011['ed']+_0x5ca1b0}:_0x51b011);}function L(_0x10d240,_0x44ae26,_0x340e82){const _0x497929=_0x36d246;return _0x10d240==null?void 0x0:_0x10d240[_0x497929(0x1ec)](_0x47ffb2=>_0x47ffb2['startIndex']>=_0x44ae26?{..._0x47ffb2,'startIndex':_0x47ffb2[_0x497929(0x1a5)]+_0x340e82,'endIndex':_0x47ffb2['endIndex']+_0x340e82}:_0x47ffb2[_0x497929(0x1e1)]>=_0x44ae26?{..._0x47ffb2,'endIndex':_0x47ffb2[_0x497929(0x1e1)]+_0x340e82}:_0x47ffb2);}function R(_0x14a6ef,_0x343afa,_0x16b386){const _0x263fb7=_0x36d246;let _0x1dd460=_0x343afa+_0x16b386;return _0x14a6ef==null?void 0x0:_0x14a6ef[_0x263fb7(0x1ec)](_0x19ec05=>_0x19ec05[_0x263fb7(0x1a5)]>=_0x343afa&&_0x19ec05[_0x263fb7(0x1e1)]<_0x1dd460?null:_0x19ec05[_0x263fb7(0x1a5)]>=_0x1dd460?{..._0x19ec05,'startIndex':_0x19ec05[_0x263fb7(0x1a5)]-_0x16b386,'endIndex':_0x19ec05['endIndex']-_0x16b386}:_0x19ec05[_0x263fb7(0x1e1)]>=_0x343afa?{..._0x19ec05,'startIndex':_0x19ec05[_0x263fb7(0x1a5)]<_0x343afa?_0x19ec05['startIndex']:_0x343afa,'endIndex':Math['max'](_0x343afa,_0x19ec05[_0x263fb7(0x1e1)]-_0x16b386)}:_0x19ec05)[_0x263fb7(0x1d1)](_0x11e56e=>_0x11e56e!=null);}function z(_0x4f7ca3,_0x5b2e51,_0x297a1a,_0x5d5c92){_0x4f7ca3==null||_0x4f7ca3['forEach'](_0x5cdec7=>{const _0x335c6a=_0x1458;_0x5cdec7[_0x335c6a(0x1a5)]>=_0x5b2e51&&_0x5cdec7[_0x335c6a(0x1a5)]<_0x297a1a&&(_0x5cdec7[_0x335c6a(0x1a5)]+=_0x5d5c92);});}function Te(_0x56a85c,_0x51f05d,_0x13465e,_0x18b350){const _0x562870=_0x36d246;_0x56a85c==null||_0x56a85c[_0x562870(0x191)](_0x252385=>{_0x252385['st']>=_0x51f05d&&_0x252385['st']<_0x13465e?(_0x252385['st']+=_0x18b350,_0x252385['ed']+=_0x18b350):_0x252385['ed']>_0x51f05d&&_0x252385['ed']<_0x13465e&&(_0x252385['ed']+=_0x18b350);});}function B(_0x74a063,_0x41d228,_0xcfdd44,_0xe141c5){const _0x5ee7b2=_0x36d246;_0x74a063==null||_0x74a063[_0x5ee7b2(0x191)](_0x39171b=>{const _0x12b8cb=_0x5ee7b2;_0x39171b[_0x12b8cb(0x1a5)]>=_0x41d228&&_0x39171b[_0x12b8cb(0x1a5)]<_0xcfdd44?(_0x39171b[_0x12b8cb(0x1a5)]+=_0xe141c5,_0x39171b[_0x12b8cb(0x1e1)]+=_0xe141c5):_0x39171b[_0x12b8cb(0x1e1)]>_0x41d228&&_0x39171b[_0x12b8cb(0x1e1)]<_0xcfdd44&&(_0x39171b[_0x12b8cb(0x1e1)]+=_0xe141c5);});}function V(_0x2fdbc2){'@babel/helpers - typeof';const _0x458c35=_0x36d246;return V=typeof Symbol=='function'&&typeof Symbol[_0x458c35(0x1ea)]==_0x458c35(0x1dc)?function(_0xaa330d){return typeof _0xaa330d;}:function(_0x2a7ac2){const _0x3fd536=_0x458c35;return _0x2a7ac2&&typeof Symbol==_0x3fd536(0x173)&&_0x2a7ac2[_0x3fd536(0x179)]===Symbol&&_0x2a7ac2!==Symbol[_0x3fd536(0x1c4)]?_0x3fd536(0x1dc):typeof _0x2a7ac2;},V(_0x2fdbc2);}function Ee(_0x58f210,_0x4a5471){const _0xe736bb=_0x36d246;if(V(_0x58f210)!=_0xe736bb(0x1b1)||!_0x58f210)return _0x58f210;var _0x1c8831=_0x58f210[Symbol[_0xe736bb(0x1a7)]];if(_0x1c8831!==void 0x0){var _0x40bd62=_0x1c8831[_0xe736bb(0x197)](_0x58f210,_0x4a5471||'default');if(V(_0x40bd62)!='object')return _0x40bd62;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4a5471==='string'?String:Number)(_0x58f210);}function De(_0x46713c){const _0x4b5647=_0x36d246;var _0x4b209f=Ee(_0x46713c,'string');return V(_0x4b209f)==_0x4b5647(0x1dc)?_0x4b209f:_0x4b209f+'';}function H(_0x5de958,_0x488c86,_0x4ac445){const _0x89b729=_0x36d246;return(_0x488c86=De(_0x488c86))in _0x5de958?Object[_0x89b729(0x1cf)](_0x5de958,_0x488c86,{'value':_0x4ac445,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5de958[_0x488c86]=_0x4ac445,_0x5de958;}var U=class extends _0x4b8a05{constructor(..._0x3c73f3){const _0xa2ad93=_0x36d246;super(..._0x3c73f3),H(this,_0xa2ad93(0x1b0),new Map()),H(this,_0xa2ad93(0x1e9),new _0x1b3649()),H(this,'change$',this[_0xa2ad93(0x1e9)][_0xa2ad93(0x198)]());}[_0x36d246(0x1da)](_0x4e6f36,_0x3b08c1){const _0x2c40f2=_0x36d246;return w(this['_resources']['get'](_0x4e6f36))[_0x2c40f2(0x1ed)][_0x3b08c1];}[_0x36d246(0x169)](_0x14d344,_0x5e9d6f,_0xea5993){const _0x4d3de0=_0x36d246;this[_0x4d3de0(0x187)](_0x14d344,_0x5e9d6f,T(this[_0x4d3de0(0x1b0)][_0x4d3de0(0x16f)](_0x14d344),_0x5e9d6f,_0xea5993));}[_0x36d246(0x1df)](_0x2d3bb6,_0x38a2b2){const _0x6307d9=_0x36d246;this[_0x6307d9(0x187)](_0x2d3bb6,_0x38a2b2,ne(this[_0x6307d9(0x1b0)][_0x6307d9(0x16f)](_0x2d3bb6),_0x38a2b2));}[_0x36d246(0x1d5)](_0x500002){const _0x2c7f14=_0x36d246;return w(this[_0x2c7f14(0x1b0)][_0x2c7f14(0x16f)](_0x500002));}[_0x36d246(0x1de)](_0x421c42,_0x64049e){const _0x3acb99=_0x36d246;this[_0x3acb99(0x1b0)][_0x3acb99(0x1ae)](_0x421c42,w(_0x64049e)),this[_0x3acb99(0x1e9)][_0x3acb99(0x182)]({'unitId':_0x421c42});}['removeUnit'](_0xe7675e){const _0x25c689=_0x36d246;this['_resources'][_0x25c689(0x1e2)](_0xe7675e),this['_change$'][_0x25c689(0x182)]({'unitId':_0xe7675e});}[_0x36d246(0x195)](){const _0x49c8fb=_0x36d246;super[_0x49c8fb(0x195)](),this['_resources'][_0x49c8fb(0x1db)](),this[_0x49c8fb(0x1e9)][_0x49c8fb(0x172)]();}['_setResource'](_0x1199f8,_0x303a54,_0x4c51ea){const _0x48722b=_0x36d246;this['_resources'][_0x48722b(0x1ae)](_0x1199f8,_0x4c51ea),this[_0x48722b(0x1e9)][_0x48722b(0x182)]({'unitId':_0x1199f8,'blockId':_0x303a54});}};const Oe={'id':'docs-code.command.insert-below','type':_0x3ba3c1[_0x36d246(0x176)],'handler':_0x1c1c14=>{const _0x2171c1=_0x36d246;let _0x2bef72=Me(_0x1c1c14);if(_0x2bef72)return _0x1c1c14[_0x2171c1(0x16f)](_0x5b0f49)[_0x2171c1(0x1d3)](W['id'],{'startOffset':_0x2bef72[_0x2171c1(0x1d8)],'endOffset':_0x2bef72[_0x2171c1(0x19e)],'unitId':_0x2bef72[_0x2171c1(0x18a)]});let _0x108b9c=Ne(_0x1c1c14);if(!_0x108b9c)return!0x1;let _0xfd96fa=_0x108b9c['startIndex']+0x1;return _0x1c1c14[_0x2171c1(0x16f)](_0x5b0f49)[_0x2171c1(0x1d3)](W['id'],{'startOffset':_0xfd96fa,'endOffset':_0xfd96fa});}},ke={'id':_0x36d246(0x180),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':()=>!0x0},W={'id':'docs-code.command.insert','type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x205ab8,_0x115964)=>{const _0x9a8f24=_0x36d246;var _0x431002,_0x15425a,_0x32a74f;let _0x1e3b2e=K(_0x205ab8,_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x18a)]);if(!_0x1e3b2e)return!0x1;let _0x4f2f62=q(_0x205ab8),_0x592d0d=E({'blockId':(_0x431002=_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x1cc)])==null?_0x522144(0x6):_0x431002,'config':_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x16d)],'documentData':_0x1e3b2e[_0x9a8f24(0x1e4)],'endOffset':(_0x15425a=_0x115964==null?void 0x0:_0x115964[_0x9a8f24(0x19e)])==null?_0x4f2f62==null?void 0x0:_0x4f2f62[_0x9a8f24(0x19e)]:_0x15425a,'metadata':_0x1e3b2e[_0x9a8f24(0x1e8)]['serialize'](_0x1e3b2e[_0x9a8f24(0x18a)]),'startOffset':(_0x32a74f=_0x115964==null?void 0x0:_0x115964['startOffset'])==null?_0x4f2f62==null?void 0x0:_0x4f2f62[_0x9a8f24(0x1d8)]:_0x32a74f}),_0x5c29d2=Y(_0x1e3b2e[_0x9a8f24(0x186)],_0x1e3b2e['unitId'],_0x1e3b2e[_0x9a8f24(0x1e4)],_0x592d0d[_0x9a8f24(0x1c6)],_0x592d0d['cursorOffset']);return _0x5c29d2&&_0x592d0d[_0x9a8f24(0x1c3)]&&_0x1e3b2e[_0x9a8f24(0x1e8)][_0x9a8f24(0x1de)](_0x1e3b2e[_0x9a8f24(0x18a)],_0x592d0d[_0x9a8f24(0x1c3)]),_0x5c29d2;}},Ae={'id':_0x36d246(0x1c7),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x22f82c,_0x116318)=>{const _0x537db9=_0x36d246;if(!_0x116318)return!0x1;let _0x1c881c=K(_0x22f82c,_0x116318[_0x537db9(0x18a)]);if(!_0x1c881c)return!0x1;let _0x3dfe0c=D({'blockId':_0x116318[_0x537db9(0x1cc)],'config':_0x116318[_0x537db9(0x16d)],'documentData':_0x1c881c[_0x537db9(0x1e4)],'metadata':_0x1c881c[_0x537db9(0x1e8)][_0x537db9(0x1d5)](_0x1c881c[_0x537db9(0x18a)])});return _0x3dfe0c['nextMetadata']&&_0x1c881c[_0x537db9(0x1e8)][_0x537db9(0x1de)](_0x1c881c[_0x537db9(0x18a)],_0x3dfe0c[_0x537db9(0x1c3)]),!0x0;}},je={'id':_0x36d246(0x1c5),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x5f3449,_0xa0806)=>{const _0x42186e=_0x36d246;var _0x1d6025,_0x9b0854;let _0x212b07=K(_0x5f3449,_0xa0806==null?void 0x0:_0xa0806[_0x42186e(0x18a)]);if(!_0x212b07)return!0x1;let _0x107e59=(_0x1d6025=_0xa0806==null?void 0x0:_0xa0806[_0x42186e(0x170)])==null?(_0x9b0854=q(_0x5f3449))==null?void 0x0:_0x9b0854[_0x42186e(0x1d8)]:_0x1d6025;if(_0x107e59==null)return!0x1;let _0x1af4e3=oe({'cursorOffset':_0x107e59,'documentData':_0x212b07['previousDocumentData']});return _0x1af4e3?Y(_0x212b07['commandService'],_0x212b07[_0x42186e(0x18a)],_0x212b07[_0x42186e(0x1e4)],_0x1af4e3[_0x42186e(0x1c6)],_0x1af4e3[_0x42186e(0x170)]):!0x1;}},G={'id':_0x36d246(0x19b),'type':_0x3ba3c1[_0x36d246(0x176)],'handler':(_0x96998d,_0x4e6074)=>{const _0x28858a=_0x36d246;var _0x1293f9,_0x5ec92f;let _0x80fb9a=K(_0x96998d,_0x4e6074==null?void 0x0:_0x4e6074['unitId']);if(!_0x80fb9a)return!0x1;let _0x2b87da=(_0x1293f9=_0x4e6074==null?void 0x0:_0x4e6074[_0x28858a(0x170)])==null?(_0x5ec92f=q(_0x96998d))==null?void 0x0:_0x5ec92f[_0x28858a(0x1d8)]:_0x1293f9;if(_0x2b87da==null)return!0x1;let _0x59ea9e=se({'cursorOffset':_0x2b87da,'documentData':_0x80fb9a[_0x28858a(0x1e4)],'paragraphStartIndex':_0x4e6074==null?void 0x0:_0x4e6074[_0x28858a(0x1e5)]});return _0x59ea9e?Y(_0x80fb9a['commandService'],_0x80fb9a['unitId'],_0x80fb9a[_0x28858a(0x1e4)],_0x59ea9e[_0x28858a(0x1c6)],_0x59ea9e[_0x28858a(0x170)]):!0x1;}};function K(_0x260621,_0x16be0e){const _0x54a9c1=_0x36d246;let _0x40e3cc=_0x260621[_0x54a9c1(0x16f)](_0x152e8f),_0x5d3545=_0x16be0e?_0x40e3cc[_0x54a9c1(0x1a8)](_0x16be0e):_0x40e3cc['getCurrentUnitOfType'](_0x41c201[_0x54a9c1(0x18f)]);return _0x5d3545?{'commandService':_0x260621['get'](_0x5b0f49),'model':_0x260621[_0x54a9c1(0x16f)](U),'previousDocumentData':_0x5d3545[_0x54a9c1(0x168)](),'unitId':_0x5d3545['getUnitId']()}:null;}function q(_0x57fd25){const _0x5da433=_0x36d246;var _0x525c36;return(_0x525c36=_0x57fd25['get'](_0x130243)[_0x5da433(0x1c9)]())==null?void 0x0:_0x525c36[0x0];}function Me(_0x55204c){const _0x47ad88=_0x36d246;var _0x5c5752;let _0x6f5db6=(_0x5c5752=_0x55204c[_0x47ad88(0x16f)](_0x152e8f)[_0x47ad88(0x19a)](_0x41c201[_0x47ad88(0x18f)]))==null?void 0x0:_0x5c5752[_0x47ad88(0x1c2)]();try{return _0x55204c[_0x47ad88(0x16f)](_0x5bc796)['consumeInsertRange'](_0x6f5db6);}catch{return null;}}function Ne(_0xea4578){const _0x22ebf6=_0x36d246;var _0x13a257,_0x385425,_0x53362d;let _0x249ada=q(_0xea4578);if(!_0x249ada)return null;let _0x1ecbc3=_0xea4578[_0x22ebf6(0x16f)](_0x152e8f)[_0x22ebf6(0x19a)](_0x41c201[_0x22ebf6(0x18f)]),_0x18f69c=_0x1ecbc3==null?void 0x0:_0x1ecbc3[_0x22ebf6(0x18b)]();return _0x18f69c?(_0x13a257=_0x1df61f[_0x22ebf6(0x1dd)][_0x22ebf6(0x1b6)](_0x249ada,(_0x385425=_0x18f69c[_0x22ebf6(0x17e)])==null?[]:_0x385425,(_0x53362d=_0x18f69c[_0x22ebf6(0x184)])==null?'':_0x53362d)[0x0])==null?null:_0x13a257:null;}function Pe(_0x462309,_0x57055a){const _0x4f1100=_0x36d246;var _0x83da72,_0x4e8adf,_0x1ffaca,_0x56245b,_0x19d914,_0x3bc39d,_0x2ee3b2,_0xb826d2,_0x36cc89,_0x24ca57,_0x5dd58f,_0x1c298f,_0x255550,_0x35c21b,_0xd6d0f3,_0x3ad206,_0x1bce9d,_0x106094;let _0x40dfa2=_0x2c9aac[_0x4f1100(0x183)]();return[J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x184)],(_0x83da72=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x83da72[_0x4f1100(0x184)],(_0x4e8adf=_0x57055a['body'])==null?void 0x0:_0x4e8adf[_0x4f1100(0x184)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x17e)],(_0x1ffaca=_0x462309['body'])==null?void 0x0:_0x1ffaca[_0x4f1100(0x17e)],(_0x56245b=_0x57055a['body'])==null?void 0x0:_0x56245b[_0x4f1100(0x17e)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x192)],(_0x19d914=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x19d914[_0x4f1100(0x192)],(_0x3bc39d=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x3bc39d[_0x4f1100(0x192)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x181)],(_0x2ee3b2=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x2ee3b2[_0x4f1100(0x181)],(_0xb826d2=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0xb826d2['textRuns']),J(_0x40dfa2,[_0x4f1100(0x1c1),'customBlocks'],(_0x36cc89=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x36cc89[_0x4f1100(0x1a6)],(_0x24ca57=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x24ca57['customBlocks']),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x16a)],(_0x5dd58f=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x5dd58f[_0x4f1100(0x16a)],(_0x1c298f=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x1c298f[_0x4f1100(0x16a)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x175)],(_0x255550=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x255550['customDecorations'],(_0x35c21b=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x35c21b[_0x4f1100(0x175)]),J(_0x40dfa2,['body',_0x4f1100(0x1e6)],(_0xd6d0f3=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0xd6d0f3[_0x4f1100(0x1e6)],(_0x3ad206=_0x57055a['body'])==null?void 0x0:_0x3ad206[_0x4f1100(0x1e6)]),J(_0x40dfa2,[_0x4f1100(0x1c1),_0x4f1100(0x19d)],(_0x1bce9d=_0x462309[_0x4f1100(0x1c1)])==null?void 0x0:_0x1bce9d[_0x4f1100(0x19d)],(_0x106094=_0x57055a[_0x4f1100(0x1c1)])==null?void 0x0:_0x106094[_0x4f1100(0x19d)])][_0x4f1100(0x1d1)](Boolean)[_0x4f1100(0x1ac)]((_0x224246,_0x3117b7)=>_0x2c9aac['compose'](_0x224246,_0x3117b7),null);}function J(_0x1f3147,_0x15f714,_0x3d4e1a,_0x27c090){const _0x3adf91=_0x36d246;return _0x16aa24['diffValue'](_0x3d4e1a,_0x27c090)?null:_0x1f3147[_0x3adf91(0x17c)](_0x15f714,_0x3d4e1a,_0x27c090);}function Y(_0x1413d8,_0x23570d,_0x23f38a,_0x1cafc2,_0x3d0cd0){let _0x46fdee=Pe(_0x23f38a,_0x1cafc2);return _0x46fdee?!!_0x1413d8['syncExecuteCommand'](_0x15ecd9['id'],{'unitId':_0x23570d,'actions':_0x46fdee,'textRanges':[{'startOffset':_0x3d0cd0,'endOffset':_0x3d0cd0,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const X=_0x36d246(0x1b7);var Fe='@univerjs-pro/docs-code',Ie=_0x36d246(0x1d4);const Le={};function Z(_0x313e16,_0x516366){return function(_0x5c8c8a,_0x412c47){_0x516366(_0x5c8c8a,_0x412c47,_0x313e16);};}function Re(_0x25a330,_0x5bc690,_0x16df35,_0x2af41a){const _0x5cb88d=_0x36d246;var _0x304b59=arguments[_0x5cb88d(0x1a3)],_0x2ae487=_0x304b59<0x3?_0x5bc690:_0x2af41a===null?_0x2af41a=Object[_0x5cb88d(0x1b9)](_0x5bc690,_0x16df35):_0x2af41a,_0xa16b53;if(typeof Reflect==_0x5cb88d(0x1b1)&&typeof Reflect[_0x5cb88d(0x1cb)]==_0x5cb88d(0x173))_0x2ae487=Reflect[_0x5cb88d(0x1cb)](_0x25a330,_0x5bc690,_0x16df35,_0x2af41a);else{for(var _0x1ed72b=_0x25a330[_0x5cb88d(0x1a3)]-0x1;_0x1ed72b>=0x0;_0x1ed72b--)(_0xa16b53=_0x25a330[_0x1ed72b])&&(_0x2ae487=(_0x304b59<0x3?_0xa16b53(_0x2ae487):_0x304b59>0x3?_0xa16b53(_0x5bc690,_0x16df35,_0x2ae487):_0xa16b53(_0x5bc690,_0x16df35))||_0x2ae487);}return _0x304b59>0x3&&_0x2ae487&&Object['defineProperty'](_0x5bc690,_0x16df35,_0x2ae487),_0x2ae487;}let Q=class extends _0x4b8a05{constructor(_0x16faec,_0x2d3a93){const _0x5cf917=_0x36d246;super(),this[_0x5cf917(0x171)]=_0x16faec,this[_0x5cf917(0x19c)]=_0x2d3a93,this[_0x5cf917(0x194)]();}['_initResource'](){const _0x177a4d=_0x36d246;this[_0x177a4d(0x1d6)](this[_0x177a4d(0x171)][_0x177a4d(0x17a)]({'pluginName':X,'businesses':[_0x41c201['UNIVER_DOC']],'toJson':_0x21b5f8=>JSON[_0x177a4d(0x1c0)](this['_docsCodeModel'][_0x177a4d(0x1d5)](_0x21b5f8)),'parseJson':_0xb52cc8=>w(JSON[_0x177a4d(0x199)](_0xb52cc8)),'onLoad':(_0x1af6a2,_0x5a6ded)=>this[_0x177a4d(0x19c)][_0x177a4d(0x1de)](_0x1af6a2,_0x5a6ded),'onUnLoad':_0x5aa097=>this[_0x177a4d(0x19c)][_0x177a4d(0x1d9)](_0x5aa097)}));}};Q=Re([Z(0x0,_0x1a8f7f),Z(0x1,_0x13ce68(U))],Q);let $=class extends _0x26ec4c{constructor(_0x5ae3f4=Le,_0x3d66c4,_0xeeb7ee,_0x3cbd34){const _0x5cf189=_0x36d246;super(),this[_0x5cf189(0x1c8)]=_0x5ae3f4,this[_0x5cf189(0x16c)]=_0x3d66c4,this[_0x5cf189(0x1a2)]=_0xeeb7ee,this['_configService']=_0x3cbd34;let {..._0x57a91b}=_0x157a02({},Le,this[_0x5cf189(0x1c8)]);this[_0x5cf189(0x190)][_0x5cf189(0x1ad)](_0x5cf189(0x1cd),_0x57a91b);}[_0x36d246(0x1e3)](){const _0x34ab3d=_0x36d246;this['_injector'][_0x34ab3d(0x19f)]([U]),this[_0x34ab3d(0x16c)]['add']([Q]),this[_0x34ab3d(0x16c)][_0x34ab3d(0x16f)](U),this[_0x34ab3d(0x16c)]['get'](Q),[W,Oe,Ae,je,G,ke][_0x34ab3d(0x191)](_0x3d8e6f=>this[_0x34ab3d(0x1d6)](this[_0x34ab3d(0x1a2)][_0x34ab3d(0x16e)](_0x3d8e6f)));}};H($,_0x36d246(0x1a1),X),H($,_0x36d246(0x1b4),Fe),H($,_0x36d246(0x1e7),Ie),H($,_0x36d246(0x1ba),_0x41c201[_0x36d246(0x18f)]),$=Re([_0x50e2e6(_0x9b0c05,_0x3b5e01),Z(0x1,_0x13ce68(_0x4d48d7)),Z(0x2,_0x5b0f49),Z(0x3,_0x5f2336)],$);export{S as DEFAULT_CODE_CONFIG,X as DOCS_CODE_PLUGIN,G as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,je as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,W as DocsCodeInsertCommand,U as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,E as buildInsertCodeActions,D as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
1
+ function _0x5a31(_0x1c2fa2,_0x3d081){_0x1c2fa2=_0x1c2fa2-0x126;const _0x7f61cb=_0x7f61();let _0x5a3109=_0x7f61cb[_0x1c2fa2];return _0x5a3109;}const _0x32228a=_0x5a31;(function(_0x541094,_0x2bf2f7){const _0x19c9d3=_0x5a31,_0x2f6b70=_0x541094();while(!![]){try{const _0x16cecd=-parseInt(_0x19c9d3(0x1a8))/0x1+parseInt(_0x19c9d3(0x13a))/0x2*(-parseInt(_0x19c9d3(0x170))/0x3)+-parseInt(_0x19c9d3(0x152))/0x4+-parseInt(_0x19c9d3(0x17b))/0x5*(-parseInt(_0x19c9d3(0x1a2))/0x6)+-parseInt(_0x19c9d3(0x193))/0x7+-parseInt(_0x19c9d3(0x1a0))/0x8*(-parseInt(_0x19c9d3(0x126))/0x9)+-parseInt(_0x19c9d3(0x1ad))/0xa*(-parseInt(_0x19c9d3(0x14d))/0xb);if(_0x16cecd===_0x2bf2f7)break;else _0x2f6b70['push'](_0x2f6b70['shift']());}catch(_0xafff94){_0x2f6b70['push'](_0x2f6b70['shift']());}}}(_0x7f61,0xba173));import{BuildTextUtils as _0x3df5ca,CommandType as _0x119629,DataStreamTreeTokenType as _0x5f1f13,DependentOn as _0x119ba8,Disposable as _0x2c13b2,DocumentBlockRangeType as _0x133263,ICommandService as _0x5d6f06,IConfigService as _0x1e6417,IResourceManagerService as _0x335e62,IUniverInstanceService as _0x4e1fbc,Inject as _0x2c4bc4,Injector as _0x382794,JSONX as _0x2725dd,Plugin as _0x4f2da3,Tools as _0x439388,UniverInstanceType as _0x314853,createParagraphId as _0x41b0f5,generateRandomId as _0x38bf25,merge as _0x5c6bbb}from'@univerjs/core';import{DocContentInsertService as _0x157d07,DocSelectionManagerService as _0x3e133d,RichTextEditingMutation as _0x37489d,UniverDocsPlugin as _0x1c988a}from'@univerjs/docs';import{Subject as _0x5e31df}from'rxjs';import{UniverLicensePlugin as _0x1d8255}from'@univerjs-pro/license';const S={'language':_0x32228a(0x149),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x5e00fb){return{...S,..._0x5e00fb};}function w(_0x58435d){const _0x4142ea=_0x32228a;var _0x5d149c;let _0x27cb21=(_0x5d149c=_0x58435d==null?void 0x0:_0x58435d['codes'])==null?{}:_0x5d149c;return{'codes':Object[_0x4142ea(0x17e)](Object['entries'](_0x27cb21)[_0x4142ea(0x132)](([_0x1f2149,_0x29eaa0])=>[_0x1f2149,C(_0x29eaa0)]))};}function T(_0x2a7abe,_0x2349ed,_0x99733a){const _0x66bccd=_0x32228a;let _0x356452=w(_0x2a7abe);return _0x356452[_0x66bccd(0x18c)][_0x2349ed]=C({..._0x356452[_0x66bccd(0x18c)][_0x2349ed],..._0x99733a}),_0x356452;}function re(_0x2f4f77,_0xf44279){let _0x163193=w(_0x2f4f77);return delete _0x163193['codes'][_0xf44279],_0x163193;}const E=_0x32228a(0x15f);function ie(_0x3c64ec){const _0x30e229=_0x32228a;var _0x16dc60,_0x436803,_0x3499d1;let _0xb4e8f3=O(_0x3c64ec[_0x30e229(0x141)]),_0x3c3619=k(_0xb4e8f3),_0x295f6c=oe(_0x3c64ec[_0x30e229(0x155)],_0x3c64ec[_0x30e229(0x19d)]),_0x555da4=_0x295f6c?(_0x16dc60=_0x3c3619['blockRanges'])==null?void 0x0:_0x16dc60[_0x30e229(0x1a4)](_0xd522f7=>_0xd522f7[_0x30e229(0x14b)]===_0x295f6c[_0x30e229(0x155)]&&_0xd522f7[_0x30e229(0x15d)]+0x1===_0x295f6c[_0x30e229(0x19d)]):void 0x0,{startOffset:_0x78566,endOffset:_0x5886e6}=_0x555da4?_0x295f6c:ve(_0x3c3619,_0x3c64ec[_0x30e229(0x155)],_0x3c64ec[_0x30e229(0x19d)]),_0x2cd2f7=be(_0x3c3619,_0x78566,_0x5886e6),_0x1878b7=(_0x436803=_0x555da4==null?void 0x0:_0x555da4[_0x30e229(0x165)])==null?_0x3c64ec[_0x30e229(0x165)]:_0x436803,_0x2009f3=T(_0x3c64ec[_0x30e229(0x181)],_0x1878b7,{...S,..._0x3c64ec['config']});if(_0x555da4)return _0x555da4[_0x30e229(0x1aa)]=_0x133263[_0x30e229(0x147)],ae(_0x3c3619,_0x78566,_0x5886e6),me(_0x3c3619,_0x78566,_0x5886e6,_0x2cd2f7),{'nextDocumentData':_0xb4e8f3,'nextMetadata':_0x2009f3,'cursorOffset':_0x78566+0x1};if(_0x78566===_0x5886e6){var _0x257ac1;let _0x485435=''+_0x5f1f13['BLOCK_START']+_0x5f1f13[_0x30e229(0x185)]+_0x5f1f13[_0x30e229(0x15e)];return N(_0x3c3619,_0x78566,_0x485435,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x41b0f5(new Set((_0x257ac1=_0x3c3619[_0x30e229(0x16f)])==null?void 0x0:_0x257ac1['map'](_0x4c4be5=>_0x4c4be5[_0x30e229(0x1a7)]))),'paragraphStyle':D(!0x0,!0x0,_0x2cd2f7)}],'blockRanges':[{'blockId':_0x1878b7,'blockType':_0x133263[_0x30e229(0x147)],'startIndex':0x0,'endIndex':_0x485435['length']-0x1}]}),{'nextDocumentData':_0xb4e8f3,'nextMetadata':_0x2009f3,'cursorOffset':_0x78566+0x1};}return N(_0x3c3619,_0x5886e6,_0x5f1f13[_0x30e229(0x15e)]),N(_0x3c3619,_0x78566,_0x5f1f13[_0x30e229(0x12a)]),me(_0x3c3619,_0x78566,_0x5886e6+0x1,_0x2cd2f7),_0x3c3619['blockRanges']=[...(_0x3499d1=_0x3c3619[_0x30e229(0x172)])==null?[]:_0x3499d1,{'blockId':_0x1878b7,'blockType':_0x133263[_0x30e229(0x147)],'startIndex':_0x78566,'endIndex':_0x5886e6+0x1}]['sort']((_0x180a35,_0x4549cc)=>_0x180a35[_0x30e229(0x14b)]-_0x4549cc['startIndex']),{'nextDocumentData':_0xb4e8f3,'nextMetadata':_0x2009f3,'cursorOffset':_0x78566+0x1};}function ae(_0x5030ab,_0x5a453b,_0xa37734){const _0x377144=_0x32228a;var _0x53e375;((_0x53e375=_0x5030ab['paragraphs'])==null?[]:_0x53e375)[_0x377144(0x17f)](_0x349ac3=>_0x349ac3['startIndex']>_0x5a453b&&_0x349ac3[_0x377144(0x14b)]<_0xa37734)[_0x377144(0x1a6)](_0x199c59=>{const _0x1bdb9c=_0x377144;var _0x20f8e8;let _0x34eab4={...(_0x20f8e8=_0x199c59['paragraphStyle'])==null?{}:_0x20f8e8};delete _0x34eab4[_0x1bdb9c(0x162)],delete _0x34eab4[_0x1bdb9c(0x154)],_0x199c59[_0x1bdb9c(0x171)]=_0x34eab4;});}function oe(_0x2c0e92,_0x14b1b4){const _0x459036=_0x32228a;return _0x2c0e92==null||_0x14b1b4==null||_0x2c0e92===_0x14b1b4?null:{'startOffset':Math[_0x459036(0x179)](_0x2c0e92,_0x14b1b4),'endOffset':Math[_0x459036(0x18f)](_0x2c0e92,_0x14b1b4)};}function se(_0x817611){const _0x2fb609=_0x32228a;return{'nextDocumentData':O(_0x817611[_0x2fb609(0x141)]),'nextMetadata':T(_0x817611[_0x2fb609(0x181)],_0x817611[_0x2fb609(0x165)],_0x817611['config']),'cursorOffset':0x0};}function ce(_0x492e56){const _0x4b13cb=_0x32228a;var _0x445492,_0x249435;let _0x1311a3=O(_0x492e56[_0x4b13cb(0x141)]),_0x2ecc5b=k(_0x1311a3),_0x4d2441=pe(_0x2ecc5b,_0x492e56[_0x4b13cb(0x196)]);if(!_0x4d2441)return null;let _0x3852df=ge(_0x2ecc5b,_0x4d2441),_0x13926c=_0x3852df[_0x3852df[_0x4b13cb(0x13e)]-0x1];if(!_0x13926c||!_e(_0x2ecc5b,_0x4d2441,_0x13926c)||_0x492e56[_0x4b13cb(0x196)]<_0x13926c[_0x4b13cb(0x14b)])return null;let _0x3ce8db=j(_0x2ecc5b,_0x4d2441,_0x13926c);if(_0x3ce8db>=_0x4d2441[_0x4b13cb(0x15d)])return null;_0x2ecc5b['dataStream']=[_0x2ecc5b[_0x4b13cb(0x15b)][_0x4b13cb(0x134)](0x0,_0x3ce8db),_0x5f1f13[_0x4b13cb(0x15e)],_0x2ecc5b[_0x4b13cb(0x15b)][_0x4b13cb(0x134)](_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)]),_0x2ecc5b[_0x4b13cb(0x15b)][_0x4b13cb(0x134)](_0x4d2441[_0x4b13cb(0x15d)]+0x1)]['join'](''),R(_0x2ecc5b[_0x4b13cb(0x16f)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),R(_0x2ecc5b[_0x4b13cb(0x15a)],_0x3ce8db,_0x4d2441['endIndex'],0x1),R(_0x2ecc5b[_0x4b13cb(0x12c)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),De(_0x2ecc5b['textRuns'],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),z(_0x2ecc5b[_0x4b13cb(0x194)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),z(_0x2ecc5b[_0x4b13cb(0x17c)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),z(_0x2ecc5b[_0x4b13cb(0x17a)],_0x3ce8db,_0x4d2441[_0x4b13cb(0x15d)],0x1),(_0x445492=_0x2ecc5b[_0x4b13cb(0x172)])==null||_0x445492[_0x4b13cb(0x1a6)](_0x5b1876=>{const _0x4f099d=_0x4b13cb;_0x5b1876===_0x4d2441||_0x5b1876[_0x4f099d(0x165)]===_0x4d2441['blockId']?_0x5b1876[_0x4f099d(0x15d)]=_0x3ce8db:_0x5b1876['startIndex']>=_0x3ce8db&&_0x5b1876[_0x4f099d(0x14b)]<_0x4d2441[_0x4f099d(0x15d)]&&(_0x5b1876[_0x4f099d(0x14b)]+=0x1,_0x5b1876[_0x4f099d(0x15d)]+=0x1);});let _0x19ee11=ge(_0x2ecc5b,{..._0x4d2441,'endIndex':_0x3ce8db});_0x19ee11[_0x4b13cb(0x1a6)]((_0x3942f0,_0x58d133)=>{const _0x43e954=_0x4b13cb;var _0x29f0b4;_0x3942f0['paragraphStyle']={...(_0x29f0b4=_0x3942f0[_0x43e954(0x171)])==null?{}:_0x29f0b4,...D(_0x58d133===0x0,_0x58d133===_0x19ee11[_0x43e954(0x13e)]-0x1)};});let _0x19d799=(_0x249435=_0x2ecc5b[_0x4b13cb(0x16f)])==null?void 0x0:_0x249435[_0x4b13cb(0x1a4)](_0x1af5f2=>_0x1af5f2[_0x4b13cb(0x14b)]===_0x3ce8db+0x1);return _0x19d799&&(_0x19d799[_0x4b13cb(0x171)]=he(_0x19d799[_0x4b13cb(0x171)])),{'nextDocumentData':_0x1311a3,'cursorOffset':_0x3ce8db+0x1};}function le(_0x18bc02){const _0x1fb38c=_0x32228a;let _0x4b4b62=O(_0x18bc02[_0x1fb38c(0x141)]),_0x50e2b4=k(_0x4b4b62),_0x4d099b=pe(_0x50e2b4,_0x18bc02[_0x1fb38c(0x196)]);return _0x4d099b&&ue(_0x4b4b62,_0x50e2b4,_0x4d099b,_0x18bc02[_0x1fb38c(0x196)],_0x18bc02[_0x1fb38c(0x199)])||null;}function ue(_0x3ab584,_0xaeefbd,_0x17058c,_0x14cd55,_0x5628ca){const _0x5950bb=_0x32228a;let _0x464252=Se(_0xaeefbd,_0x17058c,_0x14cd55,_0x5628ca);if(!_0x464252)return null;let _0x4dd5d1=_0x464252[_0x5950bb(0x131)]-0x1;return Ce(_0xaeefbd,_0x464252[_0x5950bb(0x175)][_0x5950bb(0x14b)],_0x464252[_0x5950bb(0x175)][_0x5950bb(0x14b)]+0x1),{'nextDocumentData':_0x3ab584,'cursorOffset':_0x4dd5d1};}function de(_0x1b4e0e,_0x16b26e){const _0x2eea45=_0x32228a;var _0x440d84;return _0x1b4e0e==null||(_0x440d84=_0x1b4e0e[_0x2eea45(0x172)])==null?void 0x0:_0x440d84[_0x2eea45(0x1a4)](_0x16c9b0=>_0x16c9b0[_0x2eea45(0x1aa)]===_0x133263[_0x2eea45(0x147)]&&_0x16c9b0[_0x2eea45(0x14b)]<=_0x16b26e&&_0x16b26e<=_0x16c9b0['endIndex']);}function fe(_0x1001f1){const _0x2c2f65=_0x32228a;var _0x529483;let _0x1b0ec4=_0x1001f1['documentData'][_0x2c2f65(0x195)];if(!_0x1b0ec4)return!0x1;let _0x5ec87b=_0x1001f1[_0x2c2f65(0x128)]===_0x2c2f65(0x161)?_0x1001f1['cursorOffset']-0x1:_0x1001f1[_0x2c2f65(0x196)],_0xd83a30=_0x1001f1[_0x2c2f65(0x128)]==='right'?_0x1001f1[_0x2c2f65(0x196)]+0x1:_0x5ec87b;return((_0x529483=_0x1b0ec4[_0x2c2f65(0x172)])==null?[]:_0x529483)[_0x2c2f65(0x18d)](_0x2ab71f=>_0x2ab71f[_0x2c2f65(0x1aa)]===_0x133263['CODE']?_0x5ec87b===_0x2ab71f[_0x2c2f65(0x14b)]||_0x5ec87b===_0x2ab71f[_0x2c2f65(0x15d)]||_0xd83a30===_0x2ab71f['startIndex']||_0xd83a30===_0x2ab71f[_0x2c2f65(0x15d)]:!0x1);}function pe(_0x265207,_0x330489){const _0x4f6f7d=_0x32228a;var _0x17705e;return(_0x17705e=_0x265207[_0x4f6f7d(0x172)])==null?void 0x0:_0x17705e[_0x4f6f7d(0x1a4)](_0x170188=>{const _0xcf5fff=_0x4f6f7d;let _0x4cba5c=M(_0x265207,_0x170188);return _0x170188[_0xcf5fff(0x1aa)]===_0x133263['CODE']&&_0x170188['startIndex']<=_0x330489&&_0x330489<=_0x4cba5c+0x2;});}function D(_0x5e0002,_0x33f8fa,_0x4de7d7=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5e0002&&_0x4de7d7?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':E,'fs':0xc}};}function me(_0x2a9abd,_0x431ecb,_0x7f2699,_0x54f6f6=!0x1){const _0x5818f8=_0x32228a;var _0x2f4d55;let _0x589595=((_0x2f4d55=_0x2a9abd[_0x5818f8(0x16f)])==null?[]:_0x2f4d55)[_0x5818f8(0x17f)](_0x5b78eb=>_0x5b78eb[_0x5818f8(0x14b)]>_0x431ecb&&_0x5b78eb[_0x5818f8(0x14b)]<_0x7f2699);_0x589595[_0x5818f8(0x1a6)]((_0x493ca5,_0x3e5e5b)=>{const _0x1fd3e4=_0x5818f8;var _0x1d11f1;_0x493ca5[_0x1fd3e4(0x171)]={...(_0x1d11f1=_0x493ca5[_0x1fd3e4(0x171)])==null?{}:_0x1d11f1,...D(_0x3e5e5b===0x0,_0x3e5e5b===_0x589595[_0x1fd3e4(0x13e)]-0x1,_0x54f6f6)};});}function he(_0x1402df){const _0x1c2f43=_0x32228a;var _0x20c4e7,_0x251947;let _0x580371={..._0x1402df==null?{}:_0x1402df};return delete _0x580371[_0x1c2f43(0x178)],delete _0x580371['indentStart'],delete _0x580371[_0x1c2f43(0x162)],delete _0x580371[_0x1c2f43(0x154)],((_0x20c4e7=_0x580371[_0x1c2f43(0x164)])==null?void 0x0:_0x20c4e7['ff'])===E&&((_0x251947=_0x580371['textStyle'])==null?void 0x0:_0x251947['fs'])===0xc&&delete _0x580371[_0x1c2f43(0x164)],_0x580371;}function ge(_0xeef81f,_0xe0e95a){const _0x321a9a=_0x32228a;var _0x2b519d;let _0x1cc87b=M(_0xeef81f,_0xe0e95a);return((_0x2b519d=_0xeef81f[_0x321a9a(0x16f)])==null?[]:_0x2b519d)['filter'](_0x1db1d4=>_0x1db1d4[_0x321a9a(0x14b)]>_0xe0e95a[_0x321a9a(0x14b)]&&_0x1db1d4['startIndex']<_0x1cc87b);}function _e(_0x3ac9a6,_0x1b90ff,_0x4be5d6){const _0x500b28=_0x32228a;let _0x2a05fd=j(_0x3ac9a6,_0x1b90ff,_0x4be5d6),_0x52c96e=_0x3ac9a6['dataStream'][_0x500b28(0x134)](_0x2a05fd,_0x4be5d6['startIndex']);return Array['from'](_0x52c96e)['every'](_0x31ae5b=>_0x31ae5b===_0x5f1f13['BLOCK_START']||_0x31ae5b===_0x5f1f13['BLOCK_END']);}function O(_0x4a39e4){return _0x439388['deepClone'](_0x4a39e4);}function k(_0x47c2bc){const _0x17f930=_0x32228a;if(!_0x47c2bc['body'])throw Error('Document\x20body\x20is\x20required');return _0x47c2bc[_0x17f930(0x195)];}function ve(_0x33a4a0,_0xecb8db,_0x51c073){const _0x4547c4=_0x32228a;if(_0xecb8db==null||_0x51c073==null){let _0x411df4=ye(_0x33a4a0);return{'startOffset':_0x411df4,'endOffset':_0x411df4};}let _0x5cc490=Math[_0x4547c4(0x179)](_0xecb8db,_0x51c073),_0x5d2bb6=Math[_0x4547c4(0x18f)](_0xecb8db,_0x51c073);return _0x5cc490===_0x5d2bb6?{'startOffset':_0x5cc490,'endOffset':_0x5cc490}:xe(_0x33a4a0,_0x5cc490,_0x5d2bb6);}function ye(_0x365daf){const _0x2ff483=_0x32228a;return _0x365daf['dataStream']['endsWith'](_0x5f1f13[_0x2ff483(0x139)])?Math[_0x2ff483(0x18f)](0x0,_0x365daf[_0x2ff483(0x15b)][_0x2ff483(0x13e)]-0x1):_0x365daf[_0x2ff483(0x15b)][_0x2ff483(0x13e)];}function be(_0x4c1059,_0x2adc32,_0x254ba4){const _0x31b2d9=_0x32228a;var _0x66cfa4;let _0x301a87=Math[_0x31b2d9(0x179)](_0x2adc32,_0x254ba4),_0xbfdf4f=Math['max'](_0x2adc32,_0x254ba4);return!!((_0x66cfa4=_0x4c1059[_0x31b2d9(0x194)])!=null&&_0x66cfa4['some'](_0x44374d=>_0x301a87>_0x44374d['startIndex']&&_0x301a87<_0x44374d[_0x31b2d9(0x15d)]||_0xbfdf4f>_0x44374d[_0x31b2d9(0x14b)]&&_0xbfdf4f<_0x44374d['endIndex']||_0x301a87<=_0x44374d[_0x31b2d9(0x14b)]&&_0xbfdf4f>=_0x44374d[_0x31b2d9(0x15d)]));}function xe(_0x2108f7,_0x360f0e,_0x24aafc){const _0x54047f=_0x32228a;var _0x35ace7,_0x153364;let _0x48c17d=[...(_0x35ace7=_0x2108f7[_0x54047f(0x16f)])==null?[]:_0x35ace7][_0x54047f(0x138)]((_0x40b6b0,_0x590011)=>_0x40b6b0[_0x54047f(0x14b)]-_0x590011[_0x54047f(0x14b)]),_0x143bec=_0x48c17d[_0x54047f(0x1a4)]((_0x5e40f0,_0x59ce0e)=>(_0x59ce0e===0x0?0x0:_0x48c17d[_0x59ce0e-0x1][_0x54047f(0x14b)]+0x1)<=_0x360f0e&&_0x360f0e<=_0x5e40f0[_0x54047f(0x14b)]),_0x3dc2e8=(_0x153364=_0x48c17d[_0x54047f(0x1a4)](_0x1c99a9=>_0x1c99a9[_0x54047f(0x14b)]>=_0x24aafc-0x1))==null?_0x48c17d[_0x48c17d[_0x54047f(0x13e)]-0x1]:_0x153364;return{'startOffset':_0x143bec?A(_0x48c17d,_0x143bec):_0x360f0e,'endOffset':_0x3dc2e8?_0x3dc2e8[_0x54047f(0x14b)]+0x1:_0x24aafc};}function A(_0x421c44,_0x3b00b7){const _0x1cb4a8=_0x32228a;let _0x4f9d6f=_0x421c44[_0x1cb4a8(0x177)](_0x3b00b7);return _0x4f9d6f>0x0?_0x421c44[_0x4f9d6f-0x1][_0x1cb4a8(0x14b)]+0x1:0x0;}function j(_0x5727d7,_0x1bd5ea,_0x4a797a){const _0x35cf9d=_0x32228a;var _0x3dad57;return Math[_0x35cf9d(0x18f)](A((_0x3dad57=_0x5727d7[_0x35cf9d(0x16f)])==null?[]:_0x3dad57,_0x4a797a),_0x1bd5ea['startIndex']+0x1);}function M(_0xa72053,_0x3c95f4){const _0x523f2d=_0x32228a;return _0xa72053[_0x523f2d(0x15b)][_0x3c95f4[_0x523f2d(0x15d)]]===_0x5f1f13[_0x523f2d(0x15e)]?_0x3c95f4['endIndex']:_0xa72053['dataStream'][_0x3c95f4['endIndex']+0x1]===_0x5f1f13['BLOCK_END']?_0x3c95f4['endIndex']+0x1:_0x3c95f4['endIndex'];}function _0x7f61(){const _0x6c329d=['getCurrentUnitOfType','PARAGRAPH','textRuns','docs-code.command.insert','change$','symbol','_configService','disposeWithMe','codes','some','_config','max','unitId','COMMAND','iterator','5838952ljBQWp','tables','body','cursorOffset','setCodeConfig','setConfig','paragraphStartIndex','getBody','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','set','endOffset','getUniverDocInstance','dispose','2720blUPwq','_docsCodeModel','83466uXRFGa','object','find','add','forEach','paragraphId','103368vNwUuY','defineProperty','blockType','type','commandService','180XaPJNh','39681AtcNtk','getCodeConfig','direction','getParagraphsInRange','BLOCK_START','compose','customBlocks','nextMetadata','_initResource','serialize','@univerjs-pro/docs-code','endTokenOffset','map','getUnitId','slice','_setResource','complete','range','sort','SECTION_BREAK','6nVuXDW','docs-code.command.exit','removeUnit','_resourceManagerService','length','get','registerCommand','documentData','packageName','_change$','prototype','syncExecuteCommand','config','CODE','delete','javascript','decorate','startIndex','function','574519aJwrMN','deserialize','UNIVER_DOC','diffValue','_resources','1883996iUMZZu','version','spaceBelow','startOffset','docs-code.config','consumeInsertRange','registerPluginResource','next','sectionBreaks','dataStream','docs-code.command.cancel-empty-paragraph','endIndex','BLOCK_END','monospace','every','left','spaceAbove','nextDocumentData','textStyle','blockId','getOwnPropertyDescriptor','reduce','toPrimitive','from','getInstance','_injector','_commandService','string','removeCode','paragraphs','338007Ufxshy','paragraphStyle','blockRanges','asObservable','constructor','paragraph','onStarting','indexOf','indentEnd','min','customDecorations','25bPWxML','customRanges','model','fromEntries','filter','pluginName','metadata','previousDocumentData','0.25.0-insiders.20260613-5ff0e1f'];_0x7f61=function(){return _0x6c329d;};return _0x7f61();}function Se(_0x3c031b,_0x198e7a,_0x239622,_0x5d5b81){const _0x3d67c3=_0x32228a;var _0x327ae5,_0x13957d;let _0x178209=M(_0x3c031b,_0x198e7a),_0x4f3e66=((_0x327ae5=_0x3c031b['paragraphs'])==null?[]:_0x327ae5)[_0x3d67c3(0x1a4)](_0x3b008d=>_0x3b008d[_0x3d67c3(0x14b)]===_0x178209+0x1);if(!_0x4f3e66||_0x5d5b81!=null&&_0x4f3e66[_0x3d67c3(0x14b)]!==_0x5d5b81||_0x239622<_0x178209||_0x239622>_0x4f3e66[_0x3d67c3(0x14b)]+0x1||_0x3c031b['dataStream'][_0x4f3e66['startIndex']]!==_0x5f1f13[_0x3d67c3(0x185)])return null;let _0x4bb323=A((_0x13957d=_0x3c031b[_0x3d67c3(0x16f)])==null?[]:_0x13957d,_0x4f3e66),_0x2d159e=_0x3c031b[_0x3d67c3(0x15b)]['slice'](_0x4bb323,_0x4f3e66['startIndex']);return Array[_0x3d67c3(0x169)](_0x2d159e)[_0x3d67c3(0x160)](_0x1d6e62=>_0x1d6e62===_0x5f1f13['BLOCK_END'])?{'paragraph':_0x4f3e66,'endTokenOffset':_0x178209}:null;}function N(_0x201ab2,_0x4e65a5,_0x5db56f,_0x40c5f6={}){const _0x4317cb=_0x32228a;var _0xfa78a7,_0x3ff237;if(_0x5db56f){if(_0x201ab2[_0x4317cb(0x15b)]=''+_0x201ab2[_0x4317cb(0x15b)]['slice'](0x0,_0x4e65a5)+_0x5db56f+_0x201ab2['dataStream']['slice'](_0x4e65a5),we(_0x201ab2,_0x4e65a5,_0x5db56f[_0x4317cb(0x13e)]),(_0xfa78a7=_0x40c5f6[_0x4317cb(0x16f)])!=null&&_0xfa78a7[_0x4317cb(0x13e)]){var _0xdfd41b;_0x201ab2[_0x4317cb(0x16f)]=[...(_0xdfd41b=_0x201ab2[_0x4317cb(0x16f)])==null?[]:_0xdfd41b,..._0x40c5f6[_0x4317cb(0x16f)]['map'](_0x549469=>({..._0x549469,'startIndex':_0x549469[_0x4317cb(0x14b)]+_0x4e65a5}))][_0x4317cb(0x138)]((_0x29e5c3,_0x3db18c)=>_0x29e5c3[_0x4317cb(0x14b)]-_0x3db18c[_0x4317cb(0x14b)]);}if((_0x3ff237=_0x40c5f6[_0x4317cb(0x172)])!=null&&_0x3ff237[_0x4317cb(0x13e)]){var _0x5c8eee;_0x201ab2[_0x4317cb(0x172)]=[...(_0x5c8eee=_0x201ab2[_0x4317cb(0x172)])==null?[]:_0x5c8eee,..._0x40c5f6[_0x4317cb(0x172)][_0x4317cb(0x132)](_0x5bc8cb=>({..._0x5bc8cb,'startIndex':_0x5bc8cb[_0x4317cb(0x14b)]+_0x4e65a5,'endIndex':_0x5bc8cb['endIndex']+_0x4e65a5}))][_0x4317cb(0x138)]((_0x466668,_0x1987d1)=>_0x466668['startIndex']-_0x1987d1[_0x4317cb(0x14b)]);}}}function Ce(_0xa27b6c,_0xc36158,_0x505f94){const _0x5c194b=_0x32228a;let _0x5140f5=_0x505f94-_0xc36158;_0xa27b6c['dataStream']=''+_0xa27b6c[_0x5c194b(0x15b)][_0x5c194b(0x134)](0x0,_0xc36158)+_0xa27b6c[_0x5c194b(0x15b)][_0x5c194b(0x134)](_0x505f94),Te(_0xa27b6c,_0xc36158,_0x5140f5);}function we(_0xaa6229,_0x49034a,_0x1ed777){const _0x4ca0f8=_0x32228a;_0xaa6229[_0x4ca0f8(0x16f)]=P(_0xaa6229[_0x4ca0f8(0x16f)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x15a)]=P(_0xaa6229[_0x4ca0f8(0x15a)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x12c)]=P(_0xaa6229[_0x4ca0f8(0x12c)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x186)]=Ee(_0xaa6229[_0x4ca0f8(0x186)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x194)]=I(_0xaa6229[_0x4ca0f8(0x194)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x17c)]=I(_0xaa6229[_0x4ca0f8(0x17c)],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x17a)]=I(_0xaa6229['customDecorations'],_0x49034a,_0x1ed777),_0xaa6229[_0x4ca0f8(0x172)]=I(_0xaa6229[_0x4ca0f8(0x172)],_0x49034a,_0x1ed777);}function Te(_0xc3b00f,_0x20c5c5,_0x33c89c){const _0x553c9d=_0x32228a;var _0x32e7ad,_0x4845bc;_0xc3b00f[_0x553c9d(0x16f)]=F(_0xc3b00f[_0x553c9d(0x16f)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x15a)]=F(_0xc3b00f['sectionBreaks'],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x12c)]=F(_0xc3b00f[_0x553c9d(0x12c)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x186)]=(_0x32e7ad=L((_0x4845bc=_0xc3b00f[_0x553c9d(0x186)])==null?void 0x0:_0x4845bc['map'](_0x46f31f=>({..._0x46f31f,'startIndex':_0x46f31f['st'],'endIndex':_0x46f31f['ed']})),_0x20c5c5,_0x33c89c))==null?void 0x0:_0x32e7ad[_0x553c9d(0x132)](_0x1795f5=>{let {startIndex:_0x27664a,endIndex:_0x82241c,..._0x2156e5}=_0x1795f5;return{..._0x2156e5,'st':_0x27664a,'ed':_0x82241c};}),_0xc3b00f[_0x553c9d(0x194)]=L(_0xc3b00f[_0x553c9d(0x194)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x17c)]=L(_0xc3b00f['customRanges'],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x17a)]=L(_0xc3b00f[_0x553c9d(0x17a)],_0x20c5c5,_0x33c89c),_0xc3b00f[_0x553c9d(0x172)]=L(_0xc3b00f[_0x553c9d(0x172)],_0x20c5c5,_0x33c89c);}function P(_0x3da4aa,_0x53c0b1,_0x2c7255){const _0x4b9e95=_0x32228a;return _0x3da4aa==null?void 0x0:_0x3da4aa[_0x4b9e95(0x132)](_0x80b719=>_0x80b719[_0x4b9e95(0x14b)]>=_0x53c0b1?{..._0x80b719,'startIndex':_0x80b719['startIndex']+_0x2c7255}:_0x80b719);}function F(_0xef2a79,_0x4e445e,_0x3bd9aa){const _0x5e2c73=_0x32228a;let _0x57d765=_0x4e445e+_0x3bd9aa;return _0xef2a79==null?void 0x0:_0xef2a79[_0x5e2c73(0x132)](_0x54eb78=>_0x54eb78[_0x5e2c73(0x14b)]>=_0x4e445e&&_0x54eb78[_0x5e2c73(0x14b)]<_0x57d765?null:_0x54eb78['startIndex']>=_0x57d765?{..._0x54eb78,'startIndex':_0x54eb78[_0x5e2c73(0x14b)]-_0x3bd9aa}:_0x54eb78)['filter'](_0x38dafb=>_0x38dafb!=null);}function Ee(_0x1b7a55,_0x20e323,_0x14804a){const _0x14fb3a=_0x32228a;return _0x1b7a55==null?void 0x0:_0x1b7a55[_0x14fb3a(0x132)](_0x21f42d=>_0x21f42d['st']>=_0x20e323?{..._0x21f42d,'st':_0x21f42d['st']+_0x14804a,'ed':_0x21f42d['ed']+_0x14804a}:_0x21f42d['ed']>_0x20e323?{..._0x21f42d,'ed':_0x21f42d['ed']+_0x14804a}:_0x21f42d);}function I(_0x57d080,_0x55db21,_0x2ec604){const _0x391dfa=_0x32228a;return _0x57d080==null?void 0x0:_0x57d080[_0x391dfa(0x132)](_0x5c7c29=>_0x5c7c29['startIndex']>=_0x55db21?{..._0x5c7c29,'startIndex':_0x5c7c29[_0x391dfa(0x14b)]+_0x2ec604,'endIndex':_0x5c7c29[_0x391dfa(0x15d)]+_0x2ec604}:_0x5c7c29[_0x391dfa(0x15d)]>=_0x55db21?{..._0x5c7c29,'endIndex':_0x5c7c29[_0x391dfa(0x15d)]+_0x2ec604}:_0x5c7c29);}function L(_0x48b7b5,_0x2ccd3a,_0x45d54f){const _0x5edd1e=_0x32228a;let _0x3f349f=_0x2ccd3a+_0x45d54f;return _0x48b7b5==null?void 0x0:_0x48b7b5[_0x5edd1e(0x132)](_0x525ac8=>_0x525ac8[_0x5edd1e(0x14b)]>=_0x2ccd3a&&_0x525ac8[_0x5edd1e(0x15d)]<_0x3f349f?null:_0x525ac8['startIndex']>=_0x3f349f?{..._0x525ac8,'startIndex':_0x525ac8['startIndex']-_0x45d54f,'endIndex':_0x525ac8[_0x5edd1e(0x15d)]-_0x45d54f}:_0x525ac8[_0x5edd1e(0x15d)]>=_0x2ccd3a?{..._0x525ac8,'startIndex':_0x525ac8['startIndex']<_0x2ccd3a?_0x525ac8[_0x5edd1e(0x14b)]:_0x2ccd3a,'endIndex':Math[_0x5edd1e(0x18f)](_0x2ccd3a,_0x525ac8[_0x5edd1e(0x15d)]-_0x45d54f)}:_0x525ac8)['filter'](_0x1cc640=>_0x1cc640!=null);}function R(_0x447172,_0x49a73e,_0x253c27,_0x44a2f4){const _0x302b83=_0x32228a;_0x447172==null||_0x447172[_0x302b83(0x1a6)](_0x169b88=>{const _0x1ccd8b=_0x302b83;_0x169b88[_0x1ccd8b(0x14b)]>=_0x49a73e&&_0x169b88[_0x1ccd8b(0x14b)]<_0x253c27&&(_0x169b88[_0x1ccd8b(0x14b)]+=_0x44a2f4);});}function De(_0x55744f,_0x39b30d,_0xe364b5,_0x28d5b5){const _0x5427a7=_0x32228a;_0x55744f==null||_0x55744f[_0x5427a7(0x1a6)](_0x383f8f=>{_0x383f8f['st']>=_0x39b30d&&_0x383f8f['st']<_0xe364b5?(_0x383f8f['st']+=_0x28d5b5,_0x383f8f['ed']+=_0x28d5b5):_0x383f8f['ed']>_0x39b30d&&_0x383f8f['ed']<_0xe364b5&&(_0x383f8f['ed']+=_0x28d5b5);});}function z(_0x5a39e0,_0x293cce,_0x35b71f,_0x345305){_0x5a39e0==null||_0x5a39e0['forEach'](_0x245116=>{const _0x108eeb=_0x5a31;_0x245116[_0x108eeb(0x14b)]>=_0x293cce&&_0x245116[_0x108eeb(0x14b)]<_0x35b71f?(_0x245116[_0x108eeb(0x14b)]+=_0x345305,_0x245116[_0x108eeb(0x15d)]+=_0x345305):_0x245116['endIndex']>_0x293cce&&_0x245116[_0x108eeb(0x15d)]<_0x35b71f&&(_0x245116[_0x108eeb(0x15d)]+=_0x345305);});}function B(_0x1cf255){'@babel/helpers - typeof';const _0x290537=_0x32228a;return B=typeof Symbol==_0x290537(0x14c)&&typeof Symbol[_0x290537(0x192)]=='symbol'?function(_0x3fde1a){return typeof _0x3fde1a;}:function(_0x3dfbb1){const _0x94a508=_0x290537;return _0x3dfbb1&&typeof Symbol=='function'&&_0x3dfbb1[_0x94a508(0x174)]===Symbol&&_0x3dfbb1!==Symbol[_0x94a508(0x144)]?_0x94a508(0x189):typeof _0x3dfbb1;},B(_0x1cf255);}function Oe(_0x501706,_0x10c89c){const _0x1d7c33=_0x32228a;if(B(_0x501706)!=_0x1d7c33(0x1a3)||!_0x501706)return _0x501706;var _0x2d3240=_0x501706[Symbol[_0x1d7c33(0x168)]];if(_0x2d3240!==void 0x0){var _0x5c2342=_0x2d3240['call'](_0x501706,_0x10c89c||'default');if(B(_0x5c2342)!=_0x1d7c33(0x1a3))return _0x5c2342;throw TypeError(_0x1d7c33(0x19b));}return(_0x10c89c===_0x1d7c33(0x16d)?String:Number)(_0x501706);}function ke(_0x1cc6b5){const _0x18e07c=_0x32228a;var _0x20fa3a=Oe(_0x1cc6b5,_0x18e07c(0x16d));return B(_0x20fa3a)==_0x18e07c(0x189)?_0x20fa3a:_0x20fa3a+'';}function V(_0x368947,_0x53df43,_0x3d2d04){const _0x2dd4a7=_0x32228a;return(_0x53df43=ke(_0x53df43))in _0x368947?Object[_0x2dd4a7(0x1a9)](_0x368947,_0x53df43,{'value':_0x3d2d04,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x368947[_0x53df43]=_0x3d2d04,_0x368947;}var H=class extends _0x2c13b2{constructor(..._0x2aa538){const _0x2616ee=_0x32228a;super(..._0x2aa538),V(this,_0x2616ee(0x151),new Map()),V(this,_0x2616ee(0x143),new _0x5e31df()),V(this,_0x2616ee(0x188),this[_0x2616ee(0x143)][_0x2616ee(0x173)]());}[_0x32228a(0x127)](_0x328095,_0x4aa464){const _0x3b84f8=_0x32228a;return w(this['_resources'][_0x3b84f8(0x13f)](_0x328095))['codes'][_0x4aa464];}[_0x32228a(0x197)](_0x106bb0,_0x1dbdb9,_0x11a677){const _0x4397ab=_0x32228a;this['_setResource'](_0x106bb0,_0x1dbdb9,T(this[_0x4397ab(0x151)][_0x4397ab(0x13f)](_0x106bb0),_0x1dbdb9,_0x11a677));}[_0x32228a(0x16e)](_0x15f4df,_0x218888){const _0x33a796=_0x32228a;this['_setResource'](_0x15f4df,_0x218888,re(this[_0x33a796(0x151)][_0x33a796(0x13f)](_0x15f4df),_0x218888));}['serialize'](_0x289bd0){const _0x143fe1=_0x32228a;return w(this['_resources'][_0x143fe1(0x13f)](_0x289bd0));}['deserialize'](_0x28d013,_0xd12d47){const _0x437ab7=_0x32228a;this[_0x437ab7(0x151)][_0x437ab7(0x19c)](_0x28d013,w(_0xd12d47)),this[_0x437ab7(0x143)][_0x437ab7(0x159)]({'unitId':_0x28d013});}[_0x32228a(0x13c)](_0x6efce1){const _0x2358b2=_0x32228a;this[_0x2358b2(0x151)][_0x2358b2(0x148)](_0x6efce1),this[_0x2358b2(0x143)][_0x2358b2(0x159)]({'unitId':_0x6efce1});}[_0x32228a(0x19f)](){const _0x21c6e4=_0x32228a;super[_0x21c6e4(0x19f)](),this[_0x21c6e4(0x151)]['clear'](),this['_change$'][_0x21c6e4(0x136)]();}[_0x32228a(0x135)](_0x55691d,_0x35f597,_0x3e0c68){const _0x5f2d46=_0x32228a;this[_0x5f2d46(0x151)][_0x5f2d46(0x19c)](_0x55691d,_0x3e0c68),this[_0x5f2d46(0x143)]['next']({'unitId':_0x55691d,'blockId':_0x35f597});}};const Ae={'id':'docs-code.command.insert-below','type':_0x119629[_0x32228a(0x191)],'handler':_0x5b27f6=>{const _0x21a79d=_0x32228a;let _0x4265e7=Pe(_0x5b27f6);if(_0x4265e7)return _0x5b27f6[_0x21a79d(0x13f)](_0x5d6f06)['syncExecuteCommand'](U['id'],{'startOffset':_0x4265e7[_0x21a79d(0x155)],'endOffset':_0x4265e7[_0x21a79d(0x19d)],'unitId':_0x4265e7[_0x21a79d(0x190)]});let _0x1a4e88=Fe(_0x5b27f6);if(!_0x1a4e88)return!0x1;let _0x1e8060=_0x1a4e88[_0x21a79d(0x14b)]+0x1;return _0x5b27f6[_0x21a79d(0x13f)](_0x5d6f06)[_0x21a79d(0x145)](U['id'],{'startOffset':_0x1e8060,'endOffset':_0x1e8060});}},je={'id':'docs-code.command.consume-boundary-delete','type':_0x119629[_0x32228a(0x191)],'handler':()=>!0x0},U={'id':_0x32228a(0x187),'type':_0x119629[_0x32228a(0x191)],'handler':(_0x36be36,_0x1a31da)=>{const _0x1c8719=_0x32228a;var _0x4e96de,_0x4311e8,_0x3ba251;let _0x3b7cfc=G(_0x36be36,_0x1a31da==null?void 0x0:_0x1a31da[_0x1c8719(0x190)]);if(!_0x3b7cfc)return!0x1;let _0x55d273=K(_0x36be36),_0x1ef1fd=ie({'blockId':(_0x4e96de=_0x1a31da==null?void 0x0:_0x1a31da['blockId'])==null?_0x38bf25(0x6):_0x4e96de,'config':_0x1a31da==null?void 0x0:_0x1a31da[_0x1c8719(0x146)],'documentData':_0x3b7cfc[_0x1c8719(0x182)],'endOffset':(_0x4311e8=_0x1a31da==null?void 0x0:_0x1a31da['endOffset'])==null?_0x55d273==null?void 0x0:_0x55d273[_0x1c8719(0x19d)]:_0x4311e8,'metadata':_0x3b7cfc[_0x1c8719(0x17d)][_0x1c8719(0x12f)](_0x3b7cfc['unitId']),'startOffset':(_0x3ba251=_0x1a31da==null?void 0x0:_0x1a31da['startOffset'])==null?_0x55d273==null?void 0x0:_0x55d273[_0x1c8719(0x155)]:_0x3ba251}),_0x560f13=J(_0x3b7cfc[_0x1c8719(0x1ac)],_0x3b7cfc['unitId'],_0x3b7cfc[_0x1c8719(0x182)],_0x1ef1fd[_0x1c8719(0x163)],_0x1ef1fd[_0x1c8719(0x196)]);return _0x560f13&&_0x1ef1fd['nextMetadata']&&_0x3b7cfc[_0x1c8719(0x17d)][_0x1c8719(0x14e)](_0x3b7cfc[_0x1c8719(0x190)],_0x1ef1fd[_0x1c8719(0x12d)]),_0x560f13;}},Me={'id':'docs-code.command.update','type':_0x119629[_0x32228a(0x191)],'handler':(_0x34983f,_0x56418e)=>{const _0x299500=_0x32228a;if(!_0x56418e)return!0x1;let _0x27f502=G(_0x34983f,_0x56418e[_0x299500(0x190)]);if(!_0x27f502)return!0x1;let _0x750c6a=se({'blockId':_0x56418e[_0x299500(0x165)],'config':_0x56418e['config'],'documentData':_0x27f502['previousDocumentData'],'metadata':_0x27f502['model']['serialize'](_0x27f502[_0x299500(0x190)])});return _0x750c6a['nextMetadata']&&_0x27f502[_0x299500(0x17d)][_0x299500(0x14e)](_0x27f502['unitId'],_0x750c6a[_0x299500(0x12d)]),!0x0;}},W={'id':_0x32228a(0x13b),'type':_0x119629[_0x32228a(0x191)],'handler':(_0x34489b,_0x1b06c7)=>{const _0x3760cd=_0x32228a;var _0xf12787,_0x2db3a1;let _0x433c34=G(_0x34489b,_0x1b06c7==null?void 0x0:_0x1b06c7['unitId']);if(!_0x433c34)return!0x1;let _0x1ef3e9=(_0xf12787=_0x1b06c7==null?void 0x0:_0x1b06c7[_0x3760cd(0x196)])==null?(_0x2db3a1=K(_0x34489b))==null?void 0x0:_0x2db3a1['startOffset']:_0xf12787;if(_0x1ef3e9==null)return!0x1;let _0x46ca9f=ce({'cursorOffset':_0x1ef3e9,'documentData':_0x433c34[_0x3760cd(0x182)]});return _0x46ca9f?J(_0x433c34[_0x3760cd(0x1ac)],_0x433c34[_0x3760cd(0x190)],_0x433c34[_0x3760cd(0x182)],_0x46ca9f[_0x3760cd(0x163)],_0x46ca9f[_0x3760cd(0x196)]):!0x1;}},Ne={'id':_0x32228a(0x15c),'type':_0x119629[_0x32228a(0x191)],'handler':(_0x21db0b,_0x97aafd)=>{const _0xd05e26=_0x32228a;var _0x18d026,_0x5325f2;let _0x439612=G(_0x21db0b,_0x97aafd==null?void 0x0:_0x97aafd[_0xd05e26(0x190)]);if(!_0x439612)return!0x1;let _0x4f593b=(_0x18d026=_0x97aafd==null?void 0x0:_0x97aafd['cursorOffset'])==null?(_0x5325f2=K(_0x21db0b))==null?void 0x0:_0x5325f2[_0xd05e26(0x155)]:_0x18d026;if(_0x4f593b==null)return!0x1;let _0x54d294=le({'cursorOffset':_0x4f593b,'documentData':_0x439612[_0xd05e26(0x182)],'paragraphStartIndex':_0x97aafd==null?void 0x0:_0x97aafd['paragraphStartIndex']});return _0x54d294?J(_0x439612[_0xd05e26(0x1ac)],_0x439612[_0xd05e26(0x190)],_0x439612[_0xd05e26(0x182)],_0x54d294['nextDocumentData'],_0x54d294['cursorOffset']):!0x1;}};function G(_0x355998,_0x58a8f1){const _0xaf9667=_0x32228a;let _0xc33f2f=_0x355998[_0xaf9667(0x13f)](_0x4e1fbc),_0x4ccbd0=_0x58a8f1?_0xc33f2f[_0xaf9667(0x19e)](_0x58a8f1):_0xc33f2f[_0xaf9667(0x184)](_0x314853[_0xaf9667(0x14f)]);return _0x4ccbd0?{'commandService':_0x355998[_0xaf9667(0x13f)](_0x5d6f06),'model':_0x355998[_0xaf9667(0x13f)](H),'previousDocumentData':_0x4ccbd0['getSnapshot'](),'unitId':_0x4ccbd0[_0xaf9667(0x133)]()}:null;}function K(_0x22b4c3){const _0x4594e3=_0x32228a;var _0x11b785;return(_0x11b785=_0x22b4c3[_0x4594e3(0x13f)](_0x3e133d)['getTextRanges']())==null?void 0x0:_0x11b785[0x0];}function Pe(_0x47cfc5){const _0x6318b9=_0x32228a;var _0x5e9d48;let _0x9984e6=(_0x5e9d48=_0x47cfc5[_0x6318b9(0x13f)](_0x4e1fbc)['getCurrentUnitOfType'](_0x314853[_0x6318b9(0x14f)]))==null?void 0x0:_0x5e9d48[_0x6318b9(0x133)]();try{return _0x47cfc5[_0x6318b9(0x13f)](_0x157d07)[_0x6318b9(0x157)](_0x9984e6);}catch{return null;}}function Fe(_0x3602f3){const _0xc47835=_0x32228a;var _0x3b3f4b,_0x47535b,_0x474f38;let _0x1e797b=K(_0x3602f3);if(!_0x1e797b)return null;let _0x52d2ae=_0x3602f3[_0xc47835(0x13f)](_0x4e1fbc)[_0xc47835(0x184)](_0x314853['UNIVER_DOC']),_0x6b2959=_0x52d2ae==null?void 0x0:_0x52d2ae[_0xc47835(0x19a)]();return _0x6b2959?(_0x3b3f4b=_0x3df5ca[_0xc47835(0x137)][_0xc47835(0x129)](_0x1e797b,(_0x47535b=_0x6b2959[_0xc47835(0x16f)])==null?[]:_0x47535b,(_0x474f38=_0x6b2959[_0xc47835(0x15b)])==null?'':_0x474f38)[0x0])==null?null:_0x3b3f4b:null;}function Ie(_0x3358ef,_0x5f569c){const _0x3bc747=_0x32228a;var _0x5025f6,_0x561e0e,_0x23b19e,_0x243741,_0x29048c,_0x12b64a,_0x446ef0,_0x40a710,_0x247858,_0x21ac8b,_0x248c3a,_0x3f2d90,_0x4f127d,_0x46a271,_0x2a3888,_0x29681d,_0xf74476,_0x4607d4;let _0x284aaa=_0x2725dd[_0x3bc747(0x16a)]();return[q(_0x284aaa,['body',_0x3bc747(0x15b)],(_0x5025f6=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x5025f6[_0x3bc747(0x15b)],(_0x561e0e=_0x5f569c['body'])==null?void 0x0:_0x561e0e['dataStream']),q(_0x284aaa,[_0x3bc747(0x195),'paragraphs'],(_0x23b19e=_0x3358ef['body'])==null?void 0x0:_0x23b19e[_0x3bc747(0x16f)],(_0x243741=_0x5f569c['body'])==null?void 0x0:_0x243741['paragraphs']),q(_0x284aaa,['body',_0x3bc747(0x15a)],(_0x29048c=_0x3358ef['body'])==null?void 0x0:_0x29048c[_0x3bc747(0x15a)],(_0x12b64a=_0x5f569c['body'])==null?void 0x0:_0x12b64a[_0x3bc747(0x15a)]),q(_0x284aaa,[_0x3bc747(0x195),_0x3bc747(0x186)],(_0x446ef0=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x446ef0[_0x3bc747(0x186)],(_0x40a710=_0x5f569c['body'])==null?void 0x0:_0x40a710[_0x3bc747(0x186)]),q(_0x284aaa,['body',_0x3bc747(0x12c)],(_0x247858=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x247858[_0x3bc747(0x12c)],(_0x21ac8b=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x21ac8b['customBlocks']),q(_0x284aaa,[_0x3bc747(0x195),_0x3bc747(0x17c)],(_0x248c3a=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x248c3a[_0x3bc747(0x17c)],(_0x3f2d90=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x3f2d90['customRanges']),q(_0x284aaa,[_0x3bc747(0x195),'customDecorations'],(_0x4f127d=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x4f127d[_0x3bc747(0x17a)],(_0x46a271=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x46a271[_0x3bc747(0x17a)]),q(_0x284aaa,[_0x3bc747(0x195),_0x3bc747(0x194)],(_0x2a3888=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0x2a3888[_0x3bc747(0x194)],(_0x29681d=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x29681d['tables']),q(_0x284aaa,['body',_0x3bc747(0x172)],(_0xf74476=_0x3358ef[_0x3bc747(0x195)])==null?void 0x0:_0xf74476[_0x3bc747(0x172)],(_0x4607d4=_0x5f569c[_0x3bc747(0x195)])==null?void 0x0:_0x4607d4[_0x3bc747(0x172)])]['filter'](Boolean)[_0x3bc747(0x167)]((_0x105905,_0x577e5c)=>_0x2725dd[_0x3bc747(0x12b)](_0x105905,_0x577e5c),null);}function q(_0x455190,_0x30e350,_0x2f1f24,_0x17b8de){const _0x278348=_0x32228a;return _0x439388[_0x278348(0x150)](_0x2f1f24,_0x17b8de)?null:_0x455190['replaceOp'](_0x30e350,_0x2f1f24,_0x17b8de);}function J(_0x19c853,_0xfa974f,_0x8890db,_0x28b21e,_0xb1e39a){const _0x176a78=_0x32228a;let _0x2f5d26=Ie(_0x8890db,_0x28b21e);return _0x2f5d26?!!_0x19c853[_0x176a78(0x145)](_0x37489d['id'],{'unitId':_0xfa974f,'actions':_0x2f5d26,'textRanges':[{'startOffset':_0xb1e39a,'endOffset':_0xb1e39a,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y='DOC_CODE_PLUGIN';var Le=_0x32228a(0x130),Re=_0x32228a(0x183);const ze={};function X(_0x4fdac1,_0x18043c){return function(_0x461ac6,_0x5028e1){_0x18043c(_0x461ac6,_0x5028e1,_0x4fdac1);};}function Z(_0xc67381,_0x9bfa54,_0x523730,_0x2daa8c){const _0x18df2a=_0x32228a;var _0x433fd0=arguments['length'],_0x1ea23b=_0x433fd0<0x3?_0x9bfa54:_0x2daa8c===null?_0x2daa8c=Object[_0x18df2a(0x166)](_0x9bfa54,_0x523730):_0x2daa8c,_0x5aa2e7;if(typeof Reflect==_0x18df2a(0x1a3)&&typeof Reflect[_0x18df2a(0x14a)]=='function')_0x1ea23b=Reflect[_0x18df2a(0x14a)](_0xc67381,_0x9bfa54,_0x523730,_0x2daa8c);else{for(var _0x446c05=_0xc67381[_0x18df2a(0x13e)]-0x1;_0x446c05>=0x0;_0x446c05--)(_0x5aa2e7=_0xc67381[_0x446c05])&&(_0x1ea23b=(_0x433fd0<0x3?_0x5aa2e7(_0x1ea23b):_0x433fd0>0x3?_0x5aa2e7(_0x9bfa54,_0x523730,_0x1ea23b):_0x5aa2e7(_0x9bfa54,_0x523730))||_0x1ea23b);}return _0x433fd0>0x3&&_0x1ea23b&&Object[_0x18df2a(0x1a9)](_0x9bfa54,_0x523730,_0x1ea23b),_0x1ea23b;}let Q=class extends _0x2c13b2{constructor(_0x3ccf99,_0x51a1bb){const _0x1fa283=_0x32228a;super(),this[_0x1fa283(0x13d)]=_0x3ccf99,this[_0x1fa283(0x1a1)]=_0x51a1bb,this[_0x1fa283(0x12e)]();}[_0x32228a(0x12e)](){const _0x5b3342=_0x32228a;this[_0x5b3342(0x18b)](this[_0x5b3342(0x13d)][_0x5b3342(0x158)]({'pluginName':Y,'businesses':[_0x314853[_0x5b3342(0x14f)]],'toJson':_0x1c8e3a=>JSON['stringify'](this[_0x5b3342(0x1a1)]['serialize'](_0x1c8e3a)),'parseJson':_0x4c13de=>w(JSON['parse'](_0x4c13de)),'onLoad':(_0x42bad6,_0x30eef0)=>this[_0x5b3342(0x1a1)]['deserialize'](_0x42bad6,_0x30eef0),'onUnLoad':_0x26bbb7=>this[_0x5b3342(0x1a1)]['removeUnit'](_0x26bbb7)}));}};Q=Z([X(0x0,_0x335e62),X(0x1,_0x2c4bc4(H))],Q);let $=class extends _0x4f2da3{constructor(_0x5a371c=ze,_0x160475,_0xb782c9,_0x3a344f){const _0x230fad=_0x32228a;super(),this[_0x230fad(0x18e)]=_0x5a371c,this[_0x230fad(0x16b)]=_0x160475,this[_0x230fad(0x16c)]=_0xb782c9,this[_0x230fad(0x18a)]=_0x3a344f;let {..._0xd898a0}=_0x5c6bbb({},ze,this[_0x230fad(0x18e)]);this[_0x230fad(0x18a)][_0x230fad(0x198)](_0x230fad(0x156),_0xd898a0);}[_0x32228a(0x176)](){const _0x6cbd81=_0x32228a;this[_0x6cbd81(0x16b)][_0x6cbd81(0x1a5)]([H]),this[_0x6cbd81(0x16b)][_0x6cbd81(0x1a5)]([Q]),this['_injector'][_0x6cbd81(0x13f)](H),this[_0x6cbd81(0x16b)][_0x6cbd81(0x13f)](Q),[U,Ae,Me,W,Ne,je]['forEach'](_0x560c3d=>this['disposeWithMe'](this['_commandService'][_0x6cbd81(0x140)](_0x560c3d)));}};V($,_0x32228a(0x180),Y),V($,_0x32228a(0x142),Le),V($,_0x32228a(0x153),Re),V($,_0x32228a(0x1ab),_0x314853[_0x32228a(0x14f)]),$=Z([_0x119ba8(_0x1d8255,_0x1c988a),X(0x1,_0x2c4bc4(_0x382794)),X(0x2,_0x5d6f06),X(0x3,_0x1e6417)],$);export{S as DEFAULT_CODE_CONFIG,Y as DOCS_CODE_PLUGIN,Ne as DocsCodeCancelEmptyParagraphCommand,je as DocsCodeConsumeBoundaryDeleteCommand,W as DocsCodeExitCommand,Ae as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Me as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,le as buildCancelEmptyCodeParagraphActions,ce as buildExitCodeActions,ie as buildInsertCodeActions,se as buildUpdateCodeActions,de as findCodeRangeAtOffset,fe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x4ceb(){var _0x5a6f7d=['findCodeByText','4QAUmnA','@univerjs-pro/docs-code','_getBlockRanges','toStringTag','3711336tbaIOS','Injector','FDocumentCode','prototype','_createFDocumentCode','symbol','generateRandomId','body','getText','constructor','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getCodeConfig','dataStream','3jZMVbF','PARAGRAPH','Module','_getDocumentData','iterator','BLOCK_START','_blockId','cancelEmptyCodeParagraph','DocsCodeInsertCommand','ICommandService','4350024zczmKY','defineProperty','some','filter','createInstance','DocsCodeCancelEmptyParagraphCommand','UniverDocsFacade','replace','DocsCodeExitCommand','14650300iufEzf','blockRanges','save','UniverProDocsCode','length','BLOCK_END','getId','getCodes','endIndex','function','_getBlockRange','insertCode','join','exit','164188fLmqfB','_document','blockId','exports','toPrimitive','getCodeAt','get','42VQqiGN','map','getRange','FDocument','DocumentBlockRangeType','findCodes','includes','_injector','normalizeDocsCodeConfig','exitCode','find','object','Inject','DocsCodeModel','syncExecuteCommand','1627506EcRwGO','call','text','extend','string','SECTION_BREAK','DataStreamTreeTokenType','DocsCodeUpdateCommand','41105FZzBch','2943066imXSSo','_unitId','getConfig','UniverProDocsCodeFacade','getCode','blockType','@univerjs/docs/facade','CODE'];_0x4ceb=function(){return _0x5a6f7d;};return _0x4ceb();}function _0xc4f5(_0x41abd6,_0x4d9b45){_0x41abd6=_0x41abd6-0xa3;var _0x4ceb33=_0x4ceb();var _0xc4f586=_0x4ceb33[_0x41abd6];return _0xc4f586;}(function(_0x5a9115,_0x976787){var _0x15f422=_0xc4f5,_0x4294e5=_0x5a9115();while(!![]){try{var _0x46e54a=parseInt(_0x15f422(0xc7))/0x1*(-parseInt(_0x15f422(0xe8))/0x2)+-parseInt(_0x15f422(0xa3))/0x3*(parseInt(_0x15f422(0xb5))/0x4)+parseInt(_0x15f422(0xab))/0x5*(parseInt(_0x15f422(0xef))/0x6)+-parseInt(_0x15f422(0xac))/0x7+-parseInt(_0x15f422(0xb9))/0x8+parseInt(_0x15f422(0xd1))/0x9+parseInt(_0x15f422(0xda))/0xa;if(_0x46e54a===_0x976787)break;else _0x4294e5['push'](_0x4294e5['shift']());}catch(_0x3dee85){_0x4294e5['push'](_0x4294e5['shift']());}}}(_0x4ceb,0x513e6),function(_0x1ac2a1,_0x1b6afa){var _0x321373=_0xc4f5;typeof exports==_0x321373(0xfa)&&typeof module<'u'?_0x1b6afa(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x321373(0xe3)&&define['amd']?define([_0x321373(0xeb),_0x321373(0xb6),'@univerjs/core',_0x321373(0xb2)],_0x1b6afa):(_0x1ac2a1=typeof globalThis<'u'?globalThis:_0x1ac2a1||self,_0x1b6afa(_0x1ac2a1[_0x321373(0xaf)]={},_0x1ac2a1[_0x321373(0xdd)],_0x1ac2a1['UniverCore'],_0x1ac2a1[_0x321373(0xd7)]));}(this,function(_0x73a3b7,_0xc577de,_0x221ba3,_0x4a4020){var _0x2556c8=_0xc4f5;Object[_0x2556c8(0xd2)](_0x73a3b7,Symbol[_0x2556c8(0xb8)],{'value':_0x2556c8(0xc9)});function _0x5e9c9b(_0xc03cd){'@babel/helpers - typeof';var _0x49e341=_0x2556c8;return _0x5e9c9b=typeof Symbol=='function'&&typeof Symbol[_0x49e341(0xcb)]==_0x49e341(0xbe)?function(_0x47d43a){return typeof _0x47d43a;}:function(_0x5aa1a8){var _0x188ce3=_0x49e341;return _0x5aa1a8&&typeof Symbol==_0x188ce3(0xe3)&&_0x5aa1a8[_0x188ce3(0xc2)]===Symbol&&_0x5aa1a8!==Symbol[_0x188ce3(0xbc)]?_0x188ce3(0xbe):typeof _0x5aa1a8;},_0x5e9c9b(_0xc03cd);}function _0x4413b3(_0x33ec9f,_0x27350a){var _0x1ddf0c=_0x2556c8;if(_0x5e9c9b(_0x33ec9f)!='object'||!_0x33ec9f)return _0x33ec9f;var _0x7185b5=_0x33ec9f[Symbol[_0x1ddf0c(0xec)]];if(_0x7185b5!==void 0x0){var _0xe17f58=_0x7185b5[_0x1ddf0c(0xa4)](_0x33ec9f,_0x27350a||'default');if(_0x5e9c9b(_0xe17f58)!=_0x1ddf0c(0xfa))return _0xe17f58;throw TypeError(_0x1ddf0c(0xc4));}return(_0x27350a==='string'?String:Number)(_0x33ec9f);}function _0x453afe(_0x57101c){var _0x56c02d=_0x2556c8,_0x41fce5=_0x4413b3(_0x57101c,_0x56c02d(0xa7));return _0x5e9c9b(_0x41fce5)==_0x56c02d(0xbe)?_0x41fce5:_0x41fce5+'';}function _0x49c28e(_0x2e880f,_0x450cb9,_0x58ebfa){var _0x1fd78c=_0x2556c8;return(_0x450cb9=_0x453afe(_0x450cb9))in _0x2e880f?Object[_0x1fd78c(0xd2)](_0x2e880f,_0x450cb9,{'value':_0x58ebfa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e880f[_0x450cb9]=_0x58ebfa,_0x2e880f;}function _0x1c08e4(_0x2bb613,_0x11c999){return function(_0x8fbacb,_0x2a7b6e){_0x11c999(_0x8fbacb,_0x2a7b6e,_0x2bb613);};}function _0x54cd4f(_0x20dd29,_0x5d4150,_0x4b0fcb,_0x5f419d){var _0x545efc=_0x2556c8,_0x5dab4e=arguments[_0x545efc(0xde)],_0x33488c=_0x5dab4e<0x3?_0x5d4150:_0x5f419d===null?_0x5f419d=Object['getOwnPropertyDescriptor'](_0x5d4150,_0x4b0fcb):_0x5f419d,_0x56ec7c;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x33488c=Reflect[_0x545efc(0xc3)](_0x20dd29,_0x5d4150,_0x4b0fcb,_0x5f419d);else{for(var _0x169a29=_0x20dd29[_0x545efc(0xde)]-0x1;_0x169a29>=0x0;_0x169a29--)(_0x56ec7c=_0x20dd29[_0x169a29])&&(_0x33488c=(_0x5dab4e<0x3?_0x56ec7c(_0x33488c):_0x5dab4e>0x3?_0x56ec7c(_0x5d4150,_0x4b0fcb,_0x33488c):_0x56ec7c(_0x5d4150,_0x4b0fcb))||_0x33488c);}return _0x5dab4e>0x3&&_0x33488c&&Object[_0x545efc(0xd2)](_0x5d4150,_0x4b0fcb,_0x33488c),_0x33488c;}let _0x3614d1=class{constructor(_0x1e77fa,_0x42ae86,_0x44998d){var _0x5ebdeb=_0x2556c8;this[_0x5ebdeb(0xe9)]=_0x1e77fa,this[_0x5ebdeb(0xcd)]=_0x42ae86,this[_0x5ebdeb(0xf6)]=_0x44998d,_0x49c28e(this,_0x5ebdeb(0xad),void 0x0),this[_0x5ebdeb(0xad)]=this[_0x5ebdeb(0xe9)][_0x5ebdeb(0xe0)]();}['getId'](){var _0x294cf7=_0x2556c8;return this[_0x294cf7(0xcd)];}['getRange'](){var _0x2e3201=_0x2556c8;let _0xd95999=this[_0x2e3201(0xe4)]();return _0xd95999?{'blockId':_0xd95999[_0x2e3201(0xea)],'endIndex':_0xd95999[_0x2e3201(0xe2)],'startIndex':_0xd95999['startIndex']}:null;}[_0x2556c8(0xc1)](){var _0x11b670=_0x2556c8,_0x14bcce;let _0x34d539=this[_0x11b670(0xe4)](),_0x1ce83a=(_0x14bcce=this[_0x11b670(0xca)]()[_0x11b670(0xc0)])==null?void 0x0:_0x14bcce[_0x11b670(0xc6)];return!_0x34d539||!_0x1ce83a?'':_0x4bfc0a(_0x1ce83a['slice'](_0x34d539['startIndex']+0x1,_0x34d539['endIndex']));}['describe'](){var _0x50ef5a=_0x2556c8;let _0x3b27ec=this[_0x50ef5a(0xf1)]();return _0x3b27ec?{..._0x3b27ec,'config':this[_0x50ef5a(0xae)](),'text':this[_0x50ef5a(0xc1)](),'type':_0x221ba3[_0x50ef5a(0xf3)][_0x50ef5a(0xb3)]}:null;}[_0x2556c8(0xae)](){var _0x5568eb=_0x2556c8;return(0x0,_0xc577de[_0x5568eb(0xf7)])(this[_0x5568eb(0xf6)]['get'](_0xc577de[_0x5568eb(0xfc)])[_0x5568eb(0xc5)](this[_0x5568eb(0xad)],this[_0x5568eb(0xcd)]));}['updateConfig'](_0x57c278){var _0xc70dc4=_0x2556c8;return this[_0xc70dc4(0xf6)][_0xc70dc4(0xee)](_0x221ba3['ICommandService'])[_0xc70dc4(0xfd)](_0xc577de[_0xc70dc4(0xaa)]['id'],{'blockId':this[_0xc70dc4(0xcd)],'config':_0x57c278['config'],'unitId':this[_0xc70dc4(0xad)]});}[_0x2556c8(0xe7)](_0x409006){var _0x12a5c9=_0x2556c8;return this['_injector'][_0x12a5c9(0xee)](_0x221ba3['ICommandService'])['syncExecuteCommand'](_0xc577de[_0x12a5c9(0xd9)]['id'],{'cursorOffset':_0x409006,'unitId':this[_0x12a5c9(0xad)]});}['cancelEmptyParagraph'](_0x47fe75={}){var _0x39ba5c=_0x2556c8;return this[_0x39ba5c(0xf6)][_0x39ba5c(0xee)](_0x221ba3['ICommandService'])[_0x39ba5c(0xfd)](_0xc577de['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x47fe75,'unitId':this[_0x39ba5c(0xad)]});}[_0x2556c8(0xca)](){var _0xeba03e=_0x2556c8;return this[_0xeba03e(0xe9)][_0xeba03e(0xdc)]();}['_getBlockRange'](){var _0x380db9=_0x2556c8,_0x2bfe59;let _0x590714=(_0x2bfe59=this[_0x380db9(0xca)]()[_0x380db9(0xc0)])==null||(_0x2bfe59=_0x2bfe59[_0x380db9(0xdb)])==null?void 0x0:_0x2bfe59[_0x380db9(0xf9)](_0x29add9=>_0x29add9[_0x380db9(0xea)]===this['_blockId']&&_0x29add9[_0x380db9(0xb1)]===_0x221ba3['DocumentBlockRangeType'][_0x380db9(0xb3)]);return _0x590714==null?null:_0x590714;}};_0x3614d1=_0x54cd4f([_0x1c08e4(0x2,(0x0,_0x221ba3[_0x2556c8(0xfb)])(_0x221ba3[_0x2556c8(0xba)]))],_0x3614d1);function _0x4bfc0a(_0x14f05a){var _0x45e85f=_0x2556c8;return Array['from'](_0x14f05a)[_0x45e85f(0xf0)](_0x2e61c7=>_0x2e61c7===_0x221ba3[_0x45e85f(0xa9)][_0x45e85f(0xc8)]?'\x0a':_0x2e61c7)[_0x45e85f(0xd4)](_0x5497b3=>_0x5497b3!==_0x221ba3[_0x45e85f(0xa9)][_0x45e85f(0xcc)]&&_0x5497b3!==_0x221ba3['DataStreamTreeTokenType'][_0x45e85f(0xdf)]&&_0x5497b3!==_0x221ba3['DataStreamTreeTokenType'][_0x45e85f(0xa8)])[_0x45e85f(0xe6)]('')[_0x45e85f(0xd8)](/\n$/,'');}var _0x1f4142=class extends _0x4a4020[_0x2556c8(0xf2)]{[_0x2556c8(0xe1)](){var _0x1e5434=_0x2556c8;return this[_0x1e5434(0xb7)]()[_0x1e5434(0xd4)](_0x30eada=>_0x30eada['blockType']===_0x221ba3[_0x1e5434(0xf3)][_0x1e5434(0xb3)])[_0x1e5434(0xf0)](_0x430198=>this[_0x1e5434(0xbd)](_0x430198['blockId']));}[_0x2556c8(0xb0)](_0x345d18){var _0x4e9ac5=_0x2556c8;return this[_0x4e9ac5(0xb7)]()[_0x4e9ac5(0xd3)](_0x492765=>_0x492765['blockId']===_0x345d18&&_0x492765[_0x4e9ac5(0xb1)]===_0x221ba3[_0x4e9ac5(0xf3)][_0x4e9ac5(0xb3)])?this[_0x4e9ac5(0xbd)](_0x345d18):null;}[_0x2556c8(0xed)](_0x39c3ca){var _0x1511bb=_0x2556c8;let _0x5dc0a7=this[_0x1511bb(0xb7)]()[_0x1511bb(0xf9)](_0x247c17=>_0x247c17[_0x1511bb(0xb1)]===_0x221ba3['DocumentBlockRangeType'][_0x1511bb(0xb3)]&&_0x247c17['startIndex']<=_0x39c3ca&&_0x39c3ca<=_0x247c17[_0x1511bb(0xe2)]);return _0x5dc0a7?this[_0x1511bb(0xbd)](_0x5dc0a7[_0x1511bb(0xea)]):null;}[_0x2556c8(0xb4)](_0x47a7a1){var _0x5ef1bd;return(_0x5ef1bd=this['findCodes'](_0x47a7a1)[0x0])==null?null:_0x5ef1bd;}[_0x2556c8(0xf4)](_0x4526e4){var _0x21c932=_0x2556c8;let _0x21d8be=typeof _0x4526e4=='string'?{'text':_0x4526e4}:_0x4526e4;return this[_0x21c932(0xe1)]()[_0x21c932(0xd4)](_0x5167b6=>!(_0x21d8be['blockId']&&_0x5167b6['getId']()!==_0x21d8be[_0x21c932(0xea)]||_0x21d8be[_0x21c932(0xa5)]&&!_0x5167b6['getText']()[_0x21c932(0xf5)](_0x21d8be[_0x21c932(0xa5)])));}[_0x2556c8(0xe5)](_0x2da306={}){var _0x53d168=_0x2556c8,_0x1779f8;let _0x4b0224=this[_0x53d168(0xf6)][_0x53d168(0xee)](_0x221ba3['ICommandService']),_0x1fc90f=(_0x1779f8=_0x2da306[_0x53d168(0xea)])==null?(0x0,_0x221ba3[_0x53d168(0xbf)])(0x6):_0x1779f8;return _0x4b0224['syncExecuteCommand'](_0xc577de[_0x53d168(0xcf)]['id'],{..._0x2da306,'blockId':_0x1fc90f,'unitId':this[_0x53d168(0xe0)]()})?this[_0x53d168(0xbd)](_0x1fc90f):null;}[_0x2556c8(0xf8)](_0x4927fb){var _0x33d9be=_0x2556c8;return this[_0x33d9be(0xf6)][_0x33d9be(0xee)](_0x221ba3[_0x33d9be(0xd0)])[_0x33d9be(0xfd)](_0xc577de[_0x33d9be(0xd9)]['id'],{'cursorOffset':_0x4927fb,'unitId':this[_0x33d9be(0xe0)]()});}[_0x2556c8(0xce)](_0x4a4780={}){var _0x369113=_0x2556c8;return this[_0x369113(0xf6)][_0x369113(0xee)](_0x221ba3[_0x369113(0xd0)])[_0x369113(0xfd)](_0xc577de[_0x369113(0xd6)]['id'],{..._0x4a4780,'unitId':this[_0x369113(0xe0)]()});}[_0x2556c8(0xb7)](){var _0x256f67=_0x2556c8,_0x5908b9,_0x521610;return(_0x5908b9=(_0x521610=this['save']()[_0x256f67(0xc0)])==null?void 0x0:_0x521610[_0x256f67(0xdb)])==null?[]:_0x5908b9;}['_createFDocumentCode'](_0x1253b6){var _0x14ba8c=_0x2556c8;return this[_0x14ba8c(0xf6)][_0x14ba8c(0xd5)](_0x3614d1,this,_0x1253b6);}};_0x4a4020[_0x2556c8(0xf2)][_0x2556c8(0xa6)](_0x1f4142),Object['defineProperty'](_0x73a3b7,_0x2556c8(0xbb),{'enumerable':!0x0,'get':function(){return _0x3614d1;}});}));
1
+ function _0x546a(_0x208207,_0x33d7d1){_0x208207=_0x208207-0xaa;var _0x2ac3e1=_0x2ac3();var _0x546a3b=_0x2ac3e1[_0x208207];return _0x546a3b;}(function(_0x36c46c,_0xdc0ced){var _0x3e40ab=_0x546a,_0x3c0587=_0x36c46c();while(!![]){try{var _0x2f5f3b=parseInt(_0x3e40ab(0xc6))/0x1*(-parseInt(_0x3e40ab(0xab))/0x2)+parseInt(_0x3e40ab(0xe2))/0x3+parseInt(_0x3e40ab(0xc7))/0x4*(-parseInt(_0x3e40ab(0xf7))/0x5)+-parseInt(_0x3e40ab(0xdb))/0x6*(-parseInt(_0x3e40ab(0xfe))/0x7)+-parseInt(_0x3e40ab(0xbf))/0x8*(-parseInt(_0x3e40ab(0xd8))/0x9)+-parseInt(_0x3e40ab(0xee))/0xa*(-parseInt(_0x3e40ab(0xad))/0xb)+-parseInt(_0x3e40ab(0xb4))/0xc*(parseInt(_0x3e40ab(0xef))/0xd);if(_0x2f5f3b===_0xdc0ced)break;else _0x3c0587['push'](_0x3c0587['shift']());}catch(_0x24407a){_0x3c0587['push'](_0x3c0587['shift']());}}}(_0x2ac3,0x9e9c5),function(_0x57e808,_0x1725cc){var _0x5d08e4=_0x546a;typeof exports==_0x5d08e4(0xb0)&&typeof module<'u'?_0x1725cc(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x5d08e4(0xf9)&&define['amd']?define(['exports',_0x5d08e4(0xb2),_0x5d08e4(0xea),_0x5d08e4(0xb6)],_0x1725cc):(_0x57e808=typeof globalThis<'u'?globalThis:_0x57e808||self,_0x1725cc(_0x57e808[_0x5d08e4(0xae)]={},_0x57e808[_0x5d08e4(0xcd)],_0x57e808[_0x5d08e4(0xd7)],_0x57e808[_0x5d08e4(0xd9)]));}(this,function(_0x54abf3,_0x129d23,_0x5eb566,_0x29c09a){var _0x30a762=_0x546a;Object[_0x30a762(0xe3)](_0x54abf3,Symbol[_0x30a762(0xbc)],{'value':_0x30a762(0xdc)});function _0x2ae18d(_0x29f851){'@babel/helpers - typeof';var _0x1ccc5c=_0x30a762;return _0x2ae18d=typeof Symbol=='function'&&typeof Symbol[_0x1ccc5c(0xe0)]=='symbol'?function(_0x26f08d){return typeof _0x26f08d;}:function(_0x58a327){var _0x2b1895=_0x1ccc5c;return _0x58a327&&typeof Symbol=='function'&&_0x58a327[_0x2b1895(0xc5)]===Symbol&&_0x58a327!==Symbol[_0x2b1895(0xfd)]?_0x2b1895(0xb9):typeof _0x58a327;},_0x2ae18d(_0x29f851);}function _0x298aea(_0x178e5b,_0x1e7a1d){var _0x4b6b4e=_0x30a762;if(_0x2ae18d(_0x178e5b)!='object'||!_0x178e5b)return _0x178e5b;var _0x3fa36e=_0x178e5b[Symbol['toPrimitive']];if(_0x3fa36e!==void 0x0){var _0x3be191=_0x3fa36e[_0x4b6b4e(0xd6)](_0x178e5b,_0x1e7a1d||_0x4b6b4e(0xf5));if(_0x2ae18d(_0x3be191)!=_0x4b6b4e(0xb0))return _0x3be191;throw TypeError(_0x4b6b4e(0xb3));}return(_0x1e7a1d==='string'?String:Number)(_0x178e5b);}function _0x387df8(_0x2e1462){var _0x1308e8=_0x30a762,_0x124e1c=_0x298aea(_0x2e1462,'string');return _0x2ae18d(_0x124e1c)==_0x1308e8(0xb9)?_0x124e1c:_0x124e1c+'';}function _0x4af88f(_0x180f66,_0x2e03dd,_0x9014df){var _0x459275=_0x30a762;return(_0x2e03dd=_0x387df8(_0x2e03dd))in _0x180f66?Object[_0x459275(0xe3)](_0x180f66,_0x2e03dd,{'value':_0x9014df,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x180f66[_0x2e03dd]=_0x9014df,_0x180f66;}function _0x160412(_0x5e5645,_0x4b0789){return function(_0x5eb66e,_0x4670ed){_0x4b0789(_0x5eb66e,_0x4670ed,_0x5e5645);};}function _0x1c8890(_0x395b87,_0x38a76f,_0x3f0b1b,_0x1579ee){var _0x1aaf7e=_0x30a762,_0x4cab10=arguments[_0x1aaf7e(0xe6)],_0x512ac8=_0x4cab10<0x3?_0x38a76f:_0x1579ee===null?_0x1579ee=Object[_0x1aaf7e(0xb8)](_0x38a76f,_0x3f0b1b):_0x1579ee,_0x19a36e;if(typeof Reflect=='object'&&typeof Reflect[_0x1aaf7e(0xf6)]==_0x1aaf7e(0xf9))_0x512ac8=Reflect['decorate'](_0x395b87,_0x38a76f,_0x3f0b1b,_0x1579ee);else{for(var _0x193dd8=_0x395b87[_0x1aaf7e(0xe6)]-0x1;_0x193dd8>=0x0;_0x193dd8--)(_0x19a36e=_0x395b87[_0x193dd8])&&(_0x512ac8=(_0x4cab10<0x3?_0x19a36e(_0x512ac8):_0x4cab10>0x3?_0x19a36e(_0x38a76f,_0x3f0b1b,_0x512ac8):_0x19a36e(_0x38a76f,_0x3f0b1b))||_0x512ac8);}return _0x4cab10>0x3&&_0x512ac8&&Object[_0x1aaf7e(0xe3)](_0x38a76f,_0x3f0b1b,_0x512ac8),_0x512ac8;}let _0x37c8ca=class{constructor(_0x31bad4,_0x1ed4c1,_0x4a4f52){var _0x3bec33=_0x30a762;this[_0x3bec33(0xc1)]=_0x31bad4,this[_0x3bec33(0xd4)]=_0x1ed4c1,this[_0x3bec33(0xaa)]=_0x4a4f52,_0x4af88f(this,_0x3bec33(0xdf),void 0x0),this[_0x3bec33(0xdf)]=this[_0x3bec33(0xc1)][_0x3bec33(0xde)]();}[_0x30a762(0xde)](){var _0x2e60ce=_0x30a762;return this[_0x2e60ce(0xd4)];}[_0x30a762(0xcf)](){var _0x5ae755=_0x30a762;let _0x27809c=this[_0x5ae755(0xc0)]();return _0x27809c?{'blockId':_0x27809c['blockId'],'endIndex':_0x27809c[_0x5ae755(0xcb)],'startIndex':_0x27809c[_0x5ae755(0xc8)]}:null;}[_0x30a762(0xac)](){var _0x5ee7c4=_0x30a762,_0x10ab4f;let _0x8265e9=this[_0x5ee7c4(0xc0)](),_0xe09b56=(_0x10ab4f=this[_0x5ee7c4(0xaf)]()['body'])==null?void 0x0:_0x10ab4f[_0x5ee7c4(0xfc)];return!_0x8265e9||!_0xe09b56?'':_0x1e0d69(_0xe09b56[_0x5ee7c4(0xd5)](_0x8265e9[_0x5ee7c4(0xc8)]+0x1,_0x8265e9[_0x5ee7c4(0xcb)]));}['describe'](){var _0x26d5ee=_0x30a762;let _0x121b74=this[_0x26d5ee(0xcf)]();return _0x121b74?{..._0x121b74,'config':this[_0x26d5ee(0xf1)](),'text':this[_0x26d5ee(0xac)](),'type':_0x5eb566['DocumentBlockRangeType']['CODE']}:null;}[_0x30a762(0xf1)](){var _0x57a37d=_0x30a762;return(0x0,_0x129d23['normalizeDocsCodeConfig'])(this[_0x57a37d(0xaa)][_0x57a37d(0xfa)](_0x129d23['DocsCodeModel'])['getCodeConfig'](this[_0x57a37d(0xdf)],this[_0x57a37d(0xd4)]));}[_0x30a762(0xd1)](_0xba47db){var _0x445471=_0x30a762;return this['_injector'][_0x445471(0xfa)](_0x5eb566[_0x445471(0xe4)])['syncExecuteCommand'](_0x129d23[_0x445471(0xe7)]['id'],{'blockId':this['_blockId'],'config':_0xba47db[_0x445471(0xda)],'unitId':this[_0x445471(0xdf)]});}[_0x30a762(0xc4)](_0x1445f5){var _0x291e24=_0x30a762;return this[_0x291e24(0xaa)][_0x291e24(0xfa)](_0x5eb566['ICommandService'])[_0x291e24(0xb5)](_0x129d23['DocsCodeExitCommand']['id'],{'cursorOffset':_0x1445f5,'unitId':this[_0x291e24(0xdf)]});}['cancelEmptyParagraph'](_0x183ddf={}){var _0x552f71=_0x30a762;return this[_0x552f71(0xaa)][_0x552f71(0xfa)](_0x5eb566[_0x552f71(0xe4)])['syncExecuteCommand'](_0x129d23['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x183ddf,'unitId':this[_0x552f71(0xdf)]});}[_0x30a762(0xaf)](){var _0x4b91fd=_0x30a762;return this[_0x4b91fd(0xc1)][_0x4b91fd(0x101)]();}[_0x30a762(0xc0)](){var _0x4a88b1=_0x30a762,_0x4f355e;let _0x143642=(_0x4f355e=this[_0x4a88b1(0xaf)]()[_0x4a88b1(0xdd)])==null||(_0x4f355e=_0x4f355e[_0x4a88b1(0xfb)])==null?void 0x0:_0x4f355e[_0x4a88b1(0xf4)](_0x525d37=>_0x525d37[_0x4a88b1(0x100)]===this[_0x4a88b1(0xd4)]&&_0x525d37[_0x4a88b1(0xbb)]===_0x5eb566[_0x4a88b1(0xce)][_0x4a88b1(0xeb)]);return _0x143642==null?null:_0x143642;}};_0x37c8ca=_0x1c8890([_0x160412(0x2,(0x0,_0x5eb566[_0x30a762(0xd3)])(_0x5eb566[_0x30a762(0x103)]))],_0x37c8ca);function _0x1e0d69(_0x7bc1c3){var _0x534c8d=_0x30a762;return Array[_0x534c8d(0x104)](_0x7bc1c3)[_0x534c8d(0xc9)](_0x433965=>_0x433965===_0x5eb566[_0x534c8d(0xf8)][_0x534c8d(0xe1)]?'\x0a':_0x433965)[_0x534c8d(0xff)](_0x55edcd=>_0x55edcd!==_0x5eb566[_0x534c8d(0xf8)][_0x534c8d(0xbd)]&&_0x55edcd!==_0x5eb566[_0x534c8d(0xf8)]['BLOCK_END']&&_0x55edcd!==_0x5eb566[_0x534c8d(0xf8)][_0x534c8d(0xd2)])['join']('')[_0x534c8d(0xed)](/\n$/,'');}var _0x3da516=class extends _0x29c09a[_0x30a762(0xb1)]{[_0x30a762(0xcc)](){var _0x5965af=_0x30a762;return this['_getBlockRanges']()[_0x5965af(0xff)](_0x3b2943=>_0x3b2943['blockType']===_0x5eb566['DocumentBlockRangeType'][_0x5965af(0xeb)])[_0x5965af(0xc9)](_0x103cf4=>this[_0x5965af(0xf2)](_0x103cf4[_0x5965af(0x100)]));}[_0x30a762(0xe5)](_0x2de6af){var _0x28d5ed=_0x30a762;return this[_0x28d5ed(0xf0)]()['some'](_0x35ddb4=>_0x35ddb4[_0x28d5ed(0x100)]===_0x2de6af&&_0x35ddb4[_0x28d5ed(0xbb)]===_0x5eb566[_0x28d5ed(0xce)][_0x28d5ed(0xeb)])?this[_0x28d5ed(0xf2)](_0x2de6af):null;}[_0x30a762(0xc2)](_0x15007f){var _0x4334d5=_0x30a762;let _0x3db849=this[_0x4334d5(0xf0)]()[_0x4334d5(0xf4)](_0x2eebd3=>_0x2eebd3[_0x4334d5(0xbb)]===_0x5eb566['DocumentBlockRangeType'][_0x4334d5(0xeb)]&&_0x2eebd3[_0x4334d5(0xc8)]<=_0x15007f&&_0x15007f<=_0x2eebd3[_0x4334d5(0xcb)]);return _0x3db849?this[_0x4334d5(0xf2)](_0x3db849[_0x4334d5(0x100)]):null;}[_0x30a762(0xc3)](_0x5cab7e){var _0x531ce4=_0x30a762,_0x335c9a;return(_0x335c9a=this[_0x531ce4(0xba)](_0x5cab7e)[0x0])==null?null:_0x335c9a;}[_0x30a762(0xba)](_0x2becb4){var _0x4a0865=_0x30a762;let _0x33d30f=typeof _0x2becb4=='string'?{'text':_0x2becb4}:_0x2becb4;return this[_0x4a0865(0xcc)]()[_0x4a0865(0xff)](_0x2761cb=>!(_0x33d30f[_0x4a0865(0x100)]&&_0x2761cb['getId']()!==_0x33d30f[_0x4a0865(0x100)]||_0x33d30f[_0x4a0865(0xd0)]&&!_0x2761cb['getText']()[_0x4a0865(0xf3)](_0x33d30f['text'])));}[_0x30a762(0xb7)](_0xc54019={},_0x481cbf={}){var _0x160608=_0x30a762,_0x480bd0;let _0x14ab2f=this[_0x160608(0xaa)][_0x160608(0xfa)](_0x5eb566[_0x160608(0xe4)]),_0x1d3b89=_0x2e9cbd(_0xc54019)?{..._0x481cbf,..._0x116c34(_0xc54019)}:_0xc54019,_0x1f7ce6=(_0x480bd0=_0x1d3b89[_0x160608(0x100)])==null?(0x0,_0x5eb566[_0x160608(0x102)])(0x6):_0x480bd0;return _0x14ab2f[_0x160608(0xb5)](_0x129d23[_0x160608(0xbe)]['id'],{..._0x1d3b89,'blockId':_0x1f7ce6,'unitId':this[_0x160608(0xde)]()})?this[_0x160608(0xf2)](_0x1f7ce6):null;}[_0x30a762(0xca)](_0x203457){var _0x417c25=_0x30a762;return this[_0x417c25(0xaa)][_0x417c25(0xfa)](_0x5eb566[_0x417c25(0xe4)])[_0x417c25(0xb5)](_0x129d23['DocsCodeExitCommand']['id'],{'cursorOffset':_0x203457,'unitId':this[_0x417c25(0xde)]()});}[_0x30a762(0xec)](_0x316404={}){var _0x3ffc4f=_0x30a762;return this[_0x3ffc4f(0xaa)][_0x3ffc4f(0xfa)](_0x5eb566[_0x3ffc4f(0xe4)])[_0x3ffc4f(0xb5)](_0x129d23['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x316404,'unitId':this['getId']()});}[_0x30a762(0xf0)](){var _0x15b037,_0x16ca4d;return(_0x15b037=(_0x16ca4d=this['save']()['body'])==null?void 0x0:_0x16ca4d['blockRanges'])==null?[]:_0x15b037;}['_createFDocumentCode'](_0x95f5ae){var _0x41d7e3=_0x30a762;return this[_0x41d7e3(0xaa)]['createInstance'](_0x37c8ca,this,_0x95f5ae);}};function _0x2e9cbd(_0x40d540){var _0x36d9c9=_0x30a762;return typeof _0x40d540=='object'&&!!_0x40d540&&typeof _0x40d540['getKey']==_0x36d9c9(0xf9)&&typeof _0x40d540[_0x36d9c9(0xcf)]==_0x36d9c9(0xf9)&&typeof _0x40d540[_0x36d9c9(0xe8)]=='function'&&_0x40d540[_0x36d9c9(0xe8)]()===_0x36d9c9(0x105);}function _0x116c34(_0x1e0988){return _0x1e0988['getRange']();}_0x29c09a[_0x30a762(0xb1)][_0x30a762(0xe9)](_0x3da516),Object[_0x30a762(0xe3)](_0x54abf3,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0x37c8ca;}});}));function _0x2ac3(){var _0x7fee1b=['_blockId','slice','call','UniverCore','5688IZJnRw','UniverDocsFacade','config','22710byXHXb','Module','body','getId','_unitId','iterator','PARAGRAPH','3796215haOLxI','defineProperty','ICommandService','getCode','length','DocsCodeUpdateCommand','getType','extend','@univerjs/core','CODE','cancelEmptyCodeParagraph','replace','110wcTlbX','2899CaYDZZ','_getBlockRanges','getConfig','_createFDocumentCode','includes','find','default','decorate','387155hDzvJE','DataStreamTreeTokenType','function','get','blockRanges','dataStream','prototype','1239pkbTpz','filter','blockId','save','generateRandomId','Injector','from','paragraph','_injector','14aRDDKr','getText','1154978djgFrC','UniverProDocsCodeFacade','_getDocumentData','object','FDocument','@univerjs-pro/docs-code','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','129660SEivXZ','syncExecuteCommand','@univerjs/docs/facade','insertCode','getOwnPropertyDescriptor','symbol','findCodes','blockType','toStringTag','BLOCK_START','DocsCodeInsertCommand','9224IYmNGn','_getBlockRange','_document','getCodeAt','findCodeByText','exit','constructor','20056quwNdY','32NcaVbl','startIndex','map','exitCode','endIndex','getCodes','UniverProDocsCode','DocumentBlockRangeType','getRange','text','updateConfig','SECTION_BREAK','Inject'];_0x2ac3=function(){return _0x7fee1b;};return _0x2ac3();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2c1382,_0x216f6b){const _0xfaecae=_0xd18f,_0x4f56ec=_0x2c1382();while(!![]){try{const _0x4f0f40=-parseInt(_0xfaecae(0x108))/0x1+parseInt(_0xfaecae(0x138))/0x2+parseInt(_0xfaecae(0x184))/0x3+parseInt(_0xfaecae(0x12c))/0x4*(parseInt(_0xfaecae(0x16d))/0x5)+-parseInt(_0xfaecae(0x119))/0x6*(-parseInt(_0xfaecae(0x146))/0x7)+-parseInt(_0xfaecae(0xe4))/0x8*(-parseInt(_0xfaecae(0x15c))/0x9)+parseInt(_0xfaecae(0x129))/0xa*(-parseInt(_0xfaecae(0x174))/0xb);if(_0x4f0f40===_0x216f6b)break;else _0x4f56ec['push'](_0x4f56ec['shift']());}catch(_0x262c7a){_0x4f56ec['push'](_0x4f56ec['shift']());}}}(_0x1949,0xb63a0),function(_0x610305,_0x1ca0ab){const _0x124afc=_0xd18f;typeof exports==_0x124afc(0x13c)&&typeof module<'u'?_0x1ca0ab(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x124afc(0x159)&&define['amd']?define(['exports','@univerjs/core','@univerjs/docs',_0x124afc(0xfd),_0x124afc(0x126)],_0x1ca0ab):(_0x610305=typeof globalThis<'u'?globalThis:_0x610305||self,_0x1ca0ab(_0x610305[_0x124afc(0x10c)]={},_0x610305[_0x124afc(0x165)],_0x610305[_0x124afc(0x12b)],_0x610305['rxjs'],_0x610305[_0x124afc(0xef)]));}(this,function(_0x9dd0db,_0x5d4ca5,_0x2ca7dd,_0x37027d,_0x2feee9){const _0x244c36=_0xd18f;Object[_0x244c36(0x144)](_0x9dd0db,Symbol[_0x244c36(0x17f)],{'value':_0x244c36(0xe5)});let _0x1dd79b={'language':_0x244c36(0x116),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x5d947f(_0x4c8c0e){return{..._0x1dd79b,..._0x4c8c0e};}function _0xfee73a(_0x1a1099){const _0x1aa5ce=_0x244c36;var _0x1ce362;let _0x2ab7c2=(_0x1ce362=_0x1a1099==null?void 0x0:_0x1a1099['codes'])==null?{}:_0x1ce362;return{'codes':Object[_0x1aa5ce(0x156)](Object['entries'](_0x2ab7c2)['map'](([_0x164233,_0x5a8f69])=>[_0x164233,_0x5d947f(_0x5a8f69)]))};}function _0x2ac018(_0x4e3b8b,_0x65b18a,_0x482f5c){const _0x59cd2c=_0x244c36;let _0x5dd6f8=_0xfee73a(_0x4e3b8b);return _0x5dd6f8[_0x59cd2c(0x107)][_0x65b18a]=_0x5d947f({..._0x5dd6f8[_0x59cd2c(0x107)][_0x65b18a],..._0x482f5c}),_0x5dd6f8;}function _0x718ada(_0x88aa61,_0x491a31){let _0x463dea=_0xfee73a(_0x88aa61);return delete _0x463dea['codes'][_0x491a31],_0x463dea;}let _0x18f1e4=_0x244c36(0x12e);function _0x199ede(_0x5407b8){const _0x293607=_0x244c36;var _0x26c48f,_0x1b8982,_0x26286a;let _0x5a7a07=_0x5376e5(_0x5407b8[_0x293607(0x17e)]),_0x32fc63=_0x1b7596(_0x5a7a07),_0xcedb34=_0x5039fc(_0x5407b8[_0x293607(0x137)],_0x5407b8[_0x293607(0x115)]),_0x5a98b3=_0xcedb34?(_0x26c48f=_0x32fc63[_0x293607(0x17a)])==null?void 0x0:_0x26c48f['find'](_0x5be19c=>_0x5be19c[_0x293607(0x149)]===_0xcedb34['startOffset']&&_0x5be19c[_0x293607(0x143)]+0x1===_0xcedb34[_0x293607(0x115)]):void 0x0,{startOffset:_0x5c0477,endOffset:_0x1e525f}=_0x5a98b3?_0xcedb34:_0x1deb0c(_0x32fc63,_0x5407b8[_0x293607(0x137)],_0x5407b8[_0x293607(0x115)]),_0x4598f1=_0x4c7cb3(_0x32fc63,_0x5c0477,_0x1e525f),_0x1ee753=(_0x1b8982=_0x5a98b3==null?void 0x0:_0x5a98b3[_0x293607(0x113)])==null?_0x5407b8[_0x293607(0x113)]:_0x1b8982,_0x158170=_0x2ac018(_0x5407b8[_0x293607(0x106)],_0x1ee753,{..._0x1dd79b,..._0x5407b8[_0x293607(0xf0)]});if(_0x5a98b3)return _0x5a98b3[_0x293607(0x112)]=_0x5d4ca5[_0x293607(0x179)][_0x293607(0xee)],_0x5b70ab(_0x32fc63,_0x5c0477,_0x1e525f),_0xc2eb01(_0x32fc63,_0x5c0477,_0x1e525f,_0x4598f1),{'nextDocumentData':_0x5a7a07,'nextMetadata':_0x158170,'cursorOffset':_0x5c0477+0x1};if(_0x5c0477===_0x1e525f){let _0x44c733=''+_0x5d4ca5[_0x293607(0x13d)][_0x293607(0x124)]+_0x5d4ca5[_0x293607(0x13d)]['PARAGRAPH']+_0x5d4ca5[_0x293607(0x13d)][_0x293607(0xe0)];return _0xb342f1(_0x32fc63,_0x5c0477,_0x44c733,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':_0xfbf025(!0x0,!0x0,_0x4598f1)}],'blockRanges':[{'blockId':_0x1ee753,'blockType':_0x5d4ca5[_0x293607(0x179)]['CODE'],'startIndex':0x0,'endIndex':_0x44c733[_0x293607(0x12f)]-0x1}]}),{'nextDocumentData':_0x5a7a07,'nextMetadata':_0x158170,'cursorOffset':_0x5c0477+0x1};}return _0xb342f1(_0x32fc63,_0x1e525f,_0x5d4ca5[_0x293607(0x13d)][_0x293607(0xe0)]),_0xb342f1(_0x32fc63,_0x5c0477,_0x5d4ca5[_0x293607(0x13d)][_0x293607(0x124)]),_0xc2eb01(_0x32fc63,_0x5c0477,_0x1e525f+0x1,_0x4598f1),_0x32fc63[_0x293607(0x17a)]=[...(_0x26286a=_0x32fc63[_0x293607(0x17a)])==null?[]:_0x26286a,{'blockId':_0x1ee753,'blockType':_0x5d4ca5[_0x293607(0x179)]['CODE'],'startIndex':_0x5c0477,'endIndex':_0x1e525f+0x1}][_0x293607(0x11b)]((_0x29e96d,_0x3fbd90)=>_0x29e96d['startIndex']-_0x3fbd90[_0x293607(0x149)]),{'nextDocumentData':_0x5a7a07,'nextMetadata':_0x158170,'cursorOffset':_0x5c0477+0x1};}function _0x5b70ab(_0x57d252,_0x22cb86,_0x587af9){const _0x265532=_0x244c36;var _0x1ee5f8;((_0x1ee5f8=_0x57d252[_0x265532(0x141)])==null?[]:_0x1ee5f8)[_0x265532(0x145)](_0x36ec5e=>_0x36ec5e[_0x265532(0x149)]>_0x22cb86&&_0x36ec5e[_0x265532(0x149)]<_0x587af9)['forEach'](_0x2aa8a0=>{const _0xbb9bf7=_0x265532;var _0x396787;let _0x25fc8a={...(_0x396787=_0x2aa8a0[_0xbb9bf7(0xfe)])==null?{}:_0x396787};delete _0x25fc8a['spaceAbove'],delete _0x25fc8a[_0xbb9bf7(0x103)],_0x2aa8a0[_0xbb9bf7(0xfe)]=_0x25fc8a;});}function _0x5039fc(_0x32b550,_0x136603){const _0x9dc21a=_0x244c36;return _0x32b550==null||_0x136603==null||_0x32b550===_0x136603?null:{'startOffset':Math[_0x9dc21a(0xf5)](_0x32b550,_0x136603),'endOffset':Math[_0x9dc21a(0x163)](_0x32b550,_0x136603)};}function _0x3e201b(_0x5e593a){const _0x5d96fc=_0x244c36;return{'nextDocumentData':_0x5376e5(_0x5e593a['documentData']),'nextMetadata':_0x2ac018(_0x5e593a[_0x5d96fc(0x106)],_0x5e593a['blockId'],_0x5e593a[_0x5d96fc(0xf0)]),'cursorOffset':0x0};}function _0x38dd96(_0x5f088d){const _0xd35900=_0x244c36;var _0x52316a,_0x56d8f0;let _0x5a563a=_0x5376e5(_0x5f088d['documentData']),_0x57eee0=_0x1b7596(_0x5a563a),_0x570771=_0x143c63(_0x57eee0,_0x5f088d[_0xd35900(0xfb)]);if(!_0x570771)return null;let _0x17fa61=_0x2010ea(_0x57eee0,_0x570771),_0x11569f=_0x17fa61[_0x17fa61['length']-0x1];if(!_0x11569f||!_0x52a50f(_0x57eee0,_0x570771,_0x11569f)||_0x5f088d[_0xd35900(0xfb)]<_0x11569f[_0xd35900(0x149)])return null;let _0x134931=_0x1aaa2e(_0x57eee0,_0x570771,_0x11569f);if(_0x134931>=_0x570771[_0xd35900(0x143)])return null;_0x57eee0[_0xd35900(0x133)]=[_0x57eee0['dataStream']['slice'](0x0,_0x134931),_0x5d4ca5['DataStreamTreeTokenType'][_0xd35900(0xe0)],_0x57eee0[_0xd35900(0x133)][_0xd35900(0x114)](_0x134931,_0x570771['endIndex']),_0x57eee0['dataStream'][_0xd35900(0x114)](_0x570771[_0xd35900(0x143)]+0x1)][_0xd35900(0xed)](''),_0x468911(_0x57eee0[_0xd35900(0x141)],_0x134931,_0x570771['endIndex'],0x1),_0x468911(_0x57eee0[_0xd35900(0x132)],_0x134931,_0x570771[_0xd35900(0x143)],0x1),_0x468911(_0x57eee0[_0xd35900(0x15d)],_0x134931,_0x570771['endIndex'],0x1),_0x422f79(_0x57eee0[_0xd35900(0x11f)],_0x134931,_0x570771[_0xd35900(0x143)],0x1),_0xaf8549(_0x57eee0[_0xd35900(0xdf)],_0x134931,_0x570771[_0xd35900(0x143)],0x1),_0xaf8549(_0x57eee0['customRanges'],_0x134931,_0x570771[_0xd35900(0x143)],0x1),_0xaf8549(_0x57eee0[_0xd35900(0x183)],_0x134931,_0x570771[_0xd35900(0x143)],0x1),(_0x52316a=_0x57eee0[_0xd35900(0x17a)])==null||_0x52316a[_0xd35900(0x10f)](_0x18422a=>{const _0x292941=_0xd35900;_0x18422a===_0x570771||_0x18422a[_0x292941(0x113)]===_0x570771['blockId']?_0x18422a[_0x292941(0x143)]=_0x134931:_0x18422a['startIndex']>=_0x134931&&_0x18422a['startIndex']<_0x570771['endIndex']&&(_0x18422a['startIndex']+=0x1,_0x18422a[_0x292941(0x143)]+=0x1);});let _0x41fa9e=_0x2010ea(_0x57eee0,{..._0x570771,'endIndex':_0x134931});_0x41fa9e[_0xd35900(0x10f)]((_0x438958,_0x552c77)=>{const _0x1e2e1d=_0xd35900;var _0x4f72f7;_0x438958['paragraphStyle']={...(_0x4f72f7=_0x438958[_0x1e2e1d(0xfe)])==null?{}:_0x4f72f7,..._0xfbf025(_0x552c77===0x0,_0x552c77===_0x41fa9e[_0x1e2e1d(0x12f)]-0x1)};});let _0x1e2165=(_0x56d8f0=_0x57eee0[_0xd35900(0x141)])==null?void 0x0:_0x56d8f0[_0xd35900(0x14e)](_0x57c9e7=>_0x57c9e7[_0xd35900(0x149)]===_0x134931+0x1);return _0x1e2165&&(_0x1e2165[_0xd35900(0xfe)]=_0x544a40(_0x1e2165[_0xd35900(0xfe)])),{'nextDocumentData':_0x5a563a,'cursorOffset':_0x134931+0x1};}function _0x3d3f97(_0x945099){const _0x3ead8a=_0x244c36;let _0x4f115c=_0x5376e5(_0x945099[_0x3ead8a(0x17e)]),_0x190060=_0x1b7596(_0x4f115c),_0x40c646=_0x143c63(_0x190060,_0x945099[_0x3ead8a(0xfb)]);return _0x40c646&&_0x328b29(_0x4f115c,_0x190060,_0x40c646,_0x945099['cursorOffset'],_0x945099[_0x3ead8a(0x16e)])||null;}function _0x328b29(_0x34cde5,_0x388391,_0x426bc6,_0xbed43c,_0x3cf8b2){const _0x170d18=_0x244c36;let _0x549ea9=_0x1cd34a(_0x388391,_0x426bc6,_0xbed43c,_0x3cf8b2);if(!_0x549ea9)return null;let _0x4a57d0=_0x549ea9[_0x170d18(0xdd)]-0x1;return _0x166af2(_0x388391,_0x549ea9['paragraph'][_0x170d18(0x149)],_0x549ea9[_0x170d18(0x154)][_0x170d18(0x149)]+0x1),{'nextDocumentData':_0x34cde5,'cursorOffset':_0x4a57d0};}function _0x41524e(_0x417b7f,_0x5d06ba){const _0x211880=_0x244c36;var _0x3dd746;return _0x417b7f==null||(_0x3dd746=_0x417b7f[_0x211880(0x17a)])==null?void 0x0:_0x3dd746[_0x211880(0x14e)](_0x236491=>_0x236491[_0x211880(0x112)]===_0x5d4ca5[_0x211880(0x179)][_0x211880(0xee)]&&_0x236491['startIndex']<=_0x5d06ba&&_0x5d06ba<=_0x236491[_0x211880(0x143)]);}function _0x4511d1(_0x166644){const _0x570a33=_0x244c36;var _0x27a073;let _0x7fc619=_0x166644[_0x570a33(0x17e)][_0x570a33(0xe3)];if(!_0x7fc619)return!0x1;let _0xaa12f6=_0x166644[_0x570a33(0x14b)]===_0x570a33(0xfc)?_0x166644['cursorOffset']-0x1:_0x166644[_0x570a33(0xfb)],_0x246b93=_0x166644[_0x570a33(0x14b)]==='right'?_0x166644['cursorOffset']+0x1:_0xaa12f6;return((_0x27a073=_0x7fc619[_0x570a33(0x17a)])==null?[]:_0x27a073)[_0x570a33(0x11a)](_0x490834=>_0x490834[_0x570a33(0x112)]===_0x5d4ca5['DocumentBlockRangeType'][_0x570a33(0xee)]?_0xaa12f6===_0x490834[_0x570a33(0x149)]||_0xaa12f6===_0x490834[_0x570a33(0x143)]||_0x246b93===_0x490834[_0x570a33(0x149)]||_0x246b93===_0x490834[_0x570a33(0x143)]:!0x1);}function _0x143c63(_0x37f82b,_0x18f570){const _0xc3130f=_0x244c36;var _0xc95174;return(_0xc95174=_0x37f82b['blockRanges'])==null?void 0x0:_0xc95174[_0xc3130f(0x14e)](_0x1bfec0=>{const _0xf7d09c=_0xc3130f;let _0x4ae61f=_0xa1f11a(_0x37f82b,_0x1bfec0);return _0x1bfec0[_0xf7d09c(0x112)]===_0x5d4ca5[_0xf7d09c(0x179)]['CODE']&&_0x1bfec0['startIndex']<=_0x18f570&&_0x18f570<=_0x4ae61f+0x2;});}function _0xfbf025(_0x3c8952,_0x451f26,_0x59b925=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x3c8952&&_0x59b925?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x18f1e4,'fs':0xc}};}function _0xc2eb01(_0x5b6a7f,_0x4d5995,_0x50b683,_0x1ab18d=!0x1){const _0x3be277=_0x244c36;var _0xaef6de;let _0x203c71=((_0xaef6de=_0x5b6a7f[_0x3be277(0x141)])==null?[]:_0xaef6de)[_0x3be277(0x145)](_0x49558f=>_0x49558f[_0x3be277(0x149)]>_0x4d5995&&_0x49558f[_0x3be277(0x149)]<_0x50b683);_0x203c71[_0x3be277(0x10f)]((_0x31502b,_0xeec733)=>{const _0x2b4eea=_0x3be277;var _0x1781da;_0x31502b[_0x2b4eea(0xfe)]={...(_0x1781da=_0x31502b[_0x2b4eea(0xfe)])==null?{}:_0x1781da,..._0xfbf025(_0xeec733===0x0,_0xeec733===_0x203c71[_0x2b4eea(0x12f)]-0x1,_0x1ab18d)};});}function _0x544a40(_0x94f405){const _0xfd2bba=_0x244c36;var _0x5a73c7,_0xe5b25c;let _0x542246={..._0x94f405==null?{}:_0x94f405};return delete _0x542246[_0xfd2bba(0xf6)],delete _0x542246[_0xfd2bba(0xe2)],delete _0x542246[_0xfd2bba(0x140)],delete _0x542246[_0xfd2bba(0x103)],((_0x5a73c7=_0x542246[_0xfd2bba(0x175)])==null?void 0x0:_0x5a73c7['ff'])===_0x18f1e4&&((_0xe5b25c=_0x542246[_0xfd2bba(0x175)])==null?void 0x0:_0xe5b25c['fs'])===0xc&&delete _0x542246[_0xfd2bba(0x175)],_0x542246;}function _0x2010ea(_0x321fe4,_0x73e400){const _0x368cc8=_0x244c36;var _0x3bfc36;let _0x5c454e=_0xa1f11a(_0x321fe4,_0x73e400);return((_0x3bfc36=_0x321fe4['paragraphs'])==null?[]:_0x3bfc36)[_0x368cc8(0x145)](_0x4d53a3=>_0x4d53a3[_0x368cc8(0x149)]>_0x73e400[_0x368cc8(0x149)]&&_0x4d53a3[_0x368cc8(0x149)]<_0x5c454e);}function _0x52a50f(_0x5ce90b,_0x3f63d3,_0x1c0140){const _0x4fd093=_0x244c36;let _0x4e0abc=_0x1aaa2e(_0x5ce90b,_0x3f63d3,_0x1c0140),_0x281181=_0x5ce90b['dataStream'][_0x4fd093(0x114)](_0x4e0abc,_0x1c0140[_0x4fd093(0x149)]);return Array[_0x4fd093(0xf9)](_0x281181)[_0x4fd093(0xde)](_0x141c20=>_0x141c20===_0x5d4ca5[_0x4fd093(0x13d)][_0x4fd093(0x124)]||_0x141c20===_0x5d4ca5['DataStreamTreeTokenType']['BLOCK_END']);}function _0x5376e5(_0x40bc68){const _0x22f2c3=_0x244c36;return _0x5d4ca5['Tools'][_0x22f2c3(0x14f)](_0x40bc68);}function _0x1b7596(_0x1ec7fe){const _0x5beeae=_0x244c36;if(!_0x1ec7fe[_0x5beeae(0xe3)])throw Error('Document\x20body\x20is\x20required');return _0x1ec7fe['body'];}function _0x1deb0c(_0x2f7c78,_0x4faa1d,_0x4085a6){const _0x5d6919=_0x244c36;if(_0x4faa1d==null||_0x4085a6==null){let _0x222abd=_0x4c5662(_0x2f7c78);return{'startOffset':_0x222abd,'endOffset':_0x222abd};}let _0x1b0276=Math['min'](_0x4faa1d,_0x4085a6),_0x2c6bc3=Math[_0x5d6919(0x163)](_0x4faa1d,_0x4085a6);return _0x1b0276===_0x2c6bc3?{'startOffset':_0x1b0276,'endOffset':_0x1b0276}:_0x3e413d(_0x2f7c78,_0x1b0276,_0x2c6bc3);}function _0x4c5662(_0x864cac){const _0xcc5265=_0x244c36;return _0x864cac[_0xcc5265(0x133)]['endsWith'](_0x5d4ca5[_0xcc5265(0x13d)]['SECTION_BREAK'])?Math['max'](0x0,_0x864cac[_0xcc5265(0x133)]['length']-0x1):_0x864cac[_0xcc5265(0x133)][_0xcc5265(0x12f)];}function _0x4c7cb3(_0x5c5aca,_0x293de9,_0x283a25){const _0x2dec35=_0x244c36;var _0x1e92dc;let _0x1b8e2b=Math[_0x2dec35(0xf5)](_0x293de9,_0x283a25),_0x514c7d=Math[_0x2dec35(0x163)](_0x293de9,_0x283a25);return!!((_0x1e92dc=_0x5c5aca[_0x2dec35(0xdf)])!=null&&_0x1e92dc['some'](_0x5adf54=>_0x1b8e2b>_0x5adf54['startIndex']&&_0x1b8e2b<_0x5adf54[_0x2dec35(0x143)]||_0x514c7d>_0x5adf54[_0x2dec35(0x149)]&&_0x514c7d<_0x5adf54['endIndex']||_0x1b8e2b<=_0x5adf54[_0x2dec35(0x149)]&&_0x514c7d>=_0x5adf54[_0x2dec35(0x143)]));}function _0x3e413d(_0x3bacdc,_0x13a130,_0x4d7568){const _0x59cb65=_0x244c36;var _0x5b1217,_0x2b63d4;let _0x4d0062=[...(_0x5b1217=_0x3bacdc[_0x59cb65(0x141)])==null?[]:_0x5b1217][_0x59cb65(0x11b)]((_0x2ffe84,_0x560aeb)=>_0x2ffe84[_0x59cb65(0x149)]-_0x560aeb[_0x59cb65(0x149)]),_0x2f9692=_0x4d0062[_0x59cb65(0x14e)]((_0x19b9dc,_0x5adec8)=>(_0x5adec8===0x0?0x0:_0x4d0062[_0x5adec8-0x1][_0x59cb65(0x149)]+0x1)<=_0x13a130&&_0x13a130<=_0x19b9dc[_0x59cb65(0x149)]),_0x1cb49c=(_0x2b63d4=_0x4d0062[_0x59cb65(0x14e)](_0x2ac977=>_0x2ac977['startIndex']>=_0x4d7568-0x1))==null?_0x4d0062[_0x4d0062[_0x59cb65(0x12f)]-0x1]:_0x2b63d4;return{'startOffset':_0x2f9692?_0x14e1b7(_0x4d0062,_0x2f9692):_0x13a130,'endOffset':_0x1cb49c?_0x1cb49c['startIndex']+0x1:_0x4d7568};}function _0x14e1b7(_0x28896e,_0x299502){const _0x73b118=_0x244c36;let _0x8588fe=_0x28896e['indexOf'](_0x299502);return _0x8588fe>0x0?_0x28896e[_0x8588fe-0x1][_0x73b118(0x149)]+0x1:0x0;}function _0x1aaa2e(_0x26e015,_0x25e65f,_0x20aa7a){const _0x3ca8d1=_0x244c36;var _0x3cbc72;return Math[_0x3ca8d1(0x163)](_0x14e1b7((_0x3cbc72=_0x26e015[_0x3ca8d1(0x141)])==null?[]:_0x3cbc72,_0x20aa7a),_0x25e65f[_0x3ca8d1(0x149)]+0x1);}function _0xa1f11a(_0x521417,_0x1516dd){const _0x115caf=_0x244c36;return _0x521417['dataStream'][_0x1516dd[_0x115caf(0x143)]]===_0x5d4ca5[_0x115caf(0x13d)][_0x115caf(0xe0)]?_0x1516dd[_0x115caf(0x143)]:_0x521417[_0x115caf(0x133)][_0x1516dd['endIndex']+0x1]===_0x5d4ca5[_0x115caf(0x13d)][_0x115caf(0xe0)]?_0x1516dd[_0x115caf(0x143)]+0x1:_0x1516dd[_0x115caf(0x143)];}function _0x1cd34a(_0x19cc6e,_0x2fbb8d,_0x55ad2e,_0x125ebc){const _0x5c0a11=_0x244c36;var _0x5f373d,_0x4711aa;let _0x585b19=_0xa1f11a(_0x19cc6e,_0x2fbb8d),_0x269575=((_0x5f373d=_0x19cc6e['paragraphs'])==null?[]:_0x5f373d)[_0x5c0a11(0x14e)](_0x37f306=>_0x37f306[_0x5c0a11(0x149)]===_0x585b19+0x1);if(!_0x269575||_0x125ebc!=null&&_0x269575['startIndex']!==_0x125ebc||_0x55ad2e<_0x585b19||_0x55ad2e>_0x269575['startIndex']+0x1||_0x19cc6e['dataStream'][_0x269575[_0x5c0a11(0x149)]]!==_0x5d4ca5[_0x5c0a11(0x13d)][_0x5c0a11(0x177)])return null;let _0x2d00a2=_0x14e1b7((_0x4711aa=_0x19cc6e[_0x5c0a11(0x141)])==null?[]:_0x4711aa,_0x269575),_0x379714=_0x19cc6e[_0x5c0a11(0x133)][_0x5c0a11(0x114)](_0x2d00a2,_0x269575[_0x5c0a11(0x149)]);return Array[_0x5c0a11(0xf9)](_0x379714)[_0x5c0a11(0xde)](_0x355c4f=>_0x355c4f===_0x5d4ca5[_0x5c0a11(0x13d)][_0x5c0a11(0xe0)])?{'paragraph':_0x269575,'endTokenOffset':_0x585b19}:null;}function _0xb342f1(_0xb612a5,_0x16629a,_0x455cb4,_0x2f645c={}){const _0x4fbe32=_0x244c36;var _0x3533f5,_0x30b3b1;if(_0x455cb4){if(_0xb612a5[_0x4fbe32(0x133)]=''+_0xb612a5[_0x4fbe32(0x133)][_0x4fbe32(0x114)](0x0,_0x16629a)+_0x455cb4+_0xb612a5[_0x4fbe32(0x133)][_0x4fbe32(0x114)](_0x16629a),_0x43069b(_0xb612a5,_0x16629a,_0x455cb4[_0x4fbe32(0x12f)]),(_0x3533f5=_0x2f645c[_0x4fbe32(0x141)])!=null&&_0x3533f5[_0x4fbe32(0x12f)]){var _0x10212b;_0xb612a5[_0x4fbe32(0x141)]=[...(_0x10212b=_0xb612a5[_0x4fbe32(0x141)])==null?[]:_0x10212b,..._0x2f645c[_0x4fbe32(0x141)]['map'](_0x1499e1=>({..._0x1499e1,'startIndex':_0x1499e1['startIndex']+_0x16629a}))]['sort']((_0x43b4d3,_0x3b2fc3)=>_0x43b4d3[_0x4fbe32(0x149)]-_0x3b2fc3[_0x4fbe32(0x149)]);}if((_0x30b3b1=_0x2f645c[_0x4fbe32(0x17a)])!=null&&_0x30b3b1['length']){var _0xfe690f;_0xb612a5[_0x4fbe32(0x17a)]=[...(_0xfe690f=_0xb612a5[_0x4fbe32(0x17a)])==null?[]:_0xfe690f,..._0x2f645c['blockRanges'][_0x4fbe32(0x157)](_0x5bb360=>({..._0x5bb360,'startIndex':_0x5bb360[_0x4fbe32(0x149)]+_0x16629a,'endIndex':_0x5bb360['endIndex']+_0x16629a}))]['sort']((_0x4025eb,_0x10f53c)=>_0x4025eb[_0x4fbe32(0x149)]-_0x10f53c[_0x4fbe32(0x149)]);}}}function _0x166af2(_0x4a3bc5,_0x338e5e,_0x295e5c){const _0x295bb2=_0x244c36;let _0x42b698=_0x295e5c-_0x338e5e;_0x4a3bc5[_0x295bb2(0x133)]=''+_0x4a3bc5['dataStream'][_0x295bb2(0x114)](0x0,_0x338e5e)+_0x4a3bc5[_0x295bb2(0x133)][_0x295bb2(0x114)](_0x295e5c),_0x91d499(_0x4a3bc5,_0x338e5e,_0x42b698);}function _0x43069b(_0x470187,_0x4bb7cc,_0x45003b){const _0x577717=_0x244c36;_0x470187[_0x577717(0x141)]=_0x5383a2(_0x470187[_0x577717(0x141)],_0x4bb7cc,_0x45003b),_0x470187[_0x577717(0x132)]=_0x5383a2(_0x470187['sectionBreaks'],_0x4bb7cc,_0x45003b),_0x470187[_0x577717(0x15d)]=_0x5383a2(_0x470187[_0x577717(0x15d)],_0x4bb7cc,_0x45003b),_0x470187[_0x577717(0x11f)]=_0xef4313(_0x470187[_0x577717(0x11f)],_0x4bb7cc,_0x45003b),_0x470187[_0x577717(0xdf)]=_0x2827c4(_0x470187['tables'],_0x4bb7cc,_0x45003b),_0x470187[_0x577717(0x161)]=_0x2827c4(_0x470187[_0x577717(0x161)],_0x4bb7cc,_0x45003b),_0x470187['customDecorations']=_0x2827c4(_0x470187[_0x577717(0x183)],_0x4bb7cc,_0x45003b),_0x470187['blockRanges']=_0x2827c4(_0x470187[_0x577717(0x17a)],_0x4bb7cc,_0x45003b);}function _0x91d499(_0x1ca823,_0x41042c,_0x247b37){const _0x353edd=_0x244c36;var _0x54f309,_0x537c33;_0x1ca823[_0x353edd(0x141)]=_0x579544(_0x1ca823[_0x353edd(0x141)],_0x41042c,_0x247b37),_0x1ca823[_0x353edd(0x132)]=_0x579544(_0x1ca823['sectionBreaks'],_0x41042c,_0x247b37),_0x1ca823[_0x353edd(0x15d)]=_0x579544(_0x1ca823[_0x353edd(0x15d)],_0x41042c,_0x247b37),_0x1ca823['textRuns']=(_0x54f309=_0x2eea7e((_0x537c33=_0x1ca823['textRuns'])==null?void 0x0:_0x537c33[_0x353edd(0x157)](_0x3652e4=>({..._0x3652e4,'startIndex':_0x3652e4['st'],'endIndex':_0x3652e4['ed']})),_0x41042c,_0x247b37))==null?void 0x0:_0x54f309['map'](_0xab74e7=>{let {startIndex:_0x41f49c,endIndex:_0x55fed4,..._0x54ecd0}=_0xab74e7;return{..._0x54ecd0,'st':_0x41f49c,'ed':_0x55fed4};}),_0x1ca823[_0x353edd(0xdf)]=_0x2eea7e(_0x1ca823[_0x353edd(0xdf)],_0x41042c,_0x247b37),_0x1ca823['customRanges']=_0x2eea7e(_0x1ca823[_0x353edd(0x161)],_0x41042c,_0x247b37),_0x1ca823['customDecorations']=_0x2eea7e(_0x1ca823[_0x353edd(0x183)],_0x41042c,_0x247b37),_0x1ca823[_0x353edd(0x17a)]=_0x2eea7e(_0x1ca823[_0x353edd(0x17a)],_0x41042c,_0x247b37);}function _0x5383a2(_0x5d1425,_0x1ac63a,_0x2654a5){const _0xd8e163=_0x244c36;return _0x5d1425==null?void 0x0:_0x5d1425[_0xd8e163(0x157)](_0x417dd2=>_0x417dd2[_0xd8e163(0x149)]>=_0x1ac63a?{..._0x417dd2,'startIndex':_0x417dd2[_0xd8e163(0x149)]+_0x2654a5}:_0x417dd2);}function _0x579544(_0x2c7880,_0x1f7f5c,_0xef294b){const _0x2f00ee=_0x244c36;let _0x878583=_0x1f7f5c+_0xef294b;return _0x2c7880==null?void 0x0:_0x2c7880[_0x2f00ee(0x157)](_0x2d0b4b=>_0x2d0b4b[_0x2f00ee(0x149)]>=_0x1f7f5c&&_0x2d0b4b[_0x2f00ee(0x149)]<_0x878583?null:_0x2d0b4b[_0x2f00ee(0x149)]>=_0x878583?{..._0x2d0b4b,'startIndex':_0x2d0b4b[_0x2f00ee(0x149)]-_0xef294b}:_0x2d0b4b)['filter'](_0x29ecd1=>_0x29ecd1!=null);}function _0xef4313(_0x736154,_0x4f4235,_0x376594){return _0x736154==null?void 0x0:_0x736154['map'](_0x164052=>_0x164052['st']>=_0x4f4235?{..._0x164052,'st':_0x164052['st']+_0x376594,'ed':_0x164052['ed']+_0x376594}:_0x164052['ed']>_0x4f4235?{..._0x164052,'ed':_0x164052['ed']+_0x376594}:_0x164052);}function _0x2827c4(_0x3d66b3,_0x3a4ffa,_0x9f6f9a){const _0x448aef=_0x244c36;return _0x3d66b3==null?void 0x0:_0x3d66b3[_0x448aef(0x157)](_0x5373a2=>_0x5373a2['startIndex']>=_0x3a4ffa?{..._0x5373a2,'startIndex':_0x5373a2[_0x448aef(0x149)]+_0x9f6f9a,'endIndex':_0x5373a2[_0x448aef(0x143)]+_0x9f6f9a}:_0x5373a2[_0x448aef(0x143)]>=_0x3a4ffa?{..._0x5373a2,'endIndex':_0x5373a2[_0x448aef(0x143)]+_0x9f6f9a}:_0x5373a2);}function _0x2eea7e(_0x4e3e31,_0x4ff8f6,_0x2d47e6){const _0x2a6c48=_0x244c36;let _0x44661b=_0x4ff8f6+_0x2d47e6;return _0x4e3e31==null?void 0x0:_0x4e3e31[_0x2a6c48(0x157)](_0x5a3e2b=>_0x5a3e2b['startIndex']>=_0x4ff8f6&&_0x5a3e2b[_0x2a6c48(0x143)]<_0x44661b?null:_0x5a3e2b[_0x2a6c48(0x149)]>=_0x44661b?{..._0x5a3e2b,'startIndex':_0x5a3e2b['startIndex']-_0x2d47e6,'endIndex':_0x5a3e2b[_0x2a6c48(0x143)]-_0x2d47e6}:_0x5a3e2b[_0x2a6c48(0x143)]>=_0x4ff8f6?{..._0x5a3e2b,'startIndex':_0x5a3e2b[_0x2a6c48(0x149)]<_0x4ff8f6?_0x5a3e2b[_0x2a6c48(0x149)]:_0x4ff8f6,'endIndex':Math[_0x2a6c48(0x163)](_0x4ff8f6,_0x5a3e2b['endIndex']-_0x2d47e6)}:_0x5a3e2b)[_0x2a6c48(0x145)](_0x4692fa=>_0x4692fa!=null);}function _0x468911(_0x5b21b9,_0x3a19b5,_0x6ae5d6,_0x290d9a){const _0x4ef568=_0x244c36;_0x5b21b9==null||_0x5b21b9[_0x4ef568(0x10f)](_0xdc9daf=>{const _0x374dee=_0x4ef568;_0xdc9daf[_0x374dee(0x149)]>=_0x3a19b5&&_0xdc9daf[_0x374dee(0x149)]<_0x6ae5d6&&(_0xdc9daf['startIndex']+=_0x290d9a);});}function _0x422f79(_0x22457a,_0x14df30,_0x58ae84,_0x18dc6e){const _0x6e8771=_0x244c36;_0x22457a==null||_0x22457a[_0x6e8771(0x10f)](_0x74d3e8=>{_0x74d3e8['st']>=_0x14df30&&_0x74d3e8['st']<_0x58ae84?(_0x74d3e8['st']+=_0x18dc6e,_0x74d3e8['ed']+=_0x18dc6e):_0x74d3e8['ed']>_0x14df30&&_0x74d3e8['ed']<_0x58ae84&&(_0x74d3e8['ed']+=_0x18dc6e);});}function _0xaf8549(_0x3a98f3,_0x4374dd,_0x456a65,_0x1565ea){const _0x4be78e=_0x244c36;_0x3a98f3==null||_0x3a98f3[_0x4be78e(0x10f)](_0x446544=>{const _0x5ac0bf=_0x4be78e;_0x446544[_0x5ac0bf(0x149)]>=_0x4374dd&&_0x446544[_0x5ac0bf(0x149)]<_0x456a65?(_0x446544[_0x5ac0bf(0x149)]+=_0x1565ea,_0x446544['endIndex']+=_0x1565ea):_0x446544[_0x5ac0bf(0x143)]>_0x4374dd&&_0x446544[_0x5ac0bf(0x143)]<_0x456a65&&(_0x446544[_0x5ac0bf(0x143)]+=_0x1565ea);});}function _0x276d33(_0x2dc28e){'@babel/helpers - typeof';const _0x53e905=_0x244c36;return _0x276d33=typeof Symbol==_0x53e905(0x159)&&typeof Symbol[_0x53e905(0x127)]==_0x53e905(0x160)?function(_0xde1b4a){return typeof _0xde1b4a;}:function(_0x135bc3){const _0x1dda3e=_0x53e905;return _0x135bc3&&typeof Symbol==_0x1dda3e(0x159)&&_0x135bc3[_0x1dda3e(0x15f)]===Symbol&&_0x135bc3!==Symbol[_0x1dda3e(0xeb)]?_0x1dda3e(0x160):typeof _0x135bc3;},_0x276d33(_0x2dc28e);}function _0x287106(_0x3e9f39,_0x2c33a0){const _0x4d8e85=_0x244c36;if(_0x276d33(_0x3e9f39)!=_0x4d8e85(0x13c)||!_0x3e9f39)return _0x3e9f39;var _0x46c7b7=_0x3e9f39[Symbol[_0x4d8e85(0xf1)]];if(_0x46c7b7!==void 0x0){var _0x3732f4=_0x46c7b7[_0x4d8e85(0x180)](_0x3e9f39,_0x2c33a0||_0x4d8e85(0xe6));if(_0x276d33(_0x3732f4)!=_0x4d8e85(0x13c))return _0x3732f4;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2c33a0===_0x4d8e85(0x186)?String:Number)(_0x3e9f39);}function _0x5a4333(_0x2c1971){const _0x2822e7=_0x244c36;var _0x55f3a2=_0x287106(_0x2c1971,'string');return _0x276d33(_0x55f3a2)==_0x2822e7(0x160)?_0x55f3a2:_0x55f3a2+'';}function _0x2f6530(_0x512261,_0x33565d,_0xeeeea1){const _0x5a6e2a=_0x244c36;return(_0x33565d=_0x5a4333(_0x33565d))in _0x512261?Object[_0x5a6e2a(0x144)](_0x512261,_0x33565d,{'value':_0xeeeea1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x512261[_0x33565d]=_0xeeeea1,_0x512261;}var _0x54834a=class extends _0x5d4ca5['Disposable']{constructor(..._0x1e6e2b){const _0x2d7d24=_0x244c36;super(..._0x1e6e2b),_0x2f6530(this,_0x2d7d24(0x13b),new Map()),_0x2f6530(this,_0x2d7d24(0x13e),new _0x37027d[(_0x2d7d24(0xf8))]()),_0x2f6530(this,'change$',this[_0x2d7d24(0x13e)][_0x2d7d24(0x122)]());}[_0x244c36(0x105)](_0x2f8989,_0x41d6cb){const _0x223cc9=_0x244c36;return _0xfee73a(this[_0x223cc9(0x13b)]['get'](_0x2f8989))['codes'][_0x41d6cb];}[_0x244c36(0x17b)](_0x3cb356,_0x28d644,_0x3c49ad){const _0x42593a=_0x244c36;this['_setResource'](_0x3cb356,_0x28d644,_0x2ac018(this[_0x42593a(0x13b)][_0x42593a(0x11d)](_0x3cb356),_0x28d644,_0x3c49ad));}[_0x244c36(0x155)](_0x5d3ef5,_0x590250){const _0x45cd53=_0x244c36;this[_0x45cd53(0x12a)](_0x5d3ef5,_0x590250,_0x718ada(this[_0x45cd53(0x13b)]['get'](_0x5d3ef5),_0x590250));}[_0x244c36(0x110)](_0x330f1a){const _0x1ac87f=_0x244c36;return _0xfee73a(this[_0x1ac87f(0x13b)][_0x1ac87f(0x11d)](_0x330f1a));}[_0x244c36(0x109)](_0xed4b1c,_0xbe79e8){const _0x3bf1dd=_0x244c36;this[_0x3bf1dd(0x13b)][_0x3bf1dd(0xff)](_0xed4b1c,_0xfee73a(_0xbe79e8)),this['_change$'][_0x3bf1dd(0xdc)]({'unitId':_0xed4b1c});}[_0x244c36(0x167)](_0x55f9ec){const _0x11993f=_0x244c36;this[_0x11993f(0x13b)]['delete'](_0x55f9ec),this['_change$'][_0x11993f(0xdc)]({'unitId':_0x55f9ec});}[_0x244c36(0x168)](){const _0x9ca4a9=_0x244c36;super[_0x9ca4a9(0x168)](),this['_resources'][_0x9ca4a9(0x130)](),this[_0x9ca4a9(0x13e)][_0x9ca4a9(0x15a)]();}[_0x244c36(0x12a)](_0x5a1b34,_0x43fadc,_0x2d6d41){const _0x266783=_0x244c36;this['_resources'][_0x266783(0xff)](_0x5a1b34,_0x2d6d41),this[_0x266783(0x13e)][_0x266783(0xdc)]({'unitId':_0x5a1b34,'blockId':_0x43fadc});}};let _0x237eef={'id':_0x244c36(0x134),'type':_0x5d4ca5[_0x244c36(0x142)]['COMMAND'],'handler':_0x2c36e2=>{const _0x5cb97a=_0x244c36;let _0x28fcbe=_0x7ed3fd(_0x2c36e2);if(_0x28fcbe)return _0x2c36e2[_0x5cb97a(0x11d)](_0x5d4ca5['ICommandService'])['syncExecuteCommand'](_0x5e191f['id'],{'startOffset':_0x28fcbe[_0x5cb97a(0x137)],'endOffset':_0x28fcbe[_0x5cb97a(0x115)],'unitId':_0x28fcbe['unitId']});let _0x3b15a8=_0x1b5adb(_0x2c36e2);if(!_0x3b15a8)return!0x1;let _0x4d832c=_0x3b15a8[_0x5cb97a(0x149)]+0x1;return _0x2c36e2[_0x5cb97a(0x11d)](_0x5d4ca5[_0x5cb97a(0x16b)])[_0x5cb97a(0x150)](_0x5e191f['id'],{'startOffset':_0x4d832c,'endOffset':_0x4d832c});}},_0x357e81={'id':'docs-code.command.consume-boundary-delete','type':_0x5d4ca5[_0x244c36(0x142)][_0x244c36(0x147)],'handler':()=>!0x0},_0x5e191f={'id':'docs-code.command.insert','type':_0x5d4ca5[_0x244c36(0x142)]['COMMAND'],'handler':(_0x29e711,_0x3ebe3c)=>{const _0x34e959=_0x244c36;var _0x143a5a,_0x4e6391,_0x55e086;let _0x16360b=_0x3f73f1(_0x29e711,_0x3ebe3c==null?void 0x0:_0x3ebe3c[_0x34e959(0x10b)]);if(!_0x16360b)return!0x1;let _0x168fa5=_0x119d77(_0x29e711),_0x156f7f=_0x199ede({'blockId':(_0x143a5a=_0x3ebe3c==null?void 0x0:_0x3ebe3c[_0x34e959(0x113)])==null?(0x0,_0x5d4ca5['generateRandomId'])(0x6):_0x143a5a,'config':_0x3ebe3c==null?void 0x0:_0x3ebe3c[_0x34e959(0xf0)],'documentData':_0x16360b[_0x34e959(0xea)],'endOffset':(_0x4e6391=_0x3ebe3c==null?void 0x0:_0x3ebe3c['endOffset'])==null?_0x168fa5==null?void 0x0:_0x168fa5[_0x34e959(0x115)]:_0x4e6391,'metadata':_0x16360b[_0x34e959(0x162)][_0x34e959(0x110)](_0x16360b[_0x34e959(0x10b)]),'startOffset':(_0x55e086=_0x3ebe3c==null?void 0x0:_0x3ebe3c[_0x34e959(0x137)])==null?_0x168fa5==null?void 0x0:_0x168fa5['startOffset']:_0x55e086}),_0x27031a=_0x3bc703(_0x16360b['commandService'],_0x16360b[_0x34e959(0x10b)],_0x16360b[_0x34e959(0xea)],_0x156f7f[_0x34e959(0xd9)],_0x156f7f[_0x34e959(0xfb)]);return _0x27031a&&_0x156f7f['nextMetadata']&&_0x16360b[_0x34e959(0x162)][_0x34e959(0x109)](_0x16360b[_0x34e959(0x10b)],_0x156f7f[_0x34e959(0x131)]),_0x27031a;}},_0x250ccc={'id':'docs-code.command.update','type':_0x5d4ca5[_0x244c36(0x142)]['COMMAND'],'handler':(_0x274921,_0x1c44ed)=>{const _0xaeed4e=_0x244c36;if(!_0x1c44ed)return!0x1;let _0xe98a8d=_0x3f73f1(_0x274921,_0x1c44ed['unitId']);if(!_0xe98a8d)return!0x1;let _0x69a990=_0x3e201b({'blockId':_0x1c44ed['blockId'],'config':_0x1c44ed[_0xaeed4e(0xf0)],'documentData':_0xe98a8d['previousDocumentData'],'metadata':_0xe98a8d[_0xaeed4e(0x162)][_0xaeed4e(0x110)](_0xe98a8d['unitId'])});return _0x69a990[_0xaeed4e(0x131)]&&_0xe98a8d[_0xaeed4e(0x162)][_0xaeed4e(0x109)](_0xe98a8d[_0xaeed4e(0x10b)],_0x69a990[_0xaeed4e(0x131)]),!0x0;}},_0x4dc2b9={'id':'docs-code.command.exit','type':_0x5d4ca5[_0x244c36(0x142)][_0x244c36(0x147)],'handler':(_0x581b9b,_0x44dcbd)=>{const _0x74a2b9=_0x244c36;var _0x1d376a,_0xe50aa0;let _0x517467=_0x3f73f1(_0x581b9b,_0x44dcbd==null?void 0x0:_0x44dcbd[_0x74a2b9(0x10b)]);if(!_0x517467)return!0x1;let _0x52bf21=(_0x1d376a=_0x44dcbd==null?void 0x0:_0x44dcbd[_0x74a2b9(0xfb)])==null?(_0xe50aa0=_0x119d77(_0x581b9b))==null?void 0x0:_0xe50aa0[_0x74a2b9(0x137)]:_0x1d376a;if(_0x52bf21==null)return!0x1;let _0x6e6a54=_0x38dd96({'cursorOffset':_0x52bf21,'documentData':_0x517467[_0x74a2b9(0xea)]});return _0x6e6a54?_0x3bc703(_0x517467['commandService'],_0x517467[_0x74a2b9(0x10b)],_0x517467[_0x74a2b9(0xea)],_0x6e6a54[_0x74a2b9(0xd9)],_0x6e6a54['cursorOffset']):!0x1;}},_0xcd864a={'id':_0x244c36(0x13a),'type':_0x5d4ca5[_0x244c36(0x142)]['COMMAND'],'handler':(_0x49f4a5,_0x509cb6)=>{const _0x119df5=_0x244c36;var _0x551462,_0x1a887c;let _0x42f13a=_0x3f73f1(_0x49f4a5,_0x509cb6==null?void 0x0:_0x509cb6[_0x119df5(0x10b)]);if(!_0x42f13a)return!0x1;let _0x459aff=(_0x551462=_0x509cb6==null?void 0x0:_0x509cb6[_0x119df5(0xfb)])==null?(_0x1a887c=_0x119d77(_0x49f4a5))==null?void 0x0:_0x1a887c[_0x119df5(0x137)]:_0x551462;if(_0x459aff==null)return!0x1;let _0x2d7f22=_0x3d3f97({'cursorOffset':_0x459aff,'documentData':_0x42f13a[_0x119df5(0xea)],'paragraphStartIndex':_0x509cb6==null?void 0x0:_0x509cb6[_0x119df5(0x16e)]});return _0x2d7f22?_0x3bc703(_0x42f13a[_0x119df5(0x16a)],_0x42f13a[_0x119df5(0x10b)],_0x42f13a[_0x119df5(0xea)],_0x2d7f22['nextDocumentData'],_0x2d7f22['cursorOffset']):!0x1;}};function _0x3f73f1(_0x1e7f8c,_0x2a29d6){const _0x5b78a2=_0x244c36;let _0x207e7c=_0x1e7f8c[_0x5b78a2(0x11d)](_0x5d4ca5[_0x5b78a2(0x153)]),_0x185d42=_0x2a29d6?_0x207e7c[_0x5b78a2(0xf2)](_0x2a29d6):_0x207e7c[_0x5b78a2(0x121)](_0x5d4ca5[_0x5b78a2(0x170)]['UNIVER_DOC']);return _0x185d42?{'commandService':_0x1e7f8c[_0x5b78a2(0x11d)](_0x5d4ca5[_0x5b78a2(0x16b)]),'model':_0x1e7f8c[_0x5b78a2(0x11d)](_0x54834a),'previousDocumentData':_0x185d42[_0x5b78a2(0xf3)](),'unitId':_0x185d42[_0x5b78a2(0xf7)]()}:null;}function _0x119d77(_0x5bfc20){const _0x412411=_0x244c36;var _0x2597a5;return(_0x2597a5=_0x5bfc20['get'](_0x2ca7dd[_0x412411(0x176)])['getTextRanges']())==null?void 0x0:_0x2597a5[0x0];}function _0x7ed3fd(_0x39bf06){const _0x3bd323=_0x244c36;var _0x433fb6;let _0x43044a=(_0x433fb6=_0x39bf06[_0x3bd323(0x11d)](_0x5d4ca5[_0x3bd323(0x153)])[_0x3bd323(0x121)](_0x5d4ca5[_0x3bd323(0x170)][_0x3bd323(0x151)]))==null?void 0x0:_0x433fb6[_0x3bd323(0xf7)]();try{return _0x39bf06['get'](_0x2ca7dd['DocContentInsertService'])[_0x3bd323(0x123)](_0x43044a);}catch{return null;}}function _0x1b5adb(_0x2a219e){const _0x1b9b32=_0x244c36;var _0x2e95c4,_0x441eec,_0x23760f;let _0x5a93b4=_0x119d77(_0x2a219e);if(!_0x5a93b4)return null;let _0x1d05e4=_0x2a219e[_0x1b9b32(0x11d)](_0x5d4ca5['IUniverInstanceService'])[_0x1b9b32(0x121)](_0x5d4ca5[_0x1b9b32(0x170)][_0x1b9b32(0x151)]),_0x340dbf=_0x1d05e4==null?void 0x0:_0x1d05e4[_0x1b9b32(0x172)]();return _0x340dbf?(_0x2e95c4=_0x5d4ca5['BuildTextUtils']['range'][_0x1b9b32(0xe8)](_0x5a93b4,(_0x441eec=_0x340dbf['paragraphs'])==null?[]:_0x441eec,(_0x23760f=_0x340dbf[_0x1b9b32(0x133)])==null?'':_0x23760f)[0x0])==null?null:_0x2e95c4:null;}function _0x40bb00(_0x22266e,_0x1e9a88){const _0x43cbe1=_0x244c36;var _0xf6a982,_0x43b240,_0x5704c4,_0x1c4997,_0x4408ac,_0x6d3ff0,_0x2dc2ec,_0x3fb1b1,_0x590ee2,_0x247a1a,_0x1c9304,_0x3ed77a,_0x1db27b,_0x162af1,_0x39beaa,_0x509fe8,_0x41010a,_0x35a489;let _0x22d7d6=_0x5d4ca5['JSONX'][_0x43cbe1(0x17c)]();return[_0x583c1d(_0x22d7d6,[_0x43cbe1(0xe3),_0x43cbe1(0x133)],(_0xf6a982=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0xf6a982[_0x43cbe1(0x133)],(_0x43b240=_0x1e9a88[_0x43cbe1(0xe3)])==null?void 0x0:_0x43b240['dataStream']),_0x583c1d(_0x22d7d6,['body','paragraphs'],(_0x5704c4=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0x5704c4['paragraphs'],(_0x1c4997=_0x1e9a88[_0x43cbe1(0xe3)])==null?void 0x0:_0x1c4997['paragraphs']),_0x583c1d(_0x22d7d6,[_0x43cbe1(0xe3),_0x43cbe1(0x132)],(_0x4408ac=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0x4408ac[_0x43cbe1(0x132)],(_0x6d3ff0=_0x1e9a88['body'])==null?void 0x0:_0x6d3ff0[_0x43cbe1(0x132)]),_0x583c1d(_0x22d7d6,['body',_0x43cbe1(0x11f)],(_0x2dc2ec=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0x2dc2ec[_0x43cbe1(0x11f)],(_0x3fb1b1=_0x1e9a88['body'])==null?void 0x0:_0x3fb1b1['textRuns']),_0x583c1d(_0x22d7d6,['body',_0x43cbe1(0x15d)],(_0x590ee2=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0x590ee2[_0x43cbe1(0x15d)],(_0x247a1a=_0x1e9a88[_0x43cbe1(0xe3)])==null?void 0x0:_0x247a1a[_0x43cbe1(0x15d)]),_0x583c1d(_0x22d7d6,[_0x43cbe1(0xe3),_0x43cbe1(0x161)],(_0x1c9304=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0x1c9304[_0x43cbe1(0x161)],(_0x3ed77a=_0x1e9a88[_0x43cbe1(0xe3)])==null?void 0x0:_0x3ed77a[_0x43cbe1(0x161)]),_0x583c1d(_0x22d7d6,[_0x43cbe1(0xe3),_0x43cbe1(0x183)],(_0x1db27b=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0x1db27b['customDecorations'],(_0x162af1=_0x1e9a88[_0x43cbe1(0xe3)])==null?void 0x0:_0x162af1['customDecorations']),_0x583c1d(_0x22d7d6,[_0x43cbe1(0xe3),_0x43cbe1(0xdf)],(_0x39beaa=_0x22266e[_0x43cbe1(0xe3)])==null?void 0x0:_0x39beaa['tables'],(_0x509fe8=_0x1e9a88[_0x43cbe1(0xe3)])==null?void 0x0:_0x509fe8[_0x43cbe1(0xdf)]),_0x583c1d(_0x22d7d6,[_0x43cbe1(0xe3),_0x43cbe1(0x17a)],(_0x41010a=_0x22266e['body'])==null?void 0x0:_0x41010a[_0x43cbe1(0x17a)],(_0x35a489=_0x1e9a88[_0x43cbe1(0xe3)])==null?void 0x0:_0x35a489[_0x43cbe1(0x17a)])][_0x43cbe1(0x145)](Boolean)['reduce']((_0x52043b,_0x4dae51)=>_0x5d4ca5[_0x43cbe1(0xd8)]['compose'](_0x52043b,_0x4dae51),null);}function _0x583c1d(_0x1d79a6,_0x5e57ec,_0x3a2da9,_0x222540){const _0x4e2928=_0x244c36;return _0x5d4ca5[_0x4e2928(0x10d)][_0x4e2928(0x136)](_0x3a2da9,_0x222540)?null:_0x1d79a6['replaceOp'](_0x5e57ec,_0x3a2da9,_0x222540);}function _0x3bc703(_0x1eff7a,_0x483f4f,_0x2e8afc,_0x543de1,_0x5124e0){const _0x32c9ff=_0x244c36;let _0x24311a=_0x40bb00(_0x2e8afc,_0x543de1);return _0x24311a?!!_0x1eff7a[_0x32c9ff(0x150)](_0x2ca7dd[_0x32c9ff(0x100)]['id'],{'unitId':_0x483f4f,'actions':_0x24311a,'textRanges':[{'startOffset':_0x5124e0,'endOffset':_0x5124e0,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0xcc892c=_0x244c36(0x171);var _0x3e419e=_0x244c36(0x15e),_0x25a1d5=_0x244c36(0x13f);let _0x3bd88c={};function _0x1c7c12(_0x5e822d,_0xe9b49a){return function(_0x486f63,_0x30254f){_0xe9b49a(_0x486f63,_0x30254f,_0x5e822d);};}function _0x177a36(_0x1595f6,_0x5b6fcf,_0x33ede9,_0x459800){const _0x4282b3=_0x244c36;var _0x566b61=arguments['length'],_0x2052c5=_0x566b61<0x3?_0x5b6fcf:_0x459800===null?_0x459800=Object[_0x4282b3(0x14a)](_0x5b6fcf,_0x33ede9):_0x459800,_0x114a2c;if(typeof Reflect=='object'&&typeof Reflect[_0x4282b3(0x102)]==_0x4282b3(0x159))_0x2052c5=Reflect['decorate'](_0x1595f6,_0x5b6fcf,_0x33ede9,_0x459800);else{for(var _0x1de0da=_0x1595f6['length']-0x1;_0x1de0da>=0x0;_0x1de0da--)(_0x114a2c=_0x1595f6[_0x1de0da])&&(_0x2052c5=(_0x566b61<0x3?_0x114a2c(_0x2052c5):_0x566b61>0x3?_0x114a2c(_0x5b6fcf,_0x33ede9,_0x2052c5):_0x114a2c(_0x5b6fcf,_0x33ede9))||_0x2052c5);}return _0x566b61>0x3&&_0x2052c5&&Object[_0x4282b3(0x144)](_0x5b6fcf,_0x33ede9,_0x2052c5),_0x2052c5;}let _0x51d622=class extends _0x5d4ca5[_0x244c36(0xda)]{constructor(_0x4b90e2,_0x5d1df6){const _0x17ca1b=_0x244c36;super(),this[_0x17ca1b(0x152)]=_0x4b90e2,this[_0x17ca1b(0x118)]=_0x5d1df6,this[_0x17ca1b(0x17d)]();}[_0x244c36(0x17d)](){const _0x2a0b55=_0x244c36;this[_0x2a0b55(0x125)](this[_0x2a0b55(0x152)][_0x2a0b55(0x120)]({'pluginName':_0xcc892c,'businesses':[_0x5d4ca5[_0x2a0b55(0x170)][_0x2a0b55(0x151)]],'toJson':_0x47ce8e=>JSON['stringify'](this[_0x2a0b55(0x118)][_0x2a0b55(0x110)](_0x47ce8e)),'parseJson':_0x2732d9=>_0xfee73a(JSON[_0x2a0b55(0x14d)](_0x2732d9)),'onLoad':(_0x2e3669,_0x56d3af)=>this[_0x2a0b55(0x118)][_0x2a0b55(0x109)](_0x2e3669,_0x56d3af),'onUnLoad':_0x5eb0be=>this['_docsCodeModel'][_0x2a0b55(0x167)](_0x5eb0be)}));}};_0x51d622=_0x177a36([_0x1c7c12(0x0,_0x5d4ca5[_0x244c36(0x10a)]),_0x1c7c12(0x1,(0x0,_0x5d4ca5[_0x244c36(0x16f)])(_0x54834a))],_0x51d622);let _0x186505=class extends _0x5d4ca5[_0x244c36(0x111)]{constructor(_0x598b86=_0x3bd88c,_0x5b2ad9,_0xc7b949,_0x1b35c0){const _0x45c5df=_0x244c36;super(),this[_0x45c5df(0x158)]=_0x598b86,this[_0x45c5df(0x182)]=_0x5b2ad9,this[_0x45c5df(0x101)]=_0xc7b949,this[_0x45c5df(0xec)]=_0x1b35c0;let {..._0x34d949}=(0x0,_0x5d4ca5[_0x45c5df(0xe7)])({},_0x3bd88c,this[_0x45c5df(0x158)]);this[_0x45c5df(0xec)][_0x45c5df(0xe1)](_0x45c5df(0x12d),_0x34d949);}['onStarting'](){const _0x3c3d64=_0x244c36;this[_0x3c3d64(0x182)][_0x3c3d64(0xfa)]([_0x54834a]),this[_0x3c3d64(0x182)][_0x3c3d64(0xfa)]([_0x51d622]),this[_0x3c3d64(0x182)][_0x3c3d64(0x11d)](_0x54834a),this['_injector']['get'](_0x51d622),[_0x5e191f,_0x237eef,_0x250ccc,_0x4dc2b9,_0xcd864a,_0x357e81][_0x3c3d64(0x10f)](_0x10f7b6=>this[_0x3c3d64(0x125)](this[_0x3c3d64(0x101)][_0x3c3d64(0x148)](_0x10f7b6)));}};_0x2f6530(_0x186505,_0x244c36(0x117),_0xcc892c),_0x2f6530(_0x186505,_0x244c36(0x16c),_0x3e419e),_0x2f6530(_0x186505,_0x244c36(0x139),_0x25a1d5),_0x2f6530(_0x186505,_0x244c36(0x166),_0x5d4ca5['UniverInstanceType'][_0x244c36(0x151)]),_0x186505=_0x177a36([(0x0,_0x5d4ca5[_0x244c36(0x128)])(_0x2feee9['UniverLicensePlugin'],_0x2ca7dd[_0x244c36(0x135)]),_0x1c7c12(0x1,(0x0,_0x5d4ca5[_0x244c36(0x16f)])(_0x5d4ca5['Injector'])),_0x1c7c12(0x2,_0x5d4ca5[_0x244c36(0x16b)]),_0x1c7c12(0x3,_0x5d4ca5[_0x244c36(0x173)])],_0x186505),_0x9dd0db[_0x244c36(0x14c)]=_0x1dd79b,_0x9dd0db['DOCS_CODE_PLUGIN']=_0xcc892c,_0x9dd0db['DocsCodeCancelEmptyParagraphCommand']=_0xcd864a,_0x9dd0db[_0x244c36(0x181)]=_0x357e81,_0x9dd0db[_0x244c36(0x164)]=_0x4dc2b9,_0x9dd0db[_0x244c36(0x11c)]=_0x237eef,_0x9dd0db[_0x244c36(0x15b)]=_0x5e191f,_0x9dd0db[_0x244c36(0x11e)]=_0x54834a,_0x9dd0db[_0x244c36(0x178)]=_0x250ccc,Object['defineProperty'](_0x9dd0db,_0x244c36(0xf4),{'enumerable':!0x0,'get':function(){return _0x186505;}}),_0x9dd0db['buildCancelEmptyCodeParagraphActions']=_0x3d3f97,_0x9dd0db[_0x244c36(0x185)]=_0x38dd96,_0x9dd0db[_0x244c36(0x10e)]=_0x199ede,_0x9dd0db[_0x244c36(0x169)]=_0x3e201b,_0x9dd0db[_0x244c36(0xdb)]=_0x41524e,_0x9dd0db[_0x244c36(0x104)]=_0x4511d1,_0x9dd0db[_0x244c36(0xe9)]=_0x5d947f;}));function _0xd18f(_0x4ebdf2,_0x2228d3){_0x4ebdf2=_0x4ebdf2-0xd8;const _0x1949d4=_0x1949();let _0xd18f26=_0x1949d4[_0x4ebdf2];return _0xd18f26;}function _0x1949(){const _0x4eff6f=['getCurrentUnitOfType','asObservable','consumeInsertRange','BLOCK_START','disposeWithMe','@univerjs-pro/license','iterator','DependentOn','18069580wQlRkB','_setResource','UniverDocs','16DxLGTO','docs-code.config','monospace','length','clear','nextMetadata','sectionBreaks','dataStream','docs-code.command.insert-below','UniverDocsPlugin','diffValue','startOffset','1964010QrEezT','version','docs-code.command.cancel-empty-paragraph','_resources','object','DataStreamTreeTokenType','_change$','0.25.0-insiders.20260604-29ebbff','spaceAbove','paragraphs','CommandType','endIndex','defineProperty','filter','2150036BTmNpO','COMMAND','registerCommand','startIndex','getOwnPropertyDescriptor','direction','DEFAULT_CODE_CONFIG','parse','find','deepClone','syncExecuteCommand','UNIVER_DOC','_resourceManagerService','IUniverInstanceService','paragraph','removeCode','fromEntries','map','_config','function','complete','DocsCodeInsertCommand','2105856ZqJpuD','customBlocks','@univerjs-pro/docs-code','constructor','symbol','customRanges','model','max','DocsCodeExitCommand','UniverCore','type','removeUnit','dispose','buildUpdateCodeActions','commandService','ICommandService','packageName','1785610euCYbn','paragraphStartIndex','Inject','UniverInstanceType','DOC_CODE_PLUGIN','getBody','IConfigService','22IvjtNN','textStyle','DocSelectionManagerService','PARAGRAPH','DocsCodeUpdateCommand','DocumentBlockRangeType','blockRanges','setCodeConfig','getInstance','_initResource','documentData','toStringTag','call','DocsCodeConsumeBoundaryDeleteCommand','_injector','customDecorations','2282916JQnQrV','buildExitCodeActions','string','JSONX','nextDocumentData','Disposable','findCodeRangeAtOffset','next','endTokenOffset','every','tables','BLOCK_END','setConfig','indentStart','body','32nfQSMI','Module','default','merge','getParagraphsInRange','normalizeDocsCodeConfig','previousDocumentData','prototype','_configService','join','CODE','UniverProLicense','config','toPrimitive','getUniverDocInstance','getSnapshot','UniverDocsCodePlugin','min','indentEnd','getUnitId','Subject','from','add','cursorOffset','left','rxjs','paragraphStyle','set','RichTextEditingMutation','_commandService','decorate','spaceBelow','isCodeBoundaryDelete','getCodeConfig','metadata','codes','361381zwzvux','deserialize','IResourceManagerService','unitId','UniverProDocsCode','Tools','buildInsertCodeActions','forEach','serialize','Plugin','blockType','blockId','slice','endOffset','javascript','pluginName','_docsCodeModel','12CmzWCG','some','sort','DocsCodeInsertBelowCommand','get','DocsCodeModel','textRuns','registerPluginResource'];_0x1949=function(){return _0x4eff6f;};return _0x1949();}
1
+ (function(_0x9111f1,_0x45c765){const _0x381625=_0x499a,_0x368934=_0x9111f1();while(!![]){try{const _0x5e65c8=-parseInt(_0x381625(0x1bc))/0x1+-parseInt(_0x381625(0x154))/0x2+-parseInt(_0x381625(0x150))/0x3*(-parseInt(_0x381625(0x197))/0x4)+-parseInt(_0x381625(0x17d))/0x5*(-parseInt(_0x381625(0x1d5))/0x6)+parseInt(_0x381625(0x1d2))/0x7+parseInt(_0x381625(0x19b))/0x8*(-parseInt(_0x381625(0x1ad))/0x9)+parseInt(_0x381625(0x13f))/0xa*(parseInt(_0x381625(0x172))/0xb);if(_0x5e65c8===_0x45c765)break;else _0x368934['push'](_0x368934['shift']());}catch(_0x203f41){_0x368934['push'](_0x368934['shift']());}}}(_0x35f8,0xa9ce5),function(_0x31fc3e,_0x33282b){const _0x530fbf=_0x499a;typeof exports==_0x530fbf(0x138)&&typeof module<'u'?_0x33282b(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0x530fbf(0x185),_0x530fbf(0x186),'@univerjs/docs',_0x530fbf(0x15c),'@univerjs-pro/license'],_0x33282b):(_0x31fc3e=typeof globalThis<'u'?globalThis:_0x31fc3e||self,_0x33282b(_0x31fc3e[_0x530fbf(0x1c4)]={},_0x31fc3e[_0x530fbf(0x1b8)],_0x31fc3e['UniverDocs'],_0x31fc3e[_0x530fbf(0x15c)],_0x31fc3e['UniverProLicense']));}(this,function(_0x46a255,_0x332156,_0xf425dd,_0x44fccb,_0x5c6db2){const _0x38d82b=_0x499a;Object[_0x38d82b(0x18b)](_0x46a255,Symbol[_0x38d82b(0x1d3)],{'value':_0x38d82b(0x153)});let _0x1b28d6={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x2e904e(_0x48c07d){return{..._0x1b28d6,..._0x48c07d};}function _0x10a8b4(_0x502787){const _0x316254=_0x38d82b;var _0x427442;let _0x10fd05=(_0x427442=_0x502787==null?void 0x0:_0x502787[_0x316254(0x1cf)])==null?{}:_0x427442;return{'codes':Object[_0x316254(0x17b)](Object[_0x316254(0x137)](_0x10fd05)[_0x316254(0x1bb)](([_0x226a7c,_0x1c3435])=>[_0x226a7c,_0x2e904e(_0x1c3435)]))};}function _0x47375b(_0x1ce70d,_0x266b6c,_0x34ba07){const _0x539c11=_0x38d82b;let _0x47163e=_0x10a8b4(_0x1ce70d);return _0x47163e[_0x539c11(0x1cf)][_0x266b6c]=_0x2e904e({..._0x47163e[_0x539c11(0x1cf)][_0x266b6c],..._0x34ba07}),_0x47163e;}function _0x1da98e(_0x43d3fc,_0x495156){let _0x5d39df=_0x10a8b4(_0x43d3fc);return delete _0x5d39df['codes'][_0x495156],_0x5d39df;}let _0x24a1a1='monospace';function _0x88cbe6(_0x43a28a){const _0x1fb5be=_0x38d82b;var _0x113667,_0x5e1325,_0x994ae8;let _0x9556ea=_0x233d3b(_0x43a28a['documentData']),_0x3ac738=_0x31ba7e(_0x9556ea),_0x5a2637=_0x5ce968(_0x43a28a['startOffset'],_0x43a28a[_0x1fb5be(0x191)]),_0x4eff46=_0x5a2637?(_0x113667=_0x3ac738[_0x1fb5be(0x13a)])==null?void 0x0:_0x113667[_0x1fb5be(0x180)](_0x1f5498=>_0x1f5498[_0x1fb5be(0x13c)]===_0x5a2637[_0x1fb5be(0x1bf)]&&_0x1f5498[_0x1fb5be(0x19f)]+0x1===_0x5a2637[_0x1fb5be(0x191)]):void 0x0,{startOffset:_0x3c207a,endOffset:_0x54570d}=_0x4eff46?_0x5a2637:_0x1b22b1(_0x3ac738,_0x43a28a[_0x1fb5be(0x1bf)],_0x43a28a[_0x1fb5be(0x191)]),_0x29e22d=_0x537df6(_0x3ac738,_0x3c207a,_0x54570d),_0x27fef9=(_0x5e1325=_0x4eff46==null?void 0x0:_0x4eff46[_0x1fb5be(0x1a6)])==null?_0x43a28a[_0x1fb5be(0x1a6)]:_0x5e1325,_0x247e7f=_0x47375b(_0x43a28a[_0x1fb5be(0x1ca)],_0x27fef9,{..._0x1b28d6,..._0x43a28a['config']});if(_0x4eff46)return _0x4eff46[_0x1fb5be(0x170)]=_0x332156['DocumentBlockRangeType'][_0x1fb5be(0x146)],_0x30ae40(_0x3ac738,_0x3c207a,_0x54570d),_0x159252(_0x3ac738,_0x3c207a,_0x54570d,_0x29e22d),{'nextDocumentData':_0x9556ea,'nextMetadata':_0x247e7f,'cursorOffset':_0x3c207a+0x1};if(_0x3c207a===_0x54570d){var _0x3c1e45;let _0x2cec22=''+_0x332156[_0x1fb5be(0x145)][_0x1fb5be(0x1af)]+_0x332156[_0x1fb5be(0x145)][_0x1fb5be(0x1be)]+_0x332156[_0x1fb5be(0x145)][_0x1fb5be(0x182)];return _0x9366fb(_0x3ac738,_0x3c207a,_0x2cec22,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x332156[_0x1fb5be(0x17c)])(new Set((_0x3c1e45=_0x3ac738['paragraphs'])==null?void 0x0:_0x3c1e45[_0x1fb5be(0x1bb)](_0x1a80e7=>_0x1a80e7[_0x1fb5be(0x1c1)]))),'paragraphStyle':_0x1fb339(!0x0,!0x0,_0x29e22d)}],'blockRanges':[{'blockId':_0x27fef9,'blockType':_0x332156[_0x1fb5be(0x1ba)][_0x1fb5be(0x146)],'startIndex':0x0,'endIndex':_0x2cec22[_0x1fb5be(0x194)]-0x1}]}),{'nextDocumentData':_0x9556ea,'nextMetadata':_0x247e7f,'cursorOffset':_0x3c207a+0x1};}return _0x9366fb(_0x3ac738,_0x54570d,_0x332156['DataStreamTreeTokenType'][_0x1fb5be(0x182)]),_0x9366fb(_0x3ac738,_0x3c207a,_0x332156[_0x1fb5be(0x145)]['BLOCK_START']),_0x159252(_0x3ac738,_0x3c207a,_0x54570d+0x1,_0x29e22d),_0x3ac738[_0x1fb5be(0x13a)]=[...(_0x994ae8=_0x3ac738[_0x1fb5be(0x13a)])==null?[]:_0x994ae8,{'blockId':_0x27fef9,'blockType':_0x332156[_0x1fb5be(0x1ba)][_0x1fb5be(0x146)],'startIndex':_0x3c207a,'endIndex':_0x54570d+0x1}][_0x1fb5be(0x1c6)]((_0x48f93e,_0x4ec6ea)=>_0x48f93e[_0x1fb5be(0x13c)]-_0x4ec6ea['startIndex']),{'nextDocumentData':_0x9556ea,'nextMetadata':_0x247e7f,'cursorOffset':_0x3c207a+0x1};}function _0x30ae40(_0xfe2560,_0x3b8c13,_0x3526ea){const _0x5522ca=_0x38d82b;var _0x2d6e71;((_0x2d6e71=_0xfe2560[_0x5522ca(0x171)])==null?[]:_0x2d6e71)[_0x5522ca(0x165)](_0x2c1dae=>_0x2c1dae[_0x5522ca(0x13c)]>_0x3b8c13&&_0x2c1dae[_0x5522ca(0x13c)]<_0x3526ea)[_0x5522ca(0x168)](_0x43682b=>{const _0x297b34=_0x5522ca;var _0x1f9ad8;let _0x3d2594={...(_0x1f9ad8=_0x43682b[_0x297b34(0x136)])==null?{}:_0x1f9ad8};delete _0x3d2594[_0x297b34(0x128)],delete _0x3d2594[_0x297b34(0x181)],_0x43682b[_0x297b34(0x136)]=_0x3d2594;});}function _0x5ce968(_0x22f4cb,_0x20f14c){const _0x402149=_0x38d82b;return _0x22f4cb==null||_0x20f14c==null||_0x22f4cb===_0x20f14c?null:{'startOffset':Math[_0x402149(0x196)](_0x22f4cb,_0x20f14c),'endOffset':Math[_0x402149(0x164)](_0x22f4cb,_0x20f14c)};}function _0x4e668c(_0xc45b9e){const _0x1dfc9d=_0x38d82b;return{'nextDocumentData':_0x233d3b(_0xc45b9e['documentData']),'nextMetadata':_0x47375b(_0xc45b9e[_0x1dfc9d(0x1ca)],_0xc45b9e[_0x1dfc9d(0x1a6)],_0xc45b9e['config']),'cursorOffset':0x0};}function _0x2b51c6(_0x5436d7){const _0x116dd4=_0x38d82b;var _0x1f1fd1,_0x26523b;let _0x4bdd5d=_0x233d3b(_0x5436d7[_0x116dd4(0x18d)]),_0x56fefe=_0x31ba7e(_0x4bdd5d),_0x2d0634=_0xecbe36(_0x56fefe,_0x5436d7['cursorOffset']);if(!_0x2d0634)return null;let _0x320b8c=_0x4391d3(_0x56fefe,_0x2d0634),_0x4023fb=_0x320b8c[_0x320b8c[_0x116dd4(0x194)]-0x1];if(!_0x4023fb||!_0x2ded23(_0x56fefe,_0x2d0634,_0x4023fb)||_0x5436d7[_0x116dd4(0x1b3)]<_0x4023fb[_0x116dd4(0x13c)])return null;let _0x40bc90=_0x264cce(_0x56fefe,_0x2d0634,_0x4023fb);if(_0x40bc90>=_0x2d0634[_0x116dd4(0x19f)])return null;_0x56fefe[_0x116dd4(0x178)]=[_0x56fefe[_0x116dd4(0x178)][_0x116dd4(0x131)](0x0,_0x40bc90),_0x332156[_0x116dd4(0x145)][_0x116dd4(0x182)],_0x56fefe[_0x116dd4(0x178)][_0x116dd4(0x131)](_0x40bc90,_0x2d0634[_0x116dd4(0x19f)]),_0x56fefe[_0x116dd4(0x178)][_0x116dd4(0x131)](_0x2d0634[_0x116dd4(0x19f)]+0x1)]['join'](''),_0x426c85(_0x56fefe[_0x116dd4(0x171)],_0x40bc90,_0x2d0634[_0x116dd4(0x19f)],0x1),_0x426c85(_0x56fefe['sectionBreaks'],_0x40bc90,_0x2d0634[_0x116dd4(0x19f)],0x1),_0x426c85(_0x56fefe[_0x116dd4(0x14c)],_0x40bc90,_0x2d0634[_0x116dd4(0x19f)],0x1),_0x424c36(_0x56fefe[_0x116dd4(0x19c)],_0x40bc90,_0x2d0634[_0x116dd4(0x19f)],0x1),_0x31de76(_0x56fefe[_0x116dd4(0x1d4)],_0x40bc90,_0x2d0634[_0x116dd4(0x19f)],0x1),_0x31de76(_0x56fefe['customRanges'],_0x40bc90,_0x2d0634[_0x116dd4(0x19f)],0x1),_0x31de76(_0x56fefe[_0x116dd4(0x174)],_0x40bc90,_0x2d0634['endIndex'],0x1),(_0x1f1fd1=_0x56fefe['blockRanges'])==null||_0x1f1fd1['forEach'](_0x163268=>{const _0x27e278=_0x116dd4;_0x163268===_0x2d0634||_0x163268[_0x27e278(0x1a6)]===_0x2d0634['blockId']?_0x163268[_0x27e278(0x19f)]=_0x40bc90:_0x163268[_0x27e278(0x13c)]>=_0x40bc90&&_0x163268[_0x27e278(0x13c)]<_0x2d0634[_0x27e278(0x19f)]&&(_0x163268[_0x27e278(0x13c)]+=0x1,_0x163268[_0x27e278(0x19f)]+=0x1);});let _0x5f4570=_0x4391d3(_0x56fefe,{..._0x2d0634,'endIndex':_0x40bc90});_0x5f4570[_0x116dd4(0x168)]((_0x2277da,_0x14dba9)=>{const _0x556902=_0x116dd4;var _0x5dffdd;_0x2277da[_0x556902(0x136)]={...(_0x5dffdd=_0x2277da[_0x556902(0x136)])==null?{}:_0x5dffdd,..._0x1fb339(_0x14dba9===0x0,_0x14dba9===_0x5f4570[_0x556902(0x194)]-0x1)};});let _0x26bf40=(_0x26523b=_0x56fefe[_0x116dd4(0x171)])==null?void 0x0:_0x26523b[_0x116dd4(0x180)](_0x54f827=>_0x54f827[_0x116dd4(0x13c)]===_0x40bc90+0x1);return _0x26bf40&&(_0x26bf40[_0x116dd4(0x136)]=_0x2b3ad5(_0x26bf40[_0x116dd4(0x136)])),{'nextDocumentData':_0x4bdd5d,'cursorOffset':_0x40bc90+0x1};}function _0x22139d(_0x1bae1f){const _0x2cd6cc=_0x38d82b;let _0x478760=_0x233d3b(_0x1bae1f[_0x2cd6cc(0x18d)]),_0x3b3d42=_0x31ba7e(_0x478760),_0x4355c3=_0xecbe36(_0x3b3d42,_0x1bae1f[_0x2cd6cc(0x1b3)]);return _0x4355c3&&_0x2908e1(_0x478760,_0x3b3d42,_0x4355c3,_0x1bae1f[_0x2cd6cc(0x1b3)],_0x1bae1f[_0x2cd6cc(0x1bd)])||null;}function _0x2908e1(_0x3b0d8c,_0x23d08,_0x5b279b,_0x2581d1,_0x3ff799){const _0x4923e6=_0x38d82b;let _0x20df57=_0xbd5fb9(_0x23d08,_0x5b279b,_0x2581d1,_0x3ff799);if(!_0x20df57)return null;let _0x1424c5=_0x20df57['endTokenOffset']-0x1;return _0x522574(_0x23d08,_0x20df57[_0x4923e6(0x133)]['startIndex'],_0x20df57['paragraph'][_0x4923e6(0x13c)]+0x1),{'nextDocumentData':_0x3b0d8c,'cursorOffset':_0x1424c5};}function _0x6c9c68(_0x8b638a,_0x209f13){const _0x543f59=_0x38d82b;var _0x2bb08b;return _0x8b638a==null||(_0x2bb08b=_0x8b638a[_0x543f59(0x13a)])==null?void 0x0:_0x2bb08b[_0x543f59(0x180)](_0xaaa0c3=>_0xaaa0c3[_0x543f59(0x170)]===_0x332156['DocumentBlockRangeType'][_0x543f59(0x146)]&&_0xaaa0c3[_0x543f59(0x13c)]<=_0x209f13&&_0x209f13<=_0xaaa0c3['endIndex']);}function _0x443e0a(_0x2ea29d){const _0xb67cd8=_0x38d82b;var _0x13f69d;let _0x295e72=_0x2ea29d[_0xb67cd8(0x18d)][_0xb67cd8(0x12b)];if(!_0x295e72)return!0x1;let _0x4a6736=_0x2ea29d[_0xb67cd8(0x142)]===_0xb67cd8(0x13e)?_0x2ea29d[_0xb67cd8(0x1b3)]-0x1:_0x2ea29d[_0xb67cd8(0x1b3)],_0x4098de=_0x2ea29d['direction']===_0xb67cd8(0x140)?_0x2ea29d[_0xb67cd8(0x1b3)]+0x1:_0x4a6736;return((_0x13f69d=_0x295e72[_0xb67cd8(0x13a)])==null?[]:_0x13f69d)[_0xb67cd8(0x1d9)](_0x247c2c=>_0x247c2c[_0xb67cd8(0x170)]===_0x332156[_0xb67cd8(0x1ba)][_0xb67cd8(0x146)]?_0x4a6736===_0x247c2c[_0xb67cd8(0x13c)]||_0x4a6736===_0x247c2c['endIndex']||_0x4098de===_0x247c2c[_0xb67cd8(0x13c)]||_0x4098de===_0x247c2c['endIndex']:!0x1);}function _0xecbe36(_0x1f8040,_0x37a5db){const _0x18ecf8=_0x38d82b;var _0x1c7014;return(_0x1c7014=_0x1f8040[_0x18ecf8(0x13a)])==null?void 0x0:_0x1c7014[_0x18ecf8(0x180)](_0x36e21e=>{const _0x1fedac=_0x18ecf8;let _0x2441f9=_0x3b4117(_0x1f8040,_0x36e21e);return _0x36e21e[_0x1fedac(0x170)]===_0x332156[_0x1fedac(0x1ba)][_0x1fedac(0x146)]&&_0x36e21e[_0x1fedac(0x13c)]<=_0x37a5db&&_0x37a5db<=_0x2441f9+0x2;});}function _0x1fb339(_0x28034c,_0x1212d3,_0x37aa99=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x28034c&&_0x37aa99?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x24a1a1,'fs':0xc}};}function _0x159252(_0x4b2cfe,_0x519bd6,_0x5a4d7c,_0x33dbef=!0x1){const _0x529e61=_0x38d82b;var _0x4de996;let _0x24ed3b=((_0x4de996=_0x4b2cfe['paragraphs'])==null?[]:_0x4de996)[_0x529e61(0x165)](_0x1f645c=>_0x1f645c[_0x529e61(0x13c)]>_0x519bd6&&_0x1f645c[_0x529e61(0x13c)]<_0x5a4d7c);_0x24ed3b[_0x529e61(0x168)]((_0x584096,_0xfd0423)=>{const _0x477a77=_0x529e61;var _0x35761d;_0x584096[_0x477a77(0x136)]={...(_0x35761d=_0x584096[_0x477a77(0x136)])==null?{}:_0x35761d,..._0x1fb339(_0xfd0423===0x0,_0xfd0423===_0x24ed3b[_0x477a77(0x194)]-0x1,_0x33dbef)};});}function _0x2b3ad5(_0x2b6e1f){const _0xd46d38=_0x38d82b;var _0x527e5f,_0x84ee08;let _0x3745a8={..._0x2b6e1f==null?{}:_0x2b6e1f};return delete _0x3745a8[_0xd46d38(0x16a)],delete _0x3745a8[_0xd46d38(0x1c7)],delete _0x3745a8[_0xd46d38(0x128)],delete _0x3745a8[_0xd46d38(0x181)],((_0x527e5f=_0x3745a8[_0xd46d38(0x1aa)])==null?void 0x0:_0x527e5f['ff'])===_0x24a1a1&&((_0x84ee08=_0x3745a8[_0xd46d38(0x1aa)])==null?void 0x0:_0x84ee08['fs'])===0xc&&delete _0x3745a8[_0xd46d38(0x1aa)],_0x3745a8;}function _0x4391d3(_0x4b3970,_0x1a724c){const _0x293d38=_0x38d82b;var _0xe9262a;let _0x2809b8=_0x3b4117(_0x4b3970,_0x1a724c);return((_0xe9262a=_0x4b3970['paragraphs'])==null?[]:_0xe9262a)['filter'](_0x4dacf9=>_0x4dacf9[_0x293d38(0x13c)]>_0x1a724c['startIndex']&&_0x4dacf9['startIndex']<_0x2809b8);}function _0x2ded23(_0x115186,_0x19b2b6,_0x2e6a55){const _0xc09103=_0x38d82b;let _0x55a5bc=_0x264cce(_0x115186,_0x19b2b6,_0x2e6a55),_0x2ac3fd=_0x115186[_0xc09103(0x178)][_0xc09103(0x131)](_0x55a5bc,_0x2e6a55[_0xc09103(0x13c)]);return Array['from'](_0x2ac3fd)[_0xc09103(0x18c)](_0x361d98=>_0x361d98===_0x332156['DataStreamTreeTokenType']['BLOCK_START']||_0x361d98===_0x332156['DataStreamTreeTokenType'][_0xc09103(0x182)]);}function _0x233d3b(_0xeb504b){const _0xabf081=_0x38d82b;return _0x332156[_0xabf081(0x189)][_0xabf081(0x157)](_0xeb504b);}function _0x31ba7e(_0xefd55a){const _0x2cf816=_0x38d82b;if(!_0xefd55a['body'])throw Error(_0x2cf816(0x1cd));return _0xefd55a['body'];}function _0x1b22b1(_0x4cd7b8,_0x40a9a2,_0x4f9e73){const _0x59afc0=_0x38d82b;if(_0x40a9a2==null||_0x4f9e73==null){let _0x4df01c=_0x1b16cc(_0x4cd7b8);return{'startOffset':_0x4df01c,'endOffset':_0x4df01c};}let _0x3395c1=Math[_0x59afc0(0x196)](_0x40a9a2,_0x4f9e73),_0x2fe9e8=Math[_0x59afc0(0x164)](_0x40a9a2,_0x4f9e73);return _0x3395c1===_0x2fe9e8?{'startOffset':_0x3395c1,'endOffset':_0x3395c1}:_0x525a63(_0x4cd7b8,_0x3395c1,_0x2fe9e8);}function _0x1b16cc(_0x1bdb99){const _0x40f523=_0x38d82b;return _0x1bdb99[_0x40f523(0x178)][_0x40f523(0x176)](_0x332156[_0x40f523(0x145)][_0x40f523(0x16f)])?Math['max'](0x0,_0x1bdb99[_0x40f523(0x178)][_0x40f523(0x194)]-0x1):_0x1bdb99[_0x40f523(0x178)][_0x40f523(0x194)];}function _0x537df6(_0x524b22,_0x697f6d,_0x2ecf25){const _0x208014=_0x38d82b;var _0x214cd5;let _0x5a60e6=Math['min'](_0x697f6d,_0x2ecf25),_0x499545=Math['max'](_0x697f6d,_0x2ecf25);return!!((_0x214cd5=_0x524b22['tables'])!=null&&_0x214cd5[_0x208014(0x1d9)](_0x13d9bc=>_0x5a60e6>_0x13d9bc[_0x208014(0x13c)]&&_0x5a60e6<_0x13d9bc[_0x208014(0x19f)]||_0x499545>_0x13d9bc['startIndex']&&_0x499545<_0x13d9bc[_0x208014(0x19f)]||_0x5a60e6<=_0x13d9bc['startIndex']&&_0x499545>=_0x13d9bc['endIndex']));}function _0x525a63(_0x11b9ea,_0x227d49,_0x51d301){const _0x1dc6d3=_0x38d82b;var _0x41bddd,_0x3a20f0;let _0x20ffbb=[...(_0x41bddd=_0x11b9ea['paragraphs'])==null?[]:_0x41bddd][_0x1dc6d3(0x1c6)]((_0x25c7a0,_0x3406e5)=>_0x25c7a0['startIndex']-_0x3406e5[_0x1dc6d3(0x13c)]),_0x67180=_0x20ffbb['find']((_0x2cc978,_0x160516)=>(_0x160516===0x0?0x0:_0x20ffbb[_0x160516-0x1][_0x1dc6d3(0x13c)]+0x1)<=_0x227d49&&_0x227d49<=_0x2cc978['startIndex']),_0x490304=(_0x3a20f0=_0x20ffbb[_0x1dc6d3(0x180)](_0x379465=>_0x379465['startIndex']>=_0x51d301-0x1))==null?_0x20ffbb[_0x20ffbb[_0x1dc6d3(0x194)]-0x1]:_0x3a20f0;return{'startOffset':_0x67180?_0x89bef(_0x20ffbb,_0x67180):_0x227d49,'endOffset':_0x490304?_0x490304[_0x1dc6d3(0x13c)]+0x1:_0x51d301};}function _0x89bef(_0x238023,_0x2f95db){const _0xf1dd1=_0x38d82b;let _0x5620e0=_0x238023['indexOf'](_0x2f95db);return _0x5620e0>0x0?_0x238023[_0x5620e0-0x1][_0xf1dd1(0x13c)]+0x1:0x0;}function _0x264cce(_0xee0efd,_0x14580f,_0xeb3097){const _0x24ce2e=_0x38d82b;var _0x58f575;return Math[_0x24ce2e(0x164)](_0x89bef((_0x58f575=_0xee0efd[_0x24ce2e(0x171)])==null?[]:_0x58f575,_0xeb3097),_0x14580f[_0x24ce2e(0x13c)]+0x1);}function _0x3b4117(_0x4058a5,_0x2d32a4){const _0x115609=_0x38d82b;return _0x4058a5['dataStream'][_0x2d32a4[_0x115609(0x19f)]]===_0x332156[_0x115609(0x145)][_0x115609(0x182)]?_0x2d32a4['endIndex']:_0x4058a5['dataStream'][_0x2d32a4[_0x115609(0x19f)]+0x1]===_0x332156['DataStreamTreeTokenType'][_0x115609(0x182)]?_0x2d32a4[_0x115609(0x19f)]+0x1:_0x2d32a4[_0x115609(0x19f)];}function _0xbd5fb9(_0x3b231e,_0x4f7b75,_0x38bc46,_0x2ef774){const _0x521ca2=_0x38d82b;var _0x3a653a,_0x46309b;let _0x2d9c8b=_0x3b4117(_0x3b231e,_0x4f7b75),_0x3f8cfc=((_0x3a653a=_0x3b231e['paragraphs'])==null?[]:_0x3a653a)['find'](_0x75e4d3=>_0x75e4d3[_0x521ca2(0x13c)]===_0x2d9c8b+0x1);if(!_0x3f8cfc||_0x2ef774!=null&&_0x3f8cfc[_0x521ca2(0x13c)]!==_0x2ef774||_0x38bc46<_0x2d9c8b||_0x38bc46>_0x3f8cfc['startIndex']+0x1||_0x3b231e[_0x521ca2(0x178)][_0x3f8cfc[_0x521ca2(0x13c)]]!==_0x332156['DataStreamTreeTokenType'][_0x521ca2(0x1be)])return null;let _0x4db1be=_0x89bef((_0x46309b=_0x3b231e[_0x521ca2(0x171)])==null?[]:_0x46309b,_0x3f8cfc),_0x4b3f74=_0x3b231e[_0x521ca2(0x178)]['slice'](_0x4db1be,_0x3f8cfc[_0x521ca2(0x13c)]);return Array['from'](_0x4b3f74)[_0x521ca2(0x18c)](_0x285818=>_0x285818===_0x332156[_0x521ca2(0x145)][_0x521ca2(0x182)])?{'paragraph':_0x3f8cfc,'endTokenOffset':_0x2d9c8b}:null;}function _0x9366fb(_0x51ec84,_0x233d6f,_0x39f256,_0x3bd4eb={}){const _0xa76fc1=_0x38d82b;var _0x243d85,_0x2de0ca;if(_0x39f256){if(_0x51ec84[_0xa76fc1(0x178)]=''+_0x51ec84[_0xa76fc1(0x178)][_0xa76fc1(0x131)](0x0,_0x233d6f)+_0x39f256+_0x51ec84[_0xa76fc1(0x178)][_0xa76fc1(0x131)](_0x233d6f),_0x301de0(_0x51ec84,_0x233d6f,_0x39f256['length']),(_0x243d85=_0x3bd4eb[_0xa76fc1(0x171)])!=null&&_0x243d85[_0xa76fc1(0x194)]){var _0x3014a2;_0x51ec84[_0xa76fc1(0x171)]=[...(_0x3014a2=_0x51ec84[_0xa76fc1(0x171)])==null?[]:_0x3014a2,..._0x3bd4eb[_0xa76fc1(0x171)]['map'](_0x1fd8bd=>({..._0x1fd8bd,'startIndex':_0x1fd8bd[_0xa76fc1(0x13c)]+_0x233d6f}))][_0xa76fc1(0x1c6)]((_0x292f62,_0x1b64d1)=>_0x292f62[_0xa76fc1(0x13c)]-_0x1b64d1[_0xa76fc1(0x13c)]);}if((_0x2de0ca=_0x3bd4eb['blockRanges'])!=null&&_0x2de0ca[_0xa76fc1(0x194)]){var _0x283e9d;_0x51ec84[_0xa76fc1(0x13a)]=[...(_0x283e9d=_0x51ec84[_0xa76fc1(0x13a)])==null?[]:_0x283e9d,..._0x3bd4eb[_0xa76fc1(0x13a)][_0xa76fc1(0x1bb)](_0x458f32=>({..._0x458f32,'startIndex':_0x458f32[_0xa76fc1(0x13c)]+_0x233d6f,'endIndex':_0x458f32[_0xa76fc1(0x19f)]+_0x233d6f}))][_0xa76fc1(0x1c6)]((_0x4b17c7,_0x3ec11f)=>_0x4b17c7['startIndex']-_0x3ec11f[_0xa76fc1(0x13c)]);}}}function _0x522574(_0x5f15f2,_0x117eeb,_0x3bc086){const _0x2c19ff=_0x38d82b;let _0x519edb=_0x3bc086-_0x117eeb;_0x5f15f2['dataStream']=''+_0x5f15f2['dataStream'][_0x2c19ff(0x131)](0x0,_0x117eeb)+_0x5f15f2[_0x2c19ff(0x178)][_0x2c19ff(0x131)](_0x3bc086),_0x1a903(_0x5f15f2,_0x117eeb,_0x519edb);}function _0x301de0(_0x65799a,_0x153823,_0x185c97){const _0x2df1de=_0x38d82b;_0x65799a[_0x2df1de(0x171)]=_0x1eb215(_0x65799a['paragraphs'],_0x153823,_0x185c97),_0x65799a[_0x2df1de(0x17a)]=_0x1eb215(_0x65799a[_0x2df1de(0x17a)],_0x153823,_0x185c97),_0x65799a[_0x2df1de(0x14c)]=_0x1eb215(_0x65799a[_0x2df1de(0x14c)],_0x153823,_0x185c97),_0x65799a[_0x2df1de(0x19c)]=_0x421dc0(_0x65799a[_0x2df1de(0x19c)],_0x153823,_0x185c97),_0x65799a[_0x2df1de(0x1d4)]=_0x17c203(_0x65799a[_0x2df1de(0x1d4)],_0x153823,_0x185c97),_0x65799a[_0x2df1de(0x15d)]=_0x17c203(_0x65799a['customRanges'],_0x153823,_0x185c97),_0x65799a[_0x2df1de(0x174)]=_0x17c203(_0x65799a[_0x2df1de(0x174)],_0x153823,_0x185c97),_0x65799a[_0x2df1de(0x13a)]=_0x17c203(_0x65799a[_0x2df1de(0x13a)],_0x153823,_0x185c97);}function _0x1a903(_0x47a641,_0x4e1567,_0x388814){const _0x172f12=_0x38d82b;var _0x22361f,_0x2afedb;_0x47a641[_0x172f12(0x171)]=_0x47929e(_0x47a641['paragraphs'],_0x4e1567,_0x388814),_0x47a641[_0x172f12(0x17a)]=_0x47929e(_0x47a641[_0x172f12(0x17a)],_0x4e1567,_0x388814),_0x47a641[_0x172f12(0x14c)]=_0x47929e(_0x47a641[_0x172f12(0x14c)],_0x4e1567,_0x388814),_0x47a641[_0x172f12(0x19c)]=(_0x22361f=_0x382bf9((_0x2afedb=_0x47a641[_0x172f12(0x19c)])==null?void 0x0:_0x2afedb[_0x172f12(0x1bb)](_0x118105=>({..._0x118105,'startIndex':_0x118105['st'],'endIndex':_0x118105['ed']})),_0x4e1567,_0x388814))==null?void 0x0:_0x22361f['map'](_0x3d60ad=>{let {startIndex:_0x571c97,endIndex:_0x59d10f,..._0x43da35}=_0x3d60ad;return{..._0x43da35,'st':_0x571c97,'ed':_0x59d10f};}),_0x47a641[_0x172f12(0x1d4)]=_0x382bf9(_0x47a641[_0x172f12(0x1d4)],_0x4e1567,_0x388814),_0x47a641[_0x172f12(0x15d)]=_0x382bf9(_0x47a641[_0x172f12(0x15d)],_0x4e1567,_0x388814),_0x47a641[_0x172f12(0x174)]=_0x382bf9(_0x47a641['customDecorations'],_0x4e1567,_0x388814),_0x47a641[_0x172f12(0x13a)]=_0x382bf9(_0x47a641[_0x172f12(0x13a)],_0x4e1567,_0x388814);}function _0x1eb215(_0x1b5bb,_0x1f5fed,_0x21453e){const _0x231243=_0x38d82b;return _0x1b5bb==null?void 0x0:_0x1b5bb[_0x231243(0x1bb)](_0x3718a1=>_0x3718a1[_0x231243(0x13c)]>=_0x1f5fed?{..._0x3718a1,'startIndex':_0x3718a1['startIndex']+_0x21453e}:_0x3718a1);}function _0x47929e(_0x2c6ff9,_0x5c3518,_0x3bb9f5){const _0x381afe=_0x38d82b;let _0x174943=_0x5c3518+_0x3bb9f5;return _0x2c6ff9==null?void 0x0:_0x2c6ff9[_0x381afe(0x1bb)](_0x28bb06=>_0x28bb06[_0x381afe(0x13c)]>=_0x5c3518&&_0x28bb06[_0x381afe(0x13c)]<_0x174943?null:_0x28bb06[_0x381afe(0x13c)]>=_0x174943?{..._0x28bb06,'startIndex':_0x28bb06['startIndex']-_0x3bb9f5}:_0x28bb06)['filter'](_0x2cce60=>_0x2cce60!=null);}function _0x421dc0(_0x21028c,_0x165184,_0x161995){return _0x21028c==null?void 0x0:_0x21028c['map'](_0x5e3f79=>_0x5e3f79['st']>=_0x165184?{..._0x5e3f79,'st':_0x5e3f79['st']+_0x161995,'ed':_0x5e3f79['ed']+_0x161995}:_0x5e3f79['ed']>_0x165184?{..._0x5e3f79,'ed':_0x5e3f79['ed']+_0x161995}:_0x5e3f79);}function _0x17c203(_0x4f9ef4,_0xc73f52,_0x12562a){const _0xf5cf23=_0x38d82b;return _0x4f9ef4==null?void 0x0:_0x4f9ef4[_0xf5cf23(0x1bb)](_0x2f38cd=>_0x2f38cd['startIndex']>=_0xc73f52?{..._0x2f38cd,'startIndex':_0x2f38cd[_0xf5cf23(0x13c)]+_0x12562a,'endIndex':_0x2f38cd[_0xf5cf23(0x19f)]+_0x12562a}:_0x2f38cd['endIndex']>=_0xc73f52?{..._0x2f38cd,'endIndex':_0x2f38cd[_0xf5cf23(0x19f)]+_0x12562a}:_0x2f38cd);}function _0x382bf9(_0x2aead7,_0x3c3377,_0x178279){const _0x3a4dde=_0x38d82b;let _0x4841f6=_0x3c3377+_0x178279;return _0x2aead7==null?void 0x0:_0x2aead7[_0x3a4dde(0x1bb)](_0x104249=>_0x104249['startIndex']>=_0x3c3377&&_0x104249[_0x3a4dde(0x19f)]<_0x4841f6?null:_0x104249['startIndex']>=_0x4841f6?{..._0x104249,'startIndex':_0x104249[_0x3a4dde(0x13c)]-_0x178279,'endIndex':_0x104249[_0x3a4dde(0x19f)]-_0x178279}:_0x104249[_0x3a4dde(0x19f)]>=_0x3c3377?{..._0x104249,'startIndex':_0x104249[_0x3a4dde(0x13c)]<_0x3c3377?_0x104249[_0x3a4dde(0x13c)]:_0x3c3377,'endIndex':Math[_0x3a4dde(0x164)](_0x3c3377,_0x104249[_0x3a4dde(0x19f)]-_0x178279)}:_0x104249)['filter'](_0x4a6c5b=>_0x4a6c5b!=null);}function _0x426c85(_0x510d6e,_0x2d5911,_0x268f31,_0x1383bb){_0x510d6e==null||_0x510d6e['forEach'](_0x38368a=>{const _0xebc16c=_0x499a;_0x38368a['startIndex']>=_0x2d5911&&_0x38368a[_0xebc16c(0x13c)]<_0x268f31&&(_0x38368a[_0xebc16c(0x13c)]+=_0x1383bb);});}function _0x424c36(_0x3ab730,_0x17cf07,_0x2ec1c0,_0x14683f){_0x3ab730==null||_0x3ab730['forEach'](_0x965e61=>{_0x965e61['st']>=_0x17cf07&&_0x965e61['st']<_0x2ec1c0?(_0x965e61['st']+=_0x14683f,_0x965e61['ed']+=_0x14683f):_0x965e61['ed']>_0x17cf07&&_0x965e61['ed']<_0x2ec1c0&&(_0x965e61['ed']+=_0x14683f);});}function _0x31de76(_0xf9e8a3,_0x280a5a,_0x58f904,_0x14524a){const _0x515c62=_0x38d82b;_0xf9e8a3==null||_0xf9e8a3[_0x515c62(0x168)](_0x345536=>{const _0x56ba3a=_0x515c62;_0x345536['startIndex']>=_0x280a5a&&_0x345536[_0x56ba3a(0x13c)]<_0x58f904?(_0x345536[_0x56ba3a(0x13c)]+=_0x14524a,_0x345536[_0x56ba3a(0x19f)]+=_0x14524a):_0x345536[_0x56ba3a(0x19f)]>_0x280a5a&&_0x345536[_0x56ba3a(0x19f)]<_0x58f904&&(_0x345536[_0x56ba3a(0x19f)]+=_0x14524a);});}function _0x5f56e4(_0x222f02){'@babel/helpers - typeof';const _0x5750b6=_0x38d82b;return _0x5f56e4=typeof Symbol==_0x5750b6(0x18e)&&typeof Symbol[_0x5750b6(0x156)]==_0x5750b6(0x1cc)?function(_0xfc050a){return typeof _0xfc050a;}:function(_0x1db2a7){const _0x11375e=_0x5750b6;return _0x1db2a7&&typeof Symbol==_0x11375e(0x18e)&&_0x1db2a7[_0x11375e(0x1c3)]===Symbol&&_0x1db2a7!==Symbol['prototype']?_0x11375e(0x1cc):typeof _0x1db2a7;},_0x5f56e4(_0x222f02);}function _0xa7b7f(_0x51ef49,_0x39fa9b){const _0x2f1afe=_0x38d82b;if(_0x5f56e4(_0x51ef49)!=_0x2f1afe(0x138)||!_0x51ef49)return _0x51ef49;var _0x20d970=_0x51ef49[Symbol[_0x2f1afe(0x18f)]];if(_0x20d970!==void 0x0){var _0x2d5a75=_0x20d970['call'](_0x51ef49,_0x39fa9b||'default');if(_0x5f56e4(_0x2d5a75)!='object')return _0x2d5a75;throw TypeError(_0x2f1afe(0x1c2));}return(_0x39fa9b===_0x2f1afe(0x1ce)?String:Number)(_0x51ef49);}function _0x1fa7fa(_0x1dc152){const _0x47e81a=_0x38d82b;var _0x3a9e8c=_0xa7b7f(_0x1dc152,_0x47e81a(0x1ce));return _0x5f56e4(_0x3a9e8c)=='symbol'?_0x3a9e8c:_0x3a9e8c+'';}function _0x2ae51a(_0x436a89,_0x2d3928,_0x43a190){const _0x1ac903=_0x38d82b;return(_0x2d3928=_0x1fa7fa(_0x2d3928))in _0x436a89?Object[_0x1ac903(0x18b)](_0x436a89,_0x2d3928,{'value':_0x43a190,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x436a89[_0x2d3928]=_0x43a190,_0x436a89;}var _0xccfa88=class extends _0x332156[_0x38d82b(0x148)]{constructor(..._0xc7a6c3){const _0x292b9d=_0x38d82b;super(..._0xc7a6c3),_0x2ae51a(this,_0x292b9d(0x184),new Map()),_0x2ae51a(this,'_change$',new _0x44fccb[(_0x292b9d(0x16c))]()),_0x2ae51a(this,_0x292b9d(0x15b),this[_0x292b9d(0x12e)]['asObservable']());}[_0x38d82b(0x19a)](_0x22b296,_0x4fd5b3){const _0x4a4d0b=_0x38d82b;return _0x10a8b4(this[_0x4a4d0b(0x184)][_0x4a4d0b(0x17e)](_0x22b296))[_0x4a4d0b(0x1cf)][_0x4fd5b3];}[_0x38d82b(0x15a)](_0x36c7e1,_0x5ac507,_0x2aead6){const _0x2f22f7=_0x38d82b;this[_0x2f22f7(0x1c9)](_0x36c7e1,_0x5ac507,_0x47375b(this[_0x2f22f7(0x184)]['get'](_0x36c7e1),_0x5ac507,_0x2aead6));}[_0x38d82b(0x192)](_0x3f44d6,_0x3154cb){const _0x111c1c=_0x38d82b;this[_0x111c1c(0x1c9)](_0x3f44d6,_0x3154cb,_0x1da98e(this[_0x111c1c(0x184)][_0x111c1c(0x17e)](_0x3f44d6),_0x3154cb));}[_0x38d82b(0x147)](_0x2efd88){return _0x10a8b4(this['_resources']['get'](_0x2efd88));}[_0x38d82b(0x169)](_0x5de219,_0x16a016){const _0x4636e8=_0x38d82b;this[_0x4636e8(0x184)][_0x4636e8(0x1b6)](_0x5de219,_0x10a8b4(_0x16a016)),this[_0x4636e8(0x12e)][_0x4636e8(0x1a3)]({'unitId':_0x5de219});}[_0x38d82b(0x166)](_0x32d490){const _0x5ba9a9=_0x38d82b;this[_0x5ba9a9(0x184)]['delete'](_0x32d490),this[_0x5ba9a9(0x12e)]['next']({'unitId':_0x32d490});}['dispose'](){const _0x255e37=_0x38d82b;super['dispose'](),this[_0x255e37(0x184)][_0x255e37(0x163)](),this[_0x255e37(0x12e)][_0x255e37(0x1b9)]();}[_0x38d82b(0x1c9)](_0xc8776d,_0x1333de,_0x5c5325){const _0x49fc2d=_0x38d82b;this[_0x49fc2d(0x184)][_0x49fc2d(0x1b6)](_0xc8776d,_0x5c5325),this[_0x49fc2d(0x12e)][_0x49fc2d(0x1a3)]({'unitId':_0xc8776d,'blockId':_0x1333de});}};let _0x39e9c0={'id':_0x38d82b(0x175),'type':_0x332156['CommandType'][_0x38d82b(0x139)],'handler':_0x53fa09=>{const _0x8ef203=_0x38d82b;let _0x5dddb0=_0x47ee93(_0x53fa09);if(_0x5dddb0)return _0x53fa09[_0x8ef203(0x17e)](_0x332156[_0x8ef203(0x132)])[_0x8ef203(0x1a5)](_0x80518e['id'],{'startOffset':_0x5dddb0[_0x8ef203(0x1bf)],'endOffset':_0x5dddb0[_0x8ef203(0x191)],'unitId':_0x5dddb0[_0x8ef203(0x152)]});let _0x9ea136=_0x34b5c9(_0x53fa09);if(!_0x9ea136)return!0x1;let _0x17cc53=_0x9ea136['startIndex']+0x1;return _0x53fa09[_0x8ef203(0x17e)](_0x332156[_0x8ef203(0x132)])[_0x8ef203(0x1a5)](_0x80518e['id'],{'startOffset':_0x17cc53,'endOffset':_0x17cc53});}},_0x419fa5={'id':_0x38d82b(0x177),'type':_0x332156[_0x38d82b(0x199)]['COMMAND'],'handler':()=>!0x0},_0x80518e={'id':_0x38d82b(0x188),'type':_0x332156[_0x38d82b(0x199)][_0x38d82b(0x139)],'handler':(_0x12ea36,_0x3eb307)=>{const _0x1b89c9=_0x38d82b;var _0xd3ca85,_0x23d4e0,_0x57a82e;let _0x53d23e=_0x327771(_0x12ea36,_0x3eb307==null?void 0x0:_0x3eb307[_0x1b89c9(0x152)]);if(!_0x53d23e)return!0x1;let _0x1501a1=_0x1e8b6e(_0x12ea36),_0x5fad4c=_0x88cbe6({'blockId':(_0xd3ca85=_0x3eb307==null?void 0x0:_0x3eb307[_0x1b89c9(0x1a6)])==null?(0x0,_0x332156[_0x1b89c9(0x1d1)])(0x6):_0xd3ca85,'config':_0x3eb307==null?void 0x0:_0x3eb307['config'],'documentData':_0x53d23e[_0x1b89c9(0x1c8)],'endOffset':(_0x23d4e0=_0x3eb307==null?void 0x0:_0x3eb307[_0x1b89c9(0x191)])==null?_0x1501a1==null?void 0x0:_0x1501a1['endOffset']:_0x23d4e0,'metadata':_0x53d23e[_0x1b89c9(0x1d7)][_0x1b89c9(0x147)](_0x53d23e[_0x1b89c9(0x152)]),'startOffset':(_0x57a82e=_0x3eb307==null?void 0x0:_0x3eb307[_0x1b89c9(0x1bf)])==null?_0x1501a1==null?void 0x0:_0x1501a1[_0x1b89c9(0x1bf)]:_0x57a82e}),_0x5411fc=_0x5730a4(_0x53d23e[_0x1b89c9(0x173)],_0x53d23e[_0x1b89c9(0x152)],_0x53d23e[_0x1b89c9(0x1c8)],_0x5fad4c[_0x1b89c9(0x195)],_0x5fad4c[_0x1b89c9(0x1b3)]);return _0x5411fc&&_0x5fad4c[_0x1b89c9(0x1a1)]&&_0x53d23e[_0x1b89c9(0x1d7)][_0x1b89c9(0x169)](_0x53d23e[_0x1b89c9(0x152)],_0x5fad4c[_0x1b89c9(0x1a1)]),_0x5411fc;}},_0x486e16={'id':_0x38d82b(0x1ac),'type':_0x332156[_0x38d82b(0x199)][_0x38d82b(0x139)],'handler':(_0x5ab53a,_0x526c7a)=>{const _0x390159=_0x38d82b;if(!_0x526c7a)return!0x1;let _0x1b1791=_0x327771(_0x5ab53a,_0x526c7a[_0x390159(0x152)]);if(!_0x1b1791)return!0x1;let _0x3919d2=_0x4e668c({'blockId':_0x526c7a[_0x390159(0x1a6)],'config':_0x526c7a[_0x390159(0x1d8)],'documentData':_0x1b1791[_0x390159(0x1c8)],'metadata':_0x1b1791[_0x390159(0x1d7)]['serialize'](_0x1b1791[_0x390159(0x152)])});return _0x3919d2[_0x390159(0x1a1)]&&_0x1b1791[_0x390159(0x1d7)][_0x390159(0x169)](_0x1b1791[_0x390159(0x152)],_0x3919d2[_0x390159(0x1a1)]),!0x0;}},_0x4a1efd={'id':'docs-code.command.exit','type':_0x332156[_0x38d82b(0x199)][_0x38d82b(0x139)],'handler':(_0x213a6a,_0x289f74)=>{const _0x556666=_0x38d82b;var _0x40eb3d,_0x65f697;let _0x35e877=_0x327771(_0x213a6a,_0x289f74==null?void 0x0:_0x289f74[_0x556666(0x152)]);if(!_0x35e877)return!0x1;let _0x21cfd5=(_0x40eb3d=_0x289f74==null?void 0x0:_0x289f74['cursorOffset'])==null?(_0x65f697=_0x1e8b6e(_0x213a6a))==null?void 0x0:_0x65f697['startOffset']:_0x40eb3d;if(_0x21cfd5==null)return!0x1;let _0x423e85=_0x2b51c6({'cursorOffset':_0x21cfd5,'documentData':_0x35e877['previousDocumentData']});return _0x423e85?_0x5730a4(_0x35e877[_0x556666(0x173)],_0x35e877[_0x556666(0x152)],_0x35e877[_0x556666(0x1c8)],_0x423e85[_0x556666(0x195)],_0x423e85[_0x556666(0x1b3)]):!0x1;}},_0x461698={'id':_0x38d82b(0x1c0),'type':_0x332156[_0x38d82b(0x199)]['COMMAND'],'handler':(_0x40eb9d,_0x21f16d)=>{const _0x5361dd=_0x38d82b;var _0x56ed92,_0x3f1f39;let _0xef61ad=_0x327771(_0x40eb9d,_0x21f16d==null?void 0x0:_0x21f16d['unitId']);if(!_0xef61ad)return!0x1;let _0x2109af=(_0x56ed92=_0x21f16d==null?void 0x0:_0x21f16d[_0x5361dd(0x1b3)])==null?(_0x3f1f39=_0x1e8b6e(_0x40eb9d))==null?void 0x0:_0x3f1f39[_0x5361dd(0x1bf)]:_0x56ed92;if(_0x2109af==null)return!0x1;let _0x356925=_0x22139d({'cursorOffset':_0x2109af,'documentData':_0xef61ad[_0x5361dd(0x1c8)],'paragraphStartIndex':_0x21f16d==null?void 0x0:_0x21f16d[_0x5361dd(0x1bd)]});return _0x356925?_0x5730a4(_0xef61ad[_0x5361dd(0x173)],_0xef61ad[_0x5361dd(0x152)],_0xef61ad[_0x5361dd(0x1c8)],_0x356925[_0x5361dd(0x195)],_0x356925['cursorOffset']):!0x1;}};function _0x327771(_0x739781,_0xa2214f){const _0x359c2c=_0x38d82b;let _0x1a1a32=_0x739781[_0x359c2c(0x17e)](_0x332156[_0x359c2c(0x1b2)]),_0x1d1617=_0xa2214f?_0x1a1a32[_0x359c2c(0x1c5)](_0xa2214f):_0x1a1a32[_0x359c2c(0x179)](_0x332156['UniverInstanceType'][_0x359c2c(0x14f)]);return _0x1d1617?{'commandService':_0x739781['get'](_0x332156[_0x359c2c(0x132)]),'model':_0x739781[_0x359c2c(0x17e)](_0xccfa88),'previousDocumentData':_0x1d1617[_0x359c2c(0x13d)](),'unitId':_0x1d1617[_0x359c2c(0x1a0)]()}:null;}function _0x1e8b6e(_0x258d3d){const _0x1abe29=_0x38d82b;var _0x52ff32;return(_0x52ff32=_0x258d3d[_0x1abe29(0x17e)](_0xf425dd[_0x1abe29(0x16e)])['getTextRanges']())==null?void 0x0:_0x52ff32[0x0];}function _0x47ee93(_0x19dea8){const _0x299a48=_0x38d82b;var _0x98f131;let _0x37ff0e=(_0x98f131=_0x19dea8['get'](_0x332156[_0x299a48(0x1b2)])[_0x299a48(0x179)](_0x332156[_0x299a48(0x160)][_0x299a48(0x14f)]))==null?void 0x0:_0x98f131[_0x299a48(0x1a0)]();try{return _0x19dea8[_0x299a48(0x17e)](_0xf425dd['DocContentInsertService'])['consumeInsertRange'](_0x37ff0e);}catch{return null;}}function _0x34b5c9(_0x1da6fc){const _0x5c8908=_0x38d82b;var _0x56ef8b,_0x338cae,_0xca628;let _0x21618e=_0x1e8b6e(_0x1da6fc);if(!_0x21618e)return null;let _0x3dde25=_0x1da6fc[_0x5c8908(0x17e)](_0x332156[_0x5c8908(0x1b2)])['getCurrentUnitOfType'](_0x332156[_0x5c8908(0x160)][_0x5c8908(0x14f)]),_0x37b642=_0x3dde25==null?void 0x0:_0x3dde25[_0x5c8908(0x17f)]();return _0x37b642?(_0x56ef8b=_0x332156[_0x5c8908(0x15e)][_0x5c8908(0x1d6)]['getParagraphsInRange'](_0x21618e,(_0x338cae=_0x37b642['paragraphs'])==null?[]:_0x338cae,(_0xca628=_0x37b642[_0x5c8908(0x178)])==null?'':_0xca628)[0x0])==null?null:_0x56ef8b:null;}function _0x454b95(_0x180499,_0x3d18c2){const _0x3cdb3c=_0x38d82b;var _0x5e5fa0,_0x2d6d98,_0x156b04,_0x4c7cf2,_0x32e1fd,_0x39dd56,_0x5c1d61,_0x19b144,_0x3deb49,_0x57e75c,_0x2eccc7,_0x36f183,_0x36a606,_0x1804a6,_0x4340f2,_0x4cf05f,_0x46959e,_0x1fb46d;let _0x18228a=_0x332156[_0x3cdb3c(0x193)][_0x3cdb3c(0x1cb)]();return[_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),'dataStream'],(_0x5e5fa0=_0x180499[_0x3cdb3c(0x12b)])==null?void 0x0:_0x5e5fa0[_0x3cdb3c(0x178)],(_0x2d6d98=_0x3d18c2['body'])==null?void 0x0:_0x2d6d98[_0x3cdb3c(0x178)]),_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),_0x3cdb3c(0x171)],(_0x156b04=_0x180499[_0x3cdb3c(0x12b)])==null?void 0x0:_0x156b04[_0x3cdb3c(0x171)],(_0x4c7cf2=_0x3d18c2[_0x3cdb3c(0x12b)])==null?void 0x0:_0x4c7cf2['paragraphs']),_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),_0x3cdb3c(0x17a)],(_0x32e1fd=_0x180499[_0x3cdb3c(0x12b)])==null?void 0x0:_0x32e1fd[_0x3cdb3c(0x17a)],(_0x39dd56=_0x3d18c2[_0x3cdb3c(0x12b)])==null?void 0x0:_0x39dd56[_0x3cdb3c(0x17a)]),_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),'textRuns'],(_0x5c1d61=_0x180499[_0x3cdb3c(0x12b)])==null?void 0x0:_0x5c1d61[_0x3cdb3c(0x19c)],(_0x19b144=_0x3d18c2['body'])==null?void 0x0:_0x19b144[_0x3cdb3c(0x19c)]),_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),_0x3cdb3c(0x14c)],(_0x3deb49=_0x180499[_0x3cdb3c(0x12b)])==null?void 0x0:_0x3deb49[_0x3cdb3c(0x14c)],(_0x57e75c=_0x3d18c2[_0x3cdb3c(0x12b)])==null?void 0x0:_0x57e75c[_0x3cdb3c(0x14c)]),_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),_0x3cdb3c(0x15d)],(_0x2eccc7=_0x180499['body'])==null?void 0x0:_0x2eccc7['customRanges'],(_0x36f183=_0x3d18c2[_0x3cdb3c(0x12b)])==null?void 0x0:_0x36f183['customRanges']),_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),_0x3cdb3c(0x174)],(_0x36a606=_0x180499[_0x3cdb3c(0x12b)])==null?void 0x0:_0x36a606['customDecorations'],(_0x1804a6=_0x3d18c2[_0x3cdb3c(0x12b)])==null?void 0x0:_0x1804a6['customDecorations']),_0x52e30b(_0x18228a,['body',_0x3cdb3c(0x1d4)],(_0x4340f2=_0x180499[_0x3cdb3c(0x12b)])==null?void 0x0:_0x4340f2['tables'],(_0x4cf05f=_0x3d18c2[_0x3cdb3c(0x12b)])==null?void 0x0:_0x4cf05f[_0x3cdb3c(0x1d4)]),_0x52e30b(_0x18228a,[_0x3cdb3c(0x12b),_0x3cdb3c(0x13a)],(_0x46959e=_0x180499['body'])==null?void 0x0:_0x46959e['blockRanges'],(_0x1fb46d=_0x3d18c2[_0x3cdb3c(0x12b)])==null?void 0x0:_0x1fb46d[_0x3cdb3c(0x13a)])][_0x3cdb3c(0x165)](Boolean)[_0x3cdb3c(0x14a)]((_0x2edcff,_0x4e02d5)=>_0x332156[_0x3cdb3c(0x193)][_0x3cdb3c(0x14e)](_0x2edcff,_0x4e02d5),null);}function _0x52e30b(_0x229cea,_0x38537d,_0xda58c6,_0x253118){const _0x4b230b=_0x38d82b;return _0x332156['Tools']['diffValue'](_0xda58c6,_0x253118)?null:_0x229cea[_0x4b230b(0x161)](_0x38537d,_0xda58c6,_0x253118);}function _0x5730a4(_0x19376e,_0x370353,_0x3f18e4,_0x4e5302,_0x25a352){const _0xb2e7d7=_0x38d82b;let _0x109145=_0x454b95(_0x3f18e4,_0x4e5302);return _0x109145?!!_0x19376e[_0xb2e7d7(0x1a5)](_0xf425dd[_0xb2e7d7(0x198)]['id'],{'unitId':_0x370353,'actions':_0x109145,'textRanges':[{'startOffset':_0x25a352,'endOffset':_0x25a352,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x5d8f85=_0x38d82b(0x15f);var _0x541ebe=_0x38d82b(0x19d),_0xd1413=_0x38d82b(0x12c);let _0x187791={};function _0x9a43df(_0x1fe37b,_0x39d643){return function(_0x4903d4,_0x36e620){_0x39d643(_0x4903d4,_0x36e620,_0x1fe37b);};}function _0x40b0c1(_0x2ec60b,_0x4b9a88,_0x3fa550,_0xc21981){const _0x596739=_0x38d82b;var _0x531e3b=arguments[_0x596739(0x194)],_0x620d0b=_0x531e3b<0x3?_0x4b9a88:_0xc21981===null?_0xc21981=Object[_0x596739(0x1ab)](_0x4b9a88,_0x3fa550):_0xc21981,_0x3804ca;if(typeof Reflect==_0x596739(0x138)&&typeof Reflect['decorate']==_0x596739(0x18e))_0x620d0b=Reflect['decorate'](_0x2ec60b,_0x4b9a88,_0x3fa550,_0xc21981);else{for(var _0x1ae446=_0x2ec60b[_0x596739(0x194)]-0x1;_0x1ae446>=0x0;_0x1ae446--)(_0x3804ca=_0x2ec60b[_0x1ae446])&&(_0x620d0b=(_0x531e3b<0x3?_0x3804ca(_0x620d0b):_0x531e3b>0x3?_0x3804ca(_0x4b9a88,_0x3fa550,_0x620d0b):_0x3804ca(_0x4b9a88,_0x3fa550))||_0x620d0b);}return _0x531e3b>0x3&&_0x620d0b&&Object[_0x596739(0x18b)](_0x4b9a88,_0x3fa550,_0x620d0b),_0x620d0b;}let _0x67d7ed=class extends _0x332156[_0x38d82b(0x148)]{constructor(_0x521230,_0x135de8){const _0x1b3664=_0x38d82b;super(),this[_0x1b3664(0x18a)]=_0x521230,this['_docsCodeModel']=_0x135de8,this['_initResource']();}[_0x38d82b(0x12f)](){const _0x236a4f=_0x38d82b;this[_0x236a4f(0x1b1)](this[_0x236a4f(0x18a)]['registerPluginResource']({'pluginName':_0x5d8f85,'businesses':[_0x332156[_0x236a4f(0x160)][_0x236a4f(0x14f)]],'toJson':_0x11bc97=>JSON[_0x236a4f(0x190)](this[_0x236a4f(0x149)][_0x236a4f(0x147)](_0x11bc97)),'parseJson':_0x1e026f=>_0x10a8b4(JSON[_0x236a4f(0x16d)](_0x1e026f)),'onLoad':(_0x5af5b7,_0x39f901)=>this[_0x236a4f(0x149)][_0x236a4f(0x169)](_0x5af5b7,_0x39f901),'onUnLoad':_0x3f7546=>this[_0x236a4f(0x149)][_0x236a4f(0x166)](_0x3f7546)}));}};_0x67d7ed=_0x40b0c1([_0x9a43df(0x0,_0x332156['IResourceManagerService']),_0x9a43df(0x1,(0x0,_0x332156[_0x38d82b(0x135)])(_0xccfa88))],_0x67d7ed);let _0x7224c9=class extends _0x332156[_0x38d82b(0x1b0)]{constructor(_0xb7f7db=_0x187791,_0x3569c1,_0x4b379b,_0x524edc){const _0x102113=_0x38d82b;super(),this[_0x102113(0x141)]=_0xb7f7db,this['_injector']=_0x3569c1,this[_0x102113(0x187)]=_0x4b379b,this['_configService']=_0x524edc;let {..._0x126c90}=(0x0,_0x332156[_0x102113(0x1b4)])({},_0x187791,this['_config']);this[_0x102113(0x1a9)][_0x102113(0x162)](_0x102113(0x1a4),_0x126c90);}[_0x38d82b(0x14d)](){const _0x4039ec=_0x38d82b;this[_0x4039ec(0x183)]['add']([_0xccfa88]),this[_0x4039ec(0x183)][_0x4039ec(0x12a)]([_0x67d7ed]),this[_0x4039ec(0x183)]['get'](_0xccfa88),this[_0x4039ec(0x183)]['get'](_0x67d7ed),[_0x80518e,_0x39e9c0,_0x486e16,_0x4a1efd,_0x461698,_0x419fa5]['forEach'](_0x11fe92=>this[_0x4039ec(0x1b1)](this[_0x4039ec(0x187)]['registerCommand'](_0x11fe92)));}};_0x2ae51a(_0x7224c9,_0x38d82b(0x14b),_0x5d8f85),_0x2ae51a(_0x7224c9,_0x38d82b(0x151),_0x541ebe),_0x2ae51a(_0x7224c9,_0x38d82b(0x143),_0xd1413),_0x2ae51a(_0x7224c9,_0x38d82b(0x19e),_0x332156[_0x38d82b(0x160)][_0x38d82b(0x14f)]),_0x7224c9=_0x40b0c1([(0x0,_0x332156[_0x38d82b(0x158)])(_0x5c6db2[_0x38d82b(0x159)],_0xf425dd['UniverDocsPlugin']),_0x9a43df(0x1,(0x0,_0x332156['Inject'])(_0x332156[_0x38d82b(0x1a7)])),_0x9a43df(0x2,_0x332156['ICommandService']),_0x9a43df(0x3,_0x332156['IConfigService'])],_0x7224c9),_0x46a255[_0x38d82b(0x13b)]=_0x1b28d6,_0x46a255[_0x38d82b(0x155)]=_0x5d8f85,_0x46a255[_0x38d82b(0x1d0)]=_0x461698,_0x46a255['DocsCodeConsumeBoundaryDeleteCommand']=_0x419fa5,_0x46a255[_0x38d82b(0x16b)]=_0x4a1efd,_0x46a255[_0x38d82b(0x12d)]=_0x39e9c0,_0x46a255[_0x38d82b(0x167)]=_0x80518e,_0x46a255['DocsCodeModel']=_0xccfa88,_0x46a255[_0x38d82b(0x1b5)]=_0x486e16,Object[_0x38d82b(0x18b)](_0x46a255,_0x38d82b(0x130),{'enumerable':!0x0,'get':function(){return _0x7224c9;}}),_0x46a255[_0x38d82b(0x1a8)]=_0x22139d,_0x46a255[_0x38d82b(0x1b7)]=_0x2b51c6,_0x46a255[_0x38d82b(0x1ae)]=_0x88cbe6,_0x46a255[_0x38d82b(0x144)]=_0x4e668c,_0x46a255[_0x38d82b(0x134)]=_0x6c9c68,_0x46a255[_0x38d82b(0x129)]=_0x443e0a,_0x46a255[_0x38d82b(0x1a2)]=_0x2e904e;}));function _0x499a(_0x183675,_0xbbcf7c){_0x183675=_0x183675-0x128;const _0x35f8da=_0x35f8();let _0x499aa2=_0x35f8da[_0x183675];return _0x499aa2;}function _0x35f8(){const _0x2d3db2=['getOwnPropertyDescriptor','docs-code.command.update','18VMQrIJ','buildInsertCodeActions','BLOCK_START','Plugin','disposeWithMe','IUniverInstanceService','cursorOffset','merge','DocsCodeUpdateCommand','set','buildExitCodeActions','UniverCore','complete','DocumentBlockRangeType','map','1124407izsJXg','paragraphStartIndex','PARAGRAPH','startOffset','docs-code.command.cancel-empty-paragraph','paragraphId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','constructor','UniverProDocsCode','getUniverDocInstance','sort','indentStart','previousDocumentData','_setResource','metadata','getInstance','symbol','Document\x20body\x20is\x20required','string','codes','DocsCodeCancelEmptyParagraphCommand','generateRandomId','6912724uswNYA','toStringTag','tables','228OcraWj','range','model','config','some','spaceAbove','isCodeBoundaryDelete','add','body','0.25.0-insiders.20260613-5ff0e1f','DocsCodeInsertBelowCommand','_change$','_initResource','UniverDocsCodePlugin','slice','ICommandService','paragraph','findCodeRangeAtOffset','Inject','paragraphStyle','entries','object','COMMAND','blockRanges','DEFAULT_CODE_CONFIG','startIndex','getSnapshot','left','208790WFStQG','right','_config','direction','version','buildUpdateCodeActions','DataStreamTreeTokenType','CODE','serialize','Disposable','_docsCodeModel','reduce','pluginName','customBlocks','onStarting','compose','UNIVER_DOC','1128483kWjuRa','packageName','unitId','Module','945460PGmUOe','DOCS_CODE_PLUGIN','iterator','deepClone','DependentOn','UniverLicensePlugin','setCodeConfig','change$','rxjs','customRanges','BuildTextUtils','DOC_CODE_PLUGIN','UniverInstanceType','replaceOp','setConfig','clear','max','filter','removeUnit','DocsCodeInsertCommand','forEach','deserialize','indentEnd','DocsCodeExitCommand','Subject','parse','DocSelectionManagerService','SECTION_BREAK','blockType','paragraphs','11WtWZTm','commandService','customDecorations','docs-code.command.insert-below','endsWith','docs-code.command.consume-boundary-delete','dataStream','getCurrentUnitOfType','sectionBreaks','fromEntries','createParagraphId','176835YeZQSq','get','getBody','find','spaceBelow','BLOCK_END','_injector','_resources','exports','@univerjs/core','_commandService','docs-code.command.insert','Tools','_resourceManagerService','defineProperty','every','documentData','function','toPrimitive','stringify','endOffset','removeCode','JSONX','length','nextDocumentData','min','12LhMext','RichTextEditingMutation','CommandType','getCodeConfig','4752712UUegjJ','textRuns','@univerjs-pro/docs-code','type','endIndex','getUnitId','nextMetadata','normalizeDocsCodeConfig','next','docs-code.config','syncExecuteCommand','blockId','Injector','buildCancelEmptyCodeParagraphActions','_configService','textStyle'];_0x35f8=function(){return _0x2d3db2;};return _0x35f8();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "0.25.0-insiders.20260604-29ebbff",
3
+ "version": "0.25.0-insiders.20260613-5ff0e1f",
4
4
  "private": false,
5
5
  "description": "Code block model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,14 +61,14 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs/core": "0.25.0-insiders.20260604-29ebbff",
65
- "@univerjs/docs": "0.25.0-insiders.20260604-29ebbff",
66
- "@univerjs-pro/license": "0.25.0-insiders.20260604-29ebbff"
64
+ "@univerjs-pro/license": "0.25.0-insiders.20260613-5ff0e1f",
65
+ "@univerjs/core": "0.25.0-insiders.20260613-5ff0e1f",
66
+ "@univerjs/docs": "0.25.0-insiders.20260613-5ff0e1f"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
- "vitest": "^4.1.7",
71
+ "vitest": "^4.1.8",
72
72
  "@univerjs-infra/shared": "0.25.0"
73
73
  },
74
74
  "scripts": {