@univerjs-pro/docs-quote 0.24.0-insiders.20260530-57a0a3e → 0.25.0

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
- const _0x541752=_0x33df;(function(_0x391c23,_0x579d04){const _0x18adb2=_0x33df,_0x204355=_0x391c23();while(!![]){try{const _0x36a873=parseInt(_0x18adb2(0x14b))/0x1*(-parseInt(_0x18adb2(0x145))/0x2)+parseInt(_0x18adb2(0x132))/0x3*(parseInt(_0x18adb2(0x141))/0x4)+-parseInt(_0x18adb2(0xf6))/0x5+parseInt(_0x18adb2(0xfd))/0x6*(parseInt(_0x18adb2(0x150))/0x7)+parseInt(_0x18adb2(0x10c))/0x8+parseInt(_0x18adb2(0x124))/0x9+parseInt(_0x18adb2(0x105))/0xa*(-parseInt(_0x18adb2(0x146))/0xb);if(_0x36a873===_0x579d04)break;else _0x204355['push'](_0x204355['shift']());}catch(_0x25fbdb){_0x204355['push'](_0x204355['shift']());}}}(_0x2a02,0x58dea),Object[_0x541752(0x126)](exports,Symbol[_0x541752(0x10f)],{'value':_0x541752(0x11f)}));let e=require('@univerjs/core'),t=require('@univerjs/docs-ui/facade'),n=require('@univerjs/docs');require('@univerjs/docs-ui');const r=_0x541752(0xfb);function i(_0xc67c7a){const _0xeb03e8=_0x541752;var _0x3a1283,_0x15b5ec,_0x3c8d8c;let _0x4ca4a6=y(_0xc67c7a['documentData']),_0x56f3b6=b(_0x4ca4a6),_0x4e1657=a(_0xc67c7a[_0xeb03e8(0x131)],_0xc67c7a[_0xeb03e8(0x149)]),_0x22c77d=_0x4e1657?(_0x3a1283=_0x56f3b6['blockRanges'])==null?void 0x0:_0x3a1283[_0xeb03e8(0x130)](_0x48126b=>_0x48126b[_0xeb03e8(0xff)]===_0x4e1657[_0xeb03e8(0x131)]&&_0x48126b[_0xeb03e8(0x121)]+0x1===_0x4e1657[_0xeb03e8(0x149)]):void 0x0,{startOffset:_0x32b0df,endOffset:_0x4b9584}=_0x22c77d?_0x4e1657:x(_0x56f3b6,_0xc67c7a[_0xeb03e8(0x131)],_0xc67c7a[_0xeb03e8(0x149)]),_0x5c3824=C(_0x56f3b6,_0x32b0df,_0x4b9584),_0xf3f254=(_0x15b5ec=_0x22c77d==null?void 0x0:_0x22c77d['blockId'])==null?_0xc67c7a[_0xeb03e8(0x159)]:_0x15b5ec;if(_0x22c77d)return _0x22c77d[_0xeb03e8(0x11a)]=r,o(_0x56f3b6,_0x32b0df,_0x4b9584),p(_0x56f3b6,_0x32b0df,_0x4b9584,_0x5c3824),{'nextDocumentData':_0x4ca4a6,'cursorOffset':_0x32b0df+0x1};if(_0x32b0df===_0x4b9584){let _0x799235=''+e['DataStreamTreeTokenType'][_0xeb03e8(0x135)]+e[_0xeb03e8(0x11c)]['PARAGRAPH']+e[_0xeb03e8(0x11c)][_0xeb03e8(0x137)];return k(_0x56f3b6,_0x32b0df,_0x799235,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':f(!0x0,!0x0,_0x5c3824)}],'blockRanges':[{'blockId':_0xf3f254,'blockType':r,'startIndex':0x0,'endIndex':_0x799235[_0xeb03e8(0x144)]-0x1}]}),{'nextDocumentData':_0x4ca4a6,'cursorOffset':_0x32b0df+0x1};}return k(_0x56f3b6,_0x4b9584,e[_0xeb03e8(0x11c)][_0xeb03e8(0x137)]),k(_0x56f3b6,_0x32b0df,e[_0xeb03e8(0x11c)][_0xeb03e8(0x135)]),p(_0x56f3b6,_0x32b0df,_0x4b9584+0x1,_0x5c3824),_0x56f3b6[_0xeb03e8(0x11d)]=[...(_0x3c8d8c=_0x56f3b6[_0xeb03e8(0x11d)])==null?[]:_0x3c8d8c,{'blockId':_0xf3f254,'blockType':r,'startIndex':_0x32b0df,'endIndex':_0x4b9584+0x1}][_0xeb03e8(0x113)]((_0x19f5d2,_0x4fa400)=>_0x19f5d2['startIndex']-_0x4fa400[_0xeb03e8(0xff)]),{'nextDocumentData':_0x4ca4a6,'cursorOffset':_0x32b0df+0x1};}function a(_0x15e860,_0x51eccb){const _0x1177c2=_0x541752;return _0x15e860==null||_0x51eccb==null||_0x15e860===_0x51eccb?null:{'startOffset':Math[_0x1177c2(0x119)](_0x15e860,_0x51eccb),'endOffset':Math[_0x1177c2(0x153)](_0x15e860,_0x51eccb)};}function o(_0x57dd70,_0x3ecf28,_0x3e6792){const _0x50b092=_0x541752;var _0x4d3da1;((_0x4d3da1=_0x57dd70['paragraphs'])==null?[]:_0x4d3da1)[_0x50b092(0x107)](_0x35055e=>_0x35055e['startIndex']>_0x3ecf28&&_0x35055e[_0x50b092(0xff)]<_0x3e6792)['forEach'](_0x47ee31=>{const _0x5683bf=_0x50b092;var _0x5ebb99;let _0xf92fc0={...(_0x5ebb99=_0x47ee31[_0x5683bf(0x125)])==null?{}:_0x5ebb99};delete _0xf92fc0[_0x5683bf(0x101)],delete _0xf92fc0[_0x5683bf(0x103)],delete _0xf92fc0[_0x5683bf(0x14f)],delete _0xf92fc0['textStyle'],_0x47ee31[_0x5683bf(0x125)]=_0xf92fc0;});}function s(_0x48e2d7){const _0x44796a=_0x541752;var _0x2a7678,_0x48696f;let _0x4b5ff8=y(_0x48e2d7[_0x44796a(0xfc)]),_0xfe6832=b(_0x4b5ff8),_0x2590ef=d(_0xfe6832,_0x48e2d7[_0x44796a(0x123)]);if(!_0x2590ef)return null;let _0x1c8091=h(_0xfe6832,_0x2590ef),_0x36799c=_0x1c8091[_0x1c8091[_0x44796a(0x144)]-0x1];if(!_0x36799c||!g(_0xfe6832,_0x2590ef,_0x36799c)||_0x48e2d7['cursorOffset']<_0x36799c[_0x44796a(0xff)])return null;let _0x1d28fb=E(_0xfe6832,_0x2590ef,_0x36799c);if(_0x1d28fb>=_0x2590ef[_0x44796a(0x121)])return null;_0xfe6832[_0x44796a(0x102)]=[_0xfe6832[_0x44796a(0x102)][_0x44796a(0x155)](0x0,_0x1d28fb),e['DataStreamTreeTokenType'][_0x44796a(0x137)],_0xfe6832[_0x44796a(0x102)][_0x44796a(0x155)](_0x1d28fb,_0x2590ef[_0x44796a(0x121)]),_0xfe6832[_0x44796a(0x102)][_0x44796a(0x155)](_0x2590ef[_0x44796a(0x121)]+0x1)][_0x44796a(0x12a)](''),R(_0xfe6832[_0x44796a(0x11e)],_0x1d28fb,_0x2590ef[_0x44796a(0x121)],0x1),R(_0xfe6832[_0x44796a(0x10d)],_0x1d28fb,_0x2590ef[_0x44796a(0x121)],0x1),R(_0xfe6832['customBlocks'],_0x1d28fb,_0x2590ef[_0x44796a(0x121)],0x1),z(_0xfe6832['textRuns'],_0x1d28fb,_0x2590ef[_0x44796a(0x121)],0x1),B(_0xfe6832[_0x44796a(0x11b)],_0x1d28fb,_0x2590ef['endIndex'],0x1),B(_0xfe6832[_0x44796a(0x15a)],_0x1d28fb,_0x2590ef[_0x44796a(0x121)],0x1),B(_0xfe6832['customDecorations'],_0x1d28fb,_0x2590ef[_0x44796a(0x121)],0x1),(_0x2a7678=_0xfe6832[_0x44796a(0x11d)])==null||_0x2a7678[_0x44796a(0x13e)](_0x436517=>{const _0x492eca=_0x44796a;_0x436517===_0x2590ef||_0x436517[_0x492eca(0x159)]===_0x2590ef[_0x492eca(0x159)]?_0x436517[_0x492eca(0x121)]=_0x1d28fb:_0x436517[_0x492eca(0xff)]>=_0x1d28fb&&_0x436517[_0x492eca(0xff)]<_0x2590ef['endIndex']&&(_0x436517[_0x492eca(0xff)]+=0x1,_0x436517[_0x492eca(0x121)]+=0x1);});let _0x3c17a0=h(_0xfe6832,{..._0x2590ef,'endIndex':_0x1d28fb});_0x3c17a0[_0x44796a(0x13e)]((_0x4285b4,_0x437532)=>{const _0x5996ad=_0x44796a;var _0x4765f7;_0x4285b4['paragraphStyle']={...(_0x4765f7=_0x4285b4[_0x5996ad(0x125)])==null?{}:_0x4765f7,...f(_0x437532===0x0,_0x437532===_0x3c17a0[_0x5996ad(0x144)]-0x1)};});let _0x30ada1=(_0x48696f=_0xfe6832[_0x44796a(0x11e)])==null?void 0x0:_0x48696f['find'](_0xd0b4cf=>_0xd0b4cf[_0x44796a(0xff)]===_0x1d28fb+0x1);return _0x30ada1&&(_0x30ada1[_0x44796a(0x125)]=m(_0x30ada1[_0x44796a(0x125)])),{'nextDocumentData':_0x4b5ff8,'cursorOffset':_0x1d28fb+0x1};}function c(_0x56ca98){const _0x37113d=_0x541752;let _0x5ec42a=y(_0x56ca98[_0x37113d(0xfc)]),_0x47843d=b(_0x5ec42a),_0x1e1a1b=d(_0x47843d,_0x56ca98[_0x37113d(0x123)]);return _0x1e1a1b&&(l(_0x5ec42a,_0x47843d,_0x1e1a1b,_0x56ca98[_0x37113d(0x123)],_0x56ca98[_0x37113d(0x152)])||u(_0x5ec42a,_0x47843d,_0x1e1a1b,_0x56ca98[_0x37113d(0x123)]))||null;}function l(_0x3c4c88,_0x38131d,_0x351d47,_0x385e41,_0x36dd0c){const _0x1875f5=_0x541752;let _0x5185ba=O(_0x38131d,_0x351d47,_0x385e41,_0x36dd0c);if(!_0x5185ba)return null;let _0x48113a=_0x5185ba[_0x1875f5(0x112)]-0x1;return A(_0x38131d,_0x5185ba[_0x1875f5(0xf5)][_0x1875f5(0xff)],_0x5185ba['paragraph'][_0x1875f5(0xff)]+0x1),{'nextDocumentData':_0x3c4c88,'cursorOffset':_0x48113a};}function u(_0x4fad4b,_0x158203,_0x5533de,_0x48a5a1){const _0x1f6f7b=_0x541752;if(_0x48a5a1!==_0x5533de['startIndex']+0x1)return null;let _0x2fe971=h(_0x158203,_0x5533de),_0x1896d3=_0x2fe971[0x0];return!_0x1896d3||E(_0x158203,_0x5533de,_0x1896d3)!==_0x48a5a1?null:_0x2fe971[_0x1f6f7b(0x144)]===0x1?_(_0x4fad4b,_0x158203,_0x5533de,_0x1896d3):v(_0x4fad4b,_0x158203,_0x5533de,_0x1896d3);}function d(_0x582a99,_0x4d6b4c){const _0x4b41c0=_0x541752;var _0x56e0d5;return(_0x56e0d5=_0x582a99[_0x4b41c0(0x11d)])==null?void 0x0:_0x56e0d5[_0x4b41c0(0x130)](_0x26a90c=>{const _0x48f11c=_0x4b41c0;let _0x1819ec=D(_0x582a99,_0x26a90c);return _0x26a90c['blockType']===_0x48f11c(0xfb)&&_0x26a90c['startIndex']<=_0x4d6b4c&&_0x4d6b4c<=_0x1819ec+0x2;});}function f(_0x26b172,_0xe851de,_0xd5315c=!0x1){return{'indentStart':{'v':0x16},..._0x26b172&&_0xd5315c?{'spaceAbove':{'v':0x8}}:{}};}function _0x2a02(){const _0x300716=['_runtime','some','12bfCNrZ','text','DocSelectionManagerService','length','62EwOVSp','3580093RUFRBM','getTextRanges','commandService','endOffset','endsWith','20524XklPDN','diffValue','IUniverInstanceService','includes','spaceBelow','259rmuldb','every','paragraphStartIndex','max','indentStart','slice','FDocsQuote','_getBlockRange','syncExecuteCommand','blockId','customRanges','map','getSnapshot','RichTextEditingMutation','exit','paragraph','2220415wiiGoL','FDocument','get','from','Tools','quote','documentData','74526SLJgVU','_commandService','startIndex','now','indentEnd','dataStream','spaceAbove','getText','10GFhJyL','getId','filter','getCurrentUnitOfType','getUniverDocInstance','getDocumentData','UniverInstanceType','5726168QwFyWd','sectionBreaks','replaceOp','toStringTag','PARAGRAPH','getInstance','endTokenOffset','sort','compose','body','_injector','generateRandomId','replace','min','blockType','tables','DataStreamTreeTokenType','blockRanges','paragraphs','Module','Document\x20body\x20is\x20required','endIndex','findQuotes','cursorOffset','4973931gAfCVJ','paragraphStyle','defineProperty','CommandType','prototype','assign','join','textRuns','customDecorations','ICommandService','previousDocumentData','cancelEmptyParagraph','find','startOffset','41793xXlLwl','unitId','string','BLOCK_START','getRange','BLOCK_END','JSONX','nextDocumentData','docs-quote.command.cancel-empty-paragraph','COMMAND','customBlocks','SECTION_BREAK','forEach'];_0x2a02=function(){return _0x300716;};return _0x2a02();}function p(_0x31957b,_0x5897cc,_0x4b337d,_0x556fb9=!0x1){const _0x82404d=_0x541752;var _0x3addfe;let _0x57cff1=((_0x3addfe=_0x31957b[_0x82404d(0x11e)])==null?[]:_0x3addfe)[_0x82404d(0x107)](_0x4e4437=>_0x4e4437[_0x82404d(0xff)]>_0x5897cc&&_0x4e4437['startIndex']<_0x4b337d);_0x57cff1[_0x82404d(0x13e)]((_0x64e337,_0x2c5cf9)=>{const _0x4f9301=_0x82404d;var _0xdeb74e;_0x64e337[_0x4f9301(0x125)]={...(_0xdeb74e=_0x64e337['paragraphStyle'])==null?{}:_0xdeb74e,...f(_0x2c5cf9===0x0,_0x2c5cf9===_0x57cff1[_0x4f9301(0x144)]-0x1,_0x556fb9)};});}function m(_0x4ac9cb){const _0x2ed841=_0x541752;let _0x4c682f={..._0x4ac9cb==null?{}:_0x4ac9cb};return delete _0x4c682f[_0x2ed841(0x154)],delete _0x4c682f['spaceAbove'],delete _0x4c682f[_0x2ed841(0x14f)],_0x4c682f;}function h(_0x31372d,_0x3b6cc6){const _0x35c99b=_0x541752;var _0x3543da;let _0xf1740a=D(_0x31372d,_0x3b6cc6);return((_0x3543da=_0x31372d[_0x35c99b(0x11e)])==null?[]:_0x3543da)[_0x35c99b(0x107)](_0x2345cd=>_0x2345cd['startIndex']>_0x3b6cc6[_0x35c99b(0xff)]&&_0x2345cd[_0x35c99b(0xff)]<_0xf1740a);}function g(_0x435701,_0x5899ad,_0x345df8){const _0x5d8d0c=_0x541752;let _0x84def6=E(_0x435701,_0x5899ad,_0x345df8),_0x5831c1=_0x435701['dataStream'][_0x5d8d0c(0x155)](_0x84def6,_0x345df8[_0x5d8d0c(0xff)]);return Array[_0x5d8d0c(0xf9)](_0x5831c1)[_0x5d8d0c(0x151)](_0x4362c5=>_0x4362c5===e[_0x5d8d0c(0x11c)][_0x5d8d0c(0x135)]||_0x4362c5===e[_0x5d8d0c(0x11c)][_0x5d8d0c(0x137)]);}function _(_0x29357d,_0x395d1c,_0x544851,_0x31957f){const _0x384f50=_0x541752;var _0x33cf77,_0x4c16ab;let _0x30e69d=_0x544851['startIndex'];A(_0x395d1c,_0x544851[_0x384f50(0x121)],_0x544851[_0x384f50(0x121)]+0x1),A(_0x395d1c,_0x544851[_0x384f50(0xff)],_0x544851[_0x384f50(0xff)]+0x1),_0x395d1c[_0x384f50(0x11d)]=(_0x33cf77=_0x395d1c['blockRanges'])==null?void 0x0:_0x33cf77[_0x384f50(0x107)](_0x41367e=>_0x41367e['blockId']!==_0x544851['blockId']);let _0x56981d=(_0x4c16ab=_0x395d1c[_0x384f50(0x11e)])==null?void 0x0:_0x4c16ab[_0x384f50(0x130)](_0x21ec39=>_0x21ec39[_0x384f50(0xff)]===_0x31957f[_0x384f50(0xff)]-0x1);return _0x56981d&&(_0x56981d[_0x384f50(0x125)]=m(_0x56981d[_0x384f50(0x125)])),{'nextDocumentData':_0x29357d,'cursorOffset':_0x30e69d};}function v(_0x461a52,_0x558f51,_0x4af2c6,_0x2f423d){const _0x10c37c=_0x541752;var _0x13f47f,_0x53a0d9;let _0x2ed2cb=_0x2f423d[_0x10c37c(0xff)],_0x40bc18=_0x4af2c6[_0x10c37c(0xff)];k(_0x558f51,_0x2f423d[_0x10c37c(0xff)]+0x1,e[_0x10c37c(0x11c)][_0x10c37c(0x135)]),A(_0x558f51,_0x4af2c6[_0x10c37c(0xff)],_0x4af2c6[_0x10c37c(0xff)]+0x1);let _0x1d32ca=(_0x13f47f=_0x558f51[_0x10c37c(0x11e)])==null?void 0x0:_0x13f47f[_0x10c37c(0x130)](_0x218f0b=>_0x218f0b['startIndex']===_0x2ed2cb-0x1),_0x54c9af=(_0x53a0d9=_0x558f51[_0x10c37c(0x11d)])==null?void 0x0:_0x53a0d9[_0x10c37c(0x130)](_0x34a4d5=>_0x34a4d5[_0x10c37c(0x159)]===_0x4af2c6[_0x10c37c(0x159)]);return _0x1d32ca&&(_0x1d32ca[_0x10c37c(0x125)]=m(_0x1d32ca[_0x10c37c(0x125)]),_0x54c9af&&(_0x54c9af[_0x10c37c(0xff)]=_0x1d32ca[_0x10c37c(0xff)]+0x1)),_0x54c9af&&p(_0x558f51,_0x54c9af[_0x10c37c(0xff)],_0x54c9af[_0x10c37c(0x121)]),{'nextDocumentData':_0x461a52,'cursorOffset':_0x40bc18};}function y(_0x36594d){const _0x136120=_0x541752;return e[_0x136120(0xfa)]['deepClone'](_0x36594d);}function b(_0x56df2b){const _0x1a3781=_0x541752;if(!_0x56df2b[_0x1a3781(0x115)])throw Error(_0x1a3781(0x120));return _0x56df2b[_0x1a3781(0x115)];}function x(_0x507940,_0x327573,_0x3b46eb){const _0x394dfa=_0x541752;if(_0x327573==null||_0x3b46eb==null){let _0x559e18=S(_0x507940);return{'startOffset':_0x559e18,'endOffset':_0x559e18};}let _0x665c2c=Math[_0x394dfa(0x119)](_0x327573,_0x3b46eb),_0x53e4ac=Math['max'](_0x327573,_0x3b46eb);return _0x665c2c===_0x53e4ac?{'startOffset':_0x665c2c,'endOffset':_0x665c2c}:w(_0x507940,_0x665c2c,_0x53e4ac);}function S(_0x2a3466){const _0x3db96b=_0x541752;return _0x2a3466[_0x3db96b(0x102)][_0x3db96b(0x14a)](e[_0x3db96b(0x11c)]['SECTION_BREAK'])?Math['max'](0x0,_0x2a3466['dataStream']['length']-0x1):_0x2a3466[_0x3db96b(0x102)][_0x3db96b(0x144)];}function C(_0x533bfc,_0x2dc9df,_0x510029){const _0x1a6586=_0x541752;var _0x36f10d;let _0x2035c9=Math[_0x1a6586(0x119)](_0x2dc9df,_0x510029),_0x28ee69=Math['max'](_0x2dc9df,_0x510029);return!!((_0x36f10d=_0x533bfc[_0x1a6586(0x11b)])!=null&&_0x36f10d['some'](_0x711f66=>_0x2035c9>_0x711f66[_0x1a6586(0xff)]&&_0x2035c9<_0x711f66[_0x1a6586(0x121)]||_0x28ee69>_0x711f66['startIndex']&&_0x28ee69<_0x711f66['endIndex']||_0x2035c9<=_0x711f66['startIndex']&&_0x28ee69>=_0x711f66[_0x1a6586(0x121)]));}function w(_0x5f22dc,_0x33132a,_0x9c2053){const _0x150334=_0x541752;var _0x50376f,_0x45838c;let _0x53aa9=[...(_0x50376f=_0x5f22dc[_0x150334(0x11e)])==null?[]:_0x50376f][_0x150334(0x113)]((_0x286dac,_0x15a52c)=>_0x286dac[_0x150334(0xff)]-_0x15a52c[_0x150334(0xff)]),_0x114dbf=_0x53aa9[_0x150334(0x130)]((_0x3567ce,_0x5ea89d)=>(_0x5ea89d===0x0?0x0:_0x53aa9[_0x5ea89d-0x1][_0x150334(0xff)]+0x1)<=_0x33132a&&_0x33132a<=_0x3567ce[_0x150334(0xff)]),_0x40bdb9=(_0x45838c=_0x53aa9[_0x150334(0x130)](_0x285ed0=>_0x285ed0['startIndex']>=_0x9c2053-0x1))==null?_0x53aa9[_0x53aa9[_0x150334(0x144)]-0x1]:_0x45838c;return{'startOffset':_0x114dbf?T(_0x53aa9,_0x114dbf):_0x33132a,'endOffset':_0x40bdb9?_0x40bdb9['startIndex']+0x1:_0x9c2053};}function T(_0x42e51f,_0x162cfe){const _0xdaa919=_0x541752;let _0x5217a9=_0x42e51f['indexOf'](_0x162cfe);return _0x5217a9>0x0?_0x42e51f[_0x5217a9-0x1][_0xdaa919(0xff)]+0x1:0x0;}function E(_0x42affc,_0x54e995,_0x4df1b5){const _0xf9d4a5=_0x541752;var _0x53fab2;return Math[_0xf9d4a5(0x153)](T((_0x53fab2=_0x42affc[_0xf9d4a5(0x11e)])==null?[]:_0x53fab2,_0x4df1b5),_0x54e995['startIndex']+0x1);}function D(_0x5b4b59,_0x146da5){const _0x4a38db=_0x541752;return _0x5b4b59[_0x4a38db(0x102)][_0x146da5[_0x4a38db(0x121)]]===e[_0x4a38db(0x11c)]['BLOCK_END']?_0x146da5['endIndex']:_0x5b4b59[_0x4a38db(0x102)][_0x146da5[_0x4a38db(0x121)]+0x1]===e[_0x4a38db(0x11c)]['BLOCK_END']?_0x146da5[_0x4a38db(0x121)]+0x1:_0x146da5[_0x4a38db(0x121)];}function O(_0x49d936,_0x1b587d,_0xbee2c4,_0x125cc1){const _0x107a53=_0x541752;var _0x790c89,_0x517285;let _0x5cdb78=D(_0x49d936,_0x1b587d),_0x443eb9=((_0x790c89=_0x49d936['paragraphs'])==null?[]:_0x790c89)[_0x107a53(0x130)](_0x769853=>_0x769853[_0x107a53(0xff)]===_0x5cdb78+0x1);if(!_0x443eb9||_0x125cc1!=null&&_0x443eb9[_0x107a53(0xff)]!==_0x125cc1||_0xbee2c4<_0x5cdb78||_0xbee2c4>_0x443eb9['startIndex']+0x1||_0x49d936[_0x107a53(0x102)][_0x443eb9[_0x107a53(0xff)]]!==e['DataStreamTreeTokenType'][_0x107a53(0x110)])return null;let _0x24eb51=T((_0x517285=_0x49d936[_0x107a53(0x11e)])==null?[]:_0x517285,_0x443eb9),_0xeb6d45=_0x49d936[_0x107a53(0x102)]['slice'](_0x24eb51,_0x443eb9['startIndex']);return Array[_0x107a53(0xf9)](_0xeb6d45)[_0x107a53(0x151)](_0x346c56=>_0x346c56===e[_0x107a53(0x11c)]['BLOCK_END'])?{'paragraph':_0x443eb9,'endTokenOffset':_0x5cdb78}:null;}function k(_0x3bb36d,_0x21f141,_0x504579,_0x286c50={}){const _0x586428=_0x541752;var _0x2ff775,_0x3d5200;if(_0x504579){if(_0x3bb36d['dataStream']=''+_0x3bb36d[_0x586428(0x102)][_0x586428(0x155)](0x0,_0x21f141)+_0x504579+_0x3bb36d[_0x586428(0x102)][_0x586428(0x155)](_0x21f141),j(_0x3bb36d,_0x21f141,_0x504579[_0x586428(0x144)]),(_0x2ff775=_0x286c50[_0x586428(0x11e)])!=null&&_0x2ff775[_0x586428(0x144)]){var _0x4b5a9d;_0x3bb36d[_0x586428(0x11e)]=[...(_0x4b5a9d=_0x3bb36d[_0x586428(0x11e)])==null?[]:_0x4b5a9d,..._0x286c50['paragraphs'][_0x586428(0xf1)](_0x24617c=>({..._0x24617c,'startIndex':_0x24617c[_0x586428(0xff)]+_0x21f141}))][_0x586428(0x113)]((_0x2115d9,_0x5e36bd)=>_0x2115d9[_0x586428(0xff)]-_0x5e36bd[_0x586428(0xff)]);}if((_0x3d5200=_0x286c50['blockRanges'])!=null&&_0x3d5200['length']){var _0x11f748;_0x3bb36d[_0x586428(0x11d)]=[...(_0x11f748=_0x3bb36d[_0x586428(0x11d)])==null?[]:_0x11f748,..._0x286c50[_0x586428(0x11d)][_0x586428(0xf1)](_0x58ba9a=>({..._0x58ba9a,'startIndex':_0x58ba9a[_0x586428(0xff)]+_0x21f141,'endIndex':_0x58ba9a[_0x586428(0x121)]+_0x21f141}))]['sort']((_0x5a821a,_0x5d2a89)=>_0x5a821a[_0x586428(0xff)]-_0x5d2a89['startIndex']);}}}function A(_0x4992b9,_0x280a03,_0x1504da){const _0x3c4045=_0x541752;let _0x14f12b=_0x1504da-_0x280a03;_0x4992b9[_0x3c4045(0x102)]=''+_0x4992b9['dataStream'][_0x3c4045(0x155)](0x0,_0x280a03)+_0x4992b9[_0x3c4045(0x102)]['slice'](_0x1504da),M(_0x4992b9,_0x280a03,_0x14f12b);}function j(_0x4c8d93,_0x233d84,_0x6fbfad){const _0x4fa619=_0x541752;_0x4c8d93[_0x4fa619(0x11e)]=N(_0x4c8d93[_0x4fa619(0x11e)],_0x233d84,_0x6fbfad),_0x4c8d93['sectionBreaks']=N(_0x4c8d93[_0x4fa619(0x10d)],_0x233d84,_0x6fbfad),_0x4c8d93[_0x4fa619(0x13c)]=N(_0x4c8d93[_0x4fa619(0x13c)],_0x233d84,_0x6fbfad),_0x4c8d93[_0x4fa619(0x12b)]=F(_0x4c8d93[_0x4fa619(0x12b)],_0x233d84,_0x6fbfad),_0x4c8d93[_0x4fa619(0x11b)]=I(_0x4c8d93[_0x4fa619(0x11b)],_0x233d84,_0x6fbfad),_0x4c8d93[_0x4fa619(0x15a)]=I(_0x4c8d93[_0x4fa619(0x15a)],_0x233d84,_0x6fbfad),_0x4c8d93['customDecorations']=I(_0x4c8d93[_0x4fa619(0x12c)],_0x233d84,_0x6fbfad),_0x4c8d93[_0x4fa619(0x11d)]=I(_0x4c8d93[_0x4fa619(0x11d)],_0x233d84,_0x6fbfad);}function M(_0x3cec67,_0x49bbd5,_0x1d5746){const _0x5140b1=_0x541752;var _0x53a640,_0x24e895;_0x3cec67['paragraphs']=P(_0x3cec67[_0x5140b1(0x11e)],_0x49bbd5,_0x1d5746),_0x3cec67[_0x5140b1(0x10d)]=P(_0x3cec67['sectionBreaks'],_0x49bbd5,_0x1d5746),_0x3cec67[_0x5140b1(0x13c)]=P(_0x3cec67[_0x5140b1(0x13c)],_0x49bbd5,_0x1d5746),_0x3cec67[_0x5140b1(0x12b)]=(_0x53a640=L((_0x24e895=_0x3cec67[_0x5140b1(0x12b)])==null?void 0x0:_0x24e895[_0x5140b1(0xf1)](_0x3f9c5e=>({..._0x3f9c5e,'startIndex':_0x3f9c5e['st'],'endIndex':_0x3f9c5e['ed']})),_0x49bbd5,_0x1d5746))==null?void 0x0:_0x53a640['map'](_0x4c8638=>{let {startIndex:_0x301d06,endIndex:_0x5a43c7,..._0x1d78df}=_0x4c8638;return{..._0x1d78df,'st':_0x301d06,'ed':_0x5a43c7};}),_0x3cec67[_0x5140b1(0x11b)]=L(_0x3cec67[_0x5140b1(0x11b)],_0x49bbd5,_0x1d5746),_0x3cec67[_0x5140b1(0x15a)]=L(_0x3cec67['customRanges'],_0x49bbd5,_0x1d5746),_0x3cec67[_0x5140b1(0x12c)]=L(_0x3cec67[_0x5140b1(0x12c)],_0x49bbd5,_0x1d5746),_0x3cec67['blockRanges']=L(_0x3cec67[_0x5140b1(0x11d)],_0x49bbd5,_0x1d5746);}function N(_0x258f30,_0x1a3da1,_0x2edce6){const _0x55cbe0=_0x541752;return _0x258f30==null?void 0x0:_0x258f30[_0x55cbe0(0xf1)](_0x568471=>_0x568471['startIndex']>=_0x1a3da1?{..._0x568471,'startIndex':_0x568471[_0x55cbe0(0xff)]+_0x2edce6}:_0x568471);}function P(_0xf80251,_0x43af39,_0x658953){const _0x2b6e6b=_0x541752;let _0x213174=_0x43af39+_0x658953;return _0xf80251==null?void 0x0:_0xf80251['map'](_0x29095c=>_0x29095c[_0x2b6e6b(0xff)]>=_0x43af39&&_0x29095c['startIndex']<_0x213174?null:_0x29095c[_0x2b6e6b(0xff)]>=_0x213174?{..._0x29095c,'startIndex':_0x29095c['startIndex']-_0x658953}:_0x29095c)[_0x2b6e6b(0x107)](_0x348f27=>_0x348f27!=null);}function F(_0x520325,_0x18a60f,_0x18a4da){const _0x51e498=_0x541752;return _0x520325==null?void 0x0:_0x520325[_0x51e498(0xf1)](_0x55e919=>_0x55e919['st']>=_0x18a60f?{..._0x55e919,'st':_0x55e919['st']+_0x18a4da,'ed':_0x55e919['ed']+_0x18a4da}:_0x55e919['ed']>_0x18a60f?{..._0x55e919,'ed':_0x55e919['ed']+_0x18a4da}:_0x55e919);}function I(_0x58f7be,_0x289b83,_0x59b77f){const _0x2217b0=_0x541752;return _0x58f7be==null?void 0x0:_0x58f7be[_0x2217b0(0xf1)](_0x30a0af=>_0x30a0af[_0x2217b0(0xff)]>=_0x289b83?{..._0x30a0af,'startIndex':_0x30a0af[_0x2217b0(0xff)]+_0x59b77f,'endIndex':_0x30a0af[_0x2217b0(0x121)]+_0x59b77f}:_0x30a0af['endIndex']>=_0x289b83?{..._0x30a0af,'endIndex':_0x30a0af[_0x2217b0(0x121)]+_0x59b77f}:_0x30a0af);}function L(_0x56da29,_0x9f7882,_0x829284){const _0xe63a3f=_0x541752;let _0xdeedee=_0x9f7882+_0x829284;return _0x56da29==null?void 0x0:_0x56da29[_0xe63a3f(0xf1)](_0x43759c=>_0x43759c['startIndex']>=_0x9f7882&&_0x43759c[_0xe63a3f(0x121)]<_0xdeedee?null:_0x43759c[_0xe63a3f(0xff)]>=_0xdeedee?{..._0x43759c,'startIndex':_0x43759c[_0xe63a3f(0xff)]-_0x829284,'endIndex':_0x43759c['endIndex']-_0x829284}:_0x43759c[_0xe63a3f(0x121)]>=_0x9f7882?{..._0x43759c,'startIndex':_0x43759c[_0xe63a3f(0xff)]<_0x9f7882?_0x43759c['startIndex']:_0x9f7882,'endIndex':Math['max'](_0x9f7882,_0x43759c[_0xe63a3f(0x121)]-_0x829284)}:_0x43759c)[_0xe63a3f(0x107)](_0x41087a=>_0x41087a!=null);}function R(_0x58227c,_0x4811bb,_0x118802,_0x3aaa28){const _0x571771=_0x541752;_0x58227c==null||_0x58227c[_0x571771(0x13e)](_0x25973c=>{const _0xfe0bbf=_0x571771;_0x25973c[_0xfe0bbf(0xff)]>=_0x4811bb&&_0x25973c[_0xfe0bbf(0xff)]<_0x118802&&(_0x25973c[_0xfe0bbf(0xff)]+=_0x3aaa28);});}function z(_0x54eb14,_0x52c422,_0x26e775,_0x4c58c5){_0x54eb14==null||_0x54eb14['forEach'](_0x36683a=>{_0x36683a['st']>=_0x52c422&&_0x36683a['st']<_0x26e775?(_0x36683a['st']+=_0x4c58c5,_0x36683a['ed']+=_0x4c58c5):_0x36683a['ed']>_0x52c422&&_0x36683a['ed']<_0x26e775&&(_0x36683a['ed']+=_0x4c58c5);});}function B(_0x3418e7,_0x504482,_0x239320,_0x45edd5){_0x3418e7==null||_0x3418e7['forEach'](_0x46f164=>{const _0x42ee5d=_0x33df;_0x46f164[_0x42ee5d(0xff)]>=_0x504482&&_0x46f164[_0x42ee5d(0xff)]<_0x239320?(_0x46f164[_0x42ee5d(0xff)]+=_0x45edd5,_0x46f164['endIndex']+=_0x45edd5):_0x46f164['endIndex']>_0x504482&&_0x46f164['endIndex']<_0x239320&&(_0x46f164['endIndex']+=_0x45edd5);});}e[_0x541752(0x127)][_0x541752(0x13b)];const V={'id':'docs-quote.command.insert','type':e[_0x541752(0x127)][_0x541752(0x13b)],'handler':(_0x922943,_0x5d1445)=>{const _0x58074a=_0x541752;var _0x2aadd6,_0xef5781,_0x4f3b87;let _0x409e7a=W(_0x922943,_0x5d1445==null?void 0x0:_0x5d1445[_0x58074a(0x133)]);if(!_0x409e7a)return!0x1;let _0x3f72a2=G(_0x922943),_0x447495=i({'blockId':(_0x2aadd6=_0x5d1445==null?void 0x0:_0x5d1445[_0x58074a(0x159)])==null?(0x0,e[_0x58074a(0x117)])(0x6):_0x2aadd6,'documentData':_0x409e7a[_0x58074a(0x12e)],'endOffset':(_0xef5781=_0x5d1445==null?void 0x0:_0x5d1445[_0x58074a(0x149)])==null?_0x3f72a2==null?void 0x0:_0x3f72a2[_0x58074a(0x149)]:_0xef5781,'startOffset':(_0x4f3b87=_0x5d1445==null?void 0x0:_0x5d1445[_0x58074a(0x131)])==null?_0x3f72a2==null?void 0x0:_0x3f72a2[_0x58074a(0x131)]:_0x4f3b87});return J(_0x409e7a[_0x58074a(0x148)],_0x409e7a[_0x58074a(0x133)],_0x409e7a[_0x58074a(0x12e)],_0x447495[_0x58074a(0x139)],_0x447495[_0x58074a(0x123)]);}},H={'id':'docs-quote.command.exit','type':e[_0x541752(0x127)][_0x541752(0x13b)],'handler':(_0x29b446,_0x39bfeb)=>{const _0x3c2724=_0x541752;var _0x5d392b,_0x578918;let _0x2d0c73=W(_0x29b446,_0x39bfeb==null?void 0x0:_0x39bfeb[_0x3c2724(0x133)]);if(!_0x2d0c73)return!0x1;let _0x38a92a=(_0x5d392b=_0x39bfeb==null?void 0x0:_0x39bfeb['cursorOffset'])==null?(_0x578918=G(_0x29b446))==null?void 0x0:_0x578918[_0x3c2724(0x131)]:_0x5d392b;if(_0x38a92a==null)return!0x1;let _0x85d1e1=s({'cursorOffset':_0x38a92a,'documentData':_0x2d0c73[_0x3c2724(0x12e)]});return _0x85d1e1?J(_0x2d0c73[_0x3c2724(0x148)],_0x2d0c73[_0x3c2724(0x133)],_0x2d0c73[_0x3c2724(0x12e)],_0x85d1e1[_0x3c2724(0x139)],_0x85d1e1[_0x3c2724(0x123)]):!0x1;}},U={'id':_0x541752(0x13a),'type':e[_0x541752(0x127)][_0x541752(0x13b)],'handler':(_0x26c986,_0x1578e1)=>{const _0xa96891=_0x541752;var _0x3d29fb,_0xd8ba3e;let _0x4cff79=W(_0x26c986,_0x1578e1==null?void 0x0:_0x1578e1['unitId']);if(!_0x4cff79)return!0x1;let _0x3d9a15=(_0x3d29fb=_0x1578e1==null?void 0x0:_0x1578e1[_0xa96891(0x123)])==null?(_0xd8ba3e=G(_0x26c986))==null?void 0x0:_0xd8ba3e[_0xa96891(0x131)]:_0x3d29fb;if(_0x3d9a15==null)return!0x1;let _0x267171=c({'cursorOffset':_0x3d9a15,'documentData':_0x4cff79['previousDocumentData'],'paragraphStartIndex':_0x1578e1==null?void 0x0:_0x1578e1[_0xa96891(0x152)]});return _0x267171?J(_0x4cff79['commandService'],_0x4cff79[_0xa96891(0x133)],_0x4cff79['previousDocumentData'],_0x267171[_0xa96891(0x139)],_0x267171[_0xa96891(0x123)]):!0x1;}};function W(_0x4d8cc4,_0xd10e2f){const _0x1c8905=_0x541752;let _0x9df990=_0x4d8cc4[_0x1c8905(0xf8)](e[_0x1c8905(0x14d)]),_0x2be089=_0xd10e2f?_0x9df990[_0x1c8905(0x109)](_0xd10e2f):_0x9df990[_0x1c8905(0x108)](e[_0x1c8905(0x10b)]['UNIVER_DOC']);return _0x2be089?{'commandService':_0x4d8cc4['get'](e[_0x1c8905(0x12d)]),'previousDocumentData':_0x2be089[_0x1c8905(0xf2)](),'unitId':_0x2be089['getUnitId']()}:null;}function G(_0x18468a){const _0x392da0=_0x541752;var _0x2086a8;return(_0x2086a8=_0x18468a[_0x392da0(0xf8)](n[_0x392da0(0x143)])[_0x392da0(0x147)]())==null?void 0x0:_0x2086a8[0x0];}function K(_0x52b6ff,_0x5e2d5e){const _0x140feb=_0x541752;var _0x305da5,_0x42b255,_0x472344,_0x5b7ea2,_0x3afe0a,_0x2d9129,_0x1f0347,_0x3de4b9,_0x37428a,_0x13e8dc,_0x58bf6e,_0x58ac50,_0x4a1f51,_0x146c98,_0xfd0810,_0x58d0fa,_0x5a4987,_0x13fa87;let _0x2559b4=e['JSONX'][_0x140feb(0x111)]();return[q(_0x2559b4,[_0x140feb(0x115),_0x140feb(0x102)],(_0x305da5=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0x305da5[_0x140feb(0x102)],(_0x42b255=_0x5e2d5e['body'])==null?void 0x0:_0x42b255[_0x140feb(0x102)]),q(_0x2559b4,[_0x140feb(0x115),_0x140feb(0x11e)],(_0x472344=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0x472344[_0x140feb(0x11e)],(_0x5b7ea2=_0x5e2d5e[_0x140feb(0x115)])==null?void 0x0:_0x5b7ea2[_0x140feb(0x11e)]),q(_0x2559b4,[_0x140feb(0x115),_0x140feb(0x10d)],(_0x3afe0a=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0x3afe0a['sectionBreaks'],(_0x2d9129=_0x5e2d5e[_0x140feb(0x115)])==null?void 0x0:_0x2d9129[_0x140feb(0x10d)]),q(_0x2559b4,['body',_0x140feb(0x12b)],(_0x1f0347=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0x1f0347[_0x140feb(0x12b)],(_0x3de4b9=_0x5e2d5e[_0x140feb(0x115)])==null?void 0x0:_0x3de4b9[_0x140feb(0x12b)]),q(_0x2559b4,[_0x140feb(0x115),'customBlocks'],(_0x37428a=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0x37428a[_0x140feb(0x13c)],(_0x13e8dc=_0x5e2d5e[_0x140feb(0x115)])==null?void 0x0:_0x13e8dc[_0x140feb(0x13c)]),q(_0x2559b4,[_0x140feb(0x115),_0x140feb(0x15a)],(_0x58bf6e=_0x52b6ff['body'])==null?void 0x0:_0x58bf6e['customRanges'],(_0x58ac50=_0x5e2d5e[_0x140feb(0x115)])==null?void 0x0:_0x58ac50[_0x140feb(0x15a)]),q(_0x2559b4,[_0x140feb(0x115),_0x140feb(0x12c)],(_0x4a1f51=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0x4a1f51['customDecorations'],(_0x146c98=_0x5e2d5e[_0x140feb(0x115)])==null?void 0x0:_0x146c98[_0x140feb(0x12c)]),q(_0x2559b4,['body',_0x140feb(0x11b)],(_0xfd0810=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0xfd0810[_0x140feb(0x11b)],(_0x58d0fa=_0x5e2d5e['body'])==null?void 0x0:_0x58d0fa[_0x140feb(0x11b)]),q(_0x2559b4,['body','blockRanges'],(_0x5a4987=_0x52b6ff[_0x140feb(0x115)])==null?void 0x0:_0x5a4987['blockRanges'],(_0x13fa87=_0x5e2d5e[_0x140feb(0x115)])==null?void 0x0:_0x13fa87['blockRanges'])]['filter'](Boolean)['reduce']((_0x6e8a7c,_0x952399)=>e[_0x140feb(0x138)][_0x140feb(0x114)](_0x6e8a7c,_0x952399),null);}function q(_0x2398a5,_0x305206,_0x2afec8,_0x32e510){const _0x138f32=_0x541752;return e[_0x138f32(0xfa)][_0x138f32(0x14c)](_0x2afec8,_0x32e510)?null:_0x2398a5[_0x138f32(0x10e)](_0x305206,_0x2afec8,_0x32e510);}function J(_0x29780f,_0xf52a6a,_0x4e9cac,_0x47ed9c,_0x3d291c){const _0x381674=_0x541752;let _0x3982d5=K(_0x4e9cac,_0x47ed9c);return _0x3982d5?!!_0x29780f[_0x381674(0x158)](n[_0x381674(0xf3)]['id'],{'unitId':_0xf52a6a,'actions':_0x3982d5,'textRanges':[{'startOffset':_0x3d291c,'endOffset':_0x3d291c,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Y=class{constructor(_0x5257fd){this['_runtime']=_0x5257fd;}[_0x541752(0x106)](){const _0x71bd6e=_0x541752;return this['_runtime'][_0x71bd6e(0x159)];}['getRange'](){const _0x3f3ed5=_0x541752;let _0x5300b2=this[_0x3f3ed5(0x157)]();return _0x5300b2?{'blockId':_0x5300b2[_0x3f3ed5(0x159)],'endIndex':_0x5300b2[_0x3f3ed5(0x121)],'startIndex':_0x5300b2['startIndex']}:null;}[_0x541752(0x104)](){const _0x417714=_0x541752;var _0x23961e;let _0xa6f17b=this['_getBlockRange'](),_0x566a9b=(_0x23961e=this[_0x417714(0x13f)][_0x417714(0x10a)]()[_0x417714(0x115)])==null?void 0x0:_0x23961e[_0x417714(0x102)];return!_0xa6f17b||!_0x566a9b?'':X(_0x566a9b[_0x417714(0x155)](_0xa6f17b['startIndex']+0x1,_0xa6f17b[_0x417714(0x121)]));}['describe'](){const _0x220424=_0x541752;let _0x428b44=this[_0x220424(0x136)]();return _0x428b44?{..._0x428b44,'text':this[_0x220424(0x104)](),'type':'quote'}:null;}[_0x541752(0xf4)](_0x357b42){const _0x45a4da=_0x541752;var _0x45b942;return!!((_0x45b942=this[_0x45a4da(0x13f)][_0x45a4da(0x148)])!=null&&_0x45b942[_0x45a4da(0x158)](H['id'],{'cursorOffset':_0x357b42,'unitId':this[_0x45a4da(0x13f)][_0x45a4da(0x133)]}));}[_0x541752(0x12f)](_0x59321e={}){const _0x52920c=_0x541752;var _0x4c09e2;return!!((_0x4c09e2=this['_runtime'][_0x52920c(0x148)])!=null&&_0x4c09e2['syncExecuteCommand'](U['id'],{..._0x59321e,'unitId':this[_0x52920c(0x13f)]['unitId']}));}['_getBlockRange'](){const _0x286b13=_0x541752;var _0x1b397d;return(_0x1b397d=this[_0x286b13(0x13f)][_0x286b13(0x10a)]()[_0x286b13(0x115)])==null||(_0x1b397d=_0x1b397d[_0x286b13(0x11d)])==null?void 0x0:_0x1b397d[_0x286b13(0x130)](_0xb1fe9e=>_0xb1fe9e[_0x286b13(0x159)]===this['_runtime']['blockId']&&_0xb1fe9e[_0x286b13(0x11a)]==='quote');}};function _0x33df(_0x1d001d,_0x17468e){_0x1d001d=_0x1d001d-0xf1;const _0x2a02b1=_0x2a02();let _0x33df96=_0x2a02b1[_0x1d001d];return _0x33df96;}function X(_0x56f2bc){const _0x5829fe=_0x541752;return Array[_0x5829fe(0xf9)](_0x56f2bc)[_0x5829fe(0xf1)](_0x21d6c8=>_0x21d6c8===e['DataStreamTreeTokenType'][_0x5829fe(0x110)]?'\x0a':_0x21d6c8)[_0x5829fe(0x107)](_0x2cc9c6=>_0x2cc9c6!==e['DataStreamTreeTokenType'][_0x5829fe(0x135)]&&_0x2cc9c6!==e['DataStreamTreeTokenType'][_0x5829fe(0x137)]&&_0x2cc9c6!==e['DataStreamTreeTokenType'][_0x5829fe(0x13d)])['join']('')[_0x5829fe(0x118)](/\n$/,'');}Object[_0x541752(0x129)](t[_0x541752(0xf7)][_0x541752(0x128)],{'getQuotes'(){const _0x57e0bb=_0x541752;var _0x386e09,_0x26eee9;return(_0x386e09=(_0x26eee9=this[_0x57e0bb(0xf2)]()[_0x57e0bb(0x115)])==null||(_0x26eee9=_0x26eee9['blockRanges'])==null?void 0x0:_0x26eee9[_0x57e0bb(0x107)](_0xcfc462=>_0xcfc462[_0x57e0bb(0x11a)]===_0x57e0bb(0xfb))[_0x57e0bb(0xf1)](_0x29cb25=>Z(this,_0x29cb25['blockId'])))==null?[]:_0x386e09;},'getQuote'(_0x38c4b2){const _0x107fad=_0x541752;var _0xa59ce6;return!((_0xa59ce6=this['getSnapshot']()[_0x107fad(0x115)])==null||(_0xa59ce6=_0xa59ce6[_0x107fad(0x11d)])==null)&&_0xa59ce6[_0x107fad(0x140)](_0xc39a7=>_0xc39a7['blockId']===_0x38c4b2&&_0xc39a7[_0x107fad(0x11a)]===_0x107fad(0xfb))?Z(this,_0x38c4b2):null;},'getQuoteAt'(_0x42f8cc){const _0xf284f=_0x541752;var _0x44741b;let _0x54ab7b=(_0x44741b=this[_0xf284f(0xf2)]()['body'])==null||(_0x44741b=_0x44741b['blockRanges'])==null||(_0x44741b=_0x44741b['find'](_0x141adb=>_0x141adb[_0xf284f(0x11a)]===_0xf284f(0xfb)&&_0x141adb[_0xf284f(0xff)]<=_0x42f8cc&&_0x42f8cc<=_0x141adb['endIndex']))==null?void 0x0:_0x44741b[_0xf284f(0x159)];return _0x54ab7b?Z(this,_0x54ab7b):null;},'findQuoteByText'(_0x4b387b){const _0x2f9512=_0x541752;var _0x28e551;return(_0x28e551=this[_0x2f9512(0x122)](_0x4b387b)[0x0])==null?null:_0x28e551;},'findQuotes'(_0x4801ab){const _0x7fbf97=_0x541752;let _0x3859c9=typeof _0x4801ab==_0x7fbf97(0x134)?{'text':_0x4801ab}:_0x4801ab;return this['getQuotes']()['filter'](_0x540c69=>!(_0x3859c9['blockId']&&_0x540c69[_0x7fbf97(0x106)]()!==_0x3859c9[_0x7fbf97(0x159)]||_0x3859c9['text']&&!_0x540c69[_0x7fbf97(0x104)]()[_0x7fbf97(0x14e)](_0x3859c9[_0x7fbf97(0x142)])));},'insertQuote'(_0x4b7966={}){const _0x1325ff=_0x541752;var _0x43dd03,_0xec3bbf;let _0x507f50=(_0x43dd03=_0x4b7966['blockId'])==null?'docs-quote-'+Date[_0x1325ff(0x100)]():_0x43dd03;return(_0xec3bbf=Q(this))!=null&&_0xec3bbf['syncExecuteCommand'](V['id'],{..._0x4b7966,'blockId':_0x507f50,'unitId':this[_0x1325ff(0x106)]()})?Z(this,_0x507f50):null;},'exitQuote'(_0x551e63){const _0x311529=_0x541752;var _0x242999;return!!((_0x242999=Q(this))!=null&&_0x242999[_0x311529(0x158)](H['id'],{'cursorOffset':_0x551e63,'unitId':this[_0x311529(0x106)]()}));},'cancelEmptyQuoteParagraph'(_0x52e51d={}){const _0x547648=_0x541752;var _0x3ea87b;return!!((_0x3ea87b=Q(this))!=null&&_0x3ea87b['syncExecuteCommand'](U['id'],{..._0x52e51d,'unitId':this[_0x547648(0x106)]()}));}});function Z(_0x45d362,_0x2c8873){const _0x5e43ed=_0x541752;return new Y({'blockId':_0x2c8873,'commandService':Q(_0x45d362),'getDocumentData':()=>_0x45d362[_0x5e43ed(0xf2)](),'unitId':_0x45d362[_0x5e43ed(0x106)]()});}function Q(_0x4f5ba8){const _0xb791fe=_0x541752;var _0x5c9339,_0x2406e0;let _0x41b9a4=_0x4f5ba8;return(_0x5c9339=_0x41b9a4[_0xb791fe(0xfe)])==null?(_0x2406e0=_0x41b9a4[_0xb791fe(0x116)])==null?void 0x0:_0x2406e0[_0xb791fe(0xf8)](e[_0xb791fe(0x12d)]):_0x5c9339;}exports[_0x541752(0x156)]=Y;
1
+ const _0x120291=_0xde34;(function(_0x50f9d4,_0xcc7777){const _0x2db154=_0xde34,_0x3d68a4=_0x50f9d4();while(!![]){try{const _0x8a4244=parseInt(_0x2db154(0xbe))/0x1+-parseInt(_0x2db154(0xb8))/0x2+parseInt(_0x2db154(0x80))/0x3+parseInt(_0x2db154(0x96))/0x4*(-parseInt(_0x2db154(0x89))/0x5)+parseInt(_0x2db154(0x92))/0x6*(-parseInt(_0x2db154(0x88))/0x7)+parseInt(_0x2db154(0xd2))/0x8+parseInt(_0x2db154(0xb7))/0x9*(parseInt(_0x2db154(0xc5))/0xa);if(_0x8a4244===_0xcc7777)break;else _0x3d68a4['push'](_0x3d68a4['shift']());}catch(_0x25c3f1){_0x3d68a4['push'](_0x3d68a4['shift']());}}}(_0x1290,0xd96fb),Object[_0x120291(0xbb)](exports,Symbol[_0x120291(0xbc)],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/docs-ui/facade'),n=require('@univerjs/docs');require('@univerjs/docs-ui');const r='quote';function i(_0x276372){const _0x2867f8=_0x120291;var _0x360bf0,_0x175179,_0x333436;let _0xf0752c=y(_0x276372[_0x2867f8(0xa9)]),_0x337a18=b(_0xf0752c),_0x9c57ac=a(_0x276372[_0x2867f8(0x81)],_0x276372[_0x2867f8(0xca)]),_0x475fce=_0x9c57ac?(_0x360bf0=_0x337a18['blockRanges'])==null?void 0x0:_0x360bf0[_0x2867f8(0xc6)](_0x46781a=>_0x46781a[_0x2867f8(0xa6)]===_0x9c57ac[_0x2867f8(0x81)]&&_0x46781a[_0x2867f8(0x82)]+0x1===_0x9c57ac[_0x2867f8(0xca)]):void 0x0,{startOffset:_0x128455,endOffset:_0x40f66d}=_0x475fce?_0x9c57ac:x(_0x337a18,_0x276372[_0x2867f8(0x81)],_0x276372[_0x2867f8(0xca)]),_0x28d3a5=C(_0x337a18,_0x128455,_0x40f66d),_0x26ecc5=(_0x175179=_0x475fce==null?void 0x0:_0x475fce['blockId'])==null?_0x276372[_0x2867f8(0xd8)]:_0x175179;if(_0x475fce)return _0x475fce[_0x2867f8(0xc1)]=r,o(_0x337a18,_0x128455,_0x40f66d),p(_0x337a18,_0x128455,_0x40f66d,_0x28d3a5),{'nextDocumentData':_0xf0752c,'cursorOffset':_0x128455+0x1};if(_0x128455===_0x40f66d){let _0x1d692b=''+e['DataStreamTreeTokenType'][_0x2867f8(0x7b)]+e[_0x2867f8(0x87)][_0x2867f8(0xab)]+e[_0x2867f8(0x87)][_0x2867f8(0xc8)];return k(_0x337a18,_0x128455,_0x1d692b,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':f(!0x0,!0x0,_0x28d3a5)}],'blockRanges':[{'blockId':_0x26ecc5,'blockType':r,'startIndex':0x0,'endIndex':_0x1d692b[_0x2867f8(0xd1)]-0x1}]}),{'nextDocumentData':_0xf0752c,'cursorOffset':_0x128455+0x1};}return k(_0x337a18,_0x40f66d,e[_0x2867f8(0x87)][_0x2867f8(0xc8)]),k(_0x337a18,_0x128455,e[_0x2867f8(0x87)][_0x2867f8(0x7b)]),p(_0x337a18,_0x128455,_0x40f66d+0x1,_0x28d3a5),_0x337a18[_0x2867f8(0xba)]=[...(_0x333436=_0x337a18[_0x2867f8(0xba)])==null?[]:_0x333436,{'blockId':_0x26ecc5,'blockType':r,'startIndex':_0x128455,'endIndex':_0x40f66d+0x1}][_0x2867f8(0x98)]((_0x5d96fd,_0x5ce869)=>_0x5d96fd[_0x2867f8(0xa6)]-_0x5ce869['startIndex']),{'nextDocumentData':_0xf0752c,'cursorOffset':_0x128455+0x1};}function a(_0x339a4,_0x30be5f){const _0x1a9559=_0x120291;return _0x339a4==null||_0x30be5f==null||_0x339a4===_0x30be5f?null:{'startOffset':Math['min'](_0x339a4,_0x30be5f),'endOffset':Math[_0x1a9559(0x7a)](_0x339a4,_0x30be5f)};}function o(_0x32708b,_0x23fd53,_0x105458){const _0x169e73=_0x120291;var _0x3a7ceb;((_0x3a7ceb=_0x32708b[_0x169e73(0xc0)])==null?[]:_0x3a7ceb)[_0x169e73(0x77)](_0x4e302a=>_0x4e302a[_0x169e73(0xa6)]>_0x23fd53&&_0x4e302a['startIndex']<_0x105458)[_0x169e73(0x7e)](_0x5a55fd=>{const _0x65d144=_0x169e73;var _0x74a343;let _0x10dbee={...(_0x74a343=_0x5a55fd[_0x65d144(0xd4)])==null?{}:_0x74a343};delete _0x10dbee['indentEnd'],delete _0x10dbee[_0x65d144(0x91)],delete _0x10dbee[_0x65d144(0xb5)],delete _0x10dbee[_0x65d144(0x8b)],_0x5a55fd[_0x65d144(0xd4)]=_0x10dbee;});}function s(_0x2423b5){const _0x10d744=_0x120291;var _0x4d8833,_0x2aafba;let _0x3462ef=y(_0x2423b5[_0x10d744(0xa9)]),_0x262830=b(_0x3462ef),_0x47d46f=d(_0x262830,_0x2423b5[_0x10d744(0x7f)]);if(!_0x47d46f)return null;let _0x2fea77=h(_0x262830,_0x47d46f),_0x1c9b68=_0x2fea77[_0x2fea77['length']-0x1];if(!_0x1c9b68||!g(_0x262830,_0x47d46f,_0x1c9b68)||_0x2423b5['cursorOffset']<_0x1c9b68[_0x10d744(0xa6)])return null;let _0x2cfcfa=E(_0x262830,_0x47d46f,_0x1c9b68);if(_0x2cfcfa>=_0x47d46f[_0x10d744(0x82)])return null;_0x262830['dataStream']=[_0x262830[_0x10d744(0xb9)][_0x10d744(0x7c)](0x0,_0x2cfcfa),e['DataStreamTreeTokenType'][_0x10d744(0xc8)],_0x262830[_0x10d744(0xb9)][_0x10d744(0x7c)](_0x2cfcfa,_0x47d46f['endIndex']),_0x262830[_0x10d744(0xb9)][_0x10d744(0x7c)](_0x47d46f['endIndex']+0x1)]['join'](''),R(_0x262830['paragraphs'],_0x2cfcfa,_0x47d46f[_0x10d744(0x82)],0x1),R(_0x262830[_0x10d744(0xa8)],_0x2cfcfa,_0x47d46f[_0x10d744(0x82)],0x1),R(_0x262830['customBlocks'],_0x2cfcfa,_0x47d46f[_0x10d744(0x82)],0x1),z(_0x262830[_0x10d744(0x78)],_0x2cfcfa,_0x47d46f[_0x10d744(0x82)],0x1),B(_0x262830['tables'],_0x2cfcfa,_0x47d46f[_0x10d744(0x82)],0x1),B(_0x262830[_0x10d744(0xa4)],_0x2cfcfa,_0x47d46f[_0x10d744(0x82)],0x1),B(_0x262830[_0x10d744(0xc4)],_0x2cfcfa,_0x47d46f['endIndex'],0x1),(_0x4d8833=_0x262830[_0x10d744(0xba)])==null||_0x4d8833[_0x10d744(0x7e)](_0x3341ad=>{const _0x240b1f=_0x10d744;_0x3341ad===_0x47d46f||_0x3341ad['blockId']===_0x47d46f[_0x240b1f(0xd8)]?_0x3341ad[_0x240b1f(0x82)]=_0x2cfcfa:_0x3341ad[_0x240b1f(0xa6)]>=_0x2cfcfa&&_0x3341ad[_0x240b1f(0xa6)]<_0x47d46f['endIndex']&&(_0x3341ad['startIndex']+=0x1,_0x3341ad[_0x240b1f(0x82)]+=0x1);});let _0xbf61fb=h(_0x262830,{..._0x47d46f,'endIndex':_0x2cfcfa});_0xbf61fb[_0x10d744(0x7e)]((_0x3f84a6,_0x100583)=>{const _0x23c3b0=_0x10d744;var _0x1950a2;_0x3f84a6[_0x23c3b0(0xd4)]={...(_0x1950a2=_0x3f84a6[_0x23c3b0(0xd4)])==null?{}:_0x1950a2,...f(_0x100583===0x0,_0x100583===_0xbf61fb[_0x23c3b0(0xd1)]-0x1)};});let _0x205ebd=(_0x2aafba=_0x262830[_0x10d744(0xc0)])==null?void 0x0:_0x2aafba['find'](_0x49a7a6=>_0x49a7a6[_0x10d744(0xa6)]===_0x2cfcfa+0x1);return _0x205ebd&&(_0x205ebd[_0x10d744(0xd4)]=m(_0x205ebd[_0x10d744(0xd4)])),{'nextDocumentData':_0x3462ef,'cursorOffset':_0x2cfcfa+0x1};}function c(_0xc22191){const _0xa0b965=_0x120291;let _0x27e7e9=y(_0xc22191[_0xa0b965(0xa9)]),_0x2ee4fc=b(_0x27e7e9),_0x3602a0=d(_0x2ee4fc,_0xc22191['cursorOffset']);return _0x3602a0&&(l(_0x27e7e9,_0x2ee4fc,_0x3602a0,_0xc22191[_0xa0b965(0x7f)],_0xc22191['paragraphStartIndex'])||u(_0x27e7e9,_0x2ee4fc,_0x3602a0,_0xc22191[_0xa0b965(0x7f)]))||null;}function l(_0x14dcc2,_0x21a844,_0x1673a2,_0x276c70,_0x4c37fd){const _0x349dc9=_0x120291;let _0x5b0051=O(_0x21a844,_0x1673a2,_0x276c70,_0x4c37fd);if(!_0x5b0051)return null;let _0x1d0886=_0x5b0051[_0x349dc9(0xd5)]-0x1;return A(_0x21a844,_0x5b0051['paragraph'][_0x349dc9(0xa6)],_0x5b0051[_0x349dc9(0xd7)][_0x349dc9(0xa6)]+0x1),{'nextDocumentData':_0x14dcc2,'cursorOffset':_0x1d0886};}function u(_0x1d5297,_0x5c8d2b,_0x5c68cc,_0x19966c){const _0xb6daa5=_0x120291;if(_0x19966c!==_0x5c68cc[_0xb6daa5(0xa6)]+0x1)return null;let _0x43ee5a=h(_0x5c8d2b,_0x5c68cc),_0x1f8ebe=_0x43ee5a[0x0];return!_0x1f8ebe||E(_0x5c8d2b,_0x5c68cc,_0x1f8ebe)!==_0x19966c?null:_0x43ee5a[_0xb6daa5(0xd1)]===0x1?_(_0x1d5297,_0x5c8d2b,_0x5c68cc,_0x1f8ebe):v(_0x1d5297,_0x5c8d2b,_0x5c68cc,_0x1f8ebe);}function d(_0x522c5f,_0x48ce90){const _0xf08420=_0x120291;var _0x42985d;return(_0x42985d=_0x522c5f['blockRanges'])==null?void 0x0:_0x42985d[_0xf08420(0xc6)](_0x932cfb=>{const _0x20b018=_0xf08420;let _0x1a936f=D(_0x522c5f,_0x932cfb);return _0x932cfb[_0x20b018(0xc1)]===_0x20b018(0xcc)&&_0x932cfb[_0x20b018(0xa6)]<=_0x48ce90&&_0x48ce90<=_0x1a936f+0x2;});}function f(_0x4e7edc,_0x500585,_0x1a1d49=!0x1){return{'indentStart':{'v':0x16},..._0x4e7edc&&_0x1a1d49?{'spaceAbove':{'v':0x8}}:{}};}function p(_0xd160c5,_0x1e0075,_0x2f12d9,_0x14a9b5=!0x1){const _0xdc42d=_0x120291;var _0x11477b;let _0x924845=((_0x11477b=_0xd160c5['paragraphs'])==null?[]:_0x11477b)['filter'](_0x48867d=>_0x48867d[_0xdc42d(0xa6)]>_0x1e0075&&_0x48867d['startIndex']<_0x2f12d9);_0x924845[_0xdc42d(0x7e)]((_0x3b3722,_0x92ed1e)=>{const _0x6aa4d0=_0xdc42d;var _0x5b7bb5;_0x3b3722[_0x6aa4d0(0xd4)]={...(_0x5b7bb5=_0x3b3722[_0x6aa4d0(0xd4)])==null?{}:_0x5b7bb5,...f(_0x92ed1e===0x0,_0x92ed1e===_0x924845[_0x6aa4d0(0xd1)]-0x1,_0x14a9b5)};});}function m(_0x163e09){const _0x399bb1=_0x120291;let _0x5d3a58={..._0x163e09==null?{}:_0x163e09};return delete _0x5d3a58[_0x399bb1(0x93)],delete _0x5d3a58[_0x399bb1(0x91)],delete _0x5d3a58[_0x399bb1(0xb5)],_0x5d3a58;}function h(_0x478850,_0x2c0ee4){const _0x200da1=_0x120291;var _0x15cc24;let _0x2d94c6=D(_0x478850,_0x2c0ee4);return((_0x15cc24=_0x478850['paragraphs'])==null?[]:_0x15cc24)[_0x200da1(0x77)](_0x38e1be=>_0x38e1be[_0x200da1(0xa6)]>_0x2c0ee4[_0x200da1(0xa6)]&&_0x38e1be['startIndex']<_0x2d94c6);}function g(_0x54eb7f,_0xae0d1e,_0x5b3cba){const _0x309f56=_0x120291;let _0x555fe3=E(_0x54eb7f,_0xae0d1e,_0x5b3cba),_0x24c9bb=_0x54eb7f[_0x309f56(0xb9)][_0x309f56(0x7c)](_0x555fe3,_0x5b3cba[_0x309f56(0xa6)]);return Array['from'](_0x24c9bb)[_0x309f56(0xaf)](_0x6efd52=>_0x6efd52===e[_0x309f56(0x87)]['BLOCK_START']||_0x6efd52===e[_0x309f56(0x87)][_0x309f56(0xc8)]);}function _(_0x4f2e6e,_0x1c4955,_0x4f2b1f,_0x5bc92a){const _0x13286b=_0x120291;var _0x2623eb,_0x5d393b;let _0x38f7bb=_0x4f2b1f[_0x13286b(0xa6)];A(_0x1c4955,_0x4f2b1f['endIndex'],_0x4f2b1f['endIndex']+0x1),A(_0x1c4955,_0x4f2b1f[_0x13286b(0xa6)],_0x4f2b1f[_0x13286b(0xa6)]+0x1),_0x1c4955[_0x13286b(0xba)]=(_0x2623eb=_0x1c4955[_0x13286b(0xba)])==null?void 0x0:_0x2623eb[_0x13286b(0x77)](_0x53e02b=>_0x53e02b[_0x13286b(0xd8)]!==_0x4f2b1f[_0x13286b(0xd8)]);let _0x3d7c7d=(_0x5d393b=_0x1c4955[_0x13286b(0xc0)])==null?void 0x0:_0x5d393b[_0x13286b(0xc6)](_0x3f9d81=>_0x3f9d81['startIndex']===_0x5bc92a[_0x13286b(0xa6)]-0x1);return _0x3d7c7d&&(_0x3d7c7d[_0x13286b(0xd4)]=m(_0x3d7c7d[_0x13286b(0xd4)])),{'nextDocumentData':_0x4f2e6e,'cursorOffset':_0x38f7bb};}function v(_0x5544b,_0x10db6a,_0x4b2b54,_0x19a2d7){const _0x14d688=_0x120291;var _0x841f4a,_0x301b2e;let _0x47e5b8=_0x19a2d7['startIndex'],_0x53024a=_0x4b2b54[_0x14d688(0xa6)];k(_0x10db6a,_0x19a2d7['startIndex']+0x1,e[_0x14d688(0x87)][_0x14d688(0x7b)]),A(_0x10db6a,_0x4b2b54[_0x14d688(0xa6)],_0x4b2b54['startIndex']+0x1);let _0xaddfff=(_0x841f4a=_0x10db6a['paragraphs'])==null?void 0x0:_0x841f4a['find'](_0x4c3d84=>_0x4c3d84[_0x14d688(0xa6)]===_0x47e5b8-0x1),_0x37c1da=(_0x301b2e=_0x10db6a[_0x14d688(0xba)])==null?void 0x0:_0x301b2e[_0x14d688(0xc6)](_0x4771b6=>_0x4771b6[_0x14d688(0xd8)]===_0x4b2b54['blockId']);return _0xaddfff&&(_0xaddfff[_0x14d688(0xd4)]=m(_0xaddfff[_0x14d688(0xd4)]),_0x37c1da&&(_0x37c1da[_0x14d688(0xa6)]=_0xaddfff[_0x14d688(0xa6)]+0x1)),_0x37c1da&&p(_0x10db6a,_0x37c1da[_0x14d688(0xa6)],_0x37c1da[_0x14d688(0x82)]),{'nextDocumentData':_0x5544b,'cursorOffset':_0x53024a};}function y(_0x31ad4a){const _0x48998e=_0x120291;return e[_0x48998e(0xd3)][_0x48998e(0x9e)](_0x31ad4a);}function b(_0x35d32f){const _0x2d0172=_0x120291;if(!_0x35d32f[_0x2d0172(0x94)])throw Error(_0x2d0172(0x85));return _0x35d32f[_0x2d0172(0x94)];}function x(_0x594194,_0x527821,_0x3caa69){const _0x966de0=_0x120291;if(_0x527821==null||_0x3caa69==null){let _0x534972=S(_0x594194);return{'startOffset':_0x534972,'endOffset':_0x534972};}let _0x316298=Math[_0x966de0(0x9f)](_0x527821,_0x3caa69),_0x447cf7=Math[_0x966de0(0x7a)](_0x527821,_0x3caa69);return _0x316298===_0x447cf7?{'startOffset':_0x316298,'endOffset':_0x316298}:w(_0x594194,_0x316298,_0x447cf7);}function S(_0x4b43d4){const _0x303b2e=_0x120291;return _0x4b43d4[_0x303b2e(0xb9)]['endsWith'](e[_0x303b2e(0x87)][_0x303b2e(0x99)])?Math[_0x303b2e(0x7a)](0x0,_0x4b43d4[_0x303b2e(0xb9)][_0x303b2e(0xd1)]-0x1):_0x4b43d4[_0x303b2e(0xb9)][_0x303b2e(0xd1)];}function C(_0x2b5ff9,_0x8b4885,_0x4b892d){const _0x3732bb=_0x120291;var _0x352dc1;let _0x5d621c=Math['min'](_0x8b4885,_0x4b892d),_0x4b4244=Math[_0x3732bb(0x7a)](_0x8b4885,_0x4b892d);return!!((_0x352dc1=_0x2b5ff9[_0x3732bb(0x8e)])!=null&&_0x352dc1[_0x3732bb(0x83)](_0x59992d=>_0x5d621c>_0x59992d[_0x3732bb(0xa6)]&&_0x5d621c<_0x59992d['endIndex']||_0x4b4244>_0x59992d['startIndex']&&_0x4b4244<_0x59992d['endIndex']||_0x5d621c<=_0x59992d[_0x3732bb(0xa6)]&&_0x4b4244>=_0x59992d[_0x3732bb(0x82)]));}function w(_0x56d3d7,_0x1be8c6,_0x1db4f7){const _0x2eec88=_0x120291;var _0x548876,_0x2de524;let _0x4d0fae=[...(_0x548876=_0x56d3d7[_0x2eec88(0xc0)])==null?[]:_0x548876][_0x2eec88(0x98)]((_0x332d0f,_0x58d019)=>_0x332d0f[_0x2eec88(0xa6)]-_0x58d019[_0x2eec88(0xa6)]),_0x2850d2=_0x4d0fae[_0x2eec88(0xc6)]((_0x2fc958,_0x31673c)=>(_0x31673c===0x0?0x0:_0x4d0fae[_0x31673c-0x1][_0x2eec88(0xa6)]+0x1)<=_0x1be8c6&&_0x1be8c6<=_0x2fc958[_0x2eec88(0xa6)]),_0x4fc25d=(_0x2de524=_0x4d0fae[_0x2eec88(0xc6)](_0x237394=>_0x237394[_0x2eec88(0xa6)]>=_0x1db4f7-0x1))==null?_0x4d0fae[_0x4d0fae[_0x2eec88(0xd1)]-0x1]:_0x2de524;return{'startOffset':_0x2850d2?T(_0x4d0fae,_0x2850d2):_0x1be8c6,'endOffset':_0x4fc25d?_0x4fc25d[_0x2eec88(0xa6)]+0x1:_0x1db4f7};}function T(_0x2f2a26,_0x586055){const _0x283644=_0x120291;let _0x40fbad=_0x2f2a26[_0x283644(0xb6)](_0x586055);return _0x40fbad>0x0?_0x2f2a26[_0x40fbad-0x1][_0x283644(0xa6)]+0x1:0x0;}function E(_0xa612d,_0x296f68,_0x325fa5){const _0x35b596=_0x120291;var _0x58fd86;return Math[_0x35b596(0x7a)](T((_0x58fd86=_0xa612d[_0x35b596(0xc0)])==null?[]:_0x58fd86,_0x325fa5),_0x296f68[_0x35b596(0xa6)]+0x1);}function D(_0x3b236b,_0x403ca9){const _0x351f0f=_0x120291;return _0x3b236b['dataStream'][_0x403ca9['endIndex']]===e[_0x351f0f(0x87)][_0x351f0f(0xc8)]?_0x403ca9[_0x351f0f(0x82)]:_0x3b236b[_0x351f0f(0xb9)][_0x403ca9[_0x351f0f(0x82)]+0x1]===e[_0x351f0f(0x87)][_0x351f0f(0xc8)]?_0x403ca9[_0x351f0f(0x82)]+0x1:_0x403ca9[_0x351f0f(0x82)];}function O(_0x765bfd,_0x45358c,_0x3f6c89,_0x25b6c1){const _0x397dae=_0x120291;var _0x4984a7,_0x2b77b3;let _0x3bb509=D(_0x765bfd,_0x45358c),_0x5f144e=((_0x4984a7=_0x765bfd[_0x397dae(0xc0)])==null?[]:_0x4984a7)[_0x397dae(0xc6)](_0x29ffed=>_0x29ffed[_0x397dae(0xa6)]===_0x3bb509+0x1);if(!_0x5f144e||_0x25b6c1!=null&&_0x5f144e[_0x397dae(0xa6)]!==_0x25b6c1||_0x3f6c89<_0x3bb509||_0x3f6c89>_0x5f144e['startIndex']+0x1||_0x765bfd[_0x397dae(0xb9)][_0x5f144e[_0x397dae(0xa6)]]!==e['DataStreamTreeTokenType']['PARAGRAPH'])return null;let _0x2a7b33=T((_0x2b77b3=_0x765bfd['paragraphs'])==null?[]:_0x2b77b3,_0x5f144e),_0x269421=_0x765bfd[_0x397dae(0xb9)]['slice'](_0x2a7b33,_0x5f144e[_0x397dae(0xa6)]);return Array[_0x397dae(0x8a)](_0x269421)[_0x397dae(0xaf)](_0x5c1d0d=>_0x5c1d0d===e[_0x397dae(0x87)]['BLOCK_END'])?{'paragraph':_0x5f144e,'endTokenOffset':_0x3bb509}:null;}function k(_0x58fdce,_0x466242,_0x9cee5f,_0x149dd0={}){const _0x4097b1=_0x120291;var _0x4d7b5f,_0x5d45ce;if(_0x9cee5f){if(_0x58fdce[_0x4097b1(0xb9)]=''+_0x58fdce[_0x4097b1(0xb9)][_0x4097b1(0x7c)](0x0,_0x466242)+_0x9cee5f+_0x58fdce[_0x4097b1(0xb9)][_0x4097b1(0x7c)](_0x466242),j(_0x58fdce,_0x466242,_0x9cee5f['length']),(_0x4d7b5f=_0x149dd0[_0x4097b1(0xc0)])!=null&&_0x4d7b5f[_0x4097b1(0xd1)]){var _0x1cb134;_0x58fdce[_0x4097b1(0xc0)]=[...(_0x1cb134=_0x58fdce[_0x4097b1(0xc0)])==null?[]:_0x1cb134,..._0x149dd0[_0x4097b1(0xc0)][_0x4097b1(0xad)](_0x56bb8e=>({..._0x56bb8e,'startIndex':_0x56bb8e[_0x4097b1(0xa6)]+_0x466242}))][_0x4097b1(0x98)]((_0x496efe,_0x1bf08d)=>_0x496efe[_0x4097b1(0xa6)]-_0x1bf08d[_0x4097b1(0xa6)]);}if((_0x5d45ce=_0x149dd0['blockRanges'])!=null&&_0x5d45ce[_0x4097b1(0xd1)]){var _0x3b9113;_0x58fdce[_0x4097b1(0xba)]=[...(_0x3b9113=_0x58fdce[_0x4097b1(0xba)])==null?[]:_0x3b9113,..._0x149dd0[_0x4097b1(0xba)]['map'](_0xe1aa67=>({..._0xe1aa67,'startIndex':_0xe1aa67['startIndex']+_0x466242,'endIndex':_0xe1aa67[_0x4097b1(0x82)]+_0x466242}))][_0x4097b1(0x98)]((_0x51d0e5,_0x28c769)=>_0x51d0e5['startIndex']-_0x28c769[_0x4097b1(0xa6)]);}}}function _0xde34(_0x120350,_0x5ec6e0){_0x120350=_0x120350-0x6f;const _0x12903b=_0x1290();let _0xde34c0=_0x12903b[_0x120350];return _0xde34c0;}function A(_0x30a4ae,_0x576861,_0x2a86cd){const _0xabf5b2=_0x120291;let _0x1190a5=_0x2a86cd-_0x576861;_0x30a4ae[_0xabf5b2(0xb9)]=''+_0x30a4ae[_0xabf5b2(0xb9)][_0xabf5b2(0x7c)](0x0,_0x576861)+_0x30a4ae['dataStream'][_0xabf5b2(0x7c)](_0x2a86cd),M(_0x30a4ae,_0x576861,_0x1190a5);}function j(_0x55ff5a,_0xa21529,_0xe3daa0){const _0xf1b5c7=_0x120291;_0x55ff5a[_0xf1b5c7(0xc0)]=N(_0x55ff5a[_0xf1b5c7(0xc0)],_0xa21529,_0xe3daa0),_0x55ff5a['sectionBreaks']=N(_0x55ff5a[_0xf1b5c7(0xa8)],_0xa21529,_0xe3daa0),_0x55ff5a[_0xf1b5c7(0x8d)]=N(_0x55ff5a[_0xf1b5c7(0x8d)],_0xa21529,_0xe3daa0),_0x55ff5a[_0xf1b5c7(0x78)]=F(_0x55ff5a[_0xf1b5c7(0x78)],_0xa21529,_0xe3daa0),_0x55ff5a[_0xf1b5c7(0x8e)]=I(_0x55ff5a[_0xf1b5c7(0x8e)],_0xa21529,_0xe3daa0),_0x55ff5a[_0xf1b5c7(0xa4)]=I(_0x55ff5a[_0xf1b5c7(0xa4)],_0xa21529,_0xe3daa0),_0x55ff5a[_0xf1b5c7(0xc4)]=I(_0x55ff5a[_0xf1b5c7(0xc4)],_0xa21529,_0xe3daa0),_0x55ff5a[_0xf1b5c7(0xba)]=I(_0x55ff5a[_0xf1b5c7(0xba)],_0xa21529,_0xe3daa0);}function M(_0x18884b,_0x455474,_0x6d610f){const _0x11ec9c=_0x120291;var _0x2215dc,_0x32fa4a;_0x18884b[_0x11ec9c(0xc0)]=P(_0x18884b['paragraphs'],_0x455474,_0x6d610f),_0x18884b[_0x11ec9c(0xa8)]=P(_0x18884b['sectionBreaks'],_0x455474,_0x6d610f),_0x18884b[_0x11ec9c(0x8d)]=P(_0x18884b[_0x11ec9c(0x8d)],_0x455474,_0x6d610f),_0x18884b['textRuns']=(_0x2215dc=L((_0x32fa4a=_0x18884b['textRuns'])==null?void 0x0:_0x32fa4a[_0x11ec9c(0xad)](_0x4602f5=>({..._0x4602f5,'startIndex':_0x4602f5['st'],'endIndex':_0x4602f5['ed']})),_0x455474,_0x6d610f))==null?void 0x0:_0x2215dc[_0x11ec9c(0xad)](_0x1af49a=>{let {startIndex:_0x4549e3,endIndex:_0x2af078,..._0x331cbc}=_0x1af49a;return{..._0x331cbc,'st':_0x4549e3,'ed':_0x2af078};}),_0x18884b['tables']=L(_0x18884b[_0x11ec9c(0x8e)],_0x455474,_0x6d610f),_0x18884b[_0x11ec9c(0xa4)]=L(_0x18884b[_0x11ec9c(0xa4)],_0x455474,_0x6d610f),_0x18884b[_0x11ec9c(0xc4)]=L(_0x18884b['customDecorations'],_0x455474,_0x6d610f),_0x18884b['blockRanges']=L(_0x18884b[_0x11ec9c(0xba)],_0x455474,_0x6d610f);}function N(_0x3928de,_0x391477,_0x542c45){const _0x16802d=_0x120291;return _0x3928de==null?void 0x0:_0x3928de[_0x16802d(0xad)](_0x43948d=>_0x43948d[_0x16802d(0xa6)]>=_0x391477?{..._0x43948d,'startIndex':_0x43948d['startIndex']+_0x542c45}:_0x43948d);}function P(_0x23bcdb,_0x1d60e5,_0x200f6d){const _0x457bb2=_0x120291;let _0x241611=_0x1d60e5+_0x200f6d;return _0x23bcdb==null?void 0x0:_0x23bcdb[_0x457bb2(0xad)](_0xd5cfb9=>_0xd5cfb9[_0x457bb2(0xa6)]>=_0x1d60e5&&_0xd5cfb9['startIndex']<_0x241611?null:_0xd5cfb9[_0x457bb2(0xa6)]>=_0x241611?{..._0xd5cfb9,'startIndex':_0xd5cfb9[_0x457bb2(0xa6)]-_0x200f6d}:_0xd5cfb9)[_0x457bb2(0x77)](_0x2924dd=>_0x2924dd!=null);}function F(_0x48edde,_0x2a36bb,_0x7195ed){const _0x4234ec=_0x120291;return _0x48edde==null?void 0x0:_0x48edde[_0x4234ec(0xad)](_0x3b8a8f=>_0x3b8a8f['st']>=_0x2a36bb?{..._0x3b8a8f,'st':_0x3b8a8f['st']+_0x7195ed,'ed':_0x3b8a8f['ed']+_0x7195ed}:_0x3b8a8f['ed']>_0x2a36bb?{..._0x3b8a8f,'ed':_0x3b8a8f['ed']+_0x7195ed}:_0x3b8a8f);}function I(_0x495911,_0x258d8c,_0xbf3695){const _0x35ca4a=_0x120291;return _0x495911==null?void 0x0:_0x495911[_0x35ca4a(0xad)](_0x53b2a2=>_0x53b2a2[_0x35ca4a(0xa6)]>=_0x258d8c?{..._0x53b2a2,'startIndex':_0x53b2a2[_0x35ca4a(0xa6)]+_0xbf3695,'endIndex':_0x53b2a2[_0x35ca4a(0x82)]+_0xbf3695}:_0x53b2a2[_0x35ca4a(0x82)]>=_0x258d8c?{..._0x53b2a2,'endIndex':_0x53b2a2[_0x35ca4a(0x82)]+_0xbf3695}:_0x53b2a2);}function L(_0x33cb07,_0x563ea2,_0x1aeb75){const _0x21fa75=_0x120291;let _0xf19c72=_0x563ea2+_0x1aeb75;return _0x33cb07==null?void 0x0:_0x33cb07[_0x21fa75(0xad)](_0x19fc96=>_0x19fc96[_0x21fa75(0xa6)]>=_0x563ea2&&_0x19fc96[_0x21fa75(0x82)]<_0xf19c72?null:_0x19fc96[_0x21fa75(0xa6)]>=_0xf19c72?{..._0x19fc96,'startIndex':_0x19fc96[_0x21fa75(0xa6)]-_0x1aeb75,'endIndex':_0x19fc96[_0x21fa75(0x82)]-_0x1aeb75}:_0x19fc96[_0x21fa75(0x82)]>=_0x563ea2?{..._0x19fc96,'startIndex':_0x19fc96['startIndex']<_0x563ea2?_0x19fc96[_0x21fa75(0xa6)]:_0x563ea2,'endIndex':Math[_0x21fa75(0x7a)](_0x563ea2,_0x19fc96['endIndex']-_0x1aeb75)}:_0x19fc96)[_0x21fa75(0x77)](_0x1cdd5e=>_0x1cdd5e!=null);}function R(_0x2679c8,_0x2d61e9,_0x158a8b,_0x123907){const _0x605ba7=_0x120291;_0x2679c8==null||_0x2679c8[_0x605ba7(0x7e)](_0x3098b5=>{const _0x43464f=_0x605ba7;_0x3098b5[_0x43464f(0xa6)]>=_0x2d61e9&&_0x3098b5[_0x43464f(0xa6)]<_0x158a8b&&(_0x3098b5[_0x43464f(0xa6)]+=_0x123907);});}function z(_0x47eba6,_0xe939f5,_0x5b7639,_0x3215ff){const _0x1d7a88=_0x120291;_0x47eba6==null||_0x47eba6[_0x1d7a88(0x7e)](_0x3ba3f9=>{_0x3ba3f9['st']>=_0xe939f5&&_0x3ba3f9['st']<_0x5b7639?(_0x3ba3f9['st']+=_0x3215ff,_0x3ba3f9['ed']+=_0x3215ff):_0x3ba3f9['ed']>_0xe939f5&&_0x3ba3f9['ed']<_0x5b7639&&(_0x3ba3f9['ed']+=_0x3215ff);});}function B(_0x40a237,_0x5cdcae,_0x36886d,_0x179fa3){const _0x3e25ee=_0x120291;_0x40a237==null||_0x40a237[_0x3e25ee(0x7e)](_0x5d5d50=>{const _0x26313b=_0x3e25ee;_0x5d5d50['startIndex']>=_0x5cdcae&&_0x5d5d50[_0x26313b(0xa6)]<_0x36886d?(_0x5d5d50[_0x26313b(0xa6)]+=_0x179fa3,_0x5d5d50['endIndex']+=_0x179fa3):_0x5d5d50[_0x26313b(0x82)]>_0x5cdcae&&_0x5d5d50['endIndex']<_0x36886d&&(_0x5d5d50[_0x26313b(0x82)]+=_0x179fa3);});}e['CommandType']['COMMAND'];const V={'id':_0x120291(0xd6),'type':e[_0x120291(0x90)]['COMMAND'],'handler':(_0x620d0b,_0x1fba22)=>{const _0x5d57ec=_0x120291;var _0x12f499,_0x5e4852,_0x222590;let _0x3948ec=W(_0x620d0b,_0x1fba22==null?void 0x0:_0x1fba22['unitId']);if(!_0x3948ec)return!0x1;let _0x2b4eca=G(_0x620d0b),_0x1629d2=i({'blockId':(_0x12f499=_0x1fba22==null?void 0x0:_0x1fba22[_0x5d57ec(0xd8)])==null?(0x0,e[_0x5d57ec(0xb3)])(0x6):_0x12f499,'documentData':_0x3948ec[_0x5d57ec(0xa3)],'endOffset':(_0x5e4852=_0x1fba22==null?void 0x0:_0x1fba22[_0x5d57ec(0xca)])==null?_0x2b4eca==null?void 0x0:_0x2b4eca[_0x5d57ec(0xca)]:_0x5e4852,'startOffset':(_0x222590=_0x1fba22==null?void 0x0:_0x1fba22[_0x5d57ec(0x81)])==null?_0x2b4eca==null?void 0x0:_0x2b4eca['startOffset']:_0x222590});return J(_0x3948ec[_0x5d57ec(0x72)],_0x3948ec[_0x5d57ec(0x8f)],_0x3948ec[_0x5d57ec(0xa3)],_0x1629d2[_0x5d57ec(0xc7)],_0x1629d2[_0x5d57ec(0x7f)]);}},H={'id':_0x120291(0x79),'type':e[_0x120291(0x90)][_0x120291(0xae)],'handler':(_0x4f2d74,_0x57d8d4)=>{const _0x23dd82=_0x120291;var _0x593698,_0x3de41b;let _0x151df9=W(_0x4f2d74,_0x57d8d4==null?void 0x0:_0x57d8d4[_0x23dd82(0x8f)]);if(!_0x151df9)return!0x1;let _0x2362d5=(_0x593698=_0x57d8d4==null?void 0x0:_0x57d8d4[_0x23dd82(0x7f)])==null?(_0x3de41b=G(_0x4f2d74))==null?void 0x0:_0x3de41b[_0x23dd82(0x81)]:_0x593698;if(_0x2362d5==null)return!0x1;let _0x41f5db=s({'cursorOffset':_0x2362d5,'documentData':_0x151df9[_0x23dd82(0xa3)]});return _0x41f5db?J(_0x151df9[_0x23dd82(0x72)],_0x151df9[_0x23dd82(0x8f)],_0x151df9[_0x23dd82(0xa3)],_0x41f5db['nextDocumentData'],_0x41f5db[_0x23dd82(0x7f)]):!0x1;}},U={'id':_0x120291(0xb0),'type':e[_0x120291(0x90)][_0x120291(0xae)],'handler':(_0x9d48b9,_0x22b4fd)=>{const _0x39cdaf=_0x120291;var _0x32fdc2,_0xf9f47c;let _0x31b0bf=W(_0x9d48b9,_0x22b4fd==null?void 0x0:_0x22b4fd[_0x39cdaf(0x8f)]);if(!_0x31b0bf)return!0x1;let _0x25c971=(_0x32fdc2=_0x22b4fd==null?void 0x0:_0x22b4fd[_0x39cdaf(0x7f)])==null?(_0xf9f47c=G(_0x9d48b9))==null?void 0x0:_0xf9f47c[_0x39cdaf(0x81)]:_0x32fdc2;if(_0x25c971==null)return!0x1;let _0x5716f7=c({'cursorOffset':_0x25c971,'documentData':_0x31b0bf['previousDocumentData'],'paragraphStartIndex':_0x22b4fd==null?void 0x0:_0x22b4fd['paragraphStartIndex']});return _0x5716f7?J(_0x31b0bf[_0x39cdaf(0x72)],_0x31b0bf[_0x39cdaf(0x8f)],_0x31b0bf[_0x39cdaf(0xa3)],_0x5716f7[_0x39cdaf(0xc7)],_0x5716f7[_0x39cdaf(0x7f)]):!0x1;}};function W(_0x4d42c2,_0x38e39c){const _0x521e9c=_0x120291;let _0x1827d5=_0x4d42c2[_0x521e9c(0xa0)](e['IUniverInstanceService']),_0x216695=_0x38e39c?_0x1827d5[_0x521e9c(0xa7)](_0x38e39c):_0x1827d5[_0x521e9c(0xbf)](e[_0x521e9c(0xb1)][_0x521e9c(0xa1)]);return _0x216695?{'commandService':_0x4d42c2[_0x521e9c(0xa0)](e[_0x521e9c(0x9b)]),'previousDocumentData':_0x216695[_0x521e9c(0xcf)](),'unitId':_0x216695[_0x521e9c(0xb4)]()}:null;}function G(_0x4cb68d){const _0x2f7469=_0x120291;var _0x1979ab;return(_0x1979ab=_0x4cb68d[_0x2f7469(0xa0)](n[_0x2f7469(0x71)])[_0x2f7469(0xa2)]())==null?void 0x0:_0x1979ab[0x0];}function K(_0x2fab43,_0x57d452){const _0x155538=_0x120291;var _0x5edbd7,_0xf1b6ca,_0x20feb1,_0x3f7b09,_0x533065,_0x5d3ca9,_0x402072,_0x6f3c8b,_0x4489a1,_0x7961a9,_0x28d431,_0x39d73e,_0x2e18d4,_0xb931bb,_0x566eb4,_0x111a0b,_0x240929,_0x4b54c9;let _0x5ce8b5=e['JSONX'][_0x155538(0xc2)]();return[q(_0x5ce8b5,[_0x155538(0x94),'dataStream'],(_0x5edbd7=_0x2fab43[_0x155538(0x94)])==null?void 0x0:_0x5edbd7[_0x155538(0xb9)],(_0xf1b6ca=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0xf1b6ca[_0x155538(0xb9)]),q(_0x5ce8b5,[_0x155538(0x94),'paragraphs'],(_0x20feb1=_0x2fab43[_0x155538(0x94)])==null?void 0x0:_0x20feb1['paragraphs'],(_0x3f7b09=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0x3f7b09[_0x155538(0xc0)]),q(_0x5ce8b5,[_0x155538(0x94),_0x155538(0xa8)],(_0x533065=_0x2fab43['body'])==null?void 0x0:_0x533065[_0x155538(0xa8)],(_0x5d3ca9=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0x5d3ca9[_0x155538(0xa8)]),q(_0x5ce8b5,[_0x155538(0x94),_0x155538(0x78)],(_0x402072=_0x2fab43['body'])==null?void 0x0:_0x402072[_0x155538(0x78)],(_0x6f3c8b=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0x6f3c8b[_0x155538(0x78)]),q(_0x5ce8b5,[_0x155538(0x94),_0x155538(0x8d)],(_0x4489a1=_0x2fab43['body'])==null?void 0x0:_0x4489a1[_0x155538(0x8d)],(_0x7961a9=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0x7961a9[_0x155538(0x8d)]),q(_0x5ce8b5,[_0x155538(0x94),_0x155538(0xa4)],(_0x28d431=_0x2fab43[_0x155538(0x94)])==null?void 0x0:_0x28d431['customRanges'],(_0x39d73e=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0x39d73e[_0x155538(0xa4)]),q(_0x5ce8b5,[_0x155538(0x94),_0x155538(0xc4)],(_0x2e18d4=_0x2fab43[_0x155538(0x94)])==null?void 0x0:_0x2e18d4[_0x155538(0xc4)],(_0xb931bb=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0xb931bb['customDecorations']),q(_0x5ce8b5,[_0x155538(0x94),_0x155538(0x8e)],(_0x566eb4=_0x2fab43[_0x155538(0x94)])==null?void 0x0:_0x566eb4['tables'],(_0x111a0b=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0x111a0b[_0x155538(0x8e)]),q(_0x5ce8b5,[_0x155538(0x94),_0x155538(0xba)],(_0x240929=_0x2fab43['body'])==null?void 0x0:_0x240929[_0x155538(0xba)],(_0x4b54c9=_0x57d452[_0x155538(0x94)])==null?void 0x0:_0x4b54c9['blockRanges'])][_0x155538(0x77)](Boolean)[_0x155538(0xa5)]((_0x2ec124,_0x59aec7)=>e[_0x155538(0x8c)][_0x155538(0xc9)](_0x2ec124,_0x59aec7),null);}function q(_0x3458a3,_0x4f8d08,_0x34bba2,_0x96dab8){const _0x1ac3e8=_0x120291;return e['Tools']['diffValue'](_0x34bba2,_0x96dab8)?null:_0x3458a3[_0x1ac3e8(0x76)](_0x4f8d08,_0x34bba2,_0x96dab8);}function J(_0x1b7503,_0x2b889d,_0x49d05a,_0x109c0d,_0x7de255){const _0x345322=_0x120291;let _0x18dc7c=K(_0x49d05a,_0x109c0d);return _0x18dc7c?!!_0x1b7503['syncExecuteCommand'](n[_0x345322(0x97)]['id'],{'unitId':_0x2b889d,'actions':_0x18dc7c,'textRanges':[{'startOffset':_0x7de255,'endOffset':_0x7de255,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Y=class{constructor(_0x170789){this['_runtime']=_0x170789;}[_0x120291(0xd0)](){const _0x24a8bc=_0x120291;return this[_0x24a8bc(0x7d)][_0x24a8bc(0xd8)];}['getRange'](){const _0x3497b2=_0x120291;let _0xdd8494=this[_0x3497b2(0x9c)]();return _0xdd8494?{'blockId':_0xdd8494[_0x3497b2(0xd8)],'endIndex':_0xdd8494[_0x3497b2(0x82)],'startIndex':_0xdd8494[_0x3497b2(0xa6)]}:null;}[_0x120291(0x9a)](){const _0xb93cf2=_0x120291;var _0xe7aea;let _0x1aa076=this[_0xb93cf2(0x9c)](),_0x5b2e11=(_0xe7aea=this[_0xb93cf2(0x7d)]['getDocumentData']()[_0xb93cf2(0x94)])==null?void 0x0:_0xe7aea['dataStream'];return!_0x1aa076||!_0x5b2e11?'':X(_0x5b2e11[_0xb93cf2(0x7c)](_0x1aa076[_0xb93cf2(0xa6)]+0x1,_0x1aa076[_0xb93cf2(0x82)]));}[_0x120291(0xcd)](){const _0x1e1da3=_0x120291;let _0x1770d4=this[_0x1e1da3(0xce)]();return _0x1770d4?{..._0x1770d4,'text':this[_0x1e1da3(0x9a)](),'type':_0x1e1da3(0xcc)}:null;}[_0x120291(0x73)](_0x4889a9){const _0x4a6770=_0x120291;var _0x1496bd;return!!((_0x1496bd=this[_0x4a6770(0x7d)]['commandService'])!=null&&_0x1496bd[_0x4a6770(0xbd)](H['id'],{'cursorOffset':_0x4889a9,'unitId':this[_0x4a6770(0x7d)][_0x4a6770(0x8f)]}));}[_0x120291(0x9d)](_0x1ba774={}){const _0x5e94ba=_0x120291;var _0x3f3aaa;return!!((_0x3f3aaa=this['_runtime'][_0x5e94ba(0x72)])!=null&&_0x3f3aaa[_0x5e94ba(0xbd)](U['id'],{..._0x1ba774,'unitId':this['_runtime'][_0x5e94ba(0x8f)]}));}[_0x120291(0x9c)](){const _0x24c21f=_0x120291;var _0x3a479c;return(_0x3a479c=this[_0x24c21f(0x7d)]['getDocumentData']()['body'])==null||(_0x3a479c=_0x3a479c[_0x24c21f(0xba)])==null?void 0x0:_0x3a479c[_0x24c21f(0xc6)](_0x286e3e=>_0x286e3e['blockId']===this['_runtime'][_0x24c21f(0xd8)]&&_0x286e3e['blockType']===_0x24c21f(0xcc));}};function X(_0x4f84cf){const _0x2d0c83=_0x120291;return Array[_0x2d0c83(0x8a)](_0x4f84cf)[_0x2d0c83(0xad)](_0x25ef87=>_0x25ef87===e[_0x2d0c83(0x87)][_0x2d0c83(0xab)]?'\x0a':_0x25ef87)[_0x2d0c83(0x77)](_0x2e9ad4=>_0x2e9ad4!==e[_0x2d0c83(0x87)]['BLOCK_START']&&_0x2e9ad4!==e[_0x2d0c83(0x87)][_0x2d0c83(0xc8)]&&_0x2e9ad4!==e[_0x2d0c83(0x87)]['SECTION_BREAK'])['join']('')['replace'](/\n$/,'');}Object[_0x120291(0x70)](t[_0x120291(0x95)][_0x120291(0x86)],{'getQuotes'(){const _0x5c7f16=_0x120291;var _0x62f32b,_0x424ffd;return(_0x62f32b=(_0x424ffd=this[_0x5c7f16(0xcf)]()[_0x5c7f16(0x94)])==null||(_0x424ffd=_0x424ffd[_0x5c7f16(0xba)])==null?void 0x0:_0x424ffd[_0x5c7f16(0x77)](_0x364fdf=>_0x364fdf[_0x5c7f16(0xc1)]===_0x5c7f16(0xcc))['map'](_0xa80d20=>Z(this,_0xa80d20[_0x5c7f16(0xd8)])))==null?[]:_0x62f32b;},'getQuote'(_0x4a772c){const _0x18fc48=_0x120291;var _0x12f44c;return!((_0x12f44c=this['getSnapshot']()['body'])==null||(_0x12f44c=_0x12f44c[_0x18fc48(0xba)])==null)&&_0x12f44c[_0x18fc48(0x83)](_0x5c1937=>_0x5c1937['blockId']===_0x4a772c&&_0x5c1937[_0x18fc48(0xc1)]===_0x18fc48(0xcc))?Z(this,_0x4a772c):null;},'getQuoteAt'(_0x5ddce0){const _0x4d7e4d=_0x120291;var _0x5827ef;let _0x4a0ddf=(_0x5827ef=this[_0x4d7e4d(0xcf)]()[_0x4d7e4d(0x94)])==null||(_0x5827ef=_0x5827ef[_0x4d7e4d(0xba)])==null||(_0x5827ef=_0x5827ef[_0x4d7e4d(0xc6)](_0x410c64=>_0x410c64[_0x4d7e4d(0xc1)]===_0x4d7e4d(0xcc)&&_0x410c64['startIndex']<=_0x5ddce0&&_0x5ddce0<=_0x410c64[_0x4d7e4d(0x82)]))==null?void 0x0:_0x5827ef['blockId'];return _0x4a0ddf?Z(this,_0x4a0ddf):null;},'findQuoteByText'(_0x12446f){var _0x52dc5d;return(_0x52dc5d=this['findQuotes'](_0x12446f)[0x0])==null?null:_0x52dc5d;},'findQuotes'(_0x276291){const _0x560d20=_0x120291;let _0x4c563d=typeof _0x276291==_0x560d20(0x6f)?{'text':_0x276291}:_0x276291;return this[_0x560d20(0x74)]()[_0x560d20(0x77)](_0x29173f=>!(_0x4c563d[_0x560d20(0xd8)]&&_0x29173f[_0x560d20(0xd0)]()!==_0x4c563d['blockId']||_0x4c563d[_0x560d20(0x84)]&&!_0x29173f[_0x560d20(0x9a)]()[_0x560d20(0xcb)](_0x4c563d[_0x560d20(0x84)])));},'insertQuote'(_0x1da439={}){const _0x485d46=_0x120291;var _0x1a5f65,_0x399b12;let _0x43fd5a=(_0x1a5f65=_0x1da439[_0x485d46(0xd8)])==null?_0x485d46(0x75)+Date[_0x485d46(0xac)]():_0x1a5f65;return(_0x399b12=Q(this))!=null&&_0x399b12[_0x485d46(0xbd)](V['id'],{..._0x1da439,'blockId':_0x43fd5a,'unitId':this['getId']()})?Z(this,_0x43fd5a):null;},'exitQuote'(_0x346747){var _0x58718e;return!!((_0x58718e=Q(this))!=null&&_0x58718e['syncExecuteCommand'](H['id'],{'cursorOffset':_0x346747,'unitId':this['getId']()}));},'cancelEmptyQuoteParagraph'(_0x1e6432={}){const _0xedded5=_0x120291;var _0x27d3be;return!!((_0x27d3be=Q(this))!=null&&_0x27d3be[_0xedded5(0xbd)](U['id'],{..._0x1e6432,'unitId':this[_0xedded5(0xd0)]()}));}});function Z(_0x2c5cf7,_0x22aec8){const _0x3a1afa=_0x120291;return new Y({'blockId':_0x22aec8,'commandService':Q(_0x2c5cf7),'getDocumentData':()=>_0x2c5cf7[_0x3a1afa(0xcf)](),'unitId':_0x2c5cf7[_0x3a1afa(0xd0)]()});}function Q(_0xe4cfe8){const _0x4a6e82=_0x120291;var _0x2c8f2e,_0x3b82bc;let _0x1d8034=_0xe4cfe8;return(_0x2c8f2e=_0x1d8034[_0x4a6e82(0xaa)])==null?(_0x3b82bc=_0x1d8034[_0x4a6e82(0xc3)])==null?void 0x0:_0x3b82bc[_0x4a6e82(0xa0)](e['ICommandService']):_0x2c8f2e;}exports[_0x120291(0xb2)]=Y;function _0x1290(){const _0x2b46d1=['15387LvwLKl','startOffset','endIndex','some','text','Document\x20body\x20is\x20required','prototype','DataStreamTreeTokenType','1113JoJLJF','55975aVxvae','from','textStyle','JSONX','customBlocks','tables','unitId','CommandType','spaceAbove','45204rUSCqz','indentStart','body','FDocument','348krusno','RichTextEditingMutation','sort','SECTION_BREAK','getText','ICommandService','_getBlockRange','cancelEmptyParagraph','deepClone','min','get','UNIVER_DOC','getTextRanges','previousDocumentData','customRanges','reduce','startIndex','getUniverDocInstance','sectionBreaks','documentData','_commandService','PARAGRAPH','now','map','COMMAND','every','docs-quote.command.cancel-empty-paragraph','UniverInstanceType','FDocsQuote','generateRandomId','getUnitId','spaceBelow','indexOf','18tfaTjM','3175406evImhg','dataStream','blockRanges','defineProperty','toStringTag','syncExecuteCommand','1619008TMmZMq','getCurrentUnitOfType','paragraphs','blockType','getInstance','_injector','customDecorations','6240280KThxWj','find','nextDocumentData','BLOCK_END','compose','endOffset','includes','quote','describe','getRange','getSnapshot','getId','length','14224000oGMKAb','Tools','paragraphStyle','endTokenOffset','docs-quote.command.insert','paragraph','blockId','string','assign','DocSelectionManagerService','commandService','exit','getQuotes','docs-quote-','replaceOp','filter','textRuns','docs-quote.command.exit','max','BLOCK_START','slice','_runtime','forEach','cursorOffset'];_0x1290=function(){return _0x2b46d1;};return _0x1290();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4b42c9=_0x346b;(function(_0x274894,_0x31d2b9){const _0x3aeb54=_0x346b,_0x217fe9=_0x274894();while(!![]){try{const _0x3828a1=parseInt(_0x3aeb54(0x14c))/0x1*(-parseInt(_0x3aeb54(0x155))/0x2)+parseInt(_0x3aeb54(0x1ad))/0x3*(-parseInt(_0x3aeb54(0x16d))/0x4)+-parseInt(_0x3aeb54(0x194))/0x5*(parseInt(_0x3aeb54(0x18f))/0x6)+parseInt(_0x3aeb54(0x1aa))/0x7+-parseInt(_0x3aeb54(0x160))/0x8*(parseInt(_0x3aeb54(0x18b))/0x9)+parseInt(_0x3aeb54(0x153))/0xa*(-parseInt(_0x3aeb54(0x15c))/0xb)+parseInt(_0x3aeb54(0x159))/0xc;if(_0x3828a1===_0x31d2b9)break;else _0x217fe9['push'](_0x217fe9['shift']());}catch(_0x3d6af7){_0x217fe9['push'](_0x217fe9['shift']());}}}(_0x32b0,0x9f343),Object['defineProperty'](exports,Symbol[_0x4b42c9(0x178)],{'value':_0x4b42c9(0x13a)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs/docs-ui'),r=require('@univerjs-pro/license');const i='DOCS_QUOTE_PLUGIN',a=_0x4b42c9(0x19e);function o(_0x40b27a){const _0x3a1ef3=_0x4b42c9;var _0x15ea12,_0x118d3c,_0x5eee30;let _0x549ba0=S(_0x40b27a[_0x3a1ef3(0x12e)]),_0x49fc4f=C(_0x549ba0),_0x58f1c9=s(_0x40b27a[_0x3a1ef3(0x16e)],_0x40b27a['endOffset']),_0x31e11c=_0x58f1c9?(_0x15ea12=_0x49fc4f['blockRanges'])==null?void 0x0:_0x15ea12['find'](_0x4fc45a=>_0x4fc45a['startIndex']===_0x58f1c9[_0x3a1ef3(0x16e)]&&_0x4fc45a[_0x3a1ef3(0x151)]+0x1===_0x58f1c9[_0x3a1ef3(0x190)]):void 0x0,{startOffset:_0x1941b7,endOffset:_0x5db4de}=_0x31e11c?_0x58f1c9:ee(_0x49fc4f,_0x40b27a['startOffset'],_0x40b27a[_0x3a1ef3(0x190)]),_0xe55312=ne(_0x49fc4f,_0x1941b7,_0x5db4de),_0x1aee7b=(_0x118d3c=_0x31e11c==null?void 0x0:_0x31e11c[_0x3a1ef3(0x17b)])==null?_0x40b27a['blockId']:_0x118d3c;if(_0x31e11c)return _0x31e11c['blockType']=a,c(_0x49fc4f,_0x1941b7,_0x5db4de),g(_0x49fc4f,_0x1941b7,_0x5db4de,_0xe55312),{'nextDocumentData':_0x549ba0,'cursorOffset':_0x1941b7+0x1};if(_0x1941b7===_0x5db4de){let _0x1ac7fe=''+e[_0x3a1ef3(0x198)][_0x3a1ef3(0x1af)]+e[_0x3a1ef3(0x198)][_0x3a1ef3(0x131)]+e['DataStreamTreeTokenType'][_0x3a1ef3(0x147)];return O(_0x49fc4f,_0x1941b7,_0x1ac7fe,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':h(!0x0,!0x0,_0xe55312)}],'blockRanges':[{'blockId':_0x1aee7b,'blockType':a,'startIndex':0x0,'endIndex':_0x1ac7fe[_0x3a1ef3(0x177)]-0x1}]}),{'nextDocumentData':_0x549ba0,'cursorOffset':_0x1941b7+0x1};}return O(_0x49fc4f,_0x5db4de,e[_0x3a1ef3(0x198)][_0x3a1ef3(0x147)]),O(_0x49fc4f,_0x1941b7,e['DataStreamTreeTokenType'][_0x3a1ef3(0x1af)]),g(_0x49fc4f,_0x1941b7,_0x5db4de+0x1,_0xe55312),_0x49fc4f[_0x3a1ef3(0x174)]=[...(_0x5eee30=_0x49fc4f[_0x3a1ef3(0x174)])==null?[]:_0x5eee30,{'blockId':_0x1aee7b,'blockType':a,'startIndex':_0x1941b7,'endIndex':_0x5db4de+0x1}][_0x3a1ef3(0x1a7)]((_0x6459a4,_0x3d469b)=>_0x6459a4[_0x3a1ef3(0x168)]-_0x3d469b['startIndex']),{'nextDocumentData':_0x549ba0,'cursorOffset':_0x1941b7+0x1};}function s(_0x4fa6b4,_0x578c38){const _0x1b2da5=_0x4b42c9;return _0x4fa6b4==null||_0x578c38==null||_0x4fa6b4===_0x578c38?null:{'startOffset':Math[_0x1b2da5(0x138)](_0x4fa6b4,_0x578c38),'endOffset':Math[_0x1b2da5(0x16f)](_0x4fa6b4,_0x578c38)};}function c(_0x4ca211,_0x3d9a9c,_0x4fdf77){const _0x2893aa=_0x4b42c9;var _0x34f119;((_0x34f119=_0x4ca211[_0x2893aa(0x19f)])==null?[]:_0x34f119)['filter'](_0x1da386=>_0x1da386[_0x2893aa(0x168)]>_0x3d9a9c&&_0x1da386['startIndex']<_0x4fdf77)[_0x2893aa(0x1a0)](_0x29a358=>{const _0x349a19=_0x2893aa;var _0x1470f4;let _0x50b2d2={...(_0x1470f4=_0x29a358[_0x349a19(0x1ac)])==null?{}:_0x1470f4};delete _0x50b2d2[_0x349a19(0x14d)],delete _0x50b2d2['spaceAbove'],delete _0x50b2d2[_0x349a19(0x12f)],delete _0x50b2d2[_0x349a19(0x181)],_0x29a358[_0x349a19(0x1ac)]=_0x50b2d2;});}function l(_0x47ff9a){const _0xa6ccbd=_0x4b42c9;var _0x3e3943,_0x562023;let _0x56def6=S(_0x47ff9a[_0xa6ccbd(0x12e)]),_0x52c6a3=C(_0x56def6),_0x513fcc=m(_0x52c6a3,_0x47ff9a['cursorOffset']);if(!_0x513fcc)return null;let _0x46470e=v(_0x52c6a3,_0x513fcc),_0x438fd2=_0x46470e[_0x46470e[_0xa6ccbd(0x177)]-0x1];if(!_0x438fd2||!y(_0x52c6a3,_0x513fcc,_0x438fd2)||_0x47ff9a['cursorOffset']<_0x438fd2[_0xa6ccbd(0x168)])return null;let _0x38dfa5=E(_0x52c6a3,_0x513fcc,_0x438fd2);if(_0x38dfa5>=_0x513fcc[_0xa6ccbd(0x151)])return null;_0x52c6a3[_0xa6ccbd(0x143)]=[_0x52c6a3[_0xa6ccbd(0x143)]['slice'](0x0,_0x38dfa5),e['DataStreamTreeTokenType'][_0xa6ccbd(0x147)],_0x52c6a3['dataStream'][_0xa6ccbd(0x1a8)](_0x38dfa5,_0x513fcc[_0xa6ccbd(0x151)]),_0x52c6a3[_0xa6ccbd(0x143)][_0xa6ccbd(0x1a8)](_0x513fcc['endIndex']+0x1)]['join'](''),F(_0x52c6a3[_0xa6ccbd(0x19f)],_0x38dfa5,_0x513fcc[_0xa6ccbd(0x151)],0x1),F(_0x52c6a3[_0xa6ccbd(0x175)],_0x38dfa5,_0x513fcc[_0xa6ccbd(0x151)],0x1),F(_0x52c6a3[_0xa6ccbd(0x176)],_0x38dfa5,_0x513fcc[_0xa6ccbd(0x151)],0x1),oe(_0x52c6a3[_0xa6ccbd(0x17e)],_0x38dfa5,_0x513fcc[_0xa6ccbd(0x151)],0x1),I(_0x52c6a3[_0xa6ccbd(0x186)],_0x38dfa5,_0x513fcc['endIndex'],0x1),I(_0x52c6a3[_0xa6ccbd(0x16b)],_0x38dfa5,_0x513fcc[_0xa6ccbd(0x151)],0x1),I(_0x52c6a3[_0xa6ccbd(0x180)],_0x38dfa5,_0x513fcc[_0xa6ccbd(0x151)],0x1),(_0x3e3943=_0x52c6a3['blockRanges'])==null||_0x3e3943[_0xa6ccbd(0x1a0)](_0x309186=>{const _0x949b64=_0xa6ccbd;_0x309186===_0x513fcc||_0x309186['blockId']===_0x513fcc[_0x949b64(0x17b)]?_0x309186[_0x949b64(0x151)]=_0x38dfa5:_0x309186['startIndex']>=_0x38dfa5&&_0x309186[_0x949b64(0x168)]<_0x513fcc['endIndex']&&(_0x309186['startIndex']+=0x1,_0x309186[_0x949b64(0x151)]+=0x1);});let _0x2ed4af=v(_0x52c6a3,{..._0x513fcc,'endIndex':_0x38dfa5});_0x2ed4af[_0xa6ccbd(0x1a0)]((_0x5691ac,_0x99ff8e)=>{const _0x870b56=_0xa6ccbd;var _0x467fd2;_0x5691ac['paragraphStyle']={...(_0x467fd2=_0x5691ac[_0x870b56(0x1ac)])==null?{}:_0x467fd2,...h(_0x99ff8e===0x0,_0x99ff8e===_0x2ed4af[_0x870b56(0x177)]-0x1)};});let _0x56d2f6=(_0x562023=_0x52c6a3['paragraphs'])==null?void 0x0:_0x562023[_0xa6ccbd(0x1ae)](_0x488604=>_0x488604[_0xa6ccbd(0x168)]===_0x38dfa5+0x1);return _0x56d2f6&&(_0x56d2f6[_0xa6ccbd(0x1ac)]=_(_0x56d2f6[_0xa6ccbd(0x1ac)])),{'nextDocumentData':_0x56def6,'cursorOffset':_0x38dfa5+0x1};}function u(_0x2ce0d2){const _0x50df27=_0x4b42c9;let _0x163a6a=S(_0x2ce0d2[_0x50df27(0x12e)]),_0x5b6d08=C(_0x163a6a),_0x1b23ed=m(_0x5b6d08,_0x2ce0d2[_0x50df27(0x1a6)]);return _0x1b23ed&&(d(_0x163a6a,_0x5b6d08,_0x1b23ed,_0x2ce0d2[_0x50df27(0x1a6)],_0x2ce0d2['paragraphStartIndex'])||f(_0x163a6a,_0x5b6d08,_0x1b23ed,_0x2ce0d2[_0x50df27(0x1a6)]))||null;}function d(_0x1524c1,_0x594a59,_0x51b28d,_0x366b0c,_0x40e423){const _0x49d1de=_0x4b42c9;let _0x83cc7c=re(_0x594a59,_0x51b28d,_0x366b0c,_0x40e423);if(!_0x83cc7c)return null;let _0x5e6cfe=_0x83cc7c[_0x49d1de(0x188)]-0x1;return k(_0x594a59,_0x83cc7c[_0x49d1de(0x156)][_0x49d1de(0x168)],_0x83cc7c[_0x49d1de(0x156)][_0x49d1de(0x168)]+0x1),{'nextDocumentData':_0x1524c1,'cursorOffset':_0x5e6cfe};}function f(_0x11e547,_0x515211,_0x5aae54,_0x4506b7){const _0xd50650=_0x4b42c9;if(_0x4506b7!==_0x5aae54['startIndex']+0x1)return null;let _0x3d62d7=v(_0x515211,_0x5aae54),_0x9b9b49=_0x3d62d7[0x0];return!_0x9b9b49||E(_0x515211,_0x5aae54,_0x9b9b49)!==_0x4506b7?null:_0x3d62d7[_0xd50650(0x177)]===0x1?b(_0x11e547,_0x515211,_0x5aae54,_0x9b9b49):x(_0x11e547,_0x515211,_0x5aae54,_0x9b9b49);}function p(_0x19c420,_0x548fac){const _0x515134=_0x4b42c9;var _0x560ec0;return _0x19c420==null||(_0x560ec0=_0x19c420[_0x515134(0x174)])==null?void 0x0:_0x560ec0[_0x515134(0x1ae)](_0x1e7dab=>_0x1e7dab[_0x515134(0x193)]===_0x515134(0x19e)&&_0x1e7dab[_0x515134(0x168)]<=_0x548fac&&_0x548fac<=_0x1e7dab[_0x515134(0x151)]);}function m(_0x47fffe,_0x2403b7){const _0x358853=_0x4b42c9;var _0x23e687;return(_0x23e687=_0x47fffe[_0x358853(0x174)])==null?void 0x0:_0x23e687[_0x358853(0x1ae)](_0x2238fb=>{const _0x413468=_0x358853;let _0x2144b0=D(_0x47fffe,_0x2238fb);return _0x2238fb['blockType']===_0x413468(0x19e)&&_0x2238fb[_0x413468(0x168)]<=_0x2403b7&&_0x2403b7<=_0x2144b0+0x2;});}function h(_0x223836,_0x257bcf,_0x212432=!0x1){return{'indentStart':{'v':0x16},..._0x223836&&_0x212432?{'spaceAbove':{'v':0x8}}:{}};}function g(_0x183305,_0x551f89,_0x42ebb4,_0x4ec902=!0x1){const _0x4bc2b5=_0x4b42c9;var _0xa63b50;let _0x2303bc=((_0xa63b50=_0x183305[_0x4bc2b5(0x19f)])==null?[]:_0xa63b50)['filter'](_0x250793=>_0x250793[_0x4bc2b5(0x168)]>_0x551f89&&_0x250793[_0x4bc2b5(0x168)]<_0x42ebb4);_0x2303bc[_0x4bc2b5(0x1a0)]((_0x40c177,_0x4aefa9)=>{const _0x24110c=_0x4bc2b5;var _0x51e8f0;_0x40c177[_0x24110c(0x1ac)]={...(_0x51e8f0=_0x40c177[_0x24110c(0x1ac)])==null?{}:_0x51e8f0,...h(_0x4aefa9===0x0,_0x4aefa9===_0x2303bc['length']-0x1,_0x4ec902)};});}function _(_0x5b47bf){const _0x123aec=_0x4b42c9;let _0x2d32f6={..._0x5b47bf==null?{}:_0x5b47bf};return delete _0x2d32f6[_0x123aec(0x192)],delete _0x2d32f6['spaceAbove'],delete _0x2d32f6[_0x123aec(0x12f)],_0x2d32f6;}function v(_0x364ae7,_0x48b2e4){const _0x50a746=_0x4b42c9;var _0x25e2ec;let _0x54438f=D(_0x364ae7,_0x48b2e4);return((_0x25e2ec=_0x364ae7[_0x50a746(0x19f)])==null?[]:_0x25e2ec)[_0x50a746(0x17f)](_0x1271cc=>_0x1271cc['startIndex']>_0x48b2e4[_0x50a746(0x168)]&&_0x1271cc[_0x50a746(0x168)]<_0x54438f);}function y(_0x4fe98a,_0x11e545,_0x49c67c){const _0x8ad376=_0x4b42c9;let _0x1bcfd7=E(_0x4fe98a,_0x11e545,_0x49c67c),_0x25b72c=_0x4fe98a[_0x8ad376(0x143)]['slice'](_0x1bcfd7,_0x49c67c[_0x8ad376(0x168)]);return Array[_0x8ad376(0x14a)](_0x25b72c)['every'](_0x366c96=>_0x366c96===e[_0x8ad376(0x198)]['BLOCK_START']||_0x366c96===e[_0x8ad376(0x198)][_0x8ad376(0x147)]);}function b(_0x34a205,_0x451ef7,_0x33b0c9,_0x38f9c3){const _0x313324=_0x4b42c9;var _0x2e0994,_0x3c8dcf;let _0x4131a9=_0x33b0c9['startIndex'];k(_0x451ef7,_0x33b0c9[_0x313324(0x151)],_0x33b0c9[_0x313324(0x151)]+0x1),k(_0x451ef7,_0x33b0c9[_0x313324(0x168)],_0x33b0c9[_0x313324(0x168)]+0x1),_0x451ef7[_0x313324(0x174)]=(_0x2e0994=_0x451ef7['blockRanges'])==null?void 0x0:_0x2e0994['filter'](_0x3e51d9=>_0x3e51d9['blockId']!==_0x33b0c9['blockId']);let _0x3841f8=(_0x3c8dcf=_0x451ef7[_0x313324(0x19f)])==null?void 0x0:_0x3c8dcf[_0x313324(0x1ae)](_0x43df3d=>_0x43df3d[_0x313324(0x168)]===_0x38f9c3[_0x313324(0x168)]-0x1);return _0x3841f8&&(_0x3841f8[_0x313324(0x1ac)]=_(_0x3841f8[_0x313324(0x1ac)])),{'nextDocumentData':_0x34a205,'cursorOffset':_0x4131a9};}function x(_0x428de0,_0x11153d,_0x20497f,_0x1fe0a8){const _0x158d02=_0x4b42c9;var _0x18bf06,_0x13f458;let _0x233c6d=_0x1fe0a8[_0x158d02(0x168)],_0x48f986=_0x20497f[_0x158d02(0x168)];O(_0x11153d,_0x1fe0a8[_0x158d02(0x168)]+0x1,e[_0x158d02(0x198)][_0x158d02(0x1af)]),k(_0x11153d,_0x20497f[_0x158d02(0x168)],_0x20497f[_0x158d02(0x168)]+0x1);let _0x1bfa76=(_0x18bf06=_0x11153d[_0x158d02(0x19f)])==null?void 0x0:_0x18bf06['find'](_0x5f5746=>_0x5f5746['startIndex']===_0x233c6d-0x1),_0x2b91dc=(_0x13f458=_0x11153d['blockRanges'])==null?void 0x0:_0x13f458[_0x158d02(0x1ae)](_0x214d93=>_0x214d93[_0x158d02(0x17b)]===_0x20497f[_0x158d02(0x17b)]);return _0x1bfa76&&(_0x1bfa76[_0x158d02(0x1ac)]=_(_0x1bfa76[_0x158d02(0x1ac)]),_0x2b91dc&&(_0x2b91dc[_0x158d02(0x168)]=_0x1bfa76['startIndex']+0x1)),_0x2b91dc&&g(_0x11153d,_0x2b91dc[_0x158d02(0x168)],_0x2b91dc[_0x158d02(0x151)]),{'nextDocumentData':_0x428de0,'cursorOffset':_0x48f986};}function S(_0x12768e){const _0x5d2273=_0x4b42c9;return e[_0x5d2273(0x16c)]['deepClone'](_0x12768e);}function C(_0x25f8d6){const _0x4ee565=_0x4b42c9;if(!_0x25f8d6[_0x4ee565(0x1a3)])throw Error(_0x4ee565(0x196));return _0x25f8d6[_0x4ee565(0x1a3)];}function ee(_0x237e95,_0x535c9c,_0x2723b3){const _0x1c2708=_0x4b42c9;if(_0x535c9c==null||_0x2723b3==null){let _0x23efe3=te(_0x237e95);return{'startOffset':_0x23efe3,'endOffset':_0x23efe3};}let _0x55dcad=Math[_0x1c2708(0x138)](_0x535c9c,_0x2723b3),_0x2897b2=Math['max'](_0x535c9c,_0x2723b3);return _0x55dcad===_0x2897b2?{'startOffset':_0x55dcad,'endOffset':_0x55dcad}:w(_0x237e95,_0x55dcad,_0x2897b2);}function te(_0x330016){const _0x556a0a=_0x4b42c9;return _0x330016['dataStream'][_0x556a0a(0x163)](e[_0x556a0a(0x198)][_0x556a0a(0x133)])?Math[_0x556a0a(0x16f)](0x0,_0x330016[_0x556a0a(0x143)][_0x556a0a(0x177)]-0x1):_0x330016[_0x556a0a(0x143)][_0x556a0a(0x177)];}function _0x346b(_0x3d2a97,_0x4f9596){_0x3d2a97=_0x3d2a97-0x12e;const _0x32b0e5=_0x32b0();let _0x346bfb=_0x32b0e5[_0x3d2a97];return _0x346bfb;}function ne(_0x446dd0,_0x18a73a,_0x1984cc){const _0x2875db=_0x4b42c9;var _0x13c728;let _0x47ec8e=Math[_0x2875db(0x138)](_0x18a73a,_0x1984cc),_0x406a=Math[_0x2875db(0x16f)](_0x18a73a,_0x1984cc);return!!((_0x13c728=_0x446dd0[_0x2875db(0x186)])!=null&&_0x13c728[_0x2875db(0x1b1)](_0x56104f=>_0x47ec8e>_0x56104f['startIndex']&&_0x47ec8e<_0x56104f['endIndex']||_0x406a>_0x56104f['startIndex']&&_0x406a<_0x56104f[_0x2875db(0x151)]||_0x47ec8e<=_0x56104f['startIndex']&&_0x406a>=_0x56104f['endIndex']));}function w(_0x3f3fd1,_0x3cda0f,_0x209751){const _0x40ce88=_0x4b42c9;var _0x44a250,_0x1f51db;let _0x19edb8=[...(_0x44a250=_0x3f3fd1[_0x40ce88(0x19f)])==null?[]:_0x44a250]['sort']((_0x2668cb,_0xf27076)=>_0x2668cb[_0x40ce88(0x168)]-_0xf27076[_0x40ce88(0x168)]),_0x1e8f3e=_0x19edb8[_0x40ce88(0x1ae)]((_0x1261fd,_0x3b7271)=>(_0x3b7271===0x0?0x0:_0x19edb8[_0x3b7271-0x1]['startIndex']+0x1)<=_0x3cda0f&&_0x3cda0f<=_0x1261fd[_0x40ce88(0x168)]),_0x463ac8=(_0x1f51db=_0x19edb8[_0x40ce88(0x1ae)](_0x313ba3=>_0x313ba3[_0x40ce88(0x168)]>=_0x209751-0x1))==null?_0x19edb8[_0x19edb8['length']-0x1]:_0x1f51db;return{'startOffset':_0x1e8f3e?T(_0x19edb8,_0x1e8f3e):_0x3cda0f,'endOffset':_0x463ac8?_0x463ac8[_0x40ce88(0x168)]+0x1:_0x209751};}function T(_0x42d448,_0x2e1081){const _0x2f928b=_0x4b42c9;let _0x8224c9=_0x42d448[_0x2f928b(0x18c)](_0x2e1081);return _0x8224c9>0x0?_0x42d448[_0x8224c9-0x1][_0x2f928b(0x168)]+0x1:0x0;}function E(_0x51dafb,_0x3a4cf1,_0x494dd1){const _0x30d590=_0x4b42c9;var _0x250078;return Math[_0x30d590(0x16f)](T((_0x250078=_0x51dafb[_0x30d590(0x19f)])==null?[]:_0x250078,_0x494dd1),_0x3a4cf1[_0x30d590(0x168)]+0x1);}function D(_0x180ff5,_0x2650e3){const _0x5a4946=_0x4b42c9;return _0x180ff5['dataStream'][_0x2650e3['endIndex']]===e[_0x5a4946(0x198)]['BLOCK_END']?_0x2650e3['endIndex']:_0x180ff5[_0x5a4946(0x143)][_0x2650e3[_0x5a4946(0x151)]+0x1]===e[_0x5a4946(0x198)]['BLOCK_END']?_0x2650e3[_0x5a4946(0x151)]+0x1:_0x2650e3['endIndex'];}function re(_0x5b5033,_0xb0cb7d,_0x3cd1fc,_0x9e000c){const _0x382ea9=_0x4b42c9;var _0x4dfa6d,_0x4a4d53;let _0x2f47a7=D(_0x5b5033,_0xb0cb7d),_0x8e3d35=((_0x4dfa6d=_0x5b5033[_0x382ea9(0x19f)])==null?[]:_0x4dfa6d)[_0x382ea9(0x1ae)](_0x413a0e=>_0x413a0e[_0x382ea9(0x168)]===_0x2f47a7+0x1);if(!_0x8e3d35||_0x9e000c!=null&&_0x8e3d35['startIndex']!==_0x9e000c||_0x3cd1fc<_0x2f47a7||_0x3cd1fc>_0x8e3d35[_0x382ea9(0x168)]+0x1||_0x5b5033[_0x382ea9(0x143)][_0x8e3d35[_0x382ea9(0x168)]]!==e['DataStreamTreeTokenType'][_0x382ea9(0x131)])return null;let _0x5464cc=T((_0x4a4d53=_0x5b5033[_0x382ea9(0x19f)])==null?[]:_0x4a4d53,_0x8e3d35),_0x3d2dba=_0x5b5033[_0x382ea9(0x143)][_0x382ea9(0x1a8)](_0x5464cc,_0x8e3d35[_0x382ea9(0x168)]);return Array[_0x382ea9(0x14a)](_0x3d2dba)[_0x382ea9(0x149)](_0x201578=>_0x201578===e[_0x382ea9(0x198)][_0x382ea9(0x147)])?{'paragraph':_0x8e3d35,'endTokenOffset':_0x2f47a7}:null;}function O(_0x32f8aa,_0x9faf1c,_0x4aadac,_0x2f7101={}){const _0x454888=_0x4b42c9;var _0x2b8369,_0x7946ca;if(_0x4aadac){if(_0x32f8aa[_0x454888(0x143)]=''+_0x32f8aa[_0x454888(0x143)][_0x454888(0x1a8)](0x0,_0x9faf1c)+_0x4aadac+_0x32f8aa['dataStream'][_0x454888(0x1a8)](_0x9faf1c),ie(_0x32f8aa,_0x9faf1c,_0x4aadac[_0x454888(0x177)]),(_0x2b8369=_0x2f7101[_0x454888(0x19f)])!=null&&_0x2b8369[_0x454888(0x177)]){var _0x135db9;_0x32f8aa['paragraphs']=[...(_0x135db9=_0x32f8aa['paragraphs'])==null?[]:_0x135db9,..._0x2f7101[_0x454888(0x19f)][_0x454888(0x141)](_0x628cd0=>({..._0x628cd0,'startIndex':_0x628cd0[_0x454888(0x168)]+_0x9faf1c}))]['sort']((_0x55f305,_0x4e7452)=>_0x55f305[_0x454888(0x168)]-_0x4e7452[_0x454888(0x168)]);}if((_0x7946ca=_0x2f7101[_0x454888(0x174)])!=null&&_0x7946ca['length']){var _0x30b5e7;_0x32f8aa[_0x454888(0x174)]=[...(_0x30b5e7=_0x32f8aa[_0x454888(0x174)])==null?[]:_0x30b5e7,..._0x2f7101['blockRanges'][_0x454888(0x141)](_0x340875=>({..._0x340875,'startIndex':_0x340875['startIndex']+_0x9faf1c,'endIndex':_0x340875['endIndex']+_0x9faf1c}))][_0x454888(0x1a7)]((_0x309bcc,_0x28a7c2)=>_0x309bcc[_0x454888(0x168)]-_0x28a7c2[_0x454888(0x168)]);}}}function k(_0x58a883,_0x483f8b,_0x40fe9e){const _0x8ba836=_0x4b42c9;let _0x2b8b67=_0x40fe9e-_0x483f8b;_0x58a883[_0x8ba836(0x143)]=''+_0x58a883['dataStream'][_0x8ba836(0x1a8)](0x0,_0x483f8b)+_0x58a883[_0x8ba836(0x143)]['slice'](_0x40fe9e),ae(_0x58a883,_0x483f8b,_0x2b8b67);}function ie(_0x44f7ff,_0x57d0a7,_0x55a67f){const _0x413c8f=_0x4b42c9;_0x44f7ff[_0x413c8f(0x19f)]=A(_0x44f7ff[_0x413c8f(0x19f)],_0x57d0a7,_0x55a67f),_0x44f7ff['sectionBreaks']=A(_0x44f7ff['sectionBreaks'],_0x57d0a7,_0x55a67f),_0x44f7ff[_0x413c8f(0x176)]=A(_0x44f7ff[_0x413c8f(0x176)],_0x57d0a7,_0x55a67f),_0x44f7ff['textRuns']=M(_0x44f7ff[_0x413c8f(0x17e)],_0x57d0a7,_0x55a67f),_0x44f7ff[_0x413c8f(0x186)]=N(_0x44f7ff['tables'],_0x57d0a7,_0x55a67f),_0x44f7ff[_0x413c8f(0x16b)]=N(_0x44f7ff[_0x413c8f(0x16b)],_0x57d0a7,_0x55a67f),_0x44f7ff[_0x413c8f(0x180)]=N(_0x44f7ff[_0x413c8f(0x180)],_0x57d0a7,_0x55a67f),_0x44f7ff[_0x413c8f(0x174)]=N(_0x44f7ff[_0x413c8f(0x174)],_0x57d0a7,_0x55a67f);}function ae(_0xb0cff4,_0x51198e,_0x101c4d){const _0x4c6eb0=_0x4b42c9;var _0x232332,_0x59a2c5;_0xb0cff4[_0x4c6eb0(0x19f)]=j(_0xb0cff4[_0x4c6eb0(0x19f)],_0x51198e,_0x101c4d),_0xb0cff4[_0x4c6eb0(0x175)]=j(_0xb0cff4['sectionBreaks'],_0x51198e,_0x101c4d),_0xb0cff4[_0x4c6eb0(0x176)]=j(_0xb0cff4[_0x4c6eb0(0x176)],_0x51198e,_0x101c4d),_0xb0cff4[_0x4c6eb0(0x17e)]=(_0x232332=P((_0x59a2c5=_0xb0cff4['textRuns'])==null?void 0x0:_0x59a2c5[_0x4c6eb0(0x141)](_0x21ebaa=>({..._0x21ebaa,'startIndex':_0x21ebaa['st'],'endIndex':_0x21ebaa['ed']})),_0x51198e,_0x101c4d))==null?void 0x0:_0x232332[_0x4c6eb0(0x141)](_0x4083e0=>{let {startIndex:_0x1b7fdc,endIndex:_0x554b30,..._0xdba93d}=_0x4083e0;return{..._0xdba93d,'st':_0x1b7fdc,'ed':_0x554b30};}),_0xb0cff4[_0x4c6eb0(0x186)]=P(_0xb0cff4[_0x4c6eb0(0x186)],_0x51198e,_0x101c4d),_0xb0cff4[_0x4c6eb0(0x16b)]=P(_0xb0cff4['customRanges'],_0x51198e,_0x101c4d),_0xb0cff4[_0x4c6eb0(0x180)]=P(_0xb0cff4[_0x4c6eb0(0x180)],_0x51198e,_0x101c4d),_0xb0cff4[_0x4c6eb0(0x174)]=P(_0xb0cff4[_0x4c6eb0(0x174)],_0x51198e,_0x101c4d);}function A(_0x790cb4,_0x1e5aab,_0x3104a0){const _0x3a200d=_0x4b42c9;return _0x790cb4==null?void 0x0:_0x790cb4[_0x3a200d(0x141)](_0x21d479=>_0x21d479[_0x3a200d(0x168)]>=_0x1e5aab?{..._0x21d479,'startIndex':_0x21d479[_0x3a200d(0x168)]+_0x3104a0}:_0x21d479);}function j(_0x2b96e6,_0x2e27ab,_0x21b11d){const _0x22ffcd=_0x4b42c9;let _0x1cd31d=_0x2e27ab+_0x21b11d;return _0x2b96e6==null?void 0x0:_0x2b96e6[_0x22ffcd(0x141)](_0x1deacb=>_0x1deacb['startIndex']>=_0x2e27ab&&_0x1deacb[_0x22ffcd(0x168)]<_0x1cd31d?null:_0x1deacb[_0x22ffcd(0x168)]>=_0x1cd31d?{..._0x1deacb,'startIndex':_0x1deacb['startIndex']-_0x21b11d}:_0x1deacb)[_0x22ffcd(0x17f)](_0x4beaca=>_0x4beaca!=null);}function M(_0x5bff9d,_0x31549d,_0x52dd4c){const _0xc28851=_0x4b42c9;return _0x5bff9d==null?void 0x0:_0x5bff9d[_0xc28851(0x141)](_0x543817=>_0x543817['st']>=_0x31549d?{..._0x543817,'st':_0x543817['st']+_0x52dd4c,'ed':_0x543817['ed']+_0x52dd4c}:_0x543817['ed']>_0x31549d?{..._0x543817,'ed':_0x543817['ed']+_0x52dd4c}:_0x543817);}function N(_0x3a15ac,_0x346048,_0x1c1216){const _0x208c84=_0x4b42c9;return _0x3a15ac==null?void 0x0:_0x3a15ac[_0x208c84(0x141)](_0x506c20=>_0x506c20[_0x208c84(0x168)]>=_0x346048?{..._0x506c20,'startIndex':_0x506c20[_0x208c84(0x168)]+_0x1c1216,'endIndex':_0x506c20['endIndex']+_0x1c1216}:_0x506c20[_0x208c84(0x151)]>=_0x346048?{..._0x506c20,'endIndex':_0x506c20[_0x208c84(0x151)]+_0x1c1216}:_0x506c20);}function P(_0x39aec7,_0x23842b,_0x583a03){const _0x22898a=_0x4b42c9;let _0x4b2600=_0x23842b+_0x583a03;return _0x39aec7==null?void 0x0:_0x39aec7[_0x22898a(0x141)](_0x11b8ad=>_0x11b8ad[_0x22898a(0x168)]>=_0x23842b&&_0x11b8ad[_0x22898a(0x151)]<_0x4b2600?null:_0x11b8ad[_0x22898a(0x168)]>=_0x4b2600?{..._0x11b8ad,'startIndex':_0x11b8ad[_0x22898a(0x168)]-_0x583a03,'endIndex':_0x11b8ad[_0x22898a(0x151)]-_0x583a03}:_0x11b8ad[_0x22898a(0x151)]>=_0x23842b?{..._0x11b8ad,'startIndex':_0x11b8ad[_0x22898a(0x168)]<_0x23842b?_0x11b8ad[_0x22898a(0x168)]:_0x23842b,'endIndex':Math['max'](_0x23842b,_0x11b8ad[_0x22898a(0x151)]-_0x583a03)}:_0x11b8ad)['filter'](_0x4dbfa2=>_0x4dbfa2!=null);}function F(_0x70c39a,_0x578514,_0x28645d,_0x13dc92){_0x70c39a==null||_0x70c39a['forEach'](_0x5991e7=>{const _0x3d1be3=_0x346b;_0x5991e7[_0x3d1be3(0x168)]>=_0x578514&&_0x5991e7['startIndex']<_0x28645d&&(_0x5991e7[_0x3d1be3(0x168)]+=_0x13dc92);});}function oe(_0x32fe98,_0x2f76b3,_0x531e18,_0x2cf51e){_0x32fe98==null||_0x32fe98['forEach'](_0x397a53=>{_0x397a53['st']>=_0x2f76b3&&_0x397a53['st']<_0x531e18?(_0x397a53['st']+=_0x2cf51e,_0x397a53['ed']+=_0x2cf51e):_0x397a53['ed']>_0x2f76b3&&_0x397a53['ed']<_0x531e18&&(_0x397a53['ed']+=_0x2cf51e);});}function I(_0x3e6e0f,_0x26cb2c,_0x3fab50,_0x50e932){const _0x50713b=_0x4b42c9;_0x3e6e0f==null||_0x3e6e0f[_0x50713b(0x1a0)](_0x2eed4d=>{const _0x1780df=_0x50713b;_0x2eed4d[_0x1780df(0x168)]>=_0x26cb2c&&_0x2eed4d[_0x1780df(0x168)]<_0x3fab50?(_0x2eed4d[_0x1780df(0x168)]+=_0x50e932,_0x2eed4d[_0x1780df(0x151)]+=_0x50e932):_0x2eed4d[_0x1780df(0x151)]>_0x26cb2c&&_0x2eed4d[_0x1780df(0x151)]<_0x3fab50&&(_0x2eed4d[_0x1780df(0x151)]+=_0x50e932);});}const L={'id':_0x4b42c9(0x13d),'type':e['CommandType']['COMMAND'],'handler':_0x58bce7=>{const _0x25c7ca=_0x4b42c9;let _0x1bc242=U(_0x58bce7);if(_0x1bc242)return _0x58bce7[_0x25c7ca(0x165)](e[_0x25c7ca(0x13b)])[_0x25c7ca(0x13f)](R['id'],{'startOffset':_0x1bc242[_0x25c7ca(0x16e)],'endOffset':_0x1bc242['endOffset'],'unitId':_0x1bc242[_0x25c7ca(0x19d)]});let _0x580f0b=W(_0x58bce7);if(!_0x580f0b)return!0x1;let _0x1b4590=_0x580f0b[_0x25c7ca(0x168)]+0x1;return _0x58bce7[_0x25c7ca(0x165)](e[_0x25c7ca(0x13b)])[_0x25c7ca(0x13f)](R['id'],{'startOffset':_0x1b4590,'endOffset':_0x1b4590});}},R={'id':_0x4b42c9(0x150),'type':e[_0x4b42c9(0x179)]['COMMAND'],'handler':(_0x3a6676,_0x322774)=>{const _0x4adae3=_0x4b42c9;var _0x32e18b,_0x4f7bcb,_0xe1f6ce;let _0x4ed82f=V(_0x3a6676,_0x322774==null?void 0x0:_0x322774[_0x4adae3(0x19d)]);if(!_0x4ed82f)return!0x1;let _0x2e8d59=H(_0x3a6676),_0x546204=o({'blockId':(_0x32e18b=_0x322774==null?void 0x0:_0x322774[_0x4adae3(0x17b)])==null?(0x0,e['generateRandomId'])(0x6):_0x32e18b,'documentData':_0x4ed82f[_0x4adae3(0x142)],'endOffset':(_0x4f7bcb=_0x322774==null?void 0x0:_0x322774[_0x4adae3(0x190)])==null?_0x2e8d59==null?void 0x0:_0x2e8d59[_0x4adae3(0x190)]:_0x4f7bcb,'startOffset':(_0xe1f6ce=_0x322774==null?void 0x0:_0x322774[_0x4adae3(0x16e)])==null?_0x2e8d59==null?void 0x0:_0x2e8d59[_0x4adae3(0x16e)]:_0xe1f6ce});return q(_0x4ed82f[_0x4adae3(0x1a1)],_0x4ed82f['unitId'],_0x4ed82f['previousDocumentData'],_0x546204[_0x4adae3(0x18d)],_0x546204['cursorOffset']);}},z={'id':_0x4b42c9(0x1ab),'type':e[_0x4b42c9(0x179)][_0x4b42c9(0x136)],'handler':(_0x382c90,_0x5707ad)=>{const _0x29e199=_0x4b42c9;var _0x303cdd,_0x1ff7fc;let _0x3105d6=V(_0x382c90,_0x5707ad==null?void 0x0:_0x5707ad[_0x29e199(0x19d)]);if(!_0x3105d6)return!0x1;let _0xb489b6=(_0x303cdd=_0x5707ad==null?void 0x0:_0x5707ad[_0x29e199(0x1a6)])==null?(_0x1ff7fc=H(_0x382c90))==null?void 0x0:_0x1ff7fc[_0x29e199(0x16e)]:_0x303cdd;if(_0xb489b6==null)return!0x1;let _0x5d547a=l({'cursorOffset':_0xb489b6,'documentData':_0x3105d6[_0x29e199(0x142)]});return _0x5d547a?q(_0x3105d6[_0x29e199(0x1a1)],_0x3105d6['unitId'],_0x3105d6[_0x29e199(0x142)],_0x5d547a['nextDocumentData'],_0x5d547a[_0x29e199(0x1a6)]):!0x1;}},B={'id':_0x4b42c9(0x162),'type':e[_0x4b42c9(0x179)][_0x4b42c9(0x136)],'handler':(_0xf5c02b,_0x331c9c)=>{const _0xcec3cd=_0x4b42c9;var _0x1a4e89,_0x4f1f65;let _0x31409c=V(_0xf5c02b,_0x331c9c==null?void 0x0:_0x331c9c['unitId']);if(!_0x31409c)return!0x1;let _0x33d28e=(_0x1a4e89=_0x331c9c==null?void 0x0:_0x331c9c['cursorOffset'])==null?(_0x4f1f65=H(_0xf5c02b))==null?void 0x0:_0x4f1f65['startOffset']:_0x1a4e89;if(_0x33d28e==null)return!0x1;let _0x502d62=u({'cursorOffset':_0x33d28e,'documentData':_0x31409c[_0xcec3cd(0x142)],'paragraphStartIndex':_0x331c9c==null?void 0x0:_0x331c9c[_0xcec3cd(0x18a)]});return _0x502d62?q(_0x31409c[_0xcec3cd(0x1a1)],_0x31409c['unitId'],_0x31409c[_0xcec3cd(0x142)],_0x502d62['nextDocumentData'],_0x502d62['cursorOffset']):!0x1;}};function V(_0x4f600a,_0x4da979){const _0x1e8cbe=_0x4b42c9;let _0x1eae89=_0x4f600a['get'](e['IUniverInstanceService']),_0x320585=_0x4da979?_0x1eae89[_0x1e8cbe(0x15d)](_0x4da979):_0x1eae89['getCurrentUnitOfType'](e['UniverInstanceType'][_0x1e8cbe(0x13c)]);return _0x320585?{'commandService':_0x4f600a[_0x1e8cbe(0x165)](e[_0x1e8cbe(0x13b)]),'previousDocumentData':_0x320585[_0x1e8cbe(0x185)](),'unitId':_0x320585[_0x1e8cbe(0x19c)]()}:null;}function H(_0x2ddbfc){const _0x36f630=_0x4b42c9;var _0x14a873;return(_0x14a873=_0x2ddbfc[_0x36f630(0x165)](t[_0x36f630(0x19b)])[_0x36f630(0x15f)]())==null?void 0x0:_0x14a873[0x0];}function U(_0x42d04b){const _0x368077=_0x4b42c9;var _0x2b379b;let _0x29a16f=(_0x2b379b=_0x42d04b['get'](e[_0x368077(0x15a)])[_0x368077(0x145)](e[_0x368077(0x18e)]['UNIVER_DOC']))==null?void 0x0:_0x2b379b['getUnitId']();try{return _0x42d04b['get'](n['DocContentInsertService'])[_0x368077(0x140)](_0x29a16f);}catch{return null;}}function W(_0x4c0e7f){const _0x41a4dc=_0x4b42c9;var _0x4d7a1a,_0x1ab32c,_0x10310e;let _0x483533=H(_0x4c0e7f);if(!_0x483533)return null;let _0x12e1a5=_0x4c0e7f[_0x41a4dc(0x165)](e[_0x41a4dc(0x15a)])[_0x41a4dc(0x145)](e[_0x41a4dc(0x18e)][_0x41a4dc(0x13c)]),_0x5ef6f4=_0x12e1a5==null?void 0x0:_0x12e1a5['getBody']();return _0x5ef6f4?(_0x4d7a1a=e[_0x41a4dc(0x14f)][_0x41a4dc(0x161)][_0x41a4dc(0x15b)](_0x483533,(_0x1ab32c=_0x5ef6f4[_0x41a4dc(0x19f)])==null?[]:_0x1ab32c,(_0x10310e=_0x5ef6f4[_0x41a4dc(0x143)])==null?'':_0x10310e)[0x0])==null?null:_0x4d7a1a:null;}function G(_0x15e0d6,_0x14b022){const _0x3e3b7f=_0x4b42c9;var _0x43ed12,_0x27c2cd,_0x27a28f,_0x45d3fe,_0x13347b,_0x5c973e,_0x3adc04,_0x53d69c,_0x22073f,_0x3d3fab,_0x1e503b,_0x180f04,_0x22d980,_0x4147dd,_0x33d6b8,_0x4b2da5,_0x230ee7,_0x18dced;let _0x4041bd=e[_0x3e3b7f(0x169)]['getInstance']();return[K(_0x4041bd,['body',_0x3e3b7f(0x143)],(_0x43ed12=_0x15e0d6['body'])==null?void 0x0:_0x43ed12[_0x3e3b7f(0x143)],(_0x27c2cd=_0x14b022[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x27c2cd['dataStream']),K(_0x4041bd,[_0x3e3b7f(0x1a3),'paragraphs'],(_0x27a28f=_0x15e0d6[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x27a28f[_0x3e3b7f(0x19f)],(_0x45d3fe=_0x14b022[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x45d3fe[_0x3e3b7f(0x19f)]),K(_0x4041bd,[_0x3e3b7f(0x1a3),_0x3e3b7f(0x175)],(_0x13347b=_0x15e0d6[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x13347b['sectionBreaks'],(_0x5c973e=_0x14b022[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x5c973e[_0x3e3b7f(0x175)]),K(_0x4041bd,[_0x3e3b7f(0x1a3),_0x3e3b7f(0x17e)],(_0x3adc04=_0x15e0d6[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x3adc04[_0x3e3b7f(0x17e)],(_0x53d69c=_0x14b022[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x53d69c[_0x3e3b7f(0x17e)]),K(_0x4041bd,['body',_0x3e3b7f(0x176)],(_0x22073f=_0x15e0d6[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x22073f[_0x3e3b7f(0x176)],(_0x3d3fab=_0x14b022['body'])==null?void 0x0:_0x3d3fab[_0x3e3b7f(0x176)]),K(_0x4041bd,[_0x3e3b7f(0x1a3),'customRanges'],(_0x1e503b=_0x15e0d6['body'])==null?void 0x0:_0x1e503b[_0x3e3b7f(0x16b)],(_0x180f04=_0x14b022['body'])==null?void 0x0:_0x180f04[_0x3e3b7f(0x16b)]),K(_0x4041bd,[_0x3e3b7f(0x1a3),_0x3e3b7f(0x180)],(_0x22d980=_0x15e0d6[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x22d980[_0x3e3b7f(0x180)],(_0x4147dd=_0x14b022[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x4147dd[_0x3e3b7f(0x180)]),K(_0x4041bd,[_0x3e3b7f(0x1a3),_0x3e3b7f(0x186)],(_0x33d6b8=_0x15e0d6[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x33d6b8['tables'],(_0x4b2da5=_0x14b022['body'])==null?void 0x0:_0x4b2da5[_0x3e3b7f(0x186)]),K(_0x4041bd,[_0x3e3b7f(0x1a3),_0x3e3b7f(0x174)],(_0x230ee7=_0x15e0d6[_0x3e3b7f(0x1a3)])==null?void 0x0:_0x230ee7[_0x3e3b7f(0x174)],(_0x18dced=_0x14b022['body'])==null?void 0x0:_0x18dced['blockRanges'])]['filter'](Boolean)[_0x3e3b7f(0x1a2)]((_0x116504,_0xd479f8)=>e['JSONX'][_0x3e3b7f(0x164)](_0x116504,_0xd479f8),null);}function K(_0x5c7d45,_0x24be85,_0x50009f,_0x427e4a){const _0x95e67=_0x4b42c9;return e[_0x95e67(0x16c)]['diffValue'](_0x50009f,_0x427e4a)?null:_0x5c7d45[_0x95e67(0x19a)](_0x24be85,_0x50009f,_0x427e4a);}function q(_0x1d9235,_0x5c8c78,_0x5d94d5,_0x18fa78,_0x2e12f8){const _0xb4553e=_0x4b42c9;let _0x4f03f3=G(_0x5d94d5,_0x18fa78);return _0x4f03f3?!!_0x1d9235[_0xb4553e(0x13f)](t['RichTextEditingMutation']['id'],{'unitId':_0x5c8c78,'actions':_0x4f03f3,'textRanges':[{'startOffset':_0x2e12f8,'endOffset':_0x2e12f8,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var se=_0x4b42c9(0x130),ce=_0x4b42c9(0x1a9);const J={};function Y(_0x34ff4f,_0x34018e){return function(_0x2d98ae,_0x4cdd3c){_0x34018e(_0x2d98ae,_0x4cdd3c,_0x34ff4f);};}function X(_0xd011bd,_0xcd52d5,_0x2e212f,_0x4d9e8b){const _0x5680dd=_0x4b42c9;var _0xb6a2e7=arguments[_0x5680dd(0x177)],_0x266225=_0xb6a2e7<0x3?_0xcd52d5:_0x4d9e8b===null?_0x4d9e8b=Object[_0x5680dd(0x195)](_0xcd52d5,_0x2e212f):_0x4d9e8b,_0x4aacfe;if(typeof Reflect=='object'&&typeof Reflect[_0x5680dd(0x134)]==_0x5680dd(0x148))_0x266225=Reflect[_0x5680dd(0x134)](_0xd011bd,_0xcd52d5,_0x2e212f,_0x4d9e8b);else{for(var _0x52ecbd=_0xd011bd['length']-0x1;_0x52ecbd>=0x0;_0x52ecbd--)(_0x4aacfe=_0xd011bd[_0x52ecbd])&&(_0x266225=(_0xb6a2e7<0x3?_0x4aacfe(_0x266225):_0xb6a2e7>0x3?_0x4aacfe(_0xcd52d5,_0x2e212f,_0x266225):_0x4aacfe(_0xcd52d5,_0x2e212f))||_0x266225);}return _0xb6a2e7>0x3&&_0x266225&&Object['defineProperty'](_0xcd52d5,_0x2e212f,_0x266225),_0x266225;}function Z(_0x53647e){'@babel/helpers - typeof';const _0x2c88f1=_0x4b42c9;return Z=typeof Symbol==_0x2c88f1(0x148)&&typeof Symbol['iterator']==_0x2c88f1(0x197)?function(_0x34abc2){return typeof _0x34abc2;}:function(_0x214936){const _0x4d7397=_0x2c88f1;return _0x214936&&typeof Symbol==_0x4d7397(0x148)&&_0x214936['constructor']===Symbol&&_0x214936!==Symbol[_0x4d7397(0x132)]?_0x4d7397(0x197):typeof _0x214936;},Z(_0x53647e);}function le(_0x4ae9ad,_0x3bde4b){const _0x4809b3=_0x4b42c9;if(Z(_0x4ae9ad)!=_0x4809b3(0x184)||!_0x4ae9ad)return _0x4ae9ad;var _0x80614=_0x4ae9ad[Symbol[_0x4809b3(0x139)]];if(_0x80614!==void 0x0){var _0x3d22d2=_0x80614[_0x4809b3(0x14e)](_0x4ae9ad,_0x3bde4b||_0x4809b3(0x191));if(Z(_0x3d22d2)!=_0x4809b3(0x184))return _0x3d22d2;throw TypeError(_0x4809b3(0x1a5));}return(_0x3bde4b==='string'?String:Number)(_0x4ae9ad);}function ue(_0x40e370){const _0x410535=_0x4b42c9;var _0x27cfca=le(_0x40e370,_0x410535(0x17a));return Z(_0x27cfca)=='symbol'?_0x27cfca:_0x27cfca+'';}function Q(_0x37647c,_0x1fb802,_0x44ca4a){const _0x5daf00=_0x4b42c9;return(_0x1fb802=ue(_0x1fb802))in _0x37647c?Object[_0x5daf00(0x152)](_0x37647c,_0x1fb802,{'value':_0x44ca4a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x37647c[_0x1fb802]=_0x44ca4a,_0x37647c;}let $=class extends e[_0x4b42c9(0x183)]{constructor(_0x96c0d6=J,_0x3584b2,_0x19db15,_0x96c3b5){const _0x2a5e1a=_0x4b42c9;super(),this[_0x2a5e1a(0x15e)]=_0x96c0d6,this[_0x2a5e1a(0x170)]=_0x3584b2,this[_0x2a5e1a(0x17d)]=_0x19db15,this[_0x2a5e1a(0x157)]=_0x96c3b5;let {..._0x900948}=(0x0,e[_0x2a5e1a(0x173)])({},J,this[_0x2a5e1a(0x15e)]);this[_0x2a5e1a(0x157)][_0x2a5e1a(0x146)]('docs-quote.config',_0x900948);}[_0x4b42c9(0x144)](){const _0x13f86f=_0x4b42c9;[R,L,z,B][_0x13f86f(0x1a0)](_0x37db1c=>this[_0x13f86f(0x189)](this['_commandService']['registerCommand'](_0x37db1c)));}};Q($,_0x4b42c9(0x166),i),Q($,_0x4b42c9(0x17c),se),Q($,_0x4b42c9(0x13e),ce),Q($,'type',e[_0x4b42c9(0x18e)][_0x4b42c9(0x13c)]),$=X([(0x0,e[_0x4b42c9(0x199)])(r[_0x4b42c9(0x135)],t['UniverDocsPlugin']),Y(0x1,(0x0,e['Inject'])(e[_0x4b42c9(0x158)])),Y(0x2,e['ICommandService']),Y(0x3,e[_0x4b42c9(0x187)])],$),exports[_0x4b42c9(0x1a4)]=a,exports[_0x4b42c9(0x182)]=i,exports[_0x4b42c9(0x167)]=B,exports[_0x4b42c9(0x14b)]=z,exports[_0x4b42c9(0x16a)]=L,exports['DocsQuoteInsertCommand']=R,Object[_0x4b42c9(0x152)](exports,_0x4b42c9(0x172),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4b42c9(0x171)]=u,exports[_0x4b42c9(0x1b0)]=l,exports[_0x4b42c9(0x137)]=o,exports[_0x4b42c9(0x154)]=p;function _0x32b0(){const _0x4a8e6c=['previousDocumentData','dataStream','onStarting','getCurrentUnitOfType','setConfig','BLOCK_END','function','every','from','DocsQuoteExitCommand','4569poircb','indentEnd','call','BuildTextUtils','docs-quote.command.insert','endIndex','defineProperty','120ExDnJz','findQuoteRangeAtOffset','2CUaSDr','paragraph','_configService','Injector','26412360ZNRdPh','IUniverInstanceService','getParagraphsInRange','283800eFfIlr','getUniverDocInstance','_config','getTextRanges','533408OpsgEE','range','docs-quote.command.cancel-empty-paragraph','endsWith','compose','get','pluginName','DocsQuoteCancelEmptyParagraphCommand','startIndex','JSONX','DocsQuoteInsertBelowCommand','customRanges','Tools','29208emPWll','startOffset','max','_injector','buildCancelEmptyQuoteParagraphActions','UniverDocsQuotePlugin','merge','blockRanges','sectionBreaks','customBlocks','length','toStringTag','CommandType','string','blockId','packageName','_commandService','textRuns','filter','customDecorations','textStyle','DOCS_QUOTE_PLUGIN','Plugin','object','getSnapshot','tables','IConfigService','endTokenOffset','disposeWithMe','paragraphStartIndex','45cfbdLI','indexOf','nextDocumentData','UniverInstanceType','576780wJXBKN','endOffset','default','indentStart','blockType','10BSxKaa','getOwnPropertyDescriptor','Document\x20body\x20is\x20required','symbol','DataStreamTreeTokenType','DependentOn','replaceOp','DocSelectionManagerService','getUnitId','unitId','quote','paragraphs','forEach','commandService','reduce','body','DOCS_QUOTE_BLOCK_TYPE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','cursorOffset','sort','slice','0.24.0-insiders.20260530-57a0a3e','198660aCBlWE','docs-quote.command.exit','paragraphStyle','303yclCnh','find','BLOCK_START','buildExitQuoteActions','some','documentData','spaceBelow','@univerjs-pro/docs-quote','PARAGRAPH','prototype','SECTION_BREAK','decorate','UniverLicensePlugin','COMMAND','buildInsertQuoteActions','min','toPrimitive','Module','ICommandService','UNIVER_DOC','docs-quote.command.insert-below','version','syncExecuteCommand','consumeInsertRange','map'];_0x32b0=function(){return _0x4a8e6c;};return _0x32b0();}
1
+ const _0xf87ce0=_0x55d5;(function(_0x27bd06,_0x4c22a0){const _0x20dfc9=_0x55d5,_0x48809c=_0x27bd06();while(!![]){try{const _0x252cfb=parseInt(_0x20dfc9(0xa5))/0x1+parseInt(_0x20dfc9(0xf7))/0x2+-parseInt(_0x20dfc9(0xd4))/0x3*(-parseInt(_0x20dfc9(0xe8))/0x4)+parseInt(_0x20dfc9(0xb3))/0x5*(-parseInt(_0x20dfc9(0xad))/0x6)+-parseInt(_0x20dfc9(0xde))/0x7+-parseInt(_0x20dfc9(0xba))/0x8*(-parseInt(_0x20dfc9(0xd6))/0x9)+-parseInt(_0x20dfc9(0x8e))/0xa;if(_0x252cfb===_0x4c22a0)break;else _0x48809c['push'](_0x48809c['shift']());}catch(_0x4b208f){_0x48809c['push'](_0x48809c['shift']());}}}(_0x1ed0,0x9b83e),Object[_0xf87ce0(0xa3)](exports,Symbol[_0xf87ce0(0xbc)],{'value':_0xf87ce0(0xb6)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs/docs-ui'),r=require('@univerjs-pro/license');const i=_0xf87ce0(0xc3),a=_0xf87ce0(0xe3);function o(_0x45308c){const _0x3401aa=_0xf87ce0;var _0x13dbca,_0x186913,_0x25a3d0;let _0x422ea4=S(_0x45308c['documentData']),_0x54d296=C(_0x422ea4),_0x12d176=s(_0x45308c[_0x3401aa(0xa4)],_0x45308c[_0x3401aa(0xfd)]),_0x5f34a7=_0x12d176?(_0x13dbca=_0x54d296[_0x3401aa(0xf3)])==null?void 0x0:_0x13dbca[_0x3401aa(0xc5)](_0x1af6cd=>_0x1af6cd[_0x3401aa(0x108)]===_0x12d176['startOffset']&&_0x1af6cd[_0x3401aa(0x90)]+0x1===_0x12d176[_0x3401aa(0xfd)]):void 0x0,{startOffset:_0x2911c5,endOffset:_0x1aecce}=_0x5f34a7?_0x12d176:ee(_0x54d296,_0x45308c[_0x3401aa(0xa4)],_0x45308c[_0x3401aa(0xfd)]),_0x2c5ca8=ne(_0x54d296,_0x2911c5,_0x1aecce),_0x40b072=(_0x186913=_0x5f34a7==null?void 0x0:_0x5f34a7[_0x3401aa(0xd9)])==null?_0x45308c[_0x3401aa(0xd9)]:_0x186913;if(_0x5f34a7)return _0x5f34a7['blockType']=a,c(_0x54d296,_0x2911c5,_0x1aecce),g(_0x54d296,_0x2911c5,_0x1aecce,_0x2c5ca8),{'nextDocumentData':_0x422ea4,'cursorOffset':_0x2911c5+0x1};if(_0x2911c5===_0x1aecce){let _0x26c515=''+e[_0x3401aa(0xc0)]['BLOCK_START']+e[_0x3401aa(0xc0)][_0x3401aa(0xb4)]+e[_0x3401aa(0xc0)][_0x3401aa(0xef)];return O(_0x54d296,_0x2911c5,_0x26c515,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':h(!0x0,!0x0,_0x2c5ca8)}],'blockRanges':[{'blockId':_0x40b072,'blockType':a,'startIndex':0x0,'endIndex':_0x26c515[_0x3401aa(0xf6)]-0x1}]}),{'nextDocumentData':_0x422ea4,'cursorOffset':_0x2911c5+0x1};}return O(_0x54d296,_0x1aecce,e['DataStreamTreeTokenType'][_0x3401aa(0xef)]),O(_0x54d296,_0x2911c5,e[_0x3401aa(0xc0)]['BLOCK_START']),g(_0x54d296,_0x2911c5,_0x1aecce+0x1,_0x2c5ca8),_0x54d296['blockRanges']=[...(_0x25a3d0=_0x54d296[_0x3401aa(0xf3)])==null?[]:_0x25a3d0,{'blockId':_0x40b072,'blockType':a,'startIndex':_0x2911c5,'endIndex':_0x1aecce+0x1}]['sort']((_0x4d8db1,_0x48c303)=>_0x4d8db1[_0x3401aa(0x108)]-_0x48c303[_0x3401aa(0x108)]),{'nextDocumentData':_0x422ea4,'cursorOffset':_0x2911c5+0x1};}function s(_0x3fb655,_0x41a271){const _0x21d3cc=_0xf87ce0;return _0x3fb655==null||_0x41a271==null||_0x3fb655===_0x41a271?null:{'startOffset':Math[_0x21d3cc(0xa0)](_0x3fb655,_0x41a271),'endOffset':Math['max'](_0x3fb655,_0x41a271)};}function c(_0x407676,_0x4e1914,_0xa2e7c2){const _0x3596b3=_0xf87ce0;var _0x22b051;((_0x22b051=_0x407676[_0x3596b3(0x101)])==null?[]:_0x22b051)[_0x3596b3(0x8b)](_0x48648b=>_0x48648b['startIndex']>_0x4e1914&&_0x48648b[_0x3596b3(0x108)]<_0xa2e7c2)[_0x3596b3(0x104)](_0x56e663=>{const _0x2e64b0=_0x3596b3;var _0x8696fa;let _0x294d10={...(_0x8696fa=_0x56e663[_0x2e64b0(0x9a)])==null?{}:_0x8696fa};delete _0x294d10[_0x2e64b0(0xa2)],delete _0x294d10[_0x2e64b0(0xcb)],delete _0x294d10[_0x2e64b0(0x93)],delete _0x294d10[_0x2e64b0(0xb1)],_0x56e663[_0x2e64b0(0x9a)]=_0x294d10;});}function l(_0x3402a7){const _0x516a94=_0xf87ce0;var _0x493f26,_0x304b2c;let _0x118e96=S(_0x3402a7[_0x516a94(0xed)]),_0x9f76ea=C(_0x118e96),_0x1acaa8=m(_0x9f76ea,_0x3402a7[_0x516a94(0x9b)]);if(!_0x1acaa8)return null;let _0x361f6e=v(_0x9f76ea,_0x1acaa8),_0x2c5235=_0x361f6e[_0x361f6e[_0x516a94(0xf6)]-0x1];if(!_0x2c5235||!y(_0x9f76ea,_0x1acaa8,_0x2c5235)||_0x3402a7[_0x516a94(0x9b)]<_0x2c5235[_0x516a94(0x108)])return null;let _0x4988cf=E(_0x9f76ea,_0x1acaa8,_0x2c5235);if(_0x4988cf>=_0x1acaa8[_0x516a94(0x90)])return null;_0x9f76ea[_0x516a94(0xca)]=[_0x9f76ea[_0x516a94(0xca)][_0x516a94(0xc8)](0x0,_0x4988cf),e[_0x516a94(0xc0)]['BLOCK_END'],_0x9f76ea['dataStream'][_0x516a94(0xc8)](_0x4988cf,_0x1acaa8[_0x516a94(0x90)]),_0x9f76ea[_0x516a94(0xca)][_0x516a94(0xc8)](_0x1acaa8[_0x516a94(0x90)]+0x1)][_0x516a94(0x102)](''),F(_0x9f76ea[_0x516a94(0x101)],_0x4988cf,_0x1acaa8[_0x516a94(0x90)],0x1),F(_0x9f76ea[_0x516a94(0xcf)],_0x4988cf,_0x1acaa8['endIndex'],0x1),F(_0x9f76ea[_0x516a94(0xea)],_0x4988cf,_0x1acaa8[_0x516a94(0x90)],0x1),oe(_0x9f76ea['textRuns'],_0x4988cf,_0x1acaa8[_0x516a94(0x90)],0x1),I(_0x9f76ea['tables'],_0x4988cf,_0x1acaa8[_0x516a94(0x90)],0x1),I(_0x9f76ea['customRanges'],_0x4988cf,_0x1acaa8[_0x516a94(0x90)],0x1),I(_0x9f76ea['customDecorations'],_0x4988cf,_0x1acaa8[_0x516a94(0x90)],0x1),(_0x493f26=_0x9f76ea[_0x516a94(0xf3)])==null||_0x493f26['forEach'](_0x482b5d=>{const _0x202d36=_0x516a94;_0x482b5d===_0x1acaa8||_0x482b5d['blockId']===_0x1acaa8[_0x202d36(0xd9)]?_0x482b5d[_0x202d36(0x90)]=_0x4988cf:_0x482b5d['startIndex']>=_0x4988cf&&_0x482b5d[_0x202d36(0x108)]<_0x1acaa8[_0x202d36(0x90)]&&(_0x482b5d[_0x202d36(0x108)]+=0x1,_0x482b5d[_0x202d36(0x90)]+=0x1);});let _0x49ba81=v(_0x9f76ea,{..._0x1acaa8,'endIndex':_0x4988cf});_0x49ba81['forEach']((_0x2e07e9,_0x434187)=>{const _0x2327ea=_0x516a94;var _0xb25d5e;_0x2e07e9['paragraphStyle']={...(_0xb25d5e=_0x2e07e9[_0x2327ea(0x9a)])==null?{}:_0xb25d5e,...h(_0x434187===0x0,_0x434187===_0x49ba81[_0x2327ea(0xf6)]-0x1)};});let _0x41230a=(_0x304b2c=_0x9f76ea[_0x516a94(0x101)])==null?void 0x0:_0x304b2c['find'](_0x3c0f75=>_0x3c0f75[_0x516a94(0x108)]===_0x4988cf+0x1);return _0x41230a&&(_0x41230a['paragraphStyle']=_(_0x41230a['paragraphStyle'])),{'nextDocumentData':_0x118e96,'cursorOffset':_0x4988cf+0x1};}function u(_0x2ca257){const _0x23145a=_0xf87ce0;let _0x3d5559=S(_0x2ca257['documentData']),_0x39c75c=C(_0x3d5559),_0x266372=m(_0x39c75c,_0x2ca257[_0x23145a(0x9b)]);return _0x266372&&(d(_0x3d5559,_0x39c75c,_0x266372,_0x2ca257[_0x23145a(0x9b)],_0x2ca257['paragraphStartIndex'])||f(_0x3d5559,_0x39c75c,_0x266372,_0x2ca257['cursorOffset']))||null;}function _0x1ed0(){const _0x26b6c6=['Inject','_config','filter','endTokenOffset','merge','8131930jCGNVA','diffValue','endIndex','map','deepClone','spaceBelow','customRanges','getOwnPropertyDescriptor','getUnitId','DocSelectionManagerService','consumeInsertRange','some','paragraphStyle','cursorOffset','UniverLicensePlugin','UniverDocsQuotePlugin','UniverInstanceType','ICommandService','min','body','indentEnd','defineProperty','startOffset','785080QrwVzw','string','getUniverDocInstance','paragraphStartIndex','registerCommand','packageName','getParagraphsInRange','CommandType','5450346KRmwbi','docs-quote.command.insert','Tools','previousDocumentData','textStyle','unitId','5KDfHUw','PARAGRAPH','syncExecuteCommand','Module','paragraph','from','findQuoteRangeAtOffset','2019856fEjgIM','0.25.0','toStringTag','UniverDocsPlugin','disposeWithMe','sort','DataStreamTreeTokenType','IUniverInstanceService','Document\x20body\x20is\x20required','DOCS_QUOTE_PLUGIN','max','find','nextDocumentData','DependentOn','slice','docs-quote.config','dataStream','spaceAbove','JSONX','UNIVER_DOC','docs-quote.command.insert-below','sectionBreaks','commandService','_injector','COMMAND','buildCancelEmptyQuoteParagraphActions','984Ejawci','textRuns','45ZHCEbo','replaceOp','DocContentInsertService','blockId','DocsQuoteExitCommand','pluginName','default','getBody','3558422nKPTGf','get','onStarting','every','RichTextEditingMutation','quote','DocsQuoteCancelEmptyParagraphCommand','Plugin','customDecorations','getTextRanges','1264GLPJoR','BLOCK_START','customBlocks','compose','blockType','documentData','Injector','BLOCK_END','reduce','IConfigService','getCurrentUnitOfType','blockRanges','getSnapshot','_configService','length','1431564BNCJvi','prototype','decorate','_commandService','constructor','indexOf','endOffset','function','docs-quote.command.cancel-empty-paragraph','call','paragraphs','join','docs-quote.command.exit','forEach','symbol','object','tables','startIndex','DocsQuoteInsertCommand','setConfig','buildInsertQuoteActions','type','range'];_0x1ed0=function(){return _0x26b6c6;};return _0x1ed0();}function d(_0x3a5d4e,_0x214191,_0x1544af,_0x51f2f7,_0x5f0703){const _0x5a9263=_0xf87ce0;let _0xe5d2cb=re(_0x214191,_0x1544af,_0x51f2f7,_0x5f0703);if(!_0xe5d2cb)return null;let _0x5a64d8=_0xe5d2cb[_0x5a9263(0x8c)]-0x1;return k(_0x214191,_0xe5d2cb[_0x5a9263(0xb7)]['startIndex'],_0xe5d2cb[_0x5a9263(0xb7)][_0x5a9263(0x108)]+0x1),{'nextDocumentData':_0x3a5d4e,'cursorOffset':_0x5a64d8};}function f(_0x5b3da1,_0xdbf260,_0x386ad0,_0x450edb){const _0x3e6fe4=_0xf87ce0;if(_0x450edb!==_0x386ad0[_0x3e6fe4(0x108)]+0x1)return null;let _0x4efafa=v(_0xdbf260,_0x386ad0),_0x39ed9f=_0x4efafa[0x0];return!_0x39ed9f||E(_0xdbf260,_0x386ad0,_0x39ed9f)!==_0x450edb?null:_0x4efafa['length']===0x1?b(_0x5b3da1,_0xdbf260,_0x386ad0,_0x39ed9f):x(_0x5b3da1,_0xdbf260,_0x386ad0,_0x39ed9f);}function p(_0x1037dc,_0x3d56bb){const _0x356a90=_0xf87ce0;var _0x18a3a1;return _0x1037dc==null||(_0x18a3a1=_0x1037dc[_0x356a90(0xf3)])==null?void 0x0:_0x18a3a1[_0x356a90(0xc5)](_0x5e1a76=>_0x5e1a76[_0x356a90(0xec)]===_0x356a90(0xe3)&&_0x5e1a76[_0x356a90(0x108)]<=_0x3d56bb&&_0x3d56bb<=_0x5e1a76[_0x356a90(0x90)]);}function m(_0x500ef1,_0x3e4f78){const _0x2dce28=_0xf87ce0;var _0x2bd7df;return(_0x2bd7df=_0x500ef1['blockRanges'])==null?void 0x0:_0x2bd7df[_0x2dce28(0xc5)](_0x33036f=>{const _0xbc5683=_0x2dce28;let _0x2ab1ce=D(_0x500ef1,_0x33036f);return _0x33036f[_0xbc5683(0xec)]===_0xbc5683(0xe3)&&_0x33036f[_0xbc5683(0x108)]<=_0x3e4f78&&_0x3e4f78<=_0x2ab1ce+0x2;});}function h(_0x1db546,_0x95a56c,_0x59be9b=!0x1){return{'indentStart':{'v':0x16},..._0x1db546&&_0x59be9b?{'spaceAbove':{'v':0x8}}:{}};}function g(_0x21cd38,_0x24f5ec,_0x23de31,_0x401f21=!0x1){const _0x4826d7=_0xf87ce0;var _0x313778;let _0xe1c54d=((_0x313778=_0x21cd38[_0x4826d7(0x101)])==null?[]:_0x313778)[_0x4826d7(0x8b)](_0x2bdee1=>_0x2bdee1[_0x4826d7(0x108)]>_0x24f5ec&&_0x2bdee1['startIndex']<_0x23de31);_0xe1c54d[_0x4826d7(0x104)]((_0x8d639b,_0x9d03e)=>{const _0x500475=_0x4826d7;var _0x57f72e;_0x8d639b['paragraphStyle']={...(_0x57f72e=_0x8d639b['paragraphStyle'])==null?{}:_0x57f72e,...h(_0x9d03e===0x0,_0x9d03e===_0xe1c54d[_0x500475(0xf6)]-0x1,_0x401f21)};});}function _(_0x54991a){const _0x5579ec=_0xf87ce0;let _0x24dd1b={..._0x54991a==null?{}:_0x54991a};return delete _0x24dd1b['indentStart'],delete _0x24dd1b[_0x5579ec(0xcb)],delete _0x24dd1b['spaceBelow'],_0x24dd1b;}function v(_0x23a47d,_0x2d89fc){const _0x5ae2d9=_0xf87ce0;var _0x1410af;let _0x2c15c6=D(_0x23a47d,_0x2d89fc);return((_0x1410af=_0x23a47d[_0x5ae2d9(0x101)])==null?[]:_0x1410af)[_0x5ae2d9(0x8b)](_0xaefc20=>_0xaefc20[_0x5ae2d9(0x108)]>_0x2d89fc[_0x5ae2d9(0x108)]&&_0xaefc20['startIndex']<_0x2c15c6);}function y(_0x56f485,_0x3702e3,_0x212970){const _0x5c4258=_0xf87ce0;let _0x28ca73=E(_0x56f485,_0x3702e3,_0x212970),_0x140ab0=_0x56f485[_0x5c4258(0xca)][_0x5c4258(0xc8)](_0x28ca73,_0x212970['startIndex']);return Array[_0x5c4258(0xb8)](_0x140ab0)[_0x5c4258(0xe1)](_0x2ae552=>_0x2ae552===e[_0x5c4258(0xc0)][_0x5c4258(0xe9)]||_0x2ae552===e[_0x5c4258(0xc0)]['BLOCK_END']);}function b(_0x5bc4f6,_0x3dc066,_0x2e4b69,_0x196306){const _0x12f3b1=_0xf87ce0;var _0x439390,_0x2c6d75;let _0x4e9ac5=_0x2e4b69[_0x12f3b1(0x108)];k(_0x3dc066,_0x2e4b69[_0x12f3b1(0x90)],_0x2e4b69[_0x12f3b1(0x90)]+0x1),k(_0x3dc066,_0x2e4b69[_0x12f3b1(0x108)],_0x2e4b69[_0x12f3b1(0x108)]+0x1),_0x3dc066['blockRanges']=(_0x439390=_0x3dc066[_0x12f3b1(0xf3)])==null?void 0x0:_0x439390['filter'](_0x2ccfbb=>_0x2ccfbb[_0x12f3b1(0xd9)]!==_0x2e4b69[_0x12f3b1(0xd9)]);let _0x394f33=(_0x2c6d75=_0x3dc066[_0x12f3b1(0x101)])==null?void 0x0:_0x2c6d75[_0x12f3b1(0xc5)](_0x4c60fb=>_0x4c60fb[_0x12f3b1(0x108)]===_0x196306[_0x12f3b1(0x108)]-0x1);return _0x394f33&&(_0x394f33[_0x12f3b1(0x9a)]=_(_0x394f33[_0x12f3b1(0x9a)])),{'nextDocumentData':_0x5bc4f6,'cursorOffset':_0x4e9ac5};}function x(_0x32db8e,_0x5c29d0,_0x4bdf61,_0x1d5a10){const _0x4d5f67=_0xf87ce0;var _0x36b6b1,_0x15e158;let _0x3cf6ed=_0x1d5a10[_0x4d5f67(0x108)],_0x23417e=_0x4bdf61[_0x4d5f67(0x108)];O(_0x5c29d0,_0x1d5a10[_0x4d5f67(0x108)]+0x1,e['DataStreamTreeTokenType'][_0x4d5f67(0xe9)]),k(_0x5c29d0,_0x4bdf61['startIndex'],_0x4bdf61[_0x4d5f67(0x108)]+0x1);let _0x4eabee=(_0x36b6b1=_0x5c29d0[_0x4d5f67(0x101)])==null?void 0x0:_0x36b6b1[_0x4d5f67(0xc5)](_0xbba374=>_0xbba374[_0x4d5f67(0x108)]===_0x3cf6ed-0x1),_0x3e03c5=(_0x15e158=_0x5c29d0[_0x4d5f67(0xf3)])==null?void 0x0:_0x15e158[_0x4d5f67(0xc5)](_0x542e5a=>_0x542e5a[_0x4d5f67(0xd9)]===_0x4bdf61[_0x4d5f67(0xd9)]);return _0x4eabee&&(_0x4eabee[_0x4d5f67(0x9a)]=_(_0x4eabee[_0x4d5f67(0x9a)]),_0x3e03c5&&(_0x3e03c5[_0x4d5f67(0x108)]=_0x4eabee[_0x4d5f67(0x108)]+0x1)),_0x3e03c5&&g(_0x5c29d0,_0x3e03c5['startIndex'],_0x3e03c5[_0x4d5f67(0x90)]),{'nextDocumentData':_0x32db8e,'cursorOffset':_0x23417e};}function _0x55d5(_0x45d153,_0x491de4){_0x45d153=_0x45d153-0x86;const _0x1ed087=_0x1ed0();let _0x55d53a=_0x1ed087[_0x45d153];return _0x55d53a;}function S(_0x3567b3){const _0x3e75ca=_0xf87ce0;return e[_0x3e75ca(0xaf)][_0x3e75ca(0x92)](_0x3567b3);}function C(_0x3cb7eb){const _0x2ba046=_0xf87ce0;if(!_0x3cb7eb['body'])throw Error(_0x2ba046(0xc2));return _0x3cb7eb[_0x2ba046(0xa1)];}function ee(_0xb587be,_0x212862,_0xc68c9){const _0x585ad9=_0xf87ce0;if(_0x212862==null||_0xc68c9==null){let _0x2b60ea=te(_0xb587be);return{'startOffset':_0x2b60ea,'endOffset':_0x2b60ea};}let _0x2079f2=Math[_0x585ad9(0xa0)](_0x212862,_0xc68c9),_0x4666fe=Math[_0x585ad9(0xc4)](_0x212862,_0xc68c9);return _0x2079f2===_0x4666fe?{'startOffset':_0x2079f2,'endOffset':_0x2079f2}:w(_0xb587be,_0x2079f2,_0x4666fe);}function te(_0x1728b){const _0x3ea57e=_0xf87ce0;return _0x1728b[_0x3ea57e(0xca)]['endsWith'](e[_0x3ea57e(0xc0)]['SECTION_BREAK'])?Math['max'](0x0,_0x1728b[_0x3ea57e(0xca)][_0x3ea57e(0xf6)]-0x1):_0x1728b[_0x3ea57e(0xca)][_0x3ea57e(0xf6)];}function ne(_0x42ccfb,_0x83a49a,_0x175c98){const _0x3ec8d0=_0xf87ce0;var _0x49dd3f;let _0x1843d2=Math[_0x3ec8d0(0xa0)](_0x83a49a,_0x175c98),_0x399771=Math[_0x3ec8d0(0xc4)](_0x83a49a,_0x175c98);return!!((_0x49dd3f=_0x42ccfb[_0x3ec8d0(0x107)])!=null&&_0x49dd3f[_0x3ec8d0(0x99)](_0x11bb06=>_0x1843d2>_0x11bb06[_0x3ec8d0(0x108)]&&_0x1843d2<_0x11bb06['endIndex']||_0x399771>_0x11bb06[_0x3ec8d0(0x108)]&&_0x399771<_0x11bb06[_0x3ec8d0(0x90)]||_0x1843d2<=_0x11bb06[_0x3ec8d0(0x108)]&&_0x399771>=_0x11bb06['endIndex']));}function w(_0x3c1580,_0x32ac20,_0x4546ad){const _0x215c55=_0xf87ce0;var _0x1a2d3b,_0x31b1d6;let _0x5d8331=[...(_0x1a2d3b=_0x3c1580[_0x215c55(0x101)])==null?[]:_0x1a2d3b]['sort']((_0xceb3ee,_0x304f9c)=>_0xceb3ee[_0x215c55(0x108)]-_0x304f9c[_0x215c55(0x108)]),_0x2665ac=_0x5d8331[_0x215c55(0xc5)]((_0x155add,_0x4c2b01)=>(_0x4c2b01===0x0?0x0:_0x5d8331[_0x4c2b01-0x1][_0x215c55(0x108)]+0x1)<=_0x32ac20&&_0x32ac20<=_0x155add[_0x215c55(0x108)]),_0x2ef0f3=(_0x31b1d6=_0x5d8331[_0x215c55(0xc5)](_0x1ea63f=>_0x1ea63f['startIndex']>=_0x4546ad-0x1))==null?_0x5d8331[_0x5d8331[_0x215c55(0xf6)]-0x1]:_0x31b1d6;return{'startOffset':_0x2665ac?T(_0x5d8331,_0x2665ac):_0x32ac20,'endOffset':_0x2ef0f3?_0x2ef0f3['startIndex']+0x1:_0x4546ad};}function T(_0x71454d,_0xaa771f){const _0x2bf03e=_0xf87ce0;let _0x270b48=_0x71454d[_0x2bf03e(0xfc)](_0xaa771f);return _0x270b48>0x0?_0x71454d[_0x270b48-0x1][_0x2bf03e(0x108)]+0x1:0x0;}function E(_0xd6ee8b,_0x3220e3,_0x5a72c4){const _0x22faac=_0xf87ce0;var _0x5f155b;return Math['max'](T((_0x5f155b=_0xd6ee8b[_0x22faac(0x101)])==null?[]:_0x5f155b,_0x5a72c4),_0x3220e3[_0x22faac(0x108)]+0x1);}function D(_0x23ff59,_0x4b654c){const _0x1574b5=_0xf87ce0;return _0x23ff59[_0x1574b5(0xca)][_0x4b654c[_0x1574b5(0x90)]]===e[_0x1574b5(0xc0)][_0x1574b5(0xef)]?_0x4b654c[_0x1574b5(0x90)]:_0x23ff59[_0x1574b5(0xca)][_0x4b654c[_0x1574b5(0x90)]+0x1]===e[_0x1574b5(0xc0)][_0x1574b5(0xef)]?_0x4b654c[_0x1574b5(0x90)]+0x1:_0x4b654c[_0x1574b5(0x90)];}function re(_0x141994,_0x22186e,_0x4f40f8,_0x1f2056){const _0x2aa425=_0xf87ce0;var _0x1ae876,_0x1a8974;let _0x7be967=D(_0x141994,_0x22186e),_0x9dc291=((_0x1ae876=_0x141994['paragraphs'])==null?[]:_0x1ae876)[_0x2aa425(0xc5)](_0x43970b=>_0x43970b['startIndex']===_0x7be967+0x1);if(!_0x9dc291||_0x1f2056!=null&&_0x9dc291[_0x2aa425(0x108)]!==_0x1f2056||_0x4f40f8<_0x7be967||_0x4f40f8>_0x9dc291['startIndex']+0x1||_0x141994['dataStream'][_0x9dc291[_0x2aa425(0x108)]]!==e[_0x2aa425(0xc0)]['PARAGRAPH'])return null;let _0x2e1232=T((_0x1a8974=_0x141994['paragraphs'])==null?[]:_0x1a8974,_0x9dc291),_0x35c435=_0x141994['dataStream']['slice'](_0x2e1232,_0x9dc291[_0x2aa425(0x108)]);return Array['from'](_0x35c435)[_0x2aa425(0xe1)](_0x5c545f=>_0x5c545f===e[_0x2aa425(0xc0)][_0x2aa425(0xef)])?{'paragraph':_0x9dc291,'endTokenOffset':_0x7be967}:null;}function O(_0x303689,_0x5868cb,_0x38c92e,_0x49698d={}){const _0x229070=_0xf87ce0;var _0x385906,_0x1a7a60;if(_0x38c92e){if(_0x303689[_0x229070(0xca)]=''+_0x303689['dataStream'][_0x229070(0xc8)](0x0,_0x5868cb)+_0x38c92e+_0x303689['dataStream'][_0x229070(0xc8)](_0x5868cb),ie(_0x303689,_0x5868cb,_0x38c92e['length']),(_0x385906=_0x49698d[_0x229070(0x101)])!=null&&_0x385906[_0x229070(0xf6)]){var _0x23bcfd;_0x303689[_0x229070(0x101)]=[...(_0x23bcfd=_0x303689[_0x229070(0x101)])==null?[]:_0x23bcfd,..._0x49698d[_0x229070(0x101)]['map'](_0x5ac054=>({..._0x5ac054,'startIndex':_0x5ac054[_0x229070(0x108)]+_0x5868cb}))]['sort']((_0x2f42d5,_0x2cea23)=>_0x2f42d5[_0x229070(0x108)]-_0x2cea23['startIndex']);}if((_0x1a7a60=_0x49698d[_0x229070(0xf3)])!=null&&_0x1a7a60['length']){var _0x1ecc7f;_0x303689[_0x229070(0xf3)]=[...(_0x1ecc7f=_0x303689[_0x229070(0xf3)])==null?[]:_0x1ecc7f,..._0x49698d[_0x229070(0xf3)][_0x229070(0x91)](_0x7a8901=>({..._0x7a8901,'startIndex':_0x7a8901[_0x229070(0x108)]+_0x5868cb,'endIndex':_0x7a8901['endIndex']+_0x5868cb}))][_0x229070(0xbf)]((_0x211574,_0x1d996b)=>_0x211574['startIndex']-_0x1d996b[_0x229070(0x108)]);}}}function k(_0xe64867,_0x409ec7,_0xaaf3dc){const _0x3949dd=_0xf87ce0;let _0x35bb64=_0xaaf3dc-_0x409ec7;_0xe64867[_0x3949dd(0xca)]=''+_0xe64867[_0x3949dd(0xca)][_0x3949dd(0xc8)](0x0,_0x409ec7)+_0xe64867[_0x3949dd(0xca)]['slice'](_0xaaf3dc),ae(_0xe64867,_0x409ec7,_0x35bb64);}function ie(_0x53329c,_0xd60746,_0x4421e5){const _0xdfb1ba=_0xf87ce0;_0x53329c['paragraphs']=A(_0x53329c[_0xdfb1ba(0x101)],_0xd60746,_0x4421e5),_0x53329c[_0xdfb1ba(0xcf)]=A(_0x53329c[_0xdfb1ba(0xcf)],_0xd60746,_0x4421e5),_0x53329c[_0xdfb1ba(0xea)]=A(_0x53329c[_0xdfb1ba(0xea)],_0xd60746,_0x4421e5),_0x53329c[_0xdfb1ba(0xd5)]=M(_0x53329c['textRuns'],_0xd60746,_0x4421e5),_0x53329c[_0xdfb1ba(0x107)]=N(_0x53329c[_0xdfb1ba(0x107)],_0xd60746,_0x4421e5),_0x53329c[_0xdfb1ba(0x94)]=N(_0x53329c[_0xdfb1ba(0x94)],_0xd60746,_0x4421e5),_0x53329c[_0xdfb1ba(0xe6)]=N(_0x53329c['customDecorations'],_0xd60746,_0x4421e5),_0x53329c['blockRanges']=N(_0x53329c['blockRanges'],_0xd60746,_0x4421e5);}function ae(_0x383513,_0x19b147,_0x198fdf){const _0x130b13=_0xf87ce0;var _0x305969,_0x150aa4;_0x383513[_0x130b13(0x101)]=j(_0x383513[_0x130b13(0x101)],_0x19b147,_0x198fdf),_0x383513[_0x130b13(0xcf)]=j(_0x383513[_0x130b13(0xcf)],_0x19b147,_0x198fdf),_0x383513['customBlocks']=j(_0x383513[_0x130b13(0xea)],_0x19b147,_0x198fdf),_0x383513[_0x130b13(0xd5)]=(_0x305969=P((_0x150aa4=_0x383513[_0x130b13(0xd5)])==null?void 0x0:_0x150aa4[_0x130b13(0x91)](_0x4295d3=>({..._0x4295d3,'startIndex':_0x4295d3['st'],'endIndex':_0x4295d3['ed']})),_0x19b147,_0x198fdf))==null?void 0x0:_0x305969[_0x130b13(0x91)](_0x25bfe4=>{let {startIndex:_0x1ec5ec,endIndex:_0x40f2a1,..._0x486c4e}=_0x25bfe4;return{..._0x486c4e,'st':_0x1ec5ec,'ed':_0x40f2a1};}),_0x383513[_0x130b13(0x107)]=P(_0x383513[_0x130b13(0x107)],_0x19b147,_0x198fdf),_0x383513[_0x130b13(0x94)]=P(_0x383513[_0x130b13(0x94)],_0x19b147,_0x198fdf),_0x383513[_0x130b13(0xe6)]=P(_0x383513['customDecorations'],_0x19b147,_0x198fdf),_0x383513[_0x130b13(0xf3)]=P(_0x383513[_0x130b13(0xf3)],_0x19b147,_0x198fdf);}function A(_0x114131,_0x56a57e,_0x274d79){const _0x7dea11=_0xf87ce0;return _0x114131==null?void 0x0:_0x114131[_0x7dea11(0x91)](_0x3f30be=>_0x3f30be[_0x7dea11(0x108)]>=_0x56a57e?{..._0x3f30be,'startIndex':_0x3f30be[_0x7dea11(0x108)]+_0x274d79}:_0x3f30be);}function j(_0x115573,_0x414316,_0x1c6da2){const _0x133918=_0xf87ce0;let _0x154341=_0x414316+_0x1c6da2;return _0x115573==null?void 0x0:_0x115573[_0x133918(0x91)](_0x29db45=>_0x29db45['startIndex']>=_0x414316&&_0x29db45[_0x133918(0x108)]<_0x154341?null:_0x29db45['startIndex']>=_0x154341?{..._0x29db45,'startIndex':_0x29db45['startIndex']-_0x1c6da2}:_0x29db45)[_0x133918(0x8b)](_0xb136e2=>_0xb136e2!=null);}function M(_0x40aede,_0x47a941,_0x331e3a){const _0x2f8b71=_0xf87ce0;return _0x40aede==null?void 0x0:_0x40aede[_0x2f8b71(0x91)](_0x1bcc8a=>_0x1bcc8a['st']>=_0x47a941?{..._0x1bcc8a,'st':_0x1bcc8a['st']+_0x331e3a,'ed':_0x1bcc8a['ed']+_0x331e3a}:_0x1bcc8a['ed']>_0x47a941?{..._0x1bcc8a,'ed':_0x1bcc8a['ed']+_0x331e3a}:_0x1bcc8a);}function N(_0x557b7e,_0x1c4563,_0x2d563f){const _0x5a0994=_0xf87ce0;return _0x557b7e==null?void 0x0:_0x557b7e[_0x5a0994(0x91)](_0xdda623=>_0xdda623[_0x5a0994(0x108)]>=_0x1c4563?{..._0xdda623,'startIndex':_0xdda623[_0x5a0994(0x108)]+_0x2d563f,'endIndex':_0xdda623[_0x5a0994(0x90)]+_0x2d563f}:_0xdda623[_0x5a0994(0x90)]>=_0x1c4563?{..._0xdda623,'endIndex':_0xdda623[_0x5a0994(0x90)]+_0x2d563f}:_0xdda623);}function P(_0x517353,_0x27240d,_0x5a8658){const _0x5aa367=_0xf87ce0;let _0x449617=_0x27240d+_0x5a8658;return _0x517353==null?void 0x0:_0x517353[_0x5aa367(0x91)](_0x4a8f3b=>_0x4a8f3b[_0x5aa367(0x108)]>=_0x27240d&&_0x4a8f3b[_0x5aa367(0x90)]<_0x449617?null:_0x4a8f3b[_0x5aa367(0x108)]>=_0x449617?{..._0x4a8f3b,'startIndex':_0x4a8f3b['startIndex']-_0x5a8658,'endIndex':_0x4a8f3b[_0x5aa367(0x90)]-_0x5a8658}:_0x4a8f3b[_0x5aa367(0x90)]>=_0x27240d?{..._0x4a8f3b,'startIndex':_0x4a8f3b[_0x5aa367(0x108)]<_0x27240d?_0x4a8f3b[_0x5aa367(0x108)]:_0x27240d,'endIndex':Math['max'](_0x27240d,_0x4a8f3b[_0x5aa367(0x90)]-_0x5a8658)}:_0x4a8f3b)[_0x5aa367(0x8b)](_0x52ba0e=>_0x52ba0e!=null);}function F(_0x47c512,_0x1da35b,_0x54569a,_0x5f2398){_0x47c512==null||_0x47c512['forEach'](_0x5eb95d=>{const _0x1baa31=_0x55d5;_0x5eb95d[_0x1baa31(0x108)]>=_0x1da35b&&_0x5eb95d[_0x1baa31(0x108)]<_0x54569a&&(_0x5eb95d[_0x1baa31(0x108)]+=_0x5f2398);});}function oe(_0x3911d8,_0x2dccf8,_0x364f6d,_0x4929b0){_0x3911d8==null||_0x3911d8['forEach'](_0x315efe=>{_0x315efe['st']>=_0x2dccf8&&_0x315efe['st']<_0x364f6d?(_0x315efe['st']+=_0x4929b0,_0x315efe['ed']+=_0x4929b0):_0x315efe['ed']>_0x2dccf8&&_0x315efe['ed']<_0x364f6d&&(_0x315efe['ed']+=_0x4929b0);});}function I(_0x5f228f,_0x5c3676,_0x387af9,_0x55667f){_0x5f228f==null||_0x5f228f['forEach'](_0x3a315c=>{const _0x18d11d=_0x55d5;_0x3a315c[_0x18d11d(0x108)]>=_0x5c3676&&_0x3a315c['startIndex']<_0x387af9?(_0x3a315c['startIndex']+=_0x55667f,_0x3a315c[_0x18d11d(0x90)]+=_0x55667f):_0x3a315c[_0x18d11d(0x90)]>_0x5c3676&&_0x3a315c['endIndex']<_0x387af9&&(_0x3a315c[_0x18d11d(0x90)]+=_0x55667f);});}const L={'id':_0xf87ce0(0xce),'type':e['CommandType'][_0xf87ce0(0xd2)],'handler':_0x2a5488=>{const _0x7bb346=_0xf87ce0;let _0x4d7749=U(_0x2a5488);if(_0x4d7749)return _0x2a5488['get'](e[_0x7bb346(0x9f)])[_0x7bb346(0xb5)](R['id'],{'startOffset':_0x4d7749[_0x7bb346(0xa4)],'endOffset':_0x4d7749[_0x7bb346(0xfd)],'unitId':_0x4d7749[_0x7bb346(0xb2)]});let _0x56ea5f=W(_0x2a5488);if(!_0x56ea5f)return!0x1;let _0x419b65=_0x56ea5f[_0x7bb346(0x108)]+0x1;return _0x2a5488['get'](e['ICommandService'])[_0x7bb346(0xb5)](R['id'],{'startOffset':_0x419b65,'endOffset':_0x419b65});}},R={'id':_0xf87ce0(0xae),'type':e[_0xf87ce0(0xac)][_0xf87ce0(0xd2)],'handler':(_0x39c7f5,_0x3c74bc)=>{const _0x131861=_0xf87ce0;var _0x355a9e,_0x480ae9,_0x351c6c;let _0x4b92ab=V(_0x39c7f5,_0x3c74bc==null?void 0x0:_0x3c74bc['unitId']);if(!_0x4b92ab)return!0x1;let _0x5b4898=H(_0x39c7f5),_0x4d2800=o({'blockId':(_0x355a9e=_0x3c74bc==null?void 0x0:_0x3c74bc['blockId'])==null?(0x0,e['generateRandomId'])(0x6):_0x355a9e,'documentData':_0x4b92ab[_0x131861(0xb0)],'endOffset':(_0x480ae9=_0x3c74bc==null?void 0x0:_0x3c74bc['endOffset'])==null?_0x5b4898==null?void 0x0:_0x5b4898[_0x131861(0xfd)]:_0x480ae9,'startOffset':(_0x351c6c=_0x3c74bc==null?void 0x0:_0x3c74bc[_0x131861(0xa4)])==null?_0x5b4898==null?void 0x0:_0x5b4898[_0x131861(0xa4)]:_0x351c6c});return q(_0x4b92ab[_0x131861(0xd0)],_0x4b92ab[_0x131861(0xb2)],_0x4b92ab[_0x131861(0xb0)],_0x4d2800[_0x131861(0xc6)],_0x4d2800['cursorOffset']);}},z={'id':_0xf87ce0(0x103),'type':e[_0xf87ce0(0xac)]['COMMAND'],'handler':(_0x7abc9c,_0x12fea6)=>{const _0x3520b9=_0xf87ce0;var _0xda5124,_0x259524;let _0x133591=V(_0x7abc9c,_0x12fea6==null?void 0x0:_0x12fea6[_0x3520b9(0xb2)]);if(!_0x133591)return!0x1;let _0x475d43=(_0xda5124=_0x12fea6==null?void 0x0:_0x12fea6[_0x3520b9(0x9b)])==null?(_0x259524=H(_0x7abc9c))==null?void 0x0:_0x259524[_0x3520b9(0xa4)]:_0xda5124;if(_0x475d43==null)return!0x1;let _0x51fa7f=l({'cursorOffset':_0x475d43,'documentData':_0x133591[_0x3520b9(0xb0)]});return _0x51fa7f?q(_0x133591[_0x3520b9(0xd0)],_0x133591['unitId'],_0x133591['previousDocumentData'],_0x51fa7f[_0x3520b9(0xc6)],_0x51fa7f[_0x3520b9(0x9b)]):!0x1;}},B={'id':_0xf87ce0(0xff),'type':e[_0xf87ce0(0xac)][_0xf87ce0(0xd2)],'handler':(_0xbbf924,_0x4b0dac)=>{const _0x12306a=_0xf87ce0;var _0xaaf3d6,_0x5055b5;let _0x3573fd=V(_0xbbf924,_0x4b0dac==null?void 0x0:_0x4b0dac[_0x12306a(0xb2)]);if(!_0x3573fd)return!0x1;let _0x3005eb=(_0xaaf3d6=_0x4b0dac==null?void 0x0:_0x4b0dac[_0x12306a(0x9b)])==null?(_0x5055b5=H(_0xbbf924))==null?void 0x0:_0x5055b5['startOffset']:_0xaaf3d6;if(_0x3005eb==null)return!0x1;let _0x2ca04a=u({'cursorOffset':_0x3005eb,'documentData':_0x3573fd[_0x12306a(0xb0)],'paragraphStartIndex':_0x4b0dac==null?void 0x0:_0x4b0dac[_0x12306a(0xa8)]});return _0x2ca04a?q(_0x3573fd[_0x12306a(0xd0)],_0x3573fd[_0x12306a(0xb2)],_0x3573fd[_0x12306a(0xb0)],_0x2ca04a['nextDocumentData'],_0x2ca04a[_0x12306a(0x9b)]):!0x1;}};function V(_0x3ffdab,_0xc2e4f7){const _0x13f391=_0xf87ce0;let _0x2cbc8c=_0x3ffdab[_0x13f391(0xdf)](e[_0x13f391(0xc1)]),_0x1084bc=_0xc2e4f7?_0x2cbc8c[_0x13f391(0xa7)](_0xc2e4f7):_0x2cbc8c[_0x13f391(0xf2)](e[_0x13f391(0x9e)]['UNIVER_DOC']);return _0x1084bc?{'commandService':_0x3ffdab['get'](e['ICommandService']),'previousDocumentData':_0x1084bc[_0x13f391(0xf4)](),'unitId':_0x1084bc['getUnitId']()}:null;}function H(_0x3c8bf5){const _0x114c79=_0xf87ce0;var _0xa8b671;return(_0xa8b671=_0x3c8bf5['get'](t[_0x114c79(0x97)])[_0x114c79(0xe7)]())==null?void 0x0:_0xa8b671[0x0];}function U(_0x1af792){const _0x146011=_0xf87ce0;var _0x313d7e;let _0x6372fe=(_0x313d7e=_0x1af792[_0x146011(0xdf)](e[_0x146011(0xc1)])['getCurrentUnitOfType'](e[_0x146011(0x9e)]['UNIVER_DOC']))==null?void 0x0:_0x313d7e[_0x146011(0x96)]();try{return _0x1af792['get'](n[_0x146011(0xd8)])[_0x146011(0x98)](_0x6372fe);}catch{return null;}}function W(_0x9399ca){const _0x269eb2=_0xf87ce0;var _0x2494e1,_0x1f714c,_0x281fd5;let _0x3f03c4=H(_0x9399ca);if(!_0x3f03c4)return null;let _0x113578=_0x9399ca[_0x269eb2(0xdf)](e[_0x269eb2(0xc1)])[_0x269eb2(0xf2)](e[_0x269eb2(0x9e)][_0x269eb2(0xcd)]),_0x2f0584=_0x113578==null?void 0x0:_0x113578[_0x269eb2(0xdd)]();return _0x2f0584?(_0x2494e1=e['BuildTextUtils'][_0x269eb2(0x88)][_0x269eb2(0xab)](_0x3f03c4,(_0x1f714c=_0x2f0584[_0x269eb2(0x101)])==null?[]:_0x1f714c,(_0x281fd5=_0x2f0584[_0x269eb2(0xca)])==null?'':_0x281fd5)[0x0])==null?null:_0x2494e1:null;}function G(_0xbf8546,_0x279c76){const _0x22623c=_0xf87ce0;var _0x3a5d4f,_0xbc70f1,_0x3d2409,_0x435049,_0x347501,_0x3b20f5,_0xefc458,_0x5ab64c,_0x398b9d,_0x5de1da,_0x215d48,_0x3ab217,_0x335096,_0x2269fc,_0x563b20,_0x4e341a,_0x5245c9,_0x2d3d2d;let _0x1a6ce5=e[_0x22623c(0xcc)]['getInstance']();return[K(_0x1a6ce5,[_0x22623c(0xa1),_0x22623c(0xca)],(_0x3a5d4f=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0x3a5d4f[_0x22623c(0xca)],(_0xbc70f1=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0xbc70f1[_0x22623c(0xca)]),K(_0x1a6ce5,['body','paragraphs'],(_0x3d2409=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0x3d2409[_0x22623c(0x101)],(_0x435049=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0x435049[_0x22623c(0x101)]),K(_0x1a6ce5,['body',_0x22623c(0xcf)],(_0x347501=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0x347501['sectionBreaks'],(_0x3b20f5=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0x3b20f5[_0x22623c(0xcf)]),K(_0x1a6ce5,[_0x22623c(0xa1),_0x22623c(0xd5)],(_0xefc458=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0xefc458[_0x22623c(0xd5)],(_0x5ab64c=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0x5ab64c[_0x22623c(0xd5)]),K(_0x1a6ce5,['body',_0x22623c(0xea)],(_0x398b9d=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0x398b9d[_0x22623c(0xea)],(_0x5de1da=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0x5de1da[_0x22623c(0xea)]),K(_0x1a6ce5,[_0x22623c(0xa1),'customRanges'],(_0x215d48=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0x215d48[_0x22623c(0x94)],(_0x3ab217=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0x3ab217[_0x22623c(0x94)]),K(_0x1a6ce5,[_0x22623c(0xa1),_0x22623c(0xe6)],(_0x335096=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0x335096[_0x22623c(0xe6)],(_0x2269fc=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0x2269fc[_0x22623c(0xe6)]),K(_0x1a6ce5,[_0x22623c(0xa1),_0x22623c(0x107)],(_0x563b20=_0xbf8546['body'])==null?void 0x0:_0x563b20[_0x22623c(0x107)],(_0x4e341a=_0x279c76['body'])==null?void 0x0:_0x4e341a[_0x22623c(0x107)]),K(_0x1a6ce5,[_0x22623c(0xa1),'blockRanges'],(_0x5245c9=_0xbf8546[_0x22623c(0xa1)])==null?void 0x0:_0x5245c9[_0x22623c(0xf3)],(_0x2d3d2d=_0x279c76[_0x22623c(0xa1)])==null?void 0x0:_0x2d3d2d[_0x22623c(0xf3)])][_0x22623c(0x8b)](Boolean)[_0x22623c(0xf0)]((_0x5579e0,_0x28a520)=>e[_0x22623c(0xcc)][_0x22623c(0xeb)](_0x5579e0,_0x28a520),null);}function K(_0x1aed15,_0x23153b,_0x1ce415,_0x142253){const _0x4046fe=_0xf87ce0;return e[_0x4046fe(0xaf)][_0x4046fe(0x8f)](_0x1ce415,_0x142253)?null:_0x1aed15[_0x4046fe(0xd7)](_0x23153b,_0x1ce415,_0x142253);}function q(_0x3b55f1,_0x577c33,_0x5c3b8b,_0x29b096,_0x3aa56d){const _0x4dc8a8=_0xf87ce0;let _0x283f06=G(_0x5c3b8b,_0x29b096);return _0x283f06?!!_0x3b55f1[_0x4dc8a8(0xb5)](t[_0x4dc8a8(0xe2)]['id'],{'unitId':_0x577c33,'actions':_0x283f06,'textRanges':[{'startOffset':_0x3aa56d,'endOffset':_0x3aa56d,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var se='@univerjs-pro/docs-quote',ce=_0xf87ce0(0xbb);const J={};function Y(_0x26a889,_0x421c68){return function(_0x30a538,_0xd742d2){_0x421c68(_0x30a538,_0xd742d2,_0x26a889);};}function X(_0x9b345e,_0x17a260,_0x149fb7,_0x51d7d3){const _0x511842=_0xf87ce0;var _0x42ab2c=arguments[_0x511842(0xf6)],_0x4c756a=_0x42ab2c<0x3?_0x17a260:_0x51d7d3===null?_0x51d7d3=Object[_0x511842(0x95)](_0x17a260,_0x149fb7):_0x51d7d3,_0x2b94f9;if(typeof Reflect==_0x511842(0x106)&&typeof Reflect[_0x511842(0xf9)]==_0x511842(0xfe))_0x4c756a=Reflect[_0x511842(0xf9)](_0x9b345e,_0x17a260,_0x149fb7,_0x51d7d3);else{for(var _0x399602=_0x9b345e[_0x511842(0xf6)]-0x1;_0x399602>=0x0;_0x399602--)(_0x2b94f9=_0x9b345e[_0x399602])&&(_0x4c756a=(_0x42ab2c<0x3?_0x2b94f9(_0x4c756a):_0x42ab2c>0x3?_0x2b94f9(_0x17a260,_0x149fb7,_0x4c756a):_0x2b94f9(_0x17a260,_0x149fb7))||_0x4c756a);}return _0x42ab2c>0x3&&_0x4c756a&&Object[_0x511842(0xa3)](_0x17a260,_0x149fb7,_0x4c756a),_0x4c756a;}function Z(_0x146482){'@babel/helpers - typeof';const _0x11147a=_0xf87ce0;return Z=typeof Symbol==_0x11147a(0xfe)&&typeof Symbol['iterator']=='symbol'?function(_0x373c34){return typeof _0x373c34;}:function(_0x4e5c24){const _0x46cde3=_0x11147a;return _0x4e5c24&&typeof Symbol=='function'&&_0x4e5c24[_0x46cde3(0xfb)]===Symbol&&_0x4e5c24!==Symbol[_0x46cde3(0xf8)]?_0x46cde3(0x105):typeof _0x4e5c24;},Z(_0x146482);}function le(_0xc051ff,_0x296c6b){const _0x4cdca4=_0xf87ce0;if(Z(_0xc051ff)!='object'||!_0xc051ff)return _0xc051ff;var _0x7c7b41=_0xc051ff[Symbol['toPrimitive']];if(_0x7c7b41!==void 0x0){var _0x4a695e=_0x7c7b41[_0x4cdca4(0x100)](_0xc051ff,_0x296c6b||_0x4cdca4(0xdc));if(Z(_0x4a695e)!=_0x4cdca4(0x106))return _0x4a695e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x296c6b===_0x4cdca4(0xa6)?String:Number)(_0xc051ff);}function ue(_0x26991c){const _0x2d90ee=_0xf87ce0;var _0xb4b7d1=le(_0x26991c,_0x2d90ee(0xa6));return Z(_0xb4b7d1)=='symbol'?_0xb4b7d1:_0xb4b7d1+'';}function Q(_0x57b9ad,_0x4c777a,_0x977aa1){return(_0x4c777a=ue(_0x4c777a))in _0x57b9ad?Object['defineProperty'](_0x57b9ad,_0x4c777a,{'value':_0x977aa1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57b9ad[_0x4c777a]=_0x977aa1,_0x57b9ad;}let $=class extends e[_0xf87ce0(0xe5)]{constructor(_0x54bdac=J,_0x4d23dd,_0x3e1568,_0x25adf1){const _0x21c77b=_0xf87ce0;super(),this['_config']=_0x54bdac,this[_0x21c77b(0xd1)]=_0x4d23dd,this[_0x21c77b(0xfa)]=_0x3e1568,this[_0x21c77b(0xf5)]=_0x25adf1;let {..._0x498c33}=(0x0,e[_0x21c77b(0x8d)])({},J,this[_0x21c77b(0x8a)]);this['_configService'][_0x21c77b(0x10a)](_0x21c77b(0xc9),_0x498c33);}[_0xf87ce0(0xe0)](){const _0x512153=_0xf87ce0;[R,L,z,B][_0x512153(0x104)](_0x33c63d=>this[_0x512153(0xbe)](this['_commandService'][_0x512153(0xa9)](_0x33c63d)));}};Q($,_0xf87ce0(0xdb),i),Q($,_0xf87ce0(0xaa),se),Q($,'version',ce),Q($,_0xf87ce0(0x87),e[_0xf87ce0(0x9e)][_0xf87ce0(0xcd)]),$=X([(0x0,e[_0xf87ce0(0xc7)])(r[_0xf87ce0(0x9c)],t[_0xf87ce0(0xbd)]),Y(0x1,(0x0,e[_0xf87ce0(0x89)])(e[_0xf87ce0(0xee)])),Y(0x2,e[_0xf87ce0(0x9f)]),Y(0x3,e[_0xf87ce0(0xf1)])],$),exports['DOCS_QUOTE_BLOCK_TYPE']=a,exports[_0xf87ce0(0xc3)]=i,exports[_0xf87ce0(0xe4)]=B,exports[_0xf87ce0(0xda)]=z,exports['DocsQuoteInsertBelowCommand']=L,exports[_0xf87ce0(0x109)]=R,Object[_0xf87ce0(0xa3)](exports,_0xf87ce0(0x9d),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0xf87ce0(0xd3)]=u,exports['buildExitQuoteActions']=l,exports[_0xf87ce0(0x86)]=o,exports[_0xf87ce0(0xb9)]=p;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x33e87d=_0x3a04;(function(_0x4a6592,_0x357067){const _0x3a1d72=_0x3a04,_0x5027b0=_0x4a6592();while(!![]){try{const _0x1100d8=-parseInt(_0x3a1d72(0x145))/0x1+parseInt(_0x3a1d72(0x17d))/0x2*(parseInt(_0x3a1d72(0x181))/0x3)+-parseInt(_0x3a1d72(0x175))/0x4*(-parseInt(_0x3a1d72(0x173))/0x5)+-parseInt(_0x3a1d72(0x141))/0x6+-parseInt(_0x3a1d72(0x186))/0x7*(parseInt(_0x3a1d72(0x185))/0x8)+-parseInt(_0x3a1d72(0x13e))/0x9+-parseInt(_0x3a1d72(0x16a))/0xa*(-parseInt(_0x3a1d72(0x19a))/0xb);if(_0x1100d8===_0x357067)break;else _0x5027b0['push'](_0x5027b0['shift']());}catch(_0x592c4a){_0x5027b0['push'](_0x5027b0['shift']());}}}(_0x55cf,0x9329a));import{CommandType as _0x5f6211,DataStreamTreeTokenType as _0x5a2dcf,ICommandService as _0x10e108,IUniverInstanceService as _0x36d1d5,JSONX as _0x3d3e5b,Tools as _0x4b281d,UniverInstanceType as _0x1c44ec,generateRandomId as _0x482154}from'@univerjs/core';import{FDocument as _0x1b5128}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x222c9f,RichTextEditingMutation as _0x2b2965}from'@univerjs/docs';import'@univerjs/docs-ui';const d='quote';function f(_0x5723e8){const _0x5555cb=_0x3a04;var _0x53fc15,_0x2621c6,_0x13cfb6;let _0xc3978d=T(_0x5723e8[_0x5555cb(0x13c)]),_0x3c7065=E(_0xc3978d),_0x34c412=p(_0x5723e8[_0x5555cb(0x167)],_0x5723e8['endOffset']),_0x19f821=_0x34c412?(_0x53fc15=_0x3c7065[_0x5555cb(0x187)])==null?void 0x0:_0x53fc15['find'](_0x56e111=>_0x56e111[_0x5555cb(0x182)]===_0x34c412[_0x5555cb(0x167)]&&_0x56e111[_0x5555cb(0x150)]+0x1===_0x34c412[_0x5555cb(0x142)]):void 0x0,{startOffset:_0x35bb30,endOffset:_0x2c2589}=_0x19f821?_0x34c412:D(_0x3c7065,_0x5723e8[_0x5555cb(0x167)],_0x5723e8[_0x5555cb(0x142)]),_0x1f6023=O(_0x3c7065,_0x35bb30,_0x2c2589),_0x5e984f=(_0x2621c6=_0x19f821==null?void 0x0:_0x19f821[_0x5555cb(0x16e)])==null?_0x5723e8[_0x5555cb(0x16e)]:_0x2621c6;if(_0x19f821)return _0x19f821[_0x5555cb(0x17f)]=d,m(_0x3c7065,_0x35bb30,_0x2c2589),x(_0x3c7065,_0x35bb30,_0x2c2589,_0x1f6023),{'nextDocumentData':_0xc3978d,'cursorOffset':_0x35bb30+0x1};if(_0x35bb30===_0x2c2589){let _0x545c08=''+_0x5a2dcf[_0x5555cb(0x149)]+_0x5a2dcf[_0x5555cb(0x16c)]+_0x5a2dcf[_0x5555cb(0x18a)];return P(_0x3c7065,_0x35bb30,_0x545c08,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':b(!0x0,!0x0,_0x1f6023)}],'blockRanges':[{'blockId':_0x5e984f,'blockType':d,'startIndex':0x0,'endIndex':_0x545c08['length']-0x1}]}),{'nextDocumentData':_0xc3978d,'cursorOffset':_0x35bb30+0x1};}return P(_0x3c7065,_0x2c2589,_0x5a2dcf['BLOCK_END']),P(_0x3c7065,_0x35bb30,_0x5a2dcf['BLOCK_START']),x(_0x3c7065,_0x35bb30,_0x2c2589+0x1,_0x1f6023),_0x3c7065['blockRanges']=[...(_0x13cfb6=_0x3c7065['blockRanges'])==null?[]:_0x13cfb6,{'blockId':_0x5e984f,'blockType':d,'startIndex':_0x35bb30,'endIndex':_0x2c2589+0x1}][_0x5555cb(0x14b)]((_0x19196b,_0x2fbdc2)=>_0x19196b[_0x5555cb(0x182)]-_0x2fbdc2[_0x5555cb(0x182)]),{'nextDocumentData':_0xc3978d,'cursorOffset':_0x35bb30+0x1};}function p(_0x561533,_0x4a133b){const _0x266127=_0x3a04;return _0x561533==null||_0x4a133b==null||_0x561533===_0x4a133b?null:{'startOffset':Math[_0x266127(0x190)](_0x561533,_0x4a133b),'endOffset':Math[_0x266127(0x178)](_0x561533,_0x4a133b)};}function m(_0x2749f3,_0x1b90e5,_0x325b95){const _0x5553b6=_0x3a04;var _0x36eaf5;((_0x36eaf5=_0x2749f3[_0x5553b6(0x15b)])==null?[]:_0x36eaf5)[_0x5553b6(0x160)](_0x429d4d=>_0x429d4d[_0x5553b6(0x182)]>_0x1b90e5&&_0x429d4d[_0x5553b6(0x182)]<_0x325b95)[_0x5553b6(0x18e)](_0x2fd2e5=>{const _0x1af0e7=_0x5553b6;var _0x27ce0a;let _0xd97b18={...(_0x27ce0a=_0x2fd2e5[_0x1af0e7(0x151)])==null?{}:_0x27ce0a};delete _0xd97b18[_0x1af0e7(0x143)],delete _0xd97b18['spaceAbove'],delete _0xd97b18[_0x1af0e7(0x17a)],delete _0xd97b18[_0x1af0e7(0x166)],_0x2fd2e5[_0x1af0e7(0x151)]=_0xd97b18;});}function h(_0x28f1fd){const _0x5d696f=_0x3a04;var _0x5b31fb,_0x864130;let _0x12a497=T(_0x28f1fd['documentData']),_0x161153=E(_0x12a497),_0x3e9d92=y(_0x161153,_0x28f1fd[_0x5d696f(0x156)]);if(!_0x3e9d92)return null;let _0x1b9d17=C(_0x161153,_0x3e9d92),_0x52608a=_0x1b9d17[_0x1b9d17[_0x5d696f(0x162)]-0x1];if(!_0x52608a||!ee(_0x161153,_0x3e9d92,_0x52608a)||_0x28f1fd[_0x5d696f(0x156)]<_0x52608a[_0x5d696f(0x182)])return null;let _0x47e2a8=j(_0x161153,_0x3e9d92,_0x52608a);if(_0x47e2a8>=_0x3e9d92[_0x5d696f(0x150)])return null;_0x161153[_0x5d696f(0x176)]=[_0x161153[_0x5d696f(0x176)][_0x5d696f(0x18c)](0x0,_0x47e2a8),_0x5a2dcf[_0x5d696f(0x18a)],_0x161153['dataStream'][_0x5d696f(0x18c)](_0x47e2a8,_0x3e9d92[_0x5d696f(0x150)]),_0x161153[_0x5d696f(0x176)]['slice'](_0x3e9d92['endIndex']+0x1)][_0x5d696f(0x17b)](''),V(_0x161153['paragraphs'],_0x47e2a8,_0x3e9d92[_0x5d696f(0x150)],0x1),V(_0x161153['sectionBreaks'],_0x47e2a8,_0x3e9d92[_0x5d696f(0x150)],0x1),V(_0x161153[_0x5d696f(0x170)],_0x47e2a8,_0x3e9d92[_0x5d696f(0x150)],0x1),H(_0x161153['textRuns'],_0x47e2a8,_0x3e9d92[_0x5d696f(0x150)],0x1),U(_0x161153[_0x5d696f(0x14e)],_0x47e2a8,_0x3e9d92['endIndex'],0x1),U(_0x161153[_0x5d696f(0x177)],_0x47e2a8,_0x3e9d92['endIndex'],0x1),U(_0x161153[_0x5d696f(0x153)],_0x47e2a8,_0x3e9d92[_0x5d696f(0x150)],0x1),(_0x5b31fb=_0x161153[_0x5d696f(0x187)])==null||_0x5b31fb['forEach'](_0x238062=>{const _0x56fc10=_0x5d696f;_0x238062===_0x3e9d92||_0x238062['blockId']===_0x3e9d92['blockId']?_0x238062['endIndex']=_0x47e2a8:_0x238062[_0x56fc10(0x182)]>=_0x47e2a8&&_0x238062['startIndex']<_0x3e9d92['endIndex']&&(_0x238062[_0x56fc10(0x182)]+=0x1,_0x238062[_0x56fc10(0x150)]+=0x1);});let _0x48b433=C(_0x161153,{..._0x3e9d92,'endIndex':_0x47e2a8});_0x48b433[_0x5d696f(0x18e)]((_0x4fda29,_0x5a4ebc)=>{const _0x15c8af=_0x5d696f;var _0x312efc;_0x4fda29[_0x15c8af(0x151)]={...(_0x312efc=_0x4fda29['paragraphStyle'])==null?{}:_0x312efc,...b(_0x5a4ebc===0x0,_0x5a4ebc===_0x48b433['length']-0x1)};});let _0x5e773e=(_0x864130=_0x161153[_0x5d696f(0x15b)])==null?void 0x0:_0x864130[_0x5d696f(0x16f)](_0x25a323=>_0x25a323['startIndex']===_0x47e2a8+0x1);return _0x5e773e&&(_0x5e773e[_0x5d696f(0x151)]=S(_0x5e773e['paragraphStyle'])),{'nextDocumentData':_0x12a497,'cursorOffset':_0x47e2a8+0x1};}function g(_0x1a518c){const _0x296c3e=_0x3a04;let _0x487e02=T(_0x1a518c[_0x296c3e(0x13c)]),_0x393a28=E(_0x487e02),_0x3029e8=y(_0x393a28,_0x1a518c[_0x296c3e(0x156)]);return _0x3029e8&&(_(_0x487e02,_0x393a28,_0x3029e8,_0x1a518c[_0x296c3e(0x156)],_0x1a518c[_0x296c3e(0x15a)])||v(_0x487e02,_0x393a28,_0x3029e8,_0x1a518c[_0x296c3e(0x156)]))||null;}function _(_0x289a0b,_0x25520c,_0x34a7cc,_0x2faa2d,_0xb4c204){const _0x2a9a1c=_0x3a04;let _0xd2eb2d=N(_0x25520c,_0x34a7cc,_0x2faa2d,_0xb4c204);if(!_0xd2eb2d)return null;let _0x1982fc=_0xd2eb2d[_0x2a9a1c(0x189)]-0x1;return F(_0x25520c,_0xd2eb2d[_0x2a9a1c(0x180)][_0x2a9a1c(0x182)],_0xd2eb2d[_0x2a9a1c(0x180)][_0x2a9a1c(0x182)]+0x1),{'nextDocumentData':_0x289a0b,'cursorOffset':_0x1982fc};}function v(_0xb5c6c3,_0x37416e,_0x69e1e,_0x433bbf){const _0x370c79=_0x3a04;if(_0x433bbf!==_0x69e1e['startIndex']+0x1)return null;let _0x3f314c=C(_0x37416e,_0x69e1e),_0x2327a1=_0x3f314c[0x0];return!_0x2327a1||j(_0x37416e,_0x69e1e,_0x2327a1)!==_0x433bbf?null:_0x3f314c[_0x370c79(0x162)]===0x1?te(_0xb5c6c3,_0x37416e,_0x69e1e,_0x2327a1):w(_0xb5c6c3,_0x37416e,_0x69e1e,_0x2327a1);}function y(_0x47e301,_0xc71694){const _0x3daa76=_0x3a04;var _0x11aeaa;return(_0x11aeaa=_0x47e301['blockRanges'])==null?void 0x0:_0x11aeaa[_0x3daa76(0x16f)](_0x3ba767=>{const _0x57898d=_0x3daa76;let _0x5eeb85=M(_0x47e301,_0x3ba767);return _0x3ba767[_0x57898d(0x17f)]===_0x57898d(0x17e)&&_0x3ba767[_0x57898d(0x182)]<=_0xc71694&&_0xc71694<=_0x5eeb85+0x2;});}function _0x3a04(_0x28db89,_0x299495){_0x28db89=_0x28db89-0x13c;const _0x55cf1b=_0x55cf();let _0x3a04c6=_0x55cf1b[_0x28db89];return _0x3a04c6;}function b(_0x36e2b5,_0x3b7785,_0x1f5e25=!0x1){return{'indentStart':{'v':0x16},..._0x36e2b5&&_0x1f5e25?{'spaceAbove':{'v':0x8}}:{}};}function x(_0x41ca1c,_0x5189e5,_0x32edbb,_0x4cbb10=!0x1){const _0x4b2973=_0x3a04;var _0x4eb255;let _0x2303ad=((_0x4eb255=_0x41ca1c['paragraphs'])==null?[]:_0x4eb255)[_0x4b2973(0x160)](_0x283589=>_0x283589[_0x4b2973(0x182)]>_0x5189e5&&_0x283589[_0x4b2973(0x182)]<_0x32edbb);_0x2303ad[_0x4b2973(0x18e)]((_0x5df0ff,_0x31d258)=>{const _0x10bb3f=_0x4b2973;var _0x802eb2;_0x5df0ff['paragraphStyle']={...(_0x802eb2=_0x5df0ff[_0x10bb3f(0x151)])==null?{}:_0x802eb2,...b(_0x31d258===0x0,_0x31d258===_0x2303ad[_0x10bb3f(0x162)]-0x1,_0x4cbb10)};});}function S(_0xbbe926){const _0x386fd4=_0x3a04;let _0x285e0d={..._0xbbe926==null?{}:_0xbbe926};return delete _0x285e0d['indentStart'],delete _0x285e0d[_0x386fd4(0x14f)],delete _0x285e0d['spaceBelow'],_0x285e0d;}function C(_0x3b5e7d,_0x111cbd){const _0x5efc5f=_0x3a04;var _0x24d27f;let _0xdd3022=M(_0x3b5e7d,_0x111cbd);return((_0x24d27f=_0x3b5e7d[_0x5efc5f(0x15b)])==null?[]:_0x24d27f)[_0x5efc5f(0x160)](_0x53b447=>_0x53b447[_0x5efc5f(0x182)]>_0x111cbd[_0x5efc5f(0x182)]&&_0x53b447[_0x5efc5f(0x182)]<_0xdd3022);}function ee(_0x39adcf,_0x12644a,_0x47d3fc){const _0x5391b0=_0x3a04;let _0x1fda32=j(_0x39adcf,_0x12644a,_0x47d3fc),_0x10bee2=_0x39adcf[_0x5391b0(0x176)][_0x5391b0(0x18c)](_0x1fda32,_0x47d3fc[_0x5391b0(0x182)]);return Array['from'](_0x10bee2)['every'](_0x4073de=>_0x4073de===_0x5a2dcf[_0x5391b0(0x149)]||_0x4073de===_0x5a2dcf[_0x5391b0(0x18a)]);}function te(_0x3831bc,_0x2006c2,_0x8f2622,_0x11d019){const _0x42824a=_0x3a04;var _0x5a6d81,_0x4f0318;let _0x4aff91=_0x8f2622['startIndex'];F(_0x2006c2,_0x8f2622['endIndex'],_0x8f2622[_0x42824a(0x150)]+0x1),F(_0x2006c2,_0x8f2622['startIndex'],_0x8f2622[_0x42824a(0x182)]+0x1),_0x2006c2[_0x42824a(0x187)]=(_0x5a6d81=_0x2006c2[_0x42824a(0x187)])==null?void 0x0:_0x5a6d81[_0x42824a(0x160)](_0x4557b0=>_0x4557b0[_0x42824a(0x16e)]!==_0x8f2622['blockId']);let _0x1d2bd4=(_0x4f0318=_0x2006c2[_0x42824a(0x15b)])==null?void 0x0:_0x4f0318[_0x42824a(0x16f)](_0x162ce7=>_0x162ce7[_0x42824a(0x182)]===_0x11d019[_0x42824a(0x182)]-0x1);return _0x1d2bd4&&(_0x1d2bd4[_0x42824a(0x151)]=S(_0x1d2bd4[_0x42824a(0x151)])),{'nextDocumentData':_0x3831bc,'cursorOffset':_0x4aff91};}function w(_0x2b57ce,_0x1c6701,_0x30d48e,_0x55a638){const _0x1df84a=_0x3a04;var _0xf1cb07,_0x215c82;let _0x4e1d09=_0x55a638['startIndex'],_0x5ab040=_0x30d48e[_0x1df84a(0x182)];P(_0x1c6701,_0x55a638['startIndex']+0x1,_0x5a2dcf[_0x1df84a(0x149)]),F(_0x1c6701,_0x30d48e['startIndex'],_0x30d48e[_0x1df84a(0x182)]+0x1);let _0x278827=(_0xf1cb07=_0x1c6701[_0x1df84a(0x15b)])==null?void 0x0:_0xf1cb07[_0x1df84a(0x16f)](_0x1b3915=>_0x1b3915[_0x1df84a(0x182)]===_0x4e1d09-0x1),_0xd5745d=(_0x215c82=_0x1c6701['blockRanges'])==null?void 0x0:_0x215c82[_0x1df84a(0x16f)](_0x42c537=>_0x42c537[_0x1df84a(0x16e)]===_0x30d48e['blockId']);return _0x278827&&(_0x278827[_0x1df84a(0x151)]=S(_0x278827[_0x1df84a(0x151)]),_0xd5745d&&(_0xd5745d[_0x1df84a(0x182)]=_0x278827['startIndex']+0x1)),_0xd5745d&&x(_0x1c6701,_0xd5745d[_0x1df84a(0x182)],_0xd5745d['endIndex']),{'nextDocumentData':_0x2b57ce,'cursorOffset':_0x5ab040};}function T(_0x3f12ac){const _0x2d2b6a=_0x3a04;return _0x4b281d[_0x2d2b6a(0x161)](_0x3f12ac);}function E(_0x4cb989){const _0x753b29=_0x3a04;if(!_0x4cb989['body'])throw Error(_0x753b29(0x14d));return _0x4cb989[_0x753b29(0x199)];}function D(_0x1ce8f2,_0x4d2090,_0x2af037){const _0x7e8135=_0x3a04;if(_0x4d2090==null||_0x2af037==null){let _0x4a10a1=ne(_0x1ce8f2);return{'startOffset':_0x4a10a1,'endOffset':_0x4a10a1};}let _0x2eae7a=Math[_0x7e8135(0x190)](_0x4d2090,_0x2af037),_0x146140=Math[_0x7e8135(0x178)](_0x4d2090,_0x2af037);return _0x2eae7a===_0x146140?{'startOffset':_0x2eae7a,'endOffset':_0x2eae7a}:k(_0x1ce8f2,_0x2eae7a,_0x146140);}function ne(_0x42a7ee){const _0x116c26=_0x3a04;return _0x42a7ee[_0x116c26(0x176)][_0x116c26(0x169)](_0x5a2dcf[_0x116c26(0x159)])?Math['max'](0x0,_0x42a7ee[_0x116c26(0x176)]['length']-0x1):_0x42a7ee[_0x116c26(0x176)][_0x116c26(0x162)];}function O(_0x15da77,_0x2f519a,_0x2c9a80){const _0x4fead3=_0x3a04;var _0x345746;let _0x1ed3bd=Math[_0x4fead3(0x190)](_0x2f519a,_0x2c9a80),_0x29e1a0=Math[_0x4fead3(0x178)](_0x2f519a,_0x2c9a80);return!!((_0x345746=_0x15da77['tables'])!=null&&_0x345746[_0x4fead3(0x193)](_0x528d64=>_0x1ed3bd>_0x528d64[_0x4fead3(0x182)]&&_0x1ed3bd<_0x528d64[_0x4fead3(0x150)]||_0x29e1a0>_0x528d64[_0x4fead3(0x182)]&&_0x29e1a0<_0x528d64[_0x4fead3(0x150)]||_0x1ed3bd<=_0x528d64['startIndex']&&_0x29e1a0>=_0x528d64['endIndex']));}function k(_0x547577,_0x9bceff,_0x26ff63){const _0x163046=_0x3a04;var _0x379701,_0x46f46d;let _0x2a9397=[...(_0x379701=_0x547577['paragraphs'])==null?[]:_0x379701][_0x163046(0x14b)]((_0x3fa26a,_0x90b288)=>_0x3fa26a[_0x163046(0x182)]-_0x90b288[_0x163046(0x182)]),_0x5e0ca4=_0x2a9397[_0x163046(0x16f)]((_0x467363,_0x32138b)=>(_0x32138b===0x0?0x0:_0x2a9397[_0x32138b-0x1][_0x163046(0x182)]+0x1)<=_0x9bceff&&_0x9bceff<=_0x467363[_0x163046(0x182)]),_0x363a0d=(_0x46f46d=_0x2a9397['find'](_0x5b6d61=>_0x5b6d61[_0x163046(0x182)]>=_0x26ff63-0x1))==null?_0x2a9397[_0x2a9397[_0x163046(0x162)]-0x1]:_0x46f46d;return{'startOffset':_0x5e0ca4?A(_0x2a9397,_0x5e0ca4):_0x9bceff,'endOffset':_0x363a0d?_0x363a0d[_0x163046(0x182)]+0x1:_0x26ff63};}function A(_0x3334c3,_0xe26196){const _0x58dcc0=_0x3a04;let _0xdec473=_0x3334c3[_0x58dcc0(0x152)](_0xe26196);return _0xdec473>0x0?_0x3334c3[_0xdec473-0x1][_0x58dcc0(0x182)]+0x1:0x0;}function j(_0xee4d4d,_0x39207d,_0x47dc75){const _0xef960f=_0x3a04;var _0x1b966f;return Math[_0xef960f(0x178)](A((_0x1b966f=_0xee4d4d['paragraphs'])==null?[]:_0x1b966f,_0x47dc75),_0x39207d[_0xef960f(0x182)]+0x1);}function M(_0x855641,_0x36b483){const _0x1aa870=_0x3a04;return _0x855641[_0x1aa870(0x176)][_0x36b483[_0x1aa870(0x150)]]===_0x5a2dcf['BLOCK_END']?_0x36b483['endIndex']:_0x855641[_0x1aa870(0x176)][_0x36b483[_0x1aa870(0x150)]+0x1]===_0x5a2dcf['BLOCK_END']?_0x36b483[_0x1aa870(0x150)]+0x1:_0x36b483['endIndex'];}function N(_0x5ba549,_0x12661b,_0x42b43b,_0x408164){const _0x414b13=_0x3a04;var _0xcf127c,_0x23fbff;let _0x27da2a=M(_0x5ba549,_0x12661b),_0x4e6221=((_0xcf127c=_0x5ba549[_0x414b13(0x15b)])==null?[]:_0xcf127c)['find'](_0x594ae3=>_0x594ae3[_0x414b13(0x182)]===_0x27da2a+0x1);if(!_0x4e6221||_0x408164!=null&&_0x4e6221[_0x414b13(0x182)]!==_0x408164||_0x42b43b<_0x27da2a||_0x42b43b>_0x4e6221[_0x414b13(0x182)]+0x1||_0x5ba549[_0x414b13(0x176)][_0x4e6221['startIndex']]!==_0x5a2dcf[_0x414b13(0x16c)])return null;let _0x36a8ee=A((_0x23fbff=_0x5ba549['paragraphs'])==null?[]:_0x23fbff,_0x4e6221),_0x53e1c0=_0x5ba549[_0x414b13(0x176)][_0x414b13(0x18c)](_0x36a8ee,_0x4e6221['startIndex']);return Array[_0x414b13(0x155)](_0x53e1c0)[_0x414b13(0x192)](_0x256b49=>_0x256b49===_0x5a2dcf[_0x414b13(0x18a)])?{'paragraph':_0x4e6221,'endTokenOffset':_0x27da2a}:null;}function P(_0x369a61,_0x17b02c,_0x114752,_0x49d878={}){const _0x335b90=_0x3a04;var _0x5bc410,_0x32ca18;if(_0x114752){if(_0x369a61['dataStream']=''+_0x369a61[_0x335b90(0x176)][_0x335b90(0x18c)](0x0,_0x17b02c)+_0x114752+_0x369a61['dataStream'][_0x335b90(0x18c)](_0x17b02c),I(_0x369a61,_0x17b02c,_0x114752[_0x335b90(0x162)]),(_0x5bc410=_0x49d878['paragraphs'])!=null&&_0x5bc410[_0x335b90(0x162)]){var _0x292451;_0x369a61[_0x335b90(0x15b)]=[...(_0x292451=_0x369a61[_0x335b90(0x15b)])==null?[]:_0x292451,..._0x49d878[_0x335b90(0x15b)]['map'](_0x4354e1=>({..._0x4354e1,'startIndex':_0x4354e1['startIndex']+_0x17b02c}))][_0x335b90(0x14b)]((_0x109f37,_0x513d30)=>_0x109f37[_0x335b90(0x182)]-_0x513d30[_0x335b90(0x182)]);}if((_0x32ca18=_0x49d878['blockRanges'])!=null&&_0x32ca18[_0x335b90(0x162)]){var _0x505132;_0x369a61[_0x335b90(0x187)]=[...(_0x505132=_0x369a61['blockRanges'])==null?[]:_0x505132,..._0x49d878[_0x335b90(0x187)][_0x335b90(0x146)](_0x39c77f=>({..._0x39c77f,'startIndex':_0x39c77f[_0x335b90(0x182)]+_0x17b02c,'endIndex':_0x39c77f[_0x335b90(0x150)]+_0x17b02c}))][_0x335b90(0x14b)]((_0x7532f4,_0x33a96e)=>_0x7532f4[_0x335b90(0x182)]-_0x33a96e[_0x335b90(0x182)]);}}}function F(_0xcec48a,_0xf995b7,_0x3e9d2e){const _0x5b7d4a=_0x3a04;let _0x469c42=_0x3e9d2e-_0xf995b7;_0xcec48a['dataStream']=''+_0xcec48a[_0x5b7d4a(0x176)][_0x5b7d4a(0x18c)](0x0,_0xf995b7)+_0xcec48a[_0x5b7d4a(0x176)]['slice'](_0x3e9d2e),re(_0xcec48a,_0xf995b7,_0x469c42);}function I(_0x2ca034,_0x3be00b,_0x2f32e9){const _0xec776e=_0x3a04;_0x2ca034[_0xec776e(0x15b)]=L(_0x2ca034['paragraphs'],_0x3be00b,_0x2f32e9),_0x2ca034[_0xec776e(0x165)]=L(_0x2ca034[_0xec776e(0x165)],_0x3be00b,_0x2f32e9),_0x2ca034['customBlocks']=L(_0x2ca034[_0xec776e(0x170)],_0x3be00b,_0x2f32e9),_0x2ca034[_0xec776e(0x13f)]=ie(_0x2ca034[_0xec776e(0x13f)],_0x3be00b,_0x2f32e9),_0x2ca034[_0xec776e(0x14e)]=z(_0x2ca034[_0xec776e(0x14e)],_0x3be00b,_0x2f32e9),_0x2ca034[_0xec776e(0x177)]=z(_0x2ca034[_0xec776e(0x177)],_0x3be00b,_0x2f32e9),_0x2ca034['customDecorations']=z(_0x2ca034[_0xec776e(0x153)],_0x3be00b,_0x2f32e9),_0x2ca034[_0xec776e(0x187)]=z(_0x2ca034[_0xec776e(0x187)],_0x3be00b,_0x2f32e9);}function re(_0x8e9896,_0x1501c4,_0x290679){const _0x17202a=_0x3a04;var _0x2b3f1a,_0x28bc75;_0x8e9896[_0x17202a(0x15b)]=R(_0x8e9896[_0x17202a(0x15b)],_0x1501c4,_0x290679),_0x8e9896[_0x17202a(0x165)]=R(_0x8e9896[_0x17202a(0x165)],_0x1501c4,_0x290679),_0x8e9896[_0x17202a(0x170)]=R(_0x8e9896[_0x17202a(0x170)],_0x1501c4,_0x290679),_0x8e9896[_0x17202a(0x13f)]=(_0x2b3f1a=B((_0x28bc75=_0x8e9896[_0x17202a(0x13f)])==null?void 0x0:_0x28bc75[_0x17202a(0x146)](_0x584f33=>({..._0x584f33,'startIndex':_0x584f33['st'],'endIndex':_0x584f33['ed']})),_0x1501c4,_0x290679))==null?void 0x0:_0x2b3f1a[_0x17202a(0x146)](_0x518560=>{let {startIndex:_0x2d2092,endIndex:_0x2f7f8b,..._0x4f6591}=_0x518560;return{..._0x4f6591,'st':_0x2d2092,'ed':_0x2f7f8b};}),_0x8e9896[_0x17202a(0x14e)]=B(_0x8e9896['tables'],_0x1501c4,_0x290679),_0x8e9896[_0x17202a(0x177)]=B(_0x8e9896[_0x17202a(0x177)],_0x1501c4,_0x290679),_0x8e9896[_0x17202a(0x153)]=B(_0x8e9896['customDecorations'],_0x1501c4,_0x290679),_0x8e9896[_0x17202a(0x187)]=B(_0x8e9896[_0x17202a(0x187)],_0x1501c4,_0x290679);}function L(_0x556752,_0x35db8a,_0x35e252){const _0x1ad099=_0x3a04;return _0x556752==null?void 0x0:_0x556752[_0x1ad099(0x146)](_0x8f23c9=>_0x8f23c9[_0x1ad099(0x182)]>=_0x35db8a?{..._0x8f23c9,'startIndex':_0x8f23c9[_0x1ad099(0x182)]+_0x35e252}:_0x8f23c9);}function R(_0x13463d,_0x6f65e1,_0x3af56f){const _0x16c3fa=_0x3a04;let _0x3ac705=_0x6f65e1+_0x3af56f;return _0x13463d==null?void 0x0:_0x13463d['map'](_0x43f0dc=>_0x43f0dc[_0x16c3fa(0x182)]>=_0x6f65e1&&_0x43f0dc[_0x16c3fa(0x182)]<_0x3ac705?null:_0x43f0dc['startIndex']>=_0x3ac705?{..._0x43f0dc,'startIndex':_0x43f0dc['startIndex']-_0x3af56f}:_0x43f0dc)[_0x16c3fa(0x160)](_0x5382c0=>_0x5382c0!=null);}function ie(_0x357da7,_0x421607,_0x56937d){const _0x5c1f85=_0x3a04;return _0x357da7==null?void 0x0:_0x357da7[_0x5c1f85(0x146)](_0x196efc=>_0x196efc['st']>=_0x421607?{..._0x196efc,'st':_0x196efc['st']+_0x56937d,'ed':_0x196efc['ed']+_0x56937d}:_0x196efc['ed']>_0x421607?{..._0x196efc,'ed':_0x196efc['ed']+_0x56937d}:_0x196efc);}function z(_0x5968d6,_0x4166f8,_0xc2382f){const _0x43d7e2=_0x3a04;return _0x5968d6==null?void 0x0:_0x5968d6[_0x43d7e2(0x146)](_0x5cb915=>_0x5cb915[_0x43d7e2(0x182)]>=_0x4166f8?{..._0x5cb915,'startIndex':_0x5cb915[_0x43d7e2(0x182)]+_0xc2382f,'endIndex':_0x5cb915[_0x43d7e2(0x150)]+_0xc2382f}:_0x5cb915[_0x43d7e2(0x150)]>=_0x4166f8?{..._0x5cb915,'endIndex':_0x5cb915['endIndex']+_0xc2382f}:_0x5cb915);}function B(_0x58d357,_0x1bc4ac,_0x96b661){const _0x12b520=_0x3a04;let _0x312427=_0x1bc4ac+_0x96b661;return _0x58d357==null?void 0x0:_0x58d357[_0x12b520(0x146)](_0x4db42f=>_0x4db42f[_0x12b520(0x182)]>=_0x1bc4ac&&_0x4db42f[_0x12b520(0x150)]<_0x312427?null:_0x4db42f[_0x12b520(0x182)]>=_0x312427?{..._0x4db42f,'startIndex':_0x4db42f['startIndex']-_0x96b661,'endIndex':_0x4db42f['endIndex']-_0x96b661}:_0x4db42f[_0x12b520(0x150)]>=_0x1bc4ac?{..._0x4db42f,'startIndex':_0x4db42f[_0x12b520(0x182)]<_0x1bc4ac?_0x4db42f['startIndex']:_0x1bc4ac,'endIndex':Math[_0x12b520(0x178)](_0x1bc4ac,_0x4db42f[_0x12b520(0x150)]-_0x96b661)}:_0x4db42f)[_0x12b520(0x160)](_0x4cdadb=>_0x4cdadb!=null);}function V(_0x158ea7,_0x3d0562,_0x2abcaf,_0x34c7f1){const _0x34105d=_0x3a04;_0x158ea7==null||_0x158ea7[_0x34105d(0x18e)](_0x3f956a=>{const _0x133d1c=_0x34105d;_0x3f956a[_0x133d1c(0x182)]>=_0x3d0562&&_0x3f956a[_0x133d1c(0x182)]<_0x2abcaf&&(_0x3f956a['startIndex']+=_0x34c7f1);});}function H(_0x413112,_0xbbba64,_0xf28f23,_0x13bb6f){const _0x2358f8=_0x3a04;_0x413112==null||_0x413112[_0x2358f8(0x18e)](_0x1a91d2=>{_0x1a91d2['st']>=_0xbbba64&&_0x1a91d2['st']<_0xf28f23?(_0x1a91d2['st']+=_0x13bb6f,_0x1a91d2['ed']+=_0x13bb6f):_0x1a91d2['ed']>_0xbbba64&&_0x1a91d2['ed']<_0xf28f23&&(_0x1a91d2['ed']+=_0x13bb6f);});}function U(_0x58c95f,_0x4b5f5d,_0x39ceec,_0x79ea0d){const _0x4a1ae4=_0x3a04;_0x58c95f==null||_0x58c95f[_0x4a1ae4(0x18e)](_0x44b08d=>{const _0x3668a9=_0x4a1ae4;_0x44b08d[_0x3668a9(0x182)]>=_0x4b5f5d&&_0x44b08d['startIndex']<_0x39ceec?(_0x44b08d['startIndex']+=_0x79ea0d,_0x44b08d[_0x3668a9(0x150)]+=_0x79ea0d):_0x44b08d[_0x3668a9(0x150)]>_0x4b5f5d&&_0x44b08d[_0x3668a9(0x150)]<_0x39ceec&&(_0x44b08d[_0x3668a9(0x150)]+=_0x79ea0d);});}_0x5f6211[_0x33e87d(0x14a)];const W={'id':_0x33e87d(0x140),'type':_0x5f6211[_0x33e87d(0x14a)],'handler':(_0x330222,_0x2b8cbe)=>{const _0xa988d3=_0x33e87d;var _0x4267ae,_0x30d325,_0x4519ca;let _0x4eddd6=q(_0x330222,_0x2b8cbe==null?void 0x0:_0x2b8cbe['unitId']);if(!_0x4eddd6)return!0x1;let _0x29e87e=J(_0x330222),_0x576131=f({'blockId':(_0x4267ae=_0x2b8cbe==null?void 0x0:_0x2b8cbe[_0xa988d3(0x16e)])==null?_0x482154(0x6):_0x4267ae,'documentData':_0x4eddd6['previousDocumentData'],'endOffset':(_0x30d325=_0x2b8cbe==null?void 0x0:_0x2b8cbe[_0xa988d3(0x142)])==null?_0x29e87e==null?void 0x0:_0x29e87e[_0xa988d3(0x142)]:_0x30d325,'startOffset':(_0x4519ca=_0x2b8cbe==null?void 0x0:_0x2b8cbe[_0xa988d3(0x167)])==null?_0x29e87e==null?void 0x0:_0x29e87e['startOffset']:_0x4519ca});return X(_0x4eddd6['commandService'],_0x4eddd6[_0xa988d3(0x171)],_0x4eddd6[_0xa988d3(0x17c)],_0x576131['nextDocumentData'],_0x576131[_0xa988d3(0x156)]);}},G={'id':'docs-quote.command.exit','type':_0x5f6211[_0x33e87d(0x14a)],'handler':(_0x3548e7,_0x4f8087)=>{const _0x5d0a27=_0x33e87d;var _0xde40d,_0x5a1b3a;let _0x4e701d=q(_0x3548e7,_0x4f8087==null?void 0x0:_0x4f8087[_0x5d0a27(0x171)]);if(!_0x4e701d)return!0x1;let _0x24408a=(_0xde40d=_0x4f8087==null?void 0x0:_0x4f8087[_0x5d0a27(0x156)])==null?(_0x5a1b3a=J(_0x3548e7))==null?void 0x0:_0x5a1b3a[_0x5d0a27(0x167)]:_0xde40d;if(_0x24408a==null)return!0x1;let _0x33abc2=h({'cursorOffset':_0x24408a,'documentData':_0x4e701d['previousDocumentData']});return _0x33abc2?X(_0x4e701d[_0x5d0a27(0x15d)],_0x4e701d[_0x5d0a27(0x171)],_0x4e701d['previousDocumentData'],_0x33abc2['nextDocumentData'],_0x33abc2[_0x5d0a27(0x156)]):!0x1;}},K={'id':_0x33e87d(0x194),'type':_0x5f6211[_0x33e87d(0x14a)],'handler':(_0x344650,_0x44a0bc)=>{const _0x33fded=_0x33e87d;var _0x12b2cc,_0x52624b;let _0x41440c=q(_0x344650,_0x44a0bc==null?void 0x0:_0x44a0bc[_0x33fded(0x171)]);if(!_0x41440c)return!0x1;let _0x458dfe=(_0x12b2cc=_0x44a0bc==null?void 0x0:_0x44a0bc[_0x33fded(0x156)])==null?(_0x52624b=J(_0x344650))==null?void 0x0:_0x52624b['startOffset']:_0x12b2cc;if(_0x458dfe==null)return!0x1;let _0x2d4ba2=g({'cursorOffset':_0x458dfe,'documentData':_0x41440c[_0x33fded(0x17c)],'paragraphStartIndex':_0x44a0bc==null?void 0x0:_0x44a0bc['paragraphStartIndex']});return _0x2d4ba2?X(_0x41440c['commandService'],_0x41440c[_0x33fded(0x171)],_0x41440c[_0x33fded(0x17c)],_0x2d4ba2[_0x33fded(0x14c)],_0x2d4ba2[_0x33fded(0x156)]):!0x1;}};function q(_0x52779b,_0x296bff){const _0x31c90b=_0x33e87d;let _0x52e304=_0x52779b[_0x31c90b(0x168)](_0x36d1d5),_0x51b13e=_0x296bff?_0x52e304[_0x31c90b(0x195)](_0x296bff):_0x52e304['getCurrentUnitOfType'](_0x1c44ec[_0x31c90b(0x148)]);return _0x51b13e?{'commandService':_0x52779b[_0x31c90b(0x168)](_0x10e108),'previousDocumentData':_0x51b13e[_0x31c90b(0x188)](),'unitId':_0x51b13e[_0x31c90b(0x15e)]()}:null;}function J(_0x44c73f){const _0x38f77a=_0x33e87d;var _0x4613d8;return(_0x4613d8=_0x44c73f[_0x38f77a(0x168)](_0x222c9f)[_0x38f77a(0x174)]())==null?void 0x0:_0x4613d8[0x0];}function ae(_0x460f4b,_0x961b00){const _0x1e5d40=_0x33e87d;var _0x5d4a13,_0x43f5c8,_0x4af0d6,_0x5e9d11,_0x37d352,_0x474fd9,_0xf08308,_0x3559f5,_0x38a742,_0x9d6964,_0x4307ae,_0x3241fa,_0x602f77,_0x525aa2,_0x4a9520,_0x41872d,_0x4a2381,_0x3181c0;let _0x479105=_0x3d3e5b[_0x1e5d40(0x163)]();return[Y(_0x479105,[_0x1e5d40(0x199),'dataStream'],(_0x5d4a13=_0x460f4b[_0x1e5d40(0x199)])==null?void 0x0:_0x5d4a13[_0x1e5d40(0x176)],(_0x43f5c8=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x43f5c8['dataStream']),Y(_0x479105,[_0x1e5d40(0x199),_0x1e5d40(0x15b)],(_0x4af0d6=_0x460f4b[_0x1e5d40(0x199)])==null?void 0x0:_0x4af0d6[_0x1e5d40(0x15b)],(_0x5e9d11=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x5e9d11[_0x1e5d40(0x15b)]),Y(_0x479105,[_0x1e5d40(0x199),_0x1e5d40(0x165)],(_0x37d352=_0x460f4b['body'])==null?void 0x0:_0x37d352[_0x1e5d40(0x165)],(_0x474fd9=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x474fd9[_0x1e5d40(0x165)]),Y(_0x479105,[_0x1e5d40(0x199),'textRuns'],(_0xf08308=_0x460f4b['body'])==null?void 0x0:_0xf08308[_0x1e5d40(0x13f)],(_0x3559f5=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x3559f5[_0x1e5d40(0x13f)]),Y(_0x479105,['body',_0x1e5d40(0x170)],(_0x38a742=_0x460f4b[_0x1e5d40(0x199)])==null?void 0x0:_0x38a742[_0x1e5d40(0x170)],(_0x9d6964=_0x961b00['body'])==null?void 0x0:_0x9d6964[_0x1e5d40(0x170)]),Y(_0x479105,[_0x1e5d40(0x199),_0x1e5d40(0x177)],(_0x4307ae=_0x460f4b['body'])==null?void 0x0:_0x4307ae[_0x1e5d40(0x177)],(_0x3241fa=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x3241fa[_0x1e5d40(0x177)]),Y(_0x479105,[_0x1e5d40(0x199),'customDecorations'],(_0x602f77=_0x460f4b['body'])==null?void 0x0:_0x602f77[_0x1e5d40(0x153)],(_0x525aa2=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x525aa2[_0x1e5d40(0x153)]),Y(_0x479105,[_0x1e5d40(0x199),_0x1e5d40(0x14e)],(_0x4a9520=_0x460f4b['body'])==null?void 0x0:_0x4a9520['tables'],(_0x41872d=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x41872d[_0x1e5d40(0x14e)]),Y(_0x479105,[_0x1e5d40(0x199),_0x1e5d40(0x187)],(_0x4a2381=_0x460f4b[_0x1e5d40(0x199)])==null?void 0x0:_0x4a2381[_0x1e5d40(0x187)],(_0x3181c0=_0x961b00[_0x1e5d40(0x199)])==null?void 0x0:_0x3181c0[_0x1e5d40(0x187)])]['filter'](Boolean)[_0x1e5d40(0x184)]((_0x35cbd1,_0x3bb36b)=>_0x3d3e5b[_0x1e5d40(0x198)](_0x35cbd1,_0x3bb36b),null);}function Y(_0x514bef,_0x261070,_0xd038d1,_0x5cf321){const _0x2cbb38=_0x33e87d;return _0x4b281d[_0x2cbb38(0x144)](_0xd038d1,_0x5cf321)?null:_0x514bef[_0x2cbb38(0x191)](_0x261070,_0xd038d1,_0x5cf321);}function X(_0x14de31,_0x4c3d57,_0x22a95f,_0x15c0a0,_0x5a8076){const _0x1d8f0b=_0x33e87d;let _0x1eb7a9=ae(_0x22a95f,_0x15c0a0);return _0x1eb7a9?!!_0x14de31[_0x1d8f0b(0x147)](_0x2b2965['id'],{'unitId':_0x4c3d57,'actions':_0x1eb7a9,'textRanges':[{'startOffset':_0x5a8076,'endOffset':_0x5a8076,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Z=class{constructor(_0x4c00cf){this['_runtime']=_0x4c00cf;}[_0x33e87d(0x18f)](){const _0x313bf7=_0x33e87d;return this[_0x313bf7(0x154)][_0x313bf7(0x16e)];}[_0x33e87d(0x197)](){const _0x2bd9dd=_0x33e87d;let _0x5844a6=this[_0x2bd9dd(0x196)]();return _0x5844a6?{'blockId':_0x5844a6['blockId'],'endIndex':_0x5844a6['endIndex'],'startIndex':_0x5844a6[_0x2bd9dd(0x182)]}:null;}[_0x33e87d(0x18d)](){const _0xe25f06=_0x33e87d;var _0x19d0f2;let _0x3115ca=this['_getBlockRange'](),_0x29597e=(_0x19d0f2=this[_0xe25f06(0x154)][_0xe25f06(0x164)]()[_0xe25f06(0x199)])==null?void 0x0:_0x19d0f2[_0xe25f06(0x176)];return!_0x3115ca||!_0x29597e?'':oe(_0x29597e[_0xe25f06(0x18c)](_0x3115ca[_0xe25f06(0x182)]+0x1,_0x3115ca['endIndex']));}[_0x33e87d(0x18b)](){const _0x49a8bc=_0x33e87d;let _0x56822d=this[_0x49a8bc(0x197)]();return _0x56822d?{..._0x56822d,'text':this[_0x49a8bc(0x18d)](),'type':_0x49a8bc(0x17e)}:null;}[_0x33e87d(0x16b)](_0x15a2fc){const _0x4ef7ea=_0x33e87d;var _0xfa3a43;return!!((_0xfa3a43=this[_0x4ef7ea(0x154)]['commandService'])!=null&&_0xfa3a43[_0x4ef7ea(0x147)](G['id'],{'cursorOffset':_0x15a2fc,'unitId':this['_runtime'][_0x4ef7ea(0x171)]}));}['cancelEmptyParagraph'](_0x2880c7={}){const _0x15e12f=_0x33e87d;var _0x19c5a1;return!!((_0x19c5a1=this[_0x15e12f(0x154)][_0x15e12f(0x15d)])!=null&&_0x19c5a1['syncExecuteCommand'](K['id'],{..._0x2880c7,'unitId':this[_0x15e12f(0x154)][_0x15e12f(0x171)]}));}[_0x33e87d(0x196)](){const _0x42d989=_0x33e87d;var _0x3a89d2;return(_0x3a89d2=this[_0x42d989(0x154)][_0x42d989(0x164)]()[_0x42d989(0x199)])==null||(_0x3a89d2=_0x3a89d2[_0x42d989(0x187)])==null?void 0x0:_0x3a89d2[_0x42d989(0x16f)](_0xa2ca5b=>_0xa2ca5b[_0x42d989(0x16e)]===this[_0x42d989(0x154)][_0x42d989(0x16e)]&&_0xa2ca5b[_0x42d989(0x17f)]===_0x42d989(0x17e));}};function oe(_0x5d23dc){const _0x3995b1=_0x33e87d;return Array[_0x3995b1(0x155)](_0x5d23dc)['map'](_0x3cd552=>_0x3cd552===_0x5a2dcf[_0x3995b1(0x16c)]?'\x0a':_0x3cd552)[_0x3995b1(0x160)](_0xad4b6=>_0xad4b6!==_0x5a2dcf['BLOCK_START']&&_0xad4b6!==_0x5a2dcf[_0x3995b1(0x18a)]&&_0xad4b6!==_0x5a2dcf[_0x3995b1(0x159)])[_0x3995b1(0x17b)]('')['replace'](/\n$/,'');}Object[_0x33e87d(0x157)](_0x1b5128['prototype'],{'getQuotes'(){const _0x32e3b0=_0x33e87d;var _0x27ba08,_0x4ef8d4;return(_0x27ba08=(_0x4ef8d4=this[_0x32e3b0(0x188)]()['body'])==null||(_0x4ef8d4=_0x4ef8d4[_0x32e3b0(0x187)])==null?void 0x0:_0x4ef8d4[_0x32e3b0(0x160)](_0x14aa63=>_0x14aa63[_0x32e3b0(0x17f)]==='quote')[_0x32e3b0(0x146)](_0x4d5122=>Q(this,_0x4d5122[_0x32e3b0(0x16e)])))==null?[]:_0x27ba08;},'getQuote'(_0xbac112){const _0x1cacbc=_0x33e87d;var _0x4df902;return!((_0x4df902=this['getSnapshot']()['body'])==null||(_0x4df902=_0x4df902[_0x1cacbc(0x187)])==null)&&_0x4df902[_0x1cacbc(0x193)](_0x46abaf=>_0x46abaf['blockId']===_0xbac112&&_0x46abaf[_0x1cacbc(0x17f)]===_0x1cacbc(0x17e))?Q(this,_0xbac112):null;},'getQuoteAt'(_0x250c4a){const _0xfb469c=_0x33e87d;var _0x2ff46f;let _0x189efa=(_0x2ff46f=this[_0xfb469c(0x188)]()[_0xfb469c(0x199)])==null||(_0x2ff46f=_0x2ff46f[_0xfb469c(0x187)])==null||(_0x2ff46f=_0x2ff46f[_0xfb469c(0x16f)](_0x64e09f=>_0x64e09f[_0xfb469c(0x17f)]===_0xfb469c(0x17e)&&_0x64e09f[_0xfb469c(0x182)]<=_0x250c4a&&_0x250c4a<=_0x64e09f[_0xfb469c(0x150)]))==null?void 0x0:_0x2ff46f['blockId'];return _0x189efa?Q(this,_0x189efa):null;},'findQuoteByText'(_0x1998ec){const _0x459ea1=_0x33e87d;var _0x575f78;return(_0x575f78=this[_0x459ea1(0x13d)](_0x1998ec)[0x0])==null?null:_0x575f78;},'findQuotes'(_0x51188e){const _0x55e895=_0x33e87d;let _0x1e5120=typeof _0x51188e==_0x55e895(0x16d)?{'text':_0x51188e}:_0x51188e;return this[_0x55e895(0x172)]()[_0x55e895(0x160)](_0x347c2b=>!(_0x1e5120[_0x55e895(0x16e)]&&_0x347c2b['getId']()!==_0x1e5120[_0x55e895(0x16e)]||_0x1e5120[_0x55e895(0x179)]&&!_0x347c2b['getText']()['includes'](_0x1e5120[_0x55e895(0x179)])));},'insertQuote'(_0x531e6c={}){const _0x10a45f=_0x33e87d;var _0x4756aa,_0x17da02;let _0x37da77=(_0x4756aa=_0x531e6c[_0x10a45f(0x16e)])==null?_0x10a45f(0x158)+Date[_0x10a45f(0x183)]():_0x4756aa;return(_0x17da02=$(this))!=null&&_0x17da02[_0x10a45f(0x147)](W['id'],{..._0x531e6c,'blockId':_0x37da77,'unitId':this['getId']()})?Q(this,_0x37da77):null;},'exitQuote'(_0x4e5354){var _0x466c44;return!!((_0x466c44=$(this))!=null&&_0x466c44['syncExecuteCommand'](G['id'],{'cursorOffset':_0x4e5354,'unitId':this['getId']()}));},'cancelEmptyQuoteParagraph'(_0x5127f2={}){const _0x4ee099=_0x33e87d;var _0x1c8111;return!!((_0x1c8111=$(this))!=null&&_0x1c8111['syncExecuteCommand'](K['id'],{..._0x5127f2,'unitId':this[_0x4ee099(0x18f)]()}));}});function Q(_0x51cfe5,_0x5bd809){const _0x50a476=_0x33e87d;return new Z({'blockId':_0x5bd809,'commandService':$(_0x51cfe5),'getDocumentData':()=>_0x51cfe5[_0x50a476(0x188)](),'unitId':_0x51cfe5['getId']()});}function _0x55cf(){const _0x4ac8e2=['getQuotes','260bLRVJK','getTextRanges','16048vsazBz','dataStream','customRanges','max','text','spaceBelow','join','previousDocumentData','2YOxgxm','quote','blockType','paragraph','3213219EkjeEc','startIndex','now','reduce','538464tyZAdp','119AegODN','blockRanges','getSnapshot','endTokenOffset','BLOCK_END','describe','slice','getText','forEach','getId','min','replaceOp','every','some','docs-quote.command.cancel-empty-paragraph','getUniverDocInstance','_getBlockRange','getRange','compose','body','209HtmYpB','documentData','findQuotes','4755402gQmlLE','textRuns','docs-quote.command.insert','3511242yOtlCd','endOffset','indentEnd','diffValue','63947udGZYw','map','syncExecuteCommand','UNIVER_DOC','BLOCK_START','COMMAND','sort','nextDocumentData','Document\x20body\x20is\x20required','tables','spaceAbove','endIndex','paragraphStyle','indexOf','customDecorations','_runtime','from','cursorOffset','assign','docs-quote-','SECTION_BREAK','paragraphStartIndex','paragraphs','_commandService','commandService','getUnitId','_injector','filter','deepClone','length','getInstance','getDocumentData','sectionBreaks','textStyle','startOffset','get','endsWith','865710TvxgkM','exit','PARAGRAPH','string','blockId','find','customBlocks','unitId'];_0x55cf=function(){return _0x4ac8e2;};return _0x55cf();}function $(_0x4c1168){const _0x55421e=_0x33e87d;var _0x4a3794,_0x4e3059;let _0x394097=_0x4c1168;return(_0x4a3794=_0x394097[_0x55421e(0x15c)])==null?(_0x4e3059=_0x394097[_0x55421e(0x15f)])==null?void 0x0:_0x4e3059['get'](_0x10e108):_0x4a3794;}export{Z as FDocsQuote};
1
+ const _0x40325e=_0x26ea;(function(_0x1e1152,_0x1bddef){const _0x1a8dd4=_0x26ea,_0x4937ff=_0x1e1152();while(!![]){try{const _0x7804c3=parseInt(_0x1a8dd4(0x1f7))/0x1+parseInt(_0x1a8dd4(0x1e8))/0x2*(-parseInt(_0x1a8dd4(0x1d4))/0x3)+-parseInt(_0x1a8dd4(0x1e7))/0x4+-parseInt(_0x1a8dd4(0x1c8))/0x5*(parseInt(_0x1a8dd4(0x1d8))/0x6)+-parseInt(_0x1a8dd4(0x200))/0x7*(-parseInt(_0x1a8dd4(0x1c6))/0x8)+parseInt(_0x1a8dd4(0x210))/0x9*(parseInt(_0x1a8dd4(0x20e))/0xa)+-parseInt(_0x1a8dd4(0x1be))/0xb;if(_0x7804c3===_0x1bddef)break;else _0x4937ff['push'](_0x4937ff['shift']());}catch(_0x5749f7){_0x4937ff['push'](_0x4937ff['shift']());}}}(_0x32e2,0x74f46));import{CommandType as _0x281a66,DataStreamTreeTokenType as _0x334440,ICommandService as _0x1774f9,IUniverInstanceService as _0x2ec637,JSONX as _0x4a49e6,Tools as _0x5ac257,UniverInstanceType as _0x3a751b,generateRandomId as _0x5bda02}from'@univerjs/core';import{FDocument as _0x25ae3e}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x494e88,RichTextEditingMutation as _0x4986bc}from'@univerjs/docs';import'@univerjs/docs-ui';const d=_0x40325e(0x1c2);function f(_0x1d17c5){const _0x3cd3f1=_0x40325e;var _0x43d502,_0x323711,_0x3e1b3a;let _0x380993=T(_0x1d17c5['documentData']),_0x163c3f=E(_0x380993),_0x27cc94=p(_0x1d17c5[_0x3cd3f1(0x1d7)],_0x1d17c5['endOffset']),_0x93f069=_0x27cc94?(_0x43d502=_0x163c3f['blockRanges'])==null?void 0x0:_0x43d502[_0x3cd3f1(0x1c1)](_0x19ba3d=>_0x19ba3d['startIndex']===_0x27cc94[_0x3cd3f1(0x1d7)]&&_0x19ba3d[_0x3cd3f1(0x203)]+0x1===_0x27cc94[_0x3cd3f1(0x1d5)]):void 0x0,{startOffset:_0x212bc1,endOffset:_0x45c6a1}=_0x93f069?_0x27cc94:D(_0x163c3f,_0x1d17c5['startOffset'],_0x1d17c5['endOffset']),_0x401d16=O(_0x163c3f,_0x212bc1,_0x45c6a1),_0x7d2e40=(_0x323711=_0x93f069==null?void 0x0:_0x93f069[_0x3cd3f1(0x1bd)])==null?_0x1d17c5[_0x3cd3f1(0x1bd)]:_0x323711;if(_0x93f069)return _0x93f069[_0x3cd3f1(0x209)]=d,m(_0x163c3f,_0x212bc1,_0x45c6a1),x(_0x163c3f,_0x212bc1,_0x45c6a1,_0x401d16),{'nextDocumentData':_0x380993,'cursorOffset':_0x212bc1+0x1};if(_0x212bc1===_0x45c6a1){let _0x4a709e=''+_0x334440[_0x3cd3f1(0x1e2)]+_0x334440[_0x3cd3f1(0x1fd)]+_0x334440[_0x3cd3f1(0x1ff)];return P(_0x163c3f,_0x212bc1,_0x4a709e,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':b(!0x0,!0x0,_0x401d16)}],'blockRanges':[{'blockId':_0x7d2e40,'blockType':d,'startIndex':0x0,'endIndex':_0x4a709e['length']-0x1}]}),{'nextDocumentData':_0x380993,'cursorOffset':_0x212bc1+0x1};}return P(_0x163c3f,_0x45c6a1,_0x334440['BLOCK_END']),P(_0x163c3f,_0x212bc1,_0x334440[_0x3cd3f1(0x1e2)]),x(_0x163c3f,_0x212bc1,_0x45c6a1+0x1,_0x401d16),_0x163c3f['blockRanges']=[...(_0x3e1b3a=_0x163c3f[_0x3cd3f1(0x1db)])==null?[]:_0x3e1b3a,{'blockId':_0x7d2e40,'blockType':d,'startIndex':_0x212bc1,'endIndex':_0x45c6a1+0x1}][_0x3cd3f1(0x1dc)]((_0x56dd65,_0x315b8b)=>_0x56dd65['startIndex']-_0x315b8b[_0x3cd3f1(0x1e1)]),{'nextDocumentData':_0x380993,'cursorOffset':_0x212bc1+0x1};}function p(_0x3e5841,_0x2b0282){const _0x171e8b=_0x40325e;return _0x3e5841==null||_0x2b0282==null||_0x3e5841===_0x2b0282?null:{'startOffset':Math[_0x171e8b(0x206)](_0x3e5841,_0x2b0282),'endOffset':Math['max'](_0x3e5841,_0x2b0282)};}function m(_0x3d13c9,_0x4190a3,_0x422d94){const _0x2b7cfc=_0x40325e;var _0x3ca39a;((_0x3ca39a=_0x3d13c9[_0x2b7cfc(0x214)])==null?[]:_0x3ca39a)[_0x2b7cfc(0x1c9)](_0x36ed0f=>_0x36ed0f[_0x2b7cfc(0x1e1)]>_0x4190a3&&_0x36ed0f[_0x2b7cfc(0x1e1)]<_0x422d94)[_0x2b7cfc(0x1c4)](_0x41bcf1=>{const _0x5c5823=_0x2b7cfc;var _0x4195d8;let _0x2a03d4={...(_0x4195d8=_0x41bcf1[_0x5c5823(0x1d0)])==null?{}:_0x4195d8};delete _0x2a03d4[_0x5c5823(0x1fe)],delete _0x2a03d4['spaceAbove'],delete _0x2a03d4[_0x5c5823(0x1f4)],delete _0x2a03d4[_0x5c5823(0x1fa)],_0x41bcf1[_0x5c5823(0x1d0)]=_0x2a03d4;});}function h(_0x1249e6){const _0x5c1979=_0x40325e;var _0xefdd71,_0x35dbd1;let _0x170ab9=T(_0x1249e6['documentData']),_0x14dcbd=E(_0x170ab9),_0x3c0999=y(_0x14dcbd,_0x1249e6[_0x5c1979(0x1f6)]);if(!_0x3c0999)return null;let _0x33cbf5=C(_0x14dcbd,_0x3c0999),_0x1d41c6=_0x33cbf5[_0x33cbf5[_0x5c1979(0x20c)]-0x1];if(!_0x1d41c6||!ee(_0x14dcbd,_0x3c0999,_0x1d41c6)||_0x1249e6[_0x5c1979(0x1f6)]<_0x1d41c6[_0x5c1979(0x1e1)])return null;let _0x356c86=j(_0x14dcbd,_0x3c0999,_0x1d41c6);if(_0x356c86>=_0x3c0999['endIndex'])return null;_0x14dcbd['dataStream']=[_0x14dcbd[_0x5c1979(0x20d)][_0x5c1979(0x1c5)](0x0,_0x356c86),_0x334440[_0x5c1979(0x1ff)],_0x14dcbd['dataStream'][_0x5c1979(0x1c5)](_0x356c86,_0x3c0999[_0x5c1979(0x203)]),_0x14dcbd[_0x5c1979(0x20d)]['slice'](_0x3c0999[_0x5c1979(0x203)]+0x1)]['join'](''),V(_0x14dcbd['paragraphs'],_0x356c86,_0x3c0999[_0x5c1979(0x203)],0x1),V(_0x14dcbd[_0x5c1979(0x1e9)],_0x356c86,_0x3c0999[_0x5c1979(0x203)],0x1),V(_0x14dcbd[_0x5c1979(0x1e4)],_0x356c86,_0x3c0999[_0x5c1979(0x203)],0x1),H(_0x14dcbd['textRuns'],_0x356c86,_0x3c0999[_0x5c1979(0x203)],0x1),U(_0x14dcbd[_0x5c1979(0x1cb)],_0x356c86,_0x3c0999['endIndex'],0x1),U(_0x14dcbd[_0x5c1979(0x1f8)],_0x356c86,_0x3c0999[_0x5c1979(0x203)],0x1),U(_0x14dcbd['customDecorations'],_0x356c86,_0x3c0999[_0x5c1979(0x203)],0x1),(_0xefdd71=_0x14dcbd[_0x5c1979(0x1db)])==null||_0xefdd71[_0x5c1979(0x1c4)](_0x5bd2ec=>{const _0x3e36f4=_0x5c1979;_0x5bd2ec===_0x3c0999||_0x5bd2ec[_0x3e36f4(0x1bd)]===_0x3c0999[_0x3e36f4(0x1bd)]?_0x5bd2ec['endIndex']=_0x356c86:_0x5bd2ec[_0x3e36f4(0x1e1)]>=_0x356c86&&_0x5bd2ec[_0x3e36f4(0x1e1)]<_0x3c0999[_0x3e36f4(0x203)]&&(_0x5bd2ec[_0x3e36f4(0x1e1)]+=0x1,_0x5bd2ec['endIndex']+=0x1);});let _0x36b9ab=C(_0x14dcbd,{..._0x3c0999,'endIndex':_0x356c86});_0x36b9ab[_0x5c1979(0x1c4)]((_0x511e16,_0x32b701)=>{const _0x43c454=_0x5c1979;var _0x2a1ca8;_0x511e16[_0x43c454(0x1d0)]={...(_0x2a1ca8=_0x511e16[_0x43c454(0x1d0)])==null?{}:_0x2a1ca8,...b(_0x32b701===0x0,_0x32b701===_0x36b9ab[_0x43c454(0x20c)]-0x1)};});let _0x5ae384=(_0x35dbd1=_0x14dcbd['paragraphs'])==null?void 0x0:_0x35dbd1['find'](_0x4153c5=>_0x4153c5[_0x5c1979(0x1e1)]===_0x356c86+0x1);return _0x5ae384&&(_0x5ae384['paragraphStyle']=S(_0x5ae384['paragraphStyle'])),{'nextDocumentData':_0x170ab9,'cursorOffset':_0x356c86+0x1};}function g(_0x119670){const _0x5a470c=_0x40325e;let _0x11190d=T(_0x119670[_0x5a470c(0x1cc)]),_0x2c7903=E(_0x11190d),_0x441119=y(_0x2c7903,_0x119670[_0x5a470c(0x1f6)]);return _0x441119&&(_(_0x11190d,_0x2c7903,_0x441119,_0x119670[_0x5a470c(0x1f6)],_0x119670['paragraphStartIndex'])||v(_0x11190d,_0x2c7903,_0x441119,_0x119670[_0x5a470c(0x1f6)]))||null;}function _(_0x55e62e,_0x3a4ff6,_0x56f66c,_0x5b2f8b,_0x23b4b4){const _0x2448c5=_0x40325e;let _0x3f520d=N(_0x3a4ff6,_0x56f66c,_0x5b2f8b,_0x23b4b4);if(!_0x3f520d)return null;let _0x362cc9=_0x3f520d[_0x2448c5(0x1d6)]-0x1;return F(_0x3a4ff6,_0x3f520d[_0x2448c5(0x1f1)][_0x2448c5(0x1e1)],_0x3f520d[_0x2448c5(0x1f1)][_0x2448c5(0x1e1)]+0x1),{'nextDocumentData':_0x55e62e,'cursorOffset':_0x362cc9};}function v(_0xd2799,_0x28f1bf,_0x336f53,_0x45389d){if(_0x45389d!==_0x336f53['startIndex']+0x1)return null;let _0x29d40d=C(_0x28f1bf,_0x336f53),_0x2dcff4=_0x29d40d[0x0];return!_0x2dcff4||j(_0x28f1bf,_0x336f53,_0x2dcff4)!==_0x45389d?null:_0x29d40d['length']===0x1?te(_0xd2799,_0x28f1bf,_0x336f53,_0x2dcff4):w(_0xd2799,_0x28f1bf,_0x336f53,_0x2dcff4);}function y(_0xef01be,_0x161819){const _0x3edb12=_0x40325e;var _0x3c1c5f;return(_0x3c1c5f=_0xef01be[_0x3edb12(0x1db)])==null?void 0x0:_0x3c1c5f[_0x3edb12(0x1c1)](_0x270797=>{const _0x2b1872=_0x3edb12;let _0x356093=M(_0xef01be,_0x270797);return _0x270797[_0x2b1872(0x209)]===_0x2b1872(0x1c2)&&_0x270797[_0x2b1872(0x1e1)]<=_0x161819&&_0x161819<=_0x356093+0x2;});}function b(_0x1718ba,_0x1a5624,_0x1403a5=!0x1){return{'indentStart':{'v':0x16},..._0x1718ba&&_0x1403a5?{'spaceAbove':{'v':0x8}}:{}};}function x(_0x7b343f,_0x5897fd,_0x5463b5,_0x3cc513=!0x1){const _0x5060dd=_0x40325e;var _0x56fcbe;let _0x55b0ea=((_0x56fcbe=_0x7b343f[_0x5060dd(0x214)])==null?[]:_0x56fcbe)[_0x5060dd(0x1c9)](_0x45d588=>_0x45d588[_0x5060dd(0x1e1)]>_0x5897fd&&_0x45d588[_0x5060dd(0x1e1)]<_0x5463b5);_0x55b0ea['forEach']((_0x3035df,_0x2cd40c)=>{const _0x1f5114=_0x5060dd;var _0x24e114;_0x3035df[_0x1f5114(0x1d0)]={...(_0x24e114=_0x3035df[_0x1f5114(0x1d0)])==null?{}:_0x24e114,...b(_0x2cd40c===0x0,_0x2cd40c===_0x55b0ea[_0x1f5114(0x20c)]-0x1,_0x3cc513)};});}function S(_0x4600bb){const _0x588f27=_0x40325e;let _0xec0905={..._0x4600bb==null?{}:_0x4600bb};return delete _0xec0905[_0x588f27(0x211)],delete _0xec0905['spaceAbove'],delete _0xec0905[_0x588f27(0x1f4)],_0xec0905;}function C(_0x5908d8,_0x428820){const _0x388a0a=_0x40325e;var _0x372526;let _0x392df0=M(_0x5908d8,_0x428820);return((_0x372526=_0x5908d8['paragraphs'])==null?[]:_0x372526)[_0x388a0a(0x1c9)](_0x1e6b70=>_0x1e6b70[_0x388a0a(0x1e1)]>_0x428820[_0x388a0a(0x1e1)]&&_0x1e6b70['startIndex']<_0x392df0);}function ee(_0x5897a6,_0x14affd,_0x174ab8){const _0x5c43eb=_0x40325e;let _0x5d12ad=j(_0x5897a6,_0x14affd,_0x174ab8),_0x26a44d=_0x5897a6[_0x5c43eb(0x20d)]['slice'](_0x5d12ad,_0x174ab8[_0x5c43eb(0x1e1)]);return Array[_0x5c43eb(0x1ea)](_0x26a44d)['every'](_0x569ae6=>_0x569ae6===_0x334440['BLOCK_START']||_0x569ae6===_0x334440[_0x5c43eb(0x1ff)]);}function _0x32e2(){const _0x4d5aba=['6WGOwkd','sectionBreaks','from','diffValue','textRuns','reduce','getRange','compose','indexOf','paragraph','docs-quote.command.cancel-empty-paragraph','_commandService','spaceBelow','max','cursorOffset','565731KBbrYU','customRanges','COMMAND','textStyle','previousDocumentData','docs-quote.command.exit','PARAGRAPH','indentEnd','BLOCK_END','5128235NCKtPj','docs-quote-','getId','endIndex','text','unitId','min','replace','deepClone','blockType','nextDocumentData','SECTION_BREAK','length','dataStream','1289150bPbxyJ','some','45EMXzcM','indentStart','join','Document\x20body\x20is\x20required','paragraphs','getText','commandService','blockId','713174rieCJO','assign','customDecorations','find','quote','syncExecuteCommand','forEach','slice','8VdxqNS','body','5bXRJab','filter','map','tables','documentData','getInstance','get','_runtime','paragraphStyle','cancelEmptyParagraph','now','endsWith','383748nCbwUo','endOffset','endTokenOffset','startOffset','2642298gpcBtr','getSnapshot','getTextRanges','blockRanges','sort','every','findQuotes','getDocumentData','includes','startIndex','BLOCK_START','_getBlockRange','customBlocks','getUniverDocInstance','string','2299600qITSsM'];_0x32e2=function(){return _0x4d5aba;};return _0x32e2();}function te(_0x17aaa3,_0x4f6b02,_0x418905,_0x4c077d){const _0x2f8d70=_0x40325e;var _0x222f1c,_0x4ef112;let _0x4a1982=_0x418905[_0x2f8d70(0x1e1)];F(_0x4f6b02,_0x418905['endIndex'],_0x418905[_0x2f8d70(0x203)]+0x1),F(_0x4f6b02,_0x418905['startIndex'],_0x418905['startIndex']+0x1),_0x4f6b02['blockRanges']=(_0x222f1c=_0x4f6b02[_0x2f8d70(0x1db)])==null?void 0x0:_0x222f1c[_0x2f8d70(0x1c9)](_0xbc39d1=>_0xbc39d1['blockId']!==_0x418905[_0x2f8d70(0x1bd)]);let _0x98318=(_0x4ef112=_0x4f6b02[_0x2f8d70(0x214)])==null?void 0x0:_0x4ef112[_0x2f8d70(0x1c1)](_0x3c11d7=>_0x3c11d7[_0x2f8d70(0x1e1)]===_0x4c077d[_0x2f8d70(0x1e1)]-0x1);return _0x98318&&(_0x98318['paragraphStyle']=S(_0x98318[_0x2f8d70(0x1d0)])),{'nextDocumentData':_0x17aaa3,'cursorOffset':_0x4a1982};}function w(_0x508a10,_0x3a0ee7,_0x60fdbc,_0xebd32c){const _0x284dbd=_0x40325e;var _0x431613,_0x295ffc;let _0x24eafe=_0xebd32c[_0x284dbd(0x1e1)],_0x501221=_0x60fdbc[_0x284dbd(0x1e1)];P(_0x3a0ee7,_0xebd32c[_0x284dbd(0x1e1)]+0x1,_0x334440[_0x284dbd(0x1e2)]),F(_0x3a0ee7,_0x60fdbc[_0x284dbd(0x1e1)],_0x60fdbc[_0x284dbd(0x1e1)]+0x1);let _0x419ee1=(_0x431613=_0x3a0ee7['paragraphs'])==null?void 0x0:_0x431613[_0x284dbd(0x1c1)](_0x286992=>_0x286992[_0x284dbd(0x1e1)]===_0x24eafe-0x1),_0x162ad2=(_0x295ffc=_0x3a0ee7[_0x284dbd(0x1db)])==null?void 0x0:_0x295ffc['find'](_0x4e5396=>_0x4e5396[_0x284dbd(0x1bd)]===_0x60fdbc[_0x284dbd(0x1bd)]);return _0x419ee1&&(_0x419ee1[_0x284dbd(0x1d0)]=S(_0x419ee1['paragraphStyle']),_0x162ad2&&(_0x162ad2[_0x284dbd(0x1e1)]=_0x419ee1[_0x284dbd(0x1e1)]+0x1)),_0x162ad2&&x(_0x3a0ee7,_0x162ad2['startIndex'],_0x162ad2[_0x284dbd(0x203)]),{'nextDocumentData':_0x508a10,'cursorOffset':_0x501221};}function T(_0x3b6faf){const _0x57b477=_0x40325e;return _0x5ac257[_0x57b477(0x208)](_0x3b6faf);}function E(_0x12ecc0){const _0x4f68ee=_0x40325e;if(!_0x12ecc0[_0x4f68ee(0x1c7)])throw Error(_0x4f68ee(0x213));return _0x12ecc0[_0x4f68ee(0x1c7)];}function D(_0x2ecdf5,_0x49d516,_0x473eb2){const _0x388d09=_0x40325e;if(_0x49d516==null||_0x473eb2==null){let _0x1991de=ne(_0x2ecdf5);return{'startOffset':_0x1991de,'endOffset':_0x1991de};}let _0x103572=Math['min'](_0x49d516,_0x473eb2),_0x418851=Math[_0x388d09(0x1f5)](_0x49d516,_0x473eb2);return _0x103572===_0x418851?{'startOffset':_0x103572,'endOffset':_0x103572}:k(_0x2ecdf5,_0x103572,_0x418851);}function ne(_0x34e623){const _0x553c57=_0x40325e;return _0x34e623['dataStream'][_0x553c57(0x1d3)](_0x334440[_0x553c57(0x20b)])?Math[_0x553c57(0x1f5)](0x0,_0x34e623[_0x553c57(0x20d)][_0x553c57(0x20c)]-0x1):_0x34e623['dataStream'][_0x553c57(0x20c)];}function O(_0x27e7dc,_0x98b866,_0x584883){const _0xc81d75=_0x40325e;var _0x431063;let _0x72f114=Math[_0xc81d75(0x206)](_0x98b866,_0x584883),_0x2dfe61=Math[_0xc81d75(0x1f5)](_0x98b866,_0x584883);return!!((_0x431063=_0x27e7dc[_0xc81d75(0x1cb)])!=null&&_0x431063[_0xc81d75(0x20f)](_0x5d0a9c=>_0x72f114>_0x5d0a9c[_0xc81d75(0x1e1)]&&_0x72f114<_0x5d0a9c['endIndex']||_0x2dfe61>_0x5d0a9c['startIndex']&&_0x2dfe61<_0x5d0a9c[_0xc81d75(0x203)]||_0x72f114<=_0x5d0a9c[_0xc81d75(0x1e1)]&&_0x2dfe61>=_0x5d0a9c[_0xc81d75(0x203)]));}function k(_0x555bd9,_0x2752b2,_0x2deb5d){const _0x4a3b78=_0x40325e;var _0xed9818,_0x2b19b5;let _0x3aeeb4=[...(_0xed9818=_0x555bd9['paragraphs'])==null?[]:_0xed9818][_0x4a3b78(0x1dc)]((_0x2d287d,_0x5e0b25)=>_0x2d287d['startIndex']-_0x5e0b25[_0x4a3b78(0x1e1)]),_0x25f4b4=_0x3aeeb4[_0x4a3b78(0x1c1)]((_0x5e354f,_0x2ade31)=>(_0x2ade31===0x0?0x0:_0x3aeeb4[_0x2ade31-0x1][_0x4a3b78(0x1e1)]+0x1)<=_0x2752b2&&_0x2752b2<=_0x5e354f['startIndex']),_0x214572=(_0x2b19b5=_0x3aeeb4['find'](_0x1fd336=>_0x1fd336[_0x4a3b78(0x1e1)]>=_0x2deb5d-0x1))==null?_0x3aeeb4[_0x3aeeb4[_0x4a3b78(0x20c)]-0x1]:_0x2b19b5;return{'startOffset':_0x25f4b4?A(_0x3aeeb4,_0x25f4b4):_0x2752b2,'endOffset':_0x214572?_0x214572[_0x4a3b78(0x1e1)]+0x1:_0x2deb5d};}function A(_0x4ae635,_0x380bf7){const _0xf6d6f5=_0x40325e;let _0xd8354b=_0x4ae635[_0xf6d6f5(0x1f0)](_0x380bf7);return _0xd8354b>0x0?_0x4ae635[_0xd8354b-0x1][_0xf6d6f5(0x1e1)]+0x1:0x0;}function j(_0x1a1aff,_0x15ea8d,_0x3a590c){const _0x37b815=_0x40325e;var _0x39ee9a;return Math['max'](A((_0x39ee9a=_0x1a1aff[_0x37b815(0x214)])==null?[]:_0x39ee9a,_0x3a590c),_0x15ea8d['startIndex']+0x1);}function M(_0x29ded3,_0x34a718){const _0x2ac9cf=_0x40325e;return _0x29ded3[_0x2ac9cf(0x20d)][_0x34a718['endIndex']]===_0x334440[_0x2ac9cf(0x1ff)]?_0x34a718['endIndex']:_0x29ded3[_0x2ac9cf(0x20d)][_0x34a718[_0x2ac9cf(0x203)]+0x1]===_0x334440[_0x2ac9cf(0x1ff)]?_0x34a718[_0x2ac9cf(0x203)]+0x1:_0x34a718[_0x2ac9cf(0x203)];}function N(_0x28a6a5,_0x21d5d8,_0xfa0b63,_0x4109a8){const _0x4212b3=_0x40325e;var _0x226fb0,_0x4936fd;let _0x5948af=M(_0x28a6a5,_0x21d5d8),_0x42b9fc=((_0x226fb0=_0x28a6a5[_0x4212b3(0x214)])==null?[]:_0x226fb0)[_0x4212b3(0x1c1)](_0x537948=>_0x537948[_0x4212b3(0x1e1)]===_0x5948af+0x1);if(!_0x42b9fc||_0x4109a8!=null&&_0x42b9fc[_0x4212b3(0x1e1)]!==_0x4109a8||_0xfa0b63<_0x5948af||_0xfa0b63>_0x42b9fc[_0x4212b3(0x1e1)]+0x1||_0x28a6a5[_0x4212b3(0x20d)][_0x42b9fc[_0x4212b3(0x1e1)]]!==_0x334440['PARAGRAPH'])return null;let _0x517640=A((_0x4936fd=_0x28a6a5['paragraphs'])==null?[]:_0x4936fd,_0x42b9fc),_0x4a1e89=_0x28a6a5[_0x4212b3(0x20d)][_0x4212b3(0x1c5)](_0x517640,_0x42b9fc[_0x4212b3(0x1e1)]);return Array[_0x4212b3(0x1ea)](_0x4a1e89)[_0x4212b3(0x1dd)](_0x271901=>_0x271901===_0x334440[_0x4212b3(0x1ff)])?{'paragraph':_0x42b9fc,'endTokenOffset':_0x5948af}:null;}function P(_0x1fefea,_0x30dd8d,_0x42b8c7,_0x562459={}){const _0x2524de=_0x40325e;var _0x4a4f66,_0x48e909;if(_0x42b8c7){if(_0x1fefea['dataStream']=''+_0x1fefea[_0x2524de(0x20d)][_0x2524de(0x1c5)](0x0,_0x30dd8d)+_0x42b8c7+_0x1fefea['dataStream'][_0x2524de(0x1c5)](_0x30dd8d),I(_0x1fefea,_0x30dd8d,_0x42b8c7[_0x2524de(0x20c)]),(_0x4a4f66=_0x562459[_0x2524de(0x214)])!=null&&_0x4a4f66[_0x2524de(0x20c)]){var _0x2fc9ca;_0x1fefea['paragraphs']=[...(_0x2fc9ca=_0x1fefea[_0x2524de(0x214)])==null?[]:_0x2fc9ca,..._0x562459[_0x2524de(0x214)][_0x2524de(0x1ca)](_0x41e9c1=>({..._0x41e9c1,'startIndex':_0x41e9c1['startIndex']+_0x30dd8d}))]['sort']((_0x327a91,_0x3d10fa)=>_0x327a91[_0x2524de(0x1e1)]-_0x3d10fa['startIndex']);}if((_0x48e909=_0x562459['blockRanges'])!=null&&_0x48e909[_0x2524de(0x20c)]){var _0x18f0ec;_0x1fefea[_0x2524de(0x1db)]=[...(_0x18f0ec=_0x1fefea[_0x2524de(0x1db)])==null?[]:_0x18f0ec,..._0x562459['blockRanges'][_0x2524de(0x1ca)](_0x86c4dc=>({..._0x86c4dc,'startIndex':_0x86c4dc['startIndex']+_0x30dd8d,'endIndex':_0x86c4dc[_0x2524de(0x203)]+_0x30dd8d}))][_0x2524de(0x1dc)]((_0x2bea05,_0x423159)=>_0x2bea05[_0x2524de(0x1e1)]-_0x423159['startIndex']);}}}function F(_0xf98cc3,_0xd5a52f,_0x2bea98){const _0xf3fa8d=_0x40325e;let _0x4d1525=_0x2bea98-_0xd5a52f;_0xf98cc3['dataStream']=''+_0xf98cc3[_0xf3fa8d(0x20d)][_0xf3fa8d(0x1c5)](0x0,_0xd5a52f)+_0xf98cc3[_0xf3fa8d(0x20d)]['slice'](_0x2bea98),re(_0xf98cc3,_0xd5a52f,_0x4d1525);}function I(_0x3342f4,_0x9082,_0x23fced){const _0x3c10d1=_0x40325e;_0x3342f4['paragraphs']=L(_0x3342f4['paragraphs'],_0x9082,_0x23fced),_0x3342f4[_0x3c10d1(0x1e9)]=L(_0x3342f4[_0x3c10d1(0x1e9)],_0x9082,_0x23fced),_0x3342f4['customBlocks']=L(_0x3342f4[_0x3c10d1(0x1e4)],_0x9082,_0x23fced),_0x3342f4[_0x3c10d1(0x1ec)]=ie(_0x3342f4['textRuns'],_0x9082,_0x23fced),_0x3342f4[_0x3c10d1(0x1cb)]=z(_0x3342f4[_0x3c10d1(0x1cb)],_0x9082,_0x23fced),_0x3342f4[_0x3c10d1(0x1f8)]=z(_0x3342f4[_0x3c10d1(0x1f8)],_0x9082,_0x23fced),_0x3342f4[_0x3c10d1(0x1c0)]=z(_0x3342f4['customDecorations'],_0x9082,_0x23fced),_0x3342f4[_0x3c10d1(0x1db)]=z(_0x3342f4[_0x3c10d1(0x1db)],_0x9082,_0x23fced);}function re(_0x19049f,_0x4c2a40,_0x4bd3eb){const _0x25e955=_0x40325e;var _0x4c89ce,_0x56a1ca;_0x19049f['paragraphs']=R(_0x19049f[_0x25e955(0x214)],_0x4c2a40,_0x4bd3eb),_0x19049f[_0x25e955(0x1e9)]=R(_0x19049f[_0x25e955(0x1e9)],_0x4c2a40,_0x4bd3eb),_0x19049f[_0x25e955(0x1e4)]=R(_0x19049f[_0x25e955(0x1e4)],_0x4c2a40,_0x4bd3eb),_0x19049f[_0x25e955(0x1ec)]=(_0x4c89ce=B((_0x56a1ca=_0x19049f[_0x25e955(0x1ec)])==null?void 0x0:_0x56a1ca[_0x25e955(0x1ca)](_0x2bf364=>({..._0x2bf364,'startIndex':_0x2bf364['st'],'endIndex':_0x2bf364['ed']})),_0x4c2a40,_0x4bd3eb))==null?void 0x0:_0x4c89ce[_0x25e955(0x1ca)](_0x6081cf=>{let {startIndex:_0x5cffe2,endIndex:_0x2ba988,..._0x218ad5}=_0x6081cf;return{..._0x218ad5,'st':_0x5cffe2,'ed':_0x2ba988};}),_0x19049f['tables']=B(_0x19049f[_0x25e955(0x1cb)],_0x4c2a40,_0x4bd3eb),_0x19049f[_0x25e955(0x1f8)]=B(_0x19049f[_0x25e955(0x1f8)],_0x4c2a40,_0x4bd3eb),_0x19049f['customDecorations']=B(_0x19049f[_0x25e955(0x1c0)],_0x4c2a40,_0x4bd3eb),_0x19049f[_0x25e955(0x1db)]=B(_0x19049f[_0x25e955(0x1db)],_0x4c2a40,_0x4bd3eb);}function L(_0x49be94,_0x4c8a3e,_0x4ff508){const _0x27021f=_0x40325e;return _0x49be94==null?void 0x0:_0x49be94[_0x27021f(0x1ca)](_0x2c740f=>_0x2c740f['startIndex']>=_0x4c8a3e?{..._0x2c740f,'startIndex':_0x2c740f[_0x27021f(0x1e1)]+_0x4ff508}:_0x2c740f);}function R(_0x387bc0,_0x19354c,_0xfe28bf){const _0x47f1e8=_0x40325e;let _0x31775a=_0x19354c+_0xfe28bf;return _0x387bc0==null?void 0x0:_0x387bc0['map'](_0x44cdcc=>_0x44cdcc[_0x47f1e8(0x1e1)]>=_0x19354c&&_0x44cdcc[_0x47f1e8(0x1e1)]<_0x31775a?null:_0x44cdcc[_0x47f1e8(0x1e1)]>=_0x31775a?{..._0x44cdcc,'startIndex':_0x44cdcc[_0x47f1e8(0x1e1)]-_0xfe28bf}:_0x44cdcc)[_0x47f1e8(0x1c9)](_0x5854cf=>_0x5854cf!=null);}function ie(_0x381fcf,_0x564d49,_0x23886e){return _0x381fcf==null?void 0x0:_0x381fcf['map'](_0x26226b=>_0x26226b['st']>=_0x564d49?{..._0x26226b,'st':_0x26226b['st']+_0x23886e,'ed':_0x26226b['ed']+_0x23886e}:_0x26226b['ed']>_0x564d49?{..._0x26226b,'ed':_0x26226b['ed']+_0x23886e}:_0x26226b);}function z(_0x30c8c2,_0x49733b,_0x3ae79a){const _0x1e0ab9=_0x40325e;return _0x30c8c2==null?void 0x0:_0x30c8c2[_0x1e0ab9(0x1ca)](_0x5dc4cc=>_0x5dc4cc[_0x1e0ab9(0x1e1)]>=_0x49733b?{..._0x5dc4cc,'startIndex':_0x5dc4cc['startIndex']+_0x3ae79a,'endIndex':_0x5dc4cc[_0x1e0ab9(0x203)]+_0x3ae79a}:_0x5dc4cc[_0x1e0ab9(0x203)]>=_0x49733b?{..._0x5dc4cc,'endIndex':_0x5dc4cc[_0x1e0ab9(0x203)]+_0x3ae79a}:_0x5dc4cc);}function B(_0x5e63eb,_0xbf77fe,_0x2c6075){const _0x182ef4=_0x40325e;let _0x54f6b1=_0xbf77fe+_0x2c6075;return _0x5e63eb==null?void 0x0:_0x5e63eb[_0x182ef4(0x1ca)](_0x1fb6a2=>_0x1fb6a2[_0x182ef4(0x1e1)]>=_0xbf77fe&&_0x1fb6a2[_0x182ef4(0x203)]<_0x54f6b1?null:_0x1fb6a2[_0x182ef4(0x1e1)]>=_0x54f6b1?{..._0x1fb6a2,'startIndex':_0x1fb6a2[_0x182ef4(0x1e1)]-_0x2c6075,'endIndex':_0x1fb6a2[_0x182ef4(0x203)]-_0x2c6075}:_0x1fb6a2['endIndex']>=_0xbf77fe?{..._0x1fb6a2,'startIndex':_0x1fb6a2['startIndex']<_0xbf77fe?_0x1fb6a2[_0x182ef4(0x1e1)]:_0xbf77fe,'endIndex':Math[_0x182ef4(0x1f5)](_0xbf77fe,_0x1fb6a2[_0x182ef4(0x203)]-_0x2c6075)}:_0x1fb6a2)['filter'](_0x11a64b=>_0x11a64b!=null);}function V(_0x58cfed,_0x223fab,_0x4a6acb,_0x467a33){const _0x52ab1e=_0x40325e;_0x58cfed==null||_0x58cfed[_0x52ab1e(0x1c4)](_0x2c9230=>{const _0x3aac7c=_0x52ab1e;_0x2c9230[_0x3aac7c(0x1e1)]>=_0x223fab&&_0x2c9230['startIndex']<_0x4a6acb&&(_0x2c9230['startIndex']+=_0x467a33);});}function H(_0x4983ee,_0x136502,_0x38017e,_0x12f1c0){const _0x42e734=_0x40325e;_0x4983ee==null||_0x4983ee[_0x42e734(0x1c4)](_0x2e6fb9=>{_0x2e6fb9['st']>=_0x136502&&_0x2e6fb9['st']<_0x38017e?(_0x2e6fb9['st']+=_0x12f1c0,_0x2e6fb9['ed']+=_0x12f1c0):_0x2e6fb9['ed']>_0x136502&&_0x2e6fb9['ed']<_0x38017e&&(_0x2e6fb9['ed']+=_0x12f1c0);});}function U(_0x209b0d,_0x120da3,_0x18597a,_0x3165b9){_0x209b0d==null||_0x209b0d['forEach'](_0x3b8df7=>{const _0x1a152c=_0x26ea;_0x3b8df7[_0x1a152c(0x1e1)]>=_0x120da3&&_0x3b8df7[_0x1a152c(0x1e1)]<_0x18597a?(_0x3b8df7[_0x1a152c(0x1e1)]+=_0x3165b9,_0x3b8df7['endIndex']+=_0x3165b9):_0x3b8df7[_0x1a152c(0x203)]>_0x120da3&&_0x3b8df7[_0x1a152c(0x203)]<_0x18597a&&(_0x3b8df7[_0x1a152c(0x203)]+=_0x3165b9);});}_0x281a66[_0x40325e(0x1f9)];const W={'id':'docs-quote.command.insert','type':_0x281a66[_0x40325e(0x1f9)],'handler':(_0x4709c8,_0x5f3234)=>{const _0x5a50a7=_0x40325e;var _0x293230,_0x1ede9f,_0x90ffe1;let _0x183c0c=q(_0x4709c8,_0x5f3234==null?void 0x0:_0x5f3234[_0x5a50a7(0x205)]);if(!_0x183c0c)return!0x1;let _0x56e71d=J(_0x4709c8),_0x181e4c=f({'blockId':(_0x293230=_0x5f3234==null?void 0x0:_0x5f3234[_0x5a50a7(0x1bd)])==null?_0x5bda02(0x6):_0x293230,'documentData':_0x183c0c['previousDocumentData'],'endOffset':(_0x1ede9f=_0x5f3234==null?void 0x0:_0x5f3234[_0x5a50a7(0x1d5)])==null?_0x56e71d==null?void 0x0:_0x56e71d[_0x5a50a7(0x1d5)]:_0x1ede9f,'startOffset':(_0x90ffe1=_0x5f3234==null?void 0x0:_0x5f3234[_0x5a50a7(0x1d7)])==null?_0x56e71d==null?void 0x0:_0x56e71d[_0x5a50a7(0x1d7)]:_0x90ffe1});return X(_0x183c0c[_0x5a50a7(0x216)],_0x183c0c[_0x5a50a7(0x205)],_0x183c0c[_0x5a50a7(0x1fb)],_0x181e4c[_0x5a50a7(0x20a)],_0x181e4c[_0x5a50a7(0x1f6)]);}},G={'id':_0x40325e(0x1fc),'type':_0x281a66['COMMAND'],'handler':(_0x152e8a,_0x126abc)=>{const _0x2086c5=_0x40325e;var _0x3168a4,_0x410875;let _0x1835f3=q(_0x152e8a,_0x126abc==null?void 0x0:_0x126abc[_0x2086c5(0x205)]);if(!_0x1835f3)return!0x1;let _0x1de233=(_0x3168a4=_0x126abc==null?void 0x0:_0x126abc[_0x2086c5(0x1f6)])==null?(_0x410875=J(_0x152e8a))==null?void 0x0:_0x410875[_0x2086c5(0x1d7)]:_0x3168a4;if(_0x1de233==null)return!0x1;let _0x2f0810=h({'cursorOffset':_0x1de233,'documentData':_0x1835f3[_0x2086c5(0x1fb)]});return _0x2f0810?X(_0x1835f3['commandService'],_0x1835f3['unitId'],_0x1835f3['previousDocumentData'],_0x2f0810[_0x2086c5(0x20a)],_0x2f0810[_0x2086c5(0x1f6)]):!0x1;}},K={'id':_0x40325e(0x1f2),'type':_0x281a66[_0x40325e(0x1f9)],'handler':(_0x23a08d,_0x5941d3)=>{const _0x51f6e4=_0x40325e;var _0x1b2568,_0x20c6e9;let _0x22e50e=q(_0x23a08d,_0x5941d3==null?void 0x0:_0x5941d3['unitId']);if(!_0x22e50e)return!0x1;let _0x3c2511=(_0x1b2568=_0x5941d3==null?void 0x0:_0x5941d3[_0x51f6e4(0x1f6)])==null?(_0x20c6e9=J(_0x23a08d))==null?void 0x0:_0x20c6e9[_0x51f6e4(0x1d7)]:_0x1b2568;if(_0x3c2511==null)return!0x1;let _0x265429=g({'cursorOffset':_0x3c2511,'documentData':_0x22e50e['previousDocumentData'],'paragraphStartIndex':_0x5941d3==null?void 0x0:_0x5941d3['paragraphStartIndex']});return _0x265429?X(_0x22e50e[_0x51f6e4(0x216)],_0x22e50e['unitId'],_0x22e50e[_0x51f6e4(0x1fb)],_0x265429[_0x51f6e4(0x20a)],_0x265429[_0x51f6e4(0x1f6)]):!0x1;}};function q(_0x5640cc,_0x466849){const _0x500a57=_0x40325e;let _0x5e7315=_0x5640cc['get'](_0x2ec637),_0x17140f=_0x466849?_0x5e7315[_0x500a57(0x1e5)](_0x466849):_0x5e7315['getCurrentUnitOfType'](_0x3a751b['UNIVER_DOC']);return _0x17140f?{'commandService':_0x5640cc[_0x500a57(0x1ce)](_0x1774f9),'previousDocumentData':_0x17140f[_0x500a57(0x1d9)](),'unitId':_0x17140f['getUnitId']()}:null;}function J(_0x3cb5f1){const _0x55dc19=_0x40325e;var _0x358840;return(_0x358840=_0x3cb5f1[_0x55dc19(0x1ce)](_0x494e88)[_0x55dc19(0x1da)]())==null?void 0x0:_0x358840[0x0];}function ae(_0x5effca,_0x28b0ce){const _0x30447b=_0x40325e;var _0x144cf3,_0x510013,_0x9cfd28,_0x5320ec,_0x3e7a8d,_0x2ce982,_0x4b3591,_0x32a8b4,_0x43ae29,_0x388322,_0x38c1ce,_0xb589c4,_0xfa8c1e,_0x261472,_0x4c91d9,_0x742faa,_0x4b4a2a,_0x18ca12;let _0x146542=_0x4a49e6[_0x30447b(0x1cd)]();return[Y(_0x146542,['body',_0x30447b(0x20d)],(_0x144cf3=_0x5effca['body'])==null?void 0x0:_0x144cf3[_0x30447b(0x20d)],(_0x510013=_0x28b0ce[_0x30447b(0x1c7)])==null?void 0x0:_0x510013[_0x30447b(0x20d)]),Y(_0x146542,[_0x30447b(0x1c7),_0x30447b(0x214)],(_0x9cfd28=_0x5effca['body'])==null?void 0x0:_0x9cfd28['paragraphs'],(_0x5320ec=_0x28b0ce['body'])==null?void 0x0:_0x5320ec['paragraphs']),Y(_0x146542,['body',_0x30447b(0x1e9)],(_0x3e7a8d=_0x5effca['body'])==null?void 0x0:_0x3e7a8d['sectionBreaks'],(_0x2ce982=_0x28b0ce[_0x30447b(0x1c7)])==null?void 0x0:_0x2ce982[_0x30447b(0x1e9)]),Y(_0x146542,[_0x30447b(0x1c7),_0x30447b(0x1ec)],(_0x4b3591=_0x5effca[_0x30447b(0x1c7)])==null?void 0x0:_0x4b3591['textRuns'],(_0x32a8b4=_0x28b0ce['body'])==null?void 0x0:_0x32a8b4['textRuns']),Y(_0x146542,[_0x30447b(0x1c7),_0x30447b(0x1e4)],(_0x43ae29=_0x5effca[_0x30447b(0x1c7)])==null?void 0x0:_0x43ae29[_0x30447b(0x1e4)],(_0x388322=_0x28b0ce[_0x30447b(0x1c7)])==null?void 0x0:_0x388322[_0x30447b(0x1e4)]),Y(_0x146542,[_0x30447b(0x1c7),_0x30447b(0x1f8)],(_0x38c1ce=_0x5effca[_0x30447b(0x1c7)])==null?void 0x0:_0x38c1ce[_0x30447b(0x1f8)],(_0xb589c4=_0x28b0ce[_0x30447b(0x1c7)])==null?void 0x0:_0xb589c4['customRanges']),Y(_0x146542,[_0x30447b(0x1c7),'customDecorations'],(_0xfa8c1e=_0x5effca[_0x30447b(0x1c7)])==null?void 0x0:_0xfa8c1e[_0x30447b(0x1c0)],(_0x261472=_0x28b0ce[_0x30447b(0x1c7)])==null?void 0x0:_0x261472['customDecorations']),Y(_0x146542,[_0x30447b(0x1c7),_0x30447b(0x1cb)],(_0x4c91d9=_0x5effca[_0x30447b(0x1c7)])==null?void 0x0:_0x4c91d9[_0x30447b(0x1cb)],(_0x742faa=_0x28b0ce[_0x30447b(0x1c7)])==null?void 0x0:_0x742faa[_0x30447b(0x1cb)]),Y(_0x146542,['body','blockRanges'],(_0x4b4a2a=_0x5effca['body'])==null?void 0x0:_0x4b4a2a['blockRanges'],(_0x18ca12=_0x28b0ce[_0x30447b(0x1c7)])==null?void 0x0:_0x18ca12['blockRanges'])][_0x30447b(0x1c9)](Boolean)[_0x30447b(0x1ed)]((_0x42f5cf,_0xe6cabc)=>_0x4a49e6[_0x30447b(0x1ef)](_0x42f5cf,_0xe6cabc),null);}function Y(_0x387bf9,_0x1f694f,_0xbd46dc,_0x1c0df9){const _0x5bb7f8=_0x40325e;return _0x5ac257[_0x5bb7f8(0x1eb)](_0xbd46dc,_0x1c0df9)?null:_0x387bf9['replaceOp'](_0x1f694f,_0xbd46dc,_0x1c0df9);}function X(_0x49ac93,_0x1f8087,_0x5428eb,_0x2cd5bb,_0x540546){const _0x168f45=_0x40325e;let _0x46cb99=ae(_0x5428eb,_0x2cd5bb);return _0x46cb99?!!_0x49ac93[_0x168f45(0x1c3)](_0x4986bc['id'],{'unitId':_0x1f8087,'actions':_0x46cb99,'textRanges':[{'startOffset':_0x540546,'endOffset':_0x540546,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}function _0x26ea(_0x27e74f,_0x2d41fc){_0x27e74f=_0x27e74f-0x1bd;const _0x32e213=_0x32e2();let _0x26ea79=_0x32e213[_0x27e74f];return _0x26ea79;}var Z=class{constructor(_0x366af3){const _0x1a194d=_0x40325e;this[_0x1a194d(0x1cf)]=_0x366af3;}[_0x40325e(0x202)](){const _0x399065=_0x40325e;return this[_0x399065(0x1cf)]['blockId'];}[_0x40325e(0x1ee)](){const _0x4b8532=_0x40325e;let _0x4eb130=this['_getBlockRange']();return _0x4eb130?{'blockId':_0x4eb130['blockId'],'endIndex':_0x4eb130[_0x4b8532(0x203)],'startIndex':_0x4eb130[_0x4b8532(0x1e1)]}:null;}['getText'](){const _0x5298aa=_0x40325e;var _0x109de8;let _0x516a9f=this[_0x5298aa(0x1e3)](),_0x33d5b8=(_0x109de8=this[_0x5298aa(0x1cf)][_0x5298aa(0x1df)]()[_0x5298aa(0x1c7)])==null?void 0x0:_0x109de8[_0x5298aa(0x20d)];return!_0x516a9f||!_0x33d5b8?'':oe(_0x33d5b8[_0x5298aa(0x1c5)](_0x516a9f[_0x5298aa(0x1e1)]+0x1,_0x516a9f[_0x5298aa(0x203)]));}['describe'](){const _0xedaa50=_0x40325e;let _0x110cf4=this['getRange']();return _0x110cf4?{..._0x110cf4,'text':this[_0xedaa50(0x215)](),'type':_0xedaa50(0x1c2)}:null;}['exit'](_0x15090a){const _0x357e3f=_0x40325e;var _0x1f7d64;return!!((_0x1f7d64=this[_0x357e3f(0x1cf)][_0x357e3f(0x216)])!=null&&_0x1f7d64[_0x357e3f(0x1c3)](G['id'],{'cursorOffset':_0x15090a,'unitId':this[_0x357e3f(0x1cf)]['unitId']}));}[_0x40325e(0x1d1)](_0x389da1={}){const _0x1ab6f0=_0x40325e;var _0x4b4abf;return!!((_0x4b4abf=this[_0x1ab6f0(0x1cf)]['commandService'])!=null&&_0x4b4abf[_0x1ab6f0(0x1c3)](K['id'],{..._0x389da1,'unitId':this['_runtime'][_0x1ab6f0(0x205)]}));}[_0x40325e(0x1e3)](){const _0x256c10=_0x40325e;var _0x21c173;return(_0x21c173=this['_runtime']['getDocumentData']()['body'])==null||(_0x21c173=_0x21c173[_0x256c10(0x1db)])==null?void 0x0:_0x21c173[_0x256c10(0x1c1)](_0x2f9979=>_0x2f9979[_0x256c10(0x1bd)]===this['_runtime']['blockId']&&_0x2f9979[_0x256c10(0x209)]===_0x256c10(0x1c2));}};function oe(_0x375700){const _0x41b402=_0x40325e;return Array[_0x41b402(0x1ea)](_0x375700)[_0x41b402(0x1ca)](_0x1d352c=>_0x1d352c===_0x334440[_0x41b402(0x1fd)]?'\x0a':_0x1d352c)[_0x41b402(0x1c9)](_0x3faafe=>_0x3faafe!==_0x334440[_0x41b402(0x1e2)]&&_0x3faafe!==_0x334440[_0x41b402(0x1ff)]&&_0x3faafe!==_0x334440['SECTION_BREAK'])[_0x41b402(0x212)]('')[_0x41b402(0x207)](/\n$/,'');}Object[_0x40325e(0x1bf)](_0x25ae3e['prototype'],{'getQuotes'(){const _0x282553=_0x40325e;var _0x49e904,_0x33a287;return(_0x49e904=(_0x33a287=this[_0x282553(0x1d9)]()[_0x282553(0x1c7)])==null||(_0x33a287=_0x33a287['blockRanges'])==null?void 0x0:_0x33a287[_0x282553(0x1c9)](_0x1badc8=>_0x1badc8[_0x282553(0x209)]==='quote')[_0x282553(0x1ca)](_0x5bbc1b=>Q(this,_0x5bbc1b[_0x282553(0x1bd)])))==null?[]:_0x49e904;},'getQuote'(_0x4a0c19){const _0x3a0bcd=_0x40325e;var _0x19f5cc;return!((_0x19f5cc=this[_0x3a0bcd(0x1d9)]()[_0x3a0bcd(0x1c7)])==null||(_0x19f5cc=_0x19f5cc[_0x3a0bcd(0x1db)])==null)&&_0x19f5cc[_0x3a0bcd(0x20f)](_0x45d1b3=>_0x45d1b3['blockId']===_0x4a0c19&&_0x45d1b3[_0x3a0bcd(0x209)]===_0x3a0bcd(0x1c2))?Q(this,_0x4a0c19):null;},'getQuoteAt'(_0x392741){const _0x16c50e=_0x40325e;var _0x597844;let _0xd1ac8f=(_0x597844=this[_0x16c50e(0x1d9)]()[_0x16c50e(0x1c7)])==null||(_0x597844=_0x597844[_0x16c50e(0x1db)])==null||(_0x597844=_0x597844[_0x16c50e(0x1c1)](_0x592fdb=>_0x592fdb[_0x16c50e(0x209)]===_0x16c50e(0x1c2)&&_0x592fdb[_0x16c50e(0x1e1)]<=_0x392741&&_0x392741<=_0x592fdb[_0x16c50e(0x203)]))==null?void 0x0:_0x597844[_0x16c50e(0x1bd)];return _0xd1ac8f?Q(this,_0xd1ac8f):null;},'findQuoteByText'(_0x525f23){const _0x37a432=_0x40325e;var _0x5de1eb;return(_0x5de1eb=this[_0x37a432(0x1de)](_0x525f23)[0x0])==null?null:_0x5de1eb;},'findQuotes'(_0xb6b40){const _0x3ea5f5=_0x40325e;let _0x1f18dc=typeof _0xb6b40==_0x3ea5f5(0x1e6)?{'text':_0xb6b40}:_0xb6b40;return this['getQuotes']()[_0x3ea5f5(0x1c9)](_0x179f27=>!(_0x1f18dc[_0x3ea5f5(0x1bd)]&&_0x179f27[_0x3ea5f5(0x202)]()!==_0x1f18dc[_0x3ea5f5(0x1bd)]||_0x1f18dc[_0x3ea5f5(0x204)]&&!_0x179f27[_0x3ea5f5(0x215)]()[_0x3ea5f5(0x1e0)](_0x1f18dc[_0x3ea5f5(0x204)])));},'insertQuote'(_0x2af7a3={}){const _0x5f27e9=_0x40325e;var _0x864aac,_0x2a6b74;let _0xa958b4=(_0x864aac=_0x2af7a3[_0x5f27e9(0x1bd)])==null?_0x5f27e9(0x201)+Date[_0x5f27e9(0x1d2)]():_0x864aac;return(_0x2a6b74=$(this))!=null&&_0x2a6b74[_0x5f27e9(0x1c3)](W['id'],{..._0x2af7a3,'blockId':_0xa958b4,'unitId':this[_0x5f27e9(0x202)]()})?Q(this,_0xa958b4):null;},'exitQuote'(_0x49ca65){const _0x39d5cd=_0x40325e;var _0x56c922;return!!((_0x56c922=$(this))!=null&&_0x56c922['syncExecuteCommand'](G['id'],{'cursorOffset':_0x49ca65,'unitId':this[_0x39d5cd(0x202)]()}));},'cancelEmptyQuoteParagraph'(_0x34bb72={}){const _0x3090d7=_0x40325e;var _0x2dc910;return!!((_0x2dc910=$(this))!=null&&_0x2dc910[_0x3090d7(0x1c3)](K['id'],{..._0x34bb72,'unitId':this['getId']()}));}});function Q(_0x22c030,_0x59cfc6){const _0x481bca=_0x40325e;return new Z({'blockId':_0x59cfc6,'commandService':$(_0x22c030),'getDocumentData':()=>_0x22c030[_0x481bca(0x1d9)](),'unitId':_0x22c030[_0x481bca(0x202)]()});}function $(_0x392f2e){const _0x388f77=_0x40325e;var _0x44ae0e,_0x57d5c5;let _0x253823=_0x392f2e;return(_0x44ae0e=_0x253823[_0x388f77(0x1f3)])==null?(_0x57d5c5=_0x253823['_injector'])==null?void 0x0:_0x57d5c5['get'](_0x1774f9):_0x44ae0e;}export{Z as FDocsQuote};