@univerjs-pro/docs-code 1.0.0-insiders.20260808-70eefdd → 1.0.0-insiders.20260809-70eefdd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x4ee163=_0x556f;(function(_0x4446fb,_0x4380c0){var _0x1a26e6=_0x556f,_0x31b70=_0x4446fb();while(!![]){try{var _0x298e22=-parseInt(_0x1a26e6(0x151))/0x1+-parseInt(_0x1a26e6(0x146))/0x2+parseInt(_0x1a26e6(0x12a))/0x3*(parseInt(_0x1a26e6(0x110))/0x4)+-parseInt(_0x1a26e6(0x11a))/0x5+-parseInt(_0x1a26e6(0x137))/0x6*(-parseInt(_0x1a26e6(0x140))/0x7)+parseInt(_0x1a26e6(0x15b))/0x8+-parseInt(_0x1a26e6(0x119))/0x9*(-parseInt(_0x1a26e6(0x144))/0xa);if(_0x298e22===_0x4380c0)break;else _0x31b70['push'](_0x31b70['shift']());}catch(_0x57e857){_0x31b70['push'](_0x31b70['shift']());}}}(_0x4f26,0x47e5d),Object[_0x4ee163(0x153)](exports,Symbol[_0x4ee163(0x149)],{'value':_0x4ee163(0x147)}));function _0x4f26(){var _0x23c02f=['_blockId','DocsCodeUnwrapCommand','blockType','some','join','save','filter','4yVmysc','getCodeConfig','createInstance','endIndex','ICommandService','includes','_injector','get','CODE','1041741buVrWT','2652095eSyDHv','_createFDocumentCode','string','normalizeDocsCodeConfig','Inject','dataStream','getId','blockRanges','default','_getBlockRange','symbol','findCodeByText','function','BLOCK_END','constructor','FDocument','1005126cMkZHA','map','object','DocsCodeUpdateCommand','iterator','_document','getCode','slice','describe','BLOCK_START','toPrimitive','getText','length','174462SsWCdr','isParagraphFacade','insertCode','getConfig','SECTION_BREAK','FDocumentCode','decorate','getCodes','prototype','91pHJJus','call','PARAGRAPH','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','40ijyEQX','_unitId','579808FMrKmZ','Module','DocsCodeInsertCommand','toStringTag','DocumentBlockRangeType','findCodes','getRange','extend','Injector','startIndex','getCodeAt','522803FWAxnb','body','defineProperty','text','blockId','unwrap','DataStreamTreeTokenType','_getBlockRanges','getOwnPropertyDescriptor','find','3692640tHkEBd','syncExecuteCommand','_getDocumentData'];_0x4f26=function(){return _0x23c02f;};return _0x4f26();}let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x4ba8d8){'@babel/helpers - typeof';var _0x4ad3b0=_0x4ee163;return r=typeof Symbol=='function'&&typeof Symbol[_0x4ad3b0(0x12e)]==_0x4ad3b0(0x124)?function(_0x698635){return typeof _0x698635;}:function(_0x5786bc){var _0x48df3c=_0x4ad3b0;return _0x5786bc&&typeof Symbol==_0x48df3c(0x126)&&_0x5786bc[_0x48df3c(0x128)]===Symbol&&_0x5786bc!==Symbol[_0x48df3c(0x13f)]?_0x48df3c(0x124):typeof _0x5786bc;},r(_0x4ba8d8);}function i(_0xc418a8,_0x29de75){var _0xd45cc7=_0x4ee163;if(r(_0xc418a8)!=_0xd45cc7(0x12c)||!_0xc418a8)return _0xc418a8;var _0x16ee08=_0xc418a8[Symbol[_0xd45cc7(0x134)]];if(_0x16ee08!==void 0x0){var _0x45a1b6=_0x16ee08[_0xd45cc7(0x141)](_0xc418a8,_0x29de75||_0xd45cc7(0x122));if(r(_0x45a1b6)!=_0xd45cc7(0x12c))return _0x45a1b6;throw TypeError(_0xd45cc7(0x143));}return(_0x29de75==='string'?String:Number)(_0xc418a8);}function a(_0x3493f0){var _0x4260ef=_0x4ee163,_0x3c3ce3=i(_0x3493f0,_0x4260ef(0x11c));return r(_0x3c3ce3)==_0x4260ef(0x124)?_0x3c3ce3:_0x3c3ce3+'';}function o(_0x39b832,_0x411b1c,_0x4e3be7){var _0x5cb98c=_0x4ee163;return(_0x411b1c=a(_0x411b1c))in _0x39b832?Object[_0x5cb98c(0x153)](_0x39b832,_0x411b1c,{'value':_0x4e3be7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39b832[_0x411b1c]=_0x4e3be7,_0x39b832;}function _0x556f(_0x4a3290,_0x1e49d9){_0x4a3290=_0x4a3290-0x110;var _0x4f269b=_0x4f26();var _0x556fe9=_0x4f269b[_0x4a3290];return _0x556fe9;}function s(_0x407de4,_0x562928){return function(_0x136591,_0x5b22fa){_0x562928(_0x136591,_0x5b22fa,_0x407de4);};}function c(_0x2a4f6b,_0x522f7a,_0x1e49b0,_0x5702df){var _0x1da19f=_0x4ee163,_0x2bd499=arguments[_0x1da19f(0x136)],_0x5fb4e1=_0x2bd499<0x3?_0x522f7a:_0x5702df===null?_0x5702df=Object[_0x1da19f(0x159)](_0x522f7a,_0x1e49b0):_0x5702df,_0x1b8937;if(typeof Reflect=='object'&&typeof Reflect[_0x1da19f(0x13d)]==_0x1da19f(0x126))_0x5fb4e1=Reflect[_0x1da19f(0x13d)](_0x2a4f6b,_0x522f7a,_0x1e49b0,_0x5702df);else{for(var _0x1fbe3d=_0x2a4f6b[_0x1da19f(0x136)]-0x1;_0x1fbe3d>=0x0;_0x1fbe3d--)(_0x1b8937=_0x2a4f6b[_0x1fbe3d])&&(_0x5fb4e1=(_0x2bd499<0x3?_0x1b8937(_0x5fb4e1):_0x2bd499>0x3?_0x1b8937(_0x522f7a,_0x1e49b0,_0x5fb4e1):_0x1b8937(_0x522f7a,_0x1e49b0))||_0x5fb4e1);}return _0x2bd499>0x3&&_0x5fb4e1&&Object[_0x1da19f(0x153)](_0x522f7a,_0x1e49b0,_0x5fb4e1),_0x5fb4e1;}let l=class{constructor(_0x137d36,_0x3e4462,_0x219305){var _0x38c1da=_0x4ee163;this[_0x38c1da(0x12f)]=_0x137d36,this[_0x38c1da(0x15e)]=_0x3e4462,this['_injector']=_0x219305,o(this,'_unitId',void 0x0),this[_0x38c1da(0x145)]=this[_0x38c1da(0x12f)][_0x38c1da(0x120)]();}['getId'](){var _0x4cc414=_0x4ee163;return this[_0x4cc414(0x15e)];}['getRange'](){var _0x46b208=_0x4ee163;let _0x4df231=this[_0x46b208(0x123)]();return _0x4df231?{'blockId':_0x4df231['blockId'],'endIndex':_0x4df231[_0x46b208(0x113)],'startIndex':_0x4df231['startIndex']}:null;}[_0x4ee163(0x135)](){var _0x162118=_0x4ee163,_0x42c858;let _0x3327ca=this[_0x162118(0x123)](),_0x3ab200=(_0x42c858=this[_0x162118(0x15d)]()[_0x162118(0x152)])==null?void 0x0:_0x42c858[_0x162118(0x11f)];return!_0x3327ca||!_0x3ab200?'':u(_0x3ab200[_0x162118(0x131)](_0x3327ca[_0x162118(0x14f)]+0x1,_0x3327ca[_0x162118(0x113)]));}[_0x4ee163(0x132)](){var _0x9e3f4b=_0x4ee163;let _0x256655=this[_0x9e3f4b(0x14c)]();return _0x256655?{..._0x256655,'config':this[_0x9e3f4b(0x13a)](),'text':this[_0x9e3f4b(0x135)](),'type':t[_0x9e3f4b(0x14a)][_0x9e3f4b(0x118)]}:null;}[_0x4ee163(0x13a)](){var _0x394a2a=_0x4ee163;return(0x0,e[_0x394a2a(0x11d)])(this['_injector']['get'](e['DocsCodeModel'])[_0x394a2a(0x111)](this[_0x394a2a(0x145)],this[_0x394a2a(0x15e)]));}['updateConfig'](_0x4926b8){var _0x146fa2=_0x4ee163;return this[_0x146fa2(0x116)][_0x146fa2(0x117)](t[_0x146fa2(0x114)])[_0x146fa2(0x15c)](e[_0x146fa2(0x12d)]['id'],{'blockId':this[_0x146fa2(0x15e)],'config':_0x4926b8['config'],'unitId':this['_unitId']});}[_0x4ee163(0x156)](){var _0x411c67=_0x4ee163;return this[_0x411c67(0x116)][_0x411c67(0x117)](t['ICommandService'])[_0x411c67(0x15c)](e[_0x411c67(0x15f)]['id'],{'blockId':this[_0x411c67(0x15e)],'unitId':this[_0x411c67(0x145)]});}['remove'](){var _0x34c5f8=_0x4ee163;return this[_0x34c5f8(0x116)][_0x34c5f8(0x117)](t[_0x34c5f8(0x114)])[_0x34c5f8(0x15c)](e['DocsCodeRemoveCommand']['id'],{'blockId':this[_0x34c5f8(0x15e)],'unitId':this[_0x34c5f8(0x145)]});}[_0x4ee163(0x123)](){var _0x199975=_0x4ee163,_0x4b11c8;return((_0x4b11c8=this['_getDocumentData']()[_0x199975(0x152)])==null||(_0x4b11c8=_0x4b11c8[_0x199975(0x121)])==null?void 0x0:_0x4b11c8[_0x199975(0x15a)](_0xb9fac8=>_0xb9fac8['blockId']===this[_0x199975(0x15e)]&&_0xb9fac8['blockType']===t[_0x199975(0x14a)]['CODE']))??null;}[_0x4ee163(0x15d)](){var _0x2f4512=_0x4ee163;return this[_0x2f4512(0x12f)]['save']();}};l=c([s(0x2,(0x0,t[_0x4ee163(0x11e)])(t[_0x4ee163(0x14e)]))],l);function u(_0x1ce6a7){var _0x2c1af1=_0x4ee163;return Array['from'](_0x1ce6a7)[_0x2c1af1(0x12b)](_0x303dfb=>_0x303dfb===t[_0x2c1af1(0x157)][_0x2c1af1(0x142)]?'\x0a':_0x303dfb)[_0x2c1af1(0x164)](_0x11de0f=>_0x11de0f!==t['DataStreamTreeTokenType'][_0x2c1af1(0x133)]&&_0x11de0f!==t[_0x2c1af1(0x157)][_0x2c1af1(0x127)]&&_0x11de0f!==t[_0x2c1af1(0x157)][_0x2c1af1(0x13b)])[_0x2c1af1(0x162)]('')['replace'](/\n$/,'');}var d=class extends n[_0x4ee163(0x129)]{[_0x4ee163(0x13e)](){var _0x20bd72=_0x4ee163;return this[_0x20bd72(0x158)]()[_0x20bd72(0x164)](_0x13e3ec=>_0x13e3ec[_0x20bd72(0x160)]===t['DocumentBlockRangeType'][_0x20bd72(0x118)])['map'](_0xbf64=>this['_createFDocumentCode'](_0xbf64['blockId']));}[_0x4ee163(0x130)](_0x9fa105){var _0x50453d=_0x4ee163;return this[_0x50453d(0x158)]()[_0x50453d(0x161)](_0x4f1f75=>_0x4f1f75['blockId']===_0x9fa105&&_0x4f1f75[_0x50453d(0x160)]===t['DocumentBlockRangeType'][_0x50453d(0x118)])?this[_0x50453d(0x11b)](_0x9fa105):null;}[_0x4ee163(0x150)](_0x258290){var _0x37ed34=_0x4ee163;let _0x11a1f3=this['_getBlockRanges']()[_0x37ed34(0x15a)](_0x530753=>_0x530753[_0x37ed34(0x160)]===t['DocumentBlockRangeType'][_0x37ed34(0x118)]&&_0x530753[_0x37ed34(0x14f)]<=_0x258290&&_0x258290<=_0x530753[_0x37ed34(0x113)]);return _0x11a1f3?this[_0x37ed34(0x11b)](_0x11a1f3[_0x37ed34(0x155)]):null;}[_0x4ee163(0x125)](_0x1d2107){var _0x31d4bc=_0x4ee163;return this[_0x31d4bc(0x14b)](_0x1d2107)[0x0]??null;}[_0x4ee163(0x14b)](_0x134c98){var _0x5c38f7=_0x4ee163;let _0x4986a6=typeof _0x134c98=='string'?{'text':_0x134c98}:_0x134c98;return this[_0x5c38f7(0x13e)]()[_0x5c38f7(0x164)](_0x5bbd9b=>!(_0x4986a6['blockId']&&_0x5bbd9b['getId']()!==_0x4986a6['blockId']||_0x4986a6[_0x5c38f7(0x154)]&&!_0x5bbd9b['getText']()[_0x5c38f7(0x115)](_0x4986a6['text'])));}[_0x4ee163(0x139)](_0x2a15c3={},_0x486ff3={}){var _0x5d923e=_0x4ee163;let _0x35bacc=this[_0x5d923e(0x116)][_0x5d923e(0x117)](t[_0x5d923e(0x114)]),_0x4032e9=(0x0,n[_0x5d923e(0x138)])(_0x2a15c3)?{..._0x486ff3,..._0x2a15c3['getRange']()}:_0x2a15c3,_0xeebd72=_0x4032e9['blockId']??(0x0,t['generateRandomId'])(0x6);return _0x35bacc[_0x5d923e(0x15c)](e[_0x5d923e(0x148)]['id'],{..._0x4032e9,'blockId':_0xeebd72,'unitId':this[_0x5d923e(0x120)]()})?this[_0x5d923e(0x130)](_0xeebd72):null;}['_getBlockRanges'](){var _0x115801=_0x4ee163,_0x2d65fb;return((_0x2d65fb=this[_0x115801(0x163)]()[_0x115801(0x152)])==null?void 0x0:_0x2d65fb[_0x115801(0x121)])??[];}[_0x4ee163(0x11b)](_0x7de1b6){var _0x4304fa=_0x4ee163;return this[_0x4304fa(0x116)][_0x4304fa(0x112)](l,this,_0x7de1b6);}};n[_0x4ee163(0x129)][_0x4ee163(0x14d)](d),Object[_0x4ee163(0x153)](exports,_0x4ee163(0x13c),{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x24f658=_0x1bbe;(function(_0x348dd6,_0x126251){var _0x34d25c=_0x1bbe,_0x1b1dc5=_0x348dd6();while(!![]){try{var _0xc36294=parseInt(_0x34d25c(0x1cb))/0x1*(parseInt(_0x34d25c(0x1e5))/0x2)+-parseInt(_0x34d25c(0x1c4))/0x3+parseInt(_0x34d25c(0x1ae))/0x4+-parseInt(_0x34d25c(0x1a9))/0x5*(-parseInt(_0x34d25c(0x1e0))/0x6)+parseInt(_0x34d25c(0x1d2))/0x7+-parseInt(_0x34d25c(0x1d0))/0x8+-parseInt(_0x34d25c(0x1c8))/0x9*(parseInt(_0x34d25c(0x1d7))/0xa);if(_0xc36294===_0x126251)break;else _0x1b1dc5['push'](_0x1b1dc5['shift']());}catch(_0x1c5c6c){_0x1b1dc5['push'](_0x1b1dc5['shift']());}}}(_0x10c1,0xef215),Object['defineProperty'](exports,Symbol[_0x24f658(0x1bc)],{'value':_0x24f658(0x1b1)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x13f094){'@babel/helpers - typeof';var _0x58db15=_0x24f658;return r=typeof Symbol=='function'&&typeof Symbol[_0x58db15(0x1b6)]==_0x58db15(0x1d6)?function(_0x305d36){return typeof _0x305d36;}:function(_0x31408f){var _0x4c833a=_0x58db15;return _0x31408f&&typeof Symbol==_0x4c833a(0x1df)&&_0x31408f[_0x4c833a(0x1dd)]===Symbol&&_0x31408f!==Symbol['prototype']?_0x4c833a(0x1d6):typeof _0x31408f;},r(_0x13f094);}function _0x1bbe(_0x9f9ffe,_0x185c58){_0x9f9ffe=_0x9f9ffe-0x19a;var _0x10c148=_0x10c1();var _0x1bbe4d=_0x10c148[_0x9f9ffe];return _0x1bbe4d;}function i(_0x524ea1,_0x22a3c1){var _0x2c2fed=_0x24f658;if(r(_0x524ea1)!=_0x2c2fed(0x1e2)||!_0x524ea1)return _0x524ea1;var _0x3acc8c=_0x524ea1[Symbol[_0x2c2fed(0x1a2)]];if(_0x3acc8c!==void 0x0){var _0x34593b=_0x3acc8c['call'](_0x524ea1,_0x22a3c1||_0x2c2fed(0x1cd));if(r(_0x34593b)!=_0x2c2fed(0x1e2))return _0x34593b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22a3c1===_0x2c2fed(0x19d)?String:Number)(_0x524ea1);}function a(_0x261ee8){var _0x32f997=_0x24f658,_0x4b30a4=i(_0x261ee8,_0x32f997(0x19d));return r(_0x4b30a4)==_0x32f997(0x1d6)?_0x4b30a4:_0x4b30a4+'';}function o(_0x17af3e,_0x282b91,_0x3a1d85){var _0x500b96=_0x24f658;return(_0x282b91=a(_0x282b91))in _0x17af3e?Object[_0x500b96(0x1de)](_0x17af3e,_0x282b91,{'value':_0x3a1d85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17af3e[_0x282b91]=_0x3a1d85,_0x17af3e;}function _0x10c1(){var _0x5c0ba7=['getRange','DocsCodeInsertCommand','decorate','dataStream','toStringTag','body','endIndex','syncExecuteCommand','_blockId','CODE','FDocumentCode','_getBlockRanges','948636RVpeGT','blockRanges','_getDocumentData','includes','99bVPMfl','getCodes','find','2zQnCPf','createInstance','default','config','getConfig','5779064drQNwx','getText','12715549RUhsaw','_document','DataStreamTreeTokenType','DocsCodeRemoveCommand','symbol','4688390VuXyaX','map','generateRandomId','BLOCK_END','Inject','getCodeAt','constructor','defineProperty','function','6WKqZZw','filter','object','save','blockId','1711518hkqIqH','DocumentBlockRangeType','getCode','DocsCodeUpdateCommand','extend','describe','string','_createFDocumentCode','FDocument','blockType','from','toPrimitive','_unitId','findCodes','_getBlockRange','getId','isParagraphFacade','remove','8522875WRzIWE','ICommandService','get','length','slice','7770804droMkh','normalizeDocsCodeConfig','PARAGRAPH','Module','_injector','Injector','findCodeByText','text','iterator','startIndex'];_0x10c1=function(){return _0x5c0ba7;};return _0x10c1();}function s(_0x164506,_0xfa2c39){return function(_0x5d16f8,_0x36d2ff){_0xfa2c39(_0x5d16f8,_0x36d2ff,_0x164506);};}function c(_0x2f7a7b,_0x2ba09e,_0x1d5c82,_0x2b2c53){var _0x2a09fa=_0x24f658,_0x102ceb=arguments['length'],_0x484c67=_0x102ceb<0x3?_0x2ba09e:_0x2b2c53===null?_0x2b2c53=Object['getOwnPropertyDescriptor'](_0x2ba09e,_0x1d5c82):_0x2b2c53,_0x459a83;if(typeof Reflect==_0x2a09fa(0x1e2)&&typeof Reflect[_0x2a09fa(0x1ba)]==_0x2a09fa(0x1df))_0x484c67=Reflect[_0x2a09fa(0x1ba)](_0x2f7a7b,_0x2ba09e,_0x1d5c82,_0x2b2c53);else{for(var _0x5ec965=_0x2f7a7b[_0x2a09fa(0x1ac)]-0x1;_0x5ec965>=0x0;_0x5ec965--)(_0x459a83=_0x2f7a7b[_0x5ec965])&&(_0x484c67=(_0x102ceb<0x3?_0x459a83(_0x484c67):_0x102ceb>0x3?_0x459a83(_0x2ba09e,_0x1d5c82,_0x484c67):_0x459a83(_0x2ba09e,_0x1d5c82))||_0x484c67);}return _0x102ceb>0x3&&_0x484c67&&Object[_0x2a09fa(0x1de)](_0x2ba09e,_0x1d5c82,_0x484c67),_0x484c67;}let l=class{constructor(_0x253c9b,_0x3ec111,_0xe5b498){var _0x46073a=_0x24f658;this['_document']=_0x253c9b,this['_blockId']=_0x3ec111,this[_0x46073a(0x1b2)]=_0xe5b498,o(this,_0x46073a(0x1a3),void 0x0),this['_unitId']=this[_0x46073a(0x1d3)][_0x46073a(0x1a6)]();}[_0x24f658(0x1a6)](){return this['_blockId'];}[_0x24f658(0x1b8)](){var _0x3638c2=_0x24f658;let _0xfee04b=this['_getBlockRange']();return _0xfee04b?{'blockId':_0xfee04b['blockId'],'endIndex':_0xfee04b[_0x3638c2(0x1be)],'startIndex':_0xfee04b[_0x3638c2(0x1b7)]}:null;}['getText'](){var _0x6162ae=_0x24f658,_0x27780a;let _0x23a739=this[_0x6162ae(0x1a5)](),_0xc5c2a1=(_0x27780a=this[_0x6162ae(0x1c6)]()[_0x6162ae(0x1bd)])==null?void 0x0:_0x27780a[_0x6162ae(0x1bb)];return!_0x23a739||!_0xc5c2a1?'':u(_0xc5c2a1[_0x6162ae(0x1ad)](_0x23a739[_0x6162ae(0x1b7)]+0x1,_0x23a739[_0x6162ae(0x1be)]));}[_0x24f658(0x19c)](){var _0x20edc7=_0x24f658;let _0x15350b=this[_0x20edc7(0x1b8)]();return _0x15350b?{..._0x15350b,'config':this['getConfig'](),'text':this[_0x20edc7(0x1d1)](),'type':t[_0x20edc7(0x1e6)][_0x20edc7(0x1c1)]}:null;}[_0x24f658(0x1cf)](){var _0x3b0fca=_0x24f658;return(0x0,e[_0x3b0fca(0x1af)])(this[_0x3b0fca(0x1b2)][_0x3b0fca(0x1ab)](e['DocsCodeModel'])['getCodeConfig'](this[_0x3b0fca(0x1a3)],this[_0x3b0fca(0x1c0)]));}['updateConfig'](_0x5f4bc1){var _0x11290d=_0x24f658;return this[_0x11290d(0x1b2)][_0x11290d(0x1ab)](t[_0x11290d(0x1aa)])[_0x11290d(0x1bf)](e[_0x11290d(0x19a)]['id'],{'blockId':this[_0x11290d(0x1c0)],'config':_0x5f4bc1[_0x11290d(0x1ce)],'unitId':this[_0x11290d(0x1a3)]});}['unwrap'](){var _0x38ae9e=_0x24f658;return this['_injector'][_0x38ae9e(0x1ab)](t[_0x38ae9e(0x1aa)])['syncExecuteCommand'](e['DocsCodeUnwrapCommand']['id'],{'blockId':this[_0x38ae9e(0x1c0)],'unitId':this[_0x38ae9e(0x1a3)]});}[_0x24f658(0x1a8)](){var _0x17133e=_0x24f658;return this[_0x17133e(0x1b2)]['get'](t[_0x17133e(0x1aa)])['syncExecuteCommand'](e[_0x17133e(0x1d5)]['id'],{'blockId':this[_0x17133e(0x1c0)],'unitId':this[_0x17133e(0x1a3)]});}[_0x24f658(0x1a5)](){var _0x37abc8=_0x24f658,_0x438409;return((_0x438409=this[_0x37abc8(0x1c6)]()[_0x37abc8(0x1bd)])==null||(_0x438409=_0x438409[_0x37abc8(0x1c5)])==null?void 0x0:_0x438409[_0x37abc8(0x1ca)](_0x3bc3fa=>_0x3bc3fa[_0x37abc8(0x1e4)]===this[_0x37abc8(0x1c0)]&&_0x3bc3fa[_0x37abc8(0x1a0)]===t[_0x37abc8(0x1e6)]['CODE']))??null;}[_0x24f658(0x1c6)](){var _0x38f0f5=_0x24f658;return this[_0x38f0f5(0x1d3)][_0x38f0f5(0x1e3)]();}};l=c([s(0x2,(0x0,t[_0x24f658(0x1db)])(t[_0x24f658(0x1b3)]))],l);function u(_0x13642c){var _0x485554=_0x24f658;return Array[_0x485554(0x1a1)](_0x13642c)[_0x485554(0x1d8)](_0x5321e4=>_0x5321e4===t['DataStreamTreeTokenType'][_0x485554(0x1b0)]?'\x0a':_0x5321e4)['filter'](_0x200598=>_0x200598!==t[_0x485554(0x1d4)]['BLOCK_START']&&_0x200598!==t['DataStreamTreeTokenType'][_0x485554(0x1da)]&&_0x200598!==t[_0x485554(0x1d4)]['SECTION_BREAK'])['join']('')['replace'](/\n$/,'');}var d=class extends n['FDocument']{[_0x24f658(0x1c9)](){var _0x1313ef=_0x24f658;return this[_0x1313ef(0x1c3)]()['filter'](_0x4a984a=>_0x4a984a['blockType']===t[_0x1313ef(0x1e6)]['CODE'])[_0x1313ef(0x1d8)](_0x2bd346=>this[_0x1313ef(0x19e)](_0x2bd346[_0x1313ef(0x1e4)]));}[_0x24f658(0x1e7)](_0x31c61b){var _0x5b8b0b=_0x24f658;return this[_0x5b8b0b(0x1c3)]()['some'](_0x2907f7=>_0x2907f7[_0x5b8b0b(0x1e4)]===_0x31c61b&&_0x2907f7[_0x5b8b0b(0x1a0)]===t[_0x5b8b0b(0x1e6)]['CODE'])?this[_0x5b8b0b(0x19e)](_0x31c61b):null;}[_0x24f658(0x1dc)](_0x4d4437){var _0x48e9ed=_0x24f658;let _0x590dc7=this[_0x48e9ed(0x1c3)]()[_0x48e9ed(0x1ca)](_0x5b6efb=>_0x5b6efb[_0x48e9ed(0x1a0)]===t[_0x48e9ed(0x1e6)][_0x48e9ed(0x1c1)]&&_0x5b6efb[_0x48e9ed(0x1b7)]<=_0x4d4437&&_0x4d4437<=_0x5b6efb[_0x48e9ed(0x1be)]);return _0x590dc7?this[_0x48e9ed(0x19e)](_0x590dc7[_0x48e9ed(0x1e4)]):null;}[_0x24f658(0x1b4)](_0x1bb86d){var _0x183de8=_0x24f658;return this[_0x183de8(0x1a4)](_0x1bb86d)[0x0]??null;}['findCodes'](_0x2b8bf6){var _0x8215c4=_0x24f658;let _0x38dee2=typeof _0x2b8bf6=='string'?{'text':_0x2b8bf6}:_0x2b8bf6;return this[_0x8215c4(0x1c9)]()[_0x8215c4(0x1e1)](_0x2ff2c0=>!(_0x38dee2[_0x8215c4(0x1e4)]&&_0x2ff2c0[_0x8215c4(0x1a6)]()!==_0x38dee2[_0x8215c4(0x1e4)]||_0x38dee2[_0x8215c4(0x1b5)]&&!_0x2ff2c0[_0x8215c4(0x1d1)]()[_0x8215c4(0x1c7)](_0x38dee2[_0x8215c4(0x1b5)])));}['insertCode'](_0x1a3c85={},_0x594cfc={}){var _0x1caae3=_0x24f658;let _0xcb2f2e=this[_0x1caae3(0x1b2)][_0x1caae3(0x1ab)](t[_0x1caae3(0x1aa)]),_0x245aed=(0x0,n[_0x1caae3(0x1a7)])(_0x1a3c85)?{..._0x594cfc,..._0x1a3c85[_0x1caae3(0x1b8)]()}:_0x1a3c85,_0x546f5a=_0x245aed[_0x1caae3(0x1e4)]??(0x0,t[_0x1caae3(0x1d9)])(0x6);return _0xcb2f2e['syncExecuteCommand'](e[_0x1caae3(0x1b9)]['id'],{..._0x245aed,'blockId':_0x546f5a,'unitId':this[_0x1caae3(0x1a6)]()})?this[_0x1caae3(0x1e7)](_0x546f5a):null;}['_getBlockRanges'](){var _0x1159ab=_0x24f658,_0x73836d;return((_0x73836d=this['save']()[_0x1159ab(0x1bd)])==null?void 0x0:_0x73836d[_0x1159ab(0x1c5)])??[];}['_createFDocumentCode'](_0xeb5e2d){var _0x19bb54=_0x24f658;return this[_0x19bb54(0x1b2)][_0x19bb54(0x1cc)](l,this,_0xeb5e2d);}};n[_0x24f658(0x19f)][_0x24f658(0x19b)](d),Object['defineProperty'](exports,_0x24f658(0x1c2),{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x57f943=_0x5390;(function(_0x32a489,_0x35b4ec){const _0x2a00e4=_0x5390,_0xd9ee5b=_0x32a489();while(!![]){try{const _0x3de506=-parseInt(_0x2a00e4(0x18e))/0x1*(parseInt(_0x2a00e4(0x15d))/0x2)+-parseInt(_0x2a00e4(0x16c))/0x3*(parseInt(_0x2a00e4(0x14d))/0x4)+parseInt(_0x2a00e4(0x100))/0x5+parseInt(_0x2a00e4(0x141))/0x6+parseInt(_0x2a00e4(0x176))/0x7+parseInt(_0x2a00e4(0x138))/0x8+-parseInt(_0x2a00e4(0x166))/0x9;if(_0x3de506===_0x35b4ec)break;else _0xd9ee5b['push'](_0xd9ee5b['shift']());}catch(_0x3da0aa){_0xd9ee5b['push'](_0xd9ee5b['shift']());}}}(_0x323a,0xc8cc9),Object[_0x57f943(0x181)](exports,Symbol['toStringTag'],{'value':_0x57f943(0xdd)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':_0x57f943(0xef),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x4d2485){return{...i,..._0x4d2485};}function o(_0x98ed42){const _0x4b98de=_0x57f943;let _0x1d5b5e=(_0x98ed42==null?void 0x0:_0x98ed42[_0x4b98de(0x15e)])??{};return{'codes':Object[_0x4b98de(0x144)](Object[_0x4b98de(0xe5)](_0x1d5b5e)['map'](([_0x570b76,_0x23f8c8])=>[_0x570b76,a(_0x23f8c8)]))};}function s(_0x344639,_0x4e62ab,_0x367214){const _0x4b9e3e=_0x57f943;let _0x537a35=o(_0x344639);return _0x537a35['codes'][_0x4e62ab]=a({..._0x537a35[_0x4b9e3e(0x15e)][_0x4e62ab],..._0x367214}),_0x537a35;}function c(_0x567f64,_0x38dad3){const _0x5ebd2a=_0x57f943;let _0xa6a501=o(_0x567f64);return delete _0xa6a501[_0x5ebd2a(0x15e)][_0x38dad3],_0xa6a501;}function l(_0x3ef139){'@babel/helpers - typeof';const _0x25e1fd=_0x57f943;return l=typeof Symbol==_0x25e1fd(0x129)&&typeof Symbol[_0x25e1fd(0x13a)]==_0x25e1fd(0xde)?function(_0x59cc4b){return typeof _0x59cc4b;}:function(_0x13c59d){const _0x57b861=_0x25e1fd;return _0x13c59d&&typeof Symbol=='function'&&_0x13c59d[_0x57b861(0x17e)]===Symbol&&_0x13c59d!==Symbol[_0x57b861(0xfc)]?_0x57b861(0xde):typeof _0x13c59d;},l(_0x3ef139);}function u(_0x52b369,_0x2626eb){const _0x25990d=_0x57f943;if(l(_0x52b369)!=_0x25990d(0x186)||!_0x52b369)return _0x52b369;var _0x21b9ba=_0x52b369[Symbol[_0x25990d(0x170)]];if(_0x21b9ba!==void 0x0){var _0x50631f=_0x21b9ba[_0x25990d(0x10d)](_0x52b369,_0x2626eb||_0x25990d(0x151));if(l(_0x50631f)!=_0x25990d(0x186))return _0x50631f;throw TypeError(_0x25990d(0x10a));}return(_0x2626eb==='string'?String:Number)(_0x52b369);}function d(_0x2dec13){const _0xf1d4fb=_0x57f943;var _0x91519a=u(_0x2dec13,'string');return l(_0x91519a)==_0xf1d4fb(0xde)?_0x91519a:_0x91519a+'';}function f(_0x3a63f2,_0x82451e,_0x48fdca){const _0x48e4a6=_0x57f943;return(_0x82451e=d(_0x82451e))in _0x3a63f2?Object[_0x48e4a6(0x181)](_0x3a63f2,_0x82451e,{'value':_0x48fdca,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a63f2[_0x82451e]=_0x48fdca,_0x3a63f2;}var p=class extends e[_0x57f943(0x103)]{constructor(..._0xa3d95e){const _0x5c7014=_0x57f943;super(..._0xa3d95e),f(this,_0x5c7014(0x15b),new Map()),f(this,_0x5c7014(0x10b),new t[(_0x5c7014(0x18f))]()),f(this,_0x5c7014(0xec),this[_0x5c7014(0x10b)][_0x5c7014(0x147)]());}['getCodeConfig'](_0x2fb92b,_0x3b7f22){const _0x775744=_0x57f943;return o(this[_0x775744(0x15b)][_0x775744(0x12a)](_0x2fb92b))[_0x775744(0x15e)][_0x3b7f22];}[_0x57f943(0x17b)](_0x58e4c7,_0x2a865e,_0x56f886){const _0x371a25=_0x57f943;this[_0x371a25(0x19e)](_0x58e4c7,_0x2a865e,s(this[_0x371a25(0x15b)][_0x371a25(0x12a)](_0x58e4c7),_0x2a865e,_0x56f886));}[_0x57f943(0x165)](_0x2b3a2e,_0x623c55){const _0x173fdc=_0x57f943;this['_setResource'](_0x2b3a2e,_0x623c55,c(this[_0x173fdc(0x15b)][_0x173fdc(0x12a)](_0x2b3a2e),_0x623c55));}['serialize'](_0x42d1eb){const _0x2e6c3d=_0x57f943;return o(this['_resources'][_0x2e6c3d(0x12a)](_0x42d1eb));}[_0x57f943(0x1a0)](_0x32c14d,_0x1e5783){const _0x16c6a4=_0x57f943;this['_resources'][_0x16c6a4(0xd6)](_0x32c14d,o(_0x1e5783)),this[_0x16c6a4(0x10b)]['next']({'unitId':_0x32c14d});}[_0x57f943(0xe1)](_0x5a0b71){const _0x1e55b1=_0x57f943;this[_0x1e55b1(0x15b)][_0x1e55b1(0x13d)](_0x5a0b71),this['_change$'][_0x1e55b1(0x120)]({'unitId':_0x5a0b71});}['dispose'](){const _0x579ba1=_0x57f943;super[_0x579ba1(0x19f)](),this['_resources']['clear'](),this[_0x579ba1(0x10b)]['complete']();}['_setResource'](_0x3293e9,_0x6e4d95,_0x1b541a){const _0x7f1e0d=_0x57f943;this[_0x7f1e0d(0x15b)][_0x7f1e0d(0xd6)](_0x3293e9,_0x1b541a),this[_0x7f1e0d(0x10b)][_0x7f1e0d(0x120)]({'unitId':_0x3293e9,'blockId':_0x6e4d95});}};const m={'id':_0x57f943(0x153),'type':e[_0x57f943(0x18b)]['MUTATION'],'handler':(_0x5e1ca4,_0x334bca)=>!(_0x334bca!=null&&_0x334bca[_0x57f943(0x125)])||!_0x334bca[_0x57f943(0x143)]?!0x1:(_0x5e1ca4[_0x57f943(0x12a)](p)[_0x57f943(0x17b)](_0x334bca[_0x57f943(0x125)],_0x334bca[_0x57f943(0x143)],_0x334bca[_0x57f943(0x13e)]),!0x0)},h={'id':'docs-code.mutation.remove-config','type':e[_0x57f943(0x18b)][_0x57f943(0xfe)],'handler':(_0x417245,_0x315446)=>!(_0x315446!=null&&_0x315446[_0x57f943(0x125)])||!_0x315446[_0x57f943(0x143)]?!0x1:(_0x417245[_0x57f943(0x12a)](p)[_0x57f943(0x165)](_0x315446[_0x57f943(0x125)],_0x315446[_0x57f943(0x143)]),!0x0)},g=_0x57f943(0x160);var _=class extends Error{constructor(_0x231815=_0x57f943(0xe7)){super(_0x231815);}};function ee(_0x43df35){const _0x5e4e8d=_0x57f943;var _0x590a79;let _0x21c486=S(_0x43df35[_0x5e4e8d(0xed)]),_0x4b2782=w(_0x21c486),_0x2e198d=ne(_0x43df35[_0x5e4e8d(0x150)],_0x43df35[_0x5e4e8d(0x187)]),_0x4c392e=_0x2e198d?(_0x590a79=_0x4b2782[_0x5e4e8d(0xd0)])==null?void 0x0:_0x590a79[_0x5e4e8d(0xda)](_0x746fe2=>{const _0x221fa0=_0x5e4e8d;let _0x582b21=(0x0,e['getBlockRangeInterval'])(_0x746fe2);return _0x582b21['startOffset']===_0x2e198d[_0x221fa0(0x150)]&&_0x582b21['endOffset']===_0x2e198d['endOffset'];}):void 0x0,{startOffset:_0x59c83b,endOffset:_0x363fd0}=_0x4c392e?_0x2e198d:me(_0x4b2782,_0x43df35[_0x5e4e8d(0x150)],_0x43df35[_0x5e4e8d(0x187)],_0x43df35[_0x5e4e8d(0xcf)]);if(!_0x4c392e&&re(_0x4b2782,_0x59c83b,_0x363fd0))throw new _(_0x5e4e8d(0x102));let _0x13ece2=_e(_0x4b2782,_0x59c83b,_0x363fd0),_0x5bc3ef=(_0x4c392e==null?void 0x0:_0x4c392e[_0x5e4e8d(0x143)])??_0x43df35[_0x5e4e8d(0x143)],_0x244f0f=s(_0x43df35['metadata'],_0x5bc3ef,{...i,..._0x43df35['config']});if(_0x4c392e)return _0x4c392e[_0x5e4e8d(0x162)]=e[_0x5e4e8d(0x111)][_0x5e4e8d(0x154)],te(_0x4b2782,_0x59c83b,_0x363fd0),le(_0x4b2782,_0x59c83b,_0x363fd0,_0x13ece2),O(_0x4b2782,_0x4c392e),{'nextDocumentData':_0x21c486,'nextMetadata':_0x244f0f,'cursorOffset':_0x59c83b+0x1};if(_0x59c83b===_0x363fd0){var _0x1c7290,_0xd83e8a;let _0x2a61ef=''+e[_0x5e4e8d(0x146)]['BLOCK_START']+e['DataStreamTreeTokenType'][_0x5e4e8d(0xf3)]+e[_0x5e4e8d(0x146)][_0x5e4e8d(0x136)];k(_0x4b2782,_0x59c83b,_0x2a61ef,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x1c7290=_0x4b2782[_0x5e4e8d(0x157)])==null?void 0x0:_0x1c7290[_0x5e4e8d(0xeb)](_0x41939c=>_0x41939c[_0x5e4e8d(0x16d)]))),'paragraphStyle':x(!0x0,!0x0,_0x13ece2)}],'blockRanges':[{'blockId':_0x5bc3ef,'blockType':e['DocumentBlockRangeType'][_0x5e4e8d(0x154)],'startIndex':0x0,'endIndex':_0x2a61ef[_0x5e4e8d(0x14a)]-0x1}]});let _0x5e5ac6=(_0xd83e8a=_0x4b2782[_0x5e4e8d(0xd0)])==null?void 0x0:_0xd83e8a['find'](_0x32007f=>_0x32007f[_0x5e4e8d(0x143)]===_0x5bc3ef);return _0x5e5ac6&&O(_0x4b2782,_0x5e5ac6),{'nextDocumentData':_0x21c486,'nextMetadata':_0x244f0f,'cursorOffset':_0x59c83b+0x1};}k(_0x4b2782,_0x363fd0,e[_0x5e4e8d(0x146)][_0x5e4e8d(0x136)]),k(_0x4b2782,_0x59c83b,e[_0x5e4e8d(0x146)]['BLOCK_START']),le(_0x4b2782,_0x59c83b,_0x363fd0+0x1,_0x13ece2);let _0x3056e2={'blockId':_0x5bc3ef,'blockType':e['DocumentBlockRangeType']['CODE'],'startIndex':_0x59c83b,'endIndex':_0x363fd0+0x1};return _0x4b2782[_0x5e4e8d(0xd0)]=[..._0x4b2782['blockRanges']??[],_0x3056e2]['sort']((_0x23305,_0x3590a3)=>_0x23305[_0x5e4e8d(0x121)]-_0x3590a3['startIndex']),O(_0x4b2782,_0x3056e2),{'nextDocumentData':_0x21c486,'nextMetadata':_0x244f0f,'cursorOffset':_0x59c83b+0x1};}function te(_0x50b91b,_0x2b4d75,_0x50626b){const _0x46b25c=_0x57f943;(_0x50b91b[_0x46b25c(0x157)]??[])[_0x46b25c(0x190)](_0x15096c=>_0x15096c[_0x46b25c(0x121)]>_0x2b4d75&&_0x15096c[_0x46b25c(0x121)]<_0x50626b)[_0x46b25c(0x19d)](_0x161262=>{const _0x4328a1=_0x46b25c;let _0x553d3f={..._0x161262[_0x4328a1(0xd7)]??{}};delete _0x553d3f[_0x4328a1(0x18d)],delete _0x553d3f['spaceBelow'],_0x161262[_0x4328a1(0xd7)]=_0x553d3f;});}function ne(_0x28bac3,_0x134e0e){return _0x28bac3==null||_0x134e0e==null||_0x28bac3===_0x134e0e?null:{'startOffset':Math['min'](_0x28bac3,_0x134e0e),'endOffset':Math['max'](_0x28bac3,_0x134e0e)};}function re(_0x54464e,_0x5b4b8c,_0x43f745){const _0x3b6072=_0x57f943;return(_0x54464e[_0x3b6072(0xd0)]??[])[_0x3b6072(0xf9)](_0x231d58=>{const _0x462e53=_0x3b6072;let _0x35ba1f=(0x0,e[_0x462e53(0x161)])(_0x231d58);return _0x5b4b8c===_0x43f745?(0x0,e[_0x462e53(0x179)])(_0x35ba1f,_0x5b4b8c):(0x0,e[_0x462e53(0x115)])(_0x35ba1f,{'startOffset':_0x5b4b8c,'endOffset':_0x43f745});});}function ie(_0x3a244e){const _0x18a9f6=_0x57f943;return{'nextDocumentData':S(_0x3a244e[_0x18a9f6(0xed)]),'nextMetadata':s(_0x3a244e[_0x18a9f6(0xf1)],_0x3a244e[_0x18a9f6(0x143)],_0x3a244e[_0x18a9f6(0x13e)]),'cursorOffset':0x0};}function v(_0x952ac){const _0x143e32=_0x57f943;let _0x1d1709=S(_0x952ac[_0x143e32(0xed)]),_0x30dda6=w(_0x1d1709),_0xcde7dc=b(_0x30dda6,_0x952ac[_0x143e32(0x143)]);if(!_0xcde7dc)return null;let _0x214cff=fe(_0x30dda6,_0xcde7dc);return{'nextDocumentData':_0x1d1709,'nextMetadata':c(_0x952ac[_0x143e32(0xf1)],_0x952ac[_0x143e32(0x143)]),'cursorOffset':_0x214cff};}function ae(_0x4d9cb8){const _0x2a223c=_0x57f943;var _0x520041;let _0x5eb654=S(_0x4d9cb8[_0x2a223c(0xed)]),_0x1f0fdf=w(_0x5eb654),_0x4655b0=b(_0x1f0fdf,_0x4d9cb8[_0x2a223c(0x143)]);if(!_0x4655b0)return null;let _0x475aec=(0x0,e[_0x2a223c(0x161)])(_0x4655b0);return A(_0x1f0fdf,_0x475aec[_0x2a223c(0x150)],_0x475aec[_0x2a223c(0x187)]),_0x1f0fdf[_0x2a223c(0xd0)]=(_0x520041=_0x1f0fdf[_0x2a223c(0xd0)])==null?void 0x0:_0x520041[_0x2a223c(0x190)](_0x57f6d6=>_0x57f6d6[_0x2a223c(0x143)]!==_0x4d9cb8[_0x2a223c(0x143)]),{'nextDocumentData':_0x5eb654,'nextMetadata':c(_0x4d9cb8[_0x2a223c(0xf1)],_0x4d9cb8[_0x2a223c(0x143)]),'cursorOffset':_0x4655b0[_0x2a223c(0x121)]};}function y(_0x4caf32){const _0x515d70=_0x57f943;let _0x506b05=S(_0x4caf32[_0x515d70(0xed)]),_0x20bc98=w(_0x506b05),_0x1a54fe=ce(_0x20bc98,_0x4caf32[_0x515d70(0x14e)]);return _0x1a54fe&&oe(_0x506b05,_0x20bc98,_0x1a54fe,_0x4caf32['cursorOffset'],_0x4caf32['paragraphStartIndex'])||null;}function oe(_0x1c9c79,_0x309c77,_0x51e4b7,_0x1b40e7,_0x2ca2f6){const _0x206365=_0x57f943;let _0x5107e6=Se(_0x309c77,_0x51e4b7,_0x1b40e7,_0x2ca2f6);if(!_0x5107e6)return null;let _0x3a1bfb=_0x5107e6['endTokenOffset']-0x1;return A(_0x309c77,_0x5107e6[_0x206365(0x11c)][_0x206365(0x121)],_0x5107e6['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x1c9c79,'cursorOffset':_0x3a1bfb};}function _0x5390(_0xea8510,_0xa859d0){_0xea8510=_0xea8510-0xcd;const _0x323ae6=_0x323a();let _0x539022=_0x323ae6[_0xea8510];return _0x539022;}function b(_0x4a8130,_0x89cd5b){const _0xf8892b=_0x57f943;var _0x15bca8;return _0x4a8130==null||(_0x15bca8=_0x4a8130[_0xf8892b(0xd0)])==null?void 0x0:_0x15bca8[_0xf8892b(0xda)](_0x53b75f=>_0x53b75f[_0xf8892b(0x162)]===e[_0xf8892b(0x111)][_0xf8892b(0x154)]&&_0x53b75f['blockId']===_0x89cd5b);}function se(_0x377afe){const _0x35c4b8=_0x57f943;let _0x56e50d=_0x377afe['documentData'][_0x35c4b8(0x148)];if(!_0x56e50d)return!0x1;let _0x2000c9=_0x377afe[_0x35c4b8(0x112)]===_0x35c4b8(0xd5)?_0x377afe[_0x35c4b8(0x14e)]-0x1:_0x377afe[_0x35c4b8(0x14e)],_0x18dab2=_0x377afe['direction']===_0x35c4b8(0x142)?_0x377afe[_0x35c4b8(0x14e)]+0x1:_0x2000c9;return(_0x56e50d[_0x35c4b8(0xd0)]??[])[_0x35c4b8(0xf9)](_0x347fb7=>_0x347fb7[_0x35c4b8(0x162)]===e['DocumentBlockRangeType'][_0x35c4b8(0x154)]?_0x2000c9===_0x347fb7[_0x35c4b8(0x121)]||_0x2000c9===_0x347fb7[_0x35c4b8(0xf4)]||_0x18dab2===_0x347fb7[_0x35c4b8(0x121)]||_0x18dab2===_0x347fb7[_0x35c4b8(0xf4)]:!0x1);}function ce(_0x888934,_0x38daa2){const _0x8fef19=_0x57f943;var _0x45c4ba;return(_0x45c4ba=_0x888934['blockRanges'])==null?void 0x0:_0x45c4ba[_0x8fef19(0xda)](_0x28887f=>{const _0x6e7dfe=_0x8fef19;let _0x488fd7=D(_0x28887f);return _0x28887f[_0x6e7dfe(0x162)]===e[_0x6e7dfe(0x111)]['CODE']&&_0x28887f[_0x6e7dfe(0x121)]<=_0x38daa2&&_0x38daa2<=_0x488fd7+0x2;});}function x(_0x1393ed,_0x5d4a99,_0x4e79f1=!0x1){const _0x467516=_0x57f943;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e[_0x467516(0x16e)][_0x467516(0x10f)],'keepNext':_0x5d4a99?e[_0x467516(0x16e)][_0x467516(0x177)]:e['BooleanNumber'][_0x467516(0x10f)],'widowControl':e[_0x467516(0x16e)][_0x467516(0x10f)],..._0x1393ed&&_0x4e79f1?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x41ab0f,_0x5aae0a,_0x20ea36,_0x9138c1=!0x1){const _0x18febb=_0x57f943;let _0x316987=(_0x41ab0f[_0x18febb(0x157)]??[])[_0x18febb(0x190)](_0x230c9b=>_0x230c9b[_0x18febb(0x121)]>_0x5aae0a&&_0x230c9b['startIndex']<_0x20ea36);_0x316987[_0x18febb(0x19d)]((_0x2bc337,_0xf48b2c)=>{const _0x527a59=_0x18febb;_0x2bc337[_0x527a59(0xd7)]={..._0x2bc337['paragraphStyle']??{},...x(_0xf48b2c===0x0,_0xf48b2c===_0x316987[_0x527a59(0x14a)]-0x1,_0x9138c1)};});}function ue(_0x45d805){const _0x16fadc=_0x57f943;var _0x546159,_0x3e53fd;let _0x63a146={..._0x45d805??{}};return delete _0x63a146[_0x16fadc(0x16f)],delete _0x63a146['indentStart'],delete _0x63a146[_0x16fadc(0x18d)],delete _0x63a146['spaceBelow'],delete _0x63a146[_0x16fadc(0x194)],delete _0x63a146[_0x16fadc(0x11d)],delete _0x63a146[_0x16fadc(0xe6)],((_0x546159=_0x63a146[_0x16fadc(0xf8)])==null?void 0x0:_0x546159['ff'])===g&&((_0x3e53fd=_0x63a146[_0x16fadc(0xf8)])==null?void 0x0:_0x3e53fd['fs'])===0xc&&delete _0x63a146[_0x16fadc(0xf8)],_0x63a146;}function de(_0x24c312,_0x10a5e6){const _0x29a318=_0x57f943;let _0x33aab4=D(_0x10a5e6);return(_0x24c312['paragraphs']??[])[_0x29a318(0x190)](_0x4b60fa=>_0x4b60fa[_0x29a318(0x121)]>_0x10a5e6[_0x29a318(0x121)]&&_0x4b60fa['startIndex']<_0x33aab4);}function fe(_0x1eadf6,_0x57b153){const _0x292293=_0x57f943;var _0x5ed597;let _0x1fbb5b=D(_0x57b153);return de(_0x1eadf6,_0x57b153)[_0x292293(0x19d)](_0x1d54db=>{const _0x492ec5=_0x292293;_0x1d54db[_0x492ec5(0xd7)]=ue(_0x1d54db[_0x492ec5(0xd7)]);}),A(_0x1eadf6,_0x1fbb5b,_0x1fbb5b+0x1),A(_0x1eadf6,_0x57b153[_0x292293(0x121)],_0x57b153[_0x292293(0x121)]+0x1),_0x1eadf6[_0x292293(0xd0)]=(_0x5ed597=_0x1eadf6['blockRanges'])==null?void 0x0:_0x5ed597[_0x292293(0x190)](_0x1a1a92=>_0x1a1a92[_0x292293(0x143)]!==_0x57b153[_0x292293(0x143)]),_0x57b153[_0x292293(0x121)];}function S(_0x227ff8){const _0xfcc9e9=_0x57f943;return{..._0x227ff8,'body':_0x227ff8['body']?pe(_0x227ff8['body']):_0x227ff8[_0xfcc9e9(0x148)]};}function pe(_0xee4a1a){const _0x238f13=_0x57f943;var _0x3ed259,_0x40d4f4,_0x592356,_0x555ec,_0x15b50a,_0x21691e,_0x2c48c8,_0x38d27c,_0x1db078;return{..._0xee4a1a,'paragraphs':(_0x3ed259=_0xee4a1a[_0x238f13(0x157)])==null?void 0x0:_0x3ed259[_0x238f13(0xeb)](_0x3b4bec=>({..._0x3b4bec,'bullet':C(_0x3b4bec[_0x238f13(0x15f)]),'paragraphStyle':C(_0x3b4bec[_0x238f13(0xd7)])})),'sectionBreaks':(_0x40d4f4=_0xee4a1a[_0x238f13(0x12b)])==null?void 0x0:_0x40d4f4[_0x238f13(0xeb)](_0x301913=>({..._0x301913})),'textRuns':(_0x592356=_0xee4a1a[_0x238f13(0x195)])==null?void 0x0:_0x592356[_0x238f13(0xeb)](_0x36a104=>({..._0x36a104})),'tables':(_0x555ec=_0xee4a1a[_0x238f13(0x174)])==null?void 0x0:_0x555ec[_0x238f13(0xeb)](_0x3142e5=>({..._0x3142e5})),'columnGroups':(_0x15b50a=_0xee4a1a[_0x238f13(0x19c)])==null?void 0x0:_0x15b50a['map'](_0x133173=>{const _0x20a29b=_0x238f13;var _0x2ba8c6;return{..._0x133173,'columns':(_0x2ba8c6=_0x133173[_0x20a29b(0x110)])==null?void 0x0:_0x2ba8c6['map'](_0x2a14f8=>C(_0x2a14f8))};}),'blockRanges':(_0x21691e=_0xee4a1a[_0x238f13(0xd0)])==null?void 0x0:_0x21691e[_0x238f13(0xeb)](_0x1920b7=>({..._0x1920b7})),'customRanges':(_0x2c48c8=_0xee4a1a[_0x238f13(0x106)])==null?void 0x0:_0x2c48c8[_0x238f13(0xeb)](_0x34fbd3=>({..._0x34fbd3})),'customDecorations':(_0x38d27c=_0xee4a1a[_0x238f13(0x149)])==null?void 0x0:_0x38d27c[_0x238f13(0xeb)](_0x5a15c4=>({..._0x5a15c4})),'customBlocks':(_0x1db078=_0xee4a1a['customBlocks'])==null?void 0x0:_0x1db078[_0x238f13(0xeb)](_0x34563a=>({..._0x34563a}))};}function C(_0xa754b1){const _0x3bcacf=_0x57f943;return Array[_0x3bcacf(0x183)](_0xa754b1)?_0xa754b1['map'](_0x46afe8=>C(_0x46afe8)):!_0xa754b1||typeof _0xa754b1!='object'?_0xa754b1:Object[_0x3bcacf(0x144)](Object[_0x3bcacf(0xe5)](_0xa754b1)[_0x3bcacf(0xeb)](([_0x51ebba,_0x2eb1ba])=>[_0x51ebba,C(_0x2eb1ba)]));}function w(_0x2dce2f){const _0x3e01ba=_0x57f943;if(!_0x2dce2f['body'])throw Error(_0x3e01ba(0x19a));return _0x2dce2f['body'];}function me(_0x463935,_0x4ee36d,_0x390c0e,_0x5ec111=_0x57f943(0x173)){const _0x5e98d6=_0x57f943;if(_0x4ee36d==null||_0x390c0e==null){let _0x941ff6=ge(_0x463935);return{'startOffset':_0x941ff6,'endOffset':_0x941ff6};}let _0x344fe0=Math['min'](_0x4ee36d,_0x390c0e),_0x4f1b9b=Math[_0x5e98d6(0x191)](_0x4ee36d,_0x390c0e),_0x48f9cb=xe(_0x463935,_0x344fe0,_0x4f1b9b);return _0x344fe0===_0x4f1b9b?_0x5ec111===_0x5e98d6(0x11e)?{'startOffset':_0x344fe0,'endOffset':_0x4f1b9b}:he(_0x463935,_0x344fe0,_0x48f9cb):ve(_0x463935,_0x344fe0,_0x4f1b9b,_0x48f9cb);}function he(_0x1a0592,_0x31679b,_0x2b965f){const _0x4032a1=_0x57f943;let _0x5b7c30=ye(_0x1a0592,_0x31679b);if(_0x5b7c30){let _0x32d695=T(_0x1a0592,_0x5b7c30,_0x2b965f);if(_0x32d695<_0x5b7c30[_0x4032a1(0x121)])return{'startOffset':_0x32d695,'endOffset':_0x2b965f?Math[_0x4032a1(0x155)](_0x5b7c30[_0x4032a1(0x121)]+0x1,_0x2b965f[_0x4032a1(0x187)]):_0x5b7c30[_0x4032a1(0x121)]+0x1};}let _0x5d12f7=_0x31679b===0x0&&_0x1a0592[_0x4032a1(0x126)][0x0]===e[_0x4032a1(0x146)][_0x4032a1(0xf3)]?0x1:_0x31679b;return{'startOffset':_0x5d12f7,'endOffset':_0x5d12f7};}function ge(_0x565aa6){const _0xf07a06=_0x57f943;return _0x565aa6[_0xf07a06(0x126)][_0xf07a06(0x197)](e['DataStreamTreeTokenType'][_0xf07a06(0xe4)])?Math[_0xf07a06(0x191)](0x0,_0x565aa6[_0xf07a06(0x126)][_0xf07a06(0x14a)]-0x1):_0x565aa6[_0xf07a06(0x126)]['length'];}function _e(_0x2f1e42,_0x4e5d85,_0x24ba8b){const _0x34ea04=_0x57f943;var _0x29c3d5;let _0x41c291=Math[_0x34ea04(0x155)](_0x4e5d85,_0x24ba8b),_0x3ad817=Math[_0x34ea04(0x191)](_0x4e5d85,_0x24ba8b);return!!((_0x29c3d5=_0x2f1e42[_0x34ea04(0x174)])!=null&&_0x29c3d5[_0x34ea04(0xf9)](_0x2f9ddc=>_0x41c291>_0x2f9ddc[_0x34ea04(0x121)]&&_0x41c291<_0x2f9ddc[_0x34ea04(0xf4)]||_0x3ad817>_0x2f9ddc[_0x34ea04(0x121)]&&_0x3ad817<_0x2f9ddc['endIndex']||_0x41c291<=_0x2f9ddc[_0x34ea04(0x121)]&&_0x3ad817>=_0x2f9ddc['endIndex']));}function ve(_0x492ee5,_0x51d78a,_0x4744fc,_0xff5da7){const _0x233111=_0x57f943;let _0x41cf4f=[..._0x492ee5['paragraphs']??[]][_0x233111(0xe9)]((_0x498c53,_0x3643da)=>_0x498c53[_0x233111(0x121)]-_0x3643da[_0x233111(0x121)]),_0x2e85c2=(0x0,e[_0x233111(0xd4)])(_0x492ee5),_0x2bb22f=_0x41cf4f['find'](_0x129e63=>T(_0x492ee5,_0x129e63,_0xff5da7,_0x2e85c2)<=_0x51d78a&&_0x51d78a<=_0x129e63[_0x233111(0x121)]),_0x351751=_0x41cf4f['find'](_0x343f6a=>_0x343f6a[_0x233111(0x121)]>=_0x4744fc-0x1)??_0x41cf4f[_0x41cf4f[_0x233111(0x14a)]-0x1];return{'startOffset':_0x2bb22f?T(_0x492ee5,_0x2bb22f,_0xff5da7,_0x2e85c2):_0x51d78a,'endOffset':_0x351751?be(_0x351751,_0xff5da7):_0x4744fc};}function ye(_0x3a0dd4,_0x3fe4fb){const _0x7b4ce6=_0x57f943;let _0x157580=[..._0x3a0dd4[_0x7b4ce6(0x157)]??[]][_0x7b4ce6(0xe9)]((_0x25d434,_0x9e184)=>_0x25d434['startIndex']-_0x9e184[_0x7b4ce6(0x121)]),_0x21cdff=(0x0,e[_0x7b4ce6(0xd4)])(_0x3a0dd4);return _0x157580[_0x7b4ce6(0xda)](_0xf48d84=>(_0x21cdff[_0x7b4ce6(0x12a)](_0xf48d84[_0x7b4ce6(0x121)])??0x0)<=_0x3fe4fb&&_0x3fe4fb<=_0xf48d84[_0x7b4ce6(0x121)]);}function T(_0x4b800d,_0x633b3c,_0x49754f,_0x17ea7c){const _0x59e4d9=_0x57f943;let _0x23c6e7=(_0x17ea7c==null?void 0x0:_0x17ea7c[_0x59e4d9(0x12a)](_0x633b3c['startIndex']))??(0x0,e[_0x59e4d9(0xe8)])(_0x4b800d,_0x633b3c);return _0x49754f?Math[_0x59e4d9(0x191)](_0x23c6e7,_0x49754f[_0x59e4d9(0x150)]):_0x23c6e7;}function be(_0x5c494d,_0x5e7d5c){const _0x377a40=_0x57f943;let _0x46e77a=_0x5c494d['startIndex']+0x1;return _0x5e7d5c?Math[_0x377a40(0x155)](_0x46e77a,_0x5e7d5c['endOffset']):_0x46e77a;}function xe(_0x35c812,_0x560a8d,_0x429bc9){const _0x397ddc=_0x57f943;let _0x13b22d=E(_0x35c812,_0x560a8d),_0x456264=E(_0x35c812,_0x560a8d===_0x429bc9?_0x429bc9:Math[_0x397ddc(0x191)](_0x560a8d,_0x429bc9-0x1));if(!(!_0x13b22d&&!_0x456264)){if(!_0x13b22d||!_0x456264||_0x13b22d[_0x397ddc(0xf0)]!==_0x456264[_0x397ddc(0xf0)]||_0x13b22d[_0x397ddc(0x113)]!==_0x456264[_0x397ddc(0x113)])throw new _();return _0x13b22d;}}function E(_0x33eabe,_0x118115){const _0x4b3ae2=_0x57f943;let _0x3d6220=_0x33eabe['dataStream'],_0x122825=-0x1;for(let _0x4ccef9=Math[_0x4b3ae2(0x155)](_0x118115,_0x3d6220['length']-0x1);_0x4ccef9>=0x0;_0x4ccef9--){let _0x14359f=_0x3d6220[_0x4ccef9];if(_0x14359f===e['DataStreamTreeTokenType'][_0x4b3ae2(0x12c)])return;if(_0x14359f===e[_0x4b3ae2(0x146)][_0x4b3ae2(0x199)]){_0x122825=_0x4ccef9;break;}}if(_0x122825<0x0)return;let _0x2dbcab=_0x3d6220[_0x4b3ae2(0x15c)](e['DataStreamTreeTokenType']['TABLE_CELL_END'],_0x122825+0x1);if(!(_0x2dbcab<0x0||_0x118115<_0x122825+0x1||_0x118115>_0x2dbcab-0x1))return{'startOffset':_0x122825+0x1,'endOffset':Math[_0x4b3ae2(0x191)](_0x122825+0x1,_0x2dbcab-0x1),'startTokenOffset':_0x122825,'endTokenOffset':_0x2dbcab};}function D(_0x21cc16){const _0x458bbb=_0x57f943;return(0x0,e[_0x458bbb(0x161)])(_0x21cc16)[_0x458bbb(0x187)]-0x1;}function Se(_0x8a8a15,_0x3e7d4b,_0x382468,_0x31f57b){const _0x208116=_0x57f943;let _0xd0941b=D(_0x3e7d4b),_0x38b791=(_0x8a8a15[_0x208116(0x157)]??[])[_0x208116(0xda)](_0x179da2=>_0x179da2[_0x208116(0x121)]===_0xd0941b+0x1);if(!_0x38b791||_0x31f57b!=null&&_0x38b791['startIndex']!==_0x31f57b||_0x382468!=null&&(_0x382468<_0xd0941b||_0x382468>_0x38b791[_0x208116(0x121)]+0x1)||_0x8a8a15['dataStream'][_0x38b791[_0x208116(0x121)]]!==e['DataStreamTreeTokenType'][_0x208116(0xf3)])return null;let _0x435a79=(0x0,e[_0x208116(0xe8)])(_0x8a8a15,_0x38b791),_0x40394f=_0x8a8a15[_0x208116(0x126)][_0x208116(0x139)](_0x435a79,_0x38b791['startIndex']);return Array[_0x208116(0x13f)](_0x40394f)['every'](_0x44cce5=>_0x44cce5===e[_0x208116(0x146)][_0x208116(0x136)])?{'paragraph':_0x38b791,'endTokenOffset':_0xd0941b}:null;}function O(_0x484ff9,_0x44c936){const _0x130f02=_0x57f943;var _0x546627;let _0x51023c=D(_0x44c936),_0x4ff49b=_0x484ff9['dataStream'][_0x51023c+0x1];(_0x4ff49b===e['DataStreamTreeTokenType'][_0x130f02(0xe4)]||_0x4ff49b===void 0x0)&&k(_0x484ff9,_0x51023c+0x1,e['DataStreamTreeTokenType'][_0x130f02(0xf3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x130f02(0x117)])(new Set((_0x546627=_0x484ff9[_0x130f02(0x157)])==null?void 0x0:_0x546627['map'](_0x29bae1=>_0x29bae1['paragraphId'])))}]});}function k(_0xa78a96,_0x569586,_0xce0bb3,_0x390860={}){const _0x1f396e=_0x57f943;var _0x524be0,_0x2a1460;_0xce0bb3&&(_0xa78a96['dataStream']=''+_0xa78a96[_0x1f396e(0x126)][_0x1f396e(0x139)](0x0,_0x569586)+_0xce0bb3+_0xa78a96['dataStream'][_0x1f396e(0x139)](_0x569586),Ce(_0xa78a96,_0x569586,_0xce0bb3[_0x1f396e(0x14a)]),(_0x524be0=_0x390860[_0x1f396e(0x157)])!=null&&_0x524be0[_0x1f396e(0x14a)]&&(_0xa78a96[_0x1f396e(0x157)]=[..._0xa78a96['paragraphs']??[],..._0x390860['paragraphs']['map'](_0x585921=>({..._0x585921,'startIndex':_0x585921[_0x1f396e(0x121)]+_0x569586}))][_0x1f396e(0xe9)]((_0x3d1023,_0x248a45)=>_0x3d1023[_0x1f396e(0x121)]-_0x248a45[_0x1f396e(0x121)])),(_0x2a1460=_0x390860[_0x1f396e(0xd0)])!=null&&_0x2a1460[_0x1f396e(0x14a)]&&(_0xa78a96[_0x1f396e(0xd0)]=[..._0xa78a96[_0x1f396e(0xd0)]??[],..._0x390860['blockRanges'][_0x1f396e(0xeb)](_0x56ebfb=>({..._0x56ebfb,'startIndex':_0x56ebfb['startIndex']+_0x569586,'endIndex':_0x56ebfb[_0x1f396e(0xf4)]+_0x569586}))][_0x1f396e(0xe9)]((_0x35162c,_0x4e33d8)=>_0x35162c[_0x1f396e(0x121)]-_0x4e33d8[_0x1f396e(0x121)])));}function A(_0x91d600,_0x242be5,_0x4a9976){const _0x555202=_0x57f943;let _0x459600=_0x4a9976-_0x242be5;_0x91d600[_0x555202(0x126)]=''+_0x91d600[_0x555202(0x126)][_0x555202(0x139)](0x0,_0x242be5)+_0x91d600[_0x555202(0x126)][_0x555202(0x139)](_0x4a9976),we(_0x91d600,_0x242be5,_0x459600);}function Ce(_0x37b5b6,_0x56b7d3,_0x5df399){const _0x2c643c=_0x57f943;_0x37b5b6[_0x2c643c(0x157)]=j(_0x37b5b6[_0x2c643c(0x157)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x12b)]=j(_0x37b5b6[_0x2c643c(0x12b)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0xfa)]=j(_0x37b5b6[_0x2c643c(0xfa)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x195)]=Te(_0x37b5b6['textRuns'],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x174)]=Ee(_0x37b5b6[_0x2c643c(0x174)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x19c)]=N(_0x37b5b6['columnGroups'],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x106)]=N(_0x37b5b6[_0x2c643c(0x106)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0x149)]=N(_0x37b5b6[_0x2c643c(0x149)],_0x56b7d3,_0x5df399),_0x37b5b6[_0x2c643c(0xd0)]=N(_0x37b5b6[_0x2c643c(0xd0)],_0x56b7d3,_0x5df399);}function we(_0xce6f2a,_0x34b136,_0x505aa3){const _0x682699=_0x57f943;var _0x49d84c,_0x559cfb;_0xce6f2a['paragraphs']=M(_0xce6f2a[_0x682699(0x157)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x12b)]=M(_0xce6f2a[_0x682699(0x12b)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0xfa)]=M(_0xce6f2a['customBlocks'],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x195)]=(_0x49d84c=F((_0x559cfb=_0xce6f2a['textRuns'])==null?void 0x0:_0x559cfb[_0x682699(0xeb)](_0x3180c1=>({..._0x3180c1,'startIndex':_0x3180c1['st'],'endIndex':_0x3180c1['ed']})),_0x34b136,_0x505aa3))==null?void 0x0:_0x49d84c[_0x682699(0xeb)](_0x33a599=>{let {startIndex:_0x1fa57e,endIndex:_0x52221a,..._0x497ac8}=_0x33a599;return{..._0x497ac8,'st':_0x1fa57e,'ed':_0x52221a};}),_0xce6f2a[_0x682699(0x174)]=F(_0xce6f2a[_0x682699(0x174)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x19c)]=P(_0xce6f2a['columnGroups'],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x106)]=P(_0xce6f2a[_0x682699(0x106)],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0x149)]=P(_0xce6f2a['customDecorations'],_0x34b136,_0x505aa3),_0xce6f2a[_0x682699(0xd0)]=P(_0xce6f2a[_0x682699(0xd0)],_0x34b136,_0x505aa3);}function j(_0x3a79f2,_0x50113a,_0x1fe890){const _0x2e7855=_0x57f943;return _0x3a79f2==null?void 0x0:_0x3a79f2[_0x2e7855(0xeb)](_0x3d18d4=>_0x3d18d4[_0x2e7855(0x121)]>=_0x50113a?{..._0x3d18d4,'startIndex':_0x3d18d4[_0x2e7855(0x121)]+_0x1fe890}:_0x3d18d4);}function M(_0x9eb11d,_0x2a0e20,_0x5f426e){const _0x919ca2=_0x57f943;let _0x1b470b=_0x2a0e20+_0x5f426e;return _0x9eb11d==null?void 0x0:_0x9eb11d['map'](_0x794d4=>_0x794d4[_0x919ca2(0x121)]>=_0x2a0e20&&_0x794d4[_0x919ca2(0x121)]<_0x1b470b?null:_0x794d4['startIndex']>=_0x1b470b?{..._0x794d4,'startIndex':_0x794d4[_0x919ca2(0x121)]-_0x5f426e}:_0x794d4)[_0x919ca2(0x190)](_0x482822=>_0x482822!=null);}function Te(_0x379c39,_0x50d113,_0x1f4648){return _0x379c39==null?void 0x0:_0x379c39['map'](_0x4e7f6d=>_0x4e7f6d['st']>=_0x50d113?{..._0x4e7f6d,'st':_0x4e7f6d['st']+_0x1f4648,'ed':_0x4e7f6d['ed']+_0x1f4648}:_0x4e7f6d['ed']>_0x50d113?{..._0x4e7f6d,'ed':_0x4e7f6d['ed']+_0x1f4648}:_0x4e7f6d);}function N(_0x14335b,_0x220ad7,_0x14617e){return _0x14335b==null?void 0x0:_0x14335b['map'](_0x21b4e2=>(0x0,e['shiftInclusiveRangeOnInsert'])(_0x21b4e2,_0x220ad7,_0x14617e));}function Ee(_0xd55a29,_0x3ade02,_0x4de3e7){const _0x1b105b=_0x57f943;return _0xd55a29==null?void 0x0:_0xd55a29[_0x1b105b(0xeb)](_0x43c741=>(0x0,e[_0x1b105b(0x184)])(_0x43c741,_0x3ade02,_0x4de3e7));}function P(_0x26ceaa,_0x3fc9fe,_0x247018){const _0x567dc3=_0x57f943;return _0x26ceaa==null?void 0x0:_0x26ceaa[_0x567dc3(0xeb)](_0x514316=>(0x0,e['shiftInclusiveRangeOnDelete'])(_0x514316,_0x3fc9fe,_0x247018))[_0x567dc3(0x190)](_0x2b1aa1=>_0x2b1aa1!=null);}function F(_0x18797d,_0x412bf4,_0x59de74){const _0x292571=_0x57f943;return _0x18797d==null?void 0x0:_0x18797d[_0x292571(0xeb)](_0x110448=>(0x0,e['shiftExclusiveRangeOnDelete'])(_0x110448,_0x412bf4,_0x59de74))['filter'](_0x4b7fe5=>_0x4b7fe5!=null);}const I={'id':_0x57f943(0xf5),'type':e['CommandType'][_0x57f943(0x19b)],'handler':_0x4e363c=>{const _0xea40c=_0x57f943;var _0x520674;if((0x0,n[_0xea40c(0xd3)])(W(_0x4e363c)))return!0x1;let _0x57507d=(0x0,n[_0xea40c(0x127)])(_0x4e363c);if(_0x57507d)return _0x4e363c[_0xea40c(0x12a)](e['ICommandService'])[_0xea40c(0x175)](R['id'],{'startOffset':_0x57507d[_0xea40c(0x150)],'endOffset':_0x57507d[_0xea40c(0x187)],'insertionMode':_0xea40c(0x11e),'unitId':_0x57507d[_0xea40c(0x125)]});let _0x121a54=je(_0x4e363c);if(!_0x121a54)return!0x1;let _0x152a49=(_0x520674=_0x4e363c['get'](e['IUniverInstanceService'])[_0xea40c(0xe0)](e[_0xea40c(0x158)][_0xea40c(0x189)]))==null?void 0x0:_0x520674[_0xea40c(0xce)](),_0x49a77d=_0x152a49?(0x0,e['getParagraphFollowingBlockOffset'])(_0x152a49,_0x121a54):_0x121a54[_0xea40c(0x121)]+0x1;return _0x4e363c['get'](e[_0xea40c(0x18c)])[_0xea40c(0x175)](R['id'],{'startOffset':_0x49a77d,'endOffset':_0x49a77d});}},L={'id':'docs-code.command.consume-boundary-delete','type':e[_0x57f943(0x18b)][_0x57f943(0x19b)],'handler':()=>!0x0},R={'id':_0x57f943(0x133),'type':e[_0x57f943(0x18b)]['COMMAND'],'handler':(_0x180c84,_0x3a2e9f)=>{const _0x274673=_0x57f943;let _0x155d93=U(_0x180c84,_0x3a2e9f==null?void 0x0:_0x3a2e9f['unitId']);if(!_0x155d93)return!0x1;let _0x32d70a=W(_0x180c84);if((0x0,n[_0x274673(0xd3)])(_0x32d70a))return!0x1;let _0x2e5d70=_0x155d93[_0x274673(0xf6)]['serialize'](_0x155d93[_0x274673(0x125)]),_0x1b4a0b=Oe(_0x3a2e9f,_0x32d70a),_0x550619=ke(_0x155d93[_0x274673(0x123)],_0x1b4a0b);if(_0x550619){if(_0x550619[_0x274673(0x162)]!==e[_0x274673(0x111)][_0x274673(0x154)])return!0x1;let _0x34c27f=v({'blockId':_0x550619[_0x274673(0x143)],'documentData':_0x155d93[_0x274673(0x123)],'metadata':_0x2e5d70});if(!_0x34c27f)return!0x1;let _0x2022f0=J(_0x155d93['commandService'],_0x155d93['selectionManager'],_0x155d93[_0x274673(0x125)],_0x155d93[_0x274673(0x123)],_0x34c27f[_0x274673(0x107)],R['id'],_0x34c27f[_0x274673(0x14e)]);return _0x2022f0&&_0x34c27f[_0x274673(0x122)]&&_0x155d93['model'][_0x274673(0x1a0)](_0x155d93[_0x274673(0x125)],_0x34c27f['nextMetadata']),_0x2022f0;}let _0x57c2fc=(_0x3a2e9f==null?void 0x0:_0x3a2e9f['blockId'])??(0x0,e[_0x274673(0xfd)])(0x6),_0x4a710d;try{_0x4a710d=ee({'blockId':_0x57c2fc,'config':_0x3a2e9f==null?void 0x0:_0x3a2e9f[_0x274673(0x13e)],'documentData':_0x155d93[_0x274673(0x123)],'endOffset':_0x1b4a0b==null?void 0x0:_0x1b4a0b[_0x274673(0x187)],'insertionMode':_0x3a2e9f==null?void 0x0:_0x3a2e9f['insertionMode'],'metadata':_0x2e5d70,'startOffset':_0x1b4a0b==null?void 0x0:_0x1b4a0b[_0x274673(0x150)]});}catch(_0x433241){if(_0x433241 instanceof _)return!0x1;throw _0x433241;}let _0x13321f=J(_0x155d93[_0x274673(0x16b)],_0x155d93[_0x274673(0x17f)],_0x155d93[_0x274673(0x125)],_0x155d93[_0x274673(0x123)],_0x4a710d['nextDocumentData'],R['id'],_0x4a710d[_0x274673(0x14e)]);return _0x13321f&&_0x4a710d[_0x274673(0x122)]&&_0x155d93[_0x274673(0xf6)]['deserialize'](_0x155d93[_0x274673(0x125)],_0x4a710d[_0x274673(0x122)]),_0x13321f;}},z={'id':_0x57f943(0x137),'type':e[_0x57f943(0x18b)]['COMMAND'],'handler':(_0xf4b163,_0x334210)=>{const _0x109783=_0x57f943;if(!_0x334210)return!0x1;let _0xa30f0c=U(_0xf4b163,_0x334210[_0x109783(0x125)]);if(!_0xa30f0c)return!0x1;let _0x5eb04e=ie({'blockId':_0x334210[_0x109783(0x143)],'config':_0x334210[_0x109783(0x13e)],'documentData':_0xa30f0c[_0x109783(0x123)],'metadata':_0xa30f0c[_0x109783(0xf6)][_0x109783(0x193)](_0xa30f0c[_0x109783(0x125)])});return _0x5eb04e[_0x109783(0x122)]&&_0xa30f0c['model'][_0x109783(0x1a0)](_0xa30f0c['unitId'],_0x5eb04e[_0x109783(0x122)]),!0x0;}},De={'id':_0x57f943(0x11f),'type':e[_0x57f943(0x18b)][_0x57f943(0x19b)],'handler':(_0x25e172,_0x39b5ef)=>B[_0x57f943(0x169)](_0x25e172,_0x39b5ef)},B={'id':_0x57f943(0x12e),'type':e[_0x57f943(0x18b)]['COMMAND'],'handler':(_0x29a213,_0x39b7b0)=>{const _0x19bb14=_0x57f943;if(!_0x39b7b0)return!0x1;let _0x5dcaee=U(_0x29a213,_0x39b7b0==null?void 0x0:_0x39b7b0[_0x19bb14(0x125)]);if(!_0x5dcaee)return!0x1;let _0x4dba73=v({'blockId':_0x39b7b0[_0x19bb14(0x143)],'documentData':_0x5dcaee[_0x19bb14(0x123)],'metadata':_0x5dcaee[_0x19bb14(0xf6)][_0x19bb14(0x193)](_0x5dcaee[_0x19bb14(0x125)])});if(!_0x4dba73)return!0x1;let _0x32540f=J(_0x5dcaee['commandService'],_0x5dcaee[_0x19bb14(0x17f)],_0x5dcaee['unitId'],_0x5dcaee['previousDocumentData'],_0x4dba73[_0x19bb14(0x107)],B['id'],_0x4dba73[_0x19bb14(0x14e)]);return _0x32540f&&_0x4dba73['nextMetadata']&&_0x5dcaee[_0x19bb14(0xf6)][_0x19bb14(0x1a0)](_0x5dcaee[_0x19bb14(0x125)],_0x4dba73[_0x19bb14(0x122)]),_0x32540f;}},V={'id':_0x57f943(0x159),'type':e['CommandType'][_0x57f943(0x19b)],'handler':(_0x50c72a,_0xbc17c1)=>{const _0x567ce1=_0x57f943;if(!_0xbc17c1)return!0x1;let _0x554d50=U(_0x50c72a,_0xbc17c1==null?void 0x0:_0xbc17c1[_0x567ce1(0x125)]);if(!_0x554d50)return!0x1;let _0x3286d6=ae({'blockId':_0xbc17c1[_0x567ce1(0x143)],'documentData':_0x554d50[_0x567ce1(0x123)],'metadata':_0x554d50[_0x567ce1(0xf6)]['serialize'](_0x554d50[_0x567ce1(0x125)])});if(!_0x3286d6)return!0x1;let _0x52dafe=J(_0x554d50[_0x567ce1(0x16b)],_0x554d50[_0x567ce1(0x17f)],_0x554d50[_0x567ce1(0x125)],_0x554d50['previousDocumentData'],_0x3286d6['nextDocumentData'],V['id'],_0x3286d6[_0x567ce1(0x14e)]);return _0x52dafe&&_0x3286d6['nextMetadata']&&_0x554d50[_0x567ce1(0xf6)][_0x567ce1(0x1a0)](_0x554d50['unitId'],_0x3286d6[_0x567ce1(0x122)]),_0x52dafe;}},H={'id':_0x57f943(0x196),'type':e[_0x57f943(0x18b)][_0x57f943(0x19b)],'handler':(_0x417553,_0x5e9b82)=>{const _0x16fe2d=_0x57f943;var _0x12f21e;let _0x33c593=U(_0x417553,_0x5e9b82==null?void 0x0:_0x5e9b82[_0x16fe2d(0x125)]);if(!_0x33c593)return!0x1;let _0x369b3b=(_0x5e9b82==null?void 0x0:_0x5e9b82[_0x16fe2d(0x14e)])??((_0x12f21e=W(_0x417553))==null?void 0x0:_0x12f21e[_0x16fe2d(0x150)]);if(_0x369b3b==null)return!0x1;let _0x261ba2=y({'cursorOffset':_0x369b3b,'documentData':_0x33c593[_0x16fe2d(0x123)],'paragraphStartIndex':_0x5e9b82==null?void 0x0:_0x5e9b82[_0x16fe2d(0x124)]});return _0x261ba2?J(_0x33c593[_0x16fe2d(0x16b)],_0x33c593[_0x16fe2d(0x17f)],_0x33c593[_0x16fe2d(0x125)],_0x33c593[_0x16fe2d(0x123)],_0x261ba2[_0x16fe2d(0x107)],H['id'],_0x261ba2[_0x16fe2d(0x14e)]):!0x1;}};function U(_0x2929b0,_0xc6ab1b){const _0x535a8a=_0x57f943;let _0x2d9aee=_0x2929b0['get'](e[_0x535a8a(0x109)]),_0x151a6d=_0xc6ab1b?_0x2d9aee['getUnit'](_0xc6ab1b,e['UniverInstanceType'][_0x535a8a(0x189)]):_0x2d9aee['getCurrentUnitOfType'](e['UniverInstanceType'][_0x535a8a(0x189)]);return _0x151a6d?{'commandService':_0x2929b0[_0x535a8a(0x12a)](e['ICommandService']),'model':_0x2929b0[_0x535a8a(0x12a)](p),'previousDocumentData':_0x151a6d[_0x535a8a(0x135)](),'selectionManager':_0x2929b0[_0x535a8a(0x12a)](n[_0x535a8a(0xf2)]),'unitId':_0x151a6d[_0x535a8a(0x11b)]()}:null;}function W(_0x70bad2){const _0x3c4d45=_0x57f943;var _0x4ebc1b;return(_0x4ebc1b=_0x70bad2[_0x3c4d45(0x12a)](n[_0x3c4d45(0xf2)])[_0x3c4d45(0x105)]())==null?void 0x0:_0x4ebc1b[0x0];}function Oe(_0x1f6d62,_0x5000a8){const _0x884d9e=_0x57f943;let _0x3da81c=(_0x1f6d62==null?void 0x0:_0x1f6d62[_0x884d9e(0x150)])??(_0x5000a8==null?void 0x0:_0x5000a8['startOffset']),_0x2539a7=(_0x1f6d62==null?void 0x0:_0x1f6d62['endOffset'])??(_0x5000a8==null?void 0x0:_0x5000a8['endOffset']);if(_0x3da81c!=null&&_0x2539a7!=null)return{'endOffset':Math[_0x884d9e(0x191)](_0x3da81c,_0x2539a7),'startOffset':Math[_0x884d9e(0x155)](_0x3da81c,_0x2539a7)};}function ke(_0x82755d,_0x34a46){const _0x4f427a=_0x57f943;var _0x1e2466;if(!_0x34a46)return;let _0x5a80a6=Ae(_0x34a46);return(_0x1e2466=_0x82755d[_0x4f427a(0x148)])==null||(_0x1e2466=_0x1e2466[_0x4f427a(0xd0)])==null?void 0x0:_0x1e2466[_0x4f427a(0xda)](_0x18af13=>{const _0x2460d2=_0x4f427a;let _0x3696ef=(0x0,e['getBlockRangeInterval'])(_0x18af13);return _0x34a46[_0x2460d2(0x150)]===_0x34a46[_0x2460d2(0x187)]?(0x0,e['containsInteriorInsertionOffset'])(_0x3696ef,_0x5a80a6):(0x0,e[_0x2460d2(0x10e)])(_0x3696ef,_0x5a80a6);});}function Ae(_0xda7cbb){const _0x36338e=_0x57f943;return _0xda7cbb[_0x36338e(0x150)]===_0xda7cbb['endOffset']?_0xda7cbb[_0x36338e(0x150)]:_0xda7cbb['startOffset']+0x1;}function je(_0x3d5b70){const _0x31f26a=_0x57f943;let _0x4ff77b=W(_0x3d5b70);if(!_0x4ff77b)return null;let _0x588104=_0x3d5b70[_0x31f26a(0x12a)](e[_0x31f26a(0x109)])['getCurrentUnitOfType'](e[_0x31f26a(0x158)][_0x31f26a(0x189)]),_0x2faf0=_0x588104==null?void 0x0:_0x588104[_0x31f26a(0xce)]();return _0x2faf0?e[_0x31f26a(0x182)][_0x31f26a(0x101)][_0x31f26a(0x12f)](_0x4ff77b,_0x2faf0[_0x31f26a(0x157)]??[],_0x2faf0[_0x31f26a(0x126)]??'')[0x0]??null:null;}function Me(_0x1c0870,_0x2bb6ad){const _0x4ed1b5=_0x57f943;let _0x45536c=_0x1c0870[_0x4ed1b5(0x148)],_0x24aa97=_0x2bb6ad[_0x4ed1b5(0x148)],_0x43e48e=(0x0,e[_0x4ed1b5(0x14c)])(_0x45536c,_0x24aa97);return[_0x43e48e&&_0x24aa97?Ne(_0x24aa97,_0x43e48e):null,_0x43e48e?null:Pe(_0x45536c,_0x24aa97)][_0x4ed1b5(0x190)](Boolean)['reduce']((_0x3d830d,_0x29503d)=>e[_0x4ed1b5(0x17a)]['compose'](_0x3d830d,_0x29503d),null);}function Ne(_0x226139,_0x50dfa0){const _0x2eebe2=_0x57f943;let _0x4407a2=new e['TextX']();return _0x4407a2['retain'](_0x50dfa0[_0x2eebe2(0xe2)]),_0x50dfa0[_0x2eebe2(0x118)]>0x0&&_0x4407a2[_0x2eebe2(0x163)](_0x50dfa0['insertLength'],(0x0,e['getBodySliceForTextXAction'])(_0x226139,_0x50dfa0[_0x2eebe2(0xe2)],_0x50dfa0[_0x2eebe2(0xe2)]+_0x50dfa0[_0x2eebe2(0x118)],!0x1)),_0x50dfa0[_0x2eebe2(0xea)]>0x0&&_0x4407a2[_0x2eebe2(0x13d)](_0x50dfa0[_0x2eebe2(0xea)]),e['JSONX'][_0x2eebe2(0x156)]()[_0x2eebe2(0x14b)](_0x4407a2['serialize'](),['body']);}function Pe(_0x49e6b9,_0xff317c){const _0x43fd6a=_0x57f943;let _0x45bd91=[],_0x77e577=_0x49e6b9?G(_0x49e6b9):void 0x0,_0x1b5a9a=_0xff317c?G(_0xff317c):void 0x0;for(let _0x160780 of Fe)K(e[_0x43fd6a(0x17a)][_0x43fd6a(0x156)](),[_0x43fd6a(0x148),_0x160780],_0x77e577==null?void 0x0:_0x77e577[_0x160780],_0x1b5a9a==null?void 0x0:_0x1b5a9a[_0x160780],_0x45bd91);return _0x45bd91[_0x43fd6a(0x17c)]((_0x552843,_0x49df96)=>e[_0x43fd6a(0x17a)][_0x43fd6a(0xdc)](_0x552843,_0x49df96),null);}const Fe=[_0x57f943(0x157),_0x57f943(0x12b),_0x57f943(0x174),_0x57f943(0x19c),_0x57f943(0xd0),_0x57f943(0xfa),_0x57f943(0x106),_0x57f943(0x149),_0x57f943(0x195)];function G(_0x3905ed){return _0x3905ed;}function K(_0xa9467,_0x5de03f,_0x44484c,_0x34fb53,_0xfd8a23){const _0x2676db=_0x57f943;if(!q(_0x44484c,_0x34fb53)){if(_0x44484c==null){_0xfd8a23['push'](_0xa9467[_0x2676db(0xd9)](_0x5de03f,_0x34fb53));return;}if(_0x34fb53==null){_0xfd8a23[_0x2676db(0x164)](_0xa9467[_0x2676db(0x108)](_0x5de03f,_0x44484c));return;}if(Array[_0x2676db(0x183)](_0x44484c)&&Array['isArray'](_0x34fb53)){Ie(_0xa9467,_0x5de03f,_0x44484c,_0x34fb53,_0xfd8a23);return;}if(Le(_0x44484c)&&Le(_0x34fb53)){new Set([...Object[_0x2676db(0x116)](_0x44484c),...Object['keys'](_0x34fb53)])['forEach'](_0x18b7fb=>{K(_0xa9467,[..._0x5de03f,_0x18b7fb],_0x44484c[_0x18b7fb],_0x34fb53[_0x18b7fb],_0xfd8a23);});return;}_0xfd8a23[_0x2676db(0x164)](_0xa9467[_0x2676db(0x1a1)](_0x5de03f,_0x44484c,_0x34fb53));}}function Ie(_0x19ba78,_0x3c8e90,_0xe2a86,_0xeb4624,_0x2ba318){const _0x4840c1=_0x57f943;if(_0xe2a86['length']===_0xeb4624[_0x4840c1(0x14a)]){_0xe2a86[_0x4840c1(0x19d)]((_0x16fd16,_0x4260b7)=>K(_0x19ba78,[..._0x3c8e90,_0x4260b7],_0x16fd16,_0xeb4624[_0x4260b7],_0x2ba318));return;}let _0x56729b=0x0;for(;_0x56729b<_0xe2a86['length']&&_0x56729b<_0xeb4624[_0x4840c1(0x14a)]&&q(_0xe2a86[_0x56729b],_0xeb4624[_0x56729b]);)_0x56729b++;let _0x4f0382=_0xe2a86['length']-0x1,_0x53ac05=_0xeb4624[_0x4840c1(0x14a)]-0x1;for(;_0x4f0382>=_0x56729b&&_0x53ac05>=_0x56729b&&q(_0xe2a86[_0x4f0382],_0xeb4624[_0x53ac05]);)_0x4f0382--,_0x53ac05--;for(let _0x6f7192=_0x4f0382;_0x6f7192>=_0x56729b;_0x6f7192--)_0x2ba318[_0x4840c1(0x164)](_0x19ba78['removeOp']([..._0x3c8e90,_0x6f7192],_0xe2a86[_0x6f7192]));for(let _0x550f50=_0x56729b;_0x550f50<=_0x53ac05;_0x550f50++)_0x2ba318[_0x4840c1(0x164)](_0x19ba78[_0x4840c1(0xd9)]([..._0x3c8e90,_0x550f50],_0xeb4624[_0x550f50]));}function Le(_0x21bd77){return typeof _0x21bd77=='object'&&!!_0x21bd77&&!Array['isArray'](_0x21bd77);}function q(_0x31aaa0,_0x3fd0c8){const _0x16dc59=_0x57f943;return JSON[_0x16dc59(0x15a)](_0x31aaa0)===JSON[_0x16dc59(0x15a)](_0x3fd0c8);}function J(_0x70349b,_0x27c2c7,_0x2c2ca4,_0x4ceb1b,_0x453d5c,_0x1b9374,_0x4ef08a){const _0x416529=_0x57f943;let _0x549e98=Me(_0x4ceb1b,_0x453d5c);return _0x549e98?!!_0x70349b[_0x416529(0x175)](n[_0x416529(0xdf)]['id'],{'unitId':_0x2c2ca4,'actions':_0x549e98,'textRanges':[{'startOffset':_0x4ef08a,'endOffset':_0x4ef08a,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x1b9374}):(_0x27c2c7[_0x416529(0x134)]([{'startOffset':_0x4ef08a,'endOffset':_0x4ef08a}],{'unitId':_0x2c2ca4,'subUnitId':_0x2c2ca4},!0x1),!0x0);}const Y='DOC_CODE_PLUGIN';var Re=_0x57f943(0xd8),ze=_0x57f943(0x192);function _0x323a(){const _0xeef336=['merge','call','containsStreamIndex','TRUE','columns','DocumentBlockRangeType','direction','endTokenOffset','normalizeDocsCodeMetadataResource','intersectsOperationalIntervals','keys','createParagraphId','insertLength','docs-code.config','isCodeBoundaryDelete','getUnitId','paragraph','keepNext','insert-new','docs-code.command.exit','next','startIndex','nextMetadata','previousDocumentData','paragraphStartIndex','unitId','dataStream','getContentInsertRange','UniverDocsPlugin','function','get','sectionBreaks','TABLE_CELL_END','UniverDocsCodePlugin','docs-code.command.unwrap','getParagraphsInRange','DocsCodeInsertBelowCommand','_config','SetDocsCodeConfigMutation','docs-code.command.insert','replaceDocRanges','getSnapshot','BLOCK_END','docs-code.command.update','3083792KFnUqj','slice','iterator','DocsCodeInsertCommand','RemoveDocsCodeConfigMutation','delete','config','from','DocsCodeCancelEmptyParagraphCommand','3363438qONloV','right','blockId','fromEntries','_resourceManagerService','DataStreamTreeTokenType','asObservable','body','customDecorations','length','editOp','getSingleDataStreamChange','992keyFef','cursorOffset','registerCommand','startOffset','default','Injector','docs-code.mutation.set-config','CODE','min','getInstance','paragraphs','UniverInstanceType','docs-code.command.remove','stringify','_resources','indexOf','1600574JSbVXh','codes','bullet','monospace','getBlockRangeInterval','blockType','insert','push','removeCode','6572412scfeRq','_configService','registerPluginResource','handler','DocsCodeModel','commandService','3468HbVFBs','paragraphId','BooleanNumber','indentEnd','toPrimitive','version','_injector','convert-paragraph','tables','syncExecuteCommand','9825907qhQjAz','FALSE','DocsCodeConsumeBoundaryDeleteCommand','containsInteriorInsertionOffset','JSONX','setCodeConfig','reduce','DocsCodeUpdateCommand','constructor','selectionManager','_docsCodeModel','defineProperty','BuildTextUtils','isArray','shiftExclusiveRangeOnInsert','UniverLicensePlugin','object','endOffset','DocsCodeRemoveCommand','UNIVER_DOC','Inject','CommandType','ICommandService','spaceAbove','1kRpXIC','Subject','filter','max','1.0.0-insiders.20260808-70eefdd','serialize','keepLines','textRuns','docs-code.command.cancel-empty-paragraph','endsWith','IResourceManagerService','TABLE_CELL_START','Document\x20body\x20is\x20required','COMMAND','columnGroups','forEach','_setResource','dispose','deserialize','replaceOp','DOCS_CODE_PLUGIN','getBody','insertionMode','blockRanges','IConfigService','getOwnPropertyDescriptor','isHeaderFooterSelection','getParagraphContentStartOffsets','left','set','paragraphStyle','@univerjs-pro/docs-code','insertOp','find','decorate','compose','Module','symbol','RichTextEditingMutation','getCurrentUnitOfType','removeUnit','start','_commandService','SECTION_BREAK','entries','widowControl','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','getParagraphContentStartOffset','sort','deleteLength','map','change$','documentData','Plugin','javascript','startTokenOffset','metadata','DocSelectionManagerService','PARAGRAPH','endIndex','docs-code.command.insert-below','model','packageName','textStyle','some','customBlocks','DependentOn','prototype','generateRandomId','MUTATION','_initResource','1449840qUqHsp','range','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','Disposable','setConfig','getTextRanges','customRanges','nextDocumentData','removeOp','IUniverInstanceService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_change$'];_0x323a=function(){return _0xeef336;};return _0x323a();}const Be={};function X(_0x1c303c,_0xebb197){return function(_0x2ef562,_0x3889b2){_0xebb197(_0x2ef562,_0x3889b2,_0x1c303c);};}function Z(_0x426378,_0x5240cb,_0x53ada7,_0x2a836a){const _0x275dc3=_0x57f943;var _0x3f5d09=arguments[_0x275dc3(0x14a)],_0xd79127=_0x3f5d09<0x3?_0x5240cb:_0x2a836a===null?_0x2a836a=Object[_0x275dc3(0xd2)](_0x5240cb,_0x53ada7):_0x2a836a,_0xa15df2;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x275dc3(0x129))_0xd79127=Reflect[_0x275dc3(0xdb)](_0x426378,_0x5240cb,_0x53ada7,_0x2a836a);else{for(var _0x2756f2=_0x426378[_0x275dc3(0x14a)]-0x1;_0x2756f2>=0x0;_0x2756f2--)(_0xa15df2=_0x426378[_0x2756f2])&&(_0xd79127=(_0x3f5d09<0x3?_0xa15df2(_0xd79127):_0x3f5d09>0x3?_0xa15df2(_0x5240cb,_0x53ada7,_0xd79127):_0xa15df2(_0x5240cb,_0x53ada7))||_0xd79127);}return _0x3f5d09>0x3&&_0xd79127&&Object[_0x275dc3(0x181)](_0x5240cb,_0x53ada7,_0xd79127),_0xd79127;}let Q=class extends e['Disposable']{constructor(_0x225a8a,_0x341b5c){const _0xd6f87=_0x57f943;super(),this[_0xd6f87(0x145)]=_0x225a8a,this['_docsCodeModel']=_0x341b5c,this[_0xd6f87(0xff)]();}[_0x57f943(0xff)](){const _0x57c62d=_0x57f943;this['disposeWithMe'](this['_resourceManagerService'][_0x57c62d(0x168)]({'pluginName':Y,'businesses':[e[_0x57c62d(0x158)][_0x57c62d(0x189)]],'toJson':_0x42914d=>JSON[_0x57c62d(0x15a)](this['_docsCodeModel'][_0x57c62d(0x193)](_0x42914d)),'parseJson':_0x33fa8b=>o(JSON['parse'](_0x33fa8b)),'onLoad':(_0x92181f,_0x276cc7)=>this[_0x57c62d(0x180)]['deserialize'](_0x92181f,_0x276cc7),'onUnLoad':_0x47562f=>this[_0x57c62d(0x180)][_0x57c62d(0xe1)](_0x47562f)}));}};Q=Z([X(0x0,e[_0x57f943(0x198)]),X(0x1,(0x0,e[_0x57f943(0x18a)])(p))],Q);let $=class extends e[_0x57f943(0xee)]{constructor(_0x21e475=Be,_0x4c461e,_0x12dfc8,_0x5ba3da){const _0x88a670=_0x57f943;super(),this[_0x88a670(0x131)]=_0x21e475,this[_0x88a670(0x172)]=_0x4c461e,this[_0x88a670(0xe3)]=_0x12dfc8,this[_0x88a670(0x167)]=_0x5ba3da;let {..._0xbe4825}=(0x0,e[_0x88a670(0x10c)])({},Be,this[_0x88a670(0x131)]);this[_0x88a670(0x167)][_0x88a670(0x104)](_0x88a670(0x119),_0xbe4825);}['onStarting'](){const _0x50c5cc=_0x57f943;this[_0x50c5cc(0x172)]['add']([p]),this[_0x50c5cc(0x172)]['add']([Q]),this[_0x50c5cc(0x172)]['get'](p),this['_injector'][_0x50c5cc(0x12a)](Q),[R,I,z,B,V,De,H,L,m,h][_0x50c5cc(0x19d)](_0x4636be=>this['disposeWithMe'](this[_0x50c5cc(0xe3)][_0x50c5cc(0x14f)](_0x4636be)));}};f($,'pluginName',Y),f($,_0x57f943(0xf7),Re),f($,_0x57f943(0x171),ze),f($,'type',e[_0x57f943(0x158)][_0x57f943(0x189)]),$=Z([(0x0,e[_0x57f943(0xfb)])(r[_0x57f943(0x185)],n[_0x57f943(0x128)]),X(0x1,(0x0,e[_0x57f943(0x18a)])(e[_0x57f943(0x152)])),X(0x2,e['ICommandService']),X(0x3,e[_0x57f943(0xd1)])],$),exports[_0x57f943(0xcd)]=Y,exports[_0x57f943(0x140)]=H,exports[_0x57f943(0x178)]=L,exports[_0x57f943(0x130)]=I,exports[_0x57f943(0x13b)]=R,exports[_0x57f943(0x16a)]=p,exports[_0x57f943(0x188)]=V,exports['DocsCodeUnwrapCommand']=B,exports[_0x57f943(0x17d)]=z,exports[_0x57f943(0x13c)]=h,exports[_0x57f943(0x132)]=m,Object[_0x57f943(0x181)](exports,_0x57f943(0x12d),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=y,exports[_0x57f943(0x11a)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x57f943(0x114)]=o;
1
+ const _0x5e231f=_0x2120;(function(_0x3ad6a6,_0x310340){const _0x506ad9=_0x2120,_0x35de90=_0x3ad6a6();while(!![]){try{const _0x44d846=parseInt(_0x506ad9(0x1ab))/0x1*(-parseInt(_0x506ad9(0x189))/0x2)+parseInt(_0x506ad9(0x1fd))/0x3+parseInt(_0x506ad9(0x21f))/0x4+-parseInt(_0x506ad9(0x176))/0x5+-parseInt(_0x506ad9(0x20a))/0x6*(parseInt(_0x506ad9(0x1d8))/0x7)+parseInt(_0x506ad9(0x1bf))/0x8+parseInt(_0x506ad9(0x17b))/0x9*(-parseInt(_0x506ad9(0x1a6))/0xa);if(_0x44d846===_0x310340)break;else _0x35de90['push'](_0x35de90['shift']());}catch(_0x2949ae){_0x35de90['push'](_0x35de90['shift']());}}}(_0x5b91,0x90fd6),Object[_0x5e231f(0x20d)](exports,Symbol[_0x5e231f(0x1db)],{'value':_0x5e231f(0x182)}));let e=require('@univerjs/core'),t=require('rxjs'),n=require('@univerjs/docs'),r=require('@univerjs-pro/license');const i={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x5b91(){const _0x219f05=['_setResource','indentStart','getParagraphContentStartOffsets','6uixWqp','_config','getContentInsertRange','defineProperty','push','JSONX','customBlocks','DOC_CODE_PLUGIN','blockId','PARAGRAPH','_resources','keepLines','isArray','SetDocsCodeConfigMutation','DataStreamTreeTokenType','object','tables','left','deleteLength','type','SECTION_BREAK','2341484RlRekJ','call','function','DocsCodeModel','FALSE','DocsCodeInsertBelowCommand','sectionBreaks','nextDocumentData','entries','paragraphs','paragraphStyle','getInstance','fromEntries','Injector','docs-code.command.exit','paragraph','metadata','getBody','endTokenOffset','selectionManager','startOffset','docs-code.config','_commandService','DocsCodeRemoveCommand','set','syncExecuteCommand','keepNext','registerCommand','spaceBelow','monospace','textStyle','onStarting','constructor','getOwnPropertyDescriptor','config','ICommandService','intersectsOperationalIntervals','@univerjs-pro/docs-code','blockType','endOffset','min','_injector','disposeWithMe','TextX','2374265DzEfPo','DocsCodeUnwrapCommand','getParagraphFollowingBlockOffset','asObservable','shiftExclusiveRangeOnDelete','1663983QRlmbo','columns','getUnit','insertLength','generateRandomId','_change$','model','Module','insert','decorate','removeUnit','CommandType','docs-code.command.consume-boundary-delete','UniverInstanceType','2taZqCm','docs-code.command.insert','commandService','Inject','UNIVER_DOC','docs-code.command.update','sort','DocsCodeInsertCommand','DocsCodeCancelEmptyParagraphCommand','convert-paragraph','getBlockRangeInterval','find','indexOf','editOp','_initResource','TRUE','columnGroups','max','isCodeBoundaryDelete','slice','normalizeDocsCodeMetadataResource','registerPluginResource','setCodeConfig','compose','change$','DocsCodeUpdateCommand','shiftInclusiveRangeOnInsert','endsWith','delete','10XFkjNs','textRuns','string','paragraphStartIndex','DocumentBlockRangeType','352211fGHUXx','getParagraphsInRange','clear','unitId','DocsCodeConsumeBoundaryDeleteCommand','startTokenOffset','add','_resourceManagerService','getCurrentUnitOfType','get','version','endIndex','blockRanges','COMMAND','getCodeConfig','setConfig','documentData','BuildTextUtils','docs-code.command.insert-below','IResourceManagerService','5542736UUMefP','packageName','toPrimitive','BooleanNumber','symbol','UniverDocsCodePlugin','IUniverInstanceService','shiftInclusiveRangeOnDelete','getParagraphContentStartOffset','customRanges','UniverLicensePlugin','Document\x20body\x20is\x20required','nextMetadata','parse','insertOp','removeCode','TABLE_CELL_END','filter','length','1.0.0-insiders.20260809-70eefdd','removeOp','forEach','complete','shiftExclusiveRangeOnInsert','DocSelectionManagerService','5447729Cvrvds','RichTextEditingMutation','replaceDocRanges','toStringTag','replaceOp','start','getSnapshot','cursorOffset','MUTATION','_docsCodeModel','handler','next','containsInteriorInsertionOffset','direction','dataStream','isHeaderFooterSelection','codes','DOCS_CODE_PLUGIN','body','map','customDecorations','paragraphId','docs-code.mutation.remove-config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','range','getTextRanges','insertionMode','startIndex','default','stringify','serialize','previousDocumentData','BLOCK_END','CODE','getSingleDataStreamChange','insert-new','spaceAbove','3317589AfVkXP','BLOCK_START','merge','dispose','RemoveDocsCodeConfigMutation','docs-code.command.remove','createParagraphId','some','bullet','deserialize'];_0x5b91=function(){return _0x219f05;};return _0x5b91();}function a(_0x44d8a0){return{...i,..._0x44d8a0};}function o(_0x3a1daa){const _0x1af20d=_0x5e231f;let _0x59e3e5=(_0x3a1daa==null?void 0x0:_0x3a1daa['codes'])??{};return{'codes':Object[_0x1af20d(0x22b)](Object[_0x1af20d(0x227)](_0x59e3e5)[_0x1af20d(0x1eb)](([_0x238988,_0x26250e])=>[_0x238988,a(_0x26250e)]))};}function s(_0x59c339,_0x451aa4,_0xb76a9f){let _0x257970=o(_0x59c339);return _0x257970['codes'][_0x451aa4]=a({..._0x257970['codes'][_0x451aa4],..._0xb76a9f}),_0x257970;}function c(_0x267a96,_0x21c5b2){let _0x173aaa=o(_0x267a96);return delete _0x173aaa['codes'][_0x21c5b2],_0x173aaa;}function l(_0x312c6d){'@babel/helpers - typeof';const _0x440557=_0x5e231f;return l=typeof Symbol==_0x440557(0x221)&&typeof Symbol['iterator']==_0x440557(0x1c3)?function(_0x4d65ed){return typeof _0x4d65ed;}:function(_0x3a2d35){const _0x28ca9c=_0x440557;return _0x3a2d35&&typeof Symbol==_0x28ca9c(0x221)&&_0x3a2d35[_0x28ca9c(0x16a)]===Symbol&&_0x3a2d35!==Symbol['prototype']?'symbol':typeof _0x3a2d35;},l(_0x312c6d);}function u(_0x3bac88,_0x4fa7c6){const _0x148c33=_0x5e231f;if(l(_0x3bac88)!=_0x148c33(0x219)||!_0x3bac88)return _0x3bac88;var _0xa164d8=_0x3bac88[Symbol[_0x148c33(0x1c1)]];if(_0xa164d8!==void 0x0){var _0x1801f9=_0xa164d8[_0x148c33(0x220)](_0x3bac88,_0x4fa7c6||_0x148c33(0x1f4));if(l(_0x1801f9)!=_0x148c33(0x219))return _0x1801f9;throw TypeError(_0x148c33(0x1ef));}return(_0x4fa7c6===_0x148c33(0x1a8)?String:Number)(_0x3bac88);}function d(_0x70b0e6){const _0x2f72ed=_0x5e231f;var _0x4072b3=u(_0x70b0e6,_0x2f72ed(0x1a8));return l(_0x4072b3)==_0x2f72ed(0x1c3)?_0x4072b3:_0x4072b3+'';}function f(_0x16b072,_0x57a40d,_0x39a91d){const _0x3c6eb0=_0x5e231f;return(_0x57a40d=d(_0x57a40d))in _0x16b072?Object[_0x3c6eb0(0x20d)](_0x16b072,_0x57a40d,{'value':_0x39a91d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16b072[_0x57a40d]=_0x39a91d,_0x16b072;}var p=class extends e['Disposable']{constructor(..._0x2a40d9){const _0x23ac39=_0x5e231f;super(..._0x2a40d9),f(this,_0x23ac39(0x214),new Map()),f(this,_0x23ac39(0x180),new t['Subject']()),f(this,_0x23ac39(0x1a1),this['_change$'][_0x23ac39(0x179)]());}[_0x5e231f(0x1b9)](_0x156b53,_0x3a35b8){const _0x3dcf1e=_0x5e231f;return o(this['_resources'][_0x3dcf1e(0x1b4)](_0x156b53))[_0x3dcf1e(0x1e8)][_0x3a35b8];}[_0x5e231f(0x19f)](_0x109cc0,_0x12f746,_0x253c6e){const _0x662e92=_0x5e231f;this[_0x662e92(0x207)](_0x109cc0,_0x12f746,s(this['_resources'][_0x662e92(0x1b4)](_0x109cc0),_0x12f746,_0x253c6e));}[_0x5e231f(0x1ce)](_0x2ec0fd,_0x3aa478){const _0x535906=_0x5e231f;this['_setResource'](_0x2ec0fd,_0x3aa478,c(this[_0x535906(0x214)][_0x535906(0x1b4)](_0x2ec0fd),_0x3aa478));}[_0x5e231f(0x1f6)](_0x162ef4){const _0x32a87d=_0x5e231f;return o(this[_0x32a87d(0x214)][_0x32a87d(0x1b4)](_0x162ef4));}[_0x5e231f(0x206)](_0x3ab383,_0x55da98){const _0x447fb9=_0x5e231f;this[_0x447fb9(0x214)][_0x447fb9(0x237)](_0x3ab383,o(_0x55da98)),this[_0x447fb9(0x180)][_0x447fb9(0x1e3)]({'unitId':_0x3ab383});}[_0x5e231f(0x185)](_0x3e5649){const _0x9383aa=_0x5e231f;this[_0x9383aa(0x214)][_0x9383aa(0x1a5)](_0x3e5649),this[_0x9383aa(0x180)]['next']({'unitId':_0x3e5649});}[_0x5e231f(0x200)](){const _0x475ce3=_0x5e231f;super[_0x475ce3(0x200)](),this[_0x475ce3(0x214)][_0x475ce3(0x1ad)](),this[_0x475ce3(0x180)][_0x475ce3(0x1d5)]();}[_0x5e231f(0x207)](_0x50eabd,_0x5e73a9,_0x258669){const _0x48f232=_0x5e231f;this[_0x48f232(0x214)][_0x48f232(0x237)](_0x50eabd,_0x258669),this[_0x48f232(0x180)][_0x48f232(0x1e3)]({'unitId':_0x50eabd,'blockId':_0x5e73a9});}};const m={'id':'docs-code.mutation.set-config','type':e[_0x5e231f(0x186)][_0x5e231f(0x1e0)],'handler':(_0x3f23d3,_0x36dde1)=>!(_0x36dde1!=null&&_0x36dde1['unitId'])||!_0x36dde1['blockId']?!0x1:(_0x3f23d3[_0x5e231f(0x1b4)](p)[_0x5e231f(0x19f)](_0x36dde1[_0x5e231f(0x1ae)],_0x36dde1[_0x5e231f(0x212)],_0x36dde1[_0x5e231f(0x16c)]),!0x0)},h={'id':_0x5e231f(0x1ee),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1e0)],'handler':(_0x1bb685,_0x3e03d0)=>!(_0x3e03d0!=null&&_0x3e03d0[_0x5e231f(0x1ae)])||!_0x3e03d0[_0x5e231f(0x212)]?!0x1:(_0x1bb685[_0x5e231f(0x1b4)](p)[_0x5e231f(0x1ce)](_0x3e03d0['unitId'],_0x3e03d0['blockId']),!0x0)},g=_0x5e231f(0x167);var _=class extends Error{constructor(_0x4f99b3='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x4f99b3);}};function ee(_0x29af10){const _0x2f7fa7=_0x5e231f;var _0x4047fd;let _0x39323c=S(_0x29af10[_0x2f7fa7(0x1bb)]),_0x721bdd=w(_0x39323c),_0x53f645=ne(_0x29af10[_0x2f7fa7(0x233)],_0x29af10[_0x2f7fa7(0x171)]),_0x5a8f02=_0x53f645?(_0x4047fd=_0x721bdd[_0x2f7fa7(0x1b7)])==null?void 0x0:_0x4047fd[_0x2f7fa7(0x194)](_0xa427b7=>{const _0x15c99a=_0x2f7fa7;let _0x13940d=(0x0,e['getBlockRangeInterval'])(_0xa427b7);return _0x13940d['startOffset']===_0x53f645[_0x15c99a(0x233)]&&_0x13940d[_0x15c99a(0x171)]===_0x53f645[_0x15c99a(0x171)];}):void 0x0,{startOffset:_0x516454,endOffset:_0xd016ee}=_0x5a8f02?_0x53f645:me(_0x721bdd,_0x29af10[_0x2f7fa7(0x233)],_0x29af10[_0x2f7fa7(0x171)],_0x29af10[_0x2f7fa7(0x1f2)]);if(!_0x5a8f02&&re(_0x721bdd,_0x516454,_0xd016ee))throw new _('Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block');let _0x388f47=_e(_0x721bdd,_0x516454,_0xd016ee),_0x155256=(_0x5a8f02==null?void 0x0:_0x5a8f02[_0x2f7fa7(0x212)])??_0x29af10[_0x2f7fa7(0x212)],_0x2d8f22=s(_0x29af10[_0x2f7fa7(0x22f)],_0x155256,{...i,..._0x29af10[_0x2f7fa7(0x16c)]});if(_0x5a8f02)return _0x5a8f02[_0x2f7fa7(0x170)]=e['DocumentBlockRangeType']['CODE'],te(_0x721bdd,_0x516454,_0xd016ee),le(_0x721bdd,_0x516454,_0xd016ee,_0x388f47),O(_0x721bdd,_0x5a8f02),{'nextDocumentData':_0x39323c,'nextMetadata':_0x2d8f22,'cursorOffset':_0x516454+0x1};if(_0x516454===_0xd016ee){var _0x1b6cdb,_0xc81042;let _0xc42025=''+e['DataStreamTreeTokenType'][_0x2f7fa7(0x1fe)]+e[_0x2f7fa7(0x218)]['PARAGRAPH']+e[_0x2f7fa7(0x218)][_0x2f7fa7(0x1f8)];k(_0x721bdd,_0x516454,_0xc42025,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e['createParagraphId'])(new Set((_0x1b6cdb=_0x721bdd[_0x2f7fa7(0x228)])==null?void 0x0:_0x1b6cdb[_0x2f7fa7(0x1eb)](_0x5f5c29=>_0x5f5c29[_0x2f7fa7(0x1ed)]))),'paragraphStyle':x(!0x0,!0x0,_0x388f47)}],'blockRanges':[{'blockId':_0x155256,'blockType':e['DocumentBlockRangeType'][_0x2f7fa7(0x1f9)],'startIndex':0x0,'endIndex':_0xc42025['length']-0x1}]});let _0x30f926=(_0xc81042=_0x721bdd[_0x2f7fa7(0x1b7)])==null?void 0x0:_0xc81042[_0x2f7fa7(0x194)](_0xe0840e=>_0xe0840e[_0x2f7fa7(0x212)]===_0x155256);return _0x30f926&&O(_0x721bdd,_0x30f926),{'nextDocumentData':_0x39323c,'nextMetadata':_0x2d8f22,'cursorOffset':_0x516454+0x1};}k(_0x721bdd,_0xd016ee,e[_0x2f7fa7(0x218)]['BLOCK_END']),k(_0x721bdd,_0x516454,e[_0x2f7fa7(0x218)]['BLOCK_START']),le(_0x721bdd,_0x516454,_0xd016ee+0x1,_0x388f47);let _0xbe694e={'blockId':_0x155256,'blockType':e[_0x2f7fa7(0x1aa)][_0x2f7fa7(0x1f9)],'startIndex':_0x516454,'endIndex':_0xd016ee+0x1};return _0x721bdd['blockRanges']=[..._0x721bdd[_0x2f7fa7(0x1b7)]??[],_0xbe694e][_0x2f7fa7(0x18f)]((_0xf796fb,_0xb87034)=>_0xf796fb[_0x2f7fa7(0x1f3)]-_0xb87034[_0x2f7fa7(0x1f3)]),O(_0x721bdd,_0xbe694e),{'nextDocumentData':_0x39323c,'nextMetadata':_0x2d8f22,'cursorOffset':_0x516454+0x1};}function te(_0x1af965,_0x5e7bb8,_0x193be7){const _0x217d40=_0x5e231f;(_0x1af965['paragraphs']??[])[_0x217d40(0x1d0)](_0x545c2a=>_0x545c2a[_0x217d40(0x1f3)]>_0x5e7bb8&&_0x545c2a[_0x217d40(0x1f3)]<_0x193be7)[_0x217d40(0x1d4)](_0x3eb2bf=>{const _0x3481f1=_0x217d40;let _0x4b8eef={..._0x3eb2bf['paragraphStyle']??{}};delete _0x4b8eef[_0x3481f1(0x1fc)],delete _0x4b8eef['spaceBelow'],_0x3eb2bf[_0x3481f1(0x229)]=_0x4b8eef;});}function ne(_0x18d744,_0x2a1c2f){const _0x12e936=_0x5e231f;return _0x18d744==null||_0x2a1c2f==null||_0x18d744===_0x2a1c2f?null:{'startOffset':Math[_0x12e936(0x172)](_0x18d744,_0x2a1c2f),'endOffset':Math[_0x12e936(0x19a)](_0x18d744,_0x2a1c2f)};}function re(_0x35062e,_0x538e0f,_0x13c19e){return(_0x35062e['blockRanges']??[])['some'](_0x385a1e=>{const _0x5c6cf1=_0x2120;let _0x40d81a=(0x0,e[_0x5c6cf1(0x193)])(_0x385a1e);return _0x538e0f===_0x13c19e?(0x0,e[_0x5c6cf1(0x1e4)])(_0x40d81a,_0x538e0f):(0x0,e[_0x5c6cf1(0x16e)])(_0x40d81a,{'startOffset':_0x538e0f,'endOffset':_0x13c19e});});}function ie(_0x29b290){const _0x35889a=_0x5e231f;return{'nextDocumentData':S(_0x29b290[_0x35889a(0x1bb)]),'nextMetadata':s(_0x29b290[_0x35889a(0x22f)],_0x29b290[_0x35889a(0x212)],_0x29b290['config']),'cursorOffset':0x0};}function v(_0x12d7f0){const _0x1a7c45=_0x5e231f;let _0xd00af3=S(_0x12d7f0[_0x1a7c45(0x1bb)]),_0x58e2b2=w(_0xd00af3),_0x3d07c3=b(_0x58e2b2,_0x12d7f0[_0x1a7c45(0x212)]);if(!_0x3d07c3)return null;let _0x356575=fe(_0x58e2b2,_0x3d07c3);return{'nextDocumentData':_0xd00af3,'nextMetadata':c(_0x12d7f0['metadata'],_0x12d7f0[_0x1a7c45(0x212)]),'cursorOffset':_0x356575};}function ae(_0x23d8ba){const _0x262f24=_0x5e231f;var _0x2f0ee0;let _0x36c2ad=S(_0x23d8ba[_0x262f24(0x1bb)]),_0x4a81d7=w(_0x36c2ad),_0x189dc0=b(_0x4a81d7,_0x23d8ba[_0x262f24(0x212)]);if(!_0x189dc0)return null;let _0x42df95=(0x0,e[_0x262f24(0x193)])(_0x189dc0);return A(_0x4a81d7,_0x42df95[_0x262f24(0x233)],_0x42df95[_0x262f24(0x171)]),_0x4a81d7[_0x262f24(0x1b7)]=(_0x2f0ee0=_0x4a81d7['blockRanges'])==null?void 0x0:_0x2f0ee0['filter'](_0x2598d0=>_0x2598d0[_0x262f24(0x212)]!==_0x23d8ba['blockId']),{'nextDocumentData':_0x36c2ad,'nextMetadata':c(_0x23d8ba['metadata'],_0x23d8ba[_0x262f24(0x212)]),'cursorOffset':_0x189dc0[_0x262f24(0x1f3)]};}function y(_0x1e8a95){const _0x46baea=_0x5e231f;let _0x1d032c=S(_0x1e8a95[_0x46baea(0x1bb)]),_0x10bfc1=w(_0x1d032c),_0x4ea0e1=ce(_0x10bfc1,_0x1e8a95[_0x46baea(0x1df)]);return _0x4ea0e1&&oe(_0x1d032c,_0x10bfc1,_0x4ea0e1,_0x1e8a95['cursorOffset'],_0x1e8a95[_0x46baea(0x1a9)])||null;}function oe(_0x46db85,_0x3bc2df,_0x2ff950,_0x341da3,_0x299d95){const _0x2f8176=_0x5e231f;let _0x5ee893=Se(_0x3bc2df,_0x2ff950,_0x341da3,_0x299d95);if(!_0x5ee893)return null;let _0x5c22c7=_0x5ee893['endTokenOffset']-0x1;return A(_0x3bc2df,_0x5ee893[_0x2f8176(0x22e)][_0x2f8176(0x1f3)],_0x5ee893[_0x2f8176(0x22e)][_0x2f8176(0x1f3)]+0x1),{'nextDocumentData':_0x46db85,'cursorOffset':_0x5c22c7};}function b(_0xc65dc5,_0x84af16){const _0x1750ec=_0x5e231f;var _0x31187;return _0xc65dc5==null||(_0x31187=_0xc65dc5['blockRanges'])==null?void 0x0:_0x31187['find'](_0x3bb9e5=>_0x3bb9e5[_0x1750ec(0x170)]===e[_0x1750ec(0x1aa)][_0x1750ec(0x1f9)]&&_0x3bb9e5[_0x1750ec(0x212)]===_0x84af16);}function se(_0xf818fb){const _0x2445d0=_0x5e231f;let _0x1b09a8=_0xf818fb[_0x2445d0(0x1bb)][_0x2445d0(0x1ea)];if(!_0x1b09a8)return!0x1;let _0x1aa51f=_0xf818fb[_0x2445d0(0x1e5)]===_0x2445d0(0x21b)?_0xf818fb[_0x2445d0(0x1df)]-0x1:_0xf818fb[_0x2445d0(0x1df)],_0x5f2edf=_0xf818fb['direction']==='right'?_0xf818fb['cursorOffset']+0x1:_0x1aa51f;return(_0x1b09a8[_0x2445d0(0x1b7)]??[])[_0x2445d0(0x204)](_0x1b34ce=>_0x1b34ce['blockType']===e[_0x2445d0(0x1aa)][_0x2445d0(0x1f9)]?_0x1aa51f===_0x1b34ce[_0x2445d0(0x1f3)]||_0x1aa51f===_0x1b34ce[_0x2445d0(0x1b6)]||_0x5f2edf===_0x1b34ce[_0x2445d0(0x1f3)]||_0x5f2edf===_0x1b34ce[_0x2445d0(0x1b6)]:!0x1);}function ce(_0x1e001d,_0x4ed0b9){const _0x2cc317=_0x5e231f;var _0x23a94d;return(_0x23a94d=_0x1e001d[_0x2cc317(0x1b7)])==null?void 0x0:_0x23a94d[_0x2cc317(0x194)](_0x2be0b9=>{const _0x102798=_0x2cc317;let _0x38d818=D(_0x2be0b9);return _0x2be0b9[_0x102798(0x170)]===e[_0x102798(0x1aa)][_0x102798(0x1f9)]&&_0x2be0b9['startIndex']<=_0x4ed0b9&&_0x4ed0b9<=_0x38d818+0x2;});}function x(_0xe9eeb3,_0x1fb44d,_0x4f6c76=!0x1){const _0x44d5f2=_0x5e231f;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':e['BooleanNumber']['TRUE'],'keepNext':_0x1fb44d?e[_0x44d5f2(0x1c2)][_0x44d5f2(0x223)]:e[_0x44d5f2(0x1c2)]['TRUE'],'widowControl':e[_0x44d5f2(0x1c2)][_0x44d5f2(0x198)],..._0xe9eeb3&&_0x4f6c76?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':g,'fs':0xc}};}function le(_0x1b33f7,_0x340c9f,_0x276a52,_0x39cdb8=!0x1){const _0x244aa5=_0x5e231f;let _0x393b9a=(_0x1b33f7[_0x244aa5(0x228)]??[])[_0x244aa5(0x1d0)](_0xed2e2d=>_0xed2e2d['startIndex']>_0x340c9f&&_0xed2e2d[_0x244aa5(0x1f3)]<_0x276a52);_0x393b9a[_0x244aa5(0x1d4)]((_0x5e4368,_0x235761)=>{const _0x17c8f2=_0x244aa5;_0x5e4368[_0x17c8f2(0x229)]={..._0x5e4368[_0x17c8f2(0x229)]??{},...x(_0x235761===0x0,_0x235761===_0x393b9a[_0x17c8f2(0x1d1)]-0x1,_0x39cdb8)};});}function ue(_0x2c708b){const _0xc4068c=_0x5e231f;var _0x47f437,_0x18320c;let _0x745ee2={..._0x2c708b??{}};return delete _0x745ee2['indentEnd'],delete _0x745ee2[_0xc4068c(0x208)],delete _0x745ee2[_0xc4068c(0x1fc)],delete _0x745ee2[_0xc4068c(0x23b)],delete _0x745ee2[_0xc4068c(0x215)],delete _0x745ee2[_0xc4068c(0x239)],delete _0x745ee2['widowControl'],((_0x47f437=_0x745ee2['textStyle'])==null?void 0x0:_0x47f437['ff'])===g&&((_0x18320c=_0x745ee2[_0xc4068c(0x168)])==null?void 0x0:_0x18320c['fs'])===0xc&&delete _0x745ee2['textStyle'],_0x745ee2;}function de(_0x1d23d9,_0x37b215){const _0x4f0fcf=_0x5e231f;let _0x1fb040=D(_0x37b215);return(_0x1d23d9[_0x4f0fcf(0x228)]??[])[_0x4f0fcf(0x1d0)](_0x27576d=>_0x27576d['startIndex']>_0x37b215['startIndex']&&_0x27576d[_0x4f0fcf(0x1f3)]<_0x1fb040);}function fe(_0x532e30,_0x39a583){const _0x15a6e7=_0x5e231f;var _0x1cf2b1;let _0x334aa7=D(_0x39a583);return de(_0x532e30,_0x39a583)[_0x15a6e7(0x1d4)](_0x488b22=>{const _0x59fa56=_0x15a6e7;_0x488b22[_0x59fa56(0x229)]=ue(_0x488b22[_0x59fa56(0x229)]);}),A(_0x532e30,_0x334aa7,_0x334aa7+0x1),A(_0x532e30,_0x39a583[_0x15a6e7(0x1f3)],_0x39a583['startIndex']+0x1),_0x532e30[_0x15a6e7(0x1b7)]=(_0x1cf2b1=_0x532e30[_0x15a6e7(0x1b7)])==null?void 0x0:_0x1cf2b1[_0x15a6e7(0x1d0)](_0x5a1a3e=>_0x5a1a3e['blockId']!==_0x39a583[_0x15a6e7(0x212)]),_0x39a583[_0x15a6e7(0x1f3)];}function S(_0x3e3cfe){const _0x174f09=_0x5e231f;return{..._0x3e3cfe,'body':_0x3e3cfe[_0x174f09(0x1ea)]?pe(_0x3e3cfe[_0x174f09(0x1ea)]):_0x3e3cfe[_0x174f09(0x1ea)]};}function pe(_0x1035b7){const _0x472473=_0x5e231f;var _0x217033,_0x29c1ae,_0x2ebf53,_0x5dae2b,_0x24f026,_0x1c08c6,_0x2bfeef,_0x476f90,_0x141cae;return{..._0x1035b7,'paragraphs':(_0x217033=_0x1035b7[_0x472473(0x228)])==null?void 0x0:_0x217033[_0x472473(0x1eb)](_0x5ea76a=>({..._0x5ea76a,'bullet':C(_0x5ea76a[_0x472473(0x205)]),'paragraphStyle':C(_0x5ea76a[_0x472473(0x229)])})),'sectionBreaks':(_0x29c1ae=_0x1035b7['sectionBreaks'])==null?void 0x0:_0x29c1ae[_0x472473(0x1eb)](_0x52122a=>({..._0x52122a})),'textRuns':(_0x2ebf53=_0x1035b7[_0x472473(0x1a7)])==null?void 0x0:_0x2ebf53[_0x472473(0x1eb)](_0x59112e=>({..._0x59112e})),'tables':(_0x5dae2b=_0x1035b7[_0x472473(0x21a)])==null?void 0x0:_0x5dae2b[_0x472473(0x1eb)](_0x2011d1=>({..._0x2011d1})),'columnGroups':(_0x24f026=_0x1035b7[_0x472473(0x199)])==null?void 0x0:_0x24f026[_0x472473(0x1eb)](_0x1abf1b=>{const _0x9aa9e7=_0x472473;var _0x38ebd0;return{..._0x1abf1b,'columns':(_0x38ebd0=_0x1abf1b[_0x9aa9e7(0x17c)])==null?void 0x0:_0x38ebd0[_0x9aa9e7(0x1eb)](_0x2e1811=>C(_0x2e1811))};}),'blockRanges':(_0x1c08c6=_0x1035b7['blockRanges'])==null?void 0x0:_0x1c08c6[_0x472473(0x1eb)](_0x28f68e=>({..._0x28f68e})),'customRanges':(_0x2bfeef=_0x1035b7[_0x472473(0x1c8)])==null?void 0x0:_0x2bfeef[_0x472473(0x1eb)](_0x65d8e=>({..._0x65d8e})),'customDecorations':(_0x476f90=_0x1035b7[_0x472473(0x1ec)])==null?void 0x0:_0x476f90[_0x472473(0x1eb)](_0x98dbac=>({..._0x98dbac})),'customBlocks':(_0x141cae=_0x1035b7['customBlocks'])==null?void 0x0:_0x141cae['map'](_0x45b7c4=>({..._0x45b7c4}))};}function C(_0x110f9c){const _0x44a791=_0x5e231f;return Array[_0x44a791(0x216)](_0x110f9c)?_0x110f9c['map'](_0x483a35=>C(_0x483a35)):!_0x110f9c||typeof _0x110f9c!=_0x44a791(0x219)?_0x110f9c:Object[_0x44a791(0x22b)](Object['entries'](_0x110f9c)[_0x44a791(0x1eb)](([_0x225d49,_0x4c8b75])=>[_0x225d49,C(_0x4c8b75)]));}function w(_0x27765a){const _0x89ff69=_0x5e231f;if(!_0x27765a['body'])throw Error(_0x89ff69(0x1ca));return _0x27765a[_0x89ff69(0x1ea)];}function me(_0x4c08d3,_0xf83036,_0x2487d9,_0x5ad156=_0x5e231f(0x192)){const _0x4d40ae=_0x5e231f;if(_0xf83036==null||_0x2487d9==null){let _0x19d965=ge(_0x4c08d3);return{'startOffset':_0x19d965,'endOffset':_0x19d965};}let _0x1b61e8=Math[_0x4d40ae(0x172)](_0xf83036,_0x2487d9),_0x5f0ab5=Math['max'](_0xf83036,_0x2487d9),_0x5acf16=xe(_0x4c08d3,_0x1b61e8,_0x5f0ab5);return _0x1b61e8===_0x5f0ab5?_0x5ad156===_0x4d40ae(0x1fb)?{'startOffset':_0x1b61e8,'endOffset':_0x5f0ab5}:he(_0x4c08d3,_0x1b61e8,_0x5acf16):ve(_0x4c08d3,_0x1b61e8,_0x5f0ab5,_0x5acf16);}function he(_0x33faa9,_0x5016f7,_0x10f4e4){const _0x32db34=_0x5e231f;let _0x427202=ye(_0x33faa9,_0x5016f7);if(_0x427202){let _0x37dbbc=T(_0x33faa9,_0x427202,_0x10f4e4);if(_0x37dbbc<_0x427202[_0x32db34(0x1f3)])return{'startOffset':_0x37dbbc,'endOffset':_0x10f4e4?Math[_0x32db34(0x172)](_0x427202[_0x32db34(0x1f3)]+0x1,_0x10f4e4[_0x32db34(0x171)]):_0x427202[_0x32db34(0x1f3)]+0x1};}let _0x8adaa9=_0x5016f7===0x0&&_0x33faa9[_0x32db34(0x1e6)][0x0]===e[_0x32db34(0x218)][_0x32db34(0x213)]?0x1:_0x5016f7;return{'startOffset':_0x8adaa9,'endOffset':_0x8adaa9};}function ge(_0x1e6293){const _0x18df63=_0x5e231f;return _0x1e6293[_0x18df63(0x1e6)][_0x18df63(0x1a4)](e['DataStreamTreeTokenType']['SECTION_BREAK'])?Math[_0x18df63(0x19a)](0x0,_0x1e6293[_0x18df63(0x1e6)][_0x18df63(0x1d1)]-0x1):_0x1e6293[_0x18df63(0x1e6)][_0x18df63(0x1d1)];}function _e(_0x3ce134,_0x56480e,_0x406198){const _0x1abacc=_0x5e231f;var _0x4551e3;let _0x420816=Math['min'](_0x56480e,_0x406198),_0x2654dd=Math['max'](_0x56480e,_0x406198);return!!((_0x4551e3=_0x3ce134[_0x1abacc(0x21a)])!=null&&_0x4551e3['some'](_0x100f2c=>_0x420816>_0x100f2c[_0x1abacc(0x1f3)]&&_0x420816<_0x100f2c[_0x1abacc(0x1b6)]||_0x2654dd>_0x100f2c[_0x1abacc(0x1f3)]&&_0x2654dd<_0x100f2c[_0x1abacc(0x1b6)]||_0x420816<=_0x100f2c[_0x1abacc(0x1f3)]&&_0x2654dd>=_0x100f2c[_0x1abacc(0x1b6)]));}function ve(_0x3adef7,_0x524bec,_0x57a27c,_0x20fc08){const _0x415b6a=_0x5e231f;let _0x321c0c=[..._0x3adef7['paragraphs']??[]]['sort']((_0x2cb0ab,_0x56ed88)=>_0x2cb0ab[_0x415b6a(0x1f3)]-_0x56ed88[_0x415b6a(0x1f3)]),_0x2d9955=(0x0,e[_0x415b6a(0x209)])(_0x3adef7),_0x53d10e=_0x321c0c[_0x415b6a(0x194)](_0x164296=>T(_0x3adef7,_0x164296,_0x20fc08,_0x2d9955)<=_0x524bec&&_0x524bec<=_0x164296[_0x415b6a(0x1f3)]),_0x42650e=_0x321c0c[_0x415b6a(0x194)](_0x4c1c09=>_0x4c1c09[_0x415b6a(0x1f3)]>=_0x57a27c-0x1)??_0x321c0c[_0x321c0c[_0x415b6a(0x1d1)]-0x1];return{'startOffset':_0x53d10e?T(_0x3adef7,_0x53d10e,_0x20fc08,_0x2d9955):_0x524bec,'endOffset':_0x42650e?be(_0x42650e,_0x20fc08):_0x57a27c};}function ye(_0x5fcd5,_0x2d6151){const _0x1f8adf=_0x5e231f;let _0x53bf1f=[..._0x5fcd5['paragraphs']??[]][_0x1f8adf(0x18f)]((_0x43c584,_0x52133d)=>_0x43c584[_0x1f8adf(0x1f3)]-_0x52133d[_0x1f8adf(0x1f3)]),_0x3f8b05=(0x0,e[_0x1f8adf(0x209)])(_0x5fcd5);return _0x53bf1f['find'](_0x559d46=>(_0x3f8b05[_0x1f8adf(0x1b4)](_0x559d46[_0x1f8adf(0x1f3)])??0x0)<=_0x2d6151&&_0x2d6151<=_0x559d46[_0x1f8adf(0x1f3)]);}function T(_0x4ad3a7,_0x3c1be4,_0x3c42af,_0x4839e4){const _0xd14216=_0x5e231f;let _0x5d5e1b=(_0x4839e4==null?void 0x0:_0x4839e4[_0xd14216(0x1b4)](_0x3c1be4[_0xd14216(0x1f3)]))??(0x0,e['getParagraphContentStartOffset'])(_0x4ad3a7,_0x3c1be4);return _0x3c42af?Math['max'](_0x5d5e1b,_0x3c42af[_0xd14216(0x233)]):_0x5d5e1b;}function be(_0x227e35,_0xf4b953){const _0x4f4789=_0x5e231f;let _0x240ab2=_0x227e35['startIndex']+0x1;return _0xf4b953?Math[_0x4f4789(0x172)](_0x240ab2,_0xf4b953[_0x4f4789(0x171)]):_0x240ab2;}function xe(_0x13617c,_0x534d13,_0x495e31){const _0x12ce8c=_0x5e231f;let _0x5f06f0=E(_0x13617c,_0x534d13),_0x179f2d=E(_0x13617c,_0x534d13===_0x495e31?_0x495e31:Math[_0x12ce8c(0x19a)](_0x534d13,_0x495e31-0x1));if(!(!_0x5f06f0&&!_0x179f2d)){if(!_0x5f06f0||!_0x179f2d||_0x5f06f0[_0x12ce8c(0x1b0)]!==_0x179f2d[_0x12ce8c(0x1b0)]||_0x5f06f0['endTokenOffset']!==_0x179f2d[_0x12ce8c(0x231)])throw new _();return _0x5f06f0;}}function E(_0x5206ca,_0xdb686b){const _0x3d8a8b=_0x5e231f;let _0x30ca7f=_0x5206ca[_0x3d8a8b(0x1e6)],_0x151d14=-0x1;for(let _0x1f310e=Math[_0x3d8a8b(0x172)](_0xdb686b,_0x30ca7f[_0x3d8a8b(0x1d1)]-0x1);_0x1f310e>=0x0;_0x1f310e--){let _0x2798d4=_0x30ca7f[_0x1f310e];if(_0x2798d4===e[_0x3d8a8b(0x218)][_0x3d8a8b(0x1cf)])return;if(_0x2798d4===e[_0x3d8a8b(0x218)]['TABLE_CELL_START']){_0x151d14=_0x1f310e;break;}}if(_0x151d14<0x0)return;let _0x56a489=_0x30ca7f[_0x3d8a8b(0x195)](e['DataStreamTreeTokenType'][_0x3d8a8b(0x1cf)],_0x151d14+0x1);if(!(_0x56a489<0x0||_0xdb686b<_0x151d14+0x1||_0xdb686b>_0x56a489-0x1))return{'startOffset':_0x151d14+0x1,'endOffset':Math[_0x3d8a8b(0x19a)](_0x151d14+0x1,_0x56a489-0x1),'startTokenOffset':_0x151d14,'endTokenOffset':_0x56a489};}function D(_0x5b94d1){const _0x1c04a4=_0x5e231f;return(0x0,e[_0x1c04a4(0x193)])(_0x5b94d1)[_0x1c04a4(0x171)]-0x1;}function Se(_0x5ad513,_0x2412e7,_0x2a32bd,_0x5dec03){const _0x4c2708=_0x5e231f;let _0x2be76e=D(_0x2412e7),_0x223657=(_0x5ad513[_0x4c2708(0x228)]??[])['find'](_0x5eff0e=>_0x5eff0e['startIndex']===_0x2be76e+0x1);if(!_0x223657||_0x5dec03!=null&&_0x223657[_0x4c2708(0x1f3)]!==_0x5dec03||_0x2a32bd!=null&&(_0x2a32bd<_0x2be76e||_0x2a32bd>_0x223657[_0x4c2708(0x1f3)]+0x1)||_0x5ad513[_0x4c2708(0x1e6)][_0x223657[_0x4c2708(0x1f3)]]!==e[_0x4c2708(0x218)][_0x4c2708(0x213)])return null;let _0x16fb3d=(0x0,e[_0x4c2708(0x1c7)])(_0x5ad513,_0x223657),_0x3389dc=_0x5ad513[_0x4c2708(0x1e6)][_0x4c2708(0x19c)](_0x16fb3d,_0x223657[_0x4c2708(0x1f3)]);return Array['from'](_0x3389dc)['every'](_0x20b608=>_0x20b608===e[_0x4c2708(0x218)]['BLOCK_END'])?{'paragraph':_0x223657,'endTokenOffset':_0x2be76e}:null;}function O(_0x5a2e2f,_0x34f164){const _0x290b26=_0x5e231f;var _0x342bca;let _0x55bdbb=D(_0x34f164),_0x73536a=_0x5a2e2f[_0x290b26(0x1e6)][_0x55bdbb+0x1];(_0x73536a===e['DataStreamTreeTokenType'][_0x290b26(0x21e)]||_0x73536a===void 0x0)&&k(_0x5a2e2f,_0x55bdbb+0x1,e['DataStreamTreeTokenType'][_0x290b26(0x213)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x290b26(0x203)])(new Set((_0x342bca=_0x5a2e2f[_0x290b26(0x228)])==null?void 0x0:_0x342bca['map'](_0x5f3337=>_0x5f3337[_0x290b26(0x1ed)])))}]});}function k(_0x3e7851,_0xf9e978,_0x28f403,_0x3540e8={}){const _0x4fd3d6=_0x5e231f;var _0x11bed8,_0xe1f12;_0x28f403&&(_0x3e7851[_0x4fd3d6(0x1e6)]=''+_0x3e7851[_0x4fd3d6(0x1e6)]['slice'](0x0,_0xf9e978)+_0x28f403+_0x3e7851['dataStream'][_0x4fd3d6(0x19c)](_0xf9e978),Ce(_0x3e7851,_0xf9e978,_0x28f403[_0x4fd3d6(0x1d1)]),(_0x11bed8=_0x3540e8[_0x4fd3d6(0x228)])!=null&&_0x11bed8[_0x4fd3d6(0x1d1)]&&(_0x3e7851[_0x4fd3d6(0x228)]=[..._0x3e7851[_0x4fd3d6(0x228)]??[],..._0x3540e8['paragraphs'][_0x4fd3d6(0x1eb)](_0x36d26a=>({..._0x36d26a,'startIndex':_0x36d26a['startIndex']+_0xf9e978}))][_0x4fd3d6(0x18f)]((_0x11a6e6,_0x7ba36)=>_0x11a6e6[_0x4fd3d6(0x1f3)]-_0x7ba36['startIndex'])),(_0xe1f12=_0x3540e8[_0x4fd3d6(0x1b7)])!=null&&_0xe1f12[_0x4fd3d6(0x1d1)]&&(_0x3e7851[_0x4fd3d6(0x1b7)]=[..._0x3e7851[_0x4fd3d6(0x1b7)]??[],..._0x3540e8[_0x4fd3d6(0x1b7)]['map'](_0x1028e9=>({..._0x1028e9,'startIndex':_0x1028e9[_0x4fd3d6(0x1f3)]+_0xf9e978,'endIndex':_0x1028e9[_0x4fd3d6(0x1b6)]+_0xf9e978}))][_0x4fd3d6(0x18f)]((_0x46b6ae,_0x5274f3)=>_0x46b6ae['startIndex']-_0x5274f3['startIndex'])));}function A(_0x51e301,_0x134776,_0x5c21f6){const _0x47bea8=_0x5e231f;let _0x137dfb=_0x5c21f6-_0x134776;_0x51e301[_0x47bea8(0x1e6)]=''+_0x51e301[_0x47bea8(0x1e6)][_0x47bea8(0x19c)](0x0,_0x134776)+_0x51e301[_0x47bea8(0x1e6)][_0x47bea8(0x19c)](_0x5c21f6),we(_0x51e301,_0x134776,_0x137dfb);}function Ce(_0x3d6137,_0x29ad8c,_0x4c0978){const _0x589b4b=_0x5e231f;_0x3d6137['paragraphs']=j(_0x3d6137['paragraphs'],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x225)]=j(_0x3d6137[_0x589b4b(0x225)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x210)]=j(_0x3d6137[_0x589b4b(0x210)],_0x29ad8c,_0x4c0978),_0x3d6137['textRuns']=Te(_0x3d6137[_0x589b4b(0x1a7)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x21a)]=Ee(_0x3d6137[_0x589b4b(0x21a)],_0x29ad8c,_0x4c0978),_0x3d6137['columnGroups']=N(_0x3d6137[_0x589b4b(0x199)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x1c8)]=N(_0x3d6137[_0x589b4b(0x1c8)],_0x29ad8c,_0x4c0978),_0x3d6137[_0x589b4b(0x1ec)]=N(_0x3d6137[_0x589b4b(0x1ec)],_0x29ad8c,_0x4c0978),_0x3d6137['blockRanges']=N(_0x3d6137['blockRanges'],_0x29ad8c,_0x4c0978);}function we(_0x4368ee,_0x611f4c,_0x3ce2e0){const _0x507c19=_0x5e231f;var _0x479ed2,_0x57bf6f;_0x4368ee[_0x507c19(0x228)]=M(_0x4368ee[_0x507c19(0x228)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x225)]=M(_0x4368ee[_0x507c19(0x225)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x210)]=M(_0x4368ee[_0x507c19(0x210)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x1a7)]=(_0x479ed2=F((_0x57bf6f=_0x4368ee[_0x507c19(0x1a7)])==null?void 0x0:_0x57bf6f[_0x507c19(0x1eb)](_0x26de20=>({..._0x26de20,'startIndex':_0x26de20['st'],'endIndex':_0x26de20['ed']})),_0x611f4c,_0x3ce2e0))==null?void 0x0:_0x479ed2[_0x507c19(0x1eb)](_0x1f9841=>{let {startIndex:_0x19571b,endIndex:_0x20d76c,..._0x517460}=_0x1f9841;return{..._0x517460,'st':_0x19571b,'ed':_0x20d76c};}),_0x4368ee[_0x507c19(0x21a)]=F(_0x4368ee[_0x507c19(0x21a)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x199)]=P(_0x4368ee[_0x507c19(0x199)],_0x611f4c,_0x3ce2e0),_0x4368ee['customRanges']=P(_0x4368ee[_0x507c19(0x1c8)],_0x611f4c,_0x3ce2e0),_0x4368ee[_0x507c19(0x1ec)]=P(_0x4368ee[_0x507c19(0x1ec)],_0x611f4c,_0x3ce2e0),_0x4368ee['blockRanges']=P(_0x4368ee[_0x507c19(0x1b7)],_0x611f4c,_0x3ce2e0);}function j(_0x2f85b1,_0x14aae2,_0x102acd){const _0x31621c=_0x5e231f;return _0x2f85b1==null?void 0x0:_0x2f85b1[_0x31621c(0x1eb)](_0x5afe70=>_0x5afe70['startIndex']>=_0x14aae2?{..._0x5afe70,'startIndex':_0x5afe70[_0x31621c(0x1f3)]+_0x102acd}:_0x5afe70);}function M(_0x19449c,_0x1aaacc,_0x421981){const _0x3c3cf2=_0x5e231f;let _0x3b4e4d=_0x1aaacc+_0x421981;return _0x19449c==null?void 0x0:_0x19449c['map'](_0x1ac740=>_0x1ac740[_0x3c3cf2(0x1f3)]>=_0x1aaacc&&_0x1ac740[_0x3c3cf2(0x1f3)]<_0x3b4e4d?null:_0x1ac740[_0x3c3cf2(0x1f3)]>=_0x3b4e4d?{..._0x1ac740,'startIndex':_0x1ac740[_0x3c3cf2(0x1f3)]-_0x421981}:_0x1ac740)['filter'](_0x26db52=>_0x26db52!=null);}function Te(_0x5bf60c,_0x5daefe,_0xd1edcb){const _0x52220a=_0x5e231f;return _0x5bf60c==null?void 0x0:_0x5bf60c[_0x52220a(0x1eb)](_0x18dab6=>_0x18dab6['st']>=_0x5daefe?{..._0x18dab6,'st':_0x18dab6['st']+_0xd1edcb,'ed':_0x18dab6['ed']+_0xd1edcb}:_0x18dab6['ed']>_0x5daefe?{..._0x18dab6,'ed':_0x18dab6['ed']+_0xd1edcb}:_0x18dab6);}function N(_0x4160c7,_0x4a899a,_0x390091){const _0x5d3450=_0x5e231f;return _0x4160c7==null?void 0x0:_0x4160c7[_0x5d3450(0x1eb)](_0x5a53a3=>(0x0,e[_0x5d3450(0x1a3)])(_0x5a53a3,_0x4a899a,_0x390091));}function Ee(_0x194b4b,_0x12614a,_0x305998){const _0xd5f19e=_0x5e231f;return _0x194b4b==null?void 0x0:_0x194b4b[_0xd5f19e(0x1eb)](_0x1fbffb=>(0x0,e[_0xd5f19e(0x1d6)])(_0x1fbffb,_0x12614a,_0x305998));}function P(_0x44c7c8,_0x5eaa00,_0x5e2567){const _0x5f0d59=_0x5e231f;return _0x44c7c8==null?void 0x0:_0x44c7c8[_0x5f0d59(0x1eb)](_0x29720e=>(0x0,e[_0x5f0d59(0x1c6)])(_0x29720e,_0x5eaa00,_0x5e2567))[_0x5f0d59(0x1d0)](_0x3a0e2a=>_0x3a0e2a!=null);}function F(_0x3c35da,_0x17ce00,_0x12097e){const _0x49f0bc=_0x5e231f;return _0x3c35da==null?void 0x0:_0x3c35da[_0x49f0bc(0x1eb)](_0x45bedb=>(0x0,e[_0x49f0bc(0x17a)])(_0x45bedb,_0x17ce00,_0x12097e))[_0x49f0bc(0x1d0)](_0x574eed=>_0x574eed!=null);}const I={'id':_0x5e231f(0x1bd),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':_0x443171=>{const _0x11f2c9=_0x5e231f;var _0x448b51;if((0x0,n['isHeaderFooterSelection'])(W(_0x443171)))return!0x1;let _0x161fdb=(0x0,n[_0x11f2c9(0x20c)])(_0x443171);if(_0x161fdb)return _0x443171[_0x11f2c9(0x1b4)](e[_0x11f2c9(0x16d)])[_0x11f2c9(0x238)](R['id'],{'startOffset':_0x161fdb[_0x11f2c9(0x233)],'endOffset':_0x161fdb[_0x11f2c9(0x171)],'insertionMode':_0x11f2c9(0x1fb),'unitId':_0x161fdb[_0x11f2c9(0x1ae)]});let _0x43c47b=je(_0x443171);if(!_0x43c47b)return!0x1;let _0x15969d=(_0x448b51=_0x443171[_0x11f2c9(0x1b4)](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType'][_0x11f2c9(0x18d)]))==null?void 0x0:_0x448b51['getBody'](),_0x1787ce=_0x15969d?(0x0,e[_0x11f2c9(0x178)])(_0x15969d,_0x43c47b):_0x43c47b[_0x11f2c9(0x1f3)]+0x1;return _0x443171[_0x11f2c9(0x1b4)](e['ICommandService'])['syncExecuteCommand'](R['id'],{'startOffset':_0x1787ce,'endOffset':_0x1787ce});}},L={'id':_0x5e231f(0x187),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':()=>!0x0},R={'id':_0x5e231f(0x18a),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':(_0x173423,_0x299f80)=>{const _0x1a677e=_0x5e231f;let _0xc8c518=U(_0x173423,_0x299f80==null?void 0x0:_0x299f80[_0x1a677e(0x1ae)]);if(!_0xc8c518)return!0x1;let _0x3b077b=W(_0x173423);if((0x0,n[_0x1a677e(0x1e7)])(_0x3b077b))return!0x1;let _0x4951fc=_0xc8c518[_0x1a677e(0x181)][_0x1a677e(0x1f6)](_0xc8c518[_0x1a677e(0x1ae)]),_0x1f11b3=Oe(_0x299f80,_0x3b077b),_0x433ff9=ke(_0xc8c518[_0x1a677e(0x1f7)],_0x1f11b3);if(_0x433ff9){if(_0x433ff9[_0x1a677e(0x170)]!==e['DocumentBlockRangeType'][_0x1a677e(0x1f9)])return!0x1;let _0x55254c=v({'blockId':_0x433ff9['blockId'],'documentData':_0xc8c518[_0x1a677e(0x1f7)],'metadata':_0x4951fc});if(!_0x55254c)return!0x1;let _0x466000=J(_0xc8c518[_0x1a677e(0x18b)],_0xc8c518[_0x1a677e(0x232)],_0xc8c518[_0x1a677e(0x1ae)],_0xc8c518[_0x1a677e(0x1f7)],_0x55254c['nextDocumentData'],R['id'],_0x55254c[_0x1a677e(0x1df)]);return _0x466000&&_0x55254c[_0x1a677e(0x1cb)]&&_0xc8c518[_0x1a677e(0x181)][_0x1a677e(0x206)](_0xc8c518[_0x1a677e(0x1ae)],_0x55254c[_0x1a677e(0x1cb)]),_0x466000;}let _0x180995=(_0x299f80==null?void 0x0:_0x299f80['blockId'])??(0x0,e[_0x1a677e(0x17f)])(0x6),_0xbbbfcc;try{_0xbbbfcc=ee({'blockId':_0x180995,'config':_0x299f80==null?void 0x0:_0x299f80[_0x1a677e(0x16c)],'documentData':_0xc8c518[_0x1a677e(0x1f7)],'endOffset':_0x1f11b3==null?void 0x0:_0x1f11b3[_0x1a677e(0x171)],'insertionMode':_0x299f80==null?void 0x0:_0x299f80[_0x1a677e(0x1f2)],'metadata':_0x4951fc,'startOffset':_0x1f11b3==null?void 0x0:_0x1f11b3[_0x1a677e(0x233)]});}catch(_0x454ad7){if(_0x454ad7 instanceof _)return!0x1;throw _0x454ad7;}let _0x1a5ea7=J(_0xc8c518[_0x1a677e(0x18b)],_0xc8c518[_0x1a677e(0x232)],_0xc8c518['unitId'],_0xc8c518['previousDocumentData'],_0xbbbfcc['nextDocumentData'],R['id'],_0xbbbfcc['cursorOffset']);return _0x1a5ea7&&_0xbbbfcc[_0x1a677e(0x1cb)]&&_0xc8c518['model'][_0x1a677e(0x206)](_0xc8c518['unitId'],_0xbbbfcc[_0x1a677e(0x1cb)]),_0x1a5ea7;}},z={'id':_0x5e231f(0x18e),'type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':(_0x42503f,_0x4bceea)=>{const _0x528558=_0x5e231f;if(!_0x4bceea)return!0x1;let _0x3360a2=U(_0x42503f,_0x4bceea[_0x528558(0x1ae)]);if(!_0x3360a2)return!0x1;let _0x34594a=ie({'blockId':_0x4bceea['blockId'],'config':_0x4bceea['config'],'documentData':_0x3360a2[_0x528558(0x1f7)],'metadata':_0x3360a2[_0x528558(0x181)][_0x528558(0x1f6)](_0x3360a2['unitId'])});return _0x34594a[_0x528558(0x1cb)]&&_0x3360a2[_0x528558(0x181)][_0x528558(0x206)](_0x3360a2[_0x528558(0x1ae)],_0x34594a[_0x528558(0x1cb)]),!0x0;}},De={'id':_0x5e231f(0x22d),'type':e[_0x5e231f(0x186)]['COMMAND'],'handler':(_0x45d332,_0x32fac6)=>B[_0x5e231f(0x1e2)](_0x45d332,_0x32fac6)},B={'id':'docs-code.command.unwrap','type':e[_0x5e231f(0x186)][_0x5e231f(0x1b8)],'handler':(_0x40f76d,_0xf8bbb0)=>{const _0x34951e=_0x5e231f;if(!_0xf8bbb0)return!0x1;let _0x35c051=U(_0x40f76d,_0xf8bbb0==null?void 0x0:_0xf8bbb0[_0x34951e(0x1ae)]);if(!_0x35c051)return!0x1;let _0x228dda=v({'blockId':_0xf8bbb0[_0x34951e(0x212)],'documentData':_0x35c051[_0x34951e(0x1f7)],'metadata':_0x35c051[_0x34951e(0x181)][_0x34951e(0x1f6)](_0x35c051[_0x34951e(0x1ae)])});if(!_0x228dda)return!0x1;let _0x1b1008=J(_0x35c051[_0x34951e(0x18b)],_0x35c051[_0x34951e(0x232)],_0x35c051[_0x34951e(0x1ae)],_0x35c051[_0x34951e(0x1f7)],_0x228dda['nextDocumentData'],B['id'],_0x228dda[_0x34951e(0x1df)]);return _0x1b1008&&_0x228dda[_0x34951e(0x1cb)]&&_0x35c051['model'][_0x34951e(0x206)](_0x35c051[_0x34951e(0x1ae)],_0x228dda[_0x34951e(0x1cb)]),_0x1b1008;}},V={'id':_0x5e231f(0x202),'type':e[_0x5e231f(0x186)]['COMMAND'],'handler':(_0x30ecc6,_0x2ae301)=>{const _0x14d10c=_0x5e231f;if(!_0x2ae301)return!0x1;let _0x3b73d2=U(_0x30ecc6,_0x2ae301==null?void 0x0:_0x2ae301[_0x14d10c(0x1ae)]);if(!_0x3b73d2)return!0x1;let _0x10a446=ae({'blockId':_0x2ae301[_0x14d10c(0x212)],'documentData':_0x3b73d2['previousDocumentData'],'metadata':_0x3b73d2[_0x14d10c(0x181)][_0x14d10c(0x1f6)](_0x3b73d2[_0x14d10c(0x1ae)])});if(!_0x10a446)return!0x1;let _0x21c986=J(_0x3b73d2[_0x14d10c(0x18b)],_0x3b73d2['selectionManager'],_0x3b73d2[_0x14d10c(0x1ae)],_0x3b73d2[_0x14d10c(0x1f7)],_0x10a446['nextDocumentData'],V['id'],_0x10a446['cursorOffset']);return _0x21c986&&_0x10a446['nextMetadata']&&_0x3b73d2['model'][_0x14d10c(0x206)](_0x3b73d2[_0x14d10c(0x1ae)],_0x10a446[_0x14d10c(0x1cb)]),_0x21c986;}},H={'id':'docs-code.command.cancel-empty-paragraph','type':e[_0x5e231f(0x186)]['COMMAND'],'handler':(_0x579003,_0x358d67)=>{const _0x4d11be=_0x5e231f;var _0x2a48eb;let _0x44882a=U(_0x579003,_0x358d67==null?void 0x0:_0x358d67[_0x4d11be(0x1ae)]);if(!_0x44882a)return!0x1;let _0x48a1c1=(_0x358d67==null?void 0x0:_0x358d67[_0x4d11be(0x1df)])??((_0x2a48eb=W(_0x579003))==null?void 0x0:_0x2a48eb[_0x4d11be(0x233)]);if(_0x48a1c1==null)return!0x1;let _0x5a6180=y({'cursorOffset':_0x48a1c1,'documentData':_0x44882a[_0x4d11be(0x1f7)],'paragraphStartIndex':_0x358d67==null?void 0x0:_0x358d67[_0x4d11be(0x1a9)]});return _0x5a6180?J(_0x44882a[_0x4d11be(0x18b)],_0x44882a['selectionManager'],_0x44882a[_0x4d11be(0x1ae)],_0x44882a[_0x4d11be(0x1f7)],_0x5a6180[_0x4d11be(0x226)],H['id'],_0x5a6180['cursorOffset']):!0x1;}};function U(_0x5ecf96,_0x37eccf){const _0x36e954=_0x5e231f;let _0x34e132=_0x5ecf96[_0x36e954(0x1b4)](e[_0x36e954(0x1c5)]),_0x3c49a0=_0x37eccf?_0x34e132[_0x36e954(0x17d)](_0x37eccf,e[_0x36e954(0x188)][_0x36e954(0x18d)]):_0x34e132[_0x36e954(0x1b3)](e[_0x36e954(0x188)][_0x36e954(0x18d)]);return _0x3c49a0?{'commandService':_0x5ecf96[_0x36e954(0x1b4)](e[_0x36e954(0x16d)]),'model':_0x5ecf96[_0x36e954(0x1b4)](p),'previousDocumentData':_0x3c49a0[_0x36e954(0x1de)](),'selectionManager':_0x5ecf96['get'](n[_0x36e954(0x1d7)]),'unitId':_0x3c49a0['getUnitId']()}:null;}function W(_0x46980a){const _0x5cac82=_0x5e231f;var _0x15476c;return(_0x15476c=_0x46980a[_0x5cac82(0x1b4)](n[_0x5cac82(0x1d7)])[_0x5cac82(0x1f1)]())==null?void 0x0:_0x15476c[0x0];}function Oe(_0x5786af,_0x888423){const _0x2d30f7=_0x5e231f;let _0x1111e0=(_0x5786af==null?void 0x0:_0x5786af[_0x2d30f7(0x233)])??(_0x888423==null?void 0x0:_0x888423[_0x2d30f7(0x233)]),_0x31ce18=(_0x5786af==null?void 0x0:_0x5786af[_0x2d30f7(0x171)])??(_0x888423==null?void 0x0:_0x888423['endOffset']);if(_0x1111e0!=null&&_0x31ce18!=null)return{'endOffset':Math['max'](_0x1111e0,_0x31ce18),'startOffset':Math['min'](_0x1111e0,_0x31ce18)};}function ke(_0x2dae98,_0x52af77){const _0x40722b=_0x5e231f;var _0x2f6c62;if(!_0x52af77)return;let _0xd19f0f=Ae(_0x52af77);return(_0x2f6c62=_0x2dae98['body'])==null||(_0x2f6c62=_0x2f6c62[_0x40722b(0x1b7)])==null?void 0x0:_0x2f6c62['find'](_0x547977=>{const _0x5933cd=_0x40722b;let _0x15c78c=(0x0,e[_0x5933cd(0x193)])(_0x547977);return _0x52af77[_0x5933cd(0x233)]===_0x52af77['endOffset']?(0x0,e[_0x5933cd(0x1e4)])(_0x15c78c,_0xd19f0f):(0x0,e['containsStreamIndex'])(_0x15c78c,_0xd19f0f);});}function Ae(_0x2405af){const _0x4fac0c=_0x5e231f;return _0x2405af[_0x4fac0c(0x233)]===_0x2405af[_0x4fac0c(0x171)]?_0x2405af[_0x4fac0c(0x233)]:_0x2405af[_0x4fac0c(0x233)]+0x1;}function je(_0x49691d){const _0x541f66=_0x5e231f;let _0x2b895d=W(_0x49691d);if(!_0x2b895d)return null;let _0x581f2a=_0x49691d['get'](e['IUniverInstanceService'])['getCurrentUnitOfType'](e['UniverInstanceType']['UNIVER_DOC']),_0x43ac55=_0x581f2a==null?void 0x0:_0x581f2a[_0x541f66(0x230)]();return _0x43ac55?e[_0x541f66(0x1bc)][_0x541f66(0x1f0)][_0x541f66(0x1ac)](_0x2b895d,_0x43ac55[_0x541f66(0x228)]??[],_0x43ac55[_0x541f66(0x1e6)]??'')[0x0]??null:null;}function Me(_0x1386e7,_0x436990){const _0x4adc16=_0x5e231f;let _0x5279c4=_0x1386e7['body'],_0x430674=_0x436990[_0x4adc16(0x1ea)],_0x1d6649=(0x0,e[_0x4adc16(0x1fa)])(_0x5279c4,_0x430674);return[_0x1d6649&&_0x430674?Ne(_0x430674,_0x1d6649):null,_0x1d6649?null:Pe(_0x5279c4,_0x430674)][_0x4adc16(0x1d0)](Boolean)['reduce']((_0x112ca9,_0x1da789)=>e[_0x4adc16(0x20f)]['compose'](_0x112ca9,_0x1da789),null);}function Ne(_0x958b33,_0x3ceace){const _0x4e815b=_0x5e231f;let _0x7f8859=new e[(_0x4e815b(0x175))]();return _0x7f8859['retain'](_0x3ceace['start']),_0x3ceace[_0x4e815b(0x17e)]>0x0&&_0x7f8859[_0x4e815b(0x183)](_0x3ceace['insertLength'],(0x0,e['getBodySliceForTextXAction'])(_0x958b33,_0x3ceace[_0x4e815b(0x1dd)],_0x3ceace[_0x4e815b(0x1dd)]+_0x3ceace[_0x4e815b(0x17e)],!0x1)),_0x3ceace[_0x4e815b(0x21c)]>0x0&&_0x7f8859[_0x4e815b(0x1a5)](_0x3ceace['deleteLength']),e['JSONX'][_0x4e815b(0x22a)]()[_0x4e815b(0x196)](_0x7f8859[_0x4e815b(0x1f6)](),['body']);}function Pe(_0x2c6162,_0x1c4714){const _0x174805=_0x5e231f;let _0x372198=[],_0x3a9918=_0x2c6162?G(_0x2c6162):void 0x0,_0x4eaf61=_0x1c4714?G(_0x1c4714):void 0x0;for(let _0x4cbda7 of Fe)K(e[_0x174805(0x20f)]['getInstance'](),[_0x174805(0x1ea),_0x4cbda7],_0x3a9918==null?void 0x0:_0x3a9918[_0x4cbda7],_0x4eaf61==null?void 0x0:_0x4eaf61[_0x4cbda7],_0x372198);return _0x372198['reduce']((_0x1dd508,_0x9a9c72)=>e[_0x174805(0x20f)][_0x174805(0x1a0)](_0x1dd508,_0x9a9c72),null);}const Fe=[_0x5e231f(0x228),'sectionBreaks',_0x5e231f(0x21a),_0x5e231f(0x199),_0x5e231f(0x1b7),_0x5e231f(0x210),_0x5e231f(0x1c8),_0x5e231f(0x1ec),_0x5e231f(0x1a7)];function G(_0x951cea){return _0x951cea;}function K(_0x38c4db,_0x412191,_0x2dc63c,_0x1bc880,_0x269b9f){const _0x4def07=_0x5e231f;if(!q(_0x2dc63c,_0x1bc880)){if(_0x2dc63c==null){_0x269b9f[_0x4def07(0x20e)](_0x38c4db[_0x4def07(0x1cd)](_0x412191,_0x1bc880));return;}if(_0x1bc880==null){_0x269b9f['push'](_0x38c4db[_0x4def07(0x1d3)](_0x412191,_0x2dc63c));return;}if(Array[_0x4def07(0x216)](_0x2dc63c)&&Array[_0x4def07(0x216)](_0x1bc880)){Ie(_0x38c4db,_0x412191,_0x2dc63c,_0x1bc880,_0x269b9f);return;}if(Le(_0x2dc63c)&&Le(_0x1bc880)){new Set([...Object['keys'](_0x2dc63c),...Object['keys'](_0x1bc880)])[_0x4def07(0x1d4)](_0x29b943=>{K(_0x38c4db,[..._0x412191,_0x29b943],_0x2dc63c[_0x29b943],_0x1bc880[_0x29b943],_0x269b9f);});return;}_0x269b9f[_0x4def07(0x20e)](_0x38c4db[_0x4def07(0x1dc)](_0x412191,_0x2dc63c,_0x1bc880));}}function Ie(_0x12e262,_0x92c847,_0x42351d,_0x227d82,_0x5e21cf){const _0x124551=_0x5e231f;if(_0x42351d[_0x124551(0x1d1)]===_0x227d82['length']){_0x42351d[_0x124551(0x1d4)]((_0x599a77,_0x2b7398)=>K(_0x12e262,[..._0x92c847,_0x2b7398],_0x599a77,_0x227d82[_0x2b7398],_0x5e21cf));return;}let _0x23591f=0x0;for(;_0x23591f<_0x42351d[_0x124551(0x1d1)]&&_0x23591f<_0x227d82['length']&&q(_0x42351d[_0x23591f],_0x227d82[_0x23591f]);)_0x23591f++;let _0x1f7746=_0x42351d['length']-0x1,_0x551bf3=_0x227d82[_0x124551(0x1d1)]-0x1;for(;_0x1f7746>=_0x23591f&&_0x551bf3>=_0x23591f&&q(_0x42351d[_0x1f7746],_0x227d82[_0x551bf3]);)_0x1f7746--,_0x551bf3--;for(let _0x11cb36=_0x1f7746;_0x11cb36>=_0x23591f;_0x11cb36--)_0x5e21cf[_0x124551(0x20e)](_0x12e262['removeOp']([..._0x92c847,_0x11cb36],_0x42351d[_0x11cb36]));for(let _0x36e405=_0x23591f;_0x36e405<=_0x551bf3;_0x36e405++)_0x5e21cf[_0x124551(0x20e)](_0x12e262[_0x124551(0x1cd)]([..._0x92c847,_0x36e405],_0x227d82[_0x36e405]));}function Le(_0x22496e){const _0x502209=_0x5e231f;return typeof _0x22496e==_0x502209(0x219)&&!!_0x22496e&&!Array[_0x502209(0x216)](_0x22496e);}function q(_0x1fc367,_0x24854c){return JSON['stringify'](_0x1fc367)===JSON['stringify'](_0x24854c);}function J(_0xfc1246,_0x4464ec,_0x3d73c7,_0x28509d,_0x11ab3f,_0x4c45ac,_0x1d8030){const _0x45af63=_0x5e231f;let _0x3dda18=Me(_0x28509d,_0x11ab3f);return _0x3dda18?!!_0xfc1246[_0x45af63(0x238)](n[_0x45af63(0x1d9)]['id'],{'unitId':_0x3d73c7,'actions':_0x3dda18,'textRanges':[{'startOffset':_0x1d8030,'endOffset':_0x1d8030,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x4c45ac}):(_0x4464ec[_0x45af63(0x1da)]([{'startOffset':_0x1d8030,'endOffset':_0x1d8030}],{'unitId':_0x3d73c7,'subUnitId':_0x3d73c7},!0x1),!0x0);}const Y=_0x5e231f(0x211);var Re=_0x5e231f(0x16f),ze=_0x5e231f(0x1d2);const Be={};function X(_0x577b8a,_0x40b7c8){return function(_0x5d7593,_0x1d9b9b){_0x40b7c8(_0x5d7593,_0x1d9b9b,_0x577b8a);};}function _0x2120(_0x234644,_0x1e6532){_0x234644=_0x234644-0x167;const _0x5b9111=_0x5b91();let _0x21204e=_0x5b9111[_0x234644];return _0x21204e;}function Z(_0x1ae00c,_0x5d2878,_0x4522b2,_0x1d7aac){const _0x497198=_0x5e231f;var _0x436cea=arguments['length'],_0x161015=_0x436cea<0x3?_0x5d2878:_0x1d7aac===null?_0x1d7aac=Object[_0x497198(0x16b)](_0x5d2878,_0x4522b2):_0x1d7aac,_0x3c8c05;if(typeof Reflect==_0x497198(0x219)&&typeof Reflect[_0x497198(0x184)]=='function')_0x161015=Reflect[_0x497198(0x184)](_0x1ae00c,_0x5d2878,_0x4522b2,_0x1d7aac);else{for(var _0x33b6a6=_0x1ae00c['length']-0x1;_0x33b6a6>=0x0;_0x33b6a6--)(_0x3c8c05=_0x1ae00c[_0x33b6a6])&&(_0x161015=(_0x436cea<0x3?_0x3c8c05(_0x161015):_0x436cea>0x3?_0x3c8c05(_0x5d2878,_0x4522b2,_0x161015):_0x3c8c05(_0x5d2878,_0x4522b2))||_0x161015);}return _0x436cea>0x3&&_0x161015&&Object[_0x497198(0x20d)](_0x5d2878,_0x4522b2,_0x161015),_0x161015;}let Q=class extends e['Disposable']{constructor(_0x118fae,_0x51b0a9){const _0x3e107b=_0x5e231f;super(),this[_0x3e107b(0x1b2)]=_0x118fae,this[_0x3e107b(0x1e1)]=_0x51b0a9,this[_0x3e107b(0x197)]();}[_0x5e231f(0x197)](){const _0x3fe4e1=_0x5e231f;this[_0x3fe4e1(0x174)](this[_0x3fe4e1(0x1b2)][_0x3fe4e1(0x19e)]({'pluginName':Y,'businesses':[e[_0x3fe4e1(0x188)][_0x3fe4e1(0x18d)]],'toJson':_0x47c65f=>JSON[_0x3fe4e1(0x1f5)](this[_0x3fe4e1(0x1e1)][_0x3fe4e1(0x1f6)](_0x47c65f)),'parseJson':_0x48dce6=>o(JSON[_0x3fe4e1(0x1cc)](_0x48dce6)),'onLoad':(_0x52b7f7,_0x4e661e)=>this['_docsCodeModel'][_0x3fe4e1(0x206)](_0x52b7f7,_0x4e661e),'onUnLoad':_0xcc8587=>this['_docsCodeModel'][_0x3fe4e1(0x185)](_0xcc8587)}));}};Q=Z([X(0x0,e[_0x5e231f(0x1be)]),X(0x1,(0x0,e['Inject'])(p))],Q);let $=class extends e['Plugin']{constructor(_0x147b77=Be,_0x34412c,_0xde6c52,_0x4fb4f7){const _0x2574e9=_0x5e231f;super(),this[_0x2574e9(0x20b)]=_0x147b77,this[_0x2574e9(0x173)]=_0x34412c,this['_commandService']=_0xde6c52,this['_configService']=_0x4fb4f7;let {..._0x531545}=(0x0,e[_0x2574e9(0x1ff)])({},Be,this[_0x2574e9(0x20b)]);this['_configService'][_0x2574e9(0x1ba)](_0x2574e9(0x234),_0x531545);}[_0x5e231f(0x169)](){const _0x1ed867=_0x5e231f;this[_0x1ed867(0x173)]['add']([p]),this[_0x1ed867(0x173)][_0x1ed867(0x1b1)]([Q]),this['_injector'][_0x1ed867(0x1b4)](p),this['_injector']['get'](Q),[R,I,z,B,V,De,H,L,m,h][_0x1ed867(0x1d4)](_0x29129d=>this[_0x1ed867(0x174)](this[_0x1ed867(0x235)][_0x1ed867(0x23a)](_0x29129d)));}};f($,'pluginName',Y),f($,_0x5e231f(0x1c0),Re),f($,_0x5e231f(0x1b5),ze),f($,_0x5e231f(0x21d),e[_0x5e231f(0x188)][_0x5e231f(0x18d)]),$=Z([(0x0,e['DependentOn'])(r[_0x5e231f(0x1c9)],n['UniverDocsPlugin']),X(0x1,(0x0,e[_0x5e231f(0x18c)])(e[_0x5e231f(0x22c)])),X(0x2,e[_0x5e231f(0x16d)]),X(0x3,e['IConfigService'])],$),exports[_0x5e231f(0x1e9)]=Y,exports[_0x5e231f(0x191)]=H,exports[_0x5e231f(0x1af)]=L,exports[_0x5e231f(0x224)]=I,exports[_0x5e231f(0x190)]=R,exports[_0x5e231f(0x222)]=p,exports[_0x5e231f(0x236)]=V,exports[_0x5e231f(0x177)]=B,exports[_0x5e231f(0x1a2)]=z,exports[_0x5e231f(0x201)]=h,exports[_0x5e231f(0x217)]=m,Object[_0x5e231f(0x20d)](exports,_0x5e231f(0x1c4),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=y,exports[_0x5e231f(0x19b)]=se,exports['normalizeDocsCodeConfig']=a,exports[_0x5e231f(0x19d)]=o;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x3e8e76=_0x5454;(function(_0x572d47,_0x1cad6a){var _0x47617d=_0x5454,_0xe1965b=_0x572d47();while(!![]){try{var _0x19c7a8=parseInt(_0x47617d(0x169))/0x1+-parseInt(_0x47617d(0x13d))/0x2+parseInt(_0x47617d(0x14b))/0x3*(-parseInt(_0x47617d(0x144))/0x4)+-parseInt(_0x47617d(0x156))/0x5*(parseInt(_0x47617d(0x152))/0x6)+parseInt(_0x47617d(0x166))/0x7*(parseInt(_0x47617d(0x140))/0x8)+parseInt(_0x47617d(0x153))/0x9*(parseInt(_0x47617d(0x134))/0xa)+-parseInt(_0x47617d(0x159))/0xb;if(_0x19c7a8===_0x1cad6a)break;else _0xe1965b['push'](_0xe1965b['shift']());}catch(_0x5f1107){_0xe1965b['push'](_0xe1965b['shift']());}}}(_0x3023,0x68956));import{DocsCodeInsertCommand as _0x5aeb8b,DocsCodeModel as _0x486b62,DocsCodeRemoveCommand as _0x538317,DocsCodeUnwrapCommand as _0x21283a,DocsCodeUpdateCommand as _0x39a9f8,normalizeDocsCodeConfig as _0xf999d0}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4bec09,DocumentBlockRangeType as _0x16c9fd,ICommandService as _0x287e9d,Inject as _0x14ce65,Injector as _0x5d9620,generateRandomId as _0x497ecc}from'@univerjs/core';import{FDocument as _0x413d00,isParagraphFacade as _0x440641}from'@univerjs/docs/facade';function m(_0x1a716b){'@babel/helpers - typeof';var _0x57da8=_0x5454;return m=typeof Symbol==_0x57da8(0x164)&&typeof Symbol[_0x57da8(0x15e)]=='symbol'?function(_0x55d4c7){return typeof _0x55d4c7;}:function(_0x5b6da4){var _0x4c871f=_0x57da8;return _0x5b6da4&&typeof Symbol==_0x4c871f(0x164)&&_0x5b6da4['constructor']===Symbol&&_0x5b6da4!==Symbol[_0x4c871f(0x13a)]?_0x4c871f(0x16c):typeof _0x5b6da4;},m(_0x1a716b);}function h(_0x2fa868,_0x426beb){var _0x1e728=_0x5454;if(m(_0x2fa868)!=_0x1e728(0x148)||!_0x2fa868)return _0x2fa868;var _0x521ce5=_0x2fa868[Symbol[_0x1e728(0x14c)]];if(_0x521ce5!==void 0x0){var _0x558653=_0x521ce5['call'](_0x2fa868,_0x426beb||_0x1e728(0x163));if(m(_0x558653)!=_0x1e728(0x148))return _0x558653;throw TypeError(_0x1e728(0x15c));}return(_0x426beb===_0x1e728(0x147)?String:Number)(_0x2fa868);}function g(_0x390f7d){var _0x5e284c=_0x5454,_0x198dca=h(_0x390f7d,_0x5e284c(0x147));return m(_0x198dca)==_0x5e284c(0x16c)?_0x198dca:_0x198dca+'';}function _(_0x18f687,_0x2f2ebf,_0x292346){return(_0x2f2ebf=g(_0x2f2ebf))in _0x18f687?Object['defineProperty'](_0x18f687,_0x2f2ebf,{'value':_0x292346,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x18f687[_0x2f2ebf]=_0x292346,_0x18f687;}function v(_0x9d52bb,_0x13f5e7){return function(_0xf0442c,_0x3942ef){_0x13f5e7(_0xf0442c,_0x3942ef,_0x9d52bb);};}function _0x5454(_0x215473,_0x38a84f){_0x215473=_0x215473-0x134;var _0x3023eb=_0x3023();var _0x54541a=_0x3023eb[_0x215473];return _0x54541a;}function y(_0x1f9e86,_0x4e8b78,_0x5ebb51,_0x1be458){var _0x5d088a=_0x5454,_0xbabd3d=arguments['length'],_0x322ffa=_0xbabd3d<0x3?_0x4e8b78:_0x1be458===null?_0x1be458=Object[_0x5d088a(0x155)](_0x4e8b78,_0x5ebb51):_0x1be458,_0x31044b;if(typeof Reflect==_0x5d088a(0x148)&&typeof Reflect[_0x5d088a(0x171)]==_0x5d088a(0x164))_0x322ffa=Reflect[_0x5d088a(0x171)](_0x1f9e86,_0x4e8b78,_0x5ebb51,_0x1be458);else{for(var _0x5b846c=_0x1f9e86[_0x5d088a(0x14f)]-0x1;_0x5b846c>=0x0;_0x5b846c--)(_0x31044b=_0x1f9e86[_0x5b846c])&&(_0x322ffa=(_0xbabd3d<0x3?_0x31044b(_0x322ffa):_0xbabd3d>0x3?_0x31044b(_0x4e8b78,_0x5ebb51,_0x322ffa):_0x31044b(_0x4e8b78,_0x5ebb51))||_0x322ffa);}return _0xbabd3d>0x3&&_0x322ffa&&Object[_0x5d088a(0x136)](_0x4e8b78,_0x5ebb51,_0x322ffa),_0x322ffa;}function _0x3023(){var _0x411387=['getOwnPropertyDescriptor','15PBoFaq','dataStream','blockType','10991068vDNbDD','getCode','startIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','findCodes','iterator','_createFDocumentCode','_blockId','getCodes','some','default','function','insertCode','689927oyqJrQ','getConfig','endIndex','633178mFkoip','remove','_getBlockRange','symbol','BLOCK_END','extend','_document','getCodeAt','decorate','body','SECTION_BREAK','save','text','getId','from','10uMwUta','syncExecuteCommand','defineProperty','get','_injector','_getBlockRanges','prototype','BLOCK_START','getRange','277464YdMxen','blockRanges','describe','56TrUDuh','_unitId','getCodeConfig','map','49124inGdtA','createInstance','blockId','string','object','getText','find','30lPbFkq','toPrimitive','CODE','unwrap','length','_getDocumentData','join','523104VFsrTy','5647959ImUBUv','filter'];_0x3023=function(){return _0x411387;};return _0x3023();}let b=class{constructor(_0x108149,_0x5758f5,_0x39c500){var _0x17ed45=_0x5454;this[_0x17ed45(0x16f)]=_0x108149,this[_0x17ed45(0x160)]=_0x5758f5,this[_0x17ed45(0x138)]=_0x39c500,_(this,_0x17ed45(0x141),void 0x0),this[_0x17ed45(0x141)]=this['_document'][_0x17ed45(0x176)]();}[_0x3e8e76(0x176)](){var _0x441721=_0x3e8e76;return this[_0x441721(0x160)];}[_0x3e8e76(0x13c)](){var _0x4d0696=_0x3e8e76;let _0x57f095=this['_getBlockRange']();return _0x57f095?{'blockId':_0x57f095[_0x4d0696(0x146)],'endIndex':_0x57f095[_0x4d0696(0x168)],'startIndex':_0x57f095[_0x4d0696(0x15b)]}:null;}['getText'](){var _0x2d6ff6=_0x3e8e76,_0x5453ff;let _0x189b6e=this[_0x2d6ff6(0x16b)](),_0x140243=(_0x5453ff=this[_0x2d6ff6(0x150)]()[_0x2d6ff6(0x172)])==null?void 0x0:_0x5453ff[_0x2d6ff6(0x157)];return!_0x189b6e||!_0x140243?'':x(_0x140243['slice'](_0x189b6e[_0x2d6ff6(0x15b)]+0x1,_0x189b6e[_0x2d6ff6(0x168)]));}[_0x3e8e76(0x13f)](){var _0x2465b4=_0x3e8e76;let _0x726b70=this[_0x2465b4(0x13c)]();return _0x726b70?{..._0x726b70,'config':this[_0x2465b4(0x167)](),'text':this['getText'](),'type':_0x16c9fd['CODE']}:null;}[_0x3e8e76(0x167)](){var _0x2922c0=_0x3e8e76;return _0xf999d0(this[_0x2922c0(0x138)][_0x2922c0(0x137)](_0x486b62)[_0x2922c0(0x142)](this[_0x2922c0(0x141)],this[_0x2922c0(0x160)]));}['updateConfig'](_0x17dbef){var _0x2ddbf5=_0x3e8e76;return this[_0x2ddbf5(0x138)]['get'](_0x287e9d)['syncExecuteCommand'](_0x39a9f8['id'],{'blockId':this[_0x2ddbf5(0x160)],'config':_0x17dbef['config'],'unitId':this[_0x2ddbf5(0x141)]});}[_0x3e8e76(0x14e)](){var _0x4f0614=_0x3e8e76;return this[_0x4f0614(0x138)]['get'](_0x287e9d)[_0x4f0614(0x135)](_0x21283a['id'],{'blockId':this[_0x4f0614(0x160)],'unitId':this['_unitId']});}[_0x3e8e76(0x16a)](){var _0x25b8bb=_0x3e8e76;return this[_0x25b8bb(0x138)]['get'](_0x287e9d)[_0x25b8bb(0x135)](_0x538317['id'],{'blockId':this['_blockId'],'unitId':this[_0x25b8bb(0x141)]});}[_0x3e8e76(0x16b)](){var _0x457054=_0x3e8e76,_0x440ca9;return((_0x440ca9=this['_getDocumentData']()['body'])==null||(_0x440ca9=_0x440ca9[_0x457054(0x13e)])==null?void 0x0:_0x440ca9[_0x457054(0x14a)](_0x82dda5=>_0x82dda5[_0x457054(0x146)]===this[_0x457054(0x160)]&&_0x82dda5[_0x457054(0x158)]===_0x16c9fd[_0x457054(0x14d)]))??null;}[_0x3e8e76(0x150)](){var _0x214d1d=_0x3e8e76;return this[_0x214d1d(0x16f)][_0x214d1d(0x174)]();}};b=y([v(0x2,_0x14ce65(_0x5d9620))],b);function x(_0x30b393){var _0x278534=_0x3e8e76;return Array[_0x278534(0x177)](_0x30b393)[_0x278534(0x143)](_0x35f34d=>_0x35f34d===_0x4bec09['PARAGRAPH']?'\x0a':_0x35f34d)[_0x278534(0x154)](_0x1056ab=>_0x1056ab!==_0x4bec09[_0x278534(0x13b)]&&_0x1056ab!==_0x4bec09[_0x278534(0x16d)]&&_0x1056ab!==_0x4bec09[_0x278534(0x173)])[_0x278534(0x151)]('')['replace'](/\n$/,'');}var S=class extends _0x413d00{[_0x3e8e76(0x161)](){var _0x15d5bc=_0x3e8e76;return this['_getBlockRanges']()[_0x15d5bc(0x154)](_0x2d33e2=>_0x2d33e2[_0x15d5bc(0x158)]===_0x16c9fd[_0x15d5bc(0x14d)])[_0x15d5bc(0x143)](_0x1deb39=>this[_0x15d5bc(0x15f)](_0x1deb39[_0x15d5bc(0x146)]));}[_0x3e8e76(0x15a)](_0x2ecb22){var _0x53b664=_0x3e8e76;return this[_0x53b664(0x139)]()[_0x53b664(0x162)](_0x1b8391=>_0x1b8391[_0x53b664(0x146)]===_0x2ecb22&&_0x1b8391['blockType']===_0x16c9fd[_0x53b664(0x14d)])?this[_0x53b664(0x15f)](_0x2ecb22):null;}[_0x3e8e76(0x170)](_0x499b3e){var _0x31bf1d=_0x3e8e76;let _0x206b08=this['_getBlockRanges']()[_0x31bf1d(0x14a)](_0x196a8a=>_0x196a8a[_0x31bf1d(0x158)]===_0x16c9fd['CODE']&&_0x196a8a[_0x31bf1d(0x15b)]<=_0x499b3e&&_0x499b3e<=_0x196a8a[_0x31bf1d(0x168)]);return _0x206b08?this['_createFDocumentCode'](_0x206b08['blockId']):null;}['findCodeByText'](_0x1e8404){var _0x17e367=_0x3e8e76;return this[_0x17e367(0x15d)](_0x1e8404)[0x0]??null;}[_0x3e8e76(0x15d)](_0x254d5f){var _0x119749=_0x3e8e76;let _0x3fc450=typeof _0x254d5f==_0x119749(0x147)?{'text':_0x254d5f}:_0x254d5f;return this[_0x119749(0x161)]()['filter'](_0x53d15f=>!(_0x3fc450['blockId']&&_0x53d15f[_0x119749(0x176)]()!==_0x3fc450['blockId']||_0x3fc450['text']&&!_0x53d15f[_0x119749(0x149)]()['includes'](_0x3fc450[_0x119749(0x175)])));}[_0x3e8e76(0x165)](_0x463e52={},_0x1ea1b8={}){var _0x15c896=_0x3e8e76;let _0x14c2e5=this[_0x15c896(0x138)]['get'](_0x287e9d),_0x2cd27c=_0x440641(_0x463e52)?{..._0x1ea1b8,..._0x463e52[_0x15c896(0x13c)]()}:_0x463e52,_0x3205ec=_0x2cd27c[_0x15c896(0x146)]??_0x497ecc(0x6);return _0x14c2e5[_0x15c896(0x135)](_0x5aeb8b['id'],{..._0x2cd27c,'blockId':_0x3205ec,'unitId':this[_0x15c896(0x176)]()})?this[_0x15c896(0x15a)](_0x3205ec):null;}[_0x3e8e76(0x139)](){var _0x2f6453=_0x3e8e76,_0x530564;return((_0x530564=this[_0x2f6453(0x174)]()[_0x2f6453(0x172)])==null?void 0x0:_0x530564[_0x2f6453(0x13e)])??[];}['_createFDocumentCode'](_0x1ba99b){var _0x2b1cbc=_0x3e8e76;return this['_injector'][_0x2b1cbc(0x145)](b,this,_0x1ba99b);}};_0x413d00[_0x3e8e76(0x16e)](S);export{b as FDocumentCode};
1
+ var _0x5a3bed=_0x99f2;(function(_0x284151,_0x100330){var _0x46b10c=_0x99f2,_0x54b06a=_0x284151();while(!![]){try{var _0x4d1250=parseInt(_0x46b10c(0xd0))/0x1*(-parseInt(_0x46b10c(0xce))/0x2)+parseInt(_0x46b10c(0xf2))/0x3*(-parseInt(_0x46b10c(0x101))/0x4)+-parseInt(_0x46b10c(0x103))/0x5*(parseInt(_0x46b10c(0xe9))/0x6)+parseInt(_0x46b10c(0x100))/0x7*(parseInt(_0x46b10c(0x102))/0x8)+-parseInt(_0x46b10c(0xdf))/0x9+-parseInt(_0x46b10c(0xec))/0xa+parseInt(_0x46b10c(0xdb))/0xb;if(_0x4d1250===_0x100330)break;else _0x54b06a['push'](_0x54b06a['shift']());}catch(_0x492102){_0x54b06a['push'](_0x54b06a['shift']());}}}(_0x5c40,0x331d0));import{DocsCodeInsertCommand as _0x55e7af,DocsCodeModel as _0x1807cb,DocsCodeRemoveCommand as _0x1e475b,DocsCodeUnwrapCommand as _0x43b689,DocsCodeUpdateCommand as _0x490b74,normalizeDocsCodeConfig as _0x32ae0d}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x384c50,DocumentBlockRangeType as _0xdbafce,ICommandService as _0x3b896e,Inject as _0x13e0e9,Injector as _0xa6685,generateRandomId as _0x47f85b}from'@univerjs/core';import{FDocument as _0x4a7a19,isParagraphFacade as _0x2ffa4e}from'@univerjs/docs/facade';function _0x99f2(_0x49091c,_0x17b303){_0x49091c=_0x49091c-0xc5;var _0x5c4011=_0x5c40();var _0x99f254=_0x5c4011[_0x49091c];return _0x99f254;}function m(_0x26b523){'@babel/helpers - typeof';var _0x45f69f=_0x99f2;return m=typeof Symbol==_0x45f69f(0xf6)&&typeof Symbol['iterator']==_0x45f69f(0xfe)?function(_0x8415ab){return typeof _0x8415ab;}:function(_0x38783e){var _0x298656=_0x45f69f;return _0x38783e&&typeof Symbol==_0x298656(0xf6)&&_0x38783e['constructor']===Symbol&&_0x38783e!==Symbol[_0x298656(0xe1)]?_0x298656(0xfe):typeof _0x38783e;},m(_0x26b523);}function h(_0x31e1c2,_0x4578ea){var _0x148a1a=_0x99f2;if(m(_0x31e1c2)!=_0x148a1a(0xd8)||!_0x31e1c2)return _0x31e1c2;var _0x3ea3be=_0x31e1c2[Symbol[_0x148a1a(0xf1)]];if(_0x3ea3be!==void 0x0){var _0x306d67=_0x3ea3be[_0x148a1a(0xdd)](_0x31e1c2,_0x4578ea||_0x148a1a(0xd1));if(m(_0x306d67)!='object')return _0x306d67;throw TypeError(_0x148a1a(0xf3));}return(_0x4578ea===_0x148a1a(0xc7)?String:Number)(_0x31e1c2);}function g(_0x14c2a8){var _0x50fd8a=_0x99f2,_0x3196b1=h(_0x14c2a8,_0x50fd8a(0xc7));return m(_0x3196b1)==_0x50fd8a(0xfe)?_0x3196b1:_0x3196b1+'';}function _(_0x4b22ec,_0x433e0b,_0x288be9){return(_0x433e0b=g(_0x433e0b))in _0x4b22ec?Object['defineProperty'](_0x4b22ec,_0x433e0b,{'value':_0x288be9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b22ec[_0x433e0b]=_0x288be9,_0x4b22ec;}function _0x5c40(){var _0x313f99=['findCodeByText','symbol','_getBlockRange','553OvwIcY','735044oWgABA','7472yvZFWh','5aPtkyI','slice','findCodes','unwrap','_getBlockRanges','length','CODE','string','_getDocumentData','BLOCK_END','blockType','filter','map','getRange','394mdcpsr','config','1909toFLHU','default','_createFDocumentCode','getCodeAt','remove','endIndex','getCodes','body','object','text','syncExecuteCommand','14763474OxeHya','decorate','call','BLOCK_START','2681856lvUwnL','updateConfig','prototype','get','blockId','blockRanges','_document','save','includes','find','237084cnRTSk','join','startIndex','1254670hTckLG','_unitId','getConfig','from','dataStream','toPrimitive','6HqprMS','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','PARAGRAPH','getText','function','some','getCode','_blockId','getId','getOwnPropertyDescriptor','_injector'];_0x5c40=function(){return _0x313f99;};return _0x5c40();}function v(_0x415a87,_0x3b59d2){return function(_0x30a106,_0x5e4733){_0x3b59d2(_0x30a106,_0x5e4733,_0x415a87);};}function y(_0x33a3e8,_0x2de506,_0x561447,_0x9e1afa){var _0x189820=_0x99f2,_0x5b850e=arguments['length'],_0x5563b0=_0x5b850e<0x3?_0x2de506:_0x9e1afa===null?_0x9e1afa=Object[_0x189820(0xfb)](_0x2de506,_0x561447):_0x9e1afa,_0x489a33;if(typeof Reflect==_0x189820(0xd8)&&typeof Reflect[_0x189820(0xdc)]==_0x189820(0xf6))_0x5563b0=Reflect[_0x189820(0xdc)](_0x33a3e8,_0x2de506,_0x561447,_0x9e1afa);else{for(var _0x2ad707=_0x33a3e8[_0x189820(0xc5)]-0x1;_0x2ad707>=0x0;_0x2ad707--)(_0x489a33=_0x33a3e8[_0x2ad707])&&(_0x5563b0=(_0x5b850e<0x3?_0x489a33(_0x5563b0):_0x5b850e>0x3?_0x489a33(_0x2de506,_0x561447,_0x5563b0):_0x489a33(_0x2de506,_0x561447))||_0x5563b0);}return _0x5b850e>0x3&&_0x5563b0&&Object['defineProperty'](_0x2de506,_0x561447,_0x5563b0),_0x5563b0;}let b=class{constructor(_0x328d3d,_0x3a644f,_0x4abf7b){var _0x31f69d=_0x99f2;this[_0x31f69d(0xe5)]=_0x328d3d,this[_0x31f69d(0xf9)]=_0x3a644f,this[_0x31f69d(0xfc)]=_0x4abf7b,_(this,_0x31f69d(0xed),void 0x0),this[_0x31f69d(0xed)]=this[_0x31f69d(0xe5)][_0x31f69d(0xfa)]();}[_0x5a3bed(0xfa)](){return this['_blockId'];}[_0x5a3bed(0xcd)](){var _0x56ed4f=_0x5a3bed;let _0x592b52=this[_0x56ed4f(0xff)]();return _0x592b52?{'blockId':_0x592b52[_0x56ed4f(0xe3)],'endIndex':_0x592b52[_0x56ed4f(0xd5)],'startIndex':_0x592b52[_0x56ed4f(0xeb)]}:null;}[_0x5a3bed(0xf5)](){var _0xbe3e84=_0x5a3bed,_0x1f89aa;let _0x15082b=this['_getBlockRange'](),_0x311b49=(_0x1f89aa=this[_0xbe3e84(0xc8)]()[_0xbe3e84(0xd7)])==null?void 0x0:_0x1f89aa[_0xbe3e84(0xf0)];return!_0x15082b||!_0x311b49?'':x(_0x311b49[_0xbe3e84(0x104)](_0x15082b['startIndex']+0x1,_0x15082b[_0xbe3e84(0xd5)]));}['describe'](){var _0x40b583=_0x5a3bed;let _0x4e61ab=this[_0x40b583(0xcd)]();return _0x4e61ab?{..._0x4e61ab,'config':this['getConfig'](),'text':this[_0x40b583(0xf5)](),'type':_0xdbafce['CODE']}:null;}[_0x5a3bed(0xee)](){var _0x275ed0=_0x5a3bed;return _0x32ae0d(this['_injector']['get'](_0x1807cb)['getCodeConfig'](this['_unitId'],this[_0x275ed0(0xf9)]));}[_0x5a3bed(0xe0)](_0xa18bbc){var _0x3b0f00=_0x5a3bed;return this[_0x3b0f00(0xfc)][_0x3b0f00(0xe2)](_0x3b896e)['syncExecuteCommand'](_0x490b74['id'],{'blockId':this[_0x3b0f00(0xf9)],'config':_0xa18bbc[_0x3b0f00(0xcf)],'unitId':this[_0x3b0f00(0xed)]});}[_0x5a3bed(0x106)](){var _0x25a024=_0x5a3bed;return this['_injector'][_0x25a024(0xe2)](_0x3b896e)[_0x25a024(0xda)](_0x43b689['id'],{'blockId':this[_0x25a024(0xf9)],'unitId':this[_0x25a024(0xed)]});}[_0x5a3bed(0xd4)](){var _0x135184=_0x5a3bed;return this[_0x135184(0xfc)][_0x135184(0xe2)](_0x3b896e)['syncExecuteCommand'](_0x1e475b['id'],{'blockId':this['_blockId'],'unitId':this[_0x135184(0xed)]});}['_getBlockRange'](){var _0x52883e=_0x5a3bed,_0x19e5bb;return((_0x19e5bb=this['_getDocumentData']()[_0x52883e(0xd7)])==null||(_0x19e5bb=_0x19e5bb[_0x52883e(0xe4)])==null?void 0x0:_0x19e5bb['find'](_0x16dd82=>_0x16dd82[_0x52883e(0xe3)]===this[_0x52883e(0xf9)]&&_0x16dd82['blockType']===_0xdbafce[_0x52883e(0xc6)]))??null;}['_getDocumentData'](){var _0x45b8bd=_0x5a3bed;return this[_0x45b8bd(0xe5)][_0x45b8bd(0xe6)]();}};b=y([v(0x2,_0x13e0e9(_0xa6685))],b);function x(_0x51b8b6){var _0x5807aa=_0x5a3bed;return Array[_0x5807aa(0xef)](_0x51b8b6)[_0x5807aa(0xcc)](_0x1b8147=>_0x1b8147===_0x384c50[_0x5807aa(0xf4)]?'\x0a':_0x1b8147)[_0x5807aa(0xcb)](_0x41df82=>_0x41df82!==_0x384c50[_0x5807aa(0xde)]&&_0x41df82!==_0x384c50[_0x5807aa(0xc9)]&&_0x41df82!==_0x384c50['SECTION_BREAK'])[_0x5807aa(0xea)]('')['replace'](/\n$/,'');}var S=class extends _0x4a7a19{['getCodes'](){var _0x42787a=_0x5a3bed;return this[_0x42787a(0x107)]()['filter'](_0x7011c4=>_0x7011c4[_0x42787a(0xca)]===_0xdbafce[_0x42787a(0xc6)])[_0x42787a(0xcc)](_0x16409d=>this['_createFDocumentCode'](_0x16409d[_0x42787a(0xe3)]));}[_0x5a3bed(0xf8)](_0x242ff5){var _0x22aca5=_0x5a3bed;return this[_0x22aca5(0x107)]()[_0x22aca5(0xf7)](_0x3f130c=>_0x3f130c['blockId']===_0x242ff5&&_0x3f130c['blockType']===_0xdbafce[_0x22aca5(0xc6)])?this[_0x22aca5(0xd2)](_0x242ff5):null;}[_0x5a3bed(0xd3)](_0x23e0e0){var _0x179df6=_0x5a3bed;let _0x5b3008=this[_0x179df6(0x107)]()[_0x179df6(0xe8)](_0x54facd=>_0x54facd[_0x179df6(0xca)]===_0xdbafce['CODE']&&_0x54facd[_0x179df6(0xeb)]<=_0x23e0e0&&_0x23e0e0<=_0x54facd[_0x179df6(0xd5)]);return _0x5b3008?this[_0x179df6(0xd2)](_0x5b3008[_0x179df6(0xe3)]):null;}[_0x5a3bed(0xfd)](_0x97f77c){var _0x1507b0=_0x5a3bed;return this[_0x1507b0(0x105)](_0x97f77c)[0x0]??null;}[_0x5a3bed(0x105)](_0xb44f26){var _0x2264c3=_0x5a3bed;let _0x446b57=typeof _0xb44f26==_0x2264c3(0xc7)?{'text':_0xb44f26}:_0xb44f26;return this[_0x2264c3(0xd6)]()['filter'](_0x1c010a=>!(_0x446b57[_0x2264c3(0xe3)]&&_0x1c010a['getId']()!==_0x446b57['blockId']||_0x446b57[_0x2264c3(0xd9)]&&!_0x1c010a[_0x2264c3(0xf5)]()[_0x2264c3(0xe7)](_0x446b57['text'])));}['insertCode'](_0x3101ed={},_0x2639eb={}){var _0x3ba04c=_0x5a3bed;let _0x34022a=this[_0x3ba04c(0xfc)][_0x3ba04c(0xe2)](_0x3b896e),_0x4e8973=_0x2ffa4e(_0x3101ed)?{..._0x2639eb,..._0x3101ed[_0x3ba04c(0xcd)]()}:_0x3101ed,_0x5456f4=_0x4e8973[_0x3ba04c(0xe3)]??_0x47f85b(0x6);return _0x34022a[_0x3ba04c(0xda)](_0x55e7af['id'],{..._0x4e8973,'blockId':_0x5456f4,'unitId':this['getId']()})?this[_0x3ba04c(0xf8)](_0x5456f4):null;}['_getBlockRanges'](){var _0x4bd9f9=_0x5a3bed,_0x4449fb;return((_0x4449fb=this[_0x4bd9f9(0xe6)]()[_0x4bd9f9(0xd7)])==null?void 0x0:_0x4449fb['blockRanges'])??[];}[_0x5a3bed(0xd2)](_0x46a762){return this['_injector']['createInstance'](b,this,_0x46a762);}};_0x4a7a19['extend'](S);export{b as FDocumentCode};