@univerjs-pro/docs-code 1.0.0-alpha.1 → 1.0.0-insiders.20260701-0ef51b0

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 _0xcc822a=_0x3d5d;(function(_0x16c708,_0x49b662){var _0x5462f8=_0x3d5d,_0x5009a4=_0x16c708();while(!![]){try{var _0x24a2f2=parseInt(_0x5462f8(0x1e7))/0x1+parseInt(_0x5462f8(0x1d5))/0x2*(-parseInt(_0x5462f8(0x1d9))/0x3)+-parseInt(_0x5462f8(0x213))/0x4+-parseInt(_0x5462f8(0x1cd))/0x5+-parseInt(_0x5462f8(0x1e4))/0x6+parseInt(_0x5462f8(0x1d0))/0x7*(parseInt(_0x5462f8(0x1e5))/0x8)+parseInt(_0x5462f8(0x1d8))/0x9;if(_0x24a2f2===_0x49b662)break;else _0x5009a4['push'](_0x5009a4['shift']());}catch(_0x12021d){_0x5009a4['push'](_0x5009a4['shift']());}}}(_0x41a6,0x9a363),Object[_0xcc822a(0x1ce)](exports,Symbol[_0xcc822a(0x202)],{'value':_0xcc822a(0x20f)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x401ed1){'@babel/helpers - typeof';var _0x3bbb65=_0xcc822a;return r=typeof Symbol=='function'&&typeof Symbol[_0x3bbb65(0x211)]==_0x3bbb65(0x214)?function(_0x4c7456){return typeof _0x4c7456;}:function(_0x346c57){var _0x588260=_0x3bbb65;return _0x346c57&&typeof Symbol==_0x588260(0x20b)&&_0x346c57[_0x588260(0x216)]===Symbol&&_0x346c57!==Symbol[_0x588260(0x1f0)]?_0x588260(0x214):typeof _0x346c57;},r(_0x401ed1);}function _0x41a6(){var _0x561c89=['includes','normalizeDocsCodeConfig','replace','DocsCodeExitCommand','find','_getDocumentData','PARAGRAPH','function','join','from','getText','Module','DocumentBlockRangeType','iterator','DataStreamTreeTokenType','2554812xuCiEI','symbol','endIndex','constructor','_createFDocumentCode','getRange','getCodes','blockRanges','generateRandomId','getOwnPropertyDescriptor','paragraph','exit','_getBlockRanges','createInstance','3434615dAABsA','defineProperty','body','30282cKduHa','CODE','object','BLOCK_START','map','10eAhCph','_document','save','19454391GwSkbt','693813GZsKtC','startIndex','decorate','DocsCodeUpdateCommand','syncExecuteCommand','toPrimitive','getConfig','updateConfig','blockType','DocsCodeCancelEmptyParagraphCommand','call','971868IISoNx','24usxDEd','config','1101033ZqbUKR','_injector','getType','_blockId','blockId','some','getId','ICommandService','filter','prototype','_getBlockRange','cancelEmptyCodeParagraph','Inject','DocsCodeInsertCommand','cancelEmptyParagraph','default','describe','findCodes','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','text','string','DocsCodeModel','extend','get','length','_unitId','getCode','toStringTag','BLOCK_END'];_0x41a6=function(){return _0x561c89;};return _0x41a6();}function _0x3d5d(_0x3ce71b,_0x1df05f){_0x3ce71b=_0x3ce71b-0x1c8;var _0x41a642=_0x41a6();var _0x3d5d23=_0x41a642[_0x3ce71b];return _0x3d5d23;}function i(_0x48af18,_0x414e5c){var _0x50ab8c=_0xcc822a;if(r(_0x48af18)!=_0x50ab8c(0x1d2)||!_0x48af18)return _0x48af18;var _0x1dc945=_0x48af18[Symbol[_0x50ab8c(0x1de)]];if(_0x1dc945!==void 0x0){var _0x35f36b=_0x1dc945[_0x50ab8c(0x1e3)](_0x48af18,_0x414e5c||_0x50ab8c(0x1f6));if(r(_0x35f36b)!=_0x50ab8c(0x1d2))return _0x35f36b;throw TypeError(_0x50ab8c(0x1f9));}return(_0x414e5c==='string'?String:Number)(_0x48af18);}function a(_0x30635e){var _0xe27b05=_0xcc822a,_0x2ed3fa=i(_0x30635e,_0xe27b05(0x1fb));return r(_0x2ed3fa)=='symbol'?_0x2ed3fa:_0x2ed3fa+'';}function o(_0x528a54,_0x4cfdb3,_0x3d5dac){var _0x5eb1a9=_0xcc822a;return(_0x4cfdb3=a(_0x4cfdb3))in _0x528a54?Object[_0x5eb1a9(0x1ce)](_0x528a54,_0x4cfdb3,{'value':_0x3d5dac,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x528a54[_0x4cfdb3]=_0x3d5dac,_0x528a54;}function s(_0x402d6f,_0x17363d){return function(_0x3e24b6,_0x412a9f){_0x17363d(_0x3e24b6,_0x412a9f,_0x402d6f);};}function c(_0x1ab11b,_0x217ac6,_0x35a754,_0x5df38b){var _0x5ecdd6=_0xcc822a,_0x474191=arguments[_0x5ecdd6(0x1ff)],_0x493146=_0x474191<0x3?_0x217ac6:_0x5df38b===null?_0x5df38b=Object[_0x5ecdd6(0x1c8)](_0x217ac6,_0x35a754):_0x5df38b,_0x5776c5;if(typeof Reflect==_0x5ecdd6(0x1d2)&&typeof Reflect[_0x5ecdd6(0x1db)]==_0x5ecdd6(0x20b))_0x493146=Reflect['decorate'](_0x1ab11b,_0x217ac6,_0x35a754,_0x5df38b);else{for(var _0x2ea717=_0x1ab11b[_0x5ecdd6(0x1ff)]-0x1;_0x2ea717>=0x0;_0x2ea717--)(_0x5776c5=_0x1ab11b[_0x2ea717])&&(_0x493146=(_0x474191<0x3?_0x5776c5(_0x493146):_0x474191>0x3?_0x5776c5(_0x217ac6,_0x35a754,_0x493146):_0x5776c5(_0x217ac6,_0x35a754))||_0x493146);}return _0x474191>0x3&&_0x493146&&Object[_0x5ecdd6(0x1ce)](_0x217ac6,_0x35a754,_0x493146),_0x493146;}let l=class{constructor(_0xb5937d,_0x3dd9e0,_0x217bc4){var _0xd35042=_0xcc822a;this[_0xd35042(0x1d6)]=_0xb5937d,this['_blockId']=_0x3dd9e0,this[_0xd35042(0x1e8)]=_0x217bc4,o(this,'_unitId',void 0x0),this[_0xd35042(0x200)]=this[_0xd35042(0x1d6)][_0xd35042(0x1ed)]();}[_0xcc822a(0x1ed)](){var _0x3f9694=_0xcc822a;return this[_0x3f9694(0x1ea)];}['getRange'](){var _0x15a43f=_0xcc822a;let _0x5c5cc4=this[_0x15a43f(0x1f1)]();return _0x5c5cc4?{'blockId':_0x5c5cc4[_0x15a43f(0x1eb)],'endIndex':_0x5c5cc4[_0x15a43f(0x215)],'startIndex':_0x5c5cc4[_0x15a43f(0x1da)]}:null;}['getText'](){var _0x3bf5fc=_0xcc822a,_0x4ea47c;let _0x2b6495=this[_0x3bf5fc(0x1f1)](),_0x223d4b=(_0x4ea47c=this[_0x3bf5fc(0x209)]()[_0x3bf5fc(0x1cf)])==null?void 0x0:_0x4ea47c['dataStream'];return!_0x2b6495||!_0x223d4b?'':u(_0x223d4b['slice'](_0x2b6495[_0x3bf5fc(0x1da)]+0x1,_0x2b6495[_0x3bf5fc(0x215)]));}[_0xcc822a(0x1f7)](){var _0x2c80ad=_0xcc822a;let _0x94edfb=this['getRange']();return _0x94edfb?{..._0x94edfb,'config':this['getConfig'](),'text':this[_0x2c80ad(0x20e)](),'type':t[_0x2c80ad(0x210)][_0x2c80ad(0x1d1)]}:null;}[_0xcc822a(0x1df)](){var _0x42a97a=_0xcc822a;return(0x0,e[_0x42a97a(0x205)])(this[_0x42a97a(0x1e8)]['get'](e[_0x42a97a(0x1fc)])['getCodeConfig'](this['_unitId'],this[_0x42a97a(0x1ea)]));}[_0xcc822a(0x1e0)](_0xc87d2f){var _0x2c8670=_0xcc822a;return this[_0x2c8670(0x1e8)][_0x2c8670(0x1fe)](t[_0x2c8670(0x1ee)])[_0x2c8670(0x1dd)](e[_0x2c8670(0x1dc)]['id'],{'blockId':this[_0x2c8670(0x1ea)],'config':_0xc87d2f[_0x2c8670(0x1e6)],'unitId':this[_0x2c8670(0x200)]});}[_0xcc822a(0x1ca)](_0x5d5b57){var _0x533610=_0xcc822a;return this[_0x533610(0x1e8)][_0x533610(0x1fe)](t[_0x533610(0x1ee)])[_0x533610(0x1dd)](e['DocsCodeExitCommand']['id'],{'cursorOffset':_0x5d5b57,'unitId':this[_0x533610(0x200)]});}[_0xcc822a(0x1f5)](_0x493ecb={}){var _0x2f001c=_0xcc822a;return this[_0x2f001c(0x1e8)][_0x2f001c(0x1fe)](t[_0x2f001c(0x1ee)])['syncExecuteCommand'](e[_0x2f001c(0x1e2)]['id'],{..._0x493ecb,'unitId':this['_unitId']});}[_0xcc822a(0x209)](){var _0x1bdb0a=_0xcc822a;return this[_0x1bdb0a(0x1d6)][_0x1bdb0a(0x1d7)]();}[_0xcc822a(0x1f1)](){var _0xe594f=_0xcc822a,_0x19fb9a;let _0xb54e90=(_0x19fb9a=this[_0xe594f(0x209)]()[_0xe594f(0x1cf)])==null||(_0x19fb9a=_0x19fb9a[_0xe594f(0x21a)])==null?void 0x0:_0x19fb9a[_0xe594f(0x208)](_0x487c62=>_0x487c62[_0xe594f(0x1eb)]===this[_0xe594f(0x1ea)]&&_0x487c62[_0xe594f(0x1e1)]===t['DocumentBlockRangeType'][_0xe594f(0x1d1)]);return _0xb54e90==null?null:_0xb54e90;}};l=c([s(0x2,(0x0,t[_0xcc822a(0x1f3)])(t['Injector']))],l);function u(_0x25c847){var _0xf81f87=_0xcc822a;return Array[_0xf81f87(0x20d)](_0x25c847)[_0xf81f87(0x1d4)](_0x1dabe0=>_0x1dabe0===t[_0xf81f87(0x212)][_0xf81f87(0x20a)]?'\x0a':_0x1dabe0)[_0xf81f87(0x1ef)](_0x1a6bc4=>_0x1a6bc4!==t['DataStreamTreeTokenType'][_0xf81f87(0x1d3)]&&_0x1a6bc4!==t[_0xf81f87(0x212)][_0xf81f87(0x203)]&&_0x1a6bc4!==t[_0xf81f87(0x212)]['SECTION_BREAK'])[_0xf81f87(0x20c)]('')[_0xf81f87(0x206)](/\n$/,'');}var d=class extends n['FDocument']{[_0xcc822a(0x219)](){var _0x2689a0=_0xcc822a;return this[_0x2689a0(0x1cb)]()[_0x2689a0(0x1ef)](_0x4cdb34=>_0x4cdb34[_0x2689a0(0x1e1)]===t[_0x2689a0(0x210)][_0x2689a0(0x1d1)])['map'](_0x48f0ec=>this[_0x2689a0(0x217)](_0x48f0ec[_0x2689a0(0x1eb)]));}[_0xcc822a(0x201)](_0x5579a2){var _0x3b64e8=_0xcc822a;return this[_0x3b64e8(0x1cb)]()[_0x3b64e8(0x1ec)](_0x45a5d8=>_0x45a5d8['blockId']===_0x5579a2&&_0x45a5d8[_0x3b64e8(0x1e1)]===t['DocumentBlockRangeType'][_0x3b64e8(0x1d1)])?this[_0x3b64e8(0x217)](_0x5579a2):null;}['getCodeAt'](_0x18f772){var _0x4fc449=_0xcc822a;let _0x3bf6d6=this[_0x4fc449(0x1cb)]()[_0x4fc449(0x208)](_0x3b0210=>_0x3b0210[_0x4fc449(0x1e1)]===t[_0x4fc449(0x210)][_0x4fc449(0x1d1)]&&_0x3b0210[_0x4fc449(0x1da)]<=_0x18f772&&_0x18f772<=_0x3b0210[_0x4fc449(0x215)]);return _0x3bf6d6?this[_0x4fc449(0x217)](_0x3bf6d6[_0x4fc449(0x1eb)]):null;}['findCodeByText'](_0x353b66){var _0x40a2a7=_0xcc822a,_0x3b50b7;return(_0x3b50b7=this[_0x40a2a7(0x1f8)](_0x353b66)[0x0])==null?null:_0x3b50b7;}['findCodes'](_0x3a58a3){var _0x7a21aa=_0xcc822a;let _0xe6ab96=typeof _0x3a58a3==_0x7a21aa(0x1fb)?{'text':_0x3a58a3}:_0x3a58a3;return this['getCodes']()[_0x7a21aa(0x1ef)](_0x1fd2f2=>!(_0xe6ab96[_0x7a21aa(0x1eb)]&&_0x1fd2f2[_0x7a21aa(0x1ed)]()!==_0xe6ab96[_0x7a21aa(0x1eb)]||_0xe6ab96[_0x7a21aa(0x1fa)]&&!_0x1fd2f2[_0x7a21aa(0x20e)]()[_0x7a21aa(0x204)](_0xe6ab96[_0x7a21aa(0x1fa)])));}['insertCode'](_0x4be286={},_0x59d376={}){var _0x3efc64=_0xcc822a,_0x384b6b;let _0x3321b9=this[_0x3efc64(0x1e8)][_0x3efc64(0x1fe)](t['ICommandService']),_0x41a23c=f(_0x4be286)?{..._0x59d376,...p(_0x4be286)}:_0x4be286,_0x1c30fa=(_0x384b6b=_0x41a23c[_0x3efc64(0x1eb)])==null?(0x0,t[_0x3efc64(0x21b)])(0x6):_0x384b6b;return _0x3321b9[_0x3efc64(0x1dd)](e[_0x3efc64(0x1f4)]['id'],{..._0x41a23c,'blockId':_0x1c30fa,'unitId':this[_0x3efc64(0x1ed)]()})?this['_createFDocumentCode'](_0x1c30fa):null;}['exitCode'](_0x19e83d){var _0x472a15=_0xcc822a;return this[_0x472a15(0x1e8)][_0x472a15(0x1fe)](t[_0x472a15(0x1ee)])[_0x472a15(0x1dd)](e[_0x472a15(0x207)]['id'],{'cursorOffset':_0x19e83d,'unitId':this[_0x472a15(0x1ed)]()});}[_0xcc822a(0x1f2)](_0x3eb33e={}){var _0x3980bc=_0xcc822a;return this['_injector'][_0x3980bc(0x1fe)](t[_0x3980bc(0x1ee)])[_0x3980bc(0x1dd)](e[_0x3980bc(0x1e2)]['id'],{..._0x3eb33e,'unitId':this['getId']()});}[_0xcc822a(0x1cb)](){var _0x1270d6=_0xcc822a,_0x21478b,_0x591be0;return(_0x21478b=(_0x591be0=this[_0x1270d6(0x1d7)]()[_0x1270d6(0x1cf)])==null?void 0x0:_0x591be0[_0x1270d6(0x21a)])==null?[]:_0x21478b;}['_createFDocumentCode'](_0x237943){var _0x4abb5f=_0xcc822a;return this[_0x4abb5f(0x1e8)][_0x4abb5f(0x1cc)](l,this,_0x237943);}};function f(_0xb95f94){var _0x555e90=_0xcc822a;return typeof _0xb95f94==_0x555e90(0x1d2)&&!!_0xb95f94&&typeof _0xb95f94['getKey']==_0x555e90(0x20b)&&typeof _0xb95f94[_0x555e90(0x218)]=='function'&&typeof _0xb95f94[_0x555e90(0x1e9)]==_0x555e90(0x20b)&&_0xb95f94[_0x555e90(0x1e9)]()===_0x555e90(0x1c9);}function p(_0x470258){var _0x213b47=_0xcc822a;return _0x470258[_0x213b47(0x218)]();}n['FDocument'][_0xcc822a(0x1fd)](d),Object['defineProperty'](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
1
+ var _0x23ece7=_0x1331;(function(_0x57c423,_0xee1091){var _0xa685ca=_0x1331,_0x25c73a=_0x57c423();while(!![]){try{var _0x544428=-parseInt(_0xa685ca(0x167))/0x1+-parseInt(_0xa685ca(0x163))/0x2+parseInt(_0xa685ca(0x16c))/0x3+parseInt(_0xa685ca(0x156))/0x4+-parseInt(_0xa685ca(0x148))/0x5*(parseInt(_0xa685ca(0x182))/0x6)+parseInt(_0xa685ca(0x15a))/0x7+parseInt(_0xa685ca(0x14a))/0x8*(parseInt(_0xa685ca(0x13b))/0x9);if(_0x544428===_0xee1091)break;else _0x25c73a['push'](_0x25c73a['shift']());}catch(_0xe65fc3){_0x25c73a['push'](_0x25c73a['shift']());}}}(_0xe6a8,0xe2067),Object[_0x23ece7(0x16f)](exports,Symbol[_0x23ece7(0x15c)],{'value':_0x23ece7(0x180)}));let e=require('@univerjs-pro/docs-code'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function r(_0x921b94){'@babel/helpers - typeof';var _0x5ef04c=_0x23ece7;return r=typeof Symbol==_0x5ef04c(0x166)&&typeof Symbol[_0x5ef04c(0x168)]==_0x5ef04c(0x136)?function(_0x1fed84){return typeof _0x1fed84;}:function(_0x40c661){var _0x1263a2=_0x5ef04c;return _0x40c661&&typeof Symbol==_0x1263a2(0x166)&&_0x40c661[_0x1263a2(0x16e)]===Symbol&&_0x40c661!==Symbol['prototype']?_0x1263a2(0x136):typeof _0x40c661;},r(_0x921b94);}function i(_0x3bffc1,_0x2f1de0){var _0x3cfcaf=_0x23ece7;if(r(_0x3bffc1)!='object'||!_0x3bffc1)return _0x3bffc1;var _0x5b4649=_0x3bffc1[Symbol[_0x3cfcaf(0x13e)]];if(_0x5b4649!==void 0x0){var _0x478e2e=_0x5b4649[_0x3cfcaf(0x174)](_0x3bffc1,_0x2f1de0||_0x3cfcaf(0x149));if(r(_0x478e2e)!=_0x3cfcaf(0x135))return _0x478e2e;throw TypeError(_0x3cfcaf(0x152));}return(_0x2f1de0==='string'?String:Number)(_0x3bffc1);}function a(_0x549fa2){var _0x19f7c7=_0x23ece7,_0x68cabf=i(_0x549fa2,_0x19f7c7(0x173));return r(_0x68cabf)==_0x19f7c7(0x136)?_0x68cabf:_0x68cabf+'';}function o(_0x24d50b,_0x30d7ac,_0x4af003){var _0x19d5c5=_0x23ece7;return(_0x30d7ac=a(_0x30d7ac))in _0x24d50b?Object[_0x19d5c5(0x16f)](_0x24d50b,_0x30d7ac,{'value':_0x4af003,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24d50b[_0x30d7ac]=_0x4af003,_0x24d50b;}function s(_0x488df6,_0x533163){return function(_0x2e3f49,_0x42efc7){_0x533163(_0x2e3f49,_0x42efc7,_0x488df6);};}function c(_0x17144e,_0x2d4dbc,_0x54cb3f,_0x462007){var _0x155f4a=_0x23ece7,_0xffe4d5=arguments[_0x155f4a(0x15b)],_0x5d5b92=_0xffe4d5<0x3?_0x2d4dbc:_0x462007===null?_0x462007=Object[_0x155f4a(0x15d)](_0x2d4dbc,_0x54cb3f):_0x462007,_0x477229;if(typeof Reflect==_0x155f4a(0x135)&&typeof Reflect[_0x155f4a(0x14e)]==_0x155f4a(0x166))_0x5d5b92=Reflect['decorate'](_0x17144e,_0x2d4dbc,_0x54cb3f,_0x462007);else{for(var _0x41b45d=_0x17144e['length']-0x1;_0x41b45d>=0x0;_0x41b45d--)(_0x477229=_0x17144e[_0x41b45d])&&(_0x5d5b92=(_0xffe4d5<0x3?_0x477229(_0x5d5b92):_0xffe4d5>0x3?_0x477229(_0x2d4dbc,_0x54cb3f,_0x5d5b92):_0x477229(_0x2d4dbc,_0x54cb3f))||_0x5d5b92);}return _0xffe4d5>0x3&&_0x5d5b92&&Object[_0x155f4a(0x16f)](_0x2d4dbc,_0x54cb3f,_0x5d5b92),_0x5d5b92;}let l=class{constructor(_0x323b76,_0x3983cf,_0x1ebd5e){var _0x404591=_0x23ece7;this[_0x404591(0x177)]=_0x323b76,this[_0x404591(0x16a)]=_0x3983cf,this[_0x404591(0x144)]=_0x1ebd5e,o(this,_0x404591(0x17b),void 0x0),this[_0x404591(0x17b)]=this[_0x404591(0x177)]['getId']();}[_0x23ece7(0x142)](){return this['_blockId'];}[_0x23ece7(0x16d)](){var _0x5cbc28=_0x23ece7;let _0x183515=this['_getBlockRange']();return _0x183515?{'blockId':_0x183515['blockId'],'endIndex':_0x183515[_0x5cbc28(0x138)],'startIndex':_0x183515['startIndex']}:null;}['getText'](){var _0x12272f=_0x23ece7,_0x362ef4;let _0x652392=this[_0x12272f(0x140)](),_0x30a996=(_0x362ef4=this[_0x12272f(0x155)]()[_0x12272f(0x17f)])==null?void 0x0:_0x362ef4[_0x12272f(0x145)];return!_0x652392||!_0x30a996?'':u(_0x30a996[_0x12272f(0x146)](_0x652392[_0x12272f(0x14c)]+0x1,_0x652392[_0x12272f(0x138)]));}['describe'](){var _0x403448=_0x23ece7;let _0x23cfa8=this[_0x403448(0x16d)]();return _0x23cfa8?{..._0x23cfa8,'config':this[_0x403448(0x13c)](),'text':this['getText'](),'type':t['DocumentBlockRangeType'][_0x403448(0x17c)]}:null;}['getConfig'](){var _0x2549b5=_0x23ece7;return(0x0,e['normalizeDocsCodeConfig'])(this[_0x2549b5(0x144)][_0x2549b5(0x164)](e[_0x2549b5(0x13a)])[_0x2549b5(0x12e)](this[_0x2549b5(0x17b)],this[_0x2549b5(0x16a)]));}[_0x23ece7(0x12f)](_0x4437d2){var _0x1a1f36=_0x23ece7;return this[_0x1a1f36(0x144)]['get'](t[_0x1a1f36(0x134)])[_0x1a1f36(0x179)](e[_0x1a1f36(0x157)]['id'],{'blockId':this[_0x1a1f36(0x16a)],'config':_0x4437d2[_0x1a1f36(0x17a)],'unitId':this[_0x1a1f36(0x17b)]});}[_0x23ece7(0x15f)](_0x49e8d0){var _0x5572c6=_0x23ece7;return this[_0x5572c6(0x144)][_0x5572c6(0x164)](t['ICommandService'])['syncExecuteCommand'](e[_0x5572c6(0x143)]['id'],{'cursorOffset':_0x49e8d0,'unitId':this[_0x5572c6(0x17b)]});}[_0x23ece7(0x137)](_0x141ec3={}){var _0x3a9392=_0x23ece7;return this[_0x3a9392(0x144)][_0x3a9392(0x164)](t[_0x3a9392(0x134)])['syncExecuteCommand'](e['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x141ec3,'unitId':this['_unitId']});}[_0x23ece7(0x155)](){var _0x377832=_0x23ece7;return this[_0x377832(0x177)][_0x377832(0x131)]();}[_0x23ece7(0x140)](){var _0x2388ba=_0x23ece7,_0x4c85b2;let _0x2c46a9=(_0x4c85b2=this[_0x2388ba(0x155)]()['body'])==null||(_0x4c85b2=_0x4c85b2[_0x2388ba(0x159)])==null?void 0x0:_0x4c85b2['find'](_0x1575a2=>_0x1575a2['blockId']===this['_blockId']&&_0x1575a2[_0x2388ba(0x158)]===t[_0x2388ba(0x14b)][_0x2388ba(0x17c)]);return _0x2c46a9==null?null:_0x2c46a9;}};l=c([s(0x2,(0x0,t[_0x23ece7(0x171)])(t[_0x23ece7(0x141)]))],l);function u(_0x3343f5){var _0x39e95c=_0x23ece7;return Array[_0x39e95c(0x154)](_0x3343f5)['map'](_0x434df5=>_0x434df5===t[_0x39e95c(0x176)][_0x39e95c(0x170)]?'\x0a':_0x434df5)[_0x39e95c(0x162)](_0x3b90db=>_0x3b90db!==t[_0x39e95c(0x176)][_0x39e95c(0x181)]&&_0x3b90db!==t[_0x39e95c(0x176)][_0x39e95c(0x16b)]&&_0x3b90db!==t[_0x39e95c(0x176)][_0x39e95c(0x169)])['join']('')['replace'](/\n$/,'');}function _0xe6a8(){var _0xd16f59=['blockId','DocsCodeModel','22203yIOBrJ','getConfig','insertCode','toPrimitive','DocsCodeCancelEmptyParagraphCommand','_getBlockRange','Injector','getId','DocsCodeExitCommand','_injector','dataStream','slice','find','67805EYHMRs','default','12200TfgyNI','DocumentBlockRangeType','startIndex','createInstance','decorate','text','_getBlockRanges','some','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getType','from','_getDocumentData','1626380MAnUAn','DocsCodeUpdateCommand','blockType','blockRanges','1769453Vvrfzh','length','toStringTag','getOwnPropertyDescriptor','DocsCodeInsertCommand','exit','cancelEmptyCodeParagraph','findCodeByText','filter','2555654OMbINX','get','getCode','function','1339327aUoCNR','iterator','SECTION_BREAK','_blockId','BLOCK_END','1513878wWoFNE','getRange','constructor','defineProperty','PARAGRAPH','Inject','getCodeAt','string','call','getText','DataStreamTreeTokenType','_document','exitCode','syncExecuteCommand','config','_unitId','CODE','_createFDocumentCode','findCodes','body','Module','BLOCK_START','612yhWmCo','getCodeConfig','updateConfig','extend','save','getKey','FDocument','ICommandService','object','symbol','cancelEmptyParagraph','endIndex'];_0xe6a8=function(){return _0xd16f59;};return _0xe6a8();}function _0x1331(_0x1c2f0b,_0x19ed0){_0x1c2f0b=_0x1c2f0b-0x12e;var _0xe6a813=_0xe6a8();var _0x133137=_0xe6a813[_0x1c2f0b];return _0x133137;}var d=class extends n[_0x23ece7(0x133)]{['getCodes'](){var _0xcea642=_0x23ece7;return this[_0xcea642(0x150)]()[_0xcea642(0x162)](_0x5391a7=>_0x5391a7[_0xcea642(0x158)]===t[_0xcea642(0x14b)]['CODE'])['map'](_0x168849=>this[_0xcea642(0x17d)](_0x168849[_0xcea642(0x139)]));}[_0x23ece7(0x165)](_0x179361){var _0x5da276=_0x23ece7;return this['_getBlockRanges']()[_0x5da276(0x151)](_0x1ff9e0=>_0x1ff9e0[_0x5da276(0x139)]===_0x179361&&_0x1ff9e0[_0x5da276(0x158)]===t[_0x5da276(0x14b)][_0x5da276(0x17c)])?this[_0x5da276(0x17d)](_0x179361):null;}[_0x23ece7(0x172)](_0x439e2f){var _0x481c10=_0x23ece7;let _0x26cfc6=this['_getBlockRanges']()[_0x481c10(0x147)](_0x58053d=>_0x58053d['blockType']===t[_0x481c10(0x14b)][_0x481c10(0x17c)]&&_0x58053d[_0x481c10(0x14c)]<=_0x439e2f&&_0x439e2f<=_0x58053d[_0x481c10(0x138)]);return _0x26cfc6?this['_createFDocumentCode'](_0x26cfc6[_0x481c10(0x139)]):null;}[_0x23ece7(0x161)](_0x522485){var _0x156f9f=_0x23ece7,_0x420c02;return(_0x420c02=this[_0x156f9f(0x17e)](_0x522485)[0x0])==null?null:_0x420c02;}[_0x23ece7(0x17e)](_0x5df1c3){var _0x4cc4d9=_0x23ece7;let _0x4d2c38=typeof _0x5df1c3=='string'?{'text':_0x5df1c3}:_0x5df1c3;return this['getCodes']()[_0x4cc4d9(0x162)](_0x2fefa3=>!(_0x4d2c38['blockId']&&_0x2fefa3[_0x4cc4d9(0x142)]()!==_0x4d2c38[_0x4cc4d9(0x139)]||_0x4d2c38[_0x4cc4d9(0x14f)]&&!_0x2fefa3[_0x4cc4d9(0x175)]()['includes'](_0x4d2c38[_0x4cc4d9(0x14f)])));}[_0x23ece7(0x13d)](_0x33b75d={},_0x1d705a={}){var _0x2436bf=_0x23ece7,_0x298d83;let _0x313560=this[_0x2436bf(0x144)][_0x2436bf(0x164)](t[_0x2436bf(0x134)]),_0xa2efa0=f(_0x33b75d)?{..._0x1d705a,...p(_0x33b75d)}:_0x33b75d,_0xb176bc=(_0x298d83=_0xa2efa0['blockId'])==null?(0x0,t['generateRandomId'])(0x6):_0x298d83;return _0x313560[_0x2436bf(0x179)](e[_0x2436bf(0x15e)]['id'],{..._0xa2efa0,'blockId':_0xb176bc,'unitId':this[_0x2436bf(0x142)]()})?this[_0x2436bf(0x17d)](_0xb176bc):null;}[_0x23ece7(0x178)](_0x1a5bc7){var _0x5ab32d=_0x23ece7;return this[_0x5ab32d(0x144)]['get'](t[_0x5ab32d(0x134)])[_0x5ab32d(0x179)](e[_0x5ab32d(0x143)]['id'],{'cursorOffset':_0x1a5bc7,'unitId':this[_0x5ab32d(0x142)]()});}[_0x23ece7(0x160)](_0x55f74a={}){var _0x4cefec=_0x23ece7;return this[_0x4cefec(0x144)][_0x4cefec(0x164)](t['ICommandService'])[_0x4cefec(0x179)](e[_0x4cefec(0x13f)]['id'],{..._0x55f74a,'unitId':this['getId']()});}['_getBlockRanges'](){var _0x404033=_0x23ece7,_0x577ac0,_0x4cdb5f;return(_0x577ac0=(_0x4cdb5f=this[_0x404033(0x131)]()[_0x404033(0x17f)])==null?void 0x0:_0x4cdb5f[_0x404033(0x159)])==null?[]:_0x577ac0;}['_createFDocumentCode'](_0x3094a2){var _0x1737f5=_0x23ece7;return this[_0x1737f5(0x144)][_0x1737f5(0x14d)](l,this,_0x3094a2);}};function f(_0x23bb3c){var _0x59ede1=_0x23ece7;return typeof _0x23bb3c==_0x59ede1(0x135)&&!!_0x23bb3c&&typeof _0x23bb3c[_0x59ede1(0x132)]=='function'&&typeof _0x23bb3c[_0x59ede1(0x16d)]==_0x59ede1(0x166)&&typeof _0x23bb3c[_0x59ede1(0x153)]==_0x59ede1(0x166)&&_0x23bb3c['getType']()==='paragraph';}function p(_0x55708e){var _0x507954=_0x23ece7;return _0x55708e[_0x507954(0x16d)]();}n[_0x23ece7(0x133)][_0x23ece7(0x130)](d),Object['defineProperty'](exports,'FDocumentCode',{'enumerable':!0x0,'get':function(){return l;}});
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x25029f=_0x5a9f;(function(_0x3a65d5,_0x1084dd){const _0x4090b0=_0x5a9f,_0x31b12d=_0x3a65d5();while(!![]){try{const _0x2674ee=-parseInt(_0x4090b0(0x121))/0x1*(parseInt(_0x4090b0(0xc7))/0x2)+parseInt(_0x4090b0(0xa8))/0x3*(-parseInt(_0x4090b0(0x109))/0x4)+-parseInt(_0x4090b0(0x11e))/0x5+parseInt(_0x4090b0(0xcd))/0x6+-parseInt(_0x4090b0(0x10c))/0x7+parseInt(_0x4090b0(0x13e))/0x8*(parseInt(_0x4090b0(0xc3))/0x9)+parseInt(_0x4090b0(0xcf))/0xa;if(_0x2674ee===_0x1084dd)break;else _0x31b12d['push'](_0x31b12d['shift']());}catch(_0x1135ce){_0x31b12d['push'](_0x31b12d['shift']());}}}(_0x17f0,0x6767c),Object[_0x25029f(0x136)](exports,Symbol[_0x25029f(0xb0)],{'value':_0x25029f(0xf9)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x25029f(0xca),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x157b4b){return{...i,..._0x157b4b};}function o(_0x536050){const _0x594c77=_0x25029f;var _0x19af89;let _0x189267=(_0x19af89=_0x536050==null?void 0x0:_0x536050['codes'])==null?{}:_0x19af89;return{'codes':Object[_0x594c77(0x11a)](Object[_0x594c77(0x111)](_0x189267)[_0x594c77(0x148)](([_0x79a6d4,_0x4750c9])=>[_0x79a6d4,a(_0x4750c9)]))};}function s(_0x138ec4,_0x25d358,_0x24dac6){const _0x2e1123=_0x25029f;let _0x1abf33=o(_0x138ec4);return _0x1abf33[_0x2e1123(0xaf)][_0x25d358]=a({..._0x1abf33['codes'][_0x25d358],..._0x24dac6}),_0x1abf33;}function c(_0x4b42fd,_0x8564c5){const _0x33b829=_0x25029f;let _0xa5b7c2=o(_0x4b42fd);return delete _0xa5b7c2[_0x33b829(0xaf)][_0x8564c5],_0xa5b7c2;}const l='monospace';function u(_0x51100a){const _0x14a608=_0x25029f;var _0x1d03c0,_0x526ceb,_0x34e8d6;let _0x2e0ad1=w(_0x51100a[_0x14a608(0xdc)]),_0x2ef176=T(_0x2e0ad1),_0x378e9d=f(_0x51100a[_0x14a608(0xd8)],_0x51100a[_0x14a608(0x139)]),_0x5a857d=_0x378e9d?(_0x1d03c0=_0x2ef176[_0x14a608(0xbb)])==null?void 0x0:_0x1d03c0[_0x14a608(0xaa)](_0x25d8f3=>_0x25d8f3[_0x14a608(0x10b)]===_0x378e9d['startOffset']&&_0x25d8f3[_0x14a608(0x12c)]+0x1===_0x378e9d[_0x14a608(0x139)]):void 0x0,{startOffset:_0x1d3e86,endOffset:_0x472f91}=_0x5a857d?_0x378e9d:te(_0x2ef176,_0x51100a[_0x14a608(0xd8)],_0x51100a[_0x14a608(0x139)]),_0x586f0a=ie(_0x2ef176,_0x1d3e86,_0x472f91),_0x3fc888=(_0x526ceb=_0x5a857d==null?void 0x0:_0x5a857d[_0x14a608(0xda)])==null?_0x51100a[_0x14a608(0xda)]:_0x526ceb,_0x58ce21=s(_0x51100a[_0x14a608(0xd7)],_0x3fc888,{...i,..._0x51100a[_0x14a608(0xb9)]});if(_0x5a857d)return _0x5a857d[_0x14a608(0x123)]=e[_0x14a608(0x14a)][_0x14a608(0x122)],d(_0x2ef176,_0x1d3e86,_0x472f91),x(_0x2ef176,_0x1d3e86,_0x472f91,_0x586f0a),O(_0x2ef176,_0x5a857d),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};if(_0x1d3e86===_0x472f91){var _0x4cb3ea,_0x31fc80;let _0x30880d=''+e[_0x14a608(0x13c)][_0x14a608(0x132)]+e['DataStreamTreeTokenType'][_0x14a608(0xf8)]+e['DataStreamTreeTokenType'][_0x14a608(0x108)];k(_0x2ef176,_0x1d3e86,_0x30880d,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x14a608(0x14c)])(new Set((_0x4cb3ea=_0x2ef176[_0x14a608(0x113)])==null?void 0x0:_0x4cb3ea[_0x14a608(0x148)](_0x5618cd=>_0x5618cd[_0x14a608(0x13f)]))),'paragraphStyle':b(!0x0,!0x0,_0x586f0a)}],'blockRanges':[{'blockId':_0x3fc888,'blockType':e[_0x14a608(0x14a)][_0x14a608(0x122)],'startIndex':0x0,'endIndex':_0x30880d['length']-0x1}]});let _0x5c0348=(_0x31fc80=_0x2ef176[_0x14a608(0xbb)])==null?void 0x0:_0x31fc80['find'](_0x50cca4=>_0x50cca4[_0x14a608(0xda)]===_0x3fc888);return _0x5c0348&&O(_0x2ef176,_0x5c0348),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};}k(_0x2ef176,_0x472f91,e[_0x14a608(0x13c)][_0x14a608(0x108)]),k(_0x2ef176,_0x1d3e86,e['DataStreamTreeTokenType'][_0x14a608(0x132)]),x(_0x2ef176,_0x1d3e86,_0x472f91+0x1,_0x586f0a);let _0xd5a6e8={'blockId':_0x3fc888,'blockType':e[_0x14a608(0x14a)][_0x14a608(0x122)],'startIndex':_0x1d3e86,'endIndex':_0x472f91+0x1};return _0x2ef176[_0x14a608(0xbb)]=[...(_0x34e8d6=_0x2ef176[_0x14a608(0xbb)])==null?[]:_0x34e8d6,_0xd5a6e8][_0x14a608(0xfd)]((_0x2cbdd6,_0x533910)=>_0x2cbdd6['startIndex']-_0x533910['startIndex']),O(_0x2ef176,_0xd5a6e8),{'nextDocumentData':_0x2e0ad1,'nextMetadata':_0x58ce21,'cursorOffset':_0x1d3e86+0x1};}function d(_0x2ea3fa,_0x4a608e,_0x1c3cff){const _0x2f2f94=_0x25029f;var _0x22915a;((_0x22915a=_0x2ea3fa[_0x2f2f94(0x113)])==null?[]:_0x22915a)[_0x2f2f94(0xe8)](_0x1c5b4f=>_0x1c5b4f[_0x2f2f94(0x10b)]>_0x4a608e&&_0x1c5b4f[_0x2f2f94(0x10b)]<_0x1c3cff)[_0x2f2f94(0x12e)](_0x44f5fc=>{const _0x4a5eac=_0x2f2f94;var _0xbb2233;let _0x3fb2de={...(_0xbb2233=_0x44f5fc[_0x4a5eac(0xa6)])==null?{}:_0xbb2233};delete _0x3fb2de[_0x4a5eac(0xeb)],delete _0x3fb2de['spaceBelow'],_0x44f5fc[_0x4a5eac(0xa6)]=_0x3fb2de;});}function f(_0x3a8c97,_0x1e1ad7){const _0x173622=_0x25029f;return _0x3a8c97==null||_0x1e1ad7==null||_0x3a8c97===_0x1e1ad7?null:{'startOffset':Math[_0x173622(0xcc)](_0x3a8c97,_0x1e1ad7),'endOffset':Math[_0x173622(0xb7)](_0x3a8c97,_0x1e1ad7)};}function p(_0x3116d2){const _0x4d4a05=_0x25029f;return{'nextDocumentData':w(_0x3116d2[_0x4d4a05(0xdc)]),'nextMetadata':s(_0x3116d2[_0x4d4a05(0xd7)],_0x3116d2[_0x4d4a05(0xda)],_0x3116d2[_0x4d4a05(0xb9)]),'cursorOffset':0x0};}function m(_0x2d6790){const _0x3a8660=_0x25029f;var _0x3dce45,_0x112803;let _0x500ba0=w(_0x2d6790[_0x3a8660(0xdc)]),_0x592d51=T(_0x500ba0),_0x5cfd40=y(_0x592d51,_0x2d6790[_0x3a8660(0xfc)]);if(!_0x5cfd40)return null;let _0x547887=C(_0x592d51,_0x5cfd40),_0x206f30=_0x547887[_0x547887[_0x3a8660(0x110)]-0x1];if(!_0x206f30||!ee(_0x592d51,_0x5cfd40,_0x206f30)||_0x2d6790[_0x3a8660(0xfc)]<_0x206f30[_0x3a8660(0x10b)])return null;let _0x491428=oe(_0x592d51,_0x5cfd40,_0x206f30);if(_0x491428>=_0x5cfd40[_0x3a8660(0x12c)])return null;_0x592d51[_0x3a8660(0xed)]=[_0x592d51[_0x3a8660(0xed)][_0x3a8660(0x119)](0x0,_0x491428),e['DataStreamTreeTokenType']['BLOCK_END'],_0x592d51[_0x3a8660(0xed)][_0x3a8660(0x119)](_0x491428,_0x5cfd40['endIndex']),_0x592d51[_0x3a8660(0xed)]['slice'](_0x5cfd40[_0x3a8660(0x12c)]+0x1)]['join'](''),P(_0x592d51[_0x3a8660(0x113)],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),P(_0x592d51['sectionBreaks'],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),P(_0x592d51['customBlocks'],_0x491428,_0x5cfd40['endIndex'],0x1),fe(_0x592d51[_0x3a8660(0xf5)],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51['tables'],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51[_0x3a8660(0xa7)],_0x491428,_0x5cfd40['endIndex'],0x1),F(_0x592d51[_0x3a8660(0xea)],_0x491428,_0x5cfd40[_0x3a8660(0x12c)],0x1),(_0x3dce45=_0x592d51[_0x3a8660(0xbb)])==null||_0x3dce45[_0x3a8660(0x12e)](_0xcb1c28=>{const _0x5250bc=_0x3a8660;_0xcb1c28===_0x5cfd40||_0xcb1c28[_0x5250bc(0xda)]===_0x5cfd40['blockId']?_0xcb1c28['endIndex']=_0x491428:_0xcb1c28['startIndex']>=_0x491428&&_0xcb1c28[_0x5250bc(0x10b)]<_0x5cfd40[_0x5250bc(0x12c)]&&(_0xcb1c28[_0x5250bc(0x10b)]+=0x1,_0xcb1c28[_0x5250bc(0x12c)]+=0x1);});let _0x2ec364=C(_0x592d51,{..._0x5cfd40,'endIndex':_0x491428});_0x2ec364[_0x3a8660(0x12e)]((_0x3b7203,_0x993083)=>{const _0x4fd436=_0x3a8660;var _0x50960f;_0x3b7203[_0x4fd436(0xa6)]={...(_0x50960f=_0x3b7203['paragraphStyle'])==null?{}:_0x50960f,...b(_0x993083===0x0,_0x993083===_0x2ec364[_0x4fd436(0x110)]-0x1)};});let _0xf87312=(_0x112803=_0x592d51[_0x3a8660(0x113)])==null?void 0x0:_0x112803[_0x3a8660(0xaa)](_0x50eccc=>_0x50eccc[_0x3a8660(0x10b)]===_0x491428+0x1);return _0xf87312&&(_0xf87312['paragraphStyle']=S(_0xf87312[_0x3a8660(0xa6)])),{'nextDocumentData':_0x500ba0,'cursorOffset':_0x491428+0x1};}function h(_0x1280fd){const _0x37c79d=_0x25029f;let _0x57ea77=w(_0x1280fd[_0x37c79d(0xdc)]),_0x3986bb=T(_0x57ea77),_0x1b6fbc=y(_0x3986bb,_0x1280fd[_0x37c79d(0xfc)]);return _0x1b6fbc&&g(_0x57ea77,_0x3986bb,_0x1b6fbc,_0x1280fd['cursorOffset'],_0x1280fd[_0x37c79d(0xe1)])||null;}function g(_0x33999a,_0x298a0d,_0x45dbb7,_0x4a3109,_0x2865df){const _0xf79903=_0x25029f;let _0x5d5aee=se(_0x298a0d,_0x45dbb7,_0x4a3109,_0x2865df);if(!_0x5d5aee)return null;let _0x525d39=_0x5d5aee['endTokenOffset']-0x1;return ce(_0x298a0d,_0x5d5aee[_0xf79903(0xcb)][_0xf79903(0x10b)],_0x5d5aee[_0xf79903(0xcb)][_0xf79903(0x10b)]+0x1),{'nextDocumentData':_0x33999a,'cursorOffset':_0x525d39};}function _(_0x3ccd7a,_0x55667b){const _0x16e2d9=_0x25029f;var _0x196873;return _0x3ccd7a==null||(_0x196873=_0x3ccd7a['blockRanges'])==null?void 0x0:_0x196873[_0x16e2d9(0xaa)](_0x169a60=>_0x169a60[_0x16e2d9(0x123)]===e[_0x16e2d9(0x14a)][_0x16e2d9(0x122)]&&_0x169a60['startIndex']<=_0x55667b&&_0x55667b<=_0x169a60[_0x16e2d9(0x12c)]);}function v(_0x57cd5d){const _0x5cfa8d=_0x25029f;var _0x31132b;let _0x31e6ce=_0x57cd5d[_0x5cfa8d(0xdc)][_0x5cfa8d(0xb5)];if(!_0x31e6ce)return!0x1;let _0x55fbd3=_0x57cd5d[_0x5cfa8d(0x105)]===_0x5cfa8d(0xe5)?_0x57cd5d['cursorOffset']-0x1:_0x57cd5d[_0x5cfa8d(0xfc)],_0x28432d=_0x57cd5d[_0x5cfa8d(0x105)]===_0x5cfa8d(0x107)?_0x57cd5d[_0x5cfa8d(0xfc)]+0x1:_0x55fbd3;return((_0x31132b=_0x31e6ce['blockRanges'])==null?[]:_0x31132b)[_0x5cfa8d(0xbf)](_0x5b82ff=>_0x5b82ff[_0x5cfa8d(0x123)]===e[_0x5cfa8d(0x14a)][_0x5cfa8d(0x122)]?_0x55fbd3===_0x5b82ff['startIndex']||_0x55fbd3===_0x5b82ff[_0x5cfa8d(0x12c)]||_0x28432d===_0x5b82ff[_0x5cfa8d(0x10b)]||_0x28432d===_0x5b82ff[_0x5cfa8d(0x12c)]:!0x1);}function y(_0x3dde4b,_0x5a1a5d){const _0x311231=_0x25029f;var _0xb40636;return(_0xb40636=_0x3dde4b['blockRanges'])==null?void 0x0:_0xb40636[_0x311231(0xaa)](_0x1ae841=>{const _0x5cf035=_0x311231;let _0x52b39d=D(_0x3dde4b,_0x1ae841);return _0x1ae841[_0x5cf035(0x123)]===e[_0x5cf035(0x14a)]['CODE']&&_0x1ae841[_0x5cf035(0x10b)]<=_0x5a1a5d&&_0x5a1a5d<=_0x52b39d+0x2;});}function b(_0x36061e,_0x2771e2,_0x13cc43=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x36061e&&_0x13cc43?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0x1bb67a,_0x5e6534,_0x9b4c47,_0x4ab919=!0x1){const _0x1ea393=_0x25029f;var _0xc99b59;let _0x303d58=((_0xc99b59=_0x1bb67a['paragraphs'])==null?[]:_0xc99b59)['filter'](_0x394006=>_0x394006[_0x1ea393(0x10b)]>_0x5e6534&&_0x394006[_0x1ea393(0x10b)]<_0x9b4c47);_0x303d58[_0x1ea393(0x12e)]((_0x5a29c8,_0x52372f)=>{const _0x552661=_0x1ea393;var _0x3820e8;_0x5a29c8[_0x552661(0xa6)]={...(_0x3820e8=_0x5a29c8['paragraphStyle'])==null?{}:_0x3820e8,...b(_0x52372f===0x0,_0x52372f===_0x303d58[_0x552661(0x110)]-0x1,_0x4ab919)};});}function S(_0x2e3d7e){const _0x2114e7=_0x25029f;var _0x3c6e3e,_0x495bd6;let _0x215391={..._0x2e3d7e==null?{}:_0x2e3d7e};return delete _0x215391[_0x2114e7(0xb6)],delete _0x215391[_0x2114e7(0x12d)],delete _0x215391[_0x2114e7(0xeb)],delete _0x215391[_0x2114e7(0xd4)],((_0x3c6e3e=_0x215391[_0x2114e7(0x144)])==null?void 0x0:_0x3c6e3e['ff'])===l&&((_0x495bd6=_0x215391[_0x2114e7(0x144)])==null?void 0x0:_0x495bd6['fs'])===0xc&&delete _0x215391[_0x2114e7(0x144)],_0x215391;}function C(_0x14a3d8,_0x186ff0){const _0x98997f=_0x25029f;var _0x7c74c2;let _0x15f664=D(_0x14a3d8,_0x186ff0);return((_0x7c74c2=_0x14a3d8[_0x98997f(0x113)])==null?[]:_0x7c74c2)['filter'](_0x358e6a=>_0x358e6a[_0x98997f(0x10b)]>_0x186ff0['startIndex']&&_0x358e6a[_0x98997f(0x10b)]<_0x15f664);}function ee(_0x33d224,_0x3809f7,_0x67fb64){const _0x2ceb74=_0x25029f;let _0x5b06b8=oe(_0x33d224,_0x3809f7,_0x67fb64),_0x54a6aa=_0x33d224[_0x2ceb74(0xed)][_0x2ceb74(0x119)](_0x5b06b8,_0x67fb64[_0x2ceb74(0x10b)]);return Array[_0x2ceb74(0xd3)](_0x54a6aa)['every'](_0x1ecfab=>_0x1ecfab===e['DataStreamTreeTokenType'][_0x2ceb74(0x132)]||_0x1ecfab===e['DataStreamTreeTokenType']['BLOCK_END']);}function w(_0x2055c3){const _0x4ec339=_0x25029f;return e[_0x4ec339(0xb8)][_0x4ec339(0x125)](_0x2055c3);}function T(_0x59ba0f){const _0x382278=_0x25029f;if(!_0x59ba0f[_0x382278(0xb5)])throw Error(_0x382278(0xae));return _0x59ba0f[_0x382278(0xb5)];}function te(_0x227637,_0x27db1c,_0xcc3c51){const _0x38ac52=_0x25029f;if(_0x27db1c==null||_0xcc3c51==null){let _0x5e9472=re(_0x227637);return{'startOffset':_0x5e9472,'endOffset':_0x5e9472};}let _0xc92ea=Math[_0x38ac52(0xcc)](_0x27db1c,_0xcc3c51),_0x219b7a=Math['max'](_0x27db1c,_0xcc3c51);if(_0xc92ea===_0x219b7a){let _0x527d86=ne(_0x227637,_0xc92ea);return{'startOffset':_0x527d86,'endOffset':_0x527d86};}return ae(_0x227637,_0xc92ea,_0x219b7a);}function ne(_0x24792a,_0x4cd79b){const _0x1bfc41=_0x25029f;return _0x4cd79b===0x0&&_0x24792a[_0x1bfc41(0xed)][0x0]===e[_0x1bfc41(0x13c)]['PARAGRAPH']?0x1:_0x4cd79b;}function re(_0x25883a){const _0x16c8f8=_0x25029f;return _0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0xd0)](e[_0x16c8f8(0x13c)][_0x16c8f8(0xe9)])?Math[_0x16c8f8(0xb7)](0x0,_0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0x110)]-0x1):_0x25883a[_0x16c8f8(0xed)][_0x16c8f8(0x110)];}function ie(_0xfa7fd4,_0x57e6d9,_0xc0cefd){const _0x466c78=_0x25029f;var _0x1b0735;let _0x1ff81f=Math[_0x466c78(0xcc)](_0x57e6d9,_0xc0cefd),_0xebccab=Math[_0x466c78(0xb7)](_0x57e6d9,_0xc0cefd);return!!((_0x1b0735=_0xfa7fd4[_0x466c78(0x12b)])!=null&&_0x1b0735[_0x466c78(0xbf)](_0x5e8e65=>_0x1ff81f>_0x5e8e65[_0x466c78(0x10b)]&&_0x1ff81f<_0x5e8e65[_0x466c78(0x12c)]||_0xebccab>_0x5e8e65[_0x466c78(0x10b)]&&_0xebccab<_0x5e8e65[_0x466c78(0x12c)]||_0x1ff81f<=_0x5e8e65[_0x466c78(0x10b)]&&_0xebccab>=_0x5e8e65[_0x466c78(0x12c)]));}function ae(_0x2814d8,_0x141775,_0x1f2d89){const _0x55bf1f=_0x25029f;var _0x1b8def,_0x1bd8cc;let _0x2415d7=[...(_0x1b8def=_0x2814d8[_0x55bf1f(0x113)])==null?[]:_0x1b8def][_0x55bf1f(0xfd)]((_0x36c7dd,_0x5e4992)=>_0x36c7dd['startIndex']-_0x5e4992[_0x55bf1f(0x10b)]),_0x566bde=_0x2415d7[_0x55bf1f(0xaa)]((_0x45392d,_0x20c0c2)=>(_0x20c0c2===0x0?0x0:_0x2415d7[_0x20c0c2-0x1][_0x55bf1f(0x10b)]+0x1)<=_0x141775&&_0x141775<=_0x45392d[_0x55bf1f(0x10b)]),_0x540572=(_0x1bd8cc=_0x2415d7['find'](_0x1d16bc=>_0x1d16bc['startIndex']>=_0x1f2d89-0x1))==null?_0x2415d7[_0x2415d7['length']-0x1]:_0x1bd8cc;return{'startOffset':_0x566bde?E(_0x2415d7,_0x566bde):_0x141775,'endOffset':_0x540572?_0x540572[_0x55bf1f(0x10b)]+0x1:_0x1f2d89};}function E(_0x890ae9,_0x3480e1){const _0x302f19=_0x25029f;let _0x195bdd=_0x890ae9['indexOf'](_0x3480e1);return _0x195bdd>0x0?_0x890ae9[_0x195bdd-0x1][_0x302f19(0x10b)]+0x1:0x0;}function oe(_0x5a4dcd,_0x26d871,_0x128513){const _0x2bde60=_0x25029f;var _0x336f32;return Math[_0x2bde60(0xb7)](E((_0x336f32=_0x5a4dcd[_0x2bde60(0x113)])==null?[]:_0x336f32,_0x128513),_0x26d871[_0x2bde60(0x10b)]+0x1);}function _0x17f0(){const _0x51fbd8=['1387175OSmcQJ','get','buildUpdateCodeActions','25836FWdKFH','CODE','blockType','getInstance','deepClone','Subject','_change$','function','commandService','set','tables','endIndex','indentStart','forEach','DocsCodeInsertCommand','RichTextEditingMutation','_setResource','BLOCK_START','CommandType','DocsCodeConsumeBoundaryDeleteCommand','_injector','defineProperty','IConfigService','object','endOffset','pluginName','nextMetadata','DataStreamTreeTokenType','serialize','8zKRwQF','paragraphId','version','Inject','getCodeConfig','docs-code.command.update','textStyle','every','Disposable','DocsCodeCancelEmptyParagraphCommand','map','ICommandService','DocumentBlockRangeType','_resources','createParagraphId','_resourceManagerService','paragraphStyle','customRanges','3LBSavO','previousDocumentData','find','reduce','decorate','registerCommand','Document\x20body\x20is\x20required','codes','toStringTag','setCodeConfig','compose','type','buildInsertCodeActions','body','indentEnd','max','Tools','config','UNIVER_DOC','blockRanges','replaceOp','getUniverDocInstance','DOC_CODE_PLUGIN','some','sectionBreaks','stringify','customBlocks','118539sBNmFG','COMMAND','docs-code.command.insert','deserialize','32ZbnhyE','removeCode','unitId','javascript','paragraph','min','3806298ZnrRcs','consumeInsertRange','18946740RqDfLv','endsWith','symbol','getTextRanges','from','spaceBelow','iterator','setConfig','metadata','startOffset','string','blockId','@univerjs-pro/docs-code','documentData','docs-code.command.insert-below','dispose','packageName','syncExecuteCommand','paragraphStartIndex','next','delete','parse','left','BuildTextUtils','UniverInstanceType','filter','SECTION_BREAK','customDecorations','spaceAbove','docs-code.command.exit','dataStream','disposeWithMe','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getBody','asObservable','DocSelectionManagerService','DocsCodeInsertBelowCommand','Injector','textRuns','docs-code.command.cancel-empty-paragraph','IResourceManagerService','PARAGRAPH','Module','range','IUniverInstanceService','cursorOffset','sort','buildCancelEmptyCodeParagraphActions','add','removeUnit','buildExitCodeActions','normalizeDocsCodeConfig','merge','model','direction','Plugin','right','BLOCK_END','2660332PWAXJt','DocContentInsertService','startIndex','5339502mAvotp','_config','nextDocumentData','_docsCodeModel','length','entries','docs-code.command.consume-boundary-delete','paragraphs','getParagraphsInRange','default','generateRandomId','getOwnPropertyDescriptor','getCurrentUnitOfType','slice','fromEntries','_initResource','prototype','_commandService'];_0x17f0=function(){return _0x51fbd8;};return _0x17f0();}function D(_0x51ef2a,_0x51998a){const _0x520f47=_0x25029f;return _0x51ef2a[_0x520f47(0xed)][_0x51998a[_0x520f47(0x12c)]]===e['DataStreamTreeTokenType'][_0x520f47(0x108)]?_0x51998a[_0x520f47(0x12c)]:_0x51ef2a[_0x520f47(0xed)][_0x51998a['endIndex']+0x1]===e[_0x520f47(0x13c)]['BLOCK_END']?_0x51998a[_0x520f47(0x12c)]+0x1:_0x51998a[_0x520f47(0x12c)];}function se(_0x39c41e,_0x3a81ff,_0x27b96d,_0x801f2b){const _0x1797aa=_0x25029f;var _0x1085c3,_0x2cf3c5;let _0x5d5af9=D(_0x39c41e,_0x3a81ff),_0x9f7538=((_0x1085c3=_0x39c41e[_0x1797aa(0x113)])==null?[]:_0x1085c3)[_0x1797aa(0xaa)](_0x477e1d=>_0x477e1d[_0x1797aa(0x10b)]===_0x5d5af9+0x1);if(!_0x9f7538||_0x801f2b!=null&&_0x9f7538['startIndex']!==_0x801f2b||_0x27b96d<_0x5d5af9||_0x27b96d>_0x9f7538['startIndex']+0x1||_0x39c41e[_0x1797aa(0xed)][_0x9f7538[_0x1797aa(0x10b)]]!==e[_0x1797aa(0x13c)][_0x1797aa(0xf8)])return null;let _0x535fe9=E((_0x2cf3c5=_0x39c41e[_0x1797aa(0x113)])==null?[]:_0x2cf3c5,_0x9f7538),_0x350a0b=_0x39c41e[_0x1797aa(0xed)][_0x1797aa(0x119)](_0x535fe9,_0x9f7538[_0x1797aa(0x10b)]);return Array[_0x1797aa(0xd3)](_0x350a0b)[_0x1797aa(0x145)](_0x4fe124=>_0x4fe124===e[_0x1797aa(0x13c)][_0x1797aa(0x108)])?{'paragraph':_0x9f7538,'endTokenOffset':_0x5d5af9}:null;}function O(_0x4eb8df,_0x186c89){const _0x5c0c1f=_0x25029f;var _0x193440;let _0x424624=D(_0x4eb8df,_0x186c89),_0x175a36=_0x4eb8df['dataStream'][_0x424624+0x1];_0x175a36!==e['DataStreamTreeTokenType'][_0x5c0c1f(0xe9)]&&_0x175a36!==void 0x0||k(_0x4eb8df,_0x424624+0x1,e[_0x5c0c1f(0x13c)][_0x5c0c1f(0xf8)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x5c0c1f(0x14c)])(new Set((_0x193440=_0x4eb8df['paragraphs'])==null?void 0x0:_0x193440[_0x5c0c1f(0x148)](_0x1090ed=>_0x1090ed['paragraphId'])))}]});}function k(_0x32736d,_0x290def,_0x556e9b,_0x2be2cf={}){const _0x238a65=_0x25029f;var _0x1e5c57,_0x7129a1;if(_0x556e9b){if(_0x32736d['dataStream']=''+_0x32736d[_0x238a65(0xed)][_0x238a65(0x119)](0x0,_0x290def)+_0x556e9b+_0x32736d[_0x238a65(0xed)][_0x238a65(0x119)](_0x290def),le(_0x32736d,_0x290def,_0x556e9b[_0x238a65(0x110)]),(_0x1e5c57=_0x2be2cf[_0x238a65(0x113)])!=null&&_0x1e5c57[_0x238a65(0x110)]){var _0x1ac0bb;_0x32736d[_0x238a65(0x113)]=[...(_0x1ac0bb=_0x32736d[_0x238a65(0x113)])==null?[]:_0x1ac0bb,..._0x2be2cf['paragraphs'][_0x238a65(0x148)](_0x1cc640=>({..._0x1cc640,'startIndex':_0x1cc640['startIndex']+_0x290def}))]['sort']((_0x2f9853,_0x440a75)=>_0x2f9853[_0x238a65(0x10b)]-_0x440a75['startIndex']);}if((_0x7129a1=_0x2be2cf[_0x238a65(0xbb)])!=null&&_0x7129a1[_0x238a65(0x110)]){var _0x2d1c05;_0x32736d['blockRanges']=[...(_0x2d1c05=_0x32736d[_0x238a65(0xbb)])==null?[]:_0x2d1c05,..._0x2be2cf[_0x238a65(0xbb)][_0x238a65(0x148)](_0x233d03=>({..._0x233d03,'startIndex':_0x233d03['startIndex']+_0x290def,'endIndex':_0x233d03[_0x238a65(0x12c)]+_0x290def}))][_0x238a65(0xfd)]((_0x1355db,_0x452557)=>_0x1355db[_0x238a65(0x10b)]-_0x452557['startIndex']);}}}function ce(_0x394d21,_0x3fa56b,_0x2e3efe){const _0x1844ed=_0x25029f;let _0x44be94=_0x2e3efe-_0x3fa56b;_0x394d21[_0x1844ed(0xed)]=''+_0x394d21[_0x1844ed(0xed)][_0x1844ed(0x119)](0x0,_0x3fa56b)+_0x394d21['dataStream'][_0x1844ed(0x119)](_0x2e3efe),ue(_0x394d21,_0x3fa56b,_0x44be94);}function le(_0x193fcf,_0x5c3dd2,_0x52b9b2){const _0x4b7273=_0x25029f;_0x193fcf[_0x4b7273(0x113)]=A(_0x193fcf['paragraphs'],_0x5c3dd2,_0x52b9b2),_0x193fcf['sectionBreaks']=A(_0x193fcf[_0x4b7273(0xc0)],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xc2)]=A(_0x193fcf[_0x4b7273(0xc2)],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xf5)]=de(_0x193fcf[_0x4b7273(0xf5)],_0x5c3dd2,_0x52b9b2),_0x193fcf['tables']=M(_0x193fcf[_0x4b7273(0x12b)],_0x5c3dd2,_0x52b9b2),_0x193fcf['customRanges']=M(_0x193fcf['customRanges'],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xea)]=M(_0x193fcf['customDecorations'],_0x5c3dd2,_0x52b9b2),_0x193fcf[_0x4b7273(0xbb)]=M(_0x193fcf[_0x4b7273(0xbb)],_0x5c3dd2,_0x52b9b2);}function ue(_0x1c8aa2,_0x4ede8b,_0x448a8d){const _0x12edac=_0x25029f;var _0x5f1a3e,_0x2a8aa9;_0x1c8aa2['paragraphs']=j(_0x1c8aa2[_0x12edac(0x113)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xc0)]=j(_0x1c8aa2['sectionBreaks'],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xc2)]=j(_0x1c8aa2['customBlocks'],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xf5)]=(_0x5f1a3e=N((_0x2a8aa9=_0x1c8aa2[_0x12edac(0xf5)])==null?void 0x0:_0x2a8aa9['map'](_0x49cb15=>({..._0x49cb15,'startIndex':_0x49cb15['st'],'endIndex':_0x49cb15['ed']})),_0x4ede8b,_0x448a8d))==null?void 0x0:_0x5f1a3e['map'](_0x52f6f4=>{let {startIndex:_0x47f6c5,endIndex:_0x32b9c5,..._0xeca66d}=_0x52f6f4;return{..._0xeca66d,'st':_0x47f6c5,'ed':_0x32b9c5};}),_0x1c8aa2[_0x12edac(0x12b)]=N(_0x1c8aa2[_0x12edac(0x12b)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xa7)]=N(_0x1c8aa2[_0x12edac(0xa7)],_0x4ede8b,_0x448a8d),_0x1c8aa2[_0x12edac(0xea)]=N(_0x1c8aa2[_0x12edac(0xea)],_0x4ede8b,_0x448a8d),_0x1c8aa2['blockRanges']=N(_0x1c8aa2[_0x12edac(0xbb)],_0x4ede8b,_0x448a8d);}function A(_0x38af01,_0x45e215,_0x1ade54){const _0xf428a5=_0x25029f;return _0x38af01==null?void 0x0:_0x38af01['map'](_0x225da8=>_0x225da8[_0xf428a5(0x10b)]>=_0x45e215?{..._0x225da8,'startIndex':_0x225da8['startIndex']+_0x1ade54}:_0x225da8);}function j(_0x9e3826,_0x48b05f,_0x2f58e5){const _0x4a278f=_0x25029f;let _0x4c73c2=_0x48b05f+_0x2f58e5;return _0x9e3826==null?void 0x0:_0x9e3826[_0x4a278f(0x148)](_0x41d9bd=>_0x41d9bd[_0x4a278f(0x10b)]>=_0x48b05f&&_0x41d9bd[_0x4a278f(0x10b)]<_0x4c73c2?null:_0x41d9bd[_0x4a278f(0x10b)]>=_0x4c73c2?{..._0x41d9bd,'startIndex':_0x41d9bd[_0x4a278f(0x10b)]-_0x2f58e5}:_0x41d9bd)[_0x4a278f(0xe8)](_0x5d990a=>_0x5d990a!=null);}function de(_0x126b66,_0x28b9bb,_0x41510f){const _0x872298=_0x25029f;return _0x126b66==null?void 0x0:_0x126b66[_0x872298(0x148)](_0x271278=>_0x271278['st']>=_0x28b9bb?{..._0x271278,'st':_0x271278['st']+_0x41510f,'ed':_0x271278['ed']+_0x41510f}:_0x271278['ed']>_0x28b9bb?{..._0x271278,'ed':_0x271278['ed']+_0x41510f}:_0x271278);}function M(_0xe24da4,_0x158949,_0x216ef0){const _0x15427d=_0x25029f;return _0xe24da4==null?void 0x0:_0xe24da4[_0x15427d(0x148)](_0x4c34b0=>_0x4c34b0['startIndex']>=_0x158949?{..._0x4c34b0,'startIndex':_0x4c34b0[_0x15427d(0x10b)]+_0x216ef0,'endIndex':_0x4c34b0[_0x15427d(0x12c)]+_0x216ef0}:_0x4c34b0[_0x15427d(0x12c)]>=_0x158949?{..._0x4c34b0,'endIndex':_0x4c34b0[_0x15427d(0x12c)]+_0x216ef0}:_0x4c34b0);}function N(_0x43fb96,_0x351f40,_0x108fe2){const _0x47676b=_0x25029f;let _0x397a61=_0x351f40+_0x108fe2;return _0x43fb96==null?void 0x0:_0x43fb96[_0x47676b(0x148)](_0x16efc2=>_0x16efc2[_0x47676b(0x10b)]>=_0x351f40&&_0x16efc2[_0x47676b(0x12c)]<_0x397a61?null:_0x16efc2[_0x47676b(0x10b)]>=_0x397a61?{..._0x16efc2,'startIndex':_0x16efc2[_0x47676b(0x10b)]-_0x108fe2,'endIndex':_0x16efc2[_0x47676b(0x12c)]-_0x108fe2}:_0x16efc2['endIndex']>=_0x351f40?{..._0x16efc2,'startIndex':_0x16efc2['startIndex']<_0x351f40?_0x16efc2[_0x47676b(0x10b)]:_0x351f40,'endIndex':Math['max'](_0x351f40,_0x16efc2['endIndex']-_0x108fe2)}:_0x16efc2)['filter'](_0x2f5632=>_0x2f5632!=null);}function P(_0x26d3c9,_0x41c9fe,_0x4b0e55,_0x1863f9){const _0x530100=_0x25029f;_0x26d3c9==null||_0x26d3c9[_0x530100(0x12e)](_0x24894d=>{const _0x913cda=_0x530100;_0x24894d[_0x913cda(0x10b)]>=_0x41c9fe&&_0x24894d[_0x913cda(0x10b)]<_0x4b0e55&&(_0x24894d[_0x913cda(0x10b)]+=_0x1863f9);});}function fe(_0xd932d3,_0x40991c,_0x2d5e8a,_0x1dff0a){_0xd932d3==null||_0xd932d3['forEach'](_0x3384d5=>{_0x3384d5['st']>=_0x40991c&&_0x3384d5['st']<_0x2d5e8a?(_0x3384d5['st']+=_0x1dff0a,_0x3384d5['ed']+=_0x1dff0a):_0x3384d5['ed']>_0x40991c&&_0x3384d5['ed']<_0x2d5e8a&&(_0x3384d5['ed']+=_0x1dff0a);});}function F(_0x37d737,_0x49585b,_0x2fb26f,_0x3adb89){const _0x2db32f=_0x25029f;_0x37d737==null||_0x37d737[_0x2db32f(0x12e)](_0x1556cb=>{const _0x191ebe=_0x2db32f;_0x1556cb[_0x191ebe(0x10b)]>=_0x49585b&&_0x1556cb[_0x191ebe(0x10b)]<_0x2fb26f?(_0x1556cb[_0x191ebe(0x10b)]+=_0x3adb89,_0x1556cb[_0x191ebe(0x12c)]+=_0x3adb89):_0x1556cb[_0x191ebe(0x12c)]>_0x49585b&&_0x1556cb[_0x191ebe(0x12c)]<_0x2fb26f&&(_0x1556cb['endIndex']+=_0x3adb89);});}function I(_0x12bdc7){'@babel/helpers - typeof';const _0x300bf8=_0x25029f;return I=typeof Symbol==_0x300bf8(0x128)&&typeof Symbol[_0x300bf8(0xd5)]==_0x300bf8(0xd1)?function(_0x460587){return typeof _0x460587;}:function(_0x21c31e){const _0x51d51e=_0x300bf8;return _0x21c31e&&typeof Symbol==_0x51d51e(0x128)&&_0x21c31e['constructor']===Symbol&&_0x21c31e!==Symbol[_0x51d51e(0x11c)]?_0x51d51e(0xd1):typeof _0x21c31e;},I(_0x12bdc7);}function pe(_0x3dbbeb,_0xa892ce){const _0x1a5799=_0x25029f;if(I(_0x3dbbeb)!=_0x1a5799(0x138)||!_0x3dbbeb)return _0x3dbbeb;var _0x73f763=_0x3dbbeb[Symbol['toPrimitive']];if(_0x73f763!==void 0x0){var _0x4b1e10=_0x73f763['call'](_0x3dbbeb,_0xa892ce||_0x1a5799(0x115));if(I(_0x4b1e10)!=_0x1a5799(0x138))return _0x4b1e10;throw TypeError(_0x1a5799(0xef));}return(_0xa892ce===_0x1a5799(0xd9)?String:Number)(_0x3dbbeb);}function me(_0x4c527c){const _0x1c52bb=_0x25029f;var _0x51f640=pe(_0x4c527c,_0x1c52bb(0xd9));return I(_0x51f640)==_0x1c52bb(0xd1)?_0x51f640:_0x51f640+'';}function L(_0x4e0bc1,_0x5cd282,_0x3593f7){const _0x3f4acb=_0x25029f;return(_0x5cd282=me(_0x5cd282))in _0x4e0bc1?Object[_0x3f4acb(0x136)](_0x4e0bc1,_0x5cd282,{'value':_0x3593f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e0bc1[_0x5cd282]=_0x3593f7,_0x4e0bc1;}var R=class extends e[_0x25029f(0x146)]{constructor(..._0x3eb574){const _0x5de18a=_0x25029f;super(..._0x3eb574),L(this,_0x5de18a(0x14b),new Map()),L(this,_0x5de18a(0x127),new n[(_0x5de18a(0x126))]()),L(this,'change$',this[_0x5de18a(0x127)][_0x5de18a(0xf1)]());}[_0x25029f(0x142)](_0x273e85,_0x3bc06a){const _0x1fc353=_0x25029f;return o(this[_0x1fc353(0x14b)]['get'](_0x273e85))[_0x1fc353(0xaf)][_0x3bc06a];}[_0x25029f(0xb1)](_0x269fb9,_0x29df0b,_0x276c08){const _0x31f8e7=_0x25029f;this[_0x31f8e7(0x131)](_0x269fb9,_0x29df0b,s(this[_0x31f8e7(0x14b)][_0x31f8e7(0x11f)](_0x269fb9),_0x29df0b,_0x276c08));}[_0x25029f(0xc8)](_0x140692,_0x104a9a){const _0x35e3f9=_0x25029f;this[_0x35e3f9(0x131)](_0x140692,_0x104a9a,c(this[_0x35e3f9(0x14b)][_0x35e3f9(0x11f)](_0x140692),_0x104a9a));}[_0x25029f(0x13d)](_0x36b955){const _0x3d8447=_0x25029f;return o(this[_0x3d8447(0x14b)][_0x3d8447(0x11f)](_0x36b955));}[_0x25029f(0xc6)](_0x3cc852,_0x29ff00){const _0x3efd27=_0x25029f;this[_0x3efd27(0x14b)][_0x3efd27(0x12a)](_0x3cc852,o(_0x29ff00)),this[_0x3efd27(0x127)][_0x3efd27(0xe2)]({'unitId':_0x3cc852});}[_0x25029f(0x100)](_0x1e52db){const _0x502fac=_0x25029f;this['_resources'][_0x502fac(0xe3)](_0x1e52db),this[_0x502fac(0x127)]['next']({'unitId':_0x1e52db});}[_0x25029f(0xde)](){const _0x541136=_0x25029f;super[_0x541136(0xde)](),this[_0x541136(0x14b)]['clear'](),this[_0x541136(0x127)]['complete']();}[_0x25029f(0x131)](_0x4071ae,_0x160f82,_0x4fb8cb){const _0x4c4f6e=_0x25029f;this[_0x4c4f6e(0x14b)][_0x4c4f6e(0x12a)](_0x4071ae,_0x4fb8cb),this[_0x4c4f6e(0x127)][_0x4c4f6e(0xe2)]({'unitId':_0x4071ae,'blockId':_0x160f82});}};const z={'id':_0x25029f(0xdd),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':_0x14b3e0=>{const _0x28fcb6=_0x25029f;let _0x3c6db9=he(_0x14b3e0);if(_0x3c6db9)return _0x14b3e0[_0x28fcb6(0x11f)](e[_0x28fcb6(0x149)])[_0x28fcb6(0xe0)](V['id'],{'startOffset':_0x3c6db9['startOffset'],'endOffset':_0x3c6db9[_0x28fcb6(0x139)],'unitId':_0x3c6db9[_0x28fcb6(0xc9)]});let _0x169c98=ge(_0x14b3e0);if(!_0x169c98)return!0x1;let _0x24a8c6=_0x169c98[_0x28fcb6(0x10b)]+0x1;return _0x14b3e0[_0x28fcb6(0x11f)](e[_0x28fcb6(0x149)])[_0x28fcb6(0xe0)](V['id'],{'startOffset':_0x24a8c6,'endOffset':_0x24a8c6});}},B={'id':_0x25029f(0x112),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':()=>!0x0},V={'id':_0x25029f(0xc5),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x281169,_0x538ade)=>{const _0x4f99fd=_0x25029f;var _0x6bcb78,_0x2f3ed0,_0x415d07;let _0x3648cb=G(_0x281169,_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xc9)]);if(!_0x3648cb)return!0x1;let _0x36ca9d=K(_0x281169),_0x3ef7ae=u({'blockId':(_0x6bcb78=_0x538ade==null?void 0x0:_0x538ade['blockId'])==null?(0x0,e[_0x4f99fd(0x116)])(0x6):_0x6bcb78,'config':_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xb9)],'documentData':_0x3648cb[_0x4f99fd(0xa9)],'endOffset':(_0x2f3ed0=_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0x139)])==null?_0x36ca9d==null?void 0x0:_0x36ca9d[_0x4f99fd(0x139)]:_0x2f3ed0,'metadata':_0x3648cb['model']['serialize'](_0x3648cb['unitId']),'startOffset':(_0x415d07=_0x538ade==null?void 0x0:_0x538ade[_0x4f99fd(0xd8)])==null?_0x36ca9d==null?void 0x0:_0x36ca9d[_0x4f99fd(0xd8)]:_0x415d07}),_0x36eedd=J(_0x3648cb[_0x4f99fd(0x129)],_0x3648cb['unitId'],_0x3648cb[_0x4f99fd(0xa9)],_0x3ef7ae[_0x4f99fd(0x10e)],_0x3ef7ae[_0x4f99fd(0xfc)]);return _0x36eedd&&_0x3ef7ae[_0x4f99fd(0x13b)]&&_0x3648cb[_0x4f99fd(0x104)]['deserialize'](_0x3648cb[_0x4f99fd(0xc9)],_0x3ef7ae[_0x4f99fd(0x13b)]),_0x36eedd;}},H={'id':_0x25029f(0x143),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x413772,_0x115af2)=>{const _0x54ce5b=_0x25029f;if(!_0x115af2)return!0x1;let _0x5d2fb1=G(_0x413772,_0x115af2['unitId']);if(!_0x5d2fb1)return!0x1;let _0xa781b2=p({'blockId':_0x115af2['blockId'],'config':_0x115af2[_0x54ce5b(0xb9)],'documentData':_0x5d2fb1['previousDocumentData'],'metadata':_0x5d2fb1[_0x54ce5b(0x104)][_0x54ce5b(0x13d)](_0x5d2fb1[_0x54ce5b(0xc9)])});return _0xa781b2[_0x54ce5b(0x13b)]&&_0x5d2fb1[_0x54ce5b(0x104)][_0x54ce5b(0xc6)](_0x5d2fb1[_0x54ce5b(0xc9)],_0xa781b2[_0x54ce5b(0x13b)]),!0x0;}},U={'id':_0x25029f(0xec),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x425922,_0x50764d)=>{const _0x495ea1=_0x25029f;var _0x6430dc,_0x342abe;let _0x381475=G(_0x425922,_0x50764d==null?void 0x0:_0x50764d[_0x495ea1(0xc9)]);if(!_0x381475)return!0x1;let _0x4282be=(_0x6430dc=_0x50764d==null?void 0x0:_0x50764d[_0x495ea1(0xfc)])==null?(_0x342abe=K(_0x425922))==null?void 0x0:_0x342abe[_0x495ea1(0xd8)]:_0x6430dc;if(_0x4282be==null)return!0x1;let _0x17c713=m({'cursorOffset':_0x4282be,'documentData':_0x381475[_0x495ea1(0xa9)]});return _0x17c713?J(_0x381475[_0x495ea1(0x129)],_0x381475['unitId'],_0x381475[_0x495ea1(0xa9)],_0x17c713[_0x495ea1(0x10e)],_0x17c713[_0x495ea1(0xfc)]):!0x1;}},W={'id':_0x25029f(0xf6),'type':e[_0x25029f(0x133)][_0x25029f(0xc4)],'handler':(_0x5c9bb1,_0x49fa50)=>{const _0x5115db=_0x25029f;var _0x4df103,_0x4eee70;let _0x551811=G(_0x5c9bb1,_0x49fa50==null?void 0x0:_0x49fa50['unitId']);if(!_0x551811)return!0x1;let _0x3c2d62=(_0x4df103=_0x49fa50==null?void 0x0:_0x49fa50[_0x5115db(0xfc)])==null?(_0x4eee70=K(_0x5c9bb1))==null?void 0x0:_0x4eee70[_0x5115db(0xd8)]:_0x4df103;if(_0x3c2d62==null)return!0x1;let _0x23fbf1=h({'cursorOffset':_0x3c2d62,'documentData':_0x551811[_0x5115db(0xa9)],'paragraphStartIndex':_0x49fa50==null?void 0x0:_0x49fa50['paragraphStartIndex']});return _0x23fbf1?J(_0x551811[_0x5115db(0x129)],_0x551811[_0x5115db(0xc9)],_0x551811[_0x5115db(0xa9)],_0x23fbf1['nextDocumentData'],_0x23fbf1[_0x5115db(0xfc)]):!0x1;}};function G(_0x46bbda,_0x52f04b){const _0x38fd1b=_0x25029f;let _0x440042=_0x46bbda[_0x38fd1b(0x11f)](e['IUniverInstanceService']),_0x5777d0=_0x52f04b?_0x440042[_0x38fd1b(0xbd)](_0x52f04b):_0x440042['getCurrentUnitOfType'](e['UniverInstanceType'][_0x38fd1b(0xba)]);return _0x5777d0?{'commandService':_0x46bbda['get'](e[_0x38fd1b(0x149)]),'model':_0x46bbda[_0x38fd1b(0x11f)](R),'previousDocumentData':_0x5777d0['getSnapshot'](),'unitId':_0x5777d0['getUnitId']()}:null;}function K(_0x48d091){const _0x255af5=_0x25029f;var _0x548541;return(_0x548541=_0x48d091[_0x255af5(0x11f)](t[_0x255af5(0xf2)])[_0x255af5(0xd2)]())==null?void 0x0:_0x548541[0x0];}function _0x5a9f(_0x2d199e,_0x508666){_0x2d199e=_0x2d199e-0xa6;const _0x17f0d8=_0x17f0();let _0x5a9f1c=_0x17f0d8[_0x2d199e];return _0x5a9f1c;}function he(_0x2207fa){const _0x4253d4=_0x25029f;var _0xe36623;let _0x7a9cb3=(_0xe36623=_0x2207fa[_0x4253d4(0x11f)](e[_0x4253d4(0xfb)])[_0x4253d4(0x118)](e['UniverInstanceType'][_0x4253d4(0xba)]))==null?void 0x0:_0xe36623['getUnitId']();try{return _0x2207fa[_0x4253d4(0x11f)](t[_0x4253d4(0x10a)])[_0x4253d4(0xce)](_0x7a9cb3);}catch{return null;}}function ge(_0x1d0341){const _0x52a89b=_0x25029f;var _0x356725,_0x1711b3,_0x1b2158;let _0x91624c=K(_0x1d0341);if(!_0x91624c)return null;let _0xae20c3=_0x1d0341['get'](e[_0x52a89b(0xfb)])[_0x52a89b(0x118)](e['UniverInstanceType']['UNIVER_DOC']),_0x27211e=_0xae20c3==null?void 0x0:_0xae20c3[_0x52a89b(0xf0)]();return _0x27211e?(_0x356725=e[_0x52a89b(0xe6)][_0x52a89b(0xfa)][_0x52a89b(0x114)](_0x91624c,(_0x1711b3=_0x27211e[_0x52a89b(0x113)])==null?[]:_0x1711b3,(_0x1b2158=_0x27211e[_0x52a89b(0xed)])==null?'':_0x1b2158)[0x0])==null?null:_0x356725:null;}function _e(_0x581485,_0x2a737f){const _0x2fe37a=_0x25029f;var _0x3f68b2,_0x507b59,_0x95fb30,_0x51e12d,_0x4ae8ab,_0x138800,_0x5ae7dc,_0x34c18e,_0x4640cb,_0x3f4113,_0x56128c,_0x48068c,_0x279578,_0x33b896,_0x285fc5,_0x425bf1,_0x16efc1,_0x42e383;let _0x5dae6f=e['JSONX'][_0x2fe37a(0x124)]();return[q(_0x5dae6f,[_0x2fe37a(0xb5),'dataStream'],(_0x3f68b2=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x3f68b2[_0x2fe37a(0xed)],(_0x507b59=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x507b59['dataStream']),q(_0x5dae6f,['body',_0x2fe37a(0x113)],(_0x95fb30=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x95fb30[_0x2fe37a(0x113)],(_0x51e12d=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x51e12d[_0x2fe37a(0x113)]),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0xc0)],(_0x4ae8ab=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x4ae8ab[_0x2fe37a(0xc0)],(_0x138800=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x138800[_0x2fe37a(0xc0)]),q(_0x5dae6f,[_0x2fe37a(0xb5),'textRuns'],(_0x5ae7dc=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x5ae7dc[_0x2fe37a(0xf5)],(_0x34c18e=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x34c18e['textRuns']),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0xc2)],(_0x4640cb=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x4640cb[_0x2fe37a(0xc2)],(_0x3f4113=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x3f4113[_0x2fe37a(0xc2)]),q(_0x5dae6f,[_0x2fe37a(0xb5),'customRanges'],(_0x56128c=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x56128c['customRanges'],(_0x48068c=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x48068c[_0x2fe37a(0xa7)]),q(_0x5dae6f,['body','customDecorations'],(_0x279578=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x279578[_0x2fe37a(0xea)],(_0x33b896=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x33b896[_0x2fe37a(0xea)]),q(_0x5dae6f,[_0x2fe37a(0xb5),_0x2fe37a(0x12b)],(_0x285fc5=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x285fc5[_0x2fe37a(0x12b)],(_0x425bf1=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x425bf1[_0x2fe37a(0x12b)]),q(_0x5dae6f,['body',_0x2fe37a(0xbb)],(_0x16efc1=_0x581485[_0x2fe37a(0xb5)])==null?void 0x0:_0x16efc1[_0x2fe37a(0xbb)],(_0x42e383=_0x2a737f[_0x2fe37a(0xb5)])==null?void 0x0:_0x42e383[_0x2fe37a(0xbb)])]['filter'](Boolean)[_0x2fe37a(0xab)]((_0x34063c,_0x2c6b1e)=>e['JSONX'][_0x2fe37a(0xb2)](_0x34063c,_0x2c6b1e),null);}function q(_0x21b402,_0x31454c,_0x25034b,_0x1e2679){const _0x225ff8=_0x25029f;return e[_0x225ff8(0xb8)]['diffValue'](_0x25034b,_0x1e2679)?null:_0x21b402[_0x225ff8(0xbc)](_0x31454c,_0x25034b,_0x1e2679);}function J(_0x48b955,_0x63d7a,_0x21c0b8,_0x4d1486,_0x4e4b8e){const _0x35f47d=_0x25029f;let _0x39a89a=_e(_0x21c0b8,_0x4d1486);return _0x39a89a?!!_0x48b955['syncExecuteCommand'](t[_0x35f47d(0x130)]['id'],{'unitId':_0x63d7a,'actions':_0x39a89a,'textRanges':[{'startOffset':_0x4e4b8e,'endOffset':_0x4e4b8e,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y=_0x25029f(0xbe);var ve=_0x25029f(0xdb),ye='1.0.0-alpha.1';const X={};function Z(_0x2447d5,_0x4e46bf){return function(_0x5a94d5,_0x468d80){_0x4e46bf(_0x5a94d5,_0x468d80,_0x2447d5);};}function be(_0x3462c7,_0x140bd0,_0x155ad3,_0xee03ff){const _0x20bd01=_0x25029f;var _0x1041a6=arguments['length'],_0x51cbce=_0x1041a6<0x3?_0x140bd0:_0xee03ff===null?_0xee03ff=Object[_0x20bd01(0x117)](_0x140bd0,_0x155ad3):_0xee03ff,_0x4d66a6;if(typeof Reflect=='object'&&typeof Reflect[_0x20bd01(0xac)]==_0x20bd01(0x128))_0x51cbce=Reflect[_0x20bd01(0xac)](_0x3462c7,_0x140bd0,_0x155ad3,_0xee03ff);else{for(var _0x1d50bd=_0x3462c7['length']-0x1;_0x1d50bd>=0x0;_0x1d50bd--)(_0x4d66a6=_0x3462c7[_0x1d50bd])&&(_0x51cbce=(_0x1041a6<0x3?_0x4d66a6(_0x51cbce):_0x1041a6>0x3?_0x4d66a6(_0x140bd0,_0x155ad3,_0x51cbce):_0x4d66a6(_0x140bd0,_0x155ad3))||_0x51cbce);}return _0x1041a6>0x3&&_0x51cbce&&Object[_0x20bd01(0x136)](_0x140bd0,_0x155ad3,_0x51cbce),_0x51cbce;}let Q=class extends e[_0x25029f(0x146)]{constructor(_0x521a93,_0x504e40){const _0x1e9a96=_0x25029f;super(),this[_0x1e9a96(0x14d)]=_0x521a93,this['_docsCodeModel']=_0x504e40,this[_0x1e9a96(0x11b)]();}[_0x25029f(0x11b)](){const _0x1b9016=_0x25029f;this[_0x1b9016(0xee)](this['_resourceManagerService']['registerPluginResource']({'pluginName':Y,'businesses':[e['UniverInstanceType'][_0x1b9016(0xba)]],'toJson':_0x24b3dd=>JSON[_0x1b9016(0xc1)](this[_0x1b9016(0x10f)][_0x1b9016(0x13d)](_0x24b3dd)),'parseJson':_0x370282=>o(JSON[_0x1b9016(0xe4)](_0x370282)),'onLoad':(_0x509257,_0x3f3d20)=>this[_0x1b9016(0x10f)][_0x1b9016(0xc6)](_0x509257,_0x3f3d20),'onUnLoad':_0x56a83f=>this['_docsCodeModel']['removeUnit'](_0x56a83f)}));}};Q=be([Z(0x0,e[_0x25029f(0xf7)]),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e[_0x25029f(0x106)]{constructor(_0x50fdfd=X,_0x42614e,_0x59a209,_0x2f704d){const _0xfdc883=_0x25029f;super(),this[_0xfdc883(0x10d)]=_0x50fdfd,this['_injector']=_0x42614e,this[_0xfdc883(0x11d)]=_0x59a209,this['_configService']=_0x2f704d;let {..._0x4796ec}=(0x0,e[_0xfdc883(0x103)])({},X,this['_config']);this['_configService'][_0xfdc883(0xd6)]('docs-code.config',_0x4796ec);}['onStarting'](){const _0x563ff9=_0x25029f;this[_0x563ff9(0x135)][_0x563ff9(0xff)]([R]),this['_injector']['add']([Q]),this[_0x563ff9(0x135)]['get'](R),this[_0x563ff9(0x135)][_0x563ff9(0x11f)](Q),[V,z,H,U,W,B][_0x563ff9(0x12e)](_0xe1dedf=>this[_0x563ff9(0xee)](this[_0x563ff9(0x11d)][_0x563ff9(0xad)](_0xe1dedf)));}};L($,_0x25029f(0x13a),Y),L($,_0x25029f(0xdf),ve),L($,_0x25029f(0x140),ye),L($,_0x25029f(0xb3),e[_0x25029f(0xe7)]['UNIVER_DOC']),$=be([(0x0,e['DependentOn'])(r['UniverLicensePlugin'],t['UniverDocsPlugin']),Z(0x1,(0x0,e[_0x25029f(0x141)])(e[_0x25029f(0xf4)])),Z(0x2,e[_0x25029f(0x149)]),Z(0x3,e[_0x25029f(0x137)])],$),exports['DEFAULT_CODE_CONFIG']=i,exports['DOCS_CODE_PLUGIN']=Y,exports[_0x25029f(0x147)]=W,exports[_0x25029f(0x134)]=B,exports['DocsCodeExitCommand']=U,exports[_0x25029f(0xf3)]=z,exports[_0x25029f(0x12f)]=V,exports['DocsCodeModel']=R,exports['DocsCodeUpdateCommand']=H,Object['defineProperty'](exports,'UniverDocsCodePlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x25029f(0xfe)]=h,exports[_0x25029f(0x101)]=m,exports[_0x25029f(0xb4)]=u,exports[_0x25029f(0x120)]=p,exports['findCodeRangeAtOffset']=_,exports['isCodeBoundaryDelete']=v,exports[_0x25029f(0x102)]=a;
1
+ const _0x50a514=_0x3235;(function(_0x38cdf4,_0x22e367){const _0x38dacb=_0x3235,_0x2dac39=_0x38cdf4();while(!![]){try{const _0x3e1468=-parseInt(_0x38dacb(0xf1))/0x1+-parseInt(_0x38dacb(0x144))/0x2*(parseInt(_0x38dacb(0xf9))/0x3)+-parseInt(_0x38dacb(0x10b))/0x4*(parseInt(_0x38dacb(0x13c))/0x5)+parseInt(_0x38dacb(0xe6))/0x6*(parseInt(_0x38dacb(0x105))/0x7)+-parseInt(_0x38dacb(0x11b))/0x8+parseInt(_0x38dacb(0x146))/0x9+parseInt(_0x38dacb(0xdf))/0xa;if(_0x3e1468===_0x22e367)break;else _0x2dac39['push'](_0x2dac39['shift']());}catch(_0x4de124){_0x2dac39['push'](_0x2dac39['shift']());}}}(_0x246b,0xdb285),Object[_0x50a514(0x14b)](exports,Symbol[_0x50a514(0x11e)],{'value':_0x50a514(0xd0)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('rxjs'),r=require('@univerjs-pro/license');const i={'language':_0x50a514(0x107),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function a(_0x3cd1c9){return{...i,..._0x3cd1c9};}function o(_0x32e88e){const _0x518d8b=_0x50a514;var _0x37a413;let _0x560304=(_0x37a413=_0x32e88e==null?void 0x0:_0x32e88e[_0x518d8b(0xcd)])==null?{}:_0x37a413;return{'codes':Object['fromEntries'](Object[_0x518d8b(0xaf)](_0x560304)['map'](([_0x5243b6,_0x22a097])=>[_0x5243b6,a(_0x22a097)]))};}function s(_0x164407,_0x5f4519,_0x237957){const _0x789ffe=_0x50a514;let _0x37f31d=o(_0x164407);return _0x37f31d['codes'][_0x5f4519]=a({..._0x37f31d[_0x789ffe(0xcd)][_0x5f4519],..._0x237957}),_0x37f31d;}function c(_0x21fbe7,_0x562ef0){const _0x35c32c=_0x50a514;let _0x442ffe=o(_0x21fbe7);return delete _0x442ffe[_0x35c32c(0xcd)][_0x562ef0],_0x442ffe;}const l='monospace';function u(_0x447d0b){const _0x332bd2=_0x50a514;var _0x30e1ee,_0x3d457,_0x5a7111;let _0x23c06d=w(_0x447d0b[_0x332bd2(0x112)]),_0x124030=T(_0x23c06d),_0x2f437a=f(_0x447d0b[_0x332bd2(0x124)],_0x447d0b[_0x332bd2(0xe5)]),_0x496949=_0x2f437a?(_0x30e1ee=_0x124030[_0x332bd2(0xeb)])==null?void 0x0:_0x30e1ee['find'](_0x2d3f8c=>_0x2d3f8c[_0x332bd2(0xc7)]===_0x2f437a['startOffset']&&_0x2d3f8c[_0x332bd2(0x119)]+0x1===_0x2f437a[_0x332bd2(0xe5)]):void 0x0,{startOffset:_0x44cbed,endOffset:_0x55e154}=_0x496949?_0x2f437a:te(_0x124030,_0x447d0b[_0x332bd2(0x124)],_0x447d0b[_0x332bd2(0xe5)]),_0xe2f399=ie(_0x124030,_0x44cbed,_0x55e154),_0x46754a=(_0x3d457=_0x496949==null?void 0x0:_0x496949['blockId'])==null?_0x447d0b[_0x332bd2(0xab)]:_0x3d457,_0x22e6c0=s(_0x447d0b[_0x332bd2(0xfd)],_0x46754a,{...i,..._0x447d0b[_0x332bd2(0xb9)]});if(_0x496949)return _0x496949[_0x332bd2(0xc0)]=e[_0x332bd2(0x131)]['CODE'],d(_0x124030,_0x44cbed,_0x55e154),x(_0x124030,_0x44cbed,_0x55e154,_0xe2f399),O(_0x124030,_0x496949),{'nextDocumentData':_0x23c06d,'nextMetadata':_0x22e6c0,'cursorOffset':_0x44cbed+0x1};if(_0x44cbed===_0x55e154){var _0x466d3c,_0x404cc8;let _0x329501=''+e[_0x332bd2(0x11f)][_0x332bd2(0x129)]+e[_0x332bd2(0x11f)][_0x332bd2(0x108)]+e['DataStreamTreeTokenType'][_0x332bd2(0xac)];k(_0x124030,_0x44cbed,_0x329501,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,e[_0x332bd2(0xcc)])(new Set((_0x466d3c=_0x124030['paragraphs'])==null?void 0x0:_0x466d3c['map'](_0x27b650=>_0x27b650['paragraphId']))),'paragraphStyle':b(!0x0,!0x0,_0xe2f399)}],'blockRanges':[{'blockId':_0x46754a,'blockType':e[_0x332bd2(0x131)][_0x332bd2(0xec)],'startIndex':0x0,'endIndex':_0x329501['length']-0x1}]});let _0xb870da=(_0x404cc8=_0x124030[_0x332bd2(0xeb)])==null?void 0x0:_0x404cc8[_0x332bd2(0x136)](_0x21b2e7=>_0x21b2e7[_0x332bd2(0xab)]===_0x46754a);return _0xb870da&&O(_0x124030,_0xb870da),{'nextDocumentData':_0x23c06d,'nextMetadata':_0x22e6c0,'cursorOffset':_0x44cbed+0x1};}k(_0x124030,_0x55e154,e[_0x332bd2(0x11f)]['BLOCK_END']),k(_0x124030,_0x44cbed,e[_0x332bd2(0x11f)][_0x332bd2(0x129)]),x(_0x124030,_0x44cbed,_0x55e154+0x1,_0xe2f399);let _0x333004={'blockId':_0x46754a,'blockType':e['DocumentBlockRangeType']['CODE'],'startIndex':_0x44cbed,'endIndex':_0x55e154+0x1};return _0x124030[_0x332bd2(0xeb)]=[...(_0x5a7111=_0x124030[_0x332bd2(0xeb)])==null?[]:_0x5a7111,_0x333004][_0x332bd2(0x14e)]((_0x4a1dce,_0xf2b468)=>_0x4a1dce[_0x332bd2(0xc7)]-_0xf2b468[_0x332bd2(0xc7)]),O(_0x124030,_0x333004),{'nextDocumentData':_0x23c06d,'nextMetadata':_0x22e6c0,'cursorOffset':_0x44cbed+0x1};}function d(_0x24b61c,_0x4c8bd5,_0x3eb170){const _0x104d0b=_0x50a514;var _0x463fa5;((_0x463fa5=_0x24b61c[_0x104d0b(0xff)])==null?[]:_0x463fa5)['filter'](_0x2e2d79=>_0x2e2d79['startIndex']>_0x4c8bd5&&_0x2e2d79[_0x104d0b(0xc7)]<_0x3eb170)[_0x104d0b(0x115)](_0x18dd8b=>{const _0x2cd873=_0x104d0b;var _0x237cd8;let _0x4de9b0={...(_0x237cd8=_0x18dd8b[_0x2cd873(0x13f)])==null?{}:_0x237cd8};delete _0x4de9b0[_0x2cd873(0x122)],delete _0x4de9b0[_0x2cd873(0xc5)],_0x18dd8b[_0x2cd873(0x13f)]=_0x4de9b0;});}function f(_0x441189,_0x5cfc7f){const _0x523830=_0x50a514;return _0x441189==null||_0x5cfc7f==null||_0x441189===_0x5cfc7f?null:{'startOffset':Math[_0x523830(0x10a)](_0x441189,_0x5cfc7f),'endOffset':Math['max'](_0x441189,_0x5cfc7f)};}function p(_0x4ea81f){const _0x2c8bf5=_0x50a514;return{'nextDocumentData':w(_0x4ea81f[_0x2c8bf5(0x112)]),'nextMetadata':s(_0x4ea81f[_0x2c8bf5(0xfd)],_0x4ea81f['blockId'],_0x4ea81f[_0x2c8bf5(0xb9)]),'cursorOffset':0x0};}function m(_0xcfceae){const _0x2579e5=_0x50a514;var _0x47cee9,_0x1dc152;let _0xad5d7a=w(_0xcfceae['documentData']),_0x3dd696=T(_0xad5d7a),_0x1f25a7=y(_0x3dd696,_0xcfceae[_0x2579e5(0x126)]);if(!_0x1f25a7)return null;let _0x1e27e4=C(_0x3dd696,_0x1f25a7),_0x322a63=_0x1e27e4[_0x1e27e4[_0x2579e5(0xd4)]-0x1];if(!_0x322a63||!ee(_0x3dd696,_0x1f25a7,_0x322a63)||_0xcfceae[_0x2579e5(0x126)]<_0x322a63[_0x2579e5(0xc7)])return null;let _0x26b1c2=oe(_0x3dd696,_0x1f25a7,_0x322a63);if(_0x26b1c2>=_0x1f25a7[_0x2579e5(0x119)])return null;_0x3dd696['dataStream']=[_0x3dd696[_0x2579e5(0xf2)][_0x2579e5(0xbf)](0x0,_0x26b1c2),e[_0x2579e5(0x11f)][_0x2579e5(0xac)],_0x3dd696['dataStream'][_0x2579e5(0xbf)](_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)]),_0x3dd696[_0x2579e5(0xf2)][_0x2579e5(0xbf)](_0x1f25a7['endIndex']+0x1)][_0x2579e5(0xb7)](''),P(_0x3dd696[_0x2579e5(0xff)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),P(_0x3dd696['sectionBreaks'],_0x26b1c2,_0x1f25a7['endIndex'],0x1),P(_0x3dd696[_0x2579e5(0xcb)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),fe(_0x3dd696[_0x2579e5(0xc6)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),F(_0x3dd696[_0x2579e5(0x10e)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),F(_0x3dd696[_0x2579e5(0xca)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),F(_0x3dd696[_0x2579e5(0xd3)],_0x26b1c2,_0x1f25a7[_0x2579e5(0x119)],0x1),(_0x47cee9=_0x3dd696['blockRanges'])==null||_0x47cee9['forEach'](_0x396ce8=>{const _0x126d2b=_0x2579e5;_0x396ce8===_0x1f25a7||_0x396ce8[_0x126d2b(0xab)]===_0x1f25a7[_0x126d2b(0xab)]?_0x396ce8['endIndex']=_0x26b1c2:_0x396ce8[_0x126d2b(0xc7)]>=_0x26b1c2&&_0x396ce8[_0x126d2b(0xc7)]<_0x1f25a7['endIndex']&&(_0x396ce8[_0x126d2b(0xc7)]+=0x1,_0x396ce8[_0x126d2b(0x119)]+=0x1);});let _0x538282=C(_0x3dd696,{..._0x1f25a7,'endIndex':_0x26b1c2});_0x538282[_0x2579e5(0x115)]((_0x1c3274,_0x1bd6b9)=>{var _0x39a0f4;_0x1c3274['paragraphStyle']={...(_0x39a0f4=_0x1c3274['paragraphStyle'])==null?{}:_0x39a0f4,...b(_0x1bd6b9===0x0,_0x1bd6b9===_0x538282['length']-0x1)};});let _0x402f21=(_0x1dc152=_0x3dd696['paragraphs'])==null?void 0x0:_0x1dc152[_0x2579e5(0x136)](_0x3091a9=>_0x3091a9[_0x2579e5(0xc7)]===_0x26b1c2+0x1);return _0x402f21&&(_0x402f21[_0x2579e5(0x13f)]=S(_0x402f21[_0x2579e5(0x13f)])),{'nextDocumentData':_0xad5d7a,'cursorOffset':_0x26b1c2+0x1};}function h(_0x2eebc7){const _0x4dd8b7=_0x50a514;let _0x42d534=w(_0x2eebc7['documentData']),_0x14af12=T(_0x42d534),_0x5a428e=y(_0x14af12,_0x2eebc7[_0x4dd8b7(0x126)]);return _0x5a428e&&g(_0x42d534,_0x14af12,_0x5a428e,_0x2eebc7[_0x4dd8b7(0x126)],_0x2eebc7[_0x4dd8b7(0xde)])||null;}function g(_0x89a0f1,_0x5e5528,_0x2e1176,_0x530fba,_0x38c941){const _0x53f229=_0x50a514;let _0x4dc28b=se(_0x5e5528,_0x2e1176,_0x530fba,_0x38c941);if(!_0x4dc28b)return null;let _0x480d0d=_0x4dc28b[_0x53f229(0xbd)]-0x1;return ce(_0x5e5528,_0x4dc28b[_0x53f229(0xe1)]['startIndex'],_0x4dc28b[_0x53f229(0xe1)][_0x53f229(0xc7)]+0x1),{'nextDocumentData':_0x89a0f1,'cursorOffset':_0x480d0d};}function _(_0x1efe5e,_0x5676cf){const _0x2f0be5=_0x50a514;var _0x3bb9f8;return _0x1efe5e==null||(_0x3bb9f8=_0x1efe5e['blockRanges'])==null?void 0x0:_0x3bb9f8[_0x2f0be5(0x136)](_0x58dbe3=>_0x58dbe3[_0x2f0be5(0xc0)]===e[_0x2f0be5(0x131)]['CODE']&&_0x58dbe3[_0x2f0be5(0xc7)]<=_0x5676cf&&_0x5676cf<=_0x58dbe3[_0x2f0be5(0x119)]);}function v(_0x49087f){const _0x23fe10=_0x50a514;var _0x918f03;let _0xd9b3d0=_0x49087f['documentData'][_0x23fe10(0xae)];if(!_0xd9b3d0)return!0x1;let _0x7cae75=_0x49087f[_0x23fe10(0xc1)]===_0x23fe10(0xd9)?_0x49087f['cursorOffset']-0x1:_0x49087f[_0x23fe10(0x126)],_0x285fe1=_0x49087f[_0x23fe10(0xc1)]===_0x23fe10(0xda)?_0x49087f['cursorOffset']+0x1:_0x7cae75;return((_0x918f03=_0xd9b3d0[_0x23fe10(0xeb)])==null?[]:_0x918f03)[_0x23fe10(0xd7)](_0x369a8c=>_0x369a8c['blockType']===e['DocumentBlockRangeType']['CODE']?_0x7cae75===_0x369a8c['startIndex']||_0x7cae75===_0x369a8c[_0x23fe10(0x119)]||_0x285fe1===_0x369a8c[_0x23fe10(0xc7)]||_0x285fe1===_0x369a8c[_0x23fe10(0x119)]:!0x1);}function y(_0x103b77,_0x50ac37){const _0x2c4444=_0x50a514;var _0x394936;return(_0x394936=_0x103b77['blockRanges'])==null?void 0x0:_0x394936[_0x2c4444(0x136)](_0x3e6332=>{const _0x34e9a8=_0x2c4444;let _0xd1b0ef=D(_0x103b77,_0x3e6332);return _0x3e6332[_0x34e9a8(0xc0)]===e[_0x34e9a8(0x131)][_0x34e9a8(0xec)]&&_0x3e6332['startIndex']<=_0x50ac37&&_0x50ac37<=_0xd1b0ef+0x2;});}function b(_0xca99eb,_0x211d39,_0x293f98=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0xca99eb&&_0x293f98?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':l,'fs':0xc}};}function x(_0xfc07eb,_0x1986e3,_0x5c37c0,_0x474329=!0x1){const _0x48ef13=_0x50a514;var _0x2d726a;let _0x4f09c1=((_0x2d726a=_0xfc07eb['paragraphs'])==null?[]:_0x2d726a)[_0x48ef13(0xba)](_0x10e2aa=>_0x10e2aa[_0x48ef13(0xc7)]>_0x1986e3&&_0x10e2aa['startIndex']<_0x5c37c0);_0x4f09c1['forEach']((_0x45fc7f,_0x2abec1)=>{const _0x2d894f=_0x48ef13;var _0x48d744;_0x45fc7f[_0x2d894f(0x13f)]={...(_0x48d744=_0x45fc7f[_0x2d894f(0x13f)])==null?{}:_0x48d744,...b(_0x2abec1===0x0,_0x2abec1===_0x4f09c1[_0x2d894f(0xd4)]-0x1,_0x474329)};});}function S(_0x359f20){const _0x5a405c=_0x50a514;var _0x66e683,_0x22f784;let _0x50969e={..._0x359f20==null?{}:_0x359f20};return delete _0x50969e['indentEnd'],delete _0x50969e['indentStart'],delete _0x50969e['spaceAbove'],delete _0x50969e[_0x5a405c(0xc5)],((_0x66e683=_0x50969e[_0x5a405c(0xf0)])==null?void 0x0:_0x66e683['ff'])===l&&((_0x22f784=_0x50969e['textStyle'])==null?void 0x0:_0x22f784['fs'])===0xc&&delete _0x50969e['textStyle'],_0x50969e;}function C(_0x127e4f,_0x5d4620){const _0x5bff49=_0x50a514;var _0x36a2d7;let _0x2eefbb=D(_0x127e4f,_0x5d4620);return((_0x36a2d7=_0x127e4f[_0x5bff49(0xff)])==null?[]:_0x36a2d7)[_0x5bff49(0xba)](_0x1959f9=>_0x1959f9[_0x5bff49(0xc7)]>_0x5d4620['startIndex']&&_0x1959f9[_0x5bff49(0xc7)]<_0x2eefbb);}function ee(_0x33099e,_0x59f909,_0x8bf124){const _0xbbe300=_0x50a514;let _0x2d5a2e=oe(_0x33099e,_0x59f909,_0x8bf124),_0xe1cd50=_0x33099e[_0xbbe300(0xf2)]['slice'](_0x2d5a2e,_0x8bf124[_0xbbe300(0xc7)]);return Array['from'](_0xe1cd50)[_0xbbe300(0xb3)](_0x59ce42=>_0x59ce42===e[_0xbbe300(0x11f)][_0xbbe300(0x129)]||_0x59ce42===e[_0xbbe300(0x11f)][_0xbbe300(0xac)]);}function w(_0x148bd7){const _0x2b724f=_0x50a514;return e[_0x2b724f(0xdc)][_0x2b724f(0x11c)](_0x148bd7);}function T(_0x401c63){const _0x2afdc8=_0x50a514;if(!_0x401c63['body'])throw Error('Document\x20body\x20is\x20required');return _0x401c63[_0x2afdc8(0xae)];}function te(_0x2d7ae7,_0x375501,_0x168160){const _0x474579=_0x50a514;if(_0x375501==null||_0x168160==null){let _0x3de864=re(_0x2d7ae7);return{'startOffset':_0x3de864,'endOffset':_0x3de864};}let _0x372f29=Math[_0x474579(0x10a)](_0x375501,_0x168160),_0x54e9ad=Math[_0x474579(0x114)](_0x375501,_0x168160);if(_0x372f29===_0x54e9ad){let _0x1ef7e5=ne(_0x2d7ae7,_0x372f29);return{'startOffset':_0x1ef7e5,'endOffset':_0x1ef7e5};}return ae(_0x2d7ae7,_0x372f29,_0x54e9ad);}function ne(_0x410835,_0x306282){const _0x10ae3d=_0x50a514;return _0x306282===0x0&&_0x410835[_0x10ae3d(0xf2)][0x0]===e[_0x10ae3d(0x11f)]['PARAGRAPH']?0x1:_0x306282;}function re(_0x39ddf1){const _0x4d84cf=_0x50a514;return _0x39ddf1[_0x4d84cf(0xf2)][_0x4d84cf(0x140)](e[_0x4d84cf(0x11f)][_0x4d84cf(0xe8)])?Math[_0x4d84cf(0x114)](0x0,_0x39ddf1[_0x4d84cf(0xf2)]['length']-0x1):_0x39ddf1[_0x4d84cf(0xf2)][_0x4d84cf(0xd4)];}function ie(_0x1847bf,_0x4867a3,_0x5e0284){const _0x50b2b0=_0x50a514;var _0xba112d;let _0x3ef11a=Math[_0x50b2b0(0x10a)](_0x4867a3,_0x5e0284),_0x12c4a6=Math[_0x50b2b0(0x114)](_0x4867a3,_0x5e0284);return!!((_0xba112d=_0x1847bf[_0x50b2b0(0x10e)])!=null&&_0xba112d['some'](_0xee3161=>_0x3ef11a>_0xee3161[_0x50b2b0(0xc7)]&&_0x3ef11a<_0xee3161[_0x50b2b0(0x119)]||_0x12c4a6>_0xee3161[_0x50b2b0(0xc7)]&&_0x12c4a6<_0xee3161[_0x50b2b0(0x119)]||_0x3ef11a<=_0xee3161[_0x50b2b0(0xc7)]&&_0x12c4a6>=_0xee3161['endIndex']));}function ae(_0x2dd492,_0x2a4650,_0x343d77){const _0x22aafa=_0x50a514;var _0x571f88,_0x448e58;let _0x156b4=[...(_0x571f88=_0x2dd492['paragraphs'])==null?[]:_0x571f88]['sort']((_0x40b0f8,_0x23a5dd)=>_0x40b0f8[_0x22aafa(0xc7)]-_0x23a5dd[_0x22aafa(0xc7)]),_0x5d25a4=_0x156b4[_0x22aafa(0x136)]((_0x321b79,_0x488e69)=>(_0x488e69===0x0?0x0:_0x156b4[_0x488e69-0x1]['startIndex']+0x1)<=_0x2a4650&&_0x2a4650<=_0x321b79[_0x22aafa(0xc7)]),_0x2ad2fa=(_0x448e58=_0x156b4[_0x22aafa(0x136)](_0x1618e1=>_0x1618e1['startIndex']>=_0x343d77-0x1))==null?_0x156b4[_0x156b4['length']-0x1]:_0x448e58;return{'startOffset':_0x5d25a4?E(_0x156b4,_0x5d25a4):_0x2a4650,'endOffset':_0x2ad2fa?_0x2ad2fa[_0x22aafa(0xc7)]+0x1:_0x343d77};}function E(_0x184ed5,_0x164356){const _0x150a30=_0x50a514;let _0x2c22b1=_0x184ed5[_0x150a30(0x133)](_0x164356);return _0x2c22b1>0x0?_0x184ed5[_0x2c22b1-0x1][_0x150a30(0xc7)]+0x1:0x0;}function oe(_0x3ac95f,_0x36e312,_0x1b0278){const _0x56d527=_0x50a514;var _0x1128ad;return Math[_0x56d527(0x114)](E((_0x1128ad=_0x3ac95f[_0x56d527(0xff)])==null?[]:_0x1128ad,_0x1b0278),_0x36e312[_0x56d527(0xc7)]+0x1);}function D(_0x1773c2,_0x5769c3){const _0x1b64fe=_0x50a514;return _0x1773c2['dataStream'][_0x5769c3[_0x1b64fe(0x119)]]===e[_0x1b64fe(0x11f)][_0x1b64fe(0xac)]?_0x5769c3['endIndex']:_0x1773c2[_0x1b64fe(0xf2)][_0x5769c3['endIndex']+0x1]===e['DataStreamTreeTokenType'][_0x1b64fe(0xac)]?_0x5769c3['endIndex']+0x1:_0x5769c3[_0x1b64fe(0x119)];}function se(_0x466a6e,_0x202c3a,_0x33488c,_0x57deb6){const _0x33dc5d=_0x50a514;var _0x3cf7a5,_0x5249ed;let _0x316d87=D(_0x466a6e,_0x202c3a),_0x3aa9cd=((_0x3cf7a5=_0x466a6e[_0x33dc5d(0xff)])==null?[]:_0x3cf7a5)[_0x33dc5d(0x136)](_0x21825f=>_0x21825f[_0x33dc5d(0xc7)]===_0x316d87+0x1);if(!_0x3aa9cd||_0x57deb6!=null&&_0x3aa9cd[_0x33dc5d(0xc7)]!==_0x57deb6||_0x33488c<_0x316d87||_0x33488c>_0x3aa9cd[_0x33dc5d(0xc7)]+0x1||_0x466a6e[_0x33dc5d(0xf2)][_0x3aa9cd[_0x33dc5d(0xc7)]]!==e[_0x33dc5d(0x11f)][_0x33dc5d(0x108)])return null;let _0x57e03b=E((_0x5249ed=_0x466a6e[_0x33dc5d(0xff)])==null?[]:_0x5249ed,_0x3aa9cd),_0x37853b=_0x466a6e[_0x33dc5d(0xf2)][_0x33dc5d(0xbf)](_0x57e03b,_0x3aa9cd['startIndex']);return Array['from'](_0x37853b)[_0x33dc5d(0xb3)](_0x272ecd=>_0x272ecd===e['DataStreamTreeTokenType'][_0x33dc5d(0xac)])?{'paragraph':_0x3aa9cd,'endTokenOffset':_0x316d87}:null;}function O(_0x32fb71,_0x9eeb83){const _0x4363b5=_0x50a514;var _0x43ca8c;let _0x1bbd89=D(_0x32fb71,_0x9eeb83),_0x29ab08=_0x32fb71['dataStream'][_0x1bbd89+0x1];_0x29ab08!==e[_0x4363b5(0x11f)][_0x4363b5(0xe8)]&&_0x29ab08!==void 0x0||k(_0x32fb71,_0x1bbd89+0x1,e[_0x4363b5(0x11f)][_0x4363b5(0x108)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,e[_0x4363b5(0xcc)])(new Set((_0x43ca8c=_0x32fb71[_0x4363b5(0xff)])==null?void 0x0:_0x43ca8c[_0x4363b5(0x134)](_0x366aaa=>_0x366aaa['paragraphId'])))}]});}function k(_0x1444af,_0x40f84d,_0x1d1052,_0x128f58={}){const _0xaafdcf=_0x50a514;var _0x3c0cb0,_0x186e86;if(_0x1d1052){if(_0x1444af['dataStream']=''+_0x1444af['dataStream'][_0xaafdcf(0xbf)](0x0,_0x40f84d)+_0x1d1052+_0x1444af[_0xaafdcf(0xf2)]['slice'](_0x40f84d),le(_0x1444af,_0x40f84d,_0x1d1052[_0xaafdcf(0xd4)]),(_0x3c0cb0=_0x128f58[_0xaafdcf(0xff)])!=null&&_0x3c0cb0['length']){var _0x19f213;_0x1444af[_0xaafdcf(0xff)]=[...(_0x19f213=_0x1444af[_0xaafdcf(0xff)])==null?[]:_0x19f213,..._0x128f58[_0xaafdcf(0xff)][_0xaafdcf(0x134)](_0x211c25=>({..._0x211c25,'startIndex':_0x211c25[_0xaafdcf(0xc7)]+_0x40f84d}))][_0xaafdcf(0x14e)]((_0x46d184,_0x3e1a1d)=>_0x46d184[_0xaafdcf(0xc7)]-_0x3e1a1d[_0xaafdcf(0xc7)]);}if((_0x186e86=_0x128f58[_0xaafdcf(0xeb)])!=null&&_0x186e86['length']){var _0x25df0e;_0x1444af[_0xaafdcf(0xeb)]=[...(_0x25df0e=_0x1444af['blockRanges'])==null?[]:_0x25df0e,..._0x128f58[_0xaafdcf(0xeb)][_0xaafdcf(0x134)](_0x376eb7=>({..._0x376eb7,'startIndex':_0x376eb7[_0xaafdcf(0xc7)]+_0x40f84d,'endIndex':_0x376eb7[_0xaafdcf(0x119)]+_0x40f84d}))][_0xaafdcf(0x14e)]((_0x2a7c9e,_0x58da1d)=>_0x2a7c9e['startIndex']-_0x58da1d[_0xaafdcf(0xc7)]);}}}function ce(_0x2176bf,_0x3e34a5,_0x2f907c){const _0x4f8069=_0x50a514;let _0x189a54=_0x2f907c-_0x3e34a5;_0x2176bf[_0x4f8069(0xf2)]=''+_0x2176bf[_0x4f8069(0xf2)][_0x4f8069(0xbf)](0x0,_0x3e34a5)+_0x2176bf[_0x4f8069(0xf2)][_0x4f8069(0xbf)](_0x2f907c),ue(_0x2176bf,_0x3e34a5,_0x189a54);}function le(_0x16228c,_0x316acc,_0x36c3cb){const _0x3bb871=_0x50a514;_0x16228c[_0x3bb871(0xff)]=A(_0x16228c['paragraphs'],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0x135)]=A(_0x16228c[_0x3bb871(0x135)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xcb)]=A(_0x16228c[_0x3bb871(0xcb)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xc6)]=de(_0x16228c[_0x3bb871(0xc6)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0x10e)]=M(_0x16228c['tables'],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xca)]=M(_0x16228c['customRanges'],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xd3)]=M(_0x16228c[_0x3bb871(0xd3)],_0x316acc,_0x36c3cb),_0x16228c[_0x3bb871(0xeb)]=M(_0x16228c[_0x3bb871(0xeb)],_0x316acc,_0x36c3cb);}function ue(_0x49522c,_0x4d3ce4,_0xb89123){const _0x255406=_0x50a514;var _0x3512b4,_0x18a820;_0x49522c['paragraphs']=j(_0x49522c[_0x255406(0xff)],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0x135)]=j(_0x49522c[_0x255406(0x135)],_0x4d3ce4,_0xb89123),_0x49522c['customBlocks']=j(_0x49522c[_0x255406(0xcb)],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0xc6)]=(_0x3512b4=N((_0x18a820=_0x49522c[_0x255406(0xc6)])==null?void 0x0:_0x18a820[_0x255406(0x134)](_0x5c23b3=>({..._0x5c23b3,'startIndex':_0x5c23b3['st'],'endIndex':_0x5c23b3['ed']})),_0x4d3ce4,_0xb89123))==null?void 0x0:_0x3512b4[_0x255406(0x134)](_0x49ddb2=>{let {startIndex:_0x38db42,endIndex:_0x43c11b,..._0x2e0f3b}=_0x49ddb2;return{..._0x2e0f3b,'st':_0x38db42,'ed':_0x43c11b};}),_0x49522c[_0x255406(0x10e)]=N(_0x49522c[_0x255406(0x10e)],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0xca)]=N(_0x49522c['customRanges'],_0x4d3ce4,_0xb89123),_0x49522c[_0x255406(0xd3)]=N(_0x49522c[_0x255406(0xd3)],_0x4d3ce4,_0xb89123),_0x49522c['blockRanges']=N(_0x49522c[_0x255406(0xeb)],_0x4d3ce4,_0xb89123);}function A(_0x3cddf9,_0x219cdc,_0x97771b){const _0x32dc11=_0x50a514;return _0x3cddf9==null?void 0x0:_0x3cddf9[_0x32dc11(0x134)](_0x426829=>_0x426829[_0x32dc11(0xc7)]>=_0x219cdc?{..._0x426829,'startIndex':_0x426829[_0x32dc11(0xc7)]+_0x97771b}:_0x426829);}function j(_0x5e3967,_0x574d41,_0x23d422){const _0x5b04ef=_0x50a514;let _0x4bd119=_0x574d41+_0x23d422;return _0x5e3967==null?void 0x0:_0x5e3967[_0x5b04ef(0x134)](_0x3bd7af=>_0x3bd7af['startIndex']>=_0x574d41&&_0x3bd7af[_0x5b04ef(0xc7)]<_0x4bd119?null:_0x3bd7af[_0x5b04ef(0xc7)]>=_0x4bd119?{..._0x3bd7af,'startIndex':_0x3bd7af[_0x5b04ef(0xc7)]-_0x23d422}:_0x3bd7af)[_0x5b04ef(0xba)](_0x15526c=>_0x15526c!=null);}function de(_0x8ab33a,_0x5bbcab,_0xf9b251){return _0x8ab33a==null?void 0x0:_0x8ab33a['map'](_0x25cc8e=>_0x25cc8e['st']>=_0x5bbcab?{..._0x25cc8e,'st':_0x25cc8e['st']+_0xf9b251,'ed':_0x25cc8e['ed']+_0xf9b251}:_0x25cc8e['ed']>_0x5bbcab?{..._0x25cc8e,'ed':_0x25cc8e['ed']+_0xf9b251}:_0x25cc8e);}function M(_0x1c5ca1,_0x3d3af8,_0x372114){const _0x18b35d=_0x50a514;return _0x1c5ca1==null?void 0x0:_0x1c5ca1[_0x18b35d(0x134)](_0x57c2f3=>_0x57c2f3[_0x18b35d(0xc7)]>=_0x3d3af8?{..._0x57c2f3,'startIndex':_0x57c2f3['startIndex']+_0x372114,'endIndex':_0x57c2f3[_0x18b35d(0x119)]+_0x372114}:_0x57c2f3[_0x18b35d(0x119)]>=_0x3d3af8?{..._0x57c2f3,'endIndex':_0x57c2f3[_0x18b35d(0x119)]+_0x372114}:_0x57c2f3);}function N(_0x3de0b6,_0x5920a6,_0x199284){const _0x43a409=_0x50a514;let _0x347a15=_0x5920a6+_0x199284;return _0x3de0b6==null?void 0x0:_0x3de0b6['map'](_0x3dbb9b=>_0x3dbb9b[_0x43a409(0xc7)]>=_0x5920a6&&_0x3dbb9b[_0x43a409(0x119)]<_0x347a15?null:_0x3dbb9b[_0x43a409(0xc7)]>=_0x347a15?{..._0x3dbb9b,'startIndex':_0x3dbb9b[_0x43a409(0xc7)]-_0x199284,'endIndex':_0x3dbb9b[_0x43a409(0x119)]-_0x199284}:_0x3dbb9b['endIndex']>=_0x5920a6?{..._0x3dbb9b,'startIndex':_0x3dbb9b['startIndex']<_0x5920a6?_0x3dbb9b['startIndex']:_0x5920a6,'endIndex':Math[_0x43a409(0x114)](_0x5920a6,_0x3dbb9b[_0x43a409(0x119)]-_0x199284)}:_0x3dbb9b)[_0x43a409(0xba)](_0x293fa7=>_0x293fa7!=null);}function P(_0x29c9d6,_0x1a75ee,_0x4c20c5,_0x3ab24c){_0x29c9d6==null||_0x29c9d6['forEach'](_0x2d9707=>{const _0x29e92e=_0x3235;_0x2d9707[_0x29e92e(0xc7)]>=_0x1a75ee&&_0x2d9707[_0x29e92e(0xc7)]<_0x4c20c5&&(_0x2d9707[_0x29e92e(0xc7)]+=_0x3ab24c);});}function fe(_0x49bc56,_0x390610,_0x2d2f6b,_0x12079a){const _0x255abc=_0x50a514;_0x49bc56==null||_0x49bc56[_0x255abc(0x115)](_0x316e18=>{_0x316e18['st']>=_0x390610&&_0x316e18['st']<_0x2d2f6b?(_0x316e18['st']+=_0x12079a,_0x316e18['ed']+=_0x12079a):_0x316e18['ed']>_0x390610&&_0x316e18['ed']<_0x2d2f6b&&(_0x316e18['ed']+=_0x12079a);});}function F(_0x2a8c1a,_0x1777ca,_0x2c8fed,_0x51ceab){_0x2a8c1a==null||_0x2a8c1a['forEach'](_0x39ee36=>{const _0x11a8ef=_0x3235;_0x39ee36[_0x11a8ef(0xc7)]>=_0x1777ca&&_0x39ee36[_0x11a8ef(0xc7)]<_0x2c8fed?(_0x39ee36[_0x11a8ef(0xc7)]+=_0x51ceab,_0x39ee36[_0x11a8ef(0x119)]+=_0x51ceab):_0x39ee36[_0x11a8ef(0x119)]>_0x1777ca&&_0x39ee36['endIndex']<_0x2c8fed&&(_0x39ee36[_0x11a8ef(0x119)]+=_0x51ceab);});}function I(_0x547d8b){'@babel/helpers - typeof';const _0x2b34bd=_0x50a514;return I=typeof Symbol==_0x2b34bd(0xee)&&typeof Symbol[_0x2b34bd(0x147)]==_0x2b34bd(0x12d)?function(_0x3b7cdf){return typeof _0x3b7cdf;}:function(_0x55ea34){const _0x4e978f=_0x2b34bd;return _0x55ea34&&typeof Symbol==_0x4e978f(0xee)&&_0x55ea34['constructor']===Symbol&&_0x55ea34!==Symbol['prototype']?_0x4e978f(0x12d):typeof _0x55ea34;},I(_0x547d8b);}function pe(_0x2dad53,_0x37a7fa){const _0x51c7f4=_0x50a514;if(I(_0x2dad53)!=_0x51c7f4(0x138)||!_0x2dad53)return _0x2dad53;var _0x3fb61f=_0x2dad53[Symbol[_0x51c7f4(0xcf)]];if(_0x3fb61f!==void 0x0){var _0x463a6e=_0x3fb61f['call'](_0x2dad53,_0x37a7fa||'default');if(I(_0x463a6e)!=_0x51c7f4(0x138))return _0x463a6e;throw TypeError(_0x51c7f4(0xe7));}return(_0x37a7fa===_0x51c7f4(0x113)?String:Number)(_0x2dad53);}function me(_0x3413aa){const _0x128f00=_0x50a514;var _0x3c44c6=pe(_0x3413aa,'string');return I(_0x3c44c6)==_0x128f00(0x12d)?_0x3c44c6:_0x3c44c6+'';}function L(_0x1bba21,_0x429beb,_0x9391c5){const _0x1628ee=_0x50a514;return(_0x429beb=me(_0x429beb))in _0x1bba21?Object[_0x1628ee(0x14b)](_0x1bba21,_0x429beb,{'value':_0x9391c5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bba21[_0x429beb]=_0x9391c5,_0x1bba21;}function _0x3235(_0x29813a,_0x2aafc9){_0x29813a=_0x29813a-0xab;const _0x246b5e=_0x246b();let _0x32354a=_0x246b5e[_0x29813a];return _0x32354a;}var R=class extends e[_0x50a514(0x12c)]{constructor(..._0x55b72b){const _0x2a78d3=_0x50a514;super(..._0x55b72b),L(this,'_resources',new Map()),L(this,'_change$',new n['Subject']()),L(this,_0x2a78d3(0x104),this[_0x2a78d3(0x121)][_0x2a78d3(0x125)]());}[_0x50a514(0x148)](_0x361a4b,_0x5429db){const _0x3c9273=_0x50a514;return o(this['_resources']['get'](_0x361a4b))[_0x3c9273(0xcd)][_0x5429db];}[_0x50a514(0x116)](_0x16bf57,_0x5c738e,_0x242221){const _0x2be44f=_0x50a514;this[_0x2be44f(0xc4)](_0x16bf57,_0x5c738e,s(this[_0x2be44f(0xf6)][_0x2be44f(0xf8)](_0x16bf57),_0x5c738e,_0x242221));}[_0x50a514(0xc2)](_0x3829d4,_0x114a02){const _0x36cce2=_0x50a514;this[_0x36cce2(0xc4)](_0x3829d4,_0x114a02,c(this[_0x36cce2(0xf6)][_0x36cce2(0xf8)](_0x3829d4),_0x114a02));}['serialize'](_0x447657){const _0xac3fef=_0x50a514;return o(this[_0xac3fef(0xf6)][_0xac3fef(0xf8)](_0x447657));}[_0x50a514(0xb0)](_0x3f7fe2,_0x3a62a2){const _0x28a5c5=_0x50a514;this['_resources'][_0x28a5c5(0xe0)](_0x3f7fe2,o(_0x3a62a2)),this['_change$']['next']({'unitId':_0x3f7fe2});}['removeUnit'](_0x825a6e){const _0x4d24da=_0x50a514;this[_0x4d24da(0xf6)][_0x4d24da(0x12f)](_0x825a6e),this[_0x4d24da(0x121)][_0x4d24da(0xd5)]({'unitId':_0x825a6e});}['dispose'](){const _0x586736=_0x50a514;super[_0x586736(0x132)](),this[_0x586736(0xf6)]['clear'](),this[_0x586736(0x121)][_0x586736(0x130)]();}[_0x50a514(0xc4)](_0x242594,_0x2d474e,_0x49a5b7){const _0x1d30dd=_0x50a514;this[_0x1d30dd(0xf6)]['set'](_0x242594,_0x49a5b7),this['_change$'][_0x1d30dd(0xd5)]({'unitId':_0x242594,'blockId':_0x2d474e});}};const z={'id':_0x50a514(0x118),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':_0xd817b6=>{const _0x32f6fc=_0x50a514;let _0x35fe52=he(_0xd817b6);if(_0x35fe52)return _0xd817b6[_0x32f6fc(0xf8)](e[_0x32f6fc(0x106)])['syncExecuteCommand'](V['id'],{'startOffset':_0x35fe52[_0x32f6fc(0x124)],'endOffset':_0x35fe52['endOffset'],'unitId':_0x35fe52[_0x32f6fc(0xfb)]});let _0x141fc8=ge(_0xd817b6);if(!_0x141fc8)return!0x1;let _0x172a0a=_0x141fc8[_0x32f6fc(0xc7)]+0x1;return _0xd817b6[_0x32f6fc(0xf8)](e[_0x32f6fc(0x106)])['syncExecuteCommand'](V['id'],{'startOffset':_0x172a0a,'endOffset':_0x172a0a});}},B={'id':_0x50a514(0xf3),'type':e[_0x50a514(0xdb)]['COMMAND'],'handler':()=>!0x0},V={'id':_0x50a514(0x139),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':(_0x1d37a3,_0x111aa1)=>{const _0x56b5d3=_0x50a514;var _0x19e04e,_0x18ef53,_0x2a9d09;let _0x4910bf=G(_0x1d37a3,_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0xfb)]);if(!_0x4910bf)return!0x1;let _0x330270=K(_0x1d37a3),_0x590dfb=u({'blockId':(_0x19e04e=_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0xab)])==null?(0x0,e[_0x56b5d3(0xfe)])(0x6):_0x19e04e,'config':_0x111aa1==null?void 0x0:_0x111aa1['config'],'documentData':_0x4910bf[_0x56b5d3(0xed)],'endOffset':(_0x18ef53=_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0xe5)])==null?_0x330270==null?void 0x0:_0x330270[_0x56b5d3(0xe5)]:_0x18ef53,'metadata':_0x4910bf[_0x56b5d3(0x145)][_0x56b5d3(0x13a)](_0x4910bf['unitId']),'startOffset':(_0x2a9d09=_0x111aa1==null?void 0x0:_0x111aa1[_0x56b5d3(0x124)])==null?_0x330270==null?void 0x0:_0x330270[_0x56b5d3(0x124)]:_0x2a9d09}),_0x4ad93b=J(_0x4910bf[_0x56b5d3(0x110)],_0x4910bf['unitId'],_0x4910bf[_0x56b5d3(0xed)],_0x590dfb[_0x56b5d3(0xd2)],_0x590dfb['cursorOffset']);return _0x4ad93b&&_0x590dfb[_0x56b5d3(0x141)]&&_0x4910bf['model'][_0x56b5d3(0xb0)](_0x4910bf[_0x56b5d3(0xfb)],_0x590dfb[_0x56b5d3(0x141)]),_0x4ad93b;}},H={'id':_0x50a514(0x143),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':(_0x28ac0e,_0x2d9294)=>{const _0x3c9459=_0x50a514;if(!_0x2d9294)return!0x1;let _0x54ce1e=G(_0x28ac0e,_0x2d9294[_0x3c9459(0xfb)]);if(!_0x54ce1e)return!0x1;let _0x2caddb=p({'blockId':_0x2d9294[_0x3c9459(0xab)],'config':_0x2d9294[_0x3c9459(0xb9)],'documentData':_0x54ce1e[_0x3c9459(0xed)],'metadata':_0x54ce1e['model'][_0x3c9459(0x13a)](_0x54ce1e[_0x3c9459(0xfb)])});return _0x2caddb['nextMetadata']&&_0x54ce1e[_0x3c9459(0x145)][_0x3c9459(0xb0)](_0x54ce1e['unitId'],_0x2caddb[_0x3c9459(0x141)]),!0x0;}},U={'id':'docs-code.command.exit','type':e[_0x50a514(0xdb)]['COMMAND'],'handler':(_0x2ad56f,_0xdf3011)=>{const _0x1f1943=_0x50a514;var _0x2a1905,_0x5ae1b9;let _0x2b1b01=G(_0x2ad56f,_0xdf3011==null?void 0x0:_0xdf3011[_0x1f1943(0xfb)]);if(!_0x2b1b01)return!0x1;let _0x3a4ffd=(_0x2a1905=_0xdf3011==null?void 0x0:_0xdf3011['cursorOffset'])==null?(_0x5ae1b9=K(_0x2ad56f))==null?void 0x0:_0x5ae1b9[_0x1f1943(0x124)]:_0x2a1905;if(_0x3a4ffd==null)return!0x1;let _0x2febaf=m({'cursorOffset':_0x3a4ffd,'documentData':_0x2b1b01[_0x1f1943(0xed)]});return _0x2febaf?J(_0x2b1b01[_0x1f1943(0x110)],_0x2b1b01['unitId'],_0x2b1b01[_0x1f1943(0xed)],_0x2febaf['nextDocumentData'],_0x2febaf['cursorOffset']):!0x1;}},W={'id':_0x50a514(0x142),'type':e[_0x50a514(0xdb)][_0x50a514(0x14c)],'handler':(_0x196a77,_0x5656e2)=>{const _0x1dda7d=_0x50a514;var _0x5eae0f,_0x140243;let _0x5dee93=G(_0x196a77,_0x5656e2==null?void 0x0:_0x5656e2[_0x1dda7d(0xfb)]);if(!_0x5dee93)return!0x1;let _0x5c46e4=(_0x5eae0f=_0x5656e2==null?void 0x0:_0x5656e2[_0x1dda7d(0x126)])==null?(_0x140243=K(_0x196a77))==null?void 0x0:_0x140243['startOffset']:_0x5eae0f;if(_0x5c46e4==null)return!0x1;let _0x338d80=h({'cursorOffset':_0x5c46e4,'documentData':_0x5dee93['previousDocumentData'],'paragraphStartIndex':_0x5656e2==null?void 0x0:_0x5656e2[_0x1dda7d(0xde)]});return _0x338d80?J(_0x5dee93[_0x1dda7d(0x110)],_0x5dee93[_0x1dda7d(0xfb)],_0x5dee93[_0x1dda7d(0xed)],_0x338d80[_0x1dda7d(0xd2)],_0x338d80[_0x1dda7d(0x126)]):!0x1;}};function G(_0x47dbd6,_0x5af48f){const _0x4f2490=_0x50a514;let _0x553546=_0x47dbd6['get'](e['IUniverInstanceService']),_0x963415=_0x5af48f?_0x553546[_0x4f2490(0x11a)](_0x5af48f):_0x553546['getCurrentUnitOfType'](e['UniverInstanceType']['UNIVER_DOC']);return _0x963415?{'commandService':_0x47dbd6[_0x4f2490(0xf8)](e['ICommandService']),'model':_0x47dbd6[_0x4f2490(0xf8)](R),'previousDocumentData':_0x963415[_0x4f2490(0xd1)](),'unitId':_0x963415[_0x4f2490(0xe9)]()}:null;}function K(_0x27d5f7){const _0x31e3ea=_0x50a514;var _0x3d864f;return(_0x3d864f=_0x27d5f7['get'](t[_0x31e3ea(0x111)])['getTextRanges']())==null?void 0x0:_0x3d864f[0x0];}function _0x246b(){const _0x35056f=['CODE','previousDocumentData','function','stringify','textStyle','247945FnAmDR','dataStream','docs-code.command.consume-boundary-delete','decorate','_initResource','_resources','buildUpdateCodeActions','get','4851CEPKoB','UniverInstanceType','unitId','IConfigService','metadata','generateRandomId','paragraphs','packageName','DEFAULT_CODE_CONFIG','_injector','getBody','change$','7aFHJCs','ICommandService','javascript','PARAGRAPH','removeUnit','min','32mRPhuL','BuildTextUtils','DOCS_CODE_PLUGIN','tables','registerPluginResource','commandService','DocSelectionManagerService','documentData','string','max','forEach','setCodeConfig','getCurrentUnitOfType','docs-code.command.insert-below','endIndex','getUniverDocInstance','12198952kUOAAv','deepClone','JSONX','toStringTag','DataStreamTreeTokenType','DocsCodeModel','_change$','spaceAbove','_docsCodeModel','startOffset','asObservable','cursorOffset','type','reduce','BLOCK_START','merge','UNIVER_DOC','Disposable','symbol','DocsCodeConsumeBoundaryDeleteCommand','delete','complete','DocumentBlockRangeType','dispose','indexOf','map','sectionBreaks','find','setConfig','object','docs-code.command.insert','serialize','consumeInsertRange','763190OwPMhI','_configService','IUniverInstanceService','paragraphStyle','endsWith','nextMetadata','docs-code.command.cancel-empty-paragraph','docs-code.command.update','2154QtNKaG','model','6298578iuYwBZ','iterator','getCodeConfig','DocsCodeExitCommand','DependentOn','defineProperty','COMMAND','findCodeRangeAtOffset','sort','blockId','BLOCK_END','_commandService','body','entries','deserialize','DocsCodeUpdateCommand','getOwnPropertyDescriptor','every','_config','parse','UniverLicensePlugin','join','docs-code.config','config','filter','add','compose','endTokenOffset','DocsCodeCancelEmptyParagraphCommand','slice','blockType','direction','removeCode','normalizeDocsCodeConfig','_setResource','spaceBelow','textRuns','startIndex','UniverDocsCodePlugin','DocsCodeInsertBelowCommand','customRanges','customBlocks','createParagraphId','codes','registerCommand','toPrimitive','Module','getSnapshot','nextDocumentData','customDecorations','length','next','replaceOp','some','@univerjs-pro/docs-code','left','right','CommandType','Tools','_resourceManagerService','paragraphStartIndex','46801450lpfmgV','set','paragraph','getParagraphsInRange','disposeWithMe','syncExecuteCommand','endOffset','1518654epUfAA','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SECTION_BREAK','getUnitId','diffValue','blockRanges'];_0x246b=function(){return _0x35056f;};return _0x246b();}function he(_0x1f8775){const _0x56f258=_0x50a514;var _0x4cca50;let _0x53580d=(_0x4cca50=_0x1f8775[_0x56f258(0xf8)](e[_0x56f258(0x13e)])[_0x56f258(0x117)](e[_0x56f258(0xfa)][_0x56f258(0x12b)]))==null?void 0x0:_0x4cca50[_0x56f258(0xe9)]();try{return _0x1f8775[_0x56f258(0xf8)](t['DocContentInsertService'])[_0x56f258(0x13b)](_0x53580d);}catch{return null;}}function ge(_0x3cdb0a){const _0xa98a45=_0x50a514;var _0x2e22a8,_0x560af6,_0x48cb96;let _0x3c3023=K(_0x3cdb0a);if(!_0x3c3023)return null;let _0x571452=_0x3cdb0a[_0xa98a45(0xf8)](e['IUniverInstanceService'])[_0xa98a45(0x117)](e[_0xa98a45(0xfa)][_0xa98a45(0x12b)]),_0x1aa001=_0x571452==null?void 0x0:_0x571452[_0xa98a45(0x103)]();return _0x1aa001?(_0x2e22a8=e[_0xa98a45(0x10c)]['range'][_0xa98a45(0xe2)](_0x3c3023,(_0x560af6=_0x1aa001[_0xa98a45(0xff)])==null?[]:_0x560af6,(_0x48cb96=_0x1aa001[_0xa98a45(0xf2)])==null?'':_0x48cb96)[0x0])==null?null:_0x2e22a8:null;}function _e(_0x32df3d,_0x1aaa80){const _0xe73663=_0x50a514;var _0xc22cd9,_0x7624b0,_0x53c63e,_0x5a7f86,_0x2106b7,_0x2a30a0,_0x38684b,_0x10af74,_0x50c912,_0x385a9e,_0x3c2968,_0x1a75b8,_0x514f04,_0xf26b24,_0x238e00,_0x524997,_0xed5cf7,_0x389915;let _0x29f89e=e[_0xe73663(0x11d)]['getInstance']();return[q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xf2)],(_0xc22cd9=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0xc22cd9[_0xe73663(0xf2)],(_0x7624b0=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x7624b0['dataStream']),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xff)],(_0x53c63e=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x53c63e[_0xe73663(0xff)],(_0x5a7f86=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x5a7f86[_0xe73663(0xff)]),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0x135)],(_0x2106b7=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x2106b7[_0xe73663(0x135)],(_0x2a30a0=_0x1aaa80['body'])==null?void 0x0:_0x2a30a0[_0xe73663(0x135)]),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xc6)],(_0x38684b=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x38684b[_0xe73663(0xc6)],(_0x10af74=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x10af74[_0xe73663(0xc6)]),q(_0x29f89e,[_0xe73663(0xae),'customBlocks'],(_0x50c912=_0x32df3d['body'])==null?void 0x0:_0x50c912['customBlocks'],(_0x385a9e=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x385a9e[_0xe73663(0xcb)]),q(_0x29f89e,[_0xe73663(0xae),_0xe73663(0xca)],(_0x3c2968=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x3c2968[_0xe73663(0xca)],(_0x1a75b8=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x1a75b8[_0xe73663(0xca)]),q(_0x29f89e,['body',_0xe73663(0xd3)],(_0x514f04=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x514f04[_0xe73663(0xd3)],(_0xf26b24=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0xf26b24['customDecorations']),q(_0x29f89e,[_0xe73663(0xae),'tables'],(_0x238e00=_0x32df3d[_0xe73663(0xae)])==null?void 0x0:_0x238e00['tables'],(_0x524997=_0x1aaa80['body'])==null?void 0x0:_0x524997['tables']),q(_0x29f89e,['body',_0xe73663(0xeb)],(_0xed5cf7=_0x32df3d['body'])==null?void 0x0:_0xed5cf7['blockRanges'],(_0x389915=_0x1aaa80[_0xe73663(0xae)])==null?void 0x0:_0x389915[_0xe73663(0xeb)])][_0xe73663(0xba)](Boolean)[_0xe73663(0x128)]((_0x24c184,_0x1b4861)=>e['JSONX'][_0xe73663(0xbc)](_0x24c184,_0x1b4861),null);}function q(_0x489f77,_0x49c7ee,_0x109732,_0x2f81b6){const _0x1fc75d=_0x50a514;return e[_0x1fc75d(0xdc)][_0x1fc75d(0xea)](_0x109732,_0x2f81b6)?null:_0x489f77[_0x1fc75d(0xd6)](_0x49c7ee,_0x109732,_0x2f81b6);}function J(_0x2ed597,_0x239f06,_0x41814d,_0x48a032,_0x1cc144){const _0x5034e6=_0x50a514;let _0x12a4e5=_e(_0x41814d,_0x48a032);return _0x12a4e5?!!_0x2ed597[_0x5034e6(0xe4)](t['RichTextEditingMutation']['id'],{'unitId':_0x239f06,'actions':_0x12a4e5,'textRanges':[{'startOffset':_0x1cc144,'endOffset':_0x1cc144,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const Y='DOC_CODE_PLUGIN';var ve=_0x50a514(0xd8),ye='1.0.0-insiders.20260701-0ef51b0';const X={};function Z(_0x443e6e,_0x2be482){return function(_0x4375f6,_0x384130){_0x2be482(_0x4375f6,_0x384130,_0x443e6e);};}function be(_0x497bc5,_0x341909,_0x352e4d,_0x4dced9){const _0x3cf81b=_0x50a514;var _0x5b89c3=arguments[_0x3cf81b(0xd4)],_0x4184b7=_0x5b89c3<0x3?_0x341909:_0x4dced9===null?_0x4dced9=Object[_0x3cf81b(0xb2)](_0x341909,_0x352e4d):_0x4dced9,_0x44f15e;if(typeof Reflect=='object'&&typeof Reflect[_0x3cf81b(0xf4)]==_0x3cf81b(0xee))_0x4184b7=Reflect['decorate'](_0x497bc5,_0x341909,_0x352e4d,_0x4dced9);else{for(var _0xdb5bd8=_0x497bc5[_0x3cf81b(0xd4)]-0x1;_0xdb5bd8>=0x0;_0xdb5bd8--)(_0x44f15e=_0x497bc5[_0xdb5bd8])&&(_0x4184b7=(_0x5b89c3<0x3?_0x44f15e(_0x4184b7):_0x5b89c3>0x3?_0x44f15e(_0x341909,_0x352e4d,_0x4184b7):_0x44f15e(_0x341909,_0x352e4d))||_0x4184b7);}return _0x5b89c3>0x3&&_0x4184b7&&Object[_0x3cf81b(0x14b)](_0x341909,_0x352e4d,_0x4184b7),_0x4184b7;}let Q=class extends e[_0x50a514(0x12c)]{constructor(_0x568a32,_0x1561ff){const _0x16c07a=_0x50a514;super(),this[_0x16c07a(0xdd)]=_0x568a32,this[_0x16c07a(0x123)]=_0x1561ff,this['_initResource']();}[_0x50a514(0xf5)](){const _0x19ee50=_0x50a514;this[_0x19ee50(0xe3)](this['_resourceManagerService'][_0x19ee50(0x10f)]({'pluginName':Y,'businesses':[e['UniverInstanceType']['UNIVER_DOC']],'toJson':_0x369680=>JSON[_0x19ee50(0xef)](this[_0x19ee50(0x123)][_0x19ee50(0x13a)](_0x369680)),'parseJson':_0x10976f=>o(JSON[_0x19ee50(0xb5)](_0x10976f)),'onLoad':(_0x4b118a,_0x368e43)=>this[_0x19ee50(0x123)][_0x19ee50(0xb0)](_0x4b118a,_0x368e43),'onUnLoad':_0x5508ae=>this[_0x19ee50(0x123)][_0x19ee50(0x109)](_0x5508ae)}));}};Q=be([Z(0x0,e['IResourceManagerService']),Z(0x1,(0x0,e['Inject'])(R))],Q);let $=class extends e['Plugin']{constructor(_0x2ddd84=X,_0x5d5732,_0x54228f,_0x365756){const _0x1789f4=_0x50a514;super(),this[_0x1789f4(0xb4)]=_0x2ddd84,this[_0x1789f4(0x102)]=_0x5d5732,this[_0x1789f4(0xad)]=_0x54228f,this['_configService']=_0x365756;let {..._0x45aacc}=(0x0,e[_0x1789f4(0x12a)])({},X,this[_0x1789f4(0xb4)]);this[_0x1789f4(0x13d)][_0x1789f4(0x137)](_0x1789f4(0xb8),_0x45aacc);}['onStarting'](){const _0x29f4d1=_0x50a514;this['_injector'][_0x29f4d1(0xbb)]([R]),this[_0x29f4d1(0x102)]['add']([Q]),this[_0x29f4d1(0x102)][_0x29f4d1(0xf8)](R),this['_injector']['get'](Q),[V,z,H,U,W,B][_0x29f4d1(0x115)](_0x3aed29=>this[_0x29f4d1(0xe3)](this[_0x29f4d1(0xad)][_0x29f4d1(0xce)](_0x3aed29)));}};L($,'pluginName',Y),L($,_0x50a514(0x100),ve),L($,'version',ye),L($,_0x50a514(0x127),e[_0x50a514(0xfa)][_0x50a514(0x12b)]),$=be([(0x0,e[_0x50a514(0x14a)])(r[_0x50a514(0xb6)],t['UniverDocsPlugin']),Z(0x1,(0x0,e['Inject'])(e['Injector'])),Z(0x2,e[_0x50a514(0x106)]),Z(0x3,e[_0x50a514(0xfc)])],$),exports[_0x50a514(0x101)]=i,exports[_0x50a514(0x10d)]=Y,exports[_0x50a514(0xbe)]=W,exports[_0x50a514(0x12e)]=B,exports[_0x50a514(0x149)]=U,exports[_0x50a514(0xc9)]=z,exports['DocsCodeInsertCommand']=V,exports[_0x50a514(0x120)]=R,exports[_0x50a514(0xb1)]=H,Object[_0x50a514(0x14b)](exports,_0x50a514(0xc8),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildCancelEmptyCodeParagraphActions']=h,exports['buildExitCodeActions']=m,exports['buildInsertCodeActions']=u,exports[_0x50a514(0xf7)]=p,exports[_0x50a514(0x14d)]=_,exports['isCodeBoundaryDelete']=v,exports[_0x50a514(0xc3)]=a;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x13b9b5=_0xe05e;(function(_0x1aca92,_0x4d48ea){var _0x39f633=_0xe05e,_0x4f23fb=_0x1aca92();while(!![]){try{var _0x6cda75=parseInt(_0x39f633(0x18d))/0x1+parseInt(_0x39f633(0x185))/0x2*(-parseInt(_0x39f633(0x1a0))/0x3)+parseInt(_0x39f633(0x1ae))/0x4*(parseInt(_0x39f633(0x17e))/0x5)+parseInt(_0x39f633(0x189))/0x6*(parseInt(_0x39f633(0x187))/0x7)+-parseInt(_0x39f633(0x19f))/0x8*(-parseInt(_0x39f633(0x1b2))/0x9)+-parseInt(_0x39f633(0x1b6))/0xa*(parseInt(_0x39f633(0x17b))/0xb)+-parseInt(_0x39f633(0x17f))/0xc;if(_0x6cda75===_0x4d48ea)break;else _0x4f23fb['push'](_0x4f23fb['shift']());}catch(_0x4eb3ba){_0x4f23fb['push'](_0x4f23fb['shift']());}}}(_0x1227,0x8889a));import{DocsCodeCancelEmptyParagraphCommand as _0x43121c,DocsCodeExitCommand as _0x227b78,DocsCodeInsertCommand as _0x19049a,DocsCodeModel as _0x317f80,DocsCodeUpdateCommand as _0xa7f6d0,normalizeDocsCodeConfig as _0x249552}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2dbdf7,DocumentBlockRangeType as _0x4df84b,ICommandService as _0x593bc2,Inject as _0x33b9d8,Injector as _0xa34ccd,generateRandomId as _0xeecacd}from'@univerjs/core';import{FDocument as _0x29e282}from'@univerjs/docs/facade';function p(_0x101e6b){'@babel/helpers - typeof';var _0x4575dc=_0xe05e;return p=typeof Symbol==_0x4575dc(0x1af)&&typeof Symbol['iterator']=='symbol'?function(_0x50e854){return typeof _0x50e854;}:function(_0x4df84a){var _0x389846=_0x4575dc;return _0x4df84a&&typeof Symbol==_0x389846(0x1af)&&_0x4df84a[_0x389846(0x1b0)]===Symbol&&_0x4df84a!==Symbol[_0x389846(0x1b1)]?_0x389846(0x1a8):typeof _0x4df84a;},p(_0x101e6b);}function m(_0x5a8f8a,_0x491895){var _0x5562ca=_0xe05e;if(p(_0x5a8f8a)!=_0x5562ca(0x179)||!_0x5a8f8a)return _0x5a8f8a;var _0x3a92f9=_0x5a8f8a[Symbol['toPrimitive']];if(_0x3a92f9!==void 0x0){var _0x57d9b6=_0x3a92f9[_0x5562ca(0x180)](_0x5a8f8a,_0x491895||_0x5562ca(0x1a5));if(p(_0x57d9b6)!=_0x5562ca(0x179))return _0x57d9b6;throw TypeError(_0x5562ca(0x19c));}return(_0x491895===_0x5562ca(0x190)?String:Number)(_0x5a8f8a);}function h(_0x14c418){var _0x3740c0=_0xe05e,_0x90c01f=m(_0x14c418,_0x3740c0(0x190));return p(_0x90c01f)==_0x3740c0(0x1a8)?_0x90c01f:_0x90c01f+'';}function g(_0x40a584,_0x75b4dd,_0x2417f3){var _0x1dfc20=_0xe05e;return(_0x75b4dd=h(_0x75b4dd))in _0x40a584?Object[_0x1dfc20(0x196)](_0x40a584,_0x75b4dd,{'value':_0x2417f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40a584[_0x75b4dd]=_0x2417f3,_0x40a584;}function _0x1227(){var _0x5a166d=['_getBlockRange','syncExecuteCommand','28330GmbhnM','decorate','from','some','includes','getId','PARAGRAPH','getCode','object','blockRanges','3586hcmCOj','text','_unitId','3355FfOFvG','3880548GPaDcX','call','_document','findCodes','createInstance','blockId','2gwXRxf','getKey','22281cKEDqV','length','426vBOhvK','_createFDocumentCode','filter','extend','248175BaVBwm','getConfig','save','string','endIndex','_getDocumentData','cancelEmptyParagraph','get','config','defineProperty','CODE','getType','_blockId','BLOCK_END','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraph','exitCode','7631056sNBjjj','61287mczrPU','describe','blockType','_getBlockRanges','body','default','exit','find','symbol','getText','BLOCK_START','map','_injector','startIndex','2376wKQqYW','function','constructor','prototype','9noLGHd','SECTION_BREAK'];_0x1227=function(){return _0x5a166d;};return _0x1227();}function _(_0x24aabb,_0x218973){return function(_0x59f4ab,_0x4e280b){_0x218973(_0x59f4ab,_0x4e280b,_0x24aabb);};}function v(_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a){var _0x4708a2=_0xe05e,_0x4887f2=arguments[_0x4708a2(0x188)],_0x413f8a=_0x4887f2<0x3?_0x33dc2a:_0x202e9a===null?_0x202e9a=Object['getOwnPropertyDescriptor'](_0x33dc2a,_0x57ce93):_0x202e9a,_0x316bd4;if(typeof Reflect==_0x4708a2(0x179)&&typeof Reflect[_0x4708a2(0x1b7)]=='function')_0x413f8a=Reflect[_0x4708a2(0x1b7)](_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a);else{for(var _0xfed88b=_0x2cc221[_0x4708a2(0x188)]-0x1;_0xfed88b>=0x0;_0xfed88b--)(_0x316bd4=_0x2cc221[_0xfed88b])&&(_0x413f8a=(_0x4887f2<0x3?_0x316bd4(_0x413f8a):_0x4887f2>0x3?_0x316bd4(_0x33dc2a,_0x57ce93,_0x413f8a):_0x316bd4(_0x33dc2a,_0x57ce93))||_0x413f8a);}return _0x4887f2>0x3&&_0x413f8a&&Object['defineProperty'](_0x33dc2a,_0x57ce93,_0x413f8a),_0x413f8a;}function _0xe05e(_0x534f69,_0x3fa108){_0x534f69=_0x534f69-0x176;var _0x122778=_0x1227();var _0xe05ea6=_0x122778[_0x534f69];return _0xe05ea6;}let y=class{constructor(_0x2bae20,_0x128ba0,_0x175393){var _0x8fdd1c=_0xe05e;this[_0x8fdd1c(0x181)]=_0x2bae20,this[_0x8fdd1c(0x199)]=_0x128ba0,this[_0x8fdd1c(0x1ac)]=_0x175393,g(this,_0x8fdd1c(0x17d),void 0x0),this[_0x8fdd1c(0x17d)]=this[_0x8fdd1c(0x181)]['getId']();}['getId'](){var _0x5767c1=_0xe05e;return this[_0x5767c1(0x199)];}[_0x13b9b5(0x19b)](){var _0x35d72d=_0x13b9b5;let _0x5a3235=this[_0x35d72d(0x1b4)]();return _0x5a3235?{'blockId':_0x5a3235[_0x35d72d(0x184)],'endIndex':_0x5a3235[_0x35d72d(0x191)],'startIndex':_0x5a3235[_0x35d72d(0x1ad)]}:null;}['getText'](){var _0x598430=_0x13b9b5,_0x47bf03;let _0x13c9dc=this[_0x598430(0x1b4)](),_0x4e2505=(_0x47bf03=this[_0x598430(0x192)]()[_0x598430(0x1a4)])==null?void 0x0:_0x47bf03['dataStream'];return!_0x13c9dc||!_0x4e2505?'':b(_0x4e2505['slice'](_0x13c9dc['startIndex']+0x1,_0x13c9dc[_0x598430(0x191)]));}[_0x13b9b5(0x1a1)](){var _0x557286=_0x13b9b5;let _0x56e0e2=this[_0x557286(0x19b)]();return _0x56e0e2?{..._0x56e0e2,'config':this[_0x557286(0x18e)](),'text':this[_0x557286(0x1a9)](),'type':_0x4df84b['CODE']}:null;}[_0x13b9b5(0x18e)](){var _0x58788f=_0x13b9b5;return _0x249552(this[_0x58788f(0x1ac)][_0x58788f(0x194)](_0x317f80)['getCodeConfig'](this[_0x58788f(0x17d)],this['_blockId']));}['updateConfig'](_0x3c44dc){var _0xd4f098=_0x13b9b5;return this['_injector']['get'](_0x593bc2)[_0xd4f098(0x1b5)](_0xa7f6d0['id'],{'blockId':this[_0xd4f098(0x199)],'config':_0x3c44dc[_0xd4f098(0x195)],'unitId':this[_0xd4f098(0x17d)]});}[_0x13b9b5(0x1a6)](_0x57b48c){var _0x503cbf=_0x13b9b5;return this[_0x503cbf(0x1ac)]['get'](_0x593bc2)[_0x503cbf(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x57b48c,'unitId':this[_0x503cbf(0x17d)]});}[_0x13b9b5(0x193)](_0x12a500={}){var _0x559450=_0x13b9b5;return this['_injector']['get'](_0x593bc2)['syncExecuteCommand'](_0x43121c['id'],{..._0x12a500,'unitId':this[_0x559450(0x17d)]});}[_0x13b9b5(0x192)](){var _0x1d7a38=_0x13b9b5;return this[_0x1d7a38(0x181)][_0x1d7a38(0x18f)]();}['_getBlockRange'](){var _0x2d07a1=_0x13b9b5,_0x5a6793;let _0x5d4d35=(_0x5a6793=this[_0x2d07a1(0x192)]()['body'])==null||(_0x5a6793=_0x5a6793[_0x2d07a1(0x17a)])==null?void 0x0:_0x5a6793[_0x2d07a1(0x1a7)](_0x1b3780=>_0x1b3780['blockId']===this[_0x2d07a1(0x199)]&&_0x1b3780[_0x2d07a1(0x1a2)]===_0x4df84b[_0x2d07a1(0x197)]);return _0x5d4d35==null?null:_0x5d4d35;}};y=v([_(0x2,_0x33b9d8(_0xa34ccd))],y);function b(_0x33a668){var _0x468592=_0x13b9b5;return Array[_0x468592(0x1b8)](_0x33a668)[_0x468592(0x1ab)](_0x871d31=>_0x871d31===_0x2dbdf7[_0x468592(0x177)]?'\x0a':_0x871d31)[_0x468592(0x18b)](_0x1ce9bd=>_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1aa)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x19a)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1b3)])['join']('')['replace'](/\n$/,'');}var x=class extends _0x29e282{['getCodes'](){var _0x1c0bc7=_0x13b9b5;return this[_0x1c0bc7(0x1a3)]()[_0x1c0bc7(0x18b)](_0x47f5a8=>_0x47f5a8[_0x1c0bc7(0x1a2)]===_0x4df84b['CODE'])[_0x1c0bc7(0x1ab)](_0x5c62b5=>this[_0x1c0bc7(0x18a)](_0x5c62b5[_0x1c0bc7(0x184)]));}[_0x13b9b5(0x178)](_0x2b5a8a){var _0x1034f8=_0x13b9b5;return this[_0x1034f8(0x1a3)]()[_0x1034f8(0x1b9)](_0x3e6bcc=>_0x3e6bcc[_0x1034f8(0x184)]===_0x2b5a8a&&_0x3e6bcc[_0x1034f8(0x1a2)]===_0x4df84b[_0x1034f8(0x197)])?this[_0x1034f8(0x18a)](_0x2b5a8a):null;}['getCodeAt'](_0x70ee62){var _0x1c2084=_0x13b9b5;let _0x5627cd=this[_0x1c2084(0x1a3)]()[_0x1c2084(0x1a7)](_0x147d27=>_0x147d27['blockType']===_0x4df84b[_0x1c2084(0x197)]&&_0x147d27[_0x1c2084(0x1ad)]<=_0x70ee62&&_0x70ee62<=_0x147d27[_0x1c2084(0x191)]);return _0x5627cd?this[_0x1c2084(0x18a)](_0x5627cd[_0x1c2084(0x184)]):null;}['findCodeByText'](_0x53db5d){var _0x28e3af=_0x13b9b5,_0x20617e;return(_0x20617e=this[_0x28e3af(0x182)](_0x53db5d)[0x0])==null?null:_0x20617e;}[_0x13b9b5(0x182)](_0x35a31e){var _0x477ebe=_0x13b9b5;let _0x5329d1=typeof _0x35a31e==_0x477ebe(0x190)?{'text':_0x35a31e}:_0x35a31e;return this['getCodes']()[_0x477ebe(0x18b)](_0x42dad2=>!(_0x5329d1[_0x477ebe(0x184)]&&_0x42dad2['getId']()!==_0x5329d1[_0x477ebe(0x184)]||_0x5329d1['text']&&!_0x42dad2[_0x477ebe(0x1a9)]()[_0x477ebe(0x1ba)](_0x5329d1[_0x477ebe(0x17c)])));}['insertCode'](_0x3e88eb={},_0x4ddb38={}){var _0x19f55b=_0x13b9b5,_0x1baf31;let _0x341aa8=this['_injector'][_0x19f55b(0x194)](_0x593bc2),_0x59467b=S(_0x3e88eb)?{..._0x4ddb38,...C(_0x3e88eb)}:_0x3e88eb,_0xc80b0d=(_0x1baf31=_0x59467b[_0x19f55b(0x184)])==null?_0xeecacd(0x6):_0x1baf31;return _0x341aa8[_0x19f55b(0x1b5)](_0x19049a['id'],{..._0x59467b,'blockId':_0xc80b0d,'unitId':this['getId']()})?this[_0x19f55b(0x18a)](_0xc80b0d):null;}[_0x13b9b5(0x19e)](_0x4c9e17){var _0x1ec007=_0x13b9b5;return this[_0x1ec007(0x1ac)]['get'](_0x593bc2)[_0x1ec007(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x4c9e17,'unitId':this[_0x1ec007(0x176)]()});}['cancelEmptyCodeParagraph'](_0xafc974={}){var _0x246820=_0x13b9b5;return this[_0x246820(0x1ac)]['get'](_0x593bc2)[_0x246820(0x1b5)](_0x43121c['id'],{..._0xafc974,'unitId':this[_0x246820(0x176)]()});}['_getBlockRanges'](){var _0x5ce413=_0x13b9b5,_0x3919aa,_0x5a7000;return(_0x3919aa=(_0x5a7000=this['save']()[_0x5ce413(0x1a4)])==null?void 0x0:_0x5a7000['blockRanges'])==null?[]:_0x3919aa;}[_0x13b9b5(0x18a)](_0x478f88){var _0x29e9e1=_0x13b9b5;return this[_0x29e9e1(0x1ac)][_0x29e9e1(0x183)](y,this,_0x478f88);}};function S(_0x1d4a06){var _0x145e75=_0x13b9b5;return typeof _0x1d4a06==_0x145e75(0x179)&&!!_0x1d4a06&&typeof _0x1d4a06[_0x145e75(0x186)]=='function'&&typeof _0x1d4a06[_0x145e75(0x19b)]=='function'&&typeof _0x1d4a06[_0x145e75(0x198)]==_0x145e75(0x1af)&&_0x1d4a06[_0x145e75(0x198)]()===_0x145e75(0x19d);}function C(_0x54462d){var _0x309448=_0x13b9b5;return _0x54462d[_0x309448(0x19b)]();}_0x29e282[_0x13b9b5(0x18c)](x);export{y as FDocumentCode};
1
+ var _0x265ff2=_0x1b87;(function(_0x287cc4,_0x433309){var _0x2fbc11=_0x1b87,_0x4ec689=_0x287cc4();while(!![]){try{var _0x44823c=-parseInt(_0x2fbc11(0xd9))/0x1*(-parseInt(_0x2fbc11(0xf0))/0x2)+-parseInt(_0x2fbc11(0xf8))/0x3+-parseInt(_0x2fbc11(0xe4))/0x4+parseInt(_0x2fbc11(0xcf))/0x5+-parseInt(_0x2fbc11(0x103))/0x6*(parseInt(_0x2fbc11(0xfa))/0x7)+parseInt(_0x2fbc11(0xfc))/0x8*(parseInt(_0x2fbc11(0xd1))/0x9)+parseInt(_0x2fbc11(0xe6))/0xa*(-parseInt(_0x2fbc11(0xde))/0xb);if(_0x44823c===_0x433309)break;else _0x4ec689['push'](_0x4ec689['shift']());}catch(_0x1008fc){_0x4ec689['push'](_0x4ec689['shift']());}}}(_0x1864,0xa1eaa));import{DocsCodeCancelEmptyParagraphCommand as _0x345880,DocsCodeExitCommand as _0x1aea34,DocsCodeInsertCommand as _0x5c1c8b,DocsCodeModel as _0x4c99b3,DocsCodeUpdateCommand as _0x4c43bf,normalizeDocsCodeConfig as _0x49f66d}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4d6957,DocumentBlockRangeType as _0x53badc,ICommandService as _0x4437cc,Inject as _0x560d9f,Injector as _0x2c366a,generateRandomId as _0x2730ac}from'@univerjs/core';import{FDocument as _0x2080cf}from'@univerjs/docs/facade';function p(_0x433ffb){'@babel/helpers - typeof';var _0x3aa06c=_0x1b87;return p=typeof Symbol==_0x3aa06c(0xec)&&typeof Symbol['iterator']==_0x3aa06c(0xdd)?function(_0x588fc7){return typeof _0x588fc7;}:function(_0x3c3385){var _0x345ce3=_0x3aa06c;return _0x3c3385&&typeof Symbol==_0x345ce3(0xec)&&_0x3c3385[_0x345ce3(0xe3)]===Symbol&&_0x3c3385!==Symbol[_0x345ce3(0x10d)]?_0x345ce3(0xdd):typeof _0x3c3385;},p(_0x433ffb);}function m(_0x19ef80,_0x235fa1){var _0x25b068=_0x1b87;if(p(_0x19ef80)!=_0x25b068(0xf4)||!_0x19ef80)return _0x19ef80;var _0x27a395=_0x19ef80[Symbol[_0x25b068(0xfe)]];if(_0x27a395!==void 0x0){var _0x276cb8=_0x27a395['call'](_0x19ef80,_0x235fa1||_0x25b068(0xeb));if(p(_0x276cb8)!='object')return _0x276cb8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x235fa1===_0x25b068(0xf1)?String:Number)(_0x19ef80);}function h(_0x5863bc){var _0x213622=_0x1b87,_0x5f0162=m(_0x5863bc,_0x213622(0xf1));return p(_0x5f0162)=='symbol'?_0x5f0162:_0x5f0162+'';}function g(_0x3259cd,_0x4b14ea,_0x19edc3){var _0x24cbef=_0x1b87;return(_0x4b14ea=h(_0x4b14ea))in _0x3259cd?Object[_0x24cbef(0xc9)](_0x3259cd,_0x4b14ea,{'value':_0x19edc3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3259cd[_0x4b14ea]=_0x19edc3,_0x3259cd;}function _(_0x3e0ae8,_0x5e09ce){return function(_0x1b7516,_0x299fce){_0x5e09ce(_0x1b7516,_0x299fce,_0x3e0ae8);};}function v(_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f){var _0x8d1af=_0x1b87,_0x6318ab=arguments[_0x8d1af(0xfb)],_0x1e568c=_0x6318ab<0x3?_0x2d36dd:_0xf9150f===null?_0xf9150f=Object[_0x8d1af(0xf3)](_0x2d36dd,_0x10cb41):_0xf9150f,_0x56c4d0;if(typeof Reflect==_0x8d1af(0xf4)&&typeof Reflect[_0x8d1af(0x10b)]==_0x8d1af(0xec))_0x1e568c=Reflect['decorate'](_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f);else{for(var _0x21f442=_0xb05074[_0x8d1af(0xfb)]-0x1;_0x21f442>=0x0;_0x21f442--)(_0x56c4d0=_0xb05074[_0x21f442])&&(_0x1e568c=(_0x6318ab<0x3?_0x56c4d0(_0x1e568c):_0x6318ab>0x3?_0x56c4d0(_0x2d36dd,_0x10cb41,_0x1e568c):_0x56c4d0(_0x2d36dd,_0x10cb41))||_0x1e568c);}return _0x6318ab>0x3&&_0x1e568c&&Object[_0x8d1af(0xc9)](_0x2d36dd,_0x10cb41,_0x1e568c),_0x1e568c;}function _0x1864(){var _0x2194a7=['string','getCodeConfig','getOwnPropertyDescriptor','object','getId','includes','config','2656935ytidhf','blockType','7dxSRpd','length','161576xGzxpa','blockRanges','toPrimitive','find','paragraph','get','_injector','908706ViPOgX','slice','map','save','getConfig','cancelEmptyCodeParagraph','getCode','dataStream','decorate','text','prototype','getRange','defineProperty','cancelEmptyParagraph','from','describe','_getDocumentData','findCodes','5035945TzTvRG','_getBlockRanges','576LDOgiS','_createFDocumentCode','syncExecuteCommand','body','insertCode','getText','BLOCK_END','getKey','1jSeFaA','_unitId','filter','createInstance','symbol','11lnPepN','_getBlockRange','join','startIndex','BLOCK_START','constructor','3655572ASirWO','_document','7926110wDufUp','exitCode','endIndex','getCodes','blockId','default','function','_blockId','replace','CODE','2214026ZVvfbc'];_0x1864=function(){return _0x2194a7;};return _0x1864();}function _0x1b87(_0x429a25,_0x199353){_0x429a25=_0x429a25-0xc8;var _0x18648d=_0x1864();var _0x1b87f5=_0x18648d[_0x429a25];return _0x1b87f5;}let y=class{constructor(_0x386029,_0x1ef2c2,_0x3b4144){var _0x37cb6b=_0x1b87;this['_document']=_0x386029,this[_0x37cb6b(0xed)]=_0x1ef2c2,this[_0x37cb6b(0x102)]=_0x3b4144,g(this,_0x37cb6b(0xda),void 0x0),this['_unitId']=this['_document'][_0x37cb6b(0xf5)]();}[_0x265ff2(0xf5)](){var _0x2e3626=_0x265ff2;return this[_0x2e3626(0xed)];}['getRange'](){var _0x370c8e=_0x265ff2;let _0x5ec735=this['_getBlockRange']();return _0x5ec735?{'blockId':_0x5ec735[_0x370c8e(0xea)],'endIndex':_0x5ec735[_0x370c8e(0xe8)],'startIndex':_0x5ec735[_0x370c8e(0xe1)]}:null;}['getText'](){var _0x31f900=_0x265ff2,_0x2a8703;let _0x305c5b=this[_0x31f900(0xdf)](),_0xe3ff5b=(_0x2a8703=this[_0x31f900(0xcd)]()[_0x31f900(0xd4)])==null?void 0x0:_0x2a8703[_0x31f900(0x10a)];return!_0x305c5b||!_0xe3ff5b?'':b(_0xe3ff5b[_0x31f900(0x104)](_0x305c5b[_0x31f900(0xe1)]+0x1,_0x305c5b[_0x31f900(0xe8)]));}[_0x265ff2(0xcc)](){var _0x4b6034=_0x265ff2;let _0x5971cf=this[_0x4b6034(0xc8)]();return _0x5971cf?{..._0x5971cf,'config':this['getConfig'](),'text':this[_0x4b6034(0xd6)](),'type':_0x53badc[_0x4b6034(0xef)]}:null;}[_0x265ff2(0x107)](){var _0xf81e1f=_0x265ff2;return _0x49f66d(this[_0xf81e1f(0x102)]['get'](_0x4c99b3)[_0xf81e1f(0xf2)](this[_0xf81e1f(0xda)],this[_0xf81e1f(0xed)]));}['updateConfig'](_0x42b96f){var _0x332006=_0x265ff2;return this[_0x332006(0x102)][_0x332006(0x101)](_0x4437cc)[_0x332006(0xd3)](_0x4c43bf['id'],{'blockId':this['_blockId'],'config':_0x42b96f[_0x332006(0xf7)],'unitId':this[_0x332006(0xda)]});}['exit'](_0x2c1316){var _0x4579a0=_0x265ff2;return this[_0x4579a0(0x102)]['get'](_0x4437cc)[_0x4579a0(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x2c1316,'unitId':this['_unitId']});}[_0x265ff2(0xca)](_0x253991={}){var _0x4f21ad=_0x265ff2;return this[_0x4f21ad(0x102)][_0x4f21ad(0x101)](_0x4437cc)[_0x4f21ad(0xd3)](_0x345880['id'],{..._0x253991,'unitId':this[_0x4f21ad(0xda)]});}[_0x265ff2(0xcd)](){var _0xfcaa6f=_0x265ff2;return this[_0xfcaa6f(0xe5)][_0xfcaa6f(0x106)]();}[_0x265ff2(0xdf)](){var _0x1fea15=_0x265ff2,_0x237ffd;let _0x5f50b5=(_0x237ffd=this[_0x1fea15(0xcd)]()['body'])==null||(_0x237ffd=_0x237ffd[_0x1fea15(0xfd)])==null?void 0x0:_0x237ffd[_0x1fea15(0xff)](_0xcdfa3d=>_0xcdfa3d[_0x1fea15(0xea)]===this[_0x1fea15(0xed)]&&_0xcdfa3d[_0x1fea15(0xf9)]===_0x53badc['CODE']);return _0x5f50b5==null?null:_0x5f50b5;}};y=v([_(0x2,_0x560d9f(_0x2c366a))],y);function b(_0x1dbb77){var _0x117116=_0x265ff2;return Array[_0x117116(0xcb)](_0x1dbb77)['map'](_0xadabd7=>_0xadabd7===_0x4d6957['PARAGRAPH']?'\x0a':_0xadabd7)['filter'](_0x37efcf=>_0x37efcf!==_0x4d6957[_0x117116(0xe2)]&&_0x37efcf!==_0x4d6957[_0x117116(0xd7)]&&_0x37efcf!==_0x4d6957['SECTION_BREAK'])[_0x117116(0xe0)]('')[_0x117116(0xee)](/\n$/,'');}var x=class extends _0x2080cf{[_0x265ff2(0xe9)](){var _0x2c7a01=_0x265ff2;return this[_0x2c7a01(0xd0)]()[_0x2c7a01(0xdb)](_0xf1f00=>_0xf1f00['blockType']===_0x53badc[_0x2c7a01(0xef)])[_0x2c7a01(0x105)](_0x547bed=>this[_0x2c7a01(0xd2)](_0x547bed['blockId']));}[_0x265ff2(0x109)](_0x21fa7a){var _0x4006f8=_0x265ff2;return this[_0x4006f8(0xd0)]()['some'](_0x2abc0a=>_0x2abc0a[_0x4006f8(0xea)]===_0x21fa7a&&_0x2abc0a['blockType']===_0x53badc[_0x4006f8(0xef)])?this[_0x4006f8(0xd2)](_0x21fa7a):null;}['getCodeAt'](_0x4b4680){var _0x4e6916=_0x265ff2;let _0x4ff399=this['_getBlockRanges']()[_0x4e6916(0xff)](_0x1a3ddb=>_0x1a3ddb[_0x4e6916(0xf9)]===_0x53badc[_0x4e6916(0xef)]&&_0x1a3ddb[_0x4e6916(0xe1)]<=_0x4b4680&&_0x4b4680<=_0x1a3ddb[_0x4e6916(0xe8)]);return _0x4ff399?this[_0x4e6916(0xd2)](_0x4ff399[_0x4e6916(0xea)]):null;}['findCodeByText'](_0x4e7b2b){var _0x364464=_0x265ff2,_0x5323cf;return(_0x5323cf=this[_0x364464(0xce)](_0x4e7b2b)[0x0])==null?null:_0x5323cf;}[_0x265ff2(0xce)](_0x5269d4){var _0x41309b=_0x265ff2;let _0x411fa7=typeof _0x5269d4==_0x41309b(0xf1)?{'text':_0x5269d4}:_0x5269d4;return this['getCodes']()[_0x41309b(0xdb)](_0x34fed8=>!(_0x411fa7[_0x41309b(0xea)]&&_0x34fed8[_0x41309b(0xf5)]()!==_0x411fa7[_0x41309b(0xea)]||_0x411fa7[_0x41309b(0x10c)]&&!_0x34fed8[_0x41309b(0xd6)]()[_0x41309b(0xf6)](_0x411fa7[_0x41309b(0x10c)])));}[_0x265ff2(0xd5)](_0x44f98d={},_0x38333a={}){var _0x33c287=_0x265ff2,_0x5a7c12;let _0x1640a7=this['_injector']['get'](_0x4437cc),_0x2025d7=S(_0x44f98d)?{..._0x38333a,...C(_0x44f98d)}:_0x44f98d,_0x15253d=(_0x5a7c12=_0x2025d7[_0x33c287(0xea)])==null?_0x2730ac(0x6):_0x5a7c12;return _0x1640a7[_0x33c287(0xd3)](_0x5c1c8b['id'],{..._0x2025d7,'blockId':_0x15253d,'unitId':this[_0x33c287(0xf5)]()})?this[_0x33c287(0xd2)](_0x15253d):null;}[_0x265ff2(0xe7)](_0x4b4966){var _0xf20096=_0x265ff2;return this[_0xf20096(0x102)][_0xf20096(0x101)](_0x4437cc)[_0xf20096(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x4b4966,'unitId':this[_0xf20096(0xf5)]()});}[_0x265ff2(0x108)](_0x136f26={}){var _0x16667a=_0x265ff2;return this[_0x16667a(0x102)][_0x16667a(0x101)](_0x4437cc)[_0x16667a(0xd3)](_0x345880['id'],{..._0x136f26,'unitId':this[_0x16667a(0xf5)]()});}[_0x265ff2(0xd0)](){var _0x2ad0e3=_0x265ff2,_0x2b2ce5,_0xf7546;return(_0x2b2ce5=(_0xf7546=this[_0x2ad0e3(0x106)]()[_0x2ad0e3(0xd4)])==null?void 0x0:_0xf7546['blockRanges'])==null?[]:_0x2b2ce5;}[_0x265ff2(0xd2)](_0x5dc5bd){var _0x40b803=_0x265ff2;return this['_injector'][_0x40b803(0xdc)](y,this,_0x5dc5bd);}};function S(_0x423d5b){var _0x2b5231=_0x265ff2;return typeof _0x423d5b==_0x2b5231(0xf4)&&!!_0x423d5b&&typeof _0x423d5b[_0x2b5231(0xd8)]==_0x2b5231(0xec)&&typeof _0x423d5b[_0x2b5231(0xc8)]==_0x2b5231(0xec)&&typeof _0x423d5b['getType']==_0x2b5231(0xec)&&_0x423d5b['getType']()===_0x2b5231(0x100);}function C(_0x4aa7b2){var _0x315966=_0x265ff2;return _0x4aa7b2[_0x315966(0xc8)]();}_0x2080cf['extend'](x);export{y as FDocumentCode};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4a8a2d=_0x28c9;(function(_0x33c0ef,_0x4e7947){const _0x4b3364=_0x28c9,_0x3719a4=_0x33c0ef();while(!![]){try{const _0x5996e2=-parseInt(_0x4b3364(0x1d9))/0x1*(-parseInt(_0x4b3364(0x1ce))/0x2)+parseInt(_0x4b3364(0x203))/0x3*(-parseInt(_0x4b3364(0x208))/0x4)+parseInt(_0x4b3364(0x1b6))/0x5*(-parseInt(_0x4b3364(0x22d))/0x6)+parseInt(_0x4b3364(0x209))/0x7*(-parseInt(_0x4b3364(0x1b9))/0x8)+parseInt(_0x4b3364(0x231))/0x9+-parseInt(_0x4b3364(0x21b))/0xa+parseInt(_0x4b3364(0x1d0))/0xb*(parseInt(_0x4b3364(0x1e8))/0xc);if(_0x5996e2===_0x4e7947)break;else _0x3719a4['push'](_0x3719a4['shift']());}catch(_0x59c62f){_0x3719a4['push'](_0x3719a4['shift']());}}}(_0x58a1,0x5beda));import{BuildTextUtils as _0x24fe28,CommandType as _0x20b98a,DataStreamTreeTokenType as _0x3ba019,DependentOn as _0xb86e0,Disposable as _0x3e8f03,DocumentBlockRangeType as _0x54e1d3,ICommandService as _0x3735ed,IConfigService as _0x42560c,IResourceManagerService as _0x3f714d,IUniverInstanceService as _0x3abeac,Inject as _0x4628b1,Injector as _0x531f72,JSONX as _0x2387fb,Plugin as _0x5357ad,Tools as _0xb48f1,UniverInstanceType as _0x2bb6f5,createParagraphId as _0x34e429,generateRandomId as _0x97c26f,merge as _0x3de4b6}from'@univerjs/core';import{DocContentInsertService as _0x2040aa,DocSelectionManagerService as _0x291a89,RichTextEditingMutation as _0x4297bb,UniverDocsPlugin as _0x1f5d37}from'@univerjs/docs';import{Subject as _0x363e20}from'rxjs';import{UniverLicensePlugin as _0x141bd9}from'@univerjs-pro/license';const S={'language':_0x4a8a2d(0x1f2),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x485bad){return{...S,..._0x485bad};}function w(_0x194da7){const _0x516533=_0x4a8a2d;var _0x1d5729;let _0x5a3d1f=(_0x1d5729=_0x194da7==null?void 0x0:_0x194da7['codes'])==null?{}:_0x1d5729;return{'codes':Object['fromEntries'](Object['entries'](_0x5a3d1f)[_0x516533(0x1c6)](([_0x23b746,_0x4926ac])=>[_0x23b746,C(_0x4926ac)]))};}function T(_0x56bf6f,_0x2b78f7,_0x2c447a){const _0x52d863=_0x4a8a2d;let _0xdb2ca7=w(_0x56bf6f);return _0xdb2ca7[_0x52d863(0x1cb)][_0x2b78f7]=C({..._0xdb2ca7['codes'][_0x2b78f7],..._0x2c447a}),_0xdb2ca7;}function re(_0x5c91e9,_0x22410c){let _0x2653fb=w(_0x5c91e9);return delete _0x2653fb['codes'][_0x22410c],_0x2653fb;}const ie=_0x4a8a2d(0x1f8);function ae(_0x151d84){const _0x5a812b=_0x4a8a2d;var _0x36a4f9,_0xafde3b,_0x5a0ce7;let _0x167a80=D(_0x151d84[_0x5a812b(0x21a)]),_0x24b65b=O(_0x167a80),_0x5d4611=se(_0x151d84[_0x5a812b(0x20a)],_0x151d84['endOffset']),_0x298645=_0x5d4611?(_0x36a4f9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x36a4f9[_0x5a812b(0x23a)](_0xbcb53=>_0xbcb53['startIndex']===_0x5d4611[_0x5a812b(0x20a)]&&_0xbcb53[_0x5a812b(0x1bd)]+0x1===_0x5d4611[_0x5a812b(0x227)]):void 0x0,{startOffset:_0x5ca80c,endOffset:_0x1ebe75}=_0x298645?_0x5d4611:ye(_0x24b65b,_0x151d84[_0x5a812b(0x20a)],_0x151d84[_0x5a812b(0x227)]),_0x50afb5=Se(_0x24b65b,_0x5ca80c,_0x1ebe75),_0x34c30c=(_0xafde3b=_0x298645==null?void 0x0:_0x298645['blockId'])==null?_0x151d84[_0x5a812b(0x1e4)]:_0xafde3b,_0x1606b8=T(_0x151d84[_0x5a812b(0x1bc)],_0x34c30c,{...S,..._0x151d84[_0x5a812b(0x211)]});if(_0x298645)return _0x298645[_0x5a812b(0x1f4)]=_0x54e1d3[_0x5a812b(0x200)],oe(_0x24b65b,_0x5ca80c,_0x1ebe75),he(_0x24b65b,_0x5ca80c,_0x1ebe75,_0x50afb5),M(_0x24b65b,_0x298645),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};if(_0x5ca80c===_0x1ebe75){var _0x5cbb11,_0x5960e9;let _0x3e4e1c=''+_0x3ba019[_0x5a812b(0x234)]+_0x3ba019[_0x5a812b(0x225)]+_0x3ba019['BLOCK_END'];N(_0x24b65b,_0x5ca80c,_0x3e4e1c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x34e429(new Set((_0x5cbb11=_0x24b65b[_0x5a812b(0x1ba)])==null?void 0x0:_0x5cbb11[_0x5a812b(0x1c6)](_0x2926b2=>_0x2926b2[_0x5a812b(0x20e)]))),'paragraphStyle':E(!0x0,!0x0,_0x50afb5)}],'blockRanges':[{'blockId':_0x34c30c,'blockType':_0x54e1d3['CODE'],'startIndex':0x0,'endIndex':_0x3e4e1c['length']-0x1}]});let _0x564362=(_0x5960e9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x5960e9[_0x5a812b(0x23a)](_0x319a88=>_0x319a88[_0x5a812b(0x1e4)]===_0x34c30c);return _0x564362&&M(_0x24b65b,_0x564362),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}N(_0x24b65b,_0x1ebe75,_0x3ba019['BLOCK_END']),N(_0x24b65b,_0x5ca80c,_0x3ba019[_0x5a812b(0x234)]),he(_0x24b65b,_0x5ca80c,_0x1ebe75+0x1,_0x50afb5);let _0x5e3282={'blockId':_0x34c30c,'blockType':_0x54e1d3[_0x5a812b(0x200)],'startIndex':_0x5ca80c,'endIndex':_0x1ebe75+0x1};return _0x24b65b[_0x5a812b(0x1c1)]=[...(_0x5a0ce7=_0x24b65b[_0x5a812b(0x1c1)])==null?[]:_0x5a0ce7,_0x5e3282]['sort']((_0x3d9679,_0x323898)=>_0x3d9679[_0x5a812b(0x1f0)]-_0x323898[_0x5a812b(0x1f0)]),M(_0x24b65b,_0x5e3282),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}function oe(_0x211db4,_0x314088,_0x431e22){const _0x15e86d=_0x4a8a2d;var _0x17578a;((_0x17578a=_0x211db4['paragraphs'])==null?[]:_0x17578a)['filter'](_0x553339=>_0x553339['startIndex']>_0x314088&&_0x553339[_0x15e86d(0x1f0)]<_0x431e22)['forEach'](_0x2a3de8=>{const _0x3b2a5f=_0x15e86d;var _0x4bbc9f;let _0x156109={...(_0x4bbc9f=_0x2a3de8[_0x3b2a5f(0x22c)])==null?{}:_0x4bbc9f};delete _0x156109['spaceAbove'],delete _0x156109[_0x3b2a5f(0x1ca)],_0x2a3de8[_0x3b2a5f(0x22c)]=_0x156109;});}function se(_0x457e64,_0x248d17){return _0x457e64==null||_0x248d17==null||_0x457e64===_0x248d17?null:{'startOffset':Math['min'](_0x457e64,_0x248d17),'endOffset':Math['max'](_0x457e64,_0x248d17)};}function ce(_0x3858ad){const _0x591bfa=_0x4a8a2d;return{'nextDocumentData':D(_0x3858ad[_0x591bfa(0x21a)]),'nextMetadata':T(_0x3858ad[_0x591bfa(0x1bc)],_0x3858ad['blockId'],_0x3858ad[_0x591bfa(0x211)]),'cursorOffset':0x0};}function le(_0x10af95){const _0x50aa72=_0x4a8a2d;var _0x5aa243,_0x357c42;let _0x2d332a=D(_0x10af95[_0x50aa72(0x21a)]),_0x414cf5=O(_0x2d332a),_0x1a8ea0=me(_0x414cf5,_0x10af95[_0x50aa72(0x1f6)]);if(!_0x1a8ea0)return null;let _0x2e6234=_e(_0x414cf5,_0x1a8ea0),_0x7f904f=_0x2e6234[_0x2e6234[_0x50aa72(0x1dd)]-0x1];if(!_0x7f904f||!ve(_0x414cf5,_0x1a8ea0,_0x7f904f)||_0x10af95[_0x50aa72(0x1f6)]<_0x7f904f[_0x50aa72(0x1f0)])return null;let _0x45fcd5=A(_0x414cf5,_0x1a8ea0,_0x7f904f);if(_0x45fcd5>=_0x1a8ea0[_0x50aa72(0x1bd)])return null;_0x414cf5[_0x50aa72(0x23c)]=[_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](0x0,_0x45fcd5),_0x3ba019[_0x50aa72(0x1e7)],_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)]),_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x1a8ea0[_0x50aa72(0x1bd)]+0x1)]['join'](''),R(_0x414cf5['paragraphs'],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x207)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x1cf)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),ke(_0x414cf5[_0x50aa72(0x206)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),z(_0x414cf5[_0x50aa72(0x1ee)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x1d8)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x238)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),(_0x5aa243=_0x414cf5[_0x50aa72(0x1c1)])==null||_0x5aa243[_0x50aa72(0x1e2)](_0x3caec1=>{const _0x3ec7c3=_0x50aa72;_0x3caec1===_0x1a8ea0||_0x3caec1['blockId']===_0x1a8ea0[_0x3ec7c3(0x1e4)]?_0x3caec1[_0x3ec7c3(0x1bd)]=_0x45fcd5:_0x3caec1[_0x3ec7c3(0x1f0)]>=_0x45fcd5&&_0x3caec1[_0x3ec7c3(0x1f0)]<_0x1a8ea0[_0x3ec7c3(0x1bd)]&&(_0x3caec1['startIndex']+=0x1,_0x3caec1[_0x3ec7c3(0x1bd)]+=0x1);});let _0x39bb51=_e(_0x414cf5,{..._0x1a8ea0,'endIndex':_0x45fcd5});_0x39bb51[_0x50aa72(0x1e2)]((_0x57dc22,_0x30959e)=>{const _0x35497c=_0x50aa72;var _0x1005ac;_0x57dc22['paragraphStyle']={...(_0x1005ac=_0x57dc22[_0x35497c(0x22c)])==null?{}:_0x1005ac,...E(_0x30959e===0x0,_0x30959e===_0x39bb51[_0x35497c(0x1dd)]-0x1)};});let _0xeeca1e=(_0x357c42=_0x414cf5[_0x50aa72(0x1ba)])==null?void 0x0:_0x357c42[_0x50aa72(0x23a)](_0x10901d=>_0x10901d[_0x50aa72(0x1f0)]===_0x45fcd5+0x1);return _0xeeca1e&&(_0xeeca1e['paragraphStyle']=ge(_0xeeca1e[_0x50aa72(0x22c)])),{'nextDocumentData':_0x2d332a,'cursorOffset':_0x45fcd5+0x1};}function ue(_0x4943b5){const _0x211f64=_0x4a8a2d;let _0xb19ded=D(_0x4943b5[_0x211f64(0x21a)]),_0x35cf1b=O(_0xb19ded),_0x525eeb=me(_0x35cf1b,_0x4943b5['cursorOffset']);return _0x525eeb&&de(_0xb19ded,_0x35cf1b,_0x525eeb,_0x4943b5[_0x211f64(0x1f6)],_0x4943b5[_0x211f64(0x1e1)])||null;}function de(_0x15ca94,_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f){const _0x46d349=_0x4a8a2d;let _0x288034=we(_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f);if(!_0x288034)return null;let _0x207bd1=_0x288034[_0x46d349(0x1d3)]-0x1;return Te(_0x30a6c0,_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)],_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)]+0x1),{'nextDocumentData':_0x15ca94,'cursorOffset':_0x207bd1};}function fe(_0x25af29,_0x1a0d81){const _0x414408=_0x4a8a2d;var _0x189422;return _0x25af29==null||(_0x189422=_0x25af29[_0x414408(0x1c1)])==null?void 0x0:_0x189422[_0x414408(0x23a)](_0x1fd816=>_0x1fd816[_0x414408(0x1f4)]===_0x54e1d3[_0x414408(0x200)]&&_0x1fd816[_0x414408(0x1f0)]<=_0x1a0d81&&_0x1a0d81<=_0x1fd816[_0x414408(0x1bd)]);}function pe(_0x2b27b0){const _0x2b45b7=_0x4a8a2d;var _0x188ec0;let _0xc4f97d=_0x2b27b0['documentData'][_0x2b45b7(0x22f)];if(!_0xc4f97d)return!0x1;let _0x3ac209=_0x2b27b0['direction']===_0x2b45b7(0x1eb)?_0x2b27b0[_0x2b45b7(0x1f6)]-0x1:_0x2b27b0['cursorOffset'],_0x6406aa=_0x2b27b0[_0x2b45b7(0x1c5)]===_0x2b45b7(0x22a)?_0x2b27b0[_0x2b45b7(0x1f6)]+0x1:_0x3ac209;return((_0x188ec0=_0xc4f97d[_0x2b45b7(0x1c1)])==null?[]:_0x188ec0)[_0x2b45b7(0x236)](_0x12d4ad=>_0x12d4ad[_0x2b45b7(0x1f4)]===_0x54e1d3[_0x2b45b7(0x200)]?_0x3ac209===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x3ac209===_0x12d4ad[_0x2b45b7(0x1bd)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1bd)]:!0x1);}function me(_0x13fc4e,_0x5a78e7){const _0x5f297a=_0x4a8a2d;var _0x3395f0;return(_0x3395f0=_0x13fc4e[_0x5f297a(0x1c1)])==null?void 0x0:_0x3395f0['find'](_0x5a8b18=>{const _0x13c31d=_0x5f297a;let _0x38c79f=j(_0x13fc4e,_0x5a8b18);return _0x5a8b18['blockType']===_0x54e1d3[_0x13c31d(0x200)]&&_0x5a8b18['startIndex']<=_0x5a78e7&&_0x5a78e7<=_0x38c79f+0x2;});}function E(_0x17e584,_0x241c84,_0x51e922=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x17e584&&_0x51e922?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56028c,_0x34f293,_0x19ed8c,_0x36d47a=!0x1){const _0x506ac7=_0x4a8a2d;var _0x166610;let _0x401af5=((_0x166610=_0x56028c[_0x506ac7(0x1ba)])==null?[]:_0x166610)[_0x506ac7(0x233)](_0x5c7d6c=>_0x5c7d6c[_0x506ac7(0x1f0)]>_0x34f293&&_0x5c7d6c[_0x506ac7(0x1f0)]<_0x19ed8c);_0x401af5[_0x506ac7(0x1e2)]((_0xa56718,_0x263a05)=>{const _0x67f467=_0x506ac7;var _0x24e661;_0xa56718[_0x67f467(0x22c)]={...(_0x24e661=_0xa56718[_0x67f467(0x22c)])==null?{}:_0x24e661,...E(_0x263a05===0x0,_0x263a05===_0x401af5[_0x67f467(0x1dd)]-0x1,_0x36d47a)};});}function ge(_0x1d5cf3){const _0xbd2508=_0x4a8a2d;var _0x1d1447,_0x4e09f6;let _0x2a8721={..._0x1d5cf3==null?{}:_0x1d5cf3};return delete _0x2a8721[_0xbd2508(0x20c)],delete _0x2a8721['indentStart'],delete _0x2a8721[_0xbd2508(0x217)],delete _0x2a8721[_0xbd2508(0x1ca)],((_0x1d1447=_0x2a8721[_0xbd2508(0x1e5)])==null?void 0x0:_0x1d1447['ff'])===ie&&((_0x4e09f6=_0x2a8721['textStyle'])==null?void 0x0:_0x4e09f6['fs'])===0xc&&delete _0x2a8721[_0xbd2508(0x1e5)],_0x2a8721;}function _e(_0x268343,_0x4e7bc4){const _0x218459=_0x4a8a2d;var _0x2c1244;let _0x556d85=j(_0x268343,_0x4e7bc4);return((_0x2c1244=_0x268343[_0x218459(0x1ba)])==null?[]:_0x2c1244)[_0x218459(0x233)](_0x5822ff=>_0x5822ff[_0x218459(0x1f0)]>_0x4e7bc4[_0x218459(0x1f0)]&&_0x5822ff['startIndex']<_0x556d85);}function _0x28c9(_0x1e6757,_0x175dbf){_0x1e6757=_0x1e6757-0x1b6;const _0x58a183=_0x58a1();let _0x28c9d9=_0x58a183[_0x1e6757];return _0x28c9d9;}function ve(_0x76282b,_0x5ef0eb,_0x5ed3f2){const _0x254cec=_0x4a8a2d;let _0x2afe1d=A(_0x76282b,_0x5ef0eb,_0x5ed3f2),_0x5c9d23=_0x76282b[_0x254cec(0x23c)][_0x254cec(0x1f5)](_0x2afe1d,_0x5ed3f2[_0x254cec(0x1f0)]);return Array[_0x254cec(0x214)](_0x5c9d23)[_0x254cec(0x1bf)](_0x339f88=>_0x339f88===_0x3ba019[_0x254cec(0x234)]||_0x339f88===_0x3ba019[_0x254cec(0x1e7)]);}function D(_0x156523){const _0x4521c6=_0x4a8a2d;return _0xb48f1[_0x4521c6(0x1d2)](_0x156523);}function O(_0x1bf3c9){const _0x17ba9a=_0x4a8a2d;if(!_0x1bf3c9[_0x17ba9a(0x22f)])throw Error(_0x17ba9a(0x224));return _0x1bf3c9['body'];}function ye(_0x4bf66a,_0x108f21,_0x262c76){const _0x3d4f6c=_0x4a8a2d;if(_0x108f21==null||_0x262c76==null){let _0x2dee3f=xe(_0x4bf66a);return{'startOffset':_0x2dee3f,'endOffset':_0x2dee3f};}let _0x37d761=Math[_0x3d4f6c(0x235)](_0x108f21,_0x262c76),_0x442582=Math['max'](_0x108f21,_0x262c76);if(_0x37d761===_0x442582){let _0x5f373a=be(_0x4bf66a,_0x37d761);return{'startOffset':_0x5f373a,'endOffset':_0x5f373a};}return Ce(_0x4bf66a,_0x37d761,_0x442582);}function be(_0x4cd764,_0x276e03){const _0x5ec11e=_0x4a8a2d;return _0x276e03===0x0&&_0x4cd764[_0x5ec11e(0x23c)][0x0]===_0x3ba019[_0x5ec11e(0x225)]?0x1:_0x276e03;}function xe(_0x5539f0){const _0x449468=_0x4a8a2d;return _0x5539f0[_0x449468(0x23c)][_0x449468(0x21f)](_0x3ba019['SECTION_BREAK'])?Math[_0x449468(0x1e6)](0x0,_0x5539f0[_0x449468(0x23c)][_0x449468(0x1dd)]-0x1):_0x5539f0['dataStream'][_0x449468(0x1dd)];}function Se(_0x423855,_0x463210,_0x3896b8){const _0x1b3077=_0x4a8a2d;var _0x2e80e0;let _0x4e426e=Math[_0x1b3077(0x235)](_0x463210,_0x3896b8),_0x2fc2d5=Math[_0x1b3077(0x1e6)](_0x463210,_0x3896b8);return!!((_0x2e80e0=_0x423855[_0x1b3077(0x1ee)])!=null&&_0x2e80e0['some'](_0x2804c0=>_0x4e426e>_0x2804c0[_0x1b3077(0x1f0)]&&_0x4e426e<_0x2804c0[_0x1b3077(0x1bd)]||_0x2fc2d5>_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5<_0x2804c0[_0x1b3077(0x1bd)]||_0x4e426e<=_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5>=_0x2804c0[_0x1b3077(0x1bd)]));}function Ce(_0x4cc54b,_0x268161,_0x4880cb){const _0xc2e62c=_0x4a8a2d;var _0x4b1804,_0x157733;let _0x4e865c=[...(_0x4b1804=_0x4cc54b[_0xc2e62c(0x1ba)])==null?[]:_0x4b1804][_0xc2e62c(0x239)]((_0xb1769b,_0x5753db)=>_0xb1769b[_0xc2e62c(0x1f0)]-_0x5753db[_0xc2e62c(0x1f0)]),_0x3d4eff=_0x4e865c['find']((_0x5c92cd,_0x29a26e)=>(_0x29a26e===0x0?0x0:_0x4e865c[_0x29a26e-0x1][_0xc2e62c(0x1f0)]+0x1)<=_0x268161&&_0x268161<=_0x5c92cd['startIndex']),_0x1ed691=(_0x157733=_0x4e865c[_0xc2e62c(0x23a)](_0x211e54=>_0x211e54[_0xc2e62c(0x1f0)]>=_0x4880cb-0x1))==null?_0x4e865c[_0x4e865c[_0xc2e62c(0x1dd)]-0x1]:_0x157733;return{'startOffset':_0x3d4eff?k(_0x4e865c,_0x3d4eff):_0x268161,'endOffset':_0x1ed691?_0x1ed691['startIndex']+0x1:_0x4880cb};}function k(_0x157ccd,_0x170084){const _0x34c4ed=_0x4a8a2d;let _0x393940=_0x157ccd[_0x34c4ed(0x240)](_0x170084);return _0x393940>0x0?_0x157ccd[_0x393940-0x1]['startIndex']+0x1:0x0;}function A(_0x658122,_0x58c33d,_0x451dfa){const _0xe8904b=_0x4a8a2d;var _0x8e9a25;return Math[_0xe8904b(0x1e6)](k((_0x8e9a25=_0x658122['paragraphs'])==null?[]:_0x8e9a25,_0x451dfa),_0x58c33d[_0xe8904b(0x1f0)]+0x1);}function j(_0x54b102,_0x5a480f){const _0x8d5fec=_0x4a8a2d;return _0x54b102[_0x8d5fec(0x23c)][_0x5a480f[_0x8d5fec(0x1bd)]]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]:_0x54b102[_0x8d5fec(0x23c)][_0x5a480f['endIndex']+0x1]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]+0x1:_0x5a480f[_0x8d5fec(0x1bd)];}function we(_0x1734d9,_0x450943,_0x2df09c,_0x498a00){const _0x20b679=_0x4a8a2d;var _0x48b7c9,_0x4a2a5d;let _0x12fe04=j(_0x1734d9,_0x450943),_0x41149c=((_0x48b7c9=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x48b7c9)[_0x20b679(0x23a)](_0x41061b=>_0x41061b[_0x20b679(0x1f0)]===_0x12fe04+0x1);if(!_0x41149c||_0x498a00!=null&&_0x41149c[_0x20b679(0x1f0)]!==_0x498a00||_0x2df09c<_0x12fe04||_0x2df09c>_0x41149c[_0x20b679(0x1f0)]+0x1||_0x1734d9[_0x20b679(0x23c)][_0x41149c['startIndex']]!==_0x3ba019[_0x20b679(0x225)])return null;let _0x1eca3f=k((_0x4a2a5d=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x4a2a5d,_0x41149c),_0x454819=_0x1734d9['dataStream']['slice'](_0x1eca3f,_0x41149c[_0x20b679(0x1f0)]);return Array[_0x20b679(0x214)](_0x454819)[_0x20b679(0x1bf)](_0x37a77b=>_0x37a77b===_0x3ba019[_0x20b679(0x1e7)])?{'paragraph':_0x41149c,'endTokenOffset':_0x12fe04}:null;}function M(_0x5d7221,_0x2a40b1){const _0x3b0637=_0x4a8a2d;var _0x517a07;let _0x2c4705=j(_0x5d7221,_0x2a40b1),_0x4a4b84=_0x5d7221[_0x3b0637(0x23c)][_0x2c4705+0x1];_0x4a4b84!==_0x3ba019[_0x3b0637(0x229)]&&_0x4a4b84!==void 0x0||N(_0x5d7221,_0x2c4705+0x1,_0x3ba019[_0x3b0637(0x225)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34e429(new Set((_0x517a07=_0x5d7221[_0x3b0637(0x1ba)])==null?void 0x0:_0x517a07[_0x3b0637(0x1c6)](_0x3cb5a9=>_0x3cb5a9[_0x3b0637(0x20e)])))}]});}function N(_0xa0396,_0x5e4e9d,_0x5b6d4b,_0x3bb9ec={}){const _0x59ca28=_0x4a8a2d;var _0x1b15f9,_0x4545c4;if(_0x5b6d4b){if(_0xa0396[_0x59ca28(0x23c)]=''+_0xa0396[_0x59ca28(0x23c)]['slice'](0x0,_0x5e4e9d)+_0x5b6d4b+_0xa0396['dataStream'][_0x59ca28(0x1f5)](_0x5e4e9d),Ee(_0xa0396,_0x5e4e9d,_0x5b6d4b[_0x59ca28(0x1dd)]),(_0x1b15f9=_0x3bb9ec[_0x59ca28(0x1ba)])!=null&&_0x1b15f9[_0x59ca28(0x1dd)]){var _0x8d59fb;_0xa0396[_0x59ca28(0x1ba)]=[...(_0x8d59fb=_0xa0396[_0x59ca28(0x1ba)])==null?[]:_0x8d59fb,..._0x3bb9ec[_0x59ca28(0x1ba)][_0x59ca28(0x1c6)](_0x1ffea9=>({..._0x1ffea9,'startIndex':_0x1ffea9['startIndex']+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x545a50,_0x41062d)=>_0x545a50[_0x59ca28(0x1f0)]-_0x41062d[_0x59ca28(0x1f0)]);}if((_0x4545c4=_0x3bb9ec[_0x59ca28(0x1c1)])!=null&&_0x4545c4[_0x59ca28(0x1dd)]){var _0x172fc1;_0xa0396['blockRanges']=[...(_0x172fc1=_0xa0396['blockRanges'])==null?[]:_0x172fc1,..._0x3bb9ec['blockRanges'][_0x59ca28(0x1c6)](_0x19853b=>({..._0x19853b,'startIndex':_0x19853b[_0x59ca28(0x1f0)]+_0x5e4e9d,'endIndex':_0x19853b[_0x59ca28(0x1bd)]+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x2c1261,_0x53f498)=>_0x2c1261['startIndex']-_0x53f498[_0x59ca28(0x1f0)]);}}}function Te(_0x2259ad,_0x121220,_0x434c54){const _0x3ad431=_0x4a8a2d;let _0x14ae8e=_0x434c54-_0x121220;_0x2259ad[_0x3ad431(0x23c)]=''+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](0x0,_0x121220)+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](_0x434c54),De(_0x2259ad,_0x121220,_0x14ae8e);}function Ee(_0x43e9e3,_0x20a3ac,_0x26447c){const _0x1c8892=_0x4a8a2d;_0x43e9e3[_0x1c8892(0x1ba)]=P(_0x43e9e3[_0x1c8892(0x1ba)],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x207)]=P(_0x43e9e3['sectionBreaks'],_0x20a3ac,_0x26447c),_0x43e9e3['customBlocks']=P(_0x43e9e3['customBlocks'],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x206)]=Oe(_0x43e9e3[_0x1c8892(0x206)],_0x20a3ac,_0x26447c),_0x43e9e3['tables']=I(_0x43e9e3[_0x1c8892(0x1ee)],_0x20a3ac,_0x26447c),_0x43e9e3['customRanges']=I(_0x43e9e3[_0x1c8892(0x1d8)],_0x20a3ac,_0x26447c),_0x43e9e3['customDecorations']=I(_0x43e9e3[_0x1c8892(0x238)],_0x20a3ac,_0x26447c),_0x43e9e3['blockRanges']=I(_0x43e9e3['blockRanges'],_0x20a3ac,_0x26447c);}function De(_0x4d91c1,_0x384706,_0x3ecd85){const _0x28ae70=_0x4a8a2d;var _0x702ce5,_0x5b34b0;_0x4d91c1[_0x28ae70(0x1ba)]=F(_0x4d91c1['paragraphs'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x207)]=F(_0x4d91c1[_0x28ae70(0x207)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1cf)]=F(_0x4d91c1[_0x28ae70(0x1cf)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x206)]=(_0x702ce5=L((_0x5b34b0=_0x4d91c1['textRuns'])==null?void 0x0:_0x5b34b0[_0x28ae70(0x1c6)](_0x1eab75=>({..._0x1eab75,'startIndex':_0x1eab75['st'],'endIndex':_0x1eab75['ed']})),_0x384706,_0x3ecd85))==null?void 0x0:_0x702ce5[_0x28ae70(0x1c6)](_0x2fea58=>{let {startIndex:_0x444451,endIndex:_0x560dd9,..._0x3146b5}=_0x2fea58;return{..._0x3146b5,'st':_0x444451,'ed':_0x560dd9};}),_0x4d91c1[_0x28ae70(0x1ee)]=L(_0x4d91c1[_0x28ae70(0x1ee)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1d8)]=L(_0x4d91c1['customRanges'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x238)]=L(_0x4d91c1[_0x28ae70(0x238)],_0x384706,_0x3ecd85),_0x4d91c1['blockRanges']=L(_0x4d91c1[_0x28ae70(0x1c1)],_0x384706,_0x3ecd85);}function P(_0x16c736,_0x4b4b4f,_0x192f08){const _0x2688de=_0x4a8a2d;return _0x16c736==null?void 0x0:_0x16c736[_0x2688de(0x1c6)](_0x5a1173=>_0x5a1173[_0x2688de(0x1f0)]>=_0x4b4b4f?{..._0x5a1173,'startIndex':_0x5a1173['startIndex']+_0x192f08}:_0x5a1173);}function F(_0x2912ba,_0x46d1f3,_0x424aee){const _0x44c81d=_0x4a8a2d;let _0x5b7f66=_0x46d1f3+_0x424aee;return _0x2912ba==null?void 0x0:_0x2912ba[_0x44c81d(0x1c6)](_0x52dc9e=>_0x52dc9e[_0x44c81d(0x1f0)]>=_0x46d1f3&&_0x52dc9e['startIndex']<_0x5b7f66?null:_0x52dc9e[_0x44c81d(0x1f0)]>=_0x5b7f66?{..._0x52dc9e,'startIndex':_0x52dc9e['startIndex']-_0x424aee}:_0x52dc9e)['filter'](_0x415221=>_0x415221!=null);}function Oe(_0x32df01,_0x537bf2,_0x8b8d1d){const _0x5ba742=_0x4a8a2d;return _0x32df01==null?void 0x0:_0x32df01[_0x5ba742(0x1c6)](_0x273a88=>_0x273a88['st']>=_0x537bf2?{..._0x273a88,'st':_0x273a88['st']+_0x8b8d1d,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88['ed']>_0x537bf2?{..._0x273a88,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88);}function I(_0x9b9d4a,_0x2a7633,_0x26d93f){const _0x427625=_0x4a8a2d;return _0x9b9d4a==null?void 0x0:_0x9b9d4a[_0x427625(0x1c6)](_0x3389d8=>_0x3389d8[_0x427625(0x1f0)]>=_0x2a7633?{..._0x3389d8,'startIndex':_0x3389d8[_0x427625(0x1f0)]+_0x26d93f,'endIndex':_0x3389d8[_0x427625(0x1bd)]+_0x26d93f}:_0x3389d8['endIndex']>=_0x2a7633?{..._0x3389d8,'endIndex':_0x3389d8['endIndex']+_0x26d93f}:_0x3389d8);}function L(_0x45d6fa,_0x377e73,_0x3d5f6b){const _0x2ff15a=_0x4a8a2d;let _0xfa2d64=_0x377e73+_0x3d5f6b;return _0x45d6fa==null?void 0x0:_0x45d6fa['map'](_0x1fc5ec=>_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0x377e73&&_0x1fc5ec[_0x2ff15a(0x1bd)]<_0xfa2d64?null:_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0xfa2d64?{..._0x1fc5ec,'startIndex':_0x1fc5ec[_0x2ff15a(0x1f0)]-_0x3d5f6b,'endIndex':_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b}:_0x1fc5ec[_0x2ff15a(0x1bd)]>=_0x377e73?{..._0x1fc5ec,'startIndex':_0x1fc5ec['startIndex']<_0x377e73?_0x1fc5ec['startIndex']:_0x377e73,'endIndex':Math[_0x2ff15a(0x1e6)](_0x377e73,_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b)}:_0x1fc5ec)[_0x2ff15a(0x233)](_0x3ef21a=>_0x3ef21a!=null);}function R(_0x2cc2fc,_0x576234,_0x24ca3d,_0x3f855e){_0x2cc2fc==null||_0x2cc2fc['forEach'](_0x1afc45=>{const _0x20e3aa=_0x28c9;_0x1afc45['startIndex']>=_0x576234&&_0x1afc45[_0x20e3aa(0x1f0)]<_0x24ca3d&&(_0x1afc45['startIndex']+=_0x3f855e);});}function ke(_0x15bea0,_0x17e830,_0x34f1e9,_0x2ec254){const _0x21e132=_0x4a8a2d;_0x15bea0==null||_0x15bea0[_0x21e132(0x1e2)](_0x2fce1=>{_0x2fce1['st']>=_0x17e830&&_0x2fce1['st']<_0x34f1e9?(_0x2fce1['st']+=_0x2ec254,_0x2fce1['ed']+=_0x2ec254):_0x2fce1['ed']>_0x17e830&&_0x2fce1['ed']<_0x34f1e9&&(_0x2fce1['ed']+=_0x2ec254);});}function z(_0x5223e9,_0x379138,_0x114465,_0x48f290){const _0x324870=_0x4a8a2d;_0x5223e9==null||_0x5223e9[_0x324870(0x1e2)](_0x1df7b6=>{const _0x4bd01a=_0x324870;_0x1df7b6[_0x4bd01a(0x1f0)]>=_0x379138&&_0x1df7b6[_0x4bd01a(0x1f0)]<_0x114465?(_0x1df7b6['startIndex']+=_0x48f290,_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290):_0x1df7b6[_0x4bd01a(0x1bd)]>_0x379138&&_0x1df7b6[_0x4bd01a(0x1bd)]<_0x114465&&(_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290);});}function B(_0x2fd0e3){'@babel/helpers - typeof';const _0x21d23d=_0x4a8a2d;return B=typeof Symbol==_0x21d23d(0x1ed)&&typeof Symbol[_0x21d23d(0x1d6)]==_0x21d23d(0x1da)?function(_0x1121ff){return typeof _0x1121ff;}:function(_0x2808c1){const _0x148d96=_0x21d23d;return _0x2808c1&&typeof Symbol==_0x148d96(0x1ed)&&_0x2808c1['constructor']===Symbol&&_0x2808c1!==Symbol[_0x148d96(0x1be)]?_0x148d96(0x1da):typeof _0x2808c1;},B(_0x2fd0e3);}function Ae(_0x115f91,_0x302b6e){const _0x4b03d7=_0x4a8a2d;if(B(_0x115f91)!=_0x4b03d7(0x1d5)||!_0x115f91)return _0x115f91;var _0x3817bf=_0x115f91[Symbol[_0x4b03d7(0x1ea)]];if(_0x3817bf!==void 0x0){var _0x525c6a=_0x3817bf[_0x4b03d7(0x1c8)](_0x115f91,_0x302b6e||_0x4b03d7(0x20b));if(B(_0x525c6a)!=_0x4b03d7(0x1d5))return _0x525c6a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x302b6e===_0x4b03d7(0x1d1)?String:Number)(_0x115f91);}function je(_0x562264){const _0x12b482=_0x4a8a2d;var _0x59f815=Ae(_0x562264,_0x12b482(0x1d1));return B(_0x59f815)==_0x12b482(0x1da)?_0x59f815:_0x59f815+'';}function V(_0x4ebb82,_0x29783a,_0x4cb423){const _0x464628=_0x4a8a2d;return(_0x29783a=je(_0x29783a))in _0x4ebb82?Object[_0x464628(0x1c7)](_0x4ebb82,_0x29783a,{'value':_0x4cb423,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebb82[_0x29783a]=_0x4cb423,_0x4ebb82;}function _0x58a1(){const _0x37f8b9=['docs-code.command.insert-below','delete','complete','indexOf','_change$','5jqMxib','_setResource','deserialize','568DROgGU','paragraphs','COMMAND','metadata','endIndex','prototype','every','clear','blockRanges','previousDocumentData','getCurrentUnitOfType','onStarting','direction','map','defineProperty','call','paragraph','spaceBelow','codes','add','_configService','298dROuVY','customBlocks','11fodUEz','string','deepClone','endTokenOffset','range','object','iterator','UNIVER_DOC','customRanges','3587CfVInx','symbol','compose','change$','length','_resourceManagerService','getUniverDocInstance','dispose','paragraphStartIndex','forEach','unitId','blockId','textStyle','max','BLOCK_END','7708764WElStu','parse','toPrimitive','left','disposeWithMe','function','tables','nextMetadata','startIndex','removeCode','javascript','decorate','blockType','slice','cursorOffset','get','monospace','version','docs-code.config','syncExecuteCommand','_commandService','nextDocumentData','model','1.0.0-alpha.1','CODE','docs-code.command.update','pluginName','6jDpmHI','consumeInsertRange','_docsCodeModel','textRuns','sectionBreaks','166872RqxqjD','6398PYBhkJ','startOffset','default','indentEnd','_config','paragraphId','setCodeConfig','_resources','config','docs-code.command.exit','getBody','from','getSnapshot','serialize','spaceAbove','@univerjs-pro/docs-code','removeUnit','documentData','3285870weuPcy','docs-code.command.insert','docs-code.command.cancel-empty-paragraph','DOC_CODE_PLUGIN','endsWith','replaceOp','getCodeConfig','registerPluginResource','set','Document\x20body\x20is\x20required','PARAGRAPH','commandService','endOffset','getParagraphsInRange','SECTION_BREAK','right','stringify','paragraphStyle','4385586ZIZPEr','getTextRanges','body','next','3667734fUoyDX','registerCommand','filter','BLOCK_START','min','some','_injector','customDecorations','sort','find','type','dataStream'];_0x58a1=function(){return _0x37f8b9;};return _0x58a1();}var H=class extends _0x3e8f03{constructor(..._0x202d30){const _0x8ee9e0=_0x4a8a2d;super(..._0x202d30),V(this,_0x8ee9e0(0x210),new Map()),V(this,'_change$',new _0x363e20()),V(this,_0x8ee9e0(0x1dc),this[_0x8ee9e0(0x241)]['asObservable']());}[_0x4a8a2d(0x221)](_0x197643,_0x58a620){const _0x27ca2e=_0x4a8a2d;return w(this[_0x27ca2e(0x210)][_0x27ca2e(0x1f7)](_0x197643))[_0x27ca2e(0x1cb)][_0x58a620];}[_0x4a8a2d(0x20f)](_0x4853b5,_0x5aaa34,_0x26ee93){const _0x449b87=_0x4a8a2d;this['_setResource'](_0x4853b5,_0x5aaa34,T(this[_0x449b87(0x210)][_0x449b87(0x1f7)](_0x4853b5),_0x5aaa34,_0x26ee93));}[_0x4a8a2d(0x1f1)](_0xf6e12d,_0x3861a5){const _0x34b295=_0x4a8a2d;this['_setResource'](_0xf6e12d,_0x3861a5,re(this[_0x34b295(0x210)][_0x34b295(0x1f7)](_0xf6e12d),_0x3861a5));}[_0x4a8a2d(0x216)](_0x388db7){const _0x5bfda3=_0x4a8a2d;return w(this[_0x5bfda3(0x210)]['get'](_0x388db7));}[_0x4a8a2d(0x1b8)](_0xe49eb4,_0x7cea61){const _0x24eff5=_0x4a8a2d;this[_0x24eff5(0x210)][_0x24eff5(0x223)](_0xe49eb4,w(_0x7cea61)),this[_0x24eff5(0x241)][_0x24eff5(0x230)]({'unitId':_0xe49eb4});}[_0x4a8a2d(0x219)](_0x102cca){const _0x439e75=_0x4a8a2d;this[_0x439e75(0x210)][_0x439e75(0x23e)](_0x102cca),this[_0x439e75(0x241)][_0x439e75(0x230)]({'unitId':_0x102cca});}[_0x4a8a2d(0x1e0)](){const _0x478bdc=_0x4a8a2d;super[_0x478bdc(0x1e0)](),this[_0x478bdc(0x210)][_0x478bdc(0x1c0)](),this[_0x478bdc(0x241)][_0x478bdc(0x23f)]();}[_0x4a8a2d(0x1b7)](_0x1838bc,_0x1d97c0,_0x1fad4f){const _0x3891a1=_0x4a8a2d;this['_resources'][_0x3891a1(0x223)](_0x1838bc,_0x1fad4f),this[_0x3891a1(0x241)][_0x3891a1(0x230)]({'unitId':_0x1838bc,'blockId':_0x1d97c0});}};const Me={'id':_0x4a8a2d(0x23d),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':_0x525534=>{const _0x3d5255=_0x4a8a2d;let _0x2442b9=Le(_0x525534);if(_0x2442b9)return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x2442b9[_0x3d5255(0x20a)],'endOffset':_0x2442b9[_0x3d5255(0x227)],'unitId':_0x2442b9[_0x3d5255(0x1e3)]});let _0x40b8a6=Re(_0x525534);if(!_0x40b8a6)return!0x1;let _0x630a60=_0x40b8a6[_0x3d5255(0x1f0)]+0x1;return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x630a60,'endOffset':_0x630a60});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x20b98a['COMMAND'],'handler':()=>!0x0},U={'id':_0x4a8a2d(0x21c),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x34e2fe,_0x11462e)=>{const _0x2f3080=_0x4a8a2d;var _0x55fe22,_0x46f79f,_0x5e0193;let _0x5b75bf=W(_0x34e2fe,_0x11462e==null?void 0x0:_0x11462e['unitId']);if(!_0x5b75bf)return!0x1;let _0x8f5b5d=G(_0x34e2fe),_0x3c869f=ae({'blockId':(_0x55fe22=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x1e4)])==null?_0x97c26f(0x6):_0x55fe22,'config':_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x211)],'documentData':_0x5b75bf[_0x2f3080(0x1c2)],'endOffset':(_0x46f79f=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x227)])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x227)]:_0x46f79f,'metadata':_0x5b75bf['model'][_0x2f3080(0x216)](_0x5b75bf[_0x2f3080(0x1e3)]),'startOffset':(_0x5e0193=_0x11462e==null?void 0x0:_0x11462e['startOffset'])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x20a)]:_0x5e0193}),_0x25363b=q(_0x5b75bf[_0x2f3080(0x226)],_0x5b75bf[_0x2f3080(0x1e3)],_0x5b75bf[_0x2f3080(0x1c2)],_0x3c869f[_0x2f3080(0x1fd)],_0x3c869f[_0x2f3080(0x1f6)]);return _0x25363b&&_0x3c869f[_0x2f3080(0x1ef)]&&_0x5b75bf[_0x2f3080(0x1fe)][_0x2f3080(0x1b8)](_0x5b75bf[_0x2f3080(0x1e3)],_0x3c869f['nextMetadata']),_0x25363b;}},Pe={'id':_0x4a8a2d(0x201),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x596b59,_0x2a5246)=>{const _0x2dad1b=_0x4a8a2d;if(!_0x2a5246)return!0x1;let _0x447ca0=W(_0x596b59,_0x2a5246[_0x2dad1b(0x1e3)]);if(!_0x447ca0)return!0x1;let _0x1ec4e5=ce({'blockId':_0x2a5246[_0x2dad1b(0x1e4)],'config':_0x2a5246['config'],'documentData':_0x447ca0[_0x2dad1b(0x1c2)],'metadata':_0x447ca0[_0x2dad1b(0x1fe)][_0x2dad1b(0x216)](_0x447ca0['unitId'])});return _0x1ec4e5[_0x2dad1b(0x1ef)]&&_0x447ca0['model'][_0x2dad1b(0x1b8)](_0x447ca0['unitId'],_0x1ec4e5[_0x2dad1b(0x1ef)]),!0x0;}},Fe={'id':_0x4a8a2d(0x212),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x510efd,_0xbfa146)=>{const _0x594323=_0x4a8a2d;var _0x4b464b,_0x4ad761;let _0x48a69b=W(_0x510efd,_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1e3)]);if(!_0x48a69b)return!0x1;let _0x3dacad=(_0x4b464b=_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1f6)])==null?(_0x4ad761=G(_0x510efd))==null?void 0x0:_0x4ad761[_0x594323(0x20a)]:_0x4b464b;if(_0x3dacad==null)return!0x1;let _0x1067fe=le({'cursorOffset':_0x3dacad,'documentData':_0x48a69b['previousDocumentData']});return _0x1067fe?q(_0x48a69b[_0x594323(0x226)],_0x48a69b[_0x594323(0x1e3)],_0x48a69b[_0x594323(0x1c2)],_0x1067fe[_0x594323(0x1fd)],_0x1067fe[_0x594323(0x1f6)]):!0x1;}},Ie={'id':_0x4a8a2d(0x21d),'type':_0x20b98a['COMMAND'],'handler':(_0x561e74,_0x45fa69)=>{const _0x4da7e9=_0x4a8a2d;var _0x599ff8,_0x542500;let _0x5727a7=W(_0x561e74,_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1e3)]);if(!_0x5727a7)return!0x1;let _0xd602b7=(_0x599ff8=_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1f6)])==null?(_0x542500=G(_0x561e74))==null?void 0x0:_0x542500['startOffset']:_0x599ff8;if(_0xd602b7==null)return!0x1;let _0x2c0745=ue({'cursorOffset':_0xd602b7,'documentData':_0x5727a7['previousDocumentData'],'paragraphStartIndex':_0x45fa69==null?void 0x0:_0x45fa69['paragraphStartIndex']});return _0x2c0745?q(_0x5727a7[_0x4da7e9(0x226)],_0x5727a7[_0x4da7e9(0x1e3)],_0x5727a7[_0x4da7e9(0x1c2)],_0x2c0745['nextDocumentData'],_0x2c0745[_0x4da7e9(0x1f6)]):!0x1;}};function W(_0x482f3b,_0x9a475b){const _0x58afea=_0x4a8a2d;let _0x4faac0=_0x482f3b['get'](_0x3abeac),_0xaaf406=_0x9a475b?_0x4faac0[_0x58afea(0x1df)](_0x9a475b):_0x4faac0[_0x58afea(0x1c3)](_0x2bb6f5[_0x58afea(0x1d7)]);return _0xaaf406?{'commandService':_0x482f3b['get'](_0x3735ed),'model':_0x482f3b['get'](H),'previousDocumentData':_0xaaf406[_0x58afea(0x215)](),'unitId':_0xaaf406['getUnitId']()}:null;}function G(_0x48d8e5){const _0x7c73c4=_0x4a8a2d;var _0x1f4ac0;return(_0x1f4ac0=_0x48d8e5[_0x7c73c4(0x1f7)](_0x291a89)[_0x7c73c4(0x22e)]())==null?void 0x0:_0x1f4ac0[0x0];}function Le(_0x50f484){const _0x335578=_0x4a8a2d;var _0x4d0fb4;let _0x5c46dc=(_0x4d0fb4=_0x50f484[_0x335578(0x1f7)](_0x3abeac)[_0x335578(0x1c3)](_0x2bb6f5[_0x335578(0x1d7)]))==null?void 0x0:_0x4d0fb4['getUnitId']();try{return _0x50f484['get'](_0x2040aa)[_0x335578(0x204)](_0x5c46dc);}catch{return null;}}function Re(_0xc8d4b2){const _0x459600=_0x4a8a2d;var _0x66885,_0x360e57,_0x1eb2a3;let _0x5323c3=G(_0xc8d4b2);if(!_0x5323c3)return null;let _0x1ddf43=_0xc8d4b2[_0x459600(0x1f7)](_0x3abeac)['getCurrentUnitOfType'](_0x2bb6f5[_0x459600(0x1d7)]),_0x5dc10f=_0x1ddf43==null?void 0x0:_0x1ddf43[_0x459600(0x213)]();return _0x5dc10f?(_0x66885=_0x24fe28[_0x459600(0x1d4)][_0x459600(0x228)](_0x5323c3,(_0x360e57=_0x5dc10f['paragraphs'])==null?[]:_0x360e57,(_0x1eb2a3=_0x5dc10f[_0x459600(0x23c)])==null?'':_0x1eb2a3)[0x0])==null?null:_0x66885:null;}function ze(_0x48f164,_0x5d6c01){const _0x2758ca=_0x4a8a2d;var _0x93d0eb,_0x24ac7b,_0x5bd531,_0xe97b8e,_0x1a541c,_0x428a1d,_0x206213,_0x371f1f,_0x104ccd,_0x3d1e1a,_0x2a8cfb,_0x3c555b,_0x19f2e1,_0x23c305,_0x3c760e,_0x399b81,_0xfc1a60,_0x147f97;let _0x59a6ac=_0x2387fb['getInstance']();return[K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x23c)],(_0x93d0eb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x93d0eb['dataStream'],(_0x24ac7b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x24ac7b['dataStream']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1ba)],(_0x5bd531=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x5bd531[_0x2758ca(0x1ba)],(_0xe97b8e=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0xe97b8e[_0x2758ca(0x1ba)]),K(_0x59a6ac,[_0x2758ca(0x22f),'sectionBreaks'],(_0x1a541c=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x1a541c[_0x2758ca(0x207)],(_0x428a1d=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x428a1d[_0x2758ca(0x207)]),K(_0x59a6ac,['body','textRuns'],(_0x206213=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x206213[_0x2758ca(0x206)],(_0x371f1f=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x371f1f[_0x2758ca(0x206)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1cf)],(_0x104ccd=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x104ccd[_0x2758ca(0x1cf)],(_0x3d1e1a=_0x5d6c01['body'])==null?void 0x0:_0x3d1e1a[_0x2758ca(0x1cf)]),K(_0x59a6ac,['body','customRanges'],(_0x2a8cfb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x2a8cfb[_0x2758ca(0x1d8)],(_0x3c555b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x3c555b[_0x2758ca(0x1d8)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x238)],(_0x19f2e1=_0x48f164['body'])==null?void 0x0:_0x19f2e1[_0x2758ca(0x238)],(_0x23c305=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x23c305[_0x2758ca(0x238)]),K(_0x59a6ac,['body',_0x2758ca(0x1ee)],(_0x3c760e=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x3c760e[_0x2758ca(0x1ee)],(_0x399b81=_0x5d6c01['body'])==null?void 0x0:_0x399b81['tables']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1c1)],(_0xfc1a60=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0xfc1a60['blockRanges'],(_0x147f97=_0x5d6c01['body'])==null?void 0x0:_0x147f97['blockRanges'])][_0x2758ca(0x233)](Boolean)['reduce']((_0x30a948,_0x36800f)=>_0x2387fb[_0x2758ca(0x1db)](_0x30a948,_0x36800f),null);}function K(_0x496e0e,_0xabeaeb,_0x3cfa55,_0x2dd681){const _0x1b2a92=_0x4a8a2d;return _0xb48f1['diffValue'](_0x3cfa55,_0x2dd681)?null:_0x496e0e[_0x1b2a92(0x220)](_0xabeaeb,_0x3cfa55,_0x2dd681);}function q(_0x1c7168,_0x258537,_0x42aba6,_0x47945c,_0x5aac27){const _0x4ca4d8=_0x4a8a2d;let _0x55ea90=ze(_0x42aba6,_0x47945c);return _0x55ea90?!!_0x1c7168[_0x4ca4d8(0x1fb)](_0x4297bb['id'],{'unitId':_0x258537,'actions':_0x55ea90,'textRanges':[{'startOffset':_0x5aac27,'endOffset':_0x5aac27,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x4a8a2d(0x21e);var Be=_0x4a8a2d(0x218),Ve=_0x4a8a2d(0x1ff);const Y={};function X(_0x51a0d7,_0x4f288e){return function(_0xc2b95e,_0xe780a8){_0x4f288e(_0xc2b95e,_0xe780a8,_0x51a0d7);};}function Z(_0xb42bea,_0x307348,_0x399d74,_0x5b84c7){const _0x3fbc82=_0x4a8a2d;var _0x5d394d=arguments[_0x3fbc82(0x1dd)],_0x1b366b=_0x5d394d<0x3?_0x307348:_0x5b84c7===null?_0x5b84c7=Object['getOwnPropertyDescriptor'](_0x307348,_0x399d74):_0x5b84c7,_0x1b2d90;if(typeof Reflect==_0x3fbc82(0x1d5)&&typeof Reflect[_0x3fbc82(0x1f3)]==_0x3fbc82(0x1ed))_0x1b366b=Reflect['decorate'](_0xb42bea,_0x307348,_0x399d74,_0x5b84c7);else{for(var _0x552881=_0xb42bea[_0x3fbc82(0x1dd)]-0x1;_0x552881>=0x0;_0x552881--)(_0x1b2d90=_0xb42bea[_0x552881])&&(_0x1b366b=(_0x5d394d<0x3?_0x1b2d90(_0x1b366b):_0x5d394d>0x3?_0x1b2d90(_0x307348,_0x399d74,_0x1b366b):_0x1b2d90(_0x307348,_0x399d74))||_0x1b366b);}return _0x5d394d>0x3&&_0x1b366b&&Object[_0x3fbc82(0x1c7)](_0x307348,_0x399d74,_0x1b366b),_0x1b366b;}let Q=class extends _0x3e8f03{constructor(_0x525000,_0x5307ab){const _0x527ba6=_0x4a8a2d;super(),this[_0x527ba6(0x1de)]=_0x525000,this[_0x527ba6(0x205)]=_0x5307ab,this['_initResource']();}['_initResource'](){const _0x138310=_0x4a8a2d;this['disposeWithMe'](this[_0x138310(0x1de)][_0x138310(0x222)]({'pluginName':J,'businesses':[_0x2bb6f5['UNIVER_DOC']],'toJson':_0x756b90=>JSON[_0x138310(0x22b)](this['_docsCodeModel'][_0x138310(0x216)](_0x756b90)),'parseJson':_0x326414=>w(JSON[_0x138310(0x1e9)](_0x326414)),'onLoad':(_0x3bb989,_0x9d9c94)=>this[_0x138310(0x205)][_0x138310(0x1b8)](_0x3bb989,_0x9d9c94),'onUnLoad':_0x1fb262=>this[_0x138310(0x205)][_0x138310(0x219)](_0x1fb262)}));}};Q=Z([X(0x0,_0x3f714d),X(0x1,_0x4628b1(H))],Q);let $=class extends _0x5357ad{constructor(_0x44a0c7=Y,_0x299616,_0x10514f,_0x5e69cf){const _0x4b2ffc=_0x4a8a2d;super(),this[_0x4b2ffc(0x20d)]=_0x44a0c7,this['_injector']=_0x299616,this[_0x4b2ffc(0x1fc)]=_0x10514f,this[_0x4b2ffc(0x1cd)]=_0x5e69cf;let {..._0x1fb70a}=_0x3de4b6({},Y,this[_0x4b2ffc(0x20d)]);this['_configService']['setConfig'](_0x4b2ffc(0x1fa),_0x1fb70a);}[_0x4a8a2d(0x1c4)](){const _0x41fbe=_0x4a8a2d;this[_0x41fbe(0x237)][_0x41fbe(0x1cc)]([H]),this[_0x41fbe(0x237)]['add']([Q]),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](H),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x41fbe(0x1e2)](_0x4ae732=>this[_0x41fbe(0x1ec)](this[_0x41fbe(0x1fc)][_0x41fbe(0x232)](_0x4ae732)));}};V($,_0x4a8a2d(0x202),J),V($,'packageName',Be),V($,_0x4a8a2d(0x1f9),Ve),V($,_0x4a8a2d(0x23b),_0x2bb6f5[_0x4a8a2d(0x1d7)]),$=Z([_0xb86e0(_0x141bd9,_0x1f5d37),X(0x1,_0x4628b1(_0x531f72)),X(0x2,_0x3735ed),X(0x3,_0x42560c)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
1
+ const _0x219c77=_0x4994;(function(_0x2b65b0,_0x126e1c){const _0x29566a=_0x4994,_0x238b3b=_0x2b65b0();while(!![]){try{const _0x32241e=parseInt(_0x29566a(0xa8))/0x1+-parseInt(_0x29566a(0x7e))/0x2+parseInt(_0x29566a(0x88))/0x3*(parseInt(_0x29566a(0xb7))/0x4)+parseInt(_0x29566a(0xc9))/0x5*(-parseInt(_0x29566a(0xc6))/0x6)+-parseInt(_0x29566a(0xec))/0x7*(parseInt(_0x29566a(0xaf))/0x8)+-parseInt(_0x29566a(0x6b))/0x9+parseInt(_0x29566a(0xa5))/0xa*(parseInt(_0x29566a(0xe8))/0xb);if(_0x32241e===_0x126e1c)break;else _0x238b3b['push'](_0x238b3b['shift']());}catch(_0x39bfe2){_0x238b3b['push'](_0x238b3b['shift']());}}}(_0x2a2a,0x5f27a));import{BuildTextUtils as _0x52d7f9,CommandType as _0x4ff736,DataStreamTreeTokenType as _0x4ed1bf,DependentOn as _0x268121,Disposable as _0x5107f0,DocumentBlockRangeType as _0x34d60f,ICommandService as _0x37df2c,IConfigService as _0x431f58,IResourceManagerService as _0x440e2f,IUniverInstanceService as _0x595ab8,Inject as _0x422fcc,Injector as _0x3af657,JSONX as _0x54cd09,Plugin as _0x4de551,Tools as _0x3fd2f4,UniverInstanceType as _0x47101f,createParagraphId as _0x44a586,generateRandomId as _0x12ff78,merge as _0xa8f50a}from'@univerjs/core';import{DocContentInsertService as _0x5727fa,DocSelectionManagerService as _0x41c563,RichTextEditingMutation as _0x40cd82,UniverDocsPlugin as _0x2ecad0}from'@univerjs/docs';import{Subject as _0x2f75e2}from'rxjs';import{UniverLicensePlugin as _0x48da71}from'@univerjs-pro/license';const S={'language':_0x219c77(0x75),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x4a384b){return{...S,..._0x4a384b};}function w(_0x2631d6){const _0x14649e=_0x219c77;var _0x510d84;let _0x443897=(_0x510d84=_0x2631d6==null?void 0x0:_0x2631d6['codes'])==null?{}:_0x510d84;return{'codes':Object['fromEntries'](Object[_0x14649e(0xf1)](_0x443897)[_0x14649e(0xf0)](([_0x5673b3,_0xe55472])=>[_0x5673b3,C(_0xe55472)]))};}function T(_0xe86fec,_0x5292b0,_0x532988){const _0x512371=_0x219c77;let _0x10873f=w(_0xe86fec);return _0x10873f[_0x512371(0xe7)][_0x5292b0]=C({..._0x10873f['codes'][_0x5292b0],..._0x532988}),_0x10873f;}function re(_0x35fb01,_0x1f3ade){const _0x38de12=_0x219c77;let _0x48d536=w(_0x35fb01);return delete _0x48d536[_0x38de12(0xe7)][_0x1f3ade],_0x48d536;}const ie=_0x219c77(0x8d);function ae(_0x136ac3){const _0xe777e=_0x219c77;var _0x184156,_0x2b99ef,_0x5bcaf2;let _0x440a91=D(_0x136ac3[_0xe777e(0x76)]),_0x5bedb4=O(_0x440a91),_0x1e4399=se(_0x136ac3[_0xe777e(0x7f)],_0x136ac3['endOffset']),_0x2a22f5=_0x1e4399?(_0x184156=_0x5bedb4[_0xe777e(0xab)])==null?void 0x0:_0x184156[_0xe777e(0x71)](_0x1bf890=>_0x1bf890['startIndex']===_0x1e4399[_0xe777e(0x7f)]&&_0x1bf890[_0xe777e(0x90)]+0x1===_0x1e4399[_0xe777e(0xd8)]):void 0x0,{startOffset:_0xff7c45,endOffset:_0x4b9eed}=_0x2a22f5?_0x1e4399:ye(_0x5bedb4,_0x136ac3['startOffset'],_0x136ac3['endOffset']),_0x5d3e5c=Se(_0x5bedb4,_0xff7c45,_0x4b9eed),_0x29732a=(_0x2b99ef=_0x2a22f5==null?void 0x0:_0x2a22f5[_0xe777e(0x92)])==null?_0x136ac3['blockId']:_0x2b99ef,_0x1d91e7=T(_0x136ac3[_0xe777e(0x93)],_0x29732a,{...S,..._0x136ac3['config']});if(_0x2a22f5)return _0x2a22f5[_0xe777e(0xea)]=_0x34d60f[_0xe777e(0x80)],oe(_0x5bedb4,_0xff7c45,_0x4b9eed),he(_0x5bedb4,_0xff7c45,_0x4b9eed,_0x5d3e5c),M(_0x5bedb4,_0x2a22f5),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};if(_0xff7c45===_0x4b9eed){var _0x218fc1,_0x1083a8;let _0x2d96a5=''+_0x4ed1bf[_0xe777e(0xdb)]+_0x4ed1bf[_0xe777e(0x83)]+_0x4ed1bf[_0xe777e(0xa3)];N(_0x5bedb4,_0xff7c45,_0x2d96a5,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x44a586(new Set((_0x218fc1=_0x5bedb4[_0xe777e(0x6e)])==null?void 0x0:_0x218fc1[_0xe777e(0xf0)](_0x163468=>_0x163468[_0xe777e(0xb4)]))),'paragraphStyle':E(!0x0,!0x0,_0x5d3e5c)}],'blockRanges':[{'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':0x0,'endIndex':_0x2d96a5[_0xe777e(0xa6)]-0x1}]});let _0x2125c7=(_0x1083a8=_0x5bedb4['blockRanges'])==null?void 0x0:_0x1083a8[_0xe777e(0x71)](_0x93f428=>_0x93f428['blockId']===_0x29732a);return _0x2125c7&&M(_0x5bedb4,_0x2125c7),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}N(_0x5bedb4,_0x4b9eed,_0x4ed1bf[_0xe777e(0xa3)]),N(_0x5bedb4,_0xff7c45,_0x4ed1bf['BLOCK_START']),he(_0x5bedb4,_0xff7c45,_0x4b9eed+0x1,_0x5d3e5c);let _0x15d7cc={'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':_0xff7c45,'endIndex':_0x4b9eed+0x1};return _0x5bedb4[_0xe777e(0xab)]=[...(_0x5bcaf2=_0x5bedb4[_0xe777e(0xab)])==null?[]:_0x5bcaf2,_0x15d7cc][_0xe777e(0x81)]((_0x20f0b1,_0x54cbaa)=>_0x20f0b1['startIndex']-_0x54cbaa[_0xe777e(0xe0)]),M(_0x5bedb4,_0x15d7cc),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}function oe(_0x33bc82,_0xbac811,_0x564e66){const _0x3f841d=_0x219c77;var _0x5c82e5;((_0x5c82e5=_0x33bc82[_0x3f841d(0x6e)])==null?[]:_0x5c82e5)[_0x3f841d(0x74)](_0x340cbc=>_0x340cbc[_0x3f841d(0xe0)]>_0xbac811&&_0x340cbc['startIndex']<_0x564e66)[_0x3f841d(0xd3)](_0x30153a=>{const _0x33930c=_0x3f841d;var _0x390252;let _0x45cdf8={...(_0x390252=_0x30153a[_0x33930c(0x87)])==null?{}:_0x390252};delete _0x45cdf8[_0x33930c(0xca)],delete _0x45cdf8[_0x33930c(0xcd)],_0x30153a[_0x33930c(0x87)]=_0x45cdf8;});}function se(_0x5c4237,_0x349c8e){const _0x1b5890=_0x219c77;return _0x5c4237==null||_0x349c8e==null||_0x5c4237===_0x349c8e?null:{'startOffset':Math[_0x1b5890(0xdc)](_0x5c4237,_0x349c8e),'endOffset':Math[_0x1b5890(0x66)](_0x5c4237,_0x349c8e)};}function ce(_0x1337e9){const _0x5ab5c9=_0x219c77;return{'nextDocumentData':D(_0x1337e9['documentData']),'nextMetadata':T(_0x1337e9[_0x5ab5c9(0x93)],_0x1337e9[_0x5ab5c9(0x92)],_0x1337e9[_0x5ab5c9(0x84)]),'cursorOffset':0x0};}function le(_0x30a987){const _0x25f580=_0x219c77;var _0x2de818,_0x173fb3;let _0x3f2101=D(_0x30a987[_0x25f580(0x76)]),_0x282caf=O(_0x3f2101),_0x5c0e80=me(_0x282caf,_0x30a987['cursorOffset']);if(!_0x5c0e80)return null;let _0x436bc5=_e(_0x282caf,_0x5c0e80),_0x103bf9=_0x436bc5[_0x436bc5[_0x25f580(0xa6)]-0x1];if(!_0x103bf9||!ve(_0x282caf,_0x5c0e80,_0x103bf9)||_0x30a987[_0x25f580(0xc2)]<_0x103bf9[_0x25f580(0xe0)])return null;let _0x561186=A(_0x282caf,_0x5c0e80,_0x103bf9);if(_0x561186>=_0x5c0e80[_0x25f580(0x90)])return null;_0x282caf[_0x25f580(0x73)]=[_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](0x0,_0x561186),_0x4ed1bf[_0x25f580(0xa3)],_0x282caf[_0x25f580(0x73)]['slice'](_0x561186,_0x5c0e80['endIndex']),_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](_0x5c0e80['endIndex']+0x1)][_0x25f580(0x77)](''),R(_0x282caf[_0x25f580(0x6e)],_0x561186,_0x5c0e80['endIndex'],0x1),R(_0x282caf[_0x25f580(0xac)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),R(_0x282caf[_0x25f580(0x8a)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),ke(_0x282caf['textRuns'],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xd7)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xef)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf['customDecorations'],_0x561186,_0x5c0e80['endIndex'],0x1),(_0x2de818=_0x282caf[_0x25f580(0xab)])==null||_0x2de818[_0x25f580(0xd3)](_0x51041d=>{const _0x29132e=_0x25f580;_0x51041d===_0x5c0e80||_0x51041d[_0x29132e(0x92)]===_0x5c0e80['blockId']?_0x51041d['endIndex']=_0x561186:_0x51041d[_0x29132e(0xe0)]>=_0x561186&&_0x51041d[_0x29132e(0xe0)]<_0x5c0e80[_0x29132e(0x90)]&&(_0x51041d['startIndex']+=0x1,_0x51041d[_0x29132e(0x90)]+=0x1);});let _0x5d9b5a=_e(_0x282caf,{..._0x5c0e80,'endIndex':_0x561186});_0x5d9b5a[_0x25f580(0xd3)]((_0x1da80f,_0x325f78)=>{const _0x5decce=_0x25f580;var _0x3bdf85;_0x1da80f[_0x5decce(0x87)]={...(_0x3bdf85=_0x1da80f[_0x5decce(0x87)])==null?{}:_0x3bdf85,...E(_0x325f78===0x0,_0x325f78===_0x5d9b5a[_0x5decce(0xa6)]-0x1)};});let _0x470b8f=(_0x173fb3=_0x282caf[_0x25f580(0x6e)])==null?void 0x0:_0x173fb3['find'](_0x249618=>_0x249618[_0x25f580(0xe0)]===_0x561186+0x1);return _0x470b8f&&(_0x470b8f['paragraphStyle']=ge(_0x470b8f['paragraphStyle'])),{'nextDocumentData':_0x3f2101,'cursorOffset':_0x561186+0x1};}function ue(_0x1c47ca){const _0x3592f1=_0x219c77;let _0x17129f=D(_0x1c47ca['documentData']),_0x50d17a=O(_0x17129f),_0x1b683b=me(_0x50d17a,_0x1c47ca[_0x3592f1(0xc2)]);return _0x1b683b&&de(_0x17129f,_0x50d17a,_0x1b683b,_0x1c47ca['cursorOffset'],_0x1c47ca[_0x3592f1(0xbd)])||null;}function de(_0x5c175b,_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e){const _0x416d7b=_0x219c77;let _0x37897f=we(_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e);if(!_0x37897f)return null;let _0x2804f4=_0x37897f[_0x416d7b(0x85)]-0x1;return Te(_0x2bdb9c,_0x37897f[_0x416d7b(0xa0)][_0x416d7b(0xe0)],_0x37897f[_0x416d7b(0xa0)]['startIndex']+0x1),{'nextDocumentData':_0x5c175b,'cursorOffset':_0x2804f4};}function fe(_0x45f2dc,_0x20d235){const _0x55be44=_0x219c77;var _0x44961e;return _0x45f2dc==null||(_0x44961e=_0x45f2dc['blockRanges'])==null?void 0x0:_0x44961e[_0x55be44(0x71)](_0x51bbc5=>_0x51bbc5['blockType']===_0x34d60f[_0x55be44(0x80)]&&_0x51bbc5[_0x55be44(0xe0)]<=_0x20d235&&_0x20d235<=_0x51bbc5['endIndex']);}function pe(_0x449ac6){const _0x1921bb=_0x219c77;var _0x4c0498;let _0x146aa8=_0x449ac6[_0x1921bb(0x76)][_0x1921bb(0x6f)];if(!_0x146aa8)return!0x1;let _0x8ff63a=_0x449ac6[_0x1921bb(0xed)]==='left'?_0x449ac6['cursorOffset']-0x1:_0x449ac6[_0x1921bb(0xc2)],_0x1bc5d0=_0x449ac6[_0x1921bb(0xed)]==='right'?_0x449ac6[_0x1921bb(0xc2)]+0x1:_0x8ff63a;return((_0x4c0498=_0x146aa8[_0x1921bb(0xab)])==null?[]:_0x4c0498)['some'](_0x1be12a=>_0x1be12a[_0x1921bb(0xea)]===_0x34d60f[_0x1921bb(0x80)]?_0x8ff63a===_0x1be12a[_0x1921bb(0xe0)]||_0x8ff63a===_0x1be12a[_0x1921bb(0x90)]||_0x1bc5d0===_0x1be12a[_0x1921bb(0xe0)]||_0x1bc5d0===_0x1be12a['endIndex']:!0x1);}function me(_0x570a7c,_0x10ab54){const _0x38c766=_0x219c77;var _0x2f80d9;return(_0x2f80d9=_0x570a7c['blockRanges'])==null?void 0x0:_0x2f80d9[_0x38c766(0x71)](_0x3818ba=>{const _0x4731cd=_0x38c766;let _0x28e843=j(_0x570a7c,_0x3818ba);return _0x3818ba[_0x4731cd(0xea)]===_0x34d60f['CODE']&&_0x3818ba[_0x4731cd(0xe0)]<=_0x10ab54&&_0x10ab54<=_0x28e843+0x2;});}function E(_0x513e92,_0x779d43,_0x2f84ad=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x513e92&&_0x2f84ad?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56fc75,_0x1ae61e,_0xdbcfc2,_0x33517d=!0x1){const _0x506ffc=_0x219c77;var _0x1d2c0a;let _0x3da2e8=((_0x1d2c0a=_0x56fc75['paragraphs'])==null?[]:_0x1d2c0a)[_0x506ffc(0x74)](_0x2ac8f2=>_0x2ac8f2['startIndex']>_0x1ae61e&&_0x2ac8f2[_0x506ffc(0xe0)]<_0xdbcfc2);_0x3da2e8[_0x506ffc(0xd3)]((_0x26cf19,_0x1db83e)=>{const _0x34ed56=_0x506ffc;var _0x151f54;_0x26cf19['paragraphStyle']={...(_0x151f54=_0x26cf19['paragraphStyle'])==null?{}:_0x151f54,...E(_0x1db83e===0x0,_0x1db83e===_0x3da2e8[_0x34ed56(0xa6)]-0x1,_0x33517d)};});}function ge(_0x532bb9){const _0x5d60f3=_0x219c77;var _0x28a1a3,_0x4097a4;let _0x575a29={..._0x532bb9==null?{}:_0x532bb9};return delete _0x575a29['indentEnd'],delete _0x575a29[_0x5d60f3(0xb3)],delete _0x575a29['spaceAbove'],delete _0x575a29[_0x5d60f3(0xcd)],((_0x28a1a3=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x28a1a3['ff'])===ie&&((_0x4097a4=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x4097a4['fs'])===0xc&&delete _0x575a29[_0x5d60f3(0xb0)],_0x575a29;}function _e(_0x52ec27,_0x306a7f){const _0x3692fe=_0x219c77;var _0x293e8c;let _0x20470d=j(_0x52ec27,_0x306a7f);return((_0x293e8c=_0x52ec27[_0x3692fe(0x6e)])==null?[]:_0x293e8c)[_0x3692fe(0x74)](_0x56adf2=>_0x56adf2[_0x3692fe(0xe0)]>_0x306a7f[_0x3692fe(0xe0)]&&_0x56adf2[_0x3692fe(0xe0)]<_0x20470d);}function ve(_0x1c8d06,_0x5ce5ba,_0x2f4f41){const _0x2cb2ee=_0x219c77;let _0x938490=A(_0x1c8d06,_0x5ce5ba,_0x2f4f41),_0x4b9463=_0x1c8d06[_0x2cb2ee(0x73)]['slice'](_0x938490,_0x2f4f41['startIndex']);return Array['from'](_0x4b9463)[_0x2cb2ee(0x96)](_0xf71d78=>_0xf71d78===_0x4ed1bf['BLOCK_START']||_0xf71d78===_0x4ed1bf[_0x2cb2ee(0xa3)]);}function D(_0x34caaa){const _0x391afa=_0x219c77;return _0x3fd2f4[_0x391afa(0xc0)](_0x34caaa);}function O(_0x5c8e62){const _0x2f9148=_0x219c77;if(!_0x5c8e62['body'])throw Error(_0x2f9148(0x97));return _0x5c8e62[_0x2f9148(0x6f)];}function ye(_0x47551e,_0x2418a3,_0x4ea7f0){const _0x182576=_0x219c77;if(_0x2418a3==null||_0x4ea7f0==null){let _0x97b7f=xe(_0x47551e);return{'startOffset':_0x97b7f,'endOffset':_0x97b7f};}let _0x1acdfc=Math[_0x182576(0xdc)](_0x2418a3,_0x4ea7f0),_0x29672b=Math[_0x182576(0x66)](_0x2418a3,_0x4ea7f0);if(_0x1acdfc===_0x29672b){let _0x3c7bb9=be(_0x47551e,_0x1acdfc);return{'startOffset':_0x3c7bb9,'endOffset':_0x3c7bb9};}return Ce(_0x47551e,_0x1acdfc,_0x29672b);}function be(_0x39b05d,_0x39f0b9){const _0x1afea7=_0x219c77;return _0x39f0b9===0x0&&_0x39b05d[_0x1afea7(0x73)][0x0]===_0x4ed1bf[_0x1afea7(0x83)]?0x1:_0x39f0b9;}function xe(_0x2b06e4){const _0x423f45=_0x219c77;return _0x2b06e4[_0x423f45(0x73)][_0x423f45(0xe6)](_0x4ed1bf[_0x423f45(0x7d)])?Math[_0x423f45(0x66)](0x0,_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)]-0x1):_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)];}function Se(_0x1e19f9,_0x15a9e8,_0x3c2e7){const _0x562d17=_0x219c77;var _0xe463c4;let _0x1eaf81=Math['min'](_0x15a9e8,_0x3c2e7),_0x1241c7=Math[_0x562d17(0x66)](_0x15a9e8,_0x3c2e7);return!!((_0xe463c4=_0x1e19f9[_0x562d17(0xd7)])!=null&&_0xe463c4[_0x562d17(0xee)](_0x4265f2=>_0x1eaf81>_0x4265f2[_0x562d17(0xe0)]&&_0x1eaf81<_0x4265f2['endIndex']||_0x1241c7>_0x4265f2['startIndex']&&_0x1241c7<_0x4265f2[_0x562d17(0x90)]||_0x1eaf81<=_0x4265f2[_0x562d17(0xe0)]&&_0x1241c7>=_0x4265f2[_0x562d17(0x90)]));}function Ce(_0x497674,_0x579e0b,_0x536a20){const _0x3b5500=_0x219c77;var _0x46d3b9,_0x4ea261;let _0x139342=[...(_0x46d3b9=_0x497674[_0x3b5500(0x6e)])==null?[]:_0x46d3b9][_0x3b5500(0x81)]((_0x202d21,_0x1c81ba)=>_0x202d21[_0x3b5500(0xe0)]-_0x1c81ba[_0x3b5500(0xe0)]),_0x1de355=_0x139342['find']((_0x3bed3f,_0x37761d)=>(_0x37761d===0x0?0x0:_0x139342[_0x37761d-0x1]['startIndex']+0x1)<=_0x579e0b&&_0x579e0b<=_0x3bed3f['startIndex']),_0x2d5dbc=(_0x4ea261=_0x139342[_0x3b5500(0x71)](_0x8fbe47=>_0x8fbe47['startIndex']>=_0x536a20-0x1))==null?_0x139342[_0x139342['length']-0x1]:_0x4ea261;return{'startOffset':_0x1de355?k(_0x139342,_0x1de355):_0x579e0b,'endOffset':_0x2d5dbc?_0x2d5dbc[_0x3b5500(0xe0)]+0x1:_0x536a20};}function k(_0x365f70,_0x263f92){const _0x392b69=_0x219c77;let _0x42ec70=_0x365f70[_0x392b69(0xaa)](_0x263f92);return _0x42ec70>0x0?_0x365f70[_0x42ec70-0x1][_0x392b69(0xe0)]+0x1:0x0;}function _0x4994(_0x41117,_0x1705cf){_0x41117=_0x41117-0x66;const _0x2a2aa3=_0x2a2a();let _0x499423=_0x2a2aa3[_0x41117];return _0x499423;}function A(_0x38cbf5,_0x977bdb,_0x2318b5){const _0x29c4b3=_0x219c77;var _0x48757e;return Math['max'](k((_0x48757e=_0x38cbf5[_0x29c4b3(0x6e)])==null?[]:_0x48757e,_0x2318b5),_0x977bdb['startIndex']+0x1);}function j(_0x1344e5,_0x35d585){const _0x3106ad=_0x219c77;return _0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585[_0x3106ad(0x90)]:_0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']+0x1]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585['endIndex']+0x1:_0x35d585[_0x3106ad(0x90)];}function we(_0x2bb676,_0xb3f65f,_0x560070,_0xf10bb7){const _0x282d5a=_0x219c77;var _0x11f297,_0x210a8;let _0x5c6aea=j(_0x2bb676,_0xb3f65f),_0x472ee9=((_0x11f297=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x11f297)[_0x282d5a(0x71)](_0x42c98a=>_0x42c98a[_0x282d5a(0xe0)]===_0x5c6aea+0x1);if(!_0x472ee9||_0xf10bb7!=null&&_0x472ee9[_0x282d5a(0xe0)]!==_0xf10bb7||_0x560070<_0x5c6aea||_0x560070>_0x472ee9[_0x282d5a(0xe0)]+0x1||_0x2bb676[_0x282d5a(0x73)][_0x472ee9[_0x282d5a(0xe0)]]!==_0x4ed1bf['PARAGRAPH'])return null;let _0x45fe27=k((_0x210a8=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x210a8,_0x472ee9),_0x3b2da9=_0x2bb676[_0x282d5a(0x73)]['slice'](_0x45fe27,_0x472ee9['startIndex']);return Array[_0x282d5a(0x79)](_0x3b2da9)[_0x282d5a(0x96)](_0x1839fd=>_0x1839fd===_0x4ed1bf[_0x282d5a(0xa3)])?{'paragraph':_0x472ee9,'endTokenOffset':_0x5c6aea}:null;}function M(_0x3a8f6a,_0x4d174d){const _0x2acff5=_0x219c77;var _0x402166;let _0x2717c3=j(_0x3a8f6a,_0x4d174d),_0x5a564c=_0x3a8f6a['dataStream'][_0x2717c3+0x1];_0x5a564c!==_0x4ed1bf[_0x2acff5(0x7d)]&&_0x5a564c!==void 0x0||N(_0x3a8f6a,_0x2717c3+0x1,_0x4ed1bf[_0x2acff5(0x83)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x44a586(new Set((_0x402166=_0x3a8f6a[_0x2acff5(0x6e)])==null?void 0x0:_0x402166[_0x2acff5(0xf0)](_0x1d4065=>_0x1d4065[_0x2acff5(0xb4)])))}]});}function N(_0x51cb5b,_0x57986c,_0x691d48,_0x3cd4e8={}){const _0x54c9f2=_0x219c77;var _0x526095,_0x39e5e5;if(_0x691d48){if(_0x51cb5b[_0x54c9f2(0x73)]=''+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](0x0,_0x57986c)+_0x691d48+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](_0x57986c),Ee(_0x51cb5b,_0x57986c,_0x691d48[_0x54c9f2(0xa6)]),(_0x526095=_0x3cd4e8['paragraphs'])!=null&&_0x526095[_0x54c9f2(0xa6)]){var _0x1b2f68;_0x51cb5b[_0x54c9f2(0x6e)]=[...(_0x1b2f68=_0x51cb5b[_0x54c9f2(0x6e)])==null?[]:_0x1b2f68,..._0x3cd4e8[_0x54c9f2(0x6e)]['map'](_0x4d878d=>({..._0x4d878d,'startIndex':_0x4d878d['startIndex']+_0x57986c}))]['sort']((_0x561467,_0x3f41c4)=>_0x561467[_0x54c9f2(0xe0)]-_0x3f41c4[_0x54c9f2(0xe0)]);}if((_0x39e5e5=_0x3cd4e8[_0x54c9f2(0xab)])!=null&&_0x39e5e5[_0x54c9f2(0xa6)]){var _0x2c7365;_0x51cb5b[_0x54c9f2(0xab)]=[...(_0x2c7365=_0x51cb5b[_0x54c9f2(0xab)])==null?[]:_0x2c7365,..._0x3cd4e8[_0x54c9f2(0xab)][_0x54c9f2(0xf0)](_0x51bc73=>({..._0x51bc73,'startIndex':_0x51bc73[_0x54c9f2(0xe0)]+_0x57986c,'endIndex':_0x51bc73[_0x54c9f2(0x90)]+_0x57986c}))][_0x54c9f2(0x81)]((_0xc71e03,_0x4b95c2)=>_0xc71e03[_0x54c9f2(0xe0)]-_0x4b95c2['startIndex']);}}}function Te(_0x27f232,_0x395520,_0x57abec){const _0x4c6368=_0x219c77;let _0x69e7b5=_0x57abec-_0x395520;_0x27f232[_0x4c6368(0x73)]=''+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](0x0,_0x395520)+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](_0x57abec),De(_0x27f232,_0x395520,_0x69e7b5);}function Ee(_0x1e90b2,_0x2a10a2,_0x4ec7ea){const _0x22ca78=_0x219c77;_0x1e90b2[_0x22ca78(0x6e)]=P(_0x1e90b2[_0x22ca78(0x6e)],_0x2a10a2,_0x4ec7ea),_0x1e90b2['sectionBreaks']=P(_0x1e90b2[_0x22ca78(0xac)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8a)]=P(_0x1e90b2[_0x22ca78(0x8a)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8b)]=Oe(_0x1e90b2[_0x22ca78(0x8b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xd7)]=I(_0x1e90b2['tables'],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xef)]=I(_0x1e90b2[_0x22ca78(0xef)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x9b)]=I(_0x1e90b2[_0x22ca78(0x9b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xab)]=I(_0x1e90b2['blockRanges'],_0x2a10a2,_0x4ec7ea);}function De(_0x3ea248,_0x2504bc,_0x1e4aa2){const _0x10da64=_0x219c77;var _0x4dd940,_0x1c4218;_0x3ea248[_0x10da64(0x6e)]=F(_0x3ea248[_0x10da64(0x6e)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xac)]=F(_0x3ea248[_0x10da64(0xac)],_0x2504bc,_0x1e4aa2),_0x3ea248['customBlocks']=F(_0x3ea248['customBlocks'],_0x2504bc,_0x1e4aa2),_0x3ea248['textRuns']=(_0x4dd940=L((_0x1c4218=_0x3ea248[_0x10da64(0x8b)])==null?void 0x0:_0x1c4218[_0x10da64(0xf0)](_0x3f40db=>({..._0x3f40db,'startIndex':_0x3f40db['st'],'endIndex':_0x3f40db['ed']})),_0x2504bc,_0x1e4aa2))==null?void 0x0:_0x4dd940['map'](_0x5d7506=>{let {startIndex:_0x188698,endIndex:_0x4e6a15,..._0x42e0e6}=_0x5d7506;return{..._0x42e0e6,'st':_0x188698,'ed':_0x4e6a15};}),_0x3ea248[_0x10da64(0xd7)]=L(_0x3ea248[_0x10da64(0xd7)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xef)]=L(_0x3ea248['customRanges'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0x9b)]=L(_0x3ea248['customDecorations'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xab)]=L(_0x3ea248[_0x10da64(0xab)],_0x2504bc,_0x1e4aa2);}function P(_0x338bf3,_0x50f22b,_0x7499bf){const _0x42ec9b=_0x219c77;return _0x338bf3==null?void 0x0:_0x338bf3['map'](_0x3378ac=>_0x3378ac[_0x42ec9b(0xe0)]>=_0x50f22b?{..._0x3378ac,'startIndex':_0x3378ac[_0x42ec9b(0xe0)]+_0x7499bf}:_0x3378ac);}function F(_0x3a82e0,_0x4eff07,_0x3c1141){const _0x2321a8=_0x219c77;let _0x323985=_0x4eff07+_0x3c1141;return _0x3a82e0==null?void 0x0:_0x3a82e0[_0x2321a8(0xf0)](_0x469624=>_0x469624[_0x2321a8(0xe0)]>=_0x4eff07&&_0x469624[_0x2321a8(0xe0)]<_0x323985?null:_0x469624[_0x2321a8(0xe0)]>=_0x323985?{..._0x469624,'startIndex':_0x469624[_0x2321a8(0xe0)]-_0x3c1141}:_0x469624)['filter'](_0x5eb63e=>_0x5eb63e!=null);}function Oe(_0x218590,_0x5e802e,_0x3f8eaf){const _0x4b07df=_0x219c77;return _0x218590==null?void 0x0:_0x218590[_0x4b07df(0xf0)](_0x34ac49=>_0x34ac49['st']>=_0x5e802e?{..._0x34ac49,'st':_0x34ac49['st']+_0x3f8eaf,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49['ed']>_0x5e802e?{..._0x34ac49,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49);}function I(_0x206fa4,_0x68a98c,_0x1ecd5b){const _0x447f13=_0x219c77;return _0x206fa4==null?void 0x0:_0x206fa4[_0x447f13(0xf0)](_0x117e80=>_0x117e80[_0x447f13(0xe0)]>=_0x68a98c?{..._0x117e80,'startIndex':_0x117e80[_0x447f13(0xe0)]+_0x1ecd5b,'endIndex':_0x117e80['endIndex']+_0x1ecd5b}:_0x117e80[_0x447f13(0x90)]>=_0x68a98c?{..._0x117e80,'endIndex':_0x117e80[_0x447f13(0x90)]+_0x1ecd5b}:_0x117e80);}function L(_0x54af54,_0x4fcfb5,_0x20535f){const _0x4c119c=_0x219c77;let _0x13fde0=_0x4fcfb5+_0x20535f;return _0x54af54==null?void 0x0:_0x54af54[_0x4c119c(0xf0)](_0x1975ab=>_0x1975ab[_0x4c119c(0xe0)]>=_0x4fcfb5&&_0x1975ab[_0x4c119c(0x90)]<_0x13fde0?null:_0x1975ab[_0x4c119c(0xe0)]>=_0x13fde0?{..._0x1975ab,'startIndex':_0x1975ab[_0x4c119c(0xe0)]-_0x20535f,'endIndex':_0x1975ab['endIndex']-_0x20535f}:_0x1975ab[_0x4c119c(0x90)]>=_0x4fcfb5?{..._0x1975ab,'startIndex':_0x1975ab['startIndex']<_0x4fcfb5?_0x1975ab['startIndex']:_0x4fcfb5,'endIndex':Math[_0x4c119c(0x66)](_0x4fcfb5,_0x1975ab[_0x4c119c(0x90)]-_0x20535f)}:_0x1975ab)[_0x4c119c(0x74)](_0xf87e17=>_0xf87e17!=null);}function R(_0x1b5513,_0x4daeb8,_0x5c8380,_0x78296a){const _0x25fd4c=_0x219c77;_0x1b5513==null||_0x1b5513[_0x25fd4c(0xd3)](_0x5376b9=>{const _0x2e9748=_0x25fd4c;_0x5376b9[_0x2e9748(0xe0)]>=_0x4daeb8&&_0x5376b9[_0x2e9748(0xe0)]<_0x5c8380&&(_0x5376b9[_0x2e9748(0xe0)]+=_0x78296a);});}function ke(_0x43b170,_0x4c2c6c,_0x4f7b8c,_0x22f436){const _0x2bb4bc=_0x219c77;_0x43b170==null||_0x43b170[_0x2bb4bc(0xd3)](_0x5e4910=>{_0x5e4910['st']>=_0x4c2c6c&&_0x5e4910['st']<_0x4f7b8c?(_0x5e4910['st']+=_0x22f436,_0x5e4910['ed']+=_0x22f436):_0x5e4910['ed']>_0x4c2c6c&&_0x5e4910['ed']<_0x4f7b8c&&(_0x5e4910['ed']+=_0x22f436);});}function z(_0x589596,_0x16d280,_0x17c3b6,_0x3cb343){const _0x525d7b=_0x219c77;_0x589596==null||_0x589596[_0x525d7b(0xd3)](_0xe1fe85=>{const _0x49def8=_0x525d7b;_0xe1fe85[_0x49def8(0xe0)]>=_0x16d280&&_0xe1fe85['startIndex']<_0x17c3b6?(_0xe1fe85['startIndex']+=_0x3cb343,_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343):_0xe1fe85[_0x49def8(0x90)]>_0x16d280&&_0xe1fe85[_0x49def8(0x90)]<_0x17c3b6&&(_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343);});}function B(_0x32eabd){'@babel/helpers - typeof';const _0x5a5f96=_0x219c77;return B=typeof Symbol==_0x5a5f96(0xd5)&&typeof Symbol[_0x5a5f96(0xc7)]=='symbol'?function(_0x500139){return typeof _0x500139;}:function(_0x4076d8){const _0x1ddac3=_0x5a5f96;return _0x4076d8&&typeof Symbol==_0x1ddac3(0xd5)&&_0x4076d8['constructor']===Symbol&&_0x4076d8!==Symbol[_0x1ddac3(0x86)]?_0x1ddac3(0xdd):typeof _0x4076d8;},B(_0x32eabd);}function Ae(_0x29d9cf,_0x564c9c){const _0x24890f=_0x219c77;if(B(_0x29d9cf)!='object'||!_0x29d9cf)return _0x29d9cf;var _0x2b67e4=_0x29d9cf[Symbol['toPrimitive']];if(_0x2b67e4!==void 0x0){var _0x46bc0a=_0x2b67e4[_0x24890f(0x94)](_0x29d9cf,_0x564c9c||_0x24890f(0xb6));if(B(_0x46bc0a)!=_0x24890f(0xe2))return _0x46bc0a;throw TypeError(_0x24890f(0xc5));}return(_0x564c9c===_0x24890f(0xbf)?String:Number)(_0x29d9cf);}function je(_0x1c91a3){const _0x407eb3=_0x219c77;var _0x5a7c8c=Ae(_0x1c91a3,_0x407eb3(0xbf));return B(_0x5a7c8c)==_0x407eb3(0xdd)?_0x5a7c8c:_0x5a7c8c+'';}function V(_0x564431,_0x9799a2,_0x95558b){return(_0x9799a2=je(_0x9799a2))in _0x564431?Object['defineProperty'](_0x564431,_0x9799a2,{'value':_0x95558b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x564431[_0x9799a2]=_0x95558b,_0x564431;}var H=class extends _0x5107f0{constructor(..._0x2f4e4d){const _0x1d47d8=_0x219c77;super(..._0x2f4e4d),V(this,_0x1d47d8(0xcf),new Map()),V(this,_0x1d47d8(0x9a),new _0x2f75e2()),V(this,'change$',this[_0x1d47d8(0x9a)]['asObservable']());}[_0x219c77(0xc3)](_0x4eaf86,_0x1f972d){const _0x554f74=_0x219c77;return w(this[_0x554f74(0xcf)][_0x554f74(0xda)](_0x4eaf86))[_0x554f74(0xe7)][_0x1f972d];}[_0x219c77(0xd4)](_0x216631,_0x350b30,_0x4892a9){const _0x2bb5d6=_0x219c77;this[_0x2bb5d6(0xd1)](_0x216631,_0x350b30,T(this[_0x2bb5d6(0xcf)][_0x2bb5d6(0xda)](_0x216631),_0x350b30,_0x4892a9));}[_0x219c77(0x9d)](_0xcf21d8,_0x56effb){const _0x457e1c=_0x219c77;this[_0x457e1c(0xd1)](_0xcf21d8,_0x56effb,re(this[_0x457e1c(0xcf)][_0x457e1c(0xda)](_0xcf21d8),_0x56effb));}[_0x219c77(0xbb)](_0x395d66){const _0xa4bc47=_0x219c77;return w(this[_0xa4bc47(0xcf)][_0xa4bc47(0xda)](_0x395d66));}[_0x219c77(0x6a)](_0x1677b0,_0x3dd10e){const _0x182c15=_0x219c77;this[_0x182c15(0xcf)]['set'](_0x1677b0,w(_0x3dd10e)),this[_0x182c15(0x9a)]['next']({'unitId':_0x1677b0});}[_0x219c77(0xa7)](_0x570e80){const _0x1b5f22=_0x219c77;this[_0x1b5f22(0xcf)][_0x1b5f22(0xe4)](_0x570e80),this[_0x1b5f22(0x9a)][_0x1b5f22(0x99)]({'unitId':_0x570e80});}['dispose'](){const _0xacb6e1=_0x219c77;super[_0xacb6e1(0xcc)](),this['_resources'][_0xacb6e1(0xce)](),this[_0xacb6e1(0x9a)][_0xacb6e1(0x78)]();}['_setResource'](_0x5822c5,_0x415a38,_0x568370){const _0x224a8f=_0x219c77;this[_0x224a8f(0xcf)][_0x224a8f(0x9f)](_0x5822c5,_0x568370),this['_change$'][_0x224a8f(0x99)]({'unitId':_0x5822c5,'blockId':_0x415a38});}};const Me={'id':_0x219c77(0xa1),'type':_0x4ff736[_0x219c77(0x91)],'handler':_0x2738d7=>{const _0x366320=_0x219c77;let _0x48509b=Le(_0x2738d7);if(_0x48509b)return _0x2738d7[_0x366320(0xda)](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x48509b[_0x366320(0x7f)],'endOffset':_0x48509b[_0x366320(0xd8)],'unitId':_0x48509b[_0x366320(0xcb)]});let _0x36886d=Re(_0x2738d7);if(!_0x36886d)return!0x1;let _0x280c96=_0x36886d[_0x366320(0xe0)]+0x1;return _0x2738d7['get'](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x280c96,'endOffset':_0x280c96});}},Ne={'id':_0x219c77(0x98),'type':_0x4ff736[_0x219c77(0x91)],'handler':()=>!0x0},U={'id':_0x219c77(0xa9),'type':_0x4ff736['COMMAND'],'handler':(_0x58d320,_0x30fb75)=>{const _0x102ff0=_0x219c77;var _0x23ac4c,_0x3edff8,_0x22d189;let _0x4db182=W(_0x58d320,_0x30fb75==null?void 0x0:_0x30fb75['unitId']);if(!_0x4db182)return!0x1;let _0x287d2c=G(_0x58d320),_0x34365b=ae({'blockId':(_0x23ac4c=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x92)])==null?_0x12ff78(0x6):_0x23ac4c,'config':_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x84)],'documentData':_0x4db182[_0x102ff0(0x8e)],'endOffset':(_0x3edff8=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0xd8)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0xd8)]:_0x3edff8,'metadata':_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0xbb)](_0x4db182[_0x102ff0(0xcb)]),'startOffset':(_0x22d189=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x7f)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0x7f)]:_0x22d189}),_0x599ff5=q(_0x4db182['commandService'],_0x4db182[_0x102ff0(0xcb)],_0x4db182[_0x102ff0(0x8e)],_0x34365b['nextDocumentData'],_0x34365b[_0x102ff0(0xc2)]);return _0x599ff5&&_0x34365b['nextMetadata']&&_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0x6a)](_0x4db182[_0x102ff0(0xcb)],_0x34365b[_0x102ff0(0x8c)]),_0x599ff5;}},Pe={'id':_0x219c77(0xb5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x10877a,_0x37d9c8)=>{const _0x3f2e87=_0x219c77;if(!_0x37d9c8)return!0x1;let _0x5f2e44=W(_0x10877a,_0x37d9c8[_0x3f2e87(0xcb)]);if(!_0x5f2e44)return!0x1;let _0xb73a31=ce({'blockId':_0x37d9c8['blockId'],'config':_0x37d9c8[_0x3f2e87(0x84)],'documentData':_0x5f2e44[_0x3f2e87(0x8e)],'metadata':_0x5f2e44[_0x3f2e87(0x7b)]['serialize'](_0x5f2e44[_0x3f2e87(0xcb)])});return _0xb73a31[_0x3f2e87(0x8c)]&&_0x5f2e44[_0x3f2e87(0x7b)]['deserialize'](_0x5f2e44[_0x3f2e87(0xcb)],_0xb73a31[_0x3f2e87(0x8c)]),!0x0;}},Fe={'id':_0x219c77(0xe5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x4a82fa,_0x284006)=>{const _0x328b80=_0x219c77;var _0xefa2ec,_0x8090f3;let _0x40dd71=W(_0x4a82fa,_0x284006==null?void 0x0:_0x284006[_0x328b80(0xcb)]);if(!_0x40dd71)return!0x1;let _0x162e1e=(_0xefa2ec=_0x284006==null?void 0x0:_0x284006[_0x328b80(0xc2)])==null?(_0x8090f3=G(_0x4a82fa))==null?void 0x0:_0x8090f3[_0x328b80(0x7f)]:_0xefa2ec;if(_0x162e1e==null)return!0x1;let _0x5897b6=le({'cursorOffset':_0x162e1e,'documentData':_0x40dd71[_0x328b80(0x8e)]});return _0x5897b6?q(_0x40dd71[_0x328b80(0xc1)],_0x40dd71[_0x328b80(0xcb)],_0x40dd71['previousDocumentData'],_0x5897b6[_0x328b80(0x8f)],_0x5897b6[_0x328b80(0xc2)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x131f09,_0xed3cd6)=>{const _0xb17efa=_0x219c77;var _0xaa5934,_0x5543bb;let _0x5907dd=W(_0x131f09,_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xcb)]);if(!_0x5907dd)return!0x1;let _0x7aee23=(_0xaa5934=_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xc2)])==null?(_0x5543bb=G(_0x131f09))==null?void 0x0:_0x5543bb['startOffset']:_0xaa5934;if(_0x7aee23==null)return!0x1;let _0x24a917=ue({'cursorOffset':_0x7aee23,'documentData':_0x5907dd['previousDocumentData'],'paragraphStartIndex':_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xbd)]});return _0x24a917?q(_0x5907dd[_0xb17efa(0xc1)],_0x5907dd[_0xb17efa(0xcb)],_0x5907dd[_0xb17efa(0x8e)],_0x24a917['nextDocumentData'],_0x24a917[_0xb17efa(0xc2)]):!0x1;}};function W(_0x1831e0,_0x2665ed){const _0x2c5ef1=_0x219c77;let _0x3ede72=_0x1831e0[_0x2c5ef1(0xda)](_0x595ab8),_0xfe163b=_0x2665ed?_0x3ede72[_0x2c5ef1(0x82)](_0x2665ed):_0x3ede72[_0x2c5ef1(0x89)](_0x47101f[_0x2c5ef1(0xe3)]);return _0xfe163b?{'commandService':_0x1831e0[_0x2c5ef1(0xda)](_0x37df2c),'model':_0x1831e0[_0x2c5ef1(0xda)](H),'previousDocumentData':_0xfe163b['getSnapshot'](),'unitId':_0xfe163b[_0x2c5ef1(0xbc)]()}:null;}function G(_0x562e10){const _0x473226=_0x219c77;var _0x5ba7cd;return(_0x5ba7cd=_0x562e10[_0x473226(0xda)](_0x41c563)[_0x473226(0x7c)]())==null?void 0x0:_0x5ba7cd[0x0];}function Le(_0x3bdd49){const _0x1e3ccb=_0x219c77;var _0x56d65c;let _0x2fc5e5=(_0x56d65c=_0x3bdd49[_0x1e3ccb(0xda)](_0x595ab8)[_0x1e3ccb(0x89)](_0x47101f[_0x1e3ccb(0xe3)]))==null?void 0x0:_0x56d65c[_0x1e3ccb(0xbc)]();try{return _0x3bdd49[_0x1e3ccb(0xda)](_0x5727fa)[_0x1e3ccb(0xbe)](_0x2fc5e5);}catch{return null;}}function Re(_0xf840f){const _0x37a7aa=_0x219c77;var _0x30193b,_0xecbf3f,_0xf7d6de;let _0x51d53a=G(_0xf840f);if(!_0x51d53a)return null;let _0x421317=_0xf840f[_0x37a7aa(0xda)](_0x595ab8)[_0x37a7aa(0x89)](_0x47101f[_0x37a7aa(0xe3)]),_0x3d3494=_0x421317==null?void 0x0:_0x421317[_0x37a7aa(0x9c)]();return _0x3d3494?(_0x30193b=_0x52d7f9['range']['getParagraphsInRange'](_0x51d53a,(_0xecbf3f=_0x3d3494[_0x37a7aa(0x6e)])==null?[]:_0xecbf3f,(_0xf7d6de=_0x3d3494['dataStream'])==null?'':_0xf7d6de)[0x0])==null?null:_0x30193b:null;}function ze(_0x593c2c,_0xc541c){const _0x4a7b70=_0x219c77;var _0x1fed2e,_0xf4faf7,_0x46af51,_0x5352d7,_0x4b78a7,_0x57f04e,_0x9d5867,_0x7079be,_0x16d43e,_0x36a153,_0x1efdf8,_0x21e3d7,_0x153f4f,_0x2899e7,_0x2dfbb0,_0x2a4832,_0x3a6007,_0x1894b7;let _0x5a903f=_0x54cd09[_0x4a7b70(0xae)]();return[K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x73)],(_0x1fed2e=_0x593c2c['body'])==null?void 0x0:_0x1fed2e[_0x4a7b70(0x73)],(_0xf4faf7=_0xc541c['body'])==null?void 0x0:_0xf4faf7[_0x4a7b70(0x73)]),K(_0x5a903f,[_0x4a7b70(0x6f),'paragraphs'],(_0x46af51=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x46af51[_0x4a7b70(0x6e)],(_0x5352d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x5352d7[_0x4a7b70(0x6e)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xac)],(_0x4b78a7=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x4b78a7[_0x4a7b70(0xac)],(_0x57f04e=_0xc541c['body'])==null?void 0x0:_0x57f04e[_0x4a7b70(0xac)]),K(_0x5a903f,[_0x4a7b70(0x6f),'textRuns'],(_0x9d5867=_0x593c2c['body'])==null?void 0x0:_0x9d5867[_0x4a7b70(0x8b)],(_0x7079be=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x7079be[_0x4a7b70(0x8b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x8a)],(_0x16d43e=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x16d43e[_0x4a7b70(0x8a)],(_0x36a153=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x36a153[_0x4a7b70(0x8a)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xef)],(_0x1efdf8=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1efdf8['customRanges'],(_0x21e3d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x21e3d7[_0x4a7b70(0xef)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x9b)],(_0x153f4f=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x153f4f['customDecorations'],(_0x2899e7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2899e7[_0x4a7b70(0x9b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xd7)],(_0x2dfbb0=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2dfbb0[_0x4a7b70(0xd7)],(_0x2a4832=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2a4832[_0x4a7b70(0xd7)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xab)],(_0x3a6007=_0x593c2c['body'])==null?void 0x0:_0x3a6007[_0x4a7b70(0xab)],(_0x1894b7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1894b7[_0x4a7b70(0xab)])][_0x4a7b70(0x74)](Boolean)[_0x4a7b70(0xb1)]((_0x5731e6,_0x135d22)=>_0x54cd09['compose'](_0x5731e6,_0x135d22),null);}function K(_0x426755,_0x34c781,_0x4c4095,_0x3c9bc0){const _0x3f92f2=_0x219c77;return _0x3fd2f4[_0x3f92f2(0xd2)](_0x4c4095,_0x3c9bc0)?null:_0x426755[_0x3f92f2(0xad)](_0x34c781,_0x4c4095,_0x3c9bc0);}function q(_0x442045,_0x1e1805,_0x24eba0,_0x26f75f,_0x124e86){const _0x3f22d6=_0x219c77;let _0x4772c5=ze(_0x24eba0,_0x26f75f);return _0x4772c5?!!_0x442045[_0x3f22d6(0xd9)](_0x40cd82['id'],{'unitId':_0x1e1805,'actions':_0x4772c5,'textRanges':[{'startOffset':_0x124e86,'endOffset':_0x124e86,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x219c77(0xb9);var Be=_0x219c77(0xd0),Ve=_0x219c77(0xb8);const Y={};function X(_0x285c62,_0x5c8745){return function(_0x5227f6,_0xcc5c68){_0x5c8745(_0x5227f6,_0xcc5c68,_0x285c62);};}function Z(_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81){const _0x1a02ce=_0x219c77;var _0x17aa97=arguments['length'],_0x27b880=_0x17aa97<0x3?_0x1d7686:_0x407e81===null?_0x407e81=Object['getOwnPropertyDescriptor'](_0x1d7686,_0xdda2bb):_0x407e81,_0x3cf8e6;if(typeof Reflect=='object'&&typeof Reflect[_0x1a02ce(0x9e)]==_0x1a02ce(0xd5))_0x27b880=Reflect['decorate'](_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81);else{for(var _0x468cee=_0x73c503['length']-0x1;_0x468cee>=0x0;_0x468cee--)(_0x3cf8e6=_0x73c503[_0x468cee])&&(_0x27b880=(_0x17aa97<0x3?_0x3cf8e6(_0x27b880):_0x17aa97>0x3?_0x3cf8e6(_0x1d7686,_0xdda2bb,_0x27b880):_0x3cf8e6(_0x1d7686,_0xdda2bb))||_0x27b880);}return _0x17aa97>0x3&&_0x27b880&&Object[_0x1a02ce(0xe1)](_0x1d7686,_0xdda2bb,_0x27b880),_0x27b880;}let Q=class extends _0x5107f0{constructor(_0x433373,_0x309058){const _0x4da57c=_0x219c77;super(),this['_resourceManagerService']=_0x433373,this[_0x4da57c(0xc8)]=_0x309058,this[_0x4da57c(0xa4)]();}[_0x219c77(0xa4)](){const _0x1c6174=_0x219c77;this[_0x1c6174(0x72)](this['_resourceManagerService'][_0x1c6174(0x69)]({'pluginName':J,'businesses':[_0x47101f['UNIVER_DOC']],'toJson':_0x4df0ca=>JSON[_0x1c6174(0xb2)](this['_docsCodeModel']['serialize'](_0x4df0ca)),'parseJson':_0x46ebd5=>w(JSON[_0x1c6174(0x6c)](_0x46ebd5)),'onLoad':(_0x36f431,_0x1c12b2)=>this[_0x1c6174(0xc8)][_0x1c6174(0x6a)](_0x36f431,_0x1c12b2),'onUnLoad':_0x21da33=>this[_0x1c6174(0xc8)]['removeUnit'](_0x21da33)}));}};Q=Z([X(0x0,_0x440e2f),X(0x1,_0x422fcc(H))],Q);function _0x2a2a(){const _0x382717=['symbol','_injector','registerCommand','startIndex','defineProperty','object','UNIVER_DOC','delete','docs-code.command.exit','endsWith','codes','187nfWdBo','_commandService','blockType','setConfig','6937itKUSD','direction','some','customRanges','map','entries','max','onStarting','type','registerPluginResource','deserialize','3702258wmLZyj','parse','add','paragraphs','body','slice','find','disposeWithMe','dataStream','filter','javascript','documentData','join','complete','from','version','model','getTextRanges','SECTION_BREAK','1110032lkUmMy','startOffset','CODE','sort','getUniverDocInstance','PARAGRAPH','config','endTokenOffset','prototype','paragraphStyle','363JaCEmg','getCurrentUnitOfType','customBlocks','textRuns','nextMetadata','monospace','previousDocumentData','nextDocumentData','endIndex','COMMAND','blockId','metadata','call','packageName','every','Document\x20body\x20is\x20required','docs-code.command.consume-boundary-delete','next','_change$','customDecorations','getBody','removeCode','decorate','set','paragraph','docs-code.command.insert-below','_configService','BLOCK_END','_initResource','934130DRFSrj','length','removeUnit','88541QXqGix','docs-code.command.insert','indexOf','blockRanges','sectionBreaks','replaceOp','getInstance','3896qgISxu','textStyle','reduce','stringify','indentStart','paragraphId','docs-code.command.update','default','6012dqyHmE','1.0.0-insiders.20260701-0ef51b0','DOC_CODE_PLUGIN','pluginName','serialize','getUnitId','paragraphStartIndex','consumeInsertRange','string','deepClone','commandService','cursorOffset','getCodeConfig','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','118056aWZQDH','iterator','_docsCodeModel','5ScxZsl','spaceAbove','unitId','dispose','spaceBelow','clear','_resources','@univerjs-pro/docs-code','_setResource','diffValue','forEach','setCodeConfig','function','docs-code.config','tables','endOffset','syncExecuteCommand','get','BLOCK_START','min'];_0x2a2a=function(){return _0x382717;};return _0x2a2a();}let $=class extends _0x4de551{constructor(_0x6b7fbe=Y,_0x76ea31,_0x14e177,_0x288b4c){const _0xcb864e=_0x219c77;super(),this[_0xcb864e(0xc4)]=_0x6b7fbe,this[_0xcb864e(0xde)]=_0x76ea31,this[_0xcb864e(0xe9)]=_0x14e177,this['_configService']=_0x288b4c;let {..._0x46a0c8}=_0xa8f50a({},Y,this[_0xcb864e(0xc4)]);this[_0xcb864e(0xa2)][_0xcb864e(0xeb)](_0xcb864e(0xd6),_0x46a0c8);}[_0x219c77(0x67)](){const _0xc80b6a=_0x219c77;this[_0xc80b6a(0xde)][_0xc80b6a(0x6d)]([H]),this['_injector'][_0xc80b6a(0x6d)]([Q]),this[_0xc80b6a(0xde)]['get'](H),this[_0xc80b6a(0xde)][_0xc80b6a(0xda)](Q),[U,Me,Pe,Fe,Ie,Ne][_0xc80b6a(0xd3)](_0xfa5925=>this[_0xc80b6a(0x72)](this[_0xc80b6a(0xe9)][_0xc80b6a(0xdf)](_0xfa5925)));}};V($,_0x219c77(0xba),J),V($,_0x219c77(0x95),Be),V($,_0x219c77(0x7a),Ve),V($,_0x219c77(0x68),_0x47101f['UNIVER_DOC']),$=Z([_0x268121(_0x48da71,_0x2ecad0),X(0x1,_0x422fcc(_0x3af657)),X(0x2,_0x37df2c),X(0x3,_0x431f58)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- var _0x13b9b5=_0xe05e;(function(_0x1aca92,_0x4d48ea){var _0x39f633=_0xe05e,_0x4f23fb=_0x1aca92();while(!![]){try{var _0x6cda75=parseInt(_0x39f633(0x18d))/0x1+parseInt(_0x39f633(0x185))/0x2*(-parseInt(_0x39f633(0x1a0))/0x3)+parseInt(_0x39f633(0x1ae))/0x4*(parseInt(_0x39f633(0x17e))/0x5)+parseInt(_0x39f633(0x189))/0x6*(parseInt(_0x39f633(0x187))/0x7)+-parseInt(_0x39f633(0x19f))/0x8*(-parseInt(_0x39f633(0x1b2))/0x9)+-parseInt(_0x39f633(0x1b6))/0xa*(parseInt(_0x39f633(0x17b))/0xb)+-parseInt(_0x39f633(0x17f))/0xc;if(_0x6cda75===_0x4d48ea)break;else _0x4f23fb['push'](_0x4f23fb['shift']());}catch(_0x4eb3ba){_0x4f23fb['push'](_0x4f23fb['shift']());}}}(_0x1227,0x8889a));import{DocsCodeCancelEmptyParagraphCommand as _0x43121c,DocsCodeExitCommand as _0x227b78,DocsCodeInsertCommand as _0x19049a,DocsCodeModel as _0x317f80,DocsCodeUpdateCommand as _0xa7f6d0,normalizeDocsCodeConfig as _0x249552}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x2dbdf7,DocumentBlockRangeType as _0x4df84b,ICommandService as _0x593bc2,Inject as _0x33b9d8,Injector as _0xa34ccd,generateRandomId as _0xeecacd}from'@univerjs/core';import{FDocument as _0x29e282}from'@univerjs/docs/facade';function p(_0x101e6b){'@babel/helpers - typeof';var _0x4575dc=_0xe05e;return p=typeof Symbol==_0x4575dc(0x1af)&&typeof Symbol['iterator']=='symbol'?function(_0x50e854){return typeof _0x50e854;}:function(_0x4df84a){var _0x389846=_0x4575dc;return _0x4df84a&&typeof Symbol==_0x389846(0x1af)&&_0x4df84a[_0x389846(0x1b0)]===Symbol&&_0x4df84a!==Symbol[_0x389846(0x1b1)]?_0x389846(0x1a8):typeof _0x4df84a;},p(_0x101e6b);}function m(_0x5a8f8a,_0x491895){var _0x5562ca=_0xe05e;if(p(_0x5a8f8a)!=_0x5562ca(0x179)||!_0x5a8f8a)return _0x5a8f8a;var _0x3a92f9=_0x5a8f8a[Symbol['toPrimitive']];if(_0x3a92f9!==void 0x0){var _0x57d9b6=_0x3a92f9[_0x5562ca(0x180)](_0x5a8f8a,_0x491895||_0x5562ca(0x1a5));if(p(_0x57d9b6)!=_0x5562ca(0x179))return _0x57d9b6;throw TypeError(_0x5562ca(0x19c));}return(_0x491895===_0x5562ca(0x190)?String:Number)(_0x5a8f8a);}function h(_0x14c418){var _0x3740c0=_0xe05e,_0x90c01f=m(_0x14c418,_0x3740c0(0x190));return p(_0x90c01f)==_0x3740c0(0x1a8)?_0x90c01f:_0x90c01f+'';}function g(_0x40a584,_0x75b4dd,_0x2417f3){var _0x1dfc20=_0xe05e;return(_0x75b4dd=h(_0x75b4dd))in _0x40a584?Object[_0x1dfc20(0x196)](_0x40a584,_0x75b4dd,{'value':_0x2417f3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40a584[_0x75b4dd]=_0x2417f3,_0x40a584;}function _0x1227(){var _0x5a166d=['_getBlockRange','syncExecuteCommand','28330GmbhnM','decorate','from','some','includes','getId','PARAGRAPH','getCode','object','blockRanges','3586hcmCOj','text','_unitId','3355FfOFvG','3880548GPaDcX','call','_document','findCodes','createInstance','blockId','2gwXRxf','getKey','22281cKEDqV','length','426vBOhvK','_createFDocumentCode','filter','extend','248175BaVBwm','getConfig','save','string','endIndex','_getDocumentData','cancelEmptyParagraph','get','config','defineProperty','CODE','getType','_blockId','BLOCK_END','getRange','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','paragraph','exitCode','7631056sNBjjj','61287mczrPU','describe','blockType','_getBlockRanges','body','default','exit','find','symbol','getText','BLOCK_START','map','_injector','startIndex','2376wKQqYW','function','constructor','prototype','9noLGHd','SECTION_BREAK'];_0x1227=function(){return _0x5a166d;};return _0x1227();}function _(_0x24aabb,_0x218973){return function(_0x59f4ab,_0x4e280b){_0x218973(_0x59f4ab,_0x4e280b,_0x24aabb);};}function v(_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a){var _0x4708a2=_0xe05e,_0x4887f2=arguments[_0x4708a2(0x188)],_0x413f8a=_0x4887f2<0x3?_0x33dc2a:_0x202e9a===null?_0x202e9a=Object['getOwnPropertyDescriptor'](_0x33dc2a,_0x57ce93):_0x202e9a,_0x316bd4;if(typeof Reflect==_0x4708a2(0x179)&&typeof Reflect[_0x4708a2(0x1b7)]=='function')_0x413f8a=Reflect[_0x4708a2(0x1b7)](_0x2cc221,_0x33dc2a,_0x57ce93,_0x202e9a);else{for(var _0xfed88b=_0x2cc221[_0x4708a2(0x188)]-0x1;_0xfed88b>=0x0;_0xfed88b--)(_0x316bd4=_0x2cc221[_0xfed88b])&&(_0x413f8a=(_0x4887f2<0x3?_0x316bd4(_0x413f8a):_0x4887f2>0x3?_0x316bd4(_0x33dc2a,_0x57ce93,_0x413f8a):_0x316bd4(_0x33dc2a,_0x57ce93))||_0x413f8a);}return _0x4887f2>0x3&&_0x413f8a&&Object['defineProperty'](_0x33dc2a,_0x57ce93,_0x413f8a),_0x413f8a;}function _0xe05e(_0x534f69,_0x3fa108){_0x534f69=_0x534f69-0x176;var _0x122778=_0x1227();var _0xe05ea6=_0x122778[_0x534f69];return _0xe05ea6;}let y=class{constructor(_0x2bae20,_0x128ba0,_0x175393){var _0x8fdd1c=_0xe05e;this[_0x8fdd1c(0x181)]=_0x2bae20,this[_0x8fdd1c(0x199)]=_0x128ba0,this[_0x8fdd1c(0x1ac)]=_0x175393,g(this,_0x8fdd1c(0x17d),void 0x0),this[_0x8fdd1c(0x17d)]=this[_0x8fdd1c(0x181)]['getId']();}['getId'](){var _0x5767c1=_0xe05e;return this[_0x5767c1(0x199)];}[_0x13b9b5(0x19b)](){var _0x35d72d=_0x13b9b5;let _0x5a3235=this[_0x35d72d(0x1b4)]();return _0x5a3235?{'blockId':_0x5a3235[_0x35d72d(0x184)],'endIndex':_0x5a3235[_0x35d72d(0x191)],'startIndex':_0x5a3235[_0x35d72d(0x1ad)]}:null;}['getText'](){var _0x598430=_0x13b9b5,_0x47bf03;let _0x13c9dc=this[_0x598430(0x1b4)](),_0x4e2505=(_0x47bf03=this[_0x598430(0x192)]()[_0x598430(0x1a4)])==null?void 0x0:_0x47bf03['dataStream'];return!_0x13c9dc||!_0x4e2505?'':b(_0x4e2505['slice'](_0x13c9dc['startIndex']+0x1,_0x13c9dc[_0x598430(0x191)]));}[_0x13b9b5(0x1a1)](){var _0x557286=_0x13b9b5;let _0x56e0e2=this[_0x557286(0x19b)]();return _0x56e0e2?{..._0x56e0e2,'config':this[_0x557286(0x18e)](),'text':this[_0x557286(0x1a9)](),'type':_0x4df84b['CODE']}:null;}[_0x13b9b5(0x18e)](){var _0x58788f=_0x13b9b5;return _0x249552(this[_0x58788f(0x1ac)][_0x58788f(0x194)](_0x317f80)['getCodeConfig'](this[_0x58788f(0x17d)],this['_blockId']));}['updateConfig'](_0x3c44dc){var _0xd4f098=_0x13b9b5;return this['_injector']['get'](_0x593bc2)[_0xd4f098(0x1b5)](_0xa7f6d0['id'],{'blockId':this[_0xd4f098(0x199)],'config':_0x3c44dc[_0xd4f098(0x195)],'unitId':this[_0xd4f098(0x17d)]});}[_0x13b9b5(0x1a6)](_0x57b48c){var _0x503cbf=_0x13b9b5;return this[_0x503cbf(0x1ac)]['get'](_0x593bc2)[_0x503cbf(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x57b48c,'unitId':this[_0x503cbf(0x17d)]});}[_0x13b9b5(0x193)](_0x12a500={}){var _0x559450=_0x13b9b5;return this['_injector']['get'](_0x593bc2)['syncExecuteCommand'](_0x43121c['id'],{..._0x12a500,'unitId':this[_0x559450(0x17d)]});}[_0x13b9b5(0x192)](){var _0x1d7a38=_0x13b9b5;return this[_0x1d7a38(0x181)][_0x1d7a38(0x18f)]();}['_getBlockRange'](){var _0x2d07a1=_0x13b9b5,_0x5a6793;let _0x5d4d35=(_0x5a6793=this[_0x2d07a1(0x192)]()['body'])==null||(_0x5a6793=_0x5a6793[_0x2d07a1(0x17a)])==null?void 0x0:_0x5a6793[_0x2d07a1(0x1a7)](_0x1b3780=>_0x1b3780['blockId']===this[_0x2d07a1(0x199)]&&_0x1b3780[_0x2d07a1(0x1a2)]===_0x4df84b[_0x2d07a1(0x197)]);return _0x5d4d35==null?null:_0x5d4d35;}};y=v([_(0x2,_0x33b9d8(_0xa34ccd))],y);function b(_0x33a668){var _0x468592=_0x13b9b5;return Array[_0x468592(0x1b8)](_0x33a668)[_0x468592(0x1ab)](_0x871d31=>_0x871d31===_0x2dbdf7[_0x468592(0x177)]?'\x0a':_0x871d31)[_0x468592(0x18b)](_0x1ce9bd=>_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1aa)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x19a)]&&_0x1ce9bd!==_0x2dbdf7[_0x468592(0x1b3)])['join']('')['replace'](/\n$/,'');}var x=class extends _0x29e282{['getCodes'](){var _0x1c0bc7=_0x13b9b5;return this[_0x1c0bc7(0x1a3)]()[_0x1c0bc7(0x18b)](_0x47f5a8=>_0x47f5a8[_0x1c0bc7(0x1a2)]===_0x4df84b['CODE'])[_0x1c0bc7(0x1ab)](_0x5c62b5=>this[_0x1c0bc7(0x18a)](_0x5c62b5[_0x1c0bc7(0x184)]));}[_0x13b9b5(0x178)](_0x2b5a8a){var _0x1034f8=_0x13b9b5;return this[_0x1034f8(0x1a3)]()[_0x1034f8(0x1b9)](_0x3e6bcc=>_0x3e6bcc[_0x1034f8(0x184)]===_0x2b5a8a&&_0x3e6bcc[_0x1034f8(0x1a2)]===_0x4df84b[_0x1034f8(0x197)])?this[_0x1034f8(0x18a)](_0x2b5a8a):null;}['getCodeAt'](_0x70ee62){var _0x1c2084=_0x13b9b5;let _0x5627cd=this[_0x1c2084(0x1a3)]()[_0x1c2084(0x1a7)](_0x147d27=>_0x147d27['blockType']===_0x4df84b[_0x1c2084(0x197)]&&_0x147d27[_0x1c2084(0x1ad)]<=_0x70ee62&&_0x70ee62<=_0x147d27[_0x1c2084(0x191)]);return _0x5627cd?this[_0x1c2084(0x18a)](_0x5627cd[_0x1c2084(0x184)]):null;}['findCodeByText'](_0x53db5d){var _0x28e3af=_0x13b9b5,_0x20617e;return(_0x20617e=this[_0x28e3af(0x182)](_0x53db5d)[0x0])==null?null:_0x20617e;}[_0x13b9b5(0x182)](_0x35a31e){var _0x477ebe=_0x13b9b5;let _0x5329d1=typeof _0x35a31e==_0x477ebe(0x190)?{'text':_0x35a31e}:_0x35a31e;return this['getCodes']()[_0x477ebe(0x18b)](_0x42dad2=>!(_0x5329d1[_0x477ebe(0x184)]&&_0x42dad2['getId']()!==_0x5329d1[_0x477ebe(0x184)]||_0x5329d1['text']&&!_0x42dad2[_0x477ebe(0x1a9)]()[_0x477ebe(0x1ba)](_0x5329d1[_0x477ebe(0x17c)])));}['insertCode'](_0x3e88eb={},_0x4ddb38={}){var _0x19f55b=_0x13b9b5,_0x1baf31;let _0x341aa8=this['_injector'][_0x19f55b(0x194)](_0x593bc2),_0x59467b=S(_0x3e88eb)?{..._0x4ddb38,...C(_0x3e88eb)}:_0x3e88eb,_0xc80b0d=(_0x1baf31=_0x59467b[_0x19f55b(0x184)])==null?_0xeecacd(0x6):_0x1baf31;return _0x341aa8[_0x19f55b(0x1b5)](_0x19049a['id'],{..._0x59467b,'blockId':_0xc80b0d,'unitId':this['getId']()})?this[_0x19f55b(0x18a)](_0xc80b0d):null;}[_0x13b9b5(0x19e)](_0x4c9e17){var _0x1ec007=_0x13b9b5;return this[_0x1ec007(0x1ac)]['get'](_0x593bc2)[_0x1ec007(0x1b5)](_0x227b78['id'],{'cursorOffset':_0x4c9e17,'unitId':this[_0x1ec007(0x176)]()});}['cancelEmptyCodeParagraph'](_0xafc974={}){var _0x246820=_0x13b9b5;return this[_0x246820(0x1ac)]['get'](_0x593bc2)[_0x246820(0x1b5)](_0x43121c['id'],{..._0xafc974,'unitId':this[_0x246820(0x176)]()});}['_getBlockRanges'](){var _0x5ce413=_0x13b9b5,_0x3919aa,_0x5a7000;return(_0x3919aa=(_0x5a7000=this['save']()[_0x5ce413(0x1a4)])==null?void 0x0:_0x5a7000['blockRanges'])==null?[]:_0x3919aa;}[_0x13b9b5(0x18a)](_0x478f88){var _0x29e9e1=_0x13b9b5;return this[_0x29e9e1(0x1ac)][_0x29e9e1(0x183)](y,this,_0x478f88);}};function S(_0x1d4a06){var _0x145e75=_0x13b9b5;return typeof _0x1d4a06==_0x145e75(0x179)&&!!_0x1d4a06&&typeof _0x1d4a06[_0x145e75(0x186)]=='function'&&typeof _0x1d4a06[_0x145e75(0x19b)]=='function'&&typeof _0x1d4a06[_0x145e75(0x198)]==_0x145e75(0x1af)&&_0x1d4a06[_0x145e75(0x198)]()===_0x145e75(0x19d);}function C(_0x54462d){var _0x309448=_0x13b9b5;return _0x54462d[_0x309448(0x19b)]();}_0x29e282[_0x13b9b5(0x18c)](x);export{y as FDocumentCode};
1
+ var _0x265ff2=_0x1b87;(function(_0x287cc4,_0x433309){var _0x2fbc11=_0x1b87,_0x4ec689=_0x287cc4();while(!![]){try{var _0x44823c=-parseInt(_0x2fbc11(0xd9))/0x1*(-parseInt(_0x2fbc11(0xf0))/0x2)+-parseInt(_0x2fbc11(0xf8))/0x3+-parseInt(_0x2fbc11(0xe4))/0x4+parseInt(_0x2fbc11(0xcf))/0x5+-parseInt(_0x2fbc11(0x103))/0x6*(parseInt(_0x2fbc11(0xfa))/0x7)+parseInt(_0x2fbc11(0xfc))/0x8*(parseInt(_0x2fbc11(0xd1))/0x9)+parseInt(_0x2fbc11(0xe6))/0xa*(-parseInt(_0x2fbc11(0xde))/0xb);if(_0x44823c===_0x433309)break;else _0x4ec689['push'](_0x4ec689['shift']());}catch(_0x1008fc){_0x4ec689['push'](_0x4ec689['shift']());}}}(_0x1864,0xa1eaa));import{DocsCodeCancelEmptyParagraphCommand as _0x345880,DocsCodeExitCommand as _0x1aea34,DocsCodeInsertCommand as _0x5c1c8b,DocsCodeModel as _0x4c99b3,DocsCodeUpdateCommand as _0x4c43bf,normalizeDocsCodeConfig as _0x49f66d}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x4d6957,DocumentBlockRangeType as _0x53badc,ICommandService as _0x4437cc,Inject as _0x560d9f,Injector as _0x2c366a,generateRandomId as _0x2730ac}from'@univerjs/core';import{FDocument as _0x2080cf}from'@univerjs/docs/facade';function p(_0x433ffb){'@babel/helpers - typeof';var _0x3aa06c=_0x1b87;return p=typeof Symbol==_0x3aa06c(0xec)&&typeof Symbol['iterator']==_0x3aa06c(0xdd)?function(_0x588fc7){return typeof _0x588fc7;}:function(_0x3c3385){var _0x345ce3=_0x3aa06c;return _0x3c3385&&typeof Symbol==_0x345ce3(0xec)&&_0x3c3385[_0x345ce3(0xe3)]===Symbol&&_0x3c3385!==Symbol[_0x345ce3(0x10d)]?_0x345ce3(0xdd):typeof _0x3c3385;},p(_0x433ffb);}function m(_0x19ef80,_0x235fa1){var _0x25b068=_0x1b87;if(p(_0x19ef80)!=_0x25b068(0xf4)||!_0x19ef80)return _0x19ef80;var _0x27a395=_0x19ef80[Symbol[_0x25b068(0xfe)]];if(_0x27a395!==void 0x0){var _0x276cb8=_0x27a395['call'](_0x19ef80,_0x235fa1||_0x25b068(0xeb));if(p(_0x276cb8)!='object')return _0x276cb8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x235fa1===_0x25b068(0xf1)?String:Number)(_0x19ef80);}function h(_0x5863bc){var _0x213622=_0x1b87,_0x5f0162=m(_0x5863bc,_0x213622(0xf1));return p(_0x5f0162)=='symbol'?_0x5f0162:_0x5f0162+'';}function g(_0x3259cd,_0x4b14ea,_0x19edc3){var _0x24cbef=_0x1b87;return(_0x4b14ea=h(_0x4b14ea))in _0x3259cd?Object[_0x24cbef(0xc9)](_0x3259cd,_0x4b14ea,{'value':_0x19edc3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3259cd[_0x4b14ea]=_0x19edc3,_0x3259cd;}function _(_0x3e0ae8,_0x5e09ce){return function(_0x1b7516,_0x299fce){_0x5e09ce(_0x1b7516,_0x299fce,_0x3e0ae8);};}function v(_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f){var _0x8d1af=_0x1b87,_0x6318ab=arguments[_0x8d1af(0xfb)],_0x1e568c=_0x6318ab<0x3?_0x2d36dd:_0xf9150f===null?_0xf9150f=Object[_0x8d1af(0xf3)](_0x2d36dd,_0x10cb41):_0xf9150f,_0x56c4d0;if(typeof Reflect==_0x8d1af(0xf4)&&typeof Reflect[_0x8d1af(0x10b)]==_0x8d1af(0xec))_0x1e568c=Reflect['decorate'](_0xb05074,_0x2d36dd,_0x10cb41,_0xf9150f);else{for(var _0x21f442=_0xb05074[_0x8d1af(0xfb)]-0x1;_0x21f442>=0x0;_0x21f442--)(_0x56c4d0=_0xb05074[_0x21f442])&&(_0x1e568c=(_0x6318ab<0x3?_0x56c4d0(_0x1e568c):_0x6318ab>0x3?_0x56c4d0(_0x2d36dd,_0x10cb41,_0x1e568c):_0x56c4d0(_0x2d36dd,_0x10cb41))||_0x1e568c);}return _0x6318ab>0x3&&_0x1e568c&&Object[_0x8d1af(0xc9)](_0x2d36dd,_0x10cb41,_0x1e568c),_0x1e568c;}function _0x1864(){var _0x2194a7=['string','getCodeConfig','getOwnPropertyDescriptor','object','getId','includes','config','2656935ytidhf','blockType','7dxSRpd','length','161576xGzxpa','blockRanges','toPrimitive','find','paragraph','get','_injector','908706ViPOgX','slice','map','save','getConfig','cancelEmptyCodeParagraph','getCode','dataStream','decorate','text','prototype','getRange','defineProperty','cancelEmptyParagraph','from','describe','_getDocumentData','findCodes','5035945TzTvRG','_getBlockRanges','576LDOgiS','_createFDocumentCode','syncExecuteCommand','body','insertCode','getText','BLOCK_END','getKey','1jSeFaA','_unitId','filter','createInstance','symbol','11lnPepN','_getBlockRange','join','startIndex','BLOCK_START','constructor','3655572ASirWO','_document','7926110wDufUp','exitCode','endIndex','getCodes','blockId','default','function','_blockId','replace','CODE','2214026ZVvfbc'];_0x1864=function(){return _0x2194a7;};return _0x1864();}function _0x1b87(_0x429a25,_0x199353){_0x429a25=_0x429a25-0xc8;var _0x18648d=_0x1864();var _0x1b87f5=_0x18648d[_0x429a25];return _0x1b87f5;}let y=class{constructor(_0x386029,_0x1ef2c2,_0x3b4144){var _0x37cb6b=_0x1b87;this['_document']=_0x386029,this[_0x37cb6b(0xed)]=_0x1ef2c2,this[_0x37cb6b(0x102)]=_0x3b4144,g(this,_0x37cb6b(0xda),void 0x0),this['_unitId']=this['_document'][_0x37cb6b(0xf5)]();}[_0x265ff2(0xf5)](){var _0x2e3626=_0x265ff2;return this[_0x2e3626(0xed)];}['getRange'](){var _0x370c8e=_0x265ff2;let _0x5ec735=this['_getBlockRange']();return _0x5ec735?{'blockId':_0x5ec735[_0x370c8e(0xea)],'endIndex':_0x5ec735[_0x370c8e(0xe8)],'startIndex':_0x5ec735[_0x370c8e(0xe1)]}:null;}['getText'](){var _0x31f900=_0x265ff2,_0x2a8703;let _0x305c5b=this[_0x31f900(0xdf)](),_0xe3ff5b=(_0x2a8703=this[_0x31f900(0xcd)]()[_0x31f900(0xd4)])==null?void 0x0:_0x2a8703[_0x31f900(0x10a)];return!_0x305c5b||!_0xe3ff5b?'':b(_0xe3ff5b[_0x31f900(0x104)](_0x305c5b[_0x31f900(0xe1)]+0x1,_0x305c5b[_0x31f900(0xe8)]));}[_0x265ff2(0xcc)](){var _0x4b6034=_0x265ff2;let _0x5971cf=this[_0x4b6034(0xc8)]();return _0x5971cf?{..._0x5971cf,'config':this['getConfig'](),'text':this[_0x4b6034(0xd6)](),'type':_0x53badc[_0x4b6034(0xef)]}:null;}[_0x265ff2(0x107)](){var _0xf81e1f=_0x265ff2;return _0x49f66d(this[_0xf81e1f(0x102)]['get'](_0x4c99b3)[_0xf81e1f(0xf2)](this[_0xf81e1f(0xda)],this[_0xf81e1f(0xed)]));}['updateConfig'](_0x42b96f){var _0x332006=_0x265ff2;return this[_0x332006(0x102)][_0x332006(0x101)](_0x4437cc)[_0x332006(0xd3)](_0x4c43bf['id'],{'blockId':this['_blockId'],'config':_0x42b96f[_0x332006(0xf7)],'unitId':this[_0x332006(0xda)]});}['exit'](_0x2c1316){var _0x4579a0=_0x265ff2;return this[_0x4579a0(0x102)]['get'](_0x4437cc)[_0x4579a0(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x2c1316,'unitId':this['_unitId']});}[_0x265ff2(0xca)](_0x253991={}){var _0x4f21ad=_0x265ff2;return this[_0x4f21ad(0x102)][_0x4f21ad(0x101)](_0x4437cc)[_0x4f21ad(0xd3)](_0x345880['id'],{..._0x253991,'unitId':this[_0x4f21ad(0xda)]});}[_0x265ff2(0xcd)](){var _0xfcaa6f=_0x265ff2;return this[_0xfcaa6f(0xe5)][_0xfcaa6f(0x106)]();}[_0x265ff2(0xdf)](){var _0x1fea15=_0x265ff2,_0x237ffd;let _0x5f50b5=(_0x237ffd=this[_0x1fea15(0xcd)]()['body'])==null||(_0x237ffd=_0x237ffd[_0x1fea15(0xfd)])==null?void 0x0:_0x237ffd[_0x1fea15(0xff)](_0xcdfa3d=>_0xcdfa3d[_0x1fea15(0xea)]===this[_0x1fea15(0xed)]&&_0xcdfa3d[_0x1fea15(0xf9)]===_0x53badc['CODE']);return _0x5f50b5==null?null:_0x5f50b5;}};y=v([_(0x2,_0x560d9f(_0x2c366a))],y);function b(_0x1dbb77){var _0x117116=_0x265ff2;return Array[_0x117116(0xcb)](_0x1dbb77)['map'](_0xadabd7=>_0xadabd7===_0x4d6957['PARAGRAPH']?'\x0a':_0xadabd7)['filter'](_0x37efcf=>_0x37efcf!==_0x4d6957[_0x117116(0xe2)]&&_0x37efcf!==_0x4d6957[_0x117116(0xd7)]&&_0x37efcf!==_0x4d6957['SECTION_BREAK'])[_0x117116(0xe0)]('')[_0x117116(0xee)](/\n$/,'');}var x=class extends _0x2080cf{[_0x265ff2(0xe9)](){var _0x2c7a01=_0x265ff2;return this[_0x2c7a01(0xd0)]()[_0x2c7a01(0xdb)](_0xf1f00=>_0xf1f00['blockType']===_0x53badc[_0x2c7a01(0xef)])[_0x2c7a01(0x105)](_0x547bed=>this[_0x2c7a01(0xd2)](_0x547bed['blockId']));}[_0x265ff2(0x109)](_0x21fa7a){var _0x4006f8=_0x265ff2;return this[_0x4006f8(0xd0)]()['some'](_0x2abc0a=>_0x2abc0a[_0x4006f8(0xea)]===_0x21fa7a&&_0x2abc0a['blockType']===_0x53badc[_0x4006f8(0xef)])?this[_0x4006f8(0xd2)](_0x21fa7a):null;}['getCodeAt'](_0x4b4680){var _0x4e6916=_0x265ff2;let _0x4ff399=this['_getBlockRanges']()[_0x4e6916(0xff)](_0x1a3ddb=>_0x1a3ddb[_0x4e6916(0xf9)]===_0x53badc[_0x4e6916(0xef)]&&_0x1a3ddb[_0x4e6916(0xe1)]<=_0x4b4680&&_0x4b4680<=_0x1a3ddb[_0x4e6916(0xe8)]);return _0x4ff399?this[_0x4e6916(0xd2)](_0x4ff399[_0x4e6916(0xea)]):null;}['findCodeByText'](_0x4e7b2b){var _0x364464=_0x265ff2,_0x5323cf;return(_0x5323cf=this[_0x364464(0xce)](_0x4e7b2b)[0x0])==null?null:_0x5323cf;}[_0x265ff2(0xce)](_0x5269d4){var _0x41309b=_0x265ff2;let _0x411fa7=typeof _0x5269d4==_0x41309b(0xf1)?{'text':_0x5269d4}:_0x5269d4;return this['getCodes']()[_0x41309b(0xdb)](_0x34fed8=>!(_0x411fa7[_0x41309b(0xea)]&&_0x34fed8[_0x41309b(0xf5)]()!==_0x411fa7[_0x41309b(0xea)]||_0x411fa7[_0x41309b(0x10c)]&&!_0x34fed8[_0x41309b(0xd6)]()[_0x41309b(0xf6)](_0x411fa7[_0x41309b(0x10c)])));}[_0x265ff2(0xd5)](_0x44f98d={},_0x38333a={}){var _0x33c287=_0x265ff2,_0x5a7c12;let _0x1640a7=this['_injector']['get'](_0x4437cc),_0x2025d7=S(_0x44f98d)?{..._0x38333a,...C(_0x44f98d)}:_0x44f98d,_0x15253d=(_0x5a7c12=_0x2025d7[_0x33c287(0xea)])==null?_0x2730ac(0x6):_0x5a7c12;return _0x1640a7[_0x33c287(0xd3)](_0x5c1c8b['id'],{..._0x2025d7,'blockId':_0x15253d,'unitId':this[_0x33c287(0xf5)]()})?this[_0x33c287(0xd2)](_0x15253d):null;}[_0x265ff2(0xe7)](_0x4b4966){var _0xf20096=_0x265ff2;return this[_0xf20096(0x102)][_0xf20096(0x101)](_0x4437cc)[_0xf20096(0xd3)](_0x1aea34['id'],{'cursorOffset':_0x4b4966,'unitId':this[_0xf20096(0xf5)]()});}[_0x265ff2(0x108)](_0x136f26={}){var _0x16667a=_0x265ff2;return this[_0x16667a(0x102)][_0x16667a(0x101)](_0x4437cc)[_0x16667a(0xd3)](_0x345880['id'],{..._0x136f26,'unitId':this[_0x16667a(0xf5)]()});}[_0x265ff2(0xd0)](){var _0x2ad0e3=_0x265ff2,_0x2b2ce5,_0xf7546;return(_0x2b2ce5=(_0xf7546=this[_0x2ad0e3(0x106)]()[_0x2ad0e3(0xd4)])==null?void 0x0:_0xf7546['blockRanges'])==null?[]:_0x2b2ce5;}[_0x265ff2(0xd2)](_0x5dc5bd){var _0x40b803=_0x265ff2;return this['_injector'][_0x40b803(0xdc)](y,this,_0x5dc5bd);}};function S(_0x423d5b){var _0x2b5231=_0x265ff2;return typeof _0x423d5b==_0x2b5231(0xf4)&&!!_0x423d5b&&typeof _0x423d5b[_0x2b5231(0xd8)]==_0x2b5231(0xec)&&typeof _0x423d5b[_0x2b5231(0xc8)]==_0x2b5231(0xec)&&typeof _0x423d5b['getType']==_0x2b5231(0xec)&&_0x423d5b['getType']()===_0x2b5231(0x100);}function C(_0x4aa7b2){var _0x315966=_0x265ff2;return _0x4aa7b2[_0x315966(0xc8)]();}_0x2080cf['extend'](x);export{y as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4a8a2d=_0x28c9;(function(_0x33c0ef,_0x4e7947){const _0x4b3364=_0x28c9,_0x3719a4=_0x33c0ef();while(!![]){try{const _0x5996e2=-parseInt(_0x4b3364(0x1d9))/0x1*(-parseInt(_0x4b3364(0x1ce))/0x2)+parseInt(_0x4b3364(0x203))/0x3*(-parseInt(_0x4b3364(0x208))/0x4)+parseInt(_0x4b3364(0x1b6))/0x5*(-parseInt(_0x4b3364(0x22d))/0x6)+parseInt(_0x4b3364(0x209))/0x7*(-parseInt(_0x4b3364(0x1b9))/0x8)+parseInt(_0x4b3364(0x231))/0x9+-parseInt(_0x4b3364(0x21b))/0xa+parseInt(_0x4b3364(0x1d0))/0xb*(parseInt(_0x4b3364(0x1e8))/0xc);if(_0x5996e2===_0x4e7947)break;else _0x3719a4['push'](_0x3719a4['shift']());}catch(_0x59c62f){_0x3719a4['push'](_0x3719a4['shift']());}}}(_0x58a1,0x5beda));import{BuildTextUtils as _0x24fe28,CommandType as _0x20b98a,DataStreamTreeTokenType as _0x3ba019,DependentOn as _0xb86e0,Disposable as _0x3e8f03,DocumentBlockRangeType as _0x54e1d3,ICommandService as _0x3735ed,IConfigService as _0x42560c,IResourceManagerService as _0x3f714d,IUniverInstanceService as _0x3abeac,Inject as _0x4628b1,Injector as _0x531f72,JSONX as _0x2387fb,Plugin as _0x5357ad,Tools as _0xb48f1,UniverInstanceType as _0x2bb6f5,createParagraphId as _0x34e429,generateRandomId as _0x97c26f,merge as _0x3de4b6}from'@univerjs/core';import{DocContentInsertService as _0x2040aa,DocSelectionManagerService as _0x291a89,RichTextEditingMutation as _0x4297bb,UniverDocsPlugin as _0x1f5d37}from'@univerjs/docs';import{Subject as _0x363e20}from'rxjs';import{UniverLicensePlugin as _0x141bd9}from'@univerjs-pro/license';const S={'language':_0x4a8a2d(0x1f2),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x485bad){return{...S,..._0x485bad};}function w(_0x194da7){const _0x516533=_0x4a8a2d;var _0x1d5729;let _0x5a3d1f=(_0x1d5729=_0x194da7==null?void 0x0:_0x194da7['codes'])==null?{}:_0x1d5729;return{'codes':Object['fromEntries'](Object['entries'](_0x5a3d1f)[_0x516533(0x1c6)](([_0x23b746,_0x4926ac])=>[_0x23b746,C(_0x4926ac)]))};}function T(_0x56bf6f,_0x2b78f7,_0x2c447a){const _0x52d863=_0x4a8a2d;let _0xdb2ca7=w(_0x56bf6f);return _0xdb2ca7[_0x52d863(0x1cb)][_0x2b78f7]=C({..._0xdb2ca7['codes'][_0x2b78f7],..._0x2c447a}),_0xdb2ca7;}function re(_0x5c91e9,_0x22410c){let _0x2653fb=w(_0x5c91e9);return delete _0x2653fb['codes'][_0x22410c],_0x2653fb;}const ie=_0x4a8a2d(0x1f8);function ae(_0x151d84){const _0x5a812b=_0x4a8a2d;var _0x36a4f9,_0xafde3b,_0x5a0ce7;let _0x167a80=D(_0x151d84[_0x5a812b(0x21a)]),_0x24b65b=O(_0x167a80),_0x5d4611=se(_0x151d84[_0x5a812b(0x20a)],_0x151d84['endOffset']),_0x298645=_0x5d4611?(_0x36a4f9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x36a4f9[_0x5a812b(0x23a)](_0xbcb53=>_0xbcb53['startIndex']===_0x5d4611[_0x5a812b(0x20a)]&&_0xbcb53[_0x5a812b(0x1bd)]+0x1===_0x5d4611[_0x5a812b(0x227)]):void 0x0,{startOffset:_0x5ca80c,endOffset:_0x1ebe75}=_0x298645?_0x5d4611:ye(_0x24b65b,_0x151d84[_0x5a812b(0x20a)],_0x151d84[_0x5a812b(0x227)]),_0x50afb5=Se(_0x24b65b,_0x5ca80c,_0x1ebe75),_0x34c30c=(_0xafde3b=_0x298645==null?void 0x0:_0x298645['blockId'])==null?_0x151d84[_0x5a812b(0x1e4)]:_0xafde3b,_0x1606b8=T(_0x151d84[_0x5a812b(0x1bc)],_0x34c30c,{...S,..._0x151d84[_0x5a812b(0x211)]});if(_0x298645)return _0x298645[_0x5a812b(0x1f4)]=_0x54e1d3[_0x5a812b(0x200)],oe(_0x24b65b,_0x5ca80c,_0x1ebe75),he(_0x24b65b,_0x5ca80c,_0x1ebe75,_0x50afb5),M(_0x24b65b,_0x298645),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};if(_0x5ca80c===_0x1ebe75){var _0x5cbb11,_0x5960e9;let _0x3e4e1c=''+_0x3ba019[_0x5a812b(0x234)]+_0x3ba019[_0x5a812b(0x225)]+_0x3ba019['BLOCK_END'];N(_0x24b65b,_0x5ca80c,_0x3e4e1c,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x34e429(new Set((_0x5cbb11=_0x24b65b[_0x5a812b(0x1ba)])==null?void 0x0:_0x5cbb11[_0x5a812b(0x1c6)](_0x2926b2=>_0x2926b2[_0x5a812b(0x20e)]))),'paragraphStyle':E(!0x0,!0x0,_0x50afb5)}],'blockRanges':[{'blockId':_0x34c30c,'blockType':_0x54e1d3['CODE'],'startIndex':0x0,'endIndex':_0x3e4e1c['length']-0x1}]});let _0x564362=(_0x5960e9=_0x24b65b[_0x5a812b(0x1c1)])==null?void 0x0:_0x5960e9[_0x5a812b(0x23a)](_0x319a88=>_0x319a88[_0x5a812b(0x1e4)]===_0x34c30c);return _0x564362&&M(_0x24b65b,_0x564362),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}N(_0x24b65b,_0x1ebe75,_0x3ba019['BLOCK_END']),N(_0x24b65b,_0x5ca80c,_0x3ba019[_0x5a812b(0x234)]),he(_0x24b65b,_0x5ca80c,_0x1ebe75+0x1,_0x50afb5);let _0x5e3282={'blockId':_0x34c30c,'blockType':_0x54e1d3[_0x5a812b(0x200)],'startIndex':_0x5ca80c,'endIndex':_0x1ebe75+0x1};return _0x24b65b[_0x5a812b(0x1c1)]=[...(_0x5a0ce7=_0x24b65b[_0x5a812b(0x1c1)])==null?[]:_0x5a0ce7,_0x5e3282]['sort']((_0x3d9679,_0x323898)=>_0x3d9679[_0x5a812b(0x1f0)]-_0x323898[_0x5a812b(0x1f0)]),M(_0x24b65b,_0x5e3282),{'nextDocumentData':_0x167a80,'nextMetadata':_0x1606b8,'cursorOffset':_0x5ca80c+0x1};}function oe(_0x211db4,_0x314088,_0x431e22){const _0x15e86d=_0x4a8a2d;var _0x17578a;((_0x17578a=_0x211db4['paragraphs'])==null?[]:_0x17578a)['filter'](_0x553339=>_0x553339['startIndex']>_0x314088&&_0x553339[_0x15e86d(0x1f0)]<_0x431e22)['forEach'](_0x2a3de8=>{const _0x3b2a5f=_0x15e86d;var _0x4bbc9f;let _0x156109={...(_0x4bbc9f=_0x2a3de8[_0x3b2a5f(0x22c)])==null?{}:_0x4bbc9f};delete _0x156109['spaceAbove'],delete _0x156109[_0x3b2a5f(0x1ca)],_0x2a3de8[_0x3b2a5f(0x22c)]=_0x156109;});}function se(_0x457e64,_0x248d17){return _0x457e64==null||_0x248d17==null||_0x457e64===_0x248d17?null:{'startOffset':Math['min'](_0x457e64,_0x248d17),'endOffset':Math['max'](_0x457e64,_0x248d17)};}function ce(_0x3858ad){const _0x591bfa=_0x4a8a2d;return{'nextDocumentData':D(_0x3858ad[_0x591bfa(0x21a)]),'nextMetadata':T(_0x3858ad[_0x591bfa(0x1bc)],_0x3858ad['blockId'],_0x3858ad[_0x591bfa(0x211)]),'cursorOffset':0x0};}function le(_0x10af95){const _0x50aa72=_0x4a8a2d;var _0x5aa243,_0x357c42;let _0x2d332a=D(_0x10af95[_0x50aa72(0x21a)]),_0x414cf5=O(_0x2d332a),_0x1a8ea0=me(_0x414cf5,_0x10af95[_0x50aa72(0x1f6)]);if(!_0x1a8ea0)return null;let _0x2e6234=_e(_0x414cf5,_0x1a8ea0),_0x7f904f=_0x2e6234[_0x2e6234[_0x50aa72(0x1dd)]-0x1];if(!_0x7f904f||!ve(_0x414cf5,_0x1a8ea0,_0x7f904f)||_0x10af95[_0x50aa72(0x1f6)]<_0x7f904f[_0x50aa72(0x1f0)])return null;let _0x45fcd5=A(_0x414cf5,_0x1a8ea0,_0x7f904f);if(_0x45fcd5>=_0x1a8ea0[_0x50aa72(0x1bd)])return null;_0x414cf5[_0x50aa72(0x23c)]=[_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](0x0,_0x45fcd5),_0x3ba019[_0x50aa72(0x1e7)],_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)]),_0x414cf5[_0x50aa72(0x23c)][_0x50aa72(0x1f5)](_0x1a8ea0[_0x50aa72(0x1bd)]+0x1)]['join'](''),R(_0x414cf5['paragraphs'],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x207)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),R(_0x414cf5[_0x50aa72(0x1cf)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),ke(_0x414cf5[_0x50aa72(0x206)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),z(_0x414cf5[_0x50aa72(0x1ee)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x1d8)],_0x45fcd5,_0x1a8ea0['endIndex'],0x1),z(_0x414cf5[_0x50aa72(0x238)],_0x45fcd5,_0x1a8ea0[_0x50aa72(0x1bd)],0x1),(_0x5aa243=_0x414cf5[_0x50aa72(0x1c1)])==null||_0x5aa243[_0x50aa72(0x1e2)](_0x3caec1=>{const _0x3ec7c3=_0x50aa72;_0x3caec1===_0x1a8ea0||_0x3caec1['blockId']===_0x1a8ea0[_0x3ec7c3(0x1e4)]?_0x3caec1[_0x3ec7c3(0x1bd)]=_0x45fcd5:_0x3caec1[_0x3ec7c3(0x1f0)]>=_0x45fcd5&&_0x3caec1[_0x3ec7c3(0x1f0)]<_0x1a8ea0[_0x3ec7c3(0x1bd)]&&(_0x3caec1['startIndex']+=0x1,_0x3caec1[_0x3ec7c3(0x1bd)]+=0x1);});let _0x39bb51=_e(_0x414cf5,{..._0x1a8ea0,'endIndex':_0x45fcd5});_0x39bb51[_0x50aa72(0x1e2)]((_0x57dc22,_0x30959e)=>{const _0x35497c=_0x50aa72;var _0x1005ac;_0x57dc22['paragraphStyle']={...(_0x1005ac=_0x57dc22[_0x35497c(0x22c)])==null?{}:_0x1005ac,...E(_0x30959e===0x0,_0x30959e===_0x39bb51[_0x35497c(0x1dd)]-0x1)};});let _0xeeca1e=(_0x357c42=_0x414cf5[_0x50aa72(0x1ba)])==null?void 0x0:_0x357c42[_0x50aa72(0x23a)](_0x10901d=>_0x10901d[_0x50aa72(0x1f0)]===_0x45fcd5+0x1);return _0xeeca1e&&(_0xeeca1e['paragraphStyle']=ge(_0xeeca1e[_0x50aa72(0x22c)])),{'nextDocumentData':_0x2d332a,'cursorOffset':_0x45fcd5+0x1};}function ue(_0x4943b5){const _0x211f64=_0x4a8a2d;let _0xb19ded=D(_0x4943b5[_0x211f64(0x21a)]),_0x35cf1b=O(_0xb19ded),_0x525eeb=me(_0x35cf1b,_0x4943b5['cursorOffset']);return _0x525eeb&&de(_0xb19ded,_0x35cf1b,_0x525eeb,_0x4943b5[_0x211f64(0x1f6)],_0x4943b5[_0x211f64(0x1e1)])||null;}function de(_0x15ca94,_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f){const _0x46d349=_0x4a8a2d;let _0x288034=we(_0x30a6c0,_0x1ecfa2,_0x15aedb,_0x5c2c1f);if(!_0x288034)return null;let _0x207bd1=_0x288034[_0x46d349(0x1d3)]-0x1;return Te(_0x30a6c0,_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)],_0x288034[_0x46d349(0x1c9)][_0x46d349(0x1f0)]+0x1),{'nextDocumentData':_0x15ca94,'cursorOffset':_0x207bd1};}function fe(_0x25af29,_0x1a0d81){const _0x414408=_0x4a8a2d;var _0x189422;return _0x25af29==null||(_0x189422=_0x25af29[_0x414408(0x1c1)])==null?void 0x0:_0x189422[_0x414408(0x23a)](_0x1fd816=>_0x1fd816[_0x414408(0x1f4)]===_0x54e1d3[_0x414408(0x200)]&&_0x1fd816[_0x414408(0x1f0)]<=_0x1a0d81&&_0x1a0d81<=_0x1fd816[_0x414408(0x1bd)]);}function pe(_0x2b27b0){const _0x2b45b7=_0x4a8a2d;var _0x188ec0;let _0xc4f97d=_0x2b27b0['documentData'][_0x2b45b7(0x22f)];if(!_0xc4f97d)return!0x1;let _0x3ac209=_0x2b27b0['direction']===_0x2b45b7(0x1eb)?_0x2b27b0[_0x2b45b7(0x1f6)]-0x1:_0x2b27b0['cursorOffset'],_0x6406aa=_0x2b27b0[_0x2b45b7(0x1c5)]===_0x2b45b7(0x22a)?_0x2b27b0[_0x2b45b7(0x1f6)]+0x1:_0x3ac209;return((_0x188ec0=_0xc4f97d[_0x2b45b7(0x1c1)])==null?[]:_0x188ec0)[_0x2b45b7(0x236)](_0x12d4ad=>_0x12d4ad[_0x2b45b7(0x1f4)]===_0x54e1d3[_0x2b45b7(0x200)]?_0x3ac209===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x3ac209===_0x12d4ad[_0x2b45b7(0x1bd)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1f0)]||_0x6406aa===_0x12d4ad[_0x2b45b7(0x1bd)]:!0x1);}function me(_0x13fc4e,_0x5a78e7){const _0x5f297a=_0x4a8a2d;var _0x3395f0;return(_0x3395f0=_0x13fc4e[_0x5f297a(0x1c1)])==null?void 0x0:_0x3395f0['find'](_0x5a8b18=>{const _0x13c31d=_0x5f297a;let _0x38c79f=j(_0x13fc4e,_0x5a8b18);return _0x5a8b18['blockType']===_0x54e1d3[_0x13c31d(0x200)]&&_0x5a8b18['startIndex']<=_0x5a78e7&&_0x5a78e7<=_0x38c79f+0x2;});}function E(_0x17e584,_0x241c84,_0x51e922=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x17e584&&_0x51e922?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56028c,_0x34f293,_0x19ed8c,_0x36d47a=!0x1){const _0x506ac7=_0x4a8a2d;var _0x166610;let _0x401af5=((_0x166610=_0x56028c[_0x506ac7(0x1ba)])==null?[]:_0x166610)[_0x506ac7(0x233)](_0x5c7d6c=>_0x5c7d6c[_0x506ac7(0x1f0)]>_0x34f293&&_0x5c7d6c[_0x506ac7(0x1f0)]<_0x19ed8c);_0x401af5[_0x506ac7(0x1e2)]((_0xa56718,_0x263a05)=>{const _0x67f467=_0x506ac7;var _0x24e661;_0xa56718[_0x67f467(0x22c)]={...(_0x24e661=_0xa56718[_0x67f467(0x22c)])==null?{}:_0x24e661,...E(_0x263a05===0x0,_0x263a05===_0x401af5[_0x67f467(0x1dd)]-0x1,_0x36d47a)};});}function ge(_0x1d5cf3){const _0xbd2508=_0x4a8a2d;var _0x1d1447,_0x4e09f6;let _0x2a8721={..._0x1d5cf3==null?{}:_0x1d5cf3};return delete _0x2a8721[_0xbd2508(0x20c)],delete _0x2a8721['indentStart'],delete _0x2a8721[_0xbd2508(0x217)],delete _0x2a8721[_0xbd2508(0x1ca)],((_0x1d1447=_0x2a8721[_0xbd2508(0x1e5)])==null?void 0x0:_0x1d1447['ff'])===ie&&((_0x4e09f6=_0x2a8721['textStyle'])==null?void 0x0:_0x4e09f6['fs'])===0xc&&delete _0x2a8721[_0xbd2508(0x1e5)],_0x2a8721;}function _e(_0x268343,_0x4e7bc4){const _0x218459=_0x4a8a2d;var _0x2c1244;let _0x556d85=j(_0x268343,_0x4e7bc4);return((_0x2c1244=_0x268343[_0x218459(0x1ba)])==null?[]:_0x2c1244)[_0x218459(0x233)](_0x5822ff=>_0x5822ff[_0x218459(0x1f0)]>_0x4e7bc4[_0x218459(0x1f0)]&&_0x5822ff['startIndex']<_0x556d85);}function _0x28c9(_0x1e6757,_0x175dbf){_0x1e6757=_0x1e6757-0x1b6;const _0x58a183=_0x58a1();let _0x28c9d9=_0x58a183[_0x1e6757];return _0x28c9d9;}function ve(_0x76282b,_0x5ef0eb,_0x5ed3f2){const _0x254cec=_0x4a8a2d;let _0x2afe1d=A(_0x76282b,_0x5ef0eb,_0x5ed3f2),_0x5c9d23=_0x76282b[_0x254cec(0x23c)][_0x254cec(0x1f5)](_0x2afe1d,_0x5ed3f2[_0x254cec(0x1f0)]);return Array[_0x254cec(0x214)](_0x5c9d23)[_0x254cec(0x1bf)](_0x339f88=>_0x339f88===_0x3ba019[_0x254cec(0x234)]||_0x339f88===_0x3ba019[_0x254cec(0x1e7)]);}function D(_0x156523){const _0x4521c6=_0x4a8a2d;return _0xb48f1[_0x4521c6(0x1d2)](_0x156523);}function O(_0x1bf3c9){const _0x17ba9a=_0x4a8a2d;if(!_0x1bf3c9[_0x17ba9a(0x22f)])throw Error(_0x17ba9a(0x224));return _0x1bf3c9['body'];}function ye(_0x4bf66a,_0x108f21,_0x262c76){const _0x3d4f6c=_0x4a8a2d;if(_0x108f21==null||_0x262c76==null){let _0x2dee3f=xe(_0x4bf66a);return{'startOffset':_0x2dee3f,'endOffset':_0x2dee3f};}let _0x37d761=Math[_0x3d4f6c(0x235)](_0x108f21,_0x262c76),_0x442582=Math['max'](_0x108f21,_0x262c76);if(_0x37d761===_0x442582){let _0x5f373a=be(_0x4bf66a,_0x37d761);return{'startOffset':_0x5f373a,'endOffset':_0x5f373a};}return Ce(_0x4bf66a,_0x37d761,_0x442582);}function be(_0x4cd764,_0x276e03){const _0x5ec11e=_0x4a8a2d;return _0x276e03===0x0&&_0x4cd764[_0x5ec11e(0x23c)][0x0]===_0x3ba019[_0x5ec11e(0x225)]?0x1:_0x276e03;}function xe(_0x5539f0){const _0x449468=_0x4a8a2d;return _0x5539f0[_0x449468(0x23c)][_0x449468(0x21f)](_0x3ba019['SECTION_BREAK'])?Math[_0x449468(0x1e6)](0x0,_0x5539f0[_0x449468(0x23c)][_0x449468(0x1dd)]-0x1):_0x5539f0['dataStream'][_0x449468(0x1dd)];}function Se(_0x423855,_0x463210,_0x3896b8){const _0x1b3077=_0x4a8a2d;var _0x2e80e0;let _0x4e426e=Math[_0x1b3077(0x235)](_0x463210,_0x3896b8),_0x2fc2d5=Math[_0x1b3077(0x1e6)](_0x463210,_0x3896b8);return!!((_0x2e80e0=_0x423855[_0x1b3077(0x1ee)])!=null&&_0x2e80e0['some'](_0x2804c0=>_0x4e426e>_0x2804c0[_0x1b3077(0x1f0)]&&_0x4e426e<_0x2804c0[_0x1b3077(0x1bd)]||_0x2fc2d5>_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5<_0x2804c0[_0x1b3077(0x1bd)]||_0x4e426e<=_0x2804c0[_0x1b3077(0x1f0)]&&_0x2fc2d5>=_0x2804c0[_0x1b3077(0x1bd)]));}function Ce(_0x4cc54b,_0x268161,_0x4880cb){const _0xc2e62c=_0x4a8a2d;var _0x4b1804,_0x157733;let _0x4e865c=[...(_0x4b1804=_0x4cc54b[_0xc2e62c(0x1ba)])==null?[]:_0x4b1804][_0xc2e62c(0x239)]((_0xb1769b,_0x5753db)=>_0xb1769b[_0xc2e62c(0x1f0)]-_0x5753db[_0xc2e62c(0x1f0)]),_0x3d4eff=_0x4e865c['find']((_0x5c92cd,_0x29a26e)=>(_0x29a26e===0x0?0x0:_0x4e865c[_0x29a26e-0x1][_0xc2e62c(0x1f0)]+0x1)<=_0x268161&&_0x268161<=_0x5c92cd['startIndex']),_0x1ed691=(_0x157733=_0x4e865c[_0xc2e62c(0x23a)](_0x211e54=>_0x211e54[_0xc2e62c(0x1f0)]>=_0x4880cb-0x1))==null?_0x4e865c[_0x4e865c[_0xc2e62c(0x1dd)]-0x1]:_0x157733;return{'startOffset':_0x3d4eff?k(_0x4e865c,_0x3d4eff):_0x268161,'endOffset':_0x1ed691?_0x1ed691['startIndex']+0x1:_0x4880cb};}function k(_0x157ccd,_0x170084){const _0x34c4ed=_0x4a8a2d;let _0x393940=_0x157ccd[_0x34c4ed(0x240)](_0x170084);return _0x393940>0x0?_0x157ccd[_0x393940-0x1]['startIndex']+0x1:0x0;}function A(_0x658122,_0x58c33d,_0x451dfa){const _0xe8904b=_0x4a8a2d;var _0x8e9a25;return Math[_0xe8904b(0x1e6)](k((_0x8e9a25=_0x658122['paragraphs'])==null?[]:_0x8e9a25,_0x451dfa),_0x58c33d[_0xe8904b(0x1f0)]+0x1);}function j(_0x54b102,_0x5a480f){const _0x8d5fec=_0x4a8a2d;return _0x54b102[_0x8d5fec(0x23c)][_0x5a480f[_0x8d5fec(0x1bd)]]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]:_0x54b102[_0x8d5fec(0x23c)][_0x5a480f['endIndex']+0x1]===_0x3ba019['BLOCK_END']?_0x5a480f[_0x8d5fec(0x1bd)]+0x1:_0x5a480f[_0x8d5fec(0x1bd)];}function we(_0x1734d9,_0x450943,_0x2df09c,_0x498a00){const _0x20b679=_0x4a8a2d;var _0x48b7c9,_0x4a2a5d;let _0x12fe04=j(_0x1734d9,_0x450943),_0x41149c=((_0x48b7c9=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x48b7c9)[_0x20b679(0x23a)](_0x41061b=>_0x41061b[_0x20b679(0x1f0)]===_0x12fe04+0x1);if(!_0x41149c||_0x498a00!=null&&_0x41149c[_0x20b679(0x1f0)]!==_0x498a00||_0x2df09c<_0x12fe04||_0x2df09c>_0x41149c[_0x20b679(0x1f0)]+0x1||_0x1734d9[_0x20b679(0x23c)][_0x41149c['startIndex']]!==_0x3ba019[_0x20b679(0x225)])return null;let _0x1eca3f=k((_0x4a2a5d=_0x1734d9[_0x20b679(0x1ba)])==null?[]:_0x4a2a5d,_0x41149c),_0x454819=_0x1734d9['dataStream']['slice'](_0x1eca3f,_0x41149c[_0x20b679(0x1f0)]);return Array[_0x20b679(0x214)](_0x454819)[_0x20b679(0x1bf)](_0x37a77b=>_0x37a77b===_0x3ba019[_0x20b679(0x1e7)])?{'paragraph':_0x41149c,'endTokenOffset':_0x12fe04}:null;}function M(_0x5d7221,_0x2a40b1){const _0x3b0637=_0x4a8a2d;var _0x517a07;let _0x2c4705=j(_0x5d7221,_0x2a40b1),_0x4a4b84=_0x5d7221[_0x3b0637(0x23c)][_0x2c4705+0x1];_0x4a4b84!==_0x3ba019[_0x3b0637(0x229)]&&_0x4a4b84!==void 0x0||N(_0x5d7221,_0x2c4705+0x1,_0x3ba019[_0x3b0637(0x225)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34e429(new Set((_0x517a07=_0x5d7221[_0x3b0637(0x1ba)])==null?void 0x0:_0x517a07[_0x3b0637(0x1c6)](_0x3cb5a9=>_0x3cb5a9[_0x3b0637(0x20e)])))}]});}function N(_0xa0396,_0x5e4e9d,_0x5b6d4b,_0x3bb9ec={}){const _0x59ca28=_0x4a8a2d;var _0x1b15f9,_0x4545c4;if(_0x5b6d4b){if(_0xa0396[_0x59ca28(0x23c)]=''+_0xa0396[_0x59ca28(0x23c)]['slice'](0x0,_0x5e4e9d)+_0x5b6d4b+_0xa0396['dataStream'][_0x59ca28(0x1f5)](_0x5e4e9d),Ee(_0xa0396,_0x5e4e9d,_0x5b6d4b[_0x59ca28(0x1dd)]),(_0x1b15f9=_0x3bb9ec[_0x59ca28(0x1ba)])!=null&&_0x1b15f9[_0x59ca28(0x1dd)]){var _0x8d59fb;_0xa0396[_0x59ca28(0x1ba)]=[...(_0x8d59fb=_0xa0396[_0x59ca28(0x1ba)])==null?[]:_0x8d59fb,..._0x3bb9ec[_0x59ca28(0x1ba)][_0x59ca28(0x1c6)](_0x1ffea9=>({..._0x1ffea9,'startIndex':_0x1ffea9['startIndex']+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x545a50,_0x41062d)=>_0x545a50[_0x59ca28(0x1f0)]-_0x41062d[_0x59ca28(0x1f0)]);}if((_0x4545c4=_0x3bb9ec[_0x59ca28(0x1c1)])!=null&&_0x4545c4[_0x59ca28(0x1dd)]){var _0x172fc1;_0xa0396['blockRanges']=[...(_0x172fc1=_0xa0396['blockRanges'])==null?[]:_0x172fc1,..._0x3bb9ec['blockRanges'][_0x59ca28(0x1c6)](_0x19853b=>({..._0x19853b,'startIndex':_0x19853b[_0x59ca28(0x1f0)]+_0x5e4e9d,'endIndex':_0x19853b[_0x59ca28(0x1bd)]+_0x5e4e9d}))][_0x59ca28(0x239)]((_0x2c1261,_0x53f498)=>_0x2c1261['startIndex']-_0x53f498[_0x59ca28(0x1f0)]);}}}function Te(_0x2259ad,_0x121220,_0x434c54){const _0x3ad431=_0x4a8a2d;let _0x14ae8e=_0x434c54-_0x121220;_0x2259ad[_0x3ad431(0x23c)]=''+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](0x0,_0x121220)+_0x2259ad[_0x3ad431(0x23c)][_0x3ad431(0x1f5)](_0x434c54),De(_0x2259ad,_0x121220,_0x14ae8e);}function Ee(_0x43e9e3,_0x20a3ac,_0x26447c){const _0x1c8892=_0x4a8a2d;_0x43e9e3[_0x1c8892(0x1ba)]=P(_0x43e9e3[_0x1c8892(0x1ba)],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x207)]=P(_0x43e9e3['sectionBreaks'],_0x20a3ac,_0x26447c),_0x43e9e3['customBlocks']=P(_0x43e9e3['customBlocks'],_0x20a3ac,_0x26447c),_0x43e9e3[_0x1c8892(0x206)]=Oe(_0x43e9e3[_0x1c8892(0x206)],_0x20a3ac,_0x26447c),_0x43e9e3['tables']=I(_0x43e9e3[_0x1c8892(0x1ee)],_0x20a3ac,_0x26447c),_0x43e9e3['customRanges']=I(_0x43e9e3[_0x1c8892(0x1d8)],_0x20a3ac,_0x26447c),_0x43e9e3['customDecorations']=I(_0x43e9e3[_0x1c8892(0x238)],_0x20a3ac,_0x26447c),_0x43e9e3['blockRanges']=I(_0x43e9e3['blockRanges'],_0x20a3ac,_0x26447c);}function De(_0x4d91c1,_0x384706,_0x3ecd85){const _0x28ae70=_0x4a8a2d;var _0x702ce5,_0x5b34b0;_0x4d91c1[_0x28ae70(0x1ba)]=F(_0x4d91c1['paragraphs'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x207)]=F(_0x4d91c1[_0x28ae70(0x207)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1cf)]=F(_0x4d91c1[_0x28ae70(0x1cf)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x206)]=(_0x702ce5=L((_0x5b34b0=_0x4d91c1['textRuns'])==null?void 0x0:_0x5b34b0[_0x28ae70(0x1c6)](_0x1eab75=>({..._0x1eab75,'startIndex':_0x1eab75['st'],'endIndex':_0x1eab75['ed']})),_0x384706,_0x3ecd85))==null?void 0x0:_0x702ce5[_0x28ae70(0x1c6)](_0x2fea58=>{let {startIndex:_0x444451,endIndex:_0x560dd9,..._0x3146b5}=_0x2fea58;return{..._0x3146b5,'st':_0x444451,'ed':_0x560dd9};}),_0x4d91c1[_0x28ae70(0x1ee)]=L(_0x4d91c1[_0x28ae70(0x1ee)],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x1d8)]=L(_0x4d91c1['customRanges'],_0x384706,_0x3ecd85),_0x4d91c1[_0x28ae70(0x238)]=L(_0x4d91c1[_0x28ae70(0x238)],_0x384706,_0x3ecd85),_0x4d91c1['blockRanges']=L(_0x4d91c1[_0x28ae70(0x1c1)],_0x384706,_0x3ecd85);}function P(_0x16c736,_0x4b4b4f,_0x192f08){const _0x2688de=_0x4a8a2d;return _0x16c736==null?void 0x0:_0x16c736[_0x2688de(0x1c6)](_0x5a1173=>_0x5a1173[_0x2688de(0x1f0)]>=_0x4b4b4f?{..._0x5a1173,'startIndex':_0x5a1173['startIndex']+_0x192f08}:_0x5a1173);}function F(_0x2912ba,_0x46d1f3,_0x424aee){const _0x44c81d=_0x4a8a2d;let _0x5b7f66=_0x46d1f3+_0x424aee;return _0x2912ba==null?void 0x0:_0x2912ba[_0x44c81d(0x1c6)](_0x52dc9e=>_0x52dc9e[_0x44c81d(0x1f0)]>=_0x46d1f3&&_0x52dc9e['startIndex']<_0x5b7f66?null:_0x52dc9e[_0x44c81d(0x1f0)]>=_0x5b7f66?{..._0x52dc9e,'startIndex':_0x52dc9e['startIndex']-_0x424aee}:_0x52dc9e)['filter'](_0x415221=>_0x415221!=null);}function Oe(_0x32df01,_0x537bf2,_0x8b8d1d){const _0x5ba742=_0x4a8a2d;return _0x32df01==null?void 0x0:_0x32df01[_0x5ba742(0x1c6)](_0x273a88=>_0x273a88['st']>=_0x537bf2?{..._0x273a88,'st':_0x273a88['st']+_0x8b8d1d,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88['ed']>_0x537bf2?{..._0x273a88,'ed':_0x273a88['ed']+_0x8b8d1d}:_0x273a88);}function I(_0x9b9d4a,_0x2a7633,_0x26d93f){const _0x427625=_0x4a8a2d;return _0x9b9d4a==null?void 0x0:_0x9b9d4a[_0x427625(0x1c6)](_0x3389d8=>_0x3389d8[_0x427625(0x1f0)]>=_0x2a7633?{..._0x3389d8,'startIndex':_0x3389d8[_0x427625(0x1f0)]+_0x26d93f,'endIndex':_0x3389d8[_0x427625(0x1bd)]+_0x26d93f}:_0x3389d8['endIndex']>=_0x2a7633?{..._0x3389d8,'endIndex':_0x3389d8['endIndex']+_0x26d93f}:_0x3389d8);}function L(_0x45d6fa,_0x377e73,_0x3d5f6b){const _0x2ff15a=_0x4a8a2d;let _0xfa2d64=_0x377e73+_0x3d5f6b;return _0x45d6fa==null?void 0x0:_0x45d6fa['map'](_0x1fc5ec=>_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0x377e73&&_0x1fc5ec[_0x2ff15a(0x1bd)]<_0xfa2d64?null:_0x1fc5ec[_0x2ff15a(0x1f0)]>=_0xfa2d64?{..._0x1fc5ec,'startIndex':_0x1fc5ec[_0x2ff15a(0x1f0)]-_0x3d5f6b,'endIndex':_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b}:_0x1fc5ec[_0x2ff15a(0x1bd)]>=_0x377e73?{..._0x1fc5ec,'startIndex':_0x1fc5ec['startIndex']<_0x377e73?_0x1fc5ec['startIndex']:_0x377e73,'endIndex':Math[_0x2ff15a(0x1e6)](_0x377e73,_0x1fc5ec[_0x2ff15a(0x1bd)]-_0x3d5f6b)}:_0x1fc5ec)[_0x2ff15a(0x233)](_0x3ef21a=>_0x3ef21a!=null);}function R(_0x2cc2fc,_0x576234,_0x24ca3d,_0x3f855e){_0x2cc2fc==null||_0x2cc2fc['forEach'](_0x1afc45=>{const _0x20e3aa=_0x28c9;_0x1afc45['startIndex']>=_0x576234&&_0x1afc45[_0x20e3aa(0x1f0)]<_0x24ca3d&&(_0x1afc45['startIndex']+=_0x3f855e);});}function ke(_0x15bea0,_0x17e830,_0x34f1e9,_0x2ec254){const _0x21e132=_0x4a8a2d;_0x15bea0==null||_0x15bea0[_0x21e132(0x1e2)](_0x2fce1=>{_0x2fce1['st']>=_0x17e830&&_0x2fce1['st']<_0x34f1e9?(_0x2fce1['st']+=_0x2ec254,_0x2fce1['ed']+=_0x2ec254):_0x2fce1['ed']>_0x17e830&&_0x2fce1['ed']<_0x34f1e9&&(_0x2fce1['ed']+=_0x2ec254);});}function z(_0x5223e9,_0x379138,_0x114465,_0x48f290){const _0x324870=_0x4a8a2d;_0x5223e9==null||_0x5223e9[_0x324870(0x1e2)](_0x1df7b6=>{const _0x4bd01a=_0x324870;_0x1df7b6[_0x4bd01a(0x1f0)]>=_0x379138&&_0x1df7b6[_0x4bd01a(0x1f0)]<_0x114465?(_0x1df7b6['startIndex']+=_0x48f290,_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290):_0x1df7b6[_0x4bd01a(0x1bd)]>_0x379138&&_0x1df7b6[_0x4bd01a(0x1bd)]<_0x114465&&(_0x1df7b6[_0x4bd01a(0x1bd)]+=_0x48f290);});}function B(_0x2fd0e3){'@babel/helpers - typeof';const _0x21d23d=_0x4a8a2d;return B=typeof Symbol==_0x21d23d(0x1ed)&&typeof Symbol[_0x21d23d(0x1d6)]==_0x21d23d(0x1da)?function(_0x1121ff){return typeof _0x1121ff;}:function(_0x2808c1){const _0x148d96=_0x21d23d;return _0x2808c1&&typeof Symbol==_0x148d96(0x1ed)&&_0x2808c1['constructor']===Symbol&&_0x2808c1!==Symbol[_0x148d96(0x1be)]?_0x148d96(0x1da):typeof _0x2808c1;},B(_0x2fd0e3);}function Ae(_0x115f91,_0x302b6e){const _0x4b03d7=_0x4a8a2d;if(B(_0x115f91)!=_0x4b03d7(0x1d5)||!_0x115f91)return _0x115f91;var _0x3817bf=_0x115f91[Symbol[_0x4b03d7(0x1ea)]];if(_0x3817bf!==void 0x0){var _0x525c6a=_0x3817bf[_0x4b03d7(0x1c8)](_0x115f91,_0x302b6e||_0x4b03d7(0x20b));if(B(_0x525c6a)!=_0x4b03d7(0x1d5))return _0x525c6a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x302b6e===_0x4b03d7(0x1d1)?String:Number)(_0x115f91);}function je(_0x562264){const _0x12b482=_0x4a8a2d;var _0x59f815=Ae(_0x562264,_0x12b482(0x1d1));return B(_0x59f815)==_0x12b482(0x1da)?_0x59f815:_0x59f815+'';}function V(_0x4ebb82,_0x29783a,_0x4cb423){const _0x464628=_0x4a8a2d;return(_0x29783a=je(_0x29783a))in _0x4ebb82?Object[_0x464628(0x1c7)](_0x4ebb82,_0x29783a,{'value':_0x4cb423,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebb82[_0x29783a]=_0x4cb423,_0x4ebb82;}function _0x58a1(){const _0x37f8b9=['docs-code.command.insert-below','delete','complete','indexOf','_change$','5jqMxib','_setResource','deserialize','568DROgGU','paragraphs','COMMAND','metadata','endIndex','prototype','every','clear','blockRanges','previousDocumentData','getCurrentUnitOfType','onStarting','direction','map','defineProperty','call','paragraph','spaceBelow','codes','add','_configService','298dROuVY','customBlocks','11fodUEz','string','deepClone','endTokenOffset','range','object','iterator','UNIVER_DOC','customRanges','3587CfVInx','symbol','compose','change$','length','_resourceManagerService','getUniverDocInstance','dispose','paragraphStartIndex','forEach','unitId','blockId','textStyle','max','BLOCK_END','7708764WElStu','parse','toPrimitive','left','disposeWithMe','function','tables','nextMetadata','startIndex','removeCode','javascript','decorate','blockType','slice','cursorOffset','get','monospace','version','docs-code.config','syncExecuteCommand','_commandService','nextDocumentData','model','1.0.0-alpha.1','CODE','docs-code.command.update','pluginName','6jDpmHI','consumeInsertRange','_docsCodeModel','textRuns','sectionBreaks','166872RqxqjD','6398PYBhkJ','startOffset','default','indentEnd','_config','paragraphId','setCodeConfig','_resources','config','docs-code.command.exit','getBody','from','getSnapshot','serialize','spaceAbove','@univerjs-pro/docs-code','removeUnit','documentData','3285870weuPcy','docs-code.command.insert','docs-code.command.cancel-empty-paragraph','DOC_CODE_PLUGIN','endsWith','replaceOp','getCodeConfig','registerPluginResource','set','Document\x20body\x20is\x20required','PARAGRAPH','commandService','endOffset','getParagraphsInRange','SECTION_BREAK','right','stringify','paragraphStyle','4385586ZIZPEr','getTextRanges','body','next','3667734fUoyDX','registerCommand','filter','BLOCK_START','min','some','_injector','customDecorations','sort','find','type','dataStream'];_0x58a1=function(){return _0x37f8b9;};return _0x58a1();}var H=class extends _0x3e8f03{constructor(..._0x202d30){const _0x8ee9e0=_0x4a8a2d;super(..._0x202d30),V(this,_0x8ee9e0(0x210),new Map()),V(this,'_change$',new _0x363e20()),V(this,_0x8ee9e0(0x1dc),this[_0x8ee9e0(0x241)]['asObservable']());}[_0x4a8a2d(0x221)](_0x197643,_0x58a620){const _0x27ca2e=_0x4a8a2d;return w(this[_0x27ca2e(0x210)][_0x27ca2e(0x1f7)](_0x197643))[_0x27ca2e(0x1cb)][_0x58a620];}[_0x4a8a2d(0x20f)](_0x4853b5,_0x5aaa34,_0x26ee93){const _0x449b87=_0x4a8a2d;this['_setResource'](_0x4853b5,_0x5aaa34,T(this[_0x449b87(0x210)][_0x449b87(0x1f7)](_0x4853b5),_0x5aaa34,_0x26ee93));}[_0x4a8a2d(0x1f1)](_0xf6e12d,_0x3861a5){const _0x34b295=_0x4a8a2d;this['_setResource'](_0xf6e12d,_0x3861a5,re(this[_0x34b295(0x210)][_0x34b295(0x1f7)](_0xf6e12d),_0x3861a5));}[_0x4a8a2d(0x216)](_0x388db7){const _0x5bfda3=_0x4a8a2d;return w(this[_0x5bfda3(0x210)]['get'](_0x388db7));}[_0x4a8a2d(0x1b8)](_0xe49eb4,_0x7cea61){const _0x24eff5=_0x4a8a2d;this[_0x24eff5(0x210)][_0x24eff5(0x223)](_0xe49eb4,w(_0x7cea61)),this[_0x24eff5(0x241)][_0x24eff5(0x230)]({'unitId':_0xe49eb4});}[_0x4a8a2d(0x219)](_0x102cca){const _0x439e75=_0x4a8a2d;this[_0x439e75(0x210)][_0x439e75(0x23e)](_0x102cca),this[_0x439e75(0x241)][_0x439e75(0x230)]({'unitId':_0x102cca});}[_0x4a8a2d(0x1e0)](){const _0x478bdc=_0x4a8a2d;super[_0x478bdc(0x1e0)](),this[_0x478bdc(0x210)][_0x478bdc(0x1c0)](),this[_0x478bdc(0x241)][_0x478bdc(0x23f)]();}[_0x4a8a2d(0x1b7)](_0x1838bc,_0x1d97c0,_0x1fad4f){const _0x3891a1=_0x4a8a2d;this['_resources'][_0x3891a1(0x223)](_0x1838bc,_0x1fad4f),this[_0x3891a1(0x241)][_0x3891a1(0x230)]({'unitId':_0x1838bc,'blockId':_0x1d97c0});}};const Me={'id':_0x4a8a2d(0x23d),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':_0x525534=>{const _0x3d5255=_0x4a8a2d;let _0x2442b9=Le(_0x525534);if(_0x2442b9)return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x2442b9[_0x3d5255(0x20a)],'endOffset':_0x2442b9[_0x3d5255(0x227)],'unitId':_0x2442b9[_0x3d5255(0x1e3)]});let _0x40b8a6=Re(_0x525534);if(!_0x40b8a6)return!0x1;let _0x630a60=_0x40b8a6[_0x3d5255(0x1f0)]+0x1;return _0x525534[_0x3d5255(0x1f7)](_0x3735ed)[_0x3d5255(0x1fb)](U['id'],{'startOffset':_0x630a60,'endOffset':_0x630a60});}},Ne={'id':'docs-code.command.consume-boundary-delete','type':_0x20b98a['COMMAND'],'handler':()=>!0x0},U={'id':_0x4a8a2d(0x21c),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x34e2fe,_0x11462e)=>{const _0x2f3080=_0x4a8a2d;var _0x55fe22,_0x46f79f,_0x5e0193;let _0x5b75bf=W(_0x34e2fe,_0x11462e==null?void 0x0:_0x11462e['unitId']);if(!_0x5b75bf)return!0x1;let _0x8f5b5d=G(_0x34e2fe),_0x3c869f=ae({'blockId':(_0x55fe22=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x1e4)])==null?_0x97c26f(0x6):_0x55fe22,'config':_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x211)],'documentData':_0x5b75bf[_0x2f3080(0x1c2)],'endOffset':(_0x46f79f=_0x11462e==null?void 0x0:_0x11462e[_0x2f3080(0x227)])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x227)]:_0x46f79f,'metadata':_0x5b75bf['model'][_0x2f3080(0x216)](_0x5b75bf[_0x2f3080(0x1e3)]),'startOffset':(_0x5e0193=_0x11462e==null?void 0x0:_0x11462e['startOffset'])==null?_0x8f5b5d==null?void 0x0:_0x8f5b5d[_0x2f3080(0x20a)]:_0x5e0193}),_0x25363b=q(_0x5b75bf[_0x2f3080(0x226)],_0x5b75bf[_0x2f3080(0x1e3)],_0x5b75bf[_0x2f3080(0x1c2)],_0x3c869f[_0x2f3080(0x1fd)],_0x3c869f[_0x2f3080(0x1f6)]);return _0x25363b&&_0x3c869f[_0x2f3080(0x1ef)]&&_0x5b75bf[_0x2f3080(0x1fe)][_0x2f3080(0x1b8)](_0x5b75bf[_0x2f3080(0x1e3)],_0x3c869f['nextMetadata']),_0x25363b;}},Pe={'id':_0x4a8a2d(0x201),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x596b59,_0x2a5246)=>{const _0x2dad1b=_0x4a8a2d;if(!_0x2a5246)return!0x1;let _0x447ca0=W(_0x596b59,_0x2a5246[_0x2dad1b(0x1e3)]);if(!_0x447ca0)return!0x1;let _0x1ec4e5=ce({'blockId':_0x2a5246[_0x2dad1b(0x1e4)],'config':_0x2a5246['config'],'documentData':_0x447ca0[_0x2dad1b(0x1c2)],'metadata':_0x447ca0[_0x2dad1b(0x1fe)][_0x2dad1b(0x216)](_0x447ca0['unitId'])});return _0x1ec4e5[_0x2dad1b(0x1ef)]&&_0x447ca0['model'][_0x2dad1b(0x1b8)](_0x447ca0['unitId'],_0x1ec4e5[_0x2dad1b(0x1ef)]),!0x0;}},Fe={'id':_0x4a8a2d(0x212),'type':_0x20b98a[_0x4a8a2d(0x1bb)],'handler':(_0x510efd,_0xbfa146)=>{const _0x594323=_0x4a8a2d;var _0x4b464b,_0x4ad761;let _0x48a69b=W(_0x510efd,_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1e3)]);if(!_0x48a69b)return!0x1;let _0x3dacad=(_0x4b464b=_0xbfa146==null?void 0x0:_0xbfa146[_0x594323(0x1f6)])==null?(_0x4ad761=G(_0x510efd))==null?void 0x0:_0x4ad761[_0x594323(0x20a)]:_0x4b464b;if(_0x3dacad==null)return!0x1;let _0x1067fe=le({'cursorOffset':_0x3dacad,'documentData':_0x48a69b['previousDocumentData']});return _0x1067fe?q(_0x48a69b[_0x594323(0x226)],_0x48a69b[_0x594323(0x1e3)],_0x48a69b[_0x594323(0x1c2)],_0x1067fe[_0x594323(0x1fd)],_0x1067fe[_0x594323(0x1f6)]):!0x1;}},Ie={'id':_0x4a8a2d(0x21d),'type':_0x20b98a['COMMAND'],'handler':(_0x561e74,_0x45fa69)=>{const _0x4da7e9=_0x4a8a2d;var _0x599ff8,_0x542500;let _0x5727a7=W(_0x561e74,_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1e3)]);if(!_0x5727a7)return!0x1;let _0xd602b7=(_0x599ff8=_0x45fa69==null?void 0x0:_0x45fa69[_0x4da7e9(0x1f6)])==null?(_0x542500=G(_0x561e74))==null?void 0x0:_0x542500['startOffset']:_0x599ff8;if(_0xd602b7==null)return!0x1;let _0x2c0745=ue({'cursorOffset':_0xd602b7,'documentData':_0x5727a7['previousDocumentData'],'paragraphStartIndex':_0x45fa69==null?void 0x0:_0x45fa69['paragraphStartIndex']});return _0x2c0745?q(_0x5727a7[_0x4da7e9(0x226)],_0x5727a7[_0x4da7e9(0x1e3)],_0x5727a7[_0x4da7e9(0x1c2)],_0x2c0745['nextDocumentData'],_0x2c0745[_0x4da7e9(0x1f6)]):!0x1;}};function W(_0x482f3b,_0x9a475b){const _0x58afea=_0x4a8a2d;let _0x4faac0=_0x482f3b['get'](_0x3abeac),_0xaaf406=_0x9a475b?_0x4faac0[_0x58afea(0x1df)](_0x9a475b):_0x4faac0[_0x58afea(0x1c3)](_0x2bb6f5[_0x58afea(0x1d7)]);return _0xaaf406?{'commandService':_0x482f3b['get'](_0x3735ed),'model':_0x482f3b['get'](H),'previousDocumentData':_0xaaf406[_0x58afea(0x215)](),'unitId':_0xaaf406['getUnitId']()}:null;}function G(_0x48d8e5){const _0x7c73c4=_0x4a8a2d;var _0x1f4ac0;return(_0x1f4ac0=_0x48d8e5[_0x7c73c4(0x1f7)](_0x291a89)[_0x7c73c4(0x22e)]())==null?void 0x0:_0x1f4ac0[0x0];}function Le(_0x50f484){const _0x335578=_0x4a8a2d;var _0x4d0fb4;let _0x5c46dc=(_0x4d0fb4=_0x50f484[_0x335578(0x1f7)](_0x3abeac)[_0x335578(0x1c3)](_0x2bb6f5[_0x335578(0x1d7)]))==null?void 0x0:_0x4d0fb4['getUnitId']();try{return _0x50f484['get'](_0x2040aa)[_0x335578(0x204)](_0x5c46dc);}catch{return null;}}function Re(_0xc8d4b2){const _0x459600=_0x4a8a2d;var _0x66885,_0x360e57,_0x1eb2a3;let _0x5323c3=G(_0xc8d4b2);if(!_0x5323c3)return null;let _0x1ddf43=_0xc8d4b2[_0x459600(0x1f7)](_0x3abeac)['getCurrentUnitOfType'](_0x2bb6f5[_0x459600(0x1d7)]),_0x5dc10f=_0x1ddf43==null?void 0x0:_0x1ddf43[_0x459600(0x213)]();return _0x5dc10f?(_0x66885=_0x24fe28[_0x459600(0x1d4)][_0x459600(0x228)](_0x5323c3,(_0x360e57=_0x5dc10f['paragraphs'])==null?[]:_0x360e57,(_0x1eb2a3=_0x5dc10f[_0x459600(0x23c)])==null?'':_0x1eb2a3)[0x0])==null?null:_0x66885:null;}function ze(_0x48f164,_0x5d6c01){const _0x2758ca=_0x4a8a2d;var _0x93d0eb,_0x24ac7b,_0x5bd531,_0xe97b8e,_0x1a541c,_0x428a1d,_0x206213,_0x371f1f,_0x104ccd,_0x3d1e1a,_0x2a8cfb,_0x3c555b,_0x19f2e1,_0x23c305,_0x3c760e,_0x399b81,_0xfc1a60,_0x147f97;let _0x59a6ac=_0x2387fb['getInstance']();return[K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x23c)],(_0x93d0eb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x93d0eb['dataStream'],(_0x24ac7b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x24ac7b['dataStream']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1ba)],(_0x5bd531=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x5bd531[_0x2758ca(0x1ba)],(_0xe97b8e=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0xe97b8e[_0x2758ca(0x1ba)]),K(_0x59a6ac,[_0x2758ca(0x22f),'sectionBreaks'],(_0x1a541c=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x1a541c[_0x2758ca(0x207)],(_0x428a1d=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x428a1d[_0x2758ca(0x207)]),K(_0x59a6ac,['body','textRuns'],(_0x206213=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x206213[_0x2758ca(0x206)],(_0x371f1f=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x371f1f[_0x2758ca(0x206)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1cf)],(_0x104ccd=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x104ccd[_0x2758ca(0x1cf)],(_0x3d1e1a=_0x5d6c01['body'])==null?void 0x0:_0x3d1e1a[_0x2758ca(0x1cf)]),K(_0x59a6ac,['body','customRanges'],(_0x2a8cfb=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x2a8cfb[_0x2758ca(0x1d8)],(_0x3c555b=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x3c555b[_0x2758ca(0x1d8)]),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x238)],(_0x19f2e1=_0x48f164['body'])==null?void 0x0:_0x19f2e1[_0x2758ca(0x238)],(_0x23c305=_0x5d6c01[_0x2758ca(0x22f)])==null?void 0x0:_0x23c305[_0x2758ca(0x238)]),K(_0x59a6ac,['body',_0x2758ca(0x1ee)],(_0x3c760e=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0x3c760e[_0x2758ca(0x1ee)],(_0x399b81=_0x5d6c01['body'])==null?void 0x0:_0x399b81['tables']),K(_0x59a6ac,[_0x2758ca(0x22f),_0x2758ca(0x1c1)],(_0xfc1a60=_0x48f164[_0x2758ca(0x22f)])==null?void 0x0:_0xfc1a60['blockRanges'],(_0x147f97=_0x5d6c01['body'])==null?void 0x0:_0x147f97['blockRanges'])][_0x2758ca(0x233)](Boolean)['reduce']((_0x30a948,_0x36800f)=>_0x2387fb[_0x2758ca(0x1db)](_0x30a948,_0x36800f),null);}function K(_0x496e0e,_0xabeaeb,_0x3cfa55,_0x2dd681){const _0x1b2a92=_0x4a8a2d;return _0xb48f1['diffValue'](_0x3cfa55,_0x2dd681)?null:_0x496e0e[_0x1b2a92(0x220)](_0xabeaeb,_0x3cfa55,_0x2dd681);}function q(_0x1c7168,_0x258537,_0x42aba6,_0x47945c,_0x5aac27){const _0x4ca4d8=_0x4a8a2d;let _0x55ea90=ze(_0x42aba6,_0x47945c);return _0x55ea90?!!_0x1c7168[_0x4ca4d8(0x1fb)](_0x4297bb['id'],{'unitId':_0x258537,'actions':_0x55ea90,'textRanges':[{'startOffset':_0x5aac27,'endOffset':_0x5aac27,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x4a8a2d(0x21e);var Be=_0x4a8a2d(0x218),Ve=_0x4a8a2d(0x1ff);const Y={};function X(_0x51a0d7,_0x4f288e){return function(_0xc2b95e,_0xe780a8){_0x4f288e(_0xc2b95e,_0xe780a8,_0x51a0d7);};}function Z(_0xb42bea,_0x307348,_0x399d74,_0x5b84c7){const _0x3fbc82=_0x4a8a2d;var _0x5d394d=arguments[_0x3fbc82(0x1dd)],_0x1b366b=_0x5d394d<0x3?_0x307348:_0x5b84c7===null?_0x5b84c7=Object['getOwnPropertyDescriptor'](_0x307348,_0x399d74):_0x5b84c7,_0x1b2d90;if(typeof Reflect==_0x3fbc82(0x1d5)&&typeof Reflect[_0x3fbc82(0x1f3)]==_0x3fbc82(0x1ed))_0x1b366b=Reflect['decorate'](_0xb42bea,_0x307348,_0x399d74,_0x5b84c7);else{for(var _0x552881=_0xb42bea[_0x3fbc82(0x1dd)]-0x1;_0x552881>=0x0;_0x552881--)(_0x1b2d90=_0xb42bea[_0x552881])&&(_0x1b366b=(_0x5d394d<0x3?_0x1b2d90(_0x1b366b):_0x5d394d>0x3?_0x1b2d90(_0x307348,_0x399d74,_0x1b366b):_0x1b2d90(_0x307348,_0x399d74))||_0x1b366b);}return _0x5d394d>0x3&&_0x1b366b&&Object[_0x3fbc82(0x1c7)](_0x307348,_0x399d74,_0x1b366b),_0x1b366b;}let Q=class extends _0x3e8f03{constructor(_0x525000,_0x5307ab){const _0x527ba6=_0x4a8a2d;super(),this[_0x527ba6(0x1de)]=_0x525000,this[_0x527ba6(0x205)]=_0x5307ab,this['_initResource']();}['_initResource'](){const _0x138310=_0x4a8a2d;this['disposeWithMe'](this[_0x138310(0x1de)][_0x138310(0x222)]({'pluginName':J,'businesses':[_0x2bb6f5['UNIVER_DOC']],'toJson':_0x756b90=>JSON[_0x138310(0x22b)](this['_docsCodeModel'][_0x138310(0x216)](_0x756b90)),'parseJson':_0x326414=>w(JSON[_0x138310(0x1e9)](_0x326414)),'onLoad':(_0x3bb989,_0x9d9c94)=>this[_0x138310(0x205)][_0x138310(0x1b8)](_0x3bb989,_0x9d9c94),'onUnLoad':_0x1fb262=>this[_0x138310(0x205)][_0x138310(0x219)](_0x1fb262)}));}};Q=Z([X(0x0,_0x3f714d),X(0x1,_0x4628b1(H))],Q);let $=class extends _0x5357ad{constructor(_0x44a0c7=Y,_0x299616,_0x10514f,_0x5e69cf){const _0x4b2ffc=_0x4a8a2d;super(),this[_0x4b2ffc(0x20d)]=_0x44a0c7,this['_injector']=_0x299616,this[_0x4b2ffc(0x1fc)]=_0x10514f,this[_0x4b2ffc(0x1cd)]=_0x5e69cf;let {..._0x1fb70a}=_0x3de4b6({},Y,this[_0x4b2ffc(0x20d)]);this['_configService']['setConfig'](_0x4b2ffc(0x1fa),_0x1fb70a);}[_0x4a8a2d(0x1c4)](){const _0x41fbe=_0x4a8a2d;this[_0x41fbe(0x237)][_0x41fbe(0x1cc)]([H]),this[_0x41fbe(0x237)]['add']([Q]),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](H),this[_0x41fbe(0x237)][_0x41fbe(0x1f7)](Q),[U,Me,Pe,Fe,Ie,Ne][_0x41fbe(0x1e2)](_0x4ae732=>this[_0x41fbe(0x1ec)](this[_0x41fbe(0x1fc)][_0x41fbe(0x232)](_0x4ae732)));}};V($,_0x4a8a2d(0x202),J),V($,'packageName',Be),V($,_0x4a8a2d(0x1f9),Ve),V($,_0x4a8a2d(0x23b),_0x2bb6f5[_0x4a8a2d(0x1d7)]),$=Z([_0xb86e0(_0x141bd9,_0x1f5d37),X(0x1,_0x4628b1(_0x531f72)),X(0x2,_0x3735ed),X(0x3,_0x42560c)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
1
+ const _0x219c77=_0x4994;(function(_0x2b65b0,_0x126e1c){const _0x29566a=_0x4994,_0x238b3b=_0x2b65b0();while(!![]){try{const _0x32241e=parseInt(_0x29566a(0xa8))/0x1+-parseInt(_0x29566a(0x7e))/0x2+parseInt(_0x29566a(0x88))/0x3*(parseInt(_0x29566a(0xb7))/0x4)+parseInt(_0x29566a(0xc9))/0x5*(-parseInt(_0x29566a(0xc6))/0x6)+-parseInt(_0x29566a(0xec))/0x7*(parseInt(_0x29566a(0xaf))/0x8)+-parseInt(_0x29566a(0x6b))/0x9+parseInt(_0x29566a(0xa5))/0xa*(parseInt(_0x29566a(0xe8))/0xb);if(_0x32241e===_0x126e1c)break;else _0x238b3b['push'](_0x238b3b['shift']());}catch(_0x39bfe2){_0x238b3b['push'](_0x238b3b['shift']());}}}(_0x2a2a,0x5f27a));import{BuildTextUtils as _0x52d7f9,CommandType as _0x4ff736,DataStreamTreeTokenType as _0x4ed1bf,DependentOn as _0x268121,Disposable as _0x5107f0,DocumentBlockRangeType as _0x34d60f,ICommandService as _0x37df2c,IConfigService as _0x431f58,IResourceManagerService as _0x440e2f,IUniverInstanceService as _0x595ab8,Inject as _0x422fcc,Injector as _0x3af657,JSONX as _0x54cd09,Plugin as _0x4de551,Tools as _0x3fd2f4,UniverInstanceType as _0x47101f,createParagraphId as _0x44a586,generateRandomId as _0x12ff78,merge as _0xa8f50a}from'@univerjs/core';import{DocContentInsertService as _0x5727fa,DocSelectionManagerService as _0x41c563,RichTextEditingMutation as _0x40cd82,UniverDocsPlugin as _0x2ecad0}from'@univerjs/docs';import{Subject as _0x2f75e2}from'rxjs';import{UniverLicensePlugin as _0x48da71}from'@univerjs-pro/license';const S={'language':_0x219c77(0x75),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function C(_0x4a384b){return{...S,..._0x4a384b};}function w(_0x2631d6){const _0x14649e=_0x219c77;var _0x510d84;let _0x443897=(_0x510d84=_0x2631d6==null?void 0x0:_0x2631d6['codes'])==null?{}:_0x510d84;return{'codes':Object['fromEntries'](Object[_0x14649e(0xf1)](_0x443897)[_0x14649e(0xf0)](([_0x5673b3,_0xe55472])=>[_0x5673b3,C(_0xe55472)]))};}function T(_0xe86fec,_0x5292b0,_0x532988){const _0x512371=_0x219c77;let _0x10873f=w(_0xe86fec);return _0x10873f[_0x512371(0xe7)][_0x5292b0]=C({..._0x10873f['codes'][_0x5292b0],..._0x532988}),_0x10873f;}function re(_0x35fb01,_0x1f3ade){const _0x38de12=_0x219c77;let _0x48d536=w(_0x35fb01);return delete _0x48d536[_0x38de12(0xe7)][_0x1f3ade],_0x48d536;}const ie=_0x219c77(0x8d);function ae(_0x136ac3){const _0xe777e=_0x219c77;var _0x184156,_0x2b99ef,_0x5bcaf2;let _0x440a91=D(_0x136ac3[_0xe777e(0x76)]),_0x5bedb4=O(_0x440a91),_0x1e4399=se(_0x136ac3[_0xe777e(0x7f)],_0x136ac3['endOffset']),_0x2a22f5=_0x1e4399?(_0x184156=_0x5bedb4[_0xe777e(0xab)])==null?void 0x0:_0x184156[_0xe777e(0x71)](_0x1bf890=>_0x1bf890['startIndex']===_0x1e4399[_0xe777e(0x7f)]&&_0x1bf890[_0xe777e(0x90)]+0x1===_0x1e4399[_0xe777e(0xd8)]):void 0x0,{startOffset:_0xff7c45,endOffset:_0x4b9eed}=_0x2a22f5?_0x1e4399:ye(_0x5bedb4,_0x136ac3['startOffset'],_0x136ac3['endOffset']),_0x5d3e5c=Se(_0x5bedb4,_0xff7c45,_0x4b9eed),_0x29732a=(_0x2b99ef=_0x2a22f5==null?void 0x0:_0x2a22f5[_0xe777e(0x92)])==null?_0x136ac3['blockId']:_0x2b99ef,_0x1d91e7=T(_0x136ac3[_0xe777e(0x93)],_0x29732a,{...S,..._0x136ac3['config']});if(_0x2a22f5)return _0x2a22f5[_0xe777e(0xea)]=_0x34d60f[_0xe777e(0x80)],oe(_0x5bedb4,_0xff7c45,_0x4b9eed),he(_0x5bedb4,_0xff7c45,_0x4b9eed,_0x5d3e5c),M(_0x5bedb4,_0x2a22f5),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};if(_0xff7c45===_0x4b9eed){var _0x218fc1,_0x1083a8;let _0x2d96a5=''+_0x4ed1bf[_0xe777e(0xdb)]+_0x4ed1bf[_0xe777e(0x83)]+_0x4ed1bf[_0xe777e(0xa3)];N(_0x5bedb4,_0xff7c45,_0x2d96a5,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x44a586(new Set((_0x218fc1=_0x5bedb4[_0xe777e(0x6e)])==null?void 0x0:_0x218fc1[_0xe777e(0xf0)](_0x163468=>_0x163468[_0xe777e(0xb4)]))),'paragraphStyle':E(!0x0,!0x0,_0x5d3e5c)}],'blockRanges':[{'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':0x0,'endIndex':_0x2d96a5[_0xe777e(0xa6)]-0x1}]});let _0x2125c7=(_0x1083a8=_0x5bedb4['blockRanges'])==null?void 0x0:_0x1083a8[_0xe777e(0x71)](_0x93f428=>_0x93f428['blockId']===_0x29732a);return _0x2125c7&&M(_0x5bedb4,_0x2125c7),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}N(_0x5bedb4,_0x4b9eed,_0x4ed1bf[_0xe777e(0xa3)]),N(_0x5bedb4,_0xff7c45,_0x4ed1bf['BLOCK_START']),he(_0x5bedb4,_0xff7c45,_0x4b9eed+0x1,_0x5d3e5c);let _0x15d7cc={'blockId':_0x29732a,'blockType':_0x34d60f[_0xe777e(0x80)],'startIndex':_0xff7c45,'endIndex':_0x4b9eed+0x1};return _0x5bedb4[_0xe777e(0xab)]=[...(_0x5bcaf2=_0x5bedb4[_0xe777e(0xab)])==null?[]:_0x5bcaf2,_0x15d7cc][_0xe777e(0x81)]((_0x20f0b1,_0x54cbaa)=>_0x20f0b1['startIndex']-_0x54cbaa[_0xe777e(0xe0)]),M(_0x5bedb4,_0x15d7cc),{'nextDocumentData':_0x440a91,'nextMetadata':_0x1d91e7,'cursorOffset':_0xff7c45+0x1};}function oe(_0x33bc82,_0xbac811,_0x564e66){const _0x3f841d=_0x219c77;var _0x5c82e5;((_0x5c82e5=_0x33bc82[_0x3f841d(0x6e)])==null?[]:_0x5c82e5)[_0x3f841d(0x74)](_0x340cbc=>_0x340cbc[_0x3f841d(0xe0)]>_0xbac811&&_0x340cbc['startIndex']<_0x564e66)[_0x3f841d(0xd3)](_0x30153a=>{const _0x33930c=_0x3f841d;var _0x390252;let _0x45cdf8={...(_0x390252=_0x30153a[_0x33930c(0x87)])==null?{}:_0x390252};delete _0x45cdf8[_0x33930c(0xca)],delete _0x45cdf8[_0x33930c(0xcd)],_0x30153a[_0x33930c(0x87)]=_0x45cdf8;});}function se(_0x5c4237,_0x349c8e){const _0x1b5890=_0x219c77;return _0x5c4237==null||_0x349c8e==null||_0x5c4237===_0x349c8e?null:{'startOffset':Math[_0x1b5890(0xdc)](_0x5c4237,_0x349c8e),'endOffset':Math[_0x1b5890(0x66)](_0x5c4237,_0x349c8e)};}function ce(_0x1337e9){const _0x5ab5c9=_0x219c77;return{'nextDocumentData':D(_0x1337e9['documentData']),'nextMetadata':T(_0x1337e9[_0x5ab5c9(0x93)],_0x1337e9[_0x5ab5c9(0x92)],_0x1337e9[_0x5ab5c9(0x84)]),'cursorOffset':0x0};}function le(_0x30a987){const _0x25f580=_0x219c77;var _0x2de818,_0x173fb3;let _0x3f2101=D(_0x30a987[_0x25f580(0x76)]),_0x282caf=O(_0x3f2101),_0x5c0e80=me(_0x282caf,_0x30a987['cursorOffset']);if(!_0x5c0e80)return null;let _0x436bc5=_e(_0x282caf,_0x5c0e80),_0x103bf9=_0x436bc5[_0x436bc5[_0x25f580(0xa6)]-0x1];if(!_0x103bf9||!ve(_0x282caf,_0x5c0e80,_0x103bf9)||_0x30a987[_0x25f580(0xc2)]<_0x103bf9[_0x25f580(0xe0)])return null;let _0x561186=A(_0x282caf,_0x5c0e80,_0x103bf9);if(_0x561186>=_0x5c0e80[_0x25f580(0x90)])return null;_0x282caf[_0x25f580(0x73)]=[_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](0x0,_0x561186),_0x4ed1bf[_0x25f580(0xa3)],_0x282caf[_0x25f580(0x73)]['slice'](_0x561186,_0x5c0e80['endIndex']),_0x282caf[_0x25f580(0x73)][_0x25f580(0x70)](_0x5c0e80['endIndex']+0x1)][_0x25f580(0x77)](''),R(_0x282caf[_0x25f580(0x6e)],_0x561186,_0x5c0e80['endIndex'],0x1),R(_0x282caf[_0x25f580(0xac)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),R(_0x282caf[_0x25f580(0x8a)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),ke(_0x282caf['textRuns'],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xd7)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf[_0x25f580(0xef)],_0x561186,_0x5c0e80[_0x25f580(0x90)],0x1),z(_0x282caf['customDecorations'],_0x561186,_0x5c0e80['endIndex'],0x1),(_0x2de818=_0x282caf[_0x25f580(0xab)])==null||_0x2de818[_0x25f580(0xd3)](_0x51041d=>{const _0x29132e=_0x25f580;_0x51041d===_0x5c0e80||_0x51041d[_0x29132e(0x92)]===_0x5c0e80['blockId']?_0x51041d['endIndex']=_0x561186:_0x51041d[_0x29132e(0xe0)]>=_0x561186&&_0x51041d[_0x29132e(0xe0)]<_0x5c0e80[_0x29132e(0x90)]&&(_0x51041d['startIndex']+=0x1,_0x51041d[_0x29132e(0x90)]+=0x1);});let _0x5d9b5a=_e(_0x282caf,{..._0x5c0e80,'endIndex':_0x561186});_0x5d9b5a[_0x25f580(0xd3)]((_0x1da80f,_0x325f78)=>{const _0x5decce=_0x25f580;var _0x3bdf85;_0x1da80f[_0x5decce(0x87)]={...(_0x3bdf85=_0x1da80f[_0x5decce(0x87)])==null?{}:_0x3bdf85,...E(_0x325f78===0x0,_0x325f78===_0x5d9b5a[_0x5decce(0xa6)]-0x1)};});let _0x470b8f=(_0x173fb3=_0x282caf[_0x25f580(0x6e)])==null?void 0x0:_0x173fb3['find'](_0x249618=>_0x249618[_0x25f580(0xe0)]===_0x561186+0x1);return _0x470b8f&&(_0x470b8f['paragraphStyle']=ge(_0x470b8f['paragraphStyle'])),{'nextDocumentData':_0x3f2101,'cursorOffset':_0x561186+0x1};}function ue(_0x1c47ca){const _0x3592f1=_0x219c77;let _0x17129f=D(_0x1c47ca['documentData']),_0x50d17a=O(_0x17129f),_0x1b683b=me(_0x50d17a,_0x1c47ca[_0x3592f1(0xc2)]);return _0x1b683b&&de(_0x17129f,_0x50d17a,_0x1b683b,_0x1c47ca['cursorOffset'],_0x1c47ca[_0x3592f1(0xbd)])||null;}function de(_0x5c175b,_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e){const _0x416d7b=_0x219c77;let _0x37897f=we(_0x2bdb9c,_0x39bc6d,_0x45b4c4,_0x14c65e);if(!_0x37897f)return null;let _0x2804f4=_0x37897f[_0x416d7b(0x85)]-0x1;return Te(_0x2bdb9c,_0x37897f[_0x416d7b(0xa0)][_0x416d7b(0xe0)],_0x37897f[_0x416d7b(0xa0)]['startIndex']+0x1),{'nextDocumentData':_0x5c175b,'cursorOffset':_0x2804f4};}function fe(_0x45f2dc,_0x20d235){const _0x55be44=_0x219c77;var _0x44961e;return _0x45f2dc==null||(_0x44961e=_0x45f2dc['blockRanges'])==null?void 0x0:_0x44961e[_0x55be44(0x71)](_0x51bbc5=>_0x51bbc5['blockType']===_0x34d60f[_0x55be44(0x80)]&&_0x51bbc5[_0x55be44(0xe0)]<=_0x20d235&&_0x20d235<=_0x51bbc5['endIndex']);}function pe(_0x449ac6){const _0x1921bb=_0x219c77;var _0x4c0498;let _0x146aa8=_0x449ac6[_0x1921bb(0x76)][_0x1921bb(0x6f)];if(!_0x146aa8)return!0x1;let _0x8ff63a=_0x449ac6[_0x1921bb(0xed)]==='left'?_0x449ac6['cursorOffset']-0x1:_0x449ac6[_0x1921bb(0xc2)],_0x1bc5d0=_0x449ac6[_0x1921bb(0xed)]==='right'?_0x449ac6[_0x1921bb(0xc2)]+0x1:_0x8ff63a;return((_0x4c0498=_0x146aa8[_0x1921bb(0xab)])==null?[]:_0x4c0498)['some'](_0x1be12a=>_0x1be12a[_0x1921bb(0xea)]===_0x34d60f[_0x1921bb(0x80)]?_0x8ff63a===_0x1be12a[_0x1921bb(0xe0)]||_0x8ff63a===_0x1be12a[_0x1921bb(0x90)]||_0x1bc5d0===_0x1be12a[_0x1921bb(0xe0)]||_0x1bc5d0===_0x1be12a['endIndex']:!0x1);}function me(_0x570a7c,_0x10ab54){const _0x38c766=_0x219c77;var _0x2f80d9;return(_0x2f80d9=_0x570a7c['blockRanges'])==null?void 0x0:_0x2f80d9[_0x38c766(0x71)](_0x3818ba=>{const _0x4731cd=_0x38c766;let _0x28e843=j(_0x570a7c,_0x3818ba);return _0x3818ba[_0x4731cd(0xea)]===_0x34d60f['CODE']&&_0x3818ba[_0x4731cd(0xe0)]<=_0x10ab54&&_0x10ab54<=_0x28e843+0x2;});}function E(_0x513e92,_0x779d43,_0x2f84ad=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x513e92&&_0x2f84ad?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ie,'fs':0xc}};}function he(_0x56fc75,_0x1ae61e,_0xdbcfc2,_0x33517d=!0x1){const _0x506ffc=_0x219c77;var _0x1d2c0a;let _0x3da2e8=((_0x1d2c0a=_0x56fc75['paragraphs'])==null?[]:_0x1d2c0a)[_0x506ffc(0x74)](_0x2ac8f2=>_0x2ac8f2['startIndex']>_0x1ae61e&&_0x2ac8f2[_0x506ffc(0xe0)]<_0xdbcfc2);_0x3da2e8[_0x506ffc(0xd3)]((_0x26cf19,_0x1db83e)=>{const _0x34ed56=_0x506ffc;var _0x151f54;_0x26cf19['paragraphStyle']={...(_0x151f54=_0x26cf19['paragraphStyle'])==null?{}:_0x151f54,...E(_0x1db83e===0x0,_0x1db83e===_0x3da2e8[_0x34ed56(0xa6)]-0x1,_0x33517d)};});}function ge(_0x532bb9){const _0x5d60f3=_0x219c77;var _0x28a1a3,_0x4097a4;let _0x575a29={..._0x532bb9==null?{}:_0x532bb9};return delete _0x575a29['indentEnd'],delete _0x575a29[_0x5d60f3(0xb3)],delete _0x575a29['spaceAbove'],delete _0x575a29[_0x5d60f3(0xcd)],((_0x28a1a3=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x28a1a3['ff'])===ie&&((_0x4097a4=_0x575a29[_0x5d60f3(0xb0)])==null?void 0x0:_0x4097a4['fs'])===0xc&&delete _0x575a29[_0x5d60f3(0xb0)],_0x575a29;}function _e(_0x52ec27,_0x306a7f){const _0x3692fe=_0x219c77;var _0x293e8c;let _0x20470d=j(_0x52ec27,_0x306a7f);return((_0x293e8c=_0x52ec27[_0x3692fe(0x6e)])==null?[]:_0x293e8c)[_0x3692fe(0x74)](_0x56adf2=>_0x56adf2[_0x3692fe(0xe0)]>_0x306a7f[_0x3692fe(0xe0)]&&_0x56adf2[_0x3692fe(0xe0)]<_0x20470d);}function ve(_0x1c8d06,_0x5ce5ba,_0x2f4f41){const _0x2cb2ee=_0x219c77;let _0x938490=A(_0x1c8d06,_0x5ce5ba,_0x2f4f41),_0x4b9463=_0x1c8d06[_0x2cb2ee(0x73)]['slice'](_0x938490,_0x2f4f41['startIndex']);return Array['from'](_0x4b9463)[_0x2cb2ee(0x96)](_0xf71d78=>_0xf71d78===_0x4ed1bf['BLOCK_START']||_0xf71d78===_0x4ed1bf[_0x2cb2ee(0xa3)]);}function D(_0x34caaa){const _0x391afa=_0x219c77;return _0x3fd2f4[_0x391afa(0xc0)](_0x34caaa);}function O(_0x5c8e62){const _0x2f9148=_0x219c77;if(!_0x5c8e62['body'])throw Error(_0x2f9148(0x97));return _0x5c8e62[_0x2f9148(0x6f)];}function ye(_0x47551e,_0x2418a3,_0x4ea7f0){const _0x182576=_0x219c77;if(_0x2418a3==null||_0x4ea7f0==null){let _0x97b7f=xe(_0x47551e);return{'startOffset':_0x97b7f,'endOffset':_0x97b7f};}let _0x1acdfc=Math[_0x182576(0xdc)](_0x2418a3,_0x4ea7f0),_0x29672b=Math[_0x182576(0x66)](_0x2418a3,_0x4ea7f0);if(_0x1acdfc===_0x29672b){let _0x3c7bb9=be(_0x47551e,_0x1acdfc);return{'startOffset':_0x3c7bb9,'endOffset':_0x3c7bb9};}return Ce(_0x47551e,_0x1acdfc,_0x29672b);}function be(_0x39b05d,_0x39f0b9){const _0x1afea7=_0x219c77;return _0x39f0b9===0x0&&_0x39b05d[_0x1afea7(0x73)][0x0]===_0x4ed1bf[_0x1afea7(0x83)]?0x1:_0x39f0b9;}function xe(_0x2b06e4){const _0x423f45=_0x219c77;return _0x2b06e4[_0x423f45(0x73)][_0x423f45(0xe6)](_0x4ed1bf[_0x423f45(0x7d)])?Math[_0x423f45(0x66)](0x0,_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)]-0x1):_0x2b06e4[_0x423f45(0x73)][_0x423f45(0xa6)];}function Se(_0x1e19f9,_0x15a9e8,_0x3c2e7){const _0x562d17=_0x219c77;var _0xe463c4;let _0x1eaf81=Math['min'](_0x15a9e8,_0x3c2e7),_0x1241c7=Math[_0x562d17(0x66)](_0x15a9e8,_0x3c2e7);return!!((_0xe463c4=_0x1e19f9[_0x562d17(0xd7)])!=null&&_0xe463c4[_0x562d17(0xee)](_0x4265f2=>_0x1eaf81>_0x4265f2[_0x562d17(0xe0)]&&_0x1eaf81<_0x4265f2['endIndex']||_0x1241c7>_0x4265f2['startIndex']&&_0x1241c7<_0x4265f2[_0x562d17(0x90)]||_0x1eaf81<=_0x4265f2[_0x562d17(0xe0)]&&_0x1241c7>=_0x4265f2[_0x562d17(0x90)]));}function Ce(_0x497674,_0x579e0b,_0x536a20){const _0x3b5500=_0x219c77;var _0x46d3b9,_0x4ea261;let _0x139342=[...(_0x46d3b9=_0x497674[_0x3b5500(0x6e)])==null?[]:_0x46d3b9][_0x3b5500(0x81)]((_0x202d21,_0x1c81ba)=>_0x202d21[_0x3b5500(0xe0)]-_0x1c81ba[_0x3b5500(0xe0)]),_0x1de355=_0x139342['find']((_0x3bed3f,_0x37761d)=>(_0x37761d===0x0?0x0:_0x139342[_0x37761d-0x1]['startIndex']+0x1)<=_0x579e0b&&_0x579e0b<=_0x3bed3f['startIndex']),_0x2d5dbc=(_0x4ea261=_0x139342[_0x3b5500(0x71)](_0x8fbe47=>_0x8fbe47['startIndex']>=_0x536a20-0x1))==null?_0x139342[_0x139342['length']-0x1]:_0x4ea261;return{'startOffset':_0x1de355?k(_0x139342,_0x1de355):_0x579e0b,'endOffset':_0x2d5dbc?_0x2d5dbc[_0x3b5500(0xe0)]+0x1:_0x536a20};}function k(_0x365f70,_0x263f92){const _0x392b69=_0x219c77;let _0x42ec70=_0x365f70[_0x392b69(0xaa)](_0x263f92);return _0x42ec70>0x0?_0x365f70[_0x42ec70-0x1][_0x392b69(0xe0)]+0x1:0x0;}function _0x4994(_0x41117,_0x1705cf){_0x41117=_0x41117-0x66;const _0x2a2aa3=_0x2a2a();let _0x499423=_0x2a2aa3[_0x41117];return _0x499423;}function A(_0x38cbf5,_0x977bdb,_0x2318b5){const _0x29c4b3=_0x219c77;var _0x48757e;return Math['max'](k((_0x48757e=_0x38cbf5[_0x29c4b3(0x6e)])==null?[]:_0x48757e,_0x2318b5),_0x977bdb['startIndex']+0x1);}function j(_0x1344e5,_0x35d585){const _0x3106ad=_0x219c77;return _0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585[_0x3106ad(0x90)]:_0x1344e5[_0x3106ad(0x73)][_0x35d585['endIndex']+0x1]===_0x4ed1bf[_0x3106ad(0xa3)]?_0x35d585['endIndex']+0x1:_0x35d585[_0x3106ad(0x90)];}function we(_0x2bb676,_0xb3f65f,_0x560070,_0xf10bb7){const _0x282d5a=_0x219c77;var _0x11f297,_0x210a8;let _0x5c6aea=j(_0x2bb676,_0xb3f65f),_0x472ee9=((_0x11f297=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x11f297)[_0x282d5a(0x71)](_0x42c98a=>_0x42c98a[_0x282d5a(0xe0)]===_0x5c6aea+0x1);if(!_0x472ee9||_0xf10bb7!=null&&_0x472ee9[_0x282d5a(0xe0)]!==_0xf10bb7||_0x560070<_0x5c6aea||_0x560070>_0x472ee9[_0x282d5a(0xe0)]+0x1||_0x2bb676[_0x282d5a(0x73)][_0x472ee9[_0x282d5a(0xe0)]]!==_0x4ed1bf['PARAGRAPH'])return null;let _0x45fe27=k((_0x210a8=_0x2bb676[_0x282d5a(0x6e)])==null?[]:_0x210a8,_0x472ee9),_0x3b2da9=_0x2bb676[_0x282d5a(0x73)]['slice'](_0x45fe27,_0x472ee9['startIndex']);return Array[_0x282d5a(0x79)](_0x3b2da9)[_0x282d5a(0x96)](_0x1839fd=>_0x1839fd===_0x4ed1bf[_0x282d5a(0xa3)])?{'paragraph':_0x472ee9,'endTokenOffset':_0x5c6aea}:null;}function M(_0x3a8f6a,_0x4d174d){const _0x2acff5=_0x219c77;var _0x402166;let _0x2717c3=j(_0x3a8f6a,_0x4d174d),_0x5a564c=_0x3a8f6a['dataStream'][_0x2717c3+0x1];_0x5a564c!==_0x4ed1bf[_0x2acff5(0x7d)]&&_0x5a564c!==void 0x0||N(_0x3a8f6a,_0x2717c3+0x1,_0x4ed1bf[_0x2acff5(0x83)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x44a586(new Set((_0x402166=_0x3a8f6a[_0x2acff5(0x6e)])==null?void 0x0:_0x402166[_0x2acff5(0xf0)](_0x1d4065=>_0x1d4065[_0x2acff5(0xb4)])))}]});}function N(_0x51cb5b,_0x57986c,_0x691d48,_0x3cd4e8={}){const _0x54c9f2=_0x219c77;var _0x526095,_0x39e5e5;if(_0x691d48){if(_0x51cb5b[_0x54c9f2(0x73)]=''+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](0x0,_0x57986c)+_0x691d48+_0x51cb5b[_0x54c9f2(0x73)][_0x54c9f2(0x70)](_0x57986c),Ee(_0x51cb5b,_0x57986c,_0x691d48[_0x54c9f2(0xa6)]),(_0x526095=_0x3cd4e8['paragraphs'])!=null&&_0x526095[_0x54c9f2(0xa6)]){var _0x1b2f68;_0x51cb5b[_0x54c9f2(0x6e)]=[...(_0x1b2f68=_0x51cb5b[_0x54c9f2(0x6e)])==null?[]:_0x1b2f68,..._0x3cd4e8[_0x54c9f2(0x6e)]['map'](_0x4d878d=>({..._0x4d878d,'startIndex':_0x4d878d['startIndex']+_0x57986c}))]['sort']((_0x561467,_0x3f41c4)=>_0x561467[_0x54c9f2(0xe0)]-_0x3f41c4[_0x54c9f2(0xe0)]);}if((_0x39e5e5=_0x3cd4e8[_0x54c9f2(0xab)])!=null&&_0x39e5e5[_0x54c9f2(0xa6)]){var _0x2c7365;_0x51cb5b[_0x54c9f2(0xab)]=[...(_0x2c7365=_0x51cb5b[_0x54c9f2(0xab)])==null?[]:_0x2c7365,..._0x3cd4e8[_0x54c9f2(0xab)][_0x54c9f2(0xf0)](_0x51bc73=>({..._0x51bc73,'startIndex':_0x51bc73[_0x54c9f2(0xe0)]+_0x57986c,'endIndex':_0x51bc73[_0x54c9f2(0x90)]+_0x57986c}))][_0x54c9f2(0x81)]((_0xc71e03,_0x4b95c2)=>_0xc71e03[_0x54c9f2(0xe0)]-_0x4b95c2['startIndex']);}}}function Te(_0x27f232,_0x395520,_0x57abec){const _0x4c6368=_0x219c77;let _0x69e7b5=_0x57abec-_0x395520;_0x27f232[_0x4c6368(0x73)]=''+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](0x0,_0x395520)+_0x27f232[_0x4c6368(0x73)][_0x4c6368(0x70)](_0x57abec),De(_0x27f232,_0x395520,_0x69e7b5);}function Ee(_0x1e90b2,_0x2a10a2,_0x4ec7ea){const _0x22ca78=_0x219c77;_0x1e90b2[_0x22ca78(0x6e)]=P(_0x1e90b2[_0x22ca78(0x6e)],_0x2a10a2,_0x4ec7ea),_0x1e90b2['sectionBreaks']=P(_0x1e90b2[_0x22ca78(0xac)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8a)]=P(_0x1e90b2[_0x22ca78(0x8a)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x8b)]=Oe(_0x1e90b2[_0x22ca78(0x8b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xd7)]=I(_0x1e90b2['tables'],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xef)]=I(_0x1e90b2[_0x22ca78(0xef)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0x9b)]=I(_0x1e90b2[_0x22ca78(0x9b)],_0x2a10a2,_0x4ec7ea),_0x1e90b2[_0x22ca78(0xab)]=I(_0x1e90b2['blockRanges'],_0x2a10a2,_0x4ec7ea);}function De(_0x3ea248,_0x2504bc,_0x1e4aa2){const _0x10da64=_0x219c77;var _0x4dd940,_0x1c4218;_0x3ea248[_0x10da64(0x6e)]=F(_0x3ea248[_0x10da64(0x6e)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xac)]=F(_0x3ea248[_0x10da64(0xac)],_0x2504bc,_0x1e4aa2),_0x3ea248['customBlocks']=F(_0x3ea248['customBlocks'],_0x2504bc,_0x1e4aa2),_0x3ea248['textRuns']=(_0x4dd940=L((_0x1c4218=_0x3ea248[_0x10da64(0x8b)])==null?void 0x0:_0x1c4218[_0x10da64(0xf0)](_0x3f40db=>({..._0x3f40db,'startIndex':_0x3f40db['st'],'endIndex':_0x3f40db['ed']})),_0x2504bc,_0x1e4aa2))==null?void 0x0:_0x4dd940['map'](_0x5d7506=>{let {startIndex:_0x188698,endIndex:_0x4e6a15,..._0x42e0e6}=_0x5d7506;return{..._0x42e0e6,'st':_0x188698,'ed':_0x4e6a15};}),_0x3ea248[_0x10da64(0xd7)]=L(_0x3ea248[_0x10da64(0xd7)],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xef)]=L(_0x3ea248['customRanges'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0x9b)]=L(_0x3ea248['customDecorations'],_0x2504bc,_0x1e4aa2),_0x3ea248[_0x10da64(0xab)]=L(_0x3ea248[_0x10da64(0xab)],_0x2504bc,_0x1e4aa2);}function P(_0x338bf3,_0x50f22b,_0x7499bf){const _0x42ec9b=_0x219c77;return _0x338bf3==null?void 0x0:_0x338bf3['map'](_0x3378ac=>_0x3378ac[_0x42ec9b(0xe0)]>=_0x50f22b?{..._0x3378ac,'startIndex':_0x3378ac[_0x42ec9b(0xe0)]+_0x7499bf}:_0x3378ac);}function F(_0x3a82e0,_0x4eff07,_0x3c1141){const _0x2321a8=_0x219c77;let _0x323985=_0x4eff07+_0x3c1141;return _0x3a82e0==null?void 0x0:_0x3a82e0[_0x2321a8(0xf0)](_0x469624=>_0x469624[_0x2321a8(0xe0)]>=_0x4eff07&&_0x469624[_0x2321a8(0xe0)]<_0x323985?null:_0x469624[_0x2321a8(0xe0)]>=_0x323985?{..._0x469624,'startIndex':_0x469624[_0x2321a8(0xe0)]-_0x3c1141}:_0x469624)['filter'](_0x5eb63e=>_0x5eb63e!=null);}function Oe(_0x218590,_0x5e802e,_0x3f8eaf){const _0x4b07df=_0x219c77;return _0x218590==null?void 0x0:_0x218590[_0x4b07df(0xf0)](_0x34ac49=>_0x34ac49['st']>=_0x5e802e?{..._0x34ac49,'st':_0x34ac49['st']+_0x3f8eaf,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49['ed']>_0x5e802e?{..._0x34ac49,'ed':_0x34ac49['ed']+_0x3f8eaf}:_0x34ac49);}function I(_0x206fa4,_0x68a98c,_0x1ecd5b){const _0x447f13=_0x219c77;return _0x206fa4==null?void 0x0:_0x206fa4[_0x447f13(0xf0)](_0x117e80=>_0x117e80[_0x447f13(0xe0)]>=_0x68a98c?{..._0x117e80,'startIndex':_0x117e80[_0x447f13(0xe0)]+_0x1ecd5b,'endIndex':_0x117e80['endIndex']+_0x1ecd5b}:_0x117e80[_0x447f13(0x90)]>=_0x68a98c?{..._0x117e80,'endIndex':_0x117e80[_0x447f13(0x90)]+_0x1ecd5b}:_0x117e80);}function L(_0x54af54,_0x4fcfb5,_0x20535f){const _0x4c119c=_0x219c77;let _0x13fde0=_0x4fcfb5+_0x20535f;return _0x54af54==null?void 0x0:_0x54af54[_0x4c119c(0xf0)](_0x1975ab=>_0x1975ab[_0x4c119c(0xe0)]>=_0x4fcfb5&&_0x1975ab[_0x4c119c(0x90)]<_0x13fde0?null:_0x1975ab[_0x4c119c(0xe0)]>=_0x13fde0?{..._0x1975ab,'startIndex':_0x1975ab[_0x4c119c(0xe0)]-_0x20535f,'endIndex':_0x1975ab['endIndex']-_0x20535f}:_0x1975ab[_0x4c119c(0x90)]>=_0x4fcfb5?{..._0x1975ab,'startIndex':_0x1975ab['startIndex']<_0x4fcfb5?_0x1975ab['startIndex']:_0x4fcfb5,'endIndex':Math[_0x4c119c(0x66)](_0x4fcfb5,_0x1975ab[_0x4c119c(0x90)]-_0x20535f)}:_0x1975ab)[_0x4c119c(0x74)](_0xf87e17=>_0xf87e17!=null);}function R(_0x1b5513,_0x4daeb8,_0x5c8380,_0x78296a){const _0x25fd4c=_0x219c77;_0x1b5513==null||_0x1b5513[_0x25fd4c(0xd3)](_0x5376b9=>{const _0x2e9748=_0x25fd4c;_0x5376b9[_0x2e9748(0xe0)]>=_0x4daeb8&&_0x5376b9[_0x2e9748(0xe0)]<_0x5c8380&&(_0x5376b9[_0x2e9748(0xe0)]+=_0x78296a);});}function ke(_0x43b170,_0x4c2c6c,_0x4f7b8c,_0x22f436){const _0x2bb4bc=_0x219c77;_0x43b170==null||_0x43b170[_0x2bb4bc(0xd3)](_0x5e4910=>{_0x5e4910['st']>=_0x4c2c6c&&_0x5e4910['st']<_0x4f7b8c?(_0x5e4910['st']+=_0x22f436,_0x5e4910['ed']+=_0x22f436):_0x5e4910['ed']>_0x4c2c6c&&_0x5e4910['ed']<_0x4f7b8c&&(_0x5e4910['ed']+=_0x22f436);});}function z(_0x589596,_0x16d280,_0x17c3b6,_0x3cb343){const _0x525d7b=_0x219c77;_0x589596==null||_0x589596[_0x525d7b(0xd3)](_0xe1fe85=>{const _0x49def8=_0x525d7b;_0xe1fe85[_0x49def8(0xe0)]>=_0x16d280&&_0xe1fe85['startIndex']<_0x17c3b6?(_0xe1fe85['startIndex']+=_0x3cb343,_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343):_0xe1fe85[_0x49def8(0x90)]>_0x16d280&&_0xe1fe85[_0x49def8(0x90)]<_0x17c3b6&&(_0xe1fe85[_0x49def8(0x90)]+=_0x3cb343);});}function B(_0x32eabd){'@babel/helpers - typeof';const _0x5a5f96=_0x219c77;return B=typeof Symbol==_0x5a5f96(0xd5)&&typeof Symbol[_0x5a5f96(0xc7)]=='symbol'?function(_0x500139){return typeof _0x500139;}:function(_0x4076d8){const _0x1ddac3=_0x5a5f96;return _0x4076d8&&typeof Symbol==_0x1ddac3(0xd5)&&_0x4076d8['constructor']===Symbol&&_0x4076d8!==Symbol[_0x1ddac3(0x86)]?_0x1ddac3(0xdd):typeof _0x4076d8;},B(_0x32eabd);}function Ae(_0x29d9cf,_0x564c9c){const _0x24890f=_0x219c77;if(B(_0x29d9cf)!='object'||!_0x29d9cf)return _0x29d9cf;var _0x2b67e4=_0x29d9cf[Symbol['toPrimitive']];if(_0x2b67e4!==void 0x0){var _0x46bc0a=_0x2b67e4[_0x24890f(0x94)](_0x29d9cf,_0x564c9c||_0x24890f(0xb6));if(B(_0x46bc0a)!=_0x24890f(0xe2))return _0x46bc0a;throw TypeError(_0x24890f(0xc5));}return(_0x564c9c===_0x24890f(0xbf)?String:Number)(_0x29d9cf);}function je(_0x1c91a3){const _0x407eb3=_0x219c77;var _0x5a7c8c=Ae(_0x1c91a3,_0x407eb3(0xbf));return B(_0x5a7c8c)==_0x407eb3(0xdd)?_0x5a7c8c:_0x5a7c8c+'';}function V(_0x564431,_0x9799a2,_0x95558b){return(_0x9799a2=je(_0x9799a2))in _0x564431?Object['defineProperty'](_0x564431,_0x9799a2,{'value':_0x95558b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x564431[_0x9799a2]=_0x95558b,_0x564431;}var H=class extends _0x5107f0{constructor(..._0x2f4e4d){const _0x1d47d8=_0x219c77;super(..._0x2f4e4d),V(this,_0x1d47d8(0xcf),new Map()),V(this,_0x1d47d8(0x9a),new _0x2f75e2()),V(this,'change$',this[_0x1d47d8(0x9a)]['asObservable']());}[_0x219c77(0xc3)](_0x4eaf86,_0x1f972d){const _0x554f74=_0x219c77;return w(this[_0x554f74(0xcf)][_0x554f74(0xda)](_0x4eaf86))[_0x554f74(0xe7)][_0x1f972d];}[_0x219c77(0xd4)](_0x216631,_0x350b30,_0x4892a9){const _0x2bb5d6=_0x219c77;this[_0x2bb5d6(0xd1)](_0x216631,_0x350b30,T(this[_0x2bb5d6(0xcf)][_0x2bb5d6(0xda)](_0x216631),_0x350b30,_0x4892a9));}[_0x219c77(0x9d)](_0xcf21d8,_0x56effb){const _0x457e1c=_0x219c77;this[_0x457e1c(0xd1)](_0xcf21d8,_0x56effb,re(this[_0x457e1c(0xcf)][_0x457e1c(0xda)](_0xcf21d8),_0x56effb));}[_0x219c77(0xbb)](_0x395d66){const _0xa4bc47=_0x219c77;return w(this[_0xa4bc47(0xcf)][_0xa4bc47(0xda)](_0x395d66));}[_0x219c77(0x6a)](_0x1677b0,_0x3dd10e){const _0x182c15=_0x219c77;this[_0x182c15(0xcf)]['set'](_0x1677b0,w(_0x3dd10e)),this[_0x182c15(0x9a)]['next']({'unitId':_0x1677b0});}[_0x219c77(0xa7)](_0x570e80){const _0x1b5f22=_0x219c77;this[_0x1b5f22(0xcf)][_0x1b5f22(0xe4)](_0x570e80),this[_0x1b5f22(0x9a)][_0x1b5f22(0x99)]({'unitId':_0x570e80});}['dispose'](){const _0xacb6e1=_0x219c77;super[_0xacb6e1(0xcc)](),this['_resources'][_0xacb6e1(0xce)](),this[_0xacb6e1(0x9a)][_0xacb6e1(0x78)]();}['_setResource'](_0x5822c5,_0x415a38,_0x568370){const _0x224a8f=_0x219c77;this[_0x224a8f(0xcf)][_0x224a8f(0x9f)](_0x5822c5,_0x568370),this['_change$'][_0x224a8f(0x99)]({'unitId':_0x5822c5,'blockId':_0x415a38});}};const Me={'id':_0x219c77(0xa1),'type':_0x4ff736[_0x219c77(0x91)],'handler':_0x2738d7=>{const _0x366320=_0x219c77;let _0x48509b=Le(_0x2738d7);if(_0x48509b)return _0x2738d7[_0x366320(0xda)](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x48509b[_0x366320(0x7f)],'endOffset':_0x48509b[_0x366320(0xd8)],'unitId':_0x48509b[_0x366320(0xcb)]});let _0x36886d=Re(_0x2738d7);if(!_0x36886d)return!0x1;let _0x280c96=_0x36886d[_0x366320(0xe0)]+0x1;return _0x2738d7['get'](_0x37df2c)[_0x366320(0xd9)](U['id'],{'startOffset':_0x280c96,'endOffset':_0x280c96});}},Ne={'id':_0x219c77(0x98),'type':_0x4ff736[_0x219c77(0x91)],'handler':()=>!0x0},U={'id':_0x219c77(0xa9),'type':_0x4ff736['COMMAND'],'handler':(_0x58d320,_0x30fb75)=>{const _0x102ff0=_0x219c77;var _0x23ac4c,_0x3edff8,_0x22d189;let _0x4db182=W(_0x58d320,_0x30fb75==null?void 0x0:_0x30fb75['unitId']);if(!_0x4db182)return!0x1;let _0x287d2c=G(_0x58d320),_0x34365b=ae({'blockId':(_0x23ac4c=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x92)])==null?_0x12ff78(0x6):_0x23ac4c,'config':_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x84)],'documentData':_0x4db182[_0x102ff0(0x8e)],'endOffset':(_0x3edff8=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0xd8)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0xd8)]:_0x3edff8,'metadata':_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0xbb)](_0x4db182[_0x102ff0(0xcb)]),'startOffset':(_0x22d189=_0x30fb75==null?void 0x0:_0x30fb75[_0x102ff0(0x7f)])==null?_0x287d2c==null?void 0x0:_0x287d2c[_0x102ff0(0x7f)]:_0x22d189}),_0x599ff5=q(_0x4db182['commandService'],_0x4db182[_0x102ff0(0xcb)],_0x4db182[_0x102ff0(0x8e)],_0x34365b['nextDocumentData'],_0x34365b[_0x102ff0(0xc2)]);return _0x599ff5&&_0x34365b['nextMetadata']&&_0x4db182[_0x102ff0(0x7b)][_0x102ff0(0x6a)](_0x4db182[_0x102ff0(0xcb)],_0x34365b[_0x102ff0(0x8c)]),_0x599ff5;}},Pe={'id':_0x219c77(0xb5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x10877a,_0x37d9c8)=>{const _0x3f2e87=_0x219c77;if(!_0x37d9c8)return!0x1;let _0x5f2e44=W(_0x10877a,_0x37d9c8[_0x3f2e87(0xcb)]);if(!_0x5f2e44)return!0x1;let _0xb73a31=ce({'blockId':_0x37d9c8['blockId'],'config':_0x37d9c8[_0x3f2e87(0x84)],'documentData':_0x5f2e44[_0x3f2e87(0x8e)],'metadata':_0x5f2e44[_0x3f2e87(0x7b)]['serialize'](_0x5f2e44[_0x3f2e87(0xcb)])});return _0xb73a31[_0x3f2e87(0x8c)]&&_0x5f2e44[_0x3f2e87(0x7b)]['deserialize'](_0x5f2e44[_0x3f2e87(0xcb)],_0xb73a31[_0x3f2e87(0x8c)]),!0x0;}},Fe={'id':_0x219c77(0xe5),'type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x4a82fa,_0x284006)=>{const _0x328b80=_0x219c77;var _0xefa2ec,_0x8090f3;let _0x40dd71=W(_0x4a82fa,_0x284006==null?void 0x0:_0x284006[_0x328b80(0xcb)]);if(!_0x40dd71)return!0x1;let _0x162e1e=(_0xefa2ec=_0x284006==null?void 0x0:_0x284006[_0x328b80(0xc2)])==null?(_0x8090f3=G(_0x4a82fa))==null?void 0x0:_0x8090f3[_0x328b80(0x7f)]:_0xefa2ec;if(_0x162e1e==null)return!0x1;let _0x5897b6=le({'cursorOffset':_0x162e1e,'documentData':_0x40dd71[_0x328b80(0x8e)]});return _0x5897b6?q(_0x40dd71[_0x328b80(0xc1)],_0x40dd71[_0x328b80(0xcb)],_0x40dd71['previousDocumentData'],_0x5897b6[_0x328b80(0x8f)],_0x5897b6[_0x328b80(0xc2)]):!0x1;}},Ie={'id':'docs-code.command.cancel-empty-paragraph','type':_0x4ff736[_0x219c77(0x91)],'handler':(_0x131f09,_0xed3cd6)=>{const _0xb17efa=_0x219c77;var _0xaa5934,_0x5543bb;let _0x5907dd=W(_0x131f09,_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xcb)]);if(!_0x5907dd)return!0x1;let _0x7aee23=(_0xaa5934=_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xc2)])==null?(_0x5543bb=G(_0x131f09))==null?void 0x0:_0x5543bb['startOffset']:_0xaa5934;if(_0x7aee23==null)return!0x1;let _0x24a917=ue({'cursorOffset':_0x7aee23,'documentData':_0x5907dd['previousDocumentData'],'paragraphStartIndex':_0xed3cd6==null?void 0x0:_0xed3cd6[_0xb17efa(0xbd)]});return _0x24a917?q(_0x5907dd[_0xb17efa(0xc1)],_0x5907dd[_0xb17efa(0xcb)],_0x5907dd[_0xb17efa(0x8e)],_0x24a917['nextDocumentData'],_0x24a917[_0xb17efa(0xc2)]):!0x1;}};function W(_0x1831e0,_0x2665ed){const _0x2c5ef1=_0x219c77;let _0x3ede72=_0x1831e0[_0x2c5ef1(0xda)](_0x595ab8),_0xfe163b=_0x2665ed?_0x3ede72[_0x2c5ef1(0x82)](_0x2665ed):_0x3ede72[_0x2c5ef1(0x89)](_0x47101f[_0x2c5ef1(0xe3)]);return _0xfe163b?{'commandService':_0x1831e0[_0x2c5ef1(0xda)](_0x37df2c),'model':_0x1831e0[_0x2c5ef1(0xda)](H),'previousDocumentData':_0xfe163b['getSnapshot'](),'unitId':_0xfe163b[_0x2c5ef1(0xbc)]()}:null;}function G(_0x562e10){const _0x473226=_0x219c77;var _0x5ba7cd;return(_0x5ba7cd=_0x562e10[_0x473226(0xda)](_0x41c563)[_0x473226(0x7c)]())==null?void 0x0:_0x5ba7cd[0x0];}function Le(_0x3bdd49){const _0x1e3ccb=_0x219c77;var _0x56d65c;let _0x2fc5e5=(_0x56d65c=_0x3bdd49[_0x1e3ccb(0xda)](_0x595ab8)[_0x1e3ccb(0x89)](_0x47101f[_0x1e3ccb(0xe3)]))==null?void 0x0:_0x56d65c[_0x1e3ccb(0xbc)]();try{return _0x3bdd49[_0x1e3ccb(0xda)](_0x5727fa)[_0x1e3ccb(0xbe)](_0x2fc5e5);}catch{return null;}}function Re(_0xf840f){const _0x37a7aa=_0x219c77;var _0x30193b,_0xecbf3f,_0xf7d6de;let _0x51d53a=G(_0xf840f);if(!_0x51d53a)return null;let _0x421317=_0xf840f[_0x37a7aa(0xda)](_0x595ab8)[_0x37a7aa(0x89)](_0x47101f[_0x37a7aa(0xe3)]),_0x3d3494=_0x421317==null?void 0x0:_0x421317[_0x37a7aa(0x9c)]();return _0x3d3494?(_0x30193b=_0x52d7f9['range']['getParagraphsInRange'](_0x51d53a,(_0xecbf3f=_0x3d3494[_0x37a7aa(0x6e)])==null?[]:_0xecbf3f,(_0xf7d6de=_0x3d3494['dataStream'])==null?'':_0xf7d6de)[0x0])==null?null:_0x30193b:null;}function ze(_0x593c2c,_0xc541c){const _0x4a7b70=_0x219c77;var _0x1fed2e,_0xf4faf7,_0x46af51,_0x5352d7,_0x4b78a7,_0x57f04e,_0x9d5867,_0x7079be,_0x16d43e,_0x36a153,_0x1efdf8,_0x21e3d7,_0x153f4f,_0x2899e7,_0x2dfbb0,_0x2a4832,_0x3a6007,_0x1894b7;let _0x5a903f=_0x54cd09[_0x4a7b70(0xae)]();return[K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x73)],(_0x1fed2e=_0x593c2c['body'])==null?void 0x0:_0x1fed2e[_0x4a7b70(0x73)],(_0xf4faf7=_0xc541c['body'])==null?void 0x0:_0xf4faf7[_0x4a7b70(0x73)]),K(_0x5a903f,[_0x4a7b70(0x6f),'paragraphs'],(_0x46af51=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x46af51[_0x4a7b70(0x6e)],(_0x5352d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x5352d7[_0x4a7b70(0x6e)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xac)],(_0x4b78a7=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x4b78a7[_0x4a7b70(0xac)],(_0x57f04e=_0xc541c['body'])==null?void 0x0:_0x57f04e[_0x4a7b70(0xac)]),K(_0x5a903f,[_0x4a7b70(0x6f),'textRuns'],(_0x9d5867=_0x593c2c['body'])==null?void 0x0:_0x9d5867[_0x4a7b70(0x8b)],(_0x7079be=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x7079be[_0x4a7b70(0x8b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x8a)],(_0x16d43e=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x16d43e[_0x4a7b70(0x8a)],(_0x36a153=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x36a153[_0x4a7b70(0x8a)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xef)],(_0x1efdf8=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1efdf8['customRanges'],(_0x21e3d7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x21e3d7[_0x4a7b70(0xef)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0x9b)],(_0x153f4f=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x153f4f['customDecorations'],(_0x2899e7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2899e7[_0x4a7b70(0x9b)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xd7)],(_0x2dfbb0=_0x593c2c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2dfbb0[_0x4a7b70(0xd7)],(_0x2a4832=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x2a4832[_0x4a7b70(0xd7)]),K(_0x5a903f,[_0x4a7b70(0x6f),_0x4a7b70(0xab)],(_0x3a6007=_0x593c2c['body'])==null?void 0x0:_0x3a6007[_0x4a7b70(0xab)],(_0x1894b7=_0xc541c[_0x4a7b70(0x6f)])==null?void 0x0:_0x1894b7[_0x4a7b70(0xab)])][_0x4a7b70(0x74)](Boolean)[_0x4a7b70(0xb1)]((_0x5731e6,_0x135d22)=>_0x54cd09['compose'](_0x5731e6,_0x135d22),null);}function K(_0x426755,_0x34c781,_0x4c4095,_0x3c9bc0){const _0x3f92f2=_0x219c77;return _0x3fd2f4[_0x3f92f2(0xd2)](_0x4c4095,_0x3c9bc0)?null:_0x426755[_0x3f92f2(0xad)](_0x34c781,_0x4c4095,_0x3c9bc0);}function q(_0x442045,_0x1e1805,_0x24eba0,_0x26f75f,_0x124e86){const _0x3f22d6=_0x219c77;let _0x4772c5=ze(_0x24eba0,_0x26f75f);return _0x4772c5?!!_0x442045[_0x3f22d6(0xd9)](_0x40cd82['id'],{'unitId':_0x1e1805,'actions':_0x4772c5,'textRanges':[{'startOffset':_0x124e86,'endOffset':_0x124e86,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}const J=_0x219c77(0xb9);var Be=_0x219c77(0xd0),Ve=_0x219c77(0xb8);const Y={};function X(_0x285c62,_0x5c8745){return function(_0x5227f6,_0xcc5c68){_0x5c8745(_0x5227f6,_0xcc5c68,_0x285c62);};}function Z(_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81){const _0x1a02ce=_0x219c77;var _0x17aa97=arguments['length'],_0x27b880=_0x17aa97<0x3?_0x1d7686:_0x407e81===null?_0x407e81=Object['getOwnPropertyDescriptor'](_0x1d7686,_0xdda2bb):_0x407e81,_0x3cf8e6;if(typeof Reflect=='object'&&typeof Reflect[_0x1a02ce(0x9e)]==_0x1a02ce(0xd5))_0x27b880=Reflect['decorate'](_0x73c503,_0x1d7686,_0xdda2bb,_0x407e81);else{for(var _0x468cee=_0x73c503['length']-0x1;_0x468cee>=0x0;_0x468cee--)(_0x3cf8e6=_0x73c503[_0x468cee])&&(_0x27b880=(_0x17aa97<0x3?_0x3cf8e6(_0x27b880):_0x17aa97>0x3?_0x3cf8e6(_0x1d7686,_0xdda2bb,_0x27b880):_0x3cf8e6(_0x1d7686,_0xdda2bb))||_0x27b880);}return _0x17aa97>0x3&&_0x27b880&&Object[_0x1a02ce(0xe1)](_0x1d7686,_0xdda2bb,_0x27b880),_0x27b880;}let Q=class extends _0x5107f0{constructor(_0x433373,_0x309058){const _0x4da57c=_0x219c77;super(),this['_resourceManagerService']=_0x433373,this[_0x4da57c(0xc8)]=_0x309058,this[_0x4da57c(0xa4)]();}[_0x219c77(0xa4)](){const _0x1c6174=_0x219c77;this[_0x1c6174(0x72)](this['_resourceManagerService'][_0x1c6174(0x69)]({'pluginName':J,'businesses':[_0x47101f['UNIVER_DOC']],'toJson':_0x4df0ca=>JSON[_0x1c6174(0xb2)](this['_docsCodeModel']['serialize'](_0x4df0ca)),'parseJson':_0x46ebd5=>w(JSON[_0x1c6174(0x6c)](_0x46ebd5)),'onLoad':(_0x36f431,_0x1c12b2)=>this[_0x1c6174(0xc8)][_0x1c6174(0x6a)](_0x36f431,_0x1c12b2),'onUnLoad':_0x21da33=>this[_0x1c6174(0xc8)]['removeUnit'](_0x21da33)}));}};Q=Z([X(0x0,_0x440e2f),X(0x1,_0x422fcc(H))],Q);function _0x2a2a(){const _0x382717=['symbol','_injector','registerCommand','startIndex','defineProperty','object','UNIVER_DOC','delete','docs-code.command.exit','endsWith','codes','187nfWdBo','_commandService','blockType','setConfig','6937itKUSD','direction','some','customRanges','map','entries','max','onStarting','type','registerPluginResource','deserialize','3702258wmLZyj','parse','add','paragraphs','body','slice','find','disposeWithMe','dataStream','filter','javascript','documentData','join','complete','from','version','model','getTextRanges','SECTION_BREAK','1110032lkUmMy','startOffset','CODE','sort','getUniverDocInstance','PARAGRAPH','config','endTokenOffset','prototype','paragraphStyle','363JaCEmg','getCurrentUnitOfType','customBlocks','textRuns','nextMetadata','monospace','previousDocumentData','nextDocumentData','endIndex','COMMAND','blockId','metadata','call','packageName','every','Document\x20body\x20is\x20required','docs-code.command.consume-boundary-delete','next','_change$','customDecorations','getBody','removeCode','decorate','set','paragraph','docs-code.command.insert-below','_configService','BLOCK_END','_initResource','934130DRFSrj','length','removeUnit','88541QXqGix','docs-code.command.insert','indexOf','blockRanges','sectionBreaks','replaceOp','getInstance','3896qgISxu','textStyle','reduce','stringify','indentStart','paragraphId','docs-code.command.update','default','6012dqyHmE','1.0.0-insiders.20260701-0ef51b0','DOC_CODE_PLUGIN','pluginName','serialize','getUnitId','paragraphStartIndex','consumeInsertRange','string','deepClone','commandService','cursorOffset','getCodeConfig','_config','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','118056aWZQDH','iterator','_docsCodeModel','5ScxZsl','spaceAbove','unitId','dispose','spaceBelow','clear','_resources','@univerjs-pro/docs-code','_setResource','diffValue','forEach','setCodeConfig','function','docs-code.config','tables','endOffset','syncExecuteCommand','get','BLOCK_START','min'];_0x2a2a=function(){return _0x382717;};return _0x2a2a();}let $=class extends _0x4de551{constructor(_0x6b7fbe=Y,_0x76ea31,_0x14e177,_0x288b4c){const _0xcb864e=_0x219c77;super(),this[_0xcb864e(0xc4)]=_0x6b7fbe,this[_0xcb864e(0xde)]=_0x76ea31,this[_0xcb864e(0xe9)]=_0x14e177,this['_configService']=_0x288b4c;let {..._0x46a0c8}=_0xa8f50a({},Y,this[_0xcb864e(0xc4)]);this[_0xcb864e(0xa2)][_0xcb864e(0xeb)](_0xcb864e(0xd6),_0x46a0c8);}[_0x219c77(0x67)](){const _0xc80b6a=_0x219c77;this[_0xc80b6a(0xde)][_0xc80b6a(0x6d)]([H]),this['_injector'][_0xc80b6a(0x6d)]([Q]),this[_0xc80b6a(0xde)]['get'](H),this[_0xc80b6a(0xde)][_0xc80b6a(0xda)](Q),[U,Me,Pe,Fe,Ie,Ne][_0xc80b6a(0xd3)](_0xfa5925=>this[_0xc80b6a(0x72)](this[_0xc80b6a(0xe9)][_0xc80b6a(0xdf)](_0xfa5925)));}};V($,_0x219c77(0xba),J),V($,_0x219c77(0x95),Be),V($,_0x219c77(0x7a),Ve),V($,_0x219c77(0x68),_0x47101f['UNIVER_DOC']),$=Z([_0x268121(_0x48da71,_0x2ecad0),X(0x1,_0x422fcc(_0x3af657)),X(0x2,_0x37df2c),X(0x3,_0x431f58)],$);export{S as DEFAULT_CODE_CONFIG,J as DOCS_CODE_PLUGIN,Ie as DocsCodeCancelEmptyParagraphCommand,Ne as DocsCodeConsumeBoundaryDeleteCommand,Fe as DocsCodeExitCommand,Me as DocsCodeInsertBelowCommand,U as DocsCodeInsertCommand,H as DocsCodeModel,Pe as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,ue as buildCancelEmptyCodeParagraphActions,le as buildExitCodeActions,ae as buildInsertCodeActions,ce as buildUpdateCodeActions,fe as findCodeRangeAtOffset,pe as isCodeBoundaryDelete,C as normalizeDocsCodeConfig};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2fc9b3,_0x51ecee){var _0x49d87e=_0x261f,_0x5a9b9e=_0x2fc9b3();while(!![]){try{var _0x30c347=parseInt(_0x49d87e(0xce))/0x1*(parseInt(_0x49d87e(0xf5))/0x2)+-parseInt(_0x49d87e(0x109))/0x3*(-parseInt(_0x49d87e(0xd6))/0x4)+-parseInt(_0x49d87e(0xeb))/0x5*(-parseInt(_0x49d87e(0x108))/0x6)+parseInt(_0x49d87e(0x11c))/0x7+parseInt(_0x49d87e(0x100))/0x8+parseInt(_0x49d87e(0xe0))/0x9+-parseInt(_0x49d87e(0xd5))/0xa;if(_0x30c347===_0x51ecee)break;else _0x5a9b9e['push'](_0x5a9b9e['shift']());}catch(_0x544251){_0x5a9b9e['push'](_0x5a9b9e['shift']());}}}(_0x401d,0xa34f9),function(_0x2bf6fd,_0x162804){var _0xaa1e24=_0x261f;typeof exports=='object'&&typeof module<'u'?_0x162804(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0xaa1e24(0xd7)&&define[_0xaa1e24(0x113)]?define([_0xaa1e24(0xe1),_0xaa1e24(0xd9),'@univerjs/core','@univerjs/docs/facade'],_0x162804):(_0x2bf6fd=typeof globalThis<'u'?globalThis:_0x2bf6fd||self,_0x162804(_0x2bf6fd[_0xaa1e24(0x110)]={},_0x2bf6fd['UniverProDocsCode'],_0x2bf6fd[_0xaa1e24(0x105)],_0x2bf6fd[_0xaa1e24(0xea)]));}(this,function(_0x332042,_0xd2c11,_0xeebcc9,_0x10dfdf){var _0x3f7d9c=_0x261f;Object[_0x3f7d9c(0x119)](_0x332042,Symbol[_0x3f7d9c(0xf4)],{'value':_0x3f7d9c(0x103)});function _0x42f57b(_0x26c034){'@babel/helpers - typeof';var _0x3eb260=_0x3f7d9c;return _0x42f57b=typeof Symbol==_0x3eb260(0xd7)&&typeof Symbol['iterator']==_0x3eb260(0xf2)?function(_0x5c26db){return typeof _0x5c26db;}:function(_0x4c9c45){var _0x1ba7f1=_0x3eb260;return _0x4c9c45&&typeof Symbol==_0x1ba7f1(0xd7)&&_0x4c9c45[_0x1ba7f1(0xd4)]===Symbol&&_0x4c9c45!==Symbol[_0x1ba7f1(0x118)]?_0x1ba7f1(0xf2):typeof _0x4c9c45;},_0x42f57b(_0x26c034);}function _0x151441(_0x537ad1,_0x511c4d){var _0x5e6a22=_0x3f7d9c;if(_0x42f57b(_0x537ad1)!=_0x5e6a22(0xec)||!_0x537ad1)return _0x537ad1;var _0x5ac59c=_0x537ad1[Symbol[_0x5e6a22(0xee)]];if(_0x5ac59c!==void 0x0){var _0x3742ec=_0x5ac59c[_0x5e6a22(0xe7)](_0x537ad1,_0x511c4d||_0x5e6a22(0xe4));if(_0x42f57b(_0x3742ec)!=_0x5e6a22(0xec))return _0x3742ec;throw TypeError(_0x5e6a22(0xcb));}return(_0x511c4d===_0x5e6a22(0x10f)?String:Number)(_0x537ad1);}function _0x646ca4(_0x1fc35e){var _0x4e9529=_0x3f7d9c,_0x78682a=_0x151441(_0x1fc35e,_0x4e9529(0x10f));return _0x42f57b(_0x78682a)==_0x4e9529(0xf2)?_0x78682a:_0x78682a+'';}function _0x493317(_0x1ac5f9,_0x2b2250,_0x4dbcd9){var _0xc9c690=_0x3f7d9c;return(_0x2b2250=_0x646ca4(_0x2b2250))in _0x1ac5f9?Object[_0xc9c690(0x119)](_0x1ac5f9,_0x2b2250,{'value':_0x4dbcd9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ac5f9[_0x2b2250]=_0x4dbcd9,_0x1ac5f9;}function _0xe18890(_0x5545ad,_0x5ac693){return function(_0x4d3524,_0x133a7b){_0x5ac693(_0x4d3524,_0x133a7b,_0x5545ad);};}function _0x27454e(_0x20c443,_0x5331be,_0x331b61,_0xca4dd2){var _0x134248=_0x3f7d9c,_0x3ec866=arguments['length'],_0x43c383=_0x3ec866<0x3?_0x5331be:_0xca4dd2===null?_0xca4dd2=Object[_0x134248(0xd8)](_0x5331be,_0x331b61):_0xca4dd2,_0x223dca;if(typeof Reflect==_0x134248(0xec)&&typeof Reflect[_0x134248(0xe2)]==_0x134248(0xd7))_0x43c383=Reflect[_0x134248(0xe2)](_0x20c443,_0x5331be,_0x331b61,_0xca4dd2);else{for(var _0x428b6b=_0x20c443[_0x134248(0x10c)]-0x1;_0x428b6b>=0x0;_0x428b6b--)(_0x223dca=_0x20c443[_0x428b6b])&&(_0x43c383=(_0x3ec866<0x3?_0x223dca(_0x43c383):_0x3ec866>0x3?_0x223dca(_0x5331be,_0x331b61,_0x43c383):_0x223dca(_0x5331be,_0x331b61))||_0x43c383);}return _0x3ec866>0x3&&_0x43c383&&Object[_0x134248(0x119)](_0x5331be,_0x331b61,_0x43c383),_0x43c383;}let _0xab9e57=class{constructor(_0x4eb9ed,_0x1441f5,_0x2f6a16){var _0x1834c6=_0x3f7d9c;this[_0x1834c6(0xe8)]=_0x4eb9ed,this[_0x1834c6(0xfe)]=_0x1441f5,this[_0x1834c6(0x10a)]=_0x2f6a16,_0x493317(this,_0x1834c6(0xf0),void 0x0),this[_0x1834c6(0xf0)]=this['_document']['getId']();}['getId'](){var _0x4c3cc1=_0x3f7d9c;return this[_0x4c3cc1(0xfe)];}['getRange'](){var _0x239e86=_0x3f7d9c;let _0x4981f1=this[_0x239e86(0x104)]();return _0x4981f1?{'blockId':_0x4981f1[_0x239e86(0xd1)],'endIndex':_0x4981f1[_0x239e86(0x111)],'startIndex':_0x4981f1[_0x239e86(0xd3)]}:null;}[_0x3f7d9c(0xda)](){var _0x56a6d5=_0x3f7d9c,_0x206f26;let _0x1a3646=this['_getBlockRange'](),_0xc77a9a=(_0x206f26=this[_0x56a6d5(0x116)]()[_0x56a6d5(0xfa)])==null?void 0x0:_0x206f26[_0x56a6d5(0xd0)];return!_0x1a3646||!_0xc77a9a?'':_0x5cfcac(_0xc77a9a[_0x56a6d5(0x106)](_0x1a3646[_0x56a6d5(0xd3)]+0x1,_0x1a3646[_0x56a6d5(0x111)]));}[_0x3f7d9c(0xfc)](){var _0x3be99e=_0x3f7d9c;let _0x4b561b=this[_0x3be99e(0xf6)]();return _0x4b561b?{..._0x4b561b,'config':this[_0x3be99e(0x112)](),'text':this[_0x3be99e(0xda)](),'type':_0xeebcc9['DocumentBlockRangeType'][_0x3be99e(0xf8)]}:null;}[_0x3f7d9c(0x112)](){var _0x116654=_0x3f7d9c;return(0x0,_0xd2c11['normalizeDocsCodeConfig'])(this[_0x116654(0x10a)][_0x116654(0xef)](_0xd2c11['DocsCodeModel'])[_0x116654(0x10d)](this[_0x116654(0xf0)],this[_0x116654(0xfe)]));}['updateConfig'](_0x573cd6){var _0xc22eb4=_0x3f7d9c;return this[_0xc22eb4(0x10a)]['get'](_0xeebcc9['ICommandService'])[_0xc22eb4(0xed)](_0xd2c11[_0xc22eb4(0x102)]['id'],{'blockId':this[_0xc22eb4(0xfe)],'config':_0x573cd6[_0xc22eb4(0xdd)],'unitId':this[_0xc22eb4(0xf0)]});}[_0x3f7d9c(0x117)](_0x2036ad){var _0x38191b=_0x3f7d9c;return this[_0x38191b(0x10a)][_0x38191b(0xef)](_0xeebcc9[_0x38191b(0xdb)])[_0x38191b(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0x2036ad,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x3bbfb0={}){var _0x3b0508=_0x3f7d9c;return this['_injector'][_0x3b0508(0xef)](_0xeebcc9[_0x3b0508(0xdb)])[_0x3b0508(0xed)](_0xd2c11[_0x3b0508(0xdc)]['id'],{..._0x3bbfb0,'unitId':this[_0x3b0508(0xf0)]});}[_0x3f7d9c(0x116)](){var _0xa497c1=_0x3f7d9c;return this[_0xa497c1(0xe8)][_0xa497c1(0xc7)]();}['_getBlockRange'](){var _0xfcfba2=_0x3f7d9c,_0x2952cc;let _0x31488a=(_0x2952cc=this[_0xfcfba2(0x116)]()[_0xfcfba2(0xfa)])==null||(_0x2952cc=_0x2952cc['blockRanges'])==null?void 0x0:_0x2952cc[_0xfcfba2(0x11d)](_0x2e37d3=>_0x2e37d3['blockId']===this[_0xfcfba2(0xfe)]&&_0x2e37d3[_0xfcfba2(0xf3)]===_0xeebcc9['DocumentBlockRangeType'][_0xfcfba2(0xf8)]);return _0x31488a==null?null:_0x31488a;}};_0xab9e57=_0x27454e([_0xe18890(0x2,(0x0,_0xeebcc9['Inject'])(_0xeebcc9[_0x3f7d9c(0xc8)]))],_0xab9e57);function _0x5cfcac(_0x12384b){var _0x145409=_0x3f7d9c;return Array[_0x145409(0xdf)](_0x12384b)[_0x145409(0xcc)](_0xed378d=>_0xed378d===_0xeebcc9[_0x145409(0x10b)]['PARAGRAPH']?'\x0a':_0xed378d)[_0x145409(0xca)](_0x10fd4f=>_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xc9)]&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)]['BLOCK_END']&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xfb)])[_0x145409(0x115)]('')[_0x145409(0xd2)](/\n$/,'');}var _0x1820ac=class extends _0x10dfdf[_0x3f7d9c(0x107)]{[_0x3f7d9c(0xe6)](){var _0x20e7ad=_0x3f7d9c;return this[_0x20e7ad(0xe5)]()[_0x20e7ad(0xca)](_0x5b1eeb=>_0x5b1eeb[_0x20e7ad(0xf3)]===_0xeebcc9[_0x20e7ad(0xf7)][_0x20e7ad(0xf8)])['map'](_0x19a19b=>this[_0x20e7ad(0x11b)](_0x19a19b['blockId']));}[_0x3f7d9c(0xf1)](_0x2af45e){var _0xf01a88=_0x3f7d9c;return this[_0xf01a88(0xe5)]()['some'](_0x21722b=>_0x21722b[_0xf01a88(0xd1)]===_0x2af45e&&_0x21722b[_0xf01a88(0xf3)]===_0xeebcc9[_0xf01a88(0xf7)][_0xf01a88(0xf8)])?this[_0xf01a88(0x11b)](_0x2af45e):null;}['getCodeAt'](_0x4688ab){var _0x14200a=_0x3f7d9c;let _0x31df9c=this['_getBlockRanges']()['find'](_0x385e75=>_0x385e75[_0x14200a(0xf3)]===_0xeebcc9[_0x14200a(0xf7)][_0x14200a(0xf8)]&&_0x385e75['startIndex']<=_0x4688ab&&_0x4688ab<=_0x385e75[_0x14200a(0x111)]);return _0x31df9c?this[_0x14200a(0x11b)](_0x31df9c[_0x14200a(0xd1)]):null;}[_0x3f7d9c(0xde)](_0x8c3c24){var _0x13023e=_0x3f7d9c,_0x4b35e0;return(_0x4b35e0=this[_0x13023e(0xf9)](_0x8c3c24)[0x0])==null?null:_0x4b35e0;}[_0x3f7d9c(0xf9)](_0x25c39d){var _0x872002=_0x3f7d9c;let _0x480b99=typeof _0x25c39d==_0x872002(0x10f)?{'text':_0x25c39d}:_0x25c39d;return this[_0x872002(0xe6)]()[_0x872002(0xca)](_0x22a836=>!(_0x480b99['blockId']&&_0x22a836[_0x872002(0xfd)]()!==_0x480b99[_0x872002(0xd1)]||_0x480b99[_0x872002(0x11a)]&&!_0x22a836[_0x872002(0xda)]()['includes'](_0x480b99[_0x872002(0x11a)])));}[_0x3f7d9c(0x114)](_0x438cb6={},_0x1a06e5={}){var _0x4c01d7=_0x3f7d9c,_0x132af6;let _0x349648=this[_0x4c01d7(0x10a)][_0x4c01d7(0xef)](_0xeebcc9['ICommandService']),_0x35f51f=_0x2e1b85(_0x438cb6)?{..._0x1a06e5,..._0xed42e0(_0x438cb6)}:_0x438cb6,_0x28c29a=(_0x132af6=_0x35f51f['blockId'])==null?(0x0,_0xeebcc9[_0x4c01d7(0xff)])(0x6):_0x132af6;return _0x349648[_0x4c01d7(0xed)](_0xd2c11[_0x4c01d7(0xcd)]['id'],{..._0x35f51f,'blockId':_0x28c29a,'unitId':this[_0x4c01d7(0xfd)]()})?this[_0x4c01d7(0x11b)](_0x28c29a):null;}['exitCode'](_0xa7bfc){var _0x323a28=_0x3f7d9c;return this[_0x323a28(0x10a)][_0x323a28(0xef)](_0xeebcc9[_0x323a28(0xdb)])[_0x323a28(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0xa7bfc,'unitId':this[_0x323a28(0xfd)]()});}['cancelEmptyCodeParagraph'](_0x4132d4={}){var _0x5a8d13=_0x3f7d9c;return this[_0x5a8d13(0x10a)]['get'](_0xeebcc9[_0x5a8d13(0xdb)])['syncExecuteCommand'](_0xd2c11['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x4132d4,'unitId':this[_0x5a8d13(0xfd)]()});}['_getBlockRanges'](){var _0x45c102=_0x3f7d9c,_0x12d38c,_0x3b20e3;return(_0x12d38c=(_0x3b20e3=this[_0x45c102(0xc7)]()[_0x45c102(0xfa)])==null?void 0x0:_0x3b20e3[_0x45c102(0x10e)])==null?[]:_0x12d38c;}[_0x3f7d9c(0x11b)](_0x12cc22){var _0xad62ea=_0x3f7d9c;return this[_0xad62ea(0x10a)][_0xad62ea(0x101)](_0xab9e57,this,_0x12cc22);}};function _0x2e1b85(_0xcac523){var _0x177f69=_0x3f7d9c;return typeof _0xcac523==_0x177f69(0xec)&&!!_0xcac523&&typeof _0xcac523[_0x177f69(0xe3)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xf6)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xe9)]=='function'&&_0xcac523['getType']()==='paragraph';}function _0xed42e0(_0x15eb09){var _0x40d193=_0x3f7d9c;return _0x15eb09[_0x40d193(0xf6)]();}_0x10dfdf[_0x3f7d9c(0x107)][_0x3f7d9c(0xcf)](_0x1820ac),Object[_0x3f7d9c(0x119)](_0x332042,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0xab9e57;}});}));function _0x261f(_0x399cc2,_0x3d55e4){_0x399cc2=_0x399cc2-0xc7;var _0x401da4=_0x401d();var _0x261f56=_0x401da4[_0x399cc2];return _0x261f56;}function _0x401d(){var _0x284cd3=['syncExecuteCommand','toPrimitive','get','_unitId','getCode','symbol','blockType','toStringTag','160222sGSgkb','getRange','DocumentBlockRangeType','CODE','findCodes','body','SECTION_BREAK','describe','getId','_blockId','generateRandomId','7007824BUKcLD','createInstance','DocsCodeUpdateCommand','Module','_getBlockRange','UniverCore','slice','FDocument','333528NoHDHX','748725ExRWFr','_injector','DataStreamTreeTokenType','length','getCodeConfig','blockRanges','string','UniverProDocsCodeFacade','endIndex','getConfig','amd','insertCode','join','_getDocumentData','exit','prototype','defineProperty','text','_createFDocumentCode','4657478UjFJDl','find','save','Injector','BLOCK_START','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','map','DocsCodeInsertCommand','11YpFfIT','extend','dataStream','blockId','replace','startIndex','constructor','35767930xGDTra','16ILCewl','function','getOwnPropertyDescriptor','@univerjs-pro/docs-code','getText','ICommandService','DocsCodeCancelEmptyParagraphCommand','config','findCodeByText','from','3921705sUsbha','exports','decorate','getKey','default','_getBlockRanges','getCodes','call','_document','getType','UniverDocsFacade','35IBfIlO','object'];_0x401d=function(){return _0x284cd3;};return _0x401d();}
1
+ function _0x462a(_0x116405,_0x3b88b8){_0x116405=_0x116405-0x1c4;var _0x29b115=_0x29b1();var _0x462a89=_0x29b115[_0x116405];return _0x462a89;}function _0x29b1(){var _0x90e604=['FDocument','24110MnaEot','DocumentBlockRangeType','PARAGRAPH','blockId','object','1565FpCdUR','UniverProDocsCode','1028313zjdVZh','@univerjs/core','describe','DocsCodeInsertCommand','filter','cancelEmptyParagraph','DataStreamTreeTokenType','6YVlxbC','getKey','Module','symbol','defineProperty','getCodes','blockRanges','Injector','slice','getOwnPropertyDescriptor','Inject','body','some','amd','length','3234308FVvySV','getCodeAt','getRange','_document','blockType','UniverCore','exitCode','prototype','4268tuclVF','paragraph','string','getCodeConfig','startIndex','778502faDUwx','updateConfig','FDocumentCode','save','_getDocumentData','getType','_unitId','DocsCodeExitCommand','ICommandService','function','75759dYBxJb','findCodes','_getBlockRanges','BLOCK_END','_injector','getText','_getBlockRange','getId','includes','constructor','getCode','getConfig','createInstance','extend','syncExecuteCommand','find','text','join','@univerjs/docs/facade','24WUSNlG','iterator','dataStream','CODE','insertCode','DocsCodeModel','endIndex','_createFDocumentCode','342HIAfCu','_blockId','map','DocsCodeCancelEmptyParagraphCommand','UniverDocsFacade','get','446184FrOTEe','decorate','call'];_0x29b1=function(){return _0x90e604;};return _0x29b1();}(function(_0x31e1ea,_0x33ef4b){var _0x21c3dd=_0x462a,_0xe27b5=_0x31e1ea();while(!![]){try{var _0x2b577c=parseInt(_0x21c3dd(0x1ee))/0x1+parseInt(_0x21c3dd(0x20b))/0x2*(-parseInt(_0x21c3dd(0x1f8))/0x3)+-parseInt(_0x21c3dd(0x1e9))/0x4*(-parseInt(_0x21c3dd(0x1c9))/0x5)+parseInt(_0x21c3dd(0x1d2))/0x6*(-parseInt(_0x21c3dd(0x1e1))/0x7)+parseInt(_0x21c3dd(0x219))/0x8+-parseInt(_0x21c3dd(0x213))/0x9*(-parseInt(_0x21c3dd(0x1c4))/0xa)+-parseInt(_0x21c3dd(0x1cb))/0xb;if(_0x2b577c===_0x33ef4b)break;else _0xe27b5['push'](_0xe27b5['shift']());}catch(_0x2fe11d){_0xe27b5['push'](_0xe27b5['shift']());}}}(_0x29b1,0x61f95),function(_0x990be8,_0x431b32){var _0x191163=_0x462a;typeof exports==_0x191163(0x1c8)&&typeof module<'u'?_0x431b32(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x191163(0x1f7)&&define[_0x191163(0x1df)]?define(['exports','@univerjs-pro/docs-code',_0x191163(0x1cc),_0x191163(0x20a)],_0x431b32):(_0x990be8=typeof globalThis<'u'?globalThis:_0x990be8||self,_0x431b32(_0x990be8['UniverProDocsCodeFacade']={},_0x990be8[_0x191163(0x1ca)],_0x990be8[_0x191163(0x1e6)],_0x990be8[_0x191163(0x217)]));}(this,function(_0x5a0a15,_0x18bd6a,_0x444d15,_0x2d8433){var _0x4c8475=_0x462a;Object[_0x4c8475(0x1d6)](_0x5a0a15,Symbol['toStringTag'],{'value':_0x4c8475(0x1d4)});function _0x1047ec(_0x3b7781){'@babel/helpers - typeof';var _0x32d412=_0x4c8475;return _0x1047ec=typeof Symbol=='function'&&typeof Symbol[_0x32d412(0x20c)]==_0x32d412(0x1d5)?function(_0x1b7321){return typeof _0x1b7321;}:function(_0x20d797){var _0x3b8c54=_0x32d412;return _0x20d797&&typeof Symbol==_0x3b8c54(0x1f7)&&_0x20d797[_0x3b8c54(0x201)]===Symbol&&_0x20d797!==Symbol[_0x3b8c54(0x1e8)]?_0x3b8c54(0x1d5):typeof _0x20d797;},_0x1047ec(_0x3b7781);}function _0x2f3b3b(_0x4e7fb7,_0x5190d4){var _0x2b5d91=_0x4c8475;if(_0x1047ec(_0x4e7fb7)!=_0x2b5d91(0x1c8)||!_0x4e7fb7)return _0x4e7fb7;var _0x3e26dd=_0x4e7fb7[Symbol['toPrimitive']];if(_0x3e26dd!==void 0x0){var _0x5e7c50=_0x3e26dd[_0x2b5d91(0x21b)](_0x4e7fb7,_0x5190d4||'default');if(_0x1047ec(_0x5e7c50)!=_0x2b5d91(0x1c8))return _0x5e7c50;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5190d4===_0x2b5d91(0x1eb)?String:Number)(_0x4e7fb7);}function _0xb8e6eb(_0x1a2fab){var _0x5c7f02=_0x4c8475,_0x1238fc=_0x2f3b3b(_0x1a2fab,'string');return _0x1047ec(_0x1238fc)==_0x5c7f02(0x1d5)?_0x1238fc:_0x1238fc+'';}function _0x49a6b6(_0x48f511,_0x773c8e,_0x51ac74){var _0x1ef4a2=_0x4c8475;return(_0x773c8e=_0xb8e6eb(_0x773c8e))in _0x48f511?Object[_0x1ef4a2(0x1d6)](_0x48f511,_0x773c8e,{'value':_0x51ac74,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48f511[_0x773c8e]=_0x51ac74,_0x48f511;}function _0x3df8ad(_0x1ed505,_0x3df6ca){return function(_0x2475f8,_0x3706d5){_0x3df6ca(_0x2475f8,_0x3706d5,_0x1ed505);};}function _0x4d6428(_0x30f162,_0x6ccef9,_0x435921,_0xbbd315){var _0x267236=_0x4c8475,_0x2aca36=arguments[_0x267236(0x1e0)],_0x2449cd=_0x2aca36<0x3?_0x6ccef9:_0xbbd315===null?_0xbbd315=Object[_0x267236(0x1db)](_0x6ccef9,_0x435921):_0xbbd315,_0x4b0582;if(typeof Reflect==_0x267236(0x1c8)&&typeof Reflect['decorate']==_0x267236(0x1f7))_0x2449cd=Reflect[_0x267236(0x21a)](_0x30f162,_0x6ccef9,_0x435921,_0xbbd315);else{for(var _0x56cab1=_0x30f162['length']-0x1;_0x56cab1>=0x0;_0x56cab1--)(_0x4b0582=_0x30f162[_0x56cab1])&&(_0x2449cd=(_0x2aca36<0x3?_0x4b0582(_0x2449cd):_0x2aca36>0x3?_0x4b0582(_0x6ccef9,_0x435921,_0x2449cd):_0x4b0582(_0x6ccef9,_0x435921))||_0x2449cd);}return _0x2aca36>0x3&&_0x2449cd&&Object['defineProperty'](_0x6ccef9,_0x435921,_0x2449cd),_0x2449cd;}let _0x19443b=class{constructor(_0xd279ba,_0x4ce13b,_0x2e806c){var _0x54e4e2=_0x4c8475;this[_0x54e4e2(0x1e4)]=_0xd279ba,this[_0x54e4e2(0x214)]=_0x4ce13b,this['_injector']=_0x2e806c,_0x49a6b6(this,'_unitId',void 0x0),this[_0x54e4e2(0x1f4)]=this['_document'][_0x54e4e2(0x1ff)]();}[_0x4c8475(0x1ff)](){var _0x1e5f9b=_0x4c8475;return this[_0x1e5f9b(0x214)];}['getRange'](){var _0x28600f=_0x4c8475;let _0x30868c=this[_0x28600f(0x1fe)]();return _0x30868c?{'blockId':_0x30868c[_0x28600f(0x1c7)],'endIndex':_0x30868c[_0x28600f(0x211)],'startIndex':_0x30868c[_0x28600f(0x1ed)]}:null;}['getText'](){var _0x3878f5=_0x4c8475,_0x1458ee;let _0x10f5c8=this[_0x3878f5(0x1fe)](),_0x8758f2=(_0x1458ee=this[_0x3878f5(0x1f2)]()['body'])==null?void 0x0:_0x1458ee[_0x3878f5(0x20d)];return!_0x10f5c8||!_0x8758f2?'':_0x3383ff(_0x8758f2[_0x3878f5(0x1da)](_0x10f5c8[_0x3878f5(0x1ed)]+0x1,_0x10f5c8[_0x3878f5(0x211)]));}[_0x4c8475(0x1cd)](){var _0x128938=_0x4c8475;let _0x70f86c=this['getRange']();return _0x70f86c?{..._0x70f86c,'config':this['getConfig'](),'text':this[_0x128938(0x1fd)](),'type':_0x444d15[_0x128938(0x1c5)][_0x128938(0x20e)]}:null;}[_0x4c8475(0x203)](){var _0x1d3f34=_0x4c8475;return(0x0,_0x18bd6a['normalizeDocsCodeConfig'])(this['_injector'][_0x1d3f34(0x218)](_0x18bd6a[_0x1d3f34(0x210)])[_0x1d3f34(0x1ec)](this[_0x1d3f34(0x1f4)],this[_0x1d3f34(0x214)]));}[_0x4c8475(0x1ef)](_0x14a340){var _0x48665e=_0x4c8475;return this[_0x48665e(0x1fc)][_0x48665e(0x218)](_0x444d15[_0x48665e(0x1f6)])['syncExecuteCommand'](_0x18bd6a['DocsCodeUpdateCommand']['id'],{'blockId':this['_blockId'],'config':_0x14a340['config'],'unitId':this[_0x48665e(0x1f4)]});}['exit'](_0x4da3fe){var _0xf66a94=_0x4c8475;return this[_0xf66a94(0x1fc)][_0xf66a94(0x218)](_0x444d15['ICommandService'])['syncExecuteCommand'](_0x18bd6a['DocsCodeExitCommand']['id'],{'cursorOffset':_0x4da3fe,'unitId':this[_0xf66a94(0x1f4)]});}[_0x4c8475(0x1d0)](_0xe8f77f={}){var _0x354eaa=_0x4c8475;return this[_0x354eaa(0x1fc)][_0x354eaa(0x218)](_0x444d15['ICommandService'])[_0x354eaa(0x206)](_0x18bd6a[_0x354eaa(0x216)]['id'],{..._0xe8f77f,'unitId':this['_unitId']});}[_0x4c8475(0x1f2)](){var _0x4f54af=_0x4c8475;return this['_document'][_0x4f54af(0x1f1)]();}['_getBlockRange'](){var _0x4dd7cd=_0x4c8475,_0x482be7;let _0x12ec86=(_0x482be7=this[_0x4dd7cd(0x1f2)]()['body'])==null||(_0x482be7=_0x482be7[_0x4dd7cd(0x1d8)])==null?void 0x0:_0x482be7[_0x4dd7cd(0x207)](_0x41161e=>_0x41161e[_0x4dd7cd(0x1c7)]===this[_0x4dd7cd(0x214)]&&_0x41161e[_0x4dd7cd(0x1e5)]===_0x444d15[_0x4dd7cd(0x1c5)]['CODE']);return _0x12ec86==null?null:_0x12ec86;}};_0x19443b=_0x4d6428([_0x3df8ad(0x2,(0x0,_0x444d15[_0x4c8475(0x1dc)])(_0x444d15[_0x4c8475(0x1d9)]))],_0x19443b);function _0x3383ff(_0x436136){var _0x1b3d9f=_0x4c8475;return Array['from'](_0x436136)[_0x1b3d9f(0x215)](_0x4331c8=>_0x4331c8===_0x444d15['DataStreamTreeTokenType'][_0x1b3d9f(0x1c6)]?'\x0a':_0x4331c8)['filter'](_0x4eeb6d=>_0x4eeb6d!==_0x444d15[_0x1b3d9f(0x1d1)]['BLOCK_START']&&_0x4eeb6d!==_0x444d15[_0x1b3d9f(0x1d1)][_0x1b3d9f(0x1fb)]&&_0x4eeb6d!==_0x444d15[_0x1b3d9f(0x1d1)]['SECTION_BREAK'])[_0x1b3d9f(0x209)]('')['replace'](/\n$/,'');}var _0x1c2806=class extends _0x2d8433[_0x4c8475(0x21c)]{[_0x4c8475(0x1d7)](){var _0x5e6186=_0x4c8475;return this[_0x5e6186(0x1fa)]()[_0x5e6186(0x1cf)](_0x3b4cb3=>_0x3b4cb3['blockType']===_0x444d15[_0x5e6186(0x1c5)][_0x5e6186(0x20e)])[_0x5e6186(0x215)](_0x49d462=>this[_0x5e6186(0x212)](_0x49d462[_0x5e6186(0x1c7)]));}[_0x4c8475(0x202)](_0x32dd2d){var _0x401078=_0x4c8475;return this[_0x401078(0x1fa)]()[_0x401078(0x1de)](_0x4723b1=>_0x4723b1[_0x401078(0x1c7)]===_0x32dd2d&&_0x4723b1[_0x401078(0x1e5)]===_0x444d15[_0x401078(0x1c5)][_0x401078(0x20e)])?this[_0x401078(0x212)](_0x32dd2d):null;}[_0x4c8475(0x1e2)](_0x20c951){var _0xfbcd2=_0x4c8475;let _0x451aba=this[_0xfbcd2(0x1fa)]()[_0xfbcd2(0x207)](_0x28a77c=>_0x28a77c[_0xfbcd2(0x1e5)]===_0x444d15[_0xfbcd2(0x1c5)]['CODE']&&_0x28a77c[_0xfbcd2(0x1ed)]<=_0x20c951&&_0x20c951<=_0x28a77c[_0xfbcd2(0x211)]);return _0x451aba?this[_0xfbcd2(0x212)](_0x451aba['blockId']):null;}['findCodeByText'](_0x1c52dd){var _0x1f7a7f;return(_0x1f7a7f=this['findCodes'](_0x1c52dd)[0x0])==null?null:_0x1f7a7f;}[_0x4c8475(0x1f9)](_0x2c1048){var _0x7d4324=_0x4c8475;let _0x5a2a9b=typeof _0x2c1048==_0x7d4324(0x1eb)?{'text':_0x2c1048}:_0x2c1048;return this['getCodes']()[_0x7d4324(0x1cf)](_0x5ba3d4=>!(_0x5a2a9b[_0x7d4324(0x1c7)]&&_0x5ba3d4['getId']()!==_0x5a2a9b['blockId']||_0x5a2a9b['text']&&!_0x5ba3d4[_0x7d4324(0x1fd)]()[_0x7d4324(0x200)](_0x5a2a9b[_0x7d4324(0x208)])));}[_0x4c8475(0x20f)](_0x246ff3={},_0x1a03ba={}){var _0x5aa2a6=_0x4c8475,_0x1733bc;let _0x1e5820=this[_0x5aa2a6(0x1fc)][_0x5aa2a6(0x218)](_0x444d15[_0x5aa2a6(0x1f6)]),_0x35f97d=_0x363c77(_0x246ff3)?{..._0x1a03ba,..._0xfce10d(_0x246ff3)}:_0x246ff3,_0x185322=(_0x1733bc=_0x35f97d[_0x5aa2a6(0x1c7)])==null?(0x0,_0x444d15['generateRandomId'])(0x6):_0x1733bc;return _0x1e5820['syncExecuteCommand'](_0x18bd6a[_0x5aa2a6(0x1ce)]['id'],{..._0x35f97d,'blockId':_0x185322,'unitId':this[_0x5aa2a6(0x1ff)]()})?this[_0x5aa2a6(0x212)](_0x185322):null;}[_0x4c8475(0x1e7)](_0x2b8aa2){var _0x5d4b0b=_0x4c8475;return this['_injector'][_0x5d4b0b(0x218)](_0x444d15[_0x5d4b0b(0x1f6)])[_0x5d4b0b(0x206)](_0x18bd6a[_0x5d4b0b(0x1f5)]['id'],{'cursorOffset':_0x2b8aa2,'unitId':this[_0x5d4b0b(0x1ff)]()});}['cancelEmptyCodeParagraph'](_0x14e58a={}){var _0xb487a9=_0x4c8475;return this[_0xb487a9(0x1fc)][_0xb487a9(0x218)](_0x444d15[_0xb487a9(0x1f6)])[_0xb487a9(0x206)](_0x18bd6a[_0xb487a9(0x216)]['id'],{..._0x14e58a,'unitId':this[_0xb487a9(0x1ff)]()});}[_0x4c8475(0x1fa)](){var _0xba3ee7=_0x4c8475,_0x226cc0,_0x57c270;return(_0x226cc0=(_0x57c270=this['save']()[_0xba3ee7(0x1dd)])==null?void 0x0:_0x57c270[_0xba3ee7(0x1d8)])==null?[]:_0x226cc0;}['_createFDocumentCode'](_0x5a279f){var _0x1e9a5e=_0x4c8475;return this[_0x1e9a5e(0x1fc)][_0x1e9a5e(0x204)](_0x19443b,this,_0x5a279f);}};function _0x363c77(_0x28a4c5){var _0x505c3b=_0x4c8475;return typeof _0x28a4c5=='object'&&!!_0x28a4c5&&typeof _0x28a4c5[_0x505c3b(0x1d3)]==_0x505c3b(0x1f7)&&typeof _0x28a4c5[_0x505c3b(0x1e3)]==_0x505c3b(0x1f7)&&typeof _0x28a4c5[_0x505c3b(0x1f3)]==_0x505c3b(0x1f7)&&_0x28a4c5[_0x505c3b(0x1f3)]()===_0x505c3b(0x1ea);}function _0xfce10d(_0x121590){var _0x436471=_0x4c8475;return _0x121590[_0x436471(0x1e3)]();}_0x2d8433[_0x4c8475(0x21c)][_0x4c8475(0x205)](_0x1c2806),Object[_0x4c8475(0x1d6)](_0x5a0a15,_0x4c8475(0x1f0),{'enumerable':!0x0,'get':function(){return _0x19443b;}});}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3e30(){const _0xe33266=['commandService','91092uDyKTZ','DocsCodeInsertBelowCommand','DocsCodeUpdateCommand','UniverDocs','indentStart','object','indentEnd','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','version','string','IResourceManagerService','normalizeDocsCodeConfig','UniverDocsCodePlugin','_resources','symbol','asObservable','every','COMMAND','previousDocumentData','DEFAULT_CODE_CONFIG','isCodeBoundaryDelete','42JgBPdo','packageName','CODE','UNIVER_DOC','paragraphs','Tools','@univerjs-pro/license','customDecorations','DOC_CODE_PLUGIN','exports','UniverInstanceType','from','paragraphId','function','range','deserialize','direction','spaceAbove','next','model','buildExitCodeActions','set','map','blockRanges','syncExecuteCommand','javascript','indexOf','1325010vAAWpA','2204364VoKliI','PARAGRAPH','merge','DocsCodeInsertCommand','diffValue','DocContentInsertService','getTextRanges','find','get','length','@univerjs/core','UniverProLicense','clear','entries','1.0.0-alpha.1','getOwnPropertyDescriptor','blockType','spaceBelow','min','41292IhAZqW','startIndex','prototype','reduce','disposeWithMe','DependentOn','decorate','220703bduipV','parse','Injector','defineProperty','setConfig','nextMetadata','unitId','removeCode','getCurrentUnitOfType','getCodeConfig','docs-code.command.cancel-empty-paragraph','constructor','paragraph','toStringTag','_injector','RichTextEditingMutation','max','removeUnit','_change$','cursorOffset','registerPluginResource','JSONX','setCodeConfig','textStyle','textRuns','CommandType','nextDocumentData','_config','rxjs','complete','paragraphStartIndex','Disposable','join','buildUpdateCodeActions','9cnZtGc','buildInsertCodeActions','change$','4696JrrVxs','DocsCodeCancelEmptyParagraphCommand','22pVNdQg','_docsCodeModel','_commandService','@univerjs-pro/docs-code','deepClone','sort','endIndex','DocumentBlockRangeType','BLOCK_START','startOffset','forEach','_resourceManagerService','Inject','documentData','some','docs-code.config','DataStreamTreeTokenType','BLOCK_END','docs-code.command.insert-below','delete','serialize','call','dataStream','Subject','paragraphStyle','getInstance','findCodeRangeAtOffset','tables','dispose','add','sectionBreaks','_configService','900xFaNJD','getBody','blockId','body','endOffset','onStarting','filter','customBlocks','generateRandomId','IUniverInstanceService','codes','replaceOp','config','8TYJBDJ','getUnitId','monospace','_setResource','docs-code.command.insert','UniverDocsPlugin','createParagraphId','Module','ICommandService','SECTION_BREAK','slice','414320glvXpM','fromEntries','_initResource','UniverLicensePlugin','customRanges','amd','consumeInsertRange','type','getUniverDocInstance','metadata'];_0x3e30=function(){return _0xe33266;};return _0x3e30();}function _0x1a29(_0x539223,_0x200863){_0x539223=_0x539223-0x18b;const _0x3e3092=_0x3e30();let _0x1a29e4=_0x3e3092[_0x539223];return _0x1a29e4;}(function(_0xf86dfe,_0x210d9e){const _0x252623=_0x1a29,_0xc8e074=_0xf86dfe();while(!![]){try{const _0x49c647=parseInt(_0x252623(0x1c5))/0x1+-parseInt(_0x252623(0x220))/0x2*(-parseInt(_0x252623(0x236))/0x3)+parseInt(_0x252623(0x1f1))/0x4*(parseInt(_0x252623(0x213))/0x5)+parseInt(_0x252623(0x196))/0x6*(parseInt(_0x252623(0x1cc))/0x7)+parseInt(_0x252623(0x22b))/0x8+-parseInt(_0x252623(0x1ee))/0x9*(parseInt(_0x252623(0x1b1))/0xa)+-parseInt(_0x252623(0x1f3))/0xb*(parseInt(_0x252623(0x1b2))/0xc);if(_0x49c647===_0x210d9e)break;else _0xc8e074['push'](_0xc8e074['shift']());}catch(_0x23b5ed){_0xc8e074['push'](_0xc8e074['shift']());}}}(_0x3e30,0x23cea),function(_0x3ad434,_0x12ddfe){const _0x544dd5=_0x1a29;typeof exports=='object'&&typeof module<'u'?_0x12ddfe(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x544dd5(0x1a3)&&define[_0x544dd5(0x230)]?define([_0x544dd5(0x19f),_0x544dd5(0x1bc),'@univerjs/docs',_0x544dd5(0x1e8),_0x544dd5(0x19c)],_0x12ddfe):(_0x3ad434=typeof globalThis<'u'?globalThis:_0x3ad434||self,_0x12ddfe(_0x3ad434['UniverProDocsCode']={},_0x3ad434['UniverCore'],_0x3ad434[_0x544dd5(0x239)],_0x3ad434[_0x544dd5(0x1e8)],_0x3ad434[_0x544dd5(0x1bd)]));}(this,function(_0x323281,_0x2d2ae4,_0x420f42,_0x6794,_0x181267){const _0x18bb44=_0x1a29;Object['defineProperty'](_0x323281,Symbol[_0x18bb44(0x1d9)],{'value':_0x18bb44(0x227)});let _0x44adb7={'language':_0x18bb44(0x1af),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x566ed2(_0x5cb8ac){return{..._0x44adb7,..._0x5cb8ac};}function _0x44cb53(_0x13c591){const _0x49ef01=_0x18bb44;var _0x327ffc;let _0x281d1b=(_0x327ffc=_0x13c591==null?void 0x0:_0x13c591[_0x49ef01(0x21d)])==null?{}:_0x327ffc;return{'codes':Object[_0x49ef01(0x22c)](Object[_0x49ef01(0x1bf)](_0x281d1b)[_0x49ef01(0x1ac)](([_0x35c427,_0x1df97e])=>[_0x35c427,_0x566ed2(_0x1df97e)]))};}function _0x372441(_0x24fc4e,_0x3f7693,_0x19c8bd){const _0x4c0027=_0x18bb44;let _0x47b713=_0x44cb53(_0x24fc4e);return _0x47b713[_0x4c0027(0x21d)][_0x3f7693]=_0x566ed2({..._0x47b713['codes'][_0x3f7693],..._0x19c8bd}),_0x47b713;}function _0x49632f(_0x37237b,_0x4c996f){const _0x50a16c=_0x18bb44;let _0x432c23=_0x44cb53(_0x37237b);return delete _0x432c23[_0x50a16c(0x21d)][_0x4c996f],_0x432c23;}let _0x40102b=_0x18bb44(0x222);function _0x125d20(_0x52e064){const _0x4bf278=_0x18bb44;var _0x1e8fd1,_0x52c250,_0x412ea2;let _0x4c3d42=_0x34bf55(_0x52e064[_0x4bf278(0x200)]),_0x19901f=_0x174fb6(_0x4c3d42),_0x455e18=_0x574187(_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x7e67b5=_0x455e18?(_0x1e8fd1=_0x19901f['blockRanges'])==null?void 0x0:_0x1e8fd1[_0x4bf278(0x1b9)](_0x20d67c=>_0x20d67c[_0x4bf278(0x1c6)]===_0x455e18['startOffset']&&_0x20d67c['endIndex']+0x1===_0x455e18['endOffset']):void 0x0,{startOffset:_0x1aedd8,endOffset:_0x187a9b}=_0x7e67b5?_0x455e18:_0x1bfbe8(_0x19901f,_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x19e468=_0x1d7302(_0x19901f,_0x1aedd8,_0x187a9b),_0x730958=(_0x52c250=_0x7e67b5==null?void 0x0:_0x7e67b5[_0x4bf278(0x215)])==null?_0x52e064['blockId']:_0x52c250,_0x5ba9cd=_0x372441(_0x52e064['metadata'],_0x730958,{..._0x44adb7,..._0x52e064['config']});if(_0x7e67b5)return _0x7e67b5[_0x4bf278(0x1c2)]=_0x2d2ae4['DocumentBlockRangeType'][_0x4bf278(0x198)],_0x569549(_0x19901f,_0x1aedd8,_0x187a9b),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b,_0x19e468),_0x925f26(_0x19901f,_0x7e67b5),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};if(_0x1aedd8===_0x187a9b){var _0x1c5750,_0x40b1f6;let _0x363720=''+_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x1fb)]+_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1b3)]+_0x2d2ae4[_0x4bf278(0x203)]['BLOCK_END'];_0x2625f3(_0x19901f,_0x1aedd8,_0x363720,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x2d2ae4[_0x4bf278(0x226)])(new Set((_0x1c5750=_0x19901f['paragraphs'])==null?void 0x0:_0x1c5750['map'](_0x2f37f2=>_0x2f37f2[_0x4bf278(0x1a2)]))),'paragraphStyle':_0x4f732c(!0x0,!0x0,_0x19e468)}],'blockRanges':[{'blockId':_0x730958,'blockType':_0x2d2ae4['DocumentBlockRangeType']['CODE'],'startIndex':0x0,'endIndex':_0x363720[_0x4bf278(0x1bb)]-0x1}]});let _0x52a3be=(_0x40b1f6=_0x19901f['blockRanges'])==null?void 0x0:_0x40b1f6[_0x4bf278(0x1b9)](_0x1d8eef=>_0x1d8eef['blockId']===_0x730958);return _0x52a3be&&_0x925f26(_0x19901f,_0x52a3be),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}_0x2625f3(_0x19901f,_0x187a9b,_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x204)]),_0x2625f3(_0x19901f,_0x1aedd8,_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1fb)]),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b+0x1,_0x19e468);let _0x5bdffc={'blockId':_0x730958,'blockType':_0x2d2ae4[_0x4bf278(0x1fa)][_0x4bf278(0x198)],'startIndex':_0x1aedd8,'endIndex':_0x187a9b+0x1};return _0x19901f['blockRanges']=[...(_0x412ea2=_0x19901f[_0x4bf278(0x1ad)])==null?[]:_0x412ea2,_0x5bdffc][_0x4bf278(0x1f8)]((_0x24d1d2,_0x5386a3)=>_0x24d1d2[_0x4bf278(0x1c6)]-_0x5386a3[_0x4bf278(0x1c6)]),_0x925f26(_0x19901f,_0x5bdffc),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}function _0x569549(_0x5be7ad,_0x8f172c,_0x3183ca){const _0x5b9ba6=_0x18bb44;var _0x22834f;((_0x22834f=_0x5be7ad[_0x5b9ba6(0x19a)])==null?[]:_0x22834f)[_0x5b9ba6(0x219)](_0x37b307=>_0x37b307['startIndex']>_0x8f172c&&_0x37b307[_0x5b9ba6(0x1c6)]<_0x3183ca)['forEach'](_0x4a284d=>{const _0xfac6fc=_0x5b9ba6;var _0x575833;let _0x429ac9={...(_0x575833=_0x4a284d[_0xfac6fc(0x20b)])==null?{}:_0x575833};delete _0x429ac9[_0xfac6fc(0x1a7)],delete _0x429ac9[_0xfac6fc(0x1c3)],_0x4a284d[_0xfac6fc(0x20b)]=_0x429ac9;});}function _0x574187(_0x22118b,_0x4e9e1b){const _0x252da2=_0x18bb44;return _0x22118b==null||_0x4e9e1b==null||_0x22118b===_0x4e9e1b?null:{'startOffset':Math[_0x252da2(0x1c4)](_0x22118b,_0x4e9e1b),'endOffset':Math[_0x252da2(0x1dc)](_0x22118b,_0x4e9e1b)};}function _0x5a5761(_0x1aacc8){const _0x1e7a80=_0x18bb44;return{'nextDocumentData':_0x34bf55(_0x1aacc8[_0x1e7a80(0x200)]),'nextMetadata':_0x372441(_0x1aacc8[_0x1e7a80(0x234)],_0x1aacc8[_0x1e7a80(0x215)],_0x1aacc8[_0x1e7a80(0x21f)]),'cursorOffset':0x0};}function _0x4f2c21(_0x571f50){const _0x2aeba7=_0x18bb44;var _0x4b41bf,_0x25c80f;let _0x3b1f80=_0x34bf55(_0x571f50[_0x2aeba7(0x200)]),_0x35e2b7=_0x174fb6(_0x3b1f80),_0x5d53ac=_0x178c6c(_0x35e2b7,_0x571f50[_0x2aeba7(0x1df)]);if(!_0x5d53ac)return null;let _0x1fbe82=_0x5ec5bf(_0x35e2b7,_0x5d53ac),_0x56ef03=_0x1fbe82[_0x1fbe82[_0x2aeba7(0x1bb)]-0x1];if(!_0x56ef03||!_0x20e23f(_0x35e2b7,_0x5d53ac,_0x56ef03)||_0x571f50[_0x2aeba7(0x1df)]<_0x56ef03[_0x2aeba7(0x1c6)])return null;let _0x4ec033=_0x509b08(_0x35e2b7,_0x5d53ac,_0x56ef03);if(_0x4ec033>=_0x5d53ac[_0x2aeba7(0x1f9)])return null;_0x35e2b7[_0x2aeba7(0x209)]=[_0x35e2b7['dataStream']['slice'](0x0,_0x4ec033),_0x2d2ae4[_0x2aeba7(0x203)][_0x2aeba7(0x204)],_0x35e2b7['dataStream'][_0x2aeba7(0x22a)](_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)]),_0x35e2b7[_0x2aeba7(0x209)][_0x2aeba7(0x22a)](_0x5d53ac[_0x2aeba7(0x1f9)]+0x1)][_0x2aeba7(0x1ec)](''),_0x423a0d(_0x35e2b7[_0x2aeba7(0x19a)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x211)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x21a)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x163ccc(_0x35e2b7[_0x2aeba7(0x1e4)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x20e)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x22f)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x19d)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),(_0x4b41bf=_0x35e2b7[_0x2aeba7(0x1ad)])==null||_0x4b41bf[_0x2aeba7(0x1fd)](_0x1fb831=>{const _0x574da0=_0x2aeba7;_0x1fb831===_0x5d53ac||_0x1fb831[_0x574da0(0x215)]===_0x5d53ac[_0x574da0(0x215)]?_0x1fb831[_0x574da0(0x1f9)]=_0x4ec033:_0x1fb831['startIndex']>=_0x4ec033&&_0x1fb831['startIndex']<_0x5d53ac['endIndex']&&(_0x1fb831['startIndex']+=0x1,_0x1fb831['endIndex']+=0x1);});let _0x3157f6=_0x5ec5bf(_0x35e2b7,{..._0x5d53ac,'endIndex':_0x4ec033});_0x3157f6[_0x2aeba7(0x1fd)]((_0x461101,_0x3ab8f8)=>{const _0x550568=_0x2aeba7;var _0x54c794;_0x461101[_0x550568(0x20b)]={...(_0x54c794=_0x461101['paragraphStyle'])==null?{}:_0x54c794,..._0x4f732c(_0x3ab8f8===0x0,_0x3ab8f8===_0x3157f6['length']-0x1)};});let _0x43e4bf=(_0x25c80f=_0x35e2b7[_0x2aeba7(0x19a)])==null?void 0x0:_0x25c80f[_0x2aeba7(0x1b9)](_0x2545c3=>_0x2545c3[_0x2aeba7(0x1c6)]===_0x4ec033+0x1);return _0x43e4bf&&(_0x43e4bf['paragraphStyle']=_0xc6ed51(_0x43e4bf[_0x2aeba7(0x20b)])),{'nextDocumentData':_0x3b1f80,'cursorOffset':_0x4ec033+0x1};}function _0x5d4520(_0x162042){const _0x27c103=_0x18bb44;let _0x470e2d=_0x34bf55(_0x162042[_0x27c103(0x200)]),_0x39df63=_0x174fb6(_0x470e2d),_0xcf16b2=_0x178c6c(_0x39df63,_0x162042[_0x27c103(0x1df)]);return _0xcf16b2&&_0x156a22(_0x470e2d,_0x39df63,_0xcf16b2,_0x162042[_0x27c103(0x1df)],_0x162042[_0x27c103(0x1ea)])||null;}function _0x156a22(_0x405fa8,_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e){const _0x521f8e=_0x18bb44;let _0x20df62=_0x377190(_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e);if(!_0x20df62)return null;let _0x153687=_0x20df62['endTokenOffset']-0x1;return _0x2621f2(_0x3c96f3,_0x20df62[_0x521f8e(0x1d8)]['startIndex'],_0x20df62[_0x521f8e(0x1d8)][_0x521f8e(0x1c6)]+0x1),{'nextDocumentData':_0x405fa8,'cursorOffset':_0x153687};}function _0x13a49b(_0x596c29,_0x22f275){const _0x1ccf0e=_0x18bb44;var _0x52bdc7;return _0x596c29==null||(_0x52bdc7=_0x596c29['blockRanges'])==null?void 0x0:_0x52bdc7[_0x1ccf0e(0x1b9)](_0xf1a9b5=>_0xf1a9b5[_0x1ccf0e(0x1c2)]===_0x2d2ae4[_0x1ccf0e(0x1fa)][_0x1ccf0e(0x198)]&&_0xf1a9b5[_0x1ccf0e(0x1c6)]<=_0x22f275&&_0x22f275<=_0xf1a9b5[_0x1ccf0e(0x1f9)]);}function _0x363106(_0x393173){const _0x1cf706=_0x18bb44;var _0x5b1088;let _0x5abee0=_0x393173[_0x1cf706(0x200)][_0x1cf706(0x216)];if(!_0x5abee0)return!0x1;let _0x2284b3=_0x393173['direction']==='left'?_0x393173[_0x1cf706(0x1df)]-0x1:_0x393173[_0x1cf706(0x1df)],_0x1161cd=_0x393173[_0x1cf706(0x1a6)]==='right'?_0x393173[_0x1cf706(0x1df)]+0x1:_0x2284b3;return((_0x5b1088=_0x5abee0[_0x1cf706(0x1ad)])==null?[]:_0x5b1088)[_0x1cf706(0x201)](_0x3b0546=>_0x3b0546[_0x1cf706(0x1c2)]===_0x2d2ae4[_0x1cf706(0x1fa)]['CODE']?_0x2284b3===_0x3b0546[_0x1cf706(0x1c6)]||_0x2284b3===_0x3b0546[_0x1cf706(0x1f9)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1c6)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1f9)]:!0x1);}function _0x178c6c(_0x57008f,_0x2c975a){const _0x142e7f=_0x18bb44;var _0x286481;return(_0x286481=_0x57008f[_0x142e7f(0x1ad)])==null?void 0x0:_0x286481['find'](_0x436ec9=>{const _0xb554a6=_0x142e7f;let _0x11c5a4=_0x4aa120(_0x57008f,_0x436ec9);return _0x436ec9[_0xb554a6(0x1c2)]===_0x2d2ae4[_0xb554a6(0x1fa)][_0xb554a6(0x198)]&&_0x436ec9['startIndex']<=_0x2c975a&&_0x2c975a<=_0x11c5a4+0x2;});}function _0x4f732c(_0x1a6434,_0xd829aa,_0x5b21dd=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1a6434&&_0x5b21dd?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x40102b,'fs':0xc}};}function _0x9c4542(_0x300898,_0x4817d1,_0x303131,_0x351454=!0x1){const _0x13da71=_0x18bb44;var _0x47ff0f;let _0x847421=((_0x47ff0f=_0x300898[_0x13da71(0x19a)])==null?[]:_0x47ff0f)[_0x13da71(0x219)](_0x162407=>_0x162407[_0x13da71(0x1c6)]>_0x4817d1&&_0x162407[_0x13da71(0x1c6)]<_0x303131);_0x847421['forEach']((_0xc8d7e6,_0x3ee914)=>{const _0x36c66a=_0x13da71;var _0x5537a2;_0xc8d7e6[_0x36c66a(0x20b)]={...(_0x5537a2=_0xc8d7e6[_0x36c66a(0x20b)])==null?{}:_0x5537a2,..._0x4f732c(_0x3ee914===0x0,_0x3ee914===_0x847421[_0x36c66a(0x1bb)]-0x1,_0x351454)};});}function _0xc6ed51(_0x2839cb){const _0x4698fa=_0x18bb44;var _0x1982b6,_0x3ecfb5;let _0x3a0586={..._0x2839cb==null?{}:_0x2839cb};return delete _0x3a0586[_0x4698fa(0x23c)],delete _0x3a0586[_0x4698fa(0x23a)],delete _0x3a0586[_0x4698fa(0x1a7)],delete _0x3a0586[_0x4698fa(0x1c3)],((_0x1982b6=_0x3a0586['textStyle'])==null?void 0x0:_0x1982b6['ff'])===_0x40102b&&((_0x3ecfb5=_0x3a0586[_0x4698fa(0x1e3)])==null?void 0x0:_0x3ecfb5['fs'])===0xc&&delete _0x3a0586[_0x4698fa(0x1e3)],_0x3a0586;}function _0x5ec5bf(_0x40e708,_0x305b86){const _0x4039d9=_0x18bb44;var _0x5d5722;let _0x1a33d8=_0x4aa120(_0x40e708,_0x305b86);return((_0x5d5722=_0x40e708[_0x4039d9(0x19a)])==null?[]:_0x5d5722)[_0x4039d9(0x219)](_0x1fa3c8=>_0x1fa3c8[_0x4039d9(0x1c6)]>_0x305b86[_0x4039d9(0x1c6)]&&_0x1fa3c8[_0x4039d9(0x1c6)]<_0x1a33d8);}function _0x20e23f(_0x38b7d9,_0x4621cd,_0x4c0df9){const _0x2a4490=_0x18bb44;let _0x139267=_0x509b08(_0x38b7d9,_0x4621cd,_0x4c0df9),_0x228329=_0x38b7d9[_0x2a4490(0x209)]['slice'](_0x139267,_0x4c0df9['startIndex']);return Array[_0x2a4490(0x1a1)](_0x228329)['every'](_0x18d486=>_0x18d486===_0x2d2ae4[_0x2a4490(0x203)][_0x2a4490(0x1fb)]||_0x18d486===_0x2d2ae4[_0x2a4490(0x203)]['BLOCK_END']);}function _0x34bf55(_0x5a1d90){const _0xb71dee=_0x18bb44;return _0x2d2ae4[_0xb71dee(0x19b)][_0xb71dee(0x1f7)](_0x5a1d90);}function _0x174fb6(_0xfd21fd){const _0x2ff199=_0x18bb44;if(!_0xfd21fd[_0x2ff199(0x216)])throw Error('Document\x20body\x20is\x20required');return _0xfd21fd['body'];}function _0x1bfbe8(_0x1f6a98,_0x207653,_0x273ecc){const _0x4c2466=_0x18bb44;if(_0x207653==null||_0x273ecc==null){let _0x4b98e6=_0x342a88(_0x1f6a98);return{'startOffset':_0x4b98e6,'endOffset':_0x4b98e6};}let _0x368f5c=Math[_0x4c2466(0x1c4)](_0x207653,_0x273ecc),_0x383d50=Math['max'](_0x207653,_0x273ecc);if(_0x368f5c===_0x383d50){let _0x3bad31=_0x125f8d(_0x1f6a98,_0x368f5c);return{'startOffset':_0x3bad31,'endOffset':_0x3bad31};}return _0x5ba5f5(_0x1f6a98,_0x368f5c,_0x383d50);}function _0x125f8d(_0x304a1a,_0x516ac3){const _0x5e28c3=_0x18bb44;return _0x516ac3===0x0&&_0x304a1a['dataStream'][0x0]===_0x2d2ae4[_0x5e28c3(0x203)][_0x5e28c3(0x1b3)]?0x1:_0x516ac3;}function _0x342a88(_0x1e1815){const _0x84e574=_0x18bb44;return _0x1e1815[_0x84e574(0x209)]['endsWith'](_0x2d2ae4[_0x84e574(0x203)]['SECTION_BREAK'])?Math[_0x84e574(0x1dc)](0x0,_0x1e1815['dataStream']['length']-0x1):_0x1e1815['dataStream'][_0x84e574(0x1bb)];}function _0x1d7302(_0x19113a,_0xce2cfa,_0x39cf86){const _0xa49e11=_0x18bb44;var _0x4d56d3;let _0x6f41a=Math[_0xa49e11(0x1c4)](_0xce2cfa,_0x39cf86),_0x3fe054=Math[_0xa49e11(0x1dc)](_0xce2cfa,_0x39cf86);return!!((_0x4d56d3=_0x19113a[_0xa49e11(0x20e)])!=null&&_0x4d56d3[_0xa49e11(0x201)](_0x1d63a1=>_0x6f41a>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x6f41a<_0x1d63a1['endIndex']||_0x3fe054>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x3fe054<_0x1d63a1[_0xa49e11(0x1f9)]||_0x6f41a<=_0x1d63a1['startIndex']&&_0x3fe054>=_0x1d63a1[_0xa49e11(0x1f9)]));}function _0x5ba5f5(_0x3f099e,_0x4200a5,_0x5b10c1){const _0x593c59=_0x18bb44;var _0x229c9f,_0x34c2fc;let _0x2e05b4=[...(_0x229c9f=_0x3f099e['paragraphs'])==null?[]:_0x229c9f][_0x593c59(0x1f8)]((_0x5286a6,_0x677ffb)=>_0x5286a6[_0x593c59(0x1c6)]-_0x677ffb[_0x593c59(0x1c6)]),_0xd97ea3=_0x2e05b4[_0x593c59(0x1b9)]((_0x5e36ce,_0x4a88e)=>(_0x4a88e===0x0?0x0:_0x2e05b4[_0x4a88e-0x1]['startIndex']+0x1)<=_0x4200a5&&_0x4200a5<=_0x5e36ce[_0x593c59(0x1c6)]),_0x5097b1=(_0x34c2fc=_0x2e05b4[_0x593c59(0x1b9)](_0x1ad0d8=>_0x1ad0d8[_0x593c59(0x1c6)]>=_0x5b10c1-0x1))==null?_0x2e05b4[_0x2e05b4[_0x593c59(0x1bb)]-0x1]:_0x34c2fc;return{'startOffset':_0xd97ea3?_0x3da0a2(_0x2e05b4,_0xd97ea3):_0x4200a5,'endOffset':_0x5097b1?_0x5097b1[_0x593c59(0x1c6)]+0x1:_0x5b10c1};}function _0x3da0a2(_0x1d0e7a,_0x5adc23){const _0x1853e6=_0x18bb44;let _0x50c771=_0x1d0e7a[_0x1853e6(0x1b0)](_0x5adc23);return _0x50c771>0x0?_0x1d0e7a[_0x50c771-0x1][_0x1853e6(0x1c6)]+0x1:0x0;}function _0x509b08(_0x598f10,_0x159419,_0x2ec6db){const _0x4c2d57=_0x18bb44;var _0x74962;return Math[_0x4c2d57(0x1dc)](_0x3da0a2((_0x74962=_0x598f10[_0x4c2d57(0x19a)])==null?[]:_0x74962,_0x2ec6db),_0x159419[_0x4c2d57(0x1c6)]+0x1);}function _0x4aa120(_0x22d98b,_0x4842b0){const _0x3e0eb9=_0x18bb44;return _0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]:_0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]+0x1]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]+0x1:_0x4842b0['endIndex'];}function _0x377190(_0x292c49,_0x1015d1,_0x33e423,_0x12e49b){const _0x33bb15=_0x18bb44;var _0x370757,_0x250776;let _0x2e59cd=_0x4aa120(_0x292c49,_0x1015d1),_0x30d249=((_0x370757=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x370757)[_0x33bb15(0x1b9)](_0x50f871=>_0x50f871[_0x33bb15(0x1c6)]===_0x2e59cd+0x1);if(!_0x30d249||_0x12e49b!=null&&_0x30d249[_0x33bb15(0x1c6)]!==_0x12e49b||_0x33e423<_0x2e59cd||_0x33e423>_0x30d249[_0x33bb15(0x1c6)]+0x1||_0x292c49[_0x33bb15(0x209)][_0x30d249[_0x33bb15(0x1c6)]]!==_0x2d2ae4['DataStreamTreeTokenType'][_0x33bb15(0x1b3)])return null;let _0x1473de=_0x3da0a2((_0x250776=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x250776,_0x30d249),_0x57eca1=_0x292c49[_0x33bb15(0x209)]['slice'](_0x1473de,_0x30d249['startIndex']);return Array[_0x33bb15(0x1a1)](_0x57eca1)[_0x33bb15(0x191)](_0xc0202c=>_0xc0202c===_0x2d2ae4[_0x33bb15(0x203)][_0x33bb15(0x204)])?{'paragraph':_0x30d249,'endTokenOffset':_0x2e59cd}:null;}function _0x925f26(_0x2f9e8b,_0x54c307){const _0x428afa=_0x18bb44;var _0x5dfb20;let _0x4f57ab=_0x4aa120(_0x2f9e8b,_0x54c307),_0x47a0c3=_0x2f9e8b[_0x428afa(0x209)][_0x4f57ab+0x1];_0x47a0c3!==_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x229)]&&_0x47a0c3!==void 0x0||_0x2625f3(_0x2f9e8b,_0x4f57ab+0x1,_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x1b3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x2d2ae4[_0x428afa(0x226)])(new Set((_0x5dfb20=_0x2f9e8b['paragraphs'])==null?void 0x0:_0x5dfb20['map'](_0x39aeef=>_0x39aeef[_0x428afa(0x1a2)])))}]});}function _0x2625f3(_0x12d926,_0x5ac570,_0x5e223b,_0x150b6b={}){const _0x3c3fb8=_0x18bb44;var _0x130b2a,_0x2d1c7f;if(_0x5e223b){if(_0x12d926['dataStream']=''+_0x12d926[_0x3c3fb8(0x209)]['slice'](0x0,_0x5ac570)+_0x5e223b+_0x12d926[_0x3c3fb8(0x209)][_0x3c3fb8(0x22a)](_0x5ac570),_0x344e10(_0x12d926,_0x5ac570,_0x5e223b[_0x3c3fb8(0x1bb)]),(_0x130b2a=_0x150b6b['paragraphs'])!=null&&_0x130b2a[_0x3c3fb8(0x1bb)]){var _0x2dfbc8;_0x12d926['paragraphs']=[...(_0x2dfbc8=_0x12d926['paragraphs'])==null?[]:_0x2dfbc8,..._0x150b6b[_0x3c3fb8(0x19a)]['map'](_0x1a2448=>({..._0x1a2448,'startIndex':_0x1a2448[_0x3c3fb8(0x1c6)]+_0x5ac570}))][_0x3c3fb8(0x1f8)]((_0x40449f,_0x188795)=>_0x40449f[_0x3c3fb8(0x1c6)]-_0x188795[_0x3c3fb8(0x1c6)]);}if((_0x2d1c7f=_0x150b6b[_0x3c3fb8(0x1ad)])!=null&&_0x2d1c7f['length']){var _0x3a89c3;_0x12d926[_0x3c3fb8(0x1ad)]=[...(_0x3a89c3=_0x12d926[_0x3c3fb8(0x1ad)])==null?[]:_0x3a89c3,..._0x150b6b[_0x3c3fb8(0x1ad)][_0x3c3fb8(0x1ac)](_0x122f5a=>({..._0x122f5a,'startIndex':_0x122f5a['startIndex']+_0x5ac570,'endIndex':_0x122f5a['endIndex']+_0x5ac570}))]['sort']((_0x3a5b84,_0xf35539)=>_0x3a5b84[_0x3c3fb8(0x1c6)]-_0xf35539[_0x3c3fb8(0x1c6)]);}}}function _0x2621f2(_0x5d5f9b,_0x325410,_0x27fc49){const _0x4206d8=_0x18bb44;let _0x4f412d=_0x27fc49-_0x325410;_0x5d5f9b[_0x4206d8(0x209)]=''+_0x5d5f9b[_0x4206d8(0x209)]['slice'](0x0,_0x325410)+_0x5d5f9b['dataStream']['slice'](_0x27fc49),_0x1afad3(_0x5d5f9b,_0x325410,_0x4f412d);}function _0x344e10(_0x30e8dc,_0x30db06,_0x1d915d){const _0x31e98c=_0x18bb44;_0x30e8dc['paragraphs']=_0x27650c(_0x30e8dc[_0x31e98c(0x19a)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x211)]=_0x27650c(_0x30e8dc[_0x31e98c(0x211)],_0x30db06,_0x1d915d),_0x30e8dc['customBlocks']=_0x27650c(_0x30e8dc['customBlocks'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1e4)]=_0x4a3cef(_0x30e8dc[_0x31e98c(0x1e4)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x20e)]=_0x10e841(_0x30e8dc['tables'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x22f)]=_0x10e841(_0x30e8dc[_0x31e98c(0x22f)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x19d)]=_0x10e841(_0x30e8dc[_0x31e98c(0x19d)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1ad)]=_0x10e841(_0x30e8dc[_0x31e98c(0x1ad)],_0x30db06,_0x1d915d);}function _0x1afad3(_0xd297f0,_0x5c6b6e,_0x5ed043){const _0x1620e9=_0x18bb44;var _0x5b0c2f,_0x5ba7ef;_0xd297f0[_0x1620e9(0x19a)]=_0x4c7590(_0xd297f0[_0x1620e9(0x19a)],_0x5c6b6e,_0x5ed043),_0xd297f0[_0x1620e9(0x211)]=_0x4c7590(_0xd297f0[_0x1620e9(0x211)],_0x5c6b6e,_0x5ed043),_0xd297f0['customBlocks']=_0x4c7590(_0xd297f0[_0x1620e9(0x21a)],_0x5c6b6e,_0x5ed043),_0xd297f0['textRuns']=(_0x5b0c2f=_0x35ffb6((_0x5ba7ef=_0xd297f0[_0x1620e9(0x1e4)])==null?void 0x0:_0x5ba7ef['map'](_0x44b1e2=>({..._0x44b1e2,'startIndex':_0x44b1e2['st'],'endIndex':_0x44b1e2['ed']})),_0x5c6b6e,_0x5ed043))==null?void 0x0:_0x5b0c2f['map'](_0x2c0c1d=>{let {startIndex:_0x51bfb4,endIndex:_0x320069,..._0x532592}=_0x2c0c1d;return{..._0x532592,'st':_0x51bfb4,'ed':_0x320069};}),_0xd297f0[_0x1620e9(0x20e)]=_0x35ffb6(_0xd297f0['tables'],_0x5c6b6e,_0x5ed043),_0xd297f0['customRanges']=_0x35ffb6(_0xd297f0[_0x1620e9(0x22f)],_0x5c6b6e,_0x5ed043),_0xd297f0['customDecorations']=_0x35ffb6(_0xd297f0[_0x1620e9(0x19d)],_0x5c6b6e,_0x5ed043),_0xd297f0['blockRanges']=_0x35ffb6(_0xd297f0['blockRanges'],_0x5c6b6e,_0x5ed043);}function _0x27650c(_0x461008,_0x2732fc,_0x2adf4c){const _0x261ab6=_0x18bb44;return _0x461008==null?void 0x0:_0x461008[_0x261ab6(0x1ac)](_0x5300cf=>_0x5300cf[_0x261ab6(0x1c6)]>=_0x2732fc?{..._0x5300cf,'startIndex':_0x5300cf[_0x261ab6(0x1c6)]+_0x2adf4c}:_0x5300cf);}function _0x4c7590(_0x40f355,_0x3a87c5,_0x1b7670){const _0x190ba9=_0x18bb44;let _0x151b59=_0x3a87c5+_0x1b7670;return _0x40f355==null?void 0x0:_0x40f355[_0x190ba9(0x1ac)](_0x354a96=>_0x354a96[_0x190ba9(0x1c6)]>=_0x3a87c5&&_0x354a96['startIndex']<_0x151b59?null:_0x354a96[_0x190ba9(0x1c6)]>=_0x151b59?{..._0x354a96,'startIndex':_0x354a96['startIndex']-_0x1b7670}:_0x354a96)['filter'](_0xa5755a=>_0xa5755a!=null);}function _0x4a3cef(_0x1f8d66,_0x295c5f,_0x38bdd2){const _0x2db228=_0x18bb44;return _0x1f8d66==null?void 0x0:_0x1f8d66[_0x2db228(0x1ac)](_0x535d57=>_0x535d57['st']>=_0x295c5f?{..._0x535d57,'st':_0x535d57['st']+_0x38bdd2,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57['ed']>_0x295c5f?{..._0x535d57,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57);}function _0x10e841(_0x12733a,_0x3bda48,_0x4a60e){const _0x11d4b8=_0x18bb44;return _0x12733a==null?void 0x0:_0x12733a[_0x11d4b8(0x1ac)](_0x13ecef=>_0x13ecef[_0x11d4b8(0x1c6)]>=_0x3bda48?{..._0x13ecef,'startIndex':_0x13ecef[_0x11d4b8(0x1c6)]+_0x4a60e,'endIndex':_0x13ecef[_0x11d4b8(0x1f9)]+_0x4a60e}:_0x13ecef[_0x11d4b8(0x1f9)]>=_0x3bda48?{..._0x13ecef,'endIndex':_0x13ecef['endIndex']+_0x4a60e}:_0x13ecef);}function _0x35ffb6(_0x507557,_0x5dc634,_0x224bf5){const _0x4f00d1=_0x18bb44;let _0x31dced=_0x5dc634+_0x224bf5;return _0x507557==null?void 0x0:_0x507557[_0x4f00d1(0x1ac)](_0x4ac6b9=>_0x4ac6b9['startIndex']>=_0x5dc634&&_0x4ac6b9[_0x4f00d1(0x1f9)]<_0x31dced?null:_0x4ac6b9[_0x4f00d1(0x1c6)]>=_0x31dced?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]-_0x224bf5,'endIndex':_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5}:_0x4ac6b9[_0x4f00d1(0x1f9)]>=_0x5dc634?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]<_0x5dc634?_0x4ac6b9[_0x4f00d1(0x1c6)]:_0x5dc634,'endIndex':Math[_0x4f00d1(0x1dc)](_0x5dc634,_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5)}:_0x4ac6b9)[_0x4f00d1(0x219)](_0x1434cf=>_0x1434cf!=null);}function _0x423a0d(_0x320c32,_0x13f96e,_0x1324fc,_0x45c31f){const _0x51480f=_0x18bb44;_0x320c32==null||_0x320c32[_0x51480f(0x1fd)](_0x36f06d=>{const _0x91c7ff=_0x51480f;_0x36f06d[_0x91c7ff(0x1c6)]>=_0x13f96e&&_0x36f06d[_0x91c7ff(0x1c6)]<_0x1324fc&&(_0x36f06d['startIndex']+=_0x45c31f);});}function _0x163ccc(_0x4ae414,_0xa60bfb,_0x224e2a,_0xcd427b){const _0x2d7317=_0x18bb44;_0x4ae414==null||_0x4ae414[_0x2d7317(0x1fd)](_0x88d4b0=>{_0x88d4b0['st']>=_0xa60bfb&&_0x88d4b0['st']<_0x224e2a?(_0x88d4b0['st']+=_0xcd427b,_0x88d4b0['ed']+=_0xcd427b):_0x88d4b0['ed']>_0xa60bfb&&_0x88d4b0['ed']<_0x224e2a&&(_0x88d4b0['ed']+=_0xcd427b);});}function _0x1f7efe(_0x2691e4,_0x44c1fa,_0x492ade,_0x14bb5a){const _0x5db0c9=_0x18bb44;_0x2691e4==null||_0x2691e4[_0x5db0c9(0x1fd)](_0x1d1e19=>{const _0x353a2f=_0x5db0c9;_0x1d1e19[_0x353a2f(0x1c6)]>=_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1c6)]<_0x492ade?(_0x1d1e19[_0x353a2f(0x1c6)]+=_0x14bb5a,_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a):_0x1d1e19[_0x353a2f(0x1f9)]>_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1f9)]<_0x492ade&&(_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a);});}function _0x52c8be(_0x10d523){'@babel/helpers - typeof';const _0x4d196e=_0x18bb44;return _0x52c8be=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x4d196e(0x18f)?function(_0x301c8c){return typeof _0x301c8c;}:function(_0x4dd721){const _0x1ba13d=_0x4d196e;return _0x4dd721&&typeof Symbol=='function'&&_0x4dd721[_0x1ba13d(0x1d7)]===Symbol&&_0x4dd721!==Symbol[_0x1ba13d(0x1c7)]?_0x1ba13d(0x18f):typeof _0x4dd721;},_0x52c8be(_0x10d523);}function _0x143cf9(_0x392153,_0x2f36f5){const _0x1055a6=_0x18bb44;if(_0x52c8be(_0x392153)!=_0x1055a6(0x23b)||!_0x392153)return _0x392153;var _0x4a18fa=_0x392153[Symbol['toPrimitive']];if(_0x4a18fa!==void 0x0){var _0x2cfced=_0x4a18fa[_0x1055a6(0x208)](_0x392153,_0x2f36f5||'default');if(_0x52c8be(_0x2cfced)!='object')return _0x2cfced;throw TypeError(_0x1055a6(0x23d));}return(_0x2f36f5===_0x1055a6(0x240)?String:Number)(_0x392153);}function _0x33500a(_0x339ef8){const _0x2cdf46=_0x18bb44;var _0x504876=_0x143cf9(_0x339ef8,_0x2cdf46(0x240));return _0x52c8be(_0x504876)==_0x2cdf46(0x18f)?_0x504876:_0x504876+'';}function _0x355256(_0x2fdda4,_0x4bd284,_0x4bb156){const _0x59efe0=_0x18bb44;return(_0x4bd284=_0x33500a(_0x4bd284))in _0x2fdda4?Object[_0x59efe0(0x1cf)](_0x2fdda4,_0x4bd284,{'value':_0x4bb156,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fdda4[_0x4bd284]=_0x4bb156,_0x2fdda4;}var _0x4cee88=class extends _0x2d2ae4[_0x18bb44(0x1eb)]{constructor(..._0x28c1d1){const _0x43b4f5=_0x18bb44;super(..._0x28c1d1),_0x355256(this,_0x43b4f5(0x18e),new Map()),_0x355256(this,_0x43b4f5(0x1de),new _0x6794[(_0x43b4f5(0x20a))]()),_0x355256(this,_0x43b4f5(0x1f0),this[_0x43b4f5(0x1de)][_0x43b4f5(0x190)]());}[_0x18bb44(0x1d5)](_0x3e67a0,_0x5f065a){const _0x27820d=_0x18bb44;return _0x44cb53(this[_0x27820d(0x18e)][_0x27820d(0x1ba)](_0x3e67a0))[_0x27820d(0x21d)][_0x5f065a];}[_0x18bb44(0x1e2)](_0x553717,_0x57d6df,_0x25a829){const _0x53acea=_0x18bb44;this['_setResource'](_0x553717,_0x57d6df,_0x372441(this[_0x53acea(0x18e)]['get'](_0x553717),_0x57d6df,_0x25a829));}[_0x18bb44(0x1d3)](_0x2b31a3,_0x1b49bd){const _0x54c8ca=_0x18bb44;this[_0x54c8ca(0x223)](_0x2b31a3,_0x1b49bd,_0x49632f(this[_0x54c8ca(0x18e)][_0x54c8ca(0x1ba)](_0x2b31a3),_0x1b49bd));}['serialize'](_0x4531f6){const _0x3d9377=_0x18bb44;return _0x44cb53(this[_0x3d9377(0x18e)][_0x3d9377(0x1ba)](_0x4531f6));}[_0x18bb44(0x1a5)](_0x596950,_0x349d50){const _0x4dd7aa=_0x18bb44;this['_resources']['set'](_0x596950,_0x44cb53(_0x349d50)),this[_0x4dd7aa(0x1de)][_0x4dd7aa(0x1a8)]({'unitId':_0x596950});}[_0x18bb44(0x1dd)](_0x1afa52){const _0x5ec46b=_0x18bb44;this['_resources'][_0x5ec46b(0x206)](_0x1afa52),this[_0x5ec46b(0x1de)][_0x5ec46b(0x1a8)]({'unitId':_0x1afa52});}['dispose'](){const _0x99a486=_0x18bb44;super[_0x99a486(0x20f)](),this[_0x99a486(0x18e)][_0x99a486(0x1be)](),this[_0x99a486(0x1de)][_0x99a486(0x1e9)]();}['_setResource'](_0x5626a8,_0x1dfa8c,_0x1bcb54){const _0x58ef67=_0x18bb44;this['_resources'][_0x58ef67(0x1ab)](_0x5626a8,_0x1bcb54),this[_0x58ef67(0x1de)][_0x58ef67(0x1a8)]({'unitId':_0x5626a8,'blockId':_0x1dfa8c});}};let _0x31e639={'id':_0x18bb44(0x205),'type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':_0x2cd6d7=>{const _0x8a3151=_0x18bb44;let _0x2cf67e=_0x24fbff(_0x2cd6d7);if(_0x2cf67e)return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4[_0x8a3151(0x228)])['syncExecuteCommand'](_0x3da0e4['id'],{'startOffset':_0x2cf67e[_0x8a3151(0x1fc)],'endOffset':_0x2cf67e[_0x8a3151(0x217)],'unitId':_0x2cf67e['unitId']});let _0x469c2f=_0x8febec(_0x2cd6d7);if(!_0x469c2f)return!0x1;let _0x457185=_0x469c2f[_0x8a3151(0x1c6)]+0x1;return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4['ICommandService'])[_0x8a3151(0x1ae)](_0x3da0e4['id'],{'startOffset':_0x457185,'endOffset':_0x457185});}},_0x509773={'id':'docs-code.command.consume-boundary-delete','type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':()=>!0x0},_0x3da0e4={'id':_0x18bb44(0x224),'type':_0x2d2ae4[_0x18bb44(0x1e5)]['COMMAND'],'handler':(_0xe1e9ad,_0x48da87)=>{const _0x2cdebc=_0x18bb44;var _0x347e6a,_0x16cae9,_0x28e00d;let _0x308a97=_0x492273(_0xe1e9ad,_0x48da87==null?void 0x0:_0x48da87['unitId']);if(!_0x308a97)return!0x1;let _0x2a7516=_0x5330b4(_0xe1e9ad),_0x2f3e9a=_0x125d20({'blockId':(_0x347e6a=_0x48da87==null?void 0x0:_0x48da87['blockId'])==null?(0x0,_0x2d2ae4[_0x2cdebc(0x21b)])(0x6):_0x347e6a,'config':_0x48da87==null?void 0x0:_0x48da87['config'],'documentData':_0x308a97[_0x2cdebc(0x193)],'endOffset':(_0x16cae9=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x217)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x217)]:_0x16cae9,'metadata':_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x207)](_0x308a97[_0x2cdebc(0x1d2)]),'startOffset':(_0x28e00d=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x1fc)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x1fc)]:_0x28e00d}),_0x32deae=_0x1bb343(_0x308a97['commandService'],_0x308a97[_0x2cdebc(0x1d2)],_0x308a97['previousDocumentData'],_0x2f3e9a['nextDocumentData'],_0x2f3e9a[_0x2cdebc(0x1df)]);return _0x32deae&&_0x2f3e9a[_0x2cdebc(0x1d1)]&&_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x1a5)](_0x308a97['unitId'],_0x2f3e9a[_0x2cdebc(0x1d1)]),_0x32deae;}},_0x1fcaba={'id':'docs-code.command.update','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x22ef3c,_0x5a160a)=>{const _0x720427=_0x18bb44;if(!_0x5a160a)return!0x1;let _0xa50924=_0x492273(_0x22ef3c,_0x5a160a['unitId']);if(!_0xa50924)return!0x1;let _0x383662=_0x5a5761({'blockId':_0x5a160a[_0x720427(0x215)],'config':_0x5a160a[_0x720427(0x21f)],'documentData':_0xa50924['previousDocumentData'],'metadata':_0xa50924[_0x720427(0x1a9)][_0x720427(0x207)](_0xa50924['unitId'])});return _0x383662['nextMetadata']&&_0xa50924[_0x720427(0x1a9)][_0x720427(0x1a5)](_0xa50924[_0x720427(0x1d2)],_0x383662['nextMetadata']),!0x0;}},_0x37dca5={'id':'docs-code.command.exit','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x393e70,_0x4db286)=>{const _0x47d2aa=_0x18bb44;var _0x399394,_0x2c5738;let _0x276b1f=_0x492273(_0x393e70,_0x4db286==null?void 0x0:_0x4db286[_0x47d2aa(0x1d2)]);if(!_0x276b1f)return!0x1;let _0x188993=(_0x399394=_0x4db286==null?void 0x0:_0x4db286['cursorOffset'])==null?(_0x2c5738=_0x5330b4(_0x393e70))==null?void 0x0:_0x2c5738['startOffset']:_0x399394;if(_0x188993==null)return!0x1;let _0x392f65=_0x4f2c21({'cursorOffset':_0x188993,'documentData':_0x276b1f[_0x47d2aa(0x193)]});return _0x392f65?_0x1bb343(_0x276b1f['commandService'],_0x276b1f['unitId'],_0x276b1f[_0x47d2aa(0x193)],_0x392f65[_0x47d2aa(0x1e6)],_0x392f65['cursorOffset']):!0x1;}},_0x3b4d94={'id':_0x18bb44(0x1d6),'type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x5bbf6b,_0x3bba85)=>{const _0x32a58d=_0x18bb44;var _0x135167,_0x446ba3;let _0xea79b6=_0x492273(_0x5bbf6b,_0x3bba85==null?void 0x0:_0x3bba85['unitId']);if(!_0xea79b6)return!0x1;let _0x61bffc=(_0x135167=_0x3bba85==null?void 0x0:_0x3bba85[_0x32a58d(0x1df)])==null?(_0x446ba3=_0x5330b4(_0x5bbf6b))==null?void 0x0:_0x446ba3[_0x32a58d(0x1fc)]:_0x135167;if(_0x61bffc==null)return!0x1;let _0x4e72f9=_0x5d4520({'cursorOffset':_0x61bffc,'documentData':_0xea79b6[_0x32a58d(0x193)],'paragraphStartIndex':_0x3bba85==null?void 0x0:_0x3bba85['paragraphStartIndex']});return _0x4e72f9?_0x1bb343(_0xea79b6[_0x32a58d(0x235)],_0xea79b6[_0x32a58d(0x1d2)],_0xea79b6[_0x32a58d(0x193)],_0x4e72f9[_0x32a58d(0x1e6)],_0x4e72f9['cursorOffset']):!0x1;}};function _0x492273(_0x2ce90c,_0xf6aeea){const _0x3042ad=_0x18bb44;let _0x2de3fa=_0x2ce90c['get'](_0x2d2ae4[_0x3042ad(0x21c)]),_0x443435=_0xf6aeea?_0x2de3fa[_0x3042ad(0x233)](_0xf6aeea):_0x2de3fa[_0x3042ad(0x1d4)](_0x2d2ae4['UniverInstanceType'][_0x3042ad(0x199)]);return _0x443435?{'commandService':_0x2ce90c[_0x3042ad(0x1ba)](_0x2d2ae4[_0x3042ad(0x228)]),'model':_0x2ce90c[_0x3042ad(0x1ba)](_0x4cee88),'previousDocumentData':_0x443435['getSnapshot'](),'unitId':_0x443435[_0x3042ad(0x221)]()}:null;}function _0x5330b4(_0x4da611){const _0x3c9643=_0x18bb44;var _0x473cd3;return(_0x473cd3=_0x4da611[_0x3c9643(0x1ba)](_0x420f42['DocSelectionManagerService'])[_0x3c9643(0x1b8)]())==null?void 0x0:_0x473cd3[0x0];}function _0x24fbff(_0x1d5246){const _0x12c983=_0x18bb44;var _0x477f8f;let _0x351969=(_0x477f8f=_0x1d5246[_0x12c983(0x1ba)](_0x2d2ae4[_0x12c983(0x21c)])['getCurrentUnitOfType'](_0x2d2ae4['UniverInstanceType'][_0x12c983(0x199)]))==null?void 0x0:_0x477f8f[_0x12c983(0x221)]();try{return _0x1d5246[_0x12c983(0x1ba)](_0x420f42[_0x12c983(0x1b7)])[_0x12c983(0x231)](_0x351969);}catch{return null;}}function _0x8febec(_0x4cbb88){const _0x3a2c9c=_0x18bb44;var _0x10209e,_0x4f1c07,_0x439eb3;let _0x5dde41=_0x5330b4(_0x4cbb88);if(!_0x5dde41)return null;let _0x56f504=_0x4cbb88[_0x3a2c9c(0x1ba)](_0x2d2ae4[_0x3a2c9c(0x21c)])[_0x3a2c9c(0x1d4)](_0x2d2ae4[_0x3a2c9c(0x1a0)]['UNIVER_DOC']),_0x3efb27=_0x56f504==null?void 0x0:_0x56f504[_0x3a2c9c(0x214)]();return _0x3efb27?(_0x10209e=_0x2d2ae4['BuildTextUtils'][_0x3a2c9c(0x1a4)]['getParagraphsInRange'](_0x5dde41,(_0x4f1c07=_0x3efb27[_0x3a2c9c(0x19a)])==null?[]:_0x4f1c07,(_0x439eb3=_0x3efb27['dataStream'])==null?'':_0x439eb3)[0x0])==null?null:_0x10209e:null;}function _0x1c1bc4(_0x207bf7,_0x25813a){const _0x2ce4c0=_0x18bb44;var _0x321c58,_0xf0aefe,_0x4811c4,_0xe33741,_0x240c61,_0x19d348,_0x75467b,_0x53698a,_0x316ed8,_0x23301a,_0x3a7cf3,_0x331b9c,_0x2c32eb,_0x440e19,_0x184870,_0x412711,_0x3aed07,_0x4809be;let _0x3b6d61=_0x2d2ae4[_0x2ce4c0(0x1e1)][_0x2ce4c0(0x20c)]();return[_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x209)],(_0x321c58=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x321c58[_0x2ce4c0(0x209)],(_0xf0aefe=_0x25813a['body'])==null?void 0x0:_0xf0aefe['dataStream']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19a)],(_0x4811c4=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x4811c4[_0x2ce4c0(0x19a)],(_0xe33741=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0xe33741['paragraphs']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x211)],(_0x240c61=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x240c61[_0x2ce4c0(0x211)],(_0x19d348=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x19d348[_0x2ce4c0(0x211)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x1e4)],(_0x75467b=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x75467b[_0x2ce4c0(0x1e4)],(_0x53698a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x53698a[_0x2ce4c0(0x1e4)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x21a)],(_0x316ed8=_0x207bf7['body'])==null?void 0x0:_0x316ed8[_0x2ce4c0(0x21a)],(_0x23301a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x23301a[_0x2ce4c0(0x21a)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x22f)],(_0x3a7cf3=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3a7cf3[_0x2ce4c0(0x22f)],(_0x331b9c=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x331b9c['customRanges']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19d)],(_0x2c32eb=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x2c32eb['customDecorations'],(_0x440e19=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x440e19[_0x2ce4c0(0x19d)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'tables'],(_0x184870=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x184870[_0x2ce4c0(0x20e)],(_0x412711=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x412711[_0x2ce4c0(0x20e)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'blockRanges'],(_0x3aed07=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3aed07[_0x2ce4c0(0x1ad)],(_0x4809be=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x4809be[_0x2ce4c0(0x1ad)])]['filter'](Boolean)[_0x2ce4c0(0x1c8)]((_0x155421,_0x27252c)=>_0x2d2ae4[_0x2ce4c0(0x1e1)]['compose'](_0x155421,_0x27252c),null);}function _0x484a69(_0x3fdb40,_0x186b88,_0x414050,_0x340abb){const _0x42bbac=_0x18bb44;return _0x2d2ae4[_0x42bbac(0x19b)][_0x42bbac(0x1b6)](_0x414050,_0x340abb)?null:_0x3fdb40[_0x42bbac(0x21e)](_0x186b88,_0x414050,_0x340abb);}function _0x1bb343(_0x1b172d,_0x169d2d,_0x9d73b2,_0x520d15,_0x107c54){const _0x3add32=_0x18bb44;let _0x196673=_0x1c1bc4(_0x9d73b2,_0x520d15);return _0x196673?!!_0x1b172d['syncExecuteCommand'](_0x420f42[_0x3add32(0x1db)]['id'],{'unitId':_0x169d2d,'actions':_0x196673,'textRanges':[{'startOffset':_0x107c54,'endOffset':_0x107c54,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x1e3738=_0x18bb44(0x19e);var _0x5a3dcb=_0x18bb44(0x1f6),_0x54f6ef=_0x18bb44(0x1c0);let _0x234ecf={};function _0x5d501f(_0xc002d7,_0x45474e){return function(_0x3ec368,_0xc614dd){_0x45474e(_0x3ec368,_0xc614dd,_0xc002d7);};}function _0xc0f957(_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801){const _0x1c92ae=_0x18bb44;var _0x334e88=arguments[_0x1c92ae(0x1bb)],_0x161254=_0x334e88<0x3?_0x5a3aa7:_0x556801===null?_0x556801=Object[_0x1c92ae(0x1c1)](_0x5a3aa7,_0x80b769):_0x556801,_0x2c8d52;if(typeof Reflect=='object'&&typeof Reflect[_0x1c92ae(0x1cb)]==_0x1c92ae(0x1a3))_0x161254=Reflect[_0x1c92ae(0x1cb)](_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801);else{for(var _0x499bf2=_0xd80a37[_0x1c92ae(0x1bb)]-0x1;_0x499bf2>=0x0;_0x499bf2--)(_0x2c8d52=_0xd80a37[_0x499bf2])&&(_0x161254=(_0x334e88<0x3?_0x2c8d52(_0x161254):_0x334e88>0x3?_0x2c8d52(_0x5a3aa7,_0x80b769,_0x161254):_0x2c8d52(_0x5a3aa7,_0x80b769))||_0x161254);}return _0x334e88>0x3&&_0x161254&&Object[_0x1c92ae(0x1cf)](_0x5a3aa7,_0x80b769,_0x161254),_0x161254;}let _0x478c4e=class extends _0x2d2ae4['Disposable']{constructor(_0x31c1f1,_0x10e8d3){const _0x1e2832=_0x18bb44;super(),this[_0x1e2832(0x1fe)]=_0x31c1f1,this[_0x1e2832(0x1f4)]=_0x10e8d3,this[_0x1e2832(0x22d)]();}[_0x18bb44(0x22d)](){const _0x529a69=_0x18bb44;this[_0x529a69(0x1c9)](this['_resourceManagerService'][_0x529a69(0x1e0)]({'pluginName':_0x1e3738,'businesses':[_0x2d2ae4[_0x529a69(0x1a0)]['UNIVER_DOC']],'toJson':_0x3a1301=>JSON['stringify'](this[_0x529a69(0x1f4)][_0x529a69(0x207)](_0x3a1301)),'parseJson':_0x459c7f=>_0x44cb53(JSON[_0x529a69(0x1cd)](_0x459c7f)),'onLoad':(_0x36aaa8,_0x3fcd40)=>this[_0x529a69(0x1f4)][_0x529a69(0x1a5)](_0x36aaa8,_0x3fcd40),'onUnLoad':_0x5beba7=>this['_docsCodeModel'][_0x529a69(0x1dd)](_0x5beba7)}));}};_0x478c4e=_0xc0f957([_0x5d501f(0x0,_0x2d2ae4[_0x18bb44(0x18b)]),_0x5d501f(0x1,(0x0,_0x2d2ae4['Inject'])(_0x4cee88))],_0x478c4e);let _0x147529=class extends _0x2d2ae4['Plugin']{constructor(_0x1d0194=_0x234ecf,_0x3df27c,_0x4df3ea,_0x3e36cd){const _0x2a3508=_0x18bb44;super(),this['_config']=_0x1d0194,this[_0x2a3508(0x1da)]=_0x3df27c,this[_0x2a3508(0x1f5)]=_0x4df3ea,this[_0x2a3508(0x212)]=_0x3e36cd;let {..._0x6498fd}=(0x0,_0x2d2ae4[_0x2a3508(0x1b4)])({},_0x234ecf,this[_0x2a3508(0x1e7)]);this[_0x2a3508(0x212)][_0x2a3508(0x1d0)](_0x2a3508(0x202),_0x6498fd);}[_0x18bb44(0x218)](){const _0x26e5d6=_0x18bb44;this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x4cee88]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x478c4e]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x4cee88),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x478c4e),[_0x3da0e4,_0x31e639,_0x1fcaba,_0x37dca5,_0x3b4d94,_0x509773]['forEach'](_0x4e3fd8=>this[_0x26e5d6(0x1c9)](this[_0x26e5d6(0x1f5)]['registerCommand'](_0x4e3fd8)));}};_0x355256(_0x147529,_0x18bb44(0x23e),_0x1e3738),_0x355256(_0x147529,_0x18bb44(0x197),_0x5a3dcb),_0x355256(_0x147529,_0x18bb44(0x23f),_0x54f6ef),_0x355256(_0x147529,_0x18bb44(0x232),_0x2d2ae4[_0x18bb44(0x1a0)][_0x18bb44(0x199)]),_0x147529=_0xc0f957([(0x0,_0x2d2ae4[_0x18bb44(0x1ca)])(_0x181267[_0x18bb44(0x22e)],_0x420f42[_0x18bb44(0x225)]),_0x5d501f(0x1,(0x0,_0x2d2ae4[_0x18bb44(0x1ff)])(_0x2d2ae4[_0x18bb44(0x1ce)])),_0x5d501f(0x2,_0x2d2ae4[_0x18bb44(0x228)]),_0x5d501f(0x3,_0x2d2ae4['IConfigService'])],_0x147529),_0x323281[_0x18bb44(0x194)]=_0x44adb7,_0x323281['DOCS_CODE_PLUGIN']=_0x1e3738,_0x323281[_0x18bb44(0x1f2)]=_0x3b4d94,_0x323281['DocsCodeConsumeBoundaryDeleteCommand']=_0x509773,_0x323281['DocsCodeExitCommand']=_0x37dca5,_0x323281[_0x18bb44(0x237)]=_0x31e639,_0x323281[_0x18bb44(0x1b5)]=_0x3da0e4,_0x323281['DocsCodeModel']=_0x4cee88,_0x323281[_0x18bb44(0x238)]=_0x1fcaba,Object[_0x18bb44(0x1cf)](_0x323281,_0x18bb44(0x18d),{'enumerable':!0x0,'get':function(){return _0x147529;}}),_0x323281['buildCancelEmptyCodeParagraphActions']=_0x5d4520,_0x323281[_0x18bb44(0x1aa)]=_0x4f2c21,_0x323281[_0x18bb44(0x1ef)]=_0x125d20,_0x323281[_0x18bb44(0x1ed)]=_0x5a5761,_0x323281[_0x18bb44(0x20d)]=_0x13a49b,_0x323281[_0x18bb44(0x195)]=_0x363106,_0x323281[_0x18bb44(0x18c)]=_0x566ed2;}));
1
+ function _0x5a7f(){const _0x584fa1=['DocsCodeCancelEmptyParagraphCommand','unitId','getOwnPropertyDescriptor','getBody','range','_docsCodeModel','spaceBelow','RichTextEditingMutation','getParagraphsInRange','@univerjs/docs','customBlocks','docs-code.command.consume-boundary-delete','IResourceManagerService','Subject','default','removeCode','left','_resources','startOffset','blockRanges','min','slice','BuildTextUtils','textStyle','model','_injector','forEach','createParagraphId','UniverCore','map','isCodeBoundaryDelete','compose','consumeInsertRange','pluginName','paragraph','Module','startIndex','_configService','UniverLicensePlugin','length','onStarting','DEFAULT_CODE_CONFIG','_config','disposeWithMe','generateRandomId','getUnitId','reduce','string','direction','buildUpdateCodeActions','prototype','UniverDocsCodePlugin','defineProperty','DocsCodeExitCommand','CODE','DocContentInsertService','DataStreamTreeTokenType','Inject','915214dgNbui','symbol','asObservable','DependentOn','entries','PARAGRAPH','680hIEbHj','customRanges','stringify','1682471mWAMqN','_commandService','buildInsertCodeActions','tables','COMMAND','UniverInstanceType','28523GKtdiV','max','serialize','_setResource','get','_change$','dataStream','diffValue','1029174KJrJGg','549896TnULIZ','_initResource','version','4dszSIO','every','CommandType','1ZqFkKb','clear','docs-code.command.insert-below','UniverProDocsCode','change$','DocsCodeModel','type','docs-code.command.cancel-empty-paragraph','add','indentStart','getInstance','metadata','@univerjs-pro/docs-code','Tools','spaceAbove','_resourceManagerService','Plugin','indentEnd','removeUnit','paragraphStyle','syncExecuteCommand','DocumentBlockRangeType','2091770tHOtkD','config','registerPluginResource','from','getCurrentUnitOfType','decorate','36QNzQZE','body','complete','customDecorations','703554mqfoxH','SECTION_BREAK','codes','1.0.0-insiders.20260701-0ef51b0','nextMetadata','endIndex','monospace','dispose','BLOCK_END','previousDocumentData','find','some','documentData','docs-code.config','indexOf','registerCommand','BLOCK_START','nextDocumentData','deepClone','sectionBreaks','UniverDocs','object','paragraphStartIndex','set','toStringTag','DocsCodeInsertBelowCommand','paragraphs','textRuns','IConfigService','@univerjs/core','UniverProLicense','IUniverInstanceService','fromEntries','blockId','commandService','exports','merge','ICommandService','endOffset','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','docs-code.command.insert','constructor','call','right','cursorOffset','blockType','filter','deserialize','DOC_CODE_PLUGIN','DOCS_CODE_PLUGIN','function','sort','DocsCodeConsumeBoundaryDeleteCommand','UNIVER_DOC','rxjs','Disposable','paragraphId','next'];_0x5a7f=function(){return _0x584fa1;};return _0x5a7f();}function _0x4e30(_0x5870c2,_0x4fd37a){_0x5870c2=_0x5870c2-0x16c;const _0x5a7f34=_0x5a7f();let _0x4e301b=_0x5a7f34[_0x5870c2];return _0x4e301b;}(function(_0x349b5a,_0x164b6d){const _0x444c68=_0x4e30,_0xc3f6e2=_0x349b5a();while(!![]){try{const _0xff7f9e=-parseInt(_0x444c68(0x188))/0x1*(parseInt(_0x444c68(0x21c))/0x2)+-parseInt(_0x444c68(0x1a8))/0x3*(-parseInt(_0x444c68(0x185))/0x4)+parseInt(_0x444c68(0x19e))/0x5+-parseInt(_0x444c68(0x181))/0x6+-parseInt(_0x444c68(0x173))/0x7+parseInt(_0x444c68(0x182))/0x8*(parseInt(_0x444c68(0x1a4))/0x9)+-parseInt(_0x444c68(0x170))/0xa*(-parseInt(_0x444c68(0x179))/0xb);if(_0xff7f9e===_0x164b6d)break;else _0xc3f6e2['push'](_0xc3f6e2['shift']());}catch(_0x347ba5){_0xc3f6e2['push'](_0xc3f6e2['shift']());}}}(_0x5a7f,0x3949f),function(_0x3870c1,_0x5e0bc9){const _0x243d0d=_0x4e30;typeof exports==_0x243d0d(0x1bd)&&typeof module<'u'?_0x5e0bc9(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x243d0d(0x1da)&&define['amd']?define([_0x243d0d(0x1cb),_0x243d0d(0x1c5),_0x243d0d(0x1eb),_0x243d0d(0x1de),'@univerjs-pro/license'],_0x5e0bc9):(_0x3870c1=typeof globalThis<'u'?globalThis:_0x3870c1||self,_0x5e0bc9(_0x3870c1[_0x243d0d(0x18b)]={},_0x3870c1[_0x243d0d(0x1fe)],_0x3870c1[_0x243d0d(0x1bc)],_0x3870c1[_0x243d0d(0x1de)],_0x3870c1[_0x243d0d(0x1c6)]));}(this,function(_0x28133a,_0x3e9b19,_0x17f9fb,_0x56a0f1,_0x4f1e27){const _0x260969=_0x4e30;Object[_0x260969(0x216)](_0x28133a,Symbol[_0x260969(0x1c0)],{'value':_0x260969(0x205)});let _0x370d70={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x59e9a5(_0x12f342){return{..._0x370d70,..._0x12f342};}function _0x5d2e42(_0x456b1a){const _0x39c975=_0x260969;var _0x1e05c8;let _0x1033b4=(_0x1e05c8=_0x456b1a==null?void 0x0:_0x456b1a[_0x39c975(0x1aa)])==null?{}:_0x1e05c8;return{'codes':Object[_0x39c975(0x1c8)](Object[_0x39c975(0x16e)](_0x1033b4)[_0x39c975(0x1ff)](([_0x24214b,_0x4ae869])=>[_0x24214b,_0x59e9a5(_0x4ae869)]))};}function _0x3e535c(_0x59a3a3,_0x2108bf,_0x3b024d){const _0x1c8e0a=_0x260969;let _0x2f9cfe=_0x5d2e42(_0x59a3a3);return _0x2f9cfe[_0x1c8e0a(0x1aa)][_0x2108bf]=_0x59e9a5({..._0x2f9cfe['codes'][_0x2108bf],..._0x3b024d}),_0x2f9cfe;}function _0x2867f5(_0x20300c,_0xa70929){let _0x1d0d8e=_0x5d2e42(_0x20300c);return delete _0x1d0d8e['codes'][_0xa70929],_0x1d0d8e;}let _0x450e31=_0x260969(0x1ae);function _0x29635b(_0x51c796){const _0x2045c8=_0x260969;var _0x7720d2,_0x254a6d,_0x72038;let _0xbfe99d=_0x4eada5(_0x51c796[_0x2045c8(0x1b4)]),_0x4d00f1=_0x50740c(_0xbfe99d),_0x8edd7d=_0x20c4c0(_0x51c796[_0x2045c8(0x1f4)],_0x51c796[_0x2045c8(0x1ce)]),_0x385e78=_0x8edd7d?(_0x7720d2=_0x4d00f1[_0x2045c8(0x1f5)])==null?void 0x0:_0x7720d2[_0x2045c8(0x1b2)](_0x47e34f=>_0x47e34f[_0x2045c8(0x206)]===_0x8edd7d[_0x2045c8(0x1f4)]&&_0x47e34f[_0x2045c8(0x1ad)]+0x1===_0x8edd7d['endOffset']):void 0x0,{startOffset:_0x39654f,endOffset:_0x747366}=_0x385e78?_0x8edd7d:_0x52dba1(_0x4d00f1,_0x51c796[_0x2045c8(0x1f4)],_0x51c796['endOffset']),_0x897599=_0x545dd2(_0x4d00f1,_0x39654f,_0x747366),_0xcf9ee5=(_0x254a6d=_0x385e78==null?void 0x0:_0x385e78['blockId'])==null?_0x51c796[_0x2045c8(0x1c9)]:_0x254a6d,_0x1cd560=_0x3e535c(_0x51c796[_0x2045c8(0x193)],_0xcf9ee5,{..._0x370d70,..._0x51c796['config']});if(_0x385e78)return _0x385e78['blockType']=_0x3e9b19['DocumentBlockRangeType'][_0x2045c8(0x218)],_0x28a836(_0x4d00f1,_0x39654f,_0x747366),_0x1956a7(_0x4d00f1,_0x39654f,_0x747366,_0x897599),_0x502423(_0x4d00f1,_0x385e78),{'nextDocumentData':_0xbfe99d,'nextMetadata':_0x1cd560,'cursorOffset':_0x39654f+0x1};if(_0x39654f===_0x747366){var _0x440c92,_0x4ea71e;let _0x323819=''+_0x3e9b19[_0x2045c8(0x21a)][_0x2045c8(0x1b8)]+_0x3e9b19[_0x2045c8(0x21a)][_0x2045c8(0x16f)]+_0x3e9b19['DataStreamTreeTokenType'][_0x2045c8(0x1b0)];_0x5ab5d0(_0x4d00f1,_0x39654f,_0x323819,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x3e9b19[_0x2045c8(0x1fd)])(new Set((_0x440c92=_0x4d00f1[_0x2045c8(0x1c2)])==null?void 0x0:_0x440c92[_0x2045c8(0x1ff)](_0x312699=>_0x312699[_0x2045c8(0x1e0)]))),'paragraphStyle':_0x200b11(!0x0,!0x0,_0x897599)}],'blockRanges':[{'blockId':_0xcf9ee5,'blockType':_0x3e9b19[_0x2045c8(0x19d)]['CODE'],'startIndex':0x0,'endIndex':_0x323819[_0x2045c8(0x209)]-0x1}]});let _0x52cf06=(_0x4ea71e=_0x4d00f1['blockRanges'])==null?void 0x0:_0x4ea71e[_0x2045c8(0x1b2)](_0x2bcc86=>_0x2bcc86[_0x2045c8(0x1c9)]===_0xcf9ee5);return _0x52cf06&&_0x502423(_0x4d00f1,_0x52cf06),{'nextDocumentData':_0xbfe99d,'nextMetadata':_0x1cd560,'cursorOffset':_0x39654f+0x1};}_0x5ab5d0(_0x4d00f1,_0x747366,_0x3e9b19[_0x2045c8(0x21a)][_0x2045c8(0x1b0)]),_0x5ab5d0(_0x4d00f1,_0x39654f,_0x3e9b19['DataStreamTreeTokenType'][_0x2045c8(0x1b8)]),_0x1956a7(_0x4d00f1,_0x39654f,_0x747366+0x1,_0x897599);let _0x499578={'blockId':_0xcf9ee5,'blockType':_0x3e9b19['DocumentBlockRangeType']['CODE'],'startIndex':_0x39654f,'endIndex':_0x747366+0x1};return _0x4d00f1[_0x2045c8(0x1f5)]=[...(_0x72038=_0x4d00f1[_0x2045c8(0x1f5)])==null?[]:_0x72038,_0x499578][_0x2045c8(0x1db)]((_0x52eead,_0x4c7e33)=>_0x52eead[_0x2045c8(0x206)]-_0x4c7e33[_0x2045c8(0x206)]),_0x502423(_0x4d00f1,_0x499578),{'nextDocumentData':_0xbfe99d,'nextMetadata':_0x1cd560,'cursorOffset':_0x39654f+0x1};}function _0x28a836(_0x3e21dc,_0x513bf2,_0x482136){const _0x196b9a=_0x260969;var _0x583471;((_0x583471=_0x3e21dc[_0x196b9a(0x1c2)])==null?[]:_0x583471)[_0x196b9a(0x1d6)](_0x1216cf=>_0x1216cf[_0x196b9a(0x206)]>_0x513bf2&&_0x1216cf[_0x196b9a(0x206)]<_0x482136)[_0x196b9a(0x1fc)](_0x5ed9bf=>{const _0x21a083=_0x196b9a;var _0x4108b4;let _0x15d1f4={...(_0x4108b4=_0x5ed9bf[_0x21a083(0x19b)])==null?{}:_0x4108b4};delete _0x15d1f4[_0x21a083(0x196)],delete _0x15d1f4[_0x21a083(0x1e8)],_0x5ed9bf[_0x21a083(0x19b)]=_0x15d1f4;});}function _0x20c4c0(_0x215aac,_0x289fee){const _0x1d411b=_0x260969;return _0x215aac==null||_0x289fee==null||_0x215aac===_0x289fee?null:{'startOffset':Math[_0x1d411b(0x1f6)](_0x215aac,_0x289fee),'endOffset':Math[_0x1d411b(0x17a)](_0x215aac,_0x289fee)};}function _0x583b8c(_0x12cd81){const _0x5244cb=_0x260969;return{'nextDocumentData':_0x4eada5(_0x12cd81[_0x5244cb(0x1b4)]),'nextMetadata':_0x3e535c(_0x12cd81[_0x5244cb(0x193)],_0x12cd81[_0x5244cb(0x1c9)],_0x12cd81['config']),'cursorOffset':0x0};}function _0x44e576(_0x33496b){const _0x57abf6=_0x260969;var _0x3c7578,_0x41f252;let _0xef273f=_0x4eada5(_0x33496b['documentData']),_0x43557c=_0x50740c(_0xef273f),_0x29fc48=_0x21b7ee(_0x43557c,_0x33496b[_0x57abf6(0x1d4)]);if(!_0x29fc48)return null;let _0x26ad55=_0x4c6776(_0x43557c,_0x29fc48),_0x1170f7=_0x26ad55[_0x26ad55[_0x57abf6(0x209)]-0x1];if(!_0x1170f7||!_0xcea17a(_0x43557c,_0x29fc48,_0x1170f7)||_0x33496b['cursorOffset']<_0x1170f7[_0x57abf6(0x206)])return null;let _0x1a0f21=_0x3f0207(_0x43557c,_0x29fc48,_0x1170f7);if(_0x1a0f21>=_0x29fc48['endIndex'])return null;_0x43557c[_0x57abf6(0x17f)]=[_0x43557c['dataStream'][_0x57abf6(0x1f7)](0x0,_0x1a0f21),_0x3e9b19['DataStreamTreeTokenType'][_0x57abf6(0x1b0)],_0x43557c[_0x57abf6(0x17f)][_0x57abf6(0x1f7)](_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)]),_0x43557c[_0x57abf6(0x17f)][_0x57abf6(0x1f7)](_0x29fc48['endIndex']+0x1)]['join'](''),_0x1801cc(_0x43557c[_0x57abf6(0x1c2)],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x1801cc(_0x43557c[_0x57abf6(0x1bb)],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x1801cc(_0x43557c['customBlocks'],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x34d74a(_0x43557c['textRuns'],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x508106(_0x43557c[_0x57abf6(0x176)],_0x1a0f21,_0x29fc48['endIndex'],0x1),_0x508106(_0x43557c[_0x57abf6(0x171)],_0x1a0f21,_0x29fc48[_0x57abf6(0x1ad)],0x1),_0x508106(_0x43557c[_0x57abf6(0x1a7)],_0x1a0f21,_0x29fc48['endIndex'],0x1),(_0x3c7578=_0x43557c[_0x57abf6(0x1f5)])==null||_0x3c7578['forEach'](_0x8094f3=>{const _0x577592=_0x57abf6;_0x8094f3===_0x29fc48||_0x8094f3[_0x577592(0x1c9)]===_0x29fc48['blockId']?_0x8094f3[_0x577592(0x1ad)]=_0x1a0f21:_0x8094f3[_0x577592(0x206)]>=_0x1a0f21&&_0x8094f3[_0x577592(0x206)]<_0x29fc48[_0x577592(0x1ad)]&&(_0x8094f3['startIndex']+=0x1,_0x8094f3['endIndex']+=0x1);});let _0x2d0715=_0x4c6776(_0x43557c,{..._0x29fc48,'endIndex':_0x1a0f21});_0x2d0715['forEach']((_0x5f064b,_0x261cfd)=>{const _0x59d88d=_0x57abf6;var _0x5a5a07;_0x5f064b[_0x59d88d(0x19b)]={...(_0x5a5a07=_0x5f064b[_0x59d88d(0x19b)])==null?{}:_0x5a5a07,..._0x200b11(_0x261cfd===0x0,_0x261cfd===_0x2d0715[_0x59d88d(0x209)]-0x1)};});let _0x12784d=(_0x41f252=_0x43557c['paragraphs'])==null?void 0x0:_0x41f252[_0x57abf6(0x1b2)](_0x19c110=>_0x19c110[_0x57abf6(0x206)]===_0x1a0f21+0x1);return _0x12784d&&(_0x12784d[_0x57abf6(0x19b)]=_0x447f02(_0x12784d[_0x57abf6(0x19b)])),{'nextDocumentData':_0xef273f,'cursorOffset':_0x1a0f21+0x1};}function _0x429fde(_0x17cf33){const _0x44d484=_0x260969;let _0x3a7e75=_0x4eada5(_0x17cf33[_0x44d484(0x1b4)]),_0x5ded8=_0x50740c(_0x3a7e75),_0x4da982=_0x21b7ee(_0x5ded8,_0x17cf33[_0x44d484(0x1d4)]);return _0x4da982&&_0xd27512(_0x3a7e75,_0x5ded8,_0x4da982,_0x17cf33[_0x44d484(0x1d4)],_0x17cf33[_0x44d484(0x1be)])||null;}function _0xd27512(_0x5b48e0,_0x44e9b9,_0x1988c9,_0x1d2dc0,_0x506ae3){const _0x2a634f=_0x260969;let _0x37fd92=_0x5df1a2(_0x44e9b9,_0x1988c9,_0x1d2dc0,_0x506ae3);if(!_0x37fd92)return null;let _0xcdcb5c=_0x37fd92['endTokenOffset']-0x1;return _0xae846(_0x44e9b9,_0x37fd92[_0x2a634f(0x204)]['startIndex'],_0x37fd92[_0x2a634f(0x204)][_0x2a634f(0x206)]+0x1),{'nextDocumentData':_0x5b48e0,'cursorOffset':_0xcdcb5c};}function _0x19dc47(_0x2de648,_0x23d5f4){const _0x326df3=_0x260969;var _0x4868ac;return _0x2de648==null||(_0x4868ac=_0x2de648[_0x326df3(0x1f5)])==null?void 0x0:_0x4868ac[_0x326df3(0x1b2)](_0x1b93e0=>_0x1b93e0[_0x326df3(0x1d5)]===_0x3e9b19[_0x326df3(0x19d)][_0x326df3(0x218)]&&_0x1b93e0[_0x326df3(0x206)]<=_0x23d5f4&&_0x23d5f4<=_0x1b93e0[_0x326df3(0x1ad)]);}function _0xdc47cf(_0x15a92a){const _0xf2578b=_0x260969;var _0x196053;let _0x58cb8=_0x15a92a[_0xf2578b(0x1b4)]['body'];if(!_0x58cb8)return!0x1;let _0x18a1bd=_0x15a92a[_0xf2578b(0x212)]===_0xf2578b(0x1f2)?_0x15a92a[_0xf2578b(0x1d4)]-0x1:_0x15a92a[_0xf2578b(0x1d4)],_0x1dbaef=_0x15a92a['direction']===_0xf2578b(0x1d3)?_0x15a92a[_0xf2578b(0x1d4)]+0x1:_0x18a1bd;return((_0x196053=_0x58cb8[_0xf2578b(0x1f5)])==null?[]:_0x196053)['some'](_0x2fb02f=>_0x2fb02f[_0xf2578b(0x1d5)]===_0x3e9b19[_0xf2578b(0x19d)]['CODE']?_0x18a1bd===_0x2fb02f['startIndex']||_0x18a1bd===_0x2fb02f['endIndex']||_0x1dbaef===_0x2fb02f[_0xf2578b(0x206)]||_0x1dbaef===_0x2fb02f[_0xf2578b(0x1ad)]:!0x1);}function _0x21b7ee(_0x56b15,_0x260388){const _0x11e0f8=_0x260969;var _0x50c70d;return(_0x50c70d=_0x56b15[_0x11e0f8(0x1f5)])==null?void 0x0:_0x50c70d[_0x11e0f8(0x1b2)](_0x1add37=>{const _0x1f9121=_0x11e0f8;let _0x265102=_0x62d87d(_0x56b15,_0x1add37);return _0x1add37['blockType']===_0x3e9b19[_0x1f9121(0x19d)][_0x1f9121(0x218)]&&_0x1add37[_0x1f9121(0x206)]<=_0x260388&&_0x260388<=_0x265102+0x2;});}function _0x200b11(_0x5bfa09,_0x3eeefc,_0x57516d=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x5bfa09&&_0x57516d?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x450e31,'fs':0xc}};}function _0x1956a7(_0x2a43ab,_0x100779,_0x200895,_0x3604cd=!0x1){const _0x1fb31b=_0x260969;var _0x93c872;let _0x50d843=((_0x93c872=_0x2a43ab['paragraphs'])==null?[]:_0x93c872)[_0x1fb31b(0x1d6)](_0x263fc2=>_0x263fc2['startIndex']>_0x100779&&_0x263fc2['startIndex']<_0x200895);_0x50d843[_0x1fb31b(0x1fc)]((_0x3c4180,_0x47ed11)=>{const _0x4ffdc6=_0x1fb31b;var _0x3acc07;_0x3c4180[_0x4ffdc6(0x19b)]={...(_0x3acc07=_0x3c4180['paragraphStyle'])==null?{}:_0x3acc07,..._0x200b11(_0x47ed11===0x0,_0x47ed11===_0x50d843[_0x4ffdc6(0x209)]-0x1,_0x3604cd)};});}function _0x447f02(_0x4b9cfd){const _0x278ce7=_0x260969;var _0x581515,_0x52faa2;let _0x221ab1={..._0x4b9cfd==null?{}:_0x4b9cfd};return delete _0x221ab1[_0x278ce7(0x199)],delete _0x221ab1[_0x278ce7(0x191)],delete _0x221ab1[_0x278ce7(0x196)],delete _0x221ab1[_0x278ce7(0x1e8)],((_0x581515=_0x221ab1[_0x278ce7(0x1f9)])==null?void 0x0:_0x581515['ff'])===_0x450e31&&((_0x52faa2=_0x221ab1[_0x278ce7(0x1f9)])==null?void 0x0:_0x52faa2['fs'])===0xc&&delete _0x221ab1[_0x278ce7(0x1f9)],_0x221ab1;}function _0x4c6776(_0x36341c,_0x24cbb2){const _0x5da224=_0x260969;var _0x13c0e4;let _0x22ad38=_0x62d87d(_0x36341c,_0x24cbb2);return((_0x13c0e4=_0x36341c[_0x5da224(0x1c2)])==null?[]:_0x13c0e4)[_0x5da224(0x1d6)](_0xabd5c0=>_0xabd5c0['startIndex']>_0x24cbb2[_0x5da224(0x206)]&&_0xabd5c0[_0x5da224(0x206)]<_0x22ad38);}function _0xcea17a(_0x1a6580,_0x190635,_0x3ad7e9){const _0x14b642=_0x260969;let _0x5da435=_0x3f0207(_0x1a6580,_0x190635,_0x3ad7e9),_0x3bc9fa=_0x1a6580[_0x14b642(0x17f)]['slice'](_0x5da435,_0x3ad7e9[_0x14b642(0x206)]);return Array[_0x14b642(0x1a1)](_0x3bc9fa)['every'](_0x1fa7cb=>_0x1fa7cb===_0x3e9b19[_0x14b642(0x21a)][_0x14b642(0x1b8)]||_0x1fa7cb===_0x3e9b19[_0x14b642(0x21a)][_0x14b642(0x1b0)]);}function _0x4eada5(_0x427c36){const _0x271205=_0x260969;return _0x3e9b19[_0x271205(0x195)][_0x271205(0x1ba)](_0x427c36);}function _0x50740c(_0x156318){if(!_0x156318['body'])throw Error('Document\x20body\x20is\x20required');return _0x156318['body'];}function _0x52dba1(_0x2b504a,_0x14f029,_0x118c01){const _0x168193=_0x260969;if(_0x14f029==null||_0x118c01==null){let _0xe0e85f=_0x3d27fe(_0x2b504a);return{'startOffset':_0xe0e85f,'endOffset':_0xe0e85f};}let _0x4199d0=Math[_0x168193(0x1f6)](_0x14f029,_0x118c01),_0x49f4a6=Math[_0x168193(0x17a)](_0x14f029,_0x118c01);if(_0x4199d0===_0x49f4a6){let _0x3d5623=_0x54cf5e(_0x2b504a,_0x4199d0);return{'startOffset':_0x3d5623,'endOffset':_0x3d5623};}return _0x1380b8(_0x2b504a,_0x4199d0,_0x49f4a6);}function _0x54cf5e(_0x1fd25b,_0x5bafa7){const _0x30f396=_0x260969;return _0x5bafa7===0x0&&_0x1fd25b['dataStream'][0x0]===_0x3e9b19['DataStreamTreeTokenType'][_0x30f396(0x16f)]?0x1:_0x5bafa7;}function _0x3d27fe(_0x216819){const _0x4dc973=_0x260969;return _0x216819['dataStream']['endsWith'](_0x3e9b19['DataStreamTreeTokenType'][_0x4dc973(0x1a9)])?Math[_0x4dc973(0x17a)](0x0,_0x216819[_0x4dc973(0x17f)]['length']-0x1):_0x216819['dataStream']['length'];}function _0x545dd2(_0x4eef03,_0x32bbed,_0x59d1f0){const _0x17d122=_0x260969;var _0x4f784f;let _0x3836d0=Math[_0x17d122(0x1f6)](_0x32bbed,_0x59d1f0),_0x2e286d=Math[_0x17d122(0x17a)](_0x32bbed,_0x59d1f0);return!!((_0x4f784f=_0x4eef03[_0x17d122(0x176)])!=null&&_0x4f784f[_0x17d122(0x1b3)](_0x424f5d=>_0x3836d0>_0x424f5d[_0x17d122(0x206)]&&_0x3836d0<_0x424f5d[_0x17d122(0x1ad)]||_0x2e286d>_0x424f5d[_0x17d122(0x206)]&&_0x2e286d<_0x424f5d['endIndex']||_0x3836d0<=_0x424f5d['startIndex']&&_0x2e286d>=_0x424f5d[_0x17d122(0x1ad)]));}function _0x1380b8(_0x1cc4bb,_0x5eaf44,_0x34e6ba){const _0x22c80a=_0x260969;var _0x187256,_0x11820a;let _0x4eb334=[...(_0x187256=_0x1cc4bb[_0x22c80a(0x1c2)])==null?[]:_0x187256][_0x22c80a(0x1db)]((_0x61a0ac,_0x90b34e)=>_0x61a0ac[_0x22c80a(0x206)]-_0x90b34e[_0x22c80a(0x206)]),_0x41156d=_0x4eb334[_0x22c80a(0x1b2)]((_0x35d59c,_0x212e3d)=>(_0x212e3d===0x0?0x0:_0x4eb334[_0x212e3d-0x1][_0x22c80a(0x206)]+0x1)<=_0x5eaf44&&_0x5eaf44<=_0x35d59c['startIndex']),_0x3dcbe9=(_0x11820a=_0x4eb334[_0x22c80a(0x1b2)](_0x565a0a=>_0x565a0a[_0x22c80a(0x206)]>=_0x34e6ba-0x1))==null?_0x4eb334[_0x4eb334[_0x22c80a(0x209)]-0x1]:_0x11820a;return{'startOffset':_0x41156d?_0x38effe(_0x4eb334,_0x41156d):_0x5eaf44,'endOffset':_0x3dcbe9?_0x3dcbe9[_0x22c80a(0x206)]+0x1:_0x34e6ba};}function _0x38effe(_0x57971d,_0x4d519b){const _0x114a3c=_0x260969;let _0x422e9f=_0x57971d[_0x114a3c(0x1b6)](_0x4d519b);return _0x422e9f>0x0?_0x57971d[_0x422e9f-0x1][_0x114a3c(0x206)]+0x1:0x0;}function _0x3f0207(_0x44d355,_0xfd4f32,_0x49f233){const _0x3f826c=_0x260969;var _0x34d5c9;return Math['max'](_0x38effe((_0x34d5c9=_0x44d355[_0x3f826c(0x1c2)])==null?[]:_0x34d5c9,_0x49f233),_0xfd4f32[_0x3f826c(0x206)]+0x1);}function _0x62d87d(_0x390f7a,_0x4328ad){const _0x451216=_0x260969;return _0x390f7a['dataStream'][_0x4328ad['endIndex']]===_0x3e9b19['DataStreamTreeTokenType'][_0x451216(0x1b0)]?_0x4328ad['endIndex']:_0x390f7a['dataStream'][_0x4328ad[_0x451216(0x1ad)]+0x1]===_0x3e9b19[_0x451216(0x21a)][_0x451216(0x1b0)]?_0x4328ad[_0x451216(0x1ad)]+0x1:_0x4328ad['endIndex'];}function _0x5df1a2(_0x31a3cb,_0x1b7cd1,_0x254f8f,_0x128722){const _0xd7d0e4=_0x260969;var _0x17c1ac,_0x26119d;let _0xd2363d=_0x62d87d(_0x31a3cb,_0x1b7cd1),_0x4e3f13=((_0x17c1ac=_0x31a3cb['paragraphs'])==null?[]:_0x17c1ac)['find'](_0x238d21=>_0x238d21[_0xd7d0e4(0x206)]===_0xd2363d+0x1);if(!_0x4e3f13||_0x128722!=null&&_0x4e3f13[_0xd7d0e4(0x206)]!==_0x128722||_0x254f8f<_0xd2363d||_0x254f8f>_0x4e3f13['startIndex']+0x1||_0x31a3cb[_0xd7d0e4(0x17f)][_0x4e3f13[_0xd7d0e4(0x206)]]!==_0x3e9b19[_0xd7d0e4(0x21a)][_0xd7d0e4(0x16f)])return null;let _0xdafab7=_0x38effe((_0x26119d=_0x31a3cb[_0xd7d0e4(0x1c2)])==null?[]:_0x26119d,_0x4e3f13),_0x343e32=_0x31a3cb[_0xd7d0e4(0x17f)][_0xd7d0e4(0x1f7)](_0xdafab7,_0x4e3f13[_0xd7d0e4(0x206)]);return Array[_0xd7d0e4(0x1a1)](_0x343e32)[_0xd7d0e4(0x186)](_0x5a6b79=>_0x5a6b79===_0x3e9b19[_0xd7d0e4(0x21a)][_0xd7d0e4(0x1b0)])?{'paragraph':_0x4e3f13,'endTokenOffset':_0xd2363d}:null;}function _0x502423(_0x29de7f,_0xee641f){const _0x2bfa2b=_0x260969;var _0x4b5158;let _0x2c0450=_0x62d87d(_0x29de7f,_0xee641f),_0x4ac482=_0x29de7f[_0x2bfa2b(0x17f)][_0x2c0450+0x1];_0x4ac482!==_0x3e9b19[_0x2bfa2b(0x21a)][_0x2bfa2b(0x1a9)]&&_0x4ac482!==void 0x0||_0x5ab5d0(_0x29de7f,_0x2c0450+0x1,_0x3e9b19[_0x2bfa2b(0x21a)][_0x2bfa2b(0x16f)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x3e9b19[_0x2bfa2b(0x1fd)])(new Set((_0x4b5158=_0x29de7f[_0x2bfa2b(0x1c2)])==null?void 0x0:_0x4b5158[_0x2bfa2b(0x1ff)](_0xf3e6a6=>_0xf3e6a6[_0x2bfa2b(0x1e0)])))}]});}function _0x5ab5d0(_0x53463d,_0x128e3e,_0x3046c4,_0x2db8c9={}){const _0x4a5054=_0x260969;var _0x529f78,_0x45c326;if(_0x3046c4){if(_0x53463d['dataStream']=''+_0x53463d[_0x4a5054(0x17f)][_0x4a5054(0x1f7)](0x0,_0x128e3e)+_0x3046c4+_0x53463d[_0x4a5054(0x17f)]['slice'](_0x128e3e),_0x3a0b58(_0x53463d,_0x128e3e,_0x3046c4[_0x4a5054(0x209)]),(_0x529f78=_0x2db8c9['paragraphs'])!=null&&_0x529f78[_0x4a5054(0x209)]){var _0x11d211;_0x53463d[_0x4a5054(0x1c2)]=[...(_0x11d211=_0x53463d['paragraphs'])==null?[]:_0x11d211,..._0x2db8c9[_0x4a5054(0x1c2)]['map'](_0x301b59=>({..._0x301b59,'startIndex':_0x301b59[_0x4a5054(0x206)]+_0x128e3e}))]['sort']((_0x309f16,_0x15f0c3)=>_0x309f16[_0x4a5054(0x206)]-_0x15f0c3[_0x4a5054(0x206)]);}if((_0x45c326=_0x2db8c9[_0x4a5054(0x1f5)])!=null&&_0x45c326['length']){var _0x377345;_0x53463d['blockRanges']=[...(_0x377345=_0x53463d[_0x4a5054(0x1f5)])==null?[]:_0x377345,..._0x2db8c9[_0x4a5054(0x1f5)][_0x4a5054(0x1ff)](_0x376128=>({..._0x376128,'startIndex':_0x376128[_0x4a5054(0x206)]+_0x128e3e,'endIndex':_0x376128['endIndex']+_0x128e3e}))][_0x4a5054(0x1db)]((_0xec438,_0x1b1e32)=>_0xec438[_0x4a5054(0x206)]-_0x1b1e32[_0x4a5054(0x206)]);}}}function _0xae846(_0x3a4377,_0x5e6c8d,_0x546ad6){const _0x5c2cf9=_0x260969;let _0x277136=_0x546ad6-_0x5e6c8d;_0x3a4377[_0x5c2cf9(0x17f)]=''+_0x3a4377[_0x5c2cf9(0x17f)][_0x5c2cf9(0x1f7)](0x0,_0x5e6c8d)+_0x3a4377[_0x5c2cf9(0x17f)]['slice'](_0x546ad6),_0x478ee2(_0x3a4377,_0x5e6c8d,_0x277136);}function _0x3a0b58(_0x321c9c,_0x209701,_0x28fb2d){const _0x286dab=_0x260969;_0x321c9c['paragraphs']=_0x446c59(_0x321c9c['paragraphs'],_0x209701,_0x28fb2d),_0x321c9c['sectionBreaks']=_0x446c59(_0x321c9c[_0x286dab(0x1bb)],_0x209701,_0x28fb2d),_0x321c9c['customBlocks']=_0x446c59(_0x321c9c[_0x286dab(0x1ec)],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x1c3)]=_0x48fbff(_0x321c9c[_0x286dab(0x1c3)],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x176)]=_0x56e9e6(_0x321c9c['tables'],_0x209701,_0x28fb2d),_0x321c9c['customRanges']=_0x56e9e6(_0x321c9c[_0x286dab(0x171)],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x1a7)]=_0x56e9e6(_0x321c9c['customDecorations'],_0x209701,_0x28fb2d),_0x321c9c[_0x286dab(0x1f5)]=_0x56e9e6(_0x321c9c['blockRanges'],_0x209701,_0x28fb2d);}function _0x478ee2(_0x47cc60,_0xdd9d9a,_0x4da57a){const _0x9eba6c=_0x260969;var _0x39ae57,_0x3cd111;_0x47cc60['paragraphs']=_0x15f5ca(_0x47cc60[_0x9eba6c(0x1c2)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1bb)]=_0x15f5ca(_0x47cc60[_0x9eba6c(0x1bb)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1ec)]=_0x15f5ca(_0x47cc60[_0x9eba6c(0x1ec)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1c3)]=(_0x39ae57=_0x232157((_0x3cd111=_0x47cc60['textRuns'])==null?void 0x0:_0x3cd111[_0x9eba6c(0x1ff)](_0x5109ee=>({..._0x5109ee,'startIndex':_0x5109ee['st'],'endIndex':_0x5109ee['ed']})),_0xdd9d9a,_0x4da57a))==null?void 0x0:_0x39ae57[_0x9eba6c(0x1ff)](_0xfb9312=>{let {startIndex:_0x7f67,endIndex:_0x4feac6,..._0xe4354e}=_0xfb9312;return{..._0xe4354e,'st':_0x7f67,'ed':_0x4feac6};}),_0x47cc60[_0x9eba6c(0x176)]=_0x232157(_0x47cc60[_0x9eba6c(0x176)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x171)]=_0x232157(_0x47cc60[_0x9eba6c(0x171)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1a7)]=_0x232157(_0x47cc60[_0x9eba6c(0x1a7)],_0xdd9d9a,_0x4da57a),_0x47cc60[_0x9eba6c(0x1f5)]=_0x232157(_0x47cc60['blockRanges'],_0xdd9d9a,_0x4da57a);}function _0x446c59(_0x1e71ae,_0x513553,_0x1493b2){const _0x15f321=_0x260969;return _0x1e71ae==null?void 0x0:_0x1e71ae[_0x15f321(0x1ff)](_0x58e447=>_0x58e447['startIndex']>=_0x513553?{..._0x58e447,'startIndex':_0x58e447[_0x15f321(0x206)]+_0x1493b2}:_0x58e447);}function _0x15f5ca(_0x3f0757,_0x391b1f,_0x4caf05){const _0x119890=_0x260969;let _0x147bbf=_0x391b1f+_0x4caf05;return _0x3f0757==null?void 0x0:_0x3f0757[_0x119890(0x1ff)](_0x51ca4c=>_0x51ca4c[_0x119890(0x206)]>=_0x391b1f&&_0x51ca4c['startIndex']<_0x147bbf?null:_0x51ca4c[_0x119890(0x206)]>=_0x147bbf?{..._0x51ca4c,'startIndex':_0x51ca4c[_0x119890(0x206)]-_0x4caf05}:_0x51ca4c)[_0x119890(0x1d6)](_0xbb4d0=>_0xbb4d0!=null);}function _0x48fbff(_0x43cad2,_0xb1fdc1,_0x15e3a5){const _0x315050=_0x260969;return _0x43cad2==null?void 0x0:_0x43cad2[_0x315050(0x1ff)](_0x9f3304=>_0x9f3304['st']>=_0xb1fdc1?{..._0x9f3304,'st':_0x9f3304['st']+_0x15e3a5,'ed':_0x9f3304['ed']+_0x15e3a5}:_0x9f3304['ed']>_0xb1fdc1?{..._0x9f3304,'ed':_0x9f3304['ed']+_0x15e3a5}:_0x9f3304);}function _0x56e9e6(_0x21c552,_0x116ac7,_0x406d3a){const _0x187961=_0x260969;return _0x21c552==null?void 0x0:_0x21c552[_0x187961(0x1ff)](_0x62d4f2=>_0x62d4f2['startIndex']>=_0x116ac7?{..._0x62d4f2,'startIndex':_0x62d4f2['startIndex']+_0x406d3a,'endIndex':_0x62d4f2[_0x187961(0x1ad)]+_0x406d3a}:_0x62d4f2[_0x187961(0x1ad)]>=_0x116ac7?{..._0x62d4f2,'endIndex':_0x62d4f2[_0x187961(0x1ad)]+_0x406d3a}:_0x62d4f2);}function _0x232157(_0x546d4a,_0x4e92d6,_0x216a6b){const _0x4c7eb0=_0x260969;let _0x298446=_0x4e92d6+_0x216a6b;return _0x546d4a==null?void 0x0:_0x546d4a[_0x4c7eb0(0x1ff)](_0x99c56=>_0x99c56[_0x4c7eb0(0x206)]>=_0x4e92d6&&_0x99c56[_0x4c7eb0(0x1ad)]<_0x298446?null:_0x99c56['startIndex']>=_0x298446?{..._0x99c56,'startIndex':_0x99c56['startIndex']-_0x216a6b,'endIndex':_0x99c56[_0x4c7eb0(0x1ad)]-_0x216a6b}:_0x99c56[_0x4c7eb0(0x1ad)]>=_0x4e92d6?{..._0x99c56,'startIndex':_0x99c56[_0x4c7eb0(0x206)]<_0x4e92d6?_0x99c56['startIndex']:_0x4e92d6,'endIndex':Math[_0x4c7eb0(0x17a)](_0x4e92d6,_0x99c56[_0x4c7eb0(0x1ad)]-_0x216a6b)}:_0x99c56)[_0x4c7eb0(0x1d6)](_0x5921ba=>_0x5921ba!=null);}function _0x1801cc(_0x1811ef,_0x434942,_0x3f0d9d,_0x449a89){const _0x58403b=_0x260969;_0x1811ef==null||_0x1811ef[_0x58403b(0x1fc)](_0x41fee0=>{const _0x41b811=_0x58403b;_0x41fee0[_0x41b811(0x206)]>=_0x434942&&_0x41fee0[_0x41b811(0x206)]<_0x3f0d9d&&(_0x41fee0[_0x41b811(0x206)]+=_0x449a89);});}function _0x34d74a(_0x11cf36,_0x5adbb1,_0x290133,_0x4621d0){const _0x38bc2f=_0x260969;_0x11cf36==null||_0x11cf36[_0x38bc2f(0x1fc)](_0x378cbf=>{_0x378cbf['st']>=_0x5adbb1&&_0x378cbf['st']<_0x290133?(_0x378cbf['st']+=_0x4621d0,_0x378cbf['ed']+=_0x4621d0):_0x378cbf['ed']>_0x5adbb1&&_0x378cbf['ed']<_0x290133&&(_0x378cbf['ed']+=_0x4621d0);});}function _0x508106(_0x5db8de,_0xb02993,_0x470fab,_0x5dbbc9){const _0x43f646=_0x260969;_0x5db8de==null||_0x5db8de[_0x43f646(0x1fc)](_0xb55ad7=>{const _0x3edc95=_0x43f646;_0xb55ad7[_0x3edc95(0x206)]>=_0xb02993&&_0xb55ad7['startIndex']<_0x470fab?(_0xb55ad7[_0x3edc95(0x206)]+=_0x5dbbc9,_0xb55ad7['endIndex']+=_0x5dbbc9):_0xb55ad7[_0x3edc95(0x1ad)]>_0xb02993&&_0xb55ad7[_0x3edc95(0x1ad)]<_0x470fab&&(_0xb55ad7[_0x3edc95(0x1ad)]+=_0x5dbbc9);});}function _0x1e5389(_0x281ea5){'@babel/helpers - typeof';const _0x1fc62c=_0x260969;return _0x1e5389=typeof Symbol==_0x1fc62c(0x1da)&&typeof Symbol['iterator']=='symbol'?function(_0x19c46a){return typeof _0x19c46a;}:function(_0x585e50){const _0xbfcd4=_0x1fc62c;return _0x585e50&&typeof Symbol=='function'&&_0x585e50[_0xbfcd4(0x1d1)]===Symbol&&_0x585e50!==Symbol[_0xbfcd4(0x214)]?'symbol':typeof _0x585e50;},_0x1e5389(_0x281ea5);}function _0x50223e(_0x78574e,_0x29157e){const _0x10ceac=_0x260969;if(_0x1e5389(_0x78574e)!=_0x10ceac(0x1bd)||!_0x78574e)return _0x78574e;var _0x355f6f=_0x78574e[Symbol['toPrimitive']];if(_0x355f6f!==void 0x0){var _0x2f5ac2=_0x355f6f[_0x10ceac(0x1d2)](_0x78574e,_0x29157e||_0x10ceac(0x1f0));if(_0x1e5389(_0x2f5ac2)!=_0x10ceac(0x1bd))return _0x2f5ac2;throw TypeError(_0x10ceac(0x1cf));}return(_0x29157e===_0x10ceac(0x211)?String:Number)(_0x78574e);}function _0x30ec75(_0x54ceff){const _0x199d97=_0x260969;var _0xa7eca9=_0x50223e(_0x54ceff,_0x199d97(0x211));return _0x1e5389(_0xa7eca9)==_0x199d97(0x21d)?_0xa7eca9:_0xa7eca9+'';}function _0x414d1d(_0x280145,_0x4de262,_0x511cd5){const _0x22ff3c=_0x260969;return(_0x4de262=_0x30ec75(_0x4de262))in _0x280145?Object[_0x22ff3c(0x216)](_0x280145,_0x4de262,{'value':_0x511cd5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x280145[_0x4de262]=_0x511cd5,_0x280145;}var _0x3c3d32=class extends _0x3e9b19[_0x260969(0x1df)]{constructor(..._0x36c1aa){const _0x1780ff=_0x260969;super(..._0x36c1aa),_0x414d1d(this,'_resources',new Map()),_0x414d1d(this,_0x1780ff(0x17e),new _0x56a0f1[(_0x1780ff(0x1ef))]()),_0x414d1d(this,_0x1780ff(0x18c),this['_change$'][_0x1780ff(0x16c)]());}['getCodeConfig'](_0x316930,_0x56c34d){return _0x5d2e42(this['_resources']['get'](_0x316930))['codes'][_0x56c34d];}['setCodeConfig'](_0x384d,_0x57ce55,_0x5387f7){const _0x4e4e04=_0x260969;this[_0x4e4e04(0x17c)](_0x384d,_0x57ce55,_0x3e535c(this[_0x4e4e04(0x1f3)]['get'](_0x384d),_0x57ce55,_0x5387f7));}[_0x260969(0x1f1)](_0x29ec83,_0x1d7ba2){const _0x285f43=_0x260969;this[_0x285f43(0x17c)](_0x29ec83,_0x1d7ba2,_0x2867f5(this['_resources'][_0x285f43(0x17d)](_0x29ec83),_0x1d7ba2));}[_0x260969(0x17b)](_0x41f4d7){const _0x3e4640=_0x260969;return _0x5d2e42(this[_0x3e4640(0x1f3)][_0x3e4640(0x17d)](_0x41f4d7));}[_0x260969(0x1d7)](_0x531541,_0x52a262){const _0x40d6a9=_0x260969;this[_0x40d6a9(0x1f3)][_0x40d6a9(0x1bf)](_0x531541,_0x5d2e42(_0x52a262)),this['_change$']['next']({'unitId':_0x531541});}[_0x260969(0x19a)](_0x5eab9b){const _0x7e8de7=_0x260969;this[_0x7e8de7(0x1f3)]['delete'](_0x5eab9b),this['_change$'][_0x7e8de7(0x1e1)]({'unitId':_0x5eab9b});}[_0x260969(0x1af)](){const _0x79350e=_0x260969;super[_0x79350e(0x1af)](),this[_0x79350e(0x1f3)][_0x79350e(0x189)](),this['_change$'][_0x79350e(0x1a6)]();}['_setResource'](_0x236829,_0x43591a,_0x46941e){const _0x4b5bcd=_0x260969;this[_0x4b5bcd(0x1f3)][_0x4b5bcd(0x1bf)](_0x236829,_0x46941e),this[_0x4b5bcd(0x17e)][_0x4b5bcd(0x1e1)]({'unitId':_0x236829,'blockId':_0x43591a});}};let _0x3743fc={'id':_0x260969(0x18a),'type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':_0x42db78=>{const _0x245db2=_0x260969;let _0x2a4c83=_0x12443b(_0x42db78);if(_0x2a4c83)return _0x42db78[_0x245db2(0x17d)](_0x3e9b19['ICommandService'])[_0x245db2(0x19c)](_0x5de34b['id'],{'startOffset':_0x2a4c83['startOffset'],'endOffset':_0x2a4c83['endOffset'],'unitId':_0x2a4c83[_0x245db2(0x1e3)]});let _0x5322d8=_0x472208(_0x42db78);if(!_0x5322d8)return!0x1;let _0x2d1402=_0x5322d8[_0x245db2(0x206)]+0x1;return _0x42db78[_0x245db2(0x17d)](_0x3e9b19[_0x245db2(0x1cd)])[_0x245db2(0x19c)](_0x5de34b['id'],{'startOffset':_0x2d1402,'endOffset':_0x2d1402});}},_0x327607={'id':_0x260969(0x1ed),'type':_0x3e9b19['CommandType'][_0x260969(0x177)],'handler':()=>!0x0},_0x5de34b={'id':_0x260969(0x1d0),'type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':(_0x5aaeab,_0x2e43a3)=>{const _0x16bb5e=_0x260969;var _0x62b84b,_0x517560,_0x492a32;let _0x2afbeb=_0x4cf6eb(_0x5aaeab,_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1e3)]);if(!_0x2afbeb)return!0x1;let _0x5b7f04=_0x950d0c(_0x5aaeab),_0x6fb817=_0x29635b({'blockId':(_0x62b84b=_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1c9)])==null?(0x0,_0x3e9b19[_0x16bb5e(0x20e)])(0x6):_0x62b84b,'config':_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x19f)],'documentData':_0x2afbeb['previousDocumentData'],'endOffset':(_0x517560=_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1ce)])==null?_0x5b7f04==null?void 0x0:_0x5b7f04[_0x16bb5e(0x1ce)]:_0x517560,'metadata':_0x2afbeb[_0x16bb5e(0x1fa)][_0x16bb5e(0x17b)](_0x2afbeb[_0x16bb5e(0x1e3)]),'startOffset':(_0x492a32=_0x2e43a3==null?void 0x0:_0x2e43a3[_0x16bb5e(0x1f4)])==null?_0x5b7f04==null?void 0x0:_0x5b7f04['startOffset']:_0x492a32}),_0x3b2035=_0x40c175(_0x2afbeb[_0x16bb5e(0x1ca)],_0x2afbeb[_0x16bb5e(0x1e3)],_0x2afbeb[_0x16bb5e(0x1b1)],_0x6fb817[_0x16bb5e(0x1b9)],_0x6fb817[_0x16bb5e(0x1d4)]);return _0x3b2035&&_0x6fb817[_0x16bb5e(0x1ac)]&&_0x2afbeb[_0x16bb5e(0x1fa)][_0x16bb5e(0x1d7)](_0x2afbeb[_0x16bb5e(0x1e3)],_0x6fb817[_0x16bb5e(0x1ac)]),_0x3b2035;}},_0x5502c3={'id':'docs-code.command.update','type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':(_0x561702,_0x2e0634)=>{const _0x3ec5d6=_0x260969;if(!_0x2e0634)return!0x1;let _0x307ebb=_0x4cf6eb(_0x561702,_0x2e0634[_0x3ec5d6(0x1e3)]);if(!_0x307ebb)return!0x1;let _0x3c2078=_0x583b8c({'blockId':_0x2e0634[_0x3ec5d6(0x1c9)],'config':_0x2e0634[_0x3ec5d6(0x19f)],'documentData':_0x307ebb[_0x3ec5d6(0x1b1)],'metadata':_0x307ebb[_0x3ec5d6(0x1fa)]['serialize'](_0x307ebb[_0x3ec5d6(0x1e3)])});return _0x3c2078[_0x3ec5d6(0x1ac)]&&_0x307ebb[_0x3ec5d6(0x1fa)][_0x3ec5d6(0x1d7)](_0x307ebb[_0x3ec5d6(0x1e3)],_0x3c2078['nextMetadata']),!0x0;}},_0x3dd6ba={'id':'docs-code.command.exit','type':_0x3e9b19['CommandType'][_0x260969(0x177)],'handler':(_0x4b076a,_0xbf928e)=>{const _0x3ee8ca=_0x260969;var _0x99f6c8,_0x381c47;let _0x384946=_0x4cf6eb(_0x4b076a,_0xbf928e==null?void 0x0:_0xbf928e[_0x3ee8ca(0x1e3)]);if(!_0x384946)return!0x1;let _0x48973e=(_0x99f6c8=_0xbf928e==null?void 0x0:_0xbf928e[_0x3ee8ca(0x1d4)])==null?(_0x381c47=_0x950d0c(_0x4b076a))==null?void 0x0:_0x381c47['startOffset']:_0x99f6c8;if(_0x48973e==null)return!0x1;let _0x152dad=_0x44e576({'cursorOffset':_0x48973e,'documentData':_0x384946[_0x3ee8ca(0x1b1)]});return _0x152dad?_0x40c175(_0x384946['commandService'],_0x384946[_0x3ee8ca(0x1e3)],_0x384946['previousDocumentData'],_0x152dad[_0x3ee8ca(0x1b9)],_0x152dad['cursorOffset']):!0x1;}},_0x4efc80={'id':_0x260969(0x18f),'type':_0x3e9b19[_0x260969(0x187)][_0x260969(0x177)],'handler':(_0x48b6d4,_0x424b6e)=>{const _0x59768b=_0x260969;var _0x5523c0,_0x184932;let _0x5ded4a=_0x4cf6eb(_0x48b6d4,_0x424b6e==null?void 0x0:_0x424b6e['unitId']);if(!_0x5ded4a)return!0x1;let _0x1cca04=(_0x5523c0=_0x424b6e==null?void 0x0:_0x424b6e[_0x59768b(0x1d4)])==null?(_0x184932=_0x950d0c(_0x48b6d4))==null?void 0x0:_0x184932[_0x59768b(0x1f4)]:_0x5523c0;if(_0x1cca04==null)return!0x1;let _0x16736f=_0x429fde({'cursorOffset':_0x1cca04,'documentData':_0x5ded4a[_0x59768b(0x1b1)],'paragraphStartIndex':_0x424b6e==null?void 0x0:_0x424b6e[_0x59768b(0x1be)]});return _0x16736f?_0x40c175(_0x5ded4a['commandService'],_0x5ded4a[_0x59768b(0x1e3)],_0x5ded4a[_0x59768b(0x1b1)],_0x16736f[_0x59768b(0x1b9)],_0x16736f[_0x59768b(0x1d4)]):!0x1;}};function _0x4cf6eb(_0x2b1d21,_0x489e5e){const _0xc49fdf=_0x260969;let _0x361643=_0x2b1d21[_0xc49fdf(0x17d)](_0x3e9b19[_0xc49fdf(0x1c7)]),_0x10836d=_0x489e5e?_0x361643['getUniverDocInstance'](_0x489e5e):_0x361643[_0xc49fdf(0x1a2)](_0x3e9b19[_0xc49fdf(0x178)][_0xc49fdf(0x1dd)]);return _0x10836d?{'commandService':_0x2b1d21['get'](_0x3e9b19[_0xc49fdf(0x1cd)]),'model':_0x2b1d21[_0xc49fdf(0x17d)](_0x3c3d32),'previousDocumentData':_0x10836d['getSnapshot'](),'unitId':_0x10836d[_0xc49fdf(0x20f)]()}:null;}function _0x950d0c(_0x35e7ae){var _0x4e17f6;return(_0x4e17f6=_0x35e7ae['get'](_0x17f9fb['DocSelectionManagerService'])['getTextRanges']())==null?void 0x0:_0x4e17f6[0x0];}function _0x12443b(_0x114367){const _0x359c2a=_0x260969;var _0x1d598b;let _0x186fe3=(_0x1d598b=_0x114367[_0x359c2a(0x17d)](_0x3e9b19[_0x359c2a(0x1c7)])['getCurrentUnitOfType'](_0x3e9b19[_0x359c2a(0x178)]['UNIVER_DOC']))==null?void 0x0:_0x1d598b[_0x359c2a(0x20f)]();try{return _0x114367[_0x359c2a(0x17d)](_0x17f9fb[_0x359c2a(0x219)])[_0x359c2a(0x202)](_0x186fe3);}catch{return null;}}function _0x472208(_0x58eb8c){const _0x194395=_0x260969;var _0x14b514,_0x5e24b7,_0xdb569;let _0x3ee20e=_0x950d0c(_0x58eb8c);if(!_0x3ee20e)return null;let _0x87a968=_0x58eb8c[_0x194395(0x17d)](_0x3e9b19[_0x194395(0x1c7)])[_0x194395(0x1a2)](_0x3e9b19[_0x194395(0x178)][_0x194395(0x1dd)]),_0x20ee7c=_0x87a968==null?void 0x0:_0x87a968[_0x194395(0x1e5)]();return _0x20ee7c?(_0x14b514=_0x3e9b19[_0x194395(0x1f8)][_0x194395(0x1e6)][_0x194395(0x1ea)](_0x3ee20e,(_0x5e24b7=_0x20ee7c['paragraphs'])==null?[]:_0x5e24b7,(_0xdb569=_0x20ee7c[_0x194395(0x17f)])==null?'':_0xdb569)[0x0])==null?null:_0x14b514:null;}function _0xbd645(_0x4c0fc2,_0x2141d2){const _0x3f826f=_0x260969;var _0x1bbb67,_0x129b1a,_0x47b1c0,_0x2723c7,_0x38aac7,_0x20a40e,_0x4b1736,_0x2e10cb,_0x32fc25,_0x4c32f0,_0x133e0a,_0x4d71d5,_0x55c127,_0x4ffd21,_0x561762,_0xf53228,_0x3c0986,_0x291214;let _0x8ac602=_0x3e9b19['JSONX'][_0x3f826f(0x192)]();return[_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x17f)],(_0x1bbb67=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x1bbb67['dataStream'],(_0x129b1a=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x129b1a[_0x3f826f(0x17f)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1c2)],(_0x47b1c0=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x47b1c0[_0x3f826f(0x1c2)],(_0x2723c7=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x2723c7[_0x3f826f(0x1c2)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1bb)],(_0x38aac7=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x38aac7['sectionBreaks'],(_0x20a40e=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x20a40e['sectionBreaks']),_0x2b7800(_0x8ac602,['body',_0x3f826f(0x1c3)],(_0x4b1736=_0x4c0fc2['body'])==null?void 0x0:_0x4b1736[_0x3f826f(0x1c3)],(_0x2e10cb=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x2e10cb[_0x3f826f(0x1c3)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),'customBlocks'],(_0x32fc25=_0x4c0fc2['body'])==null?void 0x0:_0x32fc25[_0x3f826f(0x1ec)],(_0x4c32f0=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x4c32f0['customBlocks']),_0x2b7800(_0x8ac602,['body','customRanges'],(_0x133e0a=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x133e0a['customRanges'],(_0x4d71d5=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x4d71d5[_0x3f826f(0x171)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1a7)],(_0x55c127=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x55c127[_0x3f826f(0x1a7)],(_0x4ffd21=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x4ffd21[_0x3f826f(0x1a7)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),'tables'],(_0x561762=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x561762[_0x3f826f(0x176)],(_0xf53228=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0xf53228[_0x3f826f(0x176)]),_0x2b7800(_0x8ac602,[_0x3f826f(0x1a5),_0x3f826f(0x1f5)],(_0x3c0986=_0x4c0fc2[_0x3f826f(0x1a5)])==null?void 0x0:_0x3c0986[_0x3f826f(0x1f5)],(_0x291214=_0x2141d2[_0x3f826f(0x1a5)])==null?void 0x0:_0x291214[_0x3f826f(0x1f5)])][_0x3f826f(0x1d6)](Boolean)[_0x3f826f(0x210)]((_0x3f2ef1,_0x137b71)=>_0x3e9b19['JSONX'][_0x3f826f(0x201)](_0x3f2ef1,_0x137b71),null);}function _0x2b7800(_0x5b801a,_0x4a05da,_0x1bb385,_0x23e0ce){const _0x43d7e1=_0x260969;return _0x3e9b19[_0x43d7e1(0x195)][_0x43d7e1(0x180)](_0x1bb385,_0x23e0ce)?null:_0x5b801a['replaceOp'](_0x4a05da,_0x1bb385,_0x23e0ce);}function _0x40c175(_0x15a916,_0x17a590,_0x5f22eb,_0x2cb73c,_0xfcc773){const _0x19a492=_0x260969;let _0x2aec81=_0xbd645(_0x5f22eb,_0x2cb73c);return _0x2aec81?!!_0x15a916[_0x19a492(0x19c)](_0x17f9fb[_0x19a492(0x1e9)]['id'],{'unitId':_0x17a590,'actions':_0x2aec81,'textRanges':[{'startOffset':_0xfcc773,'endOffset':_0xfcc773,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x3fafc5=_0x260969(0x1d8);var _0x34cc94=_0x260969(0x194),_0x2d9f5f=_0x260969(0x1ab);let _0x5ea167={};function _0x8fc1ff(_0x45ec45,_0x182493){return function(_0x11345d,_0x3354d4){_0x182493(_0x11345d,_0x3354d4,_0x45ec45);};}function _0x325699(_0x35d52e,_0xcf35d8,_0x16ba90,_0x3cf64e){const _0x5c617c=_0x260969;var _0x2fdeb6=arguments[_0x5c617c(0x209)],_0x3ede2d=_0x2fdeb6<0x3?_0xcf35d8:_0x3cf64e===null?_0x3cf64e=Object[_0x5c617c(0x1e4)](_0xcf35d8,_0x16ba90):_0x3cf64e,_0x1db00f;if(typeof Reflect==_0x5c617c(0x1bd)&&typeof Reflect[_0x5c617c(0x1a3)]==_0x5c617c(0x1da))_0x3ede2d=Reflect[_0x5c617c(0x1a3)](_0x35d52e,_0xcf35d8,_0x16ba90,_0x3cf64e);else{for(var _0x546f24=_0x35d52e[_0x5c617c(0x209)]-0x1;_0x546f24>=0x0;_0x546f24--)(_0x1db00f=_0x35d52e[_0x546f24])&&(_0x3ede2d=(_0x2fdeb6<0x3?_0x1db00f(_0x3ede2d):_0x2fdeb6>0x3?_0x1db00f(_0xcf35d8,_0x16ba90,_0x3ede2d):_0x1db00f(_0xcf35d8,_0x16ba90))||_0x3ede2d);}return _0x2fdeb6>0x3&&_0x3ede2d&&Object[_0x5c617c(0x216)](_0xcf35d8,_0x16ba90,_0x3ede2d),_0x3ede2d;}let _0xd0eed5=class extends _0x3e9b19[_0x260969(0x1df)]{constructor(_0x1890e2,_0x4c2df0){const _0x53eb28=_0x260969;super(),this['_resourceManagerService']=_0x1890e2,this[_0x53eb28(0x1e7)]=_0x4c2df0,this[_0x53eb28(0x183)]();}[_0x260969(0x183)](){const _0x57f1eb=_0x260969;this[_0x57f1eb(0x20d)](this[_0x57f1eb(0x197)][_0x57f1eb(0x1a0)]({'pluginName':_0x3fafc5,'businesses':[_0x3e9b19[_0x57f1eb(0x178)][_0x57f1eb(0x1dd)]],'toJson':_0x269f99=>JSON[_0x57f1eb(0x172)](this[_0x57f1eb(0x1e7)]['serialize'](_0x269f99)),'parseJson':_0x527ff5=>_0x5d2e42(JSON['parse'](_0x527ff5)),'onLoad':(_0x2dfd3e,_0x8c4d35)=>this[_0x57f1eb(0x1e7)][_0x57f1eb(0x1d7)](_0x2dfd3e,_0x8c4d35),'onUnLoad':_0x499f08=>this['_docsCodeModel'][_0x57f1eb(0x19a)](_0x499f08)}));}};_0xd0eed5=_0x325699([_0x8fc1ff(0x0,_0x3e9b19[_0x260969(0x1ee)]),_0x8fc1ff(0x1,(0x0,_0x3e9b19[_0x260969(0x21b)])(_0x3c3d32))],_0xd0eed5);let _0x3aa5f3=class extends _0x3e9b19[_0x260969(0x198)]{constructor(_0x352f37=_0x5ea167,_0x2ec276,_0x3c140d,_0x4baf34){const _0x226de4=_0x260969;super(),this[_0x226de4(0x20c)]=_0x352f37,this[_0x226de4(0x1fb)]=_0x2ec276,this[_0x226de4(0x174)]=_0x3c140d,this[_0x226de4(0x207)]=_0x4baf34;let {..._0x4b2ab5}=(0x0,_0x3e9b19[_0x226de4(0x1cc)])({},_0x5ea167,this[_0x226de4(0x20c)]);this[_0x226de4(0x207)]['setConfig'](_0x226de4(0x1b5),_0x4b2ab5);}[_0x260969(0x20a)](){const _0x578636=_0x260969;this['_injector'][_0x578636(0x190)]([_0x3c3d32]),this['_injector'][_0x578636(0x190)]([_0xd0eed5]),this['_injector'][_0x578636(0x17d)](_0x3c3d32),this['_injector'][_0x578636(0x17d)](_0xd0eed5),[_0x5de34b,_0x3743fc,_0x5502c3,_0x3dd6ba,_0x4efc80,_0x327607][_0x578636(0x1fc)](_0x56f994=>this[_0x578636(0x20d)](this[_0x578636(0x174)][_0x578636(0x1b7)](_0x56f994)));}};_0x414d1d(_0x3aa5f3,_0x260969(0x203),_0x3fafc5),_0x414d1d(_0x3aa5f3,'packageName',_0x34cc94),_0x414d1d(_0x3aa5f3,_0x260969(0x184),_0x2d9f5f),_0x414d1d(_0x3aa5f3,_0x260969(0x18e),_0x3e9b19['UniverInstanceType'][_0x260969(0x1dd)]),_0x3aa5f3=_0x325699([(0x0,_0x3e9b19[_0x260969(0x16d)])(_0x4f1e27[_0x260969(0x208)],_0x17f9fb['UniverDocsPlugin']),_0x8fc1ff(0x1,(0x0,_0x3e9b19[_0x260969(0x21b)])(_0x3e9b19['Injector'])),_0x8fc1ff(0x2,_0x3e9b19['ICommandService']),_0x8fc1ff(0x3,_0x3e9b19[_0x260969(0x1c4)])],_0x3aa5f3),_0x28133a[_0x260969(0x20b)]=_0x370d70,_0x28133a[_0x260969(0x1d9)]=_0x3fafc5,_0x28133a[_0x260969(0x1e2)]=_0x4efc80,_0x28133a[_0x260969(0x1dc)]=_0x327607,_0x28133a[_0x260969(0x217)]=_0x3dd6ba,_0x28133a[_0x260969(0x1c1)]=_0x3743fc,_0x28133a['DocsCodeInsertCommand']=_0x5de34b,_0x28133a[_0x260969(0x18d)]=_0x3c3d32,_0x28133a['DocsCodeUpdateCommand']=_0x5502c3,Object[_0x260969(0x216)](_0x28133a,_0x260969(0x215),{'enumerable':!0x0,'get':function(){return _0x3aa5f3;}}),_0x28133a['buildCancelEmptyCodeParagraphActions']=_0x429fde,_0x28133a['buildExitCodeActions']=_0x44e576,_0x28133a[_0x260969(0x175)]=_0x29635b,_0x28133a[_0x260969(0x213)]=_0x583b8c,_0x28133a['findCodeRangeAtOffset']=_0x19dc47,_0x28133a[_0x260969(0x200)]=_0xdc47cf,_0x28133a['normalizeDocsCodeConfig']=_0x59e9a5;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-insiders.20260701-0ef51b0",
4
4
  "private": false,
5
5
  "description": "Code block model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,9 +61,9 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-alpha.1",
65
- "@univerjs/core": "1.0.0-alpha.1",
66
- "@univerjs/docs": "1.0.0-alpha.1"
64
+ "@univerjs-pro/license": "1.0.0-insiders.20260701-0ef51b0",
65
+ "@univerjs/core": "1.0.0-insiders.20260701-0ef51b0",
66
+ "@univerjs/docs": "1.0.0-insiders.20260701-0ef51b0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",