@univerjs-pro/docs-code 0.25.0 → 0.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5d89db=_0x1854;(function(_0x7b897a,_0x26c335){const _0x55ad36=_0x1854,_0x589cce=_0x7b897a();while(!![]){try{const _0x4292fc=-parseInt(_0x55ad36(0x183))/0x1+parseInt(_0x55ad36(0x184))/0x2*(-parseInt(_0x55ad36(0x1bf))/0x3)+parseInt(_0x55ad36(0x1bc))/0x4+parseInt(_0x55ad36(0x1d2))/0x5+parseInt(_0x55ad36(0x169))/0x6*(-parseInt(_0x55ad36(0x1ce))/0x7)+parseInt(_0x55ad36(0x1b7))/0x8+parseInt(_0x55ad36(0x1ab))/0x9;if(_0x4292fc===_0x26c335)break;else _0x589cce['push'](_0x589cce['shift']());}catch(_0x45cf00){_0x589cce['push'](_0x589cce['shift']());}}}(_0x15c7,0x9133d));import{CommandType as _0x22f4b7,DataStreamTreeTokenType as _0x180f7a,Disposable as _0x4bc668,ICommandService as _0x2afc20,IUniverInstanceService as _0x40925a,JSONX as _0x209e0e,Tools as _0x20dd72,UniverInstanceType as _0x10a714,generateRandomId as _0x29ed6a}from'@univerjs/core';import{FDocument as _0x19b331}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1206d3,RichTextEditingMutation as _0x3d459c}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xf3e6d5}from'rxjs';const p=_0x5d89db(0x1c3),m={'language':_0x5d89db(0x18f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x1ec33f){return{...m,..._0x1ec33f};}function g(_0x5ea74a){const _0x87bc6c=_0x5d89db;var _0x1ef1b5;let _0x377ca0=(_0x1ef1b5=_0x5ea74a==null?void 0x0:_0x5ea74a['codes'])==null?{}:_0x1ef1b5;return{'codes':Object[_0x87bc6c(0x192)](Object[_0x87bc6c(0x1af)](_0x377ca0)['map'](([_0x177b68,_0x239938])=>[_0x177b68,h(_0x239938)]))};}function _(_0x355e4b,_0x7b7f9d,_0x194441){const _0x557168=_0x5d89db;let _0x59518b=g(_0x355e4b);return _0x59518b['codes'][_0x7b7f9d]=h({..._0x59518b[_0x557168(0x181)][_0x7b7f9d],..._0x194441}),_0x59518b;}function v(_0x392a07,_0x36f641){const _0x3eab39=_0x5d89db;let _0x4f4fb2=g(_0x392a07);return delete _0x4f4fb2[_0x3eab39(0x181)][_0x36f641],_0x4f4fb2;}const y=_0x5d89db(0x172);function b(_0x14296b){const _0x28ff2c=_0x5d89db;var _0x2833cb,_0x347dd8,_0x404e4d;let _0x41ae25=E(_0x14296b[_0x28ff2c(0x16f)]),_0x4b41df=D(_0x41ae25),_0x4c0388=ee(_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x190045=_0x4c0388?(_0x2833cb=_0x4b41df['blockRanges'])==null?void 0x0:_0x2833cb['find'](_0x4842fb=>_0x4842fb[_0x28ff2c(0x18b)]===_0x4c0388[_0x28ff2c(0x1aa)]&&_0x4842fb['endIndex']+0x1===_0x4c0388[_0x28ff2c(0x16e)]):void 0x0,{startOffset:_0x5236ac,endOffset:_0x1c60d9}=_0x190045?_0x4c0388:se(_0x4b41df,_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x436bf5=le(_0x4b41df,_0x5236ac,_0x1c60d9),_0x1dc3db=(_0x347dd8=_0x190045==null?void 0x0:_0x190045['blockId'])==null?_0x14296b[_0x28ff2c(0x1c6)]:_0x347dd8,_0x28952e=_(_0x14296b[_0x28ff2c(0x1ca)],_0x1dc3db,{...m,..._0x14296b[_0x28ff2c(0x171)]});if(_0x190045)return _0x190045[_0x28ff2c(0x1a5)]=p,x(_0x4b41df,_0x5236ac,_0x1c60d9),w(_0x4b41df,_0x5236ac,_0x1c60d9,_0x436bf5),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};if(_0x5236ac===_0x1c60d9){let _0x3f03e0=''+_0x180f7a[_0x28ff2c(0x16a)]+_0x180f7a[_0x28ff2c(0x17c)]+_0x180f7a[_0x28ff2c(0x1ba)];return j(_0x4b41df,_0x5236ac,_0x3f03e0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x436bf5)}],'blockRanges':[{'blockId':_0x1dc3db,'blockType':p,'startIndex':0x0,'endIndex':_0x3f03e0[_0x28ff2c(0x1df)]-0x1}]}),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}return j(_0x4b41df,_0x1c60d9,_0x180f7a[_0x28ff2c(0x1ba)]),j(_0x4b41df,_0x5236ac,_0x180f7a['BLOCK_START']),w(_0x4b41df,_0x5236ac,_0x1c60d9+0x1,_0x436bf5),_0x4b41df[_0x28ff2c(0x1d1)]=[...(_0x404e4d=_0x4b41df[_0x28ff2c(0x1d1)])==null?[]:_0x404e4d,{'blockId':_0x1dc3db,'blockType':p,'startIndex':_0x5236ac,'endIndex':_0x1c60d9+0x1}][_0x28ff2c(0x1b8)]((_0x349f4f,_0x5a5628)=>_0x349f4f[_0x28ff2c(0x18b)]-_0x5a5628[_0x28ff2c(0x18b)]),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}function x(_0x3bc76e,_0x438d29,_0x5927f0){const _0x3ae9db=_0x5d89db;var _0x48d2d6;((_0x48d2d6=_0x3bc76e['paragraphs'])==null?[]:_0x48d2d6)[_0x3ae9db(0x17f)](_0x207d22=>_0x207d22[_0x3ae9db(0x18b)]>_0x438d29&&_0x207d22['startIndex']<_0x5927f0)['forEach'](_0x343e72=>{const _0x42712e=_0x3ae9db;var _0xe98acd;let _0x5da6d6={...(_0xe98acd=_0x343e72[_0x42712e(0x19f)])==null?{}:_0xe98acd};delete _0x5da6d6['spaceAbove'],delete _0x5da6d6[_0x42712e(0x1b3)],_0x343e72[_0x42712e(0x19f)]=_0x5da6d6;});}function ee(_0x2428ba,_0x59cb11){const _0x2d6b0a=_0x5d89db;return _0x2428ba==null||_0x59cb11==null||_0x2428ba===_0x59cb11?null:{'startOffset':Math['min'](_0x2428ba,_0x59cb11),'endOffset':Math[_0x2d6b0a(0x1b1)](_0x2428ba,_0x59cb11)};}function te(_0x123960){const _0x3e1eb0=_0x5d89db;return{'nextDocumentData':E(_0x123960['documentData']),'nextMetadata':_(_0x123960[_0x3e1eb0(0x1ca)],_0x123960['blockId'],_0x123960[_0x3e1eb0(0x171)]),'cursorOffset':0x0};}function ne(_0x3f1747){const _0x4b4503=_0x5d89db;var _0x436565,_0x30ddc3;let _0x1ac352=E(_0x3f1747[_0x4b4503(0x16f)]),_0x18951f=D(_0x1ac352),_0x1baad2=S(_0x18951f,_0x3f1747[_0x4b4503(0x17b)]);if(!_0x1baad2)return null;let _0xfbf700=T(_0x18951f,_0x1baad2),_0x474e31=_0xfbf700[_0xfbf700[_0x4b4503(0x1df)]-0x1];if(!_0x474e31||!oe(_0x18951f,_0x1baad2,_0x474e31)||_0x3f1747[_0x4b4503(0x17b)]<_0x474e31[_0x4b4503(0x18b)])return null;let _0x552c99=k(_0x18951f,_0x1baad2,_0x474e31);if(_0x552c99>=_0x1baad2[_0x4b4503(0x1e0)])return null;_0x18951f['dataStream']=[_0x18951f['dataStream']['slice'](0x0,_0x552c99),_0x180f7a['BLOCK_END'],_0x18951f[_0x4b4503(0x167)][_0x4b4503(0x19c)](_0x552c99,_0x1baad2['endIndex']),_0x18951f[_0x4b4503(0x167)]['slice'](_0x1baad2[_0x4b4503(0x1e0)]+0x1)]['join'](''),z(_0x18951f[_0x4b4503(0x1cd)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f[_0x4b4503(0x1d9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f['customBlocks'],_0x552c99,_0x1baad2['endIndex'],0x1),pe(_0x18951f[_0x4b4503(0x193)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b6)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x186)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),(_0x436565=_0x18951f[_0x4b4503(0x1d1)])==null||_0x436565[_0x4b4503(0x1ae)](_0x53ef3f=>{const _0x2e6b54=_0x4b4503;_0x53ef3f===_0x1baad2||_0x53ef3f['blockId']===_0x1baad2[_0x2e6b54(0x1c6)]?_0x53ef3f[_0x2e6b54(0x1e0)]=_0x552c99:_0x53ef3f['startIndex']>=_0x552c99&&_0x53ef3f[_0x2e6b54(0x18b)]<_0x1baad2[_0x2e6b54(0x1e0)]&&(_0x53ef3f['startIndex']+=0x1,_0x53ef3f['endIndex']+=0x1);});let _0x1e928c=T(_0x18951f,{..._0x1baad2,'endIndex':_0x552c99});_0x1e928c[_0x4b4503(0x1ae)]((_0x4b8e10,_0x1fb964)=>{const _0xf8cec9=_0x4b4503;var _0x16ed39;_0x4b8e10[_0xf8cec9(0x19f)]={...(_0x16ed39=_0x4b8e10['paragraphStyle'])==null?{}:_0x16ed39,...C(_0x1fb964===0x0,_0x1fb964===_0x1e928c[_0xf8cec9(0x1df)]-0x1)};});let _0x30044a=(_0x30ddc3=_0x18951f[_0x4b4503(0x1cd)])==null?void 0x0:_0x30ddc3['find'](_0x425d4f=>_0x425d4f[_0x4b4503(0x18b)]===_0x552c99+0x1);return _0x30044a&&(_0x30044a[_0x4b4503(0x19f)]=ae(_0x30044a['paragraphStyle'])),{'nextDocumentData':_0x1ac352,'cursorOffset':_0x552c99+0x1};}function re(_0x2fa921){let _0x1a02c2=E(_0x2fa921['documentData']),_0x59944c=D(_0x1a02c2),_0x427edd=S(_0x59944c,_0x2fa921['cursorOffset']);return _0x427edd&&ie(_0x1a02c2,_0x59944c,_0x427edd,_0x2fa921['cursorOffset'],_0x2fa921['paragraphStartIndex'])||null;}function ie(_0x1055e6,_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff){const _0x51ea55=_0x5d89db;let _0x52e1ef=de(_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff);if(!_0x52e1ef)return null;let _0x3a65a9=_0x52e1ef['endTokenOffset']-0x1;return M(_0x2279d3,_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)],_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)]+0x1),{'nextDocumentData':_0x1055e6,'cursorOffset':_0x3a65a9};}function S(_0x488eeb,_0x27eda6){const _0x58c2df=_0x5d89db;var _0x5db9ee;return(_0x5db9ee=_0x488eeb[_0x58c2df(0x1d1)])==null?void 0x0:_0x5db9ee['find'](_0x5246c9=>{const _0x2db0f6=_0x58c2df;let _0x3438e5=A(_0x488eeb,_0x5246c9);return _0x5246c9[_0x2db0f6(0x1a5)]===_0x2db0f6(0x1c3)&&_0x5246c9[_0x2db0f6(0x18b)]<=_0x27eda6&&_0x27eda6<=_0x3438e5+0x2;});}function C(_0x464941,_0xc196a9,_0x32c1c9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x464941&&_0x32c1c9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x3ae6ec,_0xbce770,_0x274b60,_0x252afb=!0x1){const _0x2e95dc=_0x5d89db;var _0x20cab8;let _0x32cfbd=((_0x20cab8=_0x3ae6ec[_0x2e95dc(0x1cd)])==null?[]:_0x20cab8)['filter'](_0x309b31=>_0x309b31[_0x2e95dc(0x18b)]>_0xbce770&&_0x309b31[_0x2e95dc(0x18b)]<_0x274b60);_0x32cfbd[_0x2e95dc(0x1ae)]((_0x5047a3,_0x4fc965)=>{const _0x1dfc56=_0x2e95dc;var _0x2598f5;_0x5047a3['paragraphStyle']={...(_0x2598f5=_0x5047a3[_0x1dfc56(0x19f)])==null?{}:_0x2598f5,...C(_0x4fc965===0x0,_0x4fc965===_0x32cfbd[_0x1dfc56(0x1df)]-0x1,_0x252afb)};});}function ae(_0x9c423d){const _0x45f1c7=_0x5d89db;var _0x3698ba,_0x55becb;let _0x1b8e8d={..._0x9c423d==null?{}:_0x9c423d};return delete _0x1b8e8d[_0x45f1c7(0x16c)],delete _0x1b8e8d[_0x45f1c7(0x1ad)],delete _0x1b8e8d[_0x45f1c7(0x1bb)],delete _0x1b8e8d['spaceBelow'],((_0x3698ba=_0x1b8e8d['textStyle'])==null?void 0x0:_0x3698ba['ff'])===y&&((_0x55becb=_0x1b8e8d[_0x45f1c7(0x196)])==null?void 0x0:_0x55becb['fs'])===0xc&&delete _0x1b8e8d[_0x45f1c7(0x196)],_0x1b8e8d;}function T(_0x7384b0,_0x56f1da){const _0xe053af=_0x5d89db;var _0x704972;let _0x9ad8b7=A(_0x7384b0,_0x56f1da);return((_0x704972=_0x7384b0['paragraphs'])==null?[]:_0x704972)[_0xe053af(0x17f)](_0x2cab86=>_0x2cab86[_0xe053af(0x18b)]>_0x56f1da[_0xe053af(0x18b)]&&_0x2cab86[_0xe053af(0x18b)]<_0x9ad8b7);}function oe(_0x263e05,_0x58c442,_0x572df9){const _0x3e95bd=_0x5d89db;let _0x33beef=k(_0x263e05,_0x58c442,_0x572df9),_0x297e16=_0x263e05[_0x3e95bd(0x167)][_0x3e95bd(0x19c)](_0x33beef,_0x572df9[_0x3e95bd(0x18b)]);return Array['from'](_0x297e16)[_0x3e95bd(0x19e)](_0x27c5a4=>_0x27c5a4===_0x180f7a[_0x3e95bd(0x16a)]||_0x27c5a4===_0x180f7a[_0x3e95bd(0x1ba)]);}function E(_0x29845f){const _0x4316e8=_0x5d89db;return _0x20dd72[_0x4316e8(0x1b0)](_0x29845f);}function D(_0x58e932){if(!_0x58e932['body'])throw Error('Document\x20body\x20is\x20required');return _0x58e932['body'];}function se(_0x36f4e8,_0x3bd5d6,_0x25166a){const _0x235829=_0x5d89db;if(_0x3bd5d6==null||_0x25166a==null){let _0x25fce0=ce(_0x36f4e8);return{'startOffset':_0x25fce0,'endOffset':_0x25fce0};}let _0x4ef7a4=Math['min'](_0x3bd5d6,_0x25166a),_0x46f537=Math[_0x235829(0x1b1)](_0x3bd5d6,_0x25166a);return _0x4ef7a4===_0x46f537?{'startOffset':_0x4ef7a4,'endOffset':_0x4ef7a4}:ue(_0x36f4e8,_0x4ef7a4,_0x46f537);}function ce(_0x496e6a){const _0x37ea06=_0x5d89db;return _0x496e6a[_0x37ea06(0x167)]['endsWith'](_0x180f7a[_0x37ea06(0x1d5)])?Math[_0x37ea06(0x1b1)](0x0,_0x496e6a[_0x37ea06(0x167)]['length']-0x1):_0x496e6a[_0x37ea06(0x167)][_0x37ea06(0x1df)];}function le(_0x5726fc,_0xc40240,_0x1eb7dd){const _0x529f64=_0x5d89db;var _0x53d910;let _0x140a9b=Math[_0x529f64(0x180)](_0xc40240,_0x1eb7dd),_0x393ebb=Math['max'](_0xc40240,_0x1eb7dd);return!!((_0x53d910=_0x5726fc['tables'])!=null&&_0x53d910[_0x529f64(0x1ac)](_0x526107=>_0x140a9b>_0x526107[_0x529f64(0x18b)]&&_0x140a9b<_0x526107['endIndex']||_0x393ebb>_0x526107['startIndex']&&_0x393ebb<_0x526107[_0x529f64(0x1e0)]||_0x140a9b<=_0x526107['startIndex']&&_0x393ebb>=_0x526107[_0x529f64(0x1e0)]));}function ue(_0x4626b9,_0x1d6f01,_0x3dc196){const _0x2da2f8=_0x5d89db;var _0x154a6f,_0x2f341b;let _0x4ffbed=[...(_0x154a6f=_0x4626b9[_0x2da2f8(0x1cd)])==null?[]:_0x154a6f][_0x2da2f8(0x1b8)]((_0x3f90de,_0x959ee1)=>_0x3f90de[_0x2da2f8(0x18b)]-_0x959ee1[_0x2da2f8(0x18b)]),_0x12ab00=_0x4ffbed[_0x2da2f8(0x17a)]((_0x2c6f5f,_0x5538a6)=>(_0x5538a6===0x0?0x0:_0x4ffbed[_0x5538a6-0x1][_0x2da2f8(0x18b)]+0x1)<=_0x1d6f01&&_0x1d6f01<=_0x2c6f5f['startIndex']),_0x502b5b=(_0x2f341b=_0x4ffbed[_0x2da2f8(0x17a)](_0x3dd08e=>_0x3dd08e[_0x2da2f8(0x18b)]>=_0x3dc196-0x1))==null?_0x4ffbed[_0x4ffbed['length']-0x1]:_0x2f341b;return{'startOffset':_0x12ab00?O(_0x4ffbed,_0x12ab00):_0x1d6f01,'endOffset':_0x502b5b?_0x502b5b[_0x2da2f8(0x18b)]+0x1:_0x3dc196};}function O(_0x52bb99,_0x257b34){const _0x4ba524=_0x5d89db;let _0x296f7d=_0x52bb99[_0x4ba524(0x18e)](_0x257b34);return _0x296f7d>0x0?_0x52bb99[_0x296f7d-0x1][_0x4ba524(0x18b)]+0x1:0x0;}function k(_0x40997d,_0x368fc9,_0x2004ca){const _0xdc78f1=_0x5d89db;var _0x447af6;return Math[_0xdc78f1(0x1b1)](O((_0x447af6=_0x40997d[_0xdc78f1(0x1cd)])==null?[]:_0x447af6,_0x2004ca),_0x368fc9[_0xdc78f1(0x18b)]+0x1);}function A(_0x31a5f1,_0x3837ff){const _0x4ae2a5=_0x5d89db;return _0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff['endIndex']]===_0x180f7a['BLOCK_END']?_0x3837ff[_0x4ae2a5(0x1e0)]:_0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff[_0x4ae2a5(0x1e0)]+0x1]===_0x180f7a[_0x4ae2a5(0x1ba)]?_0x3837ff[_0x4ae2a5(0x1e0)]+0x1:_0x3837ff[_0x4ae2a5(0x1e0)];}function de(_0x406db7,_0xe8b75b,_0x5d3cc7,_0x1b8be9){const _0x2b6f7c=_0x5d89db;var _0x4603f1,_0x311b17;let _0x33b84d=A(_0x406db7,_0xe8b75b),_0x2f0eb3=((_0x4603f1=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x4603f1)[_0x2b6f7c(0x17a)](_0x213bf2=>_0x213bf2['startIndex']===_0x33b84d+0x1);if(!_0x2f0eb3||_0x1b8be9!=null&&_0x2f0eb3[_0x2b6f7c(0x18b)]!==_0x1b8be9||_0x5d3cc7<_0x33b84d||_0x5d3cc7>_0x2f0eb3[_0x2b6f7c(0x18b)]+0x1||_0x406db7['dataStream'][_0x2f0eb3['startIndex']]!==_0x180f7a['PARAGRAPH'])return null;let _0x5ded07=O((_0x311b17=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x311b17,_0x2f0eb3),_0x1f6e0b=_0x406db7[_0x2b6f7c(0x167)][_0x2b6f7c(0x19c)](_0x5ded07,_0x2f0eb3[_0x2b6f7c(0x18b)]);return Array[_0x2b6f7c(0x19b)](_0x1f6e0b)[_0x2b6f7c(0x19e)](_0x496223=>_0x496223===_0x180f7a['BLOCK_END'])?{'paragraph':_0x2f0eb3,'endTokenOffset':_0x33b84d}:null;}function j(_0x148b30,_0x272251,_0x3ecb02,_0x3c2dbd={}){const _0x5d6590=_0x5d89db;var _0x59270d,_0x406a2a;if(_0x3ecb02){if(_0x148b30[_0x5d6590(0x167)]=''+_0x148b30['dataStream'][_0x5d6590(0x19c)](0x0,_0x272251)+_0x3ecb02+_0x148b30[_0x5d6590(0x167)][_0x5d6590(0x19c)](_0x272251),N(_0x148b30,_0x272251,_0x3ecb02[_0x5d6590(0x1df)]),(_0x59270d=_0x3c2dbd[_0x5d6590(0x1cd)])!=null&&_0x59270d['length']){var _0x2d1b30;_0x148b30[_0x5d6590(0x1cd)]=[...(_0x2d1b30=_0x148b30[_0x5d6590(0x1cd)])==null?[]:_0x2d1b30,..._0x3c2dbd[_0x5d6590(0x1cd)]['map'](_0x5745c0=>({..._0x5745c0,'startIndex':_0x5745c0[_0x5d6590(0x18b)]+_0x272251}))][_0x5d6590(0x1b8)]((_0x1a2b43,_0x5776be)=>_0x1a2b43[_0x5d6590(0x18b)]-_0x5776be[_0x5d6590(0x18b)]);}if((_0x406a2a=_0x3c2dbd[_0x5d6590(0x1d1)])!=null&&_0x406a2a[_0x5d6590(0x1df)]){var _0x40dd97;_0x148b30['blockRanges']=[...(_0x40dd97=_0x148b30[_0x5d6590(0x1d1)])==null?[]:_0x40dd97,..._0x3c2dbd[_0x5d6590(0x1d1)][_0x5d6590(0x197)](_0x46d1ae=>({..._0x46d1ae,'startIndex':_0x46d1ae['startIndex']+_0x272251,'endIndex':_0x46d1ae['endIndex']+_0x272251}))][_0x5d6590(0x1b8)]((_0xdb31dd,_0x478c6c)=>_0xdb31dd[_0x5d6590(0x18b)]-_0x478c6c[_0x5d6590(0x18b)]);}}}function M(_0x1ec24b,_0x1e247d,_0x248914){const _0x2b455c=_0x5d89db;let _0x12b852=_0x248914-_0x1e247d;_0x1ec24b[_0x2b455c(0x167)]=''+_0x1ec24b[_0x2b455c(0x167)][_0x2b455c(0x19c)](0x0,_0x1e247d)+_0x1ec24b[_0x2b455c(0x167)]['slice'](_0x248914),P(_0x1ec24b,_0x1e247d,_0x12b852);}function N(_0x63c3d1,_0x4a1b30,_0x4527a5){const _0x1731c2=_0x5d89db;_0x63c3d1[_0x1731c2(0x1cd)]=F(_0x63c3d1[_0x1731c2(0x1cd)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1d9)]=F(_0x63c3d1[_0x1731c2(0x1d9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1cf)]=F(_0x63c3d1[_0x1731c2(0x1cf)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x193)]=fe(_0x63c3d1[_0x1731c2(0x193)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b9)]=L(_0x63c3d1[_0x1731c2(0x1b9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b6)]=L(_0x63c3d1[_0x1731c2(0x1b6)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x186)]=L(_0x63c3d1[_0x1731c2(0x186)],_0x4a1b30,_0x4527a5),_0x63c3d1['blockRanges']=L(_0x63c3d1[_0x1731c2(0x1d1)],_0x4a1b30,_0x4527a5);}function P(_0x24fcf5,_0x2093a1,_0x34c49c){const _0x461e01=_0x5d89db;var _0x4909de,_0x341484;_0x24fcf5[_0x461e01(0x1cd)]=I(_0x24fcf5['paragraphs'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d9)]=I(_0x24fcf5['sectionBreaks'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1cf)]=I(_0x24fcf5[_0x461e01(0x1cf)],_0x2093a1,_0x34c49c),_0x24fcf5['textRuns']=(_0x4909de=R((_0x341484=_0x24fcf5[_0x461e01(0x193)])==null?void 0x0:_0x341484[_0x461e01(0x197)](_0x26a58f=>({..._0x26a58f,'startIndex':_0x26a58f['st'],'endIndex':_0x26a58f['ed']})),_0x2093a1,_0x34c49c))==null?void 0x0:_0x4909de[_0x461e01(0x197)](_0x11977a=>{let {startIndex:_0x3fc5d7,endIndex:_0x40b783,..._0x36ed1d}=_0x11977a;return{..._0x36ed1d,'st':_0x3fc5d7,'ed':_0x40b783};}),_0x24fcf5[_0x461e01(0x1b9)]=R(_0x24fcf5[_0x461e01(0x1b9)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1b6)]=R(_0x24fcf5[_0x461e01(0x1b6)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x186)]=R(_0x24fcf5[_0x461e01(0x186)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d1)]=R(_0x24fcf5[_0x461e01(0x1d1)],_0x2093a1,_0x34c49c);}function F(_0x228944,_0x4e0696,_0x7d41f5){const _0x4df949=_0x5d89db;return _0x228944==null?void 0x0:_0x228944['map'](_0x2a62a1=>_0x2a62a1['startIndex']>=_0x4e0696?{..._0x2a62a1,'startIndex':_0x2a62a1[_0x4df949(0x18b)]+_0x7d41f5}:_0x2a62a1);}function I(_0x40bfcd,_0x15617a,_0x3d6e6d){const _0x5b4e60=_0x5d89db;let _0xf7074d=_0x15617a+_0x3d6e6d;return _0x40bfcd==null?void 0x0:_0x40bfcd[_0x5b4e60(0x197)](_0x28f8b2=>_0x28f8b2[_0x5b4e60(0x18b)]>=_0x15617a&&_0x28f8b2[_0x5b4e60(0x18b)]<_0xf7074d?null:_0x28f8b2[_0x5b4e60(0x18b)]>=_0xf7074d?{..._0x28f8b2,'startIndex':_0x28f8b2[_0x5b4e60(0x18b)]-_0x3d6e6d}:_0x28f8b2)[_0x5b4e60(0x17f)](_0x3e7c4e=>_0x3e7c4e!=null);}function fe(_0x2aa63b,_0x1cd250,_0x2f4997){const _0x5b0840=_0x5d89db;return _0x2aa63b==null?void 0x0:_0x2aa63b[_0x5b0840(0x197)](_0x5ad183=>_0x5ad183['st']>=_0x1cd250?{..._0x5ad183,'st':_0x5ad183['st']+_0x2f4997,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183['ed']>_0x1cd250?{..._0x5ad183,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183);}function L(_0x2c077c,_0x2fa6f9,_0x516a1e){const _0x1b3190=_0x5d89db;return _0x2c077c==null?void 0x0:_0x2c077c['map'](_0x232066=>_0x232066[_0x1b3190(0x18b)]>=_0x2fa6f9?{..._0x232066,'startIndex':_0x232066['startIndex']+_0x516a1e,'endIndex':_0x232066[_0x1b3190(0x1e0)]+_0x516a1e}:_0x232066[_0x1b3190(0x1e0)]>=_0x2fa6f9?{..._0x232066,'endIndex':_0x232066['endIndex']+_0x516a1e}:_0x232066);}function R(_0x48a13d,_0x3662ff,_0x2cba16){const _0x22ac11=_0x5d89db;let _0x2b90e5=_0x3662ff+_0x2cba16;return _0x48a13d==null?void 0x0:_0x48a13d['map'](_0x264c7b=>_0x264c7b[_0x22ac11(0x18b)]>=_0x3662ff&&_0x264c7b[_0x22ac11(0x1e0)]<_0x2b90e5?null:_0x264c7b[_0x22ac11(0x18b)]>=_0x2b90e5?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']-_0x2cba16,'endIndex':_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16}:_0x264c7b[_0x22ac11(0x1e0)]>=_0x3662ff?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']<_0x3662ff?_0x264c7b[_0x22ac11(0x18b)]:_0x3662ff,'endIndex':Math['max'](_0x3662ff,_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16)}:_0x264c7b)[_0x22ac11(0x17f)](_0x386b00=>_0x386b00!=null);}function z(_0x551695,_0xb6dc78,_0x58d401,_0x511853){const _0x4e06b7=_0x5d89db;_0x551695==null||_0x551695[_0x4e06b7(0x1ae)](_0x37764=>{const _0x57ba2c=_0x4e06b7;_0x37764['startIndex']>=_0xb6dc78&&_0x37764[_0x57ba2c(0x18b)]<_0x58d401&&(_0x37764['startIndex']+=_0x511853);});}function pe(_0x168cdc,_0x29198a,_0x22ceec,_0x5585f0){_0x168cdc==null||_0x168cdc['forEach'](_0x4520bc=>{_0x4520bc['st']>=_0x29198a&&_0x4520bc['st']<_0x22ceec?(_0x4520bc['st']+=_0x5585f0,_0x4520bc['ed']+=_0x5585f0):_0x4520bc['ed']>_0x29198a&&_0x4520bc['ed']<_0x22ceec&&(_0x4520bc['ed']+=_0x5585f0);});}function B(_0x523c77,_0x318ef9,_0x4657bb,_0x4f32a3){const _0x59986d=_0x5d89db;_0x523c77==null||_0x523c77[_0x59986d(0x1ae)](_0x13d3e6=>{const _0x3c8de1=_0x59986d;_0x13d3e6[_0x3c8de1(0x18b)]>=_0x318ef9&&_0x13d3e6[_0x3c8de1(0x18b)]<_0x4657bb?(_0x13d3e6[_0x3c8de1(0x18b)]+=_0x4f32a3,_0x13d3e6['endIndex']+=_0x4f32a3):_0x13d3e6[_0x3c8de1(0x1e0)]>_0x318ef9&&_0x13d3e6[_0x3c8de1(0x1e0)]<_0x4657bb&&(_0x13d3e6[_0x3c8de1(0x1e0)]+=_0x4f32a3);});}function _0x15c7(){const _0x46d774=['sort','tables','BLOCK_END','spaceAbove','104408iUUFUv','complete','docs-code.command.insert','1750191DsIkZw','_runtime','compose','getUnitId','code','next','reduce','blockId','syncExecuteCommand','dispose','docs-code.command.exit','metadata','UNIVER_DOC','removeUnit','paragraphs','63aJTywD','customBlocks','join','blockRanges','2319365sUToex','string','paragraph','SECTION_BREAK','COMMAND','cancelEmptyParagraph','text','sectionBreaks','getId','getTextRanges','replace','getDocumentData','_getBlockRange','length','endIndex','dataStream','commandService','545112IMeicc','BLOCK_START','getCodeConfig','indentEnd','delete','endOffset','documentData','getConfig','config','monospace','getSnapshot','now','docs-code.command.update','getText','getRange','body','function','find','cursorOffset','PARAGRAPH','nextMetadata','clear','filter','min','codes','object','337124KZSZGK','4eFxccj','includes','customDecorations','get','getCurrentUnitOfType','toPrimitive','call','startIndex','_resources','serialize','indexOf','javascript','docs-code.command.cancel-empty-paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromEntries','textRuns','previousDocumentData','paragraphStartIndex','textStyle','map','prototype','exit','model','from','slice','_change$','every','paragraphStyle','_commandService','assign','unitId','_injector','nextDocumentData','blockType','describe','set','setCodeConfig','iterator','startOffset','11645280uUTYsW','some','indentStart','forEach','entries','deepClone','max','getCodes','spaceBelow','updateConfig','deserialize','customRanges','9059520AltEjz'];_0x15c7=function(){return _0x46d774;};return _0x15c7();}function V(_0x5cae6c){'@babel/helpers - typeof';const _0x2d8f5b=_0x5d89db;return V=typeof Symbol==_0x2d8f5b(0x179)&&typeof Symbol[_0x2d8f5b(0x1a9)]=='symbol'?function(_0x338cab){return typeof _0x338cab;}:function(_0x11fad8){const _0x374883=_0x2d8f5b;return _0x11fad8&&typeof Symbol==_0x374883(0x179)&&_0x11fad8['constructor']===Symbol&&_0x11fad8!==Symbol[_0x374883(0x198)]?'symbol':typeof _0x11fad8;},V(_0x5cae6c);}function me(_0xfde3a9,_0x4297e4){const _0x46d0ee=_0x5d89db;if(V(_0xfde3a9)!=_0x46d0ee(0x182)||!_0xfde3a9)return _0xfde3a9;var _0x4bbc02=_0xfde3a9[Symbol[_0x46d0ee(0x189)]];if(_0x4bbc02!==void 0x0){var _0x525cf0=_0x4bbc02[_0x46d0ee(0x18a)](_0xfde3a9,_0x4297e4||'default');if(V(_0x525cf0)!=_0x46d0ee(0x182))return _0x525cf0;throw TypeError(_0x46d0ee(0x191));}return(_0x4297e4===_0x46d0ee(0x1d3)?String:Number)(_0xfde3a9);}function he(_0x2064ea){const _0x4b8115=_0x5d89db;var _0x1ed15f=me(_0x2064ea,_0x4b8115(0x1d3));return V(_0x1ed15f)=='symbol'?_0x1ed15f:_0x1ed15f+'';}function H(_0xe6d4b6,_0x1f3318,_0x35e827){return(_0x1f3318=he(_0x1f3318))in _0xe6d4b6?Object['defineProperty'](_0xe6d4b6,_0x1f3318,{'value':_0x35e827,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6d4b6[_0x1f3318]=_0x35e827,_0xe6d4b6;}var U=class extends _0x4bc668{constructor(..._0x8836a6){const _0x578043=_0x5d89db;super(..._0x8836a6),H(this,_0x578043(0x18c),new Map()),H(this,_0x578043(0x19d),new _0xf3e6d5()),H(this,'change$',this[_0x578043(0x19d)]['asObservable']());}['getCodeConfig'](_0xa00113,_0x473da4){const _0x2e8ac5=_0x5d89db;return g(this['_resources'][_0x2e8ac5(0x187)](_0xa00113))['codes'][_0x473da4];}[_0x5d89db(0x1a8)](_0x302cc3,_0x735714,_0x191b94){const _0x517a82=_0x5d89db;this['_setResource'](_0x302cc3,_0x735714,_(this['_resources'][_0x517a82(0x187)](_0x302cc3),_0x735714,_0x191b94));}['removeCode'](_0x357037,_0x288e2a){const _0x195484=_0x5d89db;this['_setResource'](_0x357037,_0x288e2a,v(this[_0x195484(0x18c)][_0x195484(0x187)](_0x357037),_0x288e2a));}['serialize'](_0x55f8a2){const _0x4538d4=_0x5d89db;return g(this[_0x4538d4(0x18c)][_0x4538d4(0x187)](_0x55f8a2));}[_0x5d89db(0x1b5)](_0x6848d0,_0x4d0cc7){const _0x486d05=_0x5d89db;this[_0x486d05(0x18c)][_0x486d05(0x1a7)](_0x6848d0,g(_0x4d0cc7)),this[_0x486d05(0x19d)][_0x486d05(0x1c4)]({'unitId':_0x6848d0});}[_0x5d89db(0x1cc)](_0x2664f3){const _0x265885=_0x5d89db;this[_0x265885(0x18c)][_0x265885(0x16d)](_0x2664f3),this[_0x265885(0x19d)][_0x265885(0x1c4)]({'unitId':_0x2664f3});}[_0x5d89db(0x1c8)](){const _0x36d107=_0x5d89db;super[_0x36d107(0x1c8)](),this[_0x36d107(0x18c)][_0x36d107(0x17e)](),this['_change$'][_0x36d107(0x1bd)]();}['_setResource'](_0x50b617,_0x5c9e94,_0xfae61e){const _0x569e5b=_0x5d89db;this[_0x569e5b(0x18c)][_0x569e5b(0x1a7)](_0x50b617,_0xfae61e),this[_0x569e5b(0x19d)][_0x569e5b(0x1c4)]({'unitId':_0x50b617,'blockId':_0x5c9e94});}};_0x22f4b7[_0x5d89db(0x1d6)],_0x22f4b7[_0x5d89db(0x1d6)];const ge={'id':_0x5d89db(0x1be),'type':_0x22f4b7['COMMAND'],'handler':(_0x54956a,_0x1c7865)=>{const _0x716ed4=_0x5d89db;var _0x13aa30,_0xd95464,_0xc946fa;let _0x2595ae=K(_0x54956a,_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1a2)]);if(!_0x2595ae)return!0x1;let _0x3b1199=q(_0x54956a),_0x4314e0=b({'blockId':(_0x13aa30=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1c6)])==null?_0x29ed6a(0x6):_0x13aa30,'config':_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x171)],'documentData':_0x2595ae['previousDocumentData'],'endOffset':(_0xd95464=_0x1c7865==null?void 0x0:_0x1c7865['endOffset'])==null?_0x3b1199==null?void 0x0:_0x3b1199[_0x716ed4(0x16e)]:_0xd95464,'metadata':_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x18d)](_0x2595ae[_0x716ed4(0x1a2)]),'startOffset':(_0xc946fa=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1aa)])==null?_0x3b1199==null?void 0x0:_0x3b1199['startOffset']:_0xc946fa}),_0x351938=Y(_0x2595ae[_0x716ed4(0x168)],_0x2595ae[_0x716ed4(0x1a2)],_0x2595ae[_0x716ed4(0x194)],_0x4314e0[_0x716ed4(0x1a4)],_0x4314e0[_0x716ed4(0x17b)]);return _0x351938&&_0x4314e0['nextMetadata']&&_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x1b5)](_0x2595ae[_0x716ed4(0x1a2)],_0x4314e0[_0x716ed4(0x17d)]),_0x351938;}},_e={'id':_0x5d89db(0x175),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x37acd8,_0x566a9f)=>{const _0x19da76=_0x5d89db;if(!_0x566a9f)return!0x1;let _0x5191cc=K(_0x37acd8,_0x566a9f[_0x19da76(0x1a2)]);if(!_0x5191cc)return!0x1;let _0x4dda3f=te({'blockId':_0x566a9f['blockId'],'config':_0x566a9f[_0x19da76(0x171)],'documentData':_0x5191cc[_0x19da76(0x194)],'metadata':_0x5191cc['model'][_0x19da76(0x18d)](_0x5191cc['unitId'])});return _0x4dda3f[_0x19da76(0x17d)]&&_0x5191cc[_0x19da76(0x19a)]['deserialize'](_0x5191cc[_0x19da76(0x1a2)],_0x4dda3f[_0x19da76(0x17d)]),!0x0;}},W={'id':_0x5d89db(0x1c9),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x1e4598,_0x2a2215)=>{const _0x15e536=_0x5d89db;var _0x40f0ba,_0x43afb6;let _0x1483b5=K(_0x1e4598,_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x1a2)]);if(!_0x1483b5)return!0x1;let _0x27af81=(_0x40f0ba=_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x17b)])==null?(_0x43afb6=q(_0x1e4598))==null?void 0x0:_0x43afb6[_0x15e536(0x1aa)]:_0x40f0ba;if(_0x27af81==null)return!0x1;let _0x10f223=ne({'cursorOffset':_0x27af81,'documentData':_0x1483b5[_0x15e536(0x194)]});return _0x10f223?Y(_0x1483b5[_0x15e536(0x168)],_0x1483b5[_0x15e536(0x1a2)],_0x1483b5[_0x15e536(0x194)],_0x10f223['nextDocumentData'],_0x10f223[_0x15e536(0x17b)]):!0x1;}},G={'id':_0x5d89db(0x190),'type':_0x22f4b7['COMMAND'],'handler':(_0x230a6d,_0x562f3e)=>{const _0x159815=_0x5d89db;var _0x47da98,_0x478e31;let _0x279caf=K(_0x230a6d,_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x1a2)]);if(!_0x279caf)return!0x1;let _0x179489=(_0x47da98=_0x562f3e==null?void 0x0:_0x562f3e['cursorOffset'])==null?(_0x478e31=q(_0x230a6d))==null?void 0x0:_0x478e31[_0x159815(0x1aa)]:_0x47da98;if(_0x179489==null)return!0x1;let _0x110a69=re({'cursorOffset':_0x179489,'documentData':_0x279caf['previousDocumentData'],'paragraphStartIndex':_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x195)]});return _0x110a69?Y(_0x279caf['commandService'],_0x279caf[_0x159815(0x1a2)],_0x279caf[_0x159815(0x194)],_0x110a69['nextDocumentData'],_0x110a69['cursorOffset']):!0x1;}};function _0x1854(_0x239d0b,_0x31542a){_0x239d0b=_0x239d0b-0x167;const _0x15c7e8=_0x15c7();let _0x185481=_0x15c7e8[_0x239d0b];return _0x185481;}function K(_0x5e171b,_0x48bf39){const _0x6f7490=_0x5d89db;let _0x344c59=_0x5e171b[_0x6f7490(0x187)](_0x40925a),_0x553d7d=_0x48bf39?_0x344c59['getUniverDocInstance'](_0x48bf39):_0x344c59[_0x6f7490(0x188)](_0x10a714[_0x6f7490(0x1cb)]);return _0x553d7d?{'commandService':_0x5e171b[_0x6f7490(0x187)](_0x2afc20),'model':_0x5e171b[_0x6f7490(0x187)](U),'previousDocumentData':_0x553d7d['getSnapshot'](),'unitId':_0x553d7d[_0x6f7490(0x1c2)]()}:null;}function q(_0x497fd5){const _0x4bbd74=_0x5d89db;var _0x2d5faa;return(_0x2d5faa=_0x497fd5[_0x4bbd74(0x187)](_0x1206d3)[_0x4bbd74(0x1db)]())==null?void 0x0:_0x2d5faa[0x0];}function ve(_0x564d54,_0x1a1099){const _0x3556b8=_0x5d89db;var _0x1f05e1,_0x4fc269,_0x576ca6,_0x374eb4,_0x278086,_0x26e873,_0x22986d,_0x41e761,_0x4fc049,_0x433796,_0x54280b,_0x2acb9a,_0x1fad92,_0x34c240,_0x2ac03e,_0x4a8a75,_0x414c94,_0x5735d8;let _0x3b36d5=_0x209e0e['getInstance']();return[J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x167)],(_0x1f05e1=_0x564d54['body'])==null?void 0x0:_0x1f05e1[_0x3556b8(0x167)],(_0x4fc269=_0x1a1099['body'])==null?void 0x0:_0x4fc269['dataStream']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cd)],(_0x576ca6=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x576ca6['paragraphs'],(_0x374eb4=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x374eb4['paragraphs']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d9)],(_0x278086=_0x564d54['body'])==null?void 0x0:_0x278086['sectionBreaks'],(_0x26e873=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x26e873[_0x3556b8(0x1d9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x193)],(_0x22986d=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x22986d[_0x3556b8(0x193)],(_0x41e761=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x41e761[_0x3556b8(0x193)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cf)],(_0x4fc049=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x4fc049[_0x3556b8(0x1cf)],(_0x433796=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x433796[_0x3556b8(0x1cf)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b6)],(_0x54280b=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x54280b[_0x3556b8(0x1b6)],(_0x2acb9a=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x2acb9a[_0x3556b8(0x1b6)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x186)],(_0x1fad92=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x1fad92[_0x3556b8(0x186)],(_0x34c240=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x34c240[_0x3556b8(0x186)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b9)],(_0x2ac03e=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x2ac03e[_0x3556b8(0x1b9)],(_0x4a8a75=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x4a8a75[_0x3556b8(0x1b9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d1)],(_0x414c94=_0x564d54['body'])==null?void 0x0:_0x414c94[_0x3556b8(0x1d1)],(_0x5735d8=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x5735d8['blockRanges'])][_0x3556b8(0x17f)](Boolean)[_0x3556b8(0x1c5)]((_0x3ae940,_0x5e2108)=>_0x209e0e[_0x3556b8(0x1c1)](_0x3ae940,_0x5e2108),null);}function J(_0x535166,_0x2d2f74,_0x1b8e83,_0xbd79f2){return _0x20dd72['diffValue'](_0x1b8e83,_0xbd79f2)?null:_0x535166['replaceOp'](_0x2d2f74,_0x1b8e83,_0xbd79f2);}function Y(_0xe4d6f,_0x266f72,_0x24ca3d,_0xf4ff8e,_0x225eca){const _0x131f7a=_0x5d89db;let _0x299448=ve(_0x24ca3d,_0xf4ff8e);return _0x299448?!!_0xe4d6f[_0x131f7a(0x1c7)](_0x3d459c['id'],{'unitId':_0x266f72,'actions':_0x299448,'textRanges':[{'startOffset':_0x225eca,'endOffset':_0x225eca,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xab58e4){const _0xd97675=_0x5d89db;this[_0xd97675(0x1c0)]=_0xab58e4;}[_0x5d89db(0x1da)](){const _0x20fb2f=_0x5d89db;return this[_0x20fb2f(0x1c0)]['blockId'];}[_0x5d89db(0x177)](){const _0x201cde=_0x5d89db;let _0xc4a2e2=this['_getBlockRange']();return _0xc4a2e2?{'blockId':_0xc4a2e2['blockId'],'endIndex':_0xc4a2e2['endIndex'],'startIndex':_0xc4a2e2[_0x201cde(0x18b)]}:null;}[_0x5d89db(0x176)](){const _0x44497f=_0x5d89db;var _0x256330;let _0x42615c=this['_getBlockRange'](),_0x23ef27=(_0x256330=this[_0x44497f(0x1c0)][_0x44497f(0x1dd)]()['body'])==null?void 0x0:_0x256330[_0x44497f(0x167)];return!_0x42615c||!_0x23ef27?'':ye(_0x23ef27['slice'](_0x42615c[_0x44497f(0x18b)]+0x1,_0x42615c[_0x44497f(0x1e0)]));}[_0x5d89db(0x1a6)](){const _0x2367bd=_0x5d89db;let _0x5ee491=this[_0x2367bd(0x177)]();return _0x5ee491?{..._0x5ee491,'config':this[_0x2367bd(0x170)](),'text':this['getText'](),'type':_0x2367bd(0x1c3)}:null;}['getConfig'](){const _0x3420fa=_0x5d89db;var _0x59c01a;return h((_0x59c01a=this[_0x3420fa(0x1c0)][_0x3420fa(0x19a)])==null?void 0x0:_0x59c01a[_0x3420fa(0x16b)](this[_0x3420fa(0x1c0)][_0x3420fa(0x1a2)],this[_0x3420fa(0x1c0)]['blockId']));}[_0x5d89db(0x1b4)](_0x533d12){const _0x387749=_0x5d89db;var _0x449260;return!!((_0x449260=this[_0x387749(0x1c0)]['commandService'])!=null&&_0x449260[_0x387749(0x1c7)](_e['id'],{'blockId':this[_0x387749(0x1c0)][_0x387749(0x1c6)],'config':_0x533d12[_0x387749(0x171)],'unitId':this[_0x387749(0x1c0)][_0x387749(0x1a2)]}));}[_0x5d89db(0x199)](_0x4c83df){const _0x56090c=_0x5d89db;var _0x50eacb;return!!((_0x50eacb=this[_0x56090c(0x1c0)]['commandService'])!=null&&_0x50eacb[_0x56090c(0x1c7)](W['id'],{'cursorOffset':_0x4c83df,'unitId':this[_0x56090c(0x1c0)]['unitId']}));}[_0x5d89db(0x1d7)](_0x93e404={}){const _0x903ed7=_0x5d89db;var _0xd9888c;return!!((_0xd9888c=this[_0x903ed7(0x1c0)][_0x903ed7(0x168)])!=null&&_0xd9888c[_0x903ed7(0x1c7)](G['id'],{..._0x93e404,'unitId':this[_0x903ed7(0x1c0)][_0x903ed7(0x1a2)]}));}[_0x5d89db(0x1de)](){const _0x1530bf=_0x5d89db;var _0x40092b;return(_0x40092b=this['_runtime'][_0x1530bf(0x1dd)]()[_0x1530bf(0x178)])==null||(_0x40092b=_0x40092b[_0x1530bf(0x1d1)])==null?void 0x0:_0x40092b[_0x1530bf(0x17a)](_0x56f897=>_0x56f897[_0x1530bf(0x1c6)]===this['_runtime'][_0x1530bf(0x1c6)]&&_0x56f897[_0x1530bf(0x1a5)]===_0x1530bf(0x1c3));}};function ye(_0x1af559){const _0x2af04f=_0x5d89db;return Array[_0x2af04f(0x19b)](_0x1af559)[_0x2af04f(0x197)](_0x413d55=>_0x413d55===_0x180f7a[_0x2af04f(0x17c)]?'\x0a':_0x413d55)[_0x2af04f(0x17f)](_0x900462=>_0x900462!==_0x180f7a[_0x2af04f(0x16a)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1ba)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1d5)])[_0x2af04f(0x1d0)]('')[_0x2af04f(0x1dc)](/\n$/,'');}Object[_0x5d89db(0x1a1)](_0x19b331[_0x5d89db(0x198)],{'getCodes'(){const _0x548804=_0x5d89db;var _0x23d4e8,_0x14eb0e;return(_0x23d4e8=(_0x14eb0e=this[_0x548804(0x173)]()[_0x548804(0x178)])==null||(_0x14eb0e=_0x14eb0e['blockRanges'])==null?void 0x0:_0x14eb0e[_0x548804(0x17f)](_0x317a3f=>_0x317a3f['blockType']===_0x548804(0x1c3))[_0x548804(0x197)](_0x1b9a7a=>Z(this,_0x1b9a7a[_0x548804(0x1c6)])))==null?[]:_0x23d4e8;},'getCode'(_0x8216e1){const _0x465615=_0x5d89db;var _0x18a6ee;return!((_0x18a6ee=this[_0x465615(0x173)]()[_0x465615(0x178)])==null||(_0x18a6ee=_0x18a6ee[_0x465615(0x1d1)])==null)&&_0x18a6ee[_0x465615(0x1ac)](_0x41e95c=>_0x41e95c[_0x465615(0x1c6)]===_0x8216e1&&_0x41e95c[_0x465615(0x1a5)]==='code')?Z(this,_0x8216e1):null;},'getCodeAt'(_0x415225){const _0x1efb84=_0x5d89db;var _0x37e4b6;let _0x189e5c=(_0x37e4b6=this['getSnapshot']()['body'])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x1d1)])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x17a)](_0x59572c=>_0x59572c['blockType']===_0x1efb84(0x1c3)&&_0x59572c[_0x1efb84(0x18b)]<=_0x415225&&_0x415225<=_0x59572c[_0x1efb84(0x1e0)]))==null?void 0x0:_0x37e4b6[_0x1efb84(0x1c6)];return _0x189e5c?Z(this,_0x189e5c):null;},'findCodeByText'(_0x3c9ba5){var _0x362aed;return(_0x362aed=this['findCodes'](_0x3c9ba5)[0x0])==null?null:_0x362aed;},'findCodes'(_0x1e62c5){const _0x475334=_0x5d89db;let _0x4700a2=typeof _0x1e62c5=='string'?{'text':_0x1e62c5}:_0x1e62c5;return this[_0x475334(0x1b2)]()['filter'](_0x1d6ec5=>!(_0x4700a2[_0x475334(0x1c6)]&&_0x1d6ec5[_0x475334(0x1da)]()!==_0x4700a2[_0x475334(0x1c6)]||_0x4700a2[_0x475334(0x1d8)]&&!_0x1d6ec5['getText']()[_0x475334(0x185)](_0x4700a2[_0x475334(0x1d8)])));},'insertCode'(_0x43ab34={}){const _0x2e95f8=_0x5d89db;var _0x18b226,_0x2b1335;let _0x83a209=(_0x18b226=_0x43ab34[_0x2e95f8(0x1c6)])==null?'docs-code-'+Date[_0x2e95f8(0x174)]():_0x18b226;return(_0x2b1335=Q(this))!=null&&_0x2b1335[_0x2e95f8(0x1c7)](ge['id'],{..._0x43ab34,'blockId':_0x83a209,'unitId':this['getId']()})?Z(this,_0x83a209):null;},'exitCode'(_0x4b4116){const _0x4d0cd3=_0x5d89db;var _0x303e91;return!!((_0x303e91=Q(this))!=null&&_0x303e91[_0x4d0cd3(0x1c7)](W['id'],{'cursorOffset':_0x4b4116,'unitId':this[_0x4d0cd3(0x1da)]()}));},'cancelEmptyCodeParagraph'(_0x2c1886={}){const _0x5c4f8d=_0x5d89db;var _0x37bbf1;return!!((_0x37bbf1=Q(this))!=null&&_0x37bbf1[_0x5c4f8d(0x1c7)](G['id'],{..._0x2c1886,'unitId':this[_0x5c4f8d(0x1da)]()}));}});function Z(_0x2e7898,_0x509d96){const _0x583551=_0x5d89db;let _0x929d36=$(_0x2e7898);return new X({'blockId':_0x509d96,'commandService':Q(_0x2e7898),'getDocumentData':()=>_0x2e7898[_0x583551(0x173)](),'model':_0x929d36==null?void 0x0:_0x929d36[_0x583551(0x187)](U),'unitId':_0x2e7898['getId']()});}function Q(_0x4a253f){const _0x4d9100=_0x5d89db;var _0x12b10d,_0x566e71;return(_0x12b10d=_0x4a253f[_0x4d9100(0x1a0)])==null?(_0x566e71=$(_0x4a253f))==null?void 0x0:_0x566e71[_0x4d9100(0x187)](_0x2afc20):_0x12b10d;}function $(_0x320f85){const _0x2292aa=_0x5d89db;return _0x320f85[_0x2292aa(0x1a3)];}export{X as FDocsCode};
|
|
1
|
+
const _0x44d4ec=_0x4526;(function(_0x5ddbaa,_0x471fbc){const _0x520e50=_0x4526,_0x3535fd=_0x5ddbaa();while(!![]){try{const _0x3280d0=parseInt(_0x520e50(0x1e7))/0x1*(-parseInt(_0x520e50(0x202))/0x2)+parseInt(_0x520e50(0x1f3))/0x3*(-parseInt(_0x520e50(0x24a))/0x4)+parseInt(_0x520e50(0x1f2))/0x5*(parseInt(_0x520e50(0x1d7))/0x6)+parseInt(_0x520e50(0x21c))/0x7*(-parseInt(_0x520e50(0x23d))/0x8)+-parseInt(_0x520e50(0x1f7))/0x9*(parseInt(_0x520e50(0x207))/0xa)+-parseInt(_0x520e50(0x24f))/0xb+-parseInt(_0x520e50(0x22f))/0xc*(-parseInt(_0x520e50(0x1e8))/0xd);if(_0x3280d0===_0x471fbc)break;else _0x3535fd['push'](_0x3535fd['shift']());}catch(_0x50b531){_0x3535fd['push'](_0x3535fd['shift']());}}}(_0x576f,0x59d3f));import{CommandType as _0x3de41e,DataStreamTreeTokenType as _0x5b62d4,Disposable as _0x32c700,ICommandService as _0x4ff42b,IUniverInstanceService as _0x1c241d,JSONX as _0x3c253d,Tools as _0x402759,UniverInstanceType as _0x28af17,generateRandomId as _0x64057c}from'@univerjs/core';import{FDocument as _0x16ad3f}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1146da,RichTextEditingMutation as _0x5e2409}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xe083b}from'rxjs';const p=_0x44d4ec(0x229),m={'language':_0x44d4ec(0x1e9),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x3815cf){return{...m,..._0x3815cf};}function g(_0x4de0f6){const _0x40beb0=_0x44d4ec;var _0x100139;let _0x510b9=(_0x100139=_0x4de0f6==null?void 0x0:_0x4de0f6['codes'])==null?{}:_0x100139;return{'codes':Object[_0x40beb0(0x245)](Object[_0x40beb0(0x24e)](_0x510b9)[_0x40beb0(0x240)](([_0x24d250,_0x332b38])=>[_0x24d250,h(_0x332b38)]))};}function _(_0x182950,_0x377c79,_0x5971c9){const _0x221d8d=_0x44d4ec;let _0xefd776=g(_0x182950);return _0xefd776[_0x221d8d(0x238)][_0x377c79]=h({..._0xefd776['codes'][_0x377c79],..._0x5971c9}),_0xefd776;}function v(_0x1718b7,_0x42cd8d){const _0x2cf83c=_0x44d4ec;let _0x5acbcf=g(_0x1718b7);return delete _0x5acbcf[_0x2cf83c(0x238)][_0x42cd8d],_0x5acbcf;}const y='monospace';function b(_0x2605d7){const _0x2b245b=_0x44d4ec;var _0x520572,_0x58dc13,_0x2934d5;let _0x585360=E(_0x2605d7[_0x2b245b(0x227)]),_0x10c6b8=D(_0x585360),_0x5c595d=ee(_0x2605d7['startOffset'],_0x2605d7[_0x2b245b(0x232)]),_0x16cf13=_0x5c595d?(_0x520572=_0x10c6b8[_0x2b245b(0x246)])==null?void 0x0:_0x520572[_0x2b245b(0x1ed)](_0x55c80a=>_0x55c80a[_0x2b245b(0x228)]===_0x5c595d[_0x2b245b(0x1e0)]&&_0x55c80a['endIndex']+0x1===_0x5c595d[_0x2b245b(0x232)]):void 0x0,{startOffset:_0x51eb8e,endOffset:_0x2e223a}=_0x16cf13?_0x5c595d:se(_0x10c6b8,_0x2605d7['startOffset'],_0x2605d7[_0x2b245b(0x232)]),_0x2ec770=le(_0x10c6b8,_0x51eb8e,_0x2e223a),_0x15fc7a=(_0x58dc13=_0x16cf13==null?void 0x0:_0x16cf13[_0x2b245b(0x1fb)])==null?_0x2605d7[_0x2b245b(0x1fb)]:_0x58dc13,_0x5e4bae=_(_0x2605d7[_0x2b245b(0x1e1)],_0x15fc7a,{...m,..._0x2605d7[_0x2b245b(0x1d8)]});if(_0x16cf13)return _0x16cf13[_0x2b245b(0x221)]=p,x(_0x10c6b8,_0x51eb8e,_0x2e223a),w(_0x10c6b8,_0x51eb8e,_0x2e223a,_0x2ec770),{'nextDocumentData':_0x585360,'nextMetadata':_0x5e4bae,'cursorOffset':_0x51eb8e+0x1};if(_0x51eb8e===_0x2e223a){let _0x425cb6=''+_0x5b62d4['BLOCK_START']+_0x5b62d4[_0x2b245b(0x1f6)]+_0x5b62d4[_0x2b245b(0x251)];return j(_0x10c6b8,_0x51eb8e,_0x425cb6,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x2ec770)}],'blockRanges':[{'blockId':_0x15fc7a,'blockType':p,'startIndex':0x0,'endIndex':_0x425cb6[_0x2b245b(0x1dd)]-0x1}]}),{'nextDocumentData':_0x585360,'nextMetadata':_0x5e4bae,'cursorOffset':_0x51eb8e+0x1};}return j(_0x10c6b8,_0x2e223a,_0x5b62d4['BLOCK_END']),j(_0x10c6b8,_0x51eb8e,_0x5b62d4[_0x2b245b(0x208)]),w(_0x10c6b8,_0x51eb8e,_0x2e223a+0x1,_0x2ec770),_0x10c6b8[_0x2b245b(0x246)]=[...(_0x2934d5=_0x10c6b8[_0x2b245b(0x246)])==null?[]:_0x2934d5,{'blockId':_0x15fc7a,'blockType':p,'startIndex':_0x51eb8e,'endIndex':_0x2e223a+0x1}][_0x2b245b(0x1da)]((_0x2ddfde,_0x38f516)=>_0x2ddfde['startIndex']-_0x38f516[_0x2b245b(0x228)]),{'nextDocumentData':_0x585360,'nextMetadata':_0x5e4bae,'cursorOffset':_0x51eb8e+0x1};}function x(_0x86eef9,_0x335c2a,_0x4df438){const _0x2d7652=_0x44d4ec;var _0x2ed079;((_0x2ed079=_0x86eef9[_0x2d7652(0x20b)])==null?[]:_0x2ed079)[_0x2d7652(0x224)](_0x5b1d63=>_0x5b1d63[_0x2d7652(0x228)]>_0x335c2a&&_0x5b1d63[_0x2d7652(0x228)]<_0x4df438)[_0x2d7652(0x1dc)](_0x4eba04=>{const _0x29fd77=_0x2d7652;var _0x4c5f68;let _0x43a2e0={...(_0x4c5f68=_0x4eba04[_0x29fd77(0x241)])==null?{}:_0x4c5f68};delete _0x43a2e0['spaceAbove'],delete _0x43a2e0['spaceBelow'],_0x4eba04[_0x29fd77(0x241)]=_0x43a2e0;});}function ee(_0x4dc765,_0x1197d3){const _0x1e706f=_0x44d4ec;return _0x4dc765==null||_0x1197d3==null||_0x4dc765===_0x1197d3?null:{'startOffset':Math[_0x1e706f(0x206)](_0x4dc765,_0x1197d3),'endOffset':Math['max'](_0x4dc765,_0x1197d3)};}function te(_0x3d143f){const _0x2f9e77=_0x44d4ec;return{'nextDocumentData':E(_0x3d143f[_0x2f9e77(0x227)]),'nextMetadata':_(_0x3d143f[_0x2f9e77(0x1e1)],_0x3d143f[_0x2f9e77(0x1fb)],_0x3d143f['config']),'cursorOffset':0x0};}function ne(_0x4b03f0){const _0x1f47cc=_0x44d4ec;var _0x3c6a9c,_0x53ea1c;let _0x3042ea=E(_0x4b03f0[_0x1f47cc(0x227)]),_0x570895=D(_0x3042ea),_0x278d77=S(_0x570895,_0x4b03f0[_0x1f47cc(0x21b)]);if(!_0x278d77)return null;let _0x4a31e8=T(_0x570895,_0x278d77),_0x297ba0=_0x4a31e8[_0x4a31e8['length']-0x1];if(!_0x297ba0||!oe(_0x570895,_0x278d77,_0x297ba0)||_0x4b03f0[_0x1f47cc(0x21b)]<_0x297ba0[_0x1f47cc(0x228)])return null;let _0x45f396=k(_0x570895,_0x278d77,_0x297ba0);if(_0x45f396>=_0x278d77[_0x1f47cc(0x1d2)])return null;_0x570895[_0x1f47cc(0x1f5)]=[_0x570895['dataStream'][_0x1f47cc(0x23a)](0x0,_0x45f396),_0x5b62d4[_0x1f47cc(0x251)],_0x570895[_0x1f47cc(0x1f5)][_0x1f47cc(0x23a)](_0x45f396,_0x278d77['endIndex']),_0x570895[_0x1f47cc(0x1f5)][_0x1f47cc(0x23a)](_0x278d77[_0x1f47cc(0x1d2)]+0x1)][_0x1f47cc(0x1eb)](''),z(_0x570895[_0x1f47cc(0x20b)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),z(_0x570895['sectionBreaks'],_0x45f396,_0x278d77['endIndex'],0x1),z(_0x570895[_0x1f47cc(0x213)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),pe(_0x570895['textRuns'],_0x45f396,_0x278d77['endIndex'],0x1),B(_0x570895[_0x1f47cc(0x23c)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),B(_0x570895[_0x1f47cc(0x1ff)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),B(_0x570895[_0x1f47cc(0x214)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),(_0x3c6a9c=_0x570895[_0x1f47cc(0x246)])==null||_0x3c6a9c[_0x1f47cc(0x1dc)](_0x548795=>{const _0x528f0c=_0x1f47cc;_0x548795===_0x278d77||_0x548795[_0x528f0c(0x1fb)]===_0x278d77['blockId']?_0x548795[_0x528f0c(0x1d2)]=_0x45f396:_0x548795[_0x528f0c(0x228)]>=_0x45f396&&_0x548795['startIndex']<_0x278d77['endIndex']&&(_0x548795['startIndex']+=0x1,_0x548795['endIndex']+=0x1);});let _0x6291ca=T(_0x570895,{..._0x278d77,'endIndex':_0x45f396});_0x6291ca[_0x1f47cc(0x1dc)]((_0x56595d,_0x43c553)=>{const _0x2986b3=_0x1f47cc;var _0x562ab1;_0x56595d[_0x2986b3(0x241)]={...(_0x562ab1=_0x56595d[_0x2986b3(0x241)])==null?{}:_0x562ab1,...C(_0x43c553===0x0,_0x43c553===_0x6291ca['length']-0x1)};});let _0x191a24=(_0x53ea1c=_0x570895['paragraphs'])==null?void 0x0:_0x53ea1c['find'](_0x20d517=>_0x20d517[_0x1f47cc(0x228)]===_0x45f396+0x1);return _0x191a24&&(_0x191a24[_0x1f47cc(0x241)]=ae(_0x191a24['paragraphStyle'])),{'nextDocumentData':_0x3042ea,'cursorOffset':_0x45f396+0x1};}function re(_0x5dfccc){const _0x3311df=_0x44d4ec;let _0x1cf2c1=E(_0x5dfccc['documentData']),_0x1e1855=D(_0x1cf2c1),_0x46087a=S(_0x1e1855,_0x5dfccc[_0x3311df(0x21b)]);return _0x46087a&&ie(_0x1cf2c1,_0x1e1855,_0x46087a,_0x5dfccc[_0x3311df(0x21b)],_0x5dfccc[_0x3311df(0x1db)])||null;}function ie(_0x4cf3af,_0x5b7e27,_0x3bb6d5,_0xf5ff7b,_0x57196c){const _0xa2e7a9=_0x44d4ec;let _0x1277da=de(_0x5b7e27,_0x3bb6d5,_0xf5ff7b,_0x57196c);if(!_0x1277da)return null;let _0x5348d8=_0x1277da[_0xa2e7a9(0x21a)]-0x1;return M(_0x5b7e27,_0x1277da[_0xa2e7a9(0x230)]['startIndex'],_0x1277da[_0xa2e7a9(0x230)][_0xa2e7a9(0x228)]+0x1),{'nextDocumentData':_0x4cf3af,'cursorOffset':_0x5348d8};}function S(_0x5597f2,_0x38335f){const _0x4c7da0=_0x44d4ec;var _0x24129d;return(_0x24129d=_0x5597f2[_0x4c7da0(0x246)])==null?void 0x0:_0x24129d['find'](_0x53ca76=>{const _0x29c2ba=_0x4c7da0;let _0x3feacb=A(_0x5597f2,_0x53ca76);return _0x53ca76[_0x29c2ba(0x221)]===_0x29c2ba(0x229)&&_0x53ca76[_0x29c2ba(0x228)]<=_0x38335f&&_0x38335f<=_0x3feacb+0x2;});}function C(_0x1cf2d9,_0x52a9cd,_0x109115=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1cf2d9&&_0x109115?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x2be782,_0x4df244,_0x5ea2c8,_0x66c2f6=!0x1){const _0x58b173=_0x44d4ec;var _0x5153e8;let _0x3e23b2=((_0x5153e8=_0x2be782['paragraphs'])==null?[]:_0x5153e8)['filter'](_0x49a5fc=>_0x49a5fc[_0x58b173(0x228)]>_0x4df244&&_0x49a5fc[_0x58b173(0x228)]<_0x5ea2c8);_0x3e23b2[_0x58b173(0x1dc)]((_0xd2d6cb,_0x43dbe5)=>{const _0x4cf8ee=_0x58b173;var _0x5a48b3;_0xd2d6cb[_0x4cf8ee(0x241)]={...(_0x5a48b3=_0xd2d6cb[_0x4cf8ee(0x241)])==null?{}:_0x5a48b3,...C(_0x43dbe5===0x0,_0x43dbe5===_0x3e23b2['length']-0x1,_0x66c2f6)};});}function ae(_0x23b0a5){const _0x3d4e72=_0x44d4ec;var _0x3acd17,_0x1c42bd;let _0xe34e3e={..._0x23b0a5==null?{}:_0x23b0a5};return delete _0xe34e3e[_0x3d4e72(0x1e5)],delete _0xe34e3e[_0x3d4e72(0x1d4)],delete _0xe34e3e[_0x3d4e72(0x215)],delete _0xe34e3e[_0x3d4e72(0x20c)],((_0x3acd17=_0xe34e3e[_0x3d4e72(0x1f4)])==null?void 0x0:_0x3acd17['ff'])===y&&((_0x1c42bd=_0xe34e3e['textStyle'])==null?void 0x0:_0x1c42bd['fs'])===0xc&&delete _0xe34e3e[_0x3d4e72(0x1f4)],_0xe34e3e;}function T(_0x1b5a17,_0x28068a){const _0x55688b=_0x44d4ec;var _0x1e8afe;let _0x59902f=A(_0x1b5a17,_0x28068a);return((_0x1e8afe=_0x1b5a17[_0x55688b(0x20b)])==null?[]:_0x1e8afe)[_0x55688b(0x224)](_0x284536=>_0x284536[_0x55688b(0x228)]>_0x28068a[_0x55688b(0x228)]&&_0x284536[_0x55688b(0x228)]<_0x59902f);}function oe(_0x4ed479,_0x1e82e0,_0x298750){const _0x35c39e=_0x44d4ec;let _0x43d3c1=k(_0x4ed479,_0x1e82e0,_0x298750),_0x53c837=_0x4ed479[_0x35c39e(0x1f5)][_0x35c39e(0x23a)](_0x43d3c1,_0x298750[_0x35c39e(0x228)]);return Array[_0x35c39e(0x252)](_0x53c837)['every'](_0x53763f=>_0x53763f===_0x5b62d4[_0x35c39e(0x208)]||_0x53763f===_0x5b62d4[_0x35c39e(0x251)]);}function E(_0x249ae0){const _0x4b6c11=_0x44d4ec;return _0x402759[_0x4b6c11(0x1df)](_0x249ae0);}function D(_0x1642be){const _0x36e30a=_0x44d4ec;if(!_0x1642be[_0x36e30a(0x1fa)])throw Error(_0x36e30a(0x20e));return _0x1642be[_0x36e30a(0x1fa)];}function se(_0x35edba,_0xa38547,_0x21f641){const _0x3238ad=_0x44d4ec;if(_0xa38547==null||_0x21f641==null){let _0x4c7c02=ce(_0x35edba);return{'startOffset':_0x4c7c02,'endOffset':_0x4c7c02};}let _0x5aa2ff=Math[_0x3238ad(0x206)](_0xa38547,_0x21f641),_0x2678f0=Math[_0x3238ad(0x233)](_0xa38547,_0x21f641);return _0x5aa2ff===_0x2678f0?{'startOffset':_0x5aa2ff,'endOffset':_0x5aa2ff}:ue(_0x35edba,_0x5aa2ff,_0x2678f0);}function ce(_0x2d2e48){const _0x1f4840=_0x44d4ec;return _0x2d2e48['dataStream'][_0x1f4840(0x250)](_0x5b62d4[_0x1f4840(0x1fc)])?Math['max'](0x0,_0x2d2e48[_0x1f4840(0x1f5)][_0x1f4840(0x1dd)]-0x1):_0x2d2e48[_0x1f4840(0x1f5)]['length'];}function _0x4526(_0x5b3cd4,_0xb3d025){_0x5b3cd4=_0x5b3cd4-0x1d0;const _0x576fb7=_0x576f();let _0x45266c=_0x576fb7[_0x5b3cd4];return _0x45266c;}function le(_0x1fc3a1,_0xade6b4,_0x52d2ff){const _0x2c0e7a=_0x44d4ec;var _0x21a35a;let _0x499188=Math['min'](_0xade6b4,_0x52d2ff),_0x3a5786=Math[_0x2c0e7a(0x233)](_0xade6b4,_0x52d2ff);return!!((_0x21a35a=_0x1fc3a1[_0x2c0e7a(0x23c)])!=null&&_0x21a35a['some'](_0x584a2d=>_0x499188>_0x584a2d['startIndex']&&_0x499188<_0x584a2d[_0x2c0e7a(0x1d2)]||_0x3a5786>_0x584a2d[_0x2c0e7a(0x228)]&&_0x3a5786<_0x584a2d[_0x2c0e7a(0x1d2)]||_0x499188<=_0x584a2d[_0x2c0e7a(0x228)]&&_0x3a5786>=_0x584a2d[_0x2c0e7a(0x1d2)]));}function ue(_0x33e769,_0x4f59a2,_0x519f55){const _0x10935f=_0x44d4ec;var _0x38d97f,_0x629c1c;let _0x1b3566=[...(_0x38d97f=_0x33e769[_0x10935f(0x20b)])==null?[]:_0x38d97f]['sort']((_0x4a8816,_0x18fbe2)=>_0x4a8816[_0x10935f(0x228)]-_0x18fbe2['startIndex']),_0x1aa92b=_0x1b3566[_0x10935f(0x1ed)]((_0x4b1167,_0x5f909a)=>(_0x5f909a===0x0?0x0:_0x1b3566[_0x5f909a-0x1][_0x10935f(0x228)]+0x1)<=_0x4f59a2&&_0x4f59a2<=_0x4b1167[_0x10935f(0x228)]),_0x30cb36=(_0x629c1c=_0x1b3566[_0x10935f(0x1ed)](_0x25b55f=>_0x25b55f[_0x10935f(0x228)]>=_0x519f55-0x1))==null?_0x1b3566[_0x1b3566[_0x10935f(0x1dd)]-0x1]:_0x629c1c;return{'startOffset':_0x1aa92b?O(_0x1b3566,_0x1aa92b):_0x4f59a2,'endOffset':_0x30cb36?_0x30cb36[_0x10935f(0x228)]+0x1:_0x519f55};}function O(_0x4adb12,_0x4c3b0e){const _0x3d36ad=_0x44d4ec;let _0x1b9800=_0x4adb12['indexOf'](_0x4c3b0e);return _0x1b9800>0x0?_0x4adb12[_0x1b9800-0x1][_0x3d36ad(0x228)]+0x1:0x0;}function k(_0x409afa,_0x10acf1,_0xa0187d){const _0xe8ee07=_0x44d4ec;var _0x2c9335;return Math[_0xe8ee07(0x233)](O((_0x2c9335=_0x409afa[_0xe8ee07(0x20b)])==null?[]:_0x2c9335,_0xa0187d),_0x10acf1['startIndex']+0x1);}function A(_0x3cce22,_0x2dd3c7){const _0x8f2041=_0x44d4ec;return _0x3cce22['dataStream'][_0x2dd3c7['endIndex']]===_0x5b62d4[_0x8f2041(0x251)]?_0x2dd3c7['endIndex']:_0x3cce22[_0x8f2041(0x1f5)][_0x2dd3c7[_0x8f2041(0x1d2)]+0x1]===_0x5b62d4['BLOCK_END']?_0x2dd3c7[_0x8f2041(0x1d2)]+0x1:_0x2dd3c7[_0x8f2041(0x1d2)];}function de(_0x3c6743,_0x2b0140,_0x5e65d3,_0x4379ff){const _0x4baf3b=_0x44d4ec;var _0x2b8a42,_0x1155ff;let _0x2bf281=A(_0x3c6743,_0x2b0140),_0x277dda=((_0x2b8a42=_0x3c6743[_0x4baf3b(0x20b)])==null?[]:_0x2b8a42)[_0x4baf3b(0x1ed)](_0x5bf343=>_0x5bf343[_0x4baf3b(0x228)]===_0x2bf281+0x1);if(!_0x277dda||_0x4379ff!=null&&_0x277dda[_0x4baf3b(0x228)]!==_0x4379ff||_0x5e65d3<_0x2bf281||_0x5e65d3>_0x277dda[_0x4baf3b(0x228)]+0x1||_0x3c6743[_0x4baf3b(0x1f5)][_0x277dda[_0x4baf3b(0x228)]]!==_0x5b62d4[_0x4baf3b(0x1f6)])return null;let _0x53a699=O((_0x1155ff=_0x3c6743[_0x4baf3b(0x20b)])==null?[]:_0x1155ff,_0x277dda),_0x3a8d05=_0x3c6743['dataStream'][_0x4baf3b(0x23a)](_0x53a699,_0x277dda[_0x4baf3b(0x228)]);return Array['from'](_0x3a8d05)[_0x4baf3b(0x249)](_0x2416fc=>_0x2416fc===_0x5b62d4[_0x4baf3b(0x251)])?{'paragraph':_0x277dda,'endTokenOffset':_0x2bf281}:null;}function j(_0x510b6b,_0x43846c,_0x7ebea9,_0x3e4136={}){const _0x274ceb=_0x44d4ec;var _0x2a1793,_0x347840;if(_0x7ebea9){if(_0x510b6b[_0x274ceb(0x1f5)]=''+_0x510b6b[_0x274ceb(0x1f5)]['slice'](0x0,_0x43846c)+_0x7ebea9+_0x510b6b[_0x274ceb(0x1f5)][_0x274ceb(0x23a)](_0x43846c),N(_0x510b6b,_0x43846c,_0x7ebea9[_0x274ceb(0x1dd)]),(_0x2a1793=_0x3e4136[_0x274ceb(0x20b)])!=null&&_0x2a1793[_0x274ceb(0x1dd)]){var _0x439274;_0x510b6b[_0x274ceb(0x20b)]=[...(_0x439274=_0x510b6b['paragraphs'])==null?[]:_0x439274,..._0x3e4136[_0x274ceb(0x20b)][_0x274ceb(0x240)](_0x3455e1=>({..._0x3455e1,'startIndex':_0x3455e1['startIndex']+_0x43846c}))][_0x274ceb(0x1da)]((_0x11c3e4,_0x128b3f)=>_0x11c3e4[_0x274ceb(0x228)]-_0x128b3f[_0x274ceb(0x228)]);}if((_0x347840=_0x3e4136[_0x274ceb(0x246)])!=null&&_0x347840[_0x274ceb(0x1dd)]){var _0x15fb31;_0x510b6b[_0x274ceb(0x246)]=[...(_0x15fb31=_0x510b6b[_0x274ceb(0x246)])==null?[]:_0x15fb31,..._0x3e4136['blockRanges']['map'](_0x555b6c=>({..._0x555b6c,'startIndex':_0x555b6c[_0x274ceb(0x228)]+_0x43846c,'endIndex':_0x555b6c[_0x274ceb(0x1d2)]+_0x43846c}))][_0x274ceb(0x1da)]((_0x3d94ef,_0x80dd60)=>_0x3d94ef[_0x274ceb(0x228)]-_0x80dd60['startIndex']);}}}function M(_0x5ca178,_0x1b97bd,_0x3ef86f){const _0x4364dc=_0x44d4ec;let _0x3cdbd1=_0x3ef86f-_0x1b97bd;_0x5ca178['dataStream']=''+_0x5ca178['dataStream'][_0x4364dc(0x23a)](0x0,_0x1b97bd)+_0x5ca178[_0x4364dc(0x1f5)][_0x4364dc(0x23a)](_0x3ef86f),P(_0x5ca178,_0x1b97bd,_0x3cdbd1);}function N(_0x5eb41b,_0x34eddd,_0x20dcf8){const _0x481c7c=_0x44d4ec;_0x5eb41b[_0x481c7c(0x20b)]=F(_0x5eb41b['paragraphs'],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x24c)]=F(_0x5eb41b[_0x481c7c(0x24c)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x213)]=F(_0x5eb41b[_0x481c7c(0x213)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x222)]=fe(_0x5eb41b[_0x481c7c(0x222)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x23c)]=L(_0x5eb41b[_0x481c7c(0x23c)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x1ff)]=L(_0x5eb41b['customRanges'],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x214)]=L(_0x5eb41b[_0x481c7c(0x214)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x246)]=L(_0x5eb41b[_0x481c7c(0x246)],_0x34eddd,_0x20dcf8);}function P(_0x18ab4e,_0xea46ca,_0xee103c){const _0xca9a1c=_0x44d4ec;var _0x4d9802,_0xa8bae2;_0x18ab4e[_0xca9a1c(0x20b)]=I(_0x18ab4e[_0xca9a1c(0x20b)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x24c)]=I(_0x18ab4e[_0xca9a1c(0x24c)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x213)]=I(_0x18ab4e['customBlocks'],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x222)]=(_0x4d9802=R((_0xa8bae2=_0x18ab4e['textRuns'])==null?void 0x0:_0xa8bae2[_0xca9a1c(0x240)](_0xd9c4a6=>({..._0xd9c4a6,'startIndex':_0xd9c4a6['st'],'endIndex':_0xd9c4a6['ed']})),_0xea46ca,_0xee103c))==null?void 0x0:_0x4d9802[_0xca9a1c(0x240)](_0x55a559=>{let {startIndex:_0x4478cd,endIndex:_0x1b9576,..._0x16f79c}=_0x55a559;return{..._0x16f79c,'st':_0x4478cd,'ed':_0x1b9576};}),_0x18ab4e[_0xca9a1c(0x23c)]=R(_0x18ab4e[_0xca9a1c(0x23c)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x1ff)]=R(_0x18ab4e['customRanges'],_0xea46ca,_0xee103c),_0x18ab4e['customDecorations']=R(_0x18ab4e[_0xca9a1c(0x214)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x246)]=R(_0x18ab4e[_0xca9a1c(0x246)],_0xea46ca,_0xee103c);}function F(_0xa5fa95,_0x597793,_0x15be2c){const _0x1319ce=_0x44d4ec;return _0xa5fa95==null?void 0x0:_0xa5fa95[_0x1319ce(0x240)](_0x2f7014=>_0x2f7014[_0x1319ce(0x228)]>=_0x597793?{..._0x2f7014,'startIndex':_0x2f7014[_0x1319ce(0x228)]+_0x15be2c}:_0x2f7014);}function I(_0x50fd69,_0x527cf8,_0x1a5b6d){const _0x327de6=_0x44d4ec;let _0x5e77ba=_0x527cf8+_0x1a5b6d;return _0x50fd69==null?void 0x0:_0x50fd69[_0x327de6(0x240)](_0x2148e3=>_0x2148e3[_0x327de6(0x228)]>=_0x527cf8&&_0x2148e3['startIndex']<_0x5e77ba?null:_0x2148e3[_0x327de6(0x228)]>=_0x5e77ba?{..._0x2148e3,'startIndex':_0x2148e3[_0x327de6(0x228)]-_0x1a5b6d}:_0x2148e3)['filter'](_0x46969b=>_0x46969b!=null);}function fe(_0x40a9b3,_0x4fcb0b,_0x39b2ec){return _0x40a9b3==null?void 0x0:_0x40a9b3['map'](_0x14ce04=>_0x14ce04['st']>=_0x4fcb0b?{..._0x14ce04,'st':_0x14ce04['st']+_0x39b2ec,'ed':_0x14ce04['ed']+_0x39b2ec}:_0x14ce04['ed']>_0x4fcb0b?{..._0x14ce04,'ed':_0x14ce04['ed']+_0x39b2ec}:_0x14ce04);}function L(_0x89fd59,_0x2abd82,_0x119351){const _0x583a79=_0x44d4ec;return _0x89fd59==null?void 0x0:_0x89fd59[_0x583a79(0x240)](_0x35f69c=>_0x35f69c[_0x583a79(0x228)]>=_0x2abd82?{..._0x35f69c,'startIndex':_0x35f69c[_0x583a79(0x228)]+_0x119351,'endIndex':_0x35f69c['endIndex']+_0x119351}:_0x35f69c['endIndex']>=_0x2abd82?{..._0x35f69c,'endIndex':_0x35f69c['endIndex']+_0x119351}:_0x35f69c);}function R(_0x4c306c,_0x185080,_0x4af7e4){const _0x48fbdf=_0x44d4ec;let _0x318a6f=_0x185080+_0x4af7e4;return _0x4c306c==null?void 0x0:_0x4c306c[_0x48fbdf(0x240)](_0x192e57=>_0x192e57[_0x48fbdf(0x228)]>=_0x185080&&_0x192e57['endIndex']<_0x318a6f?null:_0x192e57[_0x48fbdf(0x228)]>=_0x318a6f?{..._0x192e57,'startIndex':_0x192e57[_0x48fbdf(0x228)]-_0x4af7e4,'endIndex':_0x192e57[_0x48fbdf(0x1d2)]-_0x4af7e4}:_0x192e57['endIndex']>=_0x185080?{..._0x192e57,'startIndex':_0x192e57[_0x48fbdf(0x228)]<_0x185080?_0x192e57['startIndex']:_0x185080,'endIndex':Math[_0x48fbdf(0x233)](_0x185080,_0x192e57[_0x48fbdf(0x1d2)]-_0x4af7e4)}:_0x192e57)[_0x48fbdf(0x224)](_0x49031a=>_0x49031a!=null);}function z(_0x1ce40b,_0x1c02e9,_0x3c8109,_0x5c0dac){_0x1ce40b==null||_0x1ce40b['forEach'](_0x48d476=>{const _0x22919c=_0x4526;_0x48d476[_0x22919c(0x228)]>=_0x1c02e9&&_0x48d476[_0x22919c(0x228)]<_0x3c8109&&(_0x48d476[_0x22919c(0x228)]+=_0x5c0dac);});}function pe(_0x2087d6,_0x22c8f2,_0xac0471,_0x60d3){const _0x2ffc10=_0x44d4ec;_0x2087d6==null||_0x2087d6[_0x2ffc10(0x1dc)](_0x2d369e=>{_0x2d369e['st']>=_0x22c8f2&&_0x2d369e['st']<_0xac0471?(_0x2d369e['st']+=_0x60d3,_0x2d369e['ed']+=_0x60d3):_0x2d369e['ed']>_0x22c8f2&&_0x2d369e['ed']<_0xac0471&&(_0x2d369e['ed']+=_0x60d3);});}function B(_0x330471,_0x7b3d95,_0x4b2e1e,_0x11c14e){const _0x410869=_0x44d4ec;_0x330471==null||_0x330471[_0x410869(0x1dc)](_0x3607c7=>{const _0x28e2e0=_0x410869;_0x3607c7[_0x28e2e0(0x228)]>=_0x7b3d95&&_0x3607c7['startIndex']<_0x4b2e1e?(_0x3607c7[_0x28e2e0(0x228)]+=_0x11c14e,_0x3607c7[_0x28e2e0(0x1d2)]+=_0x11c14e):_0x3607c7[_0x28e2e0(0x1d2)]>_0x7b3d95&&_0x3607c7[_0x28e2e0(0x1d2)]<_0x4b2e1e&&(_0x3607c7[_0x28e2e0(0x1d2)]+=_0x11c14e);});}function V(_0x4e7276){'@babel/helpers - typeof';const _0x374178=_0x44d4ec;return V=typeof Symbol==_0x374178(0x204)&&typeof Symbol[_0x374178(0x22c)]==_0x374178(0x1de)?function(_0x5bcbbe){return typeof _0x5bcbbe;}:function(_0x3d9842){const _0x23e5b8=_0x374178;return _0x3d9842&&typeof Symbol==_0x23e5b8(0x204)&&_0x3d9842[_0x23e5b8(0x200)]===Symbol&&_0x3d9842!==Symbol[_0x23e5b8(0x23f)]?_0x23e5b8(0x1de):typeof _0x3d9842;},V(_0x4e7276);}function me(_0x275fb2,_0x18550e){const _0x552c46=_0x44d4ec;if(V(_0x275fb2)!=_0x552c46(0x1d6)||!_0x275fb2)return _0x275fb2;var _0x25caa4=_0x275fb2[Symbol[_0x552c46(0x223)]];if(_0x25caa4!==void 0x0){var _0x50acd9=_0x25caa4['call'](_0x275fb2,_0x18550e||_0x552c46(0x1ef));if(V(_0x50acd9)!=_0x552c46(0x1d6))return _0x50acd9;throw TypeError(_0x552c46(0x21e));}return(_0x18550e==='string'?String:Number)(_0x275fb2);}function he(_0xa7f6e2){const _0x11d903=_0x44d4ec;var _0x38da24=me(_0xa7f6e2,_0x11d903(0x225));return V(_0x38da24)=='symbol'?_0x38da24:_0x38da24+'';}function H(_0x135697,_0x287004,_0x1fd626){const _0x38c9dd=_0x44d4ec;return(_0x287004=he(_0x287004))in _0x135697?Object[_0x38c9dd(0x205)](_0x135697,_0x287004,{'value':_0x1fd626,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x135697[_0x287004]=_0x1fd626,_0x135697;}var U=class extends _0x32c700{constructor(..._0x4af0ba){const _0x299721=_0x44d4ec;super(..._0x4af0ba),H(this,'_resources',new Map()),H(this,_0x299721(0x1d1),new _0xe083b()),H(this,_0x299721(0x226),this[_0x299721(0x1d1)]['asObservable']());}[_0x44d4ec(0x24b)](_0x2cbfd1,_0xf5bbd6){return g(this['_resources']['get'](_0x2cbfd1))['codes'][_0xf5bbd6];}[_0x44d4ec(0x217)](_0x14176e,_0x5df251,_0x52413d){const _0x4f236a=_0x44d4ec;this[_0x4f236a(0x210)](_0x14176e,_0x5df251,_(this[_0x4f236a(0x253)][_0x4f236a(0x21d)](_0x14176e),_0x5df251,_0x52413d));}[_0x44d4ec(0x1d3)](_0x34ab0f,_0x4c2522){const _0x184a9d=_0x44d4ec;this[_0x184a9d(0x210)](_0x34ab0f,_0x4c2522,v(this['_resources'][_0x184a9d(0x21d)](_0x34ab0f),_0x4c2522));}['serialize'](_0x45f621){const _0xbe3f2c=_0x44d4ec;return g(this[_0xbe3f2c(0x253)][_0xbe3f2c(0x21d)](_0x45f621));}[_0x44d4ec(0x237)](_0x49b3ef,_0x1641d0){const _0x1ad6e3=_0x44d4ec;this['_resources'][_0x1ad6e3(0x216)](_0x49b3ef,g(_0x1641d0)),this[_0x1ad6e3(0x1d1)][_0x1ad6e3(0x23e)]({'unitId':_0x49b3ef});}[_0x44d4ec(0x1e2)](_0xf655ca){const _0x2d5a18=_0x44d4ec;this[_0x2d5a18(0x253)][_0x2d5a18(0x20f)](_0xf655ca),this['_change$'][_0x2d5a18(0x23e)]({'unitId':_0xf655ca});}['dispose'](){const _0x58307a=_0x44d4ec;super[_0x58307a(0x1ec)](),this[_0x58307a(0x253)][_0x58307a(0x243)](),this[_0x58307a(0x1d1)]['complete']();}[_0x44d4ec(0x210)](_0x3b8cd3,_0x20e595,_0x27dd4b){const _0x22556d=_0x44d4ec;this[_0x22556d(0x253)][_0x22556d(0x216)](_0x3b8cd3,_0x27dd4b),this[_0x22556d(0x1d1)][_0x22556d(0x23e)]({'unitId':_0x3b8cd3,'blockId':_0x20e595});}};_0x3de41e[_0x44d4ec(0x244)],_0x3de41e[_0x44d4ec(0x244)];const ge={'id':_0x44d4ec(0x1f8),'type':_0x3de41e[_0x44d4ec(0x244)],'handler':(_0x10d441,_0x300fb9)=>{const _0x2f429f=_0x44d4ec;var _0xd0aa67,_0x1fa51a,_0x450df3;let _0x34fa18=K(_0x10d441,_0x300fb9==null?void 0x0:_0x300fb9['unitId']);if(!_0x34fa18)return!0x1;let _0x56be7e=q(_0x10d441),_0x42cd9b=b({'blockId':(_0xd0aa67=_0x300fb9==null?void 0x0:_0x300fb9[_0x2f429f(0x1fb)])==null?_0x64057c(0x6):_0xd0aa67,'config':_0x300fb9==null?void 0x0:_0x300fb9[_0x2f429f(0x1d8)],'documentData':_0x34fa18[_0x2f429f(0x1fd)],'endOffset':(_0x1fa51a=_0x300fb9==null?void 0x0:_0x300fb9['endOffset'])==null?_0x56be7e==null?void 0x0:_0x56be7e[_0x2f429f(0x232)]:_0x1fa51a,'metadata':_0x34fa18[_0x2f429f(0x242)][_0x2f429f(0x24d)](_0x34fa18['unitId']),'startOffset':(_0x450df3=_0x300fb9==null?void 0x0:_0x300fb9[_0x2f429f(0x1e0)])==null?_0x56be7e==null?void 0x0:_0x56be7e[_0x2f429f(0x1e0)]:_0x450df3}),_0x41d704=Y(_0x34fa18['commandService'],_0x34fa18[_0x2f429f(0x218)],_0x34fa18[_0x2f429f(0x1fd)],_0x42cd9b[_0x2f429f(0x220)],_0x42cd9b['cursorOffset']);return _0x41d704&&_0x42cd9b['nextMetadata']&&_0x34fa18[_0x2f429f(0x242)][_0x2f429f(0x237)](_0x34fa18[_0x2f429f(0x218)],_0x42cd9b[_0x2f429f(0x236)]),_0x41d704;}},_e={'id':_0x44d4ec(0x1f0),'type':_0x3de41e[_0x44d4ec(0x244)],'handler':(_0x4ce537,_0x2e7b72)=>{const _0x5fff08=_0x44d4ec;if(!_0x2e7b72)return!0x1;let _0x5503a2=K(_0x4ce537,_0x2e7b72[_0x5fff08(0x218)]);if(!_0x5503a2)return!0x1;let _0x88152c=te({'blockId':_0x2e7b72[_0x5fff08(0x1fb)],'config':_0x2e7b72[_0x5fff08(0x1d8)],'documentData':_0x5503a2['previousDocumentData'],'metadata':_0x5503a2[_0x5fff08(0x242)][_0x5fff08(0x24d)](_0x5503a2['unitId'])});return _0x88152c['nextMetadata']&&_0x5503a2['model'][_0x5fff08(0x237)](_0x5503a2['unitId'],_0x88152c[_0x5fff08(0x236)]),!0x0;}},W={'id':_0x44d4ec(0x235),'type':_0x3de41e[_0x44d4ec(0x244)],'handler':(_0x38a89e,_0x55b39c)=>{const _0x3061c4=_0x44d4ec;var _0x2cde0c,_0x57e870;let _0x511c26=K(_0x38a89e,_0x55b39c==null?void 0x0:_0x55b39c['unitId']);if(!_0x511c26)return!0x1;let _0xac0965=(_0x2cde0c=_0x55b39c==null?void 0x0:_0x55b39c['cursorOffset'])==null?(_0x57e870=q(_0x38a89e))==null?void 0x0:_0x57e870[_0x3061c4(0x1e0)]:_0x2cde0c;if(_0xac0965==null)return!0x1;let _0x4e1ecd=ne({'cursorOffset':_0xac0965,'documentData':_0x511c26[_0x3061c4(0x1fd)]});return _0x4e1ecd?Y(_0x511c26[_0x3061c4(0x219)],_0x511c26[_0x3061c4(0x218)],_0x511c26[_0x3061c4(0x1fd)],_0x4e1ecd[_0x3061c4(0x220)],_0x4e1ecd[_0x3061c4(0x21b)]):!0x1;}},G={'id':'docs-code.command.cancel-empty-paragraph','type':_0x3de41e['COMMAND'],'handler':(_0x8ae56,_0x4d810f)=>{const _0x4e4c77=_0x44d4ec;var _0x2c237d,_0x14dbb0;let _0x542e36=K(_0x8ae56,_0x4d810f==null?void 0x0:_0x4d810f[_0x4e4c77(0x218)]);if(!_0x542e36)return!0x1;let _0x5e1ad9=(_0x2c237d=_0x4d810f==null?void 0x0:_0x4d810f['cursorOffset'])==null?(_0x14dbb0=q(_0x8ae56))==null?void 0x0:_0x14dbb0[_0x4e4c77(0x1e0)]:_0x2c237d;if(_0x5e1ad9==null)return!0x1;let _0x57a028=re({'cursorOffset':_0x5e1ad9,'documentData':_0x542e36[_0x4e4c77(0x1fd)],'paragraphStartIndex':_0x4d810f==null?void 0x0:_0x4d810f[_0x4e4c77(0x1db)]});return _0x57a028?Y(_0x542e36['commandService'],_0x542e36[_0x4e4c77(0x218)],_0x542e36['previousDocumentData'],_0x57a028[_0x4e4c77(0x220)],_0x57a028[_0x4e4c77(0x21b)]):!0x1;}};function K(_0x5b1bd9,_0x2136fa){const _0x3ca200=_0x44d4ec;let _0x49d122=_0x5b1bd9[_0x3ca200(0x21d)](_0x1c241d),_0x40592e=_0x2136fa?_0x49d122[_0x3ca200(0x22e)](_0x2136fa):_0x49d122[_0x3ca200(0x234)](_0x28af17[_0x3ca200(0x212)]);return _0x40592e?{'commandService':_0x5b1bd9['get'](_0x4ff42b),'model':_0x5b1bd9[_0x3ca200(0x21d)](U),'previousDocumentData':_0x40592e[_0x3ca200(0x21f)](),'unitId':_0x40592e[_0x3ca200(0x1e3)]()}:null;}function q(_0xb02993){const _0x7724d8=_0x44d4ec;var _0x583a2c;return(_0x583a2c=_0xb02993[_0x7724d8(0x21d)](_0x1146da)[_0x7724d8(0x22a)]())==null?void 0x0:_0x583a2c[0x0];}function ve(_0x29a28a,_0x14b09f){const _0x51e081=_0x44d4ec;var _0x4b4f80,_0x183315,_0x42884a,_0x90494b,_0x4615be,_0x3bd6f1,_0x2c9e6e,_0x1a5392,_0xeb00f6,_0xb123c1,_0x2b709c,_0x1092b6,_0x5ad9f2,_0x28448b,_0xf32418,_0x27a1da,_0x4e605d,_0xba47e9;let _0x2e5d0a=_0x3c253d[_0x51e081(0x20a)]();return[J(_0x2e5d0a,['body',_0x51e081(0x1f5)],(_0x4b4f80=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x4b4f80[_0x51e081(0x1f5)],(_0x183315=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x183315[_0x51e081(0x1f5)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x20b)],(_0x42884a=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x42884a[_0x51e081(0x20b)],(_0x90494b=_0x14b09f['body'])==null?void 0x0:_0x90494b['paragraphs']),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x24c)],(_0x4615be=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x4615be[_0x51e081(0x24c)],(_0x3bd6f1=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x3bd6f1[_0x51e081(0x24c)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x222)],(_0x2c9e6e=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x2c9e6e['textRuns'],(_0x1a5392=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x1a5392[_0x51e081(0x222)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x213)],(_0xeb00f6=_0x29a28a['body'])==null?void 0x0:_0xeb00f6[_0x51e081(0x213)],(_0xb123c1=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0xb123c1[_0x51e081(0x213)]),J(_0x2e5d0a,[_0x51e081(0x1fa),'customRanges'],(_0x2b709c=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x2b709c['customRanges'],(_0x1092b6=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x1092b6[_0x51e081(0x1ff)]),J(_0x2e5d0a,['body',_0x51e081(0x214)],(_0x5ad9f2=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x5ad9f2[_0x51e081(0x214)],(_0x28448b=_0x14b09f['body'])==null?void 0x0:_0x28448b[_0x51e081(0x214)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x23c)],(_0xf32418=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0xf32418[_0x51e081(0x23c)],(_0x27a1da=_0x14b09f['body'])==null?void 0x0:_0x27a1da[_0x51e081(0x23c)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x246)],(_0x4e605d=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x4e605d[_0x51e081(0x246)],(_0xba47e9=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0xba47e9[_0x51e081(0x246)])]['filter'](Boolean)[_0x51e081(0x1fe)]((_0xe36e7,_0x2cea3e)=>_0x3c253d[_0x51e081(0x1f9)](_0xe36e7,_0x2cea3e),null);}function J(_0x459b9a,_0xc2776b,_0x5b3e2b,_0x3bedce){const _0x1134d9=_0x44d4ec;return _0x402759['diffValue'](_0x5b3e2b,_0x3bedce)?null:_0x459b9a[_0x1134d9(0x1ea)](_0xc2776b,_0x5b3e2b,_0x3bedce);}function Y(_0x568f86,_0x307f76,_0x2c204f,_0x549d58,_0x188427){const _0x4253ac=_0x44d4ec;let _0x4ea6a0=ve(_0x2c204f,_0x549d58);return _0x4ea6a0?!!_0x568f86[_0x4253ac(0x22b)](_0x5e2409['id'],{'unitId':_0x307f76,'actions':_0x4ea6a0,'textRanges':[{'startOffset':_0x188427,'endOffset':_0x188427,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0x215607){const _0x3d1a72=_0x44d4ec;this[_0x3d1a72(0x1f1)]=_0x215607;}['getId'](){const _0x2130f0=_0x44d4ec;return this[_0x2130f0(0x1f1)][_0x2130f0(0x1fb)];}[_0x44d4ec(0x231)](){const _0x40c3fd=_0x44d4ec;let _0x1bd629=this[_0x40c3fd(0x201)]();return _0x1bd629?{'blockId':_0x1bd629['blockId'],'endIndex':_0x1bd629[_0x40c3fd(0x1d2)],'startIndex':_0x1bd629[_0x40c3fd(0x228)]}:null;}[_0x44d4ec(0x1e6)](){const _0x447ed5=_0x44d4ec;var _0x5f33bc;let _0x3904a7=this['_getBlockRange'](),_0x140071=(_0x5f33bc=this[_0x447ed5(0x1f1)][_0x447ed5(0x1ee)]()[_0x447ed5(0x1fa)])==null?void 0x0:_0x5f33bc['dataStream'];return!_0x3904a7||!_0x140071?'':ye(_0x140071['slice'](_0x3904a7[_0x447ed5(0x228)]+0x1,_0x3904a7['endIndex']));}['describe'](){const _0x3f05c0=_0x44d4ec;let _0x1cd086=this[_0x3f05c0(0x231)]();return _0x1cd086?{..._0x1cd086,'config':this[_0x3f05c0(0x1d5)](),'text':this[_0x3f05c0(0x1e6)](),'type':'code'}:null;}[_0x44d4ec(0x1d5)](){const _0x4a3a1e=_0x44d4ec;var _0x5772f2;return h((_0x5772f2=this[_0x4a3a1e(0x1f1)]['model'])==null?void 0x0:_0x5772f2[_0x4a3a1e(0x24b)](this[_0x4a3a1e(0x1f1)][_0x4a3a1e(0x218)],this[_0x4a3a1e(0x1f1)][_0x4a3a1e(0x1fb)]));}['updateConfig'](_0x499d30){const _0x281b68=_0x44d4ec;var _0x227ba3;return!!((_0x227ba3=this[_0x281b68(0x1f1)][_0x281b68(0x219)])!=null&&_0x227ba3['syncExecuteCommand'](_e['id'],{'blockId':this[_0x281b68(0x1f1)][_0x281b68(0x1fb)],'config':_0x499d30[_0x281b68(0x1d8)],'unitId':this[_0x281b68(0x1f1)][_0x281b68(0x218)]}));}['exit'](_0x510070){const _0x1cfa84=_0x44d4ec;var _0x277e0c;return!!((_0x277e0c=this[_0x1cfa84(0x1f1)][_0x1cfa84(0x219)])!=null&&_0x277e0c[_0x1cfa84(0x22b)](W['id'],{'cursorOffset':_0x510070,'unitId':this['_runtime'][_0x1cfa84(0x218)]}));}[_0x44d4ec(0x20d)](_0x57dab1={}){const _0x18329c=_0x44d4ec;var _0xc646c0;return!!((_0xc646c0=this[_0x18329c(0x1f1)]['commandService'])!=null&&_0xc646c0[_0x18329c(0x22b)](G['id'],{..._0x57dab1,'unitId':this[_0x18329c(0x1f1)]['unitId']}));}[_0x44d4ec(0x201)](){const _0x19e6dd=_0x44d4ec;var _0x37e91b;return(_0x37e91b=this[_0x19e6dd(0x1f1)][_0x19e6dd(0x1ee)]()[_0x19e6dd(0x1fa)])==null||(_0x37e91b=_0x37e91b[_0x19e6dd(0x246)])==null?void 0x0:_0x37e91b[_0x19e6dd(0x1ed)](_0x4fdb00=>_0x4fdb00[_0x19e6dd(0x1fb)]===this[_0x19e6dd(0x1f1)]['blockId']&&_0x4fdb00[_0x19e6dd(0x221)]===_0x19e6dd(0x229));}};function ye(_0x36403c){const _0x36516b=_0x44d4ec;return Array[_0x36516b(0x252)](_0x36403c)['map'](_0x2d4c03=>_0x2d4c03===_0x5b62d4['PARAGRAPH']?'\x0a':_0x2d4c03)['filter'](_0x5a805a=>_0x5a805a!==_0x5b62d4[_0x36516b(0x208)]&&_0x5a805a!==_0x5b62d4[_0x36516b(0x251)]&&_0x5a805a!==_0x5b62d4[_0x36516b(0x1fc)])['join']('')[_0x36516b(0x1d0)](/\n$/,'');}Object[_0x44d4ec(0x247)](_0x16ad3f[_0x44d4ec(0x23f)],{'getCodes'(){const _0x100050=_0x44d4ec;var _0xadcdd3,_0xec266e;return(_0xadcdd3=(_0xec266e=this['getSnapshot']()[_0x100050(0x1fa)])==null||(_0xec266e=_0xec266e[_0x100050(0x246)])==null?void 0x0:_0xec266e[_0x100050(0x224)](_0x4184fb=>_0x4184fb[_0x100050(0x221)]===_0x100050(0x229))[_0x100050(0x240)](_0x30e332=>Z(this,_0x30e332['blockId'])))==null?[]:_0xadcdd3;},'getCode'(_0x10207c){const _0x217602=_0x44d4ec;var _0x218476;return!((_0x218476=this[_0x217602(0x21f)]()['body'])==null||(_0x218476=_0x218476[_0x217602(0x246)])==null)&&_0x218476[_0x217602(0x1d9)](_0x121f58=>_0x121f58[_0x217602(0x1fb)]===_0x10207c&&_0x121f58['blockType']===_0x217602(0x229))?Z(this,_0x10207c):null;},'getCodeAt'(_0x51fa71){const _0x2dbc7b=_0x44d4ec;var _0x11b38d;let _0x57e189=(_0x11b38d=this[_0x2dbc7b(0x21f)]()[_0x2dbc7b(0x1fa)])==null||(_0x11b38d=_0x11b38d[_0x2dbc7b(0x246)])==null||(_0x11b38d=_0x11b38d[_0x2dbc7b(0x1ed)](_0x23f33e=>_0x23f33e[_0x2dbc7b(0x221)]===_0x2dbc7b(0x229)&&_0x23f33e['startIndex']<=_0x51fa71&&_0x51fa71<=_0x23f33e[_0x2dbc7b(0x1d2)]))==null?void 0x0:_0x11b38d[_0x2dbc7b(0x1fb)];return _0x57e189?Z(this,_0x57e189):null;},'findCodeByText'(_0x5454d3){const _0x1008bd=_0x44d4ec;var _0x164e7f;return(_0x164e7f=this[_0x1008bd(0x248)](_0x5454d3)[0x0])==null?null:_0x164e7f;},'findCodes'(_0x42e23c){const _0x24809e=_0x44d4ec;let _0x246f77=typeof _0x42e23c=='string'?{'text':_0x42e23c}:_0x42e23c;return this[_0x24809e(0x23b)]()['filter'](_0x22831c=>!(_0x246f77[_0x24809e(0x1fb)]&&_0x22831c['getId']()!==_0x246f77[_0x24809e(0x1fb)]||_0x246f77[_0x24809e(0x209)]&&!_0x22831c[_0x24809e(0x1e6)]()[_0x24809e(0x1e4)](_0x246f77['text'])));},'insertCode'(_0x515c86={}){const _0x41e77c=_0x44d4ec;var _0x57d195,_0x24e100;let _0x1d9c62=(_0x57d195=_0x515c86[_0x41e77c(0x1fb)])==null?_0x41e77c(0x22d)+Date[_0x41e77c(0x203)]():_0x57d195;return(_0x24e100=Q(this))!=null&&_0x24e100['syncExecuteCommand'](ge['id'],{..._0x515c86,'blockId':_0x1d9c62,'unitId':this[_0x41e77c(0x239)]()})?Z(this,_0x1d9c62):null;},'exitCode'(_0x2217cc){const _0xc0ff4e=_0x44d4ec;var _0x3669ca;return!!((_0x3669ca=Q(this))!=null&&_0x3669ca[_0xc0ff4e(0x22b)](W['id'],{'cursorOffset':_0x2217cc,'unitId':this['getId']()}));},'cancelEmptyCodeParagraph'(_0x57933a={}){const _0x14d2a8=_0x44d4ec;var _0x6e2fa0;return!!((_0x6e2fa0=Q(this))!=null&&_0x6e2fa0[_0x14d2a8(0x22b)](G['id'],{..._0x57933a,'unitId':this[_0x14d2a8(0x239)]()}));}});function Z(_0x682c40,_0x28a59b){const _0x140bdf=_0x44d4ec;let _0x3665b7=$(_0x682c40);return new X({'blockId':_0x28a59b,'commandService':Q(_0x682c40),'getDocumentData':()=>_0x682c40[_0x140bdf(0x21f)](),'model':_0x3665b7==null?void 0x0:_0x3665b7[_0x140bdf(0x21d)](U),'unitId':_0x682c40[_0x140bdf(0x239)]()});}function _0x576f(){const _0x509069=['length','symbol','deepClone','startOffset','metadata','removeUnit','getUnitId','includes','indentEnd','getText','11mprNsq','260JVMEOn','javascript','replaceOp','join','dispose','find','getDocumentData','default','docs-code.command.update','_runtime','20QgTViG','20886KsMOTH','textStyle','dataStream','PARAGRAPH','108JyeKbA','docs-code.command.insert','compose','body','blockId','SECTION_BREAK','previousDocumentData','reduce','customRanges','constructor','_getBlockRange','37894UTBjJe','now','function','defineProperty','min','232980moprrA','BLOCK_START','text','getInstance','paragraphs','spaceBelow','cancelEmptyParagraph','Document\x20body\x20is\x20required','delete','_setResource','_commandService','UNIVER_DOC','customBlocks','customDecorations','spaceAbove','set','setCodeConfig','unitId','commandService','endTokenOffset','cursorOffset','2919OoioAf','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSnapshot','nextDocumentData','blockType','textRuns','toPrimitive','filter','string','change$','documentData','startIndex','code','getTextRanges','syncExecuteCommand','iterator','docs-code-','getUniverDocInstance','916092ePktbC','paragraph','getRange','endOffset','max','getCurrentUnitOfType','docs-code.command.exit','nextMetadata','deserialize','codes','getId','slice','getCodes','tables','6408kgeoks','next','prototype','map','paragraphStyle','model','clear','COMMAND','fromEntries','blockRanges','assign','findCodes','every','96RWaoUb','getCodeConfig','sectionBreaks','serialize','entries','3710553RQqobf','endsWith','BLOCK_END','from','_resources','replace','_change$','endIndex','removeCode','indentStart','getConfig','object','251304fdsWUT','config','some','sort','paragraphStartIndex','forEach'];_0x576f=function(){return _0x509069;};return _0x576f();}function Q(_0x2aada3){const _0x23d263=_0x44d4ec;var _0x199215,_0x18511a;return(_0x199215=_0x2aada3[_0x23d263(0x211)])==null?(_0x18511a=$(_0x2aada3))==null?void 0x0:_0x18511a[_0x23d263(0x21d)](_0x4ff42b):_0x199215;}function $(_0x51cd64){return _0x51cd64['_injector'];}export{X as FDocsCode};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x90b1ed=_0x34cc;(function(_0x198309,_0xb2f495){const _0x335818=_0x34cc,_0x27eefe=_0x198309();while(!![]){try{const _0x1bc96e=parseInt(_0x335818(0xa4))/0x1*(-parseInt(_0x335818(0x82))/0x2)+-parseInt(_0x335818(0xb6))/0x3+-parseInt(_0x335818(0xb4))/0x4*(-parseInt(_0x335818(0xc2))/0x5)+parseInt(_0x335818(0x7c))/0x6*(parseInt(_0x335818(0x91))/0x7)+-parseInt(_0x335818(0xc4))/0x8*(-parseInt(_0x335818(0x7a))/0x9)+parseInt(_0x335818(0xf1))/0xa+-parseInt(_0x335818(0xf2))/0xb*(-parseInt(_0x335818(0xa1))/0xc);if(_0x1bc96e===_0xb2f495)break;else _0x27eefe['push'](_0x27eefe['shift']());}catch(_0x597831){_0x27eefe['push'](_0x27eefe['shift']());}}}(_0x4a0e,0x9085b));import{BuildTextUtils as _0x51dd86,CommandType as _0x123b49,DataStreamTreeTokenType as _0x803f1c,DependentOn as _0x5955c6,Disposable as _0x58c269,ICommandService as _0x170d8a,IConfigService as _0x28e32f,IResourceManagerService as _0x5bcb88,IUniverInstanceService as _0x2bbfcb,Inject as _0x1f43cb,Injector as _0x5121c,JSONX as _0x104200,Plugin as _0x3c090e,Tools as _0x2fe1ea,UniverInstanceType as _0x333d99,generateRandomId as _0x3a4ef4,merge as _0x4a14fb}from'@univerjs/core';import{DocSelectionManagerService as _0xd6548f,RichTextEditingMutation as _0x2ef7f4,UniverDocsPlugin as _0x5e48ad}from'@univerjs/docs';import{DocContentInsertService as _0xaf51af}from'@univerjs/docs-ui';import{Subject as _0x1f73cb}from'rxjs';import{UniverLicensePlugin as _0x111d9d}from'@univerjs-pro/license';function _0x4a0e(){const _0x12a79d=['dispose','packageName','find','registerPluginResource','1843681phDxgz','_setResource','getParagraphsInRange','docs-code.command.exit','function','max','sort','getOwnPropertyDescriptor','_injector','documentData','set','length','right','deepClone','Document\x20body\x20is\x20required','disposeWithMe','12NznGSa','_commandService','forEach','1CiKTGP','cursorOffset','indentEnd','map','paragraph','docs-code.command.update','nextMetadata','javascript','spaceAbove','decorate','blockId','consumeInsertRange','0.25.0','code','customBlocks','BLOCK_END','237868dolhID','getBody','1121148FSQEvE','onStarting','object','UNIVER_DOC','change$','startIndex','getCurrentUnitOfType','docs-code.command.consume-boundary-delete','version','pluginName','blockType','_configService','75wxfkeR','paragraphStyle','152jRzghH','_initResource','docs-code.config','stringify','join','deserialize','_resources','slice','customDecorations','textStyle','customRanges','BLOCK_START','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','endOffset','unitId','every','model','getSnapshot','setCodeConfig','paragraphStartIndex','PARAGRAPH','string','type','next','body','parse','replaceOp','some','paragraphs','sectionBreaks','from','nextDocumentData','_resourceManagerService','SECTION_BREAK','compose','codes','getCodeConfig','call','add','indentStart','getUniverDocInstance','asObservable','blockRanges','_change$','commandService','3601060xyTSNQ','2215169WKDFUj','defineProperty','get','syncExecuteCommand','setConfig','monospace','docs-code.command.cancel-empty-paragraph','config','endTokenOffset','endIndex','startOffset','81045yjlOhk','_docsCodeModel','6RuUNEC','symbol','_config','removeUnit','textRuns','COMMAND','1844578smFXcD','spaceBelow','filter','dataStream','min','metadata','prototype','serialize','previousDocumentData','tables','removeCode'];_0x4a0e=function(){return _0x12a79d;};return _0x4a0e();}const S='DOC_CODE_PLUGIN',C=_0x90b1ed(0xb1),w={'language':_0x90b1ed(0xab),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x2bbcce){return{...w,..._0x2bbcce};}function E(_0x2daa30){const _0x169acb=_0x90b1ed;var _0x1dc7cf;let _0x2d323e=(_0x1dc7cf=_0x2daa30==null?void 0x0:_0x2daa30[_0x169acb(0xe7)])==null?{}:_0x1dc7cf;return{'codes':Object['fromEntries'](Object['entries'](_0x2d323e)[_0x169acb(0xa7)](([_0x3ecc73,_0x4be8f8])=>[_0x3ecc73,T(_0x4be8f8)]))};}function D(_0x4d4757,_0x135638,_0x858367){const _0x21f90c=_0x90b1ed;let _0x5b4c0b=E(_0x4d4757);return _0x5b4c0b['codes'][_0x135638]=T({..._0x5b4c0b[_0x21f90c(0xe7)][_0x135638],..._0x858367}),_0x5b4c0b;}function te(_0x102d5a,_0x27b80c){let _0xecf63=E(_0x102d5a);return delete _0xecf63['codes'][_0x27b80c],_0xecf63;}const ne=_0x90b1ed(0xf7);function re(_0x1cdc26){const _0x3a2977=_0x90b1ed;var _0x5a0878,_0x357e56,_0x2374f2;let _0x3807a4=A(_0x1cdc26['documentData']),_0x2b0476=j(_0x3807a4),_0x331446=ae(_0x1cdc26[_0x3a2977(0x79)],_0x1cdc26[_0x3a2977(0xd1)]),_0x13e473=_0x331446?(_0x5a0878=_0x2b0476[_0x3a2977(0xee)])==null?void 0x0:_0x5a0878['find'](_0x126cd1=>_0x126cd1[_0x3a2977(0xbb)]===_0x331446[_0x3a2977(0x79)]&&_0x126cd1[_0x3a2977(0x78)]+0x1===_0x331446['endOffset']):void 0x0,{startOffset:_0x309ed4,endOffset:_0x45db4d}=_0x13e473?_0x331446:ge(_0x2b0476,_0x1cdc26[_0x3a2977(0x79)],_0x1cdc26[_0x3a2977(0xd1)]),_0x2c0e77=ve(_0x2b0476,_0x309ed4,_0x45db4d),_0x41d8de=(_0x357e56=_0x13e473==null?void 0x0:_0x13e473[_0x3a2977(0xae)])==null?_0x1cdc26['blockId']:_0x357e56,_0x4eeb8=D(_0x1cdc26[_0x3a2977(0x87)],_0x41d8de,{...w,..._0x1cdc26[_0x3a2977(0x76)]});if(_0x13e473)return _0x13e473['blockType']=C,ie(_0x2b0476,_0x309ed4,_0x45db4d),fe(_0x2b0476,_0x309ed4,_0x45db4d,_0x2c0e77),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};if(_0x309ed4===_0x45db4d){let _0x6c2c11=''+_0x803f1c[_0x3a2977(0xcf)]+_0x803f1c[_0x3a2977(0xd8)]+_0x803f1c[_0x3a2977(0xb3)];return F(_0x2b0476,_0x309ed4,_0x6c2c11,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x2c0e77)}],'blockRanges':[{'blockId':_0x41d8de,'blockType':C,'startIndex':0x0,'endIndex':_0x6c2c11[_0x3a2977(0x9c)]-0x1}]}),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};}return F(_0x2b0476,_0x45db4d,_0x803f1c[_0x3a2977(0xb3)]),F(_0x2b0476,_0x309ed4,_0x803f1c['BLOCK_START']),fe(_0x2b0476,_0x309ed4,_0x45db4d+0x1,_0x2c0e77),_0x2b0476[_0x3a2977(0xee)]=[...(_0x2374f2=_0x2b0476[_0x3a2977(0xee)])==null?[]:_0x2374f2,{'blockId':_0x41d8de,'blockType':C,'startIndex':_0x309ed4,'endIndex':_0x45db4d+0x1}]['sort']((_0x3d253d,_0x5f3da3)=>_0x3d253d[_0x3a2977(0xbb)]-_0x5f3da3[_0x3a2977(0xbb)]),{'nextDocumentData':_0x3807a4,'nextMetadata':_0x4eeb8,'cursorOffset':_0x309ed4+0x1};}function ie(_0x555c29,_0x44a37f,_0x2860ea){const _0x4b1347=_0x90b1ed;var _0xedc91d;((_0xedc91d=_0x555c29[_0x4b1347(0xe0)])==null?[]:_0xedc91d)[_0x4b1347(0x84)](_0x364b33=>_0x364b33[_0x4b1347(0xbb)]>_0x44a37f&&_0x364b33[_0x4b1347(0xbb)]<_0x2860ea)[_0x4b1347(0xa3)](_0x5cecb4=>{const _0x4a9d46=_0x4b1347;var _0x45b881;let _0x5a7498={...(_0x45b881=_0x5cecb4['paragraphStyle'])==null?{}:_0x45b881};delete _0x5a7498[_0x4a9d46(0xac)],delete _0x5a7498[_0x4a9d46(0x83)],_0x5cecb4[_0x4a9d46(0xc3)]=_0x5a7498;});}function ae(_0x248605,_0x3cfcd1){const _0x28297d=_0x90b1ed;return _0x248605==null||_0x3cfcd1==null||_0x248605===_0x3cfcd1?null:{'startOffset':Math['min'](_0x248605,_0x3cfcd1),'endOffset':Math[_0x28297d(0x96)](_0x248605,_0x3cfcd1)};}function O(_0x5574c1){const _0x29d83c=_0x90b1ed;return{'nextDocumentData':A(_0x5574c1[_0x29d83c(0x9a)]),'nextMetadata':D(_0x5574c1['metadata'],_0x5574c1[_0x29d83c(0xae)],_0x5574c1[_0x29d83c(0x76)]),'cursorOffset':0x0};}function oe(_0x398cbe){const _0x351df6=_0x90b1ed;var _0x27916a,_0x1fa555;let _0x2819b1=A(_0x398cbe['documentData']),_0x59c82d=j(_0x2819b1),_0x3d2711=de(_0x59c82d,_0x398cbe[_0x351df6(0xa5)]);if(!_0x3d2711)return null;let _0x20f40c=me(_0x59c82d,_0x3d2711),_0x491255=_0x20f40c[_0x20f40c[_0x351df6(0x9c)]-0x1];if(!_0x491255||!he(_0x59c82d,_0x3d2711,_0x491255)||_0x398cbe[_0x351df6(0xa5)]<_0x491255[_0x351df6(0xbb)])return null;let _0x47b389=N(_0x59c82d,_0x3d2711,_0x491255);if(_0x47b389>=_0x3d2711['endIndex'])return null;_0x59c82d[_0x351df6(0x85)]=[_0x59c82d['dataStream']['slice'](0x0,_0x47b389),_0x803f1c['BLOCK_END'],_0x59c82d['dataStream'][_0x351df6(0xcb)](_0x47b389,_0x3d2711[_0x351df6(0x78)]),_0x59c82d['dataStream'][_0x351df6(0xcb)](_0x3d2711[_0x351df6(0x78)]+0x1)][_0x351df6(0xc8)](''),B(_0x59c82d[_0x351df6(0xe0)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),B(_0x59c82d[_0x351df6(0xe1)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),B(_0x59c82d[_0x351df6(0xb2)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),Te(_0x59c82d['textRuns'],_0x47b389,_0x3d2711['endIndex'],0x1),V(_0x59c82d[_0x351df6(0x8b)],_0x47b389,_0x3d2711['endIndex'],0x1),V(_0x59c82d[_0x351df6(0xce)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),V(_0x59c82d[_0x351df6(0xcc)],_0x47b389,_0x3d2711[_0x351df6(0x78)],0x1),(_0x27916a=_0x59c82d[_0x351df6(0xee)])==null||_0x27916a[_0x351df6(0xa3)](_0x39d35b=>{const _0x249d05=_0x351df6;_0x39d35b===_0x3d2711||_0x39d35b['blockId']===_0x3d2711[_0x249d05(0xae)]?_0x39d35b[_0x249d05(0x78)]=_0x47b389:_0x39d35b[_0x249d05(0xbb)]>=_0x47b389&&_0x39d35b[_0x249d05(0xbb)]<_0x3d2711[_0x249d05(0x78)]&&(_0x39d35b[_0x249d05(0xbb)]+=0x1,_0x39d35b[_0x249d05(0x78)]+=0x1);});let _0x3daca0=me(_0x59c82d,{..._0x3d2711,'endIndex':_0x47b389});_0x3daca0['forEach']((_0x241ff1,_0x5e05f4)=>{const _0x4d51b3=_0x351df6;var _0x3ca0d6;_0x241ff1[_0x4d51b3(0xc3)]={...(_0x3ca0d6=_0x241ff1[_0x4d51b3(0xc3)])==null?{}:_0x3ca0d6,...k(_0x5e05f4===0x0,_0x5e05f4===_0x3daca0[_0x4d51b3(0x9c)]-0x1)};});let _0xd93a9e=(_0x1fa555=_0x59c82d[_0x351df6(0xe0)])==null?void 0x0:_0x1fa555[_0x351df6(0x8f)](_0x471087=>_0x471087[_0x351df6(0xbb)]===_0x47b389+0x1);return _0xd93a9e&&(_0xd93a9e[_0x351df6(0xc3)]=pe(_0xd93a9e[_0x351df6(0xc3)])),{'nextDocumentData':_0x2819b1,'cursorOffset':_0x47b389+0x1};}function se(_0x56e485){const _0x44ce01=_0x90b1ed;let _0x33b8f7=A(_0x56e485[_0x44ce01(0x9a)]),_0x2500a7=j(_0x33b8f7),_0x39c77d=de(_0x2500a7,_0x56e485['cursorOffset']);return _0x39c77d&&ce(_0x33b8f7,_0x2500a7,_0x39c77d,_0x56e485[_0x44ce01(0xa5)],_0x56e485['paragraphStartIndex'])||null;}function ce(_0x356e1a,_0x4a59fc,_0x12c6ce,_0x3931fd,_0x310c2f){const _0x14ebb0=_0x90b1ed;let _0x1dfe69=be(_0x4a59fc,_0x12c6ce,_0x3931fd,_0x310c2f);if(!_0x1dfe69)return null;let _0x57d8a7=_0x1dfe69[_0x14ebb0(0x77)]-0x1;return xe(_0x4a59fc,_0x1dfe69['paragraph'][_0x14ebb0(0xbb)],_0x1dfe69[_0x14ebb0(0xa8)][_0x14ebb0(0xbb)]+0x1),{'nextDocumentData':_0x356e1a,'cursorOffset':_0x57d8a7};}function le(_0x38adfc,_0x3d43d6){const _0x594ea6=_0x90b1ed;var _0x4c7069;return _0x38adfc==null||(_0x4c7069=_0x38adfc[_0x594ea6(0xee)])==null?void 0x0:_0x4c7069['find'](_0x1a8dd3=>_0x1a8dd3[_0x594ea6(0xc0)]===_0x594ea6(0xb1)&&_0x1a8dd3[_0x594ea6(0xbb)]<=_0x3d43d6&&_0x3d43d6<=_0x1a8dd3[_0x594ea6(0x78)]);}function ue(_0x323253){const _0x30969c=_0x90b1ed;var _0x4424e0;let _0x1f7f3=_0x323253['documentData'][_0x30969c(0xdc)];if(!_0x1f7f3)return!0x1;let _0x575235=_0x323253['direction']==='left'?_0x323253['cursorOffset']-0x1:_0x323253[_0x30969c(0xa5)],_0x473e1a=_0x323253['direction']===_0x30969c(0x9d)?_0x323253[_0x30969c(0xa5)]+0x1:_0x575235;return((_0x4424e0=_0x1f7f3[_0x30969c(0xee)])==null?[]:_0x4424e0)[_0x30969c(0xdf)](_0x2b42f3=>_0x2b42f3[_0x30969c(0xc0)]===_0x30969c(0xb1)?_0x575235===_0x2b42f3['startIndex']||_0x575235===_0x2b42f3[_0x30969c(0x78)]||_0x473e1a===_0x2b42f3[_0x30969c(0xbb)]||_0x473e1a===_0x2b42f3[_0x30969c(0x78)]:!0x1);}function de(_0x48b38b,_0x813b06){const _0x475248=_0x90b1ed;var _0x163cb8;return(_0x163cb8=_0x48b38b[_0x475248(0xee)])==null?void 0x0:_0x163cb8[_0x475248(0x8f)](_0x1aa7b1=>{const _0x789e7f=_0x475248;let _0x1aba1b=P(_0x48b38b,_0x1aa7b1);return _0x1aa7b1['blockType']===_0x789e7f(0xb1)&&_0x1aa7b1['startIndex']<=_0x813b06&&_0x813b06<=_0x1aba1b+0x2;});}function k(_0x4b49f2,_0x2c2e64,_0x4c8672=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x4b49f2&&_0x4c8672?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x36ad79,_0x2a8036,_0x4212cf,_0x467be2=!0x1){const _0x57d279=_0x90b1ed;var _0x14b618;let _0x3b87a0=((_0x14b618=_0x36ad79[_0x57d279(0xe0)])==null?[]:_0x14b618)[_0x57d279(0x84)](_0x537127=>_0x537127['startIndex']>_0x2a8036&&_0x537127[_0x57d279(0xbb)]<_0x4212cf);_0x3b87a0[_0x57d279(0xa3)]((_0x2e494c,_0x52c09d)=>{const _0x24e0ad=_0x57d279;var _0x5ac0ce;_0x2e494c['paragraphStyle']={...(_0x5ac0ce=_0x2e494c[_0x24e0ad(0xc3)])==null?{}:_0x5ac0ce,...k(_0x52c09d===0x0,_0x52c09d===_0x3b87a0[_0x24e0ad(0x9c)]-0x1,_0x467be2)};});}function pe(_0xa565de){const _0x42b261=_0x90b1ed;var _0xc2c383,_0x33ddf2;let _0x236066={..._0xa565de==null?{}:_0xa565de};return delete _0x236066[_0x42b261(0xa6)],delete _0x236066[_0x42b261(0xeb)],delete _0x236066[_0x42b261(0xac)],delete _0x236066[_0x42b261(0x83)],((_0xc2c383=_0x236066[_0x42b261(0xcd)])==null?void 0x0:_0xc2c383['ff'])===ne&&((_0x33ddf2=_0x236066[_0x42b261(0xcd)])==null?void 0x0:_0x33ddf2['fs'])===0xc&&delete _0x236066[_0x42b261(0xcd)],_0x236066;}function me(_0x505a69,_0x2eac84){const _0x2b4483=_0x90b1ed;var _0x12d19d;let _0x5f41c7=P(_0x505a69,_0x2eac84);return((_0x12d19d=_0x505a69['paragraphs'])==null?[]:_0x12d19d)[_0x2b4483(0x84)](_0xa8f510=>_0xa8f510['startIndex']>_0x2eac84['startIndex']&&_0xa8f510[_0x2b4483(0xbb)]<_0x5f41c7);}function he(_0x41b373,_0x38b037,_0x5b06e9){const _0x34b5a7=_0x90b1ed;let _0x3937ce=N(_0x41b373,_0x38b037,_0x5b06e9),_0x3b42d3=_0x41b373[_0x34b5a7(0x85)][_0x34b5a7(0xcb)](_0x3937ce,_0x5b06e9[_0x34b5a7(0xbb)]);return Array[_0x34b5a7(0xe2)](_0x3b42d3)['every'](_0x5ab010=>_0x5ab010===_0x803f1c['BLOCK_START']||_0x5ab010===_0x803f1c[_0x34b5a7(0xb3)]);}function A(_0x38e1ec){const _0x4ff6f9=_0x90b1ed;return _0x2fe1ea[_0x4ff6f9(0x9e)](_0x38e1ec);}function j(_0x2215f9){const _0x43a9f0=_0x90b1ed;if(!_0x2215f9[_0x43a9f0(0xdc)])throw Error(_0x43a9f0(0x9f));return _0x2215f9[_0x43a9f0(0xdc)];}function ge(_0xbaafec,_0xd68723,_0x568516){const _0x5f11e9=_0x90b1ed;if(_0xd68723==null||_0x568516==null){let _0x353037=_e(_0xbaafec);return{'startOffset':_0x353037,'endOffset':_0x353037};}let _0x13bb5b=Math[_0x5f11e9(0x86)](_0xd68723,_0x568516),_0x1a9d87=Math[_0x5f11e9(0x96)](_0xd68723,_0x568516);return _0x13bb5b===_0x1a9d87?{'startOffset':_0x13bb5b,'endOffset':_0x13bb5b}:ye(_0xbaafec,_0x13bb5b,_0x1a9d87);}function _e(_0x2e255b){const _0x215692=_0x90b1ed;return _0x2e255b['dataStream']['endsWith'](_0x803f1c[_0x215692(0xe5)])?Math[_0x215692(0x96)](0x0,_0x2e255b[_0x215692(0x85)][_0x215692(0x9c)]-0x1):_0x2e255b[_0x215692(0x85)]['length'];}function ve(_0x52278a,_0x31b780,_0x5cb472){const _0x1d8f24=_0x90b1ed;var _0x1607eb;let _0x117584=Math[_0x1d8f24(0x86)](_0x31b780,_0x5cb472),_0x1e38cd=Math[_0x1d8f24(0x96)](_0x31b780,_0x5cb472);return!!((_0x1607eb=_0x52278a[_0x1d8f24(0x8b)])!=null&&_0x1607eb['some'](_0x4b824d=>_0x117584>_0x4b824d[_0x1d8f24(0xbb)]&&_0x117584<_0x4b824d[_0x1d8f24(0x78)]||_0x1e38cd>_0x4b824d['startIndex']&&_0x1e38cd<_0x4b824d['endIndex']||_0x117584<=_0x4b824d[_0x1d8f24(0xbb)]&&_0x1e38cd>=_0x4b824d[_0x1d8f24(0x78)]));}function ye(_0x58376c,_0x48e439,_0x5b5ab9){const _0x56c5dd=_0x90b1ed;var _0x11b57c,_0x36a876;let _0x3c8461=[...(_0x11b57c=_0x58376c[_0x56c5dd(0xe0)])==null?[]:_0x11b57c]['sort']((_0x33cd25,_0x539b3c)=>_0x33cd25['startIndex']-_0x539b3c[_0x56c5dd(0xbb)]),_0x5af445=_0x3c8461[_0x56c5dd(0x8f)]((_0x32087b,_0x3223f5)=>(_0x3223f5===0x0?0x0:_0x3c8461[_0x3223f5-0x1][_0x56c5dd(0xbb)]+0x1)<=_0x48e439&&_0x48e439<=_0x32087b[_0x56c5dd(0xbb)]),_0x121695=(_0x36a876=_0x3c8461['find'](_0x155bb2=>_0x155bb2['startIndex']>=_0x5b5ab9-0x1))==null?_0x3c8461[_0x3c8461[_0x56c5dd(0x9c)]-0x1]:_0x36a876;return{'startOffset':_0x5af445?M(_0x3c8461,_0x5af445):_0x48e439,'endOffset':_0x121695?_0x121695[_0x56c5dd(0xbb)]+0x1:_0x5b5ab9};}function M(_0x1f2509,_0x3b267d){const _0x4f6cfb=_0x90b1ed;let _0x48901f=_0x1f2509['indexOf'](_0x3b267d);return _0x48901f>0x0?_0x1f2509[_0x48901f-0x1][_0x4f6cfb(0xbb)]+0x1:0x0;}function N(_0x2332d5,_0x1637ee,_0xf876c5){const _0x8e9199=_0x90b1ed;var _0xfb1a33;return Math[_0x8e9199(0x96)](M((_0xfb1a33=_0x2332d5[_0x8e9199(0xe0)])==null?[]:_0xfb1a33,_0xf876c5),_0x1637ee[_0x8e9199(0xbb)]+0x1);}function P(_0x262c7b,_0x249fa2){const _0x4b8d36=_0x90b1ed;return _0x262c7b['dataStream'][_0x249fa2[_0x4b8d36(0x78)]]===_0x803f1c[_0x4b8d36(0xb3)]?_0x249fa2[_0x4b8d36(0x78)]:_0x262c7b[_0x4b8d36(0x85)][_0x249fa2[_0x4b8d36(0x78)]+0x1]===_0x803f1c[_0x4b8d36(0xb3)]?_0x249fa2[_0x4b8d36(0x78)]+0x1:_0x249fa2[_0x4b8d36(0x78)];}function be(_0x585a7f,_0x26b05e,_0x3a80ee,_0x5ef1ff){const _0x1e2216=_0x90b1ed;var _0x447587,_0x1a18b9;let _0x4b7d82=P(_0x585a7f,_0x26b05e),_0x455939=((_0x447587=_0x585a7f[_0x1e2216(0xe0)])==null?[]:_0x447587)[_0x1e2216(0x8f)](_0x580665=>_0x580665['startIndex']===_0x4b7d82+0x1);if(!_0x455939||_0x5ef1ff!=null&&_0x455939[_0x1e2216(0xbb)]!==_0x5ef1ff||_0x3a80ee<_0x4b7d82||_0x3a80ee>_0x455939[_0x1e2216(0xbb)]+0x1||_0x585a7f['dataStream'][_0x455939['startIndex']]!==_0x803f1c['PARAGRAPH'])return null;let _0x2a98bf=M((_0x1a18b9=_0x585a7f[_0x1e2216(0xe0)])==null?[]:_0x1a18b9,_0x455939),_0x5395cd=_0x585a7f[_0x1e2216(0x85)][_0x1e2216(0xcb)](_0x2a98bf,_0x455939[_0x1e2216(0xbb)]);return Array['from'](_0x5395cd)[_0x1e2216(0xd3)](_0x331a57=>_0x331a57===_0x803f1c['BLOCK_END'])?{'paragraph':_0x455939,'endTokenOffset':_0x4b7d82}:null;}function F(_0x34aa91,_0x2aeb25,_0x2065e1,_0xa373c3={}){const _0x56cd43=_0x90b1ed;var _0x42f966,_0xcaaedc;if(_0x2065e1){if(_0x34aa91[_0x56cd43(0x85)]=''+_0x34aa91[_0x56cd43(0x85)][_0x56cd43(0xcb)](0x0,_0x2aeb25)+_0x2065e1+_0x34aa91[_0x56cd43(0x85)][_0x56cd43(0xcb)](_0x2aeb25),Se(_0x34aa91,_0x2aeb25,_0x2065e1[_0x56cd43(0x9c)]),(_0x42f966=_0xa373c3['paragraphs'])!=null&&_0x42f966['length']){var _0x4d1542;_0x34aa91[_0x56cd43(0xe0)]=[...(_0x4d1542=_0x34aa91['paragraphs'])==null?[]:_0x4d1542,..._0xa373c3[_0x56cd43(0xe0)][_0x56cd43(0xa7)](_0x39c84f=>({..._0x39c84f,'startIndex':_0x39c84f[_0x56cd43(0xbb)]+_0x2aeb25}))]['sort']((_0xbac976,_0x389c21)=>_0xbac976[_0x56cd43(0xbb)]-_0x389c21[_0x56cd43(0xbb)]);}if((_0xcaaedc=_0xa373c3[_0x56cd43(0xee)])!=null&&_0xcaaedc[_0x56cd43(0x9c)]){var _0x40a146;_0x34aa91[_0x56cd43(0xee)]=[...(_0x40a146=_0x34aa91['blockRanges'])==null?[]:_0x40a146,..._0xa373c3['blockRanges'][_0x56cd43(0xa7)](_0x4b99a1=>({..._0x4b99a1,'startIndex':_0x4b99a1[_0x56cd43(0xbb)]+_0x2aeb25,'endIndex':_0x4b99a1[_0x56cd43(0x78)]+_0x2aeb25}))][_0x56cd43(0x97)]((_0x996444,_0x28c629)=>_0x996444[_0x56cd43(0xbb)]-_0x28c629['startIndex']);}}}function xe(_0x3add5f,_0x5d38d6,_0x112552){const _0x825238=_0x90b1ed;let _0x1a39ef=_0x112552-_0x5d38d6;_0x3add5f[_0x825238(0x85)]=''+_0x3add5f[_0x825238(0x85)][_0x825238(0xcb)](0x0,_0x5d38d6)+_0x3add5f[_0x825238(0x85)][_0x825238(0xcb)](_0x112552),Ce(_0x3add5f,_0x5d38d6,_0x1a39ef);}function Se(_0x4e990c,_0x11bb3c,_0x13e1c3){const _0xb6d7ba=_0x90b1ed;_0x4e990c[_0xb6d7ba(0xe0)]=I(_0x4e990c[_0xb6d7ba(0xe0)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xe1)]=I(_0x4e990c[_0xb6d7ba(0xe1)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xb2)]=I(_0x4e990c['customBlocks'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0x80)]=we(_0x4e990c['textRuns'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0x8b)]=R(_0x4e990c['tables'],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xce)]=R(_0x4e990c[_0xb6d7ba(0xce)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xcc)]=R(_0x4e990c[_0xb6d7ba(0xcc)],_0x11bb3c,_0x13e1c3),_0x4e990c[_0xb6d7ba(0xee)]=R(_0x4e990c['blockRanges'],_0x11bb3c,_0x13e1c3);}function Ce(_0x91e6b5,_0x3a4500,_0x3be86c){const _0x4f1fec=_0x90b1ed;var _0x1fb56e,_0x18551d;_0x91e6b5['paragraphs']=L(_0x91e6b5[_0x4f1fec(0xe0)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xe1)]=L(_0x91e6b5[_0x4f1fec(0xe1)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xb2)]=L(_0x91e6b5[_0x4f1fec(0xb2)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0x80)]=(_0x1fb56e=z((_0x18551d=_0x91e6b5[_0x4f1fec(0x80)])==null?void 0x0:_0x18551d['map'](_0x42bd4e=>({..._0x42bd4e,'startIndex':_0x42bd4e['st'],'endIndex':_0x42bd4e['ed']})),_0x3a4500,_0x3be86c))==null?void 0x0:_0x1fb56e[_0x4f1fec(0xa7)](_0x1ab5b4=>{let {startIndex:_0x1babc9,endIndex:_0x267df8,..._0x474662}=_0x1ab5b4;return{..._0x474662,'st':_0x1babc9,'ed':_0x267df8};}),_0x91e6b5[_0x4f1fec(0x8b)]=z(_0x91e6b5[_0x4f1fec(0x8b)],_0x3a4500,_0x3be86c),_0x91e6b5['customRanges']=z(_0x91e6b5['customRanges'],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xcc)]=z(_0x91e6b5[_0x4f1fec(0xcc)],_0x3a4500,_0x3be86c),_0x91e6b5[_0x4f1fec(0xee)]=z(_0x91e6b5[_0x4f1fec(0xee)],_0x3a4500,_0x3be86c);}function I(_0x19bb9f,_0x448546,_0x22d083){const _0x218961=_0x90b1ed;return _0x19bb9f==null?void 0x0:_0x19bb9f[_0x218961(0xa7)](_0x1b4290=>_0x1b4290['startIndex']>=_0x448546?{..._0x1b4290,'startIndex':_0x1b4290[_0x218961(0xbb)]+_0x22d083}:_0x1b4290);}function L(_0x190366,_0x1a1505,_0x108fe5){const _0x58f4e8=_0x90b1ed;let _0x143efc=_0x1a1505+_0x108fe5;return _0x190366==null?void 0x0:_0x190366[_0x58f4e8(0xa7)](_0x2bc329=>_0x2bc329[_0x58f4e8(0xbb)]>=_0x1a1505&&_0x2bc329[_0x58f4e8(0xbb)]<_0x143efc?null:_0x2bc329['startIndex']>=_0x143efc?{..._0x2bc329,'startIndex':_0x2bc329['startIndex']-_0x108fe5}:_0x2bc329)[_0x58f4e8(0x84)](_0x141ac8=>_0x141ac8!=null);}function we(_0x36d861,_0x1cf88e,_0x20cd33){const _0x58e5e7=_0x90b1ed;return _0x36d861==null?void 0x0:_0x36d861[_0x58e5e7(0xa7)](_0x1dc49e=>_0x1dc49e['st']>=_0x1cf88e?{..._0x1dc49e,'st':_0x1dc49e['st']+_0x20cd33,'ed':_0x1dc49e['ed']+_0x20cd33}:_0x1dc49e['ed']>_0x1cf88e?{..._0x1dc49e,'ed':_0x1dc49e['ed']+_0x20cd33}:_0x1dc49e);}function R(_0x33e44b,_0x428c7b,_0x59f0d0){const _0x3aaf15=_0x90b1ed;return _0x33e44b==null?void 0x0:_0x33e44b[_0x3aaf15(0xa7)](_0x1732fb=>_0x1732fb['startIndex']>=_0x428c7b?{..._0x1732fb,'startIndex':_0x1732fb[_0x3aaf15(0xbb)]+_0x59f0d0,'endIndex':_0x1732fb[_0x3aaf15(0x78)]+_0x59f0d0}:_0x1732fb[_0x3aaf15(0x78)]>=_0x428c7b?{..._0x1732fb,'endIndex':_0x1732fb['endIndex']+_0x59f0d0}:_0x1732fb);}function z(_0x315c34,_0x2be22a,_0x4c4798){const _0x4298bb=_0x90b1ed;let _0x516b92=_0x2be22a+_0x4c4798;return _0x315c34==null?void 0x0:_0x315c34[_0x4298bb(0xa7)](_0x4d563a=>_0x4d563a[_0x4298bb(0xbb)]>=_0x2be22a&&_0x4d563a[_0x4298bb(0x78)]<_0x516b92?null:_0x4d563a[_0x4298bb(0xbb)]>=_0x516b92?{..._0x4d563a,'startIndex':_0x4d563a[_0x4298bb(0xbb)]-_0x4c4798,'endIndex':_0x4d563a[_0x4298bb(0x78)]-_0x4c4798}:_0x4d563a[_0x4298bb(0x78)]>=_0x2be22a?{..._0x4d563a,'startIndex':_0x4d563a[_0x4298bb(0xbb)]<_0x2be22a?_0x4d563a['startIndex']:_0x2be22a,'endIndex':Math['max'](_0x2be22a,_0x4d563a[_0x4298bb(0x78)]-_0x4c4798)}:_0x4d563a)[_0x4298bb(0x84)](_0x4b9986=>_0x4b9986!=null);}function B(_0x50aef1,_0x465f64,_0x429c33,_0x101da2){const _0x4ba317=_0x90b1ed;_0x50aef1==null||_0x50aef1[_0x4ba317(0xa3)](_0x22d9c1=>{const _0xdfe8=_0x4ba317;_0x22d9c1[_0xdfe8(0xbb)]>=_0x465f64&&_0x22d9c1[_0xdfe8(0xbb)]<_0x429c33&&(_0x22d9c1['startIndex']+=_0x101da2);});}function Te(_0x57bfb3,_0x4cf9f,_0x3c9f9e,_0x427d8c){const _0xbd390c=_0x90b1ed;_0x57bfb3==null||_0x57bfb3[_0xbd390c(0xa3)](_0x4b5dca=>{_0x4b5dca['st']>=_0x4cf9f&&_0x4b5dca['st']<_0x3c9f9e?(_0x4b5dca['st']+=_0x427d8c,_0x4b5dca['ed']+=_0x427d8c):_0x4b5dca['ed']>_0x4cf9f&&_0x4b5dca['ed']<_0x3c9f9e&&(_0x4b5dca['ed']+=_0x427d8c);});}function V(_0x18f6bb,_0xff5d9c,_0x2a8482,_0x4c7e7e){const _0x142e18=_0x90b1ed;_0x18f6bb==null||_0x18f6bb[_0x142e18(0xa3)](_0x25bef4=>{const _0x532773=_0x142e18;_0x25bef4[_0x532773(0xbb)]>=_0xff5d9c&&_0x25bef4['startIndex']<_0x2a8482?(_0x25bef4[_0x532773(0xbb)]+=_0x4c7e7e,_0x25bef4[_0x532773(0x78)]+=_0x4c7e7e):_0x25bef4[_0x532773(0x78)]>_0xff5d9c&&_0x25bef4[_0x532773(0x78)]<_0x2a8482&&(_0x25bef4[_0x532773(0x78)]+=_0x4c7e7e);});}function H(_0x302838){'@babel/helpers - typeof';const _0x37dcbe=_0x90b1ed;return H=typeof Symbol==_0x37dcbe(0x95)&&typeof Symbol['iterator']==_0x37dcbe(0x7d)?function(_0xbdc232){return typeof _0xbdc232;}:function(_0x3d641b){const _0x451961=_0x37dcbe;return _0x3d641b&&typeof Symbol==_0x451961(0x95)&&_0x3d641b['constructor']===Symbol&&_0x3d641b!==Symbol[_0x451961(0x88)]?'symbol':typeof _0x3d641b;},H(_0x302838);}function Ee(_0x192548,_0xaab2b2){const _0x35fd6f=_0x90b1ed;if(H(_0x192548)!=_0x35fd6f(0xb8)||!_0x192548)return _0x192548;var _0x11bac5=_0x192548[Symbol['toPrimitive']];if(_0x11bac5!==void 0x0){var _0x3013c2=_0x11bac5[_0x35fd6f(0xe9)](_0x192548,_0xaab2b2||'default');if(H(_0x3013c2)!=_0x35fd6f(0xb8))return _0x3013c2;throw TypeError(_0x35fd6f(0xd0));}return(_0xaab2b2===_0x35fd6f(0xd9)?String:Number)(_0x192548);}function De(_0x3ca631){const _0x2df239=_0x90b1ed;var _0x3dde7e=Ee(_0x3ca631,'string');return H(_0x3dde7e)==_0x2df239(0x7d)?_0x3dde7e:_0x3dde7e+'';}function U(_0x2e6d97,_0x30be5d,_0x5cec6b){const _0xaa99c1=_0x90b1ed;return(_0x30be5d=De(_0x30be5d))in _0x2e6d97?Object[_0xaa99c1(0xf3)](_0x2e6d97,_0x30be5d,{'value':_0x5cec6b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2e6d97[_0x30be5d]=_0x5cec6b,_0x2e6d97;}var W=class extends _0x58c269{constructor(..._0x4205aa){const _0x4651b6=_0x90b1ed;super(..._0x4205aa),U(this,_0x4651b6(0xca),new Map()),U(this,_0x4651b6(0xef),new _0x1f73cb()),U(this,_0x4651b6(0xba),this['_change$'][_0x4651b6(0xed)]());}[_0x90b1ed(0xe8)](_0x112960,_0x16fabc){const _0x44746d=_0x90b1ed;return E(this[_0x44746d(0xca)][_0x44746d(0xf4)](_0x112960))[_0x44746d(0xe7)][_0x16fabc];}[_0x90b1ed(0xd6)](_0x1e1604,_0x598fb3,_0x6a5b50){const _0x3aa9f6=_0x90b1ed;this['_setResource'](_0x1e1604,_0x598fb3,D(this[_0x3aa9f6(0xca)]['get'](_0x1e1604),_0x598fb3,_0x6a5b50));}[_0x90b1ed(0x8c)](_0x4200e5,_0xc1c07e){const _0x41abda=_0x90b1ed;this[_0x41abda(0x92)](_0x4200e5,_0xc1c07e,te(this[_0x41abda(0xca)]['get'](_0x4200e5),_0xc1c07e));}['serialize'](_0x2b6f7f){const _0x4dccc9=_0x90b1ed;return E(this[_0x4dccc9(0xca)]['get'](_0x2b6f7f));}[_0x90b1ed(0xc9)](_0x5d71f7,_0x12e961){const _0x15391b=_0x90b1ed;this[_0x15391b(0xca)][_0x15391b(0x9b)](_0x5d71f7,E(_0x12e961)),this['_change$'][_0x15391b(0xdb)]({'unitId':_0x5d71f7});}[_0x90b1ed(0x7f)](_0x7d2cf7){const _0x56adfd=_0x90b1ed;this[_0x56adfd(0xca)]['delete'](_0x7d2cf7),this[_0x56adfd(0xef)][_0x56adfd(0xdb)]({'unitId':_0x7d2cf7});}['dispose'](){const _0x3ba5a4=_0x90b1ed;super[_0x3ba5a4(0x8d)](),this[_0x3ba5a4(0xca)]['clear'](),this['_change$']['complete']();}[_0x90b1ed(0x92)](_0x1a2a77,_0x1d8fca,_0x4bc07a){const _0x24fb80=_0x90b1ed;this[_0x24fb80(0xca)][_0x24fb80(0x9b)](_0x1a2a77,_0x4bc07a),this[_0x24fb80(0xef)][_0x24fb80(0xdb)]({'unitId':_0x1a2a77,'blockId':_0x1d8fca});}};const Oe={'id':'docs-code.command.insert-below','type':_0x123b49['COMMAND'],'handler':_0x180095=>{const _0xf948ac=_0x90b1ed;let _0x5e6be7=Me(_0x180095);if(_0x5e6be7)return _0x180095[_0xf948ac(0xf4)](_0x170d8a)[_0xf948ac(0xf5)](G['id'],{'startOffset':_0x5e6be7[_0xf948ac(0x79)],'endOffset':_0x5e6be7[_0xf948ac(0xd1)],'unitId':_0x5e6be7['unitId']});let _0x675b18=Ne(_0x180095);if(!_0x675b18)return!0x1;let _0x22cade=_0x675b18[_0xf948ac(0xbb)]+0x1;return _0x180095[_0xf948ac(0xf4)](_0x170d8a)[_0xf948ac(0xf5)](G['id'],{'startOffset':_0x22cade,'endOffset':_0x22cade});}},ke={'id':_0x90b1ed(0xbd),'type':_0x123b49[_0x90b1ed(0x81)],'handler':()=>!0x0},G={'id':'docs-code.command.insert','type':_0x123b49['COMMAND'],'handler':(_0x173ef0,_0x488acc)=>{const _0x30dd4f=_0x90b1ed;var _0x462f86,_0x3aad8a,_0x59c79a;let _0x205ede=q(_0x173ef0,_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0xd2)]);if(!_0x205ede)return!0x1;let _0x253baa=J(_0x173ef0),_0x461d77=re({'blockId':(_0x462f86=_0x488acc==null?void 0x0:_0x488acc['blockId'])==null?_0x3a4ef4(0x6):_0x462f86,'config':_0x488acc==null?void 0x0:_0x488acc['config'],'documentData':_0x205ede[_0x30dd4f(0x8a)],'endOffset':(_0x3aad8a=_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0xd1)])==null?_0x253baa==null?void 0x0:_0x253baa['endOffset']:_0x3aad8a,'metadata':_0x205ede['model'][_0x30dd4f(0x89)](_0x205ede['unitId']),'startOffset':(_0x59c79a=_0x488acc==null?void 0x0:_0x488acc[_0x30dd4f(0x79)])==null?_0x253baa==null?void 0x0:_0x253baa['startOffset']:_0x59c79a}),_0x41939f=X(_0x205ede[_0x30dd4f(0xf0)],_0x205ede['unitId'],_0x205ede['previousDocumentData'],_0x461d77[_0x30dd4f(0xe3)],_0x461d77[_0x30dd4f(0xa5)]);return _0x41939f&&_0x461d77[_0x30dd4f(0xaa)]&&_0x205ede[_0x30dd4f(0xd4)][_0x30dd4f(0xc9)](_0x205ede['unitId'],_0x461d77[_0x30dd4f(0xaa)]),_0x41939f;}},Ae={'id':_0x90b1ed(0xa9),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x8ea343,_0x374bef)=>{const _0x112213=_0x90b1ed;if(!_0x374bef)return!0x1;let _0x149893=q(_0x8ea343,_0x374bef[_0x112213(0xd2)]);if(!_0x149893)return!0x1;let _0x3e5eab=O({'blockId':_0x374bef[_0x112213(0xae)],'config':_0x374bef['config'],'documentData':_0x149893[_0x112213(0x8a)],'metadata':_0x149893[_0x112213(0xd4)]['serialize'](_0x149893[_0x112213(0xd2)])});return _0x3e5eab[_0x112213(0xaa)]&&_0x149893[_0x112213(0xd4)][_0x112213(0xc9)](_0x149893[_0x112213(0xd2)],_0x3e5eab[_0x112213(0xaa)]),!0x0;}},K={'id':_0x90b1ed(0x94),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x5e1e16,_0x2352e4)=>{const _0x475967=_0x90b1ed;var _0x2a56ff,_0x5ea6cb;let _0x591866=q(_0x5e1e16,_0x2352e4==null?void 0x0:_0x2352e4[_0x475967(0xd2)]);if(!_0x591866)return!0x1;let _0x537847=(_0x2a56ff=_0x2352e4==null?void 0x0:_0x2352e4['cursorOffset'])==null?(_0x5ea6cb=J(_0x5e1e16))==null?void 0x0:_0x5ea6cb[_0x475967(0x79)]:_0x2a56ff;if(_0x537847==null)return!0x1;let _0x3fd2a6=oe({'cursorOffset':_0x537847,'documentData':_0x591866[_0x475967(0x8a)]});return _0x3fd2a6?X(_0x591866[_0x475967(0xf0)],_0x591866['unitId'],_0x591866[_0x475967(0x8a)],_0x3fd2a6['nextDocumentData'],_0x3fd2a6[_0x475967(0xa5)]):!0x1;}},je={'id':_0x90b1ed(0xf8),'type':_0x123b49[_0x90b1ed(0x81)],'handler':(_0x4c232c,_0x3485e7)=>{const _0x55ec3a=_0x90b1ed;var _0x17b352,_0x5ece58;let _0x49d701=q(_0x4c232c,_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xd2)]);if(!_0x49d701)return!0x1;let _0x414869=(_0x17b352=_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xa5)])==null?(_0x5ece58=J(_0x4c232c))==null?void 0x0:_0x5ece58[_0x55ec3a(0x79)]:_0x17b352;if(_0x414869==null)return!0x1;let _0x20db5e=se({'cursorOffset':_0x414869,'documentData':_0x49d701['previousDocumentData'],'paragraphStartIndex':_0x3485e7==null?void 0x0:_0x3485e7[_0x55ec3a(0xd7)]});return _0x20db5e?X(_0x49d701['commandService'],_0x49d701[_0x55ec3a(0xd2)],_0x49d701[_0x55ec3a(0x8a)],_0x20db5e['nextDocumentData'],_0x20db5e[_0x55ec3a(0xa5)]):!0x1;}};function q(_0x2c43b1,_0x3b6d54){const _0x1648c6=_0x90b1ed;let _0x3aac76=_0x2c43b1[_0x1648c6(0xf4)](_0x2bbfcb),_0x16c22b=_0x3b6d54?_0x3aac76[_0x1648c6(0xec)](_0x3b6d54):_0x3aac76['getCurrentUnitOfType'](_0x333d99[_0x1648c6(0xb9)]);return _0x16c22b?{'commandService':_0x2c43b1[_0x1648c6(0xf4)](_0x170d8a),'model':_0x2c43b1[_0x1648c6(0xf4)](W),'previousDocumentData':_0x16c22b[_0x1648c6(0xd5)](),'unitId':_0x16c22b['getUnitId']()}:null;}function J(_0x55c760){const _0x2a3cd1=_0x90b1ed;var _0x3c4d0d;return(_0x3c4d0d=_0x55c760[_0x2a3cd1(0xf4)](_0xd6548f)['getTextRanges']())==null?void 0x0:_0x3c4d0d[0x0];}function Me(_0x5281e2){const _0x4ee214=_0x90b1ed;var _0x44eb11;let _0xc735e4=(_0x44eb11=_0x5281e2[_0x4ee214(0xf4)](_0x2bbfcb)[_0x4ee214(0xbc)](_0x333d99['UNIVER_DOC']))==null?void 0x0:_0x44eb11['getUnitId']();try{return _0x5281e2[_0x4ee214(0xf4)](_0xaf51af)[_0x4ee214(0xaf)](_0xc735e4);}catch{return null;}}function Ne(_0x545037){const _0x15928b=_0x90b1ed;var _0x35607c,_0xebd823,_0x31b1ea;let _0x2eda2b=J(_0x545037);if(!_0x2eda2b)return null;let _0x2e3d34=_0x545037[_0x15928b(0xf4)](_0x2bbfcb)['getCurrentUnitOfType'](_0x333d99['UNIVER_DOC']),_0x29244e=_0x2e3d34==null?void 0x0:_0x2e3d34[_0x15928b(0xb5)]();return _0x29244e?(_0x35607c=_0x51dd86['range'][_0x15928b(0x93)](_0x2eda2b,(_0xebd823=_0x29244e['paragraphs'])==null?[]:_0xebd823,(_0x31b1ea=_0x29244e['dataStream'])==null?'':_0x31b1ea)[0x0])==null?null:_0x35607c:null;}function Pe(_0x33941b,_0x16ca57){const _0x573e2b=_0x90b1ed;var _0x20defe,_0x437c12,_0x248225,_0x5a12f8,_0x34d205,_0x5de325,_0xf40731,_0x3c4d0e,_0x32d155,_0x18bdcb,_0x325579,_0x45cb21,_0x4c41ac,_0xc8df4f,_0xdef250,_0x291908,_0x1e914d,_0x3a2e54;let _0x523645=_0x104200['getInstance']();return[Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0x85)],(_0x20defe=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x20defe[_0x573e2b(0x85)],(_0x437c12=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x437c12['dataStream']),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xe0)],(_0x248225=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x248225[_0x573e2b(0xe0)],(_0x5a12f8=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x5a12f8[_0x573e2b(0xe0)]),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xe1)],(_0x34d205=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x34d205['sectionBreaks'],(_0x5de325=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x5de325[_0x573e2b(0xe1)]),Y(_0x523645,['body',_0x573e2b(0x80)],(_0xf40731=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0xf40731[_0x573e2b(0x80)],(_0x3c4d0e=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x3c4d0e['textRuns']),Y(_0x523645,[_0x573e2b(0xdc),'customBlocks'],(_0x32d155=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x32d155[_0x573e2b(0xb2)],(_0x18bdcb=_0x16ca57['body'])==null?void 0x0:_0x18bdcb[_0x573e2b(0xb2)]),Y(_0x523645,['body',_0x573e2b(0xce)],(_0x325579=_0x33941b['body'])==null?void 0x0:_0x325579[_0x573e2b(0xce)],(_0x45cb21=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x45cb21[_0x573e2b(0xce)]),Y(_0x523645,['body',_0x573e2b(0xcc)],(_0x4c41ac=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x4c41ac[_0x573e2b(0xcc)],(_0xc8df4f=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0xc8df4f['customDecorations']),Y(_0x523645,[_0x573e2b(0xdc),'tables'],(_0xdef250=_0x33941b['body'])==null?void 0x0:_0xdef250[_0x573e2b(0x8b)],(_0x291908=_0x16ca57['body'])==null?void 0x0:_0x291908[_0x573e2b(0x8b)]),Y(_0x523645,[_0x573e2b(0xdc),_0x573e2b(0xee)],(_0x1e914d=_0x33941b[_0x573e2b(0xdc)])==null?void 0x0:_0x1e914d['blockRanges'],(_0x3a2e54=_0x16ca57[_0x573e2b(0xdc)])==null?void 0x0:_0x3a2e54[_0x573e2b(0xee)])][_0x573e2b(0x84)](Boolean)['reduce']((_0x50b0c7,_0x5e92ad)=>_0x104200[_0x573e2b(0xe6)](_0x50b0c7,_0x5e92ad),null);}function Y(_0x15ea1f,_0x2c8670,_0x1098b1,_0x54d820){const _0x1330dc=_0x90b1ed;return _0x2fe1ea['diffValue'](_0x1098b1,_0x54d820)?null:_0x15ea1f[_0x1330dc(0xde)](_0x2c8670,_0x1098b1,_0x54d820);}function X(_0x3ef515,_0x568fa0,_0x14ea64,_0x271602,_0x1f9a7d){const _0x12c7cb=_0x90b1ed;let _0x2c90bf=Pe(_0x14ea64,_0x271602);return _0x2c90bf?!!_0x3ef515[_0x12c7cb(0xf5)](_0x2ef7f4['id'],{'unitId':_0x568fa0,'actions':_0x2c90bf,'textRanges':[{'startOffset':_0x1f9a7d,'endOffset':_0x1f9a7d,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}function _0x34cc(_0x5cc710,_0x3b84d2){_0x5cc710=_0x5cc710-0x76;const _0x4a0e08=_0x4a0e();let _0x34ccc5=_0x4a0e08[_0x5cc710];return _0x34ccc5;}var Fe='@univerjs-pro/docs-code',Ie=_0x90b1ed(0xb0);const Le={};function Z(_0x123199,_0x2e51a8){return function(_0x4ad631,_0x20854d){_0x2e51a8(_0x4ad631,_0x20854d,_0x123199);};}function Re(_0x2b6b47,_0x397759,_0x3ca90a,_0x402ea2){const _0x3e8fe6=_0x90b1ed;var _0x397c1e=arguments['length'],_0x3ddb73=_0x397c1e<0x3?_0x397759:_0x402ea2===null?_0x402ea2=Object[_0x3e8fe6(0x98)](_0x397759,_0x3ca90a):_0x402ea2,_0xe3f69d;if(typeof Reflect==_0x3e8fe6(0xb8)&&typeof Reflect[_0x3e8fe6(0xad)]==_0x3e8fe6(0x95))_0x3ddb73=Reflect['decorate'](_0x2b6b47,_0x397759,_0x3ca90a,_0x402ea2);else{for(var _0x576d74=_0x2b6b47['length']-0x1;_0x576d74>=0x0;_0x576d74--)(_0xe3f69d=_0x2b6b47[_0x576d74])&&(_0x3ddb73=(_0x397c1e<0x3?_0xe3f69d(_0x3ddb73):_0x397c1e>0x3?_0xe3f69d(_0x397759,_0x3ca90a,_0x3ddb73):_0xe3f69d(_0x397759,_0x3ca90a))||_0x3ddb73);}return _0x397c1e>0x3&&_0x3ddb73&&Object[_0x3e8fe6(0xf3)](_0x397759,_0x3ca90a,_0x3ddb73),_0x3ddb73;}let Q=class extends _0x58c269{constructor(_0x24cb6e,_0x10159c){const _0x6eb239=_0x90b1ed;super(),this[_0x6eb239(0xe4)]=_0x24cb6e,this[_0x6eb239(0x7b)]=_0x10159c,this['_initResource']();}[_0x90b1ed(0xc5)](){const _0x3c5f9b=_0x90b1ed;this[_0x3c5f9b(0xa0)](this[_0x3c5f9b(0xe4)][_0x3c5f9b(0x90)]({'pluginName':S,'businesses':[_0x333d99['UNIVER_DOC']],'toJson':_0xc1bee2=>JSON[_0x3c5f9b(0xc7)](this[_0x3c5f9b(0x7b)][_0x3c5f9b(0x89)](_0xc1bee2)),'parseJson':_0x3dd93c=>E(JSON[_0x3c5f9b(0xdd)](_0x3dd93c)),'onLoad':(_0x4a5d3e,_0x2cb583)=>this['_docsCodeModel']['deserialize'](_0x4a5d3e,_0x2cb583),'onUnLoad':_0x5f2188=>this[_0x3c5f9b(0x7b)][_0x3c5f9b(0x7f)](_0x5f2188)}));}};Q=Re([Z(0x0,_0x5bcb88),Z(0x1,_0x1f43cb(W))],Q);let $=class extends _0x3c090e{constructor(_0x4b66fa=Le,_0x431bea,_0x929542,_0x364725){const _0x59a12a=_0x90b1ed;super(),this[_0x59a12a(0x7e)]=_0x4b66fa,this['_injector']=_0x431bea,this[_0x59a12a(0xa2)]=_0x929542,this[_0x59a12a(0xc1)]=_0x364725;let {..._0x1162cc}=_0x4a14fb({},Le,this[_0x59a12a(0x7e)]);this['_configService'][_0x59a12a(0xf6)](_0x59a12a(0xc6),_0x1162cc);}[_0x90b1ed(0xb7)](){const _0x3d59b2=_0x90b1ed;this['_injector'][_0x3d59b2(0xea)]([W]),this[_0x3d59b2(0x99)]['add']([Q]),this['_injector'][_0x3d59b2(0xf4)](W),this[_0x3d59b2(0x99)][_0x3d59b2(0xf4)](Q),[G,Oe,Ae,K,je,ke][_0x3d59b2(0xa3)](_0x323553=>this['disposeWithMe'](this[_0x3d59b2(0xa2)]['registerCommand'](_0x323553)));}};U($,_0x90b1ed(0xbf),S),U($,_0x90b1ed(0x8e),Fe),U($,_0x90b1ed(0xbe),Ie),U($,_0x90b1ed(0xda),_0x333d99[_0x90b1ed(0xb9)]),$=Re([_0x5955c6(_0x111d9d,_0x5e48ad),Z(0x1,_0x1f43cb(_0x5121c)),Z(0x2,_0x170d8a),Z(0x3,_0x28e32f)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
|
|
1
|
+
const _0x241f87=_0x29cf;(function(_0x18baa3,_0x55c35f){const _0x515468=_0x29cf,_0x21289d=_0x18baa3();while(!![]){try{const _0x3caab2=-parseInt(_0x515468(0x179))/0x1+-parseInt(_0x515468(0x17b))/0x2*(parseInt(_0x515468(0x132))/0x3)+-parseInt(_0x515468(0x162))/0x4+parseInt(_0x515468(0x158))/0x5+-parseInt(_0x515468(0x124))/0x6*(parseInt(_0x515468(0x17f))/0x7)+-parseInt(_0x515468(0x108))/0x8+parseInt(_0x515468(0x16d))/0x9*(parseInt(_0x515468(0x163))/0xa);if(_0x3caab2===_0x55c35f)break;else _0x21289d['push'](_0x21289d['shift']());}catch(_0x221454){_0x21289d['push'](_0x21289d['shift']());}}}(_0x4d6f,0x826f9));import{BuildTextUtils as _0x2498f1,CommandType as _0xf7d768,DataStreamTreeTokenType as _0x315efc,DependentOn as _0x419fa,Disposable as _0xbc666b,ICommandService as _0x18fc6a,IConfigService as _0x596c0d,IResourceManagerService as _0x5984a4,IUniverInstanceService as _0x34f6cb,Inject as _0x44b855,Injector as _0xbfc494,JSONX as _0x2a087c,Plugin as _0x114981,Tools as _0x13dd56,UniverInstanceType as _0x10c6fb,generateRandomId as _0x4c62b6,merge as _0x516f4d}from'@univerjs/core';import{DocSelectionManagerService as _0x7c5adf,RichTextEditingMutation as _0x26d8b3,UniverDocsPlugin as _0x23a9de}from'@univerjs/docs';import{DocContentInsertService as _0x1528b5}from'@univerjs/docs-ui';import{Subject as _0x2c84e7}from'rxjs';import{UniverLicensePlugin as _0x4ccab1}from'@univerjs-pro/license';const S='DOC_CODE_PLUGIN',C='code',w={'language':_0x241f87(0x134),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function T(_0x5d116c){return{...w,..._0x5d116c};}function E(_0x4b7259){const _0x5b4895=_0x241f87;var _0x1148fb;let _0xe7b1c6=(_0x1148fb=_0x4b7259==null?void 0x0:_0x4b7259[_0x5b4895(0x14a)])==null?{}:_0x1148fb;return{'codes':Object[_0x5b4895(0x17d)](Object[_0x5b4895(0x12a)](_0xe7b1c6)[_0x5b4895(0x13d)](([_0x245a1f,_0x2d25b6])=>[_0x245a1f,T(_0x2d25b6)]))};}function D(_0x590f5c,_0x4af11e,_0x3d1e81){const _0x444219=_0x241f87;let _0xc4c0cf=E(_0x590f5c);return _0xc4c0cf[_0x444219(0x14a)][_0x4af11e]=T({..._0xc4c0cf[_0x444219(0x14a)][_0x4af11e],..._0x3d1e81}),_0xc4c0cf;}function te(_0xe58c86,_0xd36340){const _0x230283=_0x241f87;let _0x234959=E(_0xe58c86);return delete _0x234959[_0x230283(0x14a)][_0xd36340],_0x234959;}const ne=_0x241f87(0x184);function re(_0x288b3b){const _0x57892e=_0x241f87;var _0x3b053b,_0x32a3e,_0x3d1c75;let _0x29a168=A(_0x288b3b[_0x57892e(0x18b)]),_0x5baa45=j(_0x29a168),_0x77d76c=ae(_0x288b3b['startOffset'],_0x288b3b['endOffset']),_0x194c04=_0x77d76c?(_0x3b053b=_0x5baa45[_0x57892e(0x122)])==null?void 0x0:_0x3b053b['find'](_0x1f7eb5=>_0x1f7eb5[_0x57892e(0x187)]===_0x77d76c[_0x57892e(0x136)]&&_0x1f7eb5[_0x57892e(0x189)]+0x1===_0x77d76c[_0x57892e(0x131)]):void 0x0,{startOffset:_0x1387bb,endOffset:_0x43c269}=_0x194c04?_0x77d76c:ge(_0x5baa45,_0x288b3b[_0x57892e(0x136)],_0x288b3b[_0x57892e(0x131)]),_0x38619e=ve(_0x5baa45,_0x1387bb,_0x43c269),_0x43702=(_0x32a3e=_0x194c04==null?void 0x0:_0x194c04[_0x57892e(0x14c)])==null?_0x288b3b['blockId']:_0x32a3e,_0x6fddce=D(_0x288b3b[_0x57892e(0x13e)],_0x43702,{...w,..._0x288b3b[_0x57892e(0x15a)]});if(_0x194c04)return _0x194c04[_0x57892e(0x175)]=C,ie(_0x5baa45,_0x1387bb,_0x43c269),fe(_0x5baa45,_0x1387bb,_0x43c269,_0x38619e),{'nextDocumentData':_0x29a168,'nextMetadata':_0x6fddce,'cursorOffset':_0x1387bb+0x1};if(_0x1387bb===_0x43c269){let _0x58bd08=''+_0x315efc[_0x57892e(0x111)]+_0x315efc['PARAGRAPH']+_0x315efc[_0x57892e(0x17e)];return F(_0x5baa45,_0x1387bb,_0x58bd08,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':k(!0x0,!0x0,_0x38619e)}],'blockRanges':[{'blockId':_0x43702,'blockType':C,'startIndex':0x0,'endIndex':_0x58bd08[_0x57892e(0x14f)]-0x1}]}),{'nextDocumentData':_0x29a168,'nextMetadata':_0x6fddce,'cursorOffset':_0x1387bb+0x1};}return F(_0x5baa45,_0x43c269,_0x315efc[_0x57892e(0x17e)]),F(_0x5baa45,_0x1387bb,_0x315efc[_0x57892e(0x111)]),fe(_0x5baa45,_0x1387bb,_0x43c269+0x1,_0x38619e),_0x5baa45[_0x57892e(0x122)]=[...(_0x3d1c75=_0x5baa45[_0x57892e(0x122)])==null?[]:_0x3d1c75,{'blockId':_0x43702,'blockType':C,'startIndex':_0x1387bb,'endIndex':_0x43c269+0x1}]['sort']((_0x457402,_0x1a4dd8)=>_0x457402[_0x57892e(0x187)]-_0x1a4dd8['startIndex']),{'nextDocumentData':_0x29a168,'nextMetadata':_0x6fddce,'cursorOffset':_0x1387bb+0x1};}function ie(_0x18ea96,_0x28c629,_0x2c47b2){const _0x37fdd3=_0x241f87;var _0x3a00b0;((_0x3a00b0=_0x18ea96[_0x37fdd3(0x123)])==null?[]:_0x3a00b0)[_0x37fdd3(0x13b)](_0x2d3b7d=>_0x2d3b7d[_0x37fdd3(0x187)]>_0x28c629&&_0x2d3b7d[_0x37fdd3(0x187)]<_0x2c47b2)['forEach'](_0x55a630=>{const _0x21d7da=_0x37fdd3;var _0x2f9718;let _0x4f831c={...(_0x2f9718=_0x55a630[_0x21d7da(0x16f)])==null?{}:_0x2f9718};delete _0x4f831c[_0x21d7da(0x188)],delete _0x4f831c[_0x21d7da(0x137)],_0x55a630[_0x21d7da(0x16f)]=_0x4f831c;});}function _0x29cf(_0x3b6b20,_0x4775b1){_0x3b6b20=_0x3b6b20-0x106;const _0x4d6fd0=_0x4d6f();let _0x29cf9d=_0x4d6fd0[_0x3b6b20];return _0x29cf9d;}function ae(_0x2c6d15,_0x593f02){const _0x3b4bd9=_0x241f87;return _0x2c6d15==null||_0x593f02==null||_0x2c6d15===_0x593f02?null:{'startOffset':Math[_0x3b4bd9(0x12d)](_0x2c6d15,_0x593f02),'endOffset':Math[_0x3b4bd9(0x113)](_0x2c6d15,_0x593f02)};}function O(_0x257326){const _0x2bbc0a=_0x241f87;return{'nextDocumentData':A(_0x257326['documentData']),'nextMetadata':D(_0x257326[_0x2bbc0a(0x13e)],_0x257326[_0x2bbc0a(0x14c)],_0x257326['config']),'cursorOffset':0x0};}function oe(_0x4596f2){const _0x336b97=_0x241f87;var _0x25f75d,_0xa5f548;let _0x301d8f=A(_0x4596f2[_0x336b97(0x18b)]),_0x1ee218=j(_0x301d8f),_0x11188b=de(_0x1ee218,_0x4596f2[_0x336b97(0x150)]);if(!_0x11188b)return null;let _0x3f376c=me(_0x1ee218,_0x11188b),_0x4a5aef=_0x3f376c[_0x3f376c[_0x336b97(0x14f)]-0x1];if(!_0x4a5aef||!he(_0x1ee218,_0x11188b,_0x4a5aef)||_0x4596f2[_0x336b97(0x150)]<_0x4a5aef[_0x336b97(0x187)])return null;let _0x200633=N(_0x1ee218,_0x11188b,_0x4a5aef);if(_0x200633>=_0x11188b[_0x336b97(0x189)])return null;_0x1ee218[_0x336b97(0x12b)]=[_0x1ee218[_0x336b97(0x12b)][_0x336b97(0x135)](0x0,_0x200633),_0x315efc['BLOCK_END'],_0x1ee218['dataStream'][_0x336b97(0x135)](_0x200633,_0x11188b['endIndex']),_0x1ee218['dataStream']['slice'](_0x11188b['endIndex']+0x1)][_0x336b97(0x11b)](''),B(_0x1ee218[_0x336b97(0x123)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),B(_0x1ee218[_0x336b97(0x13f)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),B(_0x1ee218[_0x336b97(0x133)],_0x200633,_0x11188b['endIndex'],0x1),Te(_0x1ee218[_0x336b97(0x110)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),V(_0x1ee218[_0x336b97(0x139)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),V(_0x1ee218['customRanges'],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),V(_0x1ee218[_0x336b97(0x146)],_0x200633,_0x11188b[_0x336b97(0x189)],0x1),(_0x25f75d=_0x1ee218['blockRanges'])==null||_0x25f75d[_0x336b97(0x167)](_0xa80d91=>{const _0x161f05=_0x336b97;_0xa80d91===_0x11188b||_0xa80d91[_0x161f05(0x14c)]===_0x11188b['blockId']?_0xa80d91[_0x161f05(0x189)]=_0x200633:_0xa80d91[_0x161f05(0x187)]>=_0x200633&&_0xa80d91['startIndex']<_0x11188b[_0x161f05(0x189)]&&(_0xa80d91[_0x161f05(0x187)]+=0x1,_0xa80d91[_0x161f05(0x189)]+=0x1);});let _0x1f1502=me(_0x1ee218,{..._0x11188b,'endIndex':_0x200633});_0x1f1502['forEach']((_0x1bebed,_0x34477b)=>{const _0x4de273=_0x336b97;var _0x421ef0;_0x1bebed['paragraphStyle']={...(_0x421ef0=_0x1bebed[_0x4de273(0x16f)])==null?{}:_0x421ef0,...k(_0x34477b===0x0,_0x34477b===_0x1f1502['length']-0x1)};});let _0x69f4ac=(_0xa5f548=_0x1ee218[_0x336b97(0x123)])==null?void 0x0:_0xa5f548['find'](_0x1daf4c=>_0x1daf4c['startIndex']===_0x200633+0x1);return _0x69f4ac&&(_0x69f4ac[_0x336b97(0x16f)]=pe(_0x69f4ac['paragraphStyle'])),{'nextDocumentData':_0x301d8f,'cursorOffset':_0x200633+0x1};}function se(_0x428621){const _0x151b1a=_0x241f87;let _0x557979=A(_0x428621[_0x151b1a(0x18b)]),_0x458dc1=j(_0x557979),_0x483045=de(_0x458dc1,_0x428621[_0x151b1a(0x150)]);return _0x483045&&ce(_0x557979,_0x458dc1,_0x483045,_0x428621[_0x151b1a(0x150)],_0x428621['paragraphStartIndex'])||null;}function ce(_0x388a55,_0x440e75,_0x3e7c42,_0x3461ce,_0x2482f4){const _0xe1c2e8=_0x241f87;let _0x4a6c24=be(_0x440e75,_0x3e7c42,_0x3461ce,_0x2482f4);if(!_0x4a6c24)return null;let _0x1853c0=_0x4a6c24[_0xe1c2e8(0x178)]-0x1;return xe(_0x440e75,_0x4a6c24[_0xe1c2e8(0x11c)][_0xe1c2e8(0x187)],_0x4a6c24['paragraph'][_0xe1c2e8(0x187)]+0x1),{'nextDocumentData':_0x388a55,'cursorOffset':_0x1853c0};}function le(_0x38020a,_0x3444f1){const _0x4ec846=_0x241f87;var _0xf3530;return _0x38020a==null||(_0xf3530=_0x38020a['blockRanges'])==null?void 0x0:_0xf3530[_0x4ec846(0x119)](_0x2267af=>_0x2267af[_0x4ec846(0x175)]===_0x4ec846(0x141)&&_0x2267af[_0x4ec846(0x187)]<=_0x3444f1&&_0x3444f1<=_0x2267af[_0x4ec846(0x189)]);}function ue(_0x225bc1){const _0x466c1b=_0x241f87;var _0x2a4c1a;let _0xf9ebce=_0x225bc1['documentData']['body'];if(!_0xf9ebce)return!0x1;let _0x636d4f=_0x225bc1['direction']==='left'?_0x225bc1[_0x466c1b(0x150)]-0x1:_0x225bc1[_0x466c1b(0x150)],_0x4c37c0=_0x225bc1[_0x466c1b(0x13a)]==='right'?_0x225bc1['cursorOffset']+0x1:_0x636d4f;return((_0x2a4c1a=_0xf9ebce[_0x466c1b(0x122)])==null?[]:_0x2a4c1a)[_0x466c1b(0x16a)](_0x9f9db=>_0x9f9db[_0x466c1b(0x175)]===_0x466c1b(0x141)?_0x636d4f===_0x9f9db[_0x466c1b(0x187)]||_0x636d4f===_0x9f9db[_0x466c1b(0x189)]||_0x4c37c0===_0x9f9db[_0x466c1b(0x187)]||_0x4c37c0===_0x9f9db['endIndex']:!0x1);}function de(_0x2060b3,_0x565982){const _0x530ce9=_0x241f87;var _0x1926c4;return(_0x1926c4=_0x2060b3[_0x530ce9(0x122)])==null?void 0x0:_0x1926c4[_0x530ce9(0x119)](_0x4cbd53=>{const _0x1818c1=_0x530ce9;let _0x119325=P(_0x2060b3,_0x4cbd53);return _0x4cbd53['blockType']===_0x1818c1(0x141)&&_0x4cbd53[_0x1818c1(0x187)]<=_0x565982&&_0x565982<=_0x119325+0x2;});}function k(_0x37958d,_0x4e708e,_0x5aa9e3=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x37958d&&_0x5aa9e3?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':ne,'fs':0xc}};}function fe(_0x37d869,_0x1692cb,_0x463046,_0x15c12b=!0x1){const _0x472c0c=_0x241f87;var _0x501c15;let _0x7a98c0=((_0x501c15=_0x37d869[_0x472c0c(0x123)])==null?[]:_0x501c15)[_0x472c0c(0x13b)](_0x593b1d=>_0x593b1d[_0x472c0c(0x187)]>_0x1692cb&&_0x593b1d[_0x472c0c(0x187)]<_0x463046);_0x7a98c0[_0x472c0c(0x167)]((_0x20412b,_0x2f22a0)=>{const _0x5da845=_0x472c0c;var _0x39750b;_0x20412b[_0x5da845(0x16f)]={...(_0x39750b=_0x20412b['paragraphStyle'])==null?{}:_0x39750b,...k(_0x2f22a0===0x0,_0x2f22a0===_0x7a98c0[_0x5da845(0x14f)]-0x1,_0x15c12b)};});}function pe(_0xbb6af6){const _0x215644=_0x241f87;var _0x3ead72,_0x112880;let _0x11c462={..._0xbb6af6==null?{}:_0xbb6af6};return delete _0x11c462[_0x215644(0x12c)],delete _0x11c462['indentStart'],delete _0x11c462[_0x215644(0x188)],delete _0x11c462['spaceBelow'],((_0x3ead72=_0x11c462[_0x215644(0x11d)])==null?void 0x0:_0x3ead72['ff'])===ne&&((_0x112880=_0x11c462[_0x215644(0x11d)])==null?void 0x0:_0x112880['fs'])===0xc&&delete _0x11c462['textStyle'],_0x11c462;}function me(_0x4890ae,_0x4ac798){const _0x4e0b20=_0x241f87;var _0x36efbd;let _0x406227=P(_0x4890ae,_0x4ac798);return((_0x36efbd=_0x4890ae[_0x4e0b20(0x123)])==null?[]:_0x36efbd)[_0x4e0b20(0x13b)](_0x1539bd=>_0x1539bd[_0x4e0b20(0x187)]>_0x4ac798[_0x4e0b20(0x187)]&&_0x1539bd[_0x4e0b20(0x187)]<_0x406227);}function he(_0x4a0298,_0x5345f1,_0x3ff7fe){const _0x1301d1=_0x241f87;let _0x18fd5f=N(_0x4a0298,_0x5345f1,_0x3ff7fe),_0x8e5dce=_0x4a0298[_0x1301d1(0x12b)][_0x1301d1(0x135)](_0x18fd5f,_0x3ff7fe[_0x1301d1(0x187)]);return Array[_0x1301d1(0x10b)](_0x8e5dce)[_0x1301d1(0x106)](_0x1f28bb=>_0x1f28bb===_0x315efc[_0x1301d1(0x111)]||_0x1f28bb===_0x315efc[_0x1301d1(0x17e)]);}function A(_0xd26f75){const _0x21f438=_0x241f87;return _0x13dd56[_0x21f438(0x176)](_0xd26f75);}function j(_0x3f52e9){const _0xa8ffb0=_0x241f87;if(!_0x3f52e9[_0xa8ffb0(0x170)])throw Error(_0xa8ffb0(0x10e));return _0x3f52e9[_0xa8ffb0(0x170)];}function ge(_0x5f88b9,_0x22dca7,_0x587920){const _0x206eed=_0x241f87;if(_0x22dca7==null||_0x587920==null){let _0x47afa2=_e(_0x5f88b9);return{'startOffset':_0x47afa2,'endOffset':_0x47afa2};}let _0x908976=Math[_0x206eed(0x12d)](_0x22dca7,_0x587920),_0x1f0527=Math[_0x206eed(0x113)](_0x22dca7,_0x587920);return _0x908976===_0x1f0527?{'startOffset':_0x908976,'endOffset':_0x908976}:ye(_0x5f88b9,_0x908976,_0x1f0527);}function _e(_0x119da6){const _0x101abb=_0x241f87;return _0x119da6['dataStream'][_0x101abb(0x159)](_0x315efc[_0x101abb(0x14d)])?Math['max'](0x0,_0x119da6[_0x101abb(0x12b)][_0x101abb(0x14f)]-0x1):_0x119da6['dataStream']['length'];}function ve(_0x42c820,_0x9ce8d9,_0x461bce){const _0x169810=_0x241f87;var _0x190bb7;let _0x4ab61b=Math['min'](_0x9ce8d9,_0x461bce),_0x5177a4=Math['max'](_0x9ce8d9,_0x461bce);return!!((_0x190bb7=_0x42c820[_0x169810(0x139)])!=null&&_0x190bb7[_0x169810(0x16a)](_0x30fa85=>_0x4ab61b>_0x30fa85[_0x169810(0x187)]&&_0x4ab61b<_0x30fa85[_0x169810(0x189)]||_0x5177a4>_0x30fa85['startIndex']&&_0x5177a4<_0x30fa85[_0x169810(0x189)]||_0x4ab61b<=_0x30fa85[_0x169810(0x187)]&&_0x5177a4>=_0x30fa85[_0x169810(0x189)]));}function ye(_0x206494,_0x370176,_0x102b57){const _0x396b91=_0x241f87;var _0x259b95,_0xb5ba3e;let _0x25676d=[...(_0x259b95=_0x206494[_0x396b91(0x123)])==null?[]:_0x259b95][_0x396b91(0x154)]((_0x573d85,_0x1336c4)=>_0x573d85[_0x396b91(0x187)]-_0x1336c4[_0x396b91(0x187)]),_0x1a8bee=_0x25676d[_0x396b91(0x119)]((_0x1a14ed,_0x1f2c35)=>(_0x1f2c35===0x0?0x0:_0x25676d[_0x1f2c35-0x1][_0x396b91(0x187)]+0x1)<=_0x370176&&_0x370176<=_0x1a14ed['startIndex']),_0x2b148b=(_0xb5ba3e=_0x25676d[_0x396b91(0x119)](_0x11f625=>_0x11f625['startIndex']>=_0x102b57-0x1))==null?_0x25676d[_0x25676d['length']-0x1]:_0xb5ba3e;return{'startOffset':_0x1a8bee?M(_0x25676d,_0x1a8bee):_0x370176,'endOffset':_0x2b148b?_0x2b148b['startIndex']+0x1:_0x102b57};}function M(_0x24b5ce,_0x5ce6cf){const _0x105a34=_0x241f87;let _0x3c531b=_0x24b5ce[_0x105a34(0x117)](_0x5ce6cf);return _0x3c531b>0x0?_0x24b5ce[_0x3c531b-0x1][_0x105a34(0x187)]+0x1:0x0;}function N(_0xfaa875,_0x331a9a,_0x1ad470){const _0x4a70b7=_0x241f87;var _0x426dad;return Math[_0x4a70b7(0x113)](M((_0x426dad=_0xfaa875['paragraphs'])==null?[]:_0x426dad,_0x1ad470),_0x331a9a[_0x4a70b7(0x187)]+0x1);}function P(_0x3e7eae,_0x1e581f){const _0x54ed3e=_0x241f87;return _0x3e7eae[_0x54ed3e(0x12b)][_0x1e581f[_0x54ed3e(0x189)]]===_0x315efc[_0x54ed3e(0x17e)]?_0x1e581f[_0x54ed3e(0x189)]:_0x3e7eae[_0x54ed3e(0x12b)][_0x1e581f[_0x54ed3e(0x189)]+0x1]===_0x315efc['BLOCK_END']?_0x1e581f[_0x54ed3e(0x189)]+0x1:_0x1e581f[_0x54ed3e(0x189)];}function be(_0x37ba8a,_0x4bc7b4,_0x2bb834,_0x44b9fa){const _0x4016cc=_0x241f87;var _0x162fa8,_0x4884b7;let _0x26ce20=P(_0x37ba8a,_0x4bc7b4),_0x3c9567=((_0x162fa8=_0x37ba8a[_0x4016cc(0x123)])==null?[]:_0x162fa8)['find'](_0x5748fc=>_0x5748fc['startIndex']===_0x26ce20+0x1);if(!_0x3c9567||_0x44b9fa!=null&&_0x3c9567[_0x4016cc(0x187)]!==_0x44b9fa||_0x2bb834<_0x26ce20||_0x2bb834>_0x3c9567[_0x4016cc(0x187)]+0x1||_0x37ba8a[_0x4016cc(0x12b)][_0x3c9567[_0x4016cc(0x187)]]!==_0x315efc[_0x4016cc(0x138)])return null;let _0x2902fb=M((_0x4884b7=_0x37ba8a[_0x4016cc(0x123)])==null?[]:_0x4884b7,_0x3c9567),_0x427e52=_0x37ba8a[_0x4016cc(0x12b)][_0x4016cc(0x135)](_0x2902fb,_0x3c9567['startIndex']);return Array[_0x4016cc(0x10b)](_0x427e52)[_0x4016cc(0x106)](_0x17f308=>_0x17f308===_0x315efc['BLOCK_END'])?{'paragraph':_0x3c9567,'endTokenOffset':_0x26ce20}:null;}function F(_0x32f537,_0xcf4c49,_0x2ec36e,_0x3859fa={}){const _0x3f6b1f=_0x241f87;var _0xb1057f,_0x41454b;if(_0x2ec36e){if(_0x32f537[_0x3f6b1f(0x12b)]=''+_0x32f537[_0x3f6b1f(0x12b)]['slice'](0x0,_0xcf4c49)+_0x2ec36e+_0x32f537[_0x3f6b1f(0x12b)][_0x3f6b1f(0x135)](_0xcf4c49),Se(_0x32f537,_0xcf4c49,_0x2ec36e['length']),(_0xb1057f=_0x3859fa[_0x3f6b1f(0x123)])!=null&&_0xb1057f[_0x3f6b1f(0x14f)]){var _0x5c35a1;_0x32f537[_0x3f6b1f(0x123)]=[...(_0x5c35a1=_0x32f537['paragraphs'])==null?[]:_0x5c35a1,..._0x3859fa[_0x3f6b1f(0x123)][_0x3f6b1f(0x13d)](_0x513e50=>({..._0x513e50,'startIndex':_0x513e50[_0x3f6b1f(0x187)]+_0xcf4c49}))]['sort']((_0x5ecf92,_0x40a814)=>_0x5ecf92[_0x3f6b1f(0x187)]-_0x40a814[_0x3f6b1f(0x187)]);}if((_0x41454b=_0x3859fa[_0x3f6b1f(0x122)])!=null&&_0x41454b[_0x3f6b1f(0x14f)]){var _0x3bf3e8;_0x32f537['blockRanges']=[...(_0x3bf3e8=_0x32f537[_0x3f6b1f(0x122)])==null?[]:_0x3bf3e8,..._0x3859fa['blockRanges'][_0x3f6b1f(0x13d)](_0x3f6255=>({..._0x3f6255,'startIndex':_0x3f6255['startIndex']+_0xcf4c49,'endIndex':_0x3f6255['endIndex']+_0xcf4c49}))]['sort']((_0x132f7d,_0x216e09)=>_0x132f7d[_0x3f6b1f(0x187)]-_0x216e09[_0x3f6b1f(0x187)]);}}}function xe(_0x49653c,_0x1a521d,_0x1bb774){const _0x17de77=_0x241f87;let _0xa0e9be=_0x1bb774-_0x1a521d;_0x49653c[_0x17de77(0x12b)]=''+_0x49653c[_0x17de77(0x12b)]['slice'](0x0,_0x1a521d)+_0x49653c[_0x17de77(0x12b)][_0x17de77(0x135)](_0x1bb774),Ce(_0x49653c,_0x1a521d,_0xa0e9be);}function Se(_0x20492a,_0x51ff38,_0x4727a8){const _0x520574=_0x241f87;_0x20492a[_0x520574(0x123)]=I(_0x20492a[_0x520574(0x123)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x13f)]=I(_0x20492a[_0x520574(0x13f)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x133)]=I(_0x20492a[_0x520574(0x133)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x110)]=we(_0x20492a[_0x520574(0x110)],_0x51ff38,_0x4727a8),_0x20492a['tables']=R(_0x20492a[_0x520574(0x139)],_0x51ff38,_0x4727a8),_0x20492a['customRanges']=R(_0x20492a[_0x520574(0x130)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x146)]=R(_0x20492a[_0x520574(0x146)],_0x51ff38,_0x4727a8),_0x20492a[_0x520574(0x122)]=R(_0x20492a[_0x520574(0x122)],_0x51ff38,_0x4727a8);}function Ce(_0x53f655,_0xb5c05c,_0x1fdb4f){const _0x3813da=_0x241f87;var _0x6d5cb4,_0x39abf8;_0x53f655['paragraphs']=L(_0x53f655[_0x3813da(0x123)],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x13f)]=L(_0x53f655[_0x3813da(0x13f)],_0xb5c05c,_0x1fdb4f),_0x53f655['customBlocks']=L(_0x53f655['customBlocks'],_0xb5c05c,_0x1fdb4f),_0x53f655['textRuns']=(_0x6d5cb4=z((_0x39abf8=_0x53f655[_0x3813da(0x110)])==null?void 0x0:_0x39abf8[_0x3813da(0x13d)](_0x402aea=>({..._0x402aea,'startIndex':_0x402aea['st'],'endIndex':_0x402aea['ed']})),_0xb5c05c,_0x1fdb4f))==null?void 0x0:_0x6d5cb4[_0x3813da(0x13d)](_0x4df46c=>{let {startIndex:_0x40b1cc,endIndex:_0x408b3c,..._0x288d91}=_0x4df46c;return{..._0x288d91,'st':_0x40b1cc,'ed':_0x408b3c};}),_0x53f655['tables']=z(_0x53f655['tables'],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x130)]=z(_0x53f655[_0x3813da(0x130)],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x146)]=z(_0x53f655[_0x3813da(0x146)],_0xb5c05c,_0x1fdb4f),_0x53f655[_0x3813da(0x122)]=z(_0x53f655['blockRanges'],_0xb5c05c,_0x1fdb4f);}function I(_0x2a6b80,_0x47a61b,_0x23949f){const _0x89c517=_0x241f87;return _0x2a6b80==null?void 0x0:_0x2a6b80[_0x89c517(0x13d)](_0x4d0bb=>_0x4d0bb[_0x89c517(0x187)]>=_0x47a61b?{..._0x4d0bb,'startIndex':_0x4d0bb['startIndex']+_0x23949f}:_0x4d0bb);}function L(_0x275d6c,_0x1d2314,_0x3d5951){const _0x3d0008=_0x241f87;let _0x3f4e7d=_0x1d2314+_0x3d5951;return _0x275d6c==null?void 0x0:_0x275d6c[_0x3d0008(0x13d)](_0x43d6d7=>_0x43d6d7['startIndex']>=_0x1d2314&&_0x43d6d7[_0x3d0008(0x187)]<_0x3f4e7d?null:_0x43d6d7[_0x3d0008(0x187)]>=_0x3f4e7d?{..._0x43d6d7,'startIndex':_0x43d6d7[_0x3d0008(0x187)]-_0x3d5951}:_0x43d6d7)[_0x3d0008(0x13b)](_0x2f5fd6=>_0x2f5fd6!=null);}function we(_0x5aa3b6,_0x1d5236,_0x55db2e){const _0x1b8f8c=_0x241f87;return _0x5aa3b6==null?void 0x0:_0x5aa3b6[_0x1b8f8c(0x13d)](_0x1874c0=>_0x1874c0['st']>=_0x1d5236?{..._0x1874c0,'st':_0x1874c0['st']+_0x55db2e,'ed':_0x1874c0['ed']+_0x55db2e}:_0x1874c0['ed']>_0x1d5236?{..._0x1874c0,'ed':_0x1874c0['ed']+_0x55db2e}:_0x1874c0);}function R(_0x1b78ca,_0x4ba889,_0x1c643f){const _0x14c3ff=_0x241f87;return _0x1b78ca==null?void 0x0:_0x1b78ca[_0x14c3ff(0x13d)](_0x8ae2e5=>_0x8ae2e5[_0x14c3ff(0x187)]>=_0x4ba889?{..._0x8ae2e5,'startIndex':_0x8ae2e5[_0x14c3ff(0x187)]+_0x1c643f,'endIndex':_0x8ae2e5[_0x14c3ff(0x189)]+_0x1c643f}:_0x8ae2e5[_0x14c3ff(0x189)]>=_0x4ba889?{..._0x8ae2e5,'endIndex':_0x8ae2e5[_0x14c3ff(0x189)]+_0x1c643f}:_0x8ae2e5);}function z(_0x51ac1d,_0x420445,_0x5a0447){const _0x4c680d=_0x241f87;let _0x4eac23=_0x420445+_0x5a0447;return _0x51ac1d==null?void 0x0:_0x51ac1d['map'](_0x5d7c80=>_0x5d7c80[_0x4c680d(0x187)]>=_0x420445&&_0x5d7c80['endIndex']<_0x4eac23?null:_0x5d7c80[_0x4c680d(0x187)]>=_0x4eac23?{..._0x5d7c80,'startIndex':_0x5d7c80[_0x4c680d(0x187)]-_0x5a0447,'endIndex':_0x5d7c80['endIndex']-_0x5a0447}:_0x5d7c80[_0x4c680d(0x189)]>=_0x420445?{..._0x5d7c80,'startIndex':_0x5d7c80[_0x4c680d(0x187)]<_0x420445?_0x5d7c80[_0x4c680d(0x187)]:_0x420445,'endIndex':Math['max'](_0x420445,_0x5d7c80[_0x4c680d(0x189)]-_0x5a0447)}:_0x5d7c80)['filter'](_0x4d326a=>_0x4d326a!=null);}function B(_0x138369,_0x35a3c3,_0x33eff7,_0x260325){const _0x510bd1=_0x241f87;_0x138369==null||_0x138369[_0x510bd1(0x167)](_0x3420ec=>{const _0x3f8924=_0x510bd1;_0x3420ec['startIndex']>=_0x35a3c3&&_0x3420ec[_0x3f8924(0x187)]<_0x33eff7&&(_0x3420ec[_0x3f8924(0x187)]+=_0x260325);});}function Te(_0x1af2aa,_0x1e75fa,_0x435c47,_0x51622e){const _0x50bab6=_0x241f87;_0x1af2aa==null||_0x1af2aa[_0x50bab6(0x167)](_0x3b0748=>{_0x3b0748['st']>=_0x1e75fa&&_0x3b0748['st']<_0x435c47?(_0x3b0748['st']+=_0x51622e,_0x3b0748['ed']+=_0x51622e):_0x3b0748['ed']>_0x1e75fa&&_0x3b0748['ed']<_0x435c47&&(_0x3b0748['ed']+=_0x51622e);});}function V(_0x53bc94,_0x51e751,_0x2a4431,_0x6d74b8){const _0x4757dd=_0x241f87;_0x53bc94==null||_0x53bc94[_0x4757dd(0x167)](_0x12c081=>{const _0xe73656=_0x4757dd;_0x12c081[_0xe73656(0x187)]>=_0x51e751&&_0x12c081[_0xe73656(0x187)]<_0x2a4431?(_0x12c081[_0xe73656(0x187)]+=_0x6d74b8,_0x12c081[_0xe73656(0x189)]+=_0x6d74b8):_0x12c081[_0xe73656(0x189)]>_0x51e751&&_0x12c081['endIndex']<_0x2a4431&&(_0x12c081[_0xe73656(0x189)]+=_0x6d74b8);});}function H(_0x5048b0){'@babel/helpers - typeof';const _0x30974f=_0x241f87;return H=typeof Symbol==_0x30974f(0x15c)&&typeof Symbol[_0x30974f(0x156)]==_0x30974f(0x174)?function(_0x1c6173){return typeof _0x1c6173;}:function(_0xd4fa21){const _0x3239b5=_0x30974f;return _0xd4fa21&&typeof Symbol=='function'&&_0xd4fa21[_0x3239b5(0x15b)]===Symbol&&_0xd4fa21!==Symbol[_0x3239b5(0x10a)]?_0x3239b5(0x174):typeof _0xd4fa21;},H(_0x5048b0);}function Ee(_0x394825,_0xdc7d90){const _0x213313=_0x241f87;if(H(_0x394825)!=_0x213313(0x12f)||!_0x394825)return _0x394825;var _0x320887=_0x394825[Symbol[_0x213313(0x166)]];if(_0x320887!==void 0x0){var _0x16ca57=_0x320887[_0x213313(0x118)](_0x394825,_0xdc7d90||_0x213313(0x14b));if(H(_0x16ca57)!=_0x213313(0x12f))return _0x16ca57;throw TypeError(_0x213313(0x109));}return(_0xdc7d90===_0x213313(0x165)?String:Number)(_0x394825);}function De(_0x49b267){const _0x5213e5=_0x241f87;var _0x3bc5a3=Ee(_0x49b267,_0x5213e5(0x165));return H(_0x3bc5a3)=='symbol'?_0x3bc5a3:_0x3bc5a3+'';}function U(_0x4b1c00,_0x4dca14,_0x3d279a){return(_0x4dca14=De(_0x4dca14))in _0x4b1c00?Object['defineProperty'](_0x4b1c00,_0x4dca14,{'value':_0x3d279a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b1c00[_0x4dca14]=_0x3d279a,_0x4b1c00;}var W=class extends _0xbc666b{constructor(..._0x1c26c2){const _0x2ec173=_0x241f87;super(..._0x1c26c2),U(this,_0x2ec173(0x186),new Map()),U(this,'_change$',new _0x2c84e7()),U(this,_0x2ec173(0x128),this[_0x2ec173(0x114)][_0x2ec173(0x181)]());}[_0x241f87(0x172)](_0x5c2d59,_0x5698f9){const _0x5c3da1=_0x241f87;return E(this['_resources'][_0x5c3da1(0x14e)](_0x5c2d59))[_0x5c3da1(0x14a)][_0x5698f9];}[_0x241f87(0x169)](_0x5b7a6c,_0x561b33,_0x16c0b7){const _0x3dadbe=_0x241f87;this['_setResource'](_0x5b7a6c,_0x561b33,D(this[_0x3dadbe(0x186)][_0x3dadbe(0x14e)](_0x5b7a6c),_0x561b33,_0x16c0b7));}[_0x241f87(0x121)](_0x385f9b,_0x170f27){const _0x1c9534=_0x241f87;this[_0x1c9534(0x116)](_0x385f9b,_0x170f27,te(this[_0x1c9534(0x186)][_0x1c9534(0x14e)](_0x385f9b),_0x170f27));}[_0x241f87(0x16c)](_0x2a18a9){const _0x5a7370=_0x241f87;return E(this[_0x5a7370(0x186)]['get'](_0x2a18a9));}[_0x241f87(0x182)](_0xe52063,_0x5061ea){const _0x3bcaa0=_0x241f87;this['_resources'][_0x3bcaa0(0x152)](_0xe52063,E(_0x5061ea)),this['_change$'][_0x3bcaa0(0x180)]({'unitId':_0xe52063});}[_0x241f87(0x15e)](_0x11cbe3){const _0x3e8345=_0x241f87;this[_0x3e8345(0x186)]['delete'](_0x11cbe3),this[_0x3e8345(0x114)][_0x3e8345(0x180)]({'unitId':_0x11cbe3});}[_0x241f87(0x153)](){const _0x3f941d=_0x241f87;super[_0x3f941d(0x153)](),this['_resources']['clear'](),this['_change$']['complete']();}['_setResource'](_0x39404f,_0x32beae,_0x4e29bc){const _0xf0408b=_0x241f87;this[_0xf0408b(0x186)]['set'](_0x39404f,_0x4e29bc),this[_0xf0408b(0x114)]['next']({'unitId':_0x39404f,'blockId':_0x32beae});}};const Oe={'id':'docs-code.command.insert-below','type':_0xf7d768[_0x241f87(0x160)],'handler':_0x113306=>{const _0x50c0ce=_0x241f87;let _0x276ed6=Me(_0x113306);if(_0x276ed6)return _0x113306['get'](_0x18fc6a)['syncExecuteCommand'](G['id'],{'startOffset':_0x276ed6[_0x50c0ce(0x136)],'endOffset':_0x276ed6['endOffset'],'unitId':_0x276ed6[_0x50c0ce(0x18a)]});let _0x4158e5=Ne(_0x113306);if(!_0x4158e5)return!0x1;let _0xdb08e2=_0x4158e5[_0x50c0ce(0x187)]+0x1;return _0x113306[_0x50c0ce(0x14e)](_0x18fc6a)[_0x50c0ce(0x140)](G['id'],{'startOffset':_0xdb08e2,'endOffset':_0xdb08e2});}},ke={'id':_0x241f87(0x185),'type':_0xf7d768[_0x241f87(0x160)],'handler':()=>!0x0},G={'id':_0x241f87(0x148),'type':_0xf7d768[_0x241f87(0x160)],'handler':(_0x10038c,_0x38623c)=>{const _0x235268=_0x241f87;var _0x4115a2,_0x8d48cc,_0x1d21d6;let _0x2c0439=q(_0x10038c,_0x38623c==null?void 0x0:_0x38623c['unitId']);if(!_0x2c0439)return!0x1;let _0x249c54=J(_0x10038c),_0x53e4d9=re({'blockId':(_0x4115a2=_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x14c)])==null?_0x4c62b6(0x6):_0x4115a2,'config':_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x15a)],'documentData':_0x2c0439[_0x235268(0x17a)],'endOffset':(_0x8d48cc=_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x131)])==null?_0x249c54==null?void 0x0:_0x249c54[_0x235268(0x131)]:_0x8d48cc,'metadata':_0x2c0439[_0x235268(0x157)][_0x235268(0x16c)](_0x2c0439[_0x235268(0x18a)]),'startOffset':(_0x1d21d6=_0x38623c==null?void 0x0:_0x38623c[_0x235268(0x136)])==null?_0x249c54==null?void 0x0:_0x249c54[_0x235268(0x136)]:_0x1d21d6}),_0x79fa77=X(_0x2c0439[_0x235268(0x11f)],_0x2c0439[_0x235268(0x18a)],_0x2c0439[_0x235268(0x17a)],_0x53e4d9[_0x235268(0x13c)],_0x53e4d9[_0x235268(0x150)]);return _0x79fa77&&_0x53e4d9[_0x235268(0x155)]&&_0x2c0439['model'][_0x235268(0x182)](_0x2c0439[_0x235268(0x18a)],_0x53e4d9['nextMetadata']),_0x79fa77;}},Ae={'id':_0x241f87(0x120),'type':_0xf7d768[_0x241f87(0x160)],'handler':(_0x1148c1,_0x42151c)=>{const _0x14e549=_0x241f87;if(!_0x42151c)return!0x1;let _0x20e250=q(_0x1148c1,_0x42151c[_0x14e549(0x18a)]);if(!_0x20e250)return!0x1;let _0x5c9444=O({'blockId':_0x42151c['blockId'],'config':_0x42151c[_0x14e549(0x15a)],'documentData':_0x20e250['previousDocumentData'],'metadata':_0x20e250['model']['serialize'](_0x20e250[_0x14e549(0x18a)])});return _0x5c9444[_0x14e549(0x155)]&&_0x20e250['model'][_0x14e549(0x182)](_0x20e250[_0x14e549(0x18a)],_0x5c9444[_0x14e549(0x155)]),!0x0;}},K={'id':_0x241f87(0x115),'type':_0xf7d768[_0x241f87(0x160)],'handler':(_0x56951f,_0x5b736f)=>{const _0xd97516=_0x241f87;var _0x36ac66,_0x546b52;let _0x2d1148=q(_0x56951f,_0x5b736f==null?void 0x0:_0x5b736f['unitId']);if(!_0x2d1148)return!0x1;let _0x3a1ef3=(_0x36ac66=_0x5b736f==null?void 0x0:_0x5b736f[_0xd97516(0x150)])==null?(_0x546b52=J(_0x56951f))==null?void 0x0:_0x546b52[_0xd97516(0x136)]:_0x36ac66;if(_0x3a1ef3==null)return!0x1;let _0x1ca68c=oe({'cursorOffset':_0x3a1ef3,'documentData':_0x2d1148[_0xd97516(0x17a)]});return _0x1ca68c?X(_0x2d1148[_0xd97516(0x11f)],_0x2d1148[_0xd97516(0x18a)],_0x2d1148[_0xd97516(0x17a)],_0x1ca68c['nextDocumentData'],_0x1ca68c['cursorOffset']):!0x1;}},je={'id':'docs-code.command.cancel-empty-paragraph','type':_0xf7d768['COMMAND'],'handler':(_0x5223a2,_0x4d2d52)=>{const _0x429ef1=_0x241f87;var _0x781f60,_0x190fe0;let _0x3e326d=q(_0x5223a2,_0x4d2d52==null?void 0x0:_0x4d2d52[_0x429ef1(0x18a)]);if(!_0x3e326d)return!0x1;let _0x52ce49=(_0x781f60=_0x4d2d52==null?void 0x0:_0x4d2d52[_0x429ef1(0x150)])==null?(_0x190fe0=J(_0x5223a2))==null?void 0x0:_0x190fe0[_0x429ef1(0x136)]:_0x781f60;if(_0x52ce49==null)return!0x1;let _0xf83121=se({'cursorOffset':_0x52ce49,'documentData':_0x3e326d[_0x429ef1(0x17a)],'paragraphStartIndex':_0x4d2d52==null?void 0x0:_0x4d2d52[_0x429ef1(0x145)]});return _0xf83121?X(_0x3e326d['commandService'],_0x3e326d[_0x429ef1(0x18a)],_0x3e326d['previousDocumentData'],_0xf83121['nextDocumentData'],_0xf83121['cursorOffset']):!0x1;}};function q(_0x2b47b7,_0x1fbe93){const _0x106551=_0x241f87;let _0x563da7=_0x2b47b7[_0x106551(0x14e)](_0x34f6cb),_0x37efd8=_0x1fbe93?_0x563da7[_0x106551(0x177)](_0x1fbe93):_0x563da7[_0x106551(0x11a)](_0x10c6fb[_0x106551(0x12e)]);return _0x37efd8?{'commandService':_0x2b47b7[_0x106551(0x14e)](_0x18fc6a),'model':_0x2b47b7['get'](W),'previousDocumentData':_0x37efd8[_0x106551(0x149)](),'unitId':_0x37efd8[_0x106551(0x147)]()}:null;}function J(_0x486d67){const _0x3fbef0=_0x241f87;var _0x5995df;return(_0x5995df=_0x486d67[_0x3fbef0(0x14e)](_0x7c5adf)[_0x3fbef0(0x161)]())==null?void 0x0:_0x5995df[0x0];}function _0x4d6f(){const _0x30697e=['replaceOp','fromEntries','BLOCK_END','806071NteNVN','next','asObservable','deserialize','reduce','monospace','docs-code.command.consume-boundary-delete','_resources','startIndex','spaceAbove','endIndex','unitId','documentData','every','parse','2930168FurIlb','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','prototype','from','_initResource','decorate','Document\x20body\x20is\x20required','registerCommand','textRuns','BLOCK_START','_config','max','_change$','docs-code.command.exit','_setResource','indexOf','call','find','getCurrentUnitOfType','join','paragraph','textStyle','consumeInsertRange','commandService','docs-code.command.update','removeCode','blockRanges','paragraphs','18EfqnTW','compose','stringify','diffValue','change$','version','entries','dataStream','indentEnd','min','UNIVER_DOC','object','customRanges','endOffset','45126RwYwrI','customBlocks','javascript','slice','startOffset','spaceBelow','PARAGRAPH','tables','direction','filter','nextDocumentData','map','metadata','sectionBreaks','syncExecuteCommand','code','_commandService','_docsCodeModel','packageName','paragraphStartIndex','customDecorations','getUnitId','docs-code.command.insert','getSnapshot','codes','default','blockId','SECTION_BREAK','get','length','cursorOffset','defineProperty','set','dispose','sort','nextMetadata','iterator','model','35270wSNLtd','endsWith','config','constructor','function','onStarting','removeUnit','_configService','COMMAND','getTextRanges','73756Yuxloz','19249760NITeLz','_resourceManagerService','string','toPrimitive','forEach','disposeWithMe','setCodeConfig','some','_injector','serialize','9sAxSwS','add','paragraphStyle','body','getInstance','getCodeConfig','getParagraphsInRange','symbol','blockType','deepClone','getUniverDocInstance','endTokenOffset','96000JSxVXd','previousDocumentData','76ikFQVc'];_0x4d6f=function(){return _0x30697e;};return _0x4d6f();}function Me(_0x5ed89d){const _0x4c89e2=_0x241f87;var _0x34b9e5;let _0x5b055f=(_0x34b9e5=_0x5ed89d[_0x4c89e2(0x14e)](_0x34f6cb)[_0x4c89e2(0x11a)](_0x10c6fb['UNIVER_DOC']))==null?void 0x0:_0x34b9e5['getUnitId']();try{return _0x5ed89d[_0x4c89e2(0x14e)](_0x1528b5)[_0x4c89e2(0x11e)](_0x5b055f);}catch{return null;}}function Ne(_0x20c878){const _0x579614=_0x241f87;var _0x80671e,_0xcf9e82,_0x2a7d06;let _0x3536df=J(_0x20c878);if(!_0x3536df)return null;let _0x5a0519=_0x20c878['get'](_0x34f6cb)[_0x579614(0x11a)](_0x10c6fb[_0x579614(0x12e)]),_0x363a08=_0x5a0519==null?void 0x0:_0x5a0519['getBody']();return _0x363a08?(_0x80671e=_0x2498f1['range'][_0x579614(0x173)](_0x3536df,(_0xcf9e82=_0x363a08[_0x579614(0x123)])==null?[]:_0xcf9e82,(_0x2a7d06=_0x363a08[_0x579614(0x12b)])==null?'':_0x2a7d06)[0x0])==null?null:_0x80671e:null;}function Pe(_0x1f6e29,_0x14895a){const _0x398951=_0x241f87;var _0x2bd6ee,_0x2042a0,_0x587cb3,_0x55fa86,_0x444311,_0x5dec40,_0x1d3feb,_0x52f77a,_0x404cd5,_0x3e508c,_0x367433,_0x548a14,_0x1029f0,_0x18565d,_0xe14c32,_0xdcda85,_0x17aa87,_0x4e4ae2;let _0xeb853e=_0x2a087c[_0x398951(0x171)]();return[Y(_0xeb853e,[_0x398951(0x170),'dataStream'],(_0x2bd6ee=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x2bd6ee[_0x398951(0x12b)],(_0x2042a0=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x2042a0[_0x398951(0x12b)]),Y(_0xeb853e,['body',_0x398951(0x123)],(_0x587cb3=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x587cb3[_0x398951(0x123)],(_0x55fa86=_0x14895a['body'])==null?void 0x0:_0x55fa86[_0x398951(0x123)]),Y(_0xeb853e,['body','sectionBreaks'],(_0x444311=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x444311[_0x398951(0x13f)],(_0x5dec40=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x5dec40['sectionBreaks']),Y(_0xeb853e,[_0x398951(0x170),_0x398951(0x110)],(_0x1d3feb=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x1d3feb[_0x398951(0x110)],(_0x52f77a=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x52f77a[_0x398951(0x110)]),Y(_0xeb853e,[_0x398951(0x170),_0x398951(0x133)],(_0x404cd5=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x404cd5[_0x398951(0x133)],(_0x3e508c=_0x14895a['body'])==null?void 0x0:_0x3e508c['customBlocks']),Y(_0xeb853e,['body','customRanges'],(_0x367433=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x367433[_0x398951(0x130)],(_0x548a14=_0x14895a[_0x398951(0x170)])==null?void 0x0:_0x548a14['customRanges']),Y(_0xeb853e,['body','customDecorations'],(_0x1029f0=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x1029f0[_0x398951(0x146)],(_0x18565d=_0x14895a['body'])==null?void 0x0:_0x18565d[_0x398951(0x146)]),Y(_0xeb853e,[_0x398951(0x170),'tables'],(_0xe14c32=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0xe14c32[_0x398951(0x139)],(_0xdcda85=_0x14895a['body'])==null?void 0x0:_0xdcda85[_0x398951(0x139)]),Y(_0xeb853e,[_0x398951(0x170),'blockRanges'],(_0x17aa87=_0x1f6e29[_0x398951(0x170)])==null?void 0x0:_0x17aa87[_0x398951(0x122)],(_0x4e4ae2=_0x14895a['body'])==null?void 0x0:_0x4e4ae2['blockRanges'])]['filter'](Boolean)[_0x398951(0x183)]((_0x31e663,_0x419ab1)=>_0x2a087c[_0x398951(0x125)](_0x31e663,_0x419ab1),null);}function Y(_0x5f299a,_0xa0bb0e,_0x324a77,_0x4e6fb8){const _0x23b4d9=_0x241f87;return _0x13dd56[_0x23b4d9(0x127)](_0x324a77,_0x4e6fb8)?null:_0x5f299a[_0x23b4d9(0x17c)](_0xa0bb0e,_0x324a77,_0x4e6fb8);}function X(_0xe48783,_0x29d45d,_0x3c5a08,_0x17ef38,_0x3318d8){let _0x520cab=Pe(_0x3c5a08,_0x17ef38);return _0x520cab?!!_0xe48783['syncExecuteCommand'](_0x26d8b3['id'],{'unitId':_0x29d45d,'actions':_0x520cab,'textRanges':[{'startOffset':_0x3318d8,'endOffset':_0x3318d8,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var Fe='@univerjs-pro/docs-code',Ie='0.25.1';const Le={};function Z(_0x5bcc78,_0x160383){return function(_0x21b875,_0x59a683){_0x160383(_0x21b875,_0x59a683,_0x5bcc78);};}function Re(_0x11068f,_0x525450,_0x4e72a9,_0x133cd6){const _0x24ff0e=_0x241f87;var _0x4f00e0=arguments[_0x24ff0e(0x14f)],_0x59d809=_0x4f00e0<0x3?_0x525450:_0x133cd6===null?_0x133cd6=Object['getOwnPropertyDescriptor'](_0x525450,_0x4e72a9):_0x133cd6,_0x42e882;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x24ff0e(0x15c))_0x59d809=Reflect[_0x24ff0e(0x10d)](_0x11068f,_0x525450,_0x4e72a9,_0x133cd6);else{for(var _0x41bbc3=_0x11068f[_0x24ff0e(0x14f)]-0x1;_0x41bbc3>=0x0;_0x41bbc3--)(_0x42e882=_0x11068f[_0x41bbc3])&&(_0x59d809=(_0x4f00e0<0x3?_0x42e882(_0x59d809):_0x4f00e0>0x3?_0x42e882(_0x525450,_0x4e72a9,_0x59d809):_0x42e882(_0x525450,_0x4e72a9))||_0x59d809);}return _0x4f00e0>0x3&&_0x59d809&&Object[_0x24ff0e(0x151)](_0x525450,_0x4e72a9,_0x59d809),_0x59d809;}let Q=class extends _0xbc666b{constructor(_0x290c75,_0x5356db){const _0x59e5a1=_0x241f87;super(),this[_0x59e5a1(0x164)]=_0x290c75,this[_0x59e5a1(0x143)]=_0x5356db,this[_0x59e5a1(0x10c)]();}[_0x241f87(0x10c)](){const _0x24a3d1=_0x241f87;this[_0x24a3d1(0x168)](this[_0x24a3d1(0x164)]['registerPluginResource']({'pluginName':S,'businesses':[_0x10c6fb[_0x24a3d1(0x12e)]],'toJson':_0x1ab12c=>JSON[_0x24a3d1(0x126)](this[_0x24a3d1(0x143)][_0x24a3d1(0x16c)](_0x1ab12c)),'parseJson':_0x2cc20f=>E(JSON[_0x24a3d1(0x107)](_0x2cc20f)),'onLoad':(_0x2222b6,_0x4ef074)=>this['_docsCodeModel'][_0x24a3d1(0x182)](_0x2222b6,_0x4ef074),'onUnLoad':_0x5c18af=>this['_docsCodeModel'][_0x24a3d1(0x15e)](_0x5c18af)}));}};Q=Re([Z(0x0,_0x5984a4),Z(0x1,_0x44b855(W))],Q);let $=class extends _0x114981{constructor(_0x2d06ef=Le,_0x2d08f2,_0x5d54fd,_0x100f22){const _0x3ad667=_0x241f87;super(),this['_config']=_0x2d06ef,this[_0x3ad667(0x16b)]=_0x2d08f2,this[_0x3ad667(0x142)]=_0x5d54fd,this[_0x3ad667(0x15f)]=_0x100f22;let {..._0x11d2f6}=_0x516f4d({},Le,this[_0x3ad667(0x112)]);this['_configService']['setConfig']('docs-code.config',_0x11d2f6);}[_0x241f87(0x15d)](){const _0x153e46=_0x241f87;this[_0x153e46(0x16b)][_0x153e46(0x16e)]([W]),this[_0x153e46(0x16b)][_0x153e46(0x16e)]([Q]),this[_0x153e46(0x16b)][_0x153e46(0x14e)](W),this['_injector'][_0x153e46(0x14e)](Q),[G,Oe,Ae,K,je,ke]['forEach'](_0x136db7=>this['disposeWithMe'](this[_0x153e46(0x142)][_0x153e46(0x10f)](_0x136db7)));}};U($,'pluginName',S),U($,_0x241f87(0x144),Fe),U($,_0x241f87(0x129),Ie),U($,'type',_0x10c6fb[_0x241f87(0x12e)]),$=Re([_0x419fa(_0x4ccab1,_0x23a9de),Z(0x1,_0x44b855(_0xbfc494)),Z(0x2,_0x18fc6a),Z(0x3,_0x596c0d)],$);export{w as DEFAULT_CODE_CONFIG,C as DOCS_CODE_BLOCK_TYPE,S as DOCS_CODE_PLUGIN,je as DocsCodeCancelEmptyParagraphCommand,ke as DocsCodeConsumeBoundaryDeleteCommand,K as DocsCodeExitCommand,Oe as DocsCodeInsertBelowCommand,G as DocsCodeInsertCommand,W as DocsCodeModel,Ae as DocsCodeUpdateCommand,$ as UniverDocsCodePlugin,se as buildCancelEmptyCodeParagraphActions,oe as buildExitCodeActions,re as buildInsertCodeActions,O as buildUpdateCodeActions,le as findCodeRangeAtOffset,ue as isCodeBoundaryDelete,T as normalizeDocsCodeConfig};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5d89db=_0x1854;(function(_0x7b897a,_0x26c335){const _0x55ad36=_0x1854,_0x589cce=_0x7b897a();while(!![]){try{const _0x4292fc=-parseInt(_0x55ad36(0x183))/0x1+parseInt(_0x55ad36(0x184))/0x2*(-parseInt(_0x55ad36(0x1bf))/0x3)+parseInt(_0x55ad36(0x1bc))/0x4+parseInt(_0x55ad36(0x1d2))/0x5+parseInt(_0x55ad36(0x169))/0x6*(-parseInt(_0x55ad36(0x1ce))/0x7)+parseInt(_0x55ad36(0x1b7))/0x8+parseInt(_0x55ad36(0x1ab))/0x9;if(_0x4292fc===_0x26c335)break;else _0x589cce['push'](_0x589cce['shift']());}catch(_0x45cf00){_0x589cce['push'](_0x589cce['shift']());}}}(_0x15c7,0x9133d));import{CommandType as _0x22f4b7,DataStreamTreeTokenType as _0x180f7a,Disposable as _0x4bc668,ICommandService as _0x2afc20,IUniverInstanceService as _0x40925a,JSONX as _0x209e0e,Tools as _0x20dd72,UniverInstanceType as _0x10a714,generateRandomId as _0x29ed6a}from'@univerjs/core';import{FDocument as _0x19b331}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1206d3,RichTextEditingMutation as _0x3d459c}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xf3e6d5}from'rxjs';const p=_0x5d89db(0x1c3),m={'language':_0x5d89db(0x18f),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x1ec33f){return{...m,..._0x1ec33f};}function g(_0x5ea74a){const _0x87bc6c=_0x5d89db;var _0x1ef1b5;let _0x377ca0=(_0x1ef1b5=_0x5ea74a==null?void 0x0:_0x5ea74a['codes'])==null?{}:_0x1ef1b5;return{'codes':Object[_0x87bc6c(0x192)](Object[_0x87bc6c(0x1af)](_0x377ca0)['map'](([_0x177b68,_0x239938])=>[_0x177b68,h(_0x239938)]))};}function _(_0x355e4b,_0x7b7f9d,_0x194441){const _0x557168=_0x5d89db;let _0x59518b=g(_0x355e4b);return _0x59518b['codes'][_0x7b7f9d]=h({..._0x59518b[_0x557168(0x181)][_0x7b7f9d],..._0x194441}),_0x59518b;}function v(_0x392a07,_0x36f641){const _0x3eab39=_0x5d89db;let _0x4f4fb2=g(_0x392a07);return delete _0x4f4fb2[_0x3eab39(0x181)][_0x36f641],_0x4f4fb2;}const y=_0x5d89db(0x172);function b(_0x14296b){const _0x28ff2c=_0x5d89db;var _0x2833cb,_0x347dd8,_0x404e4d;let _0x41ae25=E(_0x14296b[_0x28ff2c(0x16f)]),_0x4b41df=D(_0x41ae25),_0x4c0388=ee(_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x190045=_0x4c0388?(_0x2833cb=_0x4b41df['blockRanges'])==null?void 0x0:_0x2833cb['find'](_0x4842fb=>_0x4842fb[_0x28ff2c(0x18b)]===_0x4c0388[_0x28ff2c(0x1aa)]&&_0x4842fb['endIndex']+0x1===_0x4c0388[_0x28ff2c(0x16e)]):void 0x0,{startOffset:_0x5236ac,endOffset:_0x1c60d9}=_0x190045?_0x4c0388:se(_0x4b41df,_0x14296b['startOffset'],_0x14296b[_0x28ff2c(0x16e)]),_0x436bf5=le(_0x4b41df,_0x5236ac,_0x1c60d9),_0x1dc3db=(_0x347dd8=_0x190045==null?void 0x0:_0x190045['blockId'])==null?_0x14296b[_0x28ff2c(0x1c6)]:_0x347dd8,_0x28952e=_(_0x14296b[_0x28ff2c(0x1ca)],_0x1dc3db,{...m,..._0x14296b[_0x28ff2c(0x171)]});if(_0x190045)return _0x190045[_0x28ff2c(0x1a5)]=p,x(_0x4b41df,_0x5236ac,_0x1c60d9),w(_0x4b41df,_0x5236ac,_0x1c60d9,_0x436bf5),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};if(_0x5236ac===_0x1c60d9){let _0x3f03e0=''+_0x180f7a[_0x28ff2c(0x16a)]+_0x180f7a[_0x28ff2c(0x17c)]+_0x180f7a[_0x28ff2c(0x1ba)];return j(_0x4b41df,_0x5236ac,_0x3f03e0,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x436bf5)}],'blockRanges':[{'blockId':_0x1dc3db,'blockType':p,'startIndex':0x0,'endIndex':_0x3f03e0[_0x28ff2c(0x1df)]-0x1}]}),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}return j(_0x4b41df,_0x1c60d9,_0x180f7a[_0x28ff2c(0x1ba)]),j(_0x4b41df,_0x5236ac,_0x180f7a['BLOCK_START']),w(_0x4b41df,_0x5236ac,_0x1c60d9+0x1,_0x436bf5),_0x4b41df[_0x28ff2c(0x1d1)]=[...(_0x404e4d=_0x4b41df[_0x28ff2c(0x1d1)])==null?[]:_0x404e4d,{'blockId':_0x1dc3db,'blockType':p,'startIndex':_0x5236ac,'endIndex':_0x1c60d9+0x1}][_0x28ff2c(0x1b8)]((_0x349f4f,_0x5a5628)=>_0x349f4f[_0x28ff2c(0x18b)]-_0x5a5628[_0x28ff2c(0x18b)]),{'nextDocumentData':_0x41ae25,'nextMetadata':_0x28952e,'cursorOffset':_0x5236ac+0x1};}function x(_0x3bc76e,_0x438d29,_0x5927f0){const _0x3ae9db=_0x5d89db;var _0x48d2d6;((_0x48d2d6=_0x3bc76e['paragraphs'])==null?[]:_0x48d2d6)[_0x3ae9db(0x17f)](_0x207d22=>_0x207d22[_0x3ae9db(0x18b)]>_0x438d29&&_0x207d22['startIndex']<_0x5927f0)['forEach'](_0x343e72=>{const _0x42712e=_0x3ae9db;var _0xe98acd;let _0x5da6d6={...(_0xe98acd=_0x343e72[_0x42712e(0x19f)])==null?{}:_0xe98acd};delete _0x5da6d6['spaceAbove'],delete _0x5da6d6[_0x42712e(0x1b3)],_0x343e72[_0x42712e(0x19f)]=_0x5da6d6;});}function ee(_0x2428ba,_0x59cb11){const _0x2d6b0a=_0x5d89db;return _0x2428ba==null||_0x59cb11==null||_0x2428ba===_0x59cb11?null:{'startOffset':Math['min'](_0x2428ba,_0x59cb11),'endOffset':Math[_0x2d6b0a(0x1b1)](_0x2428ba,_0x59cb11)};}function te(_0x123960){const _0x3e1eb0=_0x5d89db;return{'nextDocumentData':E(_0x123960['documentData']),'nextMetadata':_(_0x123960[_0x3e1eb0(0x1ca)],_0x123960['blockId'],_0x123960[_0x3e1eb0(0x171)]),'cursorOffset':0x0};}function ne(_0x3f1747){const _0x4b4503=_0x5d89db;var _0x436565,_0x30ddc3;let _0x1ac352=E(_0x3f1747[_0x4b4503(0x16f)]),_0x18951f=D(_0x1ac352),_0x1baad2=S(_0x18951f,_0x3f1747[_0x4b4503(0x17b)]);if(!_0x1baad2)return null;let _0xfbf700=T(_0x18951f,_0x1baad2),_0x474e31=_0xfbf700[_0xfbf700[_0x4b4503(0x1df)]-0x1];if(!_0x474e31||!oe(_0x18951f,_0x1baad2,_0x474e31)||_0x3f1747[_0x4b4503(0x17b)]<_0x474e31[_0x4b4503(0x18b)])return null;let _0x552c99=k(_0x18951f,_0x1baad2,_0x474e31);if(_0x552c99>=_0x1baad2[_0x4b4503(0x1e0)])return null;_0x18951f['dataStream']=[_0x18951f['dataStream']['slice'](0x0,_0x552c99),_0x180f7a['BLOCK_END'],_0x18951f[_0x4b4503(0x167)][_0x4b4503(0x19c)](_0x552c99,_0x1baad2['endIndex']),_0x18951f[_0x4b4503(0x167)]['slice'](_0x1baad2[_0x4b4503(0x1e0)]+0x1)]['join'](''),z(_0x18951f[_0x4b4503(0x1cd)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f[_0x4b4503(0x1d9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),z(_0x18951f['customBlocks'],_0x552c99,_0x1baad2['endIndex'],0x1),pe(_0x18951f[_0x4b4503(0x193)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b9)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x1b6)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),B(_0x18951f[_0x4b4503(0x186)],_0x552c99,_0x1baad2[_0x4b4503(0x1e0)],0x1),(_0x436565=_0x18951f[_0x4b4503(0x1d1)])==null||_0x436565[_0x4b4503(0x1ae)](_0x53ef3f=>{const _0x2e6b54=_0x4b4503;_0x53ef3f===_0x1baad2||_0x53ef3f['blockId']===_0x1baad2[_0x2e6b54(0x1c6)]?_0x53ef3f[_0x2e6b54(0x1e0)]=_0x552c99:_0x53ef3f['startIndex']>=_0x552c99&&_0x53ef3f[_0x2e6b54(0x18b)]<_0x1baad2[_0x2e6b54(0x1e0)]&&(_0x53ef3f['startIndex']+=0x1,_0x53ef3f['endIndex']+=0x1);});let _0x1e928c=T(_0x18951f,{..._0x1baad2,'endIndex':_0x552c99});_0x1e928c[_0x4b4503(0x1ae)]((_0x4b8e10,_0x1fb964)=>{const _0xf8cec9=_0x4b4503;var _0x16ed39;_0x4b8e10[_0xf8cec9(0x19f)]={...(_0x16ed39=_0x4b8e10['paragraphStyle'])==null?{}:_0x16ed39,...C(_0x1fb964===0x0,_0x1fb964===_0x1e928c[_0xf8cec9(0x1df)]-0x1)};});let _0x30044a=(_0x30ddc3=_0x18951f[_0x4b4503(0x1cd)])==null?void 0x0:_0x30ddc3['find'](_0x425d4f=>_0x425d4f[_0x4b4503(0x18b)]===_0x552c99+0x1);return _0x30044a&&(_0x30044a[_0x4b4503(0x19f)]=ae(_0x30044a['paragraphStyle'])),{'nextDocumentData':_0x1ac352,'cursorOffset':_0x552c99+0x1};}function re(_0x2fa921){let _0x1a02c2=E(_0x2fa921['documentData']),_0x59944c=D(_0x1a02c2),_0x427edd=S(_0x59944c,_0x2fa921['cursorOffset']);return _0x427edd&&ie(_0x1a02c2,_0x59944c,_0x427edd,_0x2fa921['cursorOffset'],_0x2fa921['paragraphStartIndex'])||null;}function ie(_0x1055e6,_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff){const _0x51ea55=_0x5d89db;let _0x52e1ef=de(_0x2279d3,_0x2e0fe6,_0x28f00f,_0x2e9eff);if(!_0x52e1ef)return null;let _0x3a65a9=_0x52e1ef['endTokenOffset']-0x1;return M(_0x2279d3,_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)],_0x52e1ef[_0x51ea55(0x1d4)][_0x51ea55(0x18b)]+0x1),{'nextDocumentData':_0x1055e6,'cursorOffset':_0x3a65a9};}function S(_0x488eeb,_0x27eda6){const _0x58c2df=_0x5d89db;var _0x5db9ee;return(_0x5db9ee=_0x488eeb[_0x58c2df(0x1d1)])==null?void 0x0:_0x5db9ee['find'](_0x5246c9=>{const _0x2db0f6=_0x58c2df;let _0x3438e5=A(_0x488eeb,_0x5246c9);return _0x5246c9[_0x2db0f6(0x1a5)]===_0x2db0f6(0x1c3)&&_0x5246c9[_0x2db0f6(0x18b)]<=_0x27eda6&&_0x27eda6<=_0x3438e5+0x2;});}function C(_0x464941,_0xc196a9,_0x32c1c9=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x464941&&_0x32c1c9?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x3ae6ec,_0xbce770,_0x274b60,_0x252afb=!0x1){const _0x2e95dc=_0x5d89db;var _0x20cab8;let _0x32cfbd=((_0x20cab8=_0x3ae6ec[_0x2e95dc(0x1cd)])==null?[]:_0x20cab8)['filter'](_0x309b31=>_0x309b31[_0x2e95dc(0x18b)]>_0xbce770&&_0x309b31[_0x2e95dc(0x18b)]<_0x274b60);_0x32cfbd[_0x2e95dc(0x1ae)]((_0x5047a3,_0x4fc965)=>{const _0x1dfc56=_0x2e95dc;var _0x2598f5;_0x5047a3['paragraphStyle']={...(_0x2598f5=_0x5047a3[_0x1dfc56(0x19f)])==null?{}:_0x2598f5,...C(_0x4fc965===0x0,_0x4fc965===_0x32cfbd[_0x1dfc56(0x1df)]-0x1,_0x252afb)};});}function ae(_0x9c423d){const _0x45f1c7=_0x5d89db;var _0x3698ba,_0x55becb;let _0x1b8e8d={..._0x9c423d==null?{}:_0x9c423d};return delete _0x1b8e8d[_0x45f1c7(0x16c)],delete _0x1b8e8d[_0x45f1c7(0x1ad)],delete _0x1b8e8d[_0x45f1c7(0x1bb)],delete _0x1b8e8d['spaceBelow'],((_0x3698ba=_0x1b8e8d['textStyle'])==null?void 0x0:_0x3698ba['ff'])===y&&((_0x55becb=_0x1b8e8d[_0x45f1c7(0x196)])==null?void 0x0:_0x55becb['fs'])===0xc&&delete _0x1b8e8d[_0x45f1c7(0x196)],_0x1b8e8d;}function T(_0x7384b0,_0x56f1da){const _0xe053af=_0x5d89db;var _0x704972;let _0x9ad8b7=A(_0x7384b0,_0x56f1da);return((_0x704972=_0x7384b0['paragraphs'])==null?[]:_0x704972)[_0xe053af(0x17f)](_0x2cab86=>_0x2cab86[_0xe053af(0x18b)]>_0x56f1da[_0xe053af(0x18b)]&&_0x2cab86[_0xe053af(0x18b)]<_0x9ad8b7);}function oe(_0x263e05,_0x58c442,_0x572df9){const _0x3e95bd=_0x5d89db;let _0x33beef=k(_0x263e05,_0x58c442,_0x572df9),_0x297e16=_0x263e05[_0x3e95bd(0x167)][_0x3e95bd(0x19c)](_0x33beef,_0x572df9[_0x3e95bd(0x18b)]);return Array['from'](_0x297e16)[_0x3e95bd(0x19e)](_0x27c5a4=>_0x27c5a4===_0x180f7a[_0x3e95bd(0x16a)]||_0x27c5a4===_0x180f7a[_0x3e95bd(0x1ba)]);}function E(_0x29845f){const _0x4316e8=_0x5d89db;return _0x20dd72[_0x4316e8(0x1b0)](_0x29845f);}function D(_0x58e932){if(!_0x58e932['body'])throw Error('Document\x20body\x20is\x20required');return _0x58e932['body'];}function se(_0x36f4e8,_0x3bd5d6,_0x25166a){const _0x235829=_0x5d89db;if(_0x3bd5d6==null||_0x25166a==null){let _0x25fce0=ce(_0x36f4e8);return{'startOffset':_0x25fce0,'endOffset':_0x25fce0};}let _0x4ef7a4=Math['min'](_0x3bd5d6,_0x25166a),_0x46f537=Math[_0x235829(0x1b1)](_0x3bd5d6,_0x25166a);return _0x4ef7a4===_0x46f537?{'startOffset':_0x4ef7a4,'endOffset':_0x4ef7a4}:ue(_0x36f4e8,_0x4ef7a4,_0x46f537);}function ce(_0x496e6a){const _0x37ea06=_0x5d89db;return _0x496e6a[_0x37ea06(0x167)]['endsWith'](_0x180f7a[_0x37ea06(0x1d5)])?Math[_0x37ea06(0x1b1)](0x0,_0x496e6a[_0x37ea06(0x167)]['length']-0x1):_0x496e6a[_0x37ea06(0x167)][_0x37ea06(0x1df)];}function le(_0x5726fc,_0xc40240,_0x1eb7dd){const _0x529f64=_0x5d89db;var _0x53d910;let _0x140a9b=Math[_0x529f64(0x180)](_0xc40240,_0x1eb7dd),_0x393ebb=Math['max'](_0xc40240,_0x1eb7dd);return!!((_0x53d910=_0x5726fc['tables'])!=null&&_0x53d910[_0x529f64(0x1ac)](_0x526107=>_0x140a9b>_0x526107[_0x529f64(0x18b)]&&_0x140a9b<_0x526107['endIndex']||_0x393ebb>_0x526107['startIndex']&&_0x393ebb<_0x526107[_0x529f64(0x1e0)]||_0x140a9b<=_0x526107['startIndex']&&_0x393ebb>=_0x526107[_0x529f64(0x1e0)]));}function ue(_0x4626b9,_0x1d6f01,_0x3dc196){const _0x2da2f8=_0x5d89db;var _0x154a6f,_0x2f341b;let _0x4ffbed=[...(_0x154a6f=_0x4626b9[_0x2da2f8(0x1cd)])==null?[]:_0x154a6f][_0x2da2f8(0x1b8)]((_0x3f90de,_0x959ee1)=>_0x3f90de[_0x2da2f8(0x18b)]-_0x959ee1[_0x2da2f8(0x18b)]),_0x12ab00=_0x4ffbed[_0x2da2f8(0x17a)]((_0x2c6f5f,_0x5538a6)=>(_0x5538a6===0x0?0x0:_0x4ffbed[_0x5538a6-0x1][_0x2da2f8(0x18b)]+0x1)<=_0x1d6f01&&_0x1d6f01<=_0x2c6f5f['startIndex']),_0x502b5b=(_0x2f341b=_0x4ffbed[_0x2da2f8(0x17a)](_0x3dd08e=>_0x3dd08e[_0x2da2f8(0x18b)]>=_0x3dc196-0x1))==null?_0x4ffbed[_0x4ffbed['length']-0x1]:_0x2f341b;return{'startOffset':_0x12ab00?O(_0x4ffbed,_0x12ab00):_0x1d6f01,'endOffset':_0x502b5b?_0x502b5b[_0x2da2f8(0x18b)]+0x1:_0x3dc196};}function O(_0x52bb99,_0x257b34){const _0x4ba524=_0x5d89db;let _0x296f7d=_0x52bb99[_0x4ba524(0x18e)](_0x257b34);return _0x296f7d>0x0?_0x52bb99[_0x296f7d-0x1][_0x4ba524(0x18b)]+0x1:0x0;}function k(_0x40997d,_0x368fc9,_0x2004ca){const _0xdc78f1=_0x5d89db;var _0x447af6;return Math[_0xdc78f1(0x1b1)](O((_0x447af6=_0x40997d[_0xdc78f1(0x1cd)])==null?[]:_0x447af6,_0x2004ca),_0x368fc9[_0xdc78f1(0x18b)]+0x1);}function A(_0x31a5f1,_0x3837ff){const _0x4ae2a5=_0x5d89db;return _0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff['endIndex']]===_0x180f7a['BLOCK_END']?_0x3837ff[_0x4ae2a5(0x1e0)]:_0x31a5f1[_0x4ae2a5(0x167)][_0x3837ff[_0x4ae2a5(0x1e0)]+0x1]===_0x180f7a[_0x4ae2a5(0x1ba)]?_0x3837ff[_0x4ae2a5(0x1e0)]+0x1:_0x3837ff[_0x4ae2a5(0x1e0)];}function de(_0x406db7,_0xe8b75b,_0x5d3cc7,_0x1b8be9){const _0x2b6f7c=_0x5d89db;var _0x4603f1,_0x311b17;let _0x33b84d=A(_0x406db7,_0xe8b75b),_0x2f0eb3=((_0x4603f1=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x4603f1)[_0x2b6f7c(0x17a)](_0x213bf2=>_0x213bf2['startIndex']===_0x33b84d+0x1);if(!_0x2f0eb3||_0x1b8be9!=null&&_0x2f0eb3[_0x2b6f7c(0x18b)]!==_0x1b8be9||_0x5d3cc7<_0x33b84d||_0x5d3cc7>_0x2f0eb3[_0x2b6f7c(0x18b)]+0x1||_0x406db7['dataStream'][_0x2f0eb3['startIndex']]!==_0x180f7a['PARAGRAPH'])return null;let _0x5ded07=O((_0x311b17=_0x406db7[_0x2b6f7c(0x1cd)])==null?[]:_0x311b17,_0x2f0eb3),_0x1f6e0b=_0x406db7[_0x2b6f7c(0x167)][_0x2b6f7c(0x19c)](_0x5ded07,_0x2f0eb3[_0x2b6f7c(0x18b)]);return Array[_0x2b6f7c(0x19b)](_0x1f6e0b)[_0x2b6f7c(0x19e)](_0x496223=>_0x496223===_0x180f7a['BLOCK_END'])?{'paragraph':_0x2f0eb3,'endTokenOffset':_0x33b84d}:null;}function j(_0x148b30,_0x272251,_0x3ecb02,_0x3c2dbd={}){const _0x5d6590=_0x5d89db;var _0x59270d,_0x406a2a;if(_0x3ecb02){if(_0x148b30[_0x5d6590(0x167)]=''+_0x148b30['dataStream'][_0x5d6590(0x19c)](0x0,_0x272251)+_0x3ecb02+_0x148b30[_0x5d6590(0x167)][_0x5d6590(0x19c)](_0x272251),N(_0x148b30,_0x272251,_0x3ecb02[_0x5d6590(0x1df)]),(_0x59270d=_0x3c2dbd[_0x5d6590(0x1cd)])!=null&&_0x59270d['length']){var _0x2d1b30;_0x148b30[_0x5d6590(0x1cd)]=[...(_0x2d1b30=_0x148b30[_0x5d6590(0x1cd)])==null?[]:_0x2d1b30,..._0x3c2dbd[_0x5d6590(0x1cd)]['map'](_0x5745c0=>({..._0x5745c0,'startIndex':_0x5745c0[_0x5d6590(0x18b)]+_0x272251}))][_0x5d6590(0x1b8)]((_0x1a2b43,_0x5776be)=>_0x1a2b43[_0x5d6590(0x18b)]-_0x5776be[_0x5d6590(0x18b)]);}if((_0x406a2a=_0x3c2dbd[_0x5d6590(0x1d1)])!=null&&_0x406a2a[_0x5d6590(0x1df)]){var _0x40dd97;_0x148b30['blockRanges']=[...(_0x40dd97=_0x148b30[_0x5d6590(0x1d1)])==null?[]:_0x40dd97,..._0x3c2dbd[_0x5d6590(0x1d1)][_0x5d6590(0x197)](_0x46d1ae=>({..._0x46d1ae,'startIndex':_0x46d1ae['startIndex']+_0x272251,'endIndex':_0x46d1ae['endIndex']+_0x272251}))][_0x5d6590(0x1b8)]((_0xdb31dd,_0x478c6c)=>_0xdb31dd[_0x5d6590(0x18b)]-_0x478c6c[_0x5d6590(0x18b)]);}}}function M(_0x1ec24b,_0x1e247d,_0x248914){const _0x2b455c=_0x5d89db;let _0x12b852=_0x248914-_0x1e247d;_0x1ec24b[_0x2b455c(0x167)]=''+_0x1ec24b[_0x2b455c(0x167)][_0x2b455c(0x19c)](0x0,_0x1e247d)+_0x1ec24b[_0x2b455c(0x167)]['slice'](_0x248914),P(_0x1ec24b,_0x1e247d,_0x12b852);}function N(_0x63c3d1,_0x4a1b30,_0x4527a5){const _0x1731c2=_0x5d89db;_0x63c3d1[_0x1731c2(0x1cd)]=F(_0x63c3d1[_0x1731c2(0x1cd)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1d9)]=F(_0x63c3d1[_0x1731c2(0x1d9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1cf)]=F(_0x63c3d1[_0x1731c2(0x1cf)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x193)]=fe(_0x63c3d1[_0x1731c2(0x193)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b9)]=L(_0x63c3d1[_0x1731c2(0x1b9)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x1b6)]=L(_0x63c3d1[_0x1731c2(0x1b6)],_0x4a1b30,_0x4527a5),_0x63c3d1[_0x1731c2(0x186)]=L(_0x63c3d1[_0x1731c2(0x186)],_0x4a1b30,_0x4527a5),_0x63c3d1['blockRanges']=L(_0x63c3d1[_0x1731c2(0x1d1)],_0x4a1b30,_0x4527a5);}function P(_0x24fcf5,_0x2093a1,_0x34c49c){const _0x461e01=_0x5d89db;var _0x4909de,_0x341484;_0x24fcf5[_0x461e01(0x1cd)]=I(_0x24fcf5['paragraphs'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d9)]=I(_0x24fcf5['sectionBreaks'],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1cf)]=I(_0x24fcf5[_0x461e01(0x1cf)],_0x2093a1,_0x34c49c),_0x24fcf5['textRuns']=(_0x4909de=R((_0x341484=_0x24fcf5[_0x461e01(0x193)])==null?void 0x0:_0x341484[_0x461e01(0x197)](_0x26a58f=>({..._0x26a58f,'startIndex':_0x26a58f['st'],'endIndex':_0x26a58f['ed']})),_0x2093a1,_0x34c49c))==null?void 0x0:_0x4909de[_0x461e01(0x197)](_0x11977a=>{let {startIndex:_0x3fc5d7,endIndex:_0x40b783,..._0x36ed1d}=_0x11977a;return{..._0x36ed1d,'st':_0x3fc5d7,'ed':_0x40b783};}),_0x24fcf5[_0x461e01(0x1b9)]=R(_0x24fcf5[_0x461e01(0x1b9)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1b6)]=R(_0x24fcf5[_0x461e01(0x1b6)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x186)]=R(_0x24fcf5[_0x461e01(0x186)],_0x2093a1,_0x34c49c),_0x24fcf5[_0x461e01(0x1d1)]=R(_0x24fcf5[_0x461e01(0x1d1)],_0x2093a1,_0x34c49c);}function F(_0x228944,_0x4e0696,_0x7d41f5){const _0x4df949=_0x5d89db;return _0x228944==null?void 0x0:_0x228944['map'](_0x2a62a1=>_0x2a62a1['startIndex']>=_0x4e0696?{..._0x2a62a1,'startIndex':_0x2a62a1[_0x4df949(0x18b)]+_0x7d41f5}:_0x2a62a1);}function I(_0x40bfcd,_0x15617a,_0x3d6e6d){const _0x5b4e60=_0x5d89db;let _0xf7074d=_0x15617a+_0x3d6e6d;return _0x40bfcd==null?void 0x0:_0x40bfcd[_0x5b4e60(0x197)](_0x28f8b2=>_0x28f8b2[_0x5b4e60(0x18b)]>=_0x15617a&&_0x28f8b2[_0x5b4e60(0x18b)]<_0xf7074d?null:_0x28f8b2[_0x5b4e60(0x18b)]>=_0xf7074d?{..._0x28f8b2,'startIndex':_0x28f8b2[_0x5b4e60(0x18b)]-_0x3d6e6d}:_0x28f8b2)[_0x5b4e60(0x17f)](_0x3e7c4e=>_0x3e7c4e!=null);}function fe(_0x2aa63b,_0x1cd250,_0x2f4997){const _0x5b0840=_0x5d89db;return _0x2aa63b==null?void 0x0:_0x2aa63b[_0x5b0840(0x197)](_0x5ad183=>_0x5ad183['st']>=_0x1cd250?{..._0x5ad183,'st':_0x5ad183['st']+_0x2f4997,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183['ed']>_0x1cd250?{..._0x5ad183,'ed':_0x5ad183['ed']+_0x2f4997}:_0x5ad183);}function L(_0x2c077c,_0x2fa6f9,_0x516a1e){const _0x1b3190=_0x5d89db;return _0x2c077c==null?void 0x0:_0x2c077c['map'](_0x232066=>_0x232066[_0x1b3190(0x18b)]>=_0x2fa6f9?{..._0x232066,'startIndex':_0x232066['startIndex']+_0x516a1e,'endIndex':_0x232066[_0x1b3190(0x1e0)]+_0x516a1e}:_0x232066[_0x1b3190(0x1e0)]>=_0x2fa6f9?{..._0x232066,'endIndex':_0x232066['endIndex']+_0x516a1e}:_0x232066);}function R(_0x48a13d,_0x3662ff,_0x2cba16){const _0x22ac11=_0x5d89db;let _0x2b90e5=_0x3662ff+_0x2cba16;return _0x48a13d==null?void 0x0:_0x48a13d['map'](_0x264c7b=>_0x264c7b[_0x22ac11(0x18b)]>=_0x3662ff&&_0x264c7b[_0x22ac11(0x1e0)]<_0x2b90e5?null:_0x264c7b[_0x22ac11(0x18b)]>=_0x2b90e5?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']-_0x2cba16,'endIndex':_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16}:_0x264c7b[_0x22ac11(0x1e0)]>=_0x3662ff?{..._0x264c7b,'startIndex':_0x264c7b['startIndex']<_0x3662ff?_0x264c7b[_0x22ac11(0x18b)]:_0x3662ff,'endIndex':Math['max'](_0x3662ff,_0x264c7b[_0x22ac11(0x1e0)]-_0x2cba16)}:_0x264c7b)[_0x22ac11(0x17f)](_0x386b00=>_0x386b00!=null);}function z(_0x551695,_0xb6dc78,_0x58d401,_0x511853){const _0x4e06b7=_0x5d89db;_0x551695==null||_0x551695[_0x4e06b7(0x1ae)](_0x37764=>{const _0x57ba2c=_0x4e06b7;_0x37764['startIndex']>=_0xb6dc78&&_0x37764[_0x57ba2c(0x18b)]<_0x58d401&&(_0x37764['startIndex']+=_0x511853);});}function pe(_0x168cdc,_0x29198a,_0x22ceec,_0x5585f0){_0x168cdc==null||_0x168cdc['forEach'](_0x4520bc=>{_0x4520bc['st']>=_0x29198a&&_0x4520bc['st']<_0x22ceec?(_0x4520bc['st']+=_0x5585f0,_0x4520bc['ed']+=_0x5585f0):_0x4520bc['ed']>_0x29198a&&_0x4520bc['ed']<_0x22ceec&&(_0x4520bc['ed']+=_0x5585f0);});}function B(_0x523c77,_0x318ef9,_0x4657bb,_0x4f32a3){const _0x59986d=_0x5d89db;_0x523c77==null||_0x523c77[_0x59986d(0x1ae)](_0x13d3e6=>{const _0x3c8de1=_0x59986d;_0x13d3e6[_0x3c8de1(0x18b)]>=_0x318ef9&&_0x13d3e6[_0x3c8de1(0x18b)]<_0x4657bb?(_0x13d3e6[_0x3c8de1(0x18b)]+=_0x4f32a3,_0x13d3e6['endIndex']+=_0x4f32a3):_0x13d3e6[_0x3c8de1(0x1e0)]>_0x318ef9&&_0x13d3e6[_0x3c8de1(0x1e0)]<_0x4657bb&&(_0x13d3e6[_0x3c8de1(0x1e0)]+=_0x4f32a3);});}function _0x15c7(){const _0x46d774=['sort','tables','BLOCK_END','spaceAbove','104408iUUFUv','complete','docs-code.command.insert','1750191DsIkZw','_runtime','compose','getUnitId','code','next','reduce','blockId','syncExecuteCommand','dispose','docs-code.command.exit','metadata','UNIVER_DOC','removeUnit','paragraphs','63aJTywD','customBlocks','join','blockRanges','2319365sUToex','string','paragraph','SECTION_BREAK','COMMAND','cancelEmptyParagraph','text','sectionBreaks','getId','getTextRanges','replace','getDocumentData','_getBlockRange','length','endIndex','dataStream','commandService','545112IMeicc','BLOCK_START','getCodeConfig','indentEnd','delete','endOffset','documentData','getConfig','config','monospace','getSnapshot','now','docs-code.command.update','getText','getRange','body','function','find','cursorOffset','PARAGRAPH','nextMetadata','clear','filter','min','codes','object','337124KZSZGK','4eFxccj','includes','customDecorations','get','getCurrentUnitOfType','toPrimitive','call','startIndex','_resources','serialize','indexOf','javascript','docs-code.command.cancel-empty-paragraph','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','fromEntries','textRuns','previousDocumentData','paragraphStartIndex','textStyle','map','prototype','exit','model','from','slice','_change$','every','paragraphStyle','_commandService','assign','unitId','_injector','nextDocumentData','blockType','describe','set','setCodeConfig','iterator','startOffset','11645280uUTYsW','some','indentStart','forEach','entries','deepClone','max','getCodes','spaceBelow','updateConfig','deserialize','customRanges','9059520AltEjz'];_0x15c7=function(){return _0x46d774;};return _0x15c7();}function V(_0x5cae6c){'@babel/helpers - typeof';const _0x2d8f5b=_0x5d89db;return V=typeof Symbol==_0x2d8f5b(0x179)&&typeof Symbol[_0x2d8f5b(0x1a9)]=='symbol'?function(_0x338cab){return typeof _0x338cab;}:function(_0x11fad8){const _0x374883=_0x2d8f5b;return _0x11fad8&&typeof Symbol==_0x374883(0x179)&&_0x11fad8['constructor']===Symbol&&_0x11fad8!==Symbol[_0x374883(0x198)]?'symbol':typeof _0x11fad8;},V(_0x5cae6c);}function me(_0xfde3a9,_0x4297e4){const _0x46d0ee=_0x5d89db;if(V(_0xfde3a9)!=_0x46d0ee(0x182)||!_0xfde3a9)return _0xfde3a9;var _0x4bbc02=_0xfde3a9[Symbol[_0x46d0ee(0x189)]];if(_0x4bbc02!==void 0x0){var _0x525cf0=_0x4bbc02[_0x46d0ee(0x18a)](_0xfde3a9,_0x4297e4||'default');if(V(_0x525cf0)!=_0x46d0ee(0x182))return _0x525cf0;throw TypeError(_0x46d0ee(0x191));}return(_0x4297e4===_0x46d0ee(0x1d3)?String:Number)(_0xfde3a9);}function he(_0x2064ea){const _0x4b8115=_0x5d89db;var _0x1ed15f=me(_0x2064ea,_0x4b8115(0x1d3));return V(_0x1ed15f)=='symbol'?_0x1ed15f:_0x1ed15f+'';}function H(_0xe6d4b6,_0x1f3318,_0x35e827){return(_0x1f3318=he(_0x1f3318))in _0xe6d4b6?Object['defineProperty'](_0xe6d4b6,_0x1f3318,{'value':_0x35e827,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe6d4b6[_0x1f3318]=_0x35e827,_0xe6d4b6;}var U=class extends _0x4bc668{constructor(..._0x8836a6){const _0x578043=_0x5d89db;super(..._0x8836a6),H(this,_0x578043(0x18c),new Map()),H(this,_0x578043(0x19d),new _0xf3e6d5()),H(this,'change$',this[_0x578043(0x19d)]['asObservable']());}['getCodeConfig'](_0xa00113,_0x473da4){const _0x2e8ac5=_0x5d89db;return g(this['_resources'][_0x2e8ac5(0x187)](_0xa00113))['codes'][_0x473da4];}[_0x5d89db(0x1a8)](_0x302cc3,_0x735714,_0x191b94){const _0x517a82=_0x5d89db;this['_setResource'](_0x302cc3,_0x735714,_(this['_resources'][_0x517a82(0x187)](_0x302cc3),_0x735714,_0x191b94));}['removeCode'](_0x357037,_0x288e2a){const _0x195484=_0x5d89db;this['_setResource'](_0x357037,_0x288e2a,v(this[_0x195484(0x18c)][_0x195484(0x187)](_0x357037),_0x288e2a));}['serialize'](_0x55f8a2){const _0x4538d4=_0x5d89db;return g(this[_0x4538d4(0x18c)][_0x4538d4(0x187)](_0x55f8a2));}[_0x5d89db(0x1b5)](_0x6848d0,_0x4d0cc7){const _0x486d05=_0x5d89db;this[_0x486d05(0x18c)][_0x486d05(0x1a7)](_0x6848d0,g(_0x4d0cc7)),this[_0x486d05(0x19d)][_0x486d05(0x1c4)]({'unitId':_0x6848d0});}[_0x5d89db(0x1cc)](_0x2664f3){const _0x265885=_0x5d89db;this[_0x265885(0x18c)][_0x265885(0x16d)](_0x2664f3),this[_0x265885(0x19d)][_0x265885(0x1c4)]({'unitId':_0x2664f3});}[_0x5d89db(0x1c8)](){const _0x36d107=_0x5d89db;super[_0x36d107(0x1c8)](),this[_0x36d107(0x18c)][_0x36d107(0x17e)](),this['_change$'][_0x36d107(0x1bd)]();}['_setResource'](_0x50b617,_0x5c9e94,_0xfae61e){const _0x569e5b=_0x5d89db;this[_0x569e5b(0x18c)][_0x569e5b(0x1a7)](_0x50b617,_0xfae61e),this[_0x569e5b(0x19d)][_0x569e5b(0x1c4)]({'unitId':_0x50b617,'blockId':_0x5c9e94});}};_0x22f4b7[_0x5d89db(0x1d6)],_0x22f4b7[_0x5d89db(0x1d6)];const ge={'id':_0x5d89db(0x1be),'type':_0x22f4b7['COMMAND'],'handler':(_0x54956a,_0x1c7865)=>{const _0x716ed4=_0x5d89db;var _0x13aa30,_0xd95464,_0xc946fa;let _0x2595ae=K(_0x54956a,_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1a2)]);if(!_0x2595ae)return!0x1;let _0x3b1199=q(_0x54956a),_0x4314e0=b({'blockId':(_0x13aa30=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1c6)])==null?_0x29ed6a(0x6):_0x13aa30,'config':_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x171)],'documentData':_0x2595ae['previousDocumentData'],'endOffset':(_0xd95464=_0x1c7865==null?void 0x0:_0x1c7865['endOffset'])==null?_0x3b1199==null?void 0x0:_0x3b1199[_0x716ed4(0x16e)]:_0xd95464,'metadata':_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x18d)](_0x2595ae[_0x716ed4(0x1a2)]),'startOffset':(_0xc946fa=_0x1c7865==null?void 0x0:_0x1c7865[_0x716ed4(0x1aa)])==null?_0x3b1199==null?void 0x0:_0x3b1199['startOffset']:_0xc946fa}),_0x351938=Y(_0x2595ae[_0x716ed4(0x168)],_0x2595ae[_0x716ed4(0x1a2)],_0x2595ae[_0x716ed4(0x194)],_0x4314e0[_0x716ed4(0x1a4)],_0x4314e0[_0x716ed4(0x17b)]);return _0x351938&&_0x4314e0['nextMetadata']&&_0x2595ae[_0x716ed4(0x19a)][_0x716ed4(0x1b5)](_0x2595ae[_0x716ed4(0x1a2)],_0x4314e0[_0x716ed4(0x17d)]),_0x351938;}},_e={'id':_0x5d89db(0x175),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x37acd8,_0x566a9f)=>{const _0x19da76=_0x5d89db;if(!_0x566a9f)return!0x1;let _0x5191cc=K(_0x37acd8,_0x566a9f[_0x19da76(0x1a2)]);if(!_0x5191cc)return!0x1;let _0x4dda3f=te({'blockId':_0x566a9f['blockId'],'config':_0x566a9f[_0x19da76(0x171)],'documentData':_0x5191cc[_0x19da76(0x194)],'metadata':_0x5191cc['model'][_0x19da76(0x18d)](_0x5191cc['unitId'])});return _0x4dda3f[_0x19da76(0x17d)]&&_0x5191cc[_0x19da76(0x19a)]['deserialize'](_0x5191cc[_0x19da76(0x1a2)],_0x4dda3f[_0x19da76(0x17d)]),!0x0;}},W={'id':_0x5d89db(0x1c9),'type':_0x22f4b7[_0x5d89db(0x1d6)],'handler':(_0x1e4598,_0x2a2215)=>{const _0x15e536=_0x5d89db;var _0x40f0ba,_0x43afb6;let _0x1483b5=K(_0x1e4598,_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x1a2)]);if(!_0x1483b5)return!0x1;let _0x27af81=(_0x40f0ba=_0x2a2215==null?void 0x0:_0x2a2215[_0x15e536(0x17b)])==null?(_0x43afb6=q(_0x1e4598))==null?void 0x0:_0x43afb6[_0x15e536(0x1aa)]:_0x40f0ba;if(_0x27af81==null)return!0x1;let _0x10f223=ne({'cursorOffset':_0x27af81,'documentData':_0x1483b5[_0x15e536(0x194)]});return _0x10f223?Y(_0x1483b5[_0x15e536(0x168)],_0x1483b5[_0x15e536(0x1a2)],_0x1483b5[_0x15e536(0x194)],_0x10f223['nextDocumentData'],_0x10f223[_0x15e536(0x17b)]):!0x1;}},G={'id':_0x5d89db(0x190),'type':_0x22f4b7['COMMAND'],'handler':(_0x230a6d,_0x562f3e)=>{const _0x159815=_0x5d89db;var _0x47da98,_0x478e31;let _0x279caf=K(_0x230a6d,_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x1a2)]);if(!_0x279caf)return!0x1;let _0x179489=(_0x47da98=_0x562f3e==null?void 0x0:_0x562f3e['cursorOffset'])==null?(_0x478e31=q(_0x230a6d))==null?void 0x0:_0x478e31[_0x159815(0x1aa)]:_0x47da98;if(_0x179489==null)return!0x1;let _0x110a69=re({'cursorOffset':_0x179489,'documentData':_0x279caf['previousDocumentData'],'paragraphStartIndex':_0x562f3e==null?void 0x0:_0x562f3e[_0x159815(0x195)]});return _0x110a69?Y(_0x279caf['commandService'],_0x279caf[_0x159815(0x1a2)],_0x279caf[_0x159815(0x194)],_0x110a69['nextDocumentData'],_0x110a69['cursorOffset']):!0x1;}};function _0x1854(_0x239d0b,_0x31542a){_0x239d0b=_0x239d0b-0x167;const _0x15c7e8=_0x15c7();let _0x185481=_0x15c7e8[_0x239d0b];return _0x185481;}function K(_0x5e171b,_0x48bf39){const _0x6f7490=_0x5d89db;let _0x344c59=_0x5e171b[_0x6f7490(0x187)](_0x40925a),_0x553d7d=_0x48bf39?_0x344c59['getUniverDocInstance'](_0x48bf39):_0x344c59[_0x6f7490(0x188)](_0x10a714[_0x6f7490(0x1cb)]);return _0x553d7d?{'commandService':_0x5e171b[_0x6f7490(0x187)](_0x2afc20),'model':_0x5e171b[_0x6f7490(0x187)](U),'previousDocumentData':_0x553d7d['getSnapshot'](),'unitId':_0x553d7d[_0x6f7490(0x1c2)]()}:null;}function q(_0x497fd5){const _0x4bbd74=_0x5d89db;var _0x2d5faa;return(_0x2d5faa=_0x497fd5[_0x4bbd74(0x187)](_0x1206d3)[_0x4bbd74(0x1db)]())==null?void 0x0:_0x2d5faa[0x0];}function ve(_0x564d54,_0x1a1099){const _0x3556b8=_0x5d89db;var _0x1f05e1,_0x4fc269,_0x576ca6,_0x374eb4,_0x278086,_0x26e873,_0x22986d,_0x41e761,_0x4fc049,_0x433796,_0x54280b,_0x2acb9a,_0x1fad92,_0x34c240,_0x2ac03e,_0x4a8a75,_0x414c94,_0x5735d8;let _0x3b36d5=_0x209e0e['getInstance']();return[J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x167)],(_0x1f05e1=_0x564d54['body'])==null?void 0x0:_0x1f05e1[_0x3556b8(0x167)],(_0x4fc269=_0x1a1099['body'])==null?void 0x0:_0x4fc269['dataStream']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cd)],(_0x576ca6=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x576ca6['paragraphs'],(_0x374eb4=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x374eb4['paragraphs']),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d9)],(_0x278086=_0x564d54['body'])==null?void 0x0:_0x278086['sectionBreaks'],(_0x26e873=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x26e873[_0x3556b8(0x1d9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x193)],(_0x22986d=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x22986d[_0x3556b8(0x193)],(_0x41e761=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x41e761[_0x3556b8(0x193)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1cf)],(_0x4fc049=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x4fc049[_0x3556b8(0x1cf)],(_0x433796=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x433796[_0x3556b8(0x1cf)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b6)],(_0x54280b=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x54280b[_0x3556b8(0x1b6)],(_0x2acb9a=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x2acb9a[_0x3556b8(0x1b6)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x186)],(_0x1fad92=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x1fad92[_0x3556b8(0x186)],(_0x34c240=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x34c240[_0x3556b8(0x186)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1b9)],(_0x2ac03e=_0x564d54[_0x3556b8(0x178)])==null?void 0x0:_0x2ac03e[_0x3556b8(0x1b9)],(_0x4a8a75=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x4a8a75[_0x3556b8(0x1b9)]),J(_0x3b36d5,[_0x3556b8(0x178),_0x3556b8(0x1d1)],(_0x414c94=_0x564d54['body'])==null?void 0x0:_0x414c94[_0x3556b8(0x1d1)],(_0x5735d8=_0x1a1099[_0x3556b8(0x178)])==null?void 0x0:_0x5735d8['blockRanges'])][_0x3556b8(0x17f)](Boolean)[_0x3556b8(0x1c5)]((_0x3ae940,_0x5e2108)=>_0x209e0e[_0x3556b8(0x1c1)](_0x3ae940,_0x5e2108),null);}function J(_0x535166,_0x2d2f74,_0x1b8e83,_0xbd79f2){return _0x20dd72['diffValue'](_0x1b8e83,_0xbd79f2)?null:_0x535166['replaceOp'](_0x2d2f74,_0x1b8e83,_0xbd79f2);}function Y(_0xe4d6f,_0x266f72,_0x24ca3d,_0xf4ff8e,_0x225eca){const _0x131f7a=_0x5d89db;let _0x299448=ve(_0x24ca3d,_0xf4ff8e);return _0x299448?!!_0xe4d6f[_0x131f7a(0x1c7)](_0x3d459c['id'],{'unitId':_0x266f72,'actions':_0x299448,'textRanges':[{'startOffset':_0x225eca,'endOffset':_0x225eca,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0xab58e4){const _0xd97675=_0x5d89db;this[_0xd97675(0x1c0)]=_0xab58e4;}[_0x5d89db(0x1da)](){const _0x20fb2f=_0x5d89db;return this[_0x20fb2f(0x1c0)]['blockId'];}[_0x5d89db(0x177)](){const _0x201cde=_0x5d89db;let _0xc4a2e2=this['_getBlockRange']();return _0xc4a2e2?{'blockId':_0xc4a2e2['blockId'],'endIndex':_0xc4a2e2['endIndex'],'startIndex':_0xc4a2e2[_0x201cde(0x18b)]}:null;}[_0x5d89db(0x176)](){const _0x44497f=_0x5d89db;var _0x256330;let _0x42615c=this['_getBlockRange'](),_0x23ef27=(_0x256330=this[_0x44497f(0x1c0)][_0x44497f(0x1dd)]()['body'])==null?void 0x0:_0x256330[_0x44497f(0x167)];return!_0x42615c||!_0x23ef27?'':ye(_0x23ef27['slice'](_0x42615c[_0x44497f(0x18b)]+0x1,_0x42615c[_0x44497f(0x1e0)]));}[_0x5d89db(0x1a6)](){const _0x2367bd=_0x5d89db;let _0x5ee491=this[_0x2367bd(0x177)]();return _0x5ee491?{..._0x5ee491,'config':this[_0x2367bd(0x170)](),'text':this['getText'](),'type':_0x2367bd(0x1c3)}:null;}['getConfig'](){const _0x3420fa=_0x5d89db;var _0x59c01a;return h((_0x59c01a=this[_0x3420fa(0x1c0)][_0x3420fa(0x19a)])==null?void 0x0:_0x59c01a[_0x3420fa(0x16b)](this[_0x3420fa(0x1c0)][_0x3420fa(0x1a2)],this[_0x3420fa(0x1c0)]['blockId']));}[_0x5d89db(0x1b4)](_0x533d12){const _0x387749=_0x5d89db;var _0x449260;return!!((_0x449260=this[_0x387749(0x1c0)]['commandService'])!=null&&_0x449260[_0x387749(0x1c7)](_e['id'],{'blockId':this[_0x387749(0x1c0)][_0x387749(0x1c6)],'config':_0x533d12[_0x387749(0x171)],'unitId':this[_0x387749(0x1c0)][_0x387749(0x1a2)]}));}[_0x5d89db(0x199)](_0x4c83df){const _0x56090c=_0x5d89db;var _0x50eacb;return!!((_0x50eacb=this[_0x56090c(0x1c0)]['commandService'])!=null&&_0x50eacb[_0x56090c(0x1c7)](W['id'],{'cursorOffset':_0x4c83df,'unitId':this[_0x56090c(0x1c0)]['unitId']}));}[_0x5d89db(0x1d7)](_0x93e404={}){const _0x903ed7=_0x5d89db;var _0xd9888c;return!!((_0xd9888c=this[_0x903ed7(0x1c0)][_0x903ed7(0x168)])!=null&&_0xd9888c[_0x903ed7(0x1c7)](G['id'],{..._0x93e404,'unitId':this[_0x903ed7(0x1c0)][_0x903ed7(0x1a2)]}));}[_0x5d89db(0x1de)](){const _0x1530bf=_0x5d89db;var _0x40092b;return(_0x40092b=this['_runtime'][_0x1530bf(0x1dd)]()[_0x1530bf(0x178)])==null||(_0x40092b=_0x40092b[_0x1530bf(0x1d1)])==null?void 0x0:_0x40092b[_0x1530bf(0x17a)](_0x56f897=>_0x56f897[_0x1530bf(0x1c6)]===this['_runtime'][_0x1530bf(0x1c6)]&&_0x56f897[_0x1530bf(0x1a5)]===_0x1530bf(0x1c3));}};function ye(_0x1af559){const _0x2af04f=_0x5d89db;return Array[_0x2af04f(0x19b)](_0x1af559)[_0x2af04f(0x197)](_0x413d55=>_0x413d55===_0x180f7a[_0x2af04f(0x17c)]?'\x0a':_0x413d55)[_0x2af04f(0x17f)](_0x900462=>_0x900462!==_0x180f7a[_0x2af04f(0x16a)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1ba)]&&_0x900462!==_0x180f7a[_0x2af04f(0x1d5)])[_0x2af04f(0x1d0)]('')[_0x2af04f(0x1dc)](/\n$/,'');}Object[_0x5d89db(0x1a1)](_0x19b331[_0x5d89db(0x198)],{'getCodes'(){const _0x548804=_0x5d89db;var _0x23d4e8,_0x14eb0e;return(_0x23d4e8=(_0x14eb0e=this[_0x548804(0x173)]()[_0x548804(0x178)])==null||(_0x14eb0e=_0x14eb0e['blockRanges'])==null?void 0x0:_0x14eb0e[_0x548804(0x17f)](_0x317a3f=>_0x317a3f['blockType']===_0x548804(0x1c3))[_0x548804(0x197)](_0x1b9a7a=>Z(this,_0x1b9a7a[_0x548804(0x1c6)])))==null?[]:_0x23d4e8;},'getCode'(_0x8216e1){const _0x465615=_0x5d89db;var _0x18a6ee;return!((_0x18a6ee=this[_0x465615(0x173)]()[_0x465615(0x178)])==null||(_0x18a6ee=_0x18a6ee[_0x465615(0x1d1)])==null)&&_0x18a6ee[_0x465615(0x1ac)](_0x41e95c=>_0x41e95c[_0x465615(0x1c6)]===_0x8216e1&&_0x41e95c[_0x465615(0x1a5)]==='code')?Z(this,_0x8216e1):null;},'getCodeAt'(_0x415225){const _0x1efb84=_0x5d89db;var _0x37e4b6;let _0x189e5c=(_0x37e4b6=this['getSnapshot']()['body'])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x1d1)])==null||(_0x37e4b6=_0x37e4b6[_0x1efb84(0x17a)](_0x59572c=>_0x59572c['blockType']===_0x1efb84(0x1c3)&&_0x59572c[_0x1efb84(0x18b)]<=_0x415225&&_0x415225<=_0x59572c[_0x1efb84(0x1e0)]))==null?void 0x0:_0x37e4b6[_0x1efb84(0x1c6)];return _0x189e5c?Z(this,_0x189e5c):null;},'findCodeByText'(_0x3c9ba5){var _0x362aed;return(_0x362aed=this['findCodes'](_0x3c9ba5)[0x0])==null?null:_0x362aed;},'findCodes'(_0x1e62c5){const _0x475334=_0x5d89db;let _0x4700a2=typeof _0x1e62c5=='string'?{'text':_0x1e62c5}:_0x1e62c5;return this[_0x475334(0x1b2)]()['filter'](_0x1d6ec5=>!(_0x4700a2[_0x475334(0x1c6)]&&_0x1d6ec5[_0x475334(0x1da)]()!==_0x4700a2[_0x475334(0x1c6)]||_0x4700a2[_0x475334(0x1d8)]&&!_0x1d6ec5['getText']()[_0x475334(0x185)](_0x4700a2[_0x475334(0x1d8)])));},'insertCode'(_0x43ab34={}){const _0x2e95f8=_0x5d89db;var _0x18b226,_0x2b1335;let _0x83a209=(_0x18b226=_0x43ab34[_0x2e95f8(0x1c6)])==null?'docs-code-'+Date[_0x2e95f8(0x174)]():_0x18b226;return(_0x2b1335=Q(this))!=null&&_0x2b1335[_0x2e95f8(0x1c7)](ge['id'],{..._0x43ab34,'blockId':_0x83a209,'unitId':this['getId']()})?Z(this,_0x83a209):null;},'exitCode'(_0x4b4116){const _0x4d0cd3=_0x5d89db;var _0x303e91;return!!((_0x303e91=Q(this))!=null&&_0x303e91[_0x4d0cd3(0x1c7)](W['id'],{'cursorOffset':_0x4b4116,'unitId':this[_0x4d0cd3(0x1da)]()}));},'cancelEmptyCodeParagraph'(_0x2c1886={}){const _0x5c4f8d=_0x5d89db;var _0x37bbf1;return!!((_0x37bbf1=Q(this))!=null&&_0x37bbf1[_0x5c4f8d(0x1c7)](G['id'],{..._0x2c1886,'unitId':this[_0x5c4f8d(0x1da)]()}));}});function Z(_0x2e7898,_0x509d96){const _0x583551=_0x5d89db;let _0x929d36=$(_0x2e7898);return new X({'blockId':_0x509d96,'commandService':Q(_0x2e7898),'getDocumentData':()=>_0x2e7898[_0x583551(0x173)](),'model':_0x929d36==null?void 0x0:_0x929d36[_0x583551(0x187)](U),'unitId':_0x2e7898['getId']()});}function Q(_0x4a253f){const _0x4d9100=_0x5d89db;var _0x12b10d,_0x566e71;return(_0x12b10d=_0x4a253f[_0x4d9100(0x1a0)])==null?(_0x566e71=$(_0x4a253f))==null?void 0x0:_0x566e71[_0x4d9100(0x187)](_0x2afc20):_0x12b10d;}function $(_0x320f85){const _0x2292aa=_0x5d89db;return _0x320f85[_0x2292aa(0x1a3)];}export{X as FDocsCode};
|
|
1
|
+
const _0x44d4ec=_0x4526;(function(_0x5ddbaa,_0x471fbc){const _0x520e50=_0x4526,_0x3535fd=_0x5ddbaa();while(!![]){try{const _0x3280d0=parseInt(_0x520e50(0x1e7))/0x1*(-parseInt(_0x520e50(0x202))/0x2)+parseInt(_0x520e50(0x1f3))/0x3*(-parseInt(_0x520e50(0x24a))/0x4)+parseInt(_0x520e50(0x1f2))/0x5*(parseInt(_0x520e50(0x1d7))/0x6)+parseInt(_0x520e50(0x21c))/0x7*(-parseInt(_0x520e50(0x23d))/0x8)+-parseInt(_0x520e50(0x1f7))/0x9*(parseInt(_0x520e50(0x207))/0xa)+-parseInt(_0x520e50(0x24f))/0xb+-parseInt(_0x520e50(0x22f))/0xc*(-parseInt(_0x520e50(0x1e8))/0xd);if(_0x3280d0===_0x471fbc)break;else _0x3535fd['push'](_0x3535fd['shift']());}catch(_0x50b531){_0x3535fd['push'](_0x3535fd['shift']());}}}(_0x576f,0x59d3f));import{CommandType as _0x3de41e,DataStreamTreeTokenType as _0x5b62d4,Disposable as _0x32c700,ICommandService as _0x4ff42b,IUniverInstanceService as _0x1c241d,JSONX as _0x3c253d,Tools as _0x402759,UniverInstanceType as _0x28af17,generateRandomId as _0x64057c}from'@univerjs/core';import{FDocument as _0x16ad3f}from'@univerjs/docs-ui/facade';import{DocSelectionManagerService as _0x1146da,RichTextEditingMutation as _0x5e2409}from'@univerjs/docs';import'@univerjs/docs-ui';import{Subject as _0xe083b}from'rxjs';const p=_0x44d4ec(0x229),m={'language':_0x44d4ec(0x1e9),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function h(_0x3815cf){return{...m,..._0x3815cf};}function g(_0x4de0f6){const _0x40beb0=_0x44d4ec;var _0x100139;let _0x510b9=(_0x100139=_0x4de0f6==null?void 0x0:_0x4de0f6['codes'])==null?{}:_0x100139;return{'codes':Object[_0x40beb0(0x245)](Object[_0x40beb0(0x24e)](_0x510b9)[_0x40beb0(0x240)](([_0x24d250,_0x332b38])=>[_0x24d250,h(_0x332b38)]))};}function _(_0x182950,_0x377c79,_0x5971c9){const _0x221d8d=_0x44d4ec;let _0xefd776=g(_0x182950);return _0xefd776[_0x221d8d(0x238)][_0x377c79]=h({..._0xefd776['codes'][_0x377c79],..._0x5971c9}),_0xefd776;}function v(_0x1718b7,_0x42cd8d){const _0x2cf83c=_0x44d4ec;let _0x5acbcf=g(_0x1718b7);return delete _0x5acbcf[_0x2cf83c(0x238)][_0x42cd8d],_0x5acbcf;}const y='monospace';function b(_0x2605d7){const _0x2b245b=_0x44d4ec;var _0x520572,_0x58dc13,_0x2934d5;let _0x585360=E(_0x2605d7[_0x2b245b(0x227)]),_0x10c6b8=D(_0x585360),_0x5c595d=ee(_0x2605d7['startOffset'],_0x2605d7[_0x2b245b(0x232)]),_0x16cf13=_0x5c595d?(_0x520572=_0x10c6b8[_0x2b245b(0x246)])==null?void 0x0:_0x520572[_0x2b245b(0x1ed)](_0x55c80a=>_0x55c80a[_0x2b245b(0x228)]===_0x5c595d[_0x2b245b(0x1e0)]&&_0x55c80a['endIndex']+0x1===_0x5c595d[_0x2b245b(0x232)]):void 0x0,{startOffset:_0x51eb8e,endOffset:_0x2e223a}=_0x16cf13?_0x5c595d:se(_0x10c6b8,_0x2605d7['startOffset'],_0x2605d7[_0x2b245b(0x232)]),_0x2ec770=le(_0x10c6b8,_0x51eb8e,_0x2e223a),_0x15fc7a=(_0x58dc13=_0x16cf13==null?void 0x0:_0x16cf13[_0x2b245b(0x1fb)])==null?_0x2605d7[_0x2b245b(0x1fb)]:_0x58dc13,_0x5e4bae=_(_0x2605d7[_0x2b245b(0x1e1)],_0x15fc7a,{...m,..._0x2605d7[_0x2b245b(0x1d8)]});if(_0x16cf13)return _0x16cf13[_0x2b245b(0x221)]=p,x(_0x10c6b8,_0x51eb8e,_0x2e223a),w(_0x10c6b8,_0x51eb8e,_0x2e223a,_0x2ec770),{'nextDocumentData':_0x585360,'nextMetadata':_0x5e4bae,'cursorOffset':_0x51eb8e+0x1};if(_0x51eb8e===_0x2e223a){let _0x425cb6=''+_0x5b62d4['BLOCK_START']+_0x5b62d4[_0x2b245b(0x1f6)]+_0x5b62d4[_0x2b245b(0x251)];return j(_0x10c6b8,_0x51eb8e,_0x425cb6,{'paragraphs':[{'startIndex':0x1,'paragraphStyle':C(!0x0,!0x0,_0x2ec770)}],'blockRanges':[{'blockId':_0x15fc7a,'blockType':p,'startIndex':0x0,'endIndex':_0x425cb6[_0x2b245b(0x1dd)]-0x1}]}),{'nextDocumentData':_0x585360,'nextMetadata':_0x5e4bae,'cursorOffset':_0x51eb8e+0x1};}return j(_0x10c6b8,_0x2e223a,_0x5b62d4['BLOCK_END']),j(_0x10c6b8,_0x51eb8e,_0x5b62d4[_0x2b245b(0x208)]),w(_0x10c6b8,_0x51eb8e,_0x2e223a+0x1,_0x2ec770),_0x10c6b8[_0x2b245b(0x246)]=[...(_0x2934d5=_0x10c6b8[_0x2b245b(0x246)])==null?[]:_0x2934d5,{'blockId':_0x15fc7a,'blockType':p,'startIndex':_0x51eb8e,'endIndex':_0x2e223a+0x1}][_0x2b245b(0x1da)]((_0x2ddfde,_0x38f516)=>_0x2ddfde['startIndex']-_0x38f516[_0x2b245b(0x228)]),{'nextDocumentData':_0x585360,'nextMetadata':_0x5e4bae,'cursorOffset':_0x51eb8e+0x1};}function x(_0x86eef9,_0x335c2a,_0x4df438){const _0x2d7652=_0x44d4ec;var _0x2ed079;((_0x2ed079=_0x86eef9[_0x2d7652(0x20b)])==null?[]:_0x2ed079)[_0x2d7652(0x224)](_0x5b1d63=>_0x5b1d63[_0x2d7652(0x228)]>_0x335c2a&&_0x5b1d63[_0x2d7652(0x228)]<_0x4df438)[_0x2d7652(0x1dc)](_0x4eba04=>{const _0x29fd77=_0x2d7652;var _0x4c5f68;let _0x43a2e0={...(_0x4c5f68=_0x4eba04[_0x29fd77(0x241)])==null?{}:_0x4c5f68};delete _0x43a2e0['spaceAbove'],delete _0x43a2e0['spaceBelow'],_0x4eba04[_0x29fd77(0x241)]=_0x43a2e0;});}function ee(_0x4dc765,_0x1197d3){const _0x1e706f=_0x44d4ec;return _0x4dc765==null||_0x1197d3==null||_0x4dc765===_0x1197d3?null:{'startOffset':Math[_0x1e706f(0x206)](_0x4dc765,_0x1197d3),'endOffset':Math['max'](_0x4dc765,_0x1197d3)};}function te(_0x3d143f){const _0x2f9e77=_0x44d4ec;return{'nextDocumentData':E(_0x3d143f[_0x2f9e77(0x227)]),'nextMetadata':_(_0x3d143f[_0x2f9e77(0x1e1)],_0x3d143f[_0x2f9e77(0x1fb)],_0x3d143f['config']),'cursorOffset':0x0};}function ne(_0x4b03f0){const _0x1f47cc=_0x44d4ec;var _0x3c6a9c,_0x53ea1c;let _0x3042ea=E(_0x4b03f0[_0x1f47cc(0x227)]),_0x570895=D(_0x3042ea),_0x278d77=S(_0x570895,_0x4b03f0[_0x1f47cc(0x21b)]);if(!_0x278d77)return null;let _0x4a31e8=T(_0x570895,_0x278d77),_0x297ba0=_0x4a31e8[_0x4a31e8['length']-0x1];if(!_0x297ba0||!oe(_0x570895,_0x278d77,_0x297ba0)||_0x4b03f0[_0x1f47cc(0x21b)]<_0x297ba0[_0x1f47cc(0x228)])return null;let _0x45f396=k(_0x570895,_0x278d77,_0x297ba0);if(_0x45f396>=_0x278d77[_0x1f47cc(0x1d2)])return null;_0x570895[_0x1f47cc(0x1f5)]=[_0x570895['dataStream'][_0x1f47cc(0x23a)](0x0,_0x45f396),_0x5b62d4[_0x1f47cc(0x251)],_0x570895[_0x1f47cc(0x1f5)][_0x1f47cc(0x23a)](_0x45f396,_0x278d77['endIndex']),_0x570895[_0x1f47cc(0x1f5)][_0x1f47cc(0x23a)](_0x278d77[_0x1f47cc(0x1d2)]+0x1)][_0x1f47cc(0x1eb)](''),z(_0x570895[_0x1f47cc(0x20b)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),z(_0x570895['sectionBreaks'],_0x45f396,_0x278d77['endIndex'],0x1),z(_0x570895[_0x1f47cc(0x213)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),pe(_0x570895['textRuns'],_0x45f396,_0x278d77['endIndex'],0x1),B(_0x570895[_0x1f47cc(0x23c)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),B(_0x570895[_0x1f47cc(0x1ff)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),B(_0x570895[_0x1f47cc(0x214)],_0x45f396,_0x278d77[_0x1f47cc(0x1d2)],0x1),(_0x3c6a9c=_0x570895[_0x1f47cc(0x246)])==null||_0x3c6a9c[_0x1f47cc(0x1dc)](_0x548795=>{const _0x528f0c=_0x1f47cc;_0x548795===_0x278d77||_0x548795[_0x528f0c(0x1fb)]===_0x278d77['blockId']?_0x548795[_0x528f0c(0x1d2)]=_0x45f396:_0x548795[_0x528f0c(0x228)]>=_0x45f396&&_0x548795['startIndex']<_0x278d77['endIndex']&&(_0x548795['startIndex']+=0x1,_0x548795['endIndex']+=0x1);});let _0x6291ca=T(_0x570895,{..._0x278d77,'endIndex':_0x45f396});_0x6291ca[_0x1f47cc(0x1dc)]((_0x56595d,_0x43c553)=>{const _0x2986b3=_0x1f47cc;var _0x562ab1;_0x56595d[_0x2986b3(0x241)]={...(_0x562ab1=_0x56595d[_0x2986b3(0x241)])==null?{}:_0x562ab1,...C(_0x43c553===0x0,_0x43c553===_0x6291ca['length']-0x1)};});let _0x191a24=(_0x53ea1c=_0x570895['paragraphs'])==null?void 0x0:_0x53ea1c['find'](_0x20d517=>_0x20d517[_0x1f47cc(0x228)]===_0x45f396+0x1);return _0x191a24&&(_0x191a24[_0x1f47cc(0x241)]=ae(_0x191a24['paragraphStyle'])),{'nextDocumentData':_0x3042ea,'cursorOffset':_0x45f396+0x1};}function re(_0x5dfccc){const _0x3311df=_0x44d4ec;let _0x1cf2c1=E(_0x5dfccc['documentData']),_0x1e1855=D(_0x1cf2c1),_0x46087a=S(_0x1e1855,_0x5dfccc[_0x3311df(0x21b)]);return _0x46087a&&ie(_0x1cf2c1,_0x1e1855,_0x46087a,_0x5dfccc[_0x3311df(0x21b)],_0x5dfccc[_0x3311df(0x1db)])||null;}function ie(_0x4cf3af,_0x5b7e27,_0x3bb6d5,_0xf5ff7b,_0x57196c){const _0xa2e7a9=_0x44d4ec;let _0x1277da=de(_0x5b7e27,_0x3bb6d5,_0xf5ff7b,_0x57196c);if(!_0x1277da)return null;let _0x5348d8=_0x1277da[_0xa2e7a9(0x21a)]-0x1;return M(_0x5b7e27,_0x1277da[_0xa2e7a9(0x230)]['startIndex'],_0x1277da[_0xa2e7a9(0x230)][_0xa2e7a9(0x228)]+0x1),{'nextDocumentData':_0x4cf3af,'cursorOffset':_0x5348d8};}function S(_0x5597f2,_0x38335f){const _0x4c7da0=_0x44d4ec;var _0x24129d;return(_0x24129d=_0x5597f2[_0x4c7da0(0x246)])==null?void 0x0:_0x24129d['find'](_0x53ca76=>{const _0x29c2ba=_0x4c7da0;let _0x3feacb=A(_0x5597f2,_0x53ca76);return _0x53ca76[_0x29c2ba(0x221)]===_0x29c2ba(0x229)&&_0x53ca76[_0x29c2ba(0x228)]<=_0x38335f&&_0x38335f<=_0x3feacb+0x2;});}function C(_0x1cf2d9,_0x52a9cd,_0x109115=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1cf2d9&&_0x109115?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':y,'fs':0xc}};}function w(_0x2be782,_0x4df244,_0x5ea2c8,_0x66c2f6=!0x1){const _0x58b173=_0x44d4ec;var _0x5153e8;let _0x3e23b2=((_0x5153e8=_0x2be782['paragraphs'])==null?[]:_0x5153e8)['filter'](_0x49a5fc=>_0x49a5fc[_0x58b173(0x228)]>_0x4df244&&_0x49a5fc[_0x58b173(0x228)]<_0x5ea2c8);_0x3e23b2[_0x58b173(0x1dc)]((_0xd2d6cb,_0x43dbe5)=>{const _0x4cf8ee=_0x58b173;var _0x5a48b3;_0xd2d6cb[_0x4cf8ee(0x241)]={...(_0x5a48b3=_0xd2d6cb[_0x4cf8ee(0x241)])==null?{}:_0x5a48b3,...C(_0x43dbe5===0x0,_0x43dbe5===_0x3e23b2['length']-0x1,_0x66c2f6)};});}function ae(_0x23b0a5){const _0x3d4e72=_0x44d4ec;var _0x3acd17,_0x1c42bd;let _0xe34e3e={..._0x23b0a5==null?{}:_0x23b0a5};return delete _0xe34e3e[_0x3d4e72(0x1e5)],delete _0xe34e3e[_0x3d4e72(0x1d4)],delete _0xe34e3e[_0x3d4e72(0x215)],delete _0xe34e3e[_0x3d4e72(0x20c)],((_0x3acd17=_0xe34e3e[_0x3d4e72(0x1f4)])==null?void 0x0:_0x3acd17['ff'])===y&&((_0x1c42bd=_0xe34e3e['textStyle'])==null?void 0x0:_0x1c42bd['fs'])===0xc&&delete _0xe34e3e[_0x3d4e72(0x1f4)],_0xe34e3e;}function T(_0x1b5a17,_0x28068a){const _0x55688b=_0x44d4ec;var _0x1e8afe;let _0x59902f=A(_0x1b5a17,_0x28068a);return((_0x1e8afe=_0x1b5a17[_0x55688b(0x20b)])==null?[]:_0x1e8afe)[_0x55688b(0x224)](_0x284536=>_0x284536[_0x55688b(0x228)]>_0x28068a[_0x55688b(0x228)]&&_0x284536[_0x55688b(0x228)]<_0x59902f);}function oe(_0x4ed479,_0x1e82e0,_0x298750){const _0x35c39e=_0x44d4ec;let _0x43d3c1=k(_0x4ed479,_0x1e82e0,_0x298750),_0x53c837=_0x4ed479[_0x35c39e(0x1f5)][_0x35c39e(0x23a)](_0x43d3c1,_0x298750[_0x35c39e(0x228)]);return Array[_0x35c39e(0x252)](_0x53c837)['every'](_0x53763f=>_0x53763f===_0x5b62d4[_0x35c39e(0x208)]||_0x53763f===_0x5b62d4[_0x35c39e(0x251)]);}function E(_0x249ae0){const _0x4b6c11=_0x44d4ec;return _0x402759[_0x4b6c11(0x1df)](_0x249ae0);}function D(_0x1642be){const _0x36e30a=_0x44d4ec;if(!_0x1642be[_0x36e30a(0x1fa)])throw Error(_0x36e30a(0x20e));return _0x1642be[_0x36e30a(0x1fa)];}function se(_0x35edba,_0xa38547,_0x21f641){const _0x3238ad=_0x44d4ec;if(_0xa38547==null||_0x21f641==null){let _0x4c7c02=ce(_0x35edba);return{'startOffset':_0x4c7c02,'endOffset':_0x4c7c02};}let _0x5aa2ff=Math[_0x3238ad(0x206)](_0xa38547,_0x21f641),_0x2678f0=Math[_0x3238ad(0x233)](_0xa38547,_0x21f641);return _0x5aa2ff===_0x2678f0?{'startOffset':_0x5aa2ff,'endOffset':_0x5aa2ff}:ue(_0x35edba,_0x5aa2ff,_0x2678f0);}function ce(_0x2d2e48){const _0x1f4840=_0x44d4ec;return _0x2d2e48['dataStream'][_0x1f4840(0x250)](_0x5b62d4[_0x1f4840(0x1fc)])?Math['max'](0x0,_0x2d2e48[_0x1f4840(0x1f5)][_0x1f4840(0x1dd)]-0x1):_0x2d2e48[_0x1f4840(0x1f5)]['length'];}function _0x4526(_0x5b3cd4,_0xb3d025){_0x5b3cd4=_0x5b3cd4-0x1d0;const _0x576fb7=_0x576f();let _0x45266c=_0x576fb7[_0x5b3cd4];return _0x45266c;}function le(_0x1fc3a1,_0xade6b4,_0x52d2ff){const _0x2c0e7a=_0x44d4ec;var _0x21a35a;let _0x499188=Math['min'](_0xade6b4,_0x52d2ff),_0x3a5786=Math[_0x2c0e7a(0x233)](_0xade6b4,_0x52d2ff);return!!((_0x21a35a=_0x1fc3a1[_0x2c0e7a(0x23c)])!=null&&_0x21a35a['some'](_0x584a2d=>_0x499188>_0x584a2d['startIndex']&&_0x499188<_0x584a2d[_0x2c0e7a(0x1d2)]||_0x3a5786>_0x584a2d[_0x2c0e7a(0x228)]&&_0x3a5786<_0x584a2d[_0x2c0e7a(0x1d2)]||_0x499188<=_0x584a2d[_0x2c0e7a(0x228)]&&_0x3a5786>=_0x584a2d[_0x2c0e7a(0x1d2)]));}function ue(_0x33e769,_0x4f59a2,_0x519f55){const _0x10935f=_0x44d4ec;var _0x38d97f,_0x629c1c;let _0x1b3566=[...(_0x38d97f=_0x33e769[_0x10935f(0x20b)])==null?[]:_0x38d97f]['sort']((_0x4a8816,_0x18fbe2)=>_0x4a8816[_0x10935f(0x228)]-_0x18fbe2['startIndex']),_0x1aa92b=_0x1b3566[_0x10935f(0x1ed)]((_0x4b1167,_0x5f909a)=>(_0x5f909a===0x0?0x0:_0x1b3566[_0x5f909a-0x1][_0x10935f(0x228)]+0x1)<=_0x4f59a2&&_0x4f59a2<=_0x4b1167[_0x10935f(0x228)]),_0x30cb36=(_0x629c1c=_0x1b3566[_0x10935f(0x1ed)](_0x25b55f=>_0x25b55f[_0x10935f(0x228)]>=_0x519f55-0x1))==null?_0x1b3566[_0x1b3566[_0x10935f(0x1dd)]-0x1]:_0x629c1c;return{'startOffset':_0x1aa92b?O(_0x1b3566,_0x1aa92b):_0x4f59a2,'endOffset':_0x30cb36?_0x30cb36[_0x10935f(0x228)]+0x1:_0x519f55};}function O(_0x4adb12,_0x4c3b0e){const _0x3d36ad=_0x44d4ec;let _0x1b9800=_0x4adb12['indexOf'](_0x4c3b0e);return _0x1b9800>0x0?_0x4adb12[_0x1b9800-0x1][_0x3d36ad(0x228)]+0x1:0x0;}function k(_0x409afa,_0x10acf1,_0xa0187d){const _0xe8ee07=_0x44d4ec;var _0x2c9335;return Math[_0xe8ee07(0x233)](O((_0x2c9335=_0x409afa[_0xe8ee07(0x20b)])==null?[]:_0x2c9335,_0xa0187d),_0x10acf1['startIndex']+0x1);}function A(_0x3cce22,_0x2dd3c7){const _0x8f2041=_0x44d4ec;return _0x3cce22['dataStream'][_0x2dd3c7['endIndex']]===_0x5b62d4[_0x8f2041(0x251)]?_0x2dd3c7['endIndex']:_0x3cce22[_0x8f2041(0x1f5)][_0x2dd3c7[_0x8f2041(0x1d2)]+0x1]===_0x5b62d4['BLOCK_END']?_0x2dd3c7[_0x8f2041(0x1d2)]+0x1:_0x2dd3c7[_0x8f2041(0x1d2)];}function de(_0x3c6743,_0x2b0140,_0x5e65d3,_0x4379ff){const _0x4baf3b=_0x44d4ec;var _0x2b8a42,_0x1155ff;let _0x2bf281=A(_0x3c6743,_0x2b0140),_0x277dda=((_0x2b8a42=_0x3c6743[_0x4baf3b(0x20b)])==null?[]:_0x2b8a42)[_0x4baf3b(0x1ed)](_0x5bf343=>_0x5bf343[_0x4baf3b(0x228)]===_0x2bf281+0x1);if(!_0x277dda||_0x4379ff!=null&&_0x277dda[_0x4baf3b(0x228)]!==_0x4379ff||_0x5e65d3<_0x2bf281||_0x5e65d3>_0x277dda[_0x4baf3b(0x228)]+0x1||_0x3c6743[_0x4baf3b(0x1f5)][_0x277dda[_0x4baf3b(0x228)]]!==_0x5b62d4[_0x4baf3b(0x1f6)])return null;let _0x53a699=O((_0x1155ff=_0x3c6743[_0x4baf3b(0x20b)])==null?[]:_0x1155ff,_0x277dda),_0x3a8d05=_0x3c6743['dataStream'][_0x4baf3b(0x23a)](_0x53a699,_0x277dda[_0x4baf3b(0x228)]);return Array['from'](_0x3a8d05)[_0x4baf3b(0x249)](_0x2416fc=>_0x2416fc===_0x5b62d4[_0x4baf3b(0x251)])?{'paragraph':_0x277dda,'endTokenOffset':_0x2bf281}:null;}function j(_0x510b6b,_0x43846c,_0x7ebea9,_0x3e4136={}){const _0x274ceb=_0x44d4ec;var _0x2a1793,_0x347840;if(_0x7ebea9){if(_0x510b6b[_0x274ceb(0x1f5)]=''+_0x510b6b[_0x274ceb(0x1f5)]['slice'](0x0,_0x43846c)+_0x7ebea9+_0x510b6b[_0x274ceb(0x1f5)][_0x274ceb(0x23a)](_0x43846c),N(_0x510b6b,_0x43846c,_0x7ebea9[_0x274ceb(0x1dd)]),(_0x2a1793=_0x3e4136[_0x274ceb(0x20b)])!=null&&_0x2a1793[_0x274ceb(0x1dd)]){var _0x439274;_0x510b6b[_0x274ceb(0x20b)]=[...(_0x439274=_0x510b6b['paragraphs'])==null?[]:_0x439274,..._0x3e4136[_0x274ceb(0x20b)][_0x274ceb(0x240)](_0x3455e1=>({..._0x3455e1,'startIndex':_0x3455e1['startIndex']+_0x43846c}))][_0x274ceb(0x1da)]((_0x11c3e4,_0x128b3f)=>_0x11c3e4[_0x274ceb(0x228)]-_0x128b3f[_0x274ceb(0x228)]);}if((_0x347840=_0x3e4136[_0x274ceb(0x246)])!=null&&_0x347840[_0x274ceb(0x1dd)]){var _0x15fb31;_0x510b6b[_0x274ceb(0x246)]=[...(_0x15fb31=_0x510b6b[_0x274ceb(0x246)])==null?[]:_0x15fb31,..._0x3e4136['blockRanges']['map'](_0x555b6c=>({..._0x555b6c,'startIndex':_0x555b6c[_0x274ceb(0x228)]+_0x43846c,'endIndex':_0x555b6c[_0x274ceb(0x1d2)]+_0x43846c}))][_0x274ceb(0x1da)]((_0x3d94ef,_0x80dd60)=>_0x3d94ef[_0x274ceb(0x228)]-_0x80dd60['startIndex']);}}}function M(_0x5ca178,_0x1b97bd,_0x3ef86f){const _0x4364dc=_0x44d4ec;let _0x3cdbd1=_0x3ef86f-_0x1b97bd;_0x5ca178['dataStream']=''+_0x5ca178['dataStream'][_0x4364dc(0x23a)](0x0,_0x1b97bd)+_0x5ca178[_0x4364dc(0x1f5)][_0x4364dc(0x23a)](_0x3ef86f),P(_0x5ca178,_0x1b97bd,_0x3cdbd1);}function N(_0x5eb41b,_0x34eddd,_0x20dcf8){const _0x481c7c=_0x44d4ec;_0x5eb41b[_0x481c7c(0x20b)]=F(_0x5eb41b['paragraphs'],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x24c)]=F(_0x5eb41b[_0x481c7c(0x24c)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x213)]=F(_0x5eb41b[_0x481c7c(0x213)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x222)]=fe(_0x5eb41b[_0x481c7c(0x222)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x23c)]=L(_0x5eb41b[_0x481c7c(0x23c)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x1ff)]=L(_0x5eb41b['customRanges'],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x214)]=L(_0x5eb41b[_0x481c7c(0x214)],_0x34eddd,_0x20dcf8),_0x5eb41b[_0x481c7c(0x246)]=L(_0x5eb41b[_0x481c7c(0x246)],_0x34eddd,_0x20dcf8);}function P(_0x18ab4e,_0xea46ca,_0xee103c){const _0xca9a1c=_0x44d4ec;var _0x4d9802,_0xa8bae2;_0x18ab4e[_0xca9a1c(0x20b)]=I(_0x18ab4e[_0xca9a1c(0x20b)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x24c)]=I(_0x18ab4e[_0xca9a1c(0x24c)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x213)]=I(_0x18ab4e['customBlocks'],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x222)]=(_0x4d9802=R((_0xa8bae2=_0x18ab4e['textRuns'])==null?void 0x0:_0xa8bae2[_0xca9a1c(0x240)](_0xd9c4a6=>({..._0xd9c4a6,'startIndex':_0xd9c4a6['st'],'endIndex':_0xd9c4a6['ed']})),_0xea46ca,_0xee103c))==null?void 0x0:_0x4d9802[_0xca9a1c(0x240)](_0x55a559=>{let {startIndex:_0x4478cd,endIndex:_0x1b9576,..._0x16f79c}=_0x55a559;return{..._0x16f79c,'st':_0x4478cd,'ed':_0x1b9576};}),_0x18ab4e[_0xca9a1c(0x23c)]=R(_0x18ab4e[_0xca9a1c(0x23c)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x1ff)]=R(_0x18ab4e['customRanges'],_0xea46ca,_0xee103c),_0x18ab4e['customDecorations']=R(_0x18ab4e[_0xca9a1c(0x214)],_0xea46ca,_0xee103c),_0x18ab4e[_0xca9a1c(0x246)]=R(_0x18ab4e[_0xca9a1c(0x246)],_0xea46ca,_0xee103c);}function F(_0xa5fa95,_0x597793,_0x15be2c){const _0x1319ce=_0x44d4ec;return _0xa5fa95==null?void 0x0:_0xa5fa95[_0x1319ce(0x240)](_0x2f7014=>_0x2f7014[_0x1319ce(0x228)]>=_0x597793?{..._0x2f7014,'startIndex':_0x2f7014[_0x1319ce(0x228)]+_0x15be2c}:_0x2f7014);}function I(_0x50fd69,_0x527cf8,_0x1a5b6d){const _0x327de6=_0x44d4ec;let _0x5e77ba=_0x527cf8+_0x1a5b6d;return _0x50fd69==null?void 0x0:_0x50fd69[_0x327de6(0x240)](_0x2148e3=>_0x2148e3[_0x327de6(0x228)]>=_0x527cf8&&_0x2148e3['startIndex']<_0x5e77ba?null:_0x2148e3[_0x327de6(0x228)]>=_0x5e77ba?{..._0x2148e3,'startIndex':_0x2148e3[_0x327de6(0x228)]-_0x1a5b6d}:_0x2148e3)['filter'](_0x46969b=>_0x46969b!=null);}function fe(_0x40a9b3,_0x4fcb0b,_0x39b2ec){return _0x40a9b3==null?void 0x0:_0x40a9b3['map'](_0x14ce04=>_0x14ce04['st']>=_0x4fcb0b?{..._0x14ce04,'st':_0x14ce04['st']+_0x39b2ec,'ed':_0x14ce04['ed']+_0x39b2ec}:_0x14ce04['ed']>_0x4fcb0b?{..._0x14ce04,'ed':_0x14ce04['ed']+_0x39b2ec}:_0x14ce04);}function L(_0x89fd59,_0x2abd82,_0x119351){const _0x583a79=_0x44d4ec;return _0x89fd59==null?void 0x0:_0x89fd59[_0x583a79(0x240)](_0x35f69c=>_0x35f69c[_0x583a79(0x228)]>=_0x2abd82?{..._0x35f69c,'startIndex':_0x35f69c[_0x583a79(0x228)]+_0x119351,'endIndex':_0x35f69c['endIndex']+_0x119351}:_0x35f69c['endIndex']>=_0x2abd82?{..._0x35f69c,'endIndex':_0x35f69c['endIndex']+_0x119351}:_0x35f69c);}function R(_0x4c306c,_0x185080,_0x4af7e4){const _0x48fbdf=_0x44d4ec;let _0x318a6f=_0x185080+_0x4af7e4;return _0x4c306c==null?void 0x0:_0x4c306c[_0x48fbdf(0x240)](_0x192e57=>_0x192e57[_0x48fbdf(0x228)]>=_0x185080&&_0x192e57['endIndex']<_0x318a6f?null:_0x192e57[_0x48fbdf(0x228)]>=_0x318a6f?{..._0x192e57,'startIndex':_0x192e57[_0x48fbdf(0x228)]-_0x4af7e4,'endIndex':_0x192e57[_0x48fbdf(0x1d2)]-_0x4af7e4}:_0x192e57['endIndex']>=_0x185080?{..._0x192e57,'startIndex':_0x192e57[_0x48fbdf(0x228)]<_0x185080?_0x192e57['startIndex']:_0x185080,'endIndex':Math[_0x48fbdf(0x233)](_0x185080,_0x192e57[_0x48fbdf(0x1d2)]-_0x4af7e4)}:_0x192e57)[_0x48fbdf(0x224)](_0x49031a=>_0x49031a!=null);}function z(_0x1ce40b,_0x1c02e9,_0x3c8109,_0x5c0dac){_0x1ce40b==null||_0x1ce40b['forEach'](_0x48d476=>{const _0x22919c=_0x4526;_0x48d476[_0x22919c(0x228)]>=_0x1c02e9&&_0x48d476[_0x22919c(0x228)]<_0x3c8109&&(_0x48d476[_0x22919c(0x228)]+=_0x5c0dac);});}function pe(_0x2087d6,_0x22c8f2,_0xac0471,_0x60d3){const _0x2ffc10=_0x44d4ec;_0x2087d6==null||_0x2087d6[_0x2ffc10(0x1dc)](_0x2d369e=>{_0x2d369e['st']>=_0x22c8f2&&_0x2d369e['st']<_0xac0471?(_0x2d369e['st']+=_0x60d3,_0x2d369e['ed']+=_0x60d3):_0x2d369e['ed']>_0x22c8f2&&_0x2d369e['ed']<_0xac0471&&(_0x2d369e['ed']+=_0x60d3);});}function B(_0x330471,_0x7b3d95,_0x4b2e1e,_0x11c14e){const _0x410869=_0x44d4ec;_0x330471==null||_0x330471[_0x410869(0x1dc)](_0x3607c7=>{const _0x28e2e0=_0x410869;_0x3607c7[_0x28e2e0(0x228)]>=_0x7b3d95&&_0x3607c7['startIndex']<_0x4b2e1e?(_0x3607c7[_0x28e2e0(0x228)]+=_0x11c14e,_0x3607c7[_0x28e2e0(0x1d2)]+=_0x11c14e):_0x3607c7[_0x28e2e0(0x1d2)]>_0x7b3d95&&_0x3607c7[_0x28e2e0(0x1d2)]<_0x4b2e1e&&(_0x3607c7[_0x28e2e0(0x1d2)]+=_0x11c14e);});}function V(_0x4e7276){'@babel/helpers - typeof';const _0x374178=_0x44d4ec;return V=typeof Symbol==_0x374178(0x204)&&typeof Symbol[_0x374178(0x22c)]==_0x374178(0x1de)?function(_0x5bcbbe){return typeof _0x5bcbbe;}:function(_0x3d9842){const _0x23e5b8=_0x374178;return _0x3d9842&&typeof Symbol==_0x23e5b8(0x204)&&_0x3d9842[_0x23e5b8(0x200)]===Symbol&&_0x3d9842!==Symbol[_0x23e5b8(0x23f)]?_0x23e5b8(0x1de):typeof _0x3d9842;},V(_0x4e7276);}function me(_0x275fb2,_0x18550e){const _0x552c46=_0x44d4ec;if(V(_0x275fb2)!=_0x552c46(0x1d6)||!_0x275fb2)return _0x275fb2;var _0x25caa4=_0x275fb2[Symbol[_0x552c46(0x223)]];if(_0x25caa4!==void 0x0){var _0x50acd9=_0x25caa4['call'](_0x275fb2,_0x18550e||_0x552c46(0x1ef));if(V(_0x50acd9)!=_0x552c46(0x1d6))return _0x50acd9;throw TypeError(_0x552c46(0x21e));}return(_0x18550e==='string'?String:Number)(_0x275fb2);}function he(_0xa7f6e2){const _0x11d903=_0x44d4ec;var _0x38da24=me(_0xa7f6e2,_0x11d903(0x225));return V(_0x38da24)=='symbol'?_0x38da24:_0x38da24+'';}function H(_0x135697,_0x287004,_0x1fd626){const _0x38c9dd=_0x44d4ec;return(_0x287004=he(_0x287004))in _0x135697?Object[_0x38c9dd(0x205)](_0x135697,_0x287004,{'value':_0x1fd626,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x135697[_0x287004]=_0x1fd626,_0x135697;}var U=class extends _0x32c700{constructor(..._0x4af0ba){const _0x299721=_0x44d4ec;super(..._0x4af0ba),H(this,'_resources',new Map()),H(this,_0x299721(0x1d1),new _0xe083b()),H(this,_0x299721(0x226),this[_0x299721(0x1d1)]['asObservable']());}[_0x44d4ec(0x24b)](_0x2cbfd1,_0xf5bbd6){return g(this['_resources']['get'](_0x2cbfd1))['codes'][_0xf5bbd6];}[_0x44d4ec(0x217)](_0x14176e,_0x5df251,_0x52413d){const _0x4f236a=_0x44d4ec;this[_0x4f236a(0x210)](_0x14176e,_0x5df251,_(this[_0x4f236a(0x253)][_0x4f236a(0x21d)](_0x14176e),_0x5df251,_0x52413d));}[_0x44d4ec(0x1d3)](_0x34ab0f,_0x4c2522){const _0x184a9d=_0x44d4ec;this[_0x184a9d(0x210)](_0x34ab0f,_0x4c2522,v(this['_resources'][_0x184a9d(0x21d)](_0x34ab0f),_0x4c2522));}['serialize'](_0x45f621){const _0xbe3f2c=_0x44d4ec;return g(this[_0xbe3f2c(0x253)][_0xbe3f2c(0x21d)](_0x45f621));}[_0x44d4ec(0x237)](_0x49b3ef,_0x1641d0){const _0x1ad6e3=_0x44d4ec;this['_resources'][_0x1ad6e3(0x216)](_0x49b3ef,g(_0x1641d0)),this[_0x1ad6e3(0x1d1)][_0x1ad6e3(0x23e)]({'unitId':_0x49b3ef});}[_0x44d4ec(0x1e2)](_0xf655ca){const _0x2d5a18=_0x44d4ec;this[_0x2d5a18(0x253)][_0x2d5a18(0x20f)](_0xf655ca),this['_change$'][_0x2d5a18(0x23e)]({'unitId':_0xf655ca});}['dispose'](){const _0x58307a=_0x44d4ec;super[_0x58307a(0x1ec)](),this[_0x58307a(0x253)][_0x58307a(0x243)](),this[_0x58307a(0x1d1)]['complete']();}[_0x44d4ec(0x210)](_0x3b8cd3,_0x20e595,_0x27dd4b){const _0x22556d=_0x44d4ec;this[_0x22556d(0x253)][_0x22556d(0x216)](_0x3b8cd3,_0x27dd4b),this[_0x22556d(0x1d1)][_0x22556d(0x23e)]({'unitId':_0x3b8cd3,'blockId':_0x20e595});}};_0x3de41e[_0x44d4ec(0x244)],_0x3de41e[_0x44d4ec(0x244)];const ge={'id':_0x44d4ec(0x1f8),'type':_0x3de41e[_0x44d4ec(0x244)],'handler':(_0x10d441,_0x300fb9)=>{const _0x2f429f=_0x44d4ec;var _0xd0aa67,_0x1fa51a,_0x450df3;let _0x34fa18=K(_0x10d441,_0x300fb9==null?void 0x0:_0x300fb9['unitId']);if(!_0x34fa18)return!0x1;let _0x56be7e=q(_0x10d441),_0x42cd9b=b({'blockId':(_0xd0aa67=_0x300fb9==null?void 0x0:_0x300fb9[_0x2f429f(0x1fb)])==null?_0x64057c(0x6):_0xd0aa67,'config':_0x300fb9==null?void 0x0:_0x300fb9[_0x2f429f(0x1d8)],'documentData':_0x34fa18[_0x2f429f(0x1fd)],'endOffset':(_0x1fa51a=_0x300fb9==null?void 0x0:_0x300fb9['endOffset'])==null?_0x56be7e==null?void 0x0:_0x56be7e[_0x2f429f(0x232)]:_0x1fa51a,'metadata':_0x34fa18[_0x2f429f(0x242)][_0x2f429f(0x24d)](_0x34fa18['unitId']),'startOffset':(_0x450df3=_0x300fb9==null?void 0x0:_0x300fb9[_0x2f429f(0x1e0)])==null?_0x56be7e==null?void 0x0:_0x56be7e[_0x2f429f(0x1e0)]:_0x450df3}),_0x41d704=Y(_0x34fa18['commandService'],_0x34fa18[_0x2f429f(0x218)],_0x34fa18[_0x2f429f(0x1fd)],_0x42cd9b[_0x2f429f(0x220)],_0x42cd9b['cursorOffset']);return _0x41d704&&_0x42cd9b['nextMetadata']&&_0x34fa18[_0x2f429f(0x242)][_0x2f429f(0x237)](_0x34fa18[_0x2f429f(0x218)],_0x42cd9b[_0x2f429f(0x236)]),_0x41d704;}},_e={'id':_0x44d4ec(0x1f0),'type':_0x3de41e[_0x44d4ec(0x244)],'handler':(_0x4ce537,_0x2e7b72)=>{const _0x5fff08=_0x44d4ec;if(!_0x2e7b72)return!0x1;let _0x5503a2=K(_0x4ce537,_0x2e7b72[_0x5fff08(0x218)]);if(!_0x5503a2)return!0x1;let _0x88152c=te({'blockId':_0x2e7b72[_0x5fff08(0x1fb)],'config':_0x2e7b72[_0x5fff08(0x1d8)],'documentData':_0x5503a2['previousDocumentData'],'metadata':_0x5503a2[_0x5fff08(0x242)][_0x5fff08(0x24d)](_0x5503a2['unitId'])});return _0x88152c['nextMetadata']&&_0x5503a2['model'][_0x5fff08(0x237)](_0x5503a2['unitId'],_0x88152c[_0x5fff08(0x236)]),!0x0;}},W={'id':_0x44d4ec(0x235),'type':_0x3de41e[_0x44d4ec(0x244)],'handler':(_0x38a89e,_0x55b39c)=>{const _0x3061c4=_0x44d4ec;var _0x2cde0c,_0x57e870;let _0x511c26=K(_0x38a89e,_0x55b39c==null?void 0x0:_0x55b39c['unitId']);if(!_0x511c26)return!0x1;let _0xac0965=(_0x2cde0c=_0x55b39c==null?void 0x0:_0x55b39c['cursorOffset'])==null?(_0x57e870=q(_0x38a89e))==null?void 0x0:_0x57e870[_0x3061c4(0x1e0)]:_0x2cde0c;if(_0xac0965==null)return!0x1;let _0x4e1ecd=ne({'cursorOffset':_0xac0965,'documentData':_0x511c26[_0x3061c4(0x1fd)]});return _0x4e1ecd?Y(_0x511c26[_0x3061c4(0x219)],_0x511c26[_0x3061c4(0x218)],_0x511c26[_0x3061c4(0x1fd)],_0x4e1ecd[_0x3061c4(0x220)],_0x4e1ecd[_0x3061c4(0x21b)]):!0x1;}},G={'id':'docs-code.command.cancel-empty-paragraph','type':_0x3de41e['COMMAND'],'handler':(_0x8ae56,_0x4d810f)=>{const _0x4e4c77=_0x44d4ec;var _0x2c237d,_0x14dbb0;let _0x542e36=K(_0x8ae56,_0x4d810f==null?void 0x0:_0x4d810f[_0x4e4c77(0x218)]);if(!_0x542e36)return!0x1;let _0x5e1ad9=(_0x2c237d=_0x4d810f==null?void 0x0:_0x4d810f['cursorOffset'])==null?(_0x14dbb0=q(_0x8ae56))==null?void 0x0:_0x14dbb0[_0x4e4c77(0x1e0)]:_0x2c237d;if(_0x5e1ad9==null)return!0x1;let _0x57a028=re({'cursorOffset':_0x5e1ad9,'documentData':_0x542e36[_0x4e4c77(0x1fd)],'paragraphStartIndex':_0x4d810f==null?void 0x0:_0x4d810f[_0x4e4c77(0x1db)]});return _0x57a028?Y(_0x542e36['commandService'],_0x542e36[_0x4e4c77(0x218)],_0x542e36['previousDocumentData'],_0x57a028[_0x4e4c77(0x220)],_0x57a028[_0x4e4c77(0x21b)]):!0x1;}};function K(_0x5b1bd9,_0x2136fa){const _0x3ca200=_0x44d4ec;let _0x49d122=_0x5b1bd9[_0x3ca200(0x21d)](_0x1c241d),_0x40592e=_0x2136fa?_0x49d122[_0x3ca200(0x22e)](_0x2136fa):_0x49d122[_0x3ca200(0x234)](_0x28af17[_0x3ca200(0x212)]);return _0x40592e?{'commandService':_0x5b1bd9['get'](_0x4ff42b),'model':_0x5b1bd9[_0x3ca200(0x21d)](U),'previousDocumentData':_0x40592e[_0x3ca200(0x21f)](),'unitId':_0x40592e[_0x3ca200(0x1e3)]()}:null;}function q(_0xb02993){const _0x7724d8=_0x44d4ec;var _0x583a2c;return(_0x583a2c=_0xb02993[_0x7724d8(0x21d)](_0x1146da)[_0x7724d8(0x22a)]())==null?void 0x0:_0x583a2c[0x0];}function ve(_0x29a28a,_0x14b09f){const _0x51e081=_0x44d4ec;var _0x4b4f80,_0x183315,_0x42884a,_0x90494b,_0x4615be,_0x3bd6f1,_0x2c9e6e,_0x1a5392,_0xeb00f6,_0xb123c1,_0x2b709c,_0x1092b6,_0x5ad9f2,_0x28448b,_0xf32418,_0x27a1da,_0x4e605d,_0xba47e9;let _0x2e5d0a=_0x3c253d[_0x51e081(0x20a)]();return[J(_0x2e5d0a,['body',_0x51e081(0x1f5)],(_0x4b4f80=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x4b4f80[_0x51e081(0x1f5)],(_0x183315=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x183315[_0x51e081(0x1f5)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x20b)],(_0x42884a=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x42884a[_0x51e081(0x20b)],(_0x90494b=_0x14b09f['body'])==null?void 0x0:_0x90494b['paragraphs']),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x24c)],(_0x4615be=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x4615be[_0x51e081(0x24c)],(_0x3bd6f1=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x3bd6f1[_0x51e081(0x24c)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x222)],(_0x2c9e6e=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x2c9e6e['textRuns'],(_0x1a5392=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x1a5392[_0x51e081(0x222)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x213)],(_0xeb00f6=_0x29a28a['body'])==null?void 0x0:_0xeb00f6[_0x51e081(0x213)],(_0xb123c1=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0xb123c1[_0x51e081(0x213)]),J(_0x2e5d0a,[_0x51e081(0x1fa),'customRanges'],(_0x2b709c=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x2b709c['customRanges'],(_0x1092b6=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0x1092b6[_0x51e081(0x1ff)]),J(_0x2e5d0a,['body',_0x51e081(0x214)],(_0x5ad9f2=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x5ad9f2[_0x51e081(0x214)],(_0x28448b=_0x14b09f['body'])==null?void 0x0:_0x28448b[_0x51e081(0x214)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x23c)],(_0xf32418=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0xf32418[_0x51e081(0x23c)],(_0x27a1da=_0x14b09f['body'])==null?void 0x0:_0x27a1da[_0x51e081(0x23c)]),J(_0x2e5d0a,[_0x51e081(0x1fa),_0x51e081(0x246)],(_0x4e605d=_0x29a28a[_0x51e081(0x1fa)])==null?void 0x0:_0x4e605d[_0x51e081(0x246)],(_0xba47e9=_0x14b09f[_0x51e081(0x1fa)])==null?void 0x0:_0xba47e9[_0x51e081(0x246)])]['filter'](Boolean)[_0x51e081(0x1fe)]((_0xe36e7,_0x2cea3e)=>_0x3c253d[_0x51e081(0x1f9)](_0xe36e7,_0x2cea3e),null);}function J(_0x459b9a,_0xc2776b,_0x5b3e2b,_0x3bedce){const _0x1134d9=_0x44d4ec;return _0x402759['diffValue'](_0x5b3e2b,_0x3bedce)?null:_0x459b9a[_0x1134d9(0x1ea)](_0xc2776b,_0x5b3e2b,_0x3bedce);}function Y(_0x568f86,_0x307f76,_0x2c204f,_0x549d58,_0x188427){const _0x4253ac=_0x44d4ec;let _0x4ea6a0=ve(_0x2c204f,_0x549d58);return _0x4ea6a0?!!_0x568f86[_0x4253ac(0x22b)](_0x5e2409['id'],{'unitId':_0x307f76,'actions':_0x4ea6a0,'textRanges':[{'startOffset':_0x188427,'endOffset':_0x188427,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}var X=class{constructor(_0x215607){const _0x3d1a72=_0x44d4ec;this[_0x3d1a72(0x1f1)]=_0x215607;}['getId'](){const _0x2130f0=_0x44d4ec;return this[_0x2130f0(0x1f1)][_0x2130f0(0x1fb)];}[_0x44d4ec(0x231)](){const _0x40c3fd=_0x44d4ec;let _0x1bd629=this[_0x40c3fd(0x201)]();return _0x1bd629?{'blockId':_0x1bd629['blockId'],'endIndex':_0x1bd629[_0x40c3fd(0x1d2)],'startIndex':_0x1bd629[_0x40c3fd(0x228)]}:null;}[_0x44d4ec(0x1e6)](){const _0x447ed5=_0x44d4ec;var _0x5f33bc;let _0x3904a7=this['_getBlockRange'](),_0x140071=(_0x5f33bc=this[_0x447ed5(0x1f1)][_0x447ed5(0x1ee)]()[_0x447ed5(0x1fa)])==null?void 0x0:_0x5f33bc['dataStream'];return!_0x3904a7||!_0x140071?'':ye(_0x140071['slice'](_0x3904a7[_0x447ed5(0x228)]+0x1,_0x3904a7['endIndex']));}['describe'](){const _0x3f05c0=_0x44d4ec;let _0x1cd086=this[_0x3f05c0(0x231)]();return _0x1cd086?{..._0x1cd086,'config':this[_0x3f05c0(0x1d5)](),'text':this[_0x3f05c0(0x1e6)](),'type':'code'}:null;}[_0x44d4ec(0x1d5)](){const _0x4a3a1e=_0x44d4ec;var _0x5772f2;return h((_0x5772f2=this[_0x4a3a1e(0x1f1)]['model'])==null?void 0x0:_0x5772f2[_0x4a3a1e(0x24b)](this[_0x4a3a1e(0x1f1)][_0x4a3a1e(0x218)],this[_0x4a3a1e(0x1f1)][_0x4a3a1e(0x1fb)]));}['updateConfig'](_0x499d30){const _0x281b68=_0x44d4ec;var _0x227ba3;return!!((_0x227ba3=this[_0x281b68(0x1f1)][_0x281b68(0x219)])!=null&&_0x227ba3['syncExecuteCommand'](_e['id'],{'blockId':this[_0x281b68(0x1f1)][_0x281b68(0x1fb)],'config':_0x499d30[_0x281b68(0x1d8)],'unitId':this[_0x281b68(0x1f1)][_0x281b68(0x218)]}));}['exit'](_0x510070){const _0x1cfa84=_0x44d4ec;var _0x277e0c;return!!((_0x277e0c=this[_0x1cfa84(0x1f1)][_0x1cfa84(0x219)])!=null&&_0x277e0c[_0x1cfa84(0x22b)](W['id'],{'cursorOffset':_0x510070,'unitId':this['_runtime'][_0x1cfa84(0x218)]}));}[_0x44d4ec(0x20d)](_0x57dab1={}){const _0x18329c=_0x44d4ec;var _0xc646c0;return!!((_0xc646c0=this[_0x18329c(0x1f1)]['commandService'])!=null&&_0xc646c0[_0x18329c(0x22b)](G['id'],{..._0x57dab1,'unitId':this[_0x18329c(0x1f1)]['unitId']}));}[_0x44d4ec(0x201)](){const _0x19e6dd=_0x44d4ec;var _0x37e91b;return(_0x37e91b=this[_0x19e6dd(0x1f1)][_0x19e6dd(0x1ee)]()[_0x19e6dd(0x1fa)])==null||(_0x37e91b=_0x37e91b[_0x19e6dd(0x246)])==null?void 0x0:_0x37e91b[_0x19e6dd(0x1ed)](_0x4fdb00=>_0x4fdb00[_0x19e6dd(0x1fb)]===this[_0x19e6dd(0x1f1)]['blockId']&&_0x4fdb00[_0x19e6dd(0x221)]===_0x19e6dd(0x229));}};function ye(_0x36403c){const _0x36516b=_0x44d4ec;return Array[_0x36516b(0x252)](_0x36403c)['map'](_0x2d4c03=>_0x2d4c03===_0x5b62d4['PARAGRAPH']?'\x0a':_0x2d4c03)['filter'](_0x5a805a=>_0x5a805a!==_0x5b62d4[_0x36516b(0x208)]&&_0x5a805a!==_0x5b62d4[_0x36516b(0x251)]&&_0x5a805a!==_0x5b62d4[_0x36516b(0x1fc)])['join']('')[_0x36516b(0x1d0)](/\n$/,'');}Object[_0x44d4ec(0x247)](_0x16ad3f[_0x44d4ec(0x23f)],{'getCodes'(){const _0x100050=_0x44d4ec;var _0xadcdd3,_0xec266e;return(_0xadcdd3=(_0xec266e=this['getSnapshot']()[_0x100050(0x1fa)])==null||(_0xec266e=_0xec266e[_0x100050(0x246)])==null?void 0x0:_0xec266e[_0x100050(0x224)](_0x4184fb=>_0x4184fb[_0x100050(0x221)]===_0x100050(0x229))[_0x100050(0x240)](_0x30e332=>Z(this,_0x30e332['blockId'])))==null?[]:_0xadcdd3;},'getCode'(_0x10207c){const _0x217602=_0x44d4ec;var _0x218476;return!((_0x218476=this[_0x217602(0x21f)]()['body'])==null||(_0x218476=_0x218476[_0x217602(0x246)])==null)&&_0x218476[_0x217602(0x1d9)](_0x121f58=>_0x121f58[_0x217602(0x1fb)]===_0x10207c&&_0x121f58['blockType']===_0x217602(0x229))?Z(this,_0x10207c):null;},'getCodeAt'(_0x51fa71){const _0x2dbc7b=_0x44d4ec;var _0x11b38d;let _0x57e189=(_0x11b38d=this[_0x2dbc7b(0x21f)]()[_0x2dbc7b(0x1fa)])==null||(_0x11b38d=_0x11b38d[_0x2dbc7b(0x246)])==null||(_0x11b38d=_0x11b38d[_0x2dbc7b(0x1ed)](_0x23f33e=>_0x23f33e[_0x2dbc7b(0x221)]===_0x2dbc7b(0x229)&&_0x23f33e['startIndex']<=_0x51fa71&&_0x51fa71<=_0x23f33e[_0x2dbc7b(0x1d2)]))==null?void 0x0:_0x11b38d[_0x2dbc7b(0x1fb)];return _0x57e189?Z(this,_0x57e189):null;},'findCodeByText'(_0x5454d3){const _0x1008bd=_0x44d4ec;var _0x164e7f;return(_0x164e7f=this[_0x1008bd(0x248)](_0x5454d3)[0x0])==null?null:_0x164e7f;},'findCodes'(_0x42e23c){const _0x24809e=_0x44d4ec;let _0x246f77=typeof _0x42e23c=='string'?{'text':_0x42e23c}:_0x42e23c;return this[_0x24809e(0x23b)]()['filter'](_0x22831c=>!(_0x246f77[_0x24809e(0x1fb)]&&_0x22831c['getId']()!==_0x246f77[_0x24809e(0x1fb)]||_0x246f77[_0x24809e(0x209)]&&!_0x22831c[_0x24809e(0x1e6)]()[_0x24809e(0x1e4)](_0x246f77['text'])));},'insertCode'(_0x515c86={}){const _0x41e77c=_0x44d4ec;var _0x57d195,_0x24e100;let _0x1d9c62=(_0x57d195=_0x515c86[_0x41e77c(0x1fb)])==null?_0x41e77c(0x22d)+Date[_0x41e77c(0x203)]():_0x57d195;return(_0x24e100=Q(this))!=null&&_0x24e100['syncExecuteCommand'](ge['id'],{..._0x515c86,'blockId':_0x1d9c62,'unitId':this[_0x41e77c(0x239)]()})?Z(this,_0x1d9c62):null;},'exitCode'(_0x2217cc){const _0xc0ff4e=_0x44d4ec;var _0x3669ca;return!!((_0x3669ca=Q(this))!=null&&_0x3669ca[_0xc0ff4e(0x22b)](W['id'],{'cursorOffset':_0x2217cc,'unitId':this['getId']()}));},'cancelEmptyCodeParagraph'(_0x57933a={}){const _0x14d2a8=_0x44d4ec;var _0x6e2fa0;return!!((_0x6e2fa0=Q(this))!=null&&_0x6e2fa0[_0x14d2a8(0x22b)](G['id'],{..._0x57933a,'unitId':this[_0x14d2a8(0x239)]()}));}});function Z(_0x682c40,_0x28a59b){const _0x140bdf=_0x44d4ec;let _0x3665b7=$(_0x682c40);return new X({'blockId':_0x28a59b,'commandService':Q(_0x682c40),'getDocumentData':()=>_0x682c40[_0x140bdf(0x21f)](),'model':_0x3665b7==null?void 0x0:_0x3665b7[_0x140bdf(0x21d)](U),'unitId':_0x682c40[_0x140bdf(0x239)]()});}function _0x576f(){const _0x509069=['length','symbol','deepClone','startOffset','metadata','removeUnit','getUnitId','includes','indentEnd','getText','11mprNsq','260JVMEOn','javascript','replaceOp','join','dispose','find','getDocumentData','default','docs-code.command.update','_runtime','20QgTViG','20886KsMOTH','textStyle','dataStream','PARAGRAPH','108JyeKbA','docs-code.command.insert','compose','body','blockId','SECTION_BREAK','previousDocumentData','reduce','customRanges','constructor','_getBlockRange','37894UTBjJe','now','function','defineProperty','min','232980moprrA','BLOCK_START','text','getInstance','paragraphs','spaceBelow','cancelEmptyParagraph','Document\x20body\x20is\x20required','delete','_setResource','_commandService','UNIVER_DOC','customBlocks','customDecorations','spaceAbove','set','setCodeConfig','unitId','commandService','endTokenOffset','cursorOffset','2919OoioAf','get','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getSnapshot','nextDocumentData','blockType','textRuns','toPrimitive','filter','string','change$','documentData','startIndex','code','getTextRanges','syncExecuteCommand','iterator','docs-code-','getUniverDocInstance','916092ePktbC','paragraph','getRange','endOffset','max','getCurrentUnitOfType','docs-code.command.exit','nextMetadata','deserialize','codes','getId','slice','getCodes','tables','6408kgeoks','next','prototype','map','paragraphStyle','model','clear','COMMAND','fromEntries','blockRanges','assign','findCodes','every','96RWaoUb','getCodeConfig','sectionBreaks','serialize','entries','3710553RQqobf','endsWith','BLOCK_END','from','_resources','replace','_change$','endIndex','removeCode','indentStart','getConfig','object','251304fdsWUT','config','some','sort','paragraphStartIndex','forEach'];_0x576f=function(){return _0x509069;};return _0x576f();}function Q(_0x2aada3){const _0x23d263=_0x44d4ec;var _0x199215,_0x18511a;return(_0x199215=_0x2aada3[_0x23d263(0x211)])==null?(_0x18511a=$(_0x2aada3))==null?void 0x0:_0x18511a[_0x23d263(0x21d)](_0x4ff42b):_0x199215;}function $(_0x51cd64){return _0x51cd64['_injector'];}export{X as FDocsCode};
|