@univerjs-pro/docs-code 1.0.0-alpha.0 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x69c23e=_0x19b1;(function(_0xc996,_0x4ca4a3){var _0x2c439f=_0x19b1,_0x5e3c2b=_0xc996();while(!![]){try{var _0x51e1a5=-parseInt(_0x2c439f(0x76))/0x1+parseInt(_0x2c439f(0xa7))/0x2*(-parseInt(_0x2c439f(0xb9))/0x3)+-parseInt(_0x2c439f(0xbc))/0x4+-parseInt(_0x2c439f(0x81))/0x5+parseInt(_0x2c439f(0xad))/0x6+parseInt(_0x2c439f(0x8c))/0x7+-parseInt(_0x2c439f(0xae))/0x8*(-parseInt(_0x2c439f(0xc4))/0x9);if(_0x51e1a5===_0x4ca4a3)break;else _0x5e3c2b['push'](_0x5e3c2b['shift']());}catch(_0xb40b44){_0x5e3c2b['push'](_0x5e3c2b['shift']());}}}(_0x5f51,0x3a03a),Object[_0x69c23e(0x73)](exports,Symbol[_0x69c23e(0xb4)],{'value':_0x69c23e(0xa0)}));function _0x19b1(_0x47f5f4,_0x524dec){_0x47f5f4=_0x47f5f4-0x72;var _0x5f519c=_0x5f51();var _0x19b164=_0x5f519c[_0x47f5f4];return _0x19b164;}let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x5b8511){'@babel/helpers - typeof';var _0x5722f2=_0x69c23e;return r=typeof Symbol==_0x5722f2(0xb6)&&typeof Symbol[_0x5722f2(0xb7)]==_0x5722f2(0x86)?function(_0x3ce7bd){return typeof _0x3ce7bd;}:function(_0x5c0a7d){var _0x4cff71=_0x5722f2;return _0x5c0a7d&&typeof Symbol=='function'&&_0x5c0a7d[_0x4cff71(0x7c)]===Symbol&&_0x5c0a7d!==Symbol['prototype']?_0x4cff71(0x86):typeof _0x5c0a7d;},r(_0x5b8511);}function i(_0x2046b0,_0x5bec79){var _0x15fa56=_0x69c23e;if(r(_0x2046b0)!=_0x15fa56(0x8d)||!_0x2046b0)return _0x2046b0;var _0x1988d5=_0x2046b0[Symbol[_0x15fa56(0x8e)]];if(_0x1988d5!==void 0x0){var _0x475544=_0x1988d5[_0x15fa56(0xc0)](_0x2046b0,_0x5bec79||_0x15fa56(0xa5));if(r(_0x475544)!=_0x15fa56(0x8d))return _0x475544;throw TypeError(_0x15fa56(0x88));}return(_0x5bec79===_0x15fa56(0x8b)?String:Number)(_0x2046b0);}function a(_0x5e905e){var _0x392281=_0x69c23e,_0x17753b=i(_0x5e905e,_0x392281(0x8b));return r(_0x17753b)==_0x392281(0x86)?_0x17753b:_0x17753b+'';}function o(_0x278e09,_0x28d57a,_0x4b1ee4){var _0x1b2ecc=_0x69c23e;return(_0x28d57a=a(_0x28d57a))in _0x278e09?Object[_0x1b2ecc(0x73)](_0x278e09,_0x28d57a,{'value':_0x4b1ee4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x278e09[_0x28d57a]=_0x4b1ee4,_0x278e09;}function s(_0x21d84a,_0x255ca5){return function(_0x1878a7,_0x8efcb9){_0x255ca5(_0x1878a7,_0x8efcb9,_0x21d84a);};}function _0x5f51(){var _0x2e2bdc=['_getBlockRanges','updateConfig','_document','find','some','DocsCodeExitCommand','blockType','startIndex','exitCode','Module','ICommandService','slice','getText','DocsCodeInsertCommand','default','text','6ZmrfCF','endIndex','map','PARAGRAPH','findCodes','describe','2445738xcnmoR','8vvQCvh','DocsCodeUpdateCommand','exit','getType','BLOCK_START','CODE','toStringTag','_createFDocumentCode','function','iterator','getRange','374823UuewSm','DataStreamTreeTokenType','blockId','1679040lfZdLF','BLOCK_END','body','_unitId','call','decorate','insertCode','getConfig','10860354oTnhbt','getId','defineProperty','length','FDocument','429918lAOKHH','_getBlockRange','getCode','config','findCodeByText','Inject','constructor','includes','getKey','_injector','Injector','2336085DcdndC','paragraph','_blockId','syncExecuteCommand','DocsCodeModel','symbol','_getDocumentData','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','FDocumentCode','extend','string','2205105MSrVkX','object','toPrimitive','normalizeDocsCodeConfig','get','DocumentBlockRangeType','filter','from','DocsCodeCancelEmptyParagraphCommand','getOwnPropertyDescriptor','dataStream'];_0x5f51=function(){return _0x2e2bdc;};return _0x5f51();}function c(_0x3bf6cc,_0x2ebb52,_0x250a06,_0x502445){var _0x309e2d=_0x69c23e,_0x58e231=arguments[_0x309e2d(0x74)],_0x28a5c9=_0x58e231<0x3?_0x2ebb52:_0x502445===null?_0x502445=Object[_0x309e2d(0x95)](_0x2ebb52,_0x250a06):_0x502445,_0x4db71f;if(typeof Reflect==_0x309e2d(0x8d)&&typeof Reflect['decorate']==_0x309e2d(0xb6))_0x28a5c9=Reflect[_0x309e2d(0xc1)](_0x3bf6cc,_0x2ebb52,_0x250a06,_0x502445);else{for(var _0x47de0c=_0x3bf6cc[_0x309e2d(0x74)]-0x1;_0x47de0c>=0x0;_0x47de0c--)(_0x4db71f=_0x3bf6cc[_0x47de0c])&&(_0x28a5c9=(_0x58e231<0x3?_0x4db71f(_0x28a5c9):_0x58e231>0x3?_0x4db71f(_0x2ebb52,_0x250a06,_0x28a5c9):_0x4db71f(_0x2ebb52,_0x250a06))||_0x28a5c9);}return _0x58e231>0x3&&_0x28a5c9&&Object[_0x309e2d(0x73)](_0x2ebb52,_0x250a06,_0x28a5c9),_0x28a5c9;}let l=class{constructor(_0x3cf57a,_0x216db1,_0x318f74){var _0x5bbd2c=_0x69c23e;this['_document']=_0x3cf57a,this[_0x5bbd2c(0x83)]=_0x216db1,this[_0x5bbd2c(0x7f)]=_0x318f74,o(this,_0x5bbd2c(0xbf),void 0x0),this[_0x5bbd2c(0xbf)]=this[_0x5bbd2c(0x99)][_0x5bbd2c(0x72)]();}[_0x69c23e(0x72)](){var _0x21e073=_0x69c23e;return this[_0x21e073(0x83)];}[_0x69c23e(0xb8)](){var _0x48bc6f=_0x69c23e;let _0x46b8b3=this[_0x48bc6f(0x77)]();return _0x46b8b3?{'blockId':_0x46b8b3[_0x48bc6f(0xbb)],'endIndex':_0x46b8b3[_0x48bc6f(0xa8)],'startIndex':_0x46b8b3[_0x48bc6f(0x9e)]}:null;}[_0x69c23e(0xa3)](){var _0x5b4423=_0x69c23e,_0x1ed21d;let _0x3cd4f9=this[_0x5b4423(0x77)](),_0x358f8e=(_0x1ed21d=this[_0x5b4423(0x87)]()[_0x5b4423(0xbe)])==null?void 0x0:_0x1ed21d[_0x5b4423(0x96)];return!_0x3cd4f9||!_0x358f8e?'':u(_0x358f8e[_0x5b4423(0xa2)](_0x3cd4f9['startIndex']+0x1,_0x3cd4f9[_0x5b4423(0xa8)]));}[_0x69c23e(0xac)](){var _0x5037af=_0x69c23e;let _0x4706b6=this['getRange']();return _0x4706b6?{..._0x4706b6,'config':this['getConfig'](),'text':this['getText'](),'type':t['DocumentBlockRangeType'][_0x5037af(0xb3)]}:null;}[_0x69c23e(0xc3)](){var _0xef54d5=_0x69c23e;return(0x0,e[_0xef54d5(0x8f)])(this[_0xef54d5(0x7f)][_0xef54d5(0x90)](e[_0xef54d5(0x85)])['getCodeConfig'](this[_0xef54d5(0xbf)],this[_0xef54d5(0x83)]));}[_0x69c23e(0x98)](_0xf8f0bc){var _0x2c7aba=_0x69c23e;return this[_0x2c7aba(0x7f)][_0x2c7aba(0x90)](t[_0x2c7aba(0xa1)])[_0x2c7aba(0x84)](e[_0x2c7aba(0xaf)]['id'],{'blockId':this['_blockId'],'config':_0xf8f0bc[_0x2c7aba(0x79)],'unitId':this[_0x2c7aba(0xbf)]});}[_0x69c23e(0xb0)](_0x3f0ffb){var _0x3c383b=_0x69c23e;return this[_0x3c383b(0x7f)][_0x3c383b(0x90)](t['ICommandService'])['syncExecuteCommand'](e[_0x3c383b(0x9c)]['id'],{'cursorOffset':_0x3f0ffb,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x2c9be8={}){var _0x1e7401=_0x69c23e;return this[_0x1e7401(0x7f)][_0x1e7401(0x90)](t['ICommandService'])[_0x1e7401(0x84)](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x2c9be8,'unitId':this['_unitId']});}['_getDocumentData'](){var _0x1cbccb=_0x69c23e;return this[_0x1cbccb(0x99)]['save']();}['_getBlockRange'](){var _0x1d551e=_0x69c23e,_0x2a1e80;let _0x168fca=(_0x2a1e80=this[_0x1d551e(0x87)]()['body'])==null||(_0x2a1e80=_0x2a1e80['blockRanges'])==null?void 0x0:_0x2a1e80[_0x1d551e(0x9a)](_0x53b6a3=>_0x53b6a3[_0x1d551e(0xbb)]===this['_blockId']&&_0x53b6a3[_0x1d551e(0x9d)]===t['DocumentBlockRangeType'][_0x1d551e(0xb3)]);return _0x168fca==null?null:_0x168fca;}};l=c([s(0x2,(0x0,t[_0x69c23e(0x7b)])(t[_0x69c23e(0x80)]))],l);function u(_0x5327e9){var _0x32bfaf=_0x69c23e;return Array[_0x32bfaf(0x93)](_0x5327e9)[_0x32bfaf(0xa9)](_0x3cd969=>_0x3cd969===t[_0x32bfaf(0xba)][_0x32bfaf(0xaa)]?'\x0a':_0x3cd969)[_0x32bfaf(0x92)](_0x35317d=>_0x35317d!==t['DataStreamTreeTokenType'][_0x32bfaf(0xb2)]&&_0x35317d!==t[_0x32bfaf(0xba)][_0x32bfaf(0xbd)]&&_0x35317d!==t[_0x32bfaf(0xba)]['SECTION_BREAK'])['join']('')['replace'](/\n$/,'');}var d=class extends n[_0x69c23e(0x75)]{['getCodes'](){var _0x4fcaee=_0x69c23e;return this[_0x4fcaee(0x97)]()['filter'](_0x24b930=>_0x24b930['blockType']===t[_0x4fcaee(0x91)][_0x4fcaee(0xb3)])['map'](_0x58a3cc=>this[_0x4fcaee(0xb5)](_0x58a3cc[_0x4fcaee(0xbb)]));}[_0x69c23e(0x78)](_0x3da57c){var _0x42a5fa=_0x69c23e;return this['_getBlockRanges']()[_0x42a5fa(0x9b)](_0x1aa3ba=>_0x1aa3ba['blockId']===_0x3da57c&&_0x1aa3ba[_0x42a5fa(0x9d)]===t[_0x42a5fa(0x91)][_0x42a5fa(0xb3)])?this[_0x42a5fa(0xb5)](_0x3da57c):null;}['getCodeAt'](_0x43fe61){var _0x15f9af=_0x69c23e;let _0x3fb4f9=this[_0x15f9af(0x97)]()[_0x15f9af(0x9a)](_0x29ae8b=>_0x29ae8b[_0x15f9af(0x9d)]===t['DocumentBlockRangeType'][_0x15f9af(0xb3)]&&_0x29ae8b[_0x15f9af(0x9e)]<=_0x43fe61&&_0x43fe61<=_0x29ae8b[_0x15f9af(0xa8)]);return _0x3fb4f9?this['_createFDocumentCode'](_0x3fb4f9['blockId']):null;}[_0x69c23e(0x7a)](_0x3a5ad6){var _0x4d004d=_0x69c23e,_0x2619cf;return(_0x2619cf=this[_0x4d004d(0xab)](_0x3a5ad6)[0x0])==null?null:_0x2619cf;}['findCodes'](_0x451a34){var _0x130372=_0x69c23e;let _0x139fe8=typeof _0x451a34==_0x130372(0x8b)?{'text':_0x451a34}:_0x451a34;return this['getCodes']()[_0x130372(0x92)](_0x5ac0af=>!(_0x139fe8[_0x130372(0xbb)]&&_0x5ac0af[_0x130372(0x72)]()!==_0x139fe8['blockId']||_0x139fe8[_0x130372(0xa6)]&&!_0x5ac0af[_0x130372(0xa3)]()[_0x130372(0x7d)](_0x139fe8['text'])));}[_0x69c23e(0xc2)](_0x25c6f0={},_0x290113={}){var _0x23acb6=_0x69c23e,_0x5aa632;let _0x57e559=this['_injector'][_0x23acb6(0x90)](t[_0x23acb6(0xa1)]),_0x29bfbe=f(_0x25c6f0)?{..._0x290113,...p(_0x25c6f0)}:_0x25c6f0,_0x59044c=(_0x5aa632=_0x29bfbe[_0x23acb6(0xbb)])==null?(0x0,t['generateRandomId'])(0x6):_0x5aa632;return _0x57e559[_0x23acb6(0x84)](e[_0x23acb6(0xa4)]['id'],{..._0x29bfbe,'blockId':_0x59044c,'unitId':this[_0x23acb6(0x72)]()})?this[_0x23acb6(0xb5)](_0x59044c):null;}[_0x69c23e(0x9f)](_0x1e5bdd){var _0x4e88b8=_0x69c23e;return this['_injector'][_0x4e88b8(0x90)](t[_0x4e88b8(0xa1)])[_0x4e88b8(0x84)](e[_0x4e88b8(0x9c)]['id'],{'cursorOffset':_0x1e5bdd,'unitId':this['getId']()});}['cancelEmptyCodeParagraph'](_0x43d9f9={}){var _0xf8a046=_0x69c23e;return this[_0xf8a046(0x7f)]['get'](t[_0xf8a046(0xa1)])[_0xf8a046(0x84)](e[_0xf8a046(0x94)]['id'],{..._0x43d9f9,'unitId':this[_0xf8a046(0x72)]()});}['_getBlockRanges'](){var _0x514bf0=_0x69c23e,_0x9bfd97,_0x323fe1;return(_0x9bfd97=(_0x323fe1=this['save']()[_0x514bf0(0xbe)])==null?void 0x0:_0x323fe1['blockRanges'])==null?[]:_0x9bfd97;}[_0x69c23e(0xb5)](_0x4bd377){var _0x165120=_0x69c23e;return this[_0x165120(0x7f)]['createInstance'](l,this,_0x4bd377);}};function f(_0x4f6593){var _0x115f75=_0x69c23e;return typeof _0x4f6593==_0x115f75(0x8d)&&!!_0x4f6593&&typeof _0x4f6593[_0x115f75(0x7e)]=='function'&&typeof _0x4f6593[_0x115f75(0xb8)]==_0x115f75(0xb6)&&typeof _0x4f6593[_0x115f75(0xb1)]==_0x115f75(0xb6)&&_0x4f6593[_0x115f75(0xb1)]()===_0x115f75(0x82);}function p(_0x96bfa2){var _0x27c0af=_0x69c23e;return _0x96bfa2[_0x27c0af(0xb8)]();}n['FDocument'][_0x69c23e(0x8a)](d),Object['defineProperty'](exports,_0x69c23e(0x89),{'enumerable':!0x0,'get':function(){return l;}});
|
|
1
|
+
var _0xcc822a=_0x3d5d;(function(_0x16c708,_0x49b662){var _0x5462f8=_0x3d5d,_0x5009a4=_0x16c708();while(!![]){try{var _0x24a2f2=parseInt(_0x5462f8(0x1e7))/0x1+parseInt(_0x5462f8(0x1d5))/0x2*(-parseInt(_0x5462f8(0x1d9))/0x3)+-parseInt(_0x5462f8(0x213))/0x4+-parseInt(_0x5462f8(0x1cd))/0x5+-parseInt(_0x5462f8(0x1e4))/0x6+parseInt(_0x5462f8(0x1d0))/0x7*(parseInt(_0x5462f8(0x1e5))/0x8)+parseInt(_0x5462f8(0x1d8))/0x9;if(_0x24a2f2===_0x49b662)break;else _0x5009a4['push'](_0x5009a4['shift']());}catch(_0x12021d){_0x5009a4['push'](_0x5009a4['shift']());}}}(_0x41a6,0x9a363),Object[_0xcc822a(0x1ce)](exports,Symbol[_0xcc822a(0x202)],{'value':_0xcc822a(0x20f)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x401ed1){'@babel/helpers - typeof';var _0x3bbb65=_0xcc822a;return r=typeof Symbol=='function'&&typeof Symbol[_0x3bbb65(0x211)]==_0x3bbb65(0x214)?function(_0x4c7456){return typeof _0x4c7456;}:function(_0x346c57){var _0x588260=_0x3bbb65;return _0x346c57&&typeof Symbol==_0x588260(0x20b)&&_0x346c57[_0x588260(0x216)]===Symbol&&_0x346c57!==Symbol[_0x588260(0x1f0)]?_0x588260(0x214):typeof _0x346c57;},r(_0x401ed1);}function _0x41a6(){var _0x561c89=['includes','normalizeDocsCodeConfig','replace','DocsCodeExitCommand','find','_getDocumentData','PARAGRAPH','function','join','from','getText','Module','DocumentBlockRangeType','iterator','DataStreamTreeTokenType','2554812xuCiEI','symbol','endIndex','constructor','_createFDocumentCode','getRange','getCodes','blockRanges','generateRandomId','getOwnPropertyDescriptor','paragraph','exit','_getBlockRanges','createInstance','3434615dAABsA','defineProperty','body','30282cKduHa','CODE','object','BLOCK_START','map','10eAhCph','_document','save','19454391GwSkbt','693813GZsKtC','startIndex','decorate','DocsCodeUpdateCommand','syncExecuteCommand','toPrimitive','getConfig','updateConfig','blockType','DocsCodeCancelEmptyParagraphCommand','call','971868IISoNx','24usxDEd','config','1101033ZqbUKR','_injector','getType','_blockId','blockId','some','getId','ICommandService','filter','prototype','_getBlockRange','cancelEmptyCodeParagraph','Inject','DocsCodeInsertCommand','cancelEmptyParagraph','default','describe','findCodes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','text','string','DocsCodeModel','extend','get','length','_unitId','getCode','toStringTag','BLOCK_END'];_0x41a6=function(){return _0x561c89;};return _0x41a6();}function _0x3d5d(_0x3ce71b,_0x1df05f){_0x3ce71b=_0x3ce71b-0x1c8;var _0x41a642=_0x41a6();var _0x3d5d23=_0x41a642[_0x3ce71b];return _0x3d5d23;}function i(_0x48af18,_0x414e5c){var _0x50ab8c=_0xcc822a;if(r(_0x48af18)!=_0x50ab8c(0x1d2)||!_0x48af18)return _0x48af18;var _0x1dc945=_0x48af18[Symbol[_0x50ab8c(0x1de)]];if(_0x1dc945!==void 0x0){var _0x35f36b=_0x1dc945[_0x50ab8c(0x1e3)](_0x48af18,_0x414e5c||_0x50ab8c(0x1f6));if(r(_0x35f36b)!=_0x50ab8c(0x1d2))return _0x35f36b;throw TypeError(_0x50ab8c(0x1f9));}return(_0x414e5c==='string'?String:Number)(_0x48af18);}function a(_0x30635e){var _0xe27b05=_0xcc822a,_0x2ed3fa=i(_0x30635e,_0xe27b05(0x1fb));return r(_0x2ed3fa)=='symbol'?_0x2ed3fa:_0x2ed3fa+'';}function o(_0x528a54,_0x4cfdb3,_0x3d5dac){var _0x5eb1a9=_0xcc822a;return(_0x4cfdb3=a(_0x4cfdb3))in _0x528a54?Object[_0x5eb1a9(0x1ce)](_0x528a54,_0x4cfdb3,{'value':_0x3d5dac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x528a54[_0x4cfdb3]=_0x3d5dac,_0x528a54;}function s(_0x402d6f,_0x17363d){return function(_0x3e24b6,_0x412a9f){_0x17363d(_0x3e24b6,_0x412a9f,_0x402d6f);};}function c(_0x1ab11b,_0x217ac6,_0x35a754,_0x5df38b){var _0x5ecdd6=_0xcc822a,_0x474191=arguments[_0x5ecdd6(0x1ff)],_0x493146=_0x474191<0x3?_0x217ac6:_0x5df38b===null?_0x5df38b=Object[_0x5ecdd6(0x1c8)](_0x217ac6,_0x35a754):_0x5df38b,_0x5776c5;if(typeof Reflect==_0x5ecdd6(0x1d2)&&typeof Reflect[_0x5ecdd6(0x1db)]==_0x5ecdd6(0x20b))_0x493146=Reflect['decorate'](_0x1ab11b,_0x217ac6,_0x35a754,_0x5df38b);else{for(var _0x2ea717=_0x1ab11b[_0x5ecdd6(0x1ff)]-0x1;_0x2ea717>=0x0;_0x2ea717--)(_0x5776c5=_0x1ab11b[_0x2ea717])&&(_0x493146=(_0x474191<0x3?_0x5776c5(_0x493146):_0x474191>0x3?_0x5776c5(_0x217ac6,_0x35a754,_0x493146):_0x5776c5(_0x217ac6,_0x35a754))||_0x493146);}return _0x474191>0x3&&_0x493146&&Object[_0x5ecdd6(0x1ce)](_0x217ac6,_0x35a754,_0x493146),_0x493146;}let l=class{constructor(_0xb5937d,_0x3dd9e0,_0x217bc4){var _0xd35042=_0xcc822a;this[_0xd35042(0x1d6)]=_0xb5937d,this['_blockId']=_0x3dd9e0,this[_0xd35042(0x1e8)]=_0x217bc4,o(this,'_unitId',void 0x0),this[_0xd35042(0x200)]=this[_0xd35042(0x1d6)][_0xd35042(0x1ed)]();}[_0xcc822a(0x1ed)](){var _0x3f9694=_0xcc822a;return this[_0x3f9694(0x1ea)];}['getRange'](){var _0x15a43f=_0xcc822a;let _0x5c5cc4=this[_0x15a43f(0x1f1)]();return _0x5c5cc4?{'blockId':_0x5c5cc4[_0x15a43f(0x1eb)],'endIndex':_0x5c5cc4[_0x15a43f(0x215)],'startIndex':_0x5c5cc4[_0x15a43f(0x1da)]}:null;}['getText'](){var _0x3bf5fc=_0xcc822a,_0x4ea47c;let _0x2b6495=this[_0x3bf5fc(0x1f1)](),_0x223d4b=(_0x4ea47c=this[_0x3bf5fc(0x209)]()[_0x3bf5fc(0x1cf)])==null?void 0x0:_0x4ea47c['dataStream'];return!_0x2b6495||!_0x223d4b?'':u(_0x223d4b['slice'](_0x2b6495[_0x3bf5fc(0x1da)]+0x1,_0x2b6495[_0x3bf5fc(0x215)]));}[_0xcc822a(0x1f7)](){var _0x2c80ad=_0xcc822a;let _0x94edfb=this['getRange']();return _0x94edfb?{..._0x94edfb,'config':this['getConfig'](),'text':this[_0x2c80ad(0x20e)](),'type':t[_0x2c80ad(0x210)][_0x2c80ad(0x1d1)]}:null;}[_0xcc822a(0x1df)](){var _0x42a97a=_0xcc822a;return(0x0,e[_0x42a97a(0x205)])(this[_0x42a97a(0x1e8)]['get'](e[_0x42a97a(0x1fc)])['getCodeConfig'](this['_unitId'],this[_0x42a97a(0x1ea)]));}[_0xcc822a(0x1e0)](_0xc87d2f){var _0x2c8670=_0xcc822a;return this[_0x2c8670(0x1e8)][_0x2c8670(0x1fe)](t[_0x2c8670(0x1ee)])[_0x2c8670(0x1dd)](e[_0x2c8670(0x1dc)]['id'],{'blockId':this[_0x2c8670(0x1ea)],'config':_0xc87d2f[_0x2c8670(0x1e6)],'unitId':this[_0x2c8670(0x200)]});}[_0xcc822a(0x1ca)](_0x5d5b57){var _0x533610=_0xcc822a;return this[_0x533610(0x1e8)][_0x533610(0x1fe)](t[_0x533610(0x1ee)])[_0x533610(0x1dd)](e['DocsCodeExitCommand']['id'],{'cursorOffset':_0x5d5b57,'unitId':this[_0x533610(0x200)]});}[_0xcc822a(0x1f5)](_0x493ecb={}){var _0x2f001c=_0xcc822a;return this[_0x2f001c(0x1e8)][_0x2f001c(0x1fe)](t[_0x2f001c(0x1ee)])['syncExecuteCommand'](e[_0x2f001c(0x1e2)]['id'],{..._0x493ecb,'unitId':this['_unitId']});}[_0xcc822a(0x209)](){var _0x1bdb0a=_0xcc822a;return this[_0x1bdb0a(0x1d6)][_0x1bdb0a(0x1d7)]();}[_0xcc822a(0x1f1)](){var _0xe594f=_0xcc822a,_0x19fb9a;let _0xb54e90=(_0x19fb9a=this[_0xe594f(0x209)]()[_0xe594f(0x1cf)])==null||(_0x19fb9a=_0x19fb9a[_0xe594f(0x21a)])==null?void 0x0:_0x19fb9a[_0xe594f(0x208)](_0x487c62=>_0x487c62[_0xe594f(0x1eb)]===this[_0xe594f(0x1ea)]&&_0x487c62[_0xe594f(0x1e1)]===t['DocumentBlockRangeType'][_0xe594f(0x1d1)]);return _0xb54e90==null?null:_0xb54e90;}};l=c([s(0x2,(0x0,t[_0xcc822a(0x1f3)])(t['Injector']))],l);function u(_0x25c847){var _0xf81f87=_0xcc822a;return Array[_0xf81f87(0x20d)](_0x25c847)[_0xf81f87(0x1d4)](_0x1dabe0=>_0x1dabe0===t[_0xf81f87(0x212)][_0xf81f87(0x20a)]?'\x0a':_0x1dabe0)[_0xf81f87(0x1ef)](_0x1a6bc4=>_0x1a6bc4!==t['DataStreamTreeTokenType'][_0xf81f87(0x1d3)]&&_0x1a6bc4!==t[_0xf81f87(0x212)][_0xf81f87(0x203)]&&_0x1a6bc4!==t[_0xf81f87(0x212)]['SECTION_BREAK'])[_0xf81f87(0x20c)]('')[_0xf81f87(0x206)](/\n$/,'');}var d=class extends n['FDocument']{[_0xcc822a(0x219)](){var _0x2689a0=_0xcc822a;return this[_0x2689a0(0x1cb)]()[_0x2689a0(0x1ef)](_0x4cdb34=>_0x4cdb34[_0x2689a0(0x1e1)]===t[_0x2689a0(0x210)][_0x2689a0(0x1d1)])['map'](_0x48f0ec=>this[_0x2689a0(0x217)](_0x48f0ec[_0x2689a0(0x1eb)]));}[_0xcc822a(0x201)](_0x5579a2){var _0x3b64e8=_0xcc822a;return this[_0x3b64e8(0x1cb)]()[_0x3b64e8(0x1ec)](_0x45a5d8=>_0x45a5d8['blockId']===_0x5579a2&&_0x45a5d8[_0x3b64e8(0x1e1)]===t['DocumentBlockRangeType'][_0x3b64e8(0x1d1)])?this[_0x3b64e8(0x217)](_0x5579a2):null;}['getCodeAt'](_0x18f772){var _0x4fc449=_0xcc822a;let _0x3bf6d6=this[_0x4fc449(0x1cb)]()[_0x4fc449(0x208)](_0x3b0210=>_0x3b0210[_0x4fc449(0x1e1)]===t[_0x4fc449(0x210)][_0x4fc449(0x1d1)]&&_0x3b0210[_0x4fc449(0x1da)]<=_0x18f772&&_0x18f772<=_0x3b0210[_0x4fc449(0x215)]);return _0x3bf6d6?this[_0x4fc449(0x217)](_0x3bf6d6[_0x4fc449(0x1eb)]):null;}['findCodeByText'](_0x353b66){var _0x40a2a7=_0xcc822a,_0x3b50b7;return(_0x3b50b7=this[_0x40a2a7(0x1f8)](_0x353b66)[0x0])==null?null:_0x3b50b7;}['findCodes'](_0x3a58a3){var _0x7a21aa=_0xcc822a;let _0xe6ab96=typeof _0x3a58a3==_0x7a21aa(0x1fb)?{'text':_0x3a58a3}:_0x3a58a3;return this['getCodes']()[_0x7a21aa(0x1ef)](_0x1fd2f2=>!(_0xe6ab96[_0x7a21aa(0x1eb)]&&_0x1fd2f2[_0x7a21aa(0x1ed)]()!==_0xe6ab96[_0x7a21aa(0x1eb)]||_0xe6ab96[_0x7a21aa(0x1fa)]&&!_0x1fd2f2[_0x7a21aa(0x20e)]()[_0x7a21aa(0x204)](_0xe6ab96[_0x7a21aa(0x1fa)])));}['insertCode'](_0x4be286={},_0x59d376={}){var _0x3efc64=_0xcc822a,_0x384b6b;let _0x3321b9=this[_0x3efc64(0x1e8)][_0x3efc64(0x1fe)](t['ICommandService']),_0x41a23c=f(_0x4be286)?{..._0x59d376,...p(_0x4be286)}:_0x4be286,_0x1c30fa=(_0x384b6b=_0x41a23c[_0x3efc64(0x1eb)])==null?(0x0,t[_0x3efc64(0x21b)])(0x6):_0x384b6b;return _0x3321b9[_0x3efc64(0x1dd)](e[_0x3efc64(0x1f4)]['id'],{..._0x41a23c,'blockId':_0x1c30fa,'unitId':this[_0x3efc64(0x1ed)]()})?this['_createFDocumentCode'](_0x1c30fa):null;}['exitCode'](_0x19e83d){var _0x472a15=_0xcc822a;return this[_0x472a15(0x1e8)][_0x472a15(0x1fe)](t[_0x472a15(0x1ee)])[_0x472a15(0x1dd)](e[_0x472a15(0x207)]['id'],{'cursorOffset':_0x19e83d,'unitId':this[_0x472a15(0x1ed)]()});}[_0xcc822a(0x1f2)](_0x3eb33e={}){var _0x3980bc=_0xcc822a;return this['_injector'][_0x3980bc(0x1fe)](t[_0x3980bc(0x1ee)])[_0x3980bc(0x1dd)](e[_0x3980bc(0x1e2)]['id'],{..._0x3eb33e,'unitId':this['getId']()});}[_0xcc822a(0x1cb)](){var _0x1270d6=_0xcc822a,_0x21478b,_0x591be0;return(_0x21478b=(_0x591be0=this[_0x1270d6(0x1d7)]()[_0x1270d6(0x1cf)])==null?void 0x0:_0x591be0[_0x1270d6(0x21a)])==null?[]:_0x21478b;}['_createFDocumentCode'](_0x237943){var _0x4abb5f=_0xcc822a;return this[_0x4abb5f(0x1e8)][_0x4abb5f(0x1cc)](l,this,_0x237943);}};function f(_0xb95f94){var _0x555e90=_0xcc822a;return typeof _0xb95f94==_0x555e90(0x1d2)&&!!_0xb95f94&&typeof _0xb95f94['getKey']==_0x555e90(0x20b)&&typeof _0xb95f94[_0x555e90(0x218)]=='function'&&typeof _0xb95f94[_0x555e90(0x1e9)]==_0x555e90(0x20b)&&_0xb95f94[_0x555e90(0x1e9)]()===_0x555e90(0x1c9);}function p(_0x470258){var _0x213b47=_0xcc822a;return _0x470258[_0x213b47(0x218)]();}n['FDocument'][_0xcc822a(0x1fd)](d),Object['defineProperty'](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1f4ff6=_0x44e9;(function(_0x4abab5,_0x43f86b){const _0x3afd26=_0x44e9,_0x3b38ca=_0x4abab5();while(!![]){try{const _0x44b498=parseInt(_0x3afd26(0x171))/0x1*(parseInt(_0x3afd26(0x169))/0x2)+-parseInt(_0x3afd26(0x14d))/0x3+-parseInt(_0x3afd26(0x131))/0x4*(-parseInt(_0x3afd26(0x130))/0x5)+-parseInt(_0x3afd26(0x10b))/0x6*(-parseInt(_0x3afd26(0x114))/0x7)+parseInt(_0x3afd26(0x147))/0x8+-parseInt(_0x3afd26(0x1a4))/0x9*(parseInt(_0x3afd26(0x148))/0xa)+-parseInt(_0x3afd26(0x14e))/0xb*(parseInt(_0x3afd26(0x154))/0xc);if(_0x44b498===_0x43f86b)break;else _0x3b38ca['push'](_0x3b38ca['shift']());}catch(_0x168e38){_0x3b38ca['push'](_0x3b38ca['shift']());}}}(_0x7e22,0x703ca),Object[_0x1f4ff6(0x13e)](exports,Symbol['toStringTag'],{'value':_0x1f4ff6(0x172)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x1f4ff6(0x126),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0xf796cb){return{...i,..._0xf796cb};}function o(_0x5912bd){const _0x3be839=_0x1f4ff6;var _0x3bf3af;let _0x212db3=(_0x3bf3af=_0x5912bd==null?void 0x0:_0x5912bd[_0x3be839(0x145)])==null?{}:_0x3bf3af;return{'codes':Object[_0x3be839(0x195)](Object['entries'](_0x212db3)[_0x3be839(0x12d)](([_0x3d887c,_0x991065])=>[_0x3d887c,a(_0x991065)]))};}function s(_0xf158a6,_0x3951db,_0x1b1cd3){const _0x57fe94=_0x1f4ff6;let _0xc0e96b=o(_0xf158a6);return _0xc0e96b[_0x57fe94(0x145)][_0x3951db]=a({..._0xc0e96b['codes'][_0x3951db],..._0x1b1cd3}),_0xc0e96b;}function c(_0x13728a,_0x4eabea){const _0x558073=_0x1f4ff6;let _0x22bd24=o(_0x13728a);return delete _0x22bd24[_0x558073(0x145)][_0x4eabea],_0x22bd24;}const l='monospace';function u(_0x6eb427){const _0xe435ac=_0x1f4ff6;var _0x2c5cbd,_0x2fbef0,_0x35199b;let _0x4044de=w(_0x6eb427['documentData']),_0x5c14ea=T(_0x4044de),_0x5340c5=f(_0x6eb427[_0xe435ac(0x1a6)],_0x6eb427[_0xe435ac(0x1ab)]),_0x492db2=_0x5340c5?(_0x2c5cbd=_0x5c14ea[_0xe435ac(0x141)])==null?void 0x0:_0x2c5cbd[_0xe435ac(0x1b2)](_0x421dce=>_0x421dce[_0xe435ac(0x12e)]===_0x5340c5[_0xe435ac(0x1a6)]&&_0x421dce['endIndex']+0x1===_0x5340c5[_0xe435ac(0x1ab)]):void 0x0,{startOffset:_0x1039e0,endOffset:_0x373eef}=_0x492db2?_0x5340c5:te(_0x5c14ea,_0x6eb427['startOffset'],_0x6eb427[_0xe435ac(0x1ab)]),_0x344edf=ie(_0x5c14ea,_0x1039e0,_0x373eef),_0x20688d=(_0x2fbef0=_0x492db2==null?void 0x0:_0x492db2['blockId'])==null?_0x6eb427['blockId']:_0x2fbef0,_0x1b1d65=s(_0x6eb427[_0xe435ac(0x144)],_0x20688d,{...i,..._0x6eb427['config']});if(_0x492db2)return _0x492db2[_0xe435ac(0x165)]=e[_0xe435ac(0x187)][_0xe435ac(0x160)],d(_0x5c14ea,_0x1039e0,_0x373eef),x(_0x5c14ea,_0x1039e0,_0x373eef,_0x344edf),O(_0x5c14ea,_0x492db2),{'nextDocumentData':_0x4044de,'nextMetadata':_0x1b1d65,'cursorOffset':_0x1039e0+0x1};if(_0x1039e0===_0x373eef){var _0x57c3c7,_0xe699ed;let _0x4ff5cd=''+e[_0xe435ac(0x190)]['BLOCK_START']+e[_0xe435ac(0x190)][_0xe435ac(0x137)]+e['DataStreamTreeTokenType'][_0xe435ac(0x149)];k(_0x5c14ea,_0x1039e0,_0x4ff5cd,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0xe435ac(0x116)])(new Set((_0x57c3c7=_0x5c14ea[_0xe435ac(0x166)])==null?void 0x0:_0x57c3c7[_0xe435ac(0x12d)](_0x5a5ba9=>_0x5a5ba9['paragraphId']))),'paragraphStyle':b(!0x0,!0x0,_0x344edf)}],'blockRanges':[{'blockId':_0x20688d,'blockType':e[_0xe435ac(0x187)][_0xe435ac(0x160)],'startIndex':0x0,'endIndex':_0x4ff5cd['length']-0x1}]});let _0x49aba0=(_0xe699ed=_0x5c14ea['blockRanges'])==null?void 0x0:_0xe699ed['find'](_0x48c676=>_0x48c676['blockId']===_0x20688d);return _0x49aba0&&O(_0x5c14ea,_0x49aba0),{'nextDocumentData':_0x4044de,'nextMetadata':_0x1b1d65,'cursorOffset':_0x1039e0+0x1};}k(_0x5c14ea,_0x373eef,e[_0xe435ac(0x190)]['BLOCK_END']),k(_0x5c14ea,_0x1039e0,e[_0xe435ac(0x190)]['BLOCK_START']),x(_0x5c14ea,_0x1039e0,_0x373eef+0x1,_0x344edf);let _0x173be3={'blockId':_0x20688d,'blockType':e[_0xe435ac(0x187)][_0xe435ac(0x160)],'startIndex':_0x1039e0,'endIndex':_0x373eef+0x1};return _0x5c14ea[_0xe435ac(0x141)]=[...(_0x35199b=_0x5c14ea['blockRanges'])==null?[]:_0x35199b,_0x173be3]['sort']((_0x5a1cdc,_0x284a42)=>_0x5a1cdc[_0xe435ac(0x12e)]-_0x284a42[_0xe435ac(0x12e)]),O(_0x5c14ea,_0x173be3),{'nextDocumentData':_0x4044de,'nextMetadata':_0x1b1d65,'cursorOffset':_0x1039e0+0x1};}function d(_0x4f77e4,_0x300f78,_0x554111){const _0x986954=_0x1f4ff6;var _0x1a5dd0;((_0x1a5dd0=_0x4f77e4['paragraphs'])==null?[]:_0x1a5dd0)[_0x986954(0x1af)](_0x5557e2=>_0x5557e2[_0x986954(0x12e)]>_0x300f78&&_0x5557e2[_0x986954(0x12e)]<_0x554111)[_0x986954(0x10e)](_0x5dc0e8=>{const _0x38299d=_0x986954;var _0x3d275e;let _0x2687eb={...(_0x3d275e=_0x5dc0e8[_0x38299d(0x112)])==null?{}:_0x3d275e};delete _0x2687eb['spaceAbove'],delete _0x2687eb[_0x38299d(0x193)],_0x5dc0e8['paragraphStyle']=_0x2687eb;});}function f(_0x1d0b8d,_0x2706e6){const _0x39046b=_0x1f4ff6;return _0x1d0b8d==null||_0x2706e6==null||_0x1d0b8d===_0x2706e6?null:{'startOffset':Math[_0x39046b(0x1a8)](_0x1d0b8d,_0x2706e6),'endOffset':Math[_0x39046b(0x18e)](_0x1d0b8d,_0x2706e6)};}function p(_0x2662a0){const _0x272a12=_0x1f4ff6;return{'nextDocumentData':w(_0x2662a0['documentData']),'nextMetadata':s(_0x2662a0[_0x272a12(0x144)],_0x2662a0[_0x272a12(0x16b)],_0x2662a0[_0x272a12(0x155)]),'cursorOffset':0x0};}function m(_0x14e385){const _0x1db798=_0x1f4ff6;var _0x46dec9,_0x2a08e9;let _0x1f309a=w(_0x14e385['documentData']),_0x152bd4=T(_0x1f309a),_0x18063c=y(_0x152bd4,_0x14e385['cursorOffset']);if(!_0x18063c)return null;let _0x427bb0=C(_0x152bd4,_0x18063c),_0x3f7857=_0x427bb0[_0x427bb0['length']-0x1];if(!_0x3f7857||!ee(_0x152bd4,_0x18063c,_0x3f7857)||_0x14e385['cursorOffset']<_0x3f7857[_0x1db798(0x12e)])return null;let _0x46872a=oe(_0x152bd4,_0x18063c,_0x3f7857);if(_0x46872a>=_0x18063c[_0x1db798(0x167)])return null;_0x152bd4[_0x1db798(0x158)]=[_0x152bd4[_0x1db798(0x158)][_0x1db798(0x17f)](0x0,_0x46872a),e[_0x1db798(0x190)][_0x1db798(0x149)],_0x152bd4[_0x1db798(0x158)]['slice'](_0x46872a,_0x18063c['endIndex']),_0x152bd4['dataStream'][_0x1db798(0x17f)](_0x18063c[_0x1db798(0x167)]+0x1)][_0x1db798(0x1a2)](''),P(_0x152bd4['paragraphs'],_0x46872a,_0x18063c[_0x1db798(0x167)],0x1),P(_0x152bd4[_0x1db798(0x119)],_0x46872a,_0x18063c['endIndex'],0x1),P(_0x152bd4[_0x1db798(0x161)],_0x46872a,_0x18063c['endIndex'],0x1),fe(_0x152bd4[_0x1db798(0x151)],_0x46872a,_0x18063c[_0x1db798(0x167)],0x1),F(_0x152bd4[_0x1db798(0x15d)],_0x46872a,_0x18063c[_0x1db798(0x167)],0x1),F(_0x152bd4['customRanges'],_0x46872a,_0x18063c['endIndex'],0x1),F(_0x152bd4[_0x1db798(0x12a)],_0x46872a,_0x18063c['endIndex'],0x1),(_0x46dec9=_0x152bd4[_0x1db798(0x141)])==null||_0x46dec9['forEach'](_0x54b6a5=>{const _0x1b14b5=_0x1db798;_0x54b6a5===_0x18063c||_0x54b6a5['blockId']===_0x18063c['blockId']?_0x54b6a5[_0x1b14b5(0x167)]=_0x46872a:_0x54b6a5[_0x1b14b5(0x12e)]>=_0x46872a&&_0x54b6a5['startIndex']<_0x18063c[_0x1b14b5(0x167)]&&(_0x54b6a5[_0x1b14b5(0x12e)]+=0x1,_0x54b6a5[_0x1b14b5(0x167)]+=0x1);});let _0x4fa5ec=C(_0x152bd4,{..._0x18063c,'endIndex':_0x46872a});_0x4fa5ec[_0x1db798(0x10e)]((_0x15129e,_0x4e58ea)=>{const _0x39d466=_0x1db798;var _0x14ce9b;_0x15129e[_0x39d466(0x112)]={...(_0x14ce9b=_0x15129e[_0x39d466(0x112)])==null?{}:_0x14ce9b,...b(_0x4e58ea===0x0,_0x4e58ea===_0x4fa5ec[_0x39d466(0x1b3)]-0x1)};});let _0x2d6e2f=(_0x2a08e9=_0x152bd4['paragraphs'])==null?void 0x0:_0x2a08e9['find'](_0x55baaf=>_0x55baaf['startIndex']===_0x46872a+0x1);return _0x2d6e2f&&(_0x2d6e2f[_0x1db798(0x112)]=S(_0x2d6e2f[_0x1db798(0x112)])),{'nextDocumentData':_0x1f309a,'cursorOffset':_0x46872a+0x1};}function h(_0x39cf39){const _0x122c94=_0x1f4ff6;let _0x1046b0=w(_0x39cf39[_0x122c94(0x1a3)]),_0x355e24=T(_0x1046b0),_0x1ada61=y(_0x355e24,_0x39cf39[_0x122c94(0x12b)]);return _0x1ada61&&g(_0x1046b0,_0x355e24,_0x1ada61,_0x39cf39[_0x122c94(0x12b)],_0x39cf39['paragraphStartIndex'])||null;}function g(_0x253642,_0x5ab537,_0x6778ad,_0x20b42f,_0x1ae760){const _0x441de1=_0x1f4ff6;let _0xc21253=se(_0x5ab537,_0x6778ad,_0x20b42f,_0x1ae760);if(!_0xc21253)return null;let _0x11cc49=_0xc21253[_0x441de1(0x11f)]-0x1;return ce(_0x5ab537,_0xc21253[_0x441de1(0x13b)]['startIndex'],_0xc21253[_0x441de1(0x13b)][_0x441de1(0x12e)]+0x1),{'nextDocumentData':_0x253642,'cursorOffset':_0x11cc49};}function _(_0x1df48c,_0x57c13e){const _0x405afd=_0x1f4ff6;var _0x562d16;return _0x1df48c==null||(_0x562d16=_0x1df48c[_0x405afd(0x141)])==null?void 0x0:_0x562d16[_0x405afd(0x1b2)](_0x59f6ab=>_0x59f6ab['blockType']===e[_0x405afd(0x187)]['CODE']&&_0x59f6ab[_0x405afd(0x12e)]<=_0x57c13e&&_0x57c13e<=_0x59f6ab[_0x405afd(0x167)]);}function v(_0x54ebba){const _0x27c76e=_0x1f4ff6;var _0x6c2fc0;let _0x232cd5=_0x54ebba['documentData'][_0x27c76e(0x16f)];if(!_0x232cd5)return!0x1;let _0x7f13b2=_0x54ebba[_0x27c76e(0x185)]===_0x27c76e(0x17b)?_0x54ebba['cursorOffset']-0x1:_0x54ebba[_0x27c76e(0x12b)],_0x4eff65=_0x54ebba[_0x27c76e(0x185)]==='right'?_0x54ebba[_0x27c76e(0x12b)]+0x1:_0x7f13b2;return((_0x6c2fc0=_0x232cd5[_0x27c76e(0x141)])==null?[]:_0x6c2fc0)[_0x27c76e(0x122)](_0x513453=>_0x513453['blockType']===e['DocumentBlockRangeType'][_0x27c76e(0x160)]?_0x7f13b2===_0x513453[_0x27c76e(0x12e)]||_0x7f13b2===_0x513453[_0x27c76e(0x167)]||_0x4eff65===_0x513453['startIndex']||_0x4eff65===_0x513453[_0x27c76e(0x167)]:!0x1);}function y(_0x496b5a,_0x40f1fa){const _0x35d072=_0x1f4ff6;var _0x2a7326;return(_0x2a7326=_0x496b5a[_0x35d072(0x141)])==null?void 0x0:_0x2a7326[_0x35d072(0x1b2)](_0x366b86=>{const _0x3691cf=_0x35d072;let _0x37783c=D(_0x496b5a,_0x366b86);return _0x366b86[_0x3691cf(0x165)]===e[_0x3691cf(0x187)][_0x3691cf(0x160)]&&_0x366b86['startIndex']<=_0x40f1fa&&_0x40f1fa<=_0x37783c+0x2;});}function b(_0x50dfe2,_0x2cb082,_0x1a7eda=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x50dfe2&&_0x1a7eda?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x53199a,_0x1cca88,_0x26cb35,_0x23c62c=!0x1){const _0x22cf49=_0x1f4ff6;var _0x36c18e;let _0x1c2b00=((_0x36c18e=_0x53199a[_0x22cf49(0x166)])==null?[]:_0x36c18e)['filter'](_0x1b574a=>_0x1b574a['startIndex']>_0x1cca88&&_0x1b574a[_0x22cf49(0x12e)]<_0x26cb35);_0x1c2b00[_0x22cf49(0x10e)]((_0x199dac,_0x1d70aa)=>{const _0x4e4804=_0x22cf49;var _0x58a849;_0x199dac['paragraphStyle']={...(_0x58a849=_0x199dac[_0x4e4804(0x112)])==null?{}:_0x58a849,...b(_0x1d70aa===0x0,_0x1d70aa===_0x1c2b00['length']-0x1,_0x23c62c)};});}function S(_0x41cf4c){const _0x426bb7=_0x1f4ff6;var _0x42746b,_0x1bea90;let _0x54f0a4={..._0x41cf4c==null?{}:_0x41cf4c};return delete _0x54f0a4[_0x426bb7(0x117)],delete _0x54f0a4[_0x426bb7(0x121)],delete _0x54f0a4['spaceAbove'],delete _0x54f0a4[_0x426bb7(0x193)],((_0x42746b=_0x54f0a4[_0x426bb7(0x18a)])==null?void 0x0:_0x42746b['ff'])===l&&((_0x1bea90=_0x54f0a4[_0x426bb7(0x18a)])==null?void 0x0:_0x1bea90['fs'])===0xc&&delete _0x54f0a4['textStyle'],_0x54f0a4;}function C(_0x391f92,_0x20b0c){const _0x2d6a64=_0x1f4ff6;var _0x4f44d3;let _0x516e2c=D(_0x391f92,_0x20b0c);return((_0x4f44d3=_0x391f92[_0x2d6a64(0x166)])==null?[]:_0x4f44d3)[_0x2d6a64(0x1af)](_0x5c0554=>_0x5c0554[_0x2d6a64(0x12e)]>_0x20b0c[_0x2d6a64(0x12e)]&&_0x5c0554[_0x2d6a64(0x12e)]<_0x516e2c);}function ee(_0x19aeda,_0x48d276,_0x304b0f){const _0xa84ed5=_0x1f4ff6;let _0x5512cd=oe(_0x19aeda,_0x48d276,_0x304b0f),_0x572e6d=_0x19aeda[_0xa84ed5(0x158)][_0xa84ed5(0x17f)](_0x5512cd,_0x304b0f[_0xa84ed5(0x12e)]);return Array[_0xa84ed5(0x1a1)](_0x572e6d)[_0xa84ed5(0x150)](_0x333dff=>_0x333dff===e[_0xa84ed5(0x190)][_0xa84ed5(0x17d)]||_0x333dff===e['DataStreamTreeTokenType'][_0xa84ed5(0x149)]);}function w(_0x4b57bb){const _0x16b7a3=_0x1f4ff6;return e[_0x16b7a3(0x16d)][_0x16b7a3(0x1ac)](_0x4b57bb);}function T(_0x43adc0){const _0x18d306=_0x1f4ff6;if(!_0x43adc0[_0x18d306(0x16f)])throw Error(_0x18d306(0x143));return _0x43adc0[_0x18d306(0x16f)];}function te(_0x1f246d,_0x454f2e,_0x388f5e){const _0x368e9e=_0x1f4ff6;if(_0x454f2e==null||_0x388f5e==null){let _0xaebc0c=re(_0x1f246d);return{'startOffset':_0xaebc0c,'endOffset':_0xaebc0c};}let _0x5e9306=Math[_0x368e9e(0x1a8)](_0x454f2e,_0x388f5e),_0x57c861=Math[_0x368e9e(0x18e)](_0x454f2e,_0x388f5e);if(_0x5e9306===_0x57c861){let _0x132ea6=ne(_0x1f246d,_0x5e9306);return{'startOffset':_0x132ea6,'endOffset':_0x132ea6};}return ae(_0x1f246d,_0x5e9306,_0x57c861);}function ne(_0x5c17c0,_0x32609c){const _0x345eef=_0x1f4ff6;return _0x32609c===0x0&&_0x5c17c0[_0x345eef(0x158)][0x0]===e['DataStreamTreeTokenType']['PARAGRAPH']?0x1:_0x32609c;}function re(_0x10d9fe){const _0x3269ba=_0x1f4ff6;return _0x10d9fe[_0x3269ba(0x158)][_0x3269ba(0x16c)](e['DataStreamTreeTokenType']['SECTION_BREAK'])?Math['max'](0x0,_0x10d9fe['dataStream']['length']-0x1):_0x10d9fe[_0x3269ba(0x158)][_0x3269ba(0x1b3)];}function ie(_0x4d67fe,_0x3c753b,_0x2a331f){const _0xaafd8f=_0x1f4ff6;var _0x39ff7b;let _0x108a0d=Math[_0xaafd8f(0x1a8)](_0x3c753b,_0x2a331f),_0x267699=Math['max'](_0x3c753b,_0x2a331f);return!!((_0x39ff7b=_0x4d67fe[_0xaafd8f(0x15d)])!=null&&_0x39ff7b['some'](_0x233c22=>_0x108a0d>_0x233c22[_0xaafd8f(0x12e)]&&_0x108a0d<_0x233c22[_0xaafd8f(0x167)]||_0x267699>_0x233c22[_0xaafd8f(0x12e)]&&_0x267699<_0x233c22[_0xaafd8f(0x167)]||_0x108a0d<=_0x233c22[_0xaafd8f(0x12e)]&&_0x267699>=_0x233c22[_0xaafd8f(0x167)]));}function ae(_0x5dcfe0,_0x7f89d7,_0x24cd9b){const _0x93c865=_0x1f4ff6;var _0x41f0c7,_0x5b4535;let _0x516899=[...(_0x41f0c7=_0x5dcfe0[_0x93c865(0x166)])==null?[]:_0x41f0c7][_0x93c865(0x184)]((_0xdd4758,_0x36d98d)=>_0xdd4758['startIndex']-_0x36d98d[_0x93c865(0x12e)]),_0x39c7de=_0x516899[_0x93c865(0x1b2)]((_0x32a6f5,_0x3d5b4f)=>(_0x3d5b4f===0x0?0x0:_0x516899[_0x3d5b4f-0x1][_0x93c865(0x12e)]+0x1)<=_0x7f89d7&&_0x7f89d7<=_0x32a6f5[_0x93c865(0x12e)]),_0x5943ca=(_0x5b4535=_0x516899[_0x93c865(0x1b2)](_0x5d30d5=>_0x5d30d5[_0x93c865(0x12e)]>=_0x24cd9b-0x1))==null?_0x516899[_0x516899['length']-0x1]:_0x5b4535;return{'startOffset':_0x39c7de?E(_0x516899,_0x39c7de):_0x7f89d7,'endOffset':_0x5943ca?_0x5943ca['startIndex']+0x1:_0x24cd9b};}function E(_0x1d1ad9,_0x295dbe){const _0x8193a7=_0x1f4ff6;let _0x329630=_0x1d1ad9['indexOf'](_0x295dbe);return _0x329630>0x0?_0x1d1ad9[_0x329630-0x1][_0x8193a7(0x12e)]+0x1:0x0;}function oe(_0x2c53df,_0x4bad20,_0xb1bc11){const _0x2f2380=_0x1f4ff6;var _0x44d335;return Math[_0x2f2380(0x18e)](E((_0x44d335=_0x2c53df[_0x2f2380(0x166)])==null?[]:_0x44d335,_0xb1bc11),_0x4bad20[_0x2f2380(0x12e)]+0x1);}function D(_0x4438fb,_0xa7a2d6){const _0x4e358c=_0x1f4ff6;return _0x4438fb[_0x4e358c(0x158)][_0xa7a2d6['endIndex']]===e['DataStreamTreeTokenType'][_0x4e358c(0x149)]?_0xa7a2d6[_0x4e358c(0x167)]:_0x4438fb[_0x4e358c(0x158)][_0xa7a2d6[_0x4e358c(0x167)]+0x1]===e['DataStreamTreeTokenType']['BLOCK_END']?_0xa7a2d6[_0x4e358c(0x167)]+0x1:_0xa7a2d6[_0x4e358c(0x167)];}function se(_0x1f7db9,_0x2e7d19,_0x3ead73,_0x4c1323){const _0x57bebb=_0x1f4ff6;var _0x5e2b56,_0x29e319;let _0x1c38d6=D(_0x1f7db9,_0x2e7d19),_0x2d55bf=((_0x5e2b56=_0x1f7db9['paragraphs'])==null?[]:_0x5e2b56)[_0x57bebb(0x1b2)](_0x57f314=>_0x57f314[_0x57bebb(0x12e)]===_0x1c38d6+0x1);if(!_0x2d55bf||_0x4c1323!=null&&_0x2d55bf['startIndex']!==_0x4c1323||_0x3ead73<_0x1c38d6||_0x3ead73>_0x2d55bf[_0x57bebb(0x12e)]+0x1||_0x1f7db9[_0x57bebb(0x158)][_0x2d55bf['startIndex']]!==e[_0x57bebb(0x190)][_0x57bebb(0x137)])return null;let _0x55edcb=E((_0x29e319=_0x1f7db9[_0x57bebb(0x166)])==null?[]:_0x29e319,_0x2d55bf),_0x6a79d4=_0x1f7db9[_0x57bebb(0x158)][_0x57bebb(0x17f)](_0x55edcb,_0x2d55bf[_0x57bebb(0x12e)]);return Array[_0x57bebb(0x1a1)](_0x6a79d4)[_0x57bebb(0x150)](_0x2f1954=>_0x2f1954===e[_0x57bebb(0x190)][_0x57bebb(0x149)])?{'paragraph':_0x2d55bf,'endTokenOffset':_0x1c38d6}:null;}function O(_0x185c8d,_0x57cffd){const _0x10c35b=_0x1f4ff6;var _0x2522b0;let _0x48f7f0=D(_0x185c8d,_0x57cffd),_0x2b2a1f=_0x185c8d['dataStream'][_0x48f7f0+0x1];_0x2b2a1f!==e[_0x10c35b(0x190)][_0x10c35b(0x19c)]&&_0x2b2a1f!==void 0x0||k(_0x185c8d,_0x48f7f0+0x1,e['DataStreamTreeTokenType'][_0x10c35b(0x137)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x10c35b(0x116)])(new Set((_0x2522b0=_0x185c8d[_0x10c35b(0x166)])==null?void 0x0:_0x2522b0[_0x10c35b(0x12d)](_0x32548e=>_0x32548e['paragraphId'])))}]});}function k(_0x2085e3,_0x38ff68,_0x5f3d25,_0x59eadc={}){const _0xe2b529=_0x1f4ff6;var _0x30c030,_0x5809d7;if(_0x5f3d25){if(_0x2085e3[_0xe2b529(0x158)]=''+_0x2085e3[_0xe2b529(0x158)]['slice'](0x0,_0x38ff68)+_0x5f3d25+_0x2085e3[_0xe2b529(0x158)]['slice'](_0x38ff68),le(_0x2085e3,_0x38ff68,_0x5f3d25['length']),(_0x30c030=_0x59eadc[_0xe2b529(0x166)])!=null&&_0x30c030['length']){var _0x1828be;_0x2085e3[_0xe2b529(0x166)]=[...(_0x1828be=_0x2085e3[_0xe2b529(0x166)])==null?[]:_0x1828be,..._0x59eadc[_0xe2b529(0x166)]['map'](_0x41ba79=>({..._0x41ba79,'startIndex':_0x41ba79[_0xe2b529(0x12e)]+_0x38ff68}))]['sort']((_0x1c1ed2,_0x1cd382)=>_0x1c1ed2['startIndex']-_0x1cd382[_0xe2b529(0x12e)]);}if((_0x5809d7=_0x59eadc[_0xe2b529(0x141)])!=null&&_0x5809d7['length']){var _0x2068cb;_0x2085e3[_0xe2b529(0x141)]=[...(_0x2068cb=_0x2085e3[_0xe2b529(0x141)])==null?[]:_0x2068cb,..._0x59eadc[_0xe2b529(0x141)][_0xe2b529(0x12d)](_0x1add73=>({..._0x1add73,'startIndex':_0x1add73['startIndex']+_0x38ff68,'endIndex':_0x1add73[_0xe2b529(0x167)]+_0x38ff68}))][_0xe2b529(0x184)]((_0xc48d5b,_0x2bbf46)=>_0xc48d5b[_0xe2b529(0x12e)]-_0x2bbf46[_0xe2b529(0x12e)]);}}}function ce(_0x1b0607,_0x147465,_0x5a6231){const _0xadcc75=_0x1f4ff6;let _0x24810c=_0x5a6231-_0x147465;_0x1b0607[_0xadcc75(0x158)]=''+_0x1b0607[_0xadcc75(0x158)][_0xadcc75(0x17f)](0x0,_0x147465)+_0x1b0607['dataStream'][_0xadcc75(0x17f)](_0x5a6231),ue(_0x1b0607,_0x147465,_0x24810c);}function le(_0x7f3b3c,_0x56d475,_0x3e46d4){const _0x25c040=_0x1f4ff6;_0x7f3b3c[_0x25c040(0x166)]=A(_0x7f3b3c[_0x25c040(0x166)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x119)]=A(_0x7f3b3c[_0x25c040(0x119)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x161)]=A(_0x7f3b3c['customBlocks'],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x151)]=de(_0x7f3b3c[_0x25c040(0x151)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x15d)]=M(_0x7f3b3c[_0x25c040(0x15d)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x111)]=M(_0x7f3b3c[_0x25c040(0x111)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x12a)]=M(_0x7f3b3c[_0x25c040(0x12a)],_0x56d475,_0x3e46d4),_0x7f3b3c[_0x25c040(0x141)]=M(_0x7f3b3c[_0x25c040(0x141)],_0x56d475,_0x3e46d4);}function ue(_0x375f4c,_0x509325,_0x585cc1){const _0x298b92=_0x1f4ff6;var _0x59d38a,_0x18bdd7;_0x375f4c[_0x298b92(0x166)]=j(_0x375f4c['paragraphs'],_0x509325,_0x585cc1),_0x375f4c[_0x298b92(0x119)]=j(_0x375f4c[_0x298b92(0x119)],_0x509325,_0x585cc1),_0x375f4c[_0x298b92(0x161)]=j(_0x375f4c[_0x298b92(0x161)],_0x509325,_0x585cc1),_0x375f4c['textRuns']=(_0x59d38a=N((_0x18bdd7=_0x375f4c[_0x298b92(0x151)])==null?void 0x0:_0x18bdd7[_0x298b92(0x12d)](_0xe9342d=>({..._0xe9342d,'startIndex':_0xe9342d['st'],'endIndex':_0xe9342d['ed']})),_0x509325,_0x585cc1))==null?void 0x0:_0x59d38a[_0x298b92(0x12d)](_0x1cffe4=>{let {startIndex:_0x4808f2,endIndex:_0x503797,..._0x10499d}=_0x1cffe4;return{..._0x10499d,'st':_0x4808f2,'ed':_0x503797};}),_0x375f4c['tables']=N(_0x375f4c[_0x298b92(0x15d)],_0x509325,_0x585cc1),_0x375f4c['customRanges']=N(_0x375f4c[_0x298b92(0x111)],_0x509325,_0x585cc1),_0x375f4c[_0x298b92(0x12a)]=N(_0x375f4c[_0x298b92(0x12a)],_0x509325,_0x585cc1),_0x375f4c['blockRanges']=N(_0x375f4c['blockRanges'],_0x509325,_0x585cc1);}function A(_0x412d2b,_0xe26762,_0x43f985){const _0x376ed6=_0x1f4ff6;return _0x412d2b==null?void 0x0:_0x412d2b[_0x376ed6(0x12d)](_0x2cdc3d=>_0x2cdc3d[_0x376ed6(0x12e)]>=_0xe26762?{..._0x2cdc3d,'startIndex':_0x2cdc3d[_0x376ed6(0x12e)]+_0x43f985}:_0x2cdc3d);}function j(_0xfc312d,_0x2cf046,_0x27a3b8){const _0x530448=_0x1f4ff6;let _0x282227=_0x2cf046+_0x27a3b8;return _0xfc312d==null?void 0x0:_0xfc312d['map'](_0x1f5d6b=>_0x1f5d6b[_0x530448(0x12e)]>=_0x2cf046&&_0x1f5d6b[_0x530448(0x12e)]<_0x282227?null:_0x1f5d6b[_0x530448(0x12e)]>=_0x282227?{..._0x1f5d6b,'startIndex':_0x1f5d6b['startIndex']-_0x27a3b8}:_0x1f5d6b)[_0x530448(0x1af)](_0x1c92cc=>_0x1c92cc!=null);}function de(_0x11ffff,_0x1a62e4,_0xc5710d){const _0x1a4fba=_0x1f4ff6;return _0x11ffff==null?void 0x0:_0x11ffff[_0x1a4fba(0x12d)](_0x5176d5=>_0x5176d5['st']>=_0x1a62e4?{..._0x5176d5,'st':_0x5176d5['st']+_0xc5710d,'ed':_0x5176d5['ed']+_0xc5710d}:_0x5176d5['ed']>_0x1a62e4?{..._0x5176d5,'ed':_0x5176d5['ed']+_0xc5710d}:_0x5176d5);}function M(_0x3b44c2,_0x516155,_0x14020b){const _0x5a9965=_0x1f4ff6;return _0x3b44c2==null?void 0x0:_0x3b44c2[_0x5a9965(0x12d)](_0x3d5b5e=>_0x3d5b5e[_0x5a9965(0x12e)]>=_0x516155?{..._0x3d5b5e,'startIndex':_0x3d5b5e[_0x5a9965(0x12e)]+_0x14020b,'endIndex':_0x3d5b5e[_0x5a9965(0x167)]+_0x14020b}:_0x3d5b5e[_0x5a9965(0x167)]>=_0x516155?{..._0x3d5b5e,'endIndex':_0x3d5b5e[_0x5a9965(0x167)]+_0x14020b}:_0x3d5b5e);}function N(_0x5a71a9,_0x2d2467,_0x41513b){const _0x147461=_0x1f4ff6;let _0x15e05f=_0x2d2467+_0x41513b;return _0x5a71a9==null?void 0x0:_0x5a71a9[_0x147461(0x12d)](_0x4900d4=>_0x4900d4[_0x147461(0x12e)]>=_0x2d2467&&_0x4900d4[_0x147461(0x167)]<_0x15e05f?null:_0x4900d4['startIndex']>=_0x15e05f?{..._0x4900d4,'startIndex':_0x4900d4['startIndex']-_0x41513b,'endIndex':_0x4900d4[_0x147461(0x167)]-_0x41513b}:_0x4900d4['endIndex']>=_0x2d2467?{..._0x4900d4,'startIndex':_0x4900d4[_0x147461(0x12e)]<_0x2d2467?_0x4900d4['startIndex']:_0x2d2467,'endIndex':Math[_0x147461(0x18e)](_0x2d2467,_0x4900d4[_0x147461(0x167)]-_0x41513b)}:_0x4900d4)[_0x147461(0x1af)](_0x36374e=>_0x36374e!=null);}function P(_0x16d319,_0x2098e2,_0x1fc486,_0xf0e340){const _0x4cda1=_0x1f4ff6;_0x16d319==null||_0x16d319[_0x4cda1(0x10e)](_0x1fe81e=>{const _0x5748a8=_0x4cda1;_0x1fe81e[_0x5748a8(0x12e)]>=_0x2098e2&&_0x1fe81e[_0x5748a8(0x12e)]<_0x1fc486&&(_0x1fe81e[_0x5748a8(0x12e)]+=_0xf0e340);});}function fe(_0x523721,_0x3cfae2,_0x258f9b,_0xcf37f){const _0x198ee0=_0x1f4ff6;_0x523721==null||_0x523721[_0x198ee0(0x10e)](_0xaced11=>{_0xaced11['st']>=_0x3cfae2&&_0xaced11['st']<_0x258f9b?(_0xaced11['st']+=_0xcf37f,_0xaced11['ed']+=_0xcf37f):_0xaced11['ed']>_0x3cfae2&&_0xaced11['ed']<_0x258f9b&&(_0xaced11['ed']+=_0xcf37f);});}function F(_0x5de42e,_0xadb495,_0x2fba44,_0x3bb0a6){const _0x2a4a9e=_0x1f4ff6;_0x5de42e==null||_0x5de42e[_0x2a4a9e(0x10e)](_0x5f077c=>{const _0x3884dd=_0x2a4a9e;_0x5f077c[_0x3884dd(0x12e)]>=_0xadb495&&_0x5f077c['startIndex']<_0x2fba44?(_0x5f077c[_0x3884dd(0x12e)]+=_0x3bb0a6,_0x5f077c['endIndex']+=_0x3bb0a6):_0x5f077c['endIndex']>_0xadb495&&_0x5f077c[_0x3884dd(0x167)]<_0x2fba44&&(_0x5f077c['endIndex']+=_0x3bb0a6);});}function I(_0x51dbae){'@babel/helpers - typeof';const _0x2eb76f=_0x1f4ff6;return I=typeof Symbol==_0x2eb76f(0x11a)&&typeof Symbol[_0x2eb76f(0x10c)]==_0x2eb76f(0x157)?function(_0x33cf55){return typeof _0x33cf55;}:function(_0x3fb884){const _0x796bc2=_0x2eb76f;return _0x3fb884&&typeof Symbol==_0x796bc2(0x11a)&&_0x3fb884[_0x796bc2(0x15a)]===Symbol&&_0x3fb884!==Symbol[_0x796bc2(0x18c)]?_0x796bc2(0x157):typeof _0x3fb884;},I(_0x51dbae);}function pe(_0x5c4e4b,_0xfbec46){const _0x23bfd1=_0x1f4ff6;if(I(_0x5c4e4b)!=_0x23bfd1(0x1b1)||!_0x5c4e4b)return _0x5c4e4b;var _0x2ce2f4=_0x5c4e4b[Symbol[_0x23bfd1(0x14a)]];if(_0x2ce2f4!==void 0x0){var _0x46f394=_0x2ce2f4[_0x23bfd1(0x156)](_0x5c4e4b,_0xfbec46||'default');if(I(_0x46f394)!=_0x23bfd1(0x1b1))return _0x46f394;throw TypeError(_0x23bfd1(0x177));}return(_0xfbec46===_0x23bfd1(0x162)?String:Number)(_0x5c4e4b);}function me(_0x215a36){const _0x225e06=_0x1f4ff6;var _0x46fbae=pe(_0x215a36,_0x225e06(0x162));return I(_0x46fbae)==_0x225e06(0x157)?_0x46fbae:_0x46fbae+'';}function L(_0xee7f14,_0x69a5bb,_0x2fccd1){const _0x1bf58c=_0x1f4ff6;return(_0x69a5bb=me(_0x69a5bb))in _0xee7f14?Object[_0x1bf58c(0x13e)](_0xee7f14,_0x69a5bb,{'value':_0x2fccd1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xee7f14[_0x69a5bb]=_0x2fccd1,_0xee7f14;}var R=class extends e['Disposable']{constructor(..._0x269221){const _0x19575a=_0x1f4ff6;super(..._0x269221),L(this,_0x19575a(0x191),new Map()),L(this,_0x19575a(0x197),new n[(_0x19575a(0x138))]()),L(this,_0x19575a(0x1a7),this['_change$'][_0x19575a(0x18b)]());}[_0x1f4ff6(0x1ae)](_0x1dd327,_0x185cce){const _0x221e52=_0x1f4ff6;return o(this[_0x221e52(0x191)][_0x221e52(0x16a)](_0x1dd327))['codes'][_0x185cce];}[_0x1f4ff6(0x199)](_0x5923c1,_0x3b539a,_0x447373){const _0x417724=_0x1f4ff6;this[_0x417724(0x18f)](_0x5923c1,_0x3b539a,s(this[_0x417724(0x191)][_0x417724(0x16a)](_0x5923c1),_0x3b539a,_0x447373));}['removeCode'](_0x5f0637,_0x796d97){const _0x2d1918=_0x1f4ff6;this[_0x2d1918(0x18f)](_0x5f0637,_0x796d97,c(this[_0x2d1918(0x191)][_0x2d1918(0x16a)](_0x5f0637),_0x796d97));}[_0x1f4ff6(0x124)](_0x42f692){const _0x361422=_0x1f4ff6;return o(this[_0x361422(0x191)][_0x361422(0x16a)](_0x42f692));}[_0x1f4ff6(0x113)](_0x396bcd,_0x49f728){const _0x58ff11=_0x1f4ff6;this['_resources'][_0x58ff11(0x1aa)](_0x396bcd,o(_0x49f728)),this[_0x58ff11(0x197)][_0x58ff11(0x194)]({'unitId':_0x396bcd});}['removeUnit'](_0x28221c){const _0x6c5ab5=_0x1f4ff6;this['_resources'][_0x6c5ab5(0x127)](_0x28221c),this[_0x6c5ab5(0x197)]['next']({'unitId':_0x28221c});}[_0x1f4ff6(0x19a)](){const _0x3ff85e=_0x1f4ff6;super[_0x3ff85e(0x19a)](),this[_0x3ff85e(0x191)][_0x3ff85e(0x14c)](),this[_0x3ff85e(0x197)][_0x3ff85e(0x120)]();}[_0x1f4ff6(0x18f)](_0xe497e,_0x34e779,_0x16fa77){const _0x1f2ce3=_0x1f4ff6;this[_0x1f2ce3(0x191)]['set'](_0xe497e,_0x16fa77),this['_change$']['next']({'unitId':_0xe497e,'blockId':_0x34e779});}};const z={'id':_0x1f4ff6(0x13a),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':_0x547e1e=>{const _0x41de4f=_0x1f4ff6;let _0x21d121=he(_0x547e1e);if(_0x21d121)return _0x547e1e[_0x41de4f(0x16a)](e[_0x41de4f(0x182)])[_0x41de4f(0x11d)](V['id'],{'startOffset':_0x21d121[_0x41de4f(0x1a6)],'endOffset':_0x21d121[_0x41de4f(0x1ab)],'unitId':_0x21d121[_0x41de4f(0x178)]});let _0x572ee4=ge(_0x547e1e);if(!_0x572ee4)return!0x1;let _0x1460f8=_0x572ee4[_0x41de4f(0x12e)]+0x1;return _0x547e1e['get'](e['ICommandService'])[_0x41de4f(0x11d)](V['id'],{'startOffset':_0x1460f8,'endOffset':_0x1460f8});}},B={'id':_0x1f4ff6(0x13c),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':()=>!0x0},V={'id':_0x1f4ff6(0x180),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':(_0x1ccfd0,_0x2ccc62)=>{const _0x2d99d6=_0x1f4ff6;var _0x2769b8,_0x587604,_0x200702;let _0x401c1e=G(_0x1ccfd0,_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x178)]);if(!_0x401c1e)return!0x1;let _0x266eb3=K(_0x1ccfd0),_0x5d2015=u({'blockId':(_0x2769b8=_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x16b)])==null?(0x0,e[_0x2d99d6(0x19e)])(0x6):_0x2769b8,'config':_0x2ccc62==null?void 0x0:_0x2ccc62['config'],'documentData':_0x401c1e[_0x2d99d6(0x17c)],'endOffset':(_0x587604=_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x1ab)])==null?_0x266eb3==null?void 0x0:_0x266eb3['endOffset']:_0x587604,'metadata':_0x401c1e[_0x2d99d6(0x140)][_0x2d99d6(0x124)](_0x401c1e[_0x2d99d6(0x178)]),'startOffset':(_0x200702=_0x2ccc62==null?void 0x0:_0x2ccc62[_0x2d99d6(0x1a6)])==null?_0x266eb3==null?void 0x0:_0x266eb3['startOffset']:_0x200702}),_0x1c9984=J(_0x401c1e[_0x2d99d6(0x164)],_0x401c1e[_0x2d99d6(0x178)],_0x401c1e[_0x2d99d6(0x17c)],_0x5d2015[_0x2d99d6(0x12c)],_0x5d2015['cursorOffset']);return _0x1c9984&&_0x5d2015[_0x2d99d6(0x174)]&&_0x401c1e[_0x2d99d6(0x140)][_0x2d99d6(0x113)](_0x401c1e[_0x2d99d6(0x178)],_0x5d2015['nextMetadata']),_0x1c9984;}},H={'id':_0x1f4ff6(0x109),'type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':(_0x5130b5,_0x12642e)=>{const _0x1549e5=_0x1f4ff6;if(!_0x12642e)return!0x1;let _0x157de5=G(_0x5130b5,_0x12642e[_0x1549e5(0x178)]);if(!_0x157de5)return!0x1;let _0x29a82f=p({'blockId':_0x12642e['blockId'],'config':_0x12642e[_0x1549e5(0x155)],'documentData':_0x157de5[_0x1549e5(0x17c)],'metadata':_0x157de5[_0x1549e5(0x140)][_0x1549e5(0x124)](_0x157de5[_0x1549e5(0x178)])});return _0x29a82f[_0x1549e5(0x174)]&&_0x157de5[_0x1549e5(0x140)][_0x1549e5(0x113)](_0x157de5[_0x1549e5(0x178)],_0x29a82f[_0x1549e5(0x174)]),!0x0;}},U={'id':_0x1f4ff6(0x1b4),'type':e[_0x1f4ff6(0x129)]['COMMAND'],'handler':(_0x219f4b,_0x382885)=>{const _0x4fa763=_0x1f4ff6;var _0x1dc74b,_0x330846;let _0x491423=G(_0x219f4b,_0x382885==null?void 0x0:_0x382885[_0x4fa763(0x178)]);if(!_0x491423)return!0x1;let _0x1d0bf0=(_0x1dc74b=_0x382885==null?void 0x0:_0x382885[_0x4fa763(0x12b)])==null?(_0x330846=K(_0x219f4b))==null?void 0x0:_0x330846[_0x4fa763(0x1a6)]:_0x1dc74b;if(_0x1d0bf0==null)return!0x1;let _0x3ac61c=m({'cursorOffset':_0x1d0bf0,'documentData':_0x491423[_0x4fa763(0x17c)]});return _0x3ac61c?J(_0x491423[_0x4fa763(0x164)],_0x491423['unitId'],_0x491423[_0x4fa763(0x17c)],_0x3ac61c[_0x4fa763(0x12c)],_0x3ac61c[_0x4fa763(0x12b)]):!0x1;}},W={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x1f4ff6(0x129)][_0x1f4ff6(0x136)],'handler':(_0x28eec2,_0x4970ad)=>{const _0x1d7c31=_0x1f4ff6;var _0x3e6229,_0xeeac37;let _0x243f62=G(_0x28eec2,_0x4970ad==null?void 0x0:_0x4970ad[_0x1d7c31(0x178)]);if(!_0x243f62)return!0x1;let _0x214ca9=(_0x3e6229=_0x4970ad==null?void 0x0:_0x4970ad['cursorOffset'])==null?(_0xeeac37=K(_0x28eec2))==null?void 0x0:_0xeeac37[_0x1d7c31(0x1a6)]:_0x3e6229;if(_0x214ca9==null)return!0x1;let _0xc0ad2a=h({'cursorOffset':_0x214ca9,'documentData':_0x243f62[_0x1d7c31(0x17c)],'paragraphStartIndex':_0x4970ad==null?void 0x0:_0x4970ad['paragraphStartIndex']});return _0xc0ad2a?J(_0x243f62['commandService'],_0x243f62['unitId'],_0x243f62[_0x1d7c31(0x17c)],_0xc0ad2a[_0x1d7c31(0x12c)],_0xc0ad2a[_0x1d7c31(0x12b)]):!0x1;}};function G(_0x37b7cd,_0x92ec8a){const _0x8ab51c=_0x1f4ff6;let _0x2cb5cf=_0x37b7cd[_0x8ab51c(0x16a)](e[_0x8ab51c(0x134)]),_0x4b8981=_0x92ec8a?_0x2cb5cf['getUniverDocInstance'](_0x92ec8a):_0x2cb5cf[_0x8ab51c(0x115)](e[_0x8ab51c(0x163)][_0x8ab51c(0x1a9)]);return _0x4b8981?{'commandService':_0x37b7cd[_0x8ab51c(0x16a)](e[_0x8ab51c(0x182)]),'model':_0x37b7cd[_0x8ab51c(0x16a)](R),'previousDocumentData':_0x4b8981[_0x8ab51c(0x198)](),'unitId':_0x4b8981[_0x8ab51c(0x18d)]()}:null;}function K(_0x24a784){const _0x2ff8aa=_0x1f4ff6;var _0xc56bdd;return(_0xc56bdd=_0x24a784[_0x2ff8aa(0x16a)](t[_0x2ff8aa(0x12f)])['getTextRanges']())==null?void 0x0:_0xc56bdd[0x0];}function he(_0x5737c1){const _0x25b60e=_0x1f4ff6;var _0x3d82a3;let _0x42fefd=(_0x3d82a3=_0x5737c1[_0x25b60e(0x16a)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType'][_0x25b60e(0x1a9)]))==null?void 0x0:_0x3d82a3[_0x25b60e(0x18d)]();try{return _0x5737c1[_0x25b60e(0x16a)](t[_0x25b60e(0x188)])[_0x25b60e(0x19f)](_0x42fefd);}catch{return null;}}function ge(_0x31d7ed){const _0x2896b0=_0x1f4ff6;var _0x4efeba,_0x43c945,_0xf70176;let _0x13ed77=K(_0x31d7ed);if(!_0x13ed77)return null;let _0x4b957b=_0x31d7ed[_0x2896b0(0x16a)](e[_0x2896b0(0x134)])[_0x2896b0(0x115)](e[_0x2896b0(0x163)]['UNIVER_DOC']),_0x264c17=_0x4b957b==null?void 0x0:_0x4b957b[_0x2896b0(0x146)]();return _0x264c17?(_0x4efeba=e[_0x2896b0(0x173)]['range'][_0x2896b0(0x1b5)](_0x13ed77,(_0x43c945=_0x264c17[_0x2896b0(0x166)])==null?[]:_0x43c945,(_0xf70176=_0x264c17[_0x2896b0(0x158)])==null?'':_0xf70176)[0x0])==null?null:_0x4efeba:null;}function _0x44e9(_0x4e6a63,_0x1a662b){_0x4e6a63=_0x4e6a63-0x109;const _0x7e2243=_0x7e22();let _0x44e94f=_0x7e2243[_0x4e6a63];return _0x44e94f;}function _e(_0x239317,_0x18dc32){const _0x1ddc3c=_0x1f4ff6;var _0x3db9f2,_0x3a8731,_0x459a41,_0x248b00,_0x4f6f5e,_0x566911,_0x46abf9,_0x2ef59e,_0x162acd,_0x168b5a,_0x23f206,_0x1fb79c,_0x470154,_0xe01483,_0x295bd5,_0x482f44,_0x561b23,_0x20c233;let _0x378c17=e[_0x1ddc3c(0x152)][_0x1ddc3c(0x135)]();return[q(_0x378c17,[_0x1ddc3c(0x16f),'dataStream'],(_0x3db9f2=_0x239317['body'])==null?void 0x0:_0x3db9f2['dataStream'],(_0x3a8731=_0x18dc32['body'])==null?void 0x0:_0x3a8731['dataStream']),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x166)],(_0x459a41=_0x239317['body'])==null?void 0x0:_0x459a41[_0x1ddc3c(0x166)],(_0x248b00=_0x18dc32['body'])==null?void 0x0:_0x248b00['paragraphs']),q(_0x378c17,['body',_0x1ddc3c(0x119)],(_0x4f6f5e=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x4f6f5e[_0x1ddc3c(0x119)],(_0x566911=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x566911['sectionBreaks']),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x151)],(_0x46abf9=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x46abf9['textRuns'],(_0x2ef59e=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x2ef59e[_0x1ddc3c(0x151)]),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x161)],(_0x162acd=_0x239317['body'])==null?void 0x0:_0x162acd[_0x1ddc3c(0x161)],(_0x168b5a=_0x18dc32['body'])==null?void 0x0:_0x168b5a['customBlocks']),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x111)],(_0x23f206=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x23f206['customRanges'],(_0x1fb79c=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x1fb79c[_0x1ddc3c(0x111)]),q(_0x378c17,['body','customDecorations'],(_0x470154=_0x239317[_0x1ddc3c(0x16f)])==null?void 0x0:_0x470154[_0x1ddc3c(0x12a)],(_0xe01483=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0xe01483[_0x1ddc3c(0x12a)]),q(_0x378c17,[_0x1ddc3c(0x16f),_0x1ddc3c(0x15d)],(_0x295bd5=_0x239317['body'])==null?void 0x0:_0x295bd5[_0x1ddc3c(0x15d)],(_0x482f44=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x482f44[_0x1ddc3c(0x15d)]),q(_0x378c17,['body',_0x1ddc3c(0x141)],(_0x561b23=_0x239317['body'])==null?void 0x0:_0x561b23[_0x1ddc3c(0x141)],(_0x20c233=_0x18dc32[_0x1ddc3c(0x16f)])==null?void 0x0:_0x20c233[_0x1ddc3c(0x141)])]['filter'](Boolean)['reduce']((_0x2ddb0a,_0x2b945f)=>e[_0x1ddc3c(0x152)][_0x1ddc3c(0x10d)](_0x2ddb0a,_0x2b945f),null);}function q(_0x338bda,_0x5b14ab,_0x446496,_0x591a6c){const _0x46bc58=_0x1f4ff6;return e[_0x46bc58(0x16d)][_0x46bc58(0x15c)](_0x446496,_0x591a6c)?null:_0x338bda[_0x46bc58(0x15b)](_0x5b14ab,_0x446496,_0x591a6c);}function J(_0x423e45,_0x39405b,_0x43e245,_0x5322ea,_0x4c70dd){const _0x1a93c6=_0x1f4ff6;let _0x416607=_e(_0x43e245,_0x5322ea);return _0x416607?!!_0x423e45['syncExecuteCommand'](t[_0x1a93c6(0x176)]['id'],{'unitId':_0x39405b,'actions':_0x416607,'textRanges':[{'startOffset':_0x4c70dd,'endOffset':_0x4c70dd,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y='DOC_CODE_PLUGIN';var ve='@univerjs-pro/docs-code',ye=_0x1f4ff6(0x153);const X={};function Z(_0x27ea71,_0x3089c5){return function(_0x408a20,_0x1c96e5){_0x3089c5(_0x408a20,_0x1c96e5,_0x27ea71);};}function be(_0x552f2f,_0x5d7a48,_0x1f6cd9,_0x5e3be9){const _0xb6b500=_0x1f4ff6;var _0x2596fd=arguments[_0xb6b500(0x1b3)],_0x2473d1=_0x2596fd<0x3?_0x5d7a48:_0x5e3be9===null?_0x5e3be9=Object[_0xb6b500(0x179)](_0x5d7a48,_0x1f6cd9):_0x5e3be9,_0x44615e;if(typeof Reflect=='object'&&typeof Reflect[_0xb6b500(0x186)]==_0xb6b500(0x11a))_0x2473d1=Reflect[_0xb6b500(0x186)](_0x552f2f,_0x5d7a48,_0x1f6cd9,_0x5e3be9);else{for(var _0x3d5c2b=_0x552f2f[_0xb6b500(0x1b3)]-0x1;_0x3d5c2b>=0x0;_0x3d5c2b--)(_0x44615e=_0x552f2f[_0x3d5c2b])&&(_0x2473d1=(_0x2596fd<0x3?_0x44615e(_0x2473d1):_0x2596fd>0x3?_0x44615e(_0x5d7a48,_0x1f6cd9,_0x2473d1):_0x44615e(_0x5d7a48,_0x1f6cd9))||_0x2473d1);}return _0x2596fd>0x3&&_0x2473d1&&Object['defineProperty'](_0x5d7a48,_0x1f6cd9,_0x2473d1),_0x2473d1;}let Q=class extends e[_0x1f4ff6(0x123)]{constructor(_0x2d7077,_0x5c065d){const _0x3ac8b9=_0x1f4ff6;super(),this[_0x3ac8b9(0x142)]=_0x2d7077,this[_0x3ac8b9(0x132)]=_0x5c065d,this[_0x3ac8b9(0x189)]();}[_0x1f4ff6(0x189)](){const _0x2a4f84=_0x1f4ff6;this['disposeWithMe'](this[_0x2a4f84(0x142)][_0x2a4f84(0x17e)]({'pluginName':Y,'businesses':[e[_0x2a4f84(0x163)][_0x2a4f84(0x1a9)]],'toJson':_0x28e97e=>JSON['stringify'](this[_0x2a4f84(0x132)][_0x2a4f84(0x124)](_0x28e97e)),'parseJson':_0x1bb964=>o(JSON['parse'](_0x1bb964)),'onLoad':(_0x2fb3ca,_0x2e3cb9)=>this[_0x2a4f84(0x132)][_0x2a4f84(0x113)](_0x2fb3ca,_0x2e3cb9),'onUnLoad':_0x58e978=>this['_docsCodeModel'][_0x2a4f84(0x1a0)](_0x58e978)}));}};Q=be([Z(0x0,e[_0x1f4ff6(0x11e)]),Z(0x1,(0x0,e[_0x1f4ff6(0x1b0)])(R))],Q);let $=class extends e['Plugin']{constructor(_0x9c0700=X,_0x1a3a57,_0x1222be,_0x39eddc){const _0x3a781c=_0x1f4ff6;super(),this[_0x3a781c(0x14b)]=_0x9c0700,this[_0x3a781c(0x128)]=_0x1a3a57,this[_0x3a781c(0x139)]=_0x1222be,this[_0x3a781c(0x183)]=_0x39eddc;let {..._0x31f629}=(0x0,e['merge'])({},X,this[_0x3a781c(0x14b)]);this[_0x3a781c(0x183)][_0x3a781c(0x19b)](_0x3a781c(0x168),_0x31f629);}[_0x1f4ff6(0x10a)](){const _0x51aaa7=_0x1f4ff6;this[_0x51aaa7(0x128)][_0x51aaa7(0x192)]([R]),this[_0x51aaa7(0x128)]['add']([Q]),this[_0x51aaa7(0x128)]['get'](R),this[_0x51aaa7(0x128)]['get'](Q),[V,z,H,U,W,B][_0x51aaa7(0x10e)](_0x39d023=>this[_0x51aaa7(0x17a)](this[_0x51aaa7(0x139)][_0x51aaa7(0x11c)](_0x39d023)));}};L($,_0x1f4ff6(0x1a5),Y),L($,_0x1f4ff6(0x10f),ve),L($,_0x1f4ff6(0x110),ye),L($,_0x1f4ff6(0x170),e[_0x1f4ff6(0x163)][_0x1f4ff6(0x1a9)]),$=be([(0x0,e[_0x1f4ff6(0x11b)])(r[_0x1f4ff6(0x1ad)],t[_0x1f4ff6(0x16e)]),Z(0x1,(0x0,e['Inject'])(e[_0x1f4ff6(0x159)])),Z(0x2,e[_0x1f4ff6(0x182)]),Z(0x3,e[_0x1f4ff6(0x13d)])],$),exports[_0x1f4ff6(0x14f)]=i,exports['DOCS_CODE_PLUGIN']=Y,exports['DocsCodeCancelEmptyParagraphCommand']=W,exports[_0x1f4ff6(0x196)]=B,exports[_0x1f4ff6(0x181)]=U,exports[_0x1f4ff6(0x133)]=z,exports[_0x1f4ff6(0x13f)]=V,exports['DocsCodeModel']=R,exports[_0x1f4ff6(0x175)]=H,Object[_0x1f4ff6(0x13e)](exports,_0x1f4ff6(0x15e),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports[_0x1f4ff6(0x118)]=m,exports[_0x1f4ff6(0x15f)]=u,exports['buildUpdateCodeActions']=p,exports[_0x1f4ff6(0x19d)]=_,exports['isCodeBoundaryDelete']=v,exports[_0x1f4ff6(0x125)]=a;function _0x7e22(){const _0x256228=['sort','direction','decorate','DocumentBlockRangeType','DocContentInsertService','_initResource','textStyle','asObservable','prototype','getUnitId','max','_setResource','DataStreamTreeTokenType','_resources','add','spaceBelow','next','fromEntries','DocsCodeConsumeBoundaryDeleteCommand','_change$','getSnapshot','setCodeConfig','dispose','setConfig','SECTION_BREAK','findCodeRangeAtOffset','generateRandomId','consumeInsertRange','removeUnit','from','join','documentData','1899kshKIL','pluginName','startOffset','change$','min','UNIVER_DOC','set','endOffset','deepClone','UniverLicensePlugin','getCodeConfig','filter','Inject','object','find','length','docs-code.command.exit','getParagraphsInRange','docs-code.command.update','onStarting','1560wIYYSF','iterator','compose','forEach','packageName','version','customRanges','paragraphStyle','deserialize','6335RxetQT','getCurrentUnitOfType','createParagraphId','indentEnd','buildExitCodeActions','sectionBreaks','function','DependentOn','registerCommand','syncExecuteCommand','IResourceManagerService','endTokenOffset','complete','indentStart','some','Disposable','serialize','normalizeDocsCodeConfig','javascript','delete','_injector','CommandType','customDecorations','cursorOffset','nextDocumentData','map','startIndex','DocSelectionManagerService','215ZQnjmA','33972UaQWyN','_docsCodeModel','DocsCodeInsertBelowCommand','IUniverInstanceService','getInstance','COMMAND','PARAGRAPH','Subject','_commandService','docs-code.command.insert-below','paragraph','docs-code.command.consume-boundary-delete','IConfigService','defineProperty','DocsCodeInsertCommand','model','blockRanges','_resourceManagerService','Document\x20body\x20is\x20required','metadata','codes','getBody','2146560vZttIu','6910lUAKnO','BLOCK_END','toPrimitive','_config','clear','786360bAFQss','1304435wrxANb','DEFAULT_CODE_CONFIG','every','textRuns','JSONX','1.0.0-alpha.0','12YXWlCG','config','call','symbol','dataStream','Injector','constructor','replaceOp','diffValue','tables','UniverDocsCodePlugin','buildInsertCodeActions','CODE','customBlocks','string','UniverInstanceType','commandService','blockType','paragraphs','endIndex','docs-code.config','1714kgHbFq','get','blockId','endsWith','Tools','UniverDocsPlugin','body','type','137BjQUqa','Module','BuildTextUtils','nextMetadata','DocsCodeUpdateCommand','RichTextEditingMutation','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','unitId','getOwnPropertyDescriptor','disposeWithMe','left','previousDocumentData','BLOCK_START','registerPluginResource','slice','docs-code.command.insert','DocsCodeExitCommand','ICommandService','_configService'];_0x7e22=function(){return _0x256228;};return _0x7e22();}
|
|
1
|
+
const _0x25029f=_0x5a9f;(function(_0x3a65d5,_0x1084dd){const _0x4090b0=_0x5a9f,_0x31b12d=_0x3a65d5();while(!![]){try{const _0x2674ee=-parseInt(_0x4090b0(0x121))/0x1*(parseInt(_0x4090b0(0xc7))/0x2)+parseInt(_0x4090b0(0xa8))/0x3*(-parseInt(_0x4090b0(0x109))/0x4)+-parseInt(_0x4090b0(0x11e))/0x5+parseInt(_0x4090b0(0xcd))/0x6+-parseInt(_0x4090b0(0x10c))/0x7+parseInt(_0x4090b0(0x13e))/0x8*(parseInt(_0x4090b0(0xc3))/0x9)+parseInt(_0x4090b0(0xcf))/0xa;if(_0x2674ee===_0x1084dd)break;else _0x31b12d['push'](_0x31b12d['shift']());}catch(_0x1135ce){_0x31b12d['push'](_0x31b12d['shift']());}}}(_0x17f0,0x6767c),Object[_0x25029f(0x136)](exports,Symbol[_0x25029f(0xb0)],{'value':_0x25029f(0xf9)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x25029f(0xca),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x157b4b){return{...i,..._0x157b4b};}function o(_0x536050){const _0x594c77=_0x25029f;var _0x19af89;let _0x189267=(_0x19af89=_0x536050==null?void 0x0:_0x536050['codes'])==null?{}:_0x19af89;return{'codes':Object[_0x594c77(0x11a)](Object[_0x594c77(0x111)](_0x189267)[_0x594c77(0x148)](([_0x79a6d4,_0x4750c9])=>[_0x79a6d4,a(_0x4750c9)]))};}function s(_0x138ec4,_0x25d358,_0x24dac6){const _0x2e1123=_0x25029f;let _0x1abf33=o(_0x138ec4);return _0x1abf33[_0x2e1123(0xaf)][_0x25d358]=a({..._0x1abf33['codes'][_0x25d358],..._0x24dac6}),_0x1abf33;}function c(_0x4b42fd,_0x8564c5){const _0x33b829=_0x25029f;let _0xa5b7c2=o(_0x4b42fd);return delete _0xa5b7c2[_0x33b829(0xaf)][_0x8564c5],_0xa5b7c2;}const l='monospace';function u(_0x51100a){const _0x14a608=_0x25029f;var _0x1d03c0,_0x526ceb,_0x34e8d6;let _0x2e0ad1=w(_0x51100a[_0x14a608(0xdc)]),_0x2ef176=T(_0x2e0ad1),_0x378e9d=f(_0x51100a[_0x14a608(0xd8)],_0x51100a[_0x14a608(0x139)]),_0x5a857d=_0x378e9d?(_0x1d03c0=_0x2ef176[_0x14a608(0xbb)])==null?void 0x0:_0x1d03c0[_0x14a608(0xaa)](_0x25d8f3=>_0x25d8f3[_0x14a608(0x10b)]===_0x378e9d['startOffset']&&_0x25d8f3[_0x14a608(0x12c)]+0x1===_0x378e9d[_0x14a608(0x139)]):void 0x0,{startOffset:_0x1d3e86,endOffset:_0x472f91}=_0x5a857d?_0x378e9d:te(_0x2ef176,_0x51100a[_0x14a608(0xd8)],_0x51100a[_0x14a608(0x139)]),_0x586f0a=ie(_0x2ef176,_0x1d3e86,_0x472f91),_0x3fc888=(_0x526ceb=_0x5a857d==null?void 0x0:_0x5a857d[_0x14a608(0xda)])==null?_0x51100a[_0x14a608(0xda)]:_0x526ceb,_0x58ce21=s(_0x51100a[_0x14a608(0xd7)],_0x3fc888,{...i,..._0x51100a[_0x14a608(0xb9)]});if(_0x5a857d)return _0x5a857d[_0x14a608(0x123)]=e[_0x14a608(0x14a)][_0x14a608(0x122)],d(_0x2ef176,_0x1d3e86,_0x472f91),x(_0x2ef176,_0x1d3e86,_0x472f91,_0x586f0a),O(_0x2ef176,_0x5a857d),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};if(_0x1d3e86===_0x472f91){var _0x4cb3ea,_0x31fc80;let _0x30880d=''+e[_0x14a608(0x13c)][_0x14a608(0x132)]+e['DataStreamTreeTokenType'][_0x14a608(0xf8)]+e['DataStreamTreeTokenType'][_0x14a608(0x108)];k(_0x2ef176,_0x1d3e86,_0x30880d,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x14a608(0x14c)])(new Set((_0x4cb3ea=_0x2ef176[_0x14a608(0x113)])==null?void 0x0:_0x4cb3ea[_0x14a608(0x148)](_0x5618cd=>_0x5618cd[_0x14a608(0x13f)]))),'paragraphStyle':b(!0x0,!0x0,_0x586f0a)}],'blockRanges':[{'blockId':_0x3fc888,'blockType':e[_0x14a608(0x14a)][_0x14a608(0x122)],'startIndex':0x0,'endIndex':_0x30880d['length']-0x1}]});let _0x5c0348=(_0x31fc80=_0x2ef176[_0x14a608(0xbb)])==null?void 0x0:_0x31fc80['find'](_0x50cca4=>_0x50cca4[_0x14a608(0xda)]===_0x3fc888);return _0x5c0348&&O(_0x2ef176,_0x5c0348),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};}k(_0x2ef176,_0x472f91,e[_0x14a608(0x13c)][_0x14a608(0x108)]),k(_0x2ef176,_0x1d3e86,e['DataStreamTreeTokenType'][_0x14a608(0x132)]),x(_0x2ef176,_0x1d3e86,_0x472f91+0x1,_0x586f0a);let _0xd5a6e8={'blockId':_0x3fc888,'blockType':e[_0x14a608(0x14a)][_0x14a608(0x122)],'startIndex':_0x1d3e86,'endIndex':_0x472f91+0x1};return _0x2ef176[_0x14a608(0xbb)]=[...(_0x34e8d6=_0x2ef176[_0x14a608(0xbb)])==null?[]:_0x34e8d6,_0xd5a6e8][_0x14a608(0xfd)]((_0x2cbdd6,_0x533910)=>_0x2cbdd6['startIndex']-_0x533910['startIndex']),O(_0x2ef176,_0xd5a6e8),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};}function d(_0x2ea3fa,_0x4a608e,_0x1c3cff){const _0x2f2f94=_0x25029f;var _0x22915a;((_0x22915a=_0x2ea3fa[_0x2f2f94(0x113)])==null?[]:_0x22915a)[_0x2f2f94(0xe8)](_0x1c5b4f=>_0x1c5b4f[_0x2f2f94(0x10b)]>_0x4a608e&&_0x1c5b4f[_0x2f2f94(0x10b)]<_0x1c3cff)[_0x2f2f94(0x12e)](_0x44f5fc=>{const _0x4a5eac=_0x2f2f94;var _0xbb2233;let _0x3fb2de={...(_0xbb2233=_0x44f5fc[_0x4a5eac(0xa6)])==null?{}:_0xbb2233};delete _0x3fb2de[_0x4a5eac(0xeb)],delete _0x3fb2de['spaceBelow'],_0x44f5fc[_0x4a5eac(0xa6)]=_0x3fb2de;});}function f(_0x3a8c97,_0x1e1ad7){const _0x173622=_0x25029f;return _0x3a8c97==null||_0x1e1ad7==null||_0x3a8c97===_0x1e1ad7?null:{'startOffset':Math[_0x173622(0xcc)](_0x3a8c97,_0x1e1ad7),'endOffset':Math[_0x173622(0xb7)](_0x3a8c97,_0x1e1ad7)};}function p(_0x3116d2){const _0x4d4a05=_0x25029f;return{'nextDocumentData':w(_0x3116d2[_0x4d4a05(0xdc)]),'nextMetadata':s(_0x3116d2[_0x4d4a05(0xd7)],_0x3116d2[_0x4d4a05(0xda)],_0x3116d2[_0x4d4a05(0xb9)]),'cursorOffset':0x0};}function m(_0x2d6790){const _0x3a8660=_0x25029f;var _0x3dce45,_0x112803;let _0x500ba0=w(_0x2d6790[_0x3a8660(0xdc)]),_0x592d51=T(_0x500ba0),_0x5cfd40=y(_0x592d51,_0x2d6790[_0x3a8660(0xfc)]);if(!_0x5cfd40)return null;let _0x547887=C(_0x592d51,_0x5cfd40),_0x206f30=_0x547887[_0x547887[_0x3a8660(0x110)]-0x1];if(!_0x206f30||!ee(_0x592d51,_0x5cfd40,_0x206f30)||_0x2d6790[_0x3a8660(0xfc)]<_0x206f30[_0x3a8660(0x10b)])return null;let _0x491428=oe(_0x592d51,_0x5cfd40,_0x206f30);if(_0x491428>=_0x5cfd40[_0x3a8660(0x12c)])return null;_0x592d51[_0x3a8660(0xed)]=[_0x592d51[_0x3a8660(0xed)][_0x3a8660(0x119)](0x0,_0x491428),e['DataStreamTreeTokenType']['BLOCK_END'],_0x592d51[_0x3a8660(0xed)][_0x3a8660(0x119)](_0x491428,_0x5cfd40['endIndex']),_0x592d51[_0x3a8660(0xed)]['slice'](_0x5cfd40[_0x3a8660(0x12c)]+0x1)]['join'](''),P(_0x592d51[_0x3a8660(0x113)],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),P(_0x592d51['sectionBreaks'],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),P(_0x592d51['customBlocks'],_0x491428,_0x5cfd40['endIndex'],0x1),fe(_0x592d51[_0x3a8660(0xf5)],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51['tables'],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51[_0x3a8660(0xa7)],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51[_0x3a8660(0xea)],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),(_0x3dce45=_0x592d51[_0x3a8660(0xbb)])==null||_0x3dce45[_0x3a8660(0x12e)](_0xcb1c28=>{const _0x5250bc=_0x3a8660;_0xcb1c28===_0x5cfd40||_0xcb1c28[_0x5250bc(0xda)]===_0x5cfd40['blockId']?_0xcb1c28['endIndex']=_0x491428:_0xcb1c28['startIndex']>=_0x491428&&_0xcb1c28[_0x5250bc(0x10b)]<_0x5cfd40[_0x5250bc(0x12c)]&&(_0xcb1c28[_0x5250bc(0x10b)]+=0x1,_0xcb1c28[_0x5250bc(0x12c)]+=0x1);});let _0x2ec364=C(_0x592d51,{..._0x5cfd40,'endIndex':_0x491428});_0x2ec364[_0x3a8660(0x12e)]((_0x3b7203,_0x993083)=>{const _0x4fd436=_0x3a8660;var _0x50960f;_0x3b7203[_0x4fd436(0xa6)]={...(_0x50960f=_0x3b7203['paragraphStyle'])==null?{}:_0x50960f,...b(_0x993083===0x0,_0x993083===_0x2ec364[_0x4fd436(0x110)]-0x1)};});let _0xf87312=(_0x112803=_0x592d51[_0x3a8660(0x113)])==null?void 0x0:_0x112803[_0x3a8660(0xaa)](_0x50eccc=>_0x50eccc[_0x3a8660(0x10b)]===_0x491428+0x1);return _0xf87312&&(_0xf87312['paragraphStyle']=S(_0xf87312[_0x3a8660(0xa6)])),{'nextDocumentData':_0x500ba0,'cursorOffset':_0x491428+0x1};}function h(_0x1280fd){const _0x37c79d=_0x25029f;let _0x57ea77=w(_0x1280fd[_0x37c79d(0xdc)]),_0x3986bb=T(_0x57ea77),_0x1b6fbc=y(_0x3986bb,_0x1280fd[_0x37c79d(0xfc)]);return _0x1b6fbc&&g(_0x57ea77,_0x3986bb,_0x1b6fbc,_0x1280fd['cursorOffset'],_0x1280fd[_0x37c79d(0xe1)])||null;}function g(_0x33999a,_0x298a0d,_0x45dbb7,_0x4a3109,_0x2865df){const _0xf79903=_0x25029f;let _0x5d5aee=se(_0x298a0d,_0x45dbb7,_0x4a3109,_0x2865df);if(!_0x5d5aee)return null;let _0x525d39=_0x5d5aee['endTokenOffset']-0x1;return ce(_0x298a0d,_0x5d5aee[_0xf79903(0xcb)][_0xf79903(0x10b)],_0x5d5aee[_0xf79903(0xcb)][_0xf79903(0x10b)]+0x1),{'nextDocumentData':_0x33999a,'cursorOffset':_0x525d39};}function _(_0x3ccd7a,_0x55667b){const _0x16e2d9=_0x25029f;var _0x196873;return _0x3ccd7a==null||(_0x196873=_0x3ccd7a['blockRanges'])==null?void 0x0:_0x196873[_0x16e2d9(0xaa)](_0x169a60=>_0x169a60[_0x16e2d9(0x123)]===e[_0x16e2d9(0x14a)][_0x16e2d9(0x122)]&&_0x169a60['startIndex']<=_0x55667b&&_0x55667b<=_0x169a60[_0x16e2d9(0x12c)]);}function v(_0x57cd5d){const _0x5cfa8d=_0x25029f;var _0x31132b;let _0x31e6ce=_0x57cd5d[_0x5cfa8d(0xdc)][_0x5cfa8d(0xb5)];if(!_0x31e6ce)return!0x1;let _0x55fbd3=_0x57cd5d[_0x5cfa8d(0x105)]===_0x5cfa8d(0xe5)?_0x57cd5d['cursorOffset']-0x1:_0x57cd5d[_0x5cfa8d(0xfc)],_0x28432d=_0x57cd5d[_0x5cfa8d(0x105)]===_0x5cfa8d(0x107)?_0x57cd5d[_0x5cfa8d(0xfc)]+0x1:_0x55fbd3;return((_0x31132b=_0x31e6ce['blockRanges'])==null?[]:_0x31132b)[_0x5cfa8d(0xbf)](_0x5b82ff=>_0x5b82ff[_0x5cfa8d(0x123)]===e[_0x5cfa8d(0x14a)][_0x5cfa8d(0x122)]?_0x55fbd3===_0x5b82ff['startIndex']||_0x55fbd3===_0x5b82ff[_0x5cfa8d(0x12c)]||_0x28432d===_0x5b82ff[_0x5cfa8d(0x10b)]||_0x28432d===_0x5b82ff[_0x5cfa8d(0x12c)]:!0x1);}function y(_0x3dde4b,_0x5a1a5d){const _0x311231=_0x25029f;var _0xb40636;return(_0xb40636=_0x3dde4b['blockRanges'])==null?void 0x0:_0xb40636[_0x311231(0xaa)](_0x1ae841=>{const _0x5cf035=_0x311231;let _0x52b39d=D(_0x3dde4b,_0x1ae841);return _0x1ae841[_0x5cf035(0x123)]===e[_0x5cf035(0x14a)]['CODE']&&_0x1ae841[_0x5cf035(0x10b)]<=_0x5a1a5d&&_0x5a1a5d<=_0x52b39d+0x2;});}function b(_0x36061e,_0x2771e2,_0x13cc43=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x36061e&&_0x13cc43?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x1bb67a,_0x5e6534,_0x9b4c47,_0x4ab919=!0x1){const _0x1ea393=_0x25029f;var _0xc99b59;let _0x303d58=((_0xc99b59=_0x1bb67a['paragraphs'])==null?[]:_0xc99b59)['filter'](_0x394006=>_0x394006[_0x1ea393(0x10b)]>_0x5e6534&&_0x394006[_0x1ea393(0x10b)]<_0x9b4c47);_0x303d58[_0x1ea393(0x12e)]((_0x5a29c8,_0x52372f)=>{const _0x552661=_0x1ea393;var _0x3820e8;_0x5a29c8[_0x552661(0xa6)]={...(_0x3820e8=_0x5a29c8['paragraphStyle'])==null?{}:_0x3820e8,...b(_0x52372f===0x0,_0x52372f===_0x303d58[_0x552661(0x110)]-0x1,_0x4ab919)};});}function S(_0x2e3d7e){const _0x2114e7=_0x25029f;var _0x3c6e3e,_0x495bd6;let _0x215391={..._0x2e3d7e==null?{}:_0x2e3d7e};return delete _0x215391[_0x2114e7(0xb6)],delete _0x215391[_0x2114e7(0x12d)],delete _0x215391[_0x2114e7(0xeb)],delete _0x215391[_0x2114e7(0xd4)],((_0x3c6e3e=_0x215391[_0x2114e7(0x144)])==null?void 0x0:_0x3c6e3e['ff'])===l&&((_0x495bd6=_0x215391[_0x2114e7(0x144)])==null?void 0x0:_0x495bd6['fs'])===0xc&&delete _0x215391[_0x2114e7(0x144)],_0x215391;}function C(_0x14a3d8,_0x186ff0){const _0x98997f=_0x25029f;var _0x7c74c2;let _0x15f664=D(_0x14a3d8,_0x186ff0);return((_0x7c74c2=_0x14a3d8[_0x98997f(0x113)])==null?[]:_0x7c74c2)['filter'](_0x358e6a=>_0x358e6a[_0x98997f(0x10b)]>_0x186ff0['startIndex']&&_0x358e6a[_0x98997f(0x10b)]<_0x15f664);}function ee(_0x33d224,_0x3809f7,_0x67fb64){const _0x2ceb74=_0x25029f;let _0x5b06b8=oe(_0x33d224,_0x3809f7,_0x67fb64),_0x54a6aa=_0x33d224[_0x2ceb74(0xed)][_0x2ceb74(0x119)](_0x5b06b8,_0x67fb64[_0x2ceb74(0x10b)]);return Array[_0x2ceb74(0xd3)](_0x54a6aa)['every'](_0x1ecfab=>_0x1ecfab===e['DataStreamTreeTokenType'][_0x2ceb74(0x132)]||_0x1ecfab===e['DataStreamTreeTokenType']['BLOCK_END']);}function w(_0x2055c3){const _0x4ec339=_0x25029f;return e[_0x4ec339(0xb8)][_0x4ec339(0x125)](_0x2055c3);}function T(_0x59ba0f){const _0x382278=_0x25029f;if(!_0x59ba0f[_0x382278(0xb5)])throw Error(_0x382278(0xae));return _0x59ba0f[_0x382278(0xb5)];}function te(_0x227637,_0x27db1c,_0xcc3c51){const _0x38ac52=_0x25029f;if(_0x27db1c==null||_0xcc3c51==null){let _0x5e9472=re(_0x227637);return{'startOffset':_0x5e9472,'endOffset':_0x5e9472};}let _0xc92ea=Math[_0x38ac52(0xcc)](_0x27db1c,_0xcc3c51),_0x219b7a=Math['max'](_0x27db1c,_0xcc3c51);if(_0xc92ea===_0x219b7a){let _0x527d86=ne(_0x227637,_0xc92ea);return{'startOffset':_0x527d86,'endOffset':_0x527d86};}return ae(_0x227637,_0xc92ea,_0x219b7a);}function ne(_0x24792a,_0x4cd79b){const _0x1bfc41=_0x25029f;return _0x4cd79b===0x0&&_0x24792a[_0x1bfc41(0xed)][0x0]===e[_0x1bfc41(0x13c)]['PARAGRAPH']?0x1:_0x4cd79b;}function re(_0x25883a){const _0x16c8f8=_0x25029f;return _0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0xd0)](e[_0x16c8f8(0x13c)][_0x16c8f8(0xe9)])?Math[_0x16c8f8(0xb7)](0x0,_0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0x110)]-0x1):_0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0x110)];}function ie(_0xfa7fd4,_0x57e6d9,_0xc0cefd){const _0x466c78=_0x25029f;var _0x1b0735;let _0x1ff81f=Math[_0x466c78(0xcc)](_0x57e6d9,_0xc0cefd),_0xebccab=Math[_0x466c78(0xb7)](_0x57e6d9,_0xc0cefd);return!!((_0x1b0735=_0xfa7fd4[_0x466c78(0x12b)])!=null&&_0x1b0735[_0x466c78(0xbf)](_0x5e8e65=>_0x1ff81f>_0x5e8e65[_0x466c78(0x10b)]&&_0x1ff81f<_0x5e8e65[_0x466c78(0x12c)]||_0xebccab>_0x5e8e65[_0x466c78(0x10b)]&&_0xebccab<_0x5e8e65[_0x466c78(0x12c)]||_0x1ff81f<=_0x5e8e65[_0x466c78(0x10b)]&&_0xebccab>=_0x5e8e65[_0x466c78(0x12c)]));}function ae(_0x2814d8,_0x141775,_0x1f2d89){const _0x55bf1f=_0x25029f;var _0x1b8def,_0x1bd8cc;let _0x2415d7=[...(_0x1b8def=_0x2814d8[_0x55bf1f(0x113)])==null?[]:_0x1b8def][_0x55bf1f(0xfd)]((_0x36c7dd,_0x5e4992)=>_0x36c7dd['startIndex']-_0x5e4992[_0x55bf1f(0x10b)]),_0x566bde=_0x2415d7[_0x55bf1f(0xaa)]((_0x45392d,_0x20c0c2)=>(_0x20c0c2===0x0?0x0:_0x2415d7[_0x20c0c2-0x1][_0x55bf1f(0x10b)]+0x1)<=_0x141775&&_0x141775<=_0x45392d[_0x55bf1f(0x10b)]),_0x540572=(_0x1bd8cc=_0x2415d7['find'](_0x1d16bc=>_0x1d16bc['startIndex']>=_0x1f2d89-0x1))==null?_0x2415d7[_0x2415d7['length']-0x1]:_0x1bd8cc;return{'startOffset':_0x566bde?E(_0x2415d7,_0x566bde):_0x141775,'endOffset':_0x540572?_0x540572[_0x55bf1f(0x10b)]+0x1:_0x1f2d89};}function E(_0x890ae9,_0x3480e1){const _0x302f19=_0x25029f;let _0x195bdd=_0x890ae9['indexOf'](_0x3480e1);return _0x195bdd>0x0?_0x890ae9[_0x195bdd-0x1][_0x302f19(0x10b)]+0x1:0x0;}function oe(_0x5a4dcd,_0x26d871,_0x128513){const _0x2bde60=_0x25029f;var _0x336f32;return Math[_0x2bde60(0xb7)](E((_0x336f32=_0x5a4dcd[_0x2bde60(0x113)])==null?[]:_0x336f32,_0x128513),_0x26d871[_0x2bde60(0x10b)]+0x1);}function _0x17f0(){const _0x51fbd8=['1387175OSmcQJ','get','buildUpdateCodeActions','25836FWdKFH','CODE','blockType','getInstance','deepClone','Subject','_change$','function','commandService','set','tables','endIndex','indentStart','forEach','DocsCodeInsertCommand','RichTextEditingMutation','_setResource','BLOCK_START','CommandType','DocsCodeConsumeBoundaryDeleteCommand','_injector','defineProperty','IConfigService','object','endOffset','pluginName','nextMetadata','DataStreamTreeTokenType','serialize','8zKRwQF','paragraphId','version','Inject','getCodeConfig','docs-code.command.update','textStyle','every','Disposable','DocsCodeCancelEmptyParagraphCommand','map','ICommandService','DocumentBlockRangeType','_resources','createParagraphId','_resourceManagerService','paragraphStyle','customRanges','3LBSavO','previousDocumentData','find','reduce','decorate','registerCommand','Document\x20body\x20is\x20required','codes','toStringTag','setCodeConfig','compose','type','buildInsertCodeActions','body','indentEnd','max','Tools','config','UNIVER_DOC','blockRanges','replaceOp','getUniverDocInstance','DOC_CODE_PLUGIN','some','sectionBreaks','stringify','customBlocks','118539sBNmFG','COMMAND','docs-code.command.insert','deserialize','32ZbnhyE','removeCode','unitId','javascript','paragraph','min','3806298ZnrRcs','consumeInsertRange','18946740RqDfLv','endsWith','symbol','getTextRanges','from','spaceBelow','iterator','setConfig','metadata','startOffset','string','blockId','@univerjs-pro/docs-code','documentData','docs-code.command.insert-below','dispose','packageName','syncExecuteCommand','paragraphStartIndex','next','delete','parse','left','BuildTextUtils','UniverInstanceType','filter','SECTION_BREAK','customDecorations','spaceAbove','docs-code.command.exit','dataStream','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getBody','asObservable','DocSelectionManagerService','DocsCodeInsertBelowCommand','Injector','textRuns','docs-code.command.cancel-empty-paragraph','IResourceManagerService','PARAGRAPH','Module','range','IUniverInstanceService','cursorOffset','sort','buildCancelEmptyCodeParagraphActions','add','removeUnit','buildExitCodeActions','normalizeDocsCodeConfig','merge','model','direction','Plugin','right','BLOCK_END','2660332PWAXJt','DocContentInsertService','startIndex','5339502mAvotp','_config','nextDocumentData','_docsCodeModel','length','entries','docs-code.command.consume-boundary-delete','paragraphs','getParagraphsInRange','default','generateRandomId','getOwnPropertyDescriptor','getCurrentUnitOfType','slice','fromEntries','_initResource','prototype','_commandService'];_0x17f0=function(){return _0x51fbd8;};return _0x17f0();}function D(_0x51ef2a,_0x51998a){const _0x520f47=_0x25029f;return _0x51ef2a[_0x520f47(0xed)][_0x51998a[_0x520f47(0x12c)]]===e['DataStreamTreeTokenType'][_0x520f47(0x108)]?_0x51998a[_0x520f47(0x12c)]:_0x51ef2a[_0x520f47(0xed)][_0x51998a['endIndex']+0x1]===e[_0x520f47(0x13c)]['BLOCK_END']?_0x51998a[_0x520f47(0x12c)]+0x1:_0x51998a[_0x520f47(0x12c)];}function se(_0x39c41e,_0x3a81ff,_0x27b96d,_0x801f2b){const _0x1797aa=_0x25029f;var _0x1085c3,_0x2cf3c5;let _0x5d5af9=D(_0x39c41e,_0x3a81ff),_0x9f7538=((_0x1085c3=_0x39c41e[_0x1797aa(0x113)])==null?[]:_0x1085c3)[_0x1797aa(0xaa)](_0x477e1d=>_0x477e1d[_0x1797aa(0x10b)]===_0x5d5af9+0x1);if(!_0x9f7538||_0x801f2b!=null&&_0x9f7538['startIndex']!==_0x801f2b||_0x27b96d<_0x5d5af9||_0x27b96d>_0x9f7538['startIndex']+0x1||_0x39c41e[_0x1797aa(0xed)][_0x9f7538[_0x1797aa(0x10b)]]!==e[_0x1797aa(0x13c)][_0x1797aa(0xf8)])return null;let _0x535fe9=E((_0x2cf3c5=_0x39c41e[_0x1797aa(0x113)])==null?[]:_0x2cf3c5,_0x9f7538),_0x350a0b=_0x39c41e[_0x1797aa(0xed)][_0x1797aa(0x119)](_0x535fe9,_0x9f7538[_0x1797aa(0x10b)]);return Array[_0x1797aa(0xd3)](_0x350a0b)[_0x1797aa(0x145)](_0x4fe124=>_0x4fe124===e[_0x1797aa(0x13c)][_0x1797aa(0x108)])?{'paragraph':_0x9f7538,'endTokenOffset':_0x5d5af9}:null;}function O(_0x4eb8df,_0x186c89){const _0x5c0c1f=_0x25029f;var _0x193440;let _0x424624=D(_0x4eb8df,_0x186c89),_0x175a36=_0x4eb8df['dataStream'][_0x424624+0x1];_0x175a36!==e['DataStreamTreeTokenType'][_0x5c0c1f(0xe9)]&&_0x175a36!==void 0x0||k(_0x4eb8df,_0x424624+0x1,e[_0x5c0c1f(0x13c)][_0x5c0c1f(0xf8)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x5c0c1f(0x14c)])(new Set((_0x193440=_0x4eb8df['paragraphs'])==null?void 0x0:_0x193440[_0x5c0c1f(0x148)](_0x1090ed=>_0x1090ed['paragraphId'])))}]});}function k(_0x32736d,_0x290def,_0x556e9b,_0x2be2cf={}){const _0x238a65=_0x25029f;var _0x1e5c57,_0x7129a1;if(_0x556e9b){if(_0x32736d['dataStream']=''+_0x32736d[_0x238a65(0xed)][_0x238a65(0x119)](0x0,_0x290def)+_0x556e9b+_0x32736d[_0x238a65(0xed)][_0x238a65(0x119)](_0x290def),le(_0x32736d,_0x290def,_0x556e9b[_0x238a65(0x110)]),(_0x1e5c57=_0x2be2cf[_0x238a65(0x113)])!=null&&_0x1e5c57[_0x238a65(0x110)]){var _0x1ac0bb;_0x32736d[_0x238a65(0x113)]=[...(_0x1ac0bb=_0x32736d[_0x238a65(0x113)])==null?[]:_0x1ac0bb,..._0x2be2cf['paragraphs'][_0x238a65(0x148)](_0x1cc640=>({..._0x1cc640,'startIndex':_0x1cc640['startIndex']+_0x290def}))]['sort']((_0x2f9853,_0x440a75)=>_0x2f9853[_0x238a65(0x10b)]-_0x440a75['startIndex']);}if((_0x7129a1=_0x2be2cf[_0x238a65(0xbb)])!=null&&_0x7129a1[_0x238a65(0x110)]){var _0x2d1c05;_0x32736d['blockRanges']=[...(_0x2d1c05=_0x32736d[_0x238a65(0xbb)])==null?[]:_0x2d1c05,..._0x2be2cf[_0x238a65(0xbb)][_0x238a65(0x148)](_0x233d03=>({..._0x233d03,'startIndex':_0x233d03['startIndex']+_0x290def,'endIndex':_0x233d03[_0x238a65(0x12c)]+_0x290def}))][_0x238a65(0xfd)]((_0x1355db,_0x452557)=>_0x1355db[_0x238a65(0x10b)]-_0x452557['startIndex']);}}}function ce(_0x394d21,_0x3fa56b,_0x2e3efe){const _0x1844ed=_0x25029f;let _0x44be94=_0x2e3efe-_0x3fa56b;_0x394d21[_0x1844ed(0xed)]=''+_0x394d21[_0x1844ed(0xed)][_0x1844ed(0x119)](0x0,_0x3fa56b)+_0x394d21['dataStream'][_0x1844ed(0x119)](_0x2e3efe),ue(_0x394d21,_0x3fa56b,_0x44be94);}function le(_0x193fcf,_0x5c3dd2,_0x52b9b2){const _0x4b7273=_0x25029f;_0x193fcf[_0x4b7273(0x113)]=A(_0x193fcf['paragraphs'],_0x5c3dd2,_0x52b9b2),_0x193fcf['sectionBreaks']=A(_0x193fcf[_0x4b7273(0xc0)],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xc2)]=A(_0x193fcf[_0x4b7273(0xc2)],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xf5)]=de(_0x193fcf[_0x4b7273(0xf5)],_0x5c3dd2,_0x52b9b2),_0x193fcf['tables']=M(_0x193fcf[_0x4b7273(0x12b)],_0x5c3dd2,_0x52b9b2),_0x193fcf['customRanges']=M(_0x193fcf['customRanges'],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xea)]=M(_0x193fcf['customDecorations'],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xbb)]=M(_0x193fcf[_0x4b7273(0xbb)],_0x5c3dd2,_0x52b9b2);}function ue(_0x1c8aa2,_0x4ede8b,_0x448a8d){const _0x12edac=_0x25029f;var _0x5f1a3e,_0x2a8aa9;_0x1c8aa2['paragraphs']=j(_0x1c8aa2[_0x12edac(0x113)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xc0)]=j(_0x1c8aa2['sectionBreaks'],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xc2)]=j(_0x1c8aa2['customBlocks'],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xf5)]=(_0x5f1a3e=N((_0x2a8aa9=_0x1c8aa2[_0x12edac(0xf5)])==null?void 0x0:_0x2a8aa9['map'](_0x49cb15=>({..._0x49cb15,'startIndex':_0x49cb15['st'],'endIndex':_0x49cb15['ed']})),_0x4ede8b,_0x448a8d))==null?void 0x0:_0x5f1a3e['map'](_0x52f6f4=>{let {startIndex:_0x47f6c5,endIndex:_0x32b9c5,..._0xeca66d}=_0x52f6f4;return{..._0xeca66d,'st':_0x47f6c5,'ed':_0x32b9c5};}),_0x1c8aa2[_0x12edac(0x12b)]=N(_0x1c8aa2[_0x12edac(0x12b)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xa7)]=N(_0x1c8aa2[_0x12edac(0xa7)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xea)]=N(_0x1c8aa2[_0x12edac(0xea)],_0x4ede8b,_0x448a8d),_0x1c8aa2['blockRanges']=N(_0x1c8aa2[_0x12edac(0xbb)],_0x4ede8b,_0x448a8d);}function A(_0x38af01,_0x45e215,_0x1ade54){const _0xf428a5=_0x25029f;return _0x38af01==null?void 0x0:_0x38af01['map'](_0x225da8=>_0x225da8[_0xf428a5(0x10b)]>=_0x45e215?{..._0x225da8,'startIndex':_0x225da8['startIndex']+_0x1ade54}:_0x225da8);}function j(_0x9e3826,_0x48b05f,_0x2f58e5){const _0x4a278f=_0x25029f;let _0x4c73c2=_0x48b05f+_0x2f58e5;return _0x9e3826==null?void 0x0:_0x9e3826[_0x4a278f(0x148)](_0x41d9bd=>_0x41d9bd[_0x4a278f(0x10b)]>=_0x48b05f&&_0x41d9bd[_0x4a278f(0x10b)]<_0x4c73c2?null:_0x41d9bd[_0x4a278f(0x10b)]>=_0x4c73c2?{..._0x41d9bd,'startIndex':_0x41d9bd[_0x4a278f(0x10b)]-_0x2f58e5}:_0x41d9bd)[_0x4a278f(0xe8)](_0x5d990a=>_0x5d990a!=null);}function de(_0x126b66,_0x28b9bb,_0x41510f){const _0x872298=_0x25029f;return _0x126b66==null?void 0x0:_0x126b66[_0x872298(0x148)](_0x271278=>_0x271278['st']>=_0x28b9bb?{..._0x271278,'st':_0x271278['st']+_0x41510f,'ed':_0x271278['ed']+_0x41510f}:_0x271278['ed']>_0x28b9bb?{..._0x271278,'ed':_0x271278['ed']+_0x41510f}:_0x271278);}function M(_0xe24da4,_0x158949,_0x216ef0){const _0x15427d=_0x25029f;return _0xe24da4==null?void 0x0:_0xe24da4[_0x15427d(0x148)](_0x4c34b0=>_0x4c34b0['startIndex']>=_0x158949?{..._0x4c34b0,'startIndex':_0x4c34b0[_0x15427d(0x10b)]+_0x216ef0,'endIndex':_0x4c34b0[_0x15427d(0x12c)]+_0x216ef0}:_0x4c34b0[_0x15427d(0x12c)]>=_0x158949?{..._0x4c34b0,'endIndex':_0x4c34b0[_0x15427d(0x12c)]+_0x216ef0}:_0x4c34b0);}function N(_0x43fb96,_0x351f40,_0x108fe2){const _0x47676b=_0x25029f;let _0x397a61=_0x351f40+_0x108fe2;return _0x43fb96==null?void 0x0:_0x43fb96[_0x47676b(0x148)](_0x16efc2=>_0x16efc2[_0x47676b(0x10b)]>=_0x351f40&&_0x16efc2[_0x47676b(0x12c)]<_0x397a61?null:_0x16efc2[_0x47676b(0x10b)]>=_0x397a61?{..._0x16efc2,'startIndex':_0x16efc2[_0x47676b(0x10b)]-_0x108fe2,'endIndex':_0x16efc2[_0x47676b(0x12c)]-_0x108fe2}:_0x16efc2['endIndex']>=_0x351f40?{..._0x16efc2,'startIndex':_0x16efc2['startIndex']<_0x351f40?_0x16efc2[_0x47676b(0x10b)]:_0x351f40,'endIndex':Math['max'](_0x351f40,_0x16efc2['endIndex']-_0x108fe2)}:_0x16efc2)['filter'](_0x2f5632=>_0x2f5632!=null);}function P(_0x26d3c9,_0x41c9fe,_0x4b0e55,_0x1863f9){const _0x530100=_0x25029f;_0x26d3c9==null||_0x26d3c9[_0x530100(0x12e)](_0x24894d=>{const _0x913cda=_0x530100;_0x24894d[_0x913cda(0x10b)]>=_0x41c9fe&&_0x24894d[_0x913cda(0x10b)]<_0x4b0e55&&(_0x24894d[_0x913cda(0x10b)]+=_0x1863f9);});}function fe(_0xd932d3,_0x40991c,_0x2d5e8a,_0x1dff0a){_0xd932d3==null||_0xd932d3['forEach'](_0x3384d5=>{_0x3384d5['st']>=_0x40991c&&_0x3384d5['st']<_0x2d5e8a?(_0x3384d5['st']+=_0x1dff0a,_0x3384d5['ed']+=_0x1dff0a):_0x3384d5['ed']>_0x40991c&&_0x3384d5['ed']<_0x2d5e8a&&(_0x3384d5['ed']+=_0x1dff0a);});}function F(_0x37d737,_0x49585b,_0x2fb26f,_0x3adb89){const _0x2db32f=_0x25029f;_0x37d737==null||_0x37d737[_0x2db32f(0x12e)](_0x1556cb=>{const _0x191ebe=_0x2db32f;_0x1556cb[_0x191ebe(0x10b)]>=_0x49585b&&_0x1556cb[_0x191ebe(0x10b)]<_0x2fb26f?(_0x1556cb[_0x191ebe(0x10b)]+=_0x3adb89,_0x1556cb[_0x191ebe(0x12c)]+=_0x3adb89):_0x1556cb[_0x191ebe(0x12c)]>_0x49585b&&_0x1556cb[_0x191ebe(0x12c)]<_0x2fb26f&&(_0x1556cb['endIndex']+=_0x3adb89);});}function I(_0x12bdc7){'@babel/helpers - typeof';const _0x300bf8=_0x25029f;return I=typeof Symbol==_0x300bf8(0x128)&&typeof Symbol[_0x300bf8(0xd5)]==_0x300bf8(0xd1)?function(_0x460587){return typeof _0x460587;}:function(_0x21c31e){const _0x51d51e=_0x300bf8;return _0x21c31e&&typeof Symbol==_0x51d51e(0x128)&&_0x21c31e['constructor']===Symbol&&_0x21c31e!==Symbol[_0x51d51e(0x11c)]?_0x51d51e(0xd1):typeof _0x21c31e;},I(_0x12bdc7);}function pe(_0x3dbbeb,_0xa892ce){const _0x1a5799=_0x25029f;if(I(_0x3dbbeb)!=_0x1a5799(0x138)||!_0x3dbbeb)return _0x3dbbeb;var _0x73f763=_0x3dbbeb[Symbol['toPrimitive']];if(_0x73f763!==void 0x0){var _0x4b1e10=_0x73f763['call'](_0x3dbbeb,_0xa892ce||_0x1a5799(0x115));if(I(_0x4b1e10)!=_0x1a5799(0x138))return _0x4b1e10;throw TypeError(_0x1a5799(0xef));}return(_0xa892ce===_0x1a5799(0xd9)?String:Number)(_0x3dbbeb);}function me(_0x4c527c){const _0x1c52bb=_0x25029f;var _0x51f640=pe(_0x4c527c,_0x1c52bb(0xd9));return I(_0x51f640)==_0x1c52bb(0xd1)?_0x51f640:_0x51f640+'';}function L(_0x4e0bc1,_0x5cd282,_0x3593f7){const _0x3f4acb=_0x25029f;return(_0x5cd282=me(_0x5cd282))in _0x4e0bc1?Object[_0x3f4acb(0x136)](_0x4e0bc1,_0x5cd282,{'value':_0x3593f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e0bc1[_0x5cd282]=_0x3593f7,_0x4e0bc1;}var R=class extends e[_0x25029f(0x146)]{constructor(..._0x3eb574){const _0x5de18a=_0x25029f;super(..._0x3eb574),L(this,_0x5de18a(0x14b),new Map()),L(this,_0x5de18a(0x127),new n[(_0x5de18a(0x126))]()),L(this,'change$',this[_0x5de18a(0x127)][_0x5de18a(0xf1)]());}[_0x25029f(0x142)](_0x273e85,_0x3bc06a){const _0x1fc353=_0x25029f;return o(this[_0x1fc353(0x14b)]['get'](_0x273e85))[_0x1fc353(0xaf)][_0x3bc06a];}[_0x25029f(0xb1)](_0x269fb9,_0x29df0b,_0x276c08){const _0x31f8e7=_0x25029f;this[_0x31f8e7(0x131)](_0x269fb9,_0x29df0b,s(this[_0x31f8e7(0x14b)][_0x31f8e7(0x11f)](_0x269fb9),_0x29df0b,_0x276c08));}[_0x25029f(0xc8)](_0x140692,_0x104a9a){const _0x35e3f9=_0x25029f;this[_0x35e3f9(0x131)](_0x140692,_0x104a9a,c(this[_0x35e3f9(0x14b)][_0x35e3f9(0x11f)](_0x140692),_0x104a9a));}[_0x25029f(0x13d)](_0x36b955){const _0x3d8447=_0x25029f;return o(this[_0x3d8447(0x14b)][_0x3d8447(0x11f)](_0x36b955));}[_0x25029f(0xc6)](_0x3cc852,_0x29ff00){const _0x3efd27=_0x25029f;this[_0x3efd27(0x14b)][_0x3efd27(0x12a)](_0x3cc852,o(_0x29ff00)),this[_0x3efd27(0x127)][_0x3efd27(0xe2)]({'unitId':_0x3cc852});}[_0x25029f(0x100)](_0x1e52db){const _0x502fac=_0x25029f;this['_resources'][_0x502fac(0xe3)](_0x1e52db),this[_0x502fac(0x127)]['next']({'unitId':_0x1e52db});}[_0x25029f(0xde)](){const _0x541136=_0x25029f;super[_0x541136(0xde)](),this[_0x541136(0x14b)]['clear'](),this[_0x541136(0x127)]['complete']();}[_0x25029f(0x131)](_0x4071ae,_0x160f82,_0x4fb8cb){const _0x4c4f6e=_0x25029f;this[_0x4c4f6e(0x14b)][_0x4c4f6e(0x12a)](_0x4071ae,_0x4fb8cb),this[_0x4c4f6e(0x127)][_0x4c4f6e(0xe2)]({'unitId':_0x4071ae,'blockId':_0x160f82});}};const z={'id':_0x25029f(0xdd),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':_0x14b3e0=>{const _0x28fcb6=_0x25029f;let _0x3c6db9=he(_0x14b3e0);if(_0x3c6db9)return _0x14b3e0[_0x28fcb6(0x11f)](e[_0x28fcb6(0x149)])[_0x28fcb6(0xe0)](V['id'],{'startOffset':_0x3c6db9['startOffset'],'endOffset':_0x3c6db9[_0x28fcb6(0x139)],'unitId':_0x3c6db9[_0x28fcb6(0xc9)]});let _0x169c98=ge(_0x14b3e0);if(!_0x169c98)return!0x1;let _0x24a8c6=_0x169c98[_0x28fcb6(0x10b)]+0x1;return _0x14b3e0[_0x28fcb6(0x11f)](e[_0x28fcb6(0x149)])[_0x28fcb6(0xe0)](V['id'],{'startOffset':_0x24a8c6,'endOffset':_0x24a8c6});}},B={'id':_0x25029f(0x112),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':()=>!0x0},V={'id':_0x25029f(0xc5),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x281169,_0x538ade)=>{const _0x4f99fd=_0x25029f;var _0x6bcb78,_0x2f3ed0,_0x415d07;let _0x3648cb=G(_0x281169,_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xc9)]);if(!_0x3648cb)return!0x1;let _0x36ca9d=K(_0x281169),_0x3ef7ae=u({'blockId':(_0x6bcb78=_0x538ade==null?void 0x0:_0x538ade['blockId'])==null?(0x0,e[_0x4f99fd(0x116)])(0x6):_0x6bcb78,'config':_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xb9)],'documentData':_0x3648cb[_0x4f99fd(0xa9)],'endOffset':(_0x2f3ed0=_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0x139)])==null?_0x36ca9d==null?void 0x0:_0x36ca9d[_0x4f99fd(0x139)]:_0x2f3ed0,'metadata':_0x3648cb['model']['serialize'](_0x3648cb['unitId']),'startOffset':(_0x415d07=_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xd8)])==null?_0x36ca9d==null?void 0x0:_0x36ca9d[_0x4f99fd(0xd8)]:_0x415d07}),_0x36eedd=J(_0x3648cb[_0x4f99fd(0x129)],_0x3648cb['unitId'],_0x3648cb[_0x4f99fd(0xa9)],_0x3ef7ae[_0x4f99fd(0x10e)],_0x3ef7ae[_0x4f99fd(0xfc)]);return _0x36eedd&&_0x3ef7ae[_0x4f99fd(0x13b)]&&_0x3648cb[_0x4f99fd(0x104)]['deserialize'](_0x3648cb[_0x4f99fd(0xc9)],_0x3ef7ae[_0x4f99fd(0x13b)]),_0x36eedd;}},H={'id':_0x25029f(0x143),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x413772,_0x115af2)=>{const _0x54ce5b=_0x25029f;if(!_0x115af2)return!0x1;let _0x5d2fb1=G(_0x413772,_0x115af2['unitId']);if(!_0x5d2fb1)return!0x1;let _0xa781b2=p({'blockId':_0x115af2['blockId'],'config':_0x115af2[_0x54ce5b(0xb9)],'documentData':_0x5d2fb1['previousDocumentData'],'metadata':_0x5d2fb1[_0x54ce5b(0x104)][_0x54ce5b(0x13d)](_0x5d2fb1[_0x54ce5b(0xc9)])});return _0xa781b2[_0x54ce5b(0x13b)]&&_0x5d2fb1[_0x54ce5b(0x104)][_0x54ce5b(0xc6)](_0x5d2fb1[_0x54ce5b(0xc9)],_0xa781b2[_0x54ce5b(0x13b)]),!0x0;}},U={'id':_0x25029f(0xec),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x425922,_0x50764d)=>{const _0x495ea1=_0x25029f;var _0x6430dc,_0x342abe;let _0x381475=G(_0x425922,_0x50764d==null?void 0x0:_0x50764d[_0x495ea1(0xc9)]);if(!_0x381475)return!0x1;let _0x4282be=(_0x6430dc=_0x50764d==null?void 0x0:_0x50764d[_0x495ea1(0xfc)])==null?(_0x342abe=K(_0x425922))==null?void 0x0:_0x342abe[_0x495ea1(0xd8)]:_0x6430dc;if(_0x4282be==null)return!0x1;let _0x17c713=m({'cursorOffset':_0x4282be,'documentData':_0x381475[_0x495ea1(0xa9)]});return _0x17c713?J(_0x381475[_0x495ea1(0x129)],_0x381475['unitId'],_0x381475[_0x495ea1(0xa9)],_0x17c713[_0x495ea1(0x10e)],_0x17c713[_0x495ea1(0xfc)]):!0x1;}},W={'id':_0x25029f(0xf6),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x5c9bb1,_0x49fa50)=>{const _0x5115db=_0x25029f;var _0x4df103,_0x4eee70;let _0x551811=G(_0x5c9bb1,_0x49fa50==null?void 0x0:_0x49fa50['unitId']);if(!_0x551811)return!0x1;let _0x3c2d62=(_0x4df103=_0x49fa50==null?void 0x0:_0x49fa50[_0x5115db(0xfc)])==null?(_0x4eee70=K(_0x5c9bb1))==null?void 0x0:_0x4eee70[_0x5115db(0xd8)]:_0x4df103;if(_0x3c2d62==null)return!0x1;let _0x23fbf1=h({'cursorOffset':_0x3c2d62,'documentData':_0x551811[_0x5115db(0xa9)],'paragraphStartIndex':_0x49fa50==null?void 0x0:_0x49fa50['paragraphStartIndex']});return _0x23fbf1?J(_0x551811[_0x5115db(0x129)],_0x551811[_0x5115db(0xc9)],_0x551811[_0x5115db(0xa9)],_0x23fbf1['nextDocumentData'],_0x23fbf1[_0x5115db(0xfc)]):!0x1;}};function G(_0x46bbda,_0x52f04b){const _0x38fd1b=_0x25029f;let _0x440042=_0x46bbda[_0x38fd1b(0x11f)](e['IUniverInstanceService']),_0x5777d0=_0x52f04b?_0x440042[_0x38fd1b(0xbd)](_0x52f04b):_0x440042['getCurrentUnitOfType'](e['UniverInstanceType'][_0x38fd1b(0xba)]);return _0x5777d0?{'commandService':_0x46bbda['get'](e[_0x38fd1b(0x149)]),'model':_0x46bbda[_0x38fd1b(0x11f)](R),'previousDocumentData':_0x5777d0['getSnapshot'](),'unitId':_0x5777d0['getUnitId']()}:null;}function K(_0x48d091){const _0x255af5=_0x25029f;var _0x548541;return(_0x548541=_0x48d091[_0x255af5(0x11f)](t[_0x255af5(0xf2)])[_0x255af5(0xd2)]())==null?void 0x0:_0x548541[0x0];}function _0x5a9f(_0x2d199e,_0x508666){_0x2d199e=_0x2d199e-0xa6;const _0x17f0d8=_0x17f0();let _0x5a9f1c=_0x17f0d8[_0x2d199e];return _0x5a9f1c;}function he(_0x2207fa){const _0x4253d4=_0x25029f;var _0xe36623;let _0x7a9cb3=(_0xe36623=_0x2207fa[_0x4253d4(0x11f)](e[_0x4253d4(0xfb)])[_0x4253d4(0x118)](e['UniverInstanceType'][_0x4253d4(0xba)]))==null?void 0x0:_0xe36623['getUnitId']();try{return _0x2207fa[_0x4253d4(0x11f)](t[_0x4253d4(0x10a)])[_0x4253d4(0xce)](_0x7a9cb3);}catch{return null;}}function ge(_0x1d0341){const _0x52a89b=_0x25029f;var _0x356725,_0x1711b3,_0x1b2158;let _0x91624c=K(_0x1d0341);if(!_0x91624c)return null;let _0xae20c3=_0x1d0341['get'](e[_0x52a89b(0xfb)])[_0x52a89b(0x118)](e['UniverInstanceType']['UNIVER_DOC']),_0x27211e=_0xae20c3==null?void 0x0:_0xae20c3[_0x52a89b(0xf0)]();return _0x27211e?(_0x356725=e[_0x52a89b(0xe6)][_0x52a89b(0xfa)][_0x52a89b(0x114)](_0x91624c,(_0x1711b3=_0x27211e[_0x52a89b(0x113)])==null?[]:_0x1711b3,(_0x1b2158=_0x27211e[_0x52a89b(0xed)])==null?'':_0x1b2158)[0x0])==null?null:_0x356725:null;}function _e(_0x581485,_0x2a737f){const _0x2fe37a=_0x25029f;var _0x3f68b2,_0x507b59,_0x95fb30,_0x51e12d,_0x4ae8ab,_0x138800,_0x5ae7dc,_0x34c18e,_0x4640cb,_0x3f4113,_0x56128c,_0x48068c,_0x279578,_0x33b896,_0x285fc5,_0x425bf1,_0x16efc1,_0x42e383;let _0x5dae6f=e['JSONX'][_0x2fe37a(0x124)]();return[q(_0x5dae6f,[_0x2fe37a(0xb5),'dataStream'],(_0x3f68b2=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x3f68b2[_0x2fe37a(0xed)],(_0x507b59=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x507b59['dataStream']),q(_0x5dae6f,['body',_0x2fe37a(0x113)],(_0x95fb30=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x95fb30[_0x2fe37a(0x113)],(_0x51e12d=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x51e12d[_0x2fe37a(0x113)]),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0xc0)],(_0x4ae8ab=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x4ae8ab[_0x2fe37a(0xc0)],(_0x138800=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x138800[_0x2fe37a(0xc0)]),q(_0x5dae6f,[_0x2fe37a(0xb5),'textRuns'],(_0x5ae7dc=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x5ae7dc[_0x2fe37a(0xf5)],(_0x34c18e=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x34c18e['textRuns']),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0xc2)],(_0x4640cb=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x4640cb[_0x2fe37a(0xc2)],(_0x3f4113=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x3f4113[_0x2fe37a(0xc2)]),q(_0x5dae6f,[_0x2fe37a(0xb5),'customRanges'],(_0x56128c=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x56128c['customRanges'],(_0x48068c=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x48068c[_0x2fe37a(0xa7)]),q(_0x5dae6f,['body','customDecorations'],(_0x279578=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x279578[_0x2fe37a(0xea)],(_0x33b896=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x33b896[_0x2fe37a(0xea)]),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0x12b)],(_0x285fc5=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x285fc5[_0x2fe37a(0x12b)],(_0x425bf1=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x425bf1[_0x2fe37a(0x12b)]),q(_0x5dae6f,['body',_0x2fe37a(0xbb)],(_0x16efc1=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x16efc1[_0x2fe37a(0xbb)],(_0x42e383=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x42e383[_0x2fe37a(0xbb)])]['filter'](Boolean)[_0x2fe37a(0xab)]((_0x34063c,_0x2c6b1e)=>e['JSONX'][_0x2fe37a(0xb2)](_0x34063c,_0x2c6b1e),null);}function q(_0x21b402,_0x31454c,_0x25034b,_0x1e2679){const _0x225ff8=_0x25029f;return e[_0x225ff8(0xb8)]['diffValue'](_0x25034b,_0x1e2679)?null:_0x21b402[_0x225ff8(0xbc)](_0x31454c,_0x25034b,_0x1e2679);}function J(_0x48b955,_0x63d7a,_0x21c0b8,_0x4d1486,_0x4e4b8e){const _0x35f47d=_0x25029f;let _0x39a89a=_e(_0x21c0b8,_0x4d1486);return _0x39a89a?!!_0x48b955['syncExecuteCommand'](t[_0x35f47d(0x130)]['id'],{'unitId':_0x63d7a,'actions':_0x39a89a,'textRanges':[{'startOffset':_0x4e4b8e,'endOffset':_0x4e4b8e,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x25029f(0xbe);var ve=_0x25029f(0xdb),ye='1.0.0-alpha.1';const X={};function Z(_0x2447d5,_0x4e46bf){return function(_0x5a94d5,_0x468d80){_0x4e46bf(_0x5a94d5,_0x468d80,_0x2447d5);};}function be(_0x3462c7,_0x140bd0,_0x155ad3,_0xee03ff){const _0x20bd01=_0x25029f;var _0x1041a6=arguments['length'],_0x51cbce=_0x1041a6<0x3?_0x140bd0:_0xee03ff===null?_0xee03ff=Object[_0x20bd01(0x117)](_0x140bd0,_0x155ad3):_0xee03ff,_0x4d66a6;if(typeof Reflect=='object'&&typeof Reflect[_0x20bd01(0xac)]==_0x20bd01(0x128))_0x51cbce=Reflect[_0x20bd01(0xac)](_0x3462c7,_0x140bd0,_0x155ad3,_0xee03ff);else{for(var _0x1d50bd=_0x3462c7['length']-0x1;_0x1d50bd>=0x0;_0x1d50bd--)(_0x4d66a6=_0x3462c7[_0x1d50bd])&&(_0x51cbce=(_0x1041a6<0x3?_0x4d66a6(_0x51cbce):_0x1041a6>0x3?_0x4d66a6(_0x140bd0,_0x155ad3,_0x51cbce):_0x4d66a6(_0x140bd0,_0x155ad3))||_0x51cbce);}return _0x1041a6>0x3&&_0x51cbce&&Object[_0x20bd01(0x136)](_0x140bd0,_0x155ad3,_0x51cbce),_0x51cbce;}let Q=class extends e[_0x25029f(0x146)]{constructor(_0x521a93,_0x504e40){const _0x1e9a96=_0x25029f;super(),this[_0x1e9a96(0x14d)]=_0x521a93,this['_docsCodeModel']=_0x504e40,this[_0x1e9a96(0x11b)]();}[_0x25029f(0x11b)](){const _0x1b9016=_0x25029f;this[_0x1b9016(0xee)](this['_resourceManagerService']['registerPluginResource']({'pluginName':Y,'businesses':[e['UniverInstanceType'][_0x1b9016(0xba)]],'toJson':_0x24b3dd=>JSON[_0x1b9016(0xc1)](this[_0x1b9016(0x10f)][_0x1b9016(0x13d)](_0x24b3dd)),'parseJson':_0x370282=>o(JSON[_0x1b9016(0xe4)](_0x370282)),'onLoad':(_0x509257,_0x3f3d20)=>this[_0x1b9016(0x10f)][_0x1b9016(0xc6)](_0x509257,_0x3f3d20),'onUnLoad':_0x56a83f=>this['_docsCodeModel']['removeUnit'](_0x56a83f)}));}};Q=be([Z(0x0,e[_0x25029f(0xf7)]),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e[_0x25029f(0x106)]{constructor(_0x50fdfd=X,_0x42614e,_0x59a209,_0x2f704d){const _0xfdc883=_0x25029f;super(),this[_0xfdc883(0x10d)]=_0x50fdfd,this['_injector']=_0x42614e,this[_0xfdc883(0x11d)]=_0x59a209,this['_configService']=_0x2f704d;let {..._0x4796ec}=(0x0,e[_0xfdc883(0x103)])({},X,this['_config']);this['_configService'][_0xfdc883(0xd6)]('docs-code.config',_0x4796ec);}['onStarting'](){const _0x563ff9=_0x25029f;this[_0x563ff9(0x135)][_0x563ff9(0xff)]([R]),this['_injector']['add']([Q]),this[_0x563ff9(0x135)]['get'](R),this[_0x563ff9(0x135)][_0x563ff9(0x11f)](Q),[V,z,H,U,W,B][_0x563ff9(0x12e)](_0xe1dedf=>this[_0x563ff9(0xee)](this[_0x563ff9(0x11d)][_0x563ff9(0xad)](_0xe1dedf)));}};L($,_0x25029f(0x13a),Y),L($,_0x25029f(0xdf),ve),L($,_0x25029f(0x140),ye),L($,_0x25029f(0xb3),e[_0x25029f(0xe7)]['UNIVER_DOC']),$=be([(0x0,e['DependentOn'])(r['UniverLicensePlugin'],t['UniverDocsPlugin']),Z(0x1,(0x0,e[_0x25029f(0x141)])(e[_0x25029f(0xf4)])),Z(0x2,e[_0x25029f(0x149)]),Z(0x3,e[_0x25029f(0x137)])],$),exports['DEFAULT_CODE_CONFIG']=i,exports['DOCS_CODE_PLUGIN']=Y,exports[_0x25029f(0x147)]=W,exports[_0x25029f(0x134)]=B,exports['DocsCodeExitCommand']=U,exports[_0x25029f(0xf3)]=z,exports[_0x25029f(0x12f)]=V,exports['DocsCodeModel']=R,exports['DocsCodeUpdateCommand']=H,Object['defineProperty'](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x25029f(0xfe)]=h,exports[_0x25029f(0x101)]=m,exports[_0x25029f(0xb4)]=u,exports[_0x25029f(0x120)]=p,exports['findCodeRangeAtOffset']=_,exports['isCodeBoundaryDelete']=v,exports[_0x25029f(0x102)]=a;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1377a2=_0x16e3;(function(_0xd3620e,_0x15d4c0){var _0x38674d=_0x16e3,_0x3c67dc=_0xd3620e();while(!![]){try{var _0x7df6d3=-parseInt(_0x38674d(0x203))/0x1*(-parseInt(_0x38674d(0x201))/0x2)+-parseInt(_0x38674d(0x1d5))/0x3*(-parseInt(_0x38674d(0x1c2))/0x4)+-parseInt(_0x38674d(0x1cb))/0x5*(-parseInt(_0x38674d(0x1c8))/0x6)+parseInt(_0x38674d(0x1e7))/0x7+-parseInt(_0x38674d(0x1ce))/0x8+-parseInt(_0x38674d(0x1ca))/0x9+parseInt(_0x38674d(0x200))/0xa*(-parseInt(_0x38674d(0x1fe))/0xb);if(_0x7df6d3===_0x15d4c0)break;else _0x3c67dc['push'](_0x3c67dc['shift']());}catch(_0x375018){_0x3c67dc['push'](_0x3c67dc['shift']());}}}(_0x3043,0x8d86b));import{DocsCodeCancelEmptyParagraphCommand as _0x4a3f19,DocsCodeExitCommand as _0x576da6,DocsCodeInsertCommand as _0x1699ab,DocsCodeModel as _0x1ade33,DocsCodeUpdateCommand as _0x2d2555,normalizeDocsCodeConfig as _0x16ea29}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x1d96d1,DocumentBlockRangeType as _0x7fd425,ICommandService as _0x19c939,Inject as _0x1e5ab3,Injector as _0x422279,generateRandomId as _0x28c01d}from'@univerjs/core';function _0x16e3(_0x2f792e,_0x3c09e6){_0x2f792e=_0x2f792e-0x1c2;var _0x304390=_0x3043();var _0x16e381=_0x304390[_0x2f792e];return _0x16e381;}function _0x3043(){var _0x4bfd4d=['2184141XbcYjI','toPrimitive','string','insertCode','default','blockRanges','_getDocumentData','body','BLOCK_END','_document','exitCode','_getBlockRange','map','find','_injector','slice','_getBlockRanges','blockType','3281215VbdAxX','join','getText','getCodes','save','CODE','blockId','cancelEmptyCodeParagraph','config','constructor','symbol','getId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','call','getOwnPropertyDescriptor','length','defineProperty','startIndex','some','SECTION_BREAK','text','object','297dFxrpj','filter','137110FlYMgV','621326SUpKja','getConfig','1fJjHFF','extend','exit','updateConfig','getCodeConfig','syncExecuteCommand','decorate','4EMVNCU','get','_unitId','_blockId','replace','_createFDocumentCode','6ctrPou','getType','4102524zxCtiZ','128950rBnKaP','getCode','paragraph','1020168hAtnCO','function','findCodes','getCodeAt','endIndex','describe','from'];_0x3043=function(){return _0x4bfd4d;};return _0x3043();}import{FDocument as _0xda5b7d}from'@univerjs/docs/facade';function p(_0x302709){'@babel/helpers - typeof';var _0x40ef45=_0x16e3;return p=typeof Symbol==_0x40ef45(0x1cf)&&typeof Symbol['iterator']==_0x40ef45(0x1f1)?function(_0x507db4){return typeof _0x507db4;}:function(_0x25fb95){var _0x385a05=_0x40ef45;return _0x25fb95&&typeof Symbol==_0x385a05(0x1cf)&&_0x25fb95[_0x385a05(0x1f0)]===Symbol&&_0x25fb95!==Symbol['prototype']?'symbol':typeof _0x25fb95;},p(_0x302709);}function m(_0x50b178,_0x468825){var _0x2905ee=_0x16e3;if(p(_0x50b178)!=_0x2905ee(0x1fd)||!_0x50b178)return _0x50b178;var _0x4a618a=_0x50b178[Symbol[_0x2905ee(0x1d6)]];if(_0x4a618a!==void 0x0){var _0x337c1e=_0x4a618a[_0x2905ee(0x1f5)](_0x50b178,_0x468825||_0x2905ee(0x1d9));if(p(_0x337c1e)!=_0x2905ee(0x1fd))return _0x337c1e;throw TypeError(_0x2905ee(0x1f3));}return(_0x468825==='string'?String:Number)(_0x50b178);}function h(_0x325a55){var _0x4ba5fc=_0x16e3,_0x2b1475=m(_0x325a55,_0x4ba5fc(0x1d7));return p(_0x2b1475)==_0x4ba5fc(0x1f1)?_0x2b1475:_0x2b1475+'';}function g(_0x5bb7a8,_0x313c4b,_0x24425b){var _0x596e2e=_0x16e3;return(_0x313c4b=h(_0x313c4b))in _0x5bb7a8?Object[_0x596e2e(0x1f8)](_0x5bb7a8,_0x313c4b,{'value':_0x24425b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5bb7a8[_0x313c4b]=_0x24425b,_0x5bb7a8;}function _(_0x3aed7e,_0x73d234){return function(_0x4ce8b8,_0x179931){_0x73d234(_0x4ce8b8,_0x179931,_0x3aed7e);};}function v(_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3){var _0x115b7c=_0x16e3,_0x21664d=arguments[_0x115b7c(0x1f7)],_0x41c548=_0x21664d<0x3?_0x3cbc2e:_0xcf4de3===null?_0xcf4de3=Object[_0x115b7c(0x1f6)](_0x3cbc2e,_0x2c2bd2):_0xcf4de3,_0x26e3a0;if(typeof Reflect=='object'&&typeof Reflect[_0x115b7c(0x209)]==_0x115b7c(0x1cf))_0x41c548=Reflect[_0x115b7c(0x209)](_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3);else{for(var _0x1478f9=_0x4e8d71['length']-0x1;_0x1478f9>=0x0;_0x1478f9--)(_0x26e3a0=_0x4e8d71[_0x1478f9])&&(_0x41c548=(_0x21664d<0x3?_0x26e3a0(_0x41c548):_0x21664d>0x3?_0x26e3a0(_0x3cbc2e,_0x2c2bd2,_0x41c548):_0x26e3a0(_0x3cbc2e,_0x2c2bd2))||_0x41c548);}return _0x21664d>0x3&&_0x41c548&&Object[_0x115b7c(0x1f8)](_0x3cbc2e,_0x2c2bd2,_0x41c548),_0x41c548;}let y=class{constructor(_0x16e03e,_0x423d74,_0x4f0247){var _0x516163=_0x16e3;this[_0x516163(0x1de)]=_0x16e03e,this[_0x516163(0x1c5)]=_0x423d74,this[_0x516163(0x1e3)]=_0x4f0247,g(this,'_unitId',void 0x0),this[_0x516163(0x1c4)]=this[_0x516163(0x1de)]['getId']();}['getId'](){var _0x201083=_0x16e3;return this[_0x201083(0x1c5)];}[_0x1377a2(0x1f4)](){var _0x76c7c4=_0x1377a2;let _0x3c70aa=this[_0x76c7c4(0x1e0)]();return _0x3c70aa?{'blockId':_0x3c70aa[_0x76c7c4(0x1ed)],'endIndex':_0x3c70aa[_0x76c7c4(0x1d2)],'startIndex':_0x3c70aa[_0x76c7c4(0x1f9)]}:null;}[_0x1377a2(0x1e9)](){var _0x68366c=_0x1377a2,_0x231eed;let _0x4e4c1c=this[_0x68366c(0x1e0)](),_0x2940fb=(_0x231eed=this['_getDocumentData']()[_0x68366c(0x1dc)])==null?void 0x0:_0x231eed['dataStream'];return!_0x4e4c1c||!_0x2940fb?'':b(_0x2940fb[_0x68366c(0x1e4)](_0x4e4c1c[_0x68366c(0x1f9)]+0x1,_0x4e4c1c['endIndex']));}[_0x1377a2(0x1d3)](){var _0x241f53=_0x1377a2;let _0x4edeb4=this['getRange']();return _0x4edeb4?{..._0x4edeb4,'config':this[_0x241f53(0x202)](),'text':this[_0x241f53(0x1e9)](),'type':_0x7fd425[_0x241f53(0x1ec)]}:null;}[_0x1377a2(0x202)](){var _0x2192d5=_0x1377a2;return _0x16ea29(this['_injector'][_0x2192d5(0x1c3)](_0x1ade33)[_0x2192d5(0x207)](this[_0x2192d5(0x1c4)],this[_0x2192d5(0x1c5)]));}[_0x1377a2(0x206)](_0x2ff204){var _0x388709=_0x1377a2;return this[_0x388709(0x1e3)][_0x388709(0x1c3)](_0x19c939)[_0x388709(0x208)](_0x2d2555['id'],{'blockId':this[_0x388709(0x1c5)],'config':_0x2ff204[_0x388709(0x1ef)],'unitId':this['_unitId']});}[_0x1377a2(0x205)](_0x48d049){var _0x86d821=_0x1377a2;return this['_injector'][_0x86d821(0x1c3)](_0x19c939)[_0x86d821(0x208)](_0x576da6['id'],{'cursorOffset':_0x48d049,'unitId':this[_0x86d821(0x1c4)]});}['cancelEmptyParagraph'](_0x452853={}){var _0x2a439a=_0x1377a2;return this[_0x2a439a(0x1e3)][_0x2a439a(0x1c3)](_0x19c939)[_0x2a439a(0x208)](_0x4a3f19['id'],{..._0x452853,'unitId':this['_unitId']});}[_0x1377a2(0x1db)](){var _0x29ccfb=_0x1377a2;return this[_0x29ccfb(0x1de)]['save']();}[_0x1377a2(0x1e0)](){var _0x41ad60=_0x1377a2,_0x1f1c61;let _0x4cbe69=(_0x1f1c61=this[_0x41ad60(0x1db)]()[_0x41ad60(0x1dc)])==null||(_0x1f1c61=_0x1f1c61[_0x41ad60(0x1da)])==null?void 0x0:_0x1f1c61[_0x41ad60(0x1e2)](_0x196b02=>_0x196b02['blockId']===this[_0x41ad60(0x1c5)]&&_0x196b02[_0x41ad60(0x1e6)]===_0x7fd425[_0x41ad60(0x1ec)]);return _0x4cbe69==null?null:_0x4cbe69;}};y=v([_(0x2,_0x1e5ab3(_0x422279))],y);function b(_0x331aa5){var _0x2f8f2c=_0x1377a2;return Array[_0x2f8f2c(0x1d4)](_0x331aa5)[_0x2f8f2c(0x1e1)](_0x1d1d62=>_0x1d1d62===_0x1d96d1['PARAGRAPH']?'\x0a':_0x1d1d62)['filter'](_0x131396=>_0x131396!==_0x1d96d1['BLOCK_START']&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1dd)]&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1fb)])[_0x2f8f2c(0x1e8)]('')[_0x2f8f2c(0x1c6)](/\n$/,'');}var x=class extends _0xda5b7d{['getCodes'](){var _0x27ee66=_0x1377a2;return this[_0x27ee66(0x1e5)]()[_0x27ee66(0x1ff)](_0x31b11b=>_0x31b11b[_0x27ee66(0x1e6)]===_0x7fd425[_0x27ee66(0x1ec)])['map'](_0x28eec5=>this[_0x27ee66(0x1c7)](_0x28eec5[_0x27ee66(0x1ed)]));}[_0x1377a2(0x1cc)](_0x121f6a){var _0x252114=_0x1377a2;return this['_getBlockRanges']()[_0x252114(0x1fa)](_0xc30e2e=>_0xc30e2e[_0x252114(0x1ed)]===_0x121f6a&&_0xc30e2e[_0x252114(0x1e6)]===_0x7fd425[_0x252114(0x1ec)])?this[_0x252114(0x1c7)](_0x121f6a):null;}[_0x1377a2(0x1d1)](_0x35730a){var _0x1960da=_0x1377a2;let _0x417d5f=this[_0x1960da(0x1e5)]()[_0x1960da(0x1e2)](_0x516a1c=>_0x516a1c['blockType']===_0x7fd425[_0x1960da(0x1ec)]&&_0x516a1c[_0x1960da(0x1f9)]<=_0x35730a&&_0x35730a<=_0x516a1c[_0x1960da(0x1d2)]);return _0x417d5f?this['_createFDocumentCode'](_0x417d5f[_0x1960da(0x1ed)]):null;}['findCodeByText'](_0x502267){var _0x2da494;return(_0x2da494=this['findCodes'](_0x502267)[0x0])==null?null:_0x2da494;}[_0x1377a2(0x1d0)](_0x738335){var _0x172eb6=_0x1377a2;let _0x1b55ec=typeof _0x738335==_0x172eb6(0x1d7)?{'text':_0x738335}:_0x738335;return this[_0x172eb6(0x1ea)]()[_0x172eb6(0x1ff)](_0x24a8f2=>!(_0x1b55ec[_0x172eb6(0x1ed)]&&_0x24a8f2['getId']()!==_0x1b55ec['blockId']||_0x1b55ec[_0x172eb6(0x1fc)]&&!_0x24a8f2['getText']()['includes'](_0x1b55ec['text'])));}[_0x1377a2(0x1d8)](_0x35c6b8={},_0x333007={}){var _0x4e6229=_0x1377a2,_0x25ffa3;let _0x72adf1=this[_0x4e6229(0x1e3)]['get'](_0x19c939),_0xf89e76=S(_0x35c6b8)?{..._0x333007,...C(_0x35c6b8)}:_0x35c6b8,_0x2ae48a=(_0x25ffa3=_0xf89e76[_0x4e6229(0x1ed)])==null?_0x28c01d(0x6):_0x25ffa3;return _0x72adf1['syncExecuteCommand'](_0x1699ab['id'],{..._0xf89e76,'blockId':_0x2ae48a,'unitId':this[_0x4e6229(0x1f2)]()})?this[_0x4e6229(0x1c7)](_0x2ae48a):null;}[_0x1377a2(0x1df)](_0x2bb0de){var _0x54b4d4=_0x1377a2;return this[_0x54b4d4(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x576da6['id'],{'cursorOffset':_0x2bb0de,'unitId':this[_0x54b4d4(0x1f2)]()});}[_0x1377a2(0x1ee)](_0xd993e1={}){var _0x3c124f=_0x1377a2;return this[_0x3c124f(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x4a3f19['id'],{..._0xd993e1,'unitId':this[_0x3c124f(0x1f2)]()});}[_0x1377a2(0x1e5)](){var _0x3fceb6=_0x1377a2,_0x247d87,_0x25f16b;return(_0x247d87=(_0x25f16b=this[_0x3fceb6(0x1eb)]()[_0x3fceb6(0x1dc)])==null?void 0x0:_0x25f16b[_0x3fceb6(0x1da)])==null?[]:_0x247d87;}[_0x1377a2(0x1c7)](_0x3388db){var _0x5fe1a=_0x1377a2;return this[_0x5fe1a(0x1e3)]['createInstance'](y,this,_0x3388db);}};function S(_0x8dedce){var _0x4d93c2=_0x1377a2;return typeof _0x8dedce=='object'&&!!_0x8dedce&&typeof _0x8dedce['getKey']==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1f4)]==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1c9)]==_0x4d93c2(0x1cf)&&_0x8dedce['getType']()===_0x4d93c2(0x1cd);}function C(_0x423653){var _0x2817fe=_0x1377a2;return _0x423653[_0x2817fe(0x1f4)]();}_0xda5b7d[_0x1377a2(0x204)](x);export{y as FDocumentCode};
|
|
1
|
+
var _0x13b9b5=_0xe05e;(function(_0x1aca92,_0x4d48ea){var _0x39f633=_0xe05e,_0x4f23fb=_0x1aca92();while(!![]){try{var _0x6cda75=parseInt(_0x39f633(0x18d))/0x1+parseInt(_0x39f633(0x185))/0x2*(-parseInt(_0x39f633(0x1a0))/0x3)+parseInt(_0x39f633(0x1ae))/0x4*(parseInt(_0x39f633(0x17e))/0x5)+parseInt(_0x39f633(0x189))/0x6*(parseInt(_0x39f633(0x187))/0x7)+-parseInt(_0x39f633(0x19f))/0x8*(-parseInt(_0x39f633(0x1b2))/0x9)+-parseInt(_0x39f633(0x1b6))/0xa*(parseInt(_0x39f633(0x17b))/0xb)+-parseInt(_0x39f633(0x17f))/0xc;if(_0x6cda75===_0x4d48ea)break;else _0x4f23fb['push'](_0x4f23fb['shift']());}catch(_0x4eb3ba){_0x4f23fb['push'](_0x4f23fb['shift']());}}}(_0x1227,0x8889a));import{DocsCodeCancelEmptyParagraphCommand as _0x43121c,DocsCodeExitCommand as _0x227b78,DocsCodeInsertCommand as _0x19049a,DocsCodeModel as _0x317f80,DocsCodeUpdateCommand as _0xa7f6d0,normalizeDocsCodeConfig as _0x249552}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2dbdf7,DocumentBlockRangeType as _0x4df84b,ICommandService as _0x593bc2,Inject as _0x33b9d8,Injector as _0xa34ccd,generateRandomId as _0xeecacd}from'@univerjs/core';import{FDocument as _0x29e282}from'@univerjs/docs/facade';function p(_0x101e6b){'@babel/helpers - typeof';var _0x4575dc=_0xe05e;return p=typeof Symbol==_0x4575dc(0x1af)&&typeof Symbol['iterator']=='symbol'?function(_0x50e854){return typeof _0x50e854;}:function(_0x4df84a){var _0x389846=_0x4575dc;return _0x4df84a&&typeof Symbol==_0x389846(0x1af)&&_0x4df84a[_0x389846(0x1b0)]===Symbol&&_0x4df84a!==Symbol[_0x389846(0x1b1)]?_0x389846(0x1a8):typeof _0x4df84a;},p(_0x101e6b);}function m(_0x5a8f8a,_0x491895){var _0x5562ca=_0xe05e;if(p(_0x5a8f8a)!=_0x5562ca(0x179)||!_0x5a8f8a)return _0x5a8f8a;var _0x3a92f9=_0x5a8f8a[Symbol['toPrimitive']];if(_0x3a92f9!==void 0x0){var _0x57d9b6=_0x3a92f9[_0x5562ca(0x180)](_0x5a8f8a,_0x491895||_0x5562ca(0x1a5));if(p(_0x57d9b6)!=_0x5562ca(0x179))return _0x57d9b6;throw TypeError(_0x5562ca(0x19c));}return(_0x491895===_0x5562ca(0x190)?String:Number)(_0x5a8f8a);}function h(_0x14c418){var _0x3740c0=_0xe05e,_0x90c01f=m(_0x14c418,_0x3740c0(0x190));return p(_0x90c01f)==_0x3740c0(0x1a8)?_0x90c01f:_0x90c01f+'';}function g(_0x40a584,_0x75b4dd,_0x2417f3){var _0x1dfc20=_0xe05e;return(_0x75b4dd=h(_0x75b4dd))in _0x40a584?Object[_0x1dfc20(0x196)](_0x40a584,_0x75b4dd,{'value':_0x2417f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40a584[_0x75b4dd]=_0x2417f3,_0x40a584;}function _0x1227(){var _0x5a166d=['_getBlockRange','syncExecuteCommand','28330GmbhnM','decorate','from','some','includes','getId','PARAGRAPH','getCode','object','blockRanges','3586hcmCOj','text','_unitId','3355FfOFvG','3880548GPaDcX','call','_document','findCodes','createInstance','blockId','2gwXRxf','getKey','22281cKEDqV','length','426vBOhvK','_createFDocumentCode','filter','extend','248175BaVBwm','getConfig','save','string','endIndex','_getDocumentData','cancelEmptyParagraph','get','config','defineProperty','CODE','getType','_blockId','BLOCK_END','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraph','exitCode','7631056sNBjjj','61287mczrPU','describe','blockType','_getBlockRanges','body','default','exit','find','symbol','getText','BLOCK_START','map','_injector','startIndex','2376wKQqYW','function','constructor','prototype','9noLGHd','SECTION_BREAK'];_0x1227=function(){return _0x5a166d;};return _0x1227();}function _(_0x24aabb,_0x218973){return function(_0x59f4ab,_0x4e280b){_0x218973(_0x59f4ab,_0x4e280b,_0x24aabb);};}function v(_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a){var _0x4708a2=_0xe05e,_0x4887f2=arguments[_0x4708a2(0x188)],_0x413f8a=_0x4887f2<0x3?_0x33dc2a:_0x202e9a===null?_0x202e9a=Object['getOwnPropertyDescriptor'](_0x33dc2a,_0x57ce93):_0x202e9a,_0x316bd4;if(typeof Reflect==_0x4708a2(0x179)&&typeof Reflect[_0x4708a2(0x1b7)]=='function')_0x413f8a=Reflect[_0x4708a2(0x1b7)](_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a);else{for(var _0xfed88b=_0x2cc221[_0x4708a2(0x188)]-0x1;_0xfed88b>=0x0;_0xfed88b--)(_0x316bd4=_0x2cc221[_0xfed88b])&&(_0x413f8a=(_0x4887f2<0x3?_0x316bd4(_0x413f8a):_0x4887f2>0x3?_0x316bd4(_0x33dc2a,_0x57ce93,_0x413f8a):_0x316bd4(_0x33dc2a,_0x57ce93))||_0x413f8a);}return _0x4887f2>0x3&&_0x413f8a&&Object['defineProperty'](_0x33dc2a,_0x57ce93,_0x413f8a),_0x413f8a;}function _0xe05e(_0x534f69,_0x3fa108){_0x534f69=_0x534f69-0x176;var _0x122778=_0x1227();var _0xe05ea6=_0x122778[_0x534f69];return _0xe05ea6;}let y=class{constructor(_0x2bae20,_0x128ba0,_0x175393){var _0x8fdd1c=_0xe05e;this[_0x8fdd1c(0x181)]=_0x2bae20,this[_0x8fdd1c(0x199)]=_0x128ba0,this[_0x8fdd1c(0x1ac)]=_0x175393,g(this,_0x8fdd1c(0x17d),void 0x0),this[_0x8fdd1c(0x17d)]=this[_0x8fdd1c(0x181)]['getId']();}['getId'](){var _0x5767c1=_0xe05e;return this[_0x5767c1(0x199)];}[_0x13b9b5(0x19b)](){var _0x35d72d=_0x13b9b5;let _0x5a3235=this[_0x35d72d(0x1b4)]();return _0x5a3235?{'blockId':_0x5a3235[_0x35d72d(0x184)],'endIndex':_0x5a3235[_0x35d72d(0x191)],'startIndex':_0x5a3235[_0x35d72d(0x1ad)]}:null;}['getText'](){var _0x598430=_0x13b9b5,_0x47bf03;let _0x13c9dc=this[_0x598430(0x1b4)](),_0x4e2505=(_0x47bf03=this[_0x598430(0x192)]()[_0x598430(0x1a4)])==null?void 0x0:_0x47bf03['dataStream'];return!_0x13c9dc||!_0x4e2505?'':b(_0x4e2505['slice'](_0x13c9dc['startIndex']+0x1,_0x13c9dc[_0x598430(0x191)]));}[_0x13b9b5(0x1a1)](){var _0x557286=_0x13b9b5;let _0x56e0e2=this[_0x557286(0x19b)]();return _0x56e0e2?{..._0x56e0e2,'config':this[_0x557286(0x18e)](),'text':this[_0x557286(0x1a9)](),'type':_0x4df84b['CODE']}:null;}[_0x13b9b5(0x18e)](){var _0x58788f=_0x13b9b5;return _0x249552(this[_0x58788f(0x1ac)][_0x58788f(0x194)](_0x317f80)['getCodeConfig'](this[_0x58788f(0x17d)],this['_blockId']));}['updateConfig'](_0x3c44dc){var _0xd4f098=_0x13b9b5;return this['_injector']['get'](_0x593bc2)[_0xd4f098(0x1b5)](_0xa7f6d0['id'],{'blockId':this[_0xd4f098(0x199)],'config':_0x3c44dc[_0xd4f098(0x195)],'unitId':this[_0xd4f098(0x17d)]});}[_0x13b9b5(0x1a6)](_0x57b48c){var _0x503cbf=_0x13b9b5;return this[_0x503cbf(0x1ac)]['get'](_0x593bc2)[_0x503cbf(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x57b48c,'unitId':this[_0x503cbf(0x17d)]});}[_0x13b9b5(0x193)](_0x12a500={}){var _0x559450=_0x13b9b5;return this['_injector']['get'](_0x593bc2)['syncExecuteCommand'](_0x43121c['id'],{..._0x12a500,'unitId':this[_0x559450(0x17d)]});}[_0x13b9b5(0x192)](){var _0x1d7a38=_0x13b9b5;return this[_0x1d7a38(0x181)][_0x1d7a38(0x18f)]();}['_getBlockRange'](){var _0x2d07a1=_0x13b9b5,_0x5a6793;let _0x5d4d35=(_0x5a6793=this[_0x2d07a1(0x192)]()['body'])==null||(_0x5a6793=_0x5a6793[_0x2d07a1(0x17a)])==null?void 0x0:_0x5a6793[_0x2d07a1(0x1a7)](_0x1b3780=>_0x1b3780['blockId']===this[_0x2d07a1(0x199)]&&_0x1b3780[_0x2d07a1(0x1a2)]===_0x4df84b[_0x2d07a1(0x197)]);return _0x5d4d35==null?null:_0x5d4d35;}};y=v([_(0x2,_0x33b9d8(_0xa34ccd))],y);function b(_0x33a668){var _0x468592=_0x13b9b5;return Array[_0x468592(0x1b8)](_0x33a668)[_0x468592(0x1ab)](_0x871d31=>_0x871d31===_0x2dbdf7[_0x468592(0x177)]?'\x0a':_0x871d31)[_0x468592(0x18b)](_0x1ce9bd=>_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1aa)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x19a)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1b3)])['join']('')['replace'](/\n$/,'');}var x=class extends _0x29e282{['getCodes'](){var _0x1c0bc7=_0x13b9b5;return this[_0x1c0bc7(0x1a3)]()[_0x1c0bc7(0x18b)](_0x47f5a8=>_0x47f5a8[_0x1c0bc7(0x1a2)]===_0x4df84b['CODE'])[_0x1c0bc7(0x1ab)](_0x5c62b5=>this[_0x1c0bc7(0x18a)](_0x5c62b5[_0x1c0bc7(0x184)]));}[_0x13b9b5(0x178)](_0x2b5a8a){var _0x1034f8=_0x13b9b5;return this[_0x1034f8(0x1a3)]()[_0x1034f8(0x1b9)](_0x3e6bcc=>_0x3e6bcc[_0x1034f8(0x184)]===_0x2b5a8a&&_0x3e6bcc[_0x1034f8(0x1a2)]===_0x4df84b[_0x1034f8(0x197)])?this[_0x1034f8(0x18a)](_0x2b5a8a):null;}['getCodeAt'](_0x70ee62){var _0x1c2084=_0x13b9b5;let _0x5627cd=this[_0x1c2084(0x1a3)]()[_0x1c2084(0x1a7)](_0x147d27=>_0x147d27['blockType']===_0x4df84b[_0x1c2084(0x197)]&&_0x147d27[_0x1c2084(0x1ad)]<=_0x70ee62&&_0x70ee62<=_0x147d27[_0x1c2084(0x191)]);return _0x5627cd?this[_0x1c2084(0x18a)](_0x5627cd[_0x1c2084(0x184)]):null;}['findCodeByText'](_0x53db5d){var _0x28e3af=_0x13b9b5,_0x20617e;return(_0x20617e=this[_0x28e3af(0x182)](_0x53db5d)[0x0])==null?null:_0x20617e;}[_0x13b9b5(0x182)](_0x35a31e){var _0x477ebe=_0x13b9b5;let _0x5329d1=typeof _0x35a31e==_0x477ebe(0x190)?{'text':_0x35a31e}:_0x35a31e;return this['getCodes']()[_0x477ebe(0x18b)](_0x42dad2=>!(_0x5329d1[_0x477ebe(0x184)]&&_0x42dad2['getId']()!==_0x5329d1[_0x477ebe(0x184)]||_0x5329d1['text']&&!_0x42dad2[_0x477ebe(0x1a9)]()[_0x477ebe(0x1ba)](_0x5329d1[_0x477ebe(0x17c)])));}['insertCode'](_0x3e88eb={},_0x4ddb38={}){var _0x19f55b=_0x13b9b5,_0x1baf31;let _0x341aa8=this['_injector'][_0x19f55b(0x194)](_0x593bc2),_0x59467b=S(_0x3e88eb)?{..._0x4ddb38,...C(_0x3e88eb)}:_0x3e88eb,_0xc80b0d=(_0x1baf31=_0x59467b[_0x19f55b(0x184)])==null?_0xeecacd(0x6):_0x1baf31;return _0x341aa8[_0x19f55b(0x1b5)](_0x19049a['id'],{..._0x59467b,'blockId':_0xc80b0d,'unitId':this['getId']()})?this[_0x19f55b(0x18a)](_0xc80b0d):null;}[_0x13b9b5(0x19e)](_0x4c9e17){var _0x1ec007=_0x13b9b5;return this[_0x1ec007(0x1ac)]['get'](_0x593bc2)[_0x1ec007(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x4c9e17,'unitId':this[_0x1ec007(0x176)]()});}['cancelEmptyCodeParagraph'](_0xafc974={}){var _0x246820=_0x13b9b5;return this[_0x246820(0x1ac)]['get'](_0x593bc2)[_0x246820(0x1b5)](_0x43121c['id'],{..._0xafc974,'unitId':this[_0x246820(0x176)]()});}['_getBlockRanges'](){var _0x5ce413=_0x13b9b5,_0x3919aa,_0x5a7000;return(_0x3919aa=(_0x5a7000=this['save']()[_0x5ce413(0x1a4)])==null?void 0x0:_0x5a7000['blockRanges'])==null?[]:_0x3919aa;}[_0x13b9b5(0x18a)](_0x478f88){var _0x29e9e1=_0x13b9b5;return this[_0x29e9e1(0x1ac)][_0x29e9e1(0x183)](y,this,_0x478f88);}};function S(_0x1d4a06){var _0x145e75=_0x13b9b5;return typeof _0x1d4a06==_0x145e75(0x179)&&!!_0x1d4a06&&typeof _0x1d4a06[_0x145e75(0x186)]=='function'&&typeof _0x1d4a06[_0x145e75(0x19b)]=='function'&&typeof _0x1d4a06[_0x145e75(0x198)]==_0x145e75(0x1af)&&_0x1d4a06[_0x145e75(0x198)]()===_0x145e75(0x19d);}function C(_0x54462d){var _0x309448=_0x13b9b5;return _0x54462d[_0x309448(0x19b)]();}_0x29e282[_0x13b9b5(0x18c)](x);export{y as FDocumentCode};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1bd327=_0x3851;(function(_0x2abd87,_0x3ecb6a){const _0xfdd857=_0x3851,_0x2bad8f=_0x2abd87();while(!![]){try{const _0x3699c0=-parseInt(_0xfdd857(0x1aa))/0x1*(-parseInt(_0xfdd857(0x202))/0x2)+parseInt(_0xfdd857(0x1d1))/0x3*(parseInt(_0xfdd857(0x184))/0x4)+parseInt(_0xfdd857(0x1b7))/0x5+-parseInt(_0xfdd857(0x18f))/0x6*(-parseInt(_0xfdd857(0x1f7))/0x7)+-parseInt(_0xfdd857(0x1b5))/0x8+-parseInt(_0xfdd857(0x195))/0x9*(parseInt(_0xfdd857(0x1ed))/0xa)+parseInt(_0xfdd857(0x183))/0xb;if(_0x3699c0===_0x3ecb6a)break;else _0x2bad8f['push'](_0x2bad8f['shift']());}catch(_0x4ae60a){_0x2bad8f['push'](_0x2bad8f['shift']());}}}(_0x27d7,0x63c31));import{BuildTextUtils as _0x1b614b,CommandType as _0xd6e375,DataStreamTreeTokenType as _0x217bb8,DependentOn as _0x5e8859,Disposable as _0x4a26dc,DocumentBlockRangeType as _0x6a5755,ICommandService as _0x32af23,IConfigService as _0x4adc10,IResourceManagerService as _0xca8f68,IUniverInstanceService as _0x33ba15,Inject as _0x30337f,Injector as _0x4af702,JSONX as _0x273043,Plugin as _0x394390,Tools as _0x4a3ab2,UniverInstanceType as _0x2864e1,createParagraphId as _0x48477c,generateRandomId as _0x414e01,merge as _0x4c5915}from'@univerjs/core';import{DocContentInsertService as _0xc64f97,DocSelectionManagerService as _0x35cf98,RichTextEditingMutation as _0x397e41,UniverDocsPlugin as _0x8ce557}from'@univerjs/docs';import{Subject as _0x39b06c}from'rxjs';import{UniverLicensePlugin as _0x5411ad}from'@univerjs-pro/license';const S={'language':_0x1bd327(0x1eb),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x31dc31){return{...S,..._0x31dc31};}function w(_0x3d7b04){const _0x2091d9=_0x1bd327;var _0x5c5da2;let _0x25f052=(_0x5c5da2=_0x3d7b04==null?void 0x0:_0x3d7b04['codes'])==null?{}:_0x5c5da2;return{'codes':Object[_0x2091d9(0x1a3)](Object[_0x2091d9(0x198)](_0x25f052)[_0x2091d9(0x1c8)](([_0x104c95,_0x23bf3c])=>[_0x104c95,C(_0x23bf3c)]))};}function T(_0x1c38df,_0xa492ab,_0x451d52){const _0x5b27e0=_0x1bd327;let _0x5c0500=w(_0x1c38df);return _0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab]=C({..._0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab],..._0x451d52}),_0x5c0500;}function re(_0x284a5a,_0x543d6a){let _0x54c0d6=w(_0x284a5a);return delete _0x54c0d6['codes'][_0x543d6a],_0x54c0d6;}function _0x27d7(){const _0x3967da=['docs-code.command.exit','length','object','endTokenOffset','BLOCK_END','startIndex','getCodeConfig','BLOCK_START','spaceBelow','_resourceManagerService','18TOHRBq','blockRanges','textRuns','filter','blockType','customDecorations','previousDocumentData','paragraphStyle','indentEnd','_injector','2428943nAUSAr','1187332uMxBUB','indentStart','toPrimitive','string','body','default','startOffset','parse','max','syncExecuteCommand','textStyle','11034QymvFI','getParagraphsInRange','_commandService','customBlocks','_initResource','docs-code.command.update','7497EeMbTR','getBody','find','entries','_resources','next','tables','getTextRanges','stringify','clear','deepClone','from','prototype','get','fromEntries','Document\x20body\x20is\x20required','some','paragraph','paragraphStartIndex','dispose','sectionBreaks','6569EBrDuG','function','forEach','endsWith','every','metadata','defineProperty','_setResource','DOC_CODE_PLUGIN','version','getUnitId','2890032iTqiVt','codes','1214830MxHpaB','docs-code.command.cancel-empty-paragraph','paragraphs','decorate','customRanges','iterator','getUniverDocInstance','monospace','pluginName','config','spaceAbove','SECTION_BREAK','call','_config','nextMetadata','add','direction','map','consumeInsertRange','registerPluginResource','right','commandService','packageName','cursorOffset','setConfig','docs-code.config','3fbHFxz','PARAGRAPH','unitId','range','_change$','removeUnit','getCurrentUnitOfType','model','docs-code.command.insert-below','COMMAND','CODE','compose','deserialize','_configService','constructor','getSnapshot','blockId','sort','UNIVER_DOC','paragraphId','slice','replaceOp','nextDocumentData','documentData','serialize','endOffset','javascript','min','6780jZpGQI','complete','dataStream','diffValue','endIndex','docs-code.command.insert','set','removeCode','_docsCodeModel','join','1960ntHLUl'];_0x27d7=function(){return _0x3967da;};return _0x27d7();}const ie=_0x1bd327(0x1be);function ae(_0x23f8fa){const _0x4f8099=_0x1bd327;var _0x53c1b3,_0x537c02,_0x48bc8e;let _0x403382=D(_0x23f8fa[_0x4f8099(0x1e8)]),_0x201e37=O(_0x403382),_0x50c400=se(_0x23f8fa[_0x4f8099(0x18a)],_0x23f8fa[_0x4f8099(0x1ea)]),_0x27ee38=_0x50c400?(_0x53c1b3=_0x201e37[_0x4f8099(0x203)])==null?void 0x0:_0x53c1b3['find'](_0x35a963=>_0x35a963[_0x4f8099(0x1fd)]===_0x50c400['startOffset']&&_0x35a963[_0x4f8099(0x1f1)]+0x1===_0x50c400[_0x4f8099(0x1ea)]):void 0x0,{startOffset:_0x4a13c3,endOffset:_0x24ca9a}=_0x27ee38?_0x50c400:ye(_0x201e37,_0x23f8fa['startOffset'],_0x23f8fa['endOffset']),_0x2c2028=Se(_0x201e37,_0x4a13c3,_0x24ca9a),_0x107bc9=(_0x537c02=_0x27ee38==null?void 0x0:_0x27ee38[_0x4f8099(0x1e1)])==null?_0x23f8fa['blockId']:_0x537c02,_0x55b0f3=T(_0x23f8fa['metadata'],_0x107bc9,{...S,..._0x23f8fa['config']});if(_0x27ee38)return _0x27ee38[_0x4f8099(0x206)]=_0x6a5755[_0x4f8099(0x1db)],oe(_0x201e37,_0x4a13c3,_0x24ca9a),he(_0x201e37,_0x4a13c3,_0x24ca9a,_0x2c2028),M(_0x201e37,_0x27ee38),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};if(_0x4a13c3===_0x24ca9a){var _0x4b604b,_0xe82787;let _0x19d496=''+_0x217bb8[_0x4f8099(0x1ff)]+_0x217bb8['PARAGRAPH']+_0x217bb8['BLOCK_END'];N(_0x201e37,_0x4a13c3,_0x19d496,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x48477c(new Set((_0x4b604b=_0x201e37['paragraphs'])==null?void 0x0:_0x4b604b[_0x4f8099(0x1c8)](_0x2e1183=>_0x2e1183[_0x4f8099(0x1e4)]))),'paragraphStyle':E(!0x0,!0x0,_0x2c2028)}],'blockRanges':[{'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':0x0,'endIndex':_0x19d496['length']-0x1}]});let _0x285e87=(_0xe82787=_0x201e37['blockRanges'])==null?void 0x0:_0xe82787[_0x4f8099(0x197)](_0xa943c5=>_0xa943c5[_0x4f8099(0x1e1)]===_0x107bc9);return _0x285e87&&M(_0x201e37,_0x285e87),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}N(_0x201e37,_0x24ca9a,_0x217bb8[_0x4f8099(0x1fc)]),N(_0x201e37,_0x4a13c3,_0x217bb8[_0x4f8099(0x1ff)]),he(_0x201e37,_0x4a13c3,_0x24ca9a+0x1,_0x2c2028);let _0x2aa7c7={'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':_0x4a13c3,'endIndex':_0x24ca9a+0x1};return _0x201e37['blockRanges']=[...(_0x48bc8e=_0x201e37[_0x4f8099(0x203)])==null?[]:_0x48bc8e,_0x2aa7c7]['sort']((_0x424526,_0x127dfc)=>_0x424526['startIndex']-_0x127dfc[_0x4f8099(0x1fd)]),M(_0x201e37,_0x2aa7c7),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}function oe(_0x2a7337,_0x3d91fd,_0x349e56){const _0x1b824b=_0x1bd327;var _0x56e92e;((_0x56e92e=_0x2a7337[_0x1b824b(0x1b9)])==null?[]:_0x56e92e)[_0x1b824b(0x205)](_0x24ce1f=>_0x24ce1f[_0x1b824b(0x1fd)]>_0x3d91fd&&_0x24ce1f[_0x1b824b(0x1fd)]<_0x349e56)['forEach'](_0x29adbc=>{const _0x419aed=_0x1b824b;var _0x317cde;let _0x48b2fe={...(_0x317cde=_0x29adbc[_0x419aed(0x180)])==null?{}:_0x317cde};delete _0x48b2fe[_0x419aed(0x1c1)],delete _0x48b2fe[_0x419aed(0x200)],_0x29adbc['paragraphStyle']=_0x48b2fe;});}function se(_0x338db2,_0x61a3ec){const _0x4717bc=_0x1bd327;return _0x338db2==null||_0x61a3ec==null||_0x338db2===_0x61a3ec?null:{'startOffset':Math[_0x4717bc(0x1ec)](_0x338db2,_0x61a3ec),'endOffset':Math[_0x4717bc(0x18c)](_0x338db2,_0x61a3ec)};}function ce(_0xb755f3){const _0x645c8b=_0x1bd327;return{'nextDocumentData':D(_0xb755f3['documentData']),'nextMetadata':T(_0xb755f3[_0x645c8b(0x1af)],_0xb755f3[_0x645c8b(0x1e1)],_0xb755f3['config']),'cursorOffset':0x0};}function le(_0x455e25){const _0x22f05a=_0x1bd327;var _0x4d1670,_0x2c605d;let _0x426749=D(_0x455e25['documentData']),_0x4ab092=O(_0x426749),_0x43ec65=me(_0x4ab092,_0x455e25[_0x22f05a(0x1ce)]);if(!_0x43ec65)return null;let _0x3d2a3b=_e(_0x4ab092,_0x43ec65),_0x99fdf9=_0x3d2a3b[_0x3d2a3b[_0x22f05a(0x1f9)]-0x1];if(!_0x99fdf9||!ve(_0x4ab092,_0x43ec65,_0x99fdf9)||_0x455e25[_0x22f05a(0x1ce)]<_0x99fdf9[_0x22f05a(0x1fd)])return null;let _0x1ce0c8=A(_0x4ab092,_0x43ec65,_0x99fdf9);if(_0x1ce0c8>=_0x43ec65[_0x22f05a(0x1f1)])return null;_0x4ab092[_0x22f05a(0x1ef)]=[_0x4ab092[_0x22f05a(0x1ef)]['slice'](0x0,_0x1ce0c8),_0x217bb8['BLOCK_END'],_0x4ab092['dataStream'][_0x22f05a(0x1e5)](_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)]),_0x4ab092[_0x22f05a(0x1ef)]['slice'](_0x43ec65[_0x22f05a(0x1f1)]+0x1)][_0x22f05a(0x1f6)](''),R(_0x4ab092[_0x22f05a(0x1b9)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092['sectionBreaks'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092[_0x22f05a(0x192)],_0x1ce0c8,_0x43ec65['endIndex'],0x1),ke(_0x4ab092['textRuns'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x19b)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x1bb)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x207)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),(_0x4d1670=_0x4ab092[_0x22f05a(0x203)])==null||_0x4d1670[_0x22f05a(0x1ac)](_0x5e28de=>{const _0x59c812=_0x22f05a;_0x5e28de===_0x43ec65||_0x5e28de[_0x59c812(0x1e1)]===_0x43ec65[_0x59c812(0x1e1)]?_0x5e28de[_0x59c812(0x1f1)]=_0x1ce0c8:_0x5e28de[_0x59c812(0x1fd)]>=_0x1ce0c8&&_0x5e28de[_0x59c812(0x1fd)]<_0x43ec65[_0x59c812(0x1f1)]&&(_0x5e28de[_0x59c812(0x1fd)]+=0x1,_0x5e28de[_0x59c812(0x1f1)]+=0x1);});let _0x8db22e=_e(_0x4ab092,{..._0x43ec65,'endIndex':_0x1ce0c8});_0x8db22e[_0x22f05a(0x1ac)]((_0x1bd4e6,_0x3892c6)=>{const _0x1ad551=_0x22f05a;var _0xec73cf;_0x1bd4e6[_0x1ad551(0x180)]={...(_0xec73cf=_0x1bd4e6[_0x1ad551(0x180)])==null?{}:_0xec73cf,...E(_0x3892c6===0x0,_0x3892c6===_0x8db22e['length']-0x1)};});let _0x2c4de4=(_0x2c605d=_0x4ab092['paragraphs'])==null?void 0x0:_0x2c605d['find'](_0x56c9fb=>_0x56c9fb[_0x22f05a(0x1fd)]===_0x1ce0c8+0x1);return _0x2c4de4&&(_0x2c4de4['paragraphStyle']=ge(_0x2c4de4['paragraphStyle'])),{'nextDocumentData':_0x426749,'cursorOffset':_0x1ce0c8+0x1};}function ue(_0x41ad2b){const _0x1a93ff=_0x1bd327;let _0x1efb5c=D(_0x41ad2b['documentData']),_0x349403=O(_0x1efb5c),_0x34162b=me(_0x349403,_0x41ad2b[_0x1a93ff(0x1ce)]);return _0x34162b&&de(_0x1efb5c,_0x349403,_0x34162b,_0x41ad2b['cursorOffset'],_0x41ad2b[_0x1a93ff(0x1a7)])||null;}function de(_0x2aa5e5,_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af){const _0x36c2b2=_0x1bd327;let _0x3b326a=we(_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af);if(!_0x3b326a)return null;let _0x4793d9=_0x3b326a[_0x36c2b2(0x1fb)]-0x1;return Te(_0x2b19a5,_0x3b326a[_0x36c2b2(0x1a6)][_0x36c2b2(0x1fd)],_0x3b326a['paragraph'][_0x36c2b2(0x1fd)]+0x1),{'nextDocumentData':_0x2aa5e5,'cursorOffset':_0x4793d9};}function fe(_0x21fe89,_0x34897b){const _0x11c956=_0x1bd327;var _0x385980;return _0x21fe89==null||(_0x385980=_0x21fe89[_0x11c956(0x203)])==null?void 0x0:_0x385980[_0x11c956(0x197)](_0x26c736=>_0x26c736[_0x11c956(0x206)]===_0x6a5755['CODE']&&_0x26c736[_0x11c956(0x1fd)]<=_0x34897b&&_0x34897b<=_0x26c736[_0x11c956(0x1f1)]);}function pe(_0x56192e){const _0x5f05ea=_0x1bd327;var _0x23a9a6;let _0x11282a=_0x56192e['documentData'][_0x5f05ea(0x188)];if(!_0x11282a)return!0x1;let _0x57709c=_0x56192e[_0x5f05ea(0x1c7)]==='left'?_0x56192e['cursorOffset']-0x1:_0x56192e[_0x5f05ea(0x1ce)],_0x39fd08=_0x56192e['direction']===_0x5f05ea(0x1cb)?_0x56192e[_0x5f05ea(0x1ce)]+0x1:_0x57709c;return((_0x23a9a6=_0x11282a['blockRanges'])==null?[]:_0x23a9a6)[_0x5f05ea(0x1a5)](_0x3f6abd=>_0x3f6abd[_0x5f05ea(0x206)]===_0x6a5755['CODE']?_0x57709c===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x57709c===_0x3f6abd[_0x5f05ea(0x1f1)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1f1)]:!0x1);}function me(_0x2c6898,_0xf4ff8){const _0x5d399e=_0x1bd327;var _0x472668;return(_0x472668=_0x2c6898[_0x5d399e(0x203)])==null?void 0x0:_0x472668[_0x5d399e(0x197)](_0xb61d1b=>{const _0x5d37d8=_0x5d399e;let _0x1b51c6=j(_0x2c6898,_0xb61d1b);return _0xb61d1b['blockType']===_0x6a5755['CODE']&&_0xb61d1b[_0x5d37d8(0x1fd)]<=_0xf4ff8&&_0xf4ff8<=_0x1b51c6+0x2;});}function E(_0x458b7d,_0x489504,_0x2bc312=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x458b7d&&_0x2bc312?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x44be7c,_0x4bc7e9,_0x25ba3d,_0x30a93c=!0x1){const _0x5cd192=_0x1bd327;var _0x2ce1ac;let _0x5344c5=((_0x2ce1ac=_0x44be7c[_0x5cd192(0x1b9)])==null?[]:_0x2ce1ac)[_0x5cd192(0x205)](_0x3f030f=>_0x3f030f[_0x5cd192(0x1fd)]>_0x4bc7e9&&_0x3f030f[_0x5cd192(0x1fd)]<_0x25ba3d);_0x5344c5[_0x5cd192(0x1ac)]((_0x5f0914,_0x3dcf59)=>{const _0x9d20d5=_0x5cd192;var _0x8b41d2;_0x5f0914[_0x9d20d5(0x180)]={...(_0x8b41d2=_0x5f0914[_0x9d20d5(0x180)])==null?{}:_0x8b41d2,...E(_0x3dcf59===0x0,_0x3dcf59===_0x5344c5['length']-0x1,_0x30a93c)};});}function ge(_0x4ad119){const _0x5535b6=_0x1bd327;var _0xce39d,_0x144fd5;let _0x45235c={..._0x4ad119==null?{}:_0x4ad119};return delete _0x45235c[_0x5535b6(0x181)],delete _0x45235c[_0x5535b6(0x185)],delete _0x45235c[_0x5535b6(0x1c1)],delete _0x45235c['spaceBelow'],((_0xce39d=_0x45235c[_0x5535b6(0x18e)])==null?void 0x0:_0xce39d['ff'])===ie&&((_0x144fd5=_0x45235c['textStyle'])==null?void 0x0:_0x144fd5['fs'])===0xc&&delete _0x45235c['textStyle'],_0x45235c;}function _e(_0x39acef,_0x19b342){const _0x264dfc=_0x1bd327;var _0x384293;let _0x84bf9e=j(_0x39acef,_0x19b342);return((_0x384293=_0x39acef['paragraphs'])==null?[]:_0x384293)[_0x264dfc(0x205)](_0x136ab6=>_0x136ab6[_0x264dfc(0x1fd)]>_0x19b342[_0x264dfc(0x1fd)]&&_0x136ab6['startIndex']<_0x84bf9e);}function ve(_0x5dc6d1,_0x227382,_0x483b94){const _0xaee304=_0x1bd327;let _0x24a3fe=A(_0x5dc6d1,_0x227382,_0x483b94),_0x49d44c=_0x5dc6d1['dataStream'][_0xaee304(0x1e5)](_0x24a3fe,_0x483b94[_0xaee304(0x1fd)]);return Array[_0xaee304(0x1a0)](_0x49d44c)['every'](_0x19949c=>_0x19949c===_0x217bb8[_0xaee304(0x1ff)]||_0x19949c===_0x217bb8[_0xaee304(0x1fc)]);}function D(_0x4e4dd3){const _0x41d14f=_0x1bd327;return _0x4a3ab2[_0x41d14f(0x19f)](_0x4e4dd3);}function O(_0x1bea0e){const _0x4865fa=_0x1bd327;if(!_0x1bea0e[_0x4865fa(0x188)])throw Error(_0x4865fa(0x1a4));return _0x1bea0e['body'];}function ye(_0x49c63f,_0x4337e4,_0xda48a8){const _0x577f82=_0x1bd327;if(_0x4337e4==null||_0xda48a8==null){let _0xfd5252=xe(_0x49c63f);return{'startOffset':_0xfd5252,'endOffset':_0xfd5252};}let _0x116a08=Math[_0x577f82(0x1ec)](_0x4337e4,_0xda48a8),_0x537020=Math[_0x577f82(0x18c)](_0x4337e4,_0xda48a8);if(_0x116a08===_0x537020){let _0x34e1e1=be(_0x49c63f,_0x116a08);return{'startOffset':_0x34e1e1,'endOffset':_0x34e1e1};}return Ce(_0x49c63f,_0x116a08,_0x537020);}function be(_0x35c68a,_0xa9c61b){const _0x8b96db=_0x1bd327;return _0xa9c61b===0x0&&_0x35c68a[_0x8b96db(0x1ef)][0x0]===_0x217bb8[_0x8b96db(0x1d2)]?0x1:_0xa9c61b;}function xe(_0x56bc62){const _0x4ee74d=_0x1bd327;return _0x56bc62[_0x4ee74d(0x1ef)][_0x4ee74d(0x1ad)](_0x217bb8['SECTION_BREAK'])?Math[_0x4ee74d(0x18c)](0x0,_0x56bc62['dataStream'][_0x4ee74d(0x1f9)]-0x1):_0x56bc62[_0x4ee74d(0x1ef)]['length'];}function Se(_0x3455a9,_0x3495ae,_0xa65481){const _0x393514=_0x1bd327;var _0x35a43b;let _0x37ce59=Math['min'](_0x3495ae,_0xa65481),_0x1b3cde=Math[_0x393514(0x18c)](_0x3495ae,_0xa65481);return!!((_0x35a43b=_0x3455a9[_0x393514(0x19b)])!=null&&_0x35a43b[_0x393514(0x1a5)](_0x408f38=>_0x37ce59>_0x408f38[_0x393514(0x1fd)]&&_0x37ce59<_0x408f38[_0x393514(0x1f1)]||_0x1b3cde>_0x408f38[_0x393514(0x1fd)]&&_0x1b3cde<_0x408f38[_0x393514(0x1f1)]||_0x37ce59<=_0x408f38['startIndex']&&_0x1b3cde>=_0x408f38[_0x393514(0x1f1)]));}function Ce(_0xd26515,_0x4a7336,_0x33153e){const _0x3da9ec=_0x1bd327;var _0x151edc,_0x5411e1;let _0x22d7b6=[...(_0x151edc=_0xd26515[_0x3da9ec(0x1b9)])==null?[]:_0x151edc][_0x3da9ec(0x1e2)]((_0x99b405,_0x59d2b1)=>_0x99b405[_0x3da9ec(0x1fd)]-_0x59d2b1[_0x3da9ec(0x1fd)]),_0x2aa74e=_0x22d7b6[_0x3da9ec(0x197)]((_0x2c17e0,_0x390a6e)=>(_0x390a6e===0x0?0x0:_0x22d7b6[_0x390a6e-0x1][_0x3da9ec(0x1fd)]+0x1)<=_0x4a7336&&_0x4a7336<=_0x2c17e0[_0x3da9ec(0x1fd)]),_0x9698d1=(_0x5411e1=_0x22d7b6[_0x3da9ec(0x197)](_0x387917=>_0x387917[_0x3da9ec(0x1fd)]>=_0x33153e-0x1))==null?_0x22d7b6[_0x22d7b6[_0x3da9ec(0x1f9)]-0x1]:_0x5411e1;return{'startOffset':_0x2aa74e?k(_0x22d7b6,_0x2aa74e):_0x4a7336,'endOffset':_0x9698d1?_0x9698d1[_0x3da9ec(0x1fd)]+0x1:_0x33153e};}function k(_0x4f80a2,_0x7f6a8){const _0x50d442=_0x1bd327;let _0x49d983=_0x4f80a2['indexOf'](_0x7f6a8);return _0x49d983>0x0?_0x4f80a2[_0x49d983-0x1][_0x50d442(0x1fd)]+0x1:0x0;}function A(_0x4e7661,_0x326d5f,_0x19ca94){const _0x35eadf=_0x1bd327;var _0x3a3fcb;return Math[_0x35eadf(0x18c)](k((_0x3a3fcb=_0x4e7661[_0x35eadf(0x1b9)])==null?[]:_0x3a3fcb,_0x19ca94),_0x326d5f[_0x35eadf(0x1fd)]+0x1);}function j(_0x37a3e0,_0x437f7f){const _0x598c77=_0x1bd327;return _0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]]===_0x217bb8[_0x598c77(0x1fc)]?_0x437f7f['endIndex']:_0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]+0x1]===_0x217bb8['BLOCK_END']?_0x437f7f['endIndex']+0x1:_0x437f7f[_0x598c77(0x1f1)];}function we(_0x50d5b5,_0xec2ffe,_0x5aeec5,_0x255f5f){const _0x5f2bb5=_0x1bd327;var _0x5b8c3b,_0x418197;let _0x184e23=j(_0x50d5b5,_0xec2ffe),_0x1f6762=((_0x5b8c3b=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x5b8c3b)['find'](_0x22c608=>_0x22c608[_0x5f2bb5(0x1fd)]===_0x184e23+0x1);if(!_0x1f6762||_0x255f5f!=null&&_0x1f6762['startIndex']!==_0x255f5f||_0x5aeec5<_0x184e23||_0x5aeec5>_0x1f6762[_0x5f2bb5(0x1fd)]+0x1||_0x50d5b5['dataStream'][_0x1f6762[_0x5f2bb5(0x1fd)]]!==_0x217bb8[_0x5f2bb5(0x1d2)])return null;let _0x5b6aac=k((_0x418197=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x418197,_0x1f6762),_0x4e092a=_0x50d5b5['dataStream'][_0x5f2bb5(0x1e5)](_0x5b6aac,_0x1f6762[_0x5f2bb5(0x1fd)]);return Array[_0x5f2bb5(0x1a0)](_0x4e092a)[_0x5f2bb5(0x1ae)](_0x3f70ae=>_0x3f70ae===_0x217bb8['BLOCK_END'])?{'paragraph':_0x1f6762,'endTokenOffset':_0x184e23}:null;}function M(_0x3975cf,_0x4296b8){const _0x275dbc=_0x1bd327;var _0x4ad9e1;let _0x14d249=j(_0x3975cf,_0x4296b8),_0x10f7ff=_0x3975cf[_0x275dbc(0x1ef)][_0x14d249+0x1];_0x10f7ff!==_0x217bb8[_0x275dbc(0x1c2)]&&_0x10f7ff!==void 0x0||N(_0x3975cf,_0x14d249+0x1,_0x217bb8[_0x275dbc(0x1d2)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x48477c(new Set((_0x4ad9e1=_0x3975cf['paragraphs'])==null?void 0x0:_0x4ad9e1['map'](_0x557883=>_0x557883['paragraphId'])))}]});}function N(_0xa28d4e,_0x2c44e7,_0x167a30,_0x175274={}){const _0x56d5f8=_0x1bd327;var _0x47ae69,_0x36f9db;if(_0x167a30){if(_0xa28d4e[_0x56d5f8(0x1ef)]=''+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](0x0,_0x2c44e7)+_0x167a30+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](_0x2c44e7),Ee(_0xa28d4e,_0x2c44e7,_0x167a30[_0x56d5f8(0x1f9)]),(_0x47ae69=_0x175274[_0x56d5f8(0x1b9)])!=null&&_0x47ae69['length']){var _0x31db16;_0xa28d4e['paragraphs']=[...(_0x31db16=_0xa28d4e[_0x56d5f8(0x1b9)])==null?[]:_0x31db16,..._0x175274[_0x56d5f8(0x1b9)][_0x56d5f8(0x1c8)](_0x403e1a=>({..._0x403e1a,'startIndex':_0x403e1a['startIndex']+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x26b6dd,_0x58a042)=>_0x26b6dd[_0x56d5f8(0x1fd)]-_0x58a042[_0x56d5f8(0x1fd)]);}if((_0x36f9db=_0x175274[_0x56d5f8(0x203)])!=null&&_0x36f9db[_0x56d5f8(0x1f9)]){var _0x30079;_0xa28d4e[_0x56d5f8(0x203)]=[...(_0x30079=_0xa28d4e['blockRanges'])==null?[]:_0x30079,..._0x175274['blockRanges'][_0x56d5f8(0x1c8)](_0x1bd614=>({..._0x1bd614,'startIndex':_0x1bd614['startIndex']+_0x2c44e7,'endIndex':_0x1bd614[_0x56d5f8(0x1f1)]+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x1ae35f,_0x29b703)=>_0x1ae35f[_0x56d5f8(0x1fd)]-_0x29b703['startIndex']);}}}function Te(_0xf71c93,_0x138d59,_0x352d52){const _0x21982d=_0x1bd327;let _0xc9ddd0=_0x352d52-_0x138d59;_0xf71c93[_0x21982d(0x1ef)]=''+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](0x0,_0x138d59)+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](_0x352d52),De(_0xf71c93,_0x138d59,_0xc9ddd0);}function Ee(_0x200e2c,_0x55851a,_0x3b608a){const _0x23db52=_0x1bd327;_0x200e2c[_0x23db52(0x1b9)]=P(_0x200e2c['paragraphs'],_0x55851a,_0x3b608a),_0x200e2c['sectionBreaks']=P(_0x200e2c[_0x23db52(0x1a9)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x192)]=P(_0x200e2c[_0x23db52(0x192)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x204)]=Oe(_0x200e2c[_0x23db52(0x204)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x19b)]=I(_0x200e2c[_0x23db52(0x19b)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x1bb)]=I(_0x200e2c['customRanges'],_0x55851a,_0x3b608a),_0x200e2c['customDecorations']=I(_0x200e2c[_0x23db52(0x207)],_0x55851a,_0x3b608a),_0x200e2c['blockRanges']=I(_0x200e2c[_0x23db52(0x203)],_0x55851a,_0x3b608a);}function De(_0x4d39c7,_0xcb9b1f,_0x208f86){const _0x1f2d6f=_0x1bd327;var _0x30d90c,_0x57fc56;_0x4d39c7[_0x1f2d6f(0x1b9)]=F(_0x4d39c7[_0x1f2d6f(0x1b9)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1a9)]=F(_0x4d39c7[_0x1f2d6f(0x1a9)],_0xcb9b1f,_0x208f86),_0x4d39c7['customBlocks']=F(_0x4d39c7[_0x1f2d6f(0x192)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x204)]=(_0x30d90c=L((_0x57fc56=_0x4d39c7[_0x1f2d6f(0x204)])==null?void 0x0:_0x57fc56[_0x1f2d6f(0x1c8)](_0x36c2a2=>({..._0x36c2a2,'startIndex':_0x36c2a2['st'],'endIndex':_0x36c2a2['ed']})),_0xcb9b1f,_0x208f86))==null?void 0x0:_0x30d90c[_0x1f2d6f(0x1c8)](_0x4b84b9=>{let {startIndex:_0x5da132,endIndex:_0x4d29f3,..._0x3788e8}=_0x4b84b9;return{..._0x3788e8,'st':_0x5da132,'ed':_0x4d29f3};}),_0x4d39c7[_0x1f2d6f(0x19b)]=L(_0x4d39c7[_0x1f2d6f(0x19b)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1bb)]=L(_0x4d39c7[_0x1f2d6f(0x1bb)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x207)]=L(_0x4d39c7[_0x1f2d6f(0x207)],_0xcb9b1f,_0x208f86),_0x4d39c7['blockRanges']=L(_0x4d39c7[_0x1f2d6f(0x203)],_0xcb9b1f,_0x208f86);}function P(_0x4d9a0e,_0x33fb7e,_0x5eeb7d){const _0x8c3a7a=_0x1bd327;return _0x4d9a0e==null?void 0x0:_0x4d9a0e[_0x8c3a7a(0x1c8)](_0x2b76b8=>_0x2b76b8[_0x8c3a7a(0x1fd)]>=_0x33fb7e?{..._0x2b76b8,'startIndex':_0x2b76b8[_0x8c3a7a(0x1fd)]+_0x5eeb7d}:_0x2b76b8);}function F(_0x3b741,_0x3e1bbd,_0x53760b){const _0x119fcd=_0x1bd327;let _0x395b10=_0x3e1bbd+_0x53760b;return _0x3b741==null?void 0x0:_0x3b741[_0x119fcd(0x1c8)](_0x540d27=>_0x540d27['startIndex']>=_0x3e1bbd&&_0x540d27['startIndex']<_0x395b10?null:_0x540d27[_0x119fcd(0x1fd)]>=_0x395b10?{..._0x540d27,'startIndex':_0x540d27[_0x119fcd(0x1fd)]-_0x53760b}:_0x540d27)[_0x119fcd(0x205)](_0x49e67d=>_0x49e67d!=null);}function Oe(_0x1c1f0f,_0x3ab0bb,_0x3fec73){const _0xcd7fad=_0x1bd327;return _0x1c1f0f==null?void 0x0:_0x1c1f0f[_0xcd7fad(0x1c8)](_0x35900f=>_0x35900f['st']>=_0x3ab0bb?{..._0x35900f,'st':_0x35900f['st']+_0x3fec73,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f['ed']>_0x3ab0bb?{..._0x35900f,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f);}function I(_0xc008e9,_0x527f21,_0xca30d2){const _0x17b99d=_0x1bd327;return _0xc008e9==null?void 0x0:_0xc008e9[_0x17b99d(0x1c8)](_0x858c64=>_0x858c64[_0x17b99d(0x1fd)]>=_0x527f21?{..._0x858c64,'startIndex':_0x858c64[_0x17b99d(0x1fd)]+_0xca30d2,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64[_0x17b99d(0x1f1)]>=_0x527f21?{..._0x858c64,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64);}function L(_0x27156c,_0x454c7d,_0x24f59c){const _0x49a940=_0x1bd327;let _0x5e3ddb=_0x454c7d+_0x24f59c;return _0x27156c==null?void 0x0:_0x27156c['map'](_0x1ce14b=>_0x1ce14b[_0x49a940(0x1fd)]>=_0x454c7d&&_0x1ce14b['endIndex']<_0x5e3ddb?null:_0x1ce14b[_0x49a940(0x1fd)]>=_0x5e3ddb?{..._0x1ce14b,'startIndex':_0x1ce14b[_0x49a940(0x1fd)]-_0x24f59c,'endIndex':_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c}:_0x1ce14b[_0x49a940(0x1f1)]>=_0x454c7d?{..._0x1ce14b,'startIndex':_0x1ce14b['startIndex']<_0x454c7d?_0x1ce14b[_0x49a940(0x1fd)]:_0x454c7d,'endIndex':Math['max'](_0x454c7d,_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c)}:_0x1ce14b)[_0x49a940(0x205)](_0xe31228=>_0xe31228!=null);}function R(_0x3b14de,_0x535110,_0x3ffa3a,_0x3b3057){_0x3b14de==null||_0x3b14de['forEach'](_0x4cf0d0=>{const _0x3746eb=_0x3851;_0x4cf0d0[_0x3746eb(0x1fd)]>=_0x535110&&_0x4cf0d0[_0x3746eb(0x1fd)]<_0x3ffa3a&&(_0x4cf0d0[_0x3746eb(0x1fd)]+=_0x3b3057);});}function ke(_0x2f7b24,_0x3ffb3e,_0xd534d9,_0xf7faa0){const _0xc99b3f=_0x1bd327;_0x2f7b24==null||_0x2f7b24[_0xc99b3f(0x1ac)](_0x36ab66=>{_0x36ab66['st']>=_0x3ffb3e&&_0x36ab66['st']<_0xd534d9?(_0x36ab66['st']+=_0xf7faa0,_0x36ab66['ed']+=_0xf7faa0):_0x36ab66['ed']>_0x3ffb3e&&_0x36ab66['ed']<_0xd534d9&&(_0x36ab66['ed']+=_0xf7faa0);});}function z(_0x153e56,_0x16d801,_0x315824,_0xf8c1bf){const _0x2cdbab=_0x1bd327;_0x153e56==null||_0x153e56[_0x2cdbab(0x1ac)](_0xed04af=>{const _0x5c3d08=_0x2cdbab;_0xed04af[_0x5c3d08(0x1fd)]>=_0x16d801&&_0xed04af[_0x5c3d08(0x1fd)]<_0x315824?(_0xed04af[_0x5c3d08(0x1fd)]+=_0xf8c1bf,_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf):_0xed04af[_0x5c3d08(0x1f1)]>_0x16d801&&_0xed04af['endIndex']<_0x315824&&(_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf);});}function B(_0x453884){'@babel/helpers - typeof';const _0x298355=_0x1bd327;return B=typeof Symbol==_0x298355(0x1ab)&&typeof Symbol[_0x298355(0x1bc)]=='symbol'?function(_0x3a6add){return typeof _0x3a6add;}:function(_0x20ef5b){const _0x142d6a=_0x298355;return _0x20ef5b&&typeof Symbol==_0x142d6a(0x1ab)&&_0x20ef5b[_0x142d6a(0x1df)]===Symbol&&_0x20ef5b!==Symbol[_0x142d6a(0x1a1)]?'symbol':typeof _0x20ef5b;},B(_0x453884);}function Ae(_0x32bc2b,_0xb504e8){const _0x50839f=_0x1bd327;if(B(_0x32bc2b)!=_0x50839f(0x1fa)||!_0x32bc2b)return _0x32bc2b;var _0x1093cd=_0x32bc2b[Symbol[_0x50839f(0x186)]];if(_0x1093cd!==void 0x0){var _0x403ab9=_0x1093cd[_0x50839f(0x1c3)](_0x32bc2b,_0xb504e8||_0x50839f(0x189));if(B(_0x403ab9)!=_0x50839f(0x1fa))return _0x403ab9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xb504e8===_0x50839f(0x187)?String:Number)(_0x32bc2b);}function je(_0xb79d14){const _0x49a588=_0x1bd327;var _0x22a035=Ae(_0xb79d14,_0x49a588(0x187));return B(_0x22a035)=='symbol'?_0x22a035:_0x22a035+'';}function V(_0x23e699,_0xfbc1c1,_0x3096f0){const _0x44cb34=_0x1bd327;return(_0xfbc1c1=je(_0xfbc1c1))in _0x23e699?Object[_0x44cb34(0x1b0)](_0x23e699,_0xfbc1c1,{'value':_0x3096f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x23e699[_0xfbc1c1]=_0x3096f0,_0x23e699;}var H=class extends _0x4a26dc{constructor(..._0x16ff2e){const _0x34cc19=_0x1bd327;super(..._0x16ff2e),V(this,_0x34cc19(0x199),new Map()),V(this,_0x34cc19(0x1d5),new _0x39b06c()),V(this,'change$',this[_0x34cc19(0x1d5)]['asObservable']());}[_0x1bd327(0x1fe)](_0x5d0c6a,_0x3a910a){const _0x56b25c=_0x1bd327;return w(this[_0x56b25c(0x199)][_0x56b25c(0x1a2)](_0x5d0c6a))[_0x56b25c(0x1b6)][_0x3a910a];}['setCodeConfig'](_0x5ab6cc,_0x3b4e6f,_0x23847b){const _0x56731c=_0x1bd327;this['_setResource'](_0x5ab6cc,_0x3b4e6f,T(this[_0x56731c(0x199)][_0x56731c(0x1a2)](_0x5ab6cc),_0x3b4e6f,_0x23847b));}[_0x1bd327(0x1f4)](_0x3f323b,_0x3a18eb){const _0x4416b8=_0x1bd327;this[_0x4416b8(0x1b1)](_0x3f323b,_0x3a18eb,re(this[_0x4416b8(0x199)][_0x4416b8(0x1a2)](_0x3f323b),_0x3a18eb));}[_0x1bd327(0x1e9)](_0x2c8102){const _0x5966b5=_0x1bd327;return w(this[_0x5966b5(0x199)][_0x5966b5(0x1a2)](_0x2c8102));}['deserialize'](_0x14e27c,_0x291d84){const _0x96de54=_0x1bd327;this[_0x96de54(0x199)][_0x96de54(0x1f3)](_0x14e27c,w(_0x291d84)),this[_0x96de54(0x1d5)][_0x96de54(0x19a)]({'unitId':_0x14e27c});}[_0x1bd327(0x1d6)](_0x5c7260){const _0x444b4c=_0x1bd327;this[_0x444b4c(0x199)]['delete'](_0x5c7260),this[_0x444b4c(0x1d5)][_0x444b4c(0x19a)]({'unitId':_0x5c7260});}[_0x1bd327(0x1a8)](){const _0x582283=_0x1bd327;super[_0x582283(0x1a8)](),this['_resources'][_0x582283(0x19e)](),this[_0x582283(0x1d5)][_0x582283(0x1ee)]();}['_setResource'](_0x194146,_0x5d57ac,_0x446e5a){const _0x487ed6=_0x1bd327;this[_0x487ed6(0x199)][_0x487ed6(0x1f3)](_0x194146,_0x446e5a),this[_0x487ed6(0x1d5)]['next']({'unitId':_0x194146,'blockId':_0x5d57ac});}};const Me={'id':_0x1bd327(0x1d9),'type':_0xd6e375['COMMAND'],'handler':_0x29eb50=>{const _0x2183b6=_0x1bd327;let _0x246ac5=Le(_0x29eb50);if(_0x246ac5)return _0x29eb50['get'](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x246ac5['startOffset'],'endOffset':_0x246ac5['endOffset'],'unitId':_0x246ac5['unitId']});let _0x5eb727=Re(_0x29eb50);if(!_0x5eb727)return!0x1;let _0x5880d4=_0x5eb727[_0x2183b6(0x1fd)]+0x1;return _0x29eb50[_0x2183b6(0x1a2)](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x5880d4,'endOffset':_0x5880d4});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0xd6e375[_0x1bd327(0x1da)],'handler':()=>!0x0},U={'id':_0x1bd327(0x1f2),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1f8820,_0x29352d)=>{const _0x2b5a3d=_0x1bd327;var _0x4ee1cc,_0x572f04,_0x62d625;let _0x205e36=W(_0x1f8820,_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1d3)]);if(!_0x205e36)return!0x1;let _0x4e0de2=G(_0x1f8820),_0x355e16=ae({'blockId':(_0x4ee1cc=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1e1)])==null?_0x414e01(0x6):_0x4ee1cc,'config':_0x29352d==null?void 0x0:_0x29352d['config'],'documentData':_0x205e36[_0x2b5a3d(0x208)],'endOffset':(_0x572f04=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1ea)])==null?_0x4e0de2==null?void 0x0:_0x4e0de2[_0x2b5a3d(0x1ea)]:_0x572f04,'metadata':_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1e9)](_0x205e36[_0x2b5a3d(0x1d3)]),'startOffset':(_0x62d625=_0x29352d==null?void 0x0:_0x29352d['startOffset'])==null?_0x4e0de2==null?void 0x0:_0x4e0de2['startOffset']:_0x62d625}),_0x2c26c2=q(_0x205e36[_0x2b5a3d(0x1cc)],_0x205e36[_0x2b5a3d(0x1d3)],_0x205e36[_0x2b5a3d(0x208)],_0x355e16[_0x2b5a3d(0x1e7)],_0x355e16[_0x2b5a3d(0x1ce)]);return _0x2c26c2&&_0x355e16['nextMetadata']&&_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1dd)](_0x205e36[_0x2b5a3d(0x1d3)],_0x355e16[_0x2b5a3d(0x1c5)]),_0x2c26c2;}},Pe={'id':_0x1bd327(0x194),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x5921c7,_0x1ec69b)=>{const _0x3b668a=_0x1bd327;if(!_0x1ec69b)return!0x1;let _0x5bbb35=W(_0x5921c7,_0x1ec69b[_0x3b668a(0x1d3)]);if(!_0x5bbb35)return!0x1;let _0x3c4a7a=ce({'blockId':_0x1ec69b['blockId'],'config':_0x1ec69b[_0x3b668a(0x1c0)],'documentData':_0x5bbb35[_0x3b668a(0x208)],'metadata':_0x5bbb35[_0x3b668a(0x1d8)][_0x3b668a(0x1e9)](_0x5bbb35['unitId'])});return _0x3c4a7a[_0x3b668a(0x1c5)]&&_0x5bbb35['model']['deserialize'](_0x5bbb35[_0x3b668a(0x1d3)],_0x3c4a7a[_0x3b668a(0x1c5)]),!0x0;}},Fe={'id':_0x1bd327(0x1f8),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1df13c,_0x5a40b9)=>{const _0x3fea1c=_0x1bd327;var _0x5e716a,_0x23a537;let _0x446f03=W(_0x1df13c,_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1d3)]);if(!_0x446f03)return!0x1;let _0x50e886=(_0x5e716a=_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1ce)])==null?(_0x23a537=G(_0x1df13c))==null?void 0x0:_0x23a537[_0x3fea1c(0x18a)]:_0x5e716a;if(_0x50e886==null)return!0x1;let _0x8535b5=le({'cursorOffset':_0x50e886,'documentData':_0x446f03[_0x3fea1c(0x208)]});return _0x8535b5?q(_0x446f03[_0x3fea1c(0x1cc)],_0x446f03[_0x3fea1c(0x1d3)],_0x446f03[_0x3fea1c(0x208)],_0x8535b5[_0x3fea1c(0x1e7)],_0x8535b5[_0x3fea1c(0x1ce)]):!0x1;}},Ie={'id':_0x1bd327(0x1b8),'type':_0xd6e375['COMMAND'],'handler':(_0x77f739,_0x486c1b)=>{const _0x2d60e6=_0x1bd327;var _0x1e2277,_0x549cc6;let _0x3ae69e=W(_0x77f739,_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1d3)]);if(!_0x3ae69e)return!0x1;let _0x260d4e=(_0x1e2277=_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1ce)])==null?(_0x549cc6=G(_0x77f739))==null?void 0x0:_0x549cc6[_0x2d60e6(0x18a)]:_0x1e2277;if(_0x260d4e==null)return!0x1;let _0xf4ccdc=ue({'cursorOffset':_0x260d4e,'documentData':_0x3ae69e['previousDocumentData'],'paragraphStartIndex':_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1a7)]});return _0xf4ccdc?q(_0x3ae69e[_0x2d60e6(0x1cc)],_0x3ae69e[_0x2d60e6(0x1d3)],_0x3ae69e[_0x2d60e6(0x208)],_0xf4ccdc['nextDocumentData'],_0xf4ccdc[_0x2d60e6(0x1ce)]):!0x1;}};function W(_0x55225f,_0x292aa8){const _0x7144ea=_0x1bd327;let _0x310aee=_0x55225f['get'](_0x33ba15),_0x2ac379=_0x292aa8?_0x310aee[_0x7144ea(0x1bd)](_0x292aa8):_0x310aee[_0x7144ea(0x1d7)](_0x2864e1['UNIVER_DOC']);return _0x2ac379?{'commandService':_0x55225f['get'](_0x32af23),'model':_0x55225f[_0x7144ea(0x1a2)](H),'previousDocumentData':_0x2ac379[_0x7144ea(0x1e0)](),'unitId':_0x2ac379[_0x7144ea(0x1b4)]()}:null;}function G(_0x40943f){const _0x536967=_0x1bd327;var _0x581005;return(_0x581005=_0x40943f['get'](_0x35cf98)[_0x536967(0x19c)]())==null?void 0x0:_0x581005[0x0];}function Le(_0x7db706){const _0x3c9ab5=_0x1bd327;var _0x49ea34;let _0x2101c7=(_0x49ea34=_0x7db706[_0x3c9ab5(0x1a2)](_0x33ba15)[_0x3c9ab5(0x1d7)](_0x2864e1[_0x3c9ab5(0x1e3)]))==null?void 0x0:_0x49ea34[_0x3c9ab5(0x1b4)]();try{return _0x7db706['get'](_0xc64f97)[_0x3c9ab5(0x1c9)](_0x2101c7);}catch{return null;}}function Re(_0x2f5d32){const _0x45eb4f=_0x1bd327;var _0x5285f1,_0x523ba4,_0x34a159;let _0x44f8af=G(_0x2f5d32);if(!_0x44f8af)return null;let _0x30d20b=_0x2f5d32[_0x45eb4f(0x1a2)](_0x33ba15)[_0x45eb4f(0x1d7)](_0x2864e1[_0x45eb4f(0x1e3)]),_0x3538a6=_0x30d20b==null?void 0x0:_0x30d20b[_0x45eb4f(0x196)]();return _0x3538a6?(_0x5285f1=_0x1b614b[_0x45eb4f(0x1d4)][_0x45eb4f(0x190)](_0x44f8af,(_0x523ba4=_0x3538a6[_0x45eb4f(0x1b9)])==null?[]:_0x523ba4,(_0x34a159=_0x3538a6[_0x45eb4f(0x1ef)])==null?'':_0x34a159)[0x0])==null?null:_0x5285f1:null;}function ze(_0x359e97,_0x3c41db){const _0x2b5d35=_0x1bd327;var _0x298ea1,_0x1c67e4,_0x218fc2,_0x5aa8fd,_0x498dd6,_0x29b5ba,_0x54bd74,_0x56ff95,_0xbe39ee,_0x2bd1bb,_0x494bc6,_0x3cf8c1,_0x201298,_0x46ef73,_0xff51f1,_0x1a56a2,_0x30496e,_0x591179;let _0x572943=_0x273043['getInstance']();return[K(_0x572943,['body',_0x2b5d35(0x1ef)],(_0x298ea1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x298ea1[_0x2b5d35(0x1ef)],(_0x1c67e4=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x1c67e4[_0x2b5d35(0x1ef)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x1b9)],(_0x218fc2=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x218fc2[_0x2b5d35(0x1b9)],(_0x5aa8fd=_0x3c41db['body'])==null?void 0x0:_0x5aa8fd[_0x2b5d35(0x1b9)]),K(_0x572943,[_0x2b5d35(0x188),'sectionBreaks'],(_0x498dd6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x498dd6['sectionBreaks'],(_0x29b5ba=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x29b5ba['sectionBreaks']),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x204)],(_0x54bd74=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x54bd74[_0x2b5d35(0x204)],(_0x56ff95=_0x3c41db['body'])==null?void 0x0:_0x56ff95[_0x2b5d35(0x204)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x192)],(_0xbe39ee=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xbe39ee[_0x2b5d35(0x192)],(_0x2bd1bb=_0x3c41db['body'])==null?void 0x0:_0x2bd1bb[_0x2b5d35(0x192)]),K(_0x572943,['body',_0x2b5d35(0x1bb)],(_0x494bc6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x494bc6['customRanges'],(_0x3cf8c1=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x3cf8c1['customRanges']),K(_0x572943,['body',_0x2b5d35(0x207)],(_0x201298=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x201298[_0x2b5d35(0x207)],(_0x46ef73=_0x3c41db['body'])==null?void 0x0:_0x46ef73['customDecorations']),K(_0x572943,['body',_0x2b5d35(0x19b)],(_0xff51f1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xff51f1[_0x2b5d35(0x19b)],(_0x1a56a2=_0x3c41db['body'])==null?void 0x0:_0x1a56a2[_0x2b5d35(0x19b)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x203)],(_0x30496e=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x30496e[_0x2b5d35(0x203)],(_0x591179=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x591179[_0x2b5d35(0x203)])][_0x2b5d35(0x205)](Boolean)['reduce']((_0x272929,_0x550fb4)=>_0x273043[_0x2b5d35(0x1dc)](_0x272929,_0x550fb4),null);}function K(_0x1bf19f,_0x25d391,_0x18a388,_0x4f7f7f){const _0x12b61e=_0x1bd327;return _0x4a3ab2[_0x12b61e(0x1f0)](_0x18a388,_0x4f7f7f)?null:_0x1bf19f[_0x12b61e(0x1e6)](_0x25d391,_0x18a388,_0x4f7f7f);}function q(_0x102a09,_0x12fad5,_0x10bd5b,_0x194550,_0x459a94){let _0xa05d4a=ze(_0x10bd5b,_0x194550);return _0xa05d4a?!!_0x102a09['syncExecuteCommand'](_0x397e41['id'],{'unitId':_0x12fad5,'actions':_0xa05d4a,'textRanges':[{'startOffset':_0x459a94,'endOffset':_0x459a94,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x1bd327(0x1b2);var Be='@univerjs-pro/docs-code',Ve='1.0.0-alpha.0';const Y={};function X(_0x3da22e,_0x47f5b0){return function(_0x26db2b,_0x241fef){_0x47f5b0(_0x26db2b,_0x241fef,_0x3da22e);};}function Z(_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9){const _0x2e5d71=_0x1bd327;var _0x27c364=arguments[_0x2e5d71(0x1f9)],_0x8609e=_0x27c364<0x3?_0x16a23b:_0x366bf9===null?_0x366bf9=Object['getOwnPropertyDescriptor'](_0x16a23b,_0x8cb1a7):_0x366bf9,_0xafaa47;if(typeof Reflect==_0x2e5d71(0x1fa)&&typeof Reflect[_0x2e5d71(0x1ba)]==_0x2e5d71(0x1ab))_0x8609e=Reflect[_0x2e5d71(0x1ba)](_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9);else{for(var _0x18f287=_0x59f597[_0x2e5d71(0x1f9)]-0x1;_0x18f287>=0x0;_0x18f287--)(_0xafaa47=_0x59f597[_0x18f287])&&(_0x8609e=(_0x27c364<0x3?_0xafaa47(_0x8609e):_0x27c364>0x3?_0xafaa47(_0x16a23b,_0x8cb1a7,_0x8609e):_0xafaa47(_0x16a23b,_0x8cb1a7))||_0x8609e);}return _0x27c364>0x3&&_0x8609e&&Object['defineProperty'](_0x16a23b,_0x8cb1a7,_0x8609e),_0x8609e;}function _0x3851(_0x51d6b9,_0x4a2f16){_0x51d6b9=_0x51d6b9-0x180;const _0x27d7a2=_0x27d7();let _0x385151=_0x27d7a2[_0x51d6b9];return _0x385151;}let Q=class extends _0x4a26dc{constructor(_0x5b7001,_0x350133){const _0x3db34e=_0x1bd327;super(),this['_resourceManagerService']=_0x5b7001,this['_docsCodeModel']=_0x350133,this[_0x3db34e(0x193)]();}[_0x1bd327(0x193)](){const _0x11ebd9=_0x1bd327;this['disposeWithMe'](this[_0x11ebd9(0x201)][_0x11ebd9(0x1ca)]({'pluginName':J,'businesses':[_0x2864e1[_0x11ebd9(0x1e3)]],'toJson':_0x3b4bdc=>JSON[_0x11ebd9(0x19d)](this['_docsCodeModel']['serialize'](_0x3b4bdc)),'parseJson':_0x37cc05=>w(JSON[_0x11ebd9(0x18b)](_0x37cc05)),'onLoad':(_0x170642,_0x5b640d)=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1dd)](_0x170642,_0x5b640d),'onUnLoad':_0x4b803e=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1d6)](_0x4b803e)}));}};Q=Z([X(0x0,_0xca8f68),X(0x1,_0x30337f(H))],Q);let $=class extends _0x394390{constructor(_0x47ae68=Y,_0x57af85,_0x102eb1,_0x4d1a98){const _0x372e21=_0x1bd327;super(),this[_0x372e21(0x1c4)]=_0x47ae68,this[_0x372e21(0x182)]=_0x57af85,this[_0x372e21(0x191)]=_0x102eb1,this['_configService']=_0x4d1a98;let {..._0x2310ab}=_0x4c5915({},Y,this[_0x372e21(0x1c4)]);this[_0x372e21(0x1de)][_0x372e21(0x1cf)](_0x372e21(0x1d0),_0x2310ab);}['onStarting'](){const _0x3b64d5=_0x1bd327;this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([H]),this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([Q]),this['_injector']['get'](H),this['_injector'][_0x3b64d5(0x1a2)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x3b64d5(0x1ac)](_0x353933=>this['disposeWithMe'](this[_0x3b64d5(0x191)]['registerCommand'](_0x353933)));}};V($,_0x1bd327(0x1bf),J),V($,_0x1bd327(0x1cd),Be),V($,_0x1bd327(0x1b3),Ve),V($,'type',_0x2864e1[_0x1bd327(0x1e3)]),$=Z([_0x5e8859(_0x5411ad,_0x8ce557),X(0x1,_0x30337f(_0x4af702)),X(0x2,_0x32af23),X(0x3,_0x4adc10)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x4a8a2d=_0x28c9;(function(_0x33c0ef,_0x4e7947){const _0x4b3364=_0x28c9,_0x3719a4=_0x33c0ef();while(!![]){try{const _0x5996e2=-parseInt(_0x4b3364(0x1d9))/0x1*(-parseInt(_0x4b3364(0x1ce))/0x2)+parseInt(_0x4b3364(0x203))/0x3*(-parseInt(_0x4b3364(0x208))/0x4)+parseInt(_0x4b3364(0x1b6))/0x5*(-parseInt(_0x4b3364(0x22d))/0x6)+parseInt(_0x4b3364(0x209))/0x7*(-parseInt(_0x4b3364(0x1b9))/0x8)+parseInt(_0x4b3364(0x231))/0x9+-parseInt(_0x4b3364(0x21b))/0xa+parseInt(_0x4b3364(0x1d0))/0xb*(parseInt(_0x4b3364(0x1e8))/0xc);if(_0x5996e2===_0x4e7947)break;else _0x3719a4['push'](_0x3719a4['shift']());}catch(_0x59c62f){_0x3719a4['push'](_0x3719a4['shift']());}}}(_0x58a1,0x5beda));import{BuildTextUtils as _0x24fe28,CommandType as _0x20b98a,DataStreamTreeTokenType as _0x3ba019,DependentOn as _0xb86e0,Disposable as _0x3e8f03,DocumentBlockRangeType as _0x54e1d3,ICommandService as _0x3735ed,IConfigService as _0x42560c,IResourceManagerService as _0x3f714d,IUniverInstanceService as _0x3abeac,Inject as _0x4628b1,Injector as _0x531f72,JSONX as _0x2387fb,Plugin as _0x5357ad,Tools as _0xb48f1,UniverInstanceType as _0x2bb6f5,createParagraphId as _0x34e429,generateRandomId as _0x97c26f,merge as _0x3de4b6}from'@univerjs/core';import{DocContentInsertService as _0x2040aa,DocSelectionManagerService as _0x291a89,RichTextEditingMutation as _0x4297bb,UniverDocsPlugin as _0x1f5d37}from'@univerjs/docs';import{Subject as _0x363e20}from'rxjs';import{UniverLicensePlugin as _0x141bd9}from'@univerjs-pro/license';const S={'language':_0x4a8a2d(0x1f2),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x485bad){return{...S,..._0x485bad};}function w(_0x194da7){const _0x516533=_0x4a8a2d;var _0x1d5729;let _0x5a3d1f=(_0x1d5729=_0x194da7==null?void 0x0:_0x194da7['codes'])==null?{}:_0x1d5729;return{'codes':Object['fromEntries'](Object['entries'](_0x5a3d1f)[_0x516533(0x1c6)](([_0x23b746,_0x4926ac])=>[_0x23b746,C(_0x4926ac)]))};}function T(_0x56bf6f,_0x2b78f7,_0x2c447a){const _0x52d863=_0x4a8a2d;let _0xdb2ca7=w(_0x56bf6f);return _0xdb2ca7[_0x52d863(0x1cb)][_0x2b78f7]=C({..._0xdb2ca7['codes'][_0x2b78f7],..._0x2c447a}),_0xdb2ca7;}function re(_0x5c91e9,_0x22410c){let _0x2653fb=w(_0x5c91e9);return delete _0x2653fb['codes'][_0x22410c],_0x2653fb;}const ie=_0x4a8a2d(0x1f8);function ae(_0x151d84){const _0x5a812b=_0x4a8a2d;var _0x36a4f9,_0xafde3b,_0x5a0ce7;let _0x167a80=D(_0x151d84[_0x5a812b(0x21a)]),_0x24b65b=O(_0x167a80),_0x5d4611=se(_0x151d84[_0x5a812b(0x20a)],_0x151d84['endOffset']),_0x298645=_0x5d4611?(_0x36a4f9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x36a4f9[_0x5a812b(0x23a)](_0xbcb53=>_0xbcb53['startIndex']===_0x5d4611[_0x5a812b(0x20a)]&&_0xbcb53[_0x5a812b(0x1bd)]+0x1===_0x5d4611[_0x5a812b(0x227)]):void 0x0,{startOffset:_0x5ca80c,endOffset:_0x1ebe75}=_0x298645?_0x5d4611:ye(_0x24b65b,_0x151d84[_0x5a812b(0x20a)],_0x151d84[_0x5a812b(0x227)]),_0x50afb5=Se(_0x24b65b,_0x5ca80c,_0x1ebe75),_0x34c30c=(_0xafde3b=_0x298645==null?void 0x0:_0x298645['blockId'])==null?_0x151d84[_0x5a812b(0x1e4)]:_0xafde3b,_0x1606b8=T(_0x151d84[_0x5a812b(0x1bc)],_0x34c30c,{...S,..._0x151d84[_0x5a812b(0x211)]});if(_0x298645)return _0x298645[_0x5a812b(0x1f4)]=_0x54e1d3[_0x5a812b(0x200)],oe(_0x24b65b,_0x5ca80c,_0x1ebe75),he(_0x24b65b,_0x5ca80c,_0x1ebe75,_0x50afb5),M(_0x24b65b,_0x298645),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};if(_0x5ca80c===_0x1ebe75){var _0x5cbb11,_0x5960e9;let _0x3e4e1c=''+_0x3ba019[_0x5a812b(0x234)]+_0x3ba019[_0x5a812b(0x225)]+_0x3ba019['BLOCK_END'];N(_0x24b65b,_0x5ca80c,_0x3e4e1c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x34e429(new Set((_0x5cbb11=_0x24b65b[_0x5a812b(0x1ba)])==null?void 0x0:_0x5cbb11[_0x5a812b(0x1c6)](_0x2926b2=>_0x2926b2[_0x5a812b(0x20e)]))),'paragraphStyle':E(!0x0,!0x0,_0x50afb5)}],'blockRanges':[{'blockId':_0x34c30c,'blockType':_0x54e1d3['CODE'],'startIndex':0x0,'endIndex':_0x3e4e1c['length']-0x1}]});let _0x564362=(_0x5960e9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x5960e9[_0x5a812b(0x23a)](_0x319a88=>_0x319a88[_0x5a812b(0x1e4)]===_0x34c30c);return _0x564362&&M(_0x24b65b,_0x564362),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}N(_0x24b65b,_0x1ebe75,_0x3ba019['BLOCK_END']),N(_0x24b65b,_0x5ca80c,_0x3ba019[_0x5a812b(0x234)]),he(_0x24b65b,_0x5ca80c,_0x1ebe75+0x1,_0x50afb5);let _0x5e3282={'blockId':_0x34c30c,'blockType':_0x54e1d3[_0x5a812b(0x200)],'startIndex':_0x5ca80c,'endIndex':_0x1ebe75+0x1};return _0x24b65b[_0x5a812b(0x1c1)]=[...(_0x5a0ce7=_0x24b65b[_0x5a812b(0x1c1)])==null?[]:_0x5a0ce7,_0x5e3282]['sort']((_0x3d9679,_0x323898)=>_0x3d9679[_0x5a812b(0x1f0)]-_0x323898[_0x5a812b(0x1f0)]),M(_0x24b65b,_0x5e3282),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}function oe(_0x211db4,_0x314088,_0x431e22){const _0x15e86d=_0x4a8a2d;var _0x17578a;((_0x17578a=_0x211db4['paragraphs'])==null?[]:_0x17578a)['filter'](_0x553339=>_0x553339['startIndex']>_0x314088&&_0x553339[_0x15e86d(0x1f0)]<_0x431e22)['forEach'](_0x2a3de8=>{const _0x3b2a5f=_0x15e86d;var _0x4bbc9f;let _0x156109={...(_0x4bbc9f=_0x2a3de8[_0x3b2a5f(0x22c)])==null?{}:_0x4bbc9f};delete _0x156109['spaceAbove'],delete _0x156109[_0x3b2a5f(0x1ca)],_0x2a3de8[_0x3b2a5f(0x22c)]=_0x156109;});}function se(_0x457e64,_0x248d17){return _0x457e64==null||_0x248d17==null||_0x457e64===_0x248d17?null:{'startOffset':Math['min'](_0x457e64,_0x248d17),'endOffset':Math['max'](_0x457e64,_0x248d17)};}function ce(_0x3858ad){const _0x591bfa=_0x4a8a2d;return{'nextDocumentData':D(_0x3858ad[_0x591bfa(0x21a)]),'nextMetadata':T(_0x3858ad[_0x591bfa(0x1bc)],_0x3858ad['blockId'],_0x3858ad[_0x591bfa(0x211)]),'cursorOffset':0x0};}function le(_0x10af95){const _0x50aa72=_0x4a8a2d;var _0x5aa243,_0x357c42;let _0x2d332a=D(_0x10af95[_0x50aa72(0x21a)]),_0x414cf5=O(_0x2d332a),_0x1a8ea0=me(_0x414cf5,_0x10af95[_0x50aa72(0x1f6)]);if(!_0x1a8ea0)return null;let _0x2e6234=_e(_0x414cf5,_0x1a8ea0),_0x7f904f=_0x2e6234[_0x2e6234[_0x50aa72(0x1dd)]-0x1];if(!_0x7f904f||!ve(_0x414cf5,_0x1a8ea0,_0x7f904f)||_0x10af95[_0x50aa72(0x1f6)]<_0x7f904f[_0x50aa72(0x1f0)])return null;let _0x45fcd5=A(_0x414cf5,_0x1a8ea0,_0x7f904f);if(_0x45fcd5>=_0x1a8ea0[_0x50aa72(0x1bd)])return null;_0x414cf5[_0x50aa72(0x23c)]=[_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](0x0,_0x45fcd5),_0x3ba019[_0x50aa72(0x1e7)],_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)]),_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x1a8ea0[_0x50aa72(0x1bd)]+0x1)]['join'](''),R(_0x414cf5['paragraphs'],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x207)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x1cf)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),ke(_0x414cf5[_0x50aa72(0x206)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),z(_0x414cf5[_0x50aa72(0x1ee)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x1d8)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x238)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),(_0x5aa243=_0x414cf5[_0x50aa72(0x1c1)])==null||_0x5aa243[_0x50aa72(0x1e2)](_0x3caec1=>{const _0x3ec7c3=_0x50aa72;_0x3caec1===_0x1a8ea0||_0x3caec1['blockId']===_0x1a8ea0[_0x3ec7c3(0x1e4)]?_0x3caec1[_0x3ec7c3(0x1bd)]=_0x45fcd5:_0x3caec1[_0x3ec7c3(0x1f0)]>=_0x45fcd5&&_0x3caec1[_0x3ec7c3(0x1f0)]<_0x1a8ea0[_0x3ec7c3(0x1bd)]&&(_0x3caec1['startIndex']+=0x1,_0x3caec1[_0x3ec7c3(0x1bd)]+=0x1);});let _0x39bb51=_e(_0x414cf5,{..._0x1a8ea0,'endIndex':_0x45fcd5});_0x39bb51[_0x50aa72(0x1e2)]((_0x57dc22,_0x30959e)=>{const _0x35497c=_0x50aa72;var _0x1005ac;_0x57dc22['paragraphStyle']={...(_0x1005ac=_0x57dc22[_0x35497c(0x22c)])==null?{}:_0x1005ac,...E(_0x30959e===0x0,_0x30959e===_0x39bb51[_0x35497c(0x1dd)]-0x1)};});let _0xeeca1e=(_0x357c42=_0x414cf5[_0x50aa72(0x1ba)])==null?void 0x0:_0x357c42[_0x50aa72(0x23a)](_0x10901d=>_0x10901d[_0x50aa72(0x1f0)]===_0x45fcd5+0x1);return _0xeeca1e&&(_0xeeca1e['paragraphStyle']=ge(_0xeeca1e[_0x50aa72(0x22c)])),{'nextDocumentData':_0x2d332a,'cursorOffset':_0x45fcd5+0x1};}function ue(_0x4943b5){const _0x211f64=_0x4a8a2d;let _0xb19ded=D(_0x4943b5[_0x211f64(0x21a)]),_0x35cf1b=O(_0xb19ded),_0x525eeb=me(_0x35cf1b,_0x4943b5['cursorOffset']);return _0x525eeb&&de(_0xb19ded,_0x35cf1b,_0x525eeb,_0x4943b5[_0x211f64(0x1f6)],_0x4943b5[_0x211f64(0x1e1)])||null;}function de(_0x15ca94,_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f){const _0x46d349=_0x4a8a2d;let _0x288034=we(_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f);if(!_0x288034)return null;let _0x207bd1=_0x288034[_0x46d349(0x1d3)]-0x1;return Te(_0x30a6c0,_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)],_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)]+0x1),{'nextDocumentData':_0x15ca94,'cursorOffset':_0x207bd1};}function fe(_0x25af29,_0x1a0d81){const _0x414408=_0x4a8a2d;var _0x189422;return _0x25af29==null||(_0x189422=_0x25af29[_0x414408(0x1c1)])==null?void 0x0:_0x189422[_0x414408(0x23a)](_0x1fd816=>_0x1fd816[_0x414408(0x1f4)]===_0x54e1d3[_0x414408(0x200)]&&_0x1fd816[_0x414408(0x1f0)]<=_0x1a0d81&&_0x1a0d81<=_0x1fd816[_0x414408(0x1bd)]);}function pe(_0x2b27b0){const _0x2b45b7=_0x4a8a2d;var _0x188ec0;let _0xc4f97d=_0x2b27b0['documentData'][_0x2b45b7(0x22f)];if(!_0xc4f97d)return!0x1;let _0x3ac209=_0x2b27b0['direction']===_0x2b45b7(0x1eb)?_0x2b27b0[_0x2b45b7(0x1f6)]-0x1:_0x2b27b0['cursorOffset'],_0x6406aa=_0x2b27b0[_0x2b45b7(0x1c5)]===_0x2b45b7(0x22a)?_0x2b27b0[_0x2b45b7(0x1f6)]+0x1:_0x3ac209;return((_0x188ec0=_0xc4f97d[_0x2b45b7(0x1c1)])==null?[]:_0x188ec0)[_0x2b45b7(0x236)](_0x12d4ad=>_0x12d4ad[_0x2b45b7(0x1f4)]===_0x54e1d3[_0x2b45b7(0x200)]?_0x3ac209===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x3ac209===_0x12d4ad[_0x2b45b7(0x1bd)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1bd)]:!0x1);}function me(_0x13fc4e,_0x5a78e7){const _0x5f297a=_0x4a8a2d;var _0x3395f0;return(_0x3395f0=_0x13fc4e[_0x5f297a(0x1c1)])==null?void 0x0:_0x3395f0['find'](_0x5a8b18=>{const _0x13c31d=_0x5f297a;let _0x38c79f=j(_0x13fc4e,_0x5a8b18);return _0x5a8b18['blockType']===_0x54e1d3[_0x13c31d(0x200)]&&_0x5a8b18['startIndex']<=_0x5a78e7&&_0x5a78e7<=_0x38c79f+0x2;});}function E(_0x17e584,_0x241c84,_0x51e922=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x17e584&&_0x51e922?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56028c,_0x34f293,_0x19ed8c,_0x36d47a=!0x1){const _0x506ac7=_0x4a8a2d;var _0x166610;let _0x401af5=((_0x166610=_0x56028c[_0x506ac7(0x1ba)])==null?[]:_0x166610)[_0x506ac7(0x233)](_0x5c7d6c=>_0x5c7d6c[_0x506ac7(0x1f0)]>_0x34f293&&_0x5c7d6c[_0x506ac7(0x1f0)]<_0x19ed8c);_0x401af5[_0x506ac7(0x1e2)]((_0xa56718,_0x263a05)=>{const _0x67f467=_0x506ac7;var _0x24e661;_0xa56718[_0x67f467(0x22c)]={...(_0x24e661=_0xa56718[_0x67f467(0x22c)])==null?{}:_0x24e661,...E(_0x263a05===0x0,_0x263a05===_0x401af5[_0x67f467(0x1dd)]-0x1,_0x36d47a)};});}function ge(_0x1d5cf3){const _0xbd2508=_0x4a8a2d;var _0x1d1447,_0x4e09f6;let _0x2a8721={..._0x1d5cf3==null?{}:_0x1d5cf3};return delete _0x2a8721[_0xbd2508(0x20c)],delete _0x2a8721['indentStart'],delete _0x2a8721[_0xbd2508(0x217)],delete _0x2a8721[_0xbd2508(0x1ca)],((_0x1d1447=_0x2a8721[_0xbd2508(0x1e5)])==null?void 0x0:_0x1d1447['ff'])===ie&&((_0x4e09f6=_0x2a8721['textStyle'])==null?void 0x0:_0x4e09f6['fs'])===0xc&&delete _0x2a8721[_0xbd2508(0x1e5)],_0x2a8721;}function _e(_0x268343,_0x4e7bc4){const _0x218459=_0x4a8a2d;var _0x2c1244;let _0x556d85=j(_0x268343,_0x4e7bc4);return((_0x2c1244=_0x268343[_0x218459(0x1ba)])==null?[]:_0x2c1244)[_0x218459(0x233)](_0x5822ff=>_0x5822ff[_0x218459(0x1f0)]>_0x4e7bc4[_0x218459(0x1f0)]&&_0x5822ff['startIndex']<_0x556d85);}function _0x28c9(_0x1e6757,_0x175dbf){_0x1e6757=_0x1e6757-0x1b6;const _0x58a183=_0x58a1();let _0x28c9d9=_0x58a183[_0x1e6757];return _0x28c9d9;}function ve(_0x76282b,_0x5ef0eb,_0x5ed3f2){const _0x254cec=_0x4a8a2d;let _0x2afe1d=A(_0x76282b,_0x5ef0eb,_0x5ed3f2),_0x5c9d23=_0x76282b[_0x254cec(0x23c)][_0x254cec(0x1f5)](_0x2afe1d,_0x5ed3f2[_0x254cec(0x1f0)]);return Array[_0x254cec(0x214)](_0x5c9d23)[_0x254cec(0x1bf)](_0x339f88=>_0x339f88===_0x3ba019[_0x254cec(0x234)]||_0x339f88===_0x3ba019[_0x254cec(0x1e7)]);}function D(_0x156523){const _0x4521c6=_0x4a8a2d;return _0xb48f1[_0x4521c6(0x1d2)](_0x156523);}function O(_0x1bf3c9){const _0x17ba9a=_0x4a8a2d;if(!_0x1bf3c9[_0x17ba9a(0x22f)])throw Error(_0x17ba9a(0x224));return _0x1bf3c9['body'];}function ye(_0x4bf66a,_0x108f21,_0x262c76){const _0x3d4f6c=_0x4a8a2d;if(_0x108f21==null||_0x262c76==null){let _0x2dee3f=xe(_0x4bf66a);return{'startOffset':_0x2dee3f,'endOffset':_0x2dee3f};}let _0x37d761=Math[_0x3d4f6c(0x235)](_0x108f21,_0x262c76),_0x442582=Math['max'](_0x108f21,_0x262c76);if(_0x37d761===_0x442582){let _0x5f373a=be(_0x4bf66a,_0x37d761);return{'startOffset':_0x5f373a,'endOffset':_0x5f373a};}return Ce(_0x4bf66a,_0x37d761,_0x442582);}function be(_0x4cd764,_0x276e03){const _0x5ec11e=_0x4a8a2d;return _0x276e03===0x0&&_0x4cd764[_0x5ec11e(0x23c)][0x0]===_0x3ba019[_0x5ec11e(0x225)]?0x1:_0x276e03;}function xe(_0x5539f0){const _0x449468=_0x4a8a2d;return _0x5539f0[_0x449468(0x23c)][_0x449468(0x21f)](_0x3ba019['SECTION_BREAK'])?Math[_0x449468(0x1e6)](0x0,_0x5539f0[_0x449468(0x23c)][_0x449468(0x1dd)]-0x1):_0x5539f0['dataStream'][_0x449468(0x1dd)];}function Se(_0x423855,_0x463210,_0x3896b8){const _0x1b3077=_0x4a8a2d;var _0x2e80e0;let _0x4e426e=Math[_0x1b3077(0x235)](_0x463210,_0x3896b8),_0x2fc2d5=Math[_0x1b3077(0x1e6)](_0x463210,_0x3896b8);return!!((_0x2e80e0=_0x423855[_0x1b3077(0x1ee)])!=null&&_0x2e80e0['some'](_0x2804c0=>_0x4e426e>_0x2804c0[_0x1b3077(0x1f0)]&&_0x4e426e<_0x2804c0[_0x1b3077(0x1bd)]||_0x2fc2d5>_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5<_0x2804c0[_0x1b3077(0x1bd)]||_0x4e426e<=_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5>=_0x2804c0[_0x1b3077(0x1bd)]));}function Ce(_0x4cc54b,_0x268161,_0x4880cb){const _0xc2e62c=_0x4a8a2d;var _0x4b1804,_0x157733;let _0x4e865c=[...(_0x4b1804=_0x4cc54b[_0xc2e62c(0x1ba)])==null?[]:_0x4b1804][_0xc2e62c(0x239)]((_0xb1769b,_0x5753db)=>_0xb1769b[_0xc2e62c(0x1f0)]-_0x5753db[_0xc2e62c(0x1f0)]),_0x3d4eff=_0x4e865c['find']((_0x5c92cd,_0x29a26e)=>(_0x29a26e===0x0?0x0:_0x4e865c[_0x29a26e-0x1][_0xc2e62c(0x1f0)]+0x1)<=_0x268161&&_0x268161<=_0x5c92cd['startIndex']),_0x1ed691=(_0x157733=_0x4e865c[_0xc2e62c(0x23a)](_0x211e54=>_0x211e54[_0xc2e62c(0x1f0)]>=_0x4880cb-0x1))==null?_0x4e865c[_0x4e865c[_0xc2e62c(0x1dd)]-0x1]:_0x157733;return{'startOffset':_0x3d4eff?k(_0x4e865c,_0x3d4eff):_0x268161,'endOffset':_0x1ed691?_0x1ed691['startIndex']+0x1:_0x4880cb};}function k(_0x157ccd,_0x170084){const _0x34c4ed=_0x4a8a2d;let _0x393940=_0x157ccd[_0x34c4ed(0x240)](_0x170084);return _0x393940>0x0?_0x157ccd[_0x393940-0x1]['startIndex']+0x1:0x0;}function A(_0x658122,_0x58c33d,_0x451dfa){const _0xe8904b=_0x4a8a2d;var _0x8e9a25;return Math[_0xe8904b(0x1e6)](k((_0x8e9a25=_0x658122['paragraphs'])==null?[]:_0x8e9a25,_0x451dfa),_0x58c33d[_0xe8904b(0x1f0)]+0x1);}function j(_0x54b102,_0x5a480f){const _0x8d5fec=_0x4a8a2d;return _0x54b102[_0x8d5fec(0x23c)][_0x5a480f[_0x8d5fec(0x1bd)]]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]:_0x54b102[_0x8d5fec(0x23c)][_0x5a480f['endIndex']+0x1]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]+0x1:_0x5a480f[_0x8d5fec(0x1bd)];}function we(_0x1734d9,_0x450943,_0x2df09c,_0x498a00){const _0x20b679=_0x4a8a2d;var _0x48b7c9,_0x4a2a5d;let _0x12fe04=j(_0x1734d9,_0x450943),_0x41149c=((_0x48b7c9=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x48b7c9)[_0x20b679(0x23a)](_0x41061b=>_0x41061b[_0x20b679(0x1f0)]===_0x12fe04+0x1);if(!_0x41149c||_0x498a00!=null&&_0x41149c[_0x20b679(0x1f0)]!==_0x498a00||_0x2df09c<_0x12fe04||_0x2df09c>_0x41149c[_0x20b679(0x1f0)]+0x1||_0x1734d9[_0x20b679(0x23c)][_0x41149c['startIndex']]!==_0x3ba019[_0x20b679(0x225)])return null;let _0x1eca3f=k((_0x4a2a5d=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x4a2a5d,_0x41149c),_0x454819=_0x1734d9['dataStream']['slice'](_0x1eca3f,_0x41149c[_0x20b679(0x1f0)]);return Array[_0x20b679(0x214)](_0x454819)[_0x20b679(0x1bf)](_0x37a77b=>_0x37a77b===_0x3ba019[_0x20b679(0x1e7)])?{'paragraph':_0x41149c,'endTokenOffset':_0x12fe04}:null;}function M(_0x5d7221,_0x2a40b1){const _0x3b0637=_0x4a8a2d;var _0x517a07;let _0x2c4705=j(_0x5d7221,_0x2a40b1),_0x4a4b84=_0x5d7221[_0x3b0637(0x23c)][_0x2c4705+0x1];_0x4a4b84!==_0x3ba019[_0x3b0637(0x229)]&&_0x4a4b84!==void 0x0||N(_0x5d7221,_0x2c4705+0x1,_0x3ba019[_0x3b0637(0x225)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34e429(new Set((_0x517a07=_0x5d7221[_0x3b0637(0x1ba)])==null?void 0x0:_0x517a07[_0x3b0637(0x1c6)](_0x3cb5a9=>_0x3cb5a9[_0x3b0637(0x20e)])))}]});}function N(_0xa0396,_0x5e4e9d,_0x5b6d4b,_0x3bb9ec={}){const _0x59ca28=_0x4a8a2d;var _0x1b15f9,_0x4545c4;if(_0x5b6d4b){if(_0xa0396[_0x59ca28(0x23c)]=''+_0xa0396[_0x59ca28(0x23c)]['slice'](0x0,_0x5e4e9d)+_0x5b6d4b+_0xa0396['dataStream'][_0x59ca28(0x1f5)](_0x5e4e9d),Ee(_0xa0396,_0x5e4e9d,_0x5b6d4b[_0x59ca28(0x1dd)]),(_0x1b15f9=_0x3bb9ec[_0x59ca28(0x1ba)])!=null&&_0x1b15f9[_0x59ca28(0x1dd)]){var _0x8d59fb;_0xa0396[_0x59ca28(0x1ba)]=[...(_0x8d59fb=_0xa0396[_0x59ca28(0x1ba)])==null?[]:_0x8d59fb,..._0x3bb9ec[_0x59ca28(0x1ba)][_0x59ca28(0x1c6)](_0x1ffea9=>({..._0x1ffea9,'startIndex':_0x1ffea9['startIndex']+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x545a50,_0x41062d)=>_0x545a50[_0x59ca28(0x1f0)]-_0x41062d[_0x59ca28(0x1f0)]);}if((_0x4545c4=_0x3bb9ec[_0x59ca28(0x1c1)])!=null&&_0x4545c4[_0x59ca28(0x1dd)]){var _0x172fc1;_0xa0396['blockRanges']=[...(_0x172fc1=_0xa0396['blockRanges'])==null?[]:_0x172fc1,..._0x3bb9ec['blockRanges'][_0x59ca28(0x1c6)](_0x19853b=>({..._0x19853b,'startIndex':_0x19853b[_0x59ca28(0x1f0)]+_0x5e4e9d,'endIndex':_0x19853b[_0x59ca28(0x1bd)]+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x2c1261,_0x53f498)=>_0x2c1261['startIndex']-_0x53f498[_0x59ca28(0x1f0)]);}}}function Te(_0x2259ad,_0x121220,_0x434c54){const _0x3ad431=_0x4a8a2d;let _0x14ae8e=_0x434c54-_0x121220;_0x2259ad[_0x3ad431(0x23c)]=''+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](0x0,_0x121220)+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](_0x434c54),De(_0x2259ad,_0x121220,_0x14ae8e);}function Ee(_0x43e9e3,_0x20a3ac,_0x26447c){const _0x1c8892=_0x4a8a2d;_0x43e9e3[_0x1c8892(0x1ba)]=P(_0x43e9e3[_0x1c8892(0x1ba)],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x207)]=P(_0x43e9e3['sectionBreaks'],_0x20a3ac,_0x26447c),_0x43e9e3['customBlocks']=P(_0x43e9e3['customBlocks'],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x206)]=Oe(_0x43e9e3[_0x1c8892(0x206)],_0x20a3ac,_0x26447c),_0x43e9e3['tables']=I(_0x43e9e3[_0x1c8892(0x1ee)],_0x20a3ac,_0x26447c),_0x43e9e3['customRanges']=I(_0x43e9e3[_0x1c8892(0x1d8)],_0x20a3ac,_0x26447c),_0x43e9e3['customDecorations']=I(_0x43e9e3[_0x1c8892(0x238)],_0x20a3ac,_0x26447c),_0x43e9e3['blockRanges']=I(_0x43e9e3['blockRanges'],_0x20a3ac,_0x26447c);}function De(_0x4d91c1,_0x384706,_0x3ecd85){const _0x28ae70=_0x4a8a2d;var _0x702ce5,_0x5b34b0;_0x4d91c1[_0x28ae70(0x1ba)]=F(_0x4d91c1['paragraphs'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x207)]=F(_0x4d91c1[_0x28ae70(0x207)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1cf)]=F(_0x4d91c1[_0x28ae70(0x1cf)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x206)]=(_0x702ce5=L((_0x5b34b0=_0x4d91c1['textRuns'])==null?void 0x0:_0x5b34b0[_0x28ae70(0x1c6)](_0x1eab75=>({..._0x1eab75,'startIndex':_0x1eab75['st'],'endIndex':_0x1eab75['ed']})),_0x384706,_0x3ecd85))==null?void 0x0:_0x702ce5[_0x28ae70(0x1c6)](_0x2fea58=>{let {startIndex:_0x444451,endIndex:_0x560dd9,..._0x3146b5}=_0x2fea58;return{..._0x3146b5,'st':_0x444451,'ed':_0x560dd9};}),_0x4d91c1[_0x28ae70(0x1ee)]=L(_0x4d91c1[_0x28ae70(0x1ee)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1d8)]=L(_0x4d91c1['customRanges'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x238)]=L(_0x4d91c1[_0x28ae70(0x238)],_0x384706,_0x3ecd85),_0x4d91c1['blockRanges']=L(_0x4d91c1[_0x28ae70(0x1c1)],_0x384706,_0x3ecd85);}function P(_0x16c736,_0x4b4b4f,_0x192f08){const _0x2688de=_0x4a8a2d;return _0x16c736==null?void 0x0:_0x16c736[_0x2688de(0x1c6)](_0x5a1173=>_0x5a1173[_0x2688de(0x1f0)]>=_0x4b4b4f?{..._0x5a1173,'startIndex':_0x5a1173['startIndex']+_0x192f08}:_0x5a1173);}function F(_0x2912ba,_0x46d1f3,_0x424aee){const _0x44c81d=_0x4a8a2d;let _0x5b7f66=_0x46d1f3+_0x424aee;return _0x2912ba==null?void 0x0:_0x2912ba[_0x44c81d(0x1c6)](_0x52dc9e=>_0x52dc9e[_0x44c81d(0x1f0)]>=_0x46d1f3&&_0x52dc9e['startIndex']<_0x5b7f66?null:_0x52dc9e[_0x44c81d(0x1f0)]>=_0x5b7f66?{..._0x52dc9e,'startIndex':_0x52dc9e['startIndex']-_0x424aee}:_0x52dc9e)['filter'](_0x415221=>_0x415221!=null);}function Oe(_0x32df01,_0x537bf2,_0x8b8d1d){const _0x5ba742=_0x4a8a2d;return _0x32df01==null?void 0x0:_0x32df01[_0x5ba742(0x1c6)](_0x273a88=>_0x273a88['st']>=_0x537bf2?{..._0x273a88,'st':_0x273a88['st']+_0x8b8d1d,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88['ed']>_0x537bf2?{..._0x273a88,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88);}function I(_0x9b9d4a,_0x2a7633,_0x26d93f){const _0x427625=_0x4a8a2d;return _0x9b9d4a==null?void 0x0:_0x9b9d4a[_0x427625(0x1c6)](_0x3389d8=>_0x3389d8[_0x427625(0x1f0)]>=_0x2a7633?{..._0x3389d8,'startIndex':_0x3389d8[_0x427625(0x1f0)]+_0x26d93f,'endIndex':_0x3389d8[_0x427625(0x1bd)]+_0x26d93f}:_0x3389d8['endIndex']>=_0x2a7633?{..._0x3389d8,'endIndex':_0x3389d8['endIndex']+_0x26d93f}:_0x3389d8);}function L(_0x45d6fa,_0x377e73,_0x3d5f6b){const _0x2ff15a=_0x4a8a2d;let _0xfa2d64=_0x377e73+_0x3d5f6b;return _0x45d6fa==null?void 0x0:_0x45d6fa['map'](_0x1fc5ec=>_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0x377e73&&_0x1fc5ec[_0x2ff15a(0x1bd)]<_0xfa2d64?null:_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0xfa2d64?{..._0x1fc5ec,'startIndex':_0x1fc5ec[_0x2ff15a(0x1f0)]-_0x3d5f6b,'endIndex':_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b}:_0x1fc5ec[_0x2ff15a(0x1bd)]>=_0x377e73?{..._0x1fc5ec,'startIndex':_0x1fc5ec['startIndex']<_0x377e73?_0x1fc5ec['startIndex']:_0x377e73,'endIndex':Math[_0x2ff15a(0x1e6)](_0x377e73,_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b)}:_0x1fc5ec)[_0x2ff15a(0x233)](_0x3ef21a=>_0x3ef21a!=null);}function R(_0x2cc2fc,_0x576234,_0x24ca3d,_0x3f855e){_0x2cc2fc==null||_0x2cc2fc['forEach'](_0x1afc45=>{const _0x20e3aa=_0x28c9;_0x1afc45['startIndex']>=_0x576234&&_0x1afc45[_0x20e3aa(0x1f0)]<_0x24ca3d&&(_0x1afc45['startIndex']+=_0x3f855e);});}function ke(_0x15bea0,_0x17e830,_0x34f1e9,_0x2ec254){const _0x21e132=_0x4a8a2d;_0x15bea0==null||_0x15bea0[_0x21e132(0x1e2)](_0x2fce1=>{_0x2fce1['st']>=_0x17e830&&_0x2fce1['st']<_0x34f1e9?(_0x2fce1['st']+=_0x2ec254,_0x2fce1['ed']+=_0x2ec254):_0x2fce1['ed']>_0x17e830&&_0x2fce1['ed']<_0x34f1e9&&(_0x2fce1['ed']+=_0x2ec254);});}function z(_0x5223e9,_0x379138,_0x114465,_0x48f290){const _0x324870=_0x4a8a2d;_0x5223e9==null||_0x5223e9[_0x324870(0x1e2)](_0x1df7b6=>{const _0x4bd01a=_0x324870;_0x1df7b6[_0x4bd01a(0x1f0)]>=_0x379138&&_0x1df7b6[_0x4bd01a(0x1f0)]<_0x114465?(_0x1df7b6['startIndex']+=_0x48f290,_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290):_0x1df7b6[_0x4bd01a(0x1bd)]>_0x379138&&_0x1df7b6[_0x4bd01a(0x1bd)]<_0x114465&&(_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290);});}function B(_0x2fd0e3){'@babel/helpers - typeof';const _0x21d23d=_0x4a8a2d;return B=typeof Symbol==_0x21d23d(0x1ed)&&typeof Symbol[_0x21d23d(0x1d6)]==_0x21d23d(0x1da)?function(_0x1121ff){return typeof _0x1121ff;}:function(_0x2808c1){const _0x148d96=_0x21d23d;return _0x2808c1&&typeof Symbol==_0x148d96(0x1ed)&&_0x2808c1['constructor']===Symbol&&_0x2808c1!==Symbol[_0x148d96(0x1be)]?_0x148d96(0x1da):typeof _0x2808c1;},B(_0x2fd0e3);}function Ae(_0x115f91,_0x302b6e){const _0x4b03d7=_0x4a8a2d;if(B(_0x115f91)!=_0x4b03d7(0x1d5)||!_0x115f91)return _0x115f91;var _0x3817bf=_0x115f91[Symbol[_0x4b03d7(0x1ea)]];if(_0x3817bf!==void 0x0){var _0x525c6a=_0x3817bf[_0x4b03d7(0x1c8)](_0x115f91,_0x302b6e||_0x4b03d7(0x20b));if(B(_0x525c6a)!=_0x4b03d7(0x1d5))return _0x525c6a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x302b6e===_0x4b03d7(0x1d1)?String:Number)(_0x115f91);}function je(_0x562264){const _0x12b482=_0x4a8a2d;var _0x59f815=Ae(_0x562264,_0x12b482(0x1d1));return B(_0x59f815)==_0x12b482(0x1da)?_0x59f815:_0x59f815+'';}function V(_0x4ebb82,_0x29783a,_0x4cb423){const _0x464628=_0x4a8a2d;return(_0x29783a=je(_0x29783a))in _0x4ebb82?Object[_0x464628(0x1c7)](_0x4ebb82,_0x29783a,{'value':_0x4cb423,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebb82[_0x29783a]=_0x4cb423,_0x4ebb82;}function _0x58a1(){const _0x37f8b9=['docs-code.command.insert-below','delete','complete','indexOf','_change$','5jqMxib','_setResource','deserialize','568DROgGU','paragraphs','COMMAND','metadata','endIndex','prototype','every','clear','blockRanges','previousDocumentData','getCurrentUnitOfType','onStarting','direction','map','defineProperty','call','paragraph','spaceBelow','codes','add','_configService','298dROuVY','customBlocks','11fodUEz','string','deepClone','endTokenOffset','range','object','iterator','UNIVER_DOC','customRanges','3587CfVInx','symbol','compose','change$','length','_resourceManagerService','getUniverDocInstance','dispose','paragraphStartIndex','forEach','unitId','blockId','textStyle','max','BLOCK_END','7708764WElStu','parse','toPrimitive','left','disposeWithMe','function','tables','nextMetadata','startIndex','removeCode','javascript','decorate','blockType','slice','cursorOffset','get','monospace','version','docs-code.config','syncExecuteCommand','_commandService','nextDocumentData','model','1.0.0-alpha.1','CODE','docs-code.command.update','pluginName','6jDpmHI','consumeInsertRange','_docsCodeModel','textRuns','sectionBreaks','166872RqxqjD','6398PYBhkJ','startOffset','default','indentEnd','_config','paragraphId','setCodeConfig','_resources','config','docs-code.command.exit','getBody','from','getSnapshot','serialize','spaceAbove','@univerjs-pro/docs-code','removeUnit','documentData','3285870weuPcy','docs-code.command.insert','docs-code.command.cancel-empty-paragraph','DOC_CODE_PLUGIN','endsWith','replaceOp','getCodeConfig','registerPluginResource','set','Document\x20body\x20is\x20required','PARAGRAPH','commandService','endOffset','getParagraphsInRange','SECTION_BREAK','right','stringify','paragraphStyle','4385586ZIZPEr','getTextRanges','body','next','3667734fUoyDX','registerCommand','filter','BLOCK_START','min','some','_injector','customDecorations','sort','find','type','dataStream'];_0x58a1=function(){return _0x37f8b9;};return _0x58a1();}var H=class extends _0x3e8f03{constructor(..._0x202d30){const _0x8ee9e0=_0x4a8a2d;super(..._0x202d30),V(this,_0x8ee9e0(0x210),new Map()),V(this,'_change$',new _0x363e20()),V(this,_0x8ee9e0(0x1dc),this[_0x8ee9e0(0x241)]['asObservable']());}[_0x4a8a2d(0x221)](_0x197643,_0x58a620){const _0x27ca2e=_0x4a8a2d;return w(this[_0x27ca2e(0x210)][_0x27ca2e(0x1f7)](_0x197643))[_0x27ca2e(0x1cb)][_0x58a620];}[_0x4a8a2d(0x20f)](_0x4853b5,_0x5aaa34,_0x26ee93){const _0x449b87=_0x4a8a2d;this['_setResource'](_0x4853b5,_0x5aaa34,T(this[_0x449b87(0x210)][_0x449b87(0x1f7)](_0x4853b5),_0x5aaa34,_0x26ee93));}[_0x4a8a2d(0x1f1)](_0xf6e12d,_0x3861a5){const _0x34b295=_0x4a8a2d;this['_setResource'](_0xf6e12d,_0x3861a5,re(this[_0x34b295(0x210)][_0x34b295(0x1f7)](_0xf6e12d),_0x3861a5));}[_0x4a8a2d(0x216)](_0x388db7){const _0x5bfda3=_0x4a8a2d;return w(this[_0x5bfda3(0x210)]['get'](_0x388db7));}[_0x4a8a2d(0x1b8)](_0xe49eb4,_0x7cea61){const _0x24eff5=_0x4a8a2d;this[_0x24eff5(0x210)][_0x24eff5(0x223)](_0xe49eb4,w(_0x7cea61)),this[_0x24eff5(0x241)][_0x24eff5(0x230)]({'unitId':_0xe49eb4});}[_0x4a8a2d(0x219)](_0x102cca){const _0x439e75=_0x4a8a2d;this[_0x439e75(0x210)][_0x439e75(0x23e)](_0x102cca),this[_0x439e75(0x241)][_0x439e75(0x230)]({'unitId':_0x102cca});}[_0x4a8a2d(0x1e0)](){const _0x478bdc=_0x4a8a2d;super[_0x478bdc(0x1e0)](),this[_0x478bdc(0x210)][_0x478bdc(0x1c0)](),this[_0x478bdc(0x241)][_0x478bdc(0x23f)]();}[_0x4a8a2d(0x1b7)](_0x1838bc,_0x1d97c0,_0x1fad4f){const _0x3891a1=_0x4a8a2d;this['_resources'][_0x3891a1(0x223)](_0x1838bc,_0x1fad4f),this[_0x3891a1(0x241)][_0x3891a1(0x230)]({'unitId':_0x1838bc,'blockId':_0x1d97c0});}};const Me={'id':_0x4a8a2d(0x23d),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':_0x525534=>{const _0x3d5255=_0x4a8a2d;let _0x2442b9=Le(_0x525534);if(_0x2442b9)return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x2442b9[_0x3d5255(0x20a)],'endOffset':_0x2442b9[_0x3d5255(0x227)],'unitId':_0x2442b9[_0x3d5255(0x1e3)]});let _0x40b8a6=Re(_0x525534);if(!_0x40b8a6)return!0x1;let _0x630a60=_0x40b8a6[_0x3d5255(0x1f0)]+0x1;return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x630a60,'endOffset':_0x630a60});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x20b98a['COMMAND'],'handler':()=>!0x0},U={'id':_0x4a8a2d(0x21c),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x34e2fe,_0x11462e)=>{const _0x2f3080=_0x4a8a2d;var _0x55fe22,_0x46f79f,_0x5e0193;let _0x5b75bf=W(_0x34e2fe,_0x11462e==null?void 0x0:_0x11462e['unitId']);if(!_0x5b75bf)return!0x1;let _0x8f5b5d=G(_0x34e2fe),_0x3c869f=ae({'blockId':(_0x55fe22=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x1e4)])==null?_0x97c26f(0x6):_0x55fe22,'config':_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x211)],'documentData':_0x5b75bf[_0x2f3080(0x1c2)],'endOffset':(_0x46f79f=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x227)])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x227)]:_0x46f79f,'metadata':_0x5b75bf['model'][_0x2f3080(0x216)](_0x5b75bf[_0x2f3080(0x1e3)]),'startOffset':(_0x5e0193=_0x11462e==null?void 0x0:_0x11462e['startOffset'])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x20a)]:_0x5e0193}),_0x25363b=q(_0x5b75bf[_0x2f3080(0x226)],_0x5b75bf[_0x2f3080(0x1e3)],_0x5b75bf[_0x2f3080(0x1c2)],_0x3c869f[_0x2f3080(0x1fd)],_0x3c869f[_0x2f3080(0x1f6)]);return _0x25363b&&_0x3c869f[_0x2f3080(0x1ef)]&&_0x5b75bf[_0x2f3080(0x1fe)][_0x2f3080(0x1b8)](_0x5b75bf[_0x2f3080(0x1e3)],_0x3c869f['nextMetadata']),_0x25363b;}},Pe={'id':_0x4a8a2d(0x201),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x596b59,_0x2a5246)=>{const _0x2dad1b=_0x4a8a2d;if(!_0x2a5246)return!0x1;let _0x447ca0=W(_0x596b59,_0x2a5246[_0x2dad1b(0x1e3)]);if(!_0x447ca0)return!0x1;let _0x1ec4e5=ce({'blockId':_0x2a5246[_0x2dad1b(0x1e4)],'config':_0x2a5246['config'],'documentData':_0x447ca0[_0x2dad1b(0x1c2)],'metadata':_0x447ca0[_0x2dad1b(0x1fe)][_0x2dad1b(0x216)](_0x447ca0['unitId'])});return _0x1ec4e5[_0x2dad1b(0x1ef)]&&_0x447ca0['model'][_0x2dad1b(0x1b8)](_0x447ca0['unitId'],_0x1ec4e5[_0x2dad1b(0x1ef)]),!0x0;}},Fe={'id':_0x4a8a2d(0x212),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x510efd,_0xbfa146)=>{const _0x594323=_0x4a8a2d;var _0x4b464b,_0x4ad761;let _0x48a69b=W(_0x510efd,_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1e3)]);if(!_0x48a69b)return!0x1;let _0x3dacad=(_0x4b464b=_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1f6)])==null?(_0x4ad761=G(_0x510efd))==null?void 0x0:_0x4ad761[_0x594323(0x20a)]:_0x4b464b;if(_0x3dacad==null)return!0x1;let _0x1067fe=le({'cursorOffset':_0x3dacad,'documentData':_0x48a69b['previousDocumentData']});return _0x1067fe?q(_0x48a69b[_0x594323(0x226)],_0x48a69b[_0x594323(0x1e3)],_0x48a69b[_0x594323(0x1c2)],_0x1067fe[_0x594323(0x1fd)],_0x1067fe[_0x594323(0x1f6)]):!0x1;}},Ie={'id':_0x4a8a2d(0x21d),'type':_0x20b98a['COMMAND'],'handler':(_0x561e74,_0x45fa69)=>{const _0x4da7e9=_0x4a8a2d;var _0x599ff8,_0x542500;let _0x5727a7=W(_0x561e74,_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1e3)]);if(!_0x5727a7)return!0x1;let _0xd602b7=(_0x599ff8=_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1f6)])==null?(_0x542500=G(_0x561e74))==null?void 0x0:_0x542500['startOffset']:_0x599ff8;if(_0xd602b7==null)return!0x1;let _0x2c0745=ue({'cursorOffset':_0xd602b7,'documentData':_0x5727a7['previousDocumentData'],'paragraphStartIndex':_0x45fa69==null?void 0x0:_0x45fa69['paragraphStartIndex']});return _0x2c0745?q(_0x5727a7[_0x4da7e9(0x226)],_0x5727a7[_0x4da7e9(0x1e3)],_0x5727a7[_0x4da7e9(0x1c2)],_0x2c0745['nextDocumentData'],_0x2c0745[_0x4da7e9(0x1f6)]):!0x1;}};function W(_0x482f3b,_0x9a475b){const _0x58afea=_0x4a8a2d;let _0x4faac0=_0x482f3b['get'](_0x3abeac),_0xaaf406=_0x9a475b?_0x4faac0[_0x58afea(0x1df)](_0x9a475b):_0x4faac0[_0x58afea(0x1c3)](_0x2bb6f5[_0x58afea(0x1d7)]);return _0xaaf406?{'commandService':_0x482f3b['get'](_0x3735ed),'model':_0x482f3b['get'](H),'previousDocumentData':_0xaaf406[_0x58afea(0x215)](),'unitId':_0xaaf406['getUnitId']()}:null;}function G(_0x48d8e5){const _0x7c73c4=_0x4a8a2d;var _0x1f4ac0;return(_0x1f4ac0=_0x48d8e5[_0x7c73c4(0x1f7)](_0x291a89)[_0x7c73c4(0x22e)]())==null?void 0x0:_0x1f4ac0[0x0];}function Le(_0x50f484){const _0x335578=_0x4a8a2d;var _0x4d0fb4;let _0x5c46dc=(_0x4d0fb4=_0x50f484[_0x335578(0x1f7)](_0x3abeac)[_0x335578(0x1c3)](_0x2bb6f5[_0x335578(0x1d7)]))==null?void 0x0:_0x4d0fb4['getUnitId']();try{return _0x50f484['get'](_0x2040aa)[_0x335578(0x204)](_0x5c46dc);}catch{return null;}}function Re(_0xc8d4b2){const _0x459600=_0x4a8a2d;var _0x66885,_0x360e57,_0x1eb2a3;let _0x5323c3=G(_0xc8d4b2);if(!_0x5323c3)return null;let _0x1ddf43=_0xc8d4b2[_0x459600(0x1f7)](_0x3abeac)['getCurrentUnitOfType'](_0x2bb6f5[_0x459600(0x1d7)]),_0x5dc10f=_0x1ddf43==null?void 0x0:_0x1ddf43[_0x459600(0x213)]();return _0x5dc10f?(_0x66885=_0x24fe28[_0x459600(0x1d4)][_0x459600(0x228)](_0x5323c3,(_0x360e57=_0x5dc10f['paragraphs'])==null?[]:_0x360e57,(_0x1eb2a3=_0x5dc10f[_0x459600(0x23c)])==null?'':_0x1eb2a3)[0x0])==null?null:_0x66885:null;}function ze(_0x48f164,_0x5d6c01){const _0x2758ca=_0x4a8a2d;var _0x93d0eb,_0x24ac7b,_0x5bd531,_0xe97b8e,_0x1a541c,_0x428a1d,_0x206213,_0x371f1f,_0x104ccd,_0x3d1e1a,_0x2a8cfb,_0x3c555b,_0x19f2e1,_0x23c305,_0x3c760e,_0x399b81,_0xfc1a60,_0x147f97;let _0x59a6ac=_0x2387fb['getInstance']();return[K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x23c)],(_0x93d0eb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x93d0eb['dataStream'],(_0x24ac7b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x24ac7b['dataStream']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1ba)],(_0x5bd531=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x5bd531[_0x2758ca(0x1ba)],(_0xe97b8e=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0xe97b8e[_0x2758ca(0x1ba)]),K(_0x59a6ac,[_0x2758ca(0x22f),'sectionBreaks'],(_0x1a541c=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x1a541c[_0x2758ca(0x207)],(_0x428a1d=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x428a1d[_0x2758ca(0x207)]),K(_0x59a6ac,['body','textRuns'],(_0x206213=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x206213[_0x2758ca(0x206)],(_0x371f1f=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x371f1f[_0x2758ca(0x206)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1cf)],(_0x104ccd=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x104ccd[_0x2758ca(0x1cf)],(_0x3d1e1a=_0x5d6c01['body'])==null?void 0x0:_0x3d1e1a[_0x2758ca(0x1cf)]),K(_0x59a6ac,['body','customRanges'],(_0x2a8cfb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x2a8cfb[_0x2758ca(0x1d8)],(_0x3c555b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x3c555b[_0x2758ca(0x1d8)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x238)],(_0x19f2e1=_0x48f164['body'])==null?void 0x0:_0x19f2e1[_0x2758ca(0x238)],(_0x23c305=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x23c305[_0x2758ca(0x238)]),K(_0x59a6ac,['body',_0x2758ca(0x1ee)],(_0x3c760e=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x3c760e[_0x2758ca(0x1ee)],(_0x399b81=_0x5d6c01['body'])==null?void 0x0:_0x399b81['tables']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1c1)],(_0xfc1a60=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0xfc1a60['blockRanges'],(_0x147f97=_0x5d6c01['body'])==null?void 0x0:_0x147f97['blockRanges'])][_0x2758ca(0x233)](Boolean)['reduce']((_0x30a948,_0x36800f)=>_0x2387fb[_0x2758ca(0x1db)](_0x30a948,_0x36800f),null);}function K(_0x496e0e,_0xabeaeb,_0x3cfa55,_0x2dd681){const _0x1b2a92=_0x4a8a2d;return _0xb48f1['diffValue'](_0x3cfa55,_0x2dd681)?null:_0x496e0e[_0x1b2a92(0x220)](_0xabeaeb,_0x3cfa55,_0x2dd681);}function q(_0x1c7168,_0x258537,_0x42aba6,_0x47945c,_0x5aac27){const _0x4ca4d8=_0x4a8a2d;let _0x55ea90=ze(_0x42aba6,_0x47945c);return _0x55ea90?!!_0x1c7168[_0x4ca4d8(0x1fb)](_0x4297bb['id'],{'unitId':_0x258537,'actions':_0x55ea90,'textRanges':[{'startOffset':_0x5aac27,'endOffset':_0x5aac27,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x4a8a2d(0x21e);var Be=_0x4a8a2d(0x218),Ve=_0x4a8a2d(0x1ff);const Y={};function X(_0x51a0d7,_0x4f288e){return function(_0xc2b95e,_0xe780a8){_0x4f288e(_0xc2b95e,_0xe780a8,_0x51a0d7);};}function Z(_0xb42bea,_0x307348,_0x399d74,_0x5b84c7){const _0x3fbc82=_0x4a8a2d;var _0x5d394d=arguments[_0x3fbc82(0x1dd)],_0x1b366b=_0x5d394d<0x3?_0x307348:_0x5b84c7===null?_0x5b84c7=Object['getOwnPropertyDescriptor'](_0x307348,_0x399d74):_0x5b84c7,_0x1b2d90;if(typeof Reflect==_0x3fbc82(0x1d5)&&typeof Reflect[_0x3fbc82(0x1f3)]==_0x3fbc82(0x1ed))_0x1b366b=Reflect['decorate'](_0xb42bea,_0x307348,_0x399d74,_0x5b84c7);else{for(var _0x552881=_0xb42bea[_0x3fbc82(0x1dd)]-0x1;_0x552881>=0x0;_0x552881--)(_0x1b2d90=_0xb42bea[_0x552881])&&(_0x1b366b=(_0x5d394d<0x3?_0x1b2d90(_0x1b366b):_0x5d394d>0x3?_0x1b2d90(_0x307348,_0x399d74,_0x1b366b):_0x1b2d90(_0x307348,_0x399d74))||_0x1b366b);}return _0x5d394d>0x3&&_0x1b366b&&Object[_0x3fbc82(0x1c7)](_0x307348,_0x399d74,_0x1b366b),_0x1b366b;}let Q=class extends _0x3e8f03{constructor(_0x525000,_0x5307ab){const _0x527ba6=_0x4a8a2d;super(),this[_0x527ba6(0x1de)]=_0x525000,this[_0x527ba6(0x205)]=_0x5307ab,this['_initResource']();}['_initResource'](){const _0x138310=_0x4a8a2d;this['disposeWithMe'](this[_0x138310(0x1de)][_0x138310(0x222)]({'pluginName':J,'businesses':[_0x2bb6f5['UNIVER_DOC']],'toJson':_0x756b90=>JSON[_0x138310(0x22b)](this['_docsCodeModel'][_0x138310(0x216)](_0x756b90)),'parseJson':_0x326414=>w(JSON[_0x138310(0x1e9)](_0x326414)),'onLoad':(_0x3bb989,_0x9d9c94)=>this[_0x138310(0x205)][_0x138310(0x1b8)](_0x3bb989,_0x9d9c94),'onUnLoad':_0x1fb262=>this[_0x138310(0x205)][_0x138310(0x219)](_0x1fb262)}));}};Q=Z([X(0x0,_0x3f714d),X(0x1,_0x4628b1(H))],Q);let $=class extends _0x5357ad{constructor(_0x44a0c7=Y,_0x299616,_0x10514f,_0x5e69cf){const _0x4b2ffc=_0x4a8a2d;super(),this[_0x4b2ffc(0x20d)]=_0x44a0c7,this['_injector']=_0x299616,this[_0x4b2ffc(0x1fc)]=_0x10514f,this[_0x4b2ffc(0x1cd)]=_0x5e69cf;let {..._0x1fb70a}=_0x3de4b6({},Y,this[_0x4b2ffc(0x20d)]);this['_configService']['setConfig'](_0x4b2ffc(0x1fa),_0x1fb70a);}[_0x4a8a2d(0x1c4)](){const _0x41fbe=_0x4a8a2d;this[_0x41fbe(0x237)][_0x41fbe(0x1cc)]([H]),this[_0x41fbe(0x237)]['add']([Q]),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](H),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x41fbe(0x1e2)](_0x4ae732=>this[_0x41fbe(0x1ec)](this[_0x41fbe(0x1fc)][_0x41fbe(0x232)](_0x4ae732)));}};V($,_0x4a8a2d(0x202),J),V($,'packageName',Be),V($,_0x4a8a2d(0x1f9),Ve),V($,_0x4a8a2d(0x23b),_0x2bb6f5[_0x4a8a2d(0x1d7)]),$=Z([_0xb86e0(_0x141bd9,_0x1f5d37),X(0x1,_0x4628b1(_0x531f72)),X(0x2,_0x3735ed),X(0x3,_0x42560c)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1377a2=_0x16e3;(function(_0xd3620e,_0x15d4c0){var _0x38674d=_0x16e3,_0x3c67dc=_0xd3620e();while(!![]){try{var _0x7df6d3=-parseInt(_0x38674d(0x203))/0x1*(-parseInt(_0x38674d(0x201))/0x2)+-parseInt(_0x38674d(0x1d5))/0x3*(-parseInt(_0x38674d(0x1c2))/0x4)+-parseInt(_0x38674d(0x1cb))/0x5*(-parseInt(_0x38674d(0x1c8))/0x6)+parseInt(_0x38674d(0x1e7))/0x7+-parseInt(_0x38674d(0x1ce))/0x8+-parseInt(_0x38674d(0x1ca))/0x9+parseInt(_0x38674d(0x200))/0xa*(-parseInt(_0x38674d(0x1fe))/0xb);if(_0x7df6d3===_0x15d4c0)break;else _0x3c67dc['push'](_0x3c67dc['shift']());}catch(_0x375018){_0x3c67dc['push'](_0x3c67dc['shift']());}}}(_0x3043,0x8d86b));import{DocsCodeCancelEmptyParagraphCommand as _0x4a3f19,DocsCodeExitCommand as _0x576da6,DocsCodeInsertCommand as _0x1699ab,DocsCodeModel as _0x1ade33,DocsCodeUpdateCommand as _0x2d2555,normalizeDocsCodeConfig as _0x16ea29}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x1d96d1,DocumentBlockRangeType as _0x7fd425,ICommandService as _0x19c939,Inject as _0x1e5ab3,Injector as _0x422279,generateRandomId as _0x28c01d}from'@univerjs/core';function _0x16e3(_0x2f792e,_0x3c09e6){_0x2f792e=_0x2f792e-0x1c2;var _0x304390=_0x3043();var _0x16e381=_0x304390[_0x2f792e];return _0x16e381;}function _0x3043(){var _0x4bfd4d=['2184141XbcYjI','toPrimitive','string','insertCode','default','blockRanges','_getDocumentData','body','BLOCK_END','_document','exitCode','_getBlockRange','map','find','_injector','slice','_getBlockRanges','blockType','3281215VbdAxX','join','getText','getCodes','save','CODE','blockId','cancelEmptyCodeParagraph','config','constructor','symbol','getId','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getRange','call','getOwnPropertyDescriptor','length','defineProperty','startIndex','some','SECTION_BREAK','text','object','297dFxrpj','filter','137110FlYMgV','621326SUpKja','getConfig','1fJjHFF','extend','exit','updateConfig','getCodeConfig','syncExecuteCommand','decorate','4EMVNCU','get','_unitId','_blockId','replace','_createFDocumentCode','6ctrPou','getType','4102524zxCtiZ','128950rBnKaP','getCode','paragraph','1020168hAtnCO','function','findCodes','getCodeAt','endIndex','describe','from'];_0x3043=function(){return _0x4bfd4d;};return _0x3043();}import{FDocument as _0xda5b7d}from'@univerjs/docs/facade';function p(_0x302709){'@babel/helpers - typeof';var _0x40ef45=_0x16e3;return p=typeof Symbol==_0x40ef45(0x1cf)&&typeof Symbol['iterator']==_0x40ef45(0x1f1)?function(_0x507db4){return typeof _0x507db4;}:function(_0x25fb95){var _0x385a05=_0x40ef45;return _0x25fb95&&typeof Symbol==_0x385a05(0x1cf)&&_0x25fb95[_0x385a05(0x1f0)]===Symbol&&_0x25fb95!==Symbol['prototype']?'symbol':typeof _0x25fb95;},p(_0x302709);}function m(_0x50b178,_0x468825){var _0x2905ee=_0x16e3;if(p(_0x50b178)!=_0x2905ee(0x1fd)||!_0x50b178)return _0x50b178;var _0x4a618a=_0x50b178[Symbol[_0x2905ee(0x1d6)]];if(_0x4a618a!==void 0x0){var _0x337c1e=_0x4a618a[_0x2905ee(0x1f5)](_0x50b178,_0x468825||_0x2905ee(0x1d9));if(p(_0x337c1e)!=_0x2905ee(0x1fd))return _0x337c1e;throw TypeError(_0x2905ee(0x1f3));}return(_0x468825==='string'?String:Number)(_0x50b178);}function h(_0x325a55){var _0x4ba5fc=_0x16e3,_0x2b1475=m(_0x325a55,_0x4ba5fc(0x1d7));return p(_0x2b1475)==_0x4ba5fc(0x1f1)?_0x2b1475:_0x2b1475+'';}function g(_0x5bb7a8,_0x313c4b,_0x24425b){var _0x596e2e=_0x16e3;return(_0x313c4b=h(_0x313c4b))in _0x5bb7a8?Object[_0x596e2e(0x1f8)](_0x5bb7a8,_0x313c4b,{'value':_0x24425b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5bb7a8[_0x313c4b]=_0x24425b,_0x5bb7a8;}function _(_0x3aed7e,_0x73d234){return function(_0x4ce8b8,_0x179931){_0x73d234(_0x4ce8b8,_0x179931,_0x3aed7e);};}function v(_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3){var _0x115b7c=_0x16e3,_0x21664d=arguments[_0x115b7c(0x1f7)],_0x41c548=_0x21664d<0x3?_0x3cbc2e:_0xcf4de3===null?_0xcf4de3=Object[_0x115b7c(0x1f6)](_0x3cbc2e,_0x2c2bd2):_0xcf4de3,_0x26e3a0;if(typeof Reflect=='object'&&typeof Reflect[_0x115b7c(0x209)]==_0x115b7c(0x1cf))_0x41c548=Reflect[_0x115b7c(0x209)](_0x4e8d71,_0x3cbc2e,_0x2c2bd2,_0xcf4de3);else{for(var _0x1478f9=_0x4e8d71['length']-0x1;_0x1478f9>=0x0;_0x1478f9--)(_0x26e3a0=_0x4e8d71[_0x1478f9])&&(_0x41c548=(_0x21664d<0x3?_0x26e3a0(_0x41c548):_0x21664d>0x3?_0x26e3a0(_0x3cbc2e,_0x2c2bd2,_0x41c548):_0x26e3a0(_0x3cbc2e,_0x2c2bd2))||_0x41c548);}return _0x21664d>0x3&&_0x41c548&&Object[_0x115b7c(0x1f8)](_0x3cbc2e,_0x2c2bd2,_0x41c548),_0x41c548;}let y=class{constructor(_0x16e03e,_0x423d74,_0x4f0247){var _0x516163=_0x16e3;this[_0x516163(0x1de)]=_0x16e03e,this[_0x516163(0x1c5)]=_0x423d74,this[_0x516163(0x1e3)]=_0x4f0247,g(this,'_unitId',void 0x0),this[_0x516163(0x1c4)]=this[_0x516163(0x1de)]['getId']();}['getId'](){var _0x201083=_0x16e3;return this[_0x201083(0x1c5)];}[_0x1377a2(0x1f4)](){var _0x76c7c4=_0x1377a2;let _0x3c70aa=this[_0x76c7c4(0x1e0)]();return _0x3c70aa?{'blockId':_0x3c70aa[_0x76c7c4(0x1ed)],'endIndex':_0x3c70aa[_0x76c7c4(0x1d2)],'startIndex':_0x3c70aa[_0x76c7c4(0x1f9)]}:null;}[_0x1377a2(0x1e9)](){var _0x68366c=_0x1377a2,_0x231eed;let _0x4e4c1c=this[_0x68366c(0x1e0)](),_0x2940fb=(_0x231eed=this['_getDocumentData']()[_0x68366c(0x1dc)])==null?void 0x0:_0x231eed['dataStream'];return!_0x4e4c1c||!_0x2940fb?'':b(_0x2940fb[_0x68366c(0x1e4)](_0x4e4c1c[_0x68366c(0x1f9)]+0x1,_0x4e4c1c['endIndex']));}[_0x1377a2(0x1d3)](){var _0x241f53=_0x1377a2;let _0x4edeb4=this['getRange']();return _0x4edeb4?{..._0x4edeb4,'config':this[_0x241f53(0x202)](),'text':this[_0x241f53(0x1e9)](),'type':_0x7fd425[_0x241f53(0x1ec)]}:null;}[_0x1377a2(0x202)](){var _0x2192d5=_0x1377a2;return _0x16ea29(this['_injector'][_0x2192d5(0x1c3)](_0x1ade33)[_0x2192d5(0x207)](this[_0x2192d5(0x1c4)],this[_0x2192d5(0x1c5)]));}[_0x1377a2(0x206)](_0x2ff204){var _0x388709=_0x1377a2;return this[_0x388709(0x1e3)][_0x388709(0x1c3)](_0x19c939)[_0x388709(0x208)](_0x2d2555['id'],{'blockId':this[_0x388709(0x1c5)],'config':_0x2ff204[_0x388709(0x1ef)],'unitId':this['_unitId']});}[_0x1377a2(0x205)](_0x48d049){var _0x86d821=_0x1377a2;return this['_injector'][_0x86d821(0x1c3)](_0x19c939)[_0x86d821(0x208)](_0x576da6['id'],{'cursorOffset':_0x48d049,'unitId':this[_0x86d821(0x1c4)]});}['cancelEmptyParagraph'](_0x452853={}){var _0x2a439a=_0x1377a2;return this[_0x2a439a(0x1e3)][_0x2a439a(0x1c3)](_0x19c939)[_0x2a439a(0x208)](_0x4a3f19['id'],{..._0x452853,'unitId':this['_unitId']});}[_0x1377a2(0x1db)](){var _0x29ccfb=_0x1377a2;return this[_0x29ccfb(0x1de)]['save']();}[_0x1377a2(0x1e0)](){var _0x41ad60=_0x1377a2,_0x1f1c61;let _0x4cbe69=(_0x1f1c61=this[_0x41ad60(0x1db)]()[_0x41ad60(0x1dc)])==null||(_0x1f1c61=_0x1f1c61[_0x41ad60(0x1da)])==null?void 0x0:_0x1f1c61[_0x41ad60(0x1e2)](_0x196b02=>_0x196b02['blockId']===this[_0x41ad60(0x1c5)]&&_0x196b02[_0x41ad60(0x1e6)]===_0x7fd425[_0x41ad60(0x1ec)]);return _0x4cbe69==null?null:_0x4cbe69;}};y=v([_(0x2,_0x1e5ab3(_0x422279))],y);function b(_0x331aa5){var _0x2f8f2c=_0x1377a2;return Array[_0x2f8f2c(0x1d4)](_0x331aa5)[_0x2f8f2c(0x1e1)](_0x1d1d62=>_0x1d1d62===_0x1d96d1['PARAGRAPH']?'\x0a':_0x1d1d62)['filter'](_0x131396=>_0x131396!==_0x1d96d1['BLOCK_START']&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1dd)]&&_0x131396!==_0x1d96d1[_0x2f8f2c(0x1fb)])[_0x2f8f2c(0x1e8)]('')[_0x2f8f2c(0x1c6)](/\n$/,'');}var x=class extends _0xda5b7d{['getCodes'](){var _0x27ee66=_0x1377a2;return this[_0x27ee66(0x1e5)]()[_0x27ee66(0x1ff)](_0x31b11b=>_0x31b11b[_0x27ee66(0x1e6)]===_0x7fd425[_0x27ee66(0x1ec)])['map'](_0x28eec5=>this[_0x27ee66(0x1c7)](_0x28eec5[_0x27ee66(0x1ed)]));}[_0x1377a2(0x1cc)](_0x121f6a){var _0x252114=_0x1377a2;return this['_getBlockRanges']()[_0x252114(0x1fa)](_0xc30e2e=>_0xc30e2e[_0x252114(0x1ed)]===_0x121f6a&&_0xc30e2e[_0x252114(0x1e6)]===_0x7fd425[_0x252114(0x1ec)])?this[_0x252114(0x1c7)](_0x121f6a):null;}[_0x1377a2(0x1d1)](_0x35730a){var _0x1960da=_0x1377a2;let _0x417d5f=this[_0x1960da(0x1e5)]()[_0x1960da(0x1e2)](_0x516a1c=>_0x516a1c['blockType']===_0x7fd425[_0x1960da(0x1ec)]&&_0x516a1c[_0x1960da(0x1f9)]<=_0x35730a&&_0x35730a<=_0x516a1c[_0x1960da(0x1d2)]);return _0x417d5f?this['_createFDocumentCode'](_0x417d5f[_0x1960da(0x1ed)]):null;}['findCodeByText'](_0x502267){var _0x2da494;return(_0x2da494=this['findCodes'](_0x502267)[0x0])==null?null:_0x2da494;}[_0x1377a2(0x1d0)](_0x738335){var _0x172eb6=_0x1377a2;let _0x1b55ec=typeof _0x738335==_0x172eb6(0x1d7)?{'text':_0x738335}:_0x738335;return this[_0x172eb6(0x1ea)]()[_0x172eb6(0x1ff)](_0x24a8f2=>!(_0x1b55ec[_0x172eb6(0x1ed)]&&_0x24a8f2['getId']()!==_0x1b55ec['blockId']||_0x1b55ec[_0x172eb6(0x1fc)]&&!_0x24a8f2['getText']()['includes'](_0x1b55ec['text'])));}[_0x1377a2(0x1d8)](_0x35c6b8={},_0x333007={}){var _0x4e6229=_0x1377a2,_0x25ffa3;let _0x72adf1=this[_0x4e6229(0x1e3)]['get'](_0x19c939),_0xf89e76=S(_0x35c6b8)?{..._0x333007,...C(_0x35c6b8)}:_0x35c6b8,_0x2ae48a=(_0x25ffa3=_0xf89e76[_0x4e6229(0x1ed)])==null?_0x28c01d(0x6):_0x25ffa3;return _0x72adf1['syncExecuteCommand'](_0x1699ab['id'],{..._0xf89e76,'blockId':_0x2ae48a,'unitId':this[_0x4e6229(0x1f2)]()})?this[_0x4e6229(0x1c7)](_0x2ae48a):null;}[_0x1377a2(0x1df)](_0x2bb0de){var _0x54b4d4=_0x1377a2;return this[_0x54b4d4(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x576da6['id'],{'cursorOffset':_0x2bb0de,'unitId':this[_0x54b4d4(0x1f2)]()});}[_0x1377a2(0x1ee)](_0xd993e1={}){var _0x3c124f=_0x1377a2;return this[_0x3c124f(0x1e3)]['get'](_0x19c939)['syncExecuteCommand'](_0x4a3f19['id'],{..._0xd993e1,'unitId':this[_0x3c124f(0x1f2)]()});}[_0x1377a2(0x1e5)](){var _0x3fceb6=_0x1377a2,_0x247d87,_0x25f16b;return(_0x247d87=(_0x25f16b=this[_0x3fceb6(0x1eb)]()[_0x3fceb6(0x1dc)])==null?void 0x0:_0x25f16b[_0x3fceb6(0x1da)])==null?[]:_0x247d87;}[_0x1377a2(0x1c7)](_0x3388db){var _0x5fe1a=_0x1377a2;return this[_0x5fe1a(0x1e3)]['createInstance'](y,this,_0x3388db);}};function S(_0x8dedce){var _0x4d93c2=_0x1377a2;return typeof _0x8dedce=='object'&&!!_0x8dedce&&typeof _0x8dedce['getKey']==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1f4)]==_0x4d93c2(0x1cf)&&typeof _0x8dedce[_0x4d93c2(0x1c9)]==_0x4d93c2(0x1cf)&&_0x8dedce['getType']()===_0x4d93c2(0x1cd);}function C(_0x423653){var _0x2817fe=_0x1377a2;return _0x423653[_0x2817fe(0x1f4)]();}_0xda5b7d[_0x1377a2(0x204)](x);export{y as FDocumentCode};
|
|
1
|
+
var _0x13b9b5=_0xe05e;(function(_0x1aca92,_0x4d48ea){var _0x39f633=_0xe05e,_0x4f23fb=_0x1aca92();while(!![]){try{var _0x6cda75=parseInt(_0x39f633(0x18d))/0x1+parseInt(_0x39f633(0x185))/0x2*(-parseInt(_0x39f633(0x1a0))/0x3)+parseInt(_0x39f633(0x1ae))/0x4*(parseInt(_0x39f633(0x17e))/0x5)+parseInt(_0x39f633(0x189))/0x6*(parseInt(_0x39f633(0x187))/0x7)+-parseInt(_0x39f633(0x19f))/0x8*(-parseInt(_0x39f633(0x1b2))/0x9)+-parseInt(_0x39f633(0x1b6))/0xa*(parseInt(_0x39f633(0x17b))/0xb)+-parseInt(_0x39f633(0x17f))/0xc;if(_0x6cda75===_0x4d48ea)break;else _0x4f23fb['push'](_0x4f23fb['shift']());}catch(_0x4eb3ba){_0x4f23fb['push'](_0x4f23fb['shift']());}}}(_0x1227,0x8889a));import{DocsCodeCancelEmptyParagraphCommand as _0x43121c,DocsCodeExitCommand as _0x227b78,DocsCodeInsertCommand as _0x19049a,DocsCodeModel as _0x317f80,DocsCodeUpdateCommand as _0xa7f6d0,normalizeDocsCodeConfig as _0x249552}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2dbdf7,DocumentBlockRangeType as _0x4df84b,ICommandService as _0x593bc2,Inject as _0x33b9d8,Injector as _0xa34ccd,generateRandomId as _0xeecacd}from'@univerjs/core';import{FDocument as _0x29e282}from'@univerjs/docs/facade';function p(_0x101e6b){'@babel/helpers - typeof';var _0x4575dc=_0xe05e;return p=typeof Symbol==_0x4575dc(0x1af)&&typeof Symbol['iterator']=='symbol'?function(_0x50e854){return typeof _0x50e854;}:function(_0x4df84a){var _0x389846=_0x4575dc;return _0x4df84a&&typeof Symbol==_0x389846(0x1af)&&_0x4df84a[_0x389846(0x1b0)]===Symbol&&_0x4df84a!==Symbol[_0x389846(0x1b1)]?_0x389846(0x1a8):typeof _0x4df84a;},p(_0x101e6b);}function m(_0x5a8f8a,_0x491895){var _0x5562ca=_0xe05e;if(p(_0x5a8f8a)!=_0x5562ca(0x179)||!_0x5a8f8a)return _0x5a8f8a;var _0x3a92f9=_0x5a8f8a[Symbol['toPrimitive']];if(_0x3a92f9!==void 0x0){var _0x57d9b6=_0x3a92f9[_0x5562ca(0x180)](_0x5a8f8a,_0x491895||_0x5562ca(0x1a5));if(p(_0x57d9b6)!=_0x5562ca(0x179))return _0x57d9b6;throw TypeError(_0x5562ca(0x19c));}return(_0x491895===_0x5562ca(0x190)?String:Number)(_0x5a8f8a);}function h(_0x14c418){var _0x3740c0=_0xe05e,_0x90c01f=m(_0x14c418,_0x3740c0(0x190));return p(_0x90c01f)==_0x3740c0(0x1a8)?_0x90c01f:_0x90c01f+'';}function g(_0x40a584,_0x75b4dd,_0x2417f3){var _0x1dfc20=_0xe05e;return(_0x75b4dd=h(_0x75b4dd))in _0x40a584?Object[_0x1dfc20(0x196)](_0x40a584,_0x75b4dd,{'value':_0x2417f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40a584[_0x75b4dd]=_0x2417f3,_0x40a584;}function _0x1227(){var _0x5a166d=['_getBlockRange','syncExecuteCommand','28330GmbhnM','decorate','from','some','includes','getId','PARAGRAPH','getCode','object','blockRanges','3586hcmCOj','text','_unitId','3355FfOFvG','3880548GPaDcX','call','_document','findCodes','createInstance','blockId','2gwXRxf','getKey','22281cKEDqV','length','426vBOhvK','_createFDocumentCode','filter','extend','248175BaVBwm','getConfig','save','string','endIndex','_getDocumentData','cancelEmptyParagraph','get','config','defineProperty','CODE','getType','_blockId','BLOCK_END','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraph','exitCode','7631056sNBjjj','61287mczrPU','describe','blockType','_getBlockRanges','body','default','exit','find','symbol','getText','BLOCK_START','map','_injector','startIndex','2376wKQqYW','function','constructor','prototype','9noLGHd','SECTION_BREAK'];_0x1227=function(){return _0x5a166d;};return _0x1227();}function _(_0x24aabb,_0x218973){return function(_0x59f4ab,_0x4e280b){_0x218973(_0x59f4ab,_0x4e280b,_0x24aabb);};}function v(_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a){var _0x4708a2=_0xe05e,_0x4887f2=arguments[_0x4708a2(0x188)],_0x413f8a=_0x4887f2<0x3?_0x33dc2a:_0x202e9a===null?_0x202e9a=Object['getOwnPropertyDescriptor'](_0x33dc2a,_0x57ce93):_0x202e9a,_0x316bd4;if(typeof Reflect==_0x4708a2(0x179)&&typeof Reflect[_0x4708a2(0x1b7)]=='function')_0x413f8a=Reflect[_0x4708a2(0x1b7)](_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a);else{for(var _0xfed88b=_0x2cc221[_0x4708a2(0x188)]-0x1;_0xfed88b>=0x0;_0xfed88b--)(_0x316bd4=_0x2cc221[_0xfed88b])&&(_0x413f8a=(_0x4887f2<0x3?_0x316bd4(_0x413f8a):_0x4887f2>0x3?_0x316bd4(_0x33dc2a,_0x57ce93,_0x413f8a):_0x316bd4(_0x33dc2a,_0x57ce93))||_0x413f8a);}return _0x4887f2>0x3&&_0x413f8a&&Object['defineProperty'](_0x33dc2a,_0x57ce93,_0x413f8a),_0x413f8a;}function _0xe05e(_0x534f69,_0x3fa108){_0x534f69=_0x534f69-0x176;var _0x122778=_0x1227();var _0xe05ea6=_0x122778[_0x534f69];return _0xe05ea6;}let y=class{constructor(_0x2bae20,_0x128ba0,_0x175393){var _0x8fdd1c=_0xe05e;this[_0x8fdd1c(0x181)]=_0x2bae20,this[_0x8fdd1c(0x199)]=_0x128ba0,this[_0x8fdd1c(0x1ac)]=_0x175393,g(this,_0x8fdd1c(0x17d),void 0x0),this[_0x8fdd1c(0x17d)]=this[_0x8fdd1c(0x181)]['getId']();}['getId'](){var _0x5767c1=_0xe05e;return this[_0x5767c1(0x199)];}[_0x13b9b5(0x19b)](){var _0x35d72d=_0x13b9b5;let _0x5a3235=this[_0x35d72d(0x1b4)]();return _0x5a3235?{'blockId':_0x5a3235[_0x35d72d(0x184)],'endIndex':_0x5a3235[_0x35d72d(0x191)],'startIndex':_0x5a3235[_0x35d72d(0x1ad)]}:null;}['getText'](){var _0x598430=_0x13b9b5,_0x47bf03;let _0x13c9dc=this[_0x598430(0x1b4)](),_0x4e2505=(_0x47bf03=this[_0x598430(0x192)]()[_0x598430(0x1a4)])==null?void 0x0:_0x47bf03['dataStream'];return!_0x13c9dc||!_0x4e2505?'':b(_0x4e2505['slice'](_0x13c9dc['startIndex']+0x1,_0x13c9dc[_0x598430(0x191)]));}[_0x13b9b5(0x1a1)](){var _0x557286=_0x13b9b5;let _0x56e0e2=this[_0x557286(0x19b)]();return _0x56e0e2?{..._0x56e0e2,'config':this[_0x557286(0x18e)](),'text':this[_0x557286(0x1a9)](),'type':_0x4df84b['CODE']}:null;}[_0x13b9b5(0x18e)](){var _0x58788f=_0x13b9b5;return _0x249552(this[_0x58788f(0x1ac)][_0x58788f(0x194)](_0x317f80)['getCodeConfig'](this[_0x58788f(0x17d)],this['_blockId']));}['updateConfig'](_0x3c44dc){var _0xd4f098=_0x13b9b5;return this['_injector']['get'](_0x593bc2)[_0xd4f098(0x1b5)](_0xa7f6d0['id'],{'blockId':this[_0xd4f098(0x199)],'config':_0x3c44dc[_0xd4f098(0x195)],'unitId':this[_0xd4f098(0x17d)]});}[_0x13b9b5(0x1a6)](_0x57b48c){var _0x503cbf=_0x13b9b5;return this[_0x503cbf(0x1ac)]['get'](_0x593bc2)[_0x503cbf(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x57b48c,'unitId':this[_0x503cbf(0x17d)]});}[_0x13b9b5(0x193)](_0x12a500={}){var _0x559450=_0x13b9b5;return this['_injector']['get'](_0x593bc2)['syncExecuteCommand'](_0x43121c['id'],{..._0x12a500,'unitId':this[_0x559450(0x17d)]});}[_0x13b9b5(0x192)](){var _0x1d7a38=_0x13b9b5;return this[_0x1d7a38(0x181)][_0x1d7a38(0x18f)]();}['_getBlockRange'](){var _0x2d07a1=_0x13b9b5,_0x5a6793;let _0x5d4d35=(_0x5a6793=this[_0x2d07a1(0x192)]()['body'])==null||(_0x5a6793=_0x5a6793[_0x2d07a1(0x17a)])==null?void 0x0:_0x5a6793[_0x2d07a1(0x1a7)](_0x1b3780=>_0x1b3780['blockId']===this[_0x2d07a1(0x199)]&&_0x1b3780[_0x2d07a1(0x1a2)]===_0x4df84b[_0x2d07a1(0x197)]);return _0x5d4d35==null?null:_0x5d4d35;}};y=v([_(0x2,_0x33b9d8(_0xa34ccd))],y);function b(_0x33a668){var _0x468592=_0x13b9b5;return Array[_0x468592(0x1b8)](_0x33a668)[_0x468592(0x1ab)](_0x871d31=>_0x871d31===_0x2dbdf7[_0x468592(0x177)]?'\x0a':_0x871d31)[_0x468592(0x18b)](_0x1ce9bd=>_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1aa)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x19a)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1b3)])['join']('')['replace'](/\n$/,'');}var x=class extends _0x29e282{['getCodes'](){var _0x1c0bc7=_0x13b9b5;return this[_0x1c0bc7(0x1a3)]()[_0x1c0bc7(0x18b)](_0x47f5a8=>_0x47f5a8[_0x1c0bc7(0x1a2)]===_0x4df84b['CODE'])[_0x1c0bc7(0x1ab)](_0x5c62b5=>this[_0x1c0bc7(0x18a)](_0x5c62b5[_0x1c0bc7(0x184)]));}[_0x13b9b5(0x178)](_0x2b5a8a){var _0x1034f8=_0x13b9b5;return this[_0x1034f8(0x1a3)]()[_0x1034f8(0x1b9)](_0x3e6bcc=>_0x3e6bcc[_0x1034f8(0x184)]===_0x2b5a8a&&_0x3e6bcc[_0x1034f8(0x1a2)]===_0x4df84b[_0x1034f8(0x197)])?this[_0x1034f8(0x18a)](_0x2b5a8a):null;}['getCodeAt'](_0x70ee62){var _0x1c2084=_0x13b9b5;let _0x5627cd=this[_0x1c2084(0x1a3)]()[_0x1c2084(0x1a7)](_0x147d27=>_0x147d27['blockType']===_0x4df84b[_0x1c2084(0x197)]&&_0x147d27[_0x1c2084(0x1ad)]<=_0x70ee62&&_0x70ee62<=_0x147d27[_0x1c2084(0x191)]);return _0x5627cd?this[_0x1c2084(0x18a)](_0x5627cd[_0x1c2084(0x184)]):null;}['findCodeByText'](_0x53db5d){var _0x28e3af=_0x13b9b5,_0x20617e;return(_0x20617e=this[_0x28e3af(0x182)](_0x53db5d)[0x0])==null?null:_0x20617e;}[_0x13b9b5(0x182)](_0x35a31e){var _0x477ebe=_0x13b9b5;let _0x5329d1=typeof _0x35a31e==_0x477ebe(0x190)?{'text':_0x35a31e}:_0x35a31e;return this['getCodes']()[_0x477ebe(0x18b)](_0x42dad2=>!(_0x5329d1[_0x477ebe(0x184)]&&_0x42dad2['getId']()!==_0x5329d1[_0x477ebe(0x184)]||_0x5329d1['text']&&!_0x42dad2[_0x477ebe(0x1a9)]()[_0x477ebe(0x1ba)](_0x5329d1[_0x477ebe(0x17c)])));}['insertCode'](_0x3e88eb={},_0x4ddb38={}){var _0x19f55b=_0x13b9b5,_0x1baf31;let _0x341aa8=this['_injector'][_0x19f55b(0x194)](_0x593bc2),_0x59467b=S(_0x3e88eb)?{..._0x4ddb38,...C(_0x3e88eb)}:_0x3e88eb,_0xc80b0d=(_0x1baf31=_0x59467b[_0x19f55b(0x184)])==null?_0xeecacd(0x6):_0x1baf31;return _0x341aa8[_0x19f55b(0x1b5)](_0x19049a['id'],{..._0x59467b,'blockId':_0xc80b0d,'unitId':this['getId']()})?this[_0x19f55b(0x18a)](_0xc80b0d):null;}[_0x13b9b5(0x19e)](_0x4c9e17){var _0x1ec007=_0x13b9b5;return this[_0x1ec007(0x1ac)]['get'](_0x593bc2)[_0x1ec007(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x4c9e17,'unitId':this[_0x1ec007(0x176)]()});}['cancelEmptyCodeParagraph'](_0xafc974={}){var _0x246820=_0x13b9b5;return this[_0x246820(0x1ac)]['get'](_0x593bc2)[_0x246820(0x1b5)](_0x43121c['id'],{..._0xafc974,'unitId':this[_0x246820(0x176)]()});}['_getBlockRanges'](){var _0x5ce413=_0x13b9b5,_0x3919aa,_0x5a7000;return(_0x3919aa=(_0x5a7000=this['save']()[_0x5ce413(0x1a4)])==null?void 0x0:_0x5a7000['blockRanges'])==null?[]:_0x3919aa;}[_0x13b9b5(0x18a)](_0x478f88){var _0x29e9e1=_0x13b9b5;return this[_0x29e9e1(0x1ac)][_0x29e9e1(0x183)](y,this,_0x478f88);}};function S(_0x1d4a06){var _0x145e75=_0x13b9b5;return typeof _0x1d4a06==_0x145e75(0x179)&&!!_0x1d4a06&&typeof _0x1d4a06[_0x145e75(0x186)]=='function'&&typeof _0x1d4a06[_0x145e75(0x19b)]=='function'&&typeof _0x1d4a06[_0x145e75(0x198)]==_0x145e75(0x1af)&&_0x1d4a06[_0x145e75(0x198)]()===_0x145e75(0x19d);}function C(_0x54462d){var _0x309448=_0x13b9b5;return _0x54462d[_0x309448(0x19b)]();}_0x29e282[_0x13b9b5(0x18c)](x);export{y as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1bd327=_0x3851;(function(_0x2abd87,_0x3ecb6a){const _0xfdd857=_0x3851,_0x2bad8f=_0x2abd87();while(!![]){try{const _0x3699c0=-parseInt(_0xfdd857(0x1aa))/0x1*(-parseInt(_0xfdd857(0x202))/0x2)+parseInt(_0xfdd857(0x1d1))/0x3*(parseInt(_0xfdd857(0x184))/0x4)+parseInt(_0xfdd857(0x1b7))/0x5+-parseInt(_0xfdd857(0x18f))/0x6*(-parseInt(_0xfdd857(0x1f7))/0x7)+-parseInt(_0xfdd857(0x1b5))/0x8+-parseInt(_0xfdd857(0x195))/0x9*(parseInt(_0xfdd857(0x1ed))/0xa)+parseInt(_0xfdd857(0x183))/0xb;if(_0x3699c0===_0x3ecb6a)break;else _0x2bad8f['push'](_0x2bad8f['shift']());}catch(_0x4ae60a){_0x2bad8f['push'](_0x2bad8f['shift']());}}}(_0x27d7,0x63c31));import{BuildTextUtils as _0x1b614b,CommandType as _0xd6e375,DataStreamTreeTokenType as _0x217bb8,DependentOn as _0x5e8859,Disposable as _0x4a26dc,DocumentBlockRangeType as _0x6a5755,ICommandService as _0x32af23,IConfigService as _0x4adc10,IResourceManagerService as _0xca8f68,IUniverInstanceService as _0x33ba15,Inject as _0x30337f,Injector as _0x4af702,JSONX as _0x273043,Plugin as _0x394390,Tools as _0x4a3ab2,UniverInstanceType as _0x2864e1,createParagraphId as _0x48477c,generateRandomId as _0x414e01,merge as _0x4c5915}from'@univerjs/core';import{DocContentInsertService as _0xc64f97,DocSelectionManagerService as _0x35cf98,RichTextEditingMutation as _0x397e41,UniverDocsPlugin as _0x8ce557}from'@univerjs/docs';import{Subject as _0x39b06c}from'rxjs';import{UniverLicensePlugin as _0x5411ad}from'@univerjs-pro/license';const S={'language':_0x1bd327(0x1eb),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x31dc31){return{...S,..._0x31dc31};}function w(_0x3d7b04){const _0x2091d9=_0x1bd327;var _0x5c5da2;let _0x25f052=(_0x5c5da2=_0x3d7b04==null?void 0x0:_0x3d7b04['codes'])==null?{}:_0x5c5da2;return{'codes':Object[_0x2091d9(0x1a3)](Object[_0x2091d9(0x198)](_0x25f052)[_0x2091d9(0x1c8)](([_0x104c95,_0x23bf3c])=>[_0x104c95,C(_0x23bf3c)]))};}function T(_0x1c38df,_0xa492ab,_0x451d52){const _0x5b27e0=_0x1bd327;let _0x5c0500=w(_0x1c38df);return _0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab]=C({..._0x5c0500[_0x5b27e0(0x1b6)][_0xa492ab],..._0x451d52}),_0x5c0500;}function re(_0x284a5a,_0x543d6a){let _0x54c0d6=w(_0x284a5a);return delete _0x54c0d6['codes'][_0x543d6a],_0x54c0d6;}function _0x27d7(){const _0x3967da=['docs-code.command.exit','length','object','endTokenOffset','BLOCK_END','startIndex','getCodeConfig','BLOCK_START','spaceBelow','_resourceManagerService','18TOHRBq','blockRanges','textRuns','filter','blockType','customDecorations','previousDocumentData','paragraphStyle','indentEnd','_injector','2428943nAUSAr','1187332uMxBUB','indentStart','toPrimitive','string','body','default','startOffset','parse','max','syncExecuteCommand','textStyle','11034QymvFI','getParagraphsInRange','_commandService','customBlocks','_initResource','docs-code.command.update','7497EeMbTR','getBody','find','entries','_resources','next','tables','getTextRanges','stringify','clear','deepClone','from','prototype','get','fromEntries','Document\x20body\x20is\x20required','some','paragraph','paragraphStartIndex','dispose','sectionBreaks','6569EBrDuG','function','forEach','endsWith','every','metadata','defineProperty','_setResource','DOC_CODE_PLUGIN','version','getUnitId','2890032iTqiVt','codes','1214830MxHpaB','docs-code.command.cancel-empty-paragraph','paragraphs','decorate','customRanges','iterator','getUniverDocInstance','monospace','pluginName','config','spaceAbove','SECTION_BREAK','call','_config','nextMetadata','add','direction','map','consumeInsertRange','registerPluginResource','right','commandService','packageName','cursorOffset','setConfig','docs-code.config','3fbHFxz','PARAGRAPH','unitId','range','_change$','removeUnit','getCurrentUnitOfType','model','docs-code.command.insert-below','COMMAND','CODE','compose','deserialize','_configService','constructor','getSnapshot','blockId','sort','UNIVER_DOC','paragraphId','slice','replaceOp','nextDocumentData','documentData','serialize','endOffset','javascript','min','6780jZpGQI','complete','dataStream','diffValue','endIndex','docs-code.command.insert','set','removeCode','_docsCodeModel','join','1960ntHLUl'];_0x27d7=function(){return _0x3967da;};return _0x27d7();}const ie=_0x1bd327(0x1be);function ae(_0x23f8fa){const _0x4f8099=_0x1bd327;var _0x53c1b3,_0x537c02,_0x48bc8e;let _0x403382=D(_0x23f8fa[_0x4f8099(0x1e8)]),_0x201e37=O(_0x403382),_0x50c400=se(_0x23f8fa[_0x4f8099(0x18a)],_0x23f8fa[_0x4f8099(0x1ea)]),_0x27ee38=_0x50c400?(_0x53c1b3=_0x201e37[_0x4f8099(0x203)])==null?void 0x0:_0x53c1b3['find'](_0x35a963=>_0x35a963[_0x4f8099(0x1fd)]===_0x50c400['startOffset']&&_0x35a963[_0x4f8099(0x1f1)]+0x1===_0x50c400[_0x4f8099(0x1ea)]):void 0x0,{startOffset:_0x4a13c3,endOffset:_0x24ca9a}=_0x27ee38?_0x50c400:ye(_0x201e37,_0x23f8fa['startOffset'],_0x23f8fa['endOffset']),_0x2c2028=Se(_0x201e37,_0x4a13c3,_0x24ca9a),_0x107bc9=(_0x537c02=_0x27ee38==null?void 0x0:_0x27ee38[_0x4f8099(0x1e1)])==null?_0x23f8fa['blockId']:_0x537c02,_0x55b0f3=T(_0x23f8fa['metadata'],_0x107bc9,{...S,..._0x23f8fa['config']});if(_0x27ee38)return _0x27ee38[_0x4f8099(0x206)]=_0x6a5755[_0x4f8099(0x1db)],oe(_0x201e37,_0x4a13c3,_0x24ca9a),he(_0x201e37,_0x4a13c3,_0x24ca9a,_0x2c2028),M(_0x201e37,_0x27ee38),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};if(_0x4a13c3===_0x24ca9a){var _0x4b604b,_0xe82787;let _0x19d496=''+_0x217bb8[_0x4f8099(0x1ff)]+_0x217bb8['PARAGRAPH']+_0x217bb8['BLOCK_END'];N(_0x201e37,_0x4a13c3,_0x19d496,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x48477c(new Set((_0x4b604b=_0x201e37['paragraphs'])==null?void 0x0:_0x4b604b[_0x4f8099(0x1c8)](_0x2e1183=>_0x2e1183[_0x4f8099(0x1e4)]))),'paragraphStyle':E(!0x0,!0x0,_0x2c2028)}],'blockRanges':[{'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':0x0,'endIndex':_0x19d496['length']-0x1}]});let _0x285e87=(_0xe82787=_0x201e37['blockRanges'])==null?void 0x0:_0xe82787[_0x4f8099(0x197)](_0xa943c5=>_0xa943c5[_0x4f8099(0x1e1)]===_0x107bc9);return _0x285e87&&M(_0x201e37,_0x285e87),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}N(_0x201e37,_0x24ca9a,_0x217bb8[_0x4f8099(0x1fc)]),N(_0x201e37,_0x4a13c3,_0x217bb8[_0x4f8099(0x1ff)]),he(_0x201e37,_0x4a13c3,_0x24ca9a+0x1,_0x2c2028);let _0x2aa7c7={'blockId':_0x107bc9,'blockType':_0x6a5755[_0x4f8099(0x1db)],'startIndex':_0x4a13c3,'endIndex':_0x24ca9a+0x1};return _0x201e37['blockRanges']=[...(_0x48bc8e=_0x201e37[_0x4f8099(0x203)])==null?[]:_0x48bc8e,_0x2aa7c7]['sort']((_0x424526,_0x127dfc)=>_0x424526['startIndex']-_0x127dfc[_0x4f8099(0x1fd)]),M(_0x201e37,_0x2aa7c7),{'nextDocumentData':_0x403382,'nextMetadata':_0x55b0f3,'cursorOffset':_0x4a13c3+0x1};}function oe(_0x2a7337,_0x3d91fd,_0x349e56){const _0x1b824b=_0x1bd327;var _0x56e92e;((_0x56e92e=_0x2a7337[_0x1b824b(0x1b9)])==null?[]:_0x56e92e)[_0x1b824b(0x205)](_0x24ce1f=>_0x24ce1f[_0x1b824b(0x1fd)]>_0x3d91fd&&_0x24ce1f[_0x1b824b(0x1fd)]<_0x349e56)['forEach'](_0x29adbc=>{const _0x419aed=_0x1b824b;var _0x317cde;let _0x48b2fe={...(_0x317cde=_0x29adbc[_0x419aed(0x180)])==null?{}:_0x317cde};delete _0x48b2fe[_0x419aed(0x1c1)],delete _0x48b2fe[_0x419aed(0x200)],_0x29adbc['paragraphStyle']=_0x48b2fe;});}function se(_0x338db2,_0x61a3ec){const _0x4717bc=_0x1bd327;return _0x338db2==null||_0x61a3ec==null||_0x338db2===_0x61a3ec?null:{'startOffset':Math[_0x4717bc(0x1ec)](_0x338db2,_0x61a3ec),'endOffset':Math[_0x4717bc(0x18c)](_0x338db2,_0x61a3ec)};}function ce(_0xb755f3){const _0x645c8b=_0x1bd327;return{'nextDocumentData':D(_0xb755f3['documentData']),'nextMetadata':T(_0xb755f3[_0x645c8b(0x1af)],_0xb755f3[_0x645c8b(0x1e1)],_0xb755f3['config']),'cursorOffset':0x0};}function le(_0x455e25){const _0x22f05a=_0x1bd327;var _0x4d1670,_0x2c605d;let _0x426749=D(_0x455e25['documentData']),_0x4ab092=O(_0x426749),_0x43ec65=me(_0x4ab092,_0x455e25[_0x22f05a(0x1ce)]);if(!_0x43ec65)return null;let _0x3d2a3b=_e(_0x4ab092,_0x43ec65),_0x99fdf9=_0x3d2a3b[_0x3d2a3b[_0x22f05a(0x1f9)]-0x1];if(!_0x99fdf9||!ve(_0x4ab092,_0x43ec65,_0x99fdf9)||_0x455e25[_0x22f05a(0x1ce)]<_0x99fdf9[_0x22f05a(0x1fd)])return null;let _0x1ce0c8=A(_0x4ab092,_0x43ec65,_0x99fdf9);if(_0x1ce0c8>=_0x43ec65[_0x22f05a(0x1f1)])return null;_0x4ab092[_0x22f05a(0x1ef)]=[_0x4ab092[_0x22f05a(0x1ef)]['slice'](0x0,_0x1ce0c8),_0x217bb8['BLOCK_END'],_0x4ab092['dataStream'][_0x22f05a(0x1e5)](_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)]),_0x4ab092[_0x22f05a(0x1ef)]['slice'](_0x43ec65[_0x22f05a(0x1f1)]+0x1)][_0x22f05a(0x1f6)](''),R(_0x4ab092[_0x22f05a(0x1b9)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092['sectionBreaks'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),R(_0x4ab092[_0x22f05a(0x192)],_0x1ce0c8,_0x43ec65['endIndex'],0x1),ke(_0x4ab092['textRuns'],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x19b)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x1bb)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),z(_0x4ab092[_0x22f05a(0x207)],_0x1ce0c8,_0x43ec65[_0x22f05a(0x1f1)],0x1),(_0x4d1670=_0x4ab092[_0x22f05a(0x203)])==null||_0x4d1670[_0x22f05a(0x1ac)](_0x5e28de=>{const _0x59c812=_0x22f05a;_0x5e28de===_0x43ec65||_0x5e28de[_0x59c812(0x1e1)]===_0x43ec65[_0x59c812(0x1e1)]?_0x5e28de[_0x59c812(0x1f1)]=_0x1ce0c8:_0x5e28de[_0x59c812(0x1fd)]>=_0x1ce0c8&&_0x5e28de[_0x59c812(0x1fd)]<_0x43ec65[_0x59c812(0x1f1)]&&(_0x5e28de[_0x59c812(0x1fd)]+=0x1,_0x5e28de[_0x59c812(0x1f1)]+=0x1);});let _0x8db22e=_e(_0x4ab092,{..._0x43ec65,'endIndex':_0x1ce0c8});_0x8db22e[_0x22f05a(0x1ac)]((_0x1bd4e6,_0x3892c6)=>{const _0x1ad551=_0x22f05a;var _0xec73cf;_0x1bd4e6[_0x1ad551(0x180)]={...(_0xec73cf=_0x1bd4e6[_0x1ad551(0x180)])==null?{}:_0xec73cf,...E(_0x3892c6===0x0,_0x3892c6===_0x8db22e['length']-0x1)};});let _0x2c4de4=(_0x2c605d=_0x4ab092['paragraphs'])==null?void 0x0:_0x2c605d['find'](_0x56c9fb=>_0x56c9fb[_0x22f05a(0x1fd)]===_0x1ce0c8+0x1);return _0x2c4de4&&(_0x2c4de4['paragraphStyle']=ge(_0x2c4de4['paragraphStyle'])),{'nextDocumentData':_0x426749,'cursorOffset':_0x1ce0c8+0x1};}function ue(_0x41ad2b){const _0x1a93ff=_0x1bd327;let _0x1efb5c=D(_0x41ad2b['documentData']),_0x349403=O(_0x1efb5c),_0x34162b=me(_0x349403,_0x41ad2b[_0x1a93ff(0x1ce)]);return _0x34162b&&de(_0x1efb5c,_0x349403,_0x34162b,_0x41ad2b['cursorOffset'],_0x41ad2b[_0x1a93ff(0x1a7)])||null;}function de(_0x2aa5e5,_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af){const _0x36c2b2=_0x1bd327;let _0x3b326a=we(_0x2b19a5,_0x41467a,_0x1b181a,_0x3f47af);if(!_0x3b326a)return null;let _0x4793d9=_0x3b326a[_0x36c2b2(0x1fb)]-0x1;return Te(_0x2b19a5,_0x3b326a[_0x36c2b2(0x1a6)][_0x36c2b2(0x1fd)],_0x3b326a['paragraph'][_0x36c2b2(0x1fd)]+0x1),{'nextDocumentData':_0x2aa5e5,'cursorOffset':_0x4793d9};}function fe(_0x21fe89,_0x34897b){const _0x11c956=_0x1bd327;var _0x385980;return _0x21fe89==null||(_0x385980=_0x21fe89[_0x11c956(0x203)])==null?void 0x0:_0x385980[_0x11c956(0x197)](_0x26c736=>_0x26c736[_0x11c956(0x206)]===_0x6a5755['CODE']&&_0x26c736[_0x11c956(0x1fd)]<=_0x34897b&&_0x34897b<=_0x26c736[_0x11c956(0x1f1)]);}function pe(_0x56192e){const _0x5f05ea=_0x1bd327;var _0x23a9a6;let _0x11282a=_0x56192e['documentData'][_0x5f05ea(0x188)];if(!_0x11282a)return!0x1;let _0x57709c=_0x56192e[_0x5f05ea(0x1c7)]==='left'?_0x56192e['cursorOffset']-0x1:_0x56192e[_0x5f05ea(0x1ce)],_0x39fd08=_0x56192e['direction']===_0x5f05ea(0x1cb)?_0x56192e[_0x5f05ea(0x1ce)]+0x1:_0x57709c;return((_0x23a9a6=_0x11282a['blockRanges'])==null?[]:_0x23a9a6)[_0x5f05ea(0x1a5)](_0x3f6abd=>_0x3f6abd[_0x5f05ea(0x206)]===_0x6a5755['CODE']?_0x57709c===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x57709c===_0x3f6abd[_0x5f05ea(0x1f1)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1fd)]||_0x39fd08===_0x3f6abd[_0x5f05ea(0x1f1)]:!0x1);}function me(_0x2c6898,_0xf4ff8){const _0x5d399e=_0x1bd327;var _0x472668;return(_0x472668=_0x2c6898[_0x5d399e(0x203)])==null?void 0x0:_0x472668[_0x5d399e(0x197)](_0xb61d1b=>{const _0x5d37d8=_0x5d399e;let _0x1b51c6=j(_0x2c6898,_0xb61d1b);return _0xb61d1b['blockType']===_0x6a5755['CODE']&&_0xb61d1b[_0x5d37d8(0x1fd)]<=_0xf4ff8&&_0xf4ff8<=_0x1b51c6+0x2;});}function E(_0x458b7d,_0x489504,_0x2bc312=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x458b7d&&_0x2bc312?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x44be7c,_0x4bc7e9,_0x25ba3d,_0x30a93c=!0x1){const _0x5cd192=_0x1bd327;var _0x2ce1ac;let _0x5344c5=((_0x2ce1ac=_0x44be7c[_0x5cd192(0x1b9)])==null?[]:_0x2ce1ac)[_0x5cd192(0x205)](_0x3f030f=>_0x3f030f[_0x5cd192(0x1fd)]>_0x4bc7e9&&_0x3f030f[_0x5cd192(0x1fd)]<_0x25ba3d);_0x5344c5[_0x5cd192(0x1ac)]((_0x5f0914,_0x3dcf59)=>{const _0x9d20d5=_0x5cd192;var _0x8b41d2;_0x5f0914[_0x9d20d5(0x180)]={...(_0x8b41d2=_0x5f0914[_0x9d20d5(0x180)])==null?{}:_0x8b41d2,...E(_0x3dcf59===0x0,_0x3dcf59===_0x5344c5['length']-0x1,_0x30a93c)};});}function ge(_0x4ad119){const _0x5535b6=_0x1bd327;var _0xce39d,_0x144fd5;let _0x45235c={..._0x4ad119==null?{}:_0x4ad119};return delete _0x45235c[_0x5535b6(0x181)],delete _0x45235c[_0x5535b6(0x185)],delete _0x45235c[_0x5535b6(0x1c1)],delete _0x45235c['spaceBelow'],((_0xce39d=_0x45235c[_0x5535b6(0x18e)])==null?void 0x0:_0xce39d['ff'])===ie&&((_0x144fd5=_0x45235c['textStyle'])==null?void 0x0:_0x144fd5['fs'])===0xc&&delete _0x45235c['textStyle'],_0x45235c;}function _e(_0x39acef,_0x19b342){const _0x264dfc=_0x1bd327;var _0x384293;let _0x84bf9e=j(_0x39acef,_0x19b342);return((_0x384293=_0x39acef['paragraphs'])==null?[]:_0x384293)[_0x264dfc(0x205)](_0x136ab6=>_0x136ab6[_0x264dfc(0x1fd)]>_0x19b342[_0x264dfc(0x1fd)]&&_0x136ab6['startIndex']<_0x84bf9e);}function ve(_0x5dc6d1,_0x227382,_0x483b94){const _0xaee304=_0x1bd327;let _0x24a3fe=A(_0x5dc6d1,_0x227382,_0x483b94),_0x49d44c=_0x5dc6d1['dataStream'][_0xaee304(0x1e5)](_0x24a3fe,_0x483b94[_0xaee304(0x1fd)]);return Array[_0xaee304(0x1a0)](_0x49d44c)['every'](_0x19949c=>_0x19949c===_0x217bb8[_0xaee304(0x1ff)]||_0x19949c===_0x217bb8[_0xaee304(0x1fc)]);}function D(_0x4e4dd3){const _0x41d14f=_0x1bd327;return _0x4a3ab2[_0x41d14f(0x19f)](_0x4e4dd3);}function O(_0x1bea0e){const _0x4865fa=_0x1bd327;if(!_0x1bea0e[_0x4865fa(0x188)])throw Error(_0x4865fa(0x1a4));return _0x1bea0e['body'];}function ye(_0x49c63f,_0x4337e4,_0xda48a8){const _0x577f82=_0x1bd327;if(_0x4337e4==null||_0xda48a8==null){let _0xfd5252=xe(_0x49c63f);return{'startOffset':_0xfd5252,'endOffset':_0xfd5252};}let _0x116a08=Math[_0x577f82(0x1ec)](_0x4337e4,_0xda48a8),_0x537020=Math[_0x577f82(0x18c)](_0x4337e4,_0xda48a8);if(_0x116a08===_0x537020){let _0x34e1e1=be(_0x49c63f,_0x116a08);return{'startOffset':_0x34e1e1,'endOffset':_0x34e1e1};}return Ce(_0x49c63f,_0x116a08,_0x537020);}function be(_0x35c68a,_0xa9c61b){const _0x8b96db=_0x1bd327;return _0xa9c61b===0x0&&_0x35c68a[_0x8b96db(0x1ef)][0x0]===_0x217bb8[_0x8b96db(0x1d2)]?0x1:_0xa9c61b;}function xe(_0x56bc62){const _0x4ee74d=_0x1bd327;return _0x56bc62[_0x4ee74d(0x1ef)][_0x4ee74d(0x1ad)](_0x217bb8['SECTION_BREAK'])?Math[_0x4ee74d(0x18c)](0x0,_0x56bc62['dataStream'][_0x4ee74d(0x1f9)]-0x1):_0x56bc62[_0x4ee74d(0x1ef)]['length'];}function Se(_0x3455a9,_0x3495ae,_0xa65481){const _0x393514=_0x1bd327;var _0x35a43b;let _0x37ce59=Math['min'](_0x3495ae,_0xa65481),_0x1b3cde=Math[_0x393514(0x18c)](_0x3495ae,_0xa65481);return!!((_0x35a43b=_0x3455a9[_0x393514(0x19b)])!=null&&_0x35a43b[_0x393514(0x1a5)](_0x408f38=>_0x37ce59>_0x408f38[_0x393514(0x1fd)]&&_0x37ce59<_0x408f38[_0x393514(0x1f1)]||_0x1b3cde>_0x408f38[_0x393514(0x1fd)]&&_0x1b3cde<_0x408f38[_0x393514(0x1f1)]||_0x37ce59<=_0x408f38['startIndex']&&_0x1b3cde>=_0x408f38[_0x393514(0x1f1)]));}function Ce(_0xd26515,_0x4a7336,_0x33153e){const _0x3da9ec=_0x1bd327;var _0x151edc,_0x5411e1;let _0x22d7b6=[...(_0x151edc=_0xd26515[_0x3da9ec(0x1b9)])==null?[]:_0x151edc][_0x3da9ec(0x1e2)]((_0x99b405,_0x59d2b1)=>_0x99b405[_0x3da9ec(0x1fd)]-_0x59d2b1[_0x3da9ec(0x1fd)]),_0x2aa74e=_0x22d7b6[_0x3da9ec(0x197)]((_0x2c17e0,_0x390a6e)=>(_0x390a6e===0x0?0x0:_0x22d7b6[_0x390a6e-0x1][_0x3da9ec(0x1fd)]+0x1)<=_0x4a7336&&_0x4a7336<=_0x2c17e0[_0x3da9ec(0x1fd)]),_0x9698d1=(_0x5411e1=_0x22d7b6[_0x3da9ec(0x197)](_0x387917=>_0x387917[_0x3da9ec(0x1fd)]>=_0x33153e-0x1))==null?_0x22d7b6[_0x22d7b6[_0x3da9ec(0x1f9)]-0x1]:_0x5411e1;return{'startOffset':_0x2aa74e?k(_0x22d7b6,_0x2aa74e):_0x4a7336,'endOffset':_0x9698d1?_0x9698d1[_0x3da9ec(0x1fd)]+0x1:_0x33153e};}function k(_0x4f80a2,_0x7f6a8){const _0x50d442=_0x1bd327;let _0x49d983=_0x4f80a2['indexOf'](_0x7f6a8);return _0x49d983>0x0?_0x4f80a2[_0x49d983-0x1][_0x50d442(0x1fd)]+0x1:0x0;}function A(_0x4e7661,_0x326d5f,_0x19ca94){const _0x35eadf=_0x1bd327;var _0x3a3fcb;return Math[_0x35eadf(0x18c)](k((_0x3a3fcb=_0x4e7661[_0x35eadf(0x1b9)])==null?[]:_0x3a3fcb,_0x19ca94),_0x326d5f[_0x35eadf(0x1fd)]+0x1);}function j(_0x37a3e0,_0x437f7f){const _0x598c77=_0x1bd327;return _0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]]===_0x217bb8[_0x598c77(0x1fc)]?_0x437f7f['endIndex']:_0x37a3e0[_0x598c77(0x1ef)][_0x437f7f[_0x598c77(0x1f1)]+0x1]===_0x217bb8['BLOCK_END']?_0x437f7f['endIndex']+0x1:_0x437f7f[_0x598c77(0x1f1)];}function we(_0x50d5b5,_0xec2ffe,_0x5aeec5,_0x255f5f){const _0x5f2bb5=_0x1bd327;var _0x5b8c3b,_0x418197;let _0x184e23=j(_0x50d5b5,_0xec2ffe),_0x1f6762=((_0x5b8c3b=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x5b8c3b)['find'](_0x22c608=>_0x22c608[_0x5f2bb5(0x1fd)]===_0x184e23+0x1);if(!_0x1f6762||_0x255f5f!=null&&_0x1f6762['startIndex']!==_0x255f5f||_0x5aeec5<_0x184e23||_0x5aeec5>_0x1f6762[_0x5f2bb5(0x1fd)]+0x1||_0x50d5b5['dataStream'][_0x1f6762[_0x5f2bb5(0x1fd)]]!==_0x217bb8[_0x5f2bb5(0x1d2)])return null;let _0x5b6aac=k((_0x418197=_0x50d5b5[_0x5f2bb5(0x1b9)])==null?[]:_0x418197,_0x1f6762),_0x4e092a=_0x50d5b5['dataStream'][_0x5f2bb5(0x1e5)](_0x5b6aac,_0x1f6762[_0x5f2bb5(0x1fd)]);return Array[_0x5f2bb5(0x1a0)](_0x4e092a)[_0x5f2bb5(0x1ae)](_0x3f70ae=>_0x3f70ae===_0x217bb8['BLOCK_END'])?{'paragraph':_0x1f6762,'endTokenOffset':_0x184e23}:null;}function M(_0x3975cf,_0x4296b8){const _0x275dbc=_0x1bd327;var _0x4ad9e1;let _0x14d249=j(_0x3975cf,_0x4296b8),_0x10f7ff=_0x3975cf[_0x275dbc(0x1ef)][_0x14d249+0x1];_0x10f7ff!==_0x217bb8[_0x275dbc(0x1c2)]&&_0x10f7ff!==void 0x0||N(_0x3975cf,_0x14d249+0x1,_0x217bb8[_0x275dbc(0x1d2)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x48477c(new Set((_0x4ad9e1=_0x3975cf['paragraphs'])==null?void 0x0:_0x4ad9e1['map'](_0x557883=>_0x557883['paragraphId'])))}]});}function N(_0xa28d4e,_0x2c44e7,_0x167a30,_0x175274={}){const _0x56d5f8=_0x1bd327;var _0x47ae69,_0x36f9db;if(_0x167a30){if(_0xa28d4e[_0x56d5f8(0x1ef)]=''+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](0x0,_0x2c44e7)+_0x167a30+_0xa28d4e[_0x56d5f8(0x1ef)][_0x56d5f8(0x1e5)](_0x2c44e7),Ee(_0xa28d4e,_0x2c44e7,_0x167a30[_0x56d5f8(0x1f9)]),(_0x47ae69=_0x175274[_0x56d5f8(0x1b9)])!=null&&_0x47ae69['length']){var _0x31db16;_0xa28d4e['paragraphs']=[...(_0x31db16=_0xa28d4e[_0x56d5f8(0x1b9)])==null?[]:_0x31db16,..._0x175274[_0x56d5f8(0x1b9)][_0x56d5f8(0x1c8)](_0x403e1a=>({..._0x403e1a,'startIndex':_0x403e1a['startIndex']+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x26b6dd,_0x58a042)=>_0x26b6dd[_0x56d5f8(0x1fd)]-_0x58a042[_0x56d5f8(0x1fd)]);}if((_0x36f9db=_0x175274[_0x56d5f8(0x203)])!=null&&_0x36f9db[_0x56d5f8(0x1f9)]){var _0x30079;_0xa28d4e[_0x56d5f8(0x203)]=[...(_0x30079=_0xa28d4e['blockRanges'])==null?[]:_0x30079,..._0x175274['blockRanges'][_0x56d5f8(0x1c8)](_0x1bd614=>({..._0x1bd614,'startIndex':_0x1bd614['startIndex']+_0x2c44e7,'endIndex':_0x1bd614[_0x56d5f8(0x1f1)]+_0x2c44e7}))][_0x56d5f8(0x1e2)]((_0x1ae35f,_0x29b703)=>_0x1ae35f[_0x56d5f8(0x1fd)]-_0x29b703['startIndex']);}}}function Te(_0xf71c93,_0x138d59,_0x352d52){const _0x21982d=_0x1bd327;let _0xc9ddd0=_0x352d52-_0x138d59;_0xf71c93[_0x21982d(0x1ef)]=''+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](0x0,_0x138d59)+_0xf71c93[_0x21982d(0x1ef)][_0x21982d(0x1e5)](_0x352d52),De(_0xf71c93,_0x138d59,_0xc9ddd0);}function Ee(_0x200e2c,_0x55851a,_0x3b608a){const _0x23db52=_0x1bd327;_0x200e2c[_0x23db52(0x1b9)]=P(_0x200e2c['paragraphs'],_0x55851a,_0x3b608a),_0x200e2c['sectionBreaks']=P(_0x200e2c[_0x23db52(0x1a9)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x192)]=P(_0x200e2c[_0x23db52(0x192)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x204)]=Oe(_0x200e2c[_0x23db52(0x204)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x19b)]=I(_0x200e2c[_0x23db52(0x19b)],_0x55851a,_0x3b608a),_0x200e2c[_0x23db52(0x1bb)]=I(_0x200e2c['customRanges'],_0x55851a,_0x3b608a),_0x200e2c['customDecorations']=I(_0x200e2c[_0x23db52(0x207)],_0x55851a,_0x3b608a),_0x200e2c['blockRanges']=I(_0x200e2c[_0x23db52(0x203)],_0x55851a,_0x3b608a);}function De(_0x4d39c7,_0xcb9b1f,_0x208f86){const _0x1f2d6f=_0x1bd327;var _0x30d90c,_0x57fc56;_0x4d39c7[_0x1f2d6f(0x1b9)]=F(_0x4d39c7[_0x1f2d6f(0x1b9)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1a9)]=F(_0x4d39c7[_0x1f2d6f(0x1a9)],_0xcb9b1f,_0x208f86),_0x4d39c7['customBlocks']=F(_0x4d39c7[_0x1f2d6f(0x192)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x204)]=(_0x30d90c=L((_0x57fc56=_0x4d39c7[_0x1f2d6f(0x204)])==null?void 0x0:_0x57fc56[_0x1f2d6f(0x1c8)](_0x36c2a2=>({..._0x36c2a2,'startIndex':_0x36c2a2['st'],'endIndex':_0x36c2a2['ed']})),_0xcb9b1f,_0x208f86))==null?void 0x0:_0x30d90c[_0x1f2d6f(0x1c8)](_0x4b84b9=>{let {startIndex:_0x5da132,endIndex:_0x4d29f3,..._0x3788e8}=_0x4b84b9;return{..._0x3788e8,'st':_0x5da132,'ed':_0x4d29f3};}),_0x4d39c7[_0x1f2d6f(0x19b)]=L(_0x4d39c7[_0x1f2d6f(0x19b)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x1bb)]=L(_0x4d39c7[_0x1f2d6f(0x1bb)],_0xcb9b1f,_0x208f86),_0x4d39c7[_0x1f2d6f(0x207)]=L(_0x4d39c7[_0x1f2d6f(0x207)],_0xcb9b1f,_0x208f86),_0x4d39c7['blockRanges']=L(_0x4d39c7[_0x1f2d6f(0x203)],_0xcb9b1f,_0x208f86);}function P(_0x4d9a0e,_0x33fb7e,_0x5eeb7d){const _0x8c3a7a=_0x1bd327;return _0x4d9a0e==null?void 0x0:_0x4d9a0e[_0x8c3a7a(0x1c8)](_0x2b76b8=>_0x2b76b8[_0x8c3a7a(0x1fd)]>=_0x33fb7e?{..._0x2b76b8,'startIndex':_0x2b76b8[_0x8c3a7a(0x1fd)]+_0x5eeb7d}:_0x2b76b8);}function F(_0x3b741,_0x3e1bbd,_0x53760b){const _0x119fcd=_0x1bd327;let _0x395b10=_0x3e1bbd+_0x53760b;return _0x3b741==null?void 0x0:_0x3b741[_0x119fcd(0x1c8)](_0x540d27=>_0x540d27['startIndex']>=_0x3e1bbd&&_0x540d27['startIndex']<_0x395b10?null:_0x540d27[_0x119fcd(0x1fd)]>=_0x395b10?{..._0x540d27,'startIndex':_0x540d27[_0x119fcd(0x1fd)]-_0x53760b}:_0x540d27)[_0x119fcd(0x205)](_0x49e67d=>_0x49e67d!=null);}function Oe(_0x1c1f0f,_0x3ab0bb,_0x3fec73){const _0xcd7fad=_0x1bd327;return _0x1c1f0f==null?void 0x0:_0x1c1f0f[_0xcd7fad(0x1c8)](_0x35900f=>_0x35900f['st']>=_0x3ab0bb?{..._0x35900f,'st':_0x35900f['st']+_0x3fec73,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f['ed']>_0x3ab0bb?{..._0x35900f,'ed':_0x35900f['ed']+_0x3fec73}:_0x35900f);}function I(_0xc008e9,_0x527f21,_0xca30d2){const _0x17b99d=_0x1bd327;return _0xc008e9==null?void 0x0:_0xc008e9[_0x17b99d(0x1c8)](_0x858c64=>_0x858c64[_0x17b99d(0x1fd)]>=_0x527f21?{..._0x858c64,'startIndex':_0x858c64[_0x17b99d(0x1fd)]+_0xca30d2,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64[_0x17b99d(0x1f1)]>=_0x527f21?{..._0x858c64,'endIndex':_0x858c64[_0x17b99d(0x1f1)]+_0xca30d2}:_0x858c64);}function L(_0x27156c,_0x454c7d,_0x24f59c){const _0x49a940=_0x1bd327;let _0x5e3ddb=_0x454c7d+_0x24f59c;return _0x27156c==null?void 0x0:_0x27156c['map'](_0x1ce14b=>_0x1ce14b[_0x49a940(0x1fd)]>=_0x454c7d&&_0x1ce14b['endIndex']<_0x5e3ddb?null:_0x1ce14b[_0x49a940(0x1fd)]>=_0x5e3ddb?{..._0x1ce14b,'startIndex':_0x1ce14b[_0x49a940(0x1fd)]-_0x24f59c,'endIndex':_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c}:_0x1ce14b[_0x49a940(0x1f1)]>=_0x454c7d?{..._0x1ce14b,'startIndex':_0x1ce14b['startIndex']<_0x454c7d?_0x1ce14b[_0x49a940(0x1fd)]:_0x454c7d,'endIndex':Math['max'](_0x454c7d,_0x1ce14b[_0x49a940(0x1f1)]-_0x24f59c)}:_0x1ce14b)[_0x49a940(0x205)](_0xe31228=>_0xe31228!=null);}function R(_0x3b14de,_0x535110,_0x3ffa3a,_0x3b3057){_0x3b14de==null||_0x3b14de['forEach'](_0x4cf0d0=>{const _0x3746eb=_0x3851;_0x4cf0d0[_0x3746eb(0x1fd)]>=_0x535110&&_0x4cf0d0[_0x3746eb(0x1fd)]<_0x3ffa3a&&(_0x4cf0d0[_0x3746eb(0x1fd)]+=_0x3b3057);});}function ke(_0x2f7b24,_0x3ffb3e,_0xd534d9,_0xf7faa0){const _0xc99b3f=_0x1bd327;_0x2f7b24==null||_0x2f7b24[_0xc99b3f(0x1ac)](_0x36ab66=>{_0x36ab66['st']>=_0x3ffb3e&&_0x36ab66['st']<_0xd534d9?(_0x36ab66['st']+=_0xf7faa0,_0x36ab66['ed']+=_0xf7faa0):_0x36ab66['ed']>_0x3ffb3e&&_0x36ab66['ed']<_0xd534d9&&(_0x36ab66['ed']+=_0xf7faa0);});}function z(_0x153e56,_0x16d801,_0x315824,_0xf8c1bf){const _0x2cdbab=_0x1bd327;_0x153e56==null||_0x153e56[_0x2cdbab(0x1ac)](_0xed04af=>{const _0x5c3d08=_0x2cdbab;_0xed04af[_0x5c3d08(0x1fd)]>=_0x16d801&&_0xed04af[_0x5c3d08(0x1fd)]<_0x315824?(_0xed04af[_0x5c3d08(0x1fd)]+=_0xf8c1bf,_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf):_0xed04af[_0x5c3d08(0x1f1)]>_0x16d801&&_0xed04af['endIndex']<_0x315824&&(_0xed04af[_0x5c3d08(0x1f1)]+=_0xf8c1bf);});}function B(_0x453884){'@babel/helpers - typeof';const _0x298355=_0x1bd327;return B=typeof Symbol==_0x298355(0x1ab)&&typeof Symbol[_0x298355(0x1bc)]=='symbol'?function(_0x3a6add){return typeof _0x3a6add;}:function(_0x20ef5b){const _0x142d6a=_0x298355;return _0x20ef5b&&typeof Symbol==_0x142d6a(0x1ab)&&_0x20ef5b[_0x142d6a(0x1df)]===Symbol&&_0x20ef5b!==Symbol[_0x142d6a(0x1a1)]?'symbol':typeof _0x20ef5b;},B(_0x453884);}function Ae(_0x32bc2b,_0xb504e8){const _0x50839f=_0x1bd327;if(B(_0x32bc2b)!=_0x50839f(0x1fa)||!_0x32bc2b)return _0x32bc2b;var _0x1093cd=_0x32bc2b[Symbol[_0x50839f(0x186)]];if(_0x1093cd!==void 0x0){var _0x403ab9=_0x1093cd[_0x50839f(0x1c3)](_0x32bc2b,_0xb504e8||_0x50839f(0x189));if(B(_0x403ab9)!=_0x50839f(0x1fa))return _0x403ab9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xb504e8===_0x50839f(0x187)?String:Number)(_0x32bc2b);}function je(_0xb79d14){const _0x49a588=_0x1bd327;var _0x22a035=Ae(_0xb79d14,_0x49a588(0x187));return B(_0x22a035)=='symbol'?_0x22a035:_0x22a035+'';}function V(_0x23e699,_0xfbc1c1,_0x3096f0){const _0x44cb34=_0x1bd327;return(_0xfbc1c1=je(_0xfbc1c1))in _0x23e699?Object[_0x44cb34(0x1b0)](_0x23e699,_0xfbc1c1,{'value':_0x3096f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x23e699[_0xfbc1c1]=_0x3096f0,_0x23e699;}var H=class extends _0x4a26dc{constructor(..._0x16ff2e){const _0x34cc19=_0x1bd327;super(..._0x16ff2e),V(this,_0x34cc19(0x199),new Map()),V(this,_0x34cc19(0x1d5),new _0x39b06c()),V(this,'change$',this[_0x34cc19(0x1d5)]['asObservable']());}[_0x1bd327(0x1fe)](_0x5d0c6a,_0x3a910a){const _0x56b25c=_0x1bd327;return w(this[_0x56b25c(0x199)][_0x56b25c(0x1a2)](_0x5d0c6a))[_0x56b25c(0x1b6)][_0x3a910a];}['setCodeConfig'](_0x5ab6cc,_0x3b4e6f,_0x23847b){const _0x56731c=_0x1bd327;this['_setResource'](_0x5ab6cc,_0x3b4e6f,T(this[_0x56731c(0x199)][_0x56731c(0x1a2)](_0x5ab6cc),_0x3b4e6f,_0x23847b));}[_0x1bd327(0x1f4)](_0x3f323b,_0x3a18eb){const _0x4416b8=_0x1bd327;this[_0x4416b8(0x1b1)](_0x3f323b,_0x3a18eb,re(this[_0x4416b8(0x199)][_0x4416b8(0x1a2)](_0x3f323b),_0x3a18eb));}[_0x1bd327(0x1e9)](_0x2c8102){const _0x5966b5=_0x1bd327;return w(this[_0x5966b5(0x199)][_0x5966b5(0x1a2)](_0x2c8102));}['deserialize'](_0x14e27c,_0x291d84){const _0x96de54=_0x1bd327;this[_0x96de54(0x199)][_0x96de54(0x1f3)](_0x14e27c,w(_0x291d84)),this[_0x96de54(0x1d5)][_0x96de54(0x19a)]({'unitId':_0x14e27c});}[_0x1bd327(0x1d6)](_0x5c7260){const _0x444b4c=_0x1bd327;this[_0x444b4c(0x199)]['delete'](_0x5c7260),this[_0x444b4c(0x1d5)][_0x444b4c(0x19a)]({'unitId':_0x5c7260});}[_0x1bd327(0x1a8)](){const _0x582283=_0x1bd327;super[_0x582283(0x1a8)](),this['_resources'][_0x582283(0x19e)](),this[_0x582283(0x1d5)][_0x582283(0x1ee)]();}['_setResource'](_0x194146,_0x5d57ac,_0x446e5a){const _0x487ed6=_0x1bd327;this[_0x487ed6(0x199)][_0x487ed6(0x1f3)](_0x194146,_0x446e5a),this[_0x487ed6(0x1d5)]['next']({'unitId':_0x194146,'blockId':_0x5d57ac});}};const Me={'id':_0x1bd327(0x1d9),'type':_0xd6e375['COMMAND'],'handler':_0x29eb50=>{const _0x2183b6=_0x1bd327;let _0x246ac5=Le(_0x29eb50);if(_0x246ac5)return _0x29eb50['get'](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x246ac5['startOffset'],'endOffset':_0x246ac5['endOffset'],'unitId':_0x246ac5['unitId']});let _0x5eb727=Re(_0x29eb50);if(!_0x5eb727)return!0x1;let _0x5880d4=_0x5eb727[_0x2183b6(0x1fd)]+0x1;return _0x29eb50[_0x2183b6(0x1a2)](_0x32af23)[_0x2183b6(0x18d)](U['id'],{'startOffset':_0x5880d4,'endOffset':_0x5880d4});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0xd6e375[_0x1bd327(0x1da)],'handler':()=>!0x0},U={'id':_0x1bd327(0x1f2),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1f8820,_0x29352d)=>{const _0x2b5a3d=_0x1bd327;var _0x4ee1cc,_0x572f04,_0x62d625;let _0x205e36=W(_0x1f8820,_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1d3)]);if(!_0x205e36)return!0x1;let _0x4e0de2=G(_0x1f8820),_0x355e16=ae({'blockId':(_0x4ee1cc=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1e1)])==null?_0x414e01(0x6):_0x4ee1cc,'config':_0x29352d==null?void 0x0:_0x29352d['config'],'documentData':_0x205e36[_0x2b5a3d(0x208)],'endOffset':(_0x572f04=_0x29352d==null?void 0x0:_0x29352d[_0x2b5a3d(0x1ea)])==null?_0x4e0de2==null?void 0x0:_0x4e0de2[_0x2b5a3d(0x1ea)]:_0x572f04,'metadata':_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1e9)](_0x205e36[_0x2b5a3d(0x1d3)]),'startOffset':(_0x62d625=_0x29352d==null?void 0x0:_0x29352d['startOffset'])==null?_0x4e0de2==null?void 0x0:_0x4e0de2['startOffset']:_0x62d625}),_0x2c26c2=q(_0x205e36[_0x2b5a3d(0x1cc)],_0x205e36[_0x2b5a3d(0x1d3)],_0x205e36[_0x2b5a3d(0x208)],_0x355e16[_0x2b5a3d(0x1e7)],_0x355e16[_0x2b5a3d(0x1ce)]);return _0x2c26c2&&_0x355e16['nextMetadata']&&_0x205e36[_0x2b5a3d(0x1d8)][_0x2b5a3d(0x1dd)](_0x205e36[_0x2b5a3d(0x1d3)],_0x355e16[_0x2b5a3d(0x1c5)]),_0x2c26c2;}},Pe={'id':_0x1bd327(0x194),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x5921c7,_0x1ec69b)=>{const _0x3b668a=_0x1bd327;if(!_0x1ec69b)return!0x1;let _0x5bbb35=W(_0x5921c7,_0x1ec69b[_0x3b668a(0x1d3)]);if(!_0x5bbb35)return!0x1;let _0x3c4a7a=ce({'blockId':_0x1ec69b['blockId'],'config':_0x1ec69b[_0x3b668a(0x1c0)],'documentData':_0x5bbb35[_0x3b668a(0x208)],'metadata':_0x5bbb35[_0x3b668a(0x1d8)][_0x3b668a(0x1e9)](_0x5bbb35['unitId'])});return _0x3c4a7a[_0x3b668a(0x1c5)]&&_0x5bbb35['model']['deserialize'](_0x5bbb35[_0x3b668a(0x1d3)],_0x3c4a7a[_0x3b668a(0x1c5)]),!0x0;}},Fe={'id':_0x1bd327(0x1f8),'type':_0xd6e375[_0x1bd327(0x1da)],'handler':(_0x1df13c,_0x5a40b9)=>{const _0x3fea1c=_0x1bd327;var _0x5e716a,_0x23a537;let _0x446f03=W(_0x1df13c,_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1d3)]);if(!_0x446f03)return!0x1;let _0x50e886=(_0x5e716a=_0x5a40b9==null?void 0x0:_0x5a40b9[_0x3fea1c(0x1ce)])==null?(_0x23a537=G(_0x1df13c))==null?void 0x0:_0x23a537[_0x3fea1c(0x18a)]:_0x5e716a;if(_0x50e886==null)return!0x1;let _0x8535b5=le({'cursorOffset':_0x50e886,'documentData':_0x446f03[_0x3fea1c(0x208)]});return _0x8535b5?q(_0x446f03[_0x3fea1c(0x1cc)],_0x446f03[_0x3fea1c(0x1d3)],_0x446f03[_0x3fea1c(0x208)],_0x8535b5[_0x3fea1c(0x1e7)],_0x8535b5[_0x3fea1c(0x1ce)]):!0x1;}},Ie={'id':_0x1bd327(0x1b8),'type':_0xd6e375['COMMAND'],'handler':(_0x77f739,_0x486c1b)=>{const _0x2d60e6=_0x1bd327;var _0x1e2277,_0x549cc6;let _0x3ae69e=W(_0x77f739,_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1d3)]);if(!_0x3ae69e)return!0x1;let _0x260d4e=(_0x1e2277=_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1ce)])==null?(_0x549cc6=G(_0x77f739))==null?void 0x0:_0x549cc6[_0x2d60e6(0x18a)]:_0x1e2277;if(_0x260d4e==null)return!0x1;let _0xf4ccdc=ue({'cursorOffset':_0x260d4e,'documentData':_0x3ae69e['previousDocumentData'],'paragraphStartIndex':_0x486c1b==null?void 0x0:_0x486c1b[_0x2d60e6(0x1a7)]});return _0xf4ccdc?q(_0x3ae69e[_0x2d60e6(0x1cc)],_0x3ae69e[_0x2d60e6(0x1d3)],_0x3ae69e[_0x2d60e6(0x208)],_0xf4ccdc['nextDocumentData'],_0xf4ccdc[_0x2d60e6(0x1ce)]):!0x1;}};function W(_0x55225f,_0x292aa8){const _0x7144ea=_0x1bd327;let _0x310aee=_0x55225f['get'](_0x33ba15),_0x2ac379=_0x292aa8?_0x310aee[_0x7144ea(0x1bd)](_0x292aa8):_0x310aee[_0x7144ea(0x1d7)](_0x2864e1['UNIVER_DOC']);return _0x2ac379?{'commandService':_0x55225f['get'](_0x32af23),'model':_0x55225f[_0x7144ea(0x1a2)](H),'previousDocumentData':_0x2ac379[_0x7144ea(0x1e0)](),'unitId':_0x2ac379[_0x7144ea(0x1b4)]()}:null;}function G(_0x40943f){const _0x536967=_0x1bd327;var _0x581005;return(_0x581005=_0x40943f['get'](_0x35cf98)[_0x536967(0x19c)]())==null?void 0x0:_0x581005[0x0];}function Le(_0x7db706){const _0x3c9ab5=_0x1bd327;var _0x49ea34;let _0x2101c7=(_0x49ea34=_0x7db706[_0x3c9ab5(0x1a2)](_0x33ba15)[_0x3c9ab5(0x1d7)](_0x2864e1[_0x3c9ab5(0x1e3)]))==null?void 0x0:_0x49ea34[_0x3c9ab5(0x1b4)]();try{return _0x7db706['get'](_0xc64f97)[_0x3c9ab5(0x1c9)](_0x2101c7);}catch{return null;}}function Re(_0x2f5d32){const _0x45eb4f=_0x1bd327;var _0x5285f1,_0x523ba4,_0x34a159;let _0x44f8af=G(_0x2f5d32);if(!_0x44f8af)return null;let _0x30d20b=_0x2f5d32[_0x45eb4f(0x1a2)](_0x33ba15)[_0x45eb4f(0x1d7)](_0x2864e1[_0x45eb4f(0x1e3)]),_0x3538a6=_0x30d20b==null?void 0x0:_0x30d20b[_0x45eb4f(0x196)]();return _0x3538a6?(_0x5285f1=_0x1b614b[_0x45eb4f(0x1d4)][_0x45eb4f(0x190)](_0x44f8af,(_0x523ba4=_0x3538a6[_0x45eb4f(0x1b9)])==null?[]:_0x523ba4,(_0x34a159=_0x3538a6[_0x45eb4f(0x1ef)])==null?'':_0x34a159)[0x0])==null?null:_0x5285f1:null;}function ze(_0x359e97,_0x3c41db){const _0x2b5d35=_0x1bd327;var _0x298ea1,_0x1c67e4,_0x218fc2,_0x5aa8fd,_0x498dd6,_0x29b5ba,_0x54bd74,_0x56ff95,_0xbe39ee,_0x2bd1bb,_0x494bc6,_0x3cf8c1,_0x201298,_0x46ef73,_0xff51f1,_0x1a56a2,_0x30496e,_0x591179;let _0x572943=_0x273043['getInstance']();return[K(_0x572943,['body',_0x2b5d35(0x1ef)],(_0x298ea1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x298ea1[_0x2b5d35(0x1ef)],(_0x1c67e4=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x1c67e4[_0x2b5d35(0x1ef)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x1b9)],(_0x218fc2=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x218fc2[_0x2b5d35(0x1b9)],(_0x5aa8fd=_0x3c41db['body'])==null?void 0x0:_0x5aa8fd[_0x2b5d35(0x1b9)]),K(_0x572943,[_0x2b5d35(0x188),'sectionBreaks'],(_0x498dd6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x498dd6['sectionBreaks'],(_0x29b5ba=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x29b5ba['sectionBreaks']),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x204)],(_0x54bd74=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x54bd74[_0x2b5d35(0x204)],(_0x56ff95=_0x3c41db['body'])==null?void 0x0:_0x56ff95[_0x2b5d35(0x204)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x192)],(_0xbe39ee=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xbe39ee[_0x2b5d35(0x192)],(_0x2bd1bb=_0x3c41db['body'])==null?void 0x0:_0x2bd1bb[_0x2b5d35(0x192)]),K(_0x572943,['body',_0x2b5d35(0x1bb)],(_0x494bc6=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x494bc6['customRanges'],(_0x3cf8c1=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x3cf8c1['customRanges']),K(_0x572943,['body',_0x2b5d35(0x207)],(_0x201298=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x201298[_0x2b5d35(0x207)],(_0x46ef73=_0x3c41db['body'])==null?void 0x0:_0x46ef73['customDecorations']),K(_0x572943,['body',_0x2b5d35(0x19b)],(_0xff51f1=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0xff51f1[_0x2b5d35(0x19b)],(_0x1a56a2=_0x3c41db['body'])==null?void 0x0:_0x1a56a2[_0x2b5d35(0x19b)]),K(_0x572943,[_0x2b5d35(0x188),_0x2b5d35(0x203)],(_0x30496e=_0x359e97[_0x2b5d35(0x188)])==null?void 0x0:_0x30496e[_0x2b5d35(0x203)],(_0x591179=_0x3c41db[_0x2b5d35(0x188)])==null?void 0x0:_0x591179[_0x2b5d35(0x203)])][_0x2b5d35(0x205)](Boolean)['reduce']((_0x272929,_0x550fb4)=>_0x273043[_0x2b5d35(0x1dc)](_0x272929,_0x550fb4),null);}function K(_0x1bf19f,_0x25d391,_0x18a388,_0x4f7f7f){const _0x12b61e=_0x1bd327;return _0x4a3ab2[_0x12b61e(0x1f0)](_0x18a388,_0x4f7f7f)?null:_0x1bf19f[_0x12b61e(0x1e6)](_0x25d391,_0x18a388,_0x4f7f7f);}function q(_0x102a09,_0x12fad5,_0x10bd5b,_0x194550,_0x459a94){let _0xa05d4a=ze(_0x10bd5b,_0x194550);return _0xa05d4a?!!_0x102a09['syncExecuteCommand'](_0x397e41['id'],{'unitId':_0x12fad5,'actions':_0xa05d4a,'textRanges':[{'startOffset':_0x459a94,'endOffset':_0x459a94,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x1bd327(0x1b2);var Be='@univerjs-pro/docs-code',Ve='1.0.0-alpha.0';const Y={};function X(_0x3da22e,_0x47f5b0){return function(_0x26db2b,_0x241fef){_0x47f5b0(_0x26db2b,_0x241fef,_0x3da22e);};}function Z(_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9){const _0x2e5d71=_0x1bd327;var _0x27c364=arguments[_0x2e5d71(0x1f9)],_0x8609e=_0x27c364<0x3?_0x16a23b:_0x366bf9===null?_0x366bf9=Object['getOwnPropertyDescriptor'](_0x16a23b,_0x8cb1a7):_0x366bf9,_0xafaa47;if(typeof Reflect==_0x2e5d71(0x1fa)&&typeof Reflect[_0x2e5d71(0x1ba)]==_0x2e5d71(0x1ab))_0x8609e=Reflect[_0x2e5d71(0x1ba)](_0x59f597,_0x16a23b,_0x8cb1a7,_0x366bf9);else{for(var _0x18f287=_0x59f597[_0x2e5d71(0x1f9)]-0x1;_0x18f287>=0x0;_0x18f287--)(_0xafaa47=_0x59f597[_0x18f287])&&(_0x8609e=(_0x27c364<0x3?_0xafaa47(_0x8609e):_0x27c364>0x3?_0xafaa47(_0x16a23b,_0x8cb1a7,_0x8609e):_0xafaa47(_0x16a23b,_0x8cb1a7))||_0x8609e);}return _0x27c364>0x3&&_0x8609e&&Object['defineProperty'](_0x16a23b,_0x8cb1a7,_0x8609e),_0x8609e;}function _0x3851(_0x51d6b9,_0x4a2f16){_0x51d6b9=_0x51d6b9-0x180;const _0x27d7a2=_0x27d7();let _0x385151=_0x27d7a2[_0x51d6b9];return _0x385151;}let Q=class extends _0x4a26dc{constructor(_0x5b7001,_0x350133){const _0x3db34e=_0x1bd327;super(),this['_resourceManagerService']=_0x5b7001,this['_docsCodeModel']=_0x350133,this[_0x3db34e(0x193)]();}[_0x1bd327(0x193)](){const _0x11ebd9=_0x1bd327;this['disposeWithMe'](this[_0x11ebd9(0x201)][_0x11ebd9(0x1ca)]({'pluginName':J,'businesses':[_0x2864e1[_0x11ebd9(0x1e3)]],'toJson':_0x3b4bdc=>JSON[_0x11ebd9(0x19d)](this['_docsCodeModel']['serialize'](_0x3b4bdc)),'parseJson':_0x37cc05=>w(JSON[_0x11ebd9(0x18b)](_0x37cc05)),'onLoad':(_0x170642,_0x5b640d)=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1dd)](_0x170642,_0x5b640d),'onUnLoad':_0x4b803e=>this[_0x11ebd9(0x1f5)][_0x11ebd9(0x1d6)](_0x4b803e)}));}};Q=Z([X(0x0,_0xca8f68),X(0x1,_0x30337f(H))],Q);let $=class extends _0x394390{constructor(_0x47ae68=Y,_0x57af85,_0x102eb1,_0x4d1a98){const _0x372e21=_0x1bd327;super(),this[_0x372e21(0x1c4)]=_0x47ae68,this[_0x372e21(0x182)]=_0x57af85,this[_0x372e21(0x191)]=_0x102eb1,this['_configService']=_0x4d1a98;let {..._0x2310ab}=_0x4c5915({},Y,this[_0x372e21(0x1c4)]);this[_0x372e21(0x1de)][_0x372e21(0x1cf)](_0x372e21(0x1d0),_0x2310ab);}['onStarting'](){const _0x3b64d5=_0x1bd327;this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([H]),this[_0x3b64d5(0x182)][_0x3b64d5(0x1c6)]([Q]),this['_injector']['get'](H),this['_injector'][_0x3b64d5(0x1a2)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x3b64d5(0x1ac)](_0x353933=>this['disposeWithMe'](this[_0x3b64d5(0x191)]['registerCommand'](_0x353933)));}};V($,_0x1bd327(0x1bf),J),V($,_0x1bd327(0x1cd),Be),V($,_0x1bd327(0x1b3),Ve),V($,'type',_0x2864e1[_0x1bd327(0x1e3)]),$=Z([_0x5e8859(_0x5411ad,_0x8ce557),X(0x1,_0x30337f(_0x4af702)),X(0x2,_0x32af23),X(0x3,_0x4adc10)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x4a8a2d=_0x28c9;(function(_0x33c0ef,_0x4e7947){const _0x4b3364=_0x28c9,_0x3719a4=_0x33c0ef();while(!![]){try{const _0x5996e2=-parseInt(_0x4b3364(0x1d9))/0x1*(-parseInt(_0x4b3364(0x1ce))/0x2)+parseInt(_0x4b3364(0x203))/0x3*(-parseInt(_0x4b3364(0x208))/0x4)+parseInt(_0x4b3364(0x1b6))/0x5*(-parseInt(_0x4b3364(0x22d))/0x6)+parseInt(_0x4b3364(0x209))/0x7*(-parseInt(_0x4b3364(0x1b9))/0x8)+parseInt(_0x4b3364(0x231))/0x9+-parseInt(_0x4b3364(0x21b))/0xa+parseInt(_0x4b3364(0x1d0))/0xb*(parseInt(_0x4b3364(0x1e8))/0xc);if(_0x5996e2===_0x4e7947)break;else _0x3719a4['push'](_0x3719a4['shift']());}catch(_0x59c62f){_0x3719a4['push'](_0x3719a4['shift']());}}}(_0x58a1,0x5beda));import{BuildTextUtils as _0x24fe28,CommandType as _0x20b98a,DataStreamTreeTokenType as _0x3ba019,DependentOn as _0xb86e0,Disposable as _0x3e8f03,DocumentBlockRangeType as _0x54e1d3,ICommandService as _0x3735ed,IConfigService as _0x42560c,IResourceManagerService as _0x3f714d,IUniverInstanceService as _0x3abeac,Inject as _0x4628b1,Injector as _0x531f72,JSONX as _0x2387fb,Plugin as _0x5357ad,Tools as _0xb48f1,UniverInstanceType as _0x2bb6f5,createParagraphId as _0x34e429,generateRandomId as _0x97c26f,merge as _0x3de4b6}from'@univerjs/core';import{DocContentInsertService as _0x2040aa,DocSelectionManagerService as _0x291a89,RichTextEditingMutation as _0x4297bb,UniverDocsPlugin as _0x1f5d37}from'@univerjs/docs';import{Subject as _0x363e20}from'rxjs';import{UniverLicensePlugin as _0x141bd9}from'@univerjs-pro/license';const S={'language':_0x4a8a2d(0x1f2),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x485bad){return{...S,..._0x485bad};}function w(_0x194da7){const _0x516533=_0x4a8a2d;var _0x1d5729;let _0x5a3d1f=(_0x1d5729=_0x194da7==null?void 0x0:_0x194da7['codes'])==null?{}:_0x1d5729;return{'codes':Object['fromEntries'](Object['entries'](_0x5a3d1f)[_0x516533(0x1c6)](([_0x23b746,_0x4926ac])=>[_0x23b746,C(_0x4926ac)]))};}function T(_0x56bf6f,_0x2b78f7,_0x2c447a){const _0x52d863=_0x4a8a2d;let _0xdb2ca7=w(_0x56bf6f);return _0xdb2ca7[_0x52d863(0x1cb)][_0x2b78f7]=C({..._0xdb2ca7['codes'][_0x2b78f7],..._0x2c447a}),_0xdb2ca7;}function re(_0x5c91e9,_0x22410c){let _0x2653fb=w(_0x5c91e9);return delete _0x2653fb['codes'][_0x22410c],_0x2653fb;}const ie=_0x4a8a2d(0x1f8);function ae(_0x151d84){const _0x5a812b=_0x4a8a2d;var _0x36a4f9,_0xafde3b,_0x5a0ce7;let _0x167a80=D(_0x151d84[_0x5a812b(0x21a)]),_0x24b65b=O(_0x167a80),_0x5d4611=se(_0x151d84[_0x5a812b(0x20a)],_0x151d84['endOffset']),_0x298645=_0x5d4611?(_0x36a4f9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x36a4f9[_0x5a812b(0x23a)](_0xbcb53=>_0xbcb53['startIndex']===_0x5d4611[_0x5a812b(0x20a)]&&_0xbcb53[_0x5a812b(0x1bd)]+0x1===_0x5d4611[_0x5a812b(0x227)]):void 0x0,{startOffset:_0x5ca80c,endOffset:_0x1ebe75}=_0x298645?_0x5d4611:ye(_0x24b65b,_0x151d84[_0x5a812b(0x20a)],_0x151d84[_0x5a812b(0x227)]),_0x50afb5=Se(_0x24b65b,_0x5ca80c,_0x1ebe75),_0x34c30c=(_0xafde3b=_0x298645==null?void 0x0:_0x298645['blockId'])==null?_0x151d84[_0x5a812b(0x1e4)]:_0xafde3b,_0x1606b8=T(_0x151d84[_0x5a812b(0x1bc)],_0x34c30c,{...S,..._0x151d84[_0x5a812b(0x211)]});if(_0x298645)return _0x298645[_0x5a812b(0x1f4)]=_0x54e1d3[_0x5a812b(0x200)],oe(_0x24b65b,_0x5ca80c,_0x1ebe75),he(_0x24b65b,_0x5ca80c,_0x1ebe75,_0x50afb5),M(_0x24b65b,_0x298645),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};if(_0x5ca80c===_0x1ebe75){var _0x5cbb11,_0x5960e9;let _0x3e4e1c=''+_0x3ba019[_0x5a812b(0x234)]+_0x3ba019[_0x5a812b(0x225)]+_0x3ba019['BLOCK_END'];N(_0x24b65b,_0x5ca80c,_0x3e4e1c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x34e429(new Set((_0x5cbb11=_0x24b65b[_0x5a812b(0x1ba)])==null?void 0x0:_0x5cbb11[_0x5a812b(0x1c6)](_0x2926b2=>_0x2926b2[_0x5a812b(0x20e)]))),'paragraphStyle':E(!0x0,!0x0,_0x50afb5)}],'blockRanges':[{'blockId':_0x34c30c,'blockType':_0x54e1d3['CODE'],'startIndex':0x0,'endIndex':_0x3e4e1c['length']-0x1}]});let _0x564362=(_0x5960e9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x5960e9[_0x5a812b(0x23a)](_0x319a88=>_0x319a88[_0x5a812b(0x1e4)]===_0x34c30c);return _0x564362&&M(_0x24b65b,_0x564362),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}N(_0x24b65b,_0x1ebe75,_0x3ba019['BLOCK_END']),N(_0x24b65b,_0x5ca80c,_0x3ba019[_0x5a812b(0x234)]),he(_0x24b65b,_0x5ca80c,_0x1ebe75+0x1,_0x50afb5);let _0x5e3282={'blockId':_0x34c30c,'blockType':_0x54e1d3[_0x5a812b(0x200)],'startIndex':_0x5ca80c,'endIndex':_0x1ebe75+0x1};return _0x24b65b[_0x5a812b(0x1c1)]=[...(_0x5a0ce7=_0x24b65b[_0x5a812b(0x1c1)])==null?[]:_0x5a0ce7,_0x5e3282]['sort']((_0x3d9679,_0x323898)=>_0x3d9679[_0x5a812b(0x1f0)]-_0x323898[_0x5a812b(0x1f0)]),M(_0x24b65b,_0x5e3282),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}function oe(_0x211db4,_0x314088,_0x431e22){const _0x15e86d=_0x4a8a2d;var _0x17578a;((_0x17578a=_0x211db4['paragraphs'])==null?[]:_0x17578a)['filter'](_0x553339=>_0x553339['startIndex']>_0x314088&&_0x553339[_0x15e86d(0x1f0)]<_0x431e22)['forEach'](_0x2a3de8=>{const _0x3b2a5f=_0x15e86d;var _0x4bbc9f;let _0x156109={...(_0x4bbc9f=_0x2a3de8[_0x3b2a5f(0x22c)])==null?{}:_0x4bbc9f};delete _0x156109['spaceAbove'],delete _0x156109[_0x3b2a5f(0x1ca)],_0x2a3de8[_0x3b2a5f(0x22c)]=_0x156109;});}function se(_0x457e64,_0x248d17){return _0x457e64==null||_0x248d17==null||_0x457e64===_0x248d17?null:{'startOffset':Math['min'](_0x457e64,_0x248d17),'endOffset':Math['max'](_0x457e64,_0x248d17)};}function ce(_0x3858ad){const _0x591bfa=_0x4a8a2d;return{'nextDocumentData':D(_0x3858ad[_0x591bfa(0x21a)]),'nextMetadata':T(_0x3858ad[_0x591bfa(0x1bc)],_0x3858ad['blockId'],_0x3858ad[_0x591bfa(0x211)]),'cursorOffset':0x0};}function le(_0x10af95){const _0x50aa72=_0x4a8a2d;var _0x5aa243,_0x357c42;let _0x2d332a=D(_0x10af95[_0x50aa72(0x21a)]),_0x414cf5=O(_0x2d332a),_0x1a8ea0=me(_0x414cf5,_0x10af95[_0x50aa72(0x1f6)]);if(!_0x1a8ea0)return null;let _0x2e6234=_e(_0x414cf5,_0x1a8ea0),_0x7f904f=_0x2e6234[_0x2e6234[_0x50aa72(0x1dd)]-0x1];if(!_0x7f904f||!ve(_0x414cf5,_0x1a8ea0,_0x7f904f)||_0x10af95[_0x50aa72(0x1f6)]<_0x7f904f[_0x50aa72(0x1f0)])return null;let _0x45fcd5=A(_0x414cf5,_0x1a8ea0,_0x7f904f);if(_0x45fcd5>=_0x1a8ea0[_0x50aa72(0x1bd)])return null;_0x414cf5[_0x50aa72(0x23c)]=[_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](0x0,_0x45fcd5),_0x3ba019[_0x50aa72(0x1e7)],_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)]),_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x1a8ea0[_0x50aa72(0x1bd)]+0x1)]['join'](''),R(_0x414cf5['paragraphs'],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x207)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x1cf)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),ke(_0x414cf5[_0x50aa72(0x206)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),z(_0x414cf5[_0x50aa72(0x1ee)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x1d8)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x238)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),(_0x5aa243=_0x414cf5[_0x50aa72(0x1c1)])==null||_0x5aa243[_0x50aa72(0x1e2)](_0x3caec1=>{const _0x3ec7c3=_0x50aa72;_0x3caec1===_0x1a8ea0||_0x3caec1['blockId']===_0x1a8ea0[_0x3ec7c3(0x1e4)]?_0x3caec1[_0x3ec7c3(0x1bd)]=_0x45fcd5:_0x3caec1[_0x3ec7c3(0x1f0)]>=_0x45fcd5&&_0x3caec1[_0x3ec7c3(0x1f0)]<_0x1a8ea0[_0x3ec7c3(0x1bd)]&&(_0x3caec1['startIndex']+=0x1,_0x3caec1[_0x3ec7c3(0x1bd)]+=0x1);});let _0x39bb51=_e(_0x414cf5,{..._0x1a8ea0,'endIndex':_0x45fcd5});_0x39bb51[_0x50aa72(0x1e2)]((_0x57dc22,_0x30959e)=>{const _0x35497c=_0x50aa72;var _0x1005ac;_0x57dc22['paragraphStyle']={...(_0x1005ac=_0x57dc22[_0x35497c(0x22c)])==null?{}:_0x1005ac,...E(_0x30959e===0x0,_0x30959e===_0x39bb51[_0x35497c(0x1dd)]-0x1)};});let _0xeeca1e=(_0x357c42=_0x414cf5[_0x50aa72(0x1ba)])==null?void 0x0:_0x357c42[_0x50aa72(0x23a)](_0x10901d=>_0x10901d[_0x50aa72(0x1f0)]===_0x45fcd5+0x1);return _0xeeca1e&&(_0xeeca1e['paragraphStyle']=ge(_0xeeca1e[_0x50aa72(0x22c)])),{'nextDocumentData':_0x2d332a,'cursorOffset':_0x45fcd5+0x1};}function ue(_0x4943b5){const _0x211f64=_0x4a8a2d;let _0xb19ded=D(_0x4943b5[_0x211f64(0x21a)]),_0x35cf1b=O(_0xb19ded),_0x525eeb=me(_0x35cf1b,_0x4943b5['cursorOffset']);return _0x525eeb&&de(_0xb19ded,_0x35cf1b,_0x525eeb,_0x4943b5[_0x211f64(0x1f6)],_0x4943b5[_0x211f64(0x1e1)])||null;}function de(_0x15ca94,_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f){const _0x46d349=_0x4a8a2d;let _0x288034=we(_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f);if(!_0x288034)return null;let _0x207bd1=_0x288034[_0x46d349(0x1d3)]-0x1;return Te(_0x30a6c0,_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)],_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)]+0x1),{'nextDocumentData':_0x15ca94,'cursorOffset':_0x207bd1};}function fe(_0x25af29,_0x1a0d81){const _0x414408=_0x4a8a2d;var _0x189422;return _0x25af29==null||(_0x189422=_0x25af29[_0x414408(0x1c1)])==null?void 0x0:_0x189422[_0x414408(0x23a)](_0x1fd816=>_0x1fd816[_0x414408(0x1f4)]===_0x54e1d3[_0x414408(0x200)]&&_0x1fd816[_0x414408(0x1f0)]<=_0x1a0d81&&_0x1a0d81<=_0x1fd816[_0x414408(0x1bd)]);}function pe(_0x2b27b0){const _0x2b45b7=_0x4a8a2d;var _0x188ec0;let _0xc4f97d=_0x2b27b0['documentData'][_0x2b45b7(0x22f)];if(!_0xc4f97d)return!0x1;let _0x3ac209=_0x2b27b0['direction']===_0x2b45b7(0x1eb)?_0x2b27b0[_0x2b45b7(0x1f6)]-0x1:_0x2b27b0['cursorOffset'],_0x6406aa=_0x2b27b0[_0x2b45b7(0x1c5)]===_0x2b45b7(0x22a)?_0x2b27b0[_0x2b45b7(0x1f6)]+0x1:_0x3ac209;return((_0x188ec0=_0xc4f97d[_0x2b45b7(0x1c1)])==null?[]:_0x188ec0)[_0x2b45b7(0x236)](_0x12d4ad=>_0x12d4ad[_0x2b45b7(0x1f4)]===_0x54e1d3[_0x2b45b7(0x200)]?_0x3ac209===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x3ac209===_0x12d4ad[_0x2b45b7(0x1bd)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1bd)]:!0x1);}function me(_0x13fc4e,_0x5a78e7){const _0x5f297a=_0x4a8a2d;var _0x3395f0;return(_0x3395f0=_0x13fc4e[_0x5f297a(0x1c1)])==null?void 0x0:_0x3395f0['find'](_0x5a8b18=>{const _0x13c31d=_0x5f297a;let _0x38c79f=j(_0x13fc4e,_0x5a8b18);return _0x5a8b18['blockType']===_0x54e1d3[_0x13c31d(0x200)]&&_0x5a8b18['startIndex']<=_0x5a78e7&&_0x5a78e7<=_0x38c79f+0x2;});}function E(_0x17e584,_0x241c84,_0x51e922=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x17e584&&_0x51e922?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56028c,_0x34f293,_0x19ed8c,_0x36d47a=!0x1){const _0x506ac7=_0x4a8a2d;var _0x166610;let _0x401af5=((_0x166610=_0x56028c[_0x506ac7(0x1ba)])==null?[]:_0x166610)[_0x506ac7(0x233)](_0x5c7d6c=>_0x5c7d6c[_0x506ac7(0x1f0)]>_0x34f293&&_0x5c7d6c[_0x506ac7(0x1f0)]<_0x19ed8c);_0x401af5[_0x506ac7(0x1e2)]((_0xa56718,_0x263a05)=>{const _0x67f467=_0x506ac7;var _0x24e661;_0xa56718[_0x67f467(0x22c)]={...(_0x24e661=_0xa56718[_0x67f467(0x22c)])==null?{}:_0x24e661,...E(_0x263a05===0x0,_0x263a05===_0x401af5[_0x67f467(0x1dd)]-0x1,_0x36d47a)};});}function ge(_0x1d5cf3){const _0xbd2508=_0x4a8a2d;var _0x1d1447,_0x4e09f6;let _0x2a8721={..._0x1d5cf3==null?{}:_0x1d5cf3};return delete _0x2a8721[_0xbd2508(0x20c)],delete _0x2a8721['indentStart'],delete _0x2a8721[_0xbd2508(0x217)],delete _0x2a8721[_0xbd2508(0x1ca)],((_0x1d1447=_0x2a8721[_0xbd2508(0x1e5)])==null?void 0x0:_0x1d1447['ff'])===ie&&((_0x4e09f6=_0x2a8721['textStyle'])==null?void 0x0:_0x4e09f6['fs'])===0xc&&delete _0x2a8721[_0xbd2508(0x1e5)],_0x2a8721;}function _e(_0x268343,_0x4e7bc4){const _0x218459=_0x4a8a2d;var _0x2c1244;let _0x556d85=j(_0x268343,_0x4e7bc4);return((_0x2c1244=_0x268343[_0x218459(0x1ba)])==null?[]:_0x2c1244)[_0x218459(0x233)](_0x5822ff=>_0x5822ff[_0x218459(0x1f0)]>_0x4e7bc4[_0x218459(0x1f0)]&&_0x5822ff['startIndex']<_0x556d85);}function _0x28c9(_0x1e6757,_0x175dbf){_0x1e6757=_0x1e6757-0x1b6;const _0x58a183=_0x58a1();let _0x28c9d9=_0x58a183[_0x1e6757];return _0x28c9d9;}function ve(_0x76282b,_0x5ef0eb,_0x5ed3f2){const _0x254cec=_0x4a8a2d;let _0x2afe1d=A(_0x76282b,_0x5ef0eb,_0x5ed3f2),_0x5c9d23=_0x76282b[_0x254cec(0x23c)][_0x254cec(0x1f5)](_0x2afe1d,_0x5ed3f2[_0x254cec(0x1f0)]);return Array[_0x254cec(0x214)](_0x5c9d23)[_0x254cec(0x1bf)](_0x339f88=>_0x339f88===_0x3ba019[_0x254cec(0x234)]||_0x339f88===_0x3ba019[_0x254cec(0x1e7)]);}function D(_0x156523){const _0x4521c6=_0x4a8a2d;return _0xb48f1[_0x4521c6(0x1d2)](_0x156523);}function O(_0x1bf3c9){const _0x17ba9a=_0x4a8a2d;if(!_0x1bf3c9[_0x17ba9a(0x22f)])throw Error(_0x17ba9a(0x224));return _0x1bf3c9['body'];}function ye(_0x4bf66a,_0x108f21,_0x262c76){const _0x3d4f6c=_0x4a8a2d;if(_0x108f21==null||_0x262c76==null){let _0x2dee3f=xe(_0x4bf66a);return{'startOffset':_0x2dee3f,'endOffset':_0x2dee3f};}let _0x37d761=Math[_0x3d4f6c(0x235)](_0x108f21,_0x262c76),_0x442582=Math['max'](_0x108f21,_0x262c76);if(_0x37d761===_0x442582){let _0x5f373a=be(_0x4bf66a,_0x37d761);return{'startOffset':_0x5f373a,'endOffset':_0x5f373a};}return Ce(_0x4bf66a,_0x37d761,_0x442582);}function be(_0x4cd764,_0x276e03){const _0x5ec11e=_0x4a8a2d;return _0x276e03===0x0&&_0x4cd764[_0x5ec11e(0x23c)][0x0]===_0x3ba019[_0x5ec11e(0x225)]?0x1:_0x276e03;}function xe(_0x5539f0){const _0x449468=_0x4a8a2d;return _0x5539f0[_0x449468(0x23c)][_0x449468(0x21f)](_0x3ba019['SECTION_BREAK'])?Math[_0x449468(0x1e6)](0x0,_0x5539f0[_0x449468(0x23c)][_0x449468(0x1dd)]-0x1):_0x5539f0['dataStream'][_0x449468(0x1dd)];}function Se(_0x423855,_0x463210,_0x3896b8){const _0x1b3077=_0x4a8a2d;var _0x2e80e0;let _0x4e426e=Math[_0x1b3077(0x235)](_0x463210,_0x3896b8),_0x2fc2d5=Math[_0x1b3077(0x1e6)](_0x463210,_0x3896b8);return!!((_0x2e80e0=_0x423855[_0x1b3077(0x1ee)])!=null&&_0x2e80e0['some'](_0x2804c0=>_0x4e426e>_0x2804c0[_0x1b3077(0x1f0)]&&_0x4e426e<_0x2804c0[_0x1b3077(0x1bd)]||_0x2fc2d5>_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5<_0x2804c0[_0x1b3077(0x1bd)]||_0x4e426e<=_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5>=_0x2804c0[_0x1b3077(0x1bd)]));}function Ce(_0x4cc54b,_0x268161,_0x4880cb){const _0xc2e62c=_0x4a8a2d;var _0x4b1804,_0x157733;let _0x4e865c=[...(_0x4b1804=_0x4cc54b[_0xc2e62c(0x1ba)])==null?[]:_0x4b1804][_0xc2e62c(0x239)]((_0xb1769b,_0x5753db)=>_0xb1769b[_0xc2e62c(0x1f0)]-_0x5753db[_0xc2e62c(0x1f0)]),_0x3d4eff=_0x4e865c['find']((_0x5c92cd,_0x29a26e)=>(_0x29a26e===0x0?0x0:_0x4e865c[_0x29a26e-0x1][_0xc2e62c(0x1f0)]+0x1)<=_0x268161&&_0x268161<=_0x5c92cd['startIndex']),_0x1ed691=(_0x157733=_0x4e865c[_0xc2e62c(0x23a)](_0x211e54=>_0x211e54[_0xc2e62c(0x1f0)]>=_0x4880cb-0x1))==null?_0x4e865c[_0x4e865c[_0xc2e62c(0x1dd)]-0x1]:_0x157733;return{'startOffset':_0x3d4eff?k(_0x4e865c,_0x3d4eff):_0x268161,'endOffset':_0x1ed691?_0x1ed691['startIndex']+0x1:_0x4880cb};}function k(_0x157ccd,_0x170084){const _0x34c4ed=_0x4a8a2d;let _0x393940=_0x157ccd[_0x34c4ed(0x240)](_0x170084);return _0x393940>0x0?_0x157ccd[_0x393940-0x1]['startIndex']+0x1:0x0;}function A(_0x658122,_0x58c33d,_0x451dfa){const _0xe8904b=_0x4a8a2d;var _0x8e9a25;return Math[_0xe8904b(0x1e6)](k((_0x8e9a25=_0x658122['paragraphs'])==null?[]:_0x8e9a25,_0x451dfa),_0x58c33d[_0xe8904b(0x1f0)]+0x1);}function j(_0x54b102,_0x5a480f){const _0x8d5fec=_0x4a8a2d;return _0x54b102[_0x8d5fec(0x23c)][_0x5a480f[_0x8d5fec(0x1bd)]]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]:_0x54b102[_0x8d5fec(0x23c)][_0x5a480f['endIndex']+0x1]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]+0x1:_0x5a480f[_0x8d5fec(0x1bd)];}function we(_0x1734d9,_0x450943,_0x2df09c,_0x498a00){const _0x20b679=_0x4a8a2d;var _0x48b7c9,_0x4a2a5d;let _0x12fe04=j(_0x1734d9,_0x450943),_0x41149c=((_0x48b7c9=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x48b7c9)[_0x20b679(0x23a)](_0x41061b=>_0x41061b[_0x20b679(0x1f0)]===_0x12fe04+0x1);if(!_0x41149c||_0x498a00!=null&&_0x41149c[_0x20b679(0x1f0)]!==_0x498a00||_0x2df09c<_0x12fe04||_0x2df09c>_0x41149c[_0x20b679(0x1f0)]+0x1||_0x1734d9[_0x20b679(0x23c)][_0x41149c['startIndex']]!==_0x3ba019[_0x20b679(0x225)])return null;let _0x1eca3f=k((_0x4a2a5d=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x4a2a5d,_0x41149c),_0x454819=_0x1734d9['dataStream']['slice'](_0x1eca3f,_0x41149c[_0x20b679(0x1f0)]);return Array[_0x20b679(0x214)](_0x454819)[_0x20b679(0x1bf)](_0x37a77b=>_0x37a77b===_0x3ba019[_0x20b679(0x1e7)])?{'paragraph':_0x41149c,'endTokenOffset':_0x12fe04}:null;}function M(_0x5d7221,_0x2a40b1){const _0x3b0637=_0x4a8a2d;var _0x517a07;let _0x2c4705=j(_0x5d7221,_0x2a40b1),_0x4a4b84=_0x5d7221[_0x3b0637(0x23c)][_0x2c4705+0x1];_0x4a4b84!==_0x3ba019[_0x3b0637(0x229)]&&_0x4a4b84!==void 0x0||N(_0x5d7221,_0x2c4705+0x1,_0x3ba019[_0x3b0637(0x225)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34e429(new Set((_0x517a07=_0x5d7221[_0x3b0637(0x1ba)])==null?void 0x0:_0x517a07[_0x3b0637(0x1c6)](_0x3cb5a9=>_0x3cb5a9[_0x3b0637(0x20e)])))}]});}function N(_0xa0396,_0x5e4e9d,_0x5b6d4b,_0x3bb9ec={}){const _0x59ca28=_0x4a8a2d;var _0x1b15f9,_0x4545c4;if(_0x5b6d4b){if(_0xa0396[_0x59ca28(0x23c)]=''+_0xa0396[_0x59ca28(0x23c)]['slice'](0x0,_0x5e4e9d)+_0x5b6d4b+_0xa0396['dataStream'][_0x59ca28(0x1f5)](_0x5e4e9d),Ee(_0xa0396,_0x5e4e9d,_0x5b6d4b[_0x59ca28(0x1dd)]),(_0x1b15f9=_0x3bb9ec[_0x59ca28(0x1ba)])!=null&&_0x1b15f9[_0x59ca28(0x1dd)]){var _0x8d59fb;_0xa0396[_0x59ca28(0x1ba)]=[...(_0x8d59fb=_0xa0396[_0x59ca28(0x1ba)])==null?[]:_0x8d59fb,..._0x3bb9ec[_0x59ca28(0x1ba)][_0x59ca28(0x1c6)](_0x1ffea9=>({..._0x1ffea9,'startIndex':_0x1ffea9['startIndex']+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x545a50,_0x41062d)=>_0x545a50[_0x59ca28(0x1f0)]-_0x41062d[_0x59ca28(0x1f0)]);}if((_0x4545c4=_0x3bb9ec[_0x59ca28(0x1c1)])!=null&&_0x4545c4[_0x59ca28(0x1dd)]){var _0x172fc1;_0xa0396['blockRanges']=[...(_0x172fc1=_0xa0396['blockRanges'])==null?[]:_0x172fc1,..._0x3bb9ec['blockRanges'][_0x59ca28(0x1c6)](_0x19853b=>({..._0x19853b,'startIndex':_0x19853b[_0x59ca28(0x1f0)]+_0x5e4e9d,'endIndex':_0x19853b[_0x59ca28(0x1bd)]+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x2c1261,_0x53f498)=>_0x2c1261['startIndex']-_0x53f498[_0x59ca28(0x1f0)]);}}}function Te(_0x2259ad,_0x121220,_0x434c54){const _0x3ad431=_0x4a8a2d;let _0x14ae8e=_0x434c54-_0x121220;_0x2259ad[_0x3ad431(0x23c)]=''+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](0x0,_0x121220)+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](_0x434c54),De(_0x2259ad,_0x121220,_0x14ae8e);}function Ee(_0x43e9e3,_0x20a3ac,_0x26447c){const _0x1c8892=_0x4a8a2d;_0x43e9e3[_0x1c8892(0x1ba)]=P(_0x43e9e3[_0x1c8892(0x1ba)],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x207)]=P(_0x43e9e3['sectionBreaks'],_0x20a3ac,_0x26447c),_0x43e9e3['customBlocks']=P(_0x43e9e3['customBlocks'],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x206)]=Oe(_0x43e9e3[_0x1c8892(0x206)],_0x20a3ac,_0x26447c),_0x43e9e3['tables']=I(_0x43e9e3[_0x1c8892(0x1ee)],_0x20a3ac,_0x26447c),_0x43e9e3['customRanges']=I(_0x43e9e3[_0x1c8892(0x1d8)],_0x20a3ac,_0x26447c),_0x43e9e3['customDecorations']=I(_0x43e9e3[_0x1c8892(0x238)],_0x20a3ac,_0x26447c),_0x43e9e3['blockRanges']=I(_0x43e9e3['blockRanges'],_0x20a3ac,_0x26447c);}function De(_0x4d91c1,_0x384706,_0x3ecd85){const _0x28ae70=_0x4a8a2d;var _0x702ce5,_0x5b34b0;_0x4d91c1[_0x28ae70(0x1ba)]=F(_0x4d91c1['paragraphs'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x207)]=F(_0x4d91c1[_0x28ae70(0x207)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1cf)]=F(_0x4d91c1[_0x28ae70(0x1cf)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x206)]=(_0x702ce5=L((_0x5b34b0=_0x4d91c1['textRuns'])==null?void 0x0:_0x5b34b0[_0x28ae70(0x1c6)](_0x1eab75=>({..._0x1eab75,'startIndex':_0x1eab75['st'],'endIndex':_0x1eab75['ed']})),_0x384706,_0x3ecd85))==null?void 0x0:_0x702ce5[_0x28ae70(0x1c6)](_0x2fea58=>{let {startIndex:_0x444451,endIndex:_0x560dd9,..._0x3146b5}=_0x2fea58;return{..._0x3146b5,'st':_0x444451,'ed':_0x560dd9};}),_0x4d91c1[_0x28ae70(0x1ee)]=L(_0x4d91c1[_0x28ae70(0x1ee)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1d8)]=L(_0x4d91c1['customRanges'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x238)]=L(_0x4d91c1[_0x28ae70(0x238)],_0x384706,_0x3ecd85),_0x4d91c1['blockRanges']=L(_0x4d91c1[_0x28ae70(0x1c1)],_0x384706,_0x3ecd85);}function P(_0x16c736,_0x4b4b4f,_0x192f08){const _0x2688de=_0x4a8a2d;return _0x16c736==null?void 0x0:_0x16c736[_0x2688de(0x1c6)](_0x5a1173=>_0x5a1173[_0x2688de(0x1f0)]>=_0x4b4b4f?{..._0x5a1173,'startIndex':_0x5a1173['startIndex']+_0x192f08}:_0x5a1173);}function F(_0x2912ba,_0x46d1f3,_0x424aee){const _0x44c81d=_0x4a8a2d;let _0x5b7f66=_0x46d1f3+_0x424aee;return _0x2912ba==null?void 0x0:_0x2912ba[_0x44c81d(0x1c6)](_0x52dc9e=>_0x52dc9e[_0x44c81d(0x1f0)]>=_0x46d1f3&&_0x52dc9e['startIndex']<_0x5b7f66?null:_0x52dc9e[_0x44c81d(0x1f0)]>=_0x5b7f66?{..._0x52dc9e,'startIndex':_0x52dc9e['startIndex']-_0x424aee}:_0x52dc9e)['filter'](_0x415221=>_0x415221!=null);}function Oe(_0x32df01,_0x537bf2,_0x8b8d1d){const _0x5ba742=_0x4a8a2d;return _0x32df01==null?void 0x0:_0x32df01[_0x5ba742(0x1c6)](_0x273a88=>_0x273a88['st']>=_0x537bf2?{..._0x273a88,'st':_0x273a88['st']+_0x8b8d1d,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88['ed']>_0x537bf2?{..._0x273a88,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88);}function I(_0x9b9d4a,_0x2a7633,_0x26d93f){const _0x427625=_0x4a8a2d;return _0x9b9d4a==null?void 0x0:_0x9b9d4a[_0x427625(0x1c6)](_0x3389d8=>_0x3389d8[_0x427625(0x1f0)]>=_0x2a7633?{..._0x3389d8,'startIndex':_0x3389d8[_0x427625(0x1f0)]+_0x26d93f,'endIndex':_0x3389d8[_0x427625(0x1bd)]+_0x26d93f}:_0x3389d8['endIndex']>=_0x2a7633?{..._0x3389d8,'endIndex':_0x3389d8['endIndex']+_0x26d93f}:_0x3389d8);}function L(_0x45d6fa,_0x377e73,_0x3d5f6b){const _0x2ff15a=_0x4a8a2d;let _0xfa2d64=_0x377e73+_0x3d5f6b;return _0x45d6fa==null?void 0x0:_0x45d6fa['map'](_0x1fc5ec=>_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0x377e73&&_0x1fc5ec[_0x2ff15a(0x1bd)]<_0xfa2d64?null:_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0xfa2d64?{..._0x1fc5ec,'startIndex':_0x1fc5ec[_0x2ff15a(0x1f0)]-_0x3d5f6b,'endIndex':_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b}:_0x1fc5ec[_0x2ff15a(0x1bd)]>=_0x377e73?{..._0x1fc5ec,'startIndex':_0x1fc5ec['startIndex']<_0x377e73?_0x1fc5ec['startIndex']:_0x377e73,'endIndex':Math[_0x2ff15a(0x1e6)](_0x377e73,_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b)}:_0x1fc5ec)[_0x2ff15a(0x233)](_0x3ef21a=>_0x3ef21a!=null);}function R(_0x2cc2fc,_0x576234,_0x24ca3d,_0x3f855e){_0x2cc2fc==null||_0x2cc2fc['forEach'](_0x1afc45=>{const _0x20e3aa=_0x28c9;_0x1afc45['startIndex']>=_0x576234&&_0x1afc45[_0x20e3aa(0x1f0)]<_0x24ca3d&&(_0x1afc45['startIndex']+=_0x3f855e);});}function ke(_0x15bea0,_0x17e830,_0x34f1e9,_0x2ec254){const _0x21e132=_0x4a8a2d;_0x15bea0==null||_0x15bea0[_0x21e132(0x1e2)](_0x2fce1=>{_0x2fce1['st']>=_0x17e830&&_0x2fce1['st']<_0x34f1e9?(_0x2fce1['st']+=_0x2ec254,_0x2fce1['ed']+=_0x2ec254):_0x2fce1['ed']>_0x17e830&&_0x2fce1['ed']<_0x34f1e9&&(_0x2fce1['ed']+=_0x2ec254);});}function z(_0x5223e9,_0x379138,_0x114465,_0x48f290){const _0x324870=_0x4a8a2d;_0x5223e9==null||_0x5223e9[_0x324870(0x1e2)](_0x1df7b6=>{const _0x4bd01a=_0x324870;_0x1df7b6[_0x4bd01a(0x1f0)]>=_0x379138&&_0x1df7b6[_0x4bd01a(0x1f0)]<_0x114465?(_0x1df7b6['startIndex']+=_0x48f290,_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290):_0x1df7b6[_0x4bd01a(0x1bd)]>_0x379138&&_0x1df7b6[_0x4bd01a(0x1bd)]<_0x114465&&(_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290);});}function B(_0x2fd0e3){'@babel/helpers - typeof';const _0x21d23d=_0x4a8a2d;return B=typeof Symbol==_0x21d23d(0x1ed)&&typeof Symbol[_0x21d23d(0x1d6)]==_0x21d23d(0x1da)?function(_0x1121ff){return typeof _0x1121ff;}:function(_0x2808c1){const _0x148d96=_0x21d23d;return _0x2808c1&&typeof Symbol==_0x148d96(0x1ed)&&_0x2808c1['constructor']===Symbol&&_0x2808c1!==Symbol[_0x148d96(0x1be)]?_0x148d96(0x1da):typeof _0x2808c1;},B(_0x2fd0e3);}function Ae(_0x115f91,_0x302b6e){const _0x4b03d7=_0x4a8a2d;if(B(_0x115f91)!=_0x4b03d7(0x1d5)||!_0x115f91)return _0x115f91;var _0x3817bf=_0x115f91[Symbol[_0x4b03d7(0x1ea)]];if(_0x3817bf!==void 0x0){var _0x525c6a=_0x3817bf[_0x4b03d7(0x1c8)](_0x115f91,_0x302b6e||_0x4b03d7(0x20b));if(B(_0x525c6a)!=_0x4b03d7(0x1d5))return _0x525c6a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x302b6e===_0x4b03d7(0x1d1)?String:Number)(_0x115f91);}function je(_0x562264){const _0x12b482=_0x4a8a2d;var _0x59f815=Ae(_0x562264,_0x12b482(0x1d1));return B(_0x59f815)==_0x12b482(0x1da)?_0x59f815:_0x59f815+'';}function V(_0x4ebb82,_0x29783a,_0x4cb423){const _0x464628=_0x4a8a2d;return(_0x29783a=je(_0x29783a))in _0x4ebb82?Object[_0x464628(0x1c7)](_0x4ebb82,_0x29783a,{'value':_0x4cb423,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebb82[_0x29783a]=_0x4cb423,_0x4ebb82;}function _0x58a1(){const _0x37f8b9=['docs-code.command.insert-below','delete','complete','indexOf','_change$','5jqMxib','_setResource','deserialize','568DROgGU','paragraphs','COMMAND','metadata','endIndex','prototype','every','clear','blockRanges','previousDocumentData','getCurrentUnitOfType','onStarting','direction','map','defineProperty','call','paragraph','spaceBelow','codes','add','_configService','298dROuVY','customBlocks','11fodUEz','string','deepClone','endTokenOffset','range','object','iterator','UNIVER_DOC','customRanges','3587CfVInx','symbol','compose','change$','length','_resourceManagerService','getUniverDocInstance','dispose','paragraphStartIndex','forEach','unitId','blockId','textStyle','max','BLOCK_END','7708764WElStu','parse','toPrimitive','left','disposeWithMe','function','tables','nextMetadata','startIndex','removeCode','javascript','decorate','blockType','slice','cursorOffset','get','monospace','version','docs-code.config','syncExecuteCommand','_commandService','nextDocumentData','model','1.0.0-alpha.1','CODE','docs-code.command.update','pluginName','6jDpmHI','consumeInsertRange','_docsCodeModel','textRuns','sectionBreaks','166872RqxqjD','6398PYBhkJ','startOffset','default','indentEnd','_config','paragraphId','setCodeConfig','_resources','config','docs-code.command.exit','getBody','from','getSnapshot','serialize','spaceAbove','@univerjs-pro/docs-code','removeUnit','documentData','3285870weuPcy','docs-code.command.insert','docs-code.command.cancel-empty-paragraph','DOC_CODE_PLUGIN','endsWith','replaceOp','getCodeConfig','registerPluginResource','set','Document\x20body\x20is\x20required','PARAGRAPH','commandService','endOffset','getParagraphsInRange','SECTION_BREAK','right','stringify','paragraphStyle','4385586ZIZPEr','getTextRanges','body','next','3667734fUoyDX','registerCommand','filter','BLOCK_START','min','some','_injector','customDecorations','sort','find','type','dataStream'];_0x58a1=function(){return _0x37f8b9;};return _0x58a1();}var H=class extends _0x3e8f03{constructor(..._0x202d30){const _0x8ee9e0=_0x4a8a2d;super(..._0x202d30),V(this,_0x8ee9e0(0x210),new Map()),V(this,'_change$',new _0x363e20()),V(this,_0x8ee9e0(0x1dc),this[_0x8ee9e0(0x241)]['asObservable']());}[_0x4a8a2d(0x221)](_0x197643,_0x58a620){const _0x27ca2e=_0x4a8a2d;return w(this[_0x27ca2e(0x210)][_0x27ca2e(0x1f7)](_0x197643))[_0x27ca2e(0x1cb)][_0x58a620];}[_0x4a8a2d(0x20f)](_0x4853b5,_0x5aaa34,_0x26ee93){const _0x449b87=_0x4a8a2d;this['_setResource'](_0x4853b5,_0x5aaa34,T(this[_0x449b87(0x210)][_0x449b87(0x1f7)](_0x4853b5),_0x5aaa34,_0x26ee93));}[_0x4a8a2d(0x1f1)](_0xf6e12d,_0x3861a5){const _0x34b295=_0x4a8a2d;this['_setResource'](_0xf6e12d,_0x3861a5,re(this[_0x34b295(0x210)][_0x34b295(0x1f7)](_0xf6e12d),_0x3861a5));}[_0x4a8a2d(0x216)](_0x388db7){const _0x5bfda3=_0x4a8a2d;return w(this[_0x5bfda3(0x210)]['get'](_0x388db7));}[_0x4a8a2d(0x1b8)](_0xe49eb4,_0x7cea61){const _0x24eff5=_0x4a8a2d;this[_0x24eff5(0x210)][_0x24eff5(0x223)](_0xe49eb4,w(_0x7cea61)),this[_0x24eff5(0x241)][_0x24eff5(0x230)]({'unitId':_0xe49eb4});}[_0x4a8a2d(0x219)](_0x102cca){const _0x439e75=_0x4a8a2d;this[_0x439e75(0x210)][_0x439e75(0x23e)](_0x102cca),this[_0x439e75(0x241)][_0x439e75(0x230)]({'unitId':_0x102cca});}[_0x4a8a2d(0x1e0)](){const _0x478bdc=_0x4a8a2d;super[_0x478bdc(0x1e0)](),this[_0x478bdc(0x210)][_0x478bdc(0x1c0)](),this[_0x478bdc(0x241)][_0x478bdc(0x23f)]();}[_0x4a8a2d(0x1b7)](_0x1838bc,_0x1d97c0,_0x1fad4f){const _0x3891a1=_0x4a8a2d;this['_resources'][_0x3891a1(0x223)](_0x1838bc,_0x1fad4f),this[_0x3891a1(0x241)][_0x3891a1(0x230)]({'unitId':_0x1838bc,'blockId':_0x1d97c0});}};const Me={'id':_0x4a8a2d(0x23d),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':_0x525534=>{const _0x3d5255=_0x4a8a2d;let _0x2442b9=Le(_0x525534);if(_0x2442b9)return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x2442b9[_0x3d5255(0x20a)],'endOffset':_0x2442b9[_0x3d5255(0x227)],'unitId':_0x2442b9[_0x3d5255(0x1e3)]});let _0x40b8a6=Re(_0x525534);if(!_0x40b8a6)return!0x1;let _0x630a60=_0x40b8a6[_0x3d5255(0x1f0)]+0x1;return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x630a60,'endOffset':_0x630a60});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x20b98a['COMMAND'],'handler':()=>!0x0},U={'id':_0x4a8a2d(0x21c),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x34e2fe,_0x11462e)=>{const _0x2f3080=_0x4a8a2d;var _0x55fe22,_0x46f79f,_0x5e0193;let _0x5b75bf=W(_0x34e2fe,_0x11462e==null?void 0x0:_0x11462e['unitId']);if(!_0x5b75bf)return!0x1;let _0x8f5b5d=G(_0x34e2fe),_0x3c869f=ae({'blockId':(_0x55fe22=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x1e4)])==null?_0x97c26f(0x6):_0x55fe22,'config':_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x211)],'documentData':_0x5b75bf[_0x2f3080(0x1c2)],'endOffset':(_0x46f79f=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x227)])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x227)]:_0x46f79f,'metadata':_0x5b75bf['model'][_0x2f3080(0x216)](_0x5b75bf[_0x2f3080(0x1e3)]),'startOffset':(_0x5e0193=_0x11462e==null?void 0x0:_0x11462e['startOffset'])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x20a)]:_0x5e0193}),_0x25363b=q(_0x5b75bf[_0x2f3080(0x226)],_0x5b75bf[_0x2f3080(0x1e3)],_0x5b75bf[_0x2f3080(0x1c2)],_0x3c869f[_0x2f3080(0x1fd)],_0x3c869f[_0x2f3080(0x1f6)]);return _0x25363b&&_0x3c869f[_0x2f3080(0x1ef)]&&_0x5b75bf[_0x2f3080(0x1fe)][_0x2f3080(0x1b8)](_0x5b75bf[_0x2f3080(0x1e3)],_0x3c869f['nextMetadata']),_0x25363b;}},Pe={'id':_0x4a8a2d(0x201),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x596b59,_0x2a5246)=>{const _0x2dad1b=_0x4a8a2d;if(!_0x2a5246)return!0x1;let _0x447ca0=W(_0x596b59,_0x2a5246[_0x2dad1b(0x1e3)]);if(!_0x447ca0)return!0x1;let _0x1ec4e5=ce({'blockId':_0x2a5246[_0x2dad1b(0x1e4)],'config':_0x2a5246['config'],'documentData':_0x447ca0[_0x2dad1b(0x1c2)],'metadata':_0x447ca0[_0x2dad1b(0x1fe)][_0x2dad1b(0x216)](_0x447ca0['unitId'])});return _0x1ec4e5[_0x2dad1b(0x1ef)]&&_0x447ca0['model'][_0x2dad1b(0x1b8)](_0x447ca0['unitId'],_0x1ec4e5[_0x2dad1b(0x1ef)]),!0x0;}},Fe={'id':_0x4a8a2d(0x212),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x510efd,_0xbfa146)=>{const _0x594323=_0x4a8a2d;var _0x4b464b,_0x4ad761;let _0x48a69b=W(_0x510efd,_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1e3)]);if(!_0x48a69b)return!0x1;let _0x3dacad=(_0x4b464b=_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1f6)])==null?(_0x4ad761=G(_0x510efd))==null?void 0x0:_0x4ad761[_0x594323(0x20a)]:_0x4b464b;if(_0x3dacad==null)return!0x1;let _0x1067fe=le({'cursorOffset':_0x3dacad,'documentData':_0x48a69b['previousDocumentData']});return _0x1067fe?q(_0x48a69b[_0x594323(0x226)],_0x48a69b[_0x594323(0x1e3)],_0x48a69b[_0x594323(0x1c2)],_0x1067fe[_0x594323(0x1fd)],_0x1067fe[_0x594323(0x1f6)]):!0x1;}},Ie={'id':_0x4a8a2d(0x21d),'type':_0x20b98a['COMMAND'],'handler':(_0x561e74,_0x45fa69)=>{const _0x4da7e9=_0x4a8a2d;var _0x599ff8,_0x542500;let _0x5727a7=W(_0x561e74,_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1e3)]);if(!_0x5727a7)return!0x1;let _0xd602b7=(_0x599ff8=_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1f6)])==null?(_0x542500=G(_0x561e74))==null?void 0x0:_0x542500['startOffset']:_0x599ff8;if(_0xd602b7==null)return!0x1;let _0x2c0745=ue({'cursorOffset':_0xd602b7,'documentData':_0x5727a7['previousDocumentData'],'paragraphStartIndex':_0x45fa69==null?void 0x0:_0x45fa69['paragraphStartIndex']});return _0x2c0745?q(_0x5727a7[_0x4da7e9(0x226)],_0x5727a7[_0x4da7e9(0x1e3)],_0x5727a7[_0x4da7e9(0x1c2)],_0x2c0745['nextDocumentData'],_0x2c0745[_0x4da7e9(0x1f6)]):!0x1;}};function W(_0x482f3b,_0x9a475b){const _0x58afea=_0x4a8a2d;let _0x4faac0=_0x482f3b['get'](_0x3abeac),_0xaaf406=_0x9a475b?_0x4faac0[_0x58afea(0x1df)](_0x9a475b):_0x4faac0[_0x58afea(0x1c3)](_0x2bb6f5[_0x58afea(0x1d7)]);return _0xaaf406?{'commandService':_0x482f3b['get'](_0x3735ed),'model':_0x482f3b['get'](H),'previousDocumentData':_0xaaf406[_0x58afea(0x215)](),'unitId':_0xaaf406['getUnitId']()}:null;}function G(_0x48d8e5){const _0x7c73c4=_0x4a8a2d;var _0x1f4ac0;return(_0x1f4ac0=_0x48d8e5[_0x7c73c4(0x1f7)](_0x291a89)[_0x7c73c4(0x22e)]())==null?void 0x0:_0x1f4ac0[0x0];}function Le(_0x50f484){const _0x335578=_0x4a8a2d;var _0x4d0fb4;let _0x5c46dc=(_0x4d0fb4=_0x50f484[_0x335578(0x1f7)](_0x3abeac)[_0x335578(0x1c3)](_0x2bb6f5[_0x335578(0x1d7)]))==null?void 0x0:_0x4d0fb4['getUnitId']();try{return _0x50f484['get'](_0x2040aa)[_0x335578(0x204)](_0x5c46dc);}catch{return null;}}function Re(_0xc8d4b2){const _0x459600=_0x4a8a2d;var _0x66885,_0x360e57,_0x1eb2a3;let _0x5323c3=G(_0xc8d4b2);if(!_0x5323c3)return null;let _0x1ddf43=_0xc8d4b2[_0x459600(0x1f7)](_0x3abeac)['getCurrentUnitOfType'](_0x2bb6f5[_0x459600(0x1d7)]),_0x5dc10f=_0x1ddf43==null?void 0x0:_0x1ddf43[_0x459600(0x213)]();return _0x5dc10f?(_0x66885=_0x24fe28[_0x459600(0x1d4)][_0x459600(0x228)](_0x5323c3,(_0x360e57=_0x5dc10f['paragraphs'])==null?[]:_0x360e57,(_0x1eb2a3=_0x5dc10f[_0x459600(0x23c)])==null?'':_0x1eb2a3)[0x0])==null?null:_0x66885:null;}function ze(_0x48f164,_0x5d6c01){const _0x2758ca=_0x4a8a2d;var _0x93d0eb,_0x24ac7b,_0x5bd531,_0xe97b8e,_0x1a541c,_0x428a1d,_0x206213,_0x371f1f,_0x104ccd,_0x3d1e1a,_0x2a8cfb,_0x3c555b,_0x19f2e1,_0x23c305,_0x3c760e,_0x399b81,_0xfc1a60,_0x147f97;let _0x59a6ac=_0x2387fb['getInstance']();return[K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x23c)],(_0x93d0eb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x93d0eb['dataStream'],(_0x24ac7b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x24ac7b['dataStream']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1ba)],(_0x5bd531=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x5bd531[_0x2758ca(0x1ba)],(_0xe97b8e=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0xe97b8e[_0x2758ca(0x1ba)]),K(_0x59a6ac,[_0x2758ca(0x22f),'sectionBreaks'],(_0x1a541c=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x1a541c[_0x2758ca(0x207)],(_0x428a1d=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x428a1d[_0x2758ca(0x207)]),K(_0x59a6ac,['body','textRuns'],(_0x206213=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x206213[_0x2758ca(0x206)],(_0x371f1f=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x371f1f[_0x2758ca(0x206)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1cf)],(_0x104ccd=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x104ccd[_0x2758ca(0x1cf)],(_0x3d1e1a=_0x5d6c01['body'])==null?void 0x0:_0x3d1e1a[_0x2758ca(0x1cf)]),K(_0x59a6ac,['body','customRanges'],(_0x2a8cfb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x2a8cfb[_0x2758ca(0x1d8)],(_0x3c555b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x3c555b[_0x2758ca(0x1d8)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x238)],(_0x19f2e1=_0x48f164['body'])==null?void 0x0:_0x19f2e1[_0x2758ca(0x238)],(_0x23c305=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x23c305[_0x2758ca(0x238)]),K(_0x59a6ac,['body',_0x2758ca(0x1ee)],(_0x3c760e=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x3c760e[_0x2758ca(0x1ee)],(_0x399b81=_0x5d6c01['body'])==null?void 0x0:_0x399b81['tables']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1c1)],(_0xfc1a60=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0xfc1a60['blockRanges'],(_0x147f97=_0x5d6c01['body'])==null?void 0x0:_0x147f97['blockRanges'])][_0x2758ca(0x233)](Boolean)['reduce']((_0x30a948,_0x36800f)=>_0x2387fb[_0x2758ca(0x1db)](_0x30a948,_0x36800f),null);}function K(_0x496e0e,_0xabeaeb,_0x3cfa55,_0x2dd681){const _0x1b2a92=_0x4a8a2d;return _0xb48f1['diffValue'](_0x3cfa55,_0x2dd681)?null:_0x496e0e[_0x1b2a92(0x220)](_0xabeaeb,_0x3cfa55,_0x2dd681);}function q(_0x1c7168,_0x258537,_0x42aba6,_0x47945c,_0x5aac27){const _0x4ca4d8=_0x4a8a2d;let _0x55ea90=ze(_0x42aba6,_0x47945c);return _0x55ea90?!!_0x1c7168[_0x4ca4d8(0x1fb)](_0x4297bb['id'],{'unitId':_0x258537,'actions':_0x55ea90,'textRanges':[{'startOffset':_0x5aac27,'endOffset':_0x5aac27,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x4a8a2d(0x21e);var Be=_0x4a8a2d(0x218),Ve=_0x4a8a2d(0x1ff);const Y={};function X(_0x51a0d7,_0x4f288e){return function(_0xc2b95e,_0xe780a8){_0x4f288e(_0xc2b95e,_0xe780a8,_0x51a0d7);};}function Z(_0xb42bea,_0x307348,_0x399d74,_0x5b84c7){const _0x3fbc82=_0x4a8a2d;var _0x5d394d=arguments[_0x3fbc82(0x1dd)],_0x1b366b=_0x5d394d<0x3?_0x307348:_0x5b84c7===null?_0x5b84c7=Object['getOwnPropertyDescriptor'](_0x307348,_0x399d74):_0x5b84c7,_0x1b2d90;if(typeof Reflect==_0x3fbc82(0x1d5)&&typeof Reflect[_0x3fbc82(0x1f3)]==_0x3fbc82(0x1ed))_0x1b366b=Reflect['decorate'](_0xb42bea,_0x307348,_0x399d74,_0x5b84c7);else{for(var _0x552881=_0xb42bea[_0x3fbc82(0x1dd)]-0x1;_0x552881>=0x0;_0x552881--)(_0x1b2d90=_0xb42bea[_0x552881])&&(_0x1b366b=(_0x5d394d<0x3?_0x1b2d90(_0x1b366b):_0x5d394d>0x3?_0x1b2d90(_0x307348,_0x399d74,_0x1b366b):_0x1b2d90(_0x307348,_0x399d74))||_0x1b366b);}return _0x5d394d>0x3&&_0x1b366b&&Object[_0x3fbc82(0x1c7)](_0x307348,_0x399d74,_0x1b366b),_0x1b366b;}let Q=class extends _0x3e8f03{constructor(_0x525000,_0x5307ab){const _0x527ba6=_0x4a8a2d;super(),this[_0x527ba6(0x1de)]=_0x525000,this[_0x527ba6(0x205)]=_0x5307ab,this['_initResource']();}['_initResource'](){const _0x138310=_0x4a8a2d;this['disposeWithMe'](this[_0x138310(0x1de)][_0x138310(0x222)]({'pluginName':J,'businesses':[_0x2bb6f5['UNIVER_DOC']],'toJson':_0x756b90=>JSON[_0x138310(0x22b)](this['_docsCodeModel'][_0x138310(0x216)](_0x756b90)),'parseJson':_0x326414=>w(JSON[_0x138310(0x1e9)](_0x326414)),'onLoad':(_0x3bb989,_0x9d9c94)=>this[_0x138310(0x205)][_0x138310(0x1b8)](_0x3bb989,_0x9d9c94),'onUnLoad':_0x1fb262=>this[_0x138310(0x205)][_0x138310(0x219)](_0x1fb262)}));}};Q=Z([X(0x0,_0x3f714d),X(0x1,_0x4628b1(H))],Q);let $=class extends _0x5357ad{constructor(_0x44a0c7=Y,_0x299616,_0x10514f,_0x5e69cf){const _0x4b2ffc=_0x4a8a2d;super(),this[_0x4b2ffc(0x20d)]=_0x44a0c7,this['_injector']=_0x299616,this[_0x4b2ffc(0x1fc)]=_0x10514f,this[_0x4b2ffc(0x1cd)]=_0x5e69cf;let {..._0x1fb70a}=_0x3de4b6({},Y,this[_0x4b2ffc(0x20d)]);this['_configService']['setConfig'](_0x4b2ffc(0x1fa),_0x1fb70a);}[_0x4a8a2d(0x1c4)](){const _0x41fbe=_0x4a8a2d;this[_0x41fbe(0x237)][_0x41fbe(0x1cc)]([H]),this[_0x41fbe(0x237)]['add']([Q]),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](H),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x41fbe(0x1e2)](_0x4ae732=>this[_0x41fbe(0x1ec)](this[_0x41fbe(0x1fc)][_0x41fbe(0x232)](_0x4ae732)));}};V($,_0x4a8a2d(0x202),J),V($,'packageName',Be),V($,_0x4a8a2d(0x1f9),Ve),V($,_0x4a8a2d(0x23b),_0x2bb6f5[_0x4a8a2d(0x1d7)]),$=Z([_0xb86e0(_0x141bd9,_0x1f5d37),X(0x1,_0x4628b1(_0x531f72)),X(0x2,_0x3735ed),X(0x3,_0x42560c)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x90747e,_0x33b602){var _0x4a225b=_0x5c8d,_0x7f8366=_0x90747e();while(!![]){try{var _0x14591c=parseInt(_0x4a225b(0x1f6))/0x1*(parseInt(_0x4a225b(0x22a))/0x2)+-parseInt(_0x4a225b(0x228))/0x3*(-parseInt(_0x4a225b(0x1d8))/0x4)+parseInt(_0x4a225b(0x22f))/0x5+parseInt(_0x4a225b(0x202))/0x6*(parseInt(_0x4a225b(0x203))/0x7)+parseInt(_0x4a225b(0x1d7))/0x8*(parseInt(_0x4a225b(0x200))/0x9)+-parseInt(_0x4a225b(0x218))/0xa*(parseInt(_0x4a225b(0x1da))/0xb)+-parseInt(_0x4a225b(0x22c))/0xc;if(_0x14591c===_0x33b602)break;else _0x7f8366['push'](_0x7f8366['shift']());}catch(_0x130e72){_0x7f8366['push'](_0x7f8366['shift']());}}}(_0xba74,0x402b5),function(_0x13c270,_0x40e4dc){var _0x532dfb=_0x5c8d;typeof exports==_0x532dfb(0x215)&&typeof module<'u'?_0x40e4dc(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define['amd']?define([_0x532dfb(0x1f7),_0x532dfb(0x1f5),_0x532dfb(0x224),_0x532dfb(0x1db)],_0x40e4dc):(_0x13c270=typeof globalThis<'u'?globalThis:_0x13c270||self,_0x40e4dc(_0x13c270['UniverProDocsCodeFacade']={},_0x13c270[_0x532dfb(0x1f9)],_0x13c270[_0x532dfb(0x1d6)],_0x13c270['UniverDocsFacade']));}(this,function(_0x581dee,_0x369f42,_0x5ce9f8,_0x393bfa){var _0x65f754=_0x5c8d;Object[_0x65f754(0x204)](_0x581dee,Symbol['toStringTag'],{'value':'Module'});function _0x2515d5(_0x5d0bee){'@babel/helpers - typeof';var _0x2189f8=_0x65f754;return _0x2515d5=typeof Symbol==_0x2189f8(0x1e7)&&typeof Symbol[_0x2189f8(0x1ec)]==_0x2189f8(0x1f2)?function(_0x59feac){return typeof _0x59feac;}:function(_0x2d4f5b){var _0x7e9718=_0x2189f8;return _0x2d4f5b&&typeof Symbol==_0x7e9718(0x1e7)&&_0x2d4f5b[_0x7e9718(0x1e4)]===Symbol&&_0x2d4f5b!==Symbol[_0x7e9718(0x21a)]?_0x7e9718(0x1f2):typeof _0x2d4f5b;},_0x2515d5(_0x5d0bee);}function _0x340b61(_0x173556,_0x972b7b){var _0x3cfeee=_0x65f754;if(_0x2515d5(_0x173556)!=_0x3cfeee(0x215)||!_0x173556)return _0x173556;var _0x7f51b8=_0x173556[Symbol[_0x3cfeee(0x201)]];if(_0x7f51b8!==void 0x0){var _0x38ec5b=_0x7f51b8[_0x3cfeee(0x20a)](_0x173556,_0x972b7b||'default');if(_0x2515d5(_0x38ec5b)!=_0x3cfeee(0x215))return _0x38ec5b;throw TypeError(_0x3cfeee(0x1e1));}return(_0x972b7b===_0x3cfeee(0x1e9)?String:Number)(_0x173556);}function _0x3c10ad(_0x3f5265){var _0x25e8a8=_0x65f754,_0x37914c=_0x340b61(_0x3f5265,_0x25e8a8(0x1e9));return _0x2515d5(_0x37914c)==_0x25e8a8(0x1f2)?_0x37914c:_0x37914c+'';}function _0x1cc9ee(_0x4afbed,_0x3fb6d8,_0x29de2c){var _0x2c9c36=_0x65f754;return(_0x3fb6d8=_0x3c10ad(_0x3fb6d8))in _0x4afbed?Object[_0x2c9c36(0x204)](_0x4afbed,_0x3fb6d8,{'value':_0x29de2c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4afbed[_0x3fb6d8]=_0x29de2c,_0x4afbed;}function _0x2c2073(_0x2b15bf,_0x1d50bc){return function(_0x3b7d03,_0x56a8bd){_0x1d50bc(_0x3b7d03,_0x56a8bd,_0x2b15bf);};}function _0x4e07e7(_0x5e973d,_0xa15ccc,_0x2c43bf,_0x4c60ee){var _0x95283e=_0x65f754,_0x40e7ee=arguments['length'],_0x2ce472=_0x40e7ee<0x3?_0xa15ccc:_0x4c60ee===null?_0x4c60ee=Object['getOwnPropertyDescriptor'](_0xa15ccc,_0x2c43bf):_0x4c60ee,_0x4f854a;if(typeof Reflect==_0x95283e(0x215)&&typeof Reflect[_0x95283e(0x206)]==_0x95283e(0x1e7))_0x2ce472=Reflect[_0x95283e(0x206)](_0x5e973d,_0xa15ccc,_0x2c43bf,_0x4c60ee);else{for(var _0x319b1d=_0x5e973d[_0x95283e(0x1fc)]-0x1;_0x319b1d>=0x0;_0x319b1d--)(_0x4f854a=_0x5e973d[_0x319b1d])&&(_0x2ce472=(_0x40e7ee<0x3?_0x4f854a(_0x2ce472):_0x40e7ee>0x3?_0x4f854a(_0xa15ccc,_0x2c43bf,_0x2ce472):_0x4f854a(_0xa15ccc,_0x2c43bf))||_0x2ce472);}return _0x40e7ee>0x3&&_0x2ce472&&Object[_0x95283e(0x204)](_0xa15ccc,_0x2c43bf,_0x2ce472),_0x2ce472;}let _0x1331ae=class{constructor(_0x301293,_0x1bc6b2,_0x106545){var _0x18e3ea=_0x65f754;this['_document']=_0x301293,this[_0x18e3ea(0x1d9)]=_0x1bc6b2,this['_injector']=_0x106545,_0x1cc9ee(this,_0x18e3ea(0x20b),void 0x0),this[_0x18e3ea(0x20b)]=this[_0x18e3ea(0x1f8)]['getId']();}['getId'](){var _0x7fce9c=_0x65f754;return this[_0x7fce9c(0x1d9)];}[_0x65f754(0x208)](){var _0x1bb2ae=_0x65f754;let _0x312e74=this['_getBlockRange']();return _0x312e74?{'blockId':_0x312e74[_0x1bb2ae(0x230)],'endIndex':_0x312e74[_0x1bb2ae(0x229)],'startIndex':_0x312e74['startIndex']}:null;}['getText'](){var _0x3bc298=_0x65f754,_0x2b815b;let _0x442391=this[_0x3bc298(0x207)](),_0x2f8ef8=(_0x2b815b=this['_getDocumentData']()['body'])==null?void 0x0:_0x2b815b[_0x3bc298(0x20d)];return!_0x442391||!_0x2f8ef8?'':_0x40c307(_0x2f8ef8[_0x3bc298(0x212)](_0x442391[_0x3bc298(0x22b)]+0x1,_0x442391['endIndex']));}['describe'](){var _0x13d70d=_0x65f754;let _0x29a5b2=this[_0x13d70d(0x208)]();return _0x29a5b2?{..._0x29a5b2,'config':this[_0x13d70d(0x231)](),'text':this[_0x13d70d(0x213)](),'type':_0x5ce9f8[_0x13d70d(0x1e8)][_0x13d70d(0x223)]}:null;}[_0x65f754(0x231)](){var _0x4db0c2=_0x65f754;return(0x0,_0x369f42[_0x4db0c2(0x211)])(this[_0x4db0c2(0x221)]['get'](_0x369f42[_0x4db0c2(0x20c)])[_0x4db0c2(0x1e3)](this[_0x4db0c2(0x20b)],this[_0x4db0c2(0x1d9)]));}[_0x65f754(0x1fe)](_0x5f0d3c){var _0xe5a794=_0x65f754;return this[_0xe5a794(0x221)][_0xe5a794(0x216)](_0x5ce9f8['ICommandService'])[_0xe5a794(0x1ed)](_0x369f42[_0xe5a794(0x20e)]['id'],{'blockId':this[_0xe5a794(0x1d9)],'config':_0x5f0d3c[_0xe5a794(0x219)],'unitId':this[_0xe5a794(0x20b)]});}['exit'](_0x2b4987){var _0x107eda=_0x65f754;return this[_0x107eda(0x221)][_0x107eda(0x216)](_0x5ce9f8[_0x107eda(0x217)])[_0x107eda(0x1ed)](_0x369f42[_0x107eda(0x227)]['id'],{'cursorOffset':_0x2b4987,'unitId':this['_unitId']});}[_0x65f754(0x1f4)](_0x58cc81={}){var _0x892ecb=_0x65f754;return this['_injector'][_0x892ecb(0x216)](_0x5ce9f8[_0x892ecb(0x217)])['syncExecuteCommand'](_0x369f42[_0x892ecb(0x205)]['id'],{..._0x58cc81,'unitId':this[_0x892ecb(0x20b)]});}['_getDocumentData'](){var _0x52941a=_0x65f754;return this[_0x52941a(0x1f8)]['save']();}[_0x65f754(0x207)](){var _0x190a57=_0x65f754,_0x1e9d4b;let _0x50cc0e=(_0x1e9d4b=this[_0x190a57(0x1f3)]()['body'])==null||(_0x1e9d4b=_0x1e9d4b[_0x190a57(0x1e6)])==null?void 0x0:_0x1e9d4b['find'](_0xe13486=>_0xe13486[_0x190a57(0x230)]===this[_0x190a57(0x1d9)]&&_0xe13486[_0x190a57(0x214)]===_0x5ce9f8[_0x190a57(0x1e8)][_0x190a57(0x223)]);return _0x50cc0e==null?null:_0x50cc0e;}};_0x1331ae=_0x4e07e7([_0x2c2073(0x2,(0x0,_0x5ce9f8[_0x65f754(0x1dc)])(_0x5ce9f8[_0x65f754(0x1df)]))],_0x1331ae);function _0x40c307(_0x1931d1){var _0x1d026c=_0x65f754;return Array['from'](_0x1931d1)[_0x1d026c(0x1fa)](_0x4855d1=>_0x4855d1===_0x5ce9f8[_0x1d026c(0x226)][_0x1d026c(0x1de)]?'\x0a':_0x4855d1)['filter'](_0x25fca5=>_0x25fca5!==_0x5ce9f8['DataStreamTreeTokenType']['BLOCK_START']&&_0x25fca5!==_0x5ce9f8[_0x1d026c(0x226)][_0x1d026c(0x22e)]&&_0x25fca5!==_0x5ce9f8['DataStreamTreeTokenType'][_0x1d026c(0x1e5)])['join']('')[_0x1d026c(0x1f0)](/\n$/,'');}var _0x2e5df8=class extends _0x393bfa['FDocument']{[_0x65f754(0x21b)](){var _0x88ab0b=_0x65f754;return this['_getBlockRanges']()[_0x88ab0b(0x225)](_0x3d838d=>_0x3d838d[_0x88ab0b(0x214)]===_0x5ce9f8[_0x88ab0b(0x1e8)]['CODE'])['map'](_0x3e61e4=>this[_0x88ab0b(0x220)](_0x3e61e4[_0x88ab0b(0x230)]));}[_0x65f754(0x1ff)](_0x3d84ca){var _0x3bab17=_0x65f754;return this[_0x3bab17(0x22d)]()[_0x3bab17(0x21e)](_0x48e3eb=>_0x48e3eb[_0x3bab17(0x230)]===_0x3d84ca&&_0x48e3eb[_0x3bab17(0x214)]===_0x5ce9f8[_0x3bab17(0x1e8)]['CODE'])?this[_0x3bab17(0x220)](_0x3d84ca):null;}[_0x65f754(0x21c)](_0x41326b){var _0x4b2c47=_0x65f754;let _0x40f6ea=this[_0x4b2c47(0x22d)]()[_0x4b2c47(0x1ef)](_0x411877=>_0x411877['blockType']===_0x5ce9f8[_0x4b2c47(0x1e8)][_0x4b2c47(0x223)]&&_0x411877[_0x4b2c47(0x22b)]<=_0x41326b&&_0x41326b<=_0x411877[_0x4b2c47(0x229)]);return _0x40f6ea?this[_0x4b2c47(0x220)](_0x40f6ea['blockId']):null;}[_0x65f754(0x222)](_0x9421c5){var _0x1f050e=_0x65f754,_0x56e09a;return(_0x56e09a=this[_0x1f050e(0x20f)](_0x9421c5)[0x0])==null?null:_0x56e09a;}[_0x65f754(0x20f)](_0xc3cf34){var _0x4831a3=_0x65f754;let _0x28cbcd=typeof _0xc3cf34==_0x4831a3(0x1e9)?{'text':_0xc3cf34}:_0xc3cf34;return this[_0x4831a3(0x21b)]()[_0x4831a3(0x225)](_0x31c37a=>!(_0x28cbcd[_0x4831a3(0x230)]&&_0x31c37a['getId']()!==_0x28cbcd[_0x4831a3(0x230)]||_0x28cbcd[_0x4831a3(0x232)]&&!_0x31c37a[_0x4831a3(0x213)]()['includes'](_0x28cbcd[_0x4831a3(0x232)])));}[_0x65f754(0x1e0)](_0x7e8bc0={},_0x1aea60={}){var _0x39d85c=_0x65f754,_0x23ae07;let _0x21abef=this['_injector']['get'](_0x5ce9f8[_0x39d85c(0x217)]),_0x518702=_0x961ecb(_0x7e8bc0)?{..._0x1aea60,..._0x577e37(_0x7e8bc0)}:_0x7e8bc0,_0x4e1603=(_0x23ae07=_0x518702['blockId'])==null?(0x0,_0x5ce9f8[_0x39d85c(0x1fd)])(0x6):_0x23ae07;return _0x21abef['syncExecuteCommand'](_0x369f42[_0x39d85c(0x1ee)]['id'],{..._0x518702,'blockId':_0x4e1603,'unitId':this[_0x39d85c(0x1dd)]()})?this[_0x39d85c(0x220)](_0x4e1603):null;}[_0x65f754(0x1eb)](_0x1d4c52){var _0x688790=_0x65f754;return this[_0x688790(0x221)][_0x688790(0x216)](_0x5ce9f8[_0x688790(0x217)])[_0x688790(0x1ed)](_0x369f42[_0x688790(0x227)]['id'],{'cursorOffset':_0x1d4c52,'unitId':this[_0x688790(0x1dd)]()});}[_0x65f754(0x210)](_0x147ea0={}){var _0x497737=_0x65f754;return this['_injector'][_0x497737(0x216)](_0x5ce9f8['ICommandService'])[_0x497737(0x1ed)](_0x369f42[_0x497737(0x205)]['id'],{..._0x147ea0,'unitId':this[_0x497737(0x1dd)]()});}[_0x65f754(0x22d)](){var _0x110be2=_0x65f754,_0x2a4890,_0x85bb01;return(_0x2a4890=(_0x85bb01=this['save']()[_0x110be2(0x1ea)])==null?void 0x0:_0x85bb01[_0x110be2(0x1e6)])==null?[]:_0x2a4890;}[_0x65f754(0x220)](_0x4c6acf){var _0x34f50b=_0x65f754;return this[_0x34f50b(0x221)]['createInstance'](_0x1331ae,this,_0x4c6acf);}};function _0x961ecb(_0x1c98c4){var _0x560cbb=_0x65f754;return typeof _0x1c98c4==_0x560cbb(0x215)&&!!_0x1c98c4&&typeof _0x1c98c4[_0x560cbb(0x1e2)]==_0x560cbb(0x1e7)&&typeof _0x1c98c4[_0x560cbb(0x208)]==_0x560cbb(0x1e7)&&typeof _0x1c98c4[_0x560cbb(0x21f)]==_0x560cbb(0x1e7)&&_0x1c98c4[_0x560cbb(0x21f)]()===_0x560cbb(0x209);}function _0x577e37(_0x4cc55a){var _0x983f4a=_0x65f754;return _0x4cc55a[_0x983f4a(0x208)]();}_0x393bfa[_0x65f754(0x21d)][_0x65f754(0x1f1)](_0x2e5df8),Object['defineProperty'](_0x581dee,_0x65f754(0x1fb),{'enumerable':!0x0,'get':function(){return _0x1331ae;}});}));function _0x5c8d(_0x53d810,_0x284431){_0x53d810=_0x53d810-0x1d6;var _0xba74af=_0xba74();var _0x5c8d24=_0xba74af[_0x53d810];return _0x5c8d24;}function _0xba74(){var _0xa0eb64=['map','FDocumentCode','length','generateRandomId','updateConfig','getCode','351eixjrt','toPrimitive','6jyzWjs','1345337HTJlgb','defineProperty','DocsCodeCancelEmptyParagraphCommand','decorate','_getBlockRange','getRange','paragraph','call','_unitId','DocsCodeModel','dataStream','DocsCodeUpdateCommand','findCodes','cancelEmptyCodeParagraph','normalizeDocsCodeConfig','slice','getText','blockType','object','get','ICommandService','202900UgVWYl','config','prototype','getCodes','getCodeAt','FDocument','some','getType','_createFDocumentCode','_injector','findCodeByText','CODE','@univerjs/core','filter','DataStreamTreeTokenType','DocsCodeExitCommand','126VpLCNA','endIndex','2pRmJCs','startIndex','10582248VodVKr','_getBlockRanges','BLOCK_END','1852940GArkiD','blockId','getConfig','text','UniverCore','20560vCmWAH','30332hBKThL','_blockId','143HOGXRZ','@univerjs/docs/facade','Inject','getId','PARAGRAPH','Injector','insertCode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getKey','getCodeConfig','constructor','SECTION_BREAK','blockRanges','function','DocumentBlockRangeType','string','body','exitCode','iterator','syncExecuteCommand','DocsCodeInsertCommand','find','replace','extend','symbol','_getDocumentData','cancelEmptyParagraph','@univerjs-pro/docs-code','426966cqgylU','exports','_document','UniverProDocsCode'];_0xba74=function(){return _0xa0eb64;};return _0xba74();}
|
|
1
|
+
(function(_0x2fc9b3,_0x51ecee){var _0x49d87e=_0x261f,_0x5a9b9e=_0x2fc9b3();while(!![]){try{var _0x30c347=parseInt(_0x49d87e(0xce))/0x1*(parseInt(_0x49d87e(0xf5))/0x2)+-parseInt(_0x49d87e(0x109))/0x3*(-parseInt(_0x49d87e(0xd6))/0x4)+-parseInt(_0x49d87e(0xeb))/0x5*(-parseInt(_0x49d87e(0x108))/0x6)+parseInt(_0x49d87e(0x11c))/0x7+parseInt(_0x49d87e(0x100))/0x8+parseInt(_0x49d87e(0xe0))/0x9+-parseInt(_0x49d87e(0xd5))/0xa;if(_0x30c347===_0x51ecee)break;else _0x5a9b9e['push'](_0x5a9b9e['shift']());}catch(_0x544251){_0x5a9b9e['push'](_0x5a9b9e['shift']());}}}(_0x401d,0xa34f9),function(_0x2bf6fd,_0x162804){var _0xaa1e24=_0x261f;typeof exports=='object'&&typeof module<'u'?_0x162804(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0xaa1e24(0xd7)&&define[_0xaa1e24(0x113)]?define([_0xaa1e24(0xe1),_0xaa1e24(0xd9),'@univerjs/core','@univerjs/docs/facade'],_0x162804):(_0x2bf6fd=typeof globalThis<'u'?globalThis:_0x2bf6fd||self,_0x162804(_0x2bf6fd[_0xaa1e24(0x110)]={},_0x2bf6fd['UniverProDocsCode'],_0x2bf6fd[_0xaa1e24(0x105)],_0x2bf6fd[_0xaa1e24(0xea)]));}(this,function(_0x332042,_0xd2c11,_0xeebcc9,_0x10dfdf){var _0x3f7d9c=_0x261f;Object[_0x3f7d9c(0x119)](_0x332042,Symbol[_0x3f7d9c(0xf4)],{'value':_0x3f7d9c(0x103)});function _0x42f57b(_0x26c034){'@babel/helpers - typeof';var _0x3eb260=_0x3f7d9c;return _0x42f57b=typeof Symbol==_0x3eb260(0xd7)&&typeof Symbol['iterator']==_0x3eb260(0xf2)?function(_0x5c26db){return typeof _0x5c26db;}:function(_0x4c9c45){var _0x1ba7f1=_0x3eb260;return _0x4c9c45&&typeof Symbol==_0x1ba7f1(0xd7)&&_0x4c9c45[_0x1ba7f1(0xd4)]===Symbol&&_0x4c9c45!==Symbol[_0x1ba7f1(0x118)]?_0x1ba7f1(0xf2):typeof _0x4c9c45;},_0x42f57b(_0x26c034);}function _0x151441(_0x537ad1,_0x511c4d){var _0x5e6a22=_0x3f7d9c;if(_0x42f57b(_0x537ad1)!=_0x5e6a22(0xec)||!_0x537ad1)return _0x537ad1;var _0x5ac59c=_0x537ad1[Symbol[_0x5e6a22(0xee)]];if(_0x5ac59c!==void 0x0){var _0x3742ec=_0x5ac59c[_0x5e6a22(0xe7)](_0x537ad1,_0x511c4d||_0x5e6a22(0xe4));if(_0x42f57b(_0x3742ec)!=_0x5e6a22(0xec))return _0x3742ec;throw TypeError(_0x5e6a22(0xcb));}return(_0x511c4d===_0x5e6a22(0x10f)?String:Number)(_0x537ad1);}function _0x646ca4(_0x1fc35e){var _0x4e9529=_0x3f7d9c,_0x78682a=_0x151441(_0x1fc35e,_0x4e9529(0x10f));return _0x42f57b(_0x78682a)==_0x4e9529(0xf2)?_0x78682a:_0x78682a+'';}function _0x493317(_0x1ac5f9,_0x2b2250,_0x4dbcd9){var _0xc9c690=_0x3f7d9c;return(_0x2b2250=_0x646ca4(_0x2b2250))in _0x1ac5f9?Object[_0xc9c690(0x119)](_0x1ac5f9,_0x2b2250,{'value':_0x4dbcd9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ac5f9[_0x2b2250]=_0x4dbcd9,_0x1ac5f9;}function _0xe18890(_0x5545ad,_0x5ac693){return function(_0x4d3524,_0x133a7b){_0x5ac693(_0x4d3524,_0x133a7b,_0x5545ad);};}function _0x27454e(_0x20c443,_0x5331be,_0x331b61,_0xca4dd2){var _0x134248=_0x3f7d9c,_0x3ec866=arguments['length'],_0x43c383=_0x3ec866<0x3?_0x5331be:_0xca4dd2===null?_0xca4dd2=Object[_0x134248(0xd8)](_0x5331be,_0x331b61):_0xca4dd2,_0x223dca;if(typeof Reflect==_0x134248(0xec)&&typeof Reflect[_0x134248(0xe2)]==_0x134248(0xd7))_0x43c383=Reflect[_0x134248(0xe2)](_0x20c443,_0x5331be,_0x331b61,_0xca4dd2);else{for(var _0x428b6b=_0x20c443[_0x134248(0x10c)]-0x1;_0x428b6b>=0x0;_0x428b6b--)(_0x223dca=_0x20c443[_0x428b6b])&&(_0x43c383=(_0x3ec866<0x3?_0x223dca(_0x43c383):_0x3ec866>0x3?_0x223dca(_0x5331be,_0x331b61,_0x43c383):_0x223dca(_0x5331be,_0x331b61))||_0x43c383);}return _0x3ec866>0x3&&_0x43c383&&Object[_0x134248(0x119)](_0x5331be,_0x331b61,_0x43c383),_0x43c383;}let _0xab9e57=class{constructor(_0x4eb9ed,_0x1441f5,_0x2f6a16){var _0x1834c6=_0x3f7d9c;this[_0x1834c6(0xe8)]=_0x4eb9ed,this[_0x1834c6(0xfe)]=_0x1441f5,this[_0x1834c6(0x10a)]=_0x2f6a16,_0x493317(this,_0x1834c6(0xf0),void 0x0),this[_0x1834c6(0xf0)]=this['_document']['getId']();}['getId'](){var _0x4c3cc1=_0x3f7d9c;return this[_0x4c3cc1(0xfe)];}['getRange'](){var _0x239e86=_0x3f7d9c;let _0x4981f1=this[_0x239e86(0x104)]();return _0x4981f1?{'blockId':_0x4981f1[_0x239e86(0xd1)],'endIndex':_0x4981f1[_0x239e86(0x111)],'startIndex':_0x4981f1[_0x239e86(0xd3)]}:null;}[_0x3f7d9c(0xda)](){var _0x56a6d5=_0x3f7d9c,_0x206f26;let _0x1a3646=this['_getBlockRange'](),_0xc77a9a=(_0x206f26=this[_0x56a6d5(0x116)]()[_0x56a6d5(0xfa)])==null?void 0x0:_0x206f26[_0x56a6d5(0xd0)];return!_0x1a3646||!_0xc77a9a?'':_0x5cfcac(_0xc77a9a[_0x56a6d5(0x106)](_0x1a3646[_0x56a6d5(0xd3)]+0x1,_0x1a3646[_0x56a6d5(0x111)]));}[_0x3f7d9c(0xfc)](){var _0x3be99e=_0x3f7d9c;let _0x4b561b=this[_0x3be99e(0xf6)]();return _0x4b561b?{..._0x4b561b,'config':this[_0x3be99e(0x112)](),'text':this[_0x3be99e(0xda)](),'type':_0xeebcc9['DocumentBlockRangeType'][_0x3be99e(0xf8)]}:null;}[_0x3f7d9c(0x112)](){var _0x116654=_0x3f7d9c;return(0x0,_0xd2c11['normalizeDocsCodeConfig'])(this[_0x116654(0x10a)][_0x116654(0xef)](_0xd2c11['DocsCodeModel'])[_0x116654(0x10d)](this[_0x116654(0xf0)],this[_0x116654(0xfe)]));}['updateConfig'](_0x573cd6){var _0xc22eb4=_0x3f7d9c;return this[_0xc22eb4(0x10a)]['get'](_0xeebcc9['ICommandService'])[_0xc22eb4(0xed)](_0xd2c11[_0xc22eb4(0x102)]['id'],{'blockId':this[_0xc22eb4(0xfe)],'config':_0x573cd6[_0xc22eb4(0xdd)],'unitId':this[_0xc22eb4(0xf0)]});}[_0x3f7d9c(0x117)](_0x2036ad){var _0x38191b=_0x3f7d9c;return this[_0x38191b(0x10a)][_0x38191b(0xef)](_0xeebcc9[_0x38191b(0xdb)])[_0x38191b(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0x2036ad,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x3bbfb0={}){var _0x3b0508=_0x3f7d9c;return this['_injector'][_0x3b0508(0xef)](_0xeebcc9[_0x3b0508(0xdb)])[_0x3b0508(0xed)](_0xd2c11[_0x3b0508(0xdc)]['id'],{..._0x3bbfb0,'unitId':this[_0x3b0508(0xf0)]});}[_0x3f7d9c(0x116)](){var _0xa497c1=_0x3f7d9c;return this[_0xa497c1(0xe8)][_0xa497c1(0xc7)]();}['_getBlockRange'](){var _0xfcfba2=_0x3f7d9c,_0x2952cc;let _0x31488a=(_0x2952cc=this[_0xfcfba2(0x116)]()[_0xfcfba2(0xfa)])==null||(_0x2952cc=_0x2952cc['blockRanges'])==null?void 0x0:_0x2952cc[_0xfcfba2(0x11d)](_0x2e37d3=>_0x2e37d3['blockId']===this[_0xfcfba2(0xfe)]&&_0x2e37d3[_0xfcfba2(0xf3)]===_0xeebcc9['DocumentBlockRangeType'][_0xfcfba2(0xf8)]);return _0x31488a==null?null:_0x31488a;}};_0xab9e57=_0x27454e([_0xe18890(0x2,(0x0,_0xeebcc9['Inject'])(_0xeebcc9[_0x3f7d9c(0xc8)]))],_0xab9e57);function _0x5cfcac(_0x12384b){var _0x145409=_0x3f7d9c;return Array[_0x145409(0xdf)](_0x12384b)[_0x145409(0xcc)](_0xed378d=>_0xed378d===_0xeebcc9[_0x145409(0x10b)]['PARAGRAPH']?'\x0a':_0xed378d)[_0x145409(0xca)](_0x10fd4f=>_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xc9)]&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)]['BLOCK_END']&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xfb)])[_0x145409(0x115)]('')[_0x145409(0xd2)](/\n$/,'');}var _0x1820ac=class extends _0x10dfdf[_0x3f7d9c(0x107)]{[_0x3f7d9c(0xe6)](){var _0x20e7ad=_0x3f7d9c;return this[_0x20e7ad(0xe5)]()[_0x20e7ad(0xca)](_0x5b1eeb=>_0x5b1eeb[_0x20e7ad(0xf3)]===_0xeebcc9[_0x20e7ad(0xf7)][_0x20e7ad(0xf8)])['map'](_0x19a19b=>this[_0x20e7ad(0x11b)](_0x19a19b['blockId']));}[_0x3f7d9c(0xf1)](_0x2af45e){var _0xf01a88=_0x3f7d9c;return this[_0xf01a88(0xe5)]()['some'](_0x21722b=>_0x21722b[_0xf01a88(0xd1)]===_0x2af45e&&_0x21722b[_0xf01a88(0xf3)]===_0xeebcc9[_0xf01a88(0xf7)][_0xf01a88(0xf8)])?this[_0xf01a88(0x11b)](_0x2af45e):null;}['getCodeAt'](_0x4688ab){var _0x14200a=_0x3f7d9c;let _0x31df9c=this['_getBlockRanges']()['find'](_0x385e75=>_0x385e75[_0x14200a(0xf3)]===_0xeebcc9[_0x14200a(0xf7)][_0x14200a(0xf8)]&&_0x385e75['startIndex']<=_0x4688ab&&_0x4688ab<=_0x385e75[_0x14200a(0x111)]);return _0x31df9c?this[_0x14200a(0x11b)](_0x31df9c[_0x14200a(0xd1)]):null;}[_0x3f7d9c(0xde)](_0x8c3c24){var _0x13023e=_0x3f7d9c,_0x4b35e0;return(_0x4b35e0=this[_0x13023e(0xf9)](_0x8c3c24)[0x0])==null?null:_0x4b35e0;}[_0x3f7d9c(0xf9)](_0x25c39d){var _0x872002=_0x3f7d9c;let _0x480b99=typeof _0x25c39d==_0x872002(0x10f)?{'text':_0x25c39d}:_0x25c39d;return this[_0x872002(0xe6)]()[_0x872002(0xca)](_0x22a836=>!(_0x480b99['blockId']&&_0x22a836[_0x872002(0xfd)]()!==_0x480b99[_0x872002(0xd1)]||_0x480b99[_0x872002(0x11a)]&&!_0x22a836[_0x872002(0xda)]()['includes'](_0x480b99[_0x872002(0x11a)])));}[_0x3f7d9c(0x114)](_0x438cb6={},_0x1a06e5={}){var _0x4c01d7=_0x3f7d9c,_0x132af6;let _0x349648=this[_0x4c01d7(0x10a)][_0x4c01d7(0xef)](_0xeebcc9['ICommandService']),_0x35f51f=_0x2e1b85(_0x438cb6)?{..._0x1a06e5,..._0xed42e0(_0x438cb6)}:_0x438cb6,_0x28c29a=(_0x132af6=_0x35f51f['blockId'])==null?(0x0,_0xeebcc9[_0x4c01d7(0xff)])(0x6):_0x132af6;return _0x349648[_0x4c01d7(0xed)](_0xd2c11[_0x4c01d7(0xcd)]['id'],{..._0x35f51f,'blockId':_0x28c29a,'unitId':this[_0x4c01d7(0xfd)]()})?this[_0x4c01d7(0x11b)](_0x28c29a):null;}['exitCode'](_0xa7bfc){var _0x323a28=_0x3f7d9c;return this[_0x323a28(0x10a)][_0x323a28(0xef)](_0xeebcc9[_0x323a28(0xdb)])[_0x323a28(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0xa7bfc,'unitId':this[_0x323a28(0xfd)]()});}['cancelEmptyCodeParagraph'](_0x4132d4={}){var _0x5a8d13=_0x3f7d9c;return this[_0x5a8d13(0x10a)]['get'](_0xeebcc9[_0x5a8d13(0xdb)])['syncExecuteCommand'](_0xd2c11['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x4132d4,'unitId':this[_0x5a8d13(0xfd)]()});}['_getBlockRanges'](){var _0x45c102=_0x3f7d9c,_0x12d38c,_0x3b20e3;return(_0x12d38c=(_0x3b20e3=this[_0x45c102(0xc7)]()[_0x45c102(0xfa)])==null?void 0x0:_0x3b20e3[_0x45c102(0x10e)])==null?[]:_0x12d38c;}[_0x3f7d9c(0x11b)](_0x12cc22){var _0xad62ea=_0x3f7d9c;return this[_0xad62ea(0x10a)][_0xad62ea(0x101)](_0xab9e57,this,_0x12cc22);}};function _0x2e1b85(_0xcac523){var _0x177f69=_0x3f7d9c;return typeof _0xcac523==_0x177f69(0xec)&&!!_0xcac523&&typeof _0xcac523[_0x177f69(0xe3)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xf6)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xe9)]=='function'&&_0xcac523['getType']()==='paragraph';}function _0xed42e0(_0x15eb09){var _0x40d193=_0x3f7d9c;return _0x15eb09[_0x40d193(0xf6)]();}_0x10dfdf[_0x3f7d9c(0x107)][_0x3f7d9c(0xcf)](_0x1820ac),Object[_0x3f7d9c(0x119)](_0x332042,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0xab9e57;}});}));function _0x261f(_0x399cc2,_0x3d55e4){_0x399cc2=_0x399cc2-0xc7;var _0x401da4=_0x401d();var _0x261f56=_0x401da4[_0x399cc2];return _0x261f56;}function _0x401d(){var _0x284cd3=['syncExecuteCommand','toPrimitive','get','_unitId','getCode','symbol','blockType','toStringTag','160222sGSgkb','getRange','DocumentBlockRangeType','CODE','findCodes','body','SECTION_BREAK','describe','getId','_blockId','generateRandomId','7007824BUKcLD','createInstance','DocsCodeUpdateCommand','Module','_getBlockRange','UniverCore','slice','FDocument','333528NoHDHX','748725ExRWFr','_injector','DataStreamTreeTokenType','length','getCodeConfig','blockRanges','string','UniverProDocsCodeFacade','endIndex','getConfig','amd','insertCode','join','_getDocumentData','exit','prototype','defineProperty','text','_createFDocumentCode','4657478UjFJDl','find','save','Injector','BLOCK_START','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','map','DocsCodeInsertCommand','11YpFfIT','extend','dataStream','blockId','replace','startIndex','constructor','35767930xGDTra','16ILCewl','function','getOwnPropertyDescriptor','@univerjs-pro/docs-code','getText','ICommandService','DocsCodeCancelEmptyParagraphCommand','config','findCodeByText','from','3921705sUsbha','exports','decorate','getKey','default','_getBlockRanges','getCodes','call','_document','getType','UniverDocsFacade','35IBfIlO','object'];_0x401d=function(){return _0x284cd3;};return _0x401d();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x23dc43,_0x5784fd){const _0x2bf142=_0x3a03,_0xb541b8=_0x23dc43();while(!![]){try{const _0x213c09=-parseInt(_0x2bf142(0xd3))/0x1*(parseInt(_0x2bf142(0xe6))/0x2)+-parseInt(_0x2bf142(0xa2))/0x3+parseInt(_0x2bf142(0xe5))/0x4+-parseInt(_0x2bf142(0x93))/0x5*(-parseInt(_0x2bf142(0x8c))/0x6)+-parseInt(_0x2bf142(0xed))/0x7+-parseInt(_0x2bf142(0x81))/0x8*(parseInt(_0x2bf142(0x124))/0x9)+parseInt(_0x2bf142(0x84))/0xa;if(_0x213c09===_0x5784fd)break;else _0xb541b8['push'](_0xb541b8['shift']());}catch(_0x24ec5c){_0xb541b8['push'](_0xb541b8['shift']());}}}(_0xa040,0x29dfe),function(_0x4bf290,_0x49cd61){const _0x5a2c94=_0x3a03;typeof exports==_0x5a2c94(0xa5)&&typeof module<'u'?_0x49cd61(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x5a2c94(0xb3)&&define['amd']?define(['exports',_0x5a2c94(0xc2),'@univerjs/docs',_0x5a2c94(0xaf),'@univerjs-pro/license'],_0x49cd61):(_0x4bf290=typeof globalThis<'u'?globalThis:_0x4bf290||self,_0x49cd61(_0x4bf290['UniverProDocsCode']={},_0x4bf290['UniverCore'],_0x4bf290[_0x5a2c94(0xdb)],_0x4bf290[_0x5a2c94(0xaf)],_0x4bf290[_0x5a2c94(0xc1)]));}(this,function(_0x55d9d9,_0x251c4f,_0x3e1fc8,_0x2b163c,_0x335c38){const _0x200560=_0x3a03;Object['defineProperty'](_0x55d9d9,Symbol[_0x200560(0x116)],{'value':_0x200560(0xba)});let _0x528c24={'language':_0x200560(0x115),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x46d2c6(_0x50c947){return{..._0x528c24,..._0x50c947};}function _0x1b4e79(_0x8407bb){const _0x40ddd9=_0x200560;var _0x1dfbd8;let _0x4f590=(_0x1dfbd8=_0x8407bb==null?void 0x0:_0x8407bb[_0x40ddd9(0x11e)])==null?{}:_0x1dfbd8;return{'codes':Object[_0x40ddd9(0x119)](Object[_0x40ddd9(0x10c)](_0x4f590)[_0x40ddd9(0x7f)](([_0x5ec20e,_0x39a04c])=>[_0x5ec20e,_0x46d2c6(_0x39a04c)]))};}function _0x11cee3(_0x4359a2,_0x322cdc,_0xd1cee8){const _0x24e718=_0x200560;let _0x48d41a=_0x1b4e79(_0x4359a2);return _0x48d41a[_0x24e718(0x11e)][_0x322cdc]=_0x46d2c6({..._0x48d41a['codes'][_0x322cdc],..._0xd1cee8}),_0x48d41a;}function _0x1d6e94(_0x2a9174,_0x2402e9){const _0x1f3122=_0x200560;let _0x3036cd=_0x1b4e79(_0x2a9174);return delete _0x3036cd[_0x1f3122(0x11e)][_0x2402e9],_0x3036cd;}let _0x5c8307=_0x200560(0xdd);function _0x5a021d(_0x2ba97d){const _0x269657=_0x200560;var _0x766ab5,_0x4669f9,_0xa21c00;let _0x132625=_0x566401(_0x2ba97d['documentData']),_0x5e1ecb=_0x31930c(_0x132625),_0x5f56ad=_0x1df3b0(_0x2ba97d[_0x269657(0x83)],_0x2ba97d[_0x269657(0xbe)]),_0x4ddab8=_0x5f56ad?(_0x766ab5=_0x5e1ecb['blockRanges'])==null?void 0x0:_0x766ab5['find'](_0x330eda=>_0x330eda[_0x269657(0x8a)]===_0x5f56ad[_0x269657(0x83)]&&_0x330eda[_0x269657(0xf6)]+0x1===_0x5f56ad[_0x269657(0xbe)]):void 0x0,{startOffset:_0xba07d9,endOffset:_0x56328a}=_0x4ddab8?_0x5f56ad:_0x1bc857(_0x5e1ecb,_0x2ba97d['startOffset'],_0x2ba97d[_0x269657(0xbe)]),_0x5b76e3=_0x222074(_0x5e1ecb,_0xba07d9,_0x56328a),_0x1b466d=(_0x4669f9=_0x4ddab8==null?void 0x0:_0x4ddab8[_0x269657(0xa8)])==null?_0x2ba97d[_0x269657(0xa8)]:_0x4669f9,_0x14be65=_0x11cee3(_0x2ba97d['metadata'],_0x1b466d,{..._0x528c24,..._0x2ba97d[_0x269657(0xa6)]});if(_0x4ddab8)return _0x4ddab8[_0x269657(0x87)]=_0x251c4f[_0x269657(0x11a)]['CODE'],_0x34bf9d(_0x5e1ecb,_0xba07d9,_0x56328a),_0x14a5f9(_0x5e1ecb,_0xba07d9,_0x56328a,_0x5b76e3),_0x40ae8b(_0x5e1ecb,_0x4ddab8),{'nextDocumentData':_0x132625,'nextMetadata':_0x14be65,'cursorOffset':_0xba07d9+0x1};if(_0xba07d9===_0x56328a){var _0x4a7599,_0x17992b;let _0x548795=''+_0x251c4f[_0x269657(0xe0)]['BLOCK_START']+_0x251c4f['DataStreamTreeTokenType']['PARAGRAPH']+_0x251c4f[_0x269657(0xe0)][_0x269657(0xef)];_0x5d2f57(_0x5e1ecb,_0xba07d9,_0x548795,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x251c4f['createParagraphId'])(new Set((_0x4a7599=_0x5e1ecb[_0x269657(0x122)])==null?void 0x0:_0x4a7599[_0x269657(0x7f)](_0xbfe0b7=>_0xbfe0b7['paragraphId']))),'paragraphStyle':_0x340677(!0x0,!0x0,_0x5b76e3)}],'blockRanges':[{'blockId':_0x1b466d,'blockType':_0x251c4f[_0x269657(0x11a)][_0x269657(0xe4)],'startIndex':0x0,'endIndex':_0x548795['length']-0x1}]});let _0x59b06a=(_0x17992b=_0x5e1ecb[_0x269657(0xab)])==null?void 0x0:_0x17992b[_0x269657(0x79)](_0x1d14bd=>_0x1d14bd['blockId']===_0x1b466d);return _0x59b06a&&_0x40ae8b(_0x5e1ecb,_0x59b06a),{'nextDocumentData':_0x132625,'nextMetadata':_0x14be65,'cursorOffset':_0xba07d9+0x1};}_0x5d2f57(_0x5e1ecb,_0x56328a,_0x251c4f['DataStreamTreeTokenType']['BLOCK_END']),_0x5d2f57(_0x5e1ecb,_0xba07d9,_0x251c4f[_0x269657(0xe0)]['BLOCK_START']),_0x14a5f9(_0x5e1ecb,_0xba07d9,_0x56328a+0x1,_0x5b76e3);let _0x256bc8={'blockId':_0x1b466d,'blockType':_0x251c4f[_0x269657(0x11a)][_0x269657(0xe4)],'startIndex':_0xba07d9,'endIndex':_0x56328a+0x1};return _0x5e1ecb['blockRanges']=[...(_0xa21c00=_0x5e1ecb[_0x269657(0xab)])==null?[]:_0xa21c00,_0x256bc8][_0x269657(0x99)]((_0x5b0a45,_0x47ff05)=>_0x5b0a45[_0x269657(0x8a)]-_0x47ff05[_0x269657(0x8a)]),_0x40ae8b(_0x5e1ecb,_0x256bc8),{'nextDocumentData':_0x132625,'nextMetadata':_0x14be65,'cursorOffset':_0xba07d9+0x1};}function _0x34bf9d(_0x441b37,_0x8f4148,_0x3041cd){const _0xc35820=_0x200560;var _0x53fc69;((_0x53fc69=_0x441b37[_0xc35820(0x122)])==null?[]:_0x53fc69)[_0xc35820(0xe9)](_0xf1f66d=>_0xf1f66d['startIndex']>_0x8f4148&&_0xf1f66d[_0xc35820(0x8a)]<_0x3041cd)[_0xc35820(0x92)](_0x4067e1=>{const _0x2cd4c3=_0xc35820;var _0x20af85;let _0xefd8={...(_0x20af85=_0x4067e1[_0x2cd4c3(0xc8)])==null?{}:_0x20af85};delete _0xefd8[_0x2cd4c3(0xf1)],delete _0xefd8['spaceBelow'],_0x4067e1[_0x2cd4c3(0xc8)]=_0xefd8;});}function _0x1df3b0(_0x3866b6,_0x2155ed){const _0x19d7b0=_0x200560;return _0x3866b6==null||_0x2155ed==null||_0x3866b6===_0x2155ed?null:{'startOffset':Math[_0x19d7b0(0x106)](_0x3866b6,_0x2155ed),'endOffset':Math[_0x19d7b0(0x9c)](_0x3866b6,_0x2155ed)};}function _0x265b54(_0x19da78){const _0x9a0974=_0x200560;return{'nextDocumentData':_0x566401(_0x19da78[_0x9a0974(0xa1)]),'nextMetadata':_0x11cee3(_0x19da78['metadata'],_0x19da78[_0x9a0974(0xa8)],_0x19da78[_0x9a0974(0xa6)]),'cursorOffset':0x0};}function _0x100cad(_0x3933c4){const _0x3233b1=_0x200560;var _0x34ab92,_0x514f8f;let _0x32df7e=_0x566401(_0x3933c4[_0x3233b1(0xa1)]),_0xa28e9b=_0x31930c(_0x32df7e),_0x1aa404=_0xa2ff3c(_0xa28e9b,_0x3933c4[_0x3233b1(0xf8)]);if(!_0x1aa404)return null;let _0xcb2dc6=_0x47434e(_0xa28e9b,_0x1aa404),_0x36c6ef=_0xcb2dc6[_0xcb2dc6[_0x3233b1(0x7b)]-0x1];if(!_0x36c6ef||!_0x24a456(_0xa28e9b,_0x1aa404,_0x36c6ef)||_0x3933c4[_0x3233b1(0xf8)]<_0x36c6ef['startIndex'])return null;let _0x20ed67=_0x112c17(_0xa28e9b,_0x1aa404,_0x36c6ef);if(_0x20ed67>=_0x1aa404[_0x3233b1(0xf6)])return null;_0xa28e9b['dataStream']=[_0xa28e9b[_0x3233b1(0x11f)][_0x3233b1(0xff)](0x0,_0x20ed67),_0x251c4f[_0x3233b1(0xe0)][_0x3233b1(0xef)],_0xa28e9b['dataStream'][_0x3233b1(0xff)](_0x20ed67,_0x1aa404[_0x3233b1(0xf6)]),_0xa28e9b[_0x3233b1(0x11f)]['slice'](_0x1aa404[_0x3233b1(0xf6)]+0x1)][_0x3233b1(0x9e)](''),_0xea1e81(_0xa28e9b[_0x3233b1(0x122)],_0x20ed67,_0x1aa404['endIndex'],0x1),_0xea1e81(_0xa28e9b[_0x3233b1(0x105)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0xea1e81(_0xa28e9b[_0x3233b1(0x110)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x9ff239(_0xa28e9b[_0x3233b1(0x96)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x246d69(_0xa28e9b['tables'],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x246d69(_0xa28e9b['customRanges'],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),_0x246d69(_0xa28e9b[_0x3233b1(0xbb)],_0x20ed67,_0x1aa404[_0x3233b1(0xf6)],0x1),(_0x34ab92=_0xa28e9b['blockRanges'])==null||_0x34ab92[_0x3233b1(0x92)](_0x27b12a=>{const _0x4d4c7f=_0x3233b1;_0x27b12a===_0x1aa404||_0x27b12a['blockId']===_0x1aa404[_0x4d4c7f(0xa8)]?_0x27b12a[_0x4d4c7f(0xf6)]=_0x20ed67:_0x27b12a[_0x4d4c7f(0x8a)]>=_0x20ed67&&_0x27b12a['startIndex']<_0x1aa404[_0x4d4c7f(0xf6)]&&(_0x27b12a[_0x4d4c7f(0x8a)]+=0x1,_0x27b12a['endIndex']+=0x1);});let _0x4402cd=_0x47434e(_0xa28e9b,{..._0x1aa404,'endIndex':_0x20ed67});_0x4402cd[_0x3233b1(0x92)]((_0x50b5dc,_0xaddb5c)=>{const _0x2b0e3c=_0x3233b1;var _0x390d14;_0x50b5dc['paragraphStyle']={...(_0x390d14=_0x50b5dc[_0x2b0e3c(0xc8)])==null?{}:_0x390d14,..._0x340677(_0xaddb5c===0x0,_0xaddb5c===_0x4402cd[_0x2b0e3c(0x7b)]-0x1)};});let _0x4f5a79=(_0x514f8f=_0xa28e9b['paragraphs'])==null?void 0x0:_0x514f8f[_0x3233b1(0x79)](_0x545457=>_0x545457[_0x3233b1(0x8a)]===_0x20ed67+0x1);return _0x4f5a79&&(_0x4f5a79['paragraphStyle']=_0xa0b13b(_0x4f5a79[_0x3233b1(0xc8)])),{'nextDocumentData':_0x32df7e,'cursorOffset':_0x20ed67+0x1};}function _0x1616d1(_0x59693b){const _0x4a014c=_0x200560;let _0x54f31a=_0x566401(_0x59693b[_0x4a014c(0xa1)]),_0x46670b=_0x31930c(_0x54f31a),_0x32d8c7=_0xa2ff3c(_0x46670b,_0x59693b[_0x4a014c(0xf8)]);return _0x32d8c7&&_0x56511c(_0x54f31a,_0x46670b,_0x32d8c7,_0x59693b[_0x4a014c(0xf8)],_0x59693b['paragraphStartIndex'])||null;}function _0x56511c(_0x1a279d,_0x26b186,_0x37bbbc,_0x2dbfab,_0x169eab){const _0x3f919d=_0x200560;let _0xd8d763=_0x3160d8(_0x26b186,_0x37bbbc,_0x2dbfab,_0x169eab);if(!_0xd8d763)return null;let _0x390162=_0xd8d763[_0x3f919d(0xe1)]-0x1;return _0x12be68(_0x26b186,_0xd8d763[_0x3f919d(0x12a)]['startIndex'],_0xd8d763[_0x3f919d(0x12a)][_0x3f919d(0x8a)]+0x1),{'nextDocumentData':_0x1a279d,'cursorOffset':_0x390162};}function _0x4e9658(_0x4b4967,_0x1a4bcd){const _0x4e8b08=_0x200560;var _0x4f7484;return _0x4b4967==null||(_0x4f7484=_0x4b4967[_0x4e8b08(0xab)])==null?void 0x0:_0x4f7484['find'](_0x9f0c80=>_0x9f0c80['blockType']===_0x251c4f[_0x4e8b08(0x11a)][_0x4e8b08(0xe4)]&&_0x9f0c80[_0x4e8b08(0x8a)]<=_0x1a4bcd&&_0x1a4bcd<=_0x9f0c80[_0x4e8b08(0xf6)]);}function _0x411ca6(_0x1f63f7){const _0xa3fe56=_0x200560;var _0x156c48;let _0x51ef95=_0x1f63f7[_0xa3fe56(0xa1)][_0xa3fe56(0xfd)];if(!_0x51ef95)return!0x1;let _0x419933=_0x1f63f7['direction']==='left'?_0x1f63f7[_0xa3fe56(0xf8)]-0x1:_0x1f63f7[_0xa3fe56(0xf8)],_0x48d748=_0x1f63f7[_0xa3fe56(0xd9)]==='right'?_0x1f63f7[_0xa3fe56(0xf8)]+0x1:_0x419933;return((_0x156c48=_0x51ef95[_0xa3fe56(0xab)])==null?[]:_0x156c48)[_0xa3fe56(0xbd)](_0x320b21=>_0x320b21[_0xa3fe56(0x87)]===_0x251c4f[_0xa3fe56(0x11a)][_0xa3fe56(0xe4)]?_0x419933===_0x320b21[_0xa3fe56(0x8a)]||_0x419933===_0x320b21[_0xa3fe56(0xf6)]||_0x48d748===_0x320b21[_0xa3fe56(0x8a)]||_0x48d748===_0x320b21[_0xa3fe56(0xf6)]:!0x1);}function _0xa2ff3c(_0x482f63,_0x386bd8){const _0x17efba=_0x200560;var _0x4a0f3c;return(_0x4a0f3c=_0x482f63[_0x17efba(0xab)])==null?void 0x0:_0x4a0f3c['find'](_0x2d03cd=>{const _0x2c8fea=_0x17efba;let _0x29869f=_0x272708(_0x482f63,_0x2d03cd);return _0x2d03cd[_0x2c8fea(0x87)]===_0x251c4f[_0x2c8fea(0x11a)][_0x2c8fea(0xe4)]&&_0x2d03cd[_0x2c8fea(0x8a)]<=_0x386bd8&&_0x386bd8<=_0x29869f+0x2;});}function _0x340677(_0x307599,_0x40e91d,_0x288431=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x307599&&_0x288431?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x5c8307,'fs':0xc}};}function _0x14a5f9(_0x31893c,_0xe5cd29,_0x314c0f,_0x1ebfdd=!0x1){const _0x24acc2=_0x200560;var _0xe77fcc;let _0x28eb1d=((_0xe77fcc=_0x31893c['paragraphs'])==null?[]:_0xe77fcc)[_0x24acc2(0xe9)](_0x2f3e40=>_0x2f3e40[_0x24acc2(0x8a)]>_0xe5cd29&&_0x2f3e40[_0x24acc2(0x8a)]<_0x314c0f);_0x28eb1d[_0x24acc2(0x92)]((_0x63cda,_0x510aa2)=>{const _0x5ed8da=_0x24acc2;var _0x3fbac9;_0x63cda['paragraphStyle']={...(_0x3fbac9=_0x63cda[_0x5ed8da(0xc8)])==null?{}:_0x3fbac9,..._0x340677(_0x510aa2===0x0,_0x510aa2===_0x28eb1d['length']-0x1,_0x1ebfdd)};});}function _0xa0b13b(_0x208156){const _0x17790d=_0x200560;var _0x565c68,_0x41fa19;let _0x17f39a={..._0x208156==null?{}:_0x208156};return delete _0x17f39a[_0x17790d(0xc3)],delete _0x17f39a[_0x17790d(0x10b)],delete _0x17f39a[_0x17790d(0xf1)],delete _0x17f39a[_0x17790d(0xe8)],((_0x565c68=_0x17f39a[_0x17790d(0x120)])==null?void 0x0:_0x565c68['ff'])===_0x5c8307&&((_0x41fa19=_0x17f39a[_0x17790d(0x120)])==null?void 0x0:_0x41fa19['fs'])===0xc&&delete _0x17f39a[_0x17790d(0x120)],_0x17f39a;}function _0x47434e(_0x241a01,_0x15e09b){const _0x29ab97=_0x200560;var _0x320aac;let _0xe17fe3=_0x272708(_0x241a01,_0x15e09b);return((_0x320aac=_0x241a01[_0x29ab97(0x122)])==null?[]:_0x320aac)[_0x29ab97(0xe9)](_0x250d47=>_0x250d47['startIndex']>_0x15e09b[_0x29ab97(0x8a)]&&_0x250d47[_0x29ab97(0x8a)]<_0xe17fe3);}function _0x24a456(_0xd6cc2d,_0x66c5cf,_0x2e0fc2){const _0x12a132=_0x200560;let _0x3ed190=_0x112c17(_0xd6cc2d,_0x66c5cf,_0x2e0fc2),_0x280e94=_0xd6cc2d[_0x12a132(0x11f)][_0x12a132(0xff)](_0x3ed190,_0x2e0fc2[_0x12a132(0x8a)]);return Array[_0x12a132(0x97)](_0x280e94)['every'](_0x109d3a=>_0x109d3a===_0x251c4f['DataStreamTreeTokenType'][_0x12a132(0x7c)]||_0x109d3a===_0x251c4f[_0x12a132(0xe0)][_0x12a132(0xef)]);}function _0x566401(_0x3304d6){const _0x6d91de=_0x200560;return _0x251c4f[_0x6d91de(0xca)][_0x6d91de(0x9b)](_0x3304d6);}function _0x31930c(_0x40c83d){const _0x37224e=_0x200560;if(!_0x40c83d[_0x37224e(0xfd)])throw Error(_0x37224e(0xd6));return _0x40c83d[_0x37224e(0xfd)];}function _0x1bc857(_0x212c32,_0x150e85,_0x511609){const _0x4e8d40=_0x200560;if(_0x150e85==null||_0x511609==null){let _0x344e23=_0x3f8ad0(_0x212c32);return{'startOffset':_0x344e23,'endOffset':_0x344e23};}let _0x4354ae=Math[_0x4e8d40(0x106)](_0x150e85,_0x511609),_0x5719fa=Math['max'](_0x150e85,_0x511609);if(_0x4354ae===_0x5719fa){let _0x270bf1=_0x1b14de(_0x212c32,_0x4354ae);return{'startOffset':_0x270bf1,'endOffset':_0x270bf1};}return _0x1c4d5d(_0x212c32,_0x4354ae,_0x5719fa);}function _0x1b14de(_0x52ce65,_0x599cbc){const _0x4144d1=_0x200560;return _0x599cbc===0x0&&_0x52ce65[_0x4144d1(0x11f)][0x0]===_0x251c4f[_0x4144d1(0xe0)][_0x4144d1(0xa3)]?0x1:_0x599cbc;}function _0x3f8ad0(_0x50a068){const _0x25bcdb=_0x200560;return _0x50a068[_0x25bcdb(0x11f)][_0x25bcdb(0x117)](_0x251c4f['DataStreamTreeTokenType'][_0x25bcdb(0xf2)])?Math['max'](0x0,_0x50a068[_0x25bcdb(0x11f)]['length']-0x1):_0x50a068[_0x25bcdb(0x11f)]['length'];}function _0x222074(_0x115746,_0x503f26,_0x35d41b){const _0x16a9dd=_0x200560;var _0x593584;let _0x10985c=Math[_0x16a9dd(0x106)](_0x503f26,_0x35d41b),_0x138b71=Math['max'](_0x503f26,_0x35d41b);return!!((_0x593584=_0x115746[_0x16a9dd(0x104)])!=null&&_0x593584[_0x16a9dd(0xbd)](_0x1961ce=>_0x10985c>_0x1961ce['startIndex']&&_0x10985c<_0x1961ce['endIndex']||_0x138b71>_0x1961ce[_0x16a9dd(0x8a)]&&_0x138b71<_0x1961ce[_0x16a9dd(0xf6)]||_0x10985c<=_0x1961ce[_0x16a9dd(0x8a)]&&_0x138b71>=_0x1961ce['endIndex']));}function _0x1c4d5d(_0x2fa0f7,_0x16b92b,_0x415234){const _0x33f7f8=_0x200560;var _0x30ad09,_0xb936ca;let _0x27beb1=[...(_0x30ad09=_0x2fa0f7[_0x33f7f8(0x122)])==null?[]:_0x30ad09]['sort']((_0x1aa485,_0xefdb42)=>_0x1aa485[_0x33f7f8(0x8a)]-_0xefdb42[_0x33f7f8(0x8a)]),_0x1635f9=_0x27beb1['find']((_0x4ba4b9,_0x23f111)=>(_0x23f111===0x0?0x0:_0x27beb1[_0x23f111-0x1]['startIndex']+0x1)<=_0x16b92b&&_0x16b92b<=_0x4ba4b9[_0x33f7f8(0x8a)]),_0x518844=(_0xb936ca=_0x27beb1['find'](_0x3116be=>_0x3116be['startIndex']>=_0x415234-0x1))==null?_0x27beb1[_0x27beb1[_0x33f7f8(0x7b)]-0x1]:_0xb936ca;return{'startOffset':_0x1635f9?_0x275c5e(_0x27beb1,_0x1635f9):_0x16b92b,'endOffset':_0x518844?_0x518844[_0x33f7f8(0x8a)]+0x1:_0x415234};}function _0x275c5e(_0x5695d1,_0x230b5f){const _0x5f2f09=_0x200560;let _0x289ff5=_0x5695d1[_0x5f2f09(0x11b)](_0x230b5f);return _0x289ff5>0x0?_0x5695d1[_0x289ff5-0x1][_0x5f2f09(0x8a)]+0x1:0x0;}function _0x112c17(_0x9c8b86,_0x58fc01,_0x23d622){const _0x371d87=_0x200560;var _0x5db9d0;return Math[_0x371d87(0x9c)](_0x275c5e((_0x5db9d0=_0x9c8b86[_0x371d87(0x122)])==null?[]:_0x5db9d0,_0x23d622),_0x58fc01[_0x371d87(0x8a)]+0x1);}function _0x272708(_0x301ba8,_0x402098){const _0x561207=_0x200560;return _0x301ba8[_0x561207(0x11f)][_0x402098['endIndex']]===_0x251c4f[_0x561207(0xe0)]['BLOCK_END']?_0x402098['endIndex']:_0x301ba8[_0x561207(0x11f)][_0x402098[_0x561207(0xf6)]+0x1]===_0x251c4f[_0x561207(0xe0)][_0x561207(0xef)]?_0x402098[_0x561207(0xf6)]+0x1:_0x402098[_0x561207(0xf6)];}function _0x3160d8(_0x3c27dd,_0x827fa,_0x145e26,_0x150c85){const _0x1642cc=_0x200560;var _0x29b674,_0x39fbae;let _0x1db552=_0x272708(_0x3c27dd,_0x827fa),_0x2316e7=((_0x29b674=_0x3c27dd[_0x1642cc(0x122)])==null?[]:_0x29b674)['find'](_0x21a3b7=>_0x21a3b7['startIndex']===_0x1db552+0x1);if(!_0x2316e7||_0x150c85!=null&&_0x2316e7[_0x1642cc(0x8a)]!==_0x150c85||_0x145e26<_0x1db552||_0x145e26>_0x2316e7[_0x1642cc(0x8a)]+0x1||_0x3c27dd[_0x1642cc(0x11f)][_0x2316e7[_0x1642cc(0x8a)]]!==_0x251c4f[_0x1642cc(0xe0)][_0x1642cc(0xa3)])return null;let _0x126278=_0x275c5e((_0x39fbae=_0x3c27dd[_0x1642cc(0x122)])==null?[]:_0x39fbae,_0x2316e7),_0x38ce1a=_0x3c27dd['dataStream'][_0x1642cc(0xff)](_0x126278,_0x2316e7[_0x1642cc(0x8a)]);return Array[_0x1642cc(0x97)](_0x38ce1a)['every'](_0x5eef11=>_0x5eef11===_0x251c4f[_0x1642cc(0xe0)][_0x1642cc(0xef)])?{'paragraph':_0x2316e7,'endTokenOffset':_0x1db552}:null;}function _0x40ae8b(_0x2f4118,_0x4b150a){const _0x2e4728=_0x200560;var _0x5d5d12;let _0x19140d=_0x272708(_0x2f4118,_0x4b150a),_0x3ef4cf=_0x2f4118['dataStream'][_0x19140d+0x1];_0x3ef4cf!==_0x251c4f['DataStreamTreeTokenType'][_0x2e4728(0xf2)]&&_0x3ef4cf!==void 0x0||_0x5d2f57(_0x2f4118,_0x19140d+0x1,_0x251c4f['DataStreamTreeTokenType'][_0x2e4728(0xa3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x251c4f[_0x2e4728(0x94)])(new Set((_0x5d5d12=_0x2f4118['paragraphs'])==null?void 0x0:_0x5d5d12[_0x2e4728(0x7f)](_0x38832f=>_0x38832f['paragraphId'])))}]});}function _0x5d2f57(_0x2bcc9d,_0x1b0c95,_0x54504c,_0x539d36={}){const _0x25c7db=_0x200560;var _0x29a4ea,_0x37f2bc;if(_0x54504c){if(_0x2bcc9d[_0x25c7db(0x11f)]=''+_0x2bcc9d[_0x25c7db(0x11f)]['slice'](0x0,_0x1b0c95)+_0x54504c+_0x2bcc9d[_0x25c7db(0x11f)][_0x25c7db(0xff)](_0x1b0c95),_0x5a1ce0(_0x2bcc9d,_0x1b0c95,_0x54504c[_0x25c7db(0x7b)]),(_0x29a4ea=_0x539d36[_0x25c7db(0x122)])!=null&&_0x29a4ea['length']){var _0x44445c;_0x2bcc9d[_0x25c7db(0x122)]=[...(_0x44445c=_0x2bcc9d[_0x25c7db(0x122)])==null?[]:_0x44445c,..._0x539d36[_0x25c7db(0x122)]['map'](_0x4b8921=>({..._0x4b8921,'startIndex':_0x4b8921[_0x25c7db(0x8a)]+_0x1b0c95}))][_0x25c7db(0x99)]((_0x5b89fe,_0x8954f9)=>_0x5b89fe[_0x25c7db(0x8a)]-_0x8954f9[_0x25c7db(0x8a)]);}if((_0x37f2bc=_0x539d36['blockRanges'])!=null&&_0x37f2bc[_0x25c7db(0x7b)]){var _0xc17eef;_0x2bcc9d[_0x25c7db(0xab)]=[...(_0xc17eef=_0x2bcc9d[_0x25c7db(0xab)])==null?[]:_0xc17eef,..._0x539d36[_0x25c7db(0xab)][_0x25c7db(0x7f)](_0x34d5e1=>({..._0x34d5e1,'startIndex':_0x34d5e1[_0x25c7db(0x8a)]+_0x1b0c95,'endIndex':_0x34d5e1['endIndex']+_0x1b0c95}))]['sort']((_0x58c578,_0x450554)=>_0x58c578['startIndex']-_0x450554[_0x25c7db(0x8a)]);}}}function _0x12be68(_0xa2daf7,_0x53c40f,_0x5c235c){const _0x11edcb=_0x200560;let _0xafc083=_0x5c235c-_0x53c40f;_0xa2daf7[_0x11edcb(0x11f)]=''+_0xa2daf7[_0x11edcb(0x11f)][_0x11edcb(0xff)](0x0,_0x53c40f)+_0xa2daf7[_0x11edcb(0x11f)][_0x11edcb(0xff)](_0x5c235c),_0x284992(_0xa2daf7,_0x53c40f,_0xafc083);}function _0x5a1ce0(_0x251087,_0x4d0271,_0x206ba1){const _0x526154=_0x200560;_0x251087['paragraphs']=_0x31ed43(_0x251087[_0x526154(0x122)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x105)]=_0x31ed43(_0x251087[_0x526154(0x105)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x110)]=_0x31ed43(_0x251087[_0x526154(0x110)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x96)]=_0x1a8b52(_0x251087['textRuns'],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0x104)]=_0x3f6e08(_0x251087[_0x526154(0x104)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0xb8)]=_0x3f6e08(_0x251087[_0x526154(0xb8)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0xbb)]=_0x3f6e08(_0x251087[_0x526154(0xbb)],_0x4d0271,_0x206ba1),_0x251087[_0x526154(0xab)]=_0x3f6e08(_0x251087[_0x526154(0xab)],_0x4d0271,_0x206ba1);}function _0x284992(_0x20361e,_0x243601,_0x58b642){const _0x3b5fca=_0x200560;var _0x41edc4,_0xe4508;_0x20361e['paragraphs']=_0x27bfdd(_0x20361e[_0x3b5fca(0x122)],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0x105)]=_0x27bfdd(_0x20361e[_0x3b5fca(0x105)],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0x110)]=_0x27bfdd(_0x20361e[_0x3b5fca(0x110)],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0x96)]=(_0x41edc4=_0x3b15aa((_0xe4508=_0x20361e[_0x3b5fca(0x96)])==null?void 0x0:_0xe4508[_0x3b5fca(0x7f)](_0x52c798=>({..._0x52c798,'startIndex':_0x52c798['st'],'endIndex':_0x52c798['ed']})),_0x243601,_0x58b642))==null?void 0x0:_0x41edc4[_0x3b5fca(0x7f)](_0x4edaee=>{let {startIndex:_0x333758,endIndex:_0x5f1bf7,..._0x37f23a}=_0x4edaee;return{..._0x37f23a,'st':_0x333758,'ed':_0x5f1bf7};}),_0x20361e[_0x3b5fca(0x104)]=_0x3b15aa(_0x20361e[_0x3b5fca(0x104)],_0x243601,_0x58b642),_0x20361e['customRanges']=_0x3b15aa(_0x20361e['customRanges'],_0x243601,_0x58b642),_0x20361e[_0x3b5fca(0xbb)]=_0x3b15aa(_0x20361e[_0x3b5fca(0xbb)],_0x243601,_0x58b642),_0x20361e['blockRanges']=_0x3b15aa(_0x20361e['blockRanges'],_0x243601,_0x58b642);}function _0x31ed43(_0x500dec,_0x369866,_0x3d6648){const _0x274af7=_0x200560;return _0x500dec==null?void 0x0:_0x500dec[_0x274af7(0x7f)](_0xf6b141=>_0xf6b141['startIndex']>=_0x369866?{..._0xf6b141,'startIndex':_0xf6b141[_0x274af7(0x8a)]+_0x3d6648}:_0xf6b141);}function _0x27bfdd(_0x2f3a35,_0x9a8afc,_0x56b934){const _0x1a2545=_0x200560;let _0x9deb68=_0x9a8afc+_0x56b934;return _0x2f3a35==null?void 0x0:_0x2f3a35[_0x1a2545(0x7f)](_0x2d92a2=>_0x2d92a2[_0x1a2545(0x8a)]>=_0x9a8afc&&_0x2d92a2[_0x1a2545(0x8a)]<_0x9deb68?null:_0x2d92a2[_0x1a2545(0x8a)]>=_0x9deb68?{..._0x2d92a2,'startIndex':_0x2d92a2[_0x1a2545(0x8a)]-_0x56b934}:_0x2d92a2)[_0x1a2545(0xe9)](_0x15a28e=>_0x15a28e!=null);}function _0x1a8b52(_0x214d42,_0x2c493d,_0x581fb1){return _0x214d42==null?void 0x0:_0x214d42['map'](_0x4997e7=>_0x4997e7['st']>=_0x2c493d?{..._0x4997e7,'st':_0x4997e7['st']+_0x581fb1,'ed':_0x4997e7['ed']+_0x581fb1}:_0x4997e7['ed']>_0x2c493d?{..._0x4997e7,'ed':_0x4997e7['ed']+_0x581fb1}:_0x4997e7);}function _0x3f6e08(_0x2359d1,_0x504c04,_0x4b3ea0){const _0x2ebda7=_0x200560;return _0x2359d1==null?void 0x0:_0x2359d1[_0x2ebda7(0x7f)](_0x432ca6=>_0x432ca6[_0x2ebda7(0x8a)]>=_0x504c04?{..._0x432ca6,'startIndex':_0x432ca6[_0x2ebda7(0x8a)]+_0x4b3ea0,'endIndex':_0x432ca6[_0x2ebda7(0xf6)]+_0x4b3ea0}:_0x432ca6[_0x2ebda7(0xf6)]>=_0x504c04?{..._0x432ca6,'endIndex':_0x432ca6[_0x2ebda7(0xf6)]+_0x4b3ea0}:_0x432ca6);}function _0x3b15aa(_0x43cc4d,_0x18b381,_0x3a5442){const _0x202fbe=_0x200560;let _0x459a82=_0x18b381+_0x3a5442;return _0x43cc4d==null?void 0x0:_0x43cc4d[_0x202fbe(0x7f)](_0x5b927c=>_0x5b927c[_0x202fbe(0x8a)]>=_0x18b381&&_0x5b927c[_0x202fbe(0xf6)]<_0x459a82?null:_0x5b927c['startIndex']>=_0x459a82?{..._0x5b927c,'startIndex':_0x5b927c[_0x202fbe(0x8a)]-_0x3a5442,'endIndex':_0x5b927c[_0x202fbe(0xf6)]-_0x3a5442}:_0x5b927c[_0x202fbe(0xf6)]>=_0x18b381?{..._0x5b927c,'startIndex':_0x5b927c[_0x202fbe(0x8a)]<_0x18b381?_0x5b927c[_0x202fbe(0x8a)]:_0x18b381,'endIndex':Math[_0x202fbe(0x9c)](_0x18b381,_0x5b927c[_0x202fbe(0xf6)]-_0x3a5442)}:_0x5b927c)['filter'](_0x444564=>_0x444564!=null);}function _0xea1e81(_0x28e2f2,_0x5d7822,_0x3f8ab1,_0x17fe59){const _0x99f4e1=_0x200560;_0x28e2f2==null||_0x28e2f2[_0x99f4e1(0x92)](_0x20ffb7=>{const _0x1fc81d=_0x99f4e1;_0x20ffb7[_0x1fc81d(0x8a)]>=_0x5d7822&&_0x20ffb7[_0x1fc81d(0x8a)]<_0x3f8ab1&&(_0x20ffb7[_0x1fc81d(0x8a)]+=_0x17fe59);});}function _0x9ff239(_0x30f198,_0x454946,_0x3e37a8,_0x11ed77){const _0x5b0c6e=_0x200560;_0x30f198==null||_0x30f198[_0x5b0c6e(0x92)](_0x1c3f46=>{_0x1c3f46['st']>=_0x454946&&_0x1c3f46['st']<_0x3e37a8?(_0x1c3f46['st']+=_0x11ed77,_0x1c3f46['ed']+=_0x11ed77):_0x1c3f46['ed']>_0x454946&&_0x1c3f46['ed']<_0x3e37a8&&(_0x1c3f46['ed']+=_0x11ed77);});}function _0x246d69(_0x1e5b0c,_0x435fe6,_0xdc9865,_0x18cd48){const _0x4eb2ab=_0x200560;_0x1e5b0c==null||_0x1e5b0c[_0x4eb2ab(0x92)](_0x417ab0=>{const _0x104abe=_0x4eb2ab;_0x417ab0[_0x104abe(0x8a)]>=_0x435fe6&&_0x417ab0['startIndex']<_0xdc9865?(_0x417ab0['startIndex']+=_0x18cd48,_0x417ab0['endIndex']+=_0x18cd48):_0x417ab0['endIndex']>_0x435fe6&&_0x417ab0[_0x104abe(0xf6)]<_0xdc9865&&(_0x417ab0[_0x104abe(0xf6)]+=_0x18cd48);});}function _0x1af374(_0x44c307){'@babel/helpers - typeof';const _0x593964=_0x200560;return _0x1af374=typeof Symbol==_0x593964(0xb3)&&typeof Symbol[_0x593964(0x100)]==_0x593964(0x82)?function(_0x242967){return typeof _0x242967;}:function(_0x3b1055){const _0x5a5fc6=_0x593964;return _0x3b1055&&typeof Symbol==_0x5a5fc6(0xb3)&&_0x3b1055[_0x5a5fc6(0xc6)]===Symbol&&_0x3b1055!==Symbol[_0x5a5fc6(0xfa)]?_0x5a5fc6(0x82):typeof _0x3b1055;},_0x1af374(_0x44c307);}function _0x19ff5c(_0x402bf0,_0x3064bb){const _0x4a3b78=_0x200560;if(_0x1af374(_0x402bf0)!='object'||!_0x402bf0)return _0x402bf0;var _0x2935e6=_0x402bf0[Symbol[_0x4a3b78(0x80)]];if(_0x2935e6!==void 0x0){var _0x1d93d4=_0x2935e6[_0x4a3b78(0xec)](_0x402bf0,_0x3064bb||_0x4a3b78(0x90));if(_0x1af374(_0x1d93d4)!='object')return _0x1d93d4;throw TypeError(_0x4a3b78(0x125));}return(_0x3064bb===_0x4a3b78(0x91)?String:Number)(_0x402bf0);}function _0x212100(_0x5a061e){const _0x3a821=_0x200560;var _0x3e302f=_0x19ff5c(_0x5a061e,_0x3a821(0x91));return _0x1af374(_0x3e302f)=='symbol'?_0x3e302f:_0x3e302f+'';}function _0x108fd4(_0x480f08,_0x1f56b8,_0x224ec9){return(_0x1f56b8=_0x212100(_0x1f56b8))in _0x480f08?Object['defineProperty'](_0x480f08,_0x1f56b8,{'value':_0x224ec9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x480f08[_0x1f56b8]=_0x224ec9,_0x480f08;}var _0x5e7d86=class extends _0x251c4f[_0x200560(0x7a)]{constructor(..._0x30cedc){const _0x4624b7=_0x200560;super(..._0x30cedc),_0x108fd4(this,_0x4624b7(0x111),new Map()),_0x108fd4(this,_0x4624b7(0xaa),new _0x2b163c['Subject']()),_0x108fd4(this,_0x4624b7(0x121),this[_0x4624b7(0xaa)]['asObservable']());}['getCodeConfig'](_0x8656dc,_0x12b37f){const _0x332833=_0x200560;return _0x1b4e79(this[_0x332833(0x111)][_0x332833(0xc9)](_0x8656dc))[_0x332833(0x11e)][_0x12b37f];}[_0x200560(0xde)](_0x4a2d67,_0x3957d7,_0x42a9b2){const _0x4d0c88=_0x200560;this[_0x4d0c88(0xd8)](_0x4a2d67,_0x3957d7,_0x11cee3(this[_0x4d0c88(0x111)][_0x4d0c88(0xc9)](_0x4a2d67),_0x3957d7,_0x42a9b2));}[_0x200560(0xc5)](_0x201a1a,_0xb0b8f4){const _0x359509=_0x200560;this[_0x359509(0xd8)](_0x201a1a,_0xb0b8f4,_0x1d6e94(this[_0x359509(0x111)][_0x359509(0xc9)](_0x201a1a),_0xb0b8f4));}[_0x200560(0x86)](_0x45a4ef){const _0x2987ae=_0x200560;return _0x1b4e79(this[_0x2987ae(0x111)]['get'](_0x45a4ef));}[_0x200560(0x88)](_0x1d0493,_0x282707){const _0x57687e=_0x200560;this['_resources'][_0x57687e(0xce)](_0x1d0493,_0x1b4e79(_0x282707)),this[_0x57687e(0xaa)][_0x57687e(0xeb)]({'unitId':_0x1d0493});}[_0x200560(0xf0)](_0x109056){const _0x2ca14e=_0x200560;this[_0x2ca14e(0x111)][_0x2ca14e(0xe3)](_0x109056),this['_change$'][_0x2ca14e(0xeb)]({'unitId':_0x109056});}['dispose'](){const _0x1c8463=_0x200560;super[_0x1c8463(0x98)](),this['_resources']['clear'](),this[_0x1c8463(0xaa)]['complete']();}[_0x200560(0xd8)](_0x53683e,_0x2b34cf,_0xf09c32){const _0x119462=_0x200560;this[_0x119462(0x111)][_0x119462(0xce)](_0x53683e,_0xf09c32),this['_change$'][_0x119462(0xeb)]({'unitId':_0x53683e,'blockId':_0x2b34cf});}};let _0x3f99c5={'id':_0x200560(0xb6),'type':_0x251c4f[_0x200560(0xe2)]['COMMAND'],'handler':_0x3cc55c=>{const _0xa2d3ac=_0x200560;let _0x4fba9d=_0x27f815(_0x3cc55c);if(_0x4fba9d)return _0x3cc55c[_0xa2d3ac(0xc9)](_0x251c4f['ICommandService'])[_0xa2d3ac(0xad)](_0x263443['id'],{'startOffset':_0x4fba9d[_0xa2d3ac(0x83)],'endOffset':_0x4fba9d[_0xa2d3ac(0xbe)],'unitId':_0x4fba9d[_0xa2d3ac(0xbc)]});let _0xa60f1d=_0x27037e(_0x3cc55c);if(!_0xa60f1d)return!0x1;let _0x582494=_0xa60f1d[_0xa2d3ac(0x8a)]+0x1;return _0x3cc55c['get'](_0x251c4f['ICommandService'])[_0xa2d3ac(0xad)](_0x263443['id'],{'startOffset':_0x582494,'endOffset':_0x582494});}},_0x50a7d3={'id':_0x200560(0xb9),'type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':()=>!0x0},_0x263443={'id':_0x200560(0x8b),'type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':(_0x131029,_0x1ad1b1)=>{const _0x195f4a=_0x200560;var _0x1b3c5b,_0x5e5b5d,_0x30745c;let _0x52eadb=_0x5984ae(_0x131029,_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xbc)]);if(!_0x52eadb)return!0x1;let _0x12acd6=_0x5afe05(_0x131029),_0x498ac2=_0x5a021d({'blockId':(_0x1b3c5b=_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xa8)])==null?(0x0,_0x251c4f[_0x195f4a(0x10f)])(0x6):_0x1b3c5b,'config':_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xa6)],'documentData':_0x52eadb[_0x195f4a(0x11d)],'endOffset':(_0x5e5b5d=_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0xbe)])==null?_0x12acd6==null?void 0x0:_0x12acd6[_0x195f4a(0xbe)]:_0x5e5b5d,'metadata':_0x52eadb['model'][_0x195f4a(0x86)](_0x52eadb['unitId']),'startOffset':(_0x30745c=_0x1ad1b1==null?void 0x0:_0x1ad1b1[_0x195f4a(0x83)])==null?_0x12acd6==null?void 0x0:_0x12acd6[_0x195f4a(0x83)]:_0x30745c}),_0xa33489=_0x13db48(_0x52eadb[_0x195f4a(0x7d)],_0x52eadb['unitId'],_0x52eadb[_0x195f4a(0x11d)],_0x498ac2[_0x195f4a(0xd0)],_0x498ac2[_0x195f4a(0xf8)]);return _0xa33489&&_0x498ac2[_0x195f4a(0xf9)]&&_0x52eadb[_0x195f4a(0x10e)][_0x195f4a(0x88)](_0x52eadb[_0x195f4a(0xbc)],_0x498ac2['nextMetadata']),_0xa33489;}},_0x172710={'id':'docs-code.command.update','type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':(_0x2f25fc,_0x484b94)=>{const _0x145484=_0x200560;if(!_0x484b94)return!0x1;let _0x5f5d4c=_0x5984ae(_0x2f25fc,_0x484b94[_0x145484(0xbc)]);if(!_0x5f5d4c)return!0x1;let _0x1d500f=_0x265b54({'blockId':_0x484b94[_0x145484(0xa8)],'config':_0x484b94[_0x145484(0xa6)],'documentData':_0x5f5d4c[_0x145484(0x11d)],'metadata':_0x5f5d4c[_0x145484(0x10e)][_0x145484(0x86)](_0x5f5d4c[_0x145484(0xbc)])});return _0x1d500f[_0x145484(0xf9)]&&_0x5f5d4c[_0x145484(0x10e)][_0x145484(0x88)](_0x5f5d4c[_0x145484(0xbc)],_0x1d500f[_0x145484(0xf9)]),!0x0;}},_0xfcbb9c={'id':_0x200560(0xbf),'type':_0x251c4f['CommandType'][_0x200560(0x9a)],'handler':(_0x289aff,_0x2d2693)=>{const _0x4cbb19=_0x200560;var _0x4bc26e,_0x3a395a;let _0x2fc249=_0x5984ae(_0x289aff,_0x2d2693==null?void 0x0:_0x2d2693['unitId']);if(!_0x2fc249)return!0x1;let _0x2310cd=(_0x4bc26e=_0x2d2693==null?void 0x0:_0x2d2693['cursorOffset'])==null?(_0x3a395a=_0x5afe05(_0x289aff))==null?void 0x0:_0x3a395a['startOffset']:_0x4bc26e;if(_0x2310cd==null)return!0x1;let _0x1885d2=_0x100cad({'cursorOffset':_0x2310cd,'documentData':_0x2fc249[_0x4cbb19(0x11d)]});return _0x1885d2?_0x13db48(_0x2fc249['commandService'],_0x2fc249['unitId'],_0x2fc249['previousDocumentData'],_0x1885d2[_0x4cbb19(0xd0)],_0x1885d2[_0x4cbb19(0xf8)]):!0x1;}},_0x47d26e={'id':_0x200560(0x78),'type':_0x251c4f[_0x200560(0xe2)]['COMMAND'],'handler':(_0x1e34b8,_0x5dd730)=>{const _0x582835=_0x200560;var _0x384a80,_0x30733d;let _0x51acbf=_0x5984ae(_0x1e34b8,_0x5dd730==null?void 0x0:_0x5dd730[_0x582835(0xbc)]);if(!_0x51acbf)return!0x1;let _0x921c83=(_0x384a80=_0x5dd730==null?void 0x0:_0x5dd730[_0x582835(0xf8)])==null?(_0x30733d=_0x5afe05(_0x1e34b8))==null?void 0x0:_0x30733d[_0x582835(0x83)]:_0x384a80;if(_0x921c83==null)return!0x1;let _0x35658f=_0x1616d1({'cursorOffset':_0x921c83,'documentData':_0x51acbf[_0x582835(0x11d)],'paragraphStartIndex':_0x5dd730==null?void 0x0:_0x5dd730[_0x582835(0x95)]});return _0x35658f?_0x13db48(_0x51acbf[_0x582835(0x7d)],_0x51acbf[_0x582835(0xbc)],_0x51acbf[_0x582835(0x11d)],_0x35658f['nextDocumentData'],_0x35658f[_0x582835(0xf8)]):!0x1;}};function _0x5984ae(_0x5e6569,_0x3122a4){const _0x1e8b57=_0x200560;let _0x14d103=_0x5e6569['get'](_0x251c4f[_0x1e8b57(0xb1)]),_0x4aae1d=_0x3122a4?_0x14d103[_0x1e8b57(0xcc)](_0x3122a4):_0x14d103['getCurrentUnitOfType'](_0x251c4f[_0x1e8b57(0xa7)]['UNIVER_DOC']);return _0x4aae1d?{'commandService':_0x5e6569[_0x1e8b57(0xc9)](_0x251c4f[_0x1e8b57(0x113)]),'model':_0x5e6569[_0x1e8b57(0xc9)](_0x5e7d86),'previousDocumentData':_0x4aae1d['getSnapshot'](),'unitId':_0x4aae1d[_0x1e8b57(0xd1)]()}:null;}function _0x5afe05(_0x3254cc){const _0x3b2bf1=_0x200560;var _0x8de0f9;return(_0x8de0f9=_0x3254cc[_0x3b2bf1(0xc9)](_0x3e1fc8[_0x3b2bf1(0xb4)])[_0x3b2bf1(0x7e)]())==null?void 0x0:_0x8de0f9[0x0];}function _0x27f815(_0x2086d5){const _0x3650ee=_0x200560;var _0x12aadd;let _0x3303f4=(_0x12aadd=_0x2086d5['get'](_0x251c4f[_0x3650ee(0xb1)])[_0x3650ee(0x103)](_0x251c4f['UniverInstanceType'][_0x3650ee(0xf4)]))==null?void 0x0:_0x12aadd[_0x3650ee(0xd1)]();try{return _0x2086d5[_0x3650ee(0xc9)](_0x3e1fc8[_0x3650ee(0x108)])[_0x3650ee(0xc7)](_0x3303f4);}catch{return null;}}function _0x27037e(_0x3e2b00){const _0x567aab=_0x200560;var _0x16e3ef,_0x5d041b,_0x1e5dec;let _0x275dac=_0x5afe05(_0x3e2b00);if(!_0x275dac)return null;let _0x3771b2=_0x3e2b00[_0x567aab(0xc9)](_0x251c4f[_0x567aab(0xb1)])[_0x567aab(0x103)](_0x251c4f[_0x567aab(0xa7)]['UNIVER_DOC']),_0xa0d72d=_0x3771b2==null?void 0x0:_0x3771b2[_0x567aab(0xd2)]();return _0xa0d72d?(_0x16e3ef=_0x251c4f['BuildTextUtils'][_0x567aab(0xfe)][_0x567aab(0x89)](_0x275dac,(_0x5d041b=_0xa0d72d[_0x567aab(0x122)])==null?[]:_0x5d041b,(_0x1e5dec=_0xa0d72d[_0x567aab(0x11f)])==null?'':_0x1e5dec)[0x0])==null?null:_0x16e3ef:null;}function _0x132157(_0x46544a,_0x5df7a3){const _0x4ed065=_0x200560;var _0x7c8d2b,_0x59f0cc,_0x53b152,_0x4f0dd7,_0x26134a,_0x50f615,_0x1a922d,_0x3a23c6,_0x41a390,_0x28f809,_0x45bae5,_0xd4e08c,_0x23fc38,_0x5d6099,_0x3f62b6,_0x5157a6,_0x44ce76,_0x4b26e6;let _0x273474=_0x251c4f[_0x4ed065(0xc4)][_0x4ed065(0x118)]();return[_0x39fdbe(_0x273474,[_0x4ed065(0xfd),'dataStream'],(_0x7c8d2b=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x7c8d2b[_0x4ed065(0x11f)],(_0x59f0cc=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x59f0cc['dataStream']),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),'paragraphs'],(_0x53b152=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x53b152[_0x4ed065(0x122)],(_0x4f0dd7=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x4f0dd7[_0x4ed065(0x122)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0x105)],(_0x26134a=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x26134a[_0x4ed065(0x105)],(_0x50f615=_0x5df7a3['body'])==null?void 0x0:_0x50f615['sectionBreaks']),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),'textRuns'],(_0x1a922d=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x1a922d[_0x4ed065(0x96)],(_0x3a23c6=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x3a23c6[_0x4ed065(0x96)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0x110)],(_0x41a390=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x41a390[_0x4ed065(0x110)],(_0x28f809=_0x5df7a3['body'])==null?void 0x0:_0x28f809['customBlocks']),_0x39fdbe(_0x273474,['body','customRanges'],(_0x45bae5=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x45bae5[_0x4ed065(0xb8)],(_0xd4e08c=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0xd4e08c[_0x4ed065(0xb8)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0xbb)],(_0x23fc38=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x23fc38[_0x4ed065(0xbb)],(_0x5d6099=_0x5df7a3['body'])==null?void 0x0:_0x5d6099['customDecorations']),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0x104)],(_0x3f62b6=_0x46544a['body'])==null?void 0x0:_0x3f62b6[_0x4ed065(0x104)],(_0x5157a6=_0x5df7a3[_0x4ed065(0xfd)])==null?void 0x0:_0x5157a6[_0x4ed065(0x104)]),_0x39fdbe(_0x273474,[_0x4ed065(0xfd),_0x4ed065(0xab)],(_0x44ce76=_0x46544a[_0x4ed065(0xfd)])==null?void 0x0:_0x44ce76['blockRanges'],(_0x4b26e6=_0x5df7a3['body'])==null?void 0x0:_0x4b26e6['blockRanges'])]['filter'](Boolean)[_0x4ed065(0x109)]((_0x47a007,_0x210d32)=>_0x251c4f['JSONX']['compose'](_0x47a007,_0x210d32),null);}function _0x39fdbe(_0x27290c,_0x583f8d,_0x121141,_0x4b8cd2){const _0x580930=_0x200560;return _0x251c4f['Tools'][_0x580930(0xf5)](_0x121141,_0x4b8cd2)?null:_0x27290c[_0x580930(0xd4)](_0x583f8d,_0x121141,_0x4b8cd2);}function _0x13db48(_0x413d04,_0x51cfad,_0xa6c37f,_0xb6d0c1,_0x4f29a5){const _0x24ce11=_0x200560;let _0x2339c5=_0x132157(_0xa6c37f,_0xb6d0c1);return _0x2339c5?!!_0x413d04['syncExecuteCommand'](_0x3e1fc8[_0x24ce11(0xd5)]['id'],{'unitId':_0x51cfad,'actions':_0x2339c5,'textRanges':[{'startOffset':_0x4f29a5,'endOffset':_0x4f29a5,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x2baf1e=_0x200560(0xb5);var _0x1dd9bd=_0x200560(0xda),_0x47349d=_0x200560(0xa4);let _0x14a615={};function _0x3a624b(_0x1e1d9e,_0x97b281){return function(_0x5434d6,_0x13ced1){_0x97b281(_0x5434d6,_0x13ced1,_0x1e1d9e);};}function _0x34d5e3(_0x29533d,_0x4875ea,_0x466209,_0x5dd048){const _0x8a6f6c=_0x200560;var _0x30bdd5=arguments[_0x8a6f6c(0x7b)],_0x59f32a=_0x30bdd5<0x3?_0x4875ea:_0x5dd048===null?_0x5dd048=Object[_0x8a6f6c(0x123)](_0x4875ea,_0x466209):_0x5dd048,_0x8af0d2;if(typeof Reflect==_0x8a6f6c(0xa5)&&typeof Reflect['decorate']==_0x8a6f6c(0xb3))_0x59f32a=Reflect[_0x8a6f6c(0x128)](_0x29533d,_0x4875ea,_0x466209,_0x5dd048);else{for(var _0x10a813=_0x29533d['length']-0x1;_0x10a813>=0x0;_0x10a813--)(_0x8af0d2=_0x29533d[_0x10a813])&&(_0x59f32a=(_0x30bdd5<0x3?_0x8af0d2(_0x59f32a):_0x30bdd5>0x3?_0x8af0d2(_0x4875ea,_0x466209,_0x59f32a):_0x8af0d2(_0x4875ea,_0x466209))||_0x59f32a);}return _0x30bdd5>0x3&&_0x59f32a&&Object[_0x8a6f6c(0x101)](_0x4875ea,_0x466209,_0x59f32a),_0x59f32a;}let _0x5898c7=class extends _0x251c4f[_0x200560(0x7a)]{constructor(_0x8fce36,_0x4ef87c){const _0x313dec=_0x200560;super(),this[_0x313dec(0xfb)]=_0x8fce36,this['_docsCodeModel']=_0x4ef87c,this[_0x313dec(0x112)]();}[_0x200560(0x112)](){const _0x4b355a=_0x200560;this[_0x4b355a(0xc0)](this[_0x4b355a(0xfb)]['registerPluginResource']({'pluginName':_0x2baf1e,'businesses':[_0x251c4f[_0x4b355a(0xa7)][_0x4b355a(0xf4)]],'toJson':_0x5effb2=>JSON[_0x4b355a(0xea)](this[_0x4b355a(0xee)][_0x4b355a(0x86)](_0x5effb2)),'parseJson':_0x4eb5f7=>_0x1b4e79(JSON[_0x4b355a(0x129)](_0x4eb5f7)),'onLoad':(_0x18f22c,_0x5cfbb7)=>this[_0x4b355a(0xee)][_0x4b355a(0x88)](_0x18f22c,_0x5cfbb7),'onUnLoad':_0xf09111=>this['_docsCodeModel'][_0x4b355a(0xf0)](_0xf09111)}));}};_0x5898c7=_0x34d5e3([_0x3a624b(0x0,_0x251c4f[_0x200560(0xe7)]),_0x3a624b(0x1,(0x0,_0x251c4f[_0x200560(0xa9)])(_0x5e7d86))],_0x5898c7);let _0x22f1ec=class extends _0x251c4f[_0x200560(0xb2)]{constructor(_0x31e317=_0x14a615,_0x378806,_0x4e46ab,_0x5eeffe){const _0x494be1=_0x200560;super(),this[_0x494be1(0x85)]=_0x31e317,this['_injector']=_0x378806,this['_commandService']=_0x4e46ab,this[_0x494be1(0xcb)]=_0x5eeffe;let {..._0x492770}=(0x0,_0x251c4f[_0x494be1(0xcd)])({},_0x14a615,this[_0x494be1(0x85)]);this[_0x494be1(0xcb)][_0x494be1(0x127)](_0x494be1(0xb0),_0x492770);}[_0x200560(0x8d)](){const _0x2058ee=_0x200560;this['_injector'][_0x2058ee(0x8e)]([_0x5e7d86]),this['_injector']['add']([_0x5898c7]),this[_0x2058ee(0xdc)]['get'](_0x5e7d86),this[_0x2058ee(0xdc)][_0x2058ee(0xc9)](_0x5898c7),[_0x263443,_0x3f99c5,_0x172710,_0xfcbb9c,_0x47d26e,_0x50a7d3][_0x2058ee(0x92)](_0x2cdae4=>this['disposeWithMe'](this['_commandService'][_0x2058ee(0x10d)](_0x2cdae4)));}};_0x108fd4(_0x22f1ec,_0x200560(0x8f),_0x2baf1e),_0x108fd4(_0x22f1ec,'packageName',_0x1dd9bd),_0x108fd4(_0x22f1ec,'version',_0x47349d),_0x108fd4(_0x22f1ec,_0x200560(0xfc),_0x251c4f[_0x200560(0xa7)][_0x200560(0xf4)]),_0x22f1ec=_0x34d5e3([(0x0,_0x251c4f[_0x200560(0x9f)])(_0x335c38[_0x200560(0x107)],_0x3e1fc8['UniverDocsPlugin']),_0x3a624b(0x1,(0x0,_0x251c4f[_0x200560(0xa9)])(_0x251c4f[_0x200560(0xf7)])),_0x3a624b(0x2,_0x251c4f[_0x200560(0x113)]),_0x3a624b(0x3,_0x251c4f[_0x200560(0xae)])],_0x22f1ec),_0x55d9d9[_0x200560(0xdf)]=_0x528c24,_0x55d9d9[_0x200560(0xac)]=_0x2baf1e,_0x55d9d9[_0x200560(0xf3)]=_0x47d26e,_0x55d9d9[_0x200560(0x11c)]=_0x50a7d3,_0x55d9d9[_0x200560(0x9d)]=_0xfcbb9c,_0x55d9d9[_0x200560(0x10a)]=_0x3f99c5,_0x55d9d9[_0x200560(0xa0)]=_0x263443,_0x55d9d9['DocsCodeModel']=_0x5e7d86,_0x55d9d9[_0x200560(0x114)]=_0x172710,Object[_0x200560(0x101)](_0x55d9d9,_0x200560(0x102),{'enumerable':!0x0,'get':function(){return _0x22f1ec;}}),_0x55d9d9[_0x200560(0xd7)]=_0x1616d1,_0x55d9d9[_0x200560(0x126)]=_0x100cad,_0x55d9d9['buildInsertCodeActions']=_0x5a021d,_0x55d9d9[_0x200560(0x77)]=_0x265b54,_0x55d9d9[_0x200560(0xcf)]=_0x4e9658,_0x55d9d9['isCodeBoundaryDelete']=_0x411ca6,_0x55d9d9[_0x200560(0xb7)]=_0x46d2c6;}));function _0x3a03(_0x5bedd8,_0x23ec9f){_0x5bedd8=_0x5bedd8-0x77;const _0xa04039=_0xa040();let _0x3a03ec=_0xa04039[_0x5bedd8];return _0x3a03ec;}function _0xa040(){const _0x40deef=['Disposable','length','BLOCK_START','commandService','getTextRanges','map','toPrimitive','483440xMyGjs','symbol','startOffset','5184170gQCOVs','_config','serialize','blockType','deserialize','getParagraphsInRange','startIndex','docs-code.command.insert','12FbpsIW','onStarting','add','pluginName','default','string','forEach','445515RHCRUj','createParagraphId','paragraphStartIndex','textRuns','from','dispose','sort','COMMAND','deepClone','max','DocsCodeExitCommand','join','DependentOn','DocsCodeInsertCommand','documentData','269370bbCJIP','PARAGRAPH','1.0.0-alpha.0','object','config','UniverInstanceType','blockId','Inject','_change$','blockRanges','DOCS_CODE_PLUGIN','syncExecuteCommand','IConfigService','rxjs','docs-code.config','IUniverInstanceService','Plugin','function','DocSelectionManagerService','DOC_CODE_PLUGIN','docs-code.command.insert-below','normalizeDocsCodeConfig','customRanges','docs-code.command.consume-boundary-delete','Module','customDecorations','unitId','some','endOffset','docs-code.command.exit','disposeWithMe','UniverProLicense','@univerjs/core','indentEnd','JSONX','removeCode','constructor','consumeInsertRange','paragraphStyle','get','Tools','_configService','getUniverDocInstance','merge','set','findCodeRangeAtOffset','nextDocumentData','getUnitId','getBody','227gIPSvy','replaceOp','RichTextEditingMutation','Document\x20body\x20is\x20required','buildCancelEmptyCodeParagraphActions','_setResource','direction','@univerjs-pro/docs-code','UniverDocs','_injector','monospace','setCodeConfig','DEFAULT_CODE_CONFIG','DataStreamTreeTokenType','endTokenOffset','CommandType','delete','CODE','884084OfeTcg','2864PSxZNp','IResourceManagerService','spaceBelow','filter','stringify','next','call','1049874RqwHCj','_docsCodeModel','BLOCK_END','removeUnit','spaceAbove','SECTION_BREAK','DocsCodeCancelEmptyParagraphCommand','UNIVER_DOC','diffValue','endIndex','Injector','cursorOffset','nextMetadata','prototype','_resourceManagerService','type','body','range','slice','iterator','defineProperty','UniverDocsCodePlugin','getCurrentUnitOfType','tables','sectionBreaks','min','UniverLicensePlugin','DocContentInsertService','reduce','DocsCodeInsertBelowCommand','indentStart','entries','registerCommand','model','generateRandomId','customBlocks','_resources','_initResource','ICommandService','DocsCodeUpdateCommand','javascript','toStringTag','endsWith','getInstance','fromEntries','DocumentBlockRangeType','indexOf','DocsCodeConsumeBoundaryDeleteCommand','previousDocumentData','codes','dataStream','textStyle','change$','paragraphs','getOwnPropertyDescriptor','27FDwpeE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','buildExitCodeActions','setConfig','decorate','parse','paragraph','buildUpdateCodeActions','docs-code.command.cancel-empty-paragraph','find'];_0xa040=function(){return _0x40deef;};return _0xa040();}
|
|
1
|
+
function _0x3e30(){const _0xe33266=['commandService','91092uDyKTZ','DocsCodeInsertBelowCommand','DocsCodeUpdateCommand','UniverDocs','indentStart','object','indentEnd','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','version','string','IResourceManagerService','normalizeDocsCodeConfig','UniverDocsCodePlugin','_resources','symbol','asObservable','every','COMMAND','previousDocumentData','DEFAULT_CODE_CONFIG','isCodeBoundaryDelete','42JgBPdo','packageName','CODE','UNIVER_DOC','paragraphs','Tools','@univerjs-pro/license','customDecorations','DOC_CODE_PLUGIN','exports','UniverInstanceType','from','paragraphId','function','range','deserialize','direction','spaceAbove','next','model','buildExitCodeActions','set','map','blockRanges','syncExecuteCommand','javascript','indexOf','1325010vAAWpA','2204364VoKliI','PARAGRAPH','merge','DocsCodeInsertCommand','diffValue','DocContentInsertService','getTextRanges','find','get','length','@univerjs/core','UniverProLicense','clear','entries','1.0.0-alpha.1','getOwnPropertyDescriptor','blockType','spaceBelow','min','41292IhAZqW','startIndex','prototype','reduce','disposeWithMe','DependentOn','decorate','220703bduipV','parse','Injector','defineProperty','setConfig','nextMetadata','unitId','removeCode','getCurrentUnitOfType','getCodeConfig','docs-code.command.cancel-empty-paragraph','constructor','paragraph','toStringTag','_injector','RichTextEditingMutation','max','removeUnit','_change$','cursorOffset','registerPluginResource','JSONX','setCodeConfig','textStyle','textRuns','CommandType','nextDocumentData','_config','rxjs','complete','paragraphStartIndex','Disposable','join','buildUpdateCodeActions','9cnZtGc','buildInsertCodeActions','change$','4696JrrVxs','DocsCodeCancelEmptyParagraphCommand','22pVNdQg','_docsCodeModel','_commandService','@univerjs-pro/docs-code','deepClone','sort','endIndex','DocumentBlockRangeType','BLOCK_START','startOffset','forEach','_resourceManagerService','Inject','documentData','some','docs-code.config','DataStreamTreeTokenType','BLOCK_END','docs-code.command.insert-below','delete','serialize','call','dataStream','Subject','paragraphStyle','getInstance','findCodeRangeAtOffset','tables','dispose','add','sectionBreaks','_configService','900xFaNJD','getBody','blockId','body','endOffset','onStarting','filter','customBlocks','generateRandomId','IUniverInstanceService','codes','replaceOp','config','8TYJBDJ','getUnitId','monospace','_setResource','docs-code.command.insert','UniverDocsPlugin','createParagraphId','Module','ICommandService','SECTION_BREAK','slice','414320glvXpM','fromEntries','_initResource','UniverLicensePlugin','customRanges','amd','consumeInsertRange','type','getUniverDocInstance','metadata'];_0x3e30=function(){return _0xe33266;};return _0x3e30();}function _0x1a29(_0x539223,_0x200863){_0x539223=_0x539223-0x18b;const _0x3e3092=_0x3e30();let _0x1a29e4=_0x3e3092[_0x539223];return _0x1a29e4;}(function(_0xf86dfe,_0x210d9e){const _0x252623=_0x1a29,_0xc8e074=_0xf86dfe();while(!![]){try{const _0x49c647=parseInt(_0x252623(0x1c5))/0x1+-parseInt(_0x252623(0x220))/0x2*(-parseInt(_0x252623(0x236))/0x3)+parseInt(_0x252623(0x1f1))/0x4*(parseInt(_0x252623(0x213))/0x5)+parseInt(_0x252623(0x196))/0x6*(parseInt(_0x252623(0x1cc))/0x7)+parseInt(_0x252623(0x22b))/0x8+-parseInt(_0x252623(0x1ee))/0x9*(parseInt(_0x252623(0x1b1))/0xa)+-parseInt(_0x252623(0x1f3))/0xb*(parseInt(_0x252623(0x1b2))/0xc);if(_0x49c647===_0x210d9e)break;else _0xc8e074['push'](_0xc8e074['shift']());}catch(_0x23b5ed){_0xc8e074['push'](_0xc8e074['shift']());}}}(_0x3e30,0x23cea),function(_0x3ad434,_0x12ddfe){const _0x544dd5=_0x1a29;typeof exports=='object'&&typeof module<'u'?_0x12ddfe(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x544dd5(0x1a3)&&define[_0x544dd5(0x230)]?define([_0x544dd5(0x19f),_0x544dd5(0x1bc),'@univerjs/docs',_0x544dd5(0x1e8),_0x544dd5(0x19c)],_0x12ddfe):(_0x3ad434=typeof globalThis<'u'?globalThis:_0x3ad434||self,_0x12ddfe(_0x3ad434['UniverProDocsCode']={},_0x3ad434['UniverCore'],_0x3ad434[_0x544dd5(0x239)],_0x3ad434[_0x544dd5(0x1e8)],_0x3ad434[_0x544dd5(0x1bd)]));}(this,function(_0x323281,_0x2d2ae4,_0x420f42,_0x6794,_0x181267){const _0x18bb44=_0x1a29;Object['defineProperty'](_0x323281,Symbol[_0x18bb44(0x1d9)],{'value':_0x18bb44(0x227)});let _0x44adb7={'language':_0x18bb44(0x1af),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x566ed2(_0x5cb8ac){return{..._0x44adb7,..._0x5cb8ac};}function _0x44cb53(_0x13c591){const _0x49ef01=_0x18bb44;var _0x327ffc;let _0x281d1b=(_0x327ffc=_0x13c591==null?void 0x0:_0x13c591[_0x49ef01(0x21d)])==null?{}:_0x327ffc;return{'codes':Object[_0x49ef01(0x22c)](Object[_0x49ef01(0x1bf)](_0x281d1b)[_0x49ef01(0x1ac)](([_0x35c427,_0x1df97e])=>[_0x35c427,_0x566ed2(_0x1df97e)]))};}function _0x372441(_0x24fc4e,_0x3f7693,_0x19c8bd){const _0x4c0027=_0x18bb44;let _0x47b713=_0x44cb53(_0x24fc4e);return _0x47b713[_0x4c0027(0x21d)][_0x3f7693]=_0x566ed2({..._0x47b713['codes'][_0x3f7693],..._0x19c8bd}),_0x47b713;}function _0x49632f(_0x37237b,_0x4c996f){const _0x50a16c=_0x18bb44;let _0x432c23=_0x44cb53(_0x37237b);return delete _0x432c23[_0x50a16c(0x21d)][_0x4c996f],_0x432c23;}let _0x40102b=_0x18bb44(0x222);function _0x125d20(_0x52e064){const _0x4bf278=_0x18bb44;var _0x1e8fd1,_0x52c250,_0x412ea2;let _0x4c3d42=_0x34bf55(_0x52e064[_0x4bf278(0x200)]),_0x19901f=_0x174fb6(_0x4c3d42),_0x455e18=_0x574187(_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x7e67b5=_0x455e18?(_0x1e8fd1=_0x19901f['blockRanges'])==null?void 0x0:_0x1e8fd1[_0x4bf278(0x1b9)](_0x20d67c=>_0x20d67c[_0x4bf278(0x1c6)]===_0x455e18['startOffset']&&_0x20d67c['endIndex']+0x1===_0x455e18['endOffset']):void 0x0,{startOffset:_0x1aedd8,endOffset:_0x187a9b}=_0x7e67b5?_0x455e18:_0x1bfbe8(_0x19901f,_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x19e468=_0x1d7302(_0x19901f,_0x1aedd8,_0x187a9b),_0x730958=(_0x52c250=_0x7e67b5==null?void 0x0:_0x7e67b5[_0x4bf278(0x215)])==null?_0x52e064['blockId']:_0x52c250,_0x5ba9cd=_0x372441(_0x52e064['metadata'],_0x730958,{..._0x44adb7,..._0x52e064['config']});if(_0x7e67b5)return _0x7e67b5[_0x4bf278(0x1c2)]=_0x2d2ae4['DocumentBlockRangeType'][_0x4bf278(0x198)],_0x569549(_0x19901f,_0x1aedd8,_0x187a9b),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b,_0x19e468),_0x925f26(_0x19901f,_0x7e67b5),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};if(_0x1aedd8===_0x187a9b){var _0x1c5750,_0x40b1f6;let _0x363720=''+_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x1fb)]+_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1b3)]+_0x2d2ae4[_0x4bf278(0x203)]['BLOCK_END'];_0x2625f3(_0x19901f,_0x1aedd8,_0x363720,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x2d2ae4[_0x4bf278(0x226)])(new Set((_0x1c5750=_0x19901f['paragraphs'])==null?void 0x0:_0x1c5750['map'](_0x2f37f2=>_0x2f37f2[_0x4bf278(0x1a2)]))),'paragraphStyle':_0x4f732c(!0x0,!0x0,_0x19e468)}],'blockRanges':[{'blockId':_0x730958,'blockType':_0x2d2ae4['DocumentBlockRangeType']['CODE'],'startIndex':0x0,'endIndex':_0x363720[_0x4bf278(0x1bb)]-0x1}]});let _0x52a3be=(_0x40b1f6=_0x19901f['blockRanges'])==null?void 0x0:_0x40b1f6[_0x4bf278(0x1b9)](_0x1d8eef=>_0x1d8eef['blockId']===_0x730958);return _0x52a3be&&_0x925f26(_0x19901f,_0x52a3be),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}_0x2625f3(_0x19901f,_0x187a9b,_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x204)]),_0x2625f3(_0x19901f,_0x1aedd8,_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1fb)]),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b+0x1,_0x19e468);let _0x5bdffc={'blockId':_0x730958,'blockType':_0x2d2ae4[_0x4bf278(0x1fa)][_0x4bf278(0x198)],'startIndex':_0x1aedd8,'endIndex':_0x187a9b+0x1};return _0x19901f['blockRanges']=[...(_0x412ea2=_0x19901f[_0x4bf278(0x1ad)])==null?[]:_0x412ea2,_0x5bdffc][_0x4bf278(0x1f8)]((_0x24d1d2,_0x5386a3)=>_0x24d1d2[_0x4bf278(0x1c6)]-_0x5386a3[_0x4bf278(0x1c6)]),_0x925f26(_0x19901f,_0x5bdffc),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}function _0x569549(_0x5be7ad,_0x8f172c,_0x3183ca){const _0x5b9ba6=_0x18bb44;var _0x22834f;((_0x22834f=_0x5be7ad[_0x5b9ba6(0x19a)])==null?[]:_0x22834f)[_0x5b9ba6(0x219)](_0x37b307=>_0x37b307['startIndex']>_0x8f172c&&_0x37b307[_0x5b9ba6(0x1c6)]<_0x3183ca)['forEach'](_0x4a284d=>{const _0xfac6fc=_0x5b9ba6;var _0x575833;let _0x429ac9={...(_0x575833=_0x4a284d[_0xfac6fc(0x20b)])==null?{}:_0x575833};delete _0x429ac9[_0xfac6fc(0x1a7)],delete _0x429ac9[_0xfac6fc(0x1c3)],_0x4a284d[_0xfac6fc(0x20b)]=_0x429ac9;});}function _0x574187(_0x22118b,_0x4e9e1b){const _0x252da2=_0x18bb44;return _0x22118b==null||_0x4e9e1b==null||_0x22118b===_0x4e9e1b?null:{'startOffset':Math[_0x252da2(0x1c4)](_0x22118b,_0x4e9e1b),'endOffset':Math[_0x252da2(0x1dc)](_0x22118b,_0x4e9e1b)};}function _0x5a5761(_0x1aacc8){const _0x1e7a80=_0x18bb44;return{'nextDocumentData':_0x34bf55(_0x1aacc8[_0x1e7a80(0x200)]),'nextMetadata':_0x372441(_0x1aacc8[_0x1e7a80(0x234)],_0x1aacc8[_0x1e7a80(0x215)],_0x1aacc8[_0x1e7a80(0x21f)]),'cursorOffset':0x0};}function _0x4f2c21(_0x571f50){const _0x2aeba7=_0x18bb44;var _0x4b41bf,_0x25c80f;let _0x3b1f80=_0x34bf55(_0x571f50[_0x2aeba7(0x200)]),_0x35e2b7=_0x174fb6(_0x3b1f80),_0x5d53ac=_0x178c6c(_0x35e2b7,_0x571f50[_0x2aeba7(0x1df)]);if(!_0x5d53ac)return null;let _0x1fbe82=_0x5ec5bf(_0x35e2b7,_0x5d53ac),_0x56ef03=_0x1fbe82[_0x1fbe82[_0x2aeba7(0x1bb)]-0x1];if(!_0x56ef03||!_0x20e23f(_0x35e2b7,_0x5d53ac,_0x56ef03)||_0x571f50[_0x2aeba7(0x1df)]<_0x56ef03[_0x2aeba7(0x1c6)])return null;let _0x4ec033=_0x509b08(_0x35e2b7,_0x5d53ac,_0x56ef03);if(_0x4ec033>=_0x5d53ac[_0x2aeba7(0x1f9)])return null;_0x35e2b7[_0x2aeba7(0x209)]=[_0x35e2b7['dataStream']['slice'](0x0,_0x4ec033),_0x2d2ae4[_0x2aeba7(0x203)][_0x2aeba7(0x204)],_0x35e2b7['dataStream'][_0x2aeba7(0x22a)](_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)]),_0x35e2b7[_0x2aeba7(0x209)][_0x2aeba7(0x22a)](_0x5d53ac[_0x2aeba7(0x1f9)]+0x1)][_0x2aeba7(0x1ec)](''),_0x423a0d(_0x35e2b7[_0x2aeba7(0x19a)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x211)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x21a)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x163ccc(_0x35e2b7[_0x2aeba7(0x1e4)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x20e)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x22f)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x19d)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),(_0x4b41bf=_0x35e2b7[_0x2aeba7(0x1ad)])==null||_0x4b41bf[_0x2aeba7(0x1fd)](_0x1fb831=>{const _0x574da0=_0x2aeba7;_0x1fb831===_0x5d53ac||_0x1fb831[_0x574da0(0x215)]===_0x5d53ac[_0x574da0(0x215)]?_0x1fb831[_0x574da0(0x1f9)]=_0x4ec033:_0x1fb831['startIndex']>=_0x4ec033&&_0x1fb831['startIndex']<_0x5d53ac['endIndex']&&(_0x1fb831['startIndex']+=0x1,_0x1fb831['endIndex']+=0x1);});let _0x3157f6=_0x5ec5bf(_0x35e2b7,{..._0x5d53ac,'endIndex':_0x4ec033});_0x3157f6[_0x2aeba7(0x1fd)]((_0x461101,_0x3ab8f8)=>{const _0x550568=_0x2aeba7;var _0x54c794;_0x461101[_0x550568(0x20b)]={...(_0x54c794=_0x461101['paragraphStyle'])==null?{}:_0x54c794,..._0x4f732c(_0x3ab8f8===0x0,_0x3ab8f8===_0x3157f6['length']-0x1)};});let _0x43e4bf=(_0x25c80f=_0x35e2b7[_0x2aeba7(0x19a)])==null?void 0x0:_0x25c80f[_0x2aeba7(0x1b9)](_0x2545c3=>_0x2545c3[_0x2aeba7(0x1c6)]===_0x4ec033+0x1);return _0x43e4bf&&(_0x43e4bf['paragraphStyle']=_0xc6ed51(_0x43e4bf[_0x2aeba7(0x20b)])),{'nextDocumentData':_0x3b1f80,'cursorOffset':_0x4ec033+0x1};}function _0x5d4520(_0x162042){const _0x27c103=_0x18bb44;let _0x470e2d=_0x34bf55(_0x162042[_0x27c103(0x200)]),_0x39df63=_0x174fb6(_0x470e2d),_0xcf16b2=_0x178c6c(_0x39df63,_0x162042[_0x27c103(0x1df)]);return _0xcf16b2&&_0x156a22(_0x470e2d,_0x39df63,_0xcf16b2,_0x162042[_0x27c103(0x1df)],_0x162042[_0x27c103(0x1ea)])||null;}function _0x156a22(_0x405fa8,_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e){const _0x521f8e=_0x18bb44;let _0x20df62=_0x377190(_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e);if(!_0x20df62)return null;let _0x153687=_0x20df62['endTokenOffset']-0x1;return _0x2621f2(_0x3c96f3,_0x20df62[_0x521f8e(0x1d8)]['startIndex'],_0x20df62[_0x521f8e(0x1d8)][_0x521f8e(0x1c6)]+0x1),{'nextDocumentData':_0x405fa8,'cursorOffset':_0x153687};}function _0x13a49b(_0x596c29,_0x22f275){const _0x1ccf0e=_0x18bb44;var _0x52bdc7;return _0x596c29==null||(_0x52bdc7=_0x596c29['blockRanges'])==null?void 0x0:_0x52bdc7[_0x1ccf0e(0x1b9)](_0xf1a9b5=>_0xf1a9b5[_0x1ccf0e(0x1c2)]===_0x2d2ae4[_0x1ccf0e(0x1fa)][_0x1ccf0e(0x198)]&&_0xf1a9b5[_0x1ccf0e(0x1c6)]<=_0x22f275&&_0x22f275<=_0xf1a9b5[_0x1ccf0e(0x1f9)]);}function _0x363106(_0x393173){const _0x1cf706=_0x18bb44;var _0x5b1088;let _0x5abee0=_0x393173[_0x1cf706(0x200)][_0x1cf706(0x216)];if(!_0x5abee0)return!0x1;let _0x2284b3=_0x393173['direction']==='left'?_0x393173[_0x1cf706(0x1df)]-0x1:_0x393173[_0x1cf706(0x1df)],_0x1161cd=_0x393173[_0x1cf706(0x1a6)]==='right'?_0x393173[_0x1cf706(0x1df)]+0x1:_0x2284b3;return((_0x5b1088=_0x5abee0[_0x1cf706(0x1ad)])==null?[]:_0x5b1088)[_0x1cf706(0x201)](_0x3b0546=>_0x3b0546[_0x1cf706(0x1c2)]===_0x2d2ae4[_0x1cf706(0x1fa)]['CODE']?_0x2284b3===_0x3b0546[_0x1cf706(0x1c6)]||_0x2284b3===_0x3b0546[_0x1cf706(0x1f9)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1c6)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1f9)]:!0x1);}function _0x178c6c(_0x57008f,_0x2c975a){const _0x142e7f=_0x18bb44;var _0x286481;return(_0x286481=_0x57008f[_0x142e7f(0x1ad)])==null?void 0x0:_0x286481['find'](_0x436ec9=>{const _0xb554a6=_0x142e7f;let _0x11c5a4=_0x4aa120(_0x57008f,_0x436ec9);return _0x436ec9[_0xb554a6(0x1c2)]===_0x2d2ae4[_0xb554a6(0x1fa)][_0xb554a6(0x198)]&&_0x436ec9['startIndex']<=_0x2c975a&&_0x2c975a<=_0x11c5a4+0x2;});}function _0x4f732c(_0x1a6434,_0xd829aa,_0x5b21dd=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1a6434&&_0x5b21dd?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x40102b,'fs':0xc}};}function _0x9c4542(_0x300898,_0x4817d1,_0x303131,_0x351454=!0x1){const _0x13da71=_0x18bb44;var _0x47ff0f;let _0x847421=((_0x47ff0f=_0x300898[_0x13da71(0x19a)])==null?[]:_0x47ff0f)[_0x13da71(0x219)](_0x162407=>_0x162407[_0x13da71(0x1c6)]>_0x4817d1&&_0x162407[_0x13da71(0x1c6)]<_0x303131);_0x847421['forEach']((_0xc8d7e6,_0x3ee914)=>{const _0x36c66a=_0x13da71;var _0x5537a2;_0xc8d7e6[_0x36c66a(0x20b)]={...(_0x5537a2=_0xc8d7e6[_0x36c66a(0x20b)])==null?{}:_0x5537a2,..._0x4f732c(_0x3ee914===0x0,_0x3ee914===_0x847421[_0x36c66a(0x1bb)]-0x1,_0x351454)};});}function _0xc6ed51(_0x2839cb){const _0x4698fa=_0x18bb44;var _0x1982b6,_0x3ecfb5;let _0x3a0586={..._0x2839cb==null?{}:_0x2839cb};return delete _0x3a0586[_0x4698fa(0x23c)],delete _0x3a0586[_0x4698fa(0x23a)],delete _0x3a0586[_0x4698fa(0x1a7)],delete _0x3a0586[_0x4698fa(0x1c3)],((_0x1982b6=_0x3a0586['textStyle'])==null?void 0x0:_0x1982b6['ff'])===_0x40102b&&((_0x3ecfb5=_0x3a0586[_0x4698fa(0x1e3)])==null?void 0x0:_0x3ecfb5['fs'])===0xc&&delete _0x3a0586[_0x4698fa(0x1e3)],_0x3a0586;}function _0x5ec5bf(_0x40e708,_0x305b86){const _0x4039d9=_0x18bb44;var _0x5d5722;let _0x1a33d8=_0x4aa120(_0x40e708,_0x305b86);return((_0x5d5722=_0x40e708[_0x4039d9(0x19a)])==null?[]:_0x5d5722)[_0x4039d9(0x219)](_0x1fa3c8=>_0x1fa3c8[_0x4039d9(0x1c6)]>_0x305b86[_0x4039d9(0x1c6)]&&_0x1fa3c8[_0x4039d9(0x1c6)]<_0x1a33d8);}function _0x20e23f(_0x38b7d9,_0x4621cd,_0x4c0df9){const _0x2a4490=_0x18bb44;let _0x139267=_0x509b08(_0x38b7d9,_0x4621cd,_0x4c0df9),_0x228329=_0x38b7d9[_0x2a4490(0x209)]['slice'](_0x139267,_0x4c0df9['startIndex']);return Array[_0x2a4490(0x1a1)](_0x228329)['every'](_0x18d486=>_0x18d486===_0x2d2ae4[_0x2a4490(0x203)][_0x2a4490(0x1fb)]||_0x18d486===_0x2d2ae4[_0x2a4490(0x203)]['BLOCK_END']);}function _0x34bf55(_0x5a1d90){const _0xb71dee=_0x18bb44;return _0x2d2ae4[_0xb71dee(0x19b)][_0xb71dee(0x1f7)](_0x5a1d90);}function _0x174fb6(_0xfd21fd){const _0x2ff199=_0x18bb44;if(!_0xfd21fd[_0x2ff199(0x216)])throw Error('Document\x20body\x20is\x20required');return _0xfd21fd['body'];}function _0x1bfbe8(_0x1f6a98,_0x207653,_0x273ecc){const _0x4c2466=_0x18bb44;if(_0x207653==null||_0x273ecc==null){let _0x4b98e6=_0x342a88(_0x1f6a98);return{'startOffset':_0x4b98e6,'endOffset':_0x4b98e6};}let _0x368f5c=Math[_0x4c2466(0x1c4)](_0x207653,_0x273ecc),_0x383d50=Math['max'](_0x207653,_0x273ecc);if(_0x368f5c===_0x383d50){let _0x3bad31=_0x125f8d(_0x1f6a98,_0x368f5c);return{'startOffset':_0x3bad31,'endOffset':_0x3bad31};}return _0x5ba5f5(_0x1f6a98,_0x368f5c,_0x383d50);}function _0x125f8d(_0x304a1a,_0x516ac3){const _0x5e28c3=_0x18bb44;return _0x516ac3===0x0&&_0x304a1a['dataStream'][0x0]===_0x2d2ae4[_0x5e28c3(0x203)][_0x5e28c3(0x1b3)]?0x1:_0x516ac3;}function _0x342a88(_0x1e1815){const _0x84e574=_0x18bb44;return _0x1e1815[_0x84e574(0x209)]['endsWith'](_0x2d2ae4[_0x84e574(0x203)]['SECTION_BREAK'])?Math[_0x84e574(0x1dc)](0x0,_0x1e1815['dataStream']['length']-0x1):_0x1e1815['dataStream'][_0x84e574(0x1bb)];}function _0x1d7302(_0x19113a,_0xce2cfa,_0x39cf86){const _0xa49e11=_0x18bb44;var _0x4d56d3;let _0x6f41a=Math[_0xa49e11(0x1c4)](_0xce2cfa,_0x39cf86),_0x3fe054=Math[_0xa49e11(0x1dc)](_0xce2cfa,_0x39cf86);return!!((_0x4d56d3=_0x19113a[_0xa49e11(0x20e)])!=null&&_0x4d56d3[_0xa49e11(0x201)](_0x1d63a1=>_0x6f41a>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x6f41a<_0x1d63a1['endIndex']||_0x3fe054>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x3fe054<_0x1d63a1[_0xa49e11(0x1f9)]||_0x6f41a<=_0x1d63a1['startIndex']&&_0x3fe054>=_0x1d63a1[_0xa49e11(0x1f9)]));}function _0x5ba5f5(_0x3f099e,_0x4200a5,_0x5b10c1){const _0x593c59=_0x18bb44;var _0x229c9f,_0x34c2fc;let _0x2e05b4=[...(_0x229c9f=_0x3f099e['paragraphs'])==null?[]:_0x229c9f][_0x593c59(0x1f8)]((_0x5286a6,_0x677ffb)=>_0x5286a6[_0x593c59(0x1c6)]-_0x677ffb[_0x593c59(0x1c6)]),_0xd97ea3=_0x2e05b4[_0x593c59(0x1b9)]((_0x5e36ce,_0x4a88e)=>(_0x4a88e===0x0?0x0:_0x2e05b4[_0x4a88e-0x1]['startIndex']+0x1)<=_0x4200a5&&_0x4200a5<=_0x5e36ce[_0x593c59(0x1c6)]),_0x5097b1=(_0x34c2fc=_0x2e05b4[_0x593c59(0x1b9)](_0x1ad0d8=>_0x1ad0d8[_0x593c59(0x1c6)]>=_0x5b10c1-0x1))==null?_0x2e05b4[_0x2e05b4[_0x593c59(0x1bb)]-0x1]:_0x34c2fc;return{'startOffset':_0xd97ea3?_0x3da0a2(_0x2e05b4,_0xd97ea3):_0x4200a5,'endOffset':_0x5097b1?_0x5097b1[_0x593c59(0x1c6)]+0x1:_0x5b10c1};}function _0x3da0a2(_0x1d0e7a,_0x5adc23){const _0x1853e6=_0x18bb44;let _0x50c771=_0x1d0e7a[_0x1853e6(0x1b0)](_0x5adc23);return _0x50c771>0x0?_0x1d0e7a[_0x50c771-0x1][_0x1853e6(0x1c6)]+0x1:0x0;}function _0x509b08(_0x598f10,_0x159419,_0x2ec6db){const _0x4c2d57=_0x18bb44;var _0x74962;return Math[_0x4c2d57(0x1dc)](_0x3da0a2((_0x74962=_0x598f10[_0x4c2d57(0x19a)])==null?[]:_0x74962,_0x2ec6db),_0x159419[_0x4c2d57(0x1c6)]+0x1);}function _0x4aa120(_0x22d98b,_0x4842b0){const _0x3e0eb9=_0x18bb44;return _0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]:_0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]+0x1]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]+0x1:_0x4842b0['endIndex'];}function _0x377190(_0x292c49,_0x1015d1,_0x33e423,_0x12e49b){const _0x33bb15=_0x18bb44;var _0x370757,_0x250776;let _0x2e59cd=_0x4aa120(_0x292c49,_0x1015d1),_0x30d249=((_0x370757=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x370757)[_0x33bb15(0x1b9)](_0x50f871=>_0x50f871[_0x33bb15(0x1c6)]===_0x2e59cd+0x1);if(!_0x30d249||_0x12e49b!=null&&_0x30d249[_0x33bb15(0x1c6)]!==_0x12e49b||_0x33e423<_0x2e59cd||_0x33e423>_0x30d249[_0x33bb15(0x1c6)]+0x1||_0x292c49[_0x33bb15(0x209)][_0x30d249[_0x33bb15(0x1c6)]]!==_0x2d2ae4['DataStreamTreeTokenType'][_0x33bb15(0x1b3)])return null;let _0x1473de=_0x3da0a2((_0x250776=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x250776,_0x30d249),_0x57eca1=_0x292c49[_0x33bb15(0x209)]['slice'](_0x1473de,_0x30d249['startIndex']);return Array[_0x33bb15(0x1a1)](_0x57eca1)[_0x33bb15(0x191)](_0xc0202c=>_0xc0202c===_0x2d2ae4[_0x33bb15(0x203)][_0x33bb15(0x204)])?{'paragraph':_0x30d249,'endTokenOffset':_0x2e59cd}:null;}function _0x925f26(_0x2f9e8b,_0x54c307){const _0x428afa=_0x18bb44;var _0x5dfb20;let _0x4f57ab=_0x4aa120(_0x2f9e8b,_0x54c307),_0x47a0c3=_0x2f9e8b[_0x428afa(0x209)][_0x4f57ab+0x1];_0x47a0c3!==_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x229)]&&_0x47a0c3!==void 0x0||_0x2625f3(_0x2f9e8b,_0x4f57ab+0x1,_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x1b3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x2d2ae4[_0x428afa(0x226)])(new Set((_0x5dfb20=_0x2f9e8b['paragraphs'])==null?void 0x0:_0x5dfb20['map'](_0x39aeef=>_0x39aeef[_0x428afa(0x1a2)])))}]});}function _0x2625f3(_0x12d926,_0x5ac570,_0x5e223b,_0x150b6b={}){const _0x3c3fb8=_0x18bb44;var _0x130b2a,_0x2d1c7f;if(_0x5e223b){if(_0x12d926['dataStream']=''+_0x12d926[_0x3c3fb8(0x209)]['slice'](0x0,_0x5ac570)+_0x5e223b+_0x12d926[_0x3c3fb8(0x209)][_0x3c3fb8(0x22a)](_0x5ac570),_0x344e10(_0x12d926,_0x5ac570,_0x5e223b[_0x3c3fb8(0x1bb)]),(_0x130b2a=_0x150b6b['paragraphs'])!=null&&_0x130b2a[_0x3c3fb8(0x1bb)]){var _0x2dfbc8;_0x12d926['paragraphs']=[...(_0x2dfbc8=_0x12d926['paragraphs'])==null?[]:_0x2dfbc8,..._0x150b6b[_0x3c3fb8(0x19a)]['map'](_0x1a2448=>({..._0x1a2448,'startIndex':_0x1a2448[_0x3c3fb8(0x1c6)]+_0x5ac570}))][_0x3c3fb8(0x1f8)]((_0x40449f,_0x188795)=>_0x40449f[_0x3c3fb8(0x1c6)]-_0x188795[_0x3c3fb8(0x1c6)]);}if((_0x2d1c7f=_0x150b6b[_0x3c3fb8(0x1ad)])!=null&&_0x2d1c7f['length']){var _0x3a89c3;_0x12d926[_0x3c3fb8(0x1ad)]=[...(_0x3a89c3=_0x12d926[_0x3c3fb8(0x1ad)])==null?[]:_0x3a89c3,..._0x150b6b[_0x3c3fb8(0x1ad)][_0x3c3fb8(0x1ac)](_0x122f5a=>({..._0x122f5a,'startIndex':_0x122f5a['startIndex']+_0x5ac570,'endIndex':_0x122f5a['endIndex']+_0x5ac570}))]['sort']((_0x3a5b84,_0xf35539)=>_0x3a5b84[_0x3c3fb8(0x1c6)]-_0xf35539[_0x3c3fb8(0x1c6)]);}}}function _0x2621f2(_0x5d5f9b,_0x325410,_0x27fc49){const _0x4206d8=_0x18bb44;let _0x4f412d=_0x27fc49-_0x325410;_0x5d5f9b[_0x4206d8(0x209)]=''+_0x5d5f9b[_0x4206d8(0x209)]['slice'](0x0,_0x325410)+_0x5d5f9b['dataStream']['slice'](_0x27fc49),_0x1afad3(_0x5d5f9b,_0x325410,_0x4f412d);}function _0x344e10(_0x30e8dc,_0x30db06,_0x1d915d){const _0x31e98c=_0x18bb44;_0x30e8dc['paragraphs']=_0x27650c(_0x30e8dc[_0x31e98c(0x19a)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x211)]=_0x27650c(_0x30e8dc[_0x31e98c(0x211)],_0x30db06,_0x1d915d),_0x30e8dc['customBlocks']=_0x27650c(_0x30e8dc['customBlocks'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1e4)]=_0x4a3cef(_0x30e8dc[_0x31e98c(0x1e4)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x20e)]=_0x10e841(_0x30e8dc['tables'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x22f)]=_0x10e841(_0x30e8dc[_0x31e98c(0x22f)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x19d)]=_0x10e841(_0x30e8dc[_0x31e98c(0x19d)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1ad)]=_0x10e841(_0x30e8dc[_0x31e98c(0x1ad)],_0x30db06,_0x1d915d);}function _0x1afad3(_0xd297f0,_0x5c6b6e,_0x5ed043){const _0x1620e9=_0x18bb44;var _0x5b0c2f,_0x5ba7ef;_0xd297f0[_0x1620e9(0x19a)]=_0x4c7590(_0xd297f0[_0x1620e9(0x19a)],_0x5c6b6e,_0x5ed043),_0xd297f0[_0x1620e9(0x211)]=_0x4c7590(_0xd297f0[_0x1620e9(0x211)],_0x5c6b6e,_0x5ed043),_0xd297f0['customBlocks']=_0x4c7590(_0xd297f0[_0x1620e9(0x21a)],_0x5c6b6e,_0x5ed043),_0xd297f0['textRuns']=(_0x5b0c2f=_0x35ffb6((_0x5ba7ef=_0xd297f0[_0x1620e9(0x1e4)])==null?void 0x0:_0x5ba7ef['map'](_0x44b1e2=>({..._0x44b1e2,'startIndex':_0x44b1e2['st'],'endIndex':_0x44b1e2['ed']})),_0x5c6b6e,_0x5ed043))==null?void 0x0:_0x5b0c2f['map'](_0x2c0c1d=>{let {startIndex:_0x51bfb4,endIndex:_0x320069,..._0x532592}=_0x2c0c1d;return{..._0x532592,'st':_0x51bfb4,'ed':_0x320069};}),_0xd297f0[_0x1620e9(0x20e)]=_0x35ffb6(_0xd297f0['tables'],_0x5c6b6e,_0x5ed043),_0xd297f0['customRanges']=_0x35ffb6(_0xd297f0[_0x1620e9(0x22f)],_0x5c6b6e,_0x5ed043),_0xd297f0['customDecorations']=_0x35ffb6(_0xd297f0[_0x1620e9(0x19d)],_0x5c6b6e,_0x5ed043),_0xd297f0['blockRanges']=_0x35ffb6(_0xd297f0['blockRanges'],_0x5c6b6e,_0x5ed043);}function _0x27650c(_0x461008,_0x2732fc,_0x2adf4c){const _0x261ab6=_0x18bb44;return _0x461008==null?void 0x0:_0x461008[_0x261ab6(0x1ac)](_0x5300cf=>_0x5300cf[_0x261ab6(0x1c6)]>=_0x2732fc?{..._0x5300cf,'startIndex':_0x5300cf[_0x261ab6(0x1c6)]+_0x2adf4c}:_0x5300cf);}function _0x4c7590(_0x40f355,_0x3a87c5,_0x1b7670){const _0x190ba9=_0x18bb44;let _0x151b59=_0x3a87c5+_0x1b7670;return _0x40f355==null?void 0x0:_0x40f355[_0x190ba9(0x1ac)](_0x354a96=>_0x354a96[_0x190ba9(0x1c6)]>=_0x3a87c5&&_0x354a96['startIndex']<_0x151b59?null:_0x354a96[_0x190ba9(0x1c6)]>=_0x151b59?{..._0x354a96,'startIndex':_0x354a96['startIndex']-_0x1b7670}:_0x354a96)['filter'](_0xa5755a=>_0xa5755a!=null);}function _0x4a3cef(_0x1f8d66,_0x295c5f,_0x38bdd2){const _0x2db228=_0x18bb44;return _0x1f8d66==null?void 0x0:_0x1f8d66[_0x2db228(0x1ac)](_0x535d57=>_0x535d57['st']>=_0x295c5f?{..._0x535d57,'st':_0x535d57['st']+_0x38bdd2,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57['ed']>_0x295c5f?{..._0x535d57,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57);}function _0x10e841(_0x12733a,_0x3bda48,_0x4a60e){const _0x11d4b8=_0x18bb44;return _0x12733a==null?void 0x0:_0x12733a[_0x11d4b8(0x1ac)](_0x13ecef=>_0x13ecef[_0x11d4b8(0x1c6)]>=_0x3bda48?{..._0x13ecef,'startIndex':_0x13ecef[_0x11d4b8(0x1c6)]+_0x4a60e,'endIndex':_0x13ecef[_0x11d4b8(0x1f9)]+_0x4a60e}:_0x13ecef[_0x11d4b8(0x1f9)]>=_0x3bda48?{..._0x13ecef,'endIndex':_0x13ecef['endIndex']+_0x4a60e}:_0x13ecef);}function _0x35ffb6(_0x507557,_0x5dc634,_0x224bf5){const _0x4f00d1=_0x18bb44;let _0x31dced=_0x5dc634+_0x224bf5;return _0x507557==null?void 0x0:_0x507557[_0x4f00d1(0x1ac)](_0x4ac6b9=>_0x4ac6b9['startIndex']>=_0x5dc634&&_0x4ac6b9[_0x4f00d1(0x1f9)]<_0x31dced?null:_0x4ac6b9[_0x4f00d1(0x1c6)]>=_0x31dced?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]-_0x224bf5,'endIndex':_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5}:_0x4ac6b9[_0x4f00d1(0x1f9)]>=_0x5dc634?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]<_0x5dc634?_0x4ac6b9[_0x4f00d1(0x1c6)]:_0x5dc634,'endIndex':Math[_0x4f00d1(0x1dc)](_0x5dc634,_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5)}:_0x4ac6b9)[_0x4f00d1(0x219)](_0x1434cf=>_0x1434cf!=null);}function _0x423a0d(_0x320c32,_0x13f96e,_0x1324fc,_0x45c31f){const _0x51480f=_0x18bb44;_0x320c32==null||_0x320c32[_0x51480f(0x1fd)](_0x36f06d=>{const _0x91c7ff=_0x51480f;_0x36f06d[_0x91c7ff(0x1c6)]>=_0x13f96e&&_0x36f06d[_0x91c7ff(0x1c6)]<_0x1324fc&&(_0x36f06d['startIndex']+=_0x45c31f);});}function _0x163ccc(_0x4ae414,_0xa60bfb,_0x224e2a,_0xcd427b){const _0x2d7317=_0x18bb44;_0x4ae414==null||_0x4ae414[_0x2d7317(0x1fd)](_0x88d4b0=>{_0x88d4b0['st']>=_0xa60bfb&&_0x88d4b0['st']<_0x224e2a?(_0x88d4b0['st']+=_0xcd427b,_0x88d4b0['ed']+=_0xcd427b):_0x88d4b0['ed']>_0xa60bfb&&_0x88d4b0['ed']<_0x224e2a&&(_0x88d4b0['ed']+=_0xcd427b);});}function _0x1f7efe(_0x2691e4,_0x44c1fa,_0x492ade,_0x14bb5a){const _0x5db0c9=_0x18bb44;_0x2691e4==null||_0x2691e4[_0x5db0c9(0x1fd)](_0x1d1e19=>{const _0x353a2f=_0x5db0c9;_0x1d1e19[_0x353a2f(0x1c6)]>=_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1c6)]<_0x492ade?(_0x1d1e19[_0x353a2f(0x1c6)]+=_0x14bb5a,_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a):_0x1d1e19[_0x353a2f(0x1f9)]>_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1f9)]<_0x492ade&&(_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a);});}function _0x52c8be(_0x10d523){'@babel/helpers - typeof';const _0x4d196e=_0x18bb44;return _0x52c8be=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x4d196e(0x18f)?function(_0x301c8c){return typeof _0x301c8c;}:function(_0x4dd721){const _0x1ba13d=_0x4d196e;return _0x4dd721&&typeof Symbol=='function'&&_0x4dd721[_0x1ba13d(0x1d7)]===Symbol&&_0x4dd721!==Symbol[_0x1ba13d(0x1c7)]?_0x1ba13d(0x18f):typeof _0x4dd721;},_0x52c8be(_0x10d523);}function _0x143cf9(_0x392153,_0x2f36f5){const _0x1055a6=_0x18bb44;if(_0x52c8be(_0x392153)!=_0x1055a6(0x23b)||!_0x392153)return _0x392153;var _0x4a18fa=_0x392153[Symbol['toPrimitive']];if(_0x4a18fa!==void 0x0){var _0x2cfced=_0x4a18fa[_0x1055a6(0x208)](_0x392153,_0x2f36f5||'default');if(_0x52c8be(_0x2cfced)!='object')return _0x2cfced;throw TypeError(_0x1055a6(0x23d));}return(_0x2f36f5===_0x1055a6(0x240)?String:Number)(_0x392153);}function _0x33500a(_0x339ef8){const _0x2cdf46=_0x18bb44;var _0x504876=_0x143cf9(_0x339ef8,_0x2cdf46(0x240));return _0x52c8be(_0x504876)==_0x2cdf46(0x18f)?_0x504876:_0x504876+'';}function _0x355256(_0x2fdda4,_0x4bd284,_0x4bb156){const _0x59efe0=_0x18bb44;return(_0x4bd284=_0x33500a(_0x4bd284))in _0x2fdda4?Object[_0x59efe0(0x1cf)](_0x2fdda4,_0x4bd284,{'value':_0x4bb156,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fdda4[_0x4bd284]=_0x4bb156,_0x2fdda4;}var _0x4cee88=class extends _0x2d2ae4[_0x18bb44(0x1eb)]{constructor(..._0x28c1d1){const _0x43b4f5=_0x18bb44;super(..._0x28c1d1),_0x355256(this,_0x43b4f5(0x18e),new Map()),_0x355256(this,_0x43b4f5(0x1de),new _0x6794[(_0x43b4f5(0x20a))]()),_0x355256(this,_0x43b4f5(0x1f0),this[_0x43b4f5(0x1de)][_0x43b4f5(0x190)]());}[_0x18bb44(0x1d5)](_0x3e67a0,_0x5f065a){const _0x27820d=_0x18bb44;return _0x44cb53(this[_0x27820d(0x18e)][_0x27820d(0x1ba)](_0x3e67a0))[_0x27820d(0x21d)][_0x5f065a];}[_0x18bb44(0x1e2)](_0x553717,_0x57d6df,_0x25a829){const _0x53acea=_0x18bb44;this['_setResource'](_0x553717,_0x57d6df,_0x372441(this[_0x53acea(0x18e)]['get'](_0x553717),_0x57d6df,_0x25a829));}[_0x18bb44(0x1d3)](_0x2b31a3,_0x1b49bd){const _0x54c8ca=_0x18bb44;this[_0x54c8ca(0x223)](_0x2b31a3,_0x1b49bd,_0x49632f(this[_0x54c8ca(0x18e)][_0x54c8ca(0x1ba)](_0x2b31a3),_0x1b49bd));}['serialize'](_0x4531f6){const _0x3d9377=_0x18bb44;return _0x44cb53(this[_0x3d9377(0x18e)][_0x3d9377(0x1ba)](_0x4531f6));}[_0x18bb44(0x1a5)](_0x596950,_0x349d50){const _0x4dd7aa=_0x18bb44;this['_resources']['set'](_0x596950,_0x44cb53(_0x349d50)),this[_0x4dd7aa(0x1de)][_0x4dd7aa(0x1a8)]({'unitId':_0x596950});}[_0x18bb44(0x1dd)](_0x1afa52){const _0x5ec46b=_0x18bb44;this['_resources'][_0x5ec46b(0x206)](_0x1afa52),this[_0x5ec46b(0x1de)][_0x5ec46b(0x1a8)]({'unitId':_0x1afa52});}['dispose'](){const _0x99a486=_0x18bb44;super[_0x99a486(0x20f)](),this[_0x99a486(0x18e)][_0x99a486(0x1be)](),this[_0x99a486(0x1de)][_0x99a486(0x1e9)]();}['_setResource'](_0x5626a8,_0x1dfa8c,_0x1bcb54){const _0x58ef67=_0x18bb44;this['_resources'][_0x58ef67(0x1ab)](_0x5626a8,_0x1bcb54),this[_0x58ef67(0x1de)][_0x58ef67(0x1a8)]({'unitId':_0x5626a8,'blockId':_0x1dfa8c});}};let _0x31e639={'id':_0x18bb44(0x205),'type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':_0x2cd6d7=>{const _0x8a3151=_0x18bb44;let _0x2cf67e=_0x24fbff(_0x2cd6d7);if(_0x2cf67e)return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4[_0x8a3151(0x228)])['syncExecuteCommand'](_0x3da0e4['id'],{'startOffset':_0x2cf67e[_0x8a3151(0x1fc)],'endOffset':_0x2cf67e[_0x8a3151(0x217)],'unitId':_0x2cf67e['unitId']});let _0x469c2f=_0x8febec(_0x2cd6d7);if(!_0x469c2f)return!0x1;let _0x457185=_0x469c2f[_0x8a3151(0x1c6)]+0x1;return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4['ICommandService'])[_0x8a3151(0x1ae)](_0x3da0e4['id'],{'startOffset':_0x457185,'endOffset':_0x457185});}},_0x509773={'id':'docs-code.command.consume-boundary-delete','type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':()=>!0x0},_0x3da0e4={'id':_0x18bb44(0x224),'type':_0x2d2ae4[_0x18bb44(0x1e5)]['COMMAND'],'handler':(_0xe1e9ad,_0x48da87)=>{const _0x2cdebc=_0x18bb44;var _0x347e6a,_0x16cae9,_0x28e00d;let _0x308a97=_0x492273(_0xe1e9ad,_0x48da87==null?void 0x0:_0x48da87['unitId']);if(!_0x308a97)return!0x1;let _0x2a7516=_0x5330b4(_0xe1e9ad),_0x2f3e9a=_0x125d20({'blockId':(_0x347e6a=_0x48da87==null?void 0x0:_0x48da87['blockId'])==null?(0x0,_0x2d2ae4[_0x2cdebc(0x21b)])(0x6):_0x347e6a,'config':_0x48da87==null?void 0x0:_0x48da87['config'],'documentData':_0x308a97[_0x2cdebc(0x193)],'endOffset':(_0x16cae9=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x217)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x217)]:_0x16cae9,'metadata':_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x207)](_0x308a97[_0x2cdebc(0x1d2)]),'startOffset':(_0x28e00d=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x1fc)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x1fc)]:_0x28e00d}),_0x32deae=_0x1bb343(_0x308a97['commandService'],_0x308a97[_0x2cdebc(0x1d2)],_0x308a97['previousDocumentData'],_0x2f3e9a['nextDocumentData'],_0x2f3e9a[_0x2cdebc(0x1df)]);return _0x32deae&&_0x2f3e9a[_0x2cdebc(0x1d1)]&&_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x1a5)](_0x308a97['unitId'],_0x2f3e9a[_0x2cdebc(0x1d1)]),_0x32deae;}},_0x1fcaba={'id':'docs-code.command.update','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x22ef3c,_0x5a160a)=>{const _0x720427=_0x18bb44;if(!_0x5a160a)return!0x1;let _0xa50924=_0x492273(_0x22ef3c,_0x5a160a['unitId']);if(!_0xa50924)return!0x1;let _0x383662=_0x5a5761({'blockId':_0x5a160a[_0x720427(0x215)],'config':_0x5a160a[_0x720427(0x21f)],'documentData':_0xa50924['previousDocumentData'],'metadata':_0xa50924[_0x720427(0x1a9)][_0x720427(0x207)](_0xa50924['unitId'])});return _0x383662['nextMetadata']&&_0xa50924[_0x720427(0x1a9)][_0x720427(0x1a5)](_0xa50924[_0x720427(0x1d2)],_0x383662['nextMetadata']),!0x0;}},_0x37dca5={'id':'docs-code.command.exit','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x393e70,_0x4db286)=>{const _0x47d2aa=_0x18bb44;var _0x399394,_0x2c5738;let _0x276b1f=_0x492273(_0x393e70,_0x4db286==null?void 0x0:_0x4db286[_0x47d2aa(0x1d2)]);if(!_0x276b1f)return!0x1;let _0x188993=(_0x399394=_0x4db286==null?void 0x0:_0x4db286['cursorOffset'])==null?(_0x2c5738=_0x5330b4(_0x393e70))==null?void 0x0:_0x2c5738['startOffset']:_0x399394;if(_0x188993==null)return!0x1;let _0x392f65=_0x4f2c21({'cursorOffset':_0x188993,'documentData':_0x276b1f[_0x47d2aa(0x193)]});return _0x392f65?_0x1bb343(_0x276b1f['commandService'],_0x276b1f['unitId'],_0x276b1f[_0x47d2aa(0x193)],_0x392f65[_0x47d2aa(0x1e6)],_0x392f65['cursorOffset']):!0x1;}},_0x3b4d94={'id':_0x18bb44(0x1d6),'type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x5bbf6b,_0x3bba85)=>{const _0x32a58d=_0x18bb44;var _0x135167,_0x446ba3;let _0xea79b6=_0x492273(_0x5bbf6b,_0x3bba85==null?void 0x0:_0x3bba85['unitId']);if(!_0xea79b6)return!0x1;let _0x61bffc=(_0x135167=_0x3bba85==null?void 0x0:_0x3bba85[_0x32a58d(0x1df)])==null?(_0x446ba3=_0x5330b4(_0x5bbf6b))==null?void 0x0:_0x446ba3[_0x32a58d(0x1fc)]:_0x135167;if(_0x61bffc==null)return!0x1;let _0x4e72f9=_0x5d4520({'cursorOffset':_0x61bffc,'documentData':_0xea79b6[_0x32a58d(0x193)],'paragraphStartIndex':_0x3bba85==null?void 0x0:_0x3bba85['paragraphStartIndex']});return _0x4e72f9?_0x1bb343(_0xea79b6[_0x32a58d(0x235)],_0xea79b6[_0x32a58d(0x1d2)],_0xea79b6[_0x32a58d(0x193)],_0x4e72f9[_0x32a58d(0x1e6)],_0x4e72f9['cursorOffset']):!0x1;}};function _0x492273(_0x2ce90c,_0xf6aeea){const _0x3042ad=_0x18bb44;let _0x2de3fa=_0x2ce90c['get'](_0x2d2ae4[_0x3042ad(0x21c)]),_0x443435=_0xf6aeea?_0x2de3fa[_0x3042ad(0x233)](_0xf6aeea):_0x2de3fa[_0x3042ad(0x1d4)](_0x2d2ae4['UniverInstanceType'][_0x3042ad(0x199)]);return _0x443435?{'commandService':_0x2ce90c[_0x3042ad(0x1ba)](_0x2d2ae4[_0x3042ad(0x228)]),'model':_0x2ce90c[_0x3042ad(0x1ba)](_0x4cee88),'previousDocumentData':_0x443435['getSnapshot'](),'unitId':_0x443435[_0x3042ad(0x221)]()}:null;}function _0x5330b4(_0x4da611){const _0x3c9643=_0x18bb44;var _0x473cd3;return(_0x473cd3=_0x4da611[_0x3c9643(0x1ba)](_0x420f42['DocSelectionManagerService'])[_0x3c9643(0x1b8)]())==null?void 0x0:_0x473cd3[0x0];}function _0x24fbff(_0x1d5246){const _0x12c983=_0x18bb44;var _0x477f8f;let _0x351969=(_0x477f8f=_0x1d5246[_0x12c983(0x1ba)](_0x2d2ae4[_0x12c983(0x21c)])['getCurrentUnitOfType'](_0x2d2ae4['UniverInstanceType'][_0x12c983(0x199)]))==null?void 0x0:_0x477f8f[_0x12c983(0x221)]();try{return _0x1d5246[_0x12c983(0x1ba)](_0x420f42[_0x12c983(0x1b7)])[_0x12c983(0x231)](_0x351969);}catch{return null;}}function _0x8febec(_0x4cbb88){const _0x3a2c9c=_0x18bb44;var _0x10209e,_0x4f1c07,_0x439eb3;let _0x5dde41=_0x5330b4(_0x4cbb88);if(!_0x5dde41)return null;let _0x56f504=_0x4cbb88[_0x3a2c9c(0x1ba)](_0x2d2ae4[_0x3a2c9c(0x21c)])[_0x3a2c9c(0x1d4)](_0x2d2ae4[_0x3a2c9c(0x1a0)]['UNIVER_DOC']),_0x3efb27=_0x56f504==null?void 0x0:_0x56f504[_0x3a2c9c(0x214)]();return _0x3efb27?(_0x10209e=_0x2d2ae4['BuildTextUtils'][_0x3a2c9c(0x1a4)]['getParagraphsInRange'](_0x5dde41,(_0x4f1c07=_0x3efb27[_0x3a2c9c(0x19a)])==null?[]:_0x4f1c07,(_0x439eb3=_0x3efb27['dataStream'])==null?'':_0x439eb3)[0x0])==null?null:_0x10209e:null;}function _0x1c1bc4(_0x207bf7,_0x25813a){const _0x2ce4c0=_0x18bb44;var _0x321c58,_0xf0aefe,_0x4811c4,_0xe33741,_0x240c61,_0x19d348,_0x75467b,_0x53698a,_0x316ed8,_0x23301a,_0x3a7cf3,_0x331b9c,_0x2c32eb,_0x440e19,_0x184870,_0x412711,_0x3aed07,_0x4809be;let _0x3b6d61=_0x2d2ae4[_0x2ce4c0(0x1e1)][_0x2ce4c0(0x20c)]();return[_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x209)],(_0x321c58=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x321c58[_0x2ce4c0(0x209)],(_0xf0aefe=_0x25813a['body'])==null?void 0x0:_0xf0aefe['dataStream']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19a)],(_0x4811c4=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x4811c4[_0x2ce4c0(0x19a)],(_0xe33741=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0xe33741['paragraphs']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x211)],(_0x240c61=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x240c61[_0x2ce4c0(0x211)],(_0x19d348=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x19d348[_0x2ce4c0(0x211)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x1e4)],(_0x75467b=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x75467b[_0x2ce4c0(0x1e4)],(_0x53698a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x53698a[_0x2ce4c0(0x1e4)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x21a)],(_0x316ed8=_0x207bf7['body'])==null?void 0x0:_0x316ed8[_0x2ce4c0(0x21a)],(_0x23301a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x23301a[_0x2ce4c0(0x21a)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x22f)],(_0x3a7cf3=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3a7cf3[_0x2ce4c0(0x22f)],(_0x331b9c=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x331b9c['customRanges']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19d)],(_0x2c32eb=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x2c32eb['customDecorations'],(_0x440e19=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x440e19[_0x2ce4c0(0x19d)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'tables'],(_0x184870=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x184870[_0x2ce4c0(0x20e)],(_0x412711=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x412711[_0x2ce4c0(0x20e)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'blockRanges'],(_0x3aed07=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3aed07[_0x2ce4c0(0x1ad)],(_0x4809be=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x4809be[_0x2ce4c0(0x1ad)])]['filter'](Boolean)[_0x2ce4c0(0x1c8)]((_0x155421,_0x27252c)=>_0x2d2ae4[_0x2ce4c0(0x1e1)]['compose'](_0x155421,_0x27252c),null);}function _0x484a69(_0x3fdb40,_0x186b88,_0x414050,_0x340abb){const _0x42bbac=_0x18bb44;return _0x2d2ae4[_0x42bbac(0x19b)][_0x42bbac(0x1b6)](_0x414050,_0x340abb)?null:_0x3fdb40[_0x42bbac(0x21e)](_0x186b88,_0x414050,_0x340abb);}function _0x1bb343(_0x1b172d,_0x169d2d,_0x9d73b2,_0x520d15,_0x107c54){const _0x3add32=_0x18bb44;let _0x196673=_0x1c1bc4(_0x9d73b2,_0x520d15);return _0x196673?!!_0x1b172d['syncExecuteCommand'](_0x420f42[_0x3add32(0x1db)]['id'],{'unitId':_0x169d2d,'actions':_0x196673,'textRanges':[{'startOffset':_0x107c54,'endOffset':_0x107c54,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x1e3738=_0x18bb44(0x19e);var _0x5a3dcb=_0x18bb44(0x1f6),_0x54f6ef=_0x18bb44(0x1c0);let _0x234ecf={};function _0x5d501f(_0xc002d7,_0x45474e){return function(_0x3ec368,_0xc614dd){_0x45474e(_0x3ec368,_0xc614dd,_0xc002d7);};}function _0xc0f957(_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801){const _0x1c92ae=_0x18bb44;var _0x334e88=arguments[_0x1c92ae(0x1bb)],_0x161254=_0x334e88<0x3?_0x5a3aa7:_0x556801===null?_0x556801=Object[_0x1c92ae(0x1c1)](_0x5a3aa7,_0x80b769):_0x556801,_0x2c8d52;if(typeof Reflect=='object'&&typeof Reflect[_0x1c92ae(0x1cb)]==_0x1c92ae(0x1a3))_0x161254=Reflect[_0x1c92ae(0x1cb)](_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801);else{for(var _0x499bf2=_0xd80a37[_0x1c92ae(0x1bb)]-0x1;_0x499bf2>=0x0;_0x499bf2--)(_0x2c8d52=_0xd80a37[_0x499bf2])&&(_0x161254=(_0x334e88<0x3?_0x2c8d52(_0x161254):_0x334e88>0x3?_0x2c8d52(_0x5a3aa7,_0x80b769,_0x161254):_0x2c8d52(_0x5a3aa7,_0x80b769))||_0x161254);}return _0x334e88>0x3&&_0x161254&&Object[_0x1c92ae(0x1cf)](_0x5a3aa7,_0x80b769,_0x161254),_0x161254;}let _0x478c4e=class extends _0x2d2ae4['Disposable']{constructor(_0x31c1f1,_0x10e8d3){const _0x1e2832=_0x18bb44;super(),this[_0x1e2832(0x1fe)]=_0x31c1f1,this[_0x1e2832(0x1f4)]=_0x10e8d3,this[_0x1e2832(0x22d)]();}[_0x18bb44(0x22d)](){const _0x529a69=_0x18bb44;this[_0x529a69(0x1c9)](this['_resourceManagerService'][_0x529a69(0x1e0)]({'pluginName':_0x1e3738,'businesses':[_0x2d2ae4[_0x529a69(0x1a0)]['UNIVER_DOC']],'toJson':_0x3a1301=>JSON['stringify'](this[_0x529a69(0x1f4)][_0x529a69(0x207)](_0x3a1301)),'parseJson':_0x459c7f=>_0x44cb53(JSON[_0x529a69(0x1cd)](_0x459c7f)),'onLoad':(_0x36aaa8,_0x3fcd40)=>this[_0x529a69(0x1f4)][_0x529a69(0x1a5)](_0x36aaa8,_0x3fcd40),'onUnLoad':_0x5beba7=>this['_docsCodeModel'][_0x529a69(0x1dd)](_0x5beba7)}));}};_0x478c4e=_0xc0f957([_0x5d501f(0x0,_0x2d2ae4[_0x18bb44(0x18b)]),_0x5d501f(0x1,(0x0,_0x2d2ae4['Inject'])(_0x4cee88))],_0x478c4e);let _0x147529=class extends _0x2d2ae4['Plugin']{constructor(_0x1d0194=_0x234ecf,_0x3df27c,_0x4df3ea,_0x3e36cd){const _0x2a3508=_0x18bb44;super(),this['_config']=_0x1d0194,this[_0x2a3508(0x1da)]=_0x3df27c,this[_0x2a3508(0x1f5)]=_0x4df3ea,this[_0x2a3508(0x212)]=_0x3e36cd;let {..._0x6498fd}=(0x0,_0x2d2ae4[_0x2a3508(0x1b4)])({},_0x234ecf,this[_0x2a3508(0x1e7)]);this[_0x2a3508(0x212)][_0x2a3508(0x1d0)](_0x2a3508(0x202),_0x6498fd);}[_0x18bb44(0x218)](){const _0x26e5d6=_0x18bb44;this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x4cee88]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x478c4e]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x4cee88),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x478c4e),[_0x3da0e4,_0x31e639,_0x1fcaba,_0x37dca5,_0x3b4d94,_0x509773]['forEach'](_0x4e3fd8=>this[_0x26e5d6(0x1c9)](this[_0x26e5d6(0x1f5)]['registerCommand'](_0x4e3fd8)));}};_0x355256(_0x147529,_0x18bb44(0x23e),_0x1e3738),_0x355256(_0x147529,_0x18bb44(0x197),_0x5a3dcb),_0x355256(_0x147529,_0x18bb44(0x23f),_0x54f6ef),_0x355256(_0x147529,_0x18bb44(0x232),_0x2d2ae4[_0x18bb44(0x1a0)][_0x18bb44(0x199)]),_0x147529=_0xc0f957([(0x0,_0x2d2ae4[_0x18bb44(0x1ca)])(_0x181267[_0x18bb44(0x22e)],_0x420f42[_0x18bb44(0x225)]),_0x5d501f(0x1,(0x0,_0x2d2ae4[_0x18bb44(0x1ff)])(_0x2d2ae4[_0x18bb44(0x1ce)])),_0x5d501f(0x2,_0x2d2ae4[_0x18bb44(0x228)]),_0x5d501f(0x3,_0x2d2ae4['IConfigService'])],_0x147529),_0x323281[_0x18bb44(0x194)]=_0x44adb7,_0x323281['DOCS_CODE_PLUGIN']=_0x1e3738,_0x323281[_0x18bb44(0x1f2)]=_0x3b4d94,_0x323281['DocsCodeConsumeBoundaryDeleteCommand']=_0x509773,_0x323281['DocsCodeExitCommand']=_0x37dca5,_0x323281[_0x18bb44(0x237)]=_0x31e639,_0x323281[_0x18bb44(0x1b5)]=_0x3da0e4,_0x323281['DocsCodeModel']=_0x4cee88,_0x323281[_0x18bb44(0x238)]=_0x1fcaba,Object[_0x18bb44(0x1cf)](_0x323281,_0x18bb44(0x18d),{'enumerable':!0x0,'get':function(){return _0x147529;}}),_0x323281['buildCancelEmptyCodeParagraphActions']=_0x5d4520,_0x323281[_0x18bb44(0x1aa)]=_0x4f2c21,_0x323281[_0x18bb44(0x1ef)]=_0x125d20,_0x323281[_0x18bb44(0x1ed)]=_0x5a5761,_0x323281[_0x18bb44(0x20d)]=_0x13a49b,_0x323281[_0x18bb44(0x195)]=_0x363106,_0x323281[_0x18bb44(0x18c)]=_0x566ed2;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-code",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Code block model integration for Univer Docs.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -61,15 +61,15 @@
|
|
|
61
61
|
"rxjs": ">=7.0.0"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@univerjs-pro/license": "1.0.0-alpha.
|
|
65
|
-
"@univerjs/core": "1.0.0-alpha.
|
|
66
|
-
"@univerjs/docs": "1.0.0-alpha.
|
|
64
|
+
"@univerjs-pro/license": "1.0.0-alpha.1",
|
|
65
|
+
"@univerjs/core": "1.0.0-alpha.1",
|
|
66
|
+
"@univerjs/docs": "1.0.0-alpha.1"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"rxjs": "7.8.2",
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
71
|
"vitest": "^4.1.9",
|
|
72
|
-
"@univerjs-infra/shared": "1.0.0-alpha.
|
|
72
|
+
"@univerjs-infra/shared": "1.0.0-alpha.1"
|
|
73
73
|
},
|
|
74
74
|
"scripts": {
|
|
75
75
|
"test": "vitest run",
|