@univerjs-pro/docs-code 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x5e70aa=_0x196d;(function(_0x16009a,_0x755f50){const _0x3972ad=_0x196d,_0x18aa0e=_0x16009a();while(!![]){try{const _0x5e8f13=-parseInt(_0x3972ad(0x25f))/0x1*(parseInt(_0x3972ad(0x228))/0x2)+parseInt(_0x3972ad(0x1e8))/0x3*(-parseInt(_0x3972ad(0x279))/0x4)+-parseInt(_0x3972ad(0x280))/0x5*(parseInt(_0x3972ad(0x24d))/0x6)+parseInt(_0x3972ad(0x22b))/0x7*(-parseInt(_0x3972ad(0x233))/0x8)+parseInt(_0x3972ad(0x254))/0x9*(parseInt(_0x3972ad(0x273))/0xa)+parseInt(_0x3972ad(0x210))/0xb+parseInt(_0x3972ad(0x281))/0xc;if(_0x5e8f13===_0x755f50)break;else _0x18aa0e['push'](_0x18aa0e['shift']());}catch(_0x3bd98c){_0x18aa0e['push'](_0x18aa0e['shift']());}}}(_0xfdd7,0x1b711));import{BooleanNumber as _0x4e8187,BuildTextUtils as _0x101a6d,CommandType as _0x2aabf9,DataStreamTreeTokenType as _0x430e4a,DependentOn as _0xbd1de2,Disposable as _0xda6805,DocumentBlockRangeType as _0x58ea90,ICommandService as _0x345515,IConfigService as _0x42cbf8,IResourceManagerService as _0x2b7a1e,IUniverInstanceService as _0x7eb0f5,Inject as _0x1376f9,Injector as _0x18c912,JSONX as _0x2e6159,Plugin as _0x29051f,TextX as _0x4f8d7c,UniverInstanceType as _0x221a97,containsInteriorInsertionOffset as _0x22cea4,containsStreamIndex as _0x5ecdee,createParagraphId as _0xb483bf,generateRandomId as _0x185e0f,getBlockRangeInterval as _0x25d697,getBodySliceForTextXAction as _0x201241,getParagraphContentStartOffset as _0x3d99b8,getParagraphContentStartOffsets as _0x1f839d,getParagraphFollowingBlockOffset as _0x39af8b,getSingleDataStreamChange as _0x2fc954,intersectsOperationalIntervals as _0x21add1,merge as _0x56f20c,shiftExclusiveRangeOnDelete as _0x1caa6f,shiftExclusiveRangeOnInsert as _0x29d384,shiftInclusiveRangeOnDelete as _0x42032c,shiftInclusiveRangeOnInsert as _0x381408}from'@univerjs/core';import{Subject as _0x41b588}from'rxjs';import{DocSelectionManagerService as _0x1dae47,RichTextEditingMutation as _0x59a84f,UniverDocsPlugin as _0x3f4352,getContentInsertRange as _0xf77ce,isHeaderFooterSelection as _0x2f5dc4}from'@univerjs/docs';import{UniverLicensePlugin as _0x140279}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x431702){return{...Se,..._0x431702};}function y(_0x970711){const _0x3e5fc7=_0x196d;let _0x4eafd1=(_0x970711==null?void 0x0:_0x970711[_0x3e5fc7(0x237)])??{};return{'codes':Object[_0x3e5fc7(0x201)](Object[_0x3e5fc7(0x27e)](_0x4eafd1)[_0x3e5fc7(0x214)](([_0x263826,_0x30df27])=>[_0x263826,v(_0x30df27)]))};}function b(_0x116bf8,_0x2271af,_0x3e567e){const _0x5c1bc5=_0x196d;let _0x25c67e=y(_0x116bf8);return _0x25c67e[_0x5c1bc5(0x237)][_0x2271af]=v({..._0x25c67e[_0x5c1bc5(0x237)][_0x2271af],..._0x3e567e}),_0x25c67e;}function x(_0x3b1f3c,_0x2bf585){const _0x48c231=_0x196d;let _0x1608fd=y(_0x3b1f3c);return delete _0x1608fd[_0x48c231(0x237)][_0x2bf585],_0x1608fd;}function S(_0x514e42){'@babel/helpers - typeof';const _0x54b026=_0x196d;return S=typeof Symbol==_0x54b026(0x1ff)&&typeof Symbol[_0x54b026(0x22d)]==_0x54b026(0x28b)?function(_0x398ce2){return typeof _0x398ce2;}:function(_0xf0bf27){const _0x570fc8=_0x54b026;return _0xf0bf27&&typeof Symbol==_0x570fc8(0x1ff)&&_0xf0bf27[_0x570fc8(0x229)]===Symbol&&_0xf0bf27!==Symbol[_0x570fc8(0x271)]?'symbol':typeof _0xf0bf27;},S(_0x514e42);}function Ce(_0x43cee0,_0xc59619){const _0x14d929=_0x196d;if(S(_0x43cee0)!=_0x14d929(0x216)||!_0x43cee0)return _0x43cee0;var _0x1da46b=_0x43cee0[Symbol[_0x14d929(0x25e)]];if(_0x1da46b!==void 0x0){var _0x4c1d44=_0x1da46b['call'](_0x43cee0,_0xc59619||_0x14d929(0x25b));if(S(_0x4c1d44)!='object')return _0x4c1d44;throw TypeError(_0x14d929(0x27b));}return(_0xc59619===_0x14d929(0x266)?String:Number)(_0x43cee0);}function we(_0x16dd13){const _0x55f510=_0x196d;var _0x5e2b3c=Ce(_0x16dd13,_0x55f510(0x266));return S(_0x5e2b3c)==_0x55f510(0x28b)?_0x5e2b3c:_0x5e2b3c+'';}function C(_0xe00520,_0x2367bc,_0x4822e1){const _0x238e51=_0x196d;return(_0x2367bc=we(_0x2367bc))in _0xe00520?Object[_0x238e51(0x22a)](_0xe00520,_0x2367bc,{'value':_0x4822e1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe00520[_0x2367bc]=_0x4822e1,_0xe00520;}var w=class extends _0xda6805{constructor(..._0x273034){const _0x44515c=_0x196d;super(..._0x273034),C(this,_0x44515c(0x23d),new Map()),C(this,'_change$',new _0x41b588()),C(this,_0x44515c(0x257),this[_0x44515c(0x263)][_0x44515c(0x28d)]());}[_0x5e70aa(0x220)](_0xca843a,_0x32eb66){const _0x3b6fc7=_0x5e70aa;return y(this[_0x3b6fc7(0x23d)]['get'](_0xca843a))['codes'][_0x32eb66];}[_0x5e70aa(0x28c)](_0x3eef0b,_0x4c3549,_0x45e0c5){const _0x9ef3ca=_0x5e70aa;this[_0x9ef3ca(0x24a)](_0x3eef0b,_0x4c3549,b(this[_0x9ef3ca(0x23d)]['get'](_0x3eef0b),_0x4c3549,_0x45e0c5));}[_0x5e70aa(0x21f)](_0x3d6111,_0x1727d0){const _0x5a674b=_0x5e70aa;this['_setResource'](_0x3d6111,_0x1727d0,x(this[_0x5a674b(0x23d)][_0x5a674b(0x272)](_0x3d6111),_0x1727d0));}[_0x5e70aa(0x262)](_0x4266b9){const _0x3aecf1=_0x5e70aa;return y(this[_0x3aecf1(0x23d)]['get'](_0x4266b9));}[_0x5e70aa(0x213)](_0xfcd63d,_0x537a68){const _0x2c283c=_0x5e70aa;this[_0x2c283c(0x23d)]['set'](_0xfcd63d,y(_0x537a68)),this[_0x2c283c(0x263)][_0x2c283c(0x258)]({'unitId':_0xfcd63d});}[_0x5e70aa(0x264)](_0x15d625){const _0x37b3fd=_0x5e70aa;this[_0x37b3fd(0x23d)][_0x37b3fd(0x244)](_0x15d625),this[_0x37b3fd(0x263)][_0x37b3fd(0x258)]({'unitId':_0x15d625});}['dispose'](){const _0x512b36=_0x5e70aa;super['dispose'](),this[_0x512b36(0x23d)][_0x512b36(0x252)](),this[_0x512b36(0x263)][_0x512b36(0x219)]();}[_0x5e70aa(0x24a)](_0x11a29d,_0x564ff7,_0x4cddf8){const _0x4d43c6=_0x5e70aa;this[_0x4d43c6(0x23d)][_0x4d43c6(0x20b)](_0x11a29d,_0x4cddf8),this[_0x4d43c6(0x263)][_0x4d43c6(0x258)]({'unitId':_0x11a29d,'blockId':_0x564ff7});}};const Te={'id':_0x5e70aa(0x243),'type':_0x2aabf9[_0x5e70aa(0x227)],'handler':(_0x5051ff,_0xbc90dd)=>!(_0xbc90dd!=null&&_0xbc90dd[_0x5e70aa(0x236)])||!_0xbc90dd[_0x5e70aa(0x205)]?!0x1:(_0x5051ff[_0x5e70aa(0x272)](w)[_0x5e70aa(0x28c)](_0xbc90dd[_0x5e70aa(0x236)],_0xbc90dd['blockId'],_0xbc90dd[_0x5e70aa(0x285)]),!0x0)},T={'id':_0x5e70aa(0x27d),'type':_0x2aabf9['MUTATION'],'handler':(_0x54a800,_0x439cb5)=>!(_0x439cb5!=null&&_0x439cb5['unitId'])||!_0x439cb5[_0x5e70aa(0x205)]?!0x1:(_0x54a800['get'](w)[_0x5e70aa(0x21f)](_0x439cb5['unitId'],_0x439cb5[_0x5e70aa(0x205)]),!0x0)},Ee=_0x5e70aa(0x247);var E=class extends Error{constructor(_0x16bd28=_0x5e70aa(0x1fa)){super(_0x16bd28);}};function De(_0x343443){const _0x27cd68=_0x5e70aa;var _0x95798b;let _0x327efe=O(_0x343443[_0x27cd68(0x211)]),_0x8918ba=A(_0x327efe),_0x3dd898=ke(_0x343443[_0x27cd68(0x240)],_0x343443['endOffset']),_0x17f79c=_0x3dd898?(_0x95798b=_0x8918ba[_0x27cd68(0x221)])==null?void 0x0:_0x95798b[_0x27cd68(0x286)](_0x1d9221=>{const _0x32bc86=_0x27cd68;let _0x3278a6=_0x25d697(_0x1d9221);return _0x3278a6['startOffset']===_0x3dd898[_0x32bc86(0x240)]&&_0x3278a6[_0x32bc86(0x246)]===_0x3dd898[_0x32bc86(0x246)];}):void 0x0,{startOffset:_0x2d075f,endOffset:_0x184f0c}=_0x17f79c?_0x3dd898:We(_0x8918ba,_0x343443[_0x27cd68(0x240)],_0x343443[_0x27cd68(0x246)],_0x343443[_0x27cd68(0x1f4)]);if(!_0x17f79c&&Ae(_0x8918ba,_0x2d075f,_0x184f0c))throw new E(_0x27cd68(0x203));let _0x32f3ca=qe(_0x8918ba,_0x2d075f,_0x184f0c),_0x19cf68=(_0x17f79c==null?void 0x0:_0x17f79c[_0x27cd68(0x205)])??_0x343443[_0x27cd68(0x205)],_0x5a120f=b(_0x343443[_0x27cd68(0x26f)],_0x19cf68,{...Se,..._0x343443[_0x27cd68(0x285)]});if(_0x17f79c)return _0x17f79c[_0x27cd68(0x1e9)]=_0x58ea90[_0x27cd68(0x218)],Oe(_0x8918ba,_0x2d075f,_0x184f0c),ze(_0x8918ba,_0x2d075f,_0x184f0c,_0x32f3ca),N(_0x8918ba,_0x17f79c),{'nextDocumentData':_0x327efe,'nextMetadata':_0x5a120f,'cursorOffset':_0x2d075f+0x1};if(_0x2d075f===_0x184f0c){var _0x162959,_0x2de28f;let _0x4be6c8=''+_0x430e4a[_0x27cd68(0x1fd)]+_0x430e4a[_0x27cd68(0x24f)]+_0x430e4a[_0x27cd68(0x1f9)];P(_0x8918ba,_0x2d075f,_0x4be6c8,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0xb483bf(new Set((_0x162959=_0x8918ba['paragraphs'])==null?void 0x0:_0x162959[_0x27cd68(0x214)](_0x17e7ad=>_0x17e7ad['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x32f3ca)}],'blockRanges':[{'blockId':_0x19cf68,'blockType':_0x58ea90['CODE'],'startIndex':0x0,'endIndex':_0x4be6c8['length']-0x1}]});let _0x1d4bbc=(_0x2de28f=_0x8918ba[_0x27cd68(0x221)])==null?void 0x0:_0x2de28f[_0x27cd68(0x286)](_0x35d554=>_0x35d554['blockId']===_0x19cf68);return _0x1d4bbc&&N(_0x8918ba,_0x1d4bbc),{'nextDocumentData':_0x327efe,'nextMetadata':_0x5a120f,'cursorOffset':_0x2d075f+0x1};}P(_0x8918ba,_0x184f0c,_0x430e4a[_0x27cd68(0x1f9)]),P(_0x8918ba,_0x2d075f,_0x430e4a[_0x27cd68(0x1fd)]),ze(_0x8918ba,_0x2d075f,_0x184f0c+0x1,_0x32f3ca);let _0xae0a08={'blockId':_0x19cf68,'blockType':_0x58ea90[_0x27cd68(0x218)],'startIndex':_0x2d075f,'endIndex':_0x184f0c+0x1};return _0x8918ba[_0x27cd68(0x221)]=[..._0x8918ba[_0x27cd68(0x221)]??[],_0xae0a08]['sort']((_0x3cc076,_0x592331)=>_0x3cc076[_0x27cd68(0x1ef)]-_0x592331[_0x27cd68(0x1ef)]),N(_0x8918ba,_0xae0a08),{'nextDocumentData':_0x327efe,'nextMetadata':_0x5a120f,'cursorOffset':_0x2d075f+0x1};}function Oe(_0x1d03ec,_0x5a7ea0,_0x13df2f){const _0x23f9ab=_0x5e70aa;(_0x1d03ec['paragraphs']??[])[_0x23f9ab(0x222)](_0x4afe41=>_0x4afe41[_0x23f9ab(0x1ef)]>_0x5a7ea0&&_0x4afe41[_0x23f9ab(0x1ef)]<_0x13df2f)['forEach'](_0x5102c6=>{const _0x5bcfbb=_0x23f9ab;let _0x16f035={..._0x5102c6[_0x5bcfbb(0x231)]??{}};delete _0x16f035['spaceAbove'],delete _0x16f035[_0x5bcfbb(0x1f7)],_0x5102c6[_0x5bcfbb(0x231)]=_0x16f035;});}function ke(_0x3dd81c,_0x46dfd5){const _0x2bc137=_0x5e70aa;return _0x3dd81c==null||_0x46dfd5==null||_0x3dd81c===_0x46dfd5?null:{'startOffset':Math['min'](_0x3dd81c,_0x46dfd5),'endOffset':Math[_0x2bc137(0x22c)](_0x3dd81c,_0x46dfd5)};}function Ae(_0x10113a,_0x4bb37a,_0x54b4b6){const _0x1c1ead=_0x5e70aa;return(_0x10113a[_0x1c1ead(0x221)]??[])['some'](_0x31768c=>{let _0x4fbf59=_0x25d697(_0x31768c);return _0x4bb37a===_0x54b4b6?_0x22cea4(_0x4fbf59,_0x4bb37a):_0x21add1(_0x4fbf59,{'startOffset':_0x4bb37a,'endOffset':_0x54b4b6});});}function je(_0x13ddb5){const _0x15bfd9=_0x5e70aa;return{'nextDocumentData':O(_0x13ddb5[_0x15bfd9(0x211)]),'nextMetadata':b(_0x13ddb5[_0x15bfd9(0x26f)],_0x13ddb5[_0x15bfd9(0x205)],_0x13ddb5[_0x15bfd9(0x285)]),'cursorOffset':0x0};}function D(_0x5de4d8){const _0x578f4b=_0x5e70aa;let _0x4ea211=O(_0x5de4d8[_0x578f4b(0x211)]),_0x1b0d2a=A(_0x4ea211),_0xcf04c3=Fe(_0x1b0d2a,_0x5de4d8['blockId']);if(!_0xcf04c3)return null;let _0x355f50=He(_0x1b0d2a,_0xcf04c3);return{'nextDocumentData':_0x4ea211,'nextMetadata':x(_0x5de4d8[_0x578f4b(0x26f)],_0x5de4d8[_0x578f4b(0x205)]),'cursorOffset':_0x355f50};}function Me(_0x4298db){const _0xda77d3=_0x5e70aa;var _0x33d033;let _0x39d4c7=O(_0x4298db[_0xda77d3(0x211)]),_0x5d1339=A(_0x39d4c7),_0x56e121=Fe(_0x5d1339,_0x4298db['blockId']);if(!_0x56e121)return null;let _0x2fce51=_0x25d697(_0x56e121);return F(_0x5d1339,_0x2fce51[_0xda77d3(0x240)],_0x2fce51[_0xda77d3(0x246)]),_0x5d1339[_0xda77d3(0x221)]=(_0x33d033=_0x5d1339[_0xda77d3(0x221)])==null?void 0x0:_0x33d033[_0xda77d3(0x222)](_0x558a26=>_0x558a26[_0xda77d3(0x205)]!==_0x4298db[_0xda77d3(0x205)]),{'nextDocumentData':_0x39d4c7,'nextMetadata':x(_0x4298db[_0xda77d3(0x26f)],_0x4298db[_0xda77d3(0x205)]),'cursorOffset':_0x56e121[_0xda77d3(0x1ef)]};}function Ne(_0x3c2475){const _0x51754e=_0x5e70aa;let _0x205fc2=O(_0x3c2475[_0x51754e(0x211)]),_0x2d1f57=A(_0x205fc2),_0xbb71f4=Le(_0x2d1f57,_0x3c2475[_0x51754e(0x215)]);return _0xbb71f4&&Pe(_0x205fc2,_0x2d1f57,_0xbb71f4,_0x3c2475[_0x51754e(0x215)],_0x3c2475[_0x51754e(0x20e)])||null;}function Pe(_0x632917,_0x4739ed,_0x5f2694,_0x59c0e8,_0x5a8c31){const _0x1db21e=_0x5e70aa;let _0x278630=$e(_0x4739ed,_0x5f2694,_0x59c0e8,_0x5a8c31);if(!_0x278630)return null;let _0x1b0a2a=_0x278630['endTokenOffset']-0x1;return F(_0x4739ed,_0x278630[_0x1db21e(0x1ea)][_0x1db21e(0x1ef)],_0x278630[_0x1db21e(0x1ea)][_0x1db21e(0x1ef)]+0x1),{'nextDocumentData':_0x632917,'cursorOffset':_0x1b0a2a};}function Fe(_0x5ab6bc,_0x172318){const _0x230d90=_0x5e70aa;var _0x600583;return _0x5ab6bc==null||(_0x600583=_0x5ab6bc[_0x230d90(0x221)])==null?void 0x0:_0x600583[_0x230d90(0x286)](_0x30f301=>_0x30f301['blockType']===_0x58ea90[_0x230d90(0x218)]&&_0x30f301[_0x230d90(0x205)]===_0x172318);}function Ie(_0x12ddb1){const _0x1840c1=_0x5e70aa;let _0x5e68c8=_0x12ddb1[_0x1840c1(0x211)]['body'];if(!_0x5e68c8)return!0x1;let _0xd55ee=_0x12ddb1[_0x1840c1(0x253)]==='left'?_0x12ddb1[_0x1840c1(0x215)]-0x1:_0x12ddb1[_0x1840c1(0x215)],_0x18f574=_0x12ddb1[_0x1840c1(0x253)]===_0x1840c1(0x238)?_0x12ddb1[_0x1840c1(0x215)]+0x1:_0xd55ee;return(_0x5e68c8['blockRanges']??[])[_0x1840c1(0x1f3)](_0x24bb7e=>_0x24bb7e[_0x1840c1(0x1e9)]===_0x58ea90['CODE']?_0xd55ee===_0x24bb7e[_0x1840c1(0x1ef)]||_0xd55ee===_0x24bb7e['endIndex']||_0x18f574===_0x24bb7e[_0x1840c1(0x1ef)]||_0x18f574===_0x24bb7e[_0x1840c1(0x267)]:!0x1);}function Le(_0x4c63ad,_0x15eb54){const _0x50472d=_0x5e70aa;var _0x543bac;return(_0x543bac=_0x4c63ad[_0x50472d(0x221)])==null?void 0x0:_0x543bac[_0x50472d(0x286)](_0x4b9867=>{const _0x25082e=_0x50472d;let _0x13c80c=M(_0x4b9867);return _0x4b9867[_0x25082e(0x1e9)]===_0x58ea90[_0x25082e(0x218)]&&_0x4b9867[_0x25082e(0x1ef)]<=_0x15eb54&&_0x15eb54<=_0x13c80c+0x2;});}function Re(_0x9f65b9,_0xf4b7f2,_0x1d9b3c=!0x1){const _0x4ec96c=_0x5e70aa;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x4e8187['TRUE'],'keepNext':_0xf4b7f2?_0x4e8187[_0x4ec96c(0x1e5)]:_0x4e8187[_0x4ec96c(0x235)],'widowControl':_0x4e8187[_0x4ec96c(0x235)],..._0x9f65b9&&_0x1d9b3c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x9d1722,_0x25e8f5,_0x15635d,_0x5cd7a9=!0x1){const _0x6d07c7=_0x5e70aa;let _0x4c28b2=(_0x9d1722[_0x6d07c7(0x1ee)]??[])[_0x6d07c7(0x222)](_0xa015df=>_0xa015df[_0x6d07c7(0x1ef)]>_0x25e8f5&&_0xa015df[_0x6d07c7(0x1ef)]<_0x15635d);_0x4c28b2[_0x6d07c7(0x23f)]((_0x475f61,_0xd5674d)=>{const _0x2b1687=_0x6d07c7;_0x475f61['paragraphStyle']={..._0x475f61[_0x2b1687(0x231)]??{},...Re(_0xd5674d===0x0,_0xd5674d===_0x4c28b2[_0x2b1687(0x275)]-0x1,_0x5cd7a9)};});}function Be(_0x55d512){const _0x5b3a0b=_0x5e70aa;var _0x530dd9,_0x3d9b7c;let _0x541bda={..._0x55d512??{}};return delete _0x541bda[_0x5b3a0b(0x1fb)],delete _0x541bda[_0x5b3a0b(0x27f)],delete _0x541bda[_0x5b3a0b(0x265)],delete _0x541bda['spaceBelow'],delete _0x541bda[_0x5b3a0b(0x260)],delete _0x541bda[_0x5b3a0b(0x208)],delete _0x541bda[_0x5b3a0b(0x21d)],((_0x530dd9=_0x541bda[_0x5b3a0b(0x26e)])==null?void 0x0:_0x530dd9['ff'])===Ee&&((_0x3d9b7c=_0x541bda[_0x5b3a0b(0x26e)])==null?void 0x0:_0x3d9b7c['fs'])===0xc&&delete _0x541bda[_0x5b3a0b(0x26e)],_0x541bda;}function Ve(_0x273213,_0x2adae9){const _0x3f2fdb=_0x5e70aa;let _0x4044c4=M(_0x2adae9);return(_0x273213['paragraphs']??[])[_0x3f2fdb(0x222)](_0x4a39b2=>_0x4a39b2['startIndex']>_0x2adae9[_0x3f2fdb(0x1ef)]&&_0x4a39b2[_0x3f2fdb(0x1ef)]<_0x4044c4);}function He(_0x59ab5b,_0x32024b){const _0x102694=_0x5e70aa;var _0x244b2c;let _0x21f559=M(_0x32024b);return Ve(_0x59ab5b,_0x32024b)[_0x102694(0x23f)](_0x395e5f=>{const _0x23bf1d=_0x102694;_0x395e5f[_0x23bf1d(0x231)]=Be(_0x395e5f['paragraphStyle']);}),F(_0x59ab5b,_0x21f559,_0x21f559+0x1),F(_0x59ab5b,_0x32024b[_0x102694(0x1ef)],_0x32024b[_0x102694(0x1ef)]+0x1),_0x59ab5b[_0x102694(0x221)]=(_0x244b2c=_0x59ab5b['blockRanges'])==null?void 0x0:_0x244b2c[_0x102694(0x222)](_0x154b7c=>_0x154b7c[_0x102694(0x205)]!==_0x32024b[_0x102694(0x205)]),_0x32024b[_0x102694(0x1ef)];}function O(_0x212aae){const _0x22401d=_0x5e70aa;return{..._0x212aae,'body':_0x212aae[_0x22401d(0x261)]?Ue(_0x212aae['body']):_0x212aae[_0x22401d(0x261)]};}function Ue(_0x8b7fcd){const _0x58cce1=_0x5e70aa;var _0x37f01e,_0x76b98d,_0x24e7da,_0x1419f6,_0x583743,_0x781d3f,_0x200d8b,_0x1d482b,_0x760310;return{..._0x8b7fcd,'paragraphs':(_0x37f01e=_0x8b7fcd[_0x58cce1(0x1ee)])==null?void 0x0:_0x37f01e[_0x58cce1(0x214)](_0x2a2452=>({..._0x2a2452,'bullet':k(_0x2a2452['bullet']),'paragraphStyle':k(_0x2a2452['paragraphStyle'])})),'sectionBreaks':(_0x76b98d=_0x8b7fcd[_0x58cce1(0x256)])==null?void 0x0:_0x76b98d[_0x58cce1(0x214)](_0x15dd21=>({..._0x15dd21})),'textRuns':(_0x24e7da=_0x8b7fcd[_0x58cce1(0x202)])==null?void 0x0:_0x24e7da['map'](_0x156d10=>({..._0x156d10})),'tables':(_0x1419f6=_0x8b7fcd['tables'])==null?void 0x0:_0x1419f6['map'](_0x190041=>({..._0x190041})),'columnGroups':(_0x583743=_0x8b7fcd['columnGroups'])==null?void 0x0:_0x583743['map'](_0x1ba2b8=>{const _0x9014f6=_0x58cce1;var _0x464605;return{..._0x1ba2b8,'columns':(_0x464605=_0x1ba2b8[_0x9014f6(0x21c)])==null?void 0x0:_0x464605['map'](_0x7b8cae=>k(_0x7b8cae))};}),'blockRanges':(_0x781d3f=_0x8b7fcd[_0x58cce1(0x221)])==null?void 0x0:_0x781d3f[_0x58cce1(0x214)](_0x51b8e1=>({..._0x51b8e1})),'customRanges':(_0x200d8b=_0x8b7fcd['customRanges'])==null?void 0x0:_0x200d8b[_0x58cce1(0x214)](_0x44ac1b=>({..._0x44ac1b})),'customDecorations':(_0x1d482b=_0x8b7fcd['customDecorations'])==null?void 0x0:_0x1d482b[_0x58cce1(0x214)](_0x5aafac=>({..._0x5aafac})),'customBlocks':(_0x760310=_0x8b7fcd[_0x58cce1(0x223)])==null?void 0x0:_0x760310[_0x58cce1(0x214)](_0x19c664=>({..._0x19c664}))};}function k(_0x2249f6){const _0x2c2233=_0x5e70aa;return Array[_0x2c2233(0x1e7)](_0x2249f6)?_0x2249f6[_0x2c2233(0x214)](_0x8e4901=>k(_0x8e4901)):!_0x2249f6||typeof _0x2249f6!=_0x2c2233(0x216)?_0x2249f6:Object[_0x2c2233(0x201)](Object['entries'](_0x2249f6)[_0x2c2233(0x214)](([_0x56a0ad,_0x53d430])=>[_0x56a0ad,k(_0x53d430)]));}function A(_0xbc4c5f){const _0x4e5f76=_0x5e70aa;if(!_0xbc4c5f['body'])throw Error(_0x4e5f76(0x1ec));return _0xbc4c5f[_0x4e5f76(0x261)];}function We(_0x3b9d35,_0x2d1368,_0x4add,_0x40d4b0=_0x5e70aa(0x21a)){const _0x288dd0=_0x5e70aa;if(_0x2d1368==null||_0x4add==null){let _0xb2ebfb=Ke(_0x3b9d35);return{'startOffset':_0xb2ebfb,'endOffset':_0xb2ebfb};}let _0x4a67c5=Math['min'](_0x2d1368,_0x4add),_0x5486de=Math['max'](_0x2d1368,_0x4add),_0x247a64=Ze(_0x3b9d35,_0x4a67c5,_0x5486de);return _0x4a67c5===_0x5486de?_0x40d4b0===_0x288dd0(0x1f8)?{'startOffset':_0x4a67c5,'endOffset':_0x5486de}:Ge(_0x3b9d35,_0x4a67c5,_0x247a64):Je(_0x3b9d35,_0x4a67c5,_0x5486de,_0x247a64);}function Ge(_0x5d650d,_0x4ebfd4,_0x1daa73){const _0x30b9c3=_0x5e70aa;let _0x14bc06=Ye(_0x5d650d,_0x4ebfd4);if(_0x14bc06){let _0x298647=j(_0x5d650d,_0x14bc06,_0x1daa73);if(_0x298647<_0x14bc06[_0x30b9c3(0x1ef)])return{'startOffset':_0x298647,'endOffset':_0x1daa73?Math[_0x30b9c3(0x1e4)](_0x14bc06[_0x30b9c3(0x1ef)]+0x1,_0x1daa73[_0x30b9c3(0x246)]):_0x14bc06[_0x30b9c3(0x1ef)]+0x1};}let _0x5ad781=_0x4ebfd4===0x0&&_0x5d650d[_0x30b9c3(0x251)][0x0]===_0x430e4a[_0x30b9c3(0x24f)]?0x1:_0x4ebfd4;return{'startOffset':_0x5ad781,'endOffset':_0x5ad781};}function _0x196d(_0x1f0c12,_0x44237a){_0x1f0c12=_0x1f0c12-0x1e4;const _0xfdd710=_0xfdd7();let _0x196dfb=_0xfdd710[_0x1f0c12];return _0x196dfb;}function Ke(_0x46da8e){const _0x1ebe90=_0x5e70aa;return _0x46da8e[_0x1ebe90(0x251)]['endsWith'](_0x430e4a[_0x1ebe90(0x23e)])?Math['max'](0x0,_0x46da8e['dataStream'][_0x1ebe90(0x275)]-0x1):_0x46da8e[_0x1ebe90(0x251)][_0x1ebe90(0x275)];}function qe(_0x5ab6a3,_0xbb8e05,_0xfdf0d6){const _0xca0928=_0x5e70aa;var _0x4a82cd;let _0x64938a=Math[_0xca0928(0x1e4)](_0xbb8e05,_0xfdf0d6),_0x5320a1=Math['max'](_0xbb8e05,_0xfdf0d6);return!!((_0x4a82cd=_0x5ab6a3[_0xca0928(0x268)])!=null&&_0x4a82cd[_0xca0928(0x1f3)](_0x252850=>_0x64938a>_0x252850[_0xca0928(0x1ef)]&&_0x64938a<_0x252850[_0xca0928(0x267)]||_0x5320a1>_0x252850[_0xca0928(0x1ef)]&&_0x5320a1<_0x252850['endIndex']||_0x64938a<=_0x252850['startIndex']&&_0x5320a1>=_0x252850['endIndex']));}function Je(_0xa99559,_0x2a90bc,_0xcbcedd,_0x5e0c11){const _0x20f1c0=_0x5e70aa;let _0x2ef573=[..._0xa99559[_0x20f1c0(0x1ee)]??[]][_0x20f1c0(0x26b)]((_0x21b45a,_0x1777d1)=>_0x21b45a[_0x20f1c0(0x1ef)]-_0x1777d1[_0x20f1c0(0x1ef)]),_0x1fe997=_0x1f839d(_0xa99559),_0x53209a=_0x2ef573[_0x20f1c0(0x286)](_0x2bf147=>j(_0xa99559,_0x2bf147,_0x5e0c11,_0x1fe997)<=_0x2a90bc&&_0x2a90bc<=_0x2bf147[_0x20f1c0(0x1ef)]),_0xf2ddc1=_0x2ef573[_0x20f1c0(0x286)](_0x4719ad=>_0x4719ad[_0x20f1c0(0x1ef)]>=_0xcbcedd-0x1)??_0x2ef573[_0x2ef573[_0x20f1c0(0x275)]-0x1];return{'startOffset':_0x53209a?j(_0xa99559,_0x53209a,_0x5e0c11,_0x1fe997):_0x2a90bc,'endOffset':_0xf2ddc1?Xe(_0xf2ddc1,_0x5e0c11):_0xcbcedd};}function Ye(_0x45e59b,_0x5b64f0){const _0x43416b=_0x5e70aa;let _0x337c1f=[..._0x45e59b[_0x43416b(0x1ee)]??[]]['sort']((_0x5bf49d,_0x33ca6e)=>_0x5bf49d[_0x43416b(0x1ef)]-_0x33ca6e['startIndex']),_0x22d0aa=_0x1f839d(_0x45e59b);return _0x337c1f['find'](_0x5e194e=>(_0x22d0aa['get'](_0x5e194e['startIndex'])??0x0)<=_0x5b64f0&&_0x5b64f0<=_0x5e194e[_0x43416b(0x1ef)]);}function j(_0x6e7214,_0x424195,_0x3c9bdb,_0x3fb235){const _0x2c70dc=_0x5e70aa;let _0x343115=(_0x3fb235==null?void 0x0:_0x3fb235['get'](_0x424195['startIndex']))??_0x3d99b8(_0x6e7214,_0x424195);return _0x3c9bdb?Math[_0x2c70dc(0x22c)](_0x343115,_0x3c9bdb[_0x2c70dc(0x240)]):_0x343115;}function Xe(_0x3c3fa9,_0x547718){const _0x64deb8=_0x5e70aa;let _0x1d3147=_0x3c3fa9[_0x64deb8(0x1ef)]+0x1;return _0x547718?Math[_0x64deb8(0x1e4)](_0x1d3147,_0x547718[_0x64deb8(0x246)]):_0x1d3147;}function Ze(_0x5c6968,_0xaa94c8,_0x4d4743){const _0x2eb446=_0x5e70aa;let _0x192a4a=Qe(_0x5c6968,_0xaa94c8),_0x4ddea8=Qe(_0x5c6968,_0xaa94c8===_0x4d4743?_0x4d4743:Math[_0x2eb446(0x22c)](_0xaa94c8,_0x4d4743-0x1));if(_0x192a4a||_0x4ddea8){if(!_0x192a4a||!_0x4ddea8||_0x192a4a[_0x2eb446(0x28a)]!==_0x4ddea8[_0x2eb446(0x28a)]||_0x192a4a['endTokenOffset']!==_0x4ddea8[_0x2eb446(0x1f5)])throw new E();return _0x192a4a;}}function Qe(_0x40d2b0,_0x2ba85b){const _0x1d1b73=_0x5e70aa;let _0x39831d=_0x40d2b0[_0x1d1b73(0x251)],_0xaeece8=-0x1;for(let _0x58e6d3=Math[_0x1d1b73(0x1e4)](_0x2ba85b,_0x39831d[_0x1d1b73(0x275)]-0x1);_0x58e6d3>=0x0;_0x58e6d3--){let _0x1222b4=_0x39831d[_0x58e6d3];if(_0x1222b4===_0x430e4a[_0x1d1b73(0x241)])return;if(_0x1222b4===_0x430e4a[_0x1d1b73(0x288)]){_0xaeece8=_0x58e6d3;break;}}if(_0xaeece8<0x0)return;let _0x440a01=_0x39831d[_0x1d1b73(0x20d)](_0x430e4a[_0x1d1b73(0x241)],_0xaeece8+0x1);if(!(_0x440a01<0x0||_0x2ba85b<_0xaeece8+0x1||_0x2ba85b>_0x440a01-0x1))return{'startOffset':_0xaeece8+0x1,'endOffset':Math['max'](_0xaeece8+0x1,_0x440a01-0x1),'startTokenOffset':_0xaeece8,'endTokenOffset':_0x440a01};}function M(_0xb27f9){const _0x9422ec=_0x5e70aa;return _0x25d697(_0xb27f9)[_0x9422ec(0x246)]-0x1;}function $e(_0x4df216,_0x2afff8,_0x4ca60c,_0x437503){const _0x4fe7c7=_0x5e70aa;let _0x5525ed=M(_0x2afff8),_0x46853d=(_0x4df216['paragraphs']??[])[_0x4fe7c7(0x286)](_0x17d020=>_0x17d020[_0x4fe7c7(0x1ef)]===_0x5525ed+0x1);if(!_0x46853d||_0x437503!=null&&_0x46853d[_0x4fe7c7(0x1ef)]!==_0x437503||_0x4ca60c!=null&&(_0x4ca60c<_0x5525ed||_0x4ca60c>_0x46853d[_0x4fe7c7(0x1ef)]+0x1)||_0x4df216['dataStream'][_0x46853d[_0x4fe7c7(0x1ef)]]!==_0x430e4a[_0x4fe7c7(0x24f)])return null;let _0x11d479=_0x3d99b8(_0x4df216,_0x46853d),_0x35c5bb=_0x4df216[_0x4fe7c7(0x251)][_0x4fe7c7(0x20f)](_0x11d479,_0x46853d[_0x4fe7c7(0x1ef)]);return Array[_0x4fe7c7(0x26d)](_0x35c5bb)['every'](_0x336df7=>_0x336df7===_0x430e4a[_0x4fe7c7(0x1f9)])?{'paragraph':_0x46853d,'endTokenOffset':_0x5525ed}:null;}function N(_0x13f514,_0x2fda48){const _0x5a3413=_0x5e70aa;var _0x46ef98;let _0x35fcf5=M(_0x2fda48),_0x999c02=_0x13f514[_0x5a3413(0x251)][_0x35fcf5+0x1];(_0x999c02===_0x430e4a[_0x5a3413(0x23e)]||_0x999c02===void 0x0)&&P(_0x13f514,_0x35fcf5+0x1,_0x430e4a[_0x5a3413(0x24f)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0xb483bf(new Set((_0x46ef98=_0x13f514[_0x5a3413(0x1ee)])==null?void 0x0:_0x46ef98[_0x5a3413(0x214)](_0x56b583=>_0x56b583['paragraphId'])))}]});}function P(_0x2dc3d5,_0x274c62,_0x377b13,_0x7c61fb={}){const _0x55ef28=_0x5e70aa;var _0x547b0f,_0x3a891d;_0x377b13&&(_0x2dc3d5[_0x55ef28(0x251)]=''+_0x2dc3d5[_0x55ef28(0x251)][_0x55ef28(0x20f)](0x0,_0x274c62)+_0x377b13+_0x2dc3d5['dataStream']['slice'](_0x274c62),et(_0x2dc3d5,_0x274c62,_0x377b13[_0x55ef28(0x275)]),(_0x547b0f=_0x7c61fb[_0x55ef28(0x1ee)])!=null&&_0x547b0f[_0x55ef28(0x275)]&&(_0x2dc3d5['paragraphs']=[..._0x2dc3d5['paragraphs']??[],..._0x7c61fb[_0x55ef28(0x1ee)][_0x55ef28(0x214)](_0x1d2672=>({..._0x1d2672,'startIndex':_0x1d2672[_0x55ef28(0x1ef)]+_0x274c62}))][_0x55ef28(0x26b)]((_0x176017,_0x9f7351)=>_0x176017[_0x55ef28(0x1ef)]-_0x9f7351['startIndex'])),(_0x3a891d=_0x7c61fb[_0x55ef28(0x221)])!=null&&_0x3a891d[_0x55ef28(0x275)]&&(_0x2dc3d5['blockRanges']=[..._0x2dc3d5[_0x55ef28(0x221)]??[],..._0x7c61fb['blockRanges'][_0x55ef28(0x214)](_0x4559c2=>({..._0x4559c2,'startIndex':_0x4559c2[_0x55ef28(0x1ef)]+_0x274c62,'endIndex':_0x4559c2[_0x55ef28(0x267)]+_0x274c62}))][_0x55ef28(0x26b)]((_0x436ed0,_0x1f93dc)=>_0x436ed0['startIndex']-_0x1f93dc['startIndex'])));}function F(_0x577f7b,_0x3ea8c1,_0x37adbf){const _0x5bc266=_0x5e70aa;let _0x8bc539=_0x37adbf-_0x3ea8c1;_0x577f7b[_0x5bc266(0x251)]=''+_0x577f7b['dataStream'][_0x5bc266(0x20f)](0x0,_0x3ea8c1)+_0x577f7b[_0x5bc266(0x251)]['slice'](_0x37adbf),tt(_0x577f7b,_0x3ea8c1,_0x8bc539);}function et(_0x43da06,_0x122906,_0x1a2954){const _0x495803=_0x5e70aa;_0x43da06[_0x495803(0x1ee)]=I(_0x43da06['paragraphs'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x256)]=I(_0x43da06[_0x495803(0x256)],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x223)]=I(_0x43da06['customBlocks'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x202)]=nt(_0x43da06['textRuns'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x268)]=rt(_0x43da06['tables'],_0x122906,_0x1a2954),_0x43da06['columnGroups']=R(_0x43da06['columnGroups'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x21b)]=R(_0x43da06[_0x495803(0x21b)],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x206)]=R(_0x43da06[_0x495803(0x206)],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x221)]=R(_0x43da06[_0x495803(0x221)],_0x122906,_0x1a2954);}function tt(_0x5d1e27,_0x3bbb3b,_0x33d7b8){const _0x38253a=_0x5e70aa;var _0x35b39d,_0x372b74;_0x5d1e27[_0x38253a(0x1ee)]=L(_0x5d1e27[_0x38253a(0x1ee)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x256)]=L(_0x5d1e27[_0x38253a(0x256)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x223)]=L(_0x5d1e27[_0x38253a(0x223)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x202)]=(_0x35b39d=it((_0x372b74=_0x5d1e27['textRuns'])==null?void 0x0:_0x372b74['map'](_0x2ad87d=>({..._0x2ad87d,'startIndex':_0x2ad87d['st'],'endIndex':_0x2ad87d['ed']})),_0x3bbb3b,_0x33d7b8))==null?void 0x0:_0x35b39d['map'](_0x9bdb86=>{let {startIndex:_0x140991,endIndex:_0x9145d6,..._0x49ebfb}=_0x9bdb86;return{..._0x49ebfb,'st':_0x140991,'ed':_0x9145d6};}),_0x5d1e27[_0x38253a(0x268)]=it(_0x5d1e27[_0x38253a(0x268)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x1fe)]=z(_0x5d1e27[_0x38253a(0x1fe)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x21b)]=z(_0x5d1e27[_0x38253a(0x21b)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x206)]=z(_0x5d1e27['customDecorations'],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x221)]=z(_0x5d1e27[_0x38253a(0x221)],_0x3bbb3b,_0x33d7b8);}function I(_0x6570a7,_0x270242,_0x235bd2){const _0x44287f=_0x5e70aa;return _0x6570a7==null?void 0x0:_0x6570a7[_0x44287f(0x214)](_0x5c005d=>_0x5c005d[_0x44287f(0x1ef)]>=_0x270242?{..._0x5c005d,'startIndex':_0x5c005d[_0x44287f(0x1ef)]+_0x235bd2}:_0x5c005d);}function L(_0x2378ed,_0x2662c9,_0x551562){const _0x2e5386=_0x5e70aa;let _0x5c6c32=_0x2662c9+_0x551562;return _0x2378ed==null?void 0x0:_0x2378ed['map'](_0x541ebc=>_0x541ebc[_0x2e5386(0x1ef)]>=_0x2662c9&&_0x541ebc[_0x2e5386(0x1ef)]<_0x5c6c32?null:_0x541ebc[_0x2e5386(0x1ef)]>=_0x5c6c32?{..._0x541ebc,'startIndex':_0x541ebc[_0x2e5386(0x1ef)]-_0x551562}:_0x541ebc)['filter'](_0x3b10e7=>_0x3b10e7!=null);}function nt(_0x4c7e36,_0x1137f9,_0x5f0a97){const _0x202ce4=_0x5e70aa;return _0x4c7e36==null?void 0x0:_0x4c7e36[_0x202ce4(0x214)](_0x23f972=>_0x23f972['st']>=_0x1137f9?{..._0x23f972,'st':_0x23f972['st']+_0x5f0a97,'ed':_0x23f972['ed']+_0x5f0a97}:_0x23f972['ed']>_0x1137f9?{..._0x23f972,'ed':_0x23f972['ed']+_0x5f0a97}:_0x23f972);}function R(_0x4bcd6e,_0x42bc5e,_0x49fb14){const _0x46b157=_0x5e70aa;return _0x4bcd6e==null?void 0x0:_0x4bcd6e[_0x46b157(0x214)](_0xafeaf5=>_0x381408(_0xafeaf5,_0x42bc5e,_0x49fb14));}function rt(_0x4b30de,_0x3d69e4,_0x12b5b7){const _0x29eb07=_0x5e70aa;return _0x4b30de==null?void 0x0:_0x4b30de[_0x29eb07(0x214)](_0x36e6ea=>_0x29d384(_0x36e6ea,_0x3d69e4,_0x12b5b7));}function z(_0x2edcf6,_0x53211d,_0x34084e){const _0x1fe53c=_0x5e70aa;return _0x2edcf6==null?void 0x0:_0x2edcf6[_0x1fe53c(0x214)](_0x2680c8=>_0x42032c(_0x2680c8,_0x53211d,_0x34084e))[_0x1fe53c(0x222)](_0x18e39d=>_0x18e39d!=null);}function it(_0x12bc29,_0xea50d2,_0x28847b){const _0x1dd144=_0x5e70aa;return _0x12bc29==null?void 0x0:_0x12bc29[_0x1dd144(0x214)](_0x553b30=>_0x1caa6f(_0x553b30,_0xea50d2,_0x28847b))['filter'](_0x1bf902=>_0x1bf902!=null);}const at={'id':'docs-code.command.insert-below','type':_0x2aabf9[_0x5e70aa(0x242)],'handler':_0x3cd532=>{const _0x537579=_0x5e70aa;var _0x19b1ef;if(_0x2f5dc4(G(_0x3cd532)))return!0x1;let _0x1ee139=_0xf77ce(_0x3cd532);if(_0x1ee139)return _0x3cd532[_0x537579(0x272)](_0x345515)[_0x537579(0x20a)](B['id'],{'startOffset':_0x1ee139['startOffset'],'endOffset':_0x1ee139[_0x537579(0x246)],'insertionMode':_0x537579(0x1f8),'unitId':_0x1ee139[_0x537579(0x236)]});let _0x3619e4=ft(_0x3cd532);if(!_0x3619e4)return!0x1;let _0x20f1bb=(_0x19b1ef=_0x3cd532[_0x537579(0x272)](_0x7eb0f5)[_0x537579(0x204)](_0x221a97[_0x537579(0x1f6)]))==null?void 0x0:_0x19b1ef[_0x537579(0x23c)](),_0x47bfee=_0x20f1bb?_0x39af8b(_0x20f1bb,_0x3619e4):_0x3619e4[_0x537579(0x1ef)]+0x1;return _0x3cd532[_0x537579(0x272)](_0x345515)[_0x537579(0x20a)](B['id'],{'startOffset':_0x47bfee,'endOffset':_0x47bfee});}},ot={'id':'docs-code.command.consume-boundary-delete','type':_0x2aabf9[_0x5e70aa(0x242)],'handler':()=>!0x0},B={'id':_0x5e70aa(0x270),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x12a2e9,_0x49c5bc)=>{const _0x1b92f9=_0x5e70aa;let _0x117cf2=W(_0x12a2e9,_0x49c5bc==null?void 0x0:_0x49c5bc[_0x1b92f9(0x236)]);if(!_0x117cf2)return!0x1;let _0x4f101b=G(_0x12a2e9);if(_0x2f5dc4(_0x4f101b))return!0x1;let _0x54aa34=_0x117cf2[_0x1b92f9(0x22f)][_0x1b92f9(0x262)](_0x117cf2[_0x1b92f9(0x236)]),_0x2b0d83=lt(_0x49c5bc,_0x4f101b),_0x1b89ab=ut(_0x117cf2['previousDocumentData'],_0x2b0d83);if(_0x1b89ab){if(_0x1b89ab[_0x1b92f9(0x1e9)]!==_0x58ea90[_0x1b92f9(0x218)])return!0x1;let _0x179e7c=D({'blockId':_0x1b89ab[_0x1b92f9(0x205)],'documentData':_0x117cf2[_0x1b92f9(0x21e)],'metadata':_0x54aa34});if(!_0x179e7c)return!0x1;let _0x12f3f0=Y(_0x117cf2['commandService'],_0x117cf2[_0x1b92f9(0x274)],_0x117cf2[_0x1b92f9(0x236)],_0x117cf2[_0x1b92f9(0x21e)],_0x179e7c[_0x1b92f9(0x232)],B['id'],_0x179e7c[_0x1b92f9(0x215)]);return _0x12f3f0&&_0x179e7c[_0x1b92f9(0x1eb)]&&_0x117cf2[_0x1b92f9(0x22f)]['deserialize'](_0x117cf2['unitId'],_0x179e7c[_0x1b92f9(0x1eb)]),_0x12f3f0;}let _0x24163f=(_0x49c5bc==null?void 0x0:_0x49c5bc[_0x1b92f9(0x205)])??_0x185e0f(0x6),_0x471bcb;try{_0x471bcb=De({'blockId':_0x24163f,'config':_0x49c5bc==null?void 0x0:_0x49c5bc[_0x1b92f9(0x285)],'documentData':_0x117cf2[_0x1b92f9(0x21e)],'endOffset':_0x2b0d83==null?void 0x0:_0x2b0d83['endOffset'],'insertionMode':_0x49c5bc==null?void 0x0:_0x49c5bc['insertionMode'],'metadata':_0x54aa34,'startOffset':_0x2b0d83==null?void 0x0:_0x2b0d83[_0x1b92f9(0x240)]});}catch(_0x394658){if(_0x394658 instanceof E)return!0x1;throw _0x394658;}let _0xe28ffd=Y(_0x117cf2[_0x1b92f9(0x276)],_0x117cf2['selectionManager'],_0x117cf2['unitId'],_0x117cf2[_0x1b92f9(0x21e)],_0x471bcb[_0x1b92f9(0x232)],B['id'],_0x471bcb[_0x1b92f9(0x215)]);return _0xe28ffd&&_0x471bcb[_0x1b92f9(0x1eb)]&&_0x117cf2[_0x1b92f9(0x22f)][_0x1b92f9(0x213)](_0x117cf2[_0x1b92f9(0x236)],_0x471bcb[_0x1b92f9(0x1eb)]),_0xe28ffd;}},st={'id':_0x5e70aa(0x27a),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x461f14,_0x76c611)=>{const _0x2944a0=_0x5e70aa;if(!_0x76c611)return!0x1;let _0x3e378f=W(_0x461f14,_0x76c611['unitId']);if(!_0x3e378f)return!0x1;let _0x1e8e3a=je({'blockId':_0x76c611[_0x2944a0(0x205)],'config':_0x76c611['config'],'documentData':_0x3e378f[_0x2944a0(0x21e)],'metadata':_0x3e378f['model'][_0x2944a0(0x262)](_0x3e378f[_0x2944a0(0x236)])});return _0x1e8e3a[_0x2944a0(0x1eb)]&&_0x3e378f[_0x2944a0(0x22f)][_0x2944a0(0x213)](_0x3e378f[_0x2944a0(0x236)],_0x1e8e3a[_0x2944a0(0x1eb)]),!0x0;}},ct={'id':_0x5e70aa(0x289),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x4ef755,_0x1d55d5)=>V[_0x5e70aa(0x24e)](_0x4ef755,_0x1d55d5)},V={'id':_0x5e70aa(0x248),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x81a8db,_0x18c032)=>{const _0x2199be=_0x5e70aa;if(!_0x18c032)return!0x1;let _0x2529ba=W(_0x81a8db,_0x18c032==null?void 0x0:_0x18c032[_0x2199be(0x236)]);if(!_0x2529ba)return!0x1;let _0x411b5b=D({'blockId':_0x18c032['blockId'],'documentData':_0x2529ba[_0x2199be(0x21e)],'metadata':_0x2529ba[_0x2199be(0x22f)][_0x2199be(0x262)](_0x2529ba[_0x2199be(0x236)])});if(!_0x411b5b)return!0x1;let _0x27b733=Y(_0x2529ba[_0x2199be(0x276)],_0x2529ba[_0x2199be(0x274)],_0x2529ba['unitId'],_0x2529ba[_0x2199be(0x21e)],_0x411b5b[_0x2199be(0x232)],V['id'],_0x411b5b[_0x2199be(0x215)]);return _0x27b733&&_0x411b5b['nextMetadata']&&_0x2529ba[_0x2199be(0x22f)][_0x2199be(0x213)](_0x2529ba[_0x2199be(0x236)],_0x411b5b[_0x2199be(0x1eb)]),_0x27b733;}},H={'id':_0x5e70aa(0x26a),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x280fec,_0x421b89)=>{const _0x2d03ab=_0x5e70aa;if(!_0x421b89)return!0x1;let _0x479ab9=W(_0x280fec,_0x421b89==null?void 0x0:_0x421b89['unitId']);if(!_0x479ab9)return!0x1;let _0x200336=Me({'blockId':_0x421b89['blockId'],'documentData':_0x479ab9['previousDocumentData'],'metadata':_0x479ab9[_0x2d03ab(0x22f)]['serialize'](_0x479ab9[_0x2d03ab(0x236)])});if(!_0x200336)return!0x1;let _0x4f6699=Y(_0x479ab9[_0x2d03ab(0x276)],_0x479ab9[_0x2d03ab(0x274)],_0x479ab9[_0x2d03ab(0x236)],_0x479ab9[_0x2d03ab(0x21e)],_0x200336['nextDocumentData'],H['id'],_0x200336[_0x2d03ab(0x215)]);return _0x4f6699&&_0x200336[_0x2d03ab(0x1eb)]&&_0x479ab9[_0x2d03ab(0x22f)][_0x2d03ab(0x213)](_0x479ab9[_0x2d03ab(0x236)],_0x200336[_0x2d03ab(0x1eb)]),_0x4f6699;}},U={'id':_0x5e70aa(0x259),'type':_0x2aabf9['COMMAND'],'handler':(_0x404910,_0x447b0c)=>{const _0x2b7736=_0x5e70aa;var _0x1259ca;let _0x640ac7=W(_0x404910,_0x447b0c==null?void 0x0:_0x447b0c[_0x2b7736(0x236)]);if(!_0x640ac7)return!0x1;let _0x67db6b=(_0x447b0c==null?void 0x0:_0x447b0c[_0x2b7736(0x215)])??((_0x1259ca=G(_0x404910))==null?void 0x0:_0x1259ca[_0x2b7736(0x240)]);if(_0x67db6b==null)return!0x1;let _0x150f6f=Ne({'cursorOffset':_0x67db6b,'documentData':_0x640ac7[_0x2b7736(0x21e)],'paragraphStartIndex':_0x447b0c==null?void 0x0:_0x447b0c[_0x2b7736(0x20e)]});return _0x150f6f?Y(_0x640ac7[_0x2b7736(0x276)],_0x640ac7[_0x2b7736(0x274)],_0x640ac7[_0x2b7736(0x236)],_0x640ac7[_0x2b7736(0x21e)],_0x150f6f[_0x2b7736(0x232)],U['id'],_0x150f6f[_0x2b7736(0x215)]):!0x1;}};function W(_0x2b7c3f,_0x379d5d){const _0x4d9a02=_0x5e70aa;let _0x39e3ee=_0x2b7c3f[_0x4d9a02(0x272)](_0x7eb0f5),_0x1c88f6=_0x379d5d?_0x39e3ee['getUnit'](_0x379d5d,_0x221a97[_0x4d9a02(0x1f6)]):_0x39e3ee['getCurrentUnitOfType'](_0x221a97[_0x4d9a02(0x1f6)]);return _0x1c88f6?{'commandService':_0x2b7c3f['get'](_0x345515),'model':_0x2b7c3f[_0x4d9a02(0x272)](w),'previousDocumentData':_0x1c88f6['getSnapshot'](),'selectionManager':_0x2b7c3f[_0x4d9a02(0x272)](_0x1dae47),'unitId':_0x1c88f6['getUnitId']()}:null;}function G(_0x4215f7){const _0x3de8b2=_0x5e70aa;var _0x2523f9;return(_0x2523f9=_0x4215f7[_0x3de8b2(0x272)](_0x1dae47)['getTextRanges']())==null?void 0x0:_0x2523f9[0x0];}function lt(_0x2de21f,_0x4ad08b){const _0x1e8c19=_0x5e70aa;let _0x534682=(_0x2de21f==null?void 0x0:_0x2de21f['startOffset'])??(_0x4ad08b==null?void 0x0:_0x4ad08b[_0x1e8c19(0x240)]),_0x4d6bee=(_0x2de21f==null?void 0x0:_0x2de21f['endOffset'])??(_0x4ad08b==null?void 0x0:_0x4ad08b[_0x1e8c19(0x246)]);if(_0x534682!=null&&_0x4d6bee!=null)return{'endOffset':Math[_0x1e8c19(0x22c)](_0x534682,_0x4d6bee),'startOffset':Math[_0x1e8c19(0x1e4)](_0x534682,_0x4d6bee)};}function ut(_0x32fa97,_0x59f764){const _0x17e4b4=_0x5e70aa;var _0x471210;if(!_0x59f764)return;let _0x87b4d5=dt(_0x59f764);return(_0x471210=_0x32fa97[_0x17e4b4(0x261)])==null||(_0x471210=_0x471210[_0x17e4b4(0x221)])==null?void 0x0:_0x471210[_0x17e4b4(0x286)](_0xac1722=>{const _0x3aabd9=_0x17e4b4;let _0x105d8a=_0x25d697(_0xac1722);return _0x59f764[_0x3aabd9(0x240)]===_0x59f764['endOffset']?_0x22cea4(_0x105d8a,_0x87b4d5):_0x5ecdee(_0x105d8a,_0x87b4d5);});}function dt(_0x4ec764){const _0x32af95=_0x5e70aa;return _0x4ec764[_0x32af95(0x240)]===_0x4ec764[_0x32af95(0x246)]?_0x4ec764[_0x32af95(0x240)]:_0x4ec764[_0x32af95(0x240)]+0x1;}function ft(_0x52a504){const _0x3d5717=_0x5e70aa;let _0x1c2ecf=G(_0x52a504);if(!_0x1c2ecf)return null;let _0x4001d3=_0x52a504[_0x3d5717(0x272)](_0x7eb0f5)['getCurrentUnitOfType'](_0x221a97[_0x3d5717(0x1f6)]),_0x2be849=_0x4001d3==null?void 0x0:_0x4001d3[_0x3d5717(0x23c)]();return _0x2be849?_0x101a6d['range'][_0x3d5717(0x277)](_0x1c2ecf,_0x2be849[_0x3d5717(0x1ee)]??[],_0x2be849[_0x3d5717(0x251)]??'')[0x0]??null:null;}function pt(_0x282ec1,_0x478f5c){const _0x273006=_0x5e70aa;let _0x17ded7=_0x282ec1[_0x273006(0x261)],_0x5b6387=_0x478f5c[_0x273006(0x261)],_0x35f011=_0x2fc954(_0x17ded7,_0x5b6387);return[_0x35f011&&_0x5b6387?mt(_0x5b6387,_0x35f011):null,_0x35f011?null:ht(_0x17ded7,_0x5b6387)][_0x273006(0x222)](Boolean)[_0x273006(0x255)]((_0x21b205,_0x100a82)=>_0x2e6159[_0x273006(0x23b)](_0x21b205,_0x100a82),null);}function mt(_0x57c0a3,_0x1c11f4){const _0x56d0ee=_0x5e70aa;let _0x49378c=new _0x4f8d7c();return _0x49378c[_0x56d0ee(0x209)](_0x1c11f4['start']),_0x1c11f4['insertLength']>0x0&&_0x49378c['insert'](_0x1c11f4[_0x56d0ee(0x278)],_0x201241(_0x57c0a3,_0x1c11f4[_0x56d0ee(0x26c)],_0x1c11f4[_0x56d0ee(0x26c)]+_0x1c11f4[_0x56d0ee(0x278)],!0x1)),_0x1c11f4['deleteLength']>0x0&&_0x49378c['delete'](_0x1c11f4[_0x56d0ee(0x27c)]),_0x2e6159[_0x56d0ee(0x234)]()['editOp'](_0x49378c[_0x56d0ee(0x262)](),[_0x56d0ee(0x261)]);}function ht(_0x641efe,_0xf7e7f3){const _0x2fe709=_0x5e70aa;let _0x3dafa9=[],_0x1b433a=_0x641efe?_t(_0x641efe):void 0x0,_0x47a8db=_0xf7e7f3?_t(_0xf7e7f3):void 0x0;for(let _0x6a10ee of gt)K(_0x2e6159[_0x2fe709(0x234)](),['body',_0x6a10ee],_0x1b433a==null?void 0x0:_0x1b433a[_0x6a10ee],_0x47a8db==null?void 0x0:_0x47a8db[_0x6a10ee],_0x3dafa9);return _0x3dafa9['reduce']((_0x3f23dc,_0x245e21)=>_0x2e6159['compose'](_0x3f23dc,_0x245e21),null);}const gt=[_0x5e70aa(0x1ee),'sectionBreaks',_0x5e70aa(0x268),_0x5e70aa(0x1fe),_0x5e70aa(0x221),_0x5e70aa(0x223),'customRanges',_0x5e70aa(0x206),_0x5e70aa(0x202)];function _t(_0x1657cb){return _0x1657cb;}function K(_0x5186b0,_0x35482b,_0x5b7d6d,_0x2d0a61,_0x390598){const _0x4a385d=_0x5e70aa;if(!J(_0x5b7d6d,_0x2d0a61)){if(_0x5b7d6d==null){_0x390598[_0x4a385d(0x239)](_0x5186b0['insertOp'](_0x35482b,_0x2d0a61));return;}if(_0x2d0a61==null){_0x390598[_0x4a385d(0x239)](_0x5186b0[_0x4a385d(0x24b)](_0x35482b,_0x5b7d6d));return;}if(Array[_0x4a385d(0x1e7)](_0x5b7d6d)&&Array[_0x4a385d(0x1e7)](_0x2d0a61)){vt(_0x5186b0,_0x35482b,_0x5b7d6d,_0x2d0a61,_0x390598);return;}if(q(_0x5b7d6d)&&q(_0x2d0a61)){new Set([...Object[_0x4a385d(0x225)](_0x5b7d6d),...Object[_0x4a385d(0x225)](_0x2d0a61)])[_0x4a385d(0x23f)](_0xa365af=>{K(_0x5186b0,[..._0x35482b,_0xa365af],_0x5b7d6d[_0xa365af],_0x2d0a61[_0xa365af],_0x390598);});return;}_0x390598['push'](_0x5186b0[_0x4a385d(0x283)](_0x35482b,_0x5b7d6d,_0x2d0a61));}}function vt(_0x39a131,_0x8cce26,_0x224bc1,_0x322296,_0x1215b3){const _0x7b56f4=_0x5e70aa;if(_0x224bc1[_0x7b56f4(0x275)]===_0x322296[_0x7b56f4(0x275)]){_0x224bc1[_0x7b56f4(0x23f)]((_0x549d26,_0xe58a9c)=>K(_0x39a131,[..._0x8cce26,_0xe58a9c],_0x549d26,_0x322296[_0xe58a9c],_0x1215b3));return;}let _0x3c61c3=0x0;for(;_0x3c61c3<_0x224bc1[_0x7b56f4(0x275)]&&_0x3c61c3<_0x322296['length']&&J(_0x224bc1[_0x3c61c3],_0x322296[_0x3c61c3]);)_0x3c61c3++;let _0x338426=_0x224bc1['length']-0x1,_0x22c1f1=_0x322296[_0x7b56f4(0x275)]-0x1;for(;_0x338426>=_0x3c61c3&&_0x22c1f1>=_0x3c61c3&&J(_0x224bc1[_0x338426],_0x322296[_0x22c1f1]);)_0x338426--,_0x22c1f1--;for(let _0x32c34a=_0x338426;_0x32c34a>=_0x3c61c3;_0x32c34a--)_0x1215b3[_0x7b56f4(0x239)](_0x39a131['removeOp']([..._0x8cce26,_0x32c34a],_0x224bc1[_0x32c34a]));for(let _0x28c6db=_0x3c61c3;_0x28c6db<=_0x22c1f1;_0x28c6db++)_0x1215b3[_0x7b56f4(0x239)](_0x39a131[_0x7b56f4(0x212)]([..._0x8cce26,_0x28c6db],_0x322296[_0x28c6db]));}function q(_0xf0ee08){const _0x58bde0=_0x5e70aa;return typeof _0xf0ee08=='object'&&!!_0xf0ee08&&!Array[_0x58bde0(0x1e7)](_0xf0ee08);}function J(_0x15ac8b,_0x311680){const _0x23536a=_0x5e70aa;return JSON[_0x23536a(0x226)](_0x15ac8b)===JSON[_0x23536a(0x226)](_0x311680);}function Y(_0xe966d,_0x59b731,_0x355532,_0x7c94af,_0x2d268a,_0x403374,_0x200dca){const _0x8ad872=_0x5e70aa;let _0x32351b=pt(_0x7c94af,_0x2d268a);return _0x32351b?!!_0xe966d[_0x8ad872(0x20a)](_0x59a84f['id'],{'unitId':_0x355532,'actions':_0x32351b,'textRanges':[{'startOffset':_0x200dca,'endOffset':_0x200dca,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x403374}):(_0x59b731[_0x8ad872(0x1ed)]([{'startOffset':_0x200dca,'endOffset':_0x200dca}],{'unitId':_0x355532,'subUnitId':_0x355532},!0x1),!0x0);}const X=_0x5e70aa(0x20c);function _0xfdd7(){const _0xacc6b1=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','deleteLength','docs-code.mutation.remove-config','entries','indentStart','6265ZwLWvH','2188188STiAQd','_docsCodeModel','replaceOp','packageName','config','find','registerCommand','TABLE_CELL_START','docs-code.command.exit','startTokenOffset','symbol','setCodeConfig','asObservable','min','FALSE','disposeWithMe','isArray','18dAoYLM','blockType','paragraph','nextMetadata','Document\x20body\x20is\x20required','replaceDocRanges','paragraphs','startIndex','_configService','add','_resourceManagerService','some','insertionMode','endTokenOffset','UNIVER_DOC','spaceBelow','insert-new','BLOCK_END','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','indentEnd','_config','BLOCK_START','columnGroups','function','_injector','fromEntries','textRuns','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getCurrentUnitOfType','blockId','customDecorations','version','keepNext','retain','syncExecuteCommand','set','DOC_CODE_PLUGIN','indexOf','paragraphStartIndex','slice','704671byvKJx','documentData','insertOp','deserialize','map','cursorOffset','object','parse','CODE','complete','convert-paragraph','customRanges','columns','widowControl','previousDocumentData','removeCode','getCodeConfig','blockRanges','filter','customBlocks','onStarting','keys','stringify','MUTATION','6petvPR','constructor','defineProperty','285859zEzqFZ','max','iterator','1.0.4','model','type','paragraphStyle','nextDocumentData','24ouFqbN','getInstance','TRUE','unitId','codes','right','push','getOwnPropertyDescriptor','compose','getBody','_resources','SECTION_BREAK','forEach','startOffset','TABLE_CELL_END','COMMAND','docs-code.mutation.set-config','delete','_initResource','endOffset','monospace','docs-code.command.unwrap','@univerjs-pro/docs-code','_setResource','removeOp','_commandService','36lSHXMY','handler','PARAGRAPH','setConfig','dataStream','clear','direction','36haXhAH','reduce','sectionBreaks','change$','next','docs-code.command.cancel-empty-paragraph','docs-code.config','default','registerPluginResource','pluginName','toPrimitive','962GYxIus','keepLines','body','serialize','_change$','removeUnit','spaceAbove','string','endIndex','tables','decorate','docs-code.command.remove','sort','start','from','textStyle','metadata','docs-code.command.insert','prototype','get','40840vUFSxv','selectionManager','length','commandService','getParagraphsInRange','insertLength','11620DbYTVw','docs-code.command.update'];_0xfdd7=function(){return _0xacc6b1;};return _0xfdd7();}var yt=_0x5e70aa(0x249),bt=_0x5e70aa(0x22e);const xt={};function Z(_0x22cf60,_0x2a0449){return function(_0x149921,_0x4142d3){_0x2a0449(_0x149921,_0x4142d3,_0x22cf60);};}function St(_0x4e637d,_0x5d66cf,_0x4cfc91,_0x80939d){const _0x22a46f=_0x5e70aa;var _0x33ec63=arguments[_0x22a46f(0x275)],_0x488d09=_0x33ec63<0x3?_0x5d66cf:_0x80939d===null?_0x80939d=Object[_0x22a46f(0x23a)](_0x5d66cf,_0x4cfc91):_0x80939d,_0x58915e;if(typeof Reflect==_0x22a46f(0x216)&&typeof Reflect[_0x22a46f(0x269)]==_0x22a46f(0x1ff))_0x488d09=Reflect[_0x22a46f(0x269)](_0x4e637d,_0x5d66cf,_0x4cfc91,_0x80939d);else{for(var _0xa2b901=_0x4e637d['length']-0x1;_0xa2b901>=0x0;_0xa2b901--)(_0x58915e=_0x4e637d[_0xa2b901])&&(_0x488d09=(_0x33ec63<0x3?_0x58915e(_0x488d09):_0x33ec63>0x3?_0x58915e(_0x5d66cf,_0x4cfc91,_0x488d09):_0x58915e(_0x5d66cf,_0x4cfc91))||_0x488d09);}return _0x33ec63>0x3&&_0x488d09&&Object[_0x22a46f(0x22a)](_0x5d66cf,_0x4cfc91,_0x488d09),_0x488d09;}let Q=class extends _0xda6805{constructor(_0x239f8f,_0x243a5d){super(),this['_resourceManagerService']=_0x239f8f,this['_docsCodeModel']=_0x243a5d,this['_initResource']();}[_0x5e70aa(0x245)](){const _0x34e830=_0x5e70aa;this[_0x34e830(0x1e6)](this[_0x34e830(0x1f2)][_0x34e830(0x25c)]({'pluginName':X,'businesses':[_0x221a97[_0x34e830(0x1f6)]],'toJson':_0x4c54dc=>JSON[_0x34e830(0x226)](this[_0x34e830(0x282)][_0x34e830(0x262)](_0x4c54dc)),'parseJson':_0x4f705a=>y(JSON[_0x34e830(0x217)](_0x4f705a)),'onLoad':(_0x39c309,_0x5103bb)=>this['_docsCodeModel'][_0x34e830(0x213)](_0x39c309,_0x5103bb),'onUnLoad':_0x2a3c28=>this[_0x34e830(0x282)][_0x34e830(0x264)](_0x2a3c28)}));}};Q=St([Z(0x0,_0x2b7a1e),Z(0x1,_0x1376f9(w))],Q);let $=class extends _0x29051f{constructor(_0x5653cf=xt,_0x11564d,_0x3f789c,_0x11026a){const _0x7b739f=_0x5e70aa;super(),this[_0x7b739f(0x1fc)]=_0x5653cf,this['_injector']=_0x11564d,this[_0x7b739f(0x24c)]=_0x3f789c,this[_0x7b739f(0x1f0)]=_0x11026a;let {..._0x1b5c86}=_0x56f20c({},xt,this['_config']);this[_0x7b739f(0x1f0)][_0x7b739f(0x250)](_0x7b739f(0x25a),_0x1b5c86);}[_0x5e70aa(0x224)](){const _0x1c93c5=_0x5e70aa;this['_injector'][_0x1c93c5(0x1f1)]([w]),this[_0x1c93c5(0x200)][_0x1c93c5(0x1f1)]([Q]),this[_0x1c93c5(0x200)]['get'](w),this[_0x1c93c5(0x200)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1c93c5(0x23f)](_0x11aa24=>this[_0x1c93c5(0x1e6)](this[_0x1c93c5(0x24c)][_0x1c93c5(0x287)](_0x11aa24)));}};C($,_0x5e70aa(0x25d),X),C($,_0x5e70aa(0x284),yt),C($,_0x5e70aa(0x207),bt),C($,_0x5e70aa(0x230),_0x221a97[_0x5e70aa(0x1f6)]),$=St([_0xbd1de2(_0x140279,_0x3f4352),Z(0x1,_0x1376f9(_0x18c912)),Z(0x2,_0x345515),Z(0x3,_0x42cbf8)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function _0x369f(){var _0x1b1a2a=['text','body','get','CODE','PARAGRAPH','432564wIYsea','function','filter','symbol','decorate','8412890zqCsiT','SECTION_BREAK','length','_document','toPrimitive','BLOCK_END','_blockId','findCodes','slice','getCode','1720986rDZeBc','getId','defineProperty','dataStream','BLOCK_START','1469940jjGOdt','getCodeConfig','_createFDocumentCode','extend','_unitId','unwrap','blockType','call','blockRanges','prototype','endIndex','blockId','getConfig','findCodeByText','_injector','iterator','10nZgCve','getText','includes','updateConfig','_getBlockRanges','default','_getDocumentData','getRange','117FBMHuT','21628sHXnrb','save','describe','7qoznLT','map','syncExecuteCommand','remove','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','startIndex','1072992OvsViL','string','find','_getBlockRange','getCodes','object','3060558WVhzme'];_0x369f=function(){return _0x1b1a2a;};return _0x369f();}var _0x3b0028=_0xeb5d;(function(_0x15e260,_0x3d0a1b){var _0x57dcf9=_0xeb5d,_0x3f9954=_0x15e260();while(!![]){try{var _0x5c8ab8=-parseInt(_0x57dcf9(0x100))/0x1+-parseInt(_0x57dcf9(0xcd))/0x2+parseInt(_0x57dcf9(0xea))/0x3*(parseInt(_0x57dcf9(0xeb))/0x4)+-parseInt(_0x57dcf9(0xe2))/0x5*(-parseInt(_0x57dcf9(0xd2))/0x6)+-parseInt(_0x57dcf9(0xee))/0x7*(parseInt(_0x57dcf9(0xf4))/0x8)+parseInt(_0x57dcf9(0xfa))/0x9+parseInt(_0x57dcf9(0x105))/0xa;if(_0x5c8ab8===_0x3d0a1b)break;else _0x3f9954['push'](_0x3f9954['shift']());}catch(_0xb6d4bd){_0x3f9954['push'](_0x3f9954['shift']());}}}(_0x369f,0x6f16f));import{DocsCodeInsertCommand as _0x432986,DocsCodeModel as _0x482749,DocsCodeRemoveCommand as _0x8af378,DocsCodeUnwrapCommand as _0x4d8a39,DocsCodeUpdateCommand as _0x580277,normalizeDocsCodeConfig as _0x3afdd7}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x443492,DocumentBlockRangeType as _0x38b8df,ICommandService as _0x116f73,Inject as _0x33207e,Injector as _0x4ad0f8,generateRandomId as _0xccf30d}from'@univerjs/core';import{FDocument as _0x2eaeda,isParagraphFacade as _0x4ead56}from'@univerjs/docs/facade';function m(_0x1a931e){'@babel/helpers - typeof';var _0x126b49=_0xeb5d;return m=typeof Symbol=='function'&&typeof Symbol[_0x126b49(0xe1)]==_0x126b49(0x103)?function(_0x5afce2){return typeof _0x5afce2;}:function(_0x18e8e4){var _0x54014f=_0x126b49;return _0x18e8e4&&typeof Symbol==_0x54014f(0x101)&&_0x18e8e4['constructor']===Symbol&&_0x18e8e4!==Symbol[_0x54014f(0xdb)]?_0x54014f(0x103):typeof _0x18e8e4;},m(_0x1a931e);}function _0xeb5d(_0x52df14,_0x9faef2){_0x52df14=_0x52df14-0xc5;var _0x369f89=_0x369f();var _0xeb5d84=_0x369f89[_0x52df14];return _0xeb5d84;}function h(_0x58b8fd,_0x49d8fa){var _0x53250b=_0xeb5d;if(m(_0x58b8fd)!='object'||!_0x58b8fd)return _0x58b8fd;var _0x5e384e=_0x58b8fd[Symbol[_0x53250b(0xc7)]];if(_0x5e384e!==void 0x0){var _0x47d7ef=_0x5e384e[_0x53250b(0xd9)](_0x58b8fd,_0x49d8fa||_0x53250b(0xe7));if(m(_0x47d7ef)!=_0x53250b(0xf9))return _0x47d7ef;throw TypeError(_0x53250b(0xf2));}return(_0x49d8fa===_0x53250b(0xf5)?String:Number)(_0x58b8fd);}function g(_0x5d4a30){var _0x3f46b1=_0xeb5d,_0x55de37=h(_0x5d4a30,_0x3f46b1(0xf5));return m(_0x55de37)==_0x3f46b1(0x103)?_0x55de37:_0x55de37+'';}function _(_0x582e19,_0x10df30,_0x58a5e2){return(_0x10df30=g(_0x10df30))in _0x582e19?Object['defineProperty'](_0x582e19,_0x10df30,{'value':_0x58a5e2,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x582e19[_0x10df30]=_0x58a5e2,_0x582e19;}function v(_0xff476b,_0xf708cb){return function(_0x4367c2,_0x55cc77){_0xf708cb(_0x4367c2,_0x55cc77,_0xff476b);};}function y(_0x58b27b,_0x513b9b,_0x460f28,_0x2d3cd4){var _0x59d9f0=_0xeb5d,_0x3d7f44=arguments[_0x59d9f0(0xc5)],_0x498e09=_0x3d7f44<0x3?_0x513b9b:_0x2d3cd4===null?_0x2d3cd4=Object['getOwnPropertyDescriptor'](_0x513b9b,_0x460f28):_0x2d3cd4,_0x19ed42;if(typeof Reflect==_0x59d9f0(0xf9)&&typeof Reflect['decorate']==_0x59d9f0(0x101))_0x498e09=Reflect[_0x59d9f0(0x104)](_0x58b27b,_0x513b9b,_0x460f28,_0x2d3cd4);else{for(var _0x1ed2db=_0x58b27b['length']-0x1;_0x1ed2db>=0x0;_0x1ed2db--)(_0x19ed42=_0x58b27b[_0x1ed2db])&&(_0x498e09=(_0x3d7f44<0x3?_0x19ed42(_0x498e09):_0x3d7f44>0x3?_0x19ed42(_0x513b9b,_0x460f28,_0x498e09):_0x19ed42(_0x513b9b,_0x460f28))||_0x498e09);}return _0x3d7f44>0x3&&_0x498e09&&Object[_0x59d9f0(0xcf)](_0x513b9b,_0x460f28,_0x498e09),_0x498e09;}let b=class{constructor(_0x7dc8d2,_0xaba457,_0x49a472){var _0x10002f=_0xeb5d;this['_document']=_0x7dc8d2,this['_blockId']=_0xaba457,this[_0x10002f(0xe0)]=_0x49a472,_(this,_0x10002f(0xd6),void 0x0),this[_0x10002f(0xd6)]=this[_0x10002f(0xc6)]['getId']();}[_0x3b0028(0xce)](){return this['_blockId'];}[_0x3b0028(0xe9)](){var _0x2d678b=_0x3b0028;let _0xa927bc=this['_getBlockRange']();return _0xa927bc?{'blockId':_0xa927bc['blockId'],'endIndex':_0xa927bc[_0x2d678b(0xdc)],'startIndex':_0xa927bc[_0x2d678b(0xf3)]}:null;}[_0x3b0028(0xe3)](){var _0x43d0a1=_0x3b0028,_0x61a10a;let _0x2b1094=this[_0x43d0a1(0xf7)](),_0x37fb16=(_0x61a10a=this[_0x43d0a1(0xe8)]()[_0x43d0a1(0xfc)])==null?void 0x0:_0x61a10a[_0x43d0a1(0xd0)];return!_0x2b1094||!_0x37fb16?'':x(_0x37fb16[_0x43d0a1(0xcb)](_0x2b1094[_0x43d0a1(0xf3)]+0x1,_0x2b1094['endIndex']));}[_0x3b0028(0xed)](){var _0x31d30e=_0x3b0028;let _0x3194d0=this[_0x31d30e(0xe9)]();return _0x3194d0?{..._0x3194d0,'config':this[_0x31d30e(0xde)](),'text':this['getText'](),'type':_0x38b8df[_0x31d30e(0xfe)]}:null;}[_0x3b0028(0xde)](){var _0x1ff690=_0x3b0028;let _0x6e11ee=this[_0x1ff690(0xe0)][_0x1ff690(0xfd)](_0x482749);return _0x3afdd7(_0x6e11ee[_0x1ff690(0xd3)](this['_unitId'],this[_0x1ff690(0xc9)]));}[_0x3b0028(0xe5)](_0x5f3cd9){var _0x580726=_0x3b0028;return this['_injector'][_0x580726(0xfd)](_0x116f73)['syncExecuteCommand'](_0x580277['id'],{'blockId':this['_blockId'],'config':_0x5f3cd9['config'],'unitId':this[_0x580726(0xd6)]});}[_0x3b0028(0xd7)](){var _0x2950ed=_0x3b0028;return this[_0x2950ed(0xe0)][_0x2950ed(0xfd)](_0x116f73)['syncExecuteCommand'](_0x4d8a39['id'],{'blockId':this[_0x2950ed(0xc9)],'unitId':this[_0x2950ed(0xd6)]});}[_0x3b0028(0xf1)](){var _0xf28970=_0x3b0028;return this['_injector'][_0xf28970(0xfd)](_0x116f73)[_0xf28970(0xf0)](_0x8af378['id'],{'blockId':this['_blockId'],'unitId':this[_0xf28970(0xd6)]});}['_getBlockRange'](){var _0x477eb7=_0x3b0028,_0x5d6334;return((_0x5d6334=this[_0x477eb7(0xe8)]()['body'])==null||(_0x5d6334=_0x5d6334[_0x477eb7(0xda)])==null?void 0x0:_0x5d6334[_0x477eb7(0xf6)](_0x162672=>_0x162672[_0x477eb7(0xdd)]===this[_0x477eb7(0xc9)]&&_0x162672['blockType']===_0x38b8df[_0x477eb7(0xfe)]))??null;}[_0x3b0028(0xe8)](){var _0x91c76f=_0x3b0028;return this[_0x91c76f(0xc6)]['save']();}};b=y([v(0x2,_0x33207e(_0x4ad0f8))],b);function x(_0x12e0d9){var _0x2cea2f=_0x3b0028;return Array['from'](_0x12e0d9)[_0x2cea2f(0xef)](_0x2a2579=>_0x2a2579===_0x443492[_0x2cea2f(0xff)]?'\x0a':_0x2a2579)[_0x2cea2f(0x102)](_0xb72772=>_0xb72772!==_0x443492[_0x2cea2f(0xd1)]&&_0xb72772!==_0x443492[_0x2cea2f(0xc8)]&&_0xb72772!==_0x443492[_0x2cea2f(0x106)])['join']('')['replace'](/\n$/,'');}var S=class extends _0x2eaeda{[_0x3b0028(0xf8)](){var _0x5ab61a=_0x3b0028;return this[_0x5ab61a(0xe6)]()['filter'](_0x43cf72=>_0x43cf72[_0x5ab61a(0xd8)]===_0x38b8df[_0x5ab61a(0xfe)])[_0x5ab61a(0xef)](_0x2d8c8b=>this[_0x5ab61a(0xd4)](_0x2d8c8b[_0x5ab61a(0xdd)]));}[_0x3b0028(0xcc)](_0x5c68a4){var _0x472aa5=_0x3b0028;return this[_0x472aa5(0xe6)]()['some'](_0x3c0cf5=>_0x3c0cf5[_0x472aa5(0xdd)]===_0x5c68a4&&_0x3c0cf5[_0x472aa5(0xd8)]===_0x38b8df[_0x472aa5(0xfe)])?this[_0x472aa5(0xd4)](_0x5c68a4):null;}['getCodeAt'](_0x566f20){var _0x52a7ec=_0x3b0028;let _0x39c886=this[_0x52a7ec(0xe6)]()['find'](_0x18d971=>_0x18d971['blockType']===_0x38b8df[_0x52a7ec(0xfe)]&&_0x18d971[_0x52a7ec(0xf3)]<=_0x566f20&&_0x566f20<=_0x18d971[_0x52a7ec(0xdc)]);return _0x39c886?this[_0x52a7ec(0xd4)](_0x39c886[_0x52a7ec(0xdd)]):null;}[_0x3b0028(0xdf)](_0x5e4636){var _0x1b810a=_0x3b0028;return this[_0x1b810a(0xca)](_0x5e4636)[0x0]??null;}[_0x3b0028(0xca)](_0x47e1e3){var _0x18813e=_0x3b0028;let _0xfbd79d=typeof _0x47e1e3=='string'?{'text':_0x47e1e3}:_0x47e1e3;return this[_0x18813e(0xf8)]()[_0x18813e(0x102)](_0x4fbccd=>!(_0xfbd79d[_0x18813e(0xdd)]&&_0x4fbccd[_0x18813e(0xce)]()!==_0xfbd79d[_0x18813e(0xdd)]||_0xfbd79d['text']&&!_0x4fbccd[_0x18813e(0xe3)]()[_0x18813e(0xe4)](_0xfbd79d[_0x18813e(0xfb)])));}['insertCode'](_0x31878c={},_0x2ed21f={}){var _0x5cffae=_0x3b0028;let _0x19714b=this[_0x5cffae(0xe0)][_0x5cffae(0xfd)](_0x116f73),_0x4a8513=_0x4ead56(_0x31878c)?{..._0x2ed21f,..._0x31878c[_0x5cffae(0xe9)]()}:_0x31878c,_0x136f4d=_0x4a8513[_0x5cffae(0xdd)]??_0xccf30d(0x6);return _0x19714b['syncExecuteCommand'](_0x432986['id'],{..._0x4a8513,'blockId':_0x136f4d,'unitId':this[_0x5cffae(0xce)]()})?this['getCode'](_0x136f4d):null;}[_0x3b0028(0xe6)](){var _0x3f798d=_0x3b0028,_0x3c00a6;return((_0x3c00a6=this[_0x3f798d(0xec)]()['body'])==null?void 0x0:_0x3c00a6[_0x3f798d(0xda)])??[];}['_createFDocumentCode'](_0x580110){var _0x2af0e1=_0x3b0028;return this[_0x2af0e1(0xe0)]['createInstance'](b,this,_0x580110);}};_0x2eaeda[_0x3b0028(0xd5)](S);export{b as FDocumentCode};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x49483d=_0x10b3;(function(_0x14b103,_0x5c8c9e){const _0x591240=_0x10b3,_0x58d2a8=_0x14b103();while(!![]){try{const _0x51f231=parseInt(_0x591240(0xb9))/0x1+-parseInt(_0x591240(0x10a))/0x2+parseInt(_0x591240(0xeb))/0x3+-parseInt(_0x591240(0x7f))/0x4+parseInt(_0x591240(0x103))/0x5+parseInt(_0x591240(0x98))/0x6*(parseInt(_0x591240(0x85))/0x7)+parseInt(_0x591240(0x9a))/0x8;if(_0x51f231===_0x5c8c9e)break;else _0x58d2a8['push'](_0x58d2a8['shift']());}catch(_0x11e292){_0x58d2a8['push'](_0x58d2a8['shift']());}}}(_0x1d98,0x51901));import{BooleanNumber as _0x29f404,BuildTextUtils as _0x18ba16,CommandType as _0x446cfc,DataStreamTreeTokenType as _0x23e365,DependentOn as _0x5aaaeb,Disposable as _0x24e448,DocumentBlockRangeType as _0x2324fb,ICommandService as _0x330d40,IConfigService as _0x5ce515,IResourceManagerService as _0x4ec5e9,IUniverInstanceService as _0x1f322c,Inject as _0x34c829,Injector as _0x38f326,JSONX as _0x424cd6,Plugin as _0x5a8ee0,TextX as _0x227fc3,UniverInstanceType as _0x2fc27d,containsInteriorInsertionOffset as _0x116958,containsStreamIndex as _0x2d8224,createParagraphId as _0x338f66,generateRandomId as _0x5cf7a0,getBlockRangeInterval as _0x5c8dbe,getBodySliceForTextXAction as _0x25d42f,getParagraphContentStartOffset as _0x53b91f,getParagraphContentStartOffsets as _0x43bde5,getParagraphFollowingBlockOffset as _0x15574e,getSingleDataStreamChange as _0x5c68b1,intersectsOperationalIntervals as _0x467d94,merge as _0x1470e9,shiftExclusiveRangeOnDelete as _0xc1b9cd,shiftExclusiveRangeOnInsert as _0x3f24e6,shiftInclusiveRangeOnDelete as _0x2cee19,shiftInclusiveRangeOnInsert as _0x4cbd10}from'@univerjs/core';import{Subject as _0x4c06b3}from'rxjs';import{DocSelectionManagerService as _0x2baf85,RichTextEditingMutation as _0x274029,UniverDocsPlugin as _0x565d36,getContentInsertRange as _0x34eb39,isHeaderFooterSelection as _0x584ad5}from'@univerjs/docs';import{UniverLicensePlugin as _0xecd332}from'@univerjs-pro/license';const Se={'language':_0x49483d(0x73),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x2fd8ec){return{...Se,..._0x2fd8ec};}function y(_0x27f3e7){const _0x4284c3=_0x49483d;let _0x465372=(_0x27f3e7==null?void 0x0:_0x27f3e7['codes'])??{};return{'codes':Object[_0x4284c3(0xf4)](Object[_0x4284c3(0x6c)](_0x465372)['map'](([_0x4c64c2,_0x3cc3df])=>[_0x4c64c2,v(_0x3cc3df)]))};}function b(_0x2b3291,_0x55e095,_0x39c847){const _0x212846=_0x49483d;let _0xfbdd86=y(_0x2b3291);return _0xfbdd86[_0x212846(0x77)][_0x55e095]=v({..._0xfbdd86[_0x212846(0x77)][_0x55e095],..._0x39c847}),_0xfbdd86;}function x(_0x430777,_0x5ad778){const _0xf072f4=_0x49483d;let _0x4cedd0=y(_0x430777);return delete _0x4cedd0[_0xf072f4(0x77)][_0x5ad778],_0x4cedd0;}function S(_0x5c9d49){'@babel/helpers - typeof';const _0x384cd5=_0x49483d;return S=typeof Symbol==_0x384cd5(0x104)&&typeof Symbol[_0x384cd5(0xee)]==_0x384cd5(0xb4)?function(_0x1da516){return typeof _0x1da516;}:function(_0xb7294b){const _0x58d62e=_0x384cd5;return _0xb7294b&&typeof Symbol==_0x58d62e(0x104)&&_0xb7294b[_0x58d62e(0xb3)]===Symbol&&_0xb7294b!==Symbol[_0x58d62e(0x81)]?'symbol':typeof _0xb7294b;},S(_0x5c9d49);}function Ce(_0x19f620,_0x75fe26){const _0x2d2432=_0x49483d;if(S(_0x19f620)!=_0x2d2432(0xa8)||!_0x19f620)return _0x19f620;var _0x35571a=_0x19f620[Symbol[_0x2d2432(0x10c)]];if(_0x35571a!==void 0x0){var _0x45a69c=_0x35571a['call'](_0x19f620,_0x75fe26||_0x2d2432(0xb1));if(S(_0x45a69c)!=_0x2d2432(0xa8))return _0x45a69c;throw TypeError(_0x2d2432(0xb7));}return(_0x75fe26===_0x2d2432(0xa2)?String:Number)(_0x19f620);}function we(_0x1cdb53){const _0x28ce26=_0x49483d;var _0x3f9364=Ce(_0x1cdb53,_0x28ce26(0xa2));return S(_0x3f9364)=='symbol'?_0x3f9364:_0x3f9364+'';}function C(_0x53414e,_0xd559ea,_0x485df3){const _0x441a36=_0x49483d;return(_0xd559ea=we(_0xd559ea))in _0x53414e?Object[_0x441a36(0xc0)](_0x53414e,_0xd559ea,{'value':_0x485df3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x53414e[_0xd559ea]=_0x485df3,_0x53414e;}var w=class extends _0x24e448{constructor(..._0x3f7706){const _0x567a72=_0x49483d;super(..._0x3f7706),C(this,_0x567a72(0xcf),new Map()),C(this,_0x567a72(0xf2),new _0x4c06b3()),C(this,_0x567a72(0x7b),this[_0x567a72(0xf2)][_0x567a72(0xd0)]());}[_0x49483d(0xa6)](_0x2d1548,_0x208336){const _0x157562=_0x49483d;return y(this[_0x157562(0xcf)][_0x157562(0xbd)](_0x2d1548))[_0x157562(0x77)][_0x208336];}['setCodeConfig'](_0x15f6c5,_0x24609d,_0x1c0038){const _0x2e993c=_0x49483d;this[_0x2e993c(0x8d)](_0x15f6c5,_0x24609d,b(this[_0x2e993c(0xcf)][_0x2e993c(0xbd)](_0x15f6c5),_0x24609d,_0x1c0038));}[_0x49483d(0xfd)](_0x58caac,_0x316b73){const _0x5a0ec4=_0x49483d;this['_setResource'](_0x58caac,_0x316b73,x(this[_0x5a0ec4(0xcf)][_0x5a0ec4(0xbd)](_0x58caac),_0x316b73));}['serialize'](_0x31ee18){const _0x5bcac=_0x49483d;return y(this[_0x5bcac(0xcf)][_0x5bcac(0xbd)](_0x31ee18));}['deserialize'](_0xe9376d,_0x32d901){const _0x515507=_0x49483d;this[_0x515507(0xcf)]['set'](_0xe9376d,y(_0x32d901)),this[_0x515507(0xf2)][_0x515507(0xd4)]({'unitId':_0xe9376d});}[_0x49483d(0xed)](_0x15de40){const _0x3cdd62=_0x49483d;this[_0x3cdd62(0xcf)][_0x3cdd62(0xe1)](_0x15de40),this[_0x3cdd62(0xf2)][_0x3cdd62(0xd4)]({'unitId':_0x15de40});}[_0x49483d(0x7a)](){const _0x885d59=_0x49483d;super[_0x885d59(0x7a)](),this[_0x885d59(0xcf)]['clear'](),this[_0x885d59(0xf2)][_0x885d59(0x68)]();}['_setResource'](_0x35c54b,_0x99d3eb,_0x54c80f){const _0x4bd794=_0x49483d;this[_0x4bd794(0xcf)][_0x4bd794(0xf3)](_0x35c54b,_0x54c80f),this['_change$'][_0x4bd794(0xd4)]({'unitId':_0x35c54b,'blockId':_0x99d3eb});}};const Te={'id':_0x49483d(0xc8),'type':_0x446cfc['MUTATION'],'handler':(_0x3b7a40,_0x74202d)=>!(_0x74202d!=null&&_0x74202d[_0x49483d(0x10b)])||!_0x74202d['blockId']?!0x1:(_0x3b7a40[_0x49483d(0xbd)](w)[_0x49483d(0xb2)](_0x74202d[_0x49483d(0x10b)],_0x74202d['blockId'],_0x74202d['config']),!0x0)},T={'id':_0x49483d(0xf6),'type':_0x446cfc[_0x49483d(0x8e)],'handler':(_0x189ccb,_0x5e75f1)=>!(_0x5e75f1!=null&&_0x5e75f1[_0x49483d(0x10b)])||!_0x5e75f1[_0x49483d(0x96)]?!0x1:(_0x189ccb[_0x49483d(0xbd)](w)[_0x49483d(0xfd)](_0x5e75f1[_0x49483d(0x10b)],_0x5e75f1[_0x49483d(0x96)]),!0x0)},Ee=_0x49483d(0x93);var E=class extends Error{constructor(_0x6af3ef=_0x49483d(0xd9)){super(_0x6af3ef);}};function De(_0x1e38d4){const _0x1e421d=_0x49483d;var _0x14805d;let _0x1292a6=O(_0x1e38d4[_0x1e421d(0xc6)]),_0x3b113a=A(_0x1292a6),_0x4fc674=ke(_0x1e38d4['startOffset'],_0x1e38d4[_0x1e421d(0x105)]),_0x58ddd1=_0x4fc674?(_0x14805d=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x14805d[_0x1e421d(0xd5)](_0x56aba9=>{const _0x44d97e=_0x1e421d;let _0x47f8fe=_0x5c8dbe(_0x56aba9);return _0x47f8fe[_0x44d97e(0x10e)]===_0x4fc674[_0x44d97e(0x10e)]&&_0x47f8fe[_0x44d97e(0x105)]===_0x4fc674[_0x44d97e(0x105)];}):void 0x0,{startOffset:_0x21361e,endOffset:_0x486c81}=_0x58ddd1?_0x4fc674:We(_0x3b113a,_0x1e38d4[_0x1e421d(0x10e)],_0x1e38d4[_0x1e421d(0x105)],_0x1e38d4[_0x1e421d(0xa9)]);if(!_0x58ddd1&&Ae(_0x3b113a,_0x21361e,_0x486c81))throw new E(_0x1e421d(0x9e));let _0x9cadf8=qe(_0x3b113a,_0x21361e,_0x486c81),_0x1538e9=(_0x58ddd1==null?void 0x0:_0x58ddd1[_0x1e421d(0x96)])??_0x1e38d4[_0x1e421d(0x96)],_0xd79115=b(_0x1e38d4[_0x1e421d(0xd1)],_0x1538e9,{...Se,..._0x1e38d4[_0x1e421d(0x9c)]});if(_0x58ddd1)return _0x58ddd1['blockType']=_0x2324fb['CODE'],Oe(_0x3b113a,_0x21361e,_0x486c81),ze(_0x3b113a,_0x21361e,_0x486c81,_0x9cadf8),N(_0x3b113a,_0x58ddd1),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};if(_0x21361e===_0x486c81){var _0x27b7c0,_0x3f1ad0;let _0x71142d=''+_0x23e365[_0x1e421d(0xea)]+_0x23e365[_0x1e421d(0xff)]+_0x23e365[_0x1e421d(0x94)];P(_0x3b113a,_0x21361e,_0x71142d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x338f66(new Set((_0x27b7c0=_0x3b113a[_0x1e421d(0x8a)])==null?void 0x0:_0x27b7c0[_0x1e421d(0x10f)](_0x140ef2=>_0x140ef2[_0x1e421d(0xe3)]))),'paragraphStyle':Re(!0x0,!0x0,_0x9cadf8)}],'blockRanges':[{'blockId':_0x1538e9,'blockType':_0x2324fb[_0x1e421d(0x89)],'startIndex':0x0,'endIndex':_0x71142d['length']-0x1}]});let _0xa00bb6=(_0x3f1ad0=_0x3b113a[_0x1e421d(0x79)])==null?void 0x0:_0x3f1ad0[_0x1e421d(0xd5)](_0x2d2851=>_0x2d2851['blockId']===_0x1538e9);return _0xa00bb6&&N(_0x3b113a,_0xa00bb6),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}P(_0x3b113a,_0x486c81,_0x23e365[_0x1e421d(0x94)]),P(_0x3b113a,_0x21361e,_0x23e365[_0x1e421d(0xea)]),ze(_0x3b113a,_0x21361e,_0x486c81+0x1,_0x9cadf8);let _0xa825fe={'blockId':_0x1538e9,'blockType':_0x2324fb['CODE'],'startIndex':_0x21361e,'endIndex':_0x486c81+0x1};return _0x3b113a[_0x1e421d(0x79)]=[..._0x3b113a['blockRanges']??[],_0xa825fe][_0x1e421d(0x8f)]((_0x42c256,_0x4958a6)=>_0x42c256[_0x1e421d(0xca)]-_0x4958a6['startIndex']),N(_0x3b113a,_0xa825fe),{'nextDocumentData':_0x1292a6,'nextMetadata':_0xd79115,'cursorOffset':_0x21361e+0x1};}function Oe(_0x569f5a,_0xc9ffed,_0x7f39ee){const _0x31a78e=_0x49483d;(_0x569f5a[_0x31a78e(0x8a)]??[])[_0x31a78e(0xf1)](_0xa460f6=>_0xa460f6[_0x31a78e(0xca)]>_0xc9ffed&&_0xa460f6[_0x31a78e(0xca)]<_0x7f39ee)[_0x31a78e(0xe5)](_0x2df4eb=>{const _0x546be9=_0x31a78e;let _0x27ff86={..._0x2df4eb['paragraphStyle']??{}};delete _0x27ff86['spaceAbove'],delete _0x27ff86[_0x546be9(0xe4)],_0x2df4eb[_0x546be9(0xdc)]=_0x27ff86;});}function ke(_0x5ee40c,_0x1a06f8){const _0x4acf41=_0x49483d;return _0x5ee40c==null||_0x1a06f8==null||_0x5ee40c===_0x1a06f8?null:{'startOffset':Math[_0x4acf41(0xef)](_0x5ee40c,_0x1a06f8),'endOffset':Math[_0x4acf41(0xda)](_0x5ee40c,_0x1a06f8)};}function Ae(_0x4d375f,_0x29f319,_0x5a009b){const _0xb2567=_0x49483d;return(_0x4d375f[_0xb2567(0x79)]??[])[_0xb2567(0xbf)](_0x65238=>{let _0x142255=_0x5c8dbe(_0x65238);return _0x29f319===_0x5a009b?_0x116958(_0x142255,_0x29f319):_0x467d94(_0x142255,{'startOffset':_0x29f319,'endOffset':_0x5a009b});});}function je(_0x7091ae){const _0x18f848=_0x49483d;return{'nextDocumentData':O(_0x7091ae[_0x18f848(0xc6)]),'nextMetadata':b(_0x7091ae[_0x18f848(0xd1)],_0x7091ae['blockId'],_0x7091ae[_0x18f848(0x9c)]),'cursorOffset':0x0};}function D(_0x187855){const _0x43f178=_0x49483d;let _0x14ae2b=O(_0x187855[_0x43f178(0xc6)]),_0x17a60e=A(_0x14ae2b),_0x4e97d7=Fe(_0x17a60e,_0x187855[_0x43f178(0x96)]);if(!_0x4e97d7)return null;let _0x44597e=He(_0x17a60e,_0x4e97d7);return{'nextDocumentData':_0x14ae2b,'nextMetadata':x(_0x187855['metadata'],_0x187855[_0x43f178(0x96)]),'cursorOffset':_0x44597e};}function Me(_0x5c21a1){const _0x5aa05d=_0x49483d;var _0x3c4db0;let _0x100d51=O(_0x5c21a1[_0x5aa05d(0xc6)]),_0xd4c3d0=A(_0x100d51),_0x58bb3d=Fe(_0xd4c3d0,_0x5c21a1[_0x5aa05d(0x96)]);if(!_0x58bb3d)return null;let _0x488ce2=_0x5c8dbe(_0x58bb3d);return F(_0xd4c3d0,_0x488ce2[_0x5aa05d(0x10e)],_0x488ce2[_0x5aa05d(0x105)]),_0xd4c3d0['blockRanges']=(_0x3c4db0=_0xd4c3d0[_0x5aa05d(0x79)])==null?void 0x0:_0x3c4db0[_0x5aa05d(0xf1)](_0x295d33=>_0x295d33[_0x5aa05d(0x96)]!==_0x5c21a1[_0x5aa05d(0x96)]),{'nextDocumentData':_0x100d51,'nextMetadata':x(_0x5c21a1[_0x5aa05d(0xd1)],_0x5c21a1[_0x5aa05d(0x96)]),'cursorOffset':_0x58bb3d['startIndex']};}function Ne(_0x2cd8b9){const _0x21104c=_0x49483d;let _0x13d538=O(_0x2cd8b9[_0x21104c(0xc6)]),_0x1200fb=A(_0x13d538),_0x5c0da3=Le(_0x1200fb,_0x2cd8b9[_0x21104c(0xdb)]);return _0x5c0da3&&Pe(_0x13d538,_0x1200fb,_0x5c0da3,_0x2cd8b9[_0x21104c(0xdb)],_0x2cd8b9[_0x21104c(0x87)])||null;}function Pe(_0xf4e8f8,_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134){const _0x420437=_0x49483d;let _0x5812b1=$e(_0x740478,_0x55f7e3,_0x4fd208,_0x2c5134);if(!_0x5812b1)return null;let _0x3bd5de=_0x5812b1[_0x420437(0xd3)]-0x1;return F(_0x740478,_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)],_0x5812b1[_0x420437(0x6b)][_0x420437(0xca)]+0x1),{'nextDocumentData':_0xf4e8f8,'cursorOffset':_0x3bd5de};}function Fe(_0x2a8ec7,_0x221057){const _0x4f4f12=_0x49483d;var _0x2e9c51;return _0x2a8ec7==null||(_0x2e9c51=_0x2a8ec7[_0x4f4f12(0x79)])==null?void 0x0:_0x2e9c51['find'](_0x227b86=>_0x227b86[_0x4f4f12(0xc4)]===_0x2324fb[_0x4f4f12(0x89)]&&_0x227b86[_0x4f4f12(0x96)]===_0x221057);}function Ie(_0x339bef){const _0x34ba6c=_0x49483d;let _0x1ad03d=_0x339bef[_0x34ba6c(0xc6)][_0x34ba6c(0xc3)];if(!_0x1ad03d)return!0x1;let _0x406129=_0x339bef[_0x34ba6c(0x92)]==='left'?_0x339bef[_0x34ba6c(0xdb)]-0x1:_0x339bef[_0x34ba6c(0xdb)],_0x97ab16=_0x339bef[_0x34ba6c(0x92)]===_0x34ba6c(0xe9)?_0x339bef[_0x34ba6c(0xdb)]+0x1:_0x406129;return(_0x1ad03d[_0x34ba6c(0x79)]??[])['some'](_0x2e8d0b=>_0x2e8d0b[_0x34ba6c(0xc4)]===_0x2324fb[_0x34ba6c(0x89)]?_0x406129===_0x2e8d0b[_0x34ba6c(0xca)]||_0x406129===_0x2e8d0b[_0x34ba6c(0xfb)]||_0x97ab16===_0x2e8d0b['startIndex']||_0x97ab16===_0x2e8d0b[_0x34ba6c(0xfb)]:!0x1);}function Le(_0x28d177,_0x22f150){const _0xa78fcf=_0x49483d;var _0x332593;return(_0x332593=_0x28d177[_0xa78fcf(0x79)])==null?void 0x0:_0x332593[_0xa78fcf(0xd5)](_0x2b0e39=>{const _0x36e1e9=_0xa78fcf;let _0x44e7dc=M(_0x2b0e39);return _0x2b0e39['blockType']===_0x2324fb[_0x36e1e9(0x89)]&&_0x2b0e39[_0x36e1e9(0xca)]<=_0x22f150&&_0x22f150<=_0x44e7dc+0x2;});}function Re(_0x3f45ae,_0x3b02a5,_0x1ed424=!0x1){const _0x1efc96=_0x49483d;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x29f404[_0x1efc96(0x97)],'keepNext':_0x3b02a5?_0x29f404[_0x1efc96(0x78)]:_0x29f404[_0x1efc96(0x97)],'widowControl':_0x29f404['TRUE'],..._0x3f45ae&&_0x1ed424?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x391312,_0x11c35b,_0x28e67c,_0x5572d3=!0x1){const _0x16e5ba=_0x49483d;let _0x527240=(_0x391312[_0x16e5ba(0x8a)]??[])[_0x16e5ba(0xf1)](_0x12170c=>_0x12170c[_0x16e5ba(0xca)]>_0x11c35b&&_0x12170c[_0x16e5ba(0xca)]<_0x28e67c);_0x527240[_0x16e5ba(0xe5)]((_0x13d09f,_0x2e86f2)=>{const _0x403290=_0x16e5ba;_0x13d09f[_0x403290(0xdc)]={..._0x13d09f[_0x403290(0xdc)]??{},...Re(_0x2e86f2===0x0,_0x2e86f2===_0x527240[_0x403290(0xa3)]-0x1,_0x5572d3)};});}function Be(_0x424465){const _0x5a0cb9=_0x49483d;var _0x42d594,_0x4f90ba;let _0x55c935={..._0x424465??{}};return delete _0x55c935['indentEnd'],delete _0x55c935[_0x5a0cb9(0xb8)],delete _0x55c935[_0x5a0cb9(0xa7)],delete _0x55c935[_0x5a0cb9(0xe4)],delete _0x55c935['keepLines'],delete _0x55c935[_0x5a0cb9(0xf7)],delete _0x55c935[_0x5a0cb9(0xfa)],((_0x42d594=_0x55c935['textStyle'])==null?void 0x0:_0x42d594['ff'])===Ee&&((_0x4f90ba=_0x55c935[_0x5a0cb9(0x69)])==null?void 0x0:_0x4f90ba['fs'])===0xc&&delete _0x55c935['textStyle'],_0x55c935;}function Ve(_0x136751,_0x3c0278){const _0xdd4f7d=_0x49483d;let _0x597b01=M(_0x3c0278);return(_0x136751[_0xdd4f7d(0x8a)]??[])[_0xdd4f7d(0xf1)](_0x12be88=>_0x12be88['startIndex']>_0x3c0278[_0xdd4f7d(0xca)]&&_0x12be88[_0xdd4f7d(0xca)]<_0x597b01);}function He(_0x319a34,_0x4a07f4){const _0x466d3d=_0x49483d;var _0x33e5e9;let _0x2a8141=M(_0x4a07f4);return Ve(_0x319a34,_0x4a07f4)[_0x466d3d(0xe5)](_0x3a5f34=>{const _0x50da24=_0x466d3d;_0x3a5f34[_0x50da24(0xdc)]=Be(_0x3a5f34[_0x50da24(0xdc)]);}),F(_0x319a34,_0x2a8141,_0x2a8141+0x1),F(_0x319a34,_0x4a07f4[_0x466d3d(0xca)],_0x4a07f4[_0x466d3d(0xca)]+0x1),_0x319a34[_0x466d3d(0x79)]=(_0x33e5e9=_0x319a34[_0x466d3d(0x79)])==null?void 0x0:_0x33e5e9[_0x466d3d(0xf1)](_0x1dd917=>_0x1dd917[_0x466d3d(0x96)]!==_0x4a07f4['blockId']),_0x4a07f4[_0x466d3d(0xca)];}function O(_0x14d594){const _0x16d08f=_0x49483d;return{..._0x14d594,'body':_0x14d594['body']?Ue(_0x14d594[_0x16d08f(0xc3)]):_0x14d594[_0x16d08f(0xc3)]};}function Ue(_0x1d1a3a){const _0x6a3fdc=_0x49483d;var _0x2c65ae,_0x1310ed,_0x32a5ee,_0x17552f,_0x36149d,_0x50d486,_0x257a93,_0x29d0a9,_0x2109ec;return{..._0x1d1a3a,'paragraphs':(_0x2c65ae=_0x1d1a3a[_0x6a3fdc(0x8a)])==null?void 0x0:_0x2c65ae[_0x6a3fdc(0x10f)](_0x48404c=>({..._0x48404c,'bullet':k(_0x48404c[_0x6a3fdc(0xe7)]),'paragraphStyle':k(_0x48404c['paragraphStyle'])})),'sectionBreaks':(_0x1310ed=_0x1d1a3a['sectionBreaks'])==null?void 0x0:_0x1310ed[_0x6a3fdc(0x10f)](_0x50877c=>({..._0x50877c})),'textRuns':(_0x32a5ee=_0x1d1a3a[_0x6a3fdc(0x95)])==null?void 0x0:_0x32a5ee[_0x6a3fdc(0x10f)](_0x539eba=>({..._0x539eba})),'tables':(_0x17552f=_0x1d1a3a[_0x6a3fdc(0xe8)])==null?void 0x0:_0x17552f[_0x6a3fdc(0x10f)](_0x52e5db=>({..._0x52e5db})),'columnGroups':(_0x36149d=_0x1d1a3a[_0x6a3fdc(0xc9)])==null?void 0x0:_0x36149d[_0x6a3fdc(0x10f)](_0x38835a=>{const _0x580558=_0x6a3fdc;var _0x23fa8b;return{..._0x38835a,'columns':(_0x23fa8b=_0x38835a[_0x580558(0xbc)])==null?void 0x0:_0x23fa8b['map'](_0x32505a=>k(_0x32505a))};}),'blockRanges':(_0x50d486=_0x1d1a3a[_0x6a3fdc(0x79)])==null?void 0x0:_0x50d486['map'](_0x118697=>({..._0x118697})),'customRanges':(_0x257a93=_0x1d1a3a[_0x6a3fdc(0x90)])==null?void 0x0:_0x257a93[_0x6a3fdc(0x10f)](_0x53ebbc=>({..._0x53ebbc})),'customDecorations':(_0x29d0a9=_0x1d1a3a[_0x6a3fdc(0xd8)])==null?void 0x0:_0x29d0a9[_0x6a3fdc(0x10f)](_0x4bf904=>({..._0x4bf904})),'customBlocks':(_0x2109ec=_0x1d1a3a[_0x6a3fdc(0x9b)])==null?void 0x0:_0x2109ec['map'](_0x3775bd=>({..._0x3775bd}))};}function k(_0x11b15f){const _0x11112b=_0x49483d;return Array['isArray'](_0x11b15f)?_0x11b15f[_0x11112b(0x10f)](_0x3431e0=>k(_0x3431e0)):!_0x11b15f||typeof _0x11b15f!=_0x11112b(0xa8)?_0x11b15f:Object[_0x11112b(0xf4)](Object[_0x11112b(0x6c)](_0x11b15f)[_0x11112b(0x10f)](([_0x4eff42,_0x4228b3])=>[_0x4eff42,k(_0x4228b3)]));}function _0x1d98(){const _0x53b81e=['paragraphs','registerCommand','TABLE_CELL_END','_setResource','MUTATION','sort','customRanges','getCurrentUnitOfType','direction','monospace','BLOCK_END','textRuns','blockId','TRUE','1356fFBjhY','convert-paragraph','1521960qbcpJR','customBlocks','config','dataStream','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','stringify','docs-code.command.remove','packageName','string','length','replaceDocRanges','_initResource','getCodeConfig','spaceAbove','object','insertionMode','replaceOp','_docsCodeModel','selectionManager','endsWith','model','getUnit','handler','default','setCodeConfig','constructor','symbol','_config','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','indentStart','500717rmLAri','COMMAND','_resourceManagerService','columns','get','every','some','defineProperty','keys','docs-code.command.unwrap','body','blockType','compose','documentData','commandService','docs-code.mutation.set-config','columnGroups','startIndex','insert','registerPluginResource','decorate','nextDocumentData','_resources','asObservable','metadata','parse','endTokenOffset','next','find','_commandService','getParagraphsInRange','customDecorations','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','max','cursorOffset','paragraphStyle','indexOf','push','docs-code.command.cancel-empty-paragraph','from','delete','disposeWithMe','paragraphId','spaceBelow','forEach','syncExecuteCommand','bullet','tables','right','BLOCK_START','1855260FWutor','insertLength','removeUnit','iterator','min','removeOp','filter','_change$','set','fromEntries','insert-new','docs-code.mutation.remove-config','keepNext','pluginName','docs-code.command.consume-boundary-delete','widowControl','endIndex','_configService','removeCode','getInstance','PARAGRAPH','UNIVER_DOC','insertOp','start','34295QHiICr','function','endOffset','previousDocumentData','onStarting','type','version','1245408jwONUG','unitId','toPrimitive','range','startOffset','map','deserialize','getUnitId','isArray','complete','textStyle','_injector','paragraph','entries','sectionBreaks','docs-code.config','getTextRanges','editOp','startTokenOffset','TABLE_CELL_START','javascript','retain','Document\x20body\x20is\x20required','DOC_CODE_PLUGIN','codes','FALSE','blockRanges','dispose','change$','serialize','1.0.2','add','2458440iBVkEC','SECTION_BREAK','prototype','docs-code.command.insert-below','reduce','nextMetadata','7903SHlkbH','slice','paragraphStartIndex','@univerjs-pro/docs-code','CODE'];_0x1d98=function(){return _0x53b81e;};return _0x1d98();}function A(_0x26f889){const _0x49f3d3=_0x49483d;if(!_0x26f889['body'])throw Error(_0x49f3d3(0x75));return _0x26f889[_0x49f3d3(0xc3)];}function We(_0x527721,_0x3d912d,_0x3ddc6f,_0x2e2e3b=_0x49483d(0x99)){const _0x418e8a=_0x49483d;if(_0x3d912d==null||_0x3ddc6f==null){let _0x30a532=Ke(_0x527721);return{'startOffset':_0x30a532,'endOffset':_0x30a532};}let _0x11590e=Math[_0x418e8a(0xef)](_0x3d912d,_0x3ddc6f),_0x40eb22=Math[_0x418e8a(0xda)](_0x3d912d,_0x3ddc6f),_0x42d7ec=Ze(_0x527721,_0x11590e,_0x40eb22);return _0x11590e===_0x40eb22?_0x2e2e3b===_0x418e8a(0xf5)?{'startOffset':_0x11590e,'endOffset':_0x40eb22}:Ge(_0x527721,_0x11590e,_0x42d7ec):Je(_0x527721,_0x11590e,_0x40eb22,_0x42d7ec);}function Ge(_0x372ccf,_0x42cbbc,_0x32c72a){const _0x16b1c7=_0x49483d;let _0x4a3047=Ye(_0x372ccf,_0x42cbbc);if(_0x4a3047){let _0x481536=j(_0x372ccf,_0x4a3047,_0x32c72a);if(_0x481536<_0x4a3047[_0x16b1c7(0xca)])return{'startOffset':_0x481536,'endOffset':_0x32c72a?Math[_0x16b1c7(0xef)](_0x4a3047['startIndex']+0x1,_0x32c72a['endOffset']):_0x4a3047[_0x16b1c7(0xca)]+0x1};}let _0x2aa04f=_0x42cbbc===0x0&&_0x372ccf[_0x16b1c7(0x9d)][0x0]===_0x23e365[_0x16b1c7(0xff)]?0x1:_0x42cbbc;return{'startOffset':_0x2aa04f,'endOffset':_0x2aa04f};}function Ke(_0x315d7c){const _0x2616af=_0x49483d;return _0x315d7c['dataStream'][_0x2616af(0xad)](_0x23e365[_0x2616af(0x80)])?Math[_0x2616af(0xda)](0x0,_0x315d7c[_0x2616af(0x9d)][_0x2616af(0xa3)]-0x1):_0x315d7c[_0x2616af(0x9d)]['length'];}function qe(_0x5aa023,_0x1f7304,_0x498d94){const _0x235637=_0x49483d;var _0x3cc270;let _0x88649a=Math[_0x235637(0xef)](_0x1f7304,_0x498d94),_0x9138e5=Math[_0x235637(0xda)](_0x1f7304,_0x498d94);return!!((_0x3cc270=_0x5aa023[_0x235637(0xe8)])!=null&&_0x3cc270[_0x235637(0xbf)](_0x5d51c6=>_0x88649a>_0x5d51c6['startIndex']&&_0x88649a<_0x5d51c6[_0x235637(0xfb)]||_0x9138e5>_0x5d51c6['startIndex']&&_0x9138e5<_0x5d51c6[_0x235637(0xfb)]||_0x88649a<=_0x5d51c6[_0x235637(0xca)]&&_0x9138e5>=_0x5d51c6['endIndex']));}function Je(_0x3ce0cc,_0x3510e7,_0x94affa,_0x5bc6f9){const _0x118174=_0x49483d;let _0x5334a5=[..._0x3ce0cc[_0x118174(0x8a)]??[]][_0x118174(0x8f)]((_0x3d9f89,_0x233e69)=>_0x3d9f89[_0x118174(0xca)]-_0x233e69['startIndex']),_0x58dfaf=_0x43bde5(_0x3ce0cc),_0x277b49=_0x5334a5[_0x118174(0xd5)](_0x3bfc51=>j(_0x3ce0cc,_0x3bfc51,_0x5bc6f9,_0x58dfaf)<=_0x3510e7&&_0x3510e7<=_0x3bfc51[_0x118174(0xca)]),_0x27158e=_0x5334a5['find'](_0x168630=>_0x168630[_0x118174(0xca)]>=_0x94affa-0x1)??_0x5334a5[_0x5334a5['length']-0x1];return{'startOffset':_0x277b49?j(_0x3ce0cc,_0x277b49,_0x5bc6f9,_0x58dfaf):_0x3510e7,'endOffset':_0x27158e?Xe(_0x27158e,_0x5bc6f9):_0x94affa};}function Ye(_0x1558ed,_0x811343){const _0x53791f=_0x49483d;let _0x19b046=[..._0x1558ed[_0x53791f(0x8a)]??[]]['sort']((_0x56b8c4,_0xcc6c14)=>_0x56b8c4['startIndex']-_0xcc6c14[_0x53791f(0xca)]),_0x1fd7f7=_0x43bde5(_0x1558ed);return _0x19b046[_0x53791f(0xd5)](_0x3085e1=>(_0x1fd7f7[_0x53791f(0xbd)](_0x3085e1[_0x53791f(0xca)])??0x0)<=_0x811343&&_0x811343<=_0x3085e1[_0x53791f(0xca)]);}function j(_0xa29b8a,_0x555624,_0x228966,_0x2021c8){const _0x8e7edf=_0x49483d;let _0x42c9b0=(_0x2021c8==null?void 0x0:_0x2021c8['get'](_0x555624[_0x8e7edf(0xca)]))??_0x53b91f(_0xa29b8a,_0x555624);return _0x228966?Math['max'](_0x42c9b0,_0x228966[_0x8e7edf(0x10e)]):_0x42c9b0;}function Xe(_0x1e78c7,_0x2884b2){const _0x22ada6=_0x49483d;let _0x40fb21=_0x1e78c7[_0x22ada6(0xca)]+0x1;return _0x2884b2?Math[_0x22ada6(0xef)](_0x40fb21,_0x2884b2['endOffset']):_0x40fb21;}function Ze(_0x3fd946,_0x21e92d,_0xba3d8){const _0x2ab049=_0x49483d;let _0x2165e6=Qe(_0x3fd946,_0x21e92d),_0x5f3da5=Qe(_0x3fd946,_0x21e92d===_0xba3d8?_0xba3d8:Math['max'](_0x21e92d,_0xba3d8-0x1));if(_0x2165e6||_0x5f3da5){if(!_0x2165e6||!_0x5f3da5||_0x2165e6[_0x2ab049(0x71)]!==_0x5f3da5['startTokenOffset']||_0x2165e6[_0x2ab049(0xd3)]!==_0x5f3da5['endTokenOffset'])throw new E();return _0x2165e6;}}function Qe(_0x9ed5aa,_0x457200){const _0x245c1f=_0x49483d;let _0x37eb87=_0x9ed5aa['dataStream'],_0x22d64c=-0x1;for(let _0x887331=Math['min'](_0x457200,_0x37eb87[_0x245c1f(0xa3)]-0x1);_0x887331>=0x0;_0x887331--){let _0x752d27=_0x37eb87[_0x887331];if(_0x752d27===_0x23e365['TABLE_CELL_END'])return;if(_0x752d27===_0x23e365[_0x245c1f(0x72)]){_0x22d64c=_0x887331;break;}}if(_0x22d64c<0x0)return;let _0x375215=_0x37eb87[_0x245c1f(0xdd)](_0x23e365[_0x245c1f(0x8c)],_0x22d64c+0x1);if(!(_0x375215<0x0||_0x457200<_0x22d64c+0x1||_0x457200>_0x375215-0x1))return{'startOffset':_0x22d64c+0x1,'endOffset':Math[_0x245c1f(0xda)](_0x22d64c+0x1,_0x375215-0x1),'startTokenOffset':_0x22d64c,'endTokenOffset':_0x375215};}function M(_0x16bd20){const _0x1cffa3=_0x49483d;return _0x5c8dbe(_0x16bd20)[_0x1cffa3(0x105)]-0x1;}function $e(_0x1dd05a,_0x50ea1f,_0x4c76dc,_0x1a7407){const _0xba63fb=_0x49483d;let _0x1d9a80=M(_0x50ea1f),_0x3473f6=(_0x1dd05a[_0xba63fb(0x8a)]??[])[_0xba63fb(0xd5)](_0x534be5=>_0x534be5[_0xba63fb(0xca)]===_0x1d9a80+0x1);if(!_0x3473f6||_0x1a7407!=null&&_0x3473f6[_0xba63fb(0xca)]!==_0x1a7407||_0x4c76dc!=null&&(_0x4c76dc<_0x1d9a80||_0x4c76dc>_0x3473f6[_0xba63fb(0xca)]+0x1)||_0x1dd05a[_0xba63fb(0x9d)][_0x3473f6[_0xba63fb(0xca)]]!==_0x23e365[_0xba63fb(0xff)])return null;let _0x3faa15=_0x53b91f(_0x1dd05a,_0x3473f6),_0x40f6b0=_0x1dd05a[_0xba63fb(0x9d)][_0xba63fb(0x86)](_0x3faa15,_0x3473f6['startIndex']);return Array[_0xba63fb(0xe0)](_0x40f6b0)[_0xba63fb(0xbe)](_0x1c3817=>_0x1c3817===_0x23e365[_0xba63fb(0x94)])?{'paragraph':_0x3473f6,'endTokenOffset':_0x1d9a80}:null;}function N(_0x4aac1c,_0x57183e){const _0x595756=_0x49483d;var _0x28a092;let _0x1a104d=M(_0x57183e),_0x57cb3c=_0x4aac1c[_0x595756(0x9d)][_0x1a104d+0x1];(_0x57cb3c===_0x23e365[_0x595756(0x80)]||_0x57cb3c===void 0x0)&&P(_0x4aac1c,_0x1a104d+0x1,_0x23e365[_0x595756(0xff)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x338f66(new Set((_0x28a092=_0x4aac1c[_0x595756(0x8a)])==null?void 0x0:_0x28a092[_0x595756(0x10f)](_0xf7aa0=>_0xf7aa0[_0x595756(0xe3)])))}]});}function P(_0x3c719f,_0x1266f0,_0x15fe14,_0x51a13c={}){const _0x31ff68=_0x49483d;var _0x38a78a,_0x28a5a2;_0x15fe14&&(_0x3c719f[_0x31ff68(0x9d)]=''+_0x3c719f['dataStream']['slice'](0x0,_0x1266f0)+_0x15fe14+_0x3c719f[_0x31ff68(0x9d)]['slice'](_0x1266f0),et(_0x3c719f,_0x1266f0,_0x15fe14[_0x31ff68(0xa3)]),(_0x38a78a=_0x51a13c['paragraphs'])!=null&&_0x38a78a[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x8a)]=[..._0x3c719f['paragraphs']??[],..._0x51a13c[_0x31ff68(0x8a)][_0x31ff68(0x10f)](_0x27a966=>({..._0x27a966,'startIndex':_0x27a966[_0x31ff68(0xca)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x58d0c1,_0x5efc5c)=>_0x58d0c1[_0x31ff68(0xca)]-_0x5efc5c['startIndex'])),(_0x28a5a2=_0x51a13c['blockRanges'])!=null&&_0x28a5a2[_0x31ff68(0xa3)]&&(_0x3c719f[_0x31ff68(0x79)]=[..._0x3c719f[_0x31ff68(0x79)]??[],..._0x51a13c[_0x31ff68(0x79)]['map'](_0x19ed57=>({..._0x19ed57,'startIndex':_0x19ed57[_0x31ff68(0xca)]+_0x1266f0,'endIndex':_0x19ed57[_0x31ff68(0xfb)]+_0x1266f0}))][_0x31ff68(0x8f)]((_0x2aa1d1,_0x57c34b)=>_0x2aa1d1[_0x31ff68(0xca)]-_0x57c34b['startIndex'])));}function F(_0x48e2a9,_0x4c0fd9,_0x582d97){const _0x177543=_0x49483d;let _0x53e781=_0x582d97-_0x4c0fd9;_0x48e2a9[_0x177543(0x9d)]=''+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](0x0,_0x4c0fd9)+_0x48e2a9[_0x177543(0x9d)][_0x177543(0x86)](_0x582d97),tt(_0x48e2a9,_0x4c0fd9,_0x53e781);}function et(_0x54ca30,_0x2b9eb2,_0x5cf9e1){const _0x5afbfb=_0x49483d;_0x54ca30[_0x5afbfb(0x8a)]=I(_0x54ca30[_0x5afbfb(0x8a)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x6d)]=I(_0x54ca30[_0x5afbfb(0x6d)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x9b)]=I(_0x54ca30[_0x5afbfb(0x9b)],_0x2b9eb2,_0x5cf9e1),_0x54ca30['textRuns']=nt(_0x54ca30[_0x5afbfb(0x95)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xe8)]=rt(_0x54ca30['tables'],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xc9)]=R(_0x54ca30[_0x5afbfb(0xc9)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x90)]=R(_0x54ca30[_0x5afbfb(0x90)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0xd8)]=R(_0x54ca30[_0x5afbfb(0xd8)],_0x2b9eb2,_0x5cf9e1),_0x54ca30[_0x5afbfb(0x79)]=R(_0x54ca30[_0x5afbfb(0x79)],_0x2b9eb2,_0x5cf9e1);}function tt(_0x4b784f,_0x1811bf,_0x11d3a5){const _0x55f1a0=_0x49483d;var _0x55f068,_0x3fa23d;_0x4b784f['paragraphs']=L(_0x4b784f[_0x55f1a0(0x8a)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x6d)]=L(_0x4b784f['sectionBreaks'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x9b)]=L(_0x4b784f[_0x55f1a0(0x9b)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x95)]=(_0x55f068=it((_0x3fa23d=_0x4b784f[_0x55f1a0(0x95)])==null?void 0x0:_0x3fa23d[_0x55f1a0(0x10f)](_0xa8dc8c=>({..._0xa8dc8c,'startIndex':_0xa8dc8c['st'],'endIndex':_0xa8dc8c['ed']})),_0x1811bf,_0x11d3a5))==null?void 0x0:_0x55f068[_0x55f1a0(0x10f)](_0x44d1b4=>{let {startIndex:_0x3c5a04,endIndex:_0x2ba6af,..._0x1b2e46}=_0x44d1b4;return{..._0x1b2e46,'st':_0x3c5a04,'ed':_0x2ba6af};}),_0x4b784f[_0x55f1a0(0xe8)]=it(_0x4b784f[_0x55f1a0(0xe8)],_0x1811bf,_0x11d3a5),_0x4b784f['columnGroups']=z(_0x4b784f[_0x55f1a0(0xc9)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x90)]=z(_0x4b784f[_0x55f1a0(0x90)],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0xd8)]=z(_0x4b784f['customDecorations'],_0x1811bf,_0x11d3a5),_0x4b784f[_0x55f1a0(0x79)]=z(_0x4b784f[_0x55f1a0(0x79)],_0x1811bf,_0x11d3a5);}function I(_0x35a8ac,_0xb5d92,_0x3536ca){const _0x2989c3=_0x49483d;return _0x35a8ac==null?void 0x0:_0x35a8ac[_0x2989c3(0x10f)](_0x49764d=>_0x49764d[_0x2989c3(0xca)]>=_0xb5d92?{..._0x49764d,'startIndex':_0x49764d['startIndex']+_0x3536ca}:_0x49764d);}function L(_0x1d4770,_0x34a2d7,_0x15307b){const _0xacf524=_0x49483d;let _0xc61e6c=_0x34a2d7+_0x15307b;return _0x1d4770==null?void 0x0:_0x1d4770[_0xacf524(0x10f)](_0x49ce98=>_0x49ce98[_0xacf524(0xca)]>=_0x34a2d7&&_0x49ce98['startIndex']<_0xc61e6c?null:_0x49ce98[_0xacf524(0xca)]>=_0xc61e6c?{..._0x49ce98,'startIndex':_0x49ce98['startIndex']-_0x15307b}:_0x49ce98)[_0xacf524(0xf1)](_0x41efe3=>_0x41efe3!=null);}function nt(_0x430eea,_0x12f39b,_0x3714b7){const _0x314ba2=_0x49483d;return _0x430eea==null?void 0x0:_0x430eea[_0x314ba2(0x10f)](_0x173020=>_0x173020['st']>=_0x12f39b?{..._0x173020,'st':_0x173020['st']+_0x3714b7,'ed':_0x173020['ed']+_0x3714b7}:_0x173020['ed']>_0x12f39b?{..._0x173020,'ed':_0x173020['ed']+_0x3714b7}:_0x173020);}function R(_0x2264a,_0x249d9e,_0x791a33){const _0x1728bd=_0x49483d;return _0x2264a==null?void 0x0:_0x2264a[_0x1728bd(0x10f)](_0x48860e=>_0x4cbd10(_0x48860e,_0x249d9e,_0x791a33));}function rt(_0x37cbe8,_0x148210,_0x320124){const _0x48a36e=_0x49483d;return _0x37cbe8==null?void 0x0:_0x37cbe8[_0x48a36e(0x10f)](_0xbe57dc=>_0x3f24e6(_0xbe57dc,_0x148210,_0x320124));}function z(_0x26908f,_0x45c75c,_0x522636){const _0x44a783=_0x49483d;return _0x26908f==null?void 0x0:_0x26908f[_0x44a783(0x10f)](_0x35cd26=>_0x2cee19(_0x35cd26,_0x45c75c,_0x522636))['filter'](_0x58a29c=>_0x58a29c!=null);}function it(_0x43824b,_0x53de3f,_0x15acc3){const _0xab3232=_0x49483d;return _0x43824b==null?void 0x0:_0x43824b['map'](_0x5786c3=>_0xc1b9cd(_0x5786c3,_0x53de3f,_0x15acc3))[_0xab3232(0xf1)](_0x3e1274=>_0x3e1274!=null);}function _0x10b3(_0x139bf2,_0x367a17){_0x139bf2=_0x139bf2-0x65;const _0x1d98ba=_0x1d98();let _0x10b317=_0x1d98ba[_0x139bf2];return _0x10b317;}const at={'id':_0x49483d(0x82),'type':_0x446cfc[_0x49483d(0xba)],'handler':_0x54aef2=>{const _0x45975b=_0x49483d;var _0x2e7799;if(_0x584ad5(G(_0x54aef2)))return!0x1;let _0x29ef0f=_0x34eb39(_0x54aef2);if(_0x29ef0f)return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x29ef0f[_0x45975b(0x10e)],'endOffset':_0x29ef0f[_0x45975b(0x105)],'insertionMode':_0x45975b(0xf5),'unitId':_0x29ef0f[_0x45975b(0x10b)]});let _0x1cc77b=ft(_0x54aef2);if(!_0x1cc77b)return!0x1;let _0x4c2b84=(_0x2e7799=_0x54aef2[_0x45975b(0xbd)](_0x1f322c)[_0x45975b(0x91)](_0x2fc27d[_0x45975b(0x100)]))==null?void 0x0:_0x2e7799['getBody'](),_0x4d02b7=_0x4c2b84?_0x15574e(_0x4c2b84,_0x1cc77b):_0x1cc77b[_0x45975b(0xca)]+0x1;return _0x54aef2[_0x45975b(0xbd)](_0x330d40)['syncExecuteCommand'](B['id'],{'startOffset':_0x4d02b7,'endOffset':_0x4d02b7});}},ot={'id':_0x49483d(0xf9),'type':_0x446cfc[_0x49483d(0xba)],'handler':()=>!0x0},B={'id':'docs-code.command.insert','type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x5ced54,_0xfff347)=>{const _0x11f6f6=_0x49483d;let _0x4364cb=W(_0x5ced54,_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x10b)]);if(!_0x4364cb)return!0x1;let _0x2f4f7b=G(_0x5ced54);if(_0x584ad5(_0x2f4f7b))return!0x1;let _0x470f30=_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x7c)](_0x4364cb[_0x11f6f6(0x10b)]),_0x447e02=lt(_0xfff347,_0x2f4f7b),_0x36928e=ut(_0x4364cb[_0x11f6f6(0x106)],_0x447e02);if(_0x36928e){if(_0x36928e[_0x11f6f6(0xc4)]!==_0x2324fb['CODE'])return!0x1;let _0x4f47c4=D({'blockId':_0x36928e['blockId'],'documentData':_0x4364cb[_0x11f6f6(0x106)],'metadata':_0x470f30});if(!_0x4f47c4)return!0x1;let _0xc56bdf=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb[_0x11f6f6(0xac)],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb[_0x11f6f6(0x106)],_0x4f47c4[_0x11f6f6(0xce)],B['id'],_0x4f47c4[_0x11f6f6(0xdb)]);return _0xc56bdf&&_0x4f47c4[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)]['deserialize'](_0x4364cb[_0x11f6f6(0x10b)],_0x4f47c4['nextMetadata']),_0xc56bdf;}let _0x57aa41=(_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x96)])??_0x5cf7a0(0x6),_0xe03c18;try{_0xe03c18=De({'blockId':_0x57aa41,'config':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0x9c)],'documentData':_0x4364cb[_0x11f6f6(0x106)],'endOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x105)],'insertionMode':_0xfff347==null?void 0x0:_0xfff347[_0x11f6f6(0xa9)],'metadata':_0x470f30,'startOffset':_0x447e02==null?void 0x0:_0x447e02[_0x11f6f6(0x10e)]});}catch(_0x272d0a){if(_0x272d0a instanceof E)return!0x1;throw _0x272d0a;}let _0x28b016=Y(_0x4364cb[_0x11f6f6(0xc7)],_0x4364cb['selectionManager'],_0x4364cb[_0x11f6f6(0x10b)],_0x4364cb['previousDocumentData'],_0xe03c18[_0x11f6f6(0xce)],B['id'],_0xe03c18[_0x11f6f6(0xdb)]);return _0x28b016&&_0xe03c18[_0x11f6f6(0x84)]&&_0x4364cb[_0x11f6f6(0xae)][_0x11f6f6(0x65)](_0x4364cb[_0x11f6f6(0x10b)],_0xe03c18[_0x11f6f6(0x84)]),_0x28b016;}},st={'id':'docs-code.command.update','type':_0x446cfc['COMMAND'],'handler':(_0x6a12c2,_0x2a753a)=>{const _0x13a052=_0x49483d;if(!_0x2a753a)return!0x1;let _0x92192=W(_0x6a12c2,_0x2a753a[_0x13a052(0x10b)]);if(!_0x92192)return!0x1;let _0x1319af=je({'blockId':_0x2a753a[_0x13a052(0x96)],'config':_0x2a753a[_0x13a052(0x9c)],'documentData':_0x92192[_0x13a052(0x106)],'metadata':_0x92192['model'][_0x13a052(0x7c)](_0x92192[_0x13a052(0x10b)])});return _0x1319af[_0x13a052(0x84)]&&_0x92192[_0x13a052(0xae)]['deserialize'](_0x92192[_0x13a052(0x10b)],_0x1319af[_0x13a052(0x84)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x446cfc['COMMAND'],'handler':(_0xa76678,_0x21d0f2)=>V[_0x49483d(0xb0)](_0xa76678,_0x21d0f2)},V={'id':_0x49483d(0xc2),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x4317f9,_0x1ac49a)=>{const _0xb165f0=_0x49483d;if(!_0x1ac49a)return!0x1;let _0x128479=W(_0x4317f9,_0x1ac49a==null?void 0x0:_0x1ac49a[_0xb165f0(0x10b)]);if(!_0x128479)return!0x1;let _0x27a2db=D({'blockId':_0x1ac49a[_0xb165f0(0x96)],'documentData':_0x128479['previousDocumentData'],'metadata':_0x128479[_0xb165f0(0xae)][_0xb165f0(0x7c)](_0x128479[_0xb165f0(0x10b)])});if(!_0x27a2db)return!0x1;let _0x5bf9be=Y(_0x128479[_0xb165f0(0xc7)],_0x128479[_0xb165f0(0xac)],_0x128479['unitId'],_0x128479[_0xb165f0(0x106)],_0x27a2db[_0xb165f0(0xce)],V['id'],_0x27a2db['cursorOffset']);return _0x5bf9be&&_0x27a2db[_0xb165f0(0x84)]&&_0x128479['model']['deserialize'](_0x128479[_0xb165f0(0x10b)],_0x27a2db[_0xb165f0(0x84)]),_0x5bf9be;}},H={'id':_0x49483d(0xa0),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x32bd2a,_0x71fc0f)=>{const _0xe9b79c=_0x49483d;if(!_0x71fc0f)return!0x1;let _0x8665ad=W(_0x32bd2a,_0x71fc0f==null?void 0x0:_0x71fc0f[_0xe9b79c(0x10b)]);if(!_0x8665ad)return!0x1;let _0xf6f7ec=Me({'blockId':_0x71fc0f[_0xe9b79c(0x96)],'documentData':_0x8665ad[_0xe9b79c(0x106)],'metadata':_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x7c)](_0x8665ad[_0xe9b79c(0x10b)])});if(!_0xf6f7ec)return!0x1;let _0x29a4fb=Y(_0x8665ad['commandService'],_0x8665ad[_0xe9b79c(0xac)],_0x8665ad['unitId'],_0x8665ad[_0xe9b79c(0x106)],_0xf6f7ec[_0xe9b79c(0xce)],H['id'],_0xf6f7ec[_0xe9b79c(0xdb)]);return _0x29a4fb&&_0xf6f7ec[_0xe9b79c(0x84)]&&_0x8665ad[_0xe9b79c(0xae)][_0xe9b79c(0x65)](_0x8665ad[_0xe9b79c(0x10b)],_0xf6f7ec[_0xe9b79c(0x84)]),_0x29a4fb;}},U={'id':_0x49483d(0xdf),'type':_0x446cfc[_0x49483d(0xba)],'handler':(_0x1a7e0e,_0x39ac38)=>{const _0x36bd4e=_0x49483d;var _0x33d82f;let _0x373be3=W(_0x1a7e0e,_0x39ac38==null?void 0x0:_0x39ac38['unitId']);if(!_0x373be3)return!0x1;let _0x3c9908=(_0x39ac38==null?void 0x0:_0x39ac38['cursorOffset'])??((_0x33d82f=G(_0x1a7e0e))==null?void 0x0:_0x33d82f[_0x36bd4e(0x10e)]);if(_0x3c9908==null)return!0x1;let _0x54d46e=Ne({'cursorOffset':_0x3c9908,'documentData':_0x373be3[_0x36bd4e(0x106)],'paragraphStartIndex':_0x39ac38==null?void 0x0:_0x39ac38['paragraphStartIndex']});return _0x54d46e?Y(_0x373be3[_0x36bd4e(0xc7)],_0x373be3['selectionManager'],_0x373be3['unitId'],_0x373be3[_0x36bd4e(0x106)],_0x54d46e[_0x36bd4e(0xce)],U['id'],_0x54d46e[_0x36bd4e(0xdb)]):!0x1;}};function W(_0xd4eb6a,_0x4cb76d){const _0x24888c=_0x49483d;let _0x4ee59d=_0xd4eb6a[_0x24888c(0xbd)](_0x1f322c),_0x3ffd57=_0x4cb76d?_0x4ee59d[_0x24888c(0xaf)](_0x4cb76d,_0x2fc27d[_0x24888c(0x100)]):_0x4ee59d['getCurrentUnitOfType'](_0x2fc27d[_0x24888c(0x100)]);return _0x3ffd57?{'commandService':_0xd4eb6a[_0x24888c(0xbd)](_0x330d40),'model':_0xd4eb6a[_0x24888c(0xbd)](w),'previousDocumentData':_0x3ffd57[_0x24888c(0xb6)](),'selectionManager':_0xd4eb6a['get'](_0x2baf85),'unitId':_0x3ffd57[_0x24888c(0x66)]()}:null;}function G(_0x34f940){const _0x4f44bd=_0x49483d;var _0x5a03b0;return(_0x5a03b0=_0x34f940[_0x4f44bd(0xbd)](_0x2baf85)[_0x4f44bd(0x6f)]())==null?void 0x0:_0x5a03b0[0x0];}function lt(_0x555859,_0x19d3df){const _0x377f13=_0x49483d;let _0x14de05=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x10e)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x10e)]),_0x21b04f=(_0x555859==null?void 0x0:_0x555859[_0x377f13(0x105)])??(_0x19d3df==null?void 0x0:_0x19d3df[_0x377f13(0x105)]);if(_0x14de05!=null&&_0x21b04f!=null)return{'endOffset':Math[_0x377f13(0xda)](_0x14de05,_0x21b04f),'startOffset':Math[_0x377f13(0xef)](_0x14de05,_0x21b04f)};}function ut(_0xa33196,_0x56ce2c){const _0x591e07=_0x49483d;var _0xf3b25;if(!_0x56ce2c)return;let _0x520d36=dt(_0x56ce2c);return(_0xf3b25=_0xa33196['body'])==null||(_0xf3b25=_0xf3b25[_0x591e07(0x79)])==null?void 0x0:_0xf3b25[_0x591e07(0xd5)](_0x5e51ee=>{const _0x7cb9f8=_0x591e07;let _0x5dfe9c=_0x5c8dbe(_0x5e51ee);return _0x56ce2c[_0x7cb9f8(0x10e)]===_0x56ce2c['endOffset']?_0x116958(_0x5dfe9c,_0x520d36):_0x2d8224(_0x5dfe9c,_0x520d36);});}function dt(_0x2e8a1f){const _0x35289b=_0x49483d;return _0x2e8a1f[_0x35289b(0x10e)]===_0x2e8a1f[_0x35289b(0x105)]?_0x2e8a1f[_0x35289b(0x10e)]:_0x2e8a1f['startOffset']+0x1;}function ft(_0x427789){const _0x19f654=_0x49483d;let _0x405096=G(_0x427789);if(!_0x405096)return null;let _0x2b49f8=_0x427789[_0x19f654(0xbd)](_0x1f322c)['getCurrentUnitOfType'](_0x2fc27d[_0x19f654(0x100)]),_0x21ddc4=_0x2b49f8==null?void 0x0:_0x2b49f8['getBody']();return _0x21ddc4?_0x18ba16[_0x19f654(0x10d)][_0x19f654(0xd7)](_0x405096,_0x21ddc4['paragraphs']??[],_0x21ddc4['dataStream']??'')[0x0]??null:null;}function pt(_0x222ea4,_0x2c117a){const _0x261dfb=_0x49483d;let _0x2a1c3c=_0x222ea4['body'],_0x79e5c3=_0x2c117a['body'],_0x4de52e=_0x5c68b1(_0x2a1c3c,_0x79e5c3);return[_0x4de52e&&_0x79e5c3?mt(_0x79e5c3,_0x4de52e):null,_0x4de52e?null:ht(_0x2a1c3c,_0x79e5c3)]['filter'](Boolean)[_0x261dfb(0x83)]((_0x570cd9,_0x648e99)=>_0x424cd6[_0x261dfb(0xc5)](_0x570cd9,_0x648e99),null);}function mt(_0x53d23b,_0x4171f5){const _0xb39234=_0x49483d;let _0x434ce8=new _0x227fc3();return _0x434ce8[_0xb39234(0x74)](_0x4171f5[_0xb39234(0x102)]),_0x4171f5['insertLength']>0x0&&_0x434ce8[_0xb39234(0xcb)](_0x4171f5[_0xb39234(0xec)],_0x25d42f(_0x53d23b,_0x4171f5[_0xb39234(0x102)],_0x4171f5['start']+_0x4171f5['insertLength'],!0x1)),_0x4171f5['deleteLength']>0x0&&_0x434ce8[_0xb39234(0xe1)](_0x4171f5['deleteLength']),_0x424cd6[_0xb39234(0xfe)]()[_0xb39234(0x70)](_0x434ce8[_0xb39234(0x7c)](),[_0xb39234(0xc3)]);}function ht(_0x1da439,_0x1ed598){const _0x1d21a5=_0x49483d;let _0x253ce5=[],_0x2b67a7=_0x1da439?_t(_0x1da439):void 0x0,_0x3691f0=_0x1ed598?_t(_0x1ed598):void 0x0;for(let _0x38473a of gt)K(_0x424cd6[_0x1d21a5(0xfe)](),[_0x1d21a5(0xc3),_0x38473a],_0x2b67a7==null?void 0x0:_0x2b67a7[_0x38473a],_0x3691f0==null?void 0x0:_0x3691f0[_0x38473a],_0x253ce5);return _0x253ce5[_0x1d21a5(0x83)]((_0x5dbd29,_0x57f324)=>_0x424cd6[_0x1d21a5(0xc5)](_0x5dbd29,_0x57f324),null);}const gt=[_0x49483d(0x8a),_0x49483d(0x6d),_0x49483d(0xe8),_0x49483d(0xc9),_0x49483d(0x79),_0x49483d(0x9b),'customRanges',_0x49483d(0xd8),_0x49483d(0x95)];function _t(_0x788228){return _0x788228;}function K(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a){const _0xfba002=_0x49483d;if(!J(_0x356f6e,_0x16d58f)){if(_0x356f6e==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0x101)](_0x36df53,_0x16d58f));return;}if(_0x16d58f==null){_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xf0)](_0x36df53,_0x356f6e));return;}if(Array[_0xfba002(0x67)](_0x356f6e)&&Array[_0xfba002(0x67)](_0x16d58f)){vt(_0x24a0fd,_0x36df53,_0x356f6e,_0x16d58f,_0x19a41a);return;}if(q(_0x356f6e)&&q(_0x16d58f)){new Set([...Object[_0xfba002(0xc1)](_0x356f6e),...Object[_0xfba002(0xc1)](_0x16d58f)])['forEach'](_0x4efe8b=>{K(_0x24a0fd,[..._0x36df53,_0x4efe8b],_0x356f6e[_0x4efe8b],_0x16d58f[_0x4efe8b],_0x19a41a);});return;}_0x19a41a[_0xfba002(0xde)](_0x24a0fd[_0xfba002(0xaa)](_0x36df53,_0x356f6e,_0x16d58f));}}function vt(_0x308964,_0x597f92,_0x1a7922,_0x3ef404,_0x1663fc){const _0x22e6c0=_0x49483d;if(_0x1a7922[_0x22e6c0(0xa3)]===_0x3ef404[_0x22e6c0(0xa3)]){_0x1a7922[_0x22e6c0(0xe5)]((_0x211b4e,_0x1d73d1)=>K(_0x308964,[..._0x597f92,_0x1d73d1],_0x211b4e,_0x3ef404[_0x1d73d1],_0x1663fc));return;}let _0x117c98=0x0;for(;_0x117c98<_0x1a7922[_0x22e6c0(0xa3)]&&_0x117c98<_0x3ef404['length']&&J(_0x1a7922[_0x117c98],_0x3ef404[_0x117c98]);)_0x117c98++;let _0x15a85a=_0x1a7922['length']-0x1,_0x278a39=_0x3ef404[_0x22e6c0(0xa3)]-0x1;for(;_0x15a85a>=_0x117c98&&_0x278a39>=_0x117c98&&J(_0x1a7922[_0x15a85a],_0x3ef404[_0x278a39]);)_0x15a85a--,_0x278a39--;for(let _0x43fb6a=_0x15a85a;_0x43fb6a>=_0x117c98;_0x43fb6a--)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0xf0)]([..._0x597f92,_0x43fb6a],_0x1a7922[_0x43fb6a]));for(let _0x3c12d1=_0x117c98;_0x3c12d1<=_0x278a39;_0x3c12d1++)_0x1663fc[_0x22e6c0(0xde)](_0x308964[_0x22e6c0(0x101)]([..._0x597f92,_0x3c12d1],_0x3ef404[_0x3c12d1]));}function q(_0x4797f5){const _0x5d12d5=_0x49483d;return typeof _0x4797f5=='object'&&!!_0x4797f5&&!Array[_0x5d12d5(0x67)](_0x4797f5);}function J(_0x5a92d8,_0x3219c0){const _0x534fbb=_0x49483d;return JSON[_0x534fbb(0x9f)](_0x5a92d8)===JSON[_0x534fbb(0x9f)](_0x3219c0);}function Y(_0x2b8fb0,_0x5ae991,_0x13d374,_0x2c033f,_0x31579f,_0x308447,_0x3db8be){const _0x2c80f3=_0x49483d;let _0x528c68=pt(_0x2c033f,_0x31579f);return _0x528c68?!!_0x2b8fb0[_0x2c80f3(0xe6)](_0x274029['id'],{'unitId':_0x13d374,'actions':_0x528c68,'textRanges':[{'startOffset':_0x3db8be,'endOffset':_0x3db8be,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x308447}):(_0x5ae991[_0x2c80f3(0xa4)]([{'startOffset':_0x3db8be,'endOffset':_0x3db8be}],{'unitId':_0x13d374,'subUnitId':_0x13d374},!0x1),!0x0);}const X=_0x49483d(0x76);var yt=_0x49483d(0x88),bt=_0x49483d(0x7d);const xt={};function Z(_0x42699c,_0x3da817){return function(_0x78651b,_0x411faa){_0x3da817(_0x78651b,_0x411faa,_0x42699c);};}function St(_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80){const _0x1f96ee=_0x49483d;var _0x1b43ba=arguments[_0x1f96ee(0xa3)],_0x423ae9=_0x1b43ba<0x3?_0x440249:_0x561e80===null?_0x561e80=Object['getOwnPropertyDescriptor'](_0x440249,_0x3b8ed4):_0x561e80,_0x2ba52f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1f96ee(0x104))_0x423ae9=Reflect[_0x1f96ee(0xcd)](_0x1fb6a7,_0x440249,_0x3b8ed4,_0x561e80);else{for(var _0x12c472=_0x1fb6a7[_0x1f96ee(0xa3)]-0x1;_0x12c472>=0x0;_0x12c472--)(_0x2ba52f=_0x1fb6a7[_0x12c472])&&(_0x423ae9=(_0x1b43ba<0x3?_0x2ba52f(_0x423ae9):_0x1b43ba>0x3?_0x2ba52f(_0x440249,_0x3b8ed4,_0x423ae9):_0x2ba52f(_0x440249,_0x3b8ed4))||_0x423ae9);}return _0x1b43ba>0x3&&_0x423ae9&&Object['defineProperty'](_0x440249,_0x3b8ed4,_0x423ae9),_0x423ae9;}let Q=class extends _0x24e448{constructor(_0x1ee959,_0xb4519d){const _0x58c2d7=_0x49483d;super(),this[_0x58c2d7(0xbb)]=_0x1ee959,this[_0x58c2d7(0xab)]=_0xb4519d,this[_0x58c2d7(0xa5)]();}['_initResource'](){const _0x296147=_0x49483d;this[_0x296147(0xe2)](this[_0x296147(0xbb)][_0x296147(0xcc)]({'pluginName':X,'businesses':[_0x2fc27d[_0x296147(0x100)]],'toJson':_0x300f4=>JSON['stringify'](this[_0x296147(0xab)][_0x296147(0x7c)](_0x300f4)),'parseJson':_0x3cfe2e=>y(JSON[_0x296147(0xd2)](_0x3cfe2e)),'onLoad':(_0x2b4d4d,_0x20dbc8)=>this[_0x296147(0xab)][_0x296147(0x65)](_0x2b4d4d,_0x20dbc8),'onUnLoad':_0x16b5c9=>this[_0x296147(0xab)]['removeUnit'](_0x16b5c9)}));}};Q=St([Z(0x0,_0x4ec5e9),Z(0x1,_0x34c829(w))],Q);let $=class extends _0x5a8ee0{constructor(_0x222113=xt,_0x18758b,_0x590d25,_0x26903b){const _0x146d8d=_0x49483d;super(),this[_0x146d8d(0xb5)]=_0x222113,this[_0x146d8d(0x6a)]=_0x18758b,this[_0x146d8d(0xd6)]=_0x590d25,this[_0x146d8d(0xfc)]=_0x26903b;let {..._0x172860}=_0x1470e9({},xt,this[_0x146d8d(0xb5)]);this[_0x146d8d(0xfc)]['setConfig'](_0x146d8d(0x6e),_0x172860);}[_0x49483d(0x107)](){const _0x5207d1=_0x49483d;this['_injector'][_0x5207d1(0x7e)]([w]),this[_0x5207d1(0x6a)]['add']([Q]),this['_injector'][_0x5207d1(0xbd)](w),this[_0x5207d1(0x6a)][_0x5207d1(0xbd)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x5207d1(0xe5)](_0x5dc876=>this['disposeWithMe'](this['_commandService'][_0x5207d1(0x8b)](_0x5dc876)));}};C($,_0x49483d(0xf8),X),C($,_0x49483d(0xa1),yt),C($,_0x49483d(0x109),bt),C($,_0x49483d(0x108),_0x2fc27d[_0x49483d(0x100)]),$=St([_0x5aaaeb(_0xecd332,_0x565d36),Z(0x1,_0x34c829(_0x38f326)),Z(0x2,_0x330d40),Z(0x3,_0x5ce515)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|
|
1
|
+
const _0x5e70aa=_0x196d;(function(_0x16009a,_0x755f50){const _0x3972ad=_0x196d,_0x18aa0e=_0x16009a();while(!![]){try{const _0x5e8f13=-parseInt(_0x3972ad(0x25f))/0x1*(parseInt(_0x3972ad(0x228))/0x2)+parseInt(_0x3972ad(0x1e8))/0x3*(-parseInt(_0x3972ad(0x279))/0x4)+-parseInt(_0x3972ad(0x280))/0x5*(parseInt(_0x3972ad(0x24d))/0x6)+parseInt(_0x3972ad(0x22b))/0x7*(-parseInt(_0x3972ad(0x233))/0x8)+parseInt(_0x3972ad(0x254))/0x9*(parseInt(_0x3972ad(0x273))/0xa)+parseInt(_0x3972ad(0x210))/0xb+parseInt(_0x3972ad(0x281))/0xc;if(_0x5e8f13===_0x755f50)break;else _0x18aa0e['push'](_0x18aa0e['shift']());}catch(_0x3bd98c){_0x18aa0e['push'](_0x18aa0e['shift']());}}}(_0xfdd7,0x1b711));import{BooleanNumber as _0x4e8187,BuildTextUtils as _0x101a6d,CommandType as _0x2aabf9,DataStreamTreeTokenType as _0x430e4a,DependentOn as _0xbd1de2,Disposable as _0xda6805,DocumentBlockRangeType as _0x58ea90,ICommandService as _0x345515,IConfigService as _0x42cbf8,IResourceManagerService as _0x2b7a1e,IUniverInstanceService as _0x7eb0f5,Inject as _0x1376f9,Injector as _0x18c912,JSONX as _0x2e6159,Plugin as _0x29051f,TextX as _0x4f8d7c,UniverInstanceType as _0x221a97,containsInteriorInsertionOffset as _0x22cea4,containsStreamIndex as _0x5ecdee,createParagraphId as _0xb483bf,generateRandomId as _0x185e0f,getBlockRangeInterval as _0x25d697,getBodySliceForTextXAction as _0x201241,getParagraphContentStartOffset as _0x3d99b8,getParagraphContentStartOffsets as _0x1f839d,getParagraphFollowingBlockOffset as _0x39af8b,getSingleDataStreamChange as _0x2fc954,intersectsOperationalIntervals as _0x21add1,merge as _0x56f20c,shiftExclusiveRangeOnDelete as _0x1caa6f,shiftExclusiveRangeOnInsert as _0x29d384,shiftInclusiveRangeOnDelete as _0x42032c,shiftInclusiveRangeOnInsert as _0x381408}from'@univerjs/core';import{Subject as _0x41b588}from'rxjs';import{DocSelectionManagerService as _0x1dae47,RichTextEditingMutation as _0x59a84f,UniverDocsPlugin as _0x3f4352,getContentInsertRange as _0xf77ce,isHeaderFooterSelection as _0x2f5dc4}from'@univerjs/docs';import{UniverLicensePlugin as _0x140279}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x431702){return{...Se,..._0x431702};}function y(_0x970711){const _0x3e5fc7=_0x196d;let _0x4eafd1=(_0x970711==null?void 0x0:_0x970711[_0x3e5fc7(0x237)])??{};return{'codes':Object[_0x3e5fc7(0x201)](Object[_0x3e5fc7(0x27e)](_0x4eafd1)[_0x3e5fc7(0x214)](([_0x263826,_0x30df27])=>[_0x263826,v(_0x30df27)]))};}function b(_0x116bf8,_0x2271af,_0x3e567e){const _0x5c1bc5=_0x196d;let _0x25c67e=y(_0x116bf8);return _0x25c67e[_0x5c1bc5(0x237)][_0x2271af]=v({..._0x25c67e[_0x5c1bc5(0x237)][_0x2271af],..._0x3e567e}),_0x25c67e;}function x(_0x3b1f3c,_0x2bf585){const _0x48c231=_0x196d;let _0x1608fd=y(_0x3b1f3c);return delete _0x1608fd[_0x48c231(0x237)][_0x2bf585],_0x1608fd;}function S(_0x514e42){'@babel/helpers - typeof';const _0x54b026=_0x196d;return S=typeof Symbol==_0x54b026(0x1ff)&&typeof Symbol[_0x54b026(0x22d)]==_0x54b026(0x28b)?function(_0x398ce2){return typeof _0x398ce2;}:function(_0xf0bf27){const _0x570fc8=_0x54b026;return _0xf0bf27&&typeof Symbol==_0x570fc8(0x1ff)&&_0xf0bf27[_0x570fc8(0x229)]===Symbol&&_0xf0bf27!==Symbol[_0x570fc8(0x271)]?'symbol':typeof _0xf0bf27;},S(_0x514e42);}function Ce(_0x43cee0,_0xc59619){const _0x14d929=_0x196d;if(S(_0x43cee0)!=_0x14d929(0x216)||!_0x43cee0)return _0x43cee0;var _0x1da46b=_0x43cee0[Symbol[_0x14d929(0x25e)]];if(_0x1da46b!==void 0x0){var _0x4c1d44=_0x1da46b['call'](_0x43cee0,_0xc59619||_0x14d929(0x25b));if(S(_0x4c1d44)!='object')return _0x4c1d44;throw TypeError(_0x14d929(0x27b));}return(_0xc59619===_0x14d929(0x266)?String:Number)(_0x43cee0);}function we(_0x16dd13){const _0x55f510=_0x196d;var _0x5e2b3c=Ce(_0x16dd13,_0x55f510(0x266));return S(_0x5e2b3c)==_0x55f510(0x28b)?_0x5e2b3c:_0x5e2b3c+'';}function C(_0xe00520,_0x2367bc,_0x4822e1){const _0x238e51=_0x196d;return(_0x2367bc=we(_0x2367bc))in _0xe00520?Object[_0x238e51(0x22a)](_0xe00520,_0x2367bc,{'value':_0x4822e1,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xe00520[_0x2367bc]=_0x4822e1,_0xe00520;}var w=class extends _0xda6805{constructor(..._0x273034){const _0x44515c=_0x196d;super(..._0x273034),C(this,_0x44515c(0x23d),new Map()),C(this,'_change$',new _0x41b588()),C(this,_0x44515c(0x257),this[_0x44515c(0x263)][_0x44515c(0x28d)]());}[_0x5e70aa(0x220)](_0xca843a,_0x32eb66){const _0x3b6fc7=_0x5e70aa;return y(this[_0x3b6fc7(0x23d)]['get'](_0xca843a))['codes'][_0x32eb66];}[_0x5e70aa(0x28c)](_0x3eef0b,_0x4c3549,_0x45e0c5){const _0x9ef3ca=_0x5e70aa;this[_0x9ef3ca(0x24a)](_0x3eef0b,_0x4c3549,b(this[_0x9ef3ca(0x23d)]['get'](_0x3eef0b),_0x4c3549,_0x45e0c5));}[_0x5e70aa(0x21f)](_0x3d6111,_0x1727d0){const _0x5a674b=_0x5e70aa;this['_setResource'](_0x3d6111,_0x1727d0,x(this[_0x5a674b(0x23d)][_0x5a674b(0x272)](_0x3d6111),_0x1727d0));}[_0x5e70aa(0x262)](_0x4266b9){const _0x3aecf1=_0x5e70aa;return y(this[_0x3aecf1(0x23d)]['get'](_0x4266b9));}[_0x5e70aa(0x213)](_0xfcd63d,_0x537a68){const _0x2c283c=_0x5e70aa;this[_0x2c283c(0x23d)]['set'](_0xfcd63d,y(_0x537a68)),this[_0x2c283c(0x263)][_0x2c283c(0x258)]({'unitId':_0xfcd63d});}[_0x5e70aa(0x264)](_0x15d625){const _0x37b3fd=_0x5e70aa;this[_0x37b3fd(0x23d)][_0x37b3fd(0x244)](_0x15d625),this[_0x37b3fd(0x263)][_0x37b3fd(0x258)]({'unitId':_0x15d625});}['dispose'](){const _0x512b36=_0x5e70aa;super['dispose'](),this[_0x512b36(0x23d)][_0x512b36(0x252)](),this[_0x512b36(0x263)][_0x512b36(0x219)]();}[_0x5e70aa(0x24a)](_0x11a29d,_0x564ff7,_0x4cddf8){const _0x4d43c6=_0x5e70aa;this[_0x4d43c6(0x23d)][_0x4d43c6(0x20b)](_0x11a29d,_0x4cddf8),this[_0x4d43c6(0x263)][_0x4d43c6(0x258)]({'unitId':_0x11a29d,'blockId':_0x564ff7});}};const Te={'id':_0x5e70aa(0x243),'type':_0x2aabf9[_0x5e70aa(0x227)],'handler':(_0x5051ff,_0xbc90dd)=>!(_0xbc90dd!=null&&_0xbc90dd[_0x5e70aa(0x236)])||!_0xbc90dd[_0x5e70aa(0x205)]?!0x1:(_0x5051ff[_0x5e70aa(0x272)](w)[_0x5e70aa(0x28c)](_0xbc90dd[_0x5e70aa(0x236)],_0xbc90dd['blockId'],_0xbc90dd[_0x5e70aa(0x285)]),!0x0)},T={'id':_0x5e70aa(0x27d),'type':_0x2aabf9['MUTATION'],'handler':(_0x54a800,_0x439cb5)=>!(_0x439cb5!=null&&_0x439cb5['unitId'])||!_0x439cb5[_0x5e70aa(0x205)]?!0x1:(_0x54a800['get'](w)[_0x5e70aa(0x21f)](_0x439cb5['unitId'],_0x439cb5[_0x5e70aa(0x205)]),!0x0)},Ee=_0x5e70aa(0x247);var E=class extends Error{constructor(_0x16bd28=_0x5e70aa(0x1fa)){super(_0x16bd28);}};function De(_0x343443){const _0x27cd68=_0x5e70aa;var _0x95798b;let _0x327efe=O(_0x343443[_0x27cd68(0x211)]),_0x8918ba=A(_0x327efe),_0x3dd898=ke(_0x343443[_0x27cd68(0x240)],_0x343443['endOffset']),_0x17f79c=_0x3dd898?(_0x95798b=_0x8918ba[_0x27cd68(0x221)])==null?void 0x0:_0x95798b[_0x27cd68(0x286)](_0x1d9221=>{const _0x32bc86=_0x27cd68;let _0x3278a6=_0x25d697(_0x1d9221);return _0x3278a6['startOffset']===_0x3dd898[_0x32bc86(0x240)]&&_0x3278a6[_0x32bc86(0x246)]===_0x3dd898[_0x32bc86(0x246)];}):void 0x0,{startOffset:_0x2d075f,endOffset:_0x184f0c}=_0x17f79c?_0x3dd898:We(_0x8918ba,_0x343443[_0x27cd68(0x240)],_0x343443[_0x27cd68(0x246)],_0x343443[_0x27cd68(0x1f4)]);if(!_0x17f79c&&Ae(_0x8918ba,_0x2d075f,_0x184f0c))throw new E(_0x27cd68(0x203));let _0x32f3ca=qe(_0x8918ba,_0x2d075f,_0x184f0c),_0x19cf68=(_0x17f79c==null?void 0x0:_0x17f79c[_0x27cd68(0x205)])??_0x343443[_0x27cd68(0x205)],_0x5a120f=b(_0x343443[_0x27cd68(0x26f)],_0x19cf68,{...Se,..._0x343443[_0x27cd68(0x285)]});if(_0x17f79c)return _0x17f79c[_0x27cd68(0x1e9)]=_0x58ea90[_0x27cd68(0x218)],Oe(_0x8918ba,_0x2d075f,_0x184f0c),ze(_0x8918ba,_0x2d075f,_0x184f0c,_0x32f3ca),N(_0x8918ba,_0x17f79c),{'nextDocumentData':_0x327efe,'nextMetadata':_0x5a120f,'cursorOffset':_0x2d075f+0x1};if(_0x2d075f===_0x184f0c){var _0x162959,_0x2de28f;let _0x4be6c8=''+_0x430e4a[_0x27cd68(0x1fd)]+_0x430e4a[_0x27cd68(0x24f)]+_0x430e4a[_0x27cd68(0x1f9)];P(_0x8918ba,_0x2d075f,_0x4be6c8,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0xb483bf(new Set((_0x162959=_0x8918ba['paragraphs'])==null?void 0x0:_0x162959[_0x27cd68(0x214)](_0x17e7ad=>_0x17e7ad['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x32f3ca)}],'blockRanges':[{'blockId':_0x19cf68,'blockType':_0x58ea90['CODE'],'startIndex':0x0,'endIndex':_0x4be6c8['length']-0x1}]});let _0x1d4bbc=(_0x2de28f=_0x8918ba[_0x27cd68(0x221)])==null?void 0x0:_0x2de28f[_0x27cd68(0x286)](_0x35d554=>_0x35d554['blockId']===_0x19cf68);return _0x1d4bbc&&N(_0x8918ba,_0x1d4bbc),{'nextDocumentData':_0x327efe,'nextMetadata':_0x5a120f,'cursorOffset':_0x2d075f+0x1};}P(_0x8918ba,_0x184f0c,_0x430e4a[_0x27cd68(0x1f9)]),P(_0x8918ba,_0x2d075f,_0x430e4a[_0x27cd68(0x1fd)]),ze(_0x8918ba,_0x2d075f,_0x184f0c+0x1,_0x32f3ca);let _0xae0a08={'blockId':_0x19cf68,'blockType':_0x58ea90[_0x27cd68(0x218)],'startIndex':_0x2d075f,'endIndex':_0x184f0c+0x1};return _0x8918ba[_0x27cd68(0x221)]=[..._0x8918ba[_0x27cd68(0x221)]??[],_0xae0a08]['sort']((_0x3cc076,_0x592331)=>_0x3cc076[_0x27cd68(0x1ef)]-_0x592331[_0x27cd68(0x1ef)]),N(_0x8918ba,_0xae0a08),{'nextDocumentData':_0x327efe,'nextMetadata':_0x5a120f,'cursorOffset':_0x2d075f+0x1};}function Oe(_0x1d03ec,_0x5a7ea0,_0x13df2f){const _0x23f9ab=_0x5e70aa;(_0x1d03ec['paragraphs']??[])[_0x23f9ab(0x222)](_0x4afe41=>_0x4afe41[_0x23f9ab(0x1ef)]>_0x5a7ea0&&_0x4afe41[_0x23f9ab(0x1ef)]<_0x13df2f)['forEach'](_0x5102c6=>{const _0x5bcfbb=_0x23f9ab;let _0x16f035={..._0x5102c6[_0x5bcfbb(0x231)]??{}};delete _0x16f035['spaceAbove'],delete _0x16f035[_0x5bcfbb(0x1f7)],_0x5102c6[_0x5bcfbb(0x231)]=_0x16f035;});}function ke(_0x3dd81c,_0x46dfd5){const _0x2bc137=_0x5e70aa;return _0x3dd81c==null||_0x46dfd5==null||_0x3dd81c===_0x46dfd5?null:{'startOffset':Math['min'](_0x3dd81c,_0x46dfd5),'endOffset':Math[_0x2bc137(0x22c)](_0x3dd81c,_0x46dfd5)};}function Ae(_0x10113a,_0x4bb37a,_0x54b4b6){const _0x1c1ead=_0x5e70aa;return(_0x10113a[_0x1c1ead(0x221)]??[])['some'](_0x31768c=>{let _0x4fbf59=_0x25d697(_0x31768c);return _0x4bb37a===_0x54b4b6?_0x22cea4(_0x4fbf59,_0x4bb37a):_0x21add1(_0x4fbf59,{'startOffset':_0x4bb37a,'endOffset':_0x54b4b6});});}function je(_0x13ddb5){const _0x15bfd9=_0x5e70aa;return{'nextDocumentData':O(_0x13ddb5[_0x15bfd9(0x211)]),'nextMetadata':b(_0x13ddb5[_0x15bfd9(0x26f)],_0x13ddb5[_0x15bfd9(0x205)],_0x13ddb5[_0x15bfd9(0x285)]),'cursorOffset':0x0};}function D(_0x5de4d8){const _0x578f4b=_0x5e70aa;let _0x4ea211=O(_0x5de4d8[_0x578f4b(0x211)]),_0x1b0d2a=A(_0x4ea211),_0xcf04c3=Fe(_0x1b0d2a,_0x5de4d8['blockId']);if(!_0xcf04c3)return null;let _0x355f50=He(_0x1b0d2a,_0xcf04c3);return{'nextDocumentData':_0x4ea211,'nextMetadata':x(_0x5de4d8[_0x578f4b(0x26f)],_0x5de4d8[_0x578f4b(0x205)]),'cursorOffset':_0x355f50};}function Me(_0x4298db){const _0xda77d3=_0x5e70aa;var _0x33d033;let _0x39d4c7=O(_0x4298db[_0xda77d3(0x211)]),_0x5d1339=A(_0x39d4c7),_0x56e121=Fe(_0x5d1339,_0x4298db['blockId']);if(!_0x56e121)return null;let _0x2fce51=_0x25d697(_0x56e121);return F(_0x5d1339,_0x2fce51[_0xda77d3(0x240)],_0x2fce51[_0xda77d3(0x246)]),_0x5d1339[_0xda77d3(0x221)]=(_0x33d033=_0x5d1339[_0xda77d3(0x221)])==null?void 0x0:_0x33d033[_0xda77d3(0x222)](_0x558a26=>_0x558a26[_0xda77d3(0x205)]!==_0x4298db[_0xda77d3(0x205)]),{'nextDocumentData':_0x39d4c7,'nextMetadata':x(_0x4298db[_0xda77d3(0x26f)],_0x4298db[_0xda77d3(0x205)]),'cursorOffset':_0x56e121[_0xda77d3(0x1ef)]};}function Ne(_0x3c2475){const _0x51754e=_0x5e70aa;let _0x205fc2=O(_0x3c2475[_0x51754e(0x211)]),_0x2d1f57=A(_0x205fc2),_0xbb71f4=Le(_0x2d1f57,_0x3c2475[_0x51754e(0x215)]);return _0xbb71f4&&Pe(_0x205fc2,_0x2d1f57,_0xbb71f4,_0x3c2475[_0x51754e(0x215)],_0x3c2475[_0x51754e(0x20e)])||null;}function Pe(_0x632917,_0x4739ed,_0x5f2694,_0x59c0e8,_0x5a8c31){const _0x1db21e=_0x5e70aa;let _0x278630=$e(_0x4739ed,_0x5f2694,_0x59c0e8,_0x5a8c31);if(!_0x278630)return null;let _0x1b0a2a=_0x278630['endTokenOffset']-0x1;return F(_0x4739ed,_0x278630[_0x1db21e(0x1ea)][_0x1db21e(0x1ef)],_0x278630[_0x1db21e(0x1ea)][_0x1db21e(0x1ef)]+0x1),{'nextDocumentData':_0x632917,'cursorOffset':_0x1b0a2a};}function Fe(_0x5ab6bc,_0x172318){const _0x230d90=_0x5e70aa;var _0x600583;return _0x5ab6bc==null||(_0x600583=_0x5ab6bc[_0x230d90(0x221)])==null?void 0x0:_0x600583[_0x230d90(0x286)](_0x30f301=>_0x30f301['blockType']===_0x58ea90[_0x230d90(0x218)]&&_0x30f301[_0x230d90(0x205)]===_0x172318);}function Ie(_0x12ddb1){const _0x1840c1=_0x5e70aa;let _0x5e68c8=_0x12ddb1[_0x1840c1(0x211)]['body'];if(!_0x5e68c8)return!0x1;let _0xd55ee=_0x12ddb1[_0x1840c1(0x253)]==='left'?_0x12ddb1[_0x1840c1(0x215)]-0x1:_0x12ddb1[_0x1840c1(0x215)],_0x18f574=_0x12ddb1[_0x1840c1(0x253)]===_0x1840c1(0x238)?_0x12ddb1[_0x1840c1(0x215)]+0x1:_0xd55ee;return(_0x5e68c8['blockRanges']??[])[_0x1840c1(0x1f3)](_0x24bb7e=>_0x24bb7e[_0x1840c1(0x1e9)]===_0x58ea90['CODE']?_0xd55ee===_0x24bb7e[_0x1840c1(0x1ef)]||_0xd55ee===_0x24bb7e['endIndex']||_0x18f574===_0x24bb7e[_0x1840c1(0x1ef)]||_0x18f574===_0x24bb7e[_0x1840c1(0x267)]:!0x1);}function Le(_0x4c63ad,_0x15eb54){const _0x50472d=_0x5e70aa;var _0x543bac;return(_0x543bac=_0x4c63ad[_0x50472d(0x221)])==null?void 0x0:_0x543bac[_0x50472d(0x286)](_0x4b9867=>{const _0x25082e=_0x50472d;let _0x13c80c=M(_0x4b9867);return _0x4b9867[_0x25082e(0x1e9)]===_0x58ea90[_0x25082e(0x218)]&&_0x4b9867[_0x25082e(0x1ef)]<=_0x15eb54&&_0x15eb54<=_0x13c80c+0x2;});}function Re(_0x9f65b9,_0xf4b7f2,_0x1d9b3c=!0x1){const _0x4ec96c=_0x5e70aa;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x4e8187['TRUE'],'keepNext':_0xf4b7f2?_0x4e8187[_0x4ec96c(0x1e5)]:_0x4e8187[_0x4ec96c(0x235)],'widowControl':_0x4e8187[_0x4ec96c(0x235)],..._0x9f65b9&&_0x1d9b3c?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x9d1722,_0x25e8f5,_0x15635d,_0x5cd7a9=!0x1){const _0x6d07c7=_0x5e70aa;let _0x4c28b2=(_0x9d1722[_0x6d07c7(0x1ee)]??[])[_0x6d07c7(0x222)](_0xa015df=>_0xa015df[_0x6d07c7(0x1ef)]>_0x25e8f5&&_0xa015df[_0x6d07c7(0x1ef)]<_0x15635d);_0x4c28b2[_0x6d07c7(0x23f)]((_0x475f61,_0xd5674d)=>{const _0x2b1687=_0x6d07c7;_0x475f61['paragraphStyle']={..._0x475f61[_0x2b1687(0x231)]??{},...Re(_0xd5674d===0x0,_0xd5674d===_0x4c28b2[_0x2b1687(0x275)]-0x1,_0x5cd7a9)};});}function Be(_0x55d512){const _0x5b3a0b=_0x5e70aa;var _0x530dd9,_0x3d9b7c;let _0x541bda={..._0x55d512??{}};return delete _0x541bda[_0x5b3a0b(0x1fb)],delete _0x541bda[_0x5b3a0b(0x27f)],delete _0x541bda[_0x5b3a0b(0x265)],delete _0x541bda['spaceBelow'],delete _0x541bda[_0x5b3a0b(0x260)],delete _0x541bda[_0x5b3a0b(0x208)],delete _0x541bda[_0x5b3a0b(0x21d)],((_0x530dd9=_0x541bda[_0x5b3a0b(0x26e)])==null?void 0x0:_0x530dd9['ff'])===Ee&&((_0x3d9b7c=_0x541bda[_0x5b3a0b(0x26e)])==null?void 0x0:_0x3d9b7c['fs'])===0xc&&delete _0x541bda[_0x5b3a0b(0x26e)],_0x541bda;}function Ve(_0x273213,_0x2adae9){const _0x3f2fdb=_0x5e70aa;let _0x4044c4=M(_0x2adae9);return(_0x273213['paragraphs']??[])[_0x3f2fdb(0x222)](_0x4a39b2=>_0x4a39b2['startIndex']>_0x2adae9[_0x3f2fdb(0x1ef)]&&_0x4a39b2[_0x3f2fdb(0x1ef)]<_0x4044c4);}function He(_0x59ab5b,_0x32024b){const _0x102694=_0x5e70aa;var _0x244b2c;let _0x21f559=M(_0x32024b);return Ve(_0x59ab5b,_0x32024b)[_0x102694(0x23f)](_0x395e5f=>{const _0x23bf1d=_0x102694;_0x395e5f[_0x23bf1d(0x231)]=Be(_0x395e5f['paragraphStyle']);}),F(_0x59ab5b,_0x21f559,_0x21f559+0x1),F(_0x59ab5b,_0x32024b[_0x102694(0x1ef)],_0x32024b[_0x102694(0x1ef)]+0x1),_0x59ab5b[_0x102694(0x221)]=(_0x244b2c=_0x59ab5b['blockRanges'])==null?void 0x0:_0x244b2c[_0x102694(0x222)](_0x154b7c=>_0x154b7c[_0x102694(0x205)]!==_0x32024b[_0x102694(0x205)]),_0x32024b[_0x102694(0x1ef)];}function O(_0x212aae){const _0x22401d=_0x5e70aa;return{..._0x212aae,'body':_0x212aae[_0x22401d(0x261)]?Ue(_0x212aae['body']):_0x212aae[_0x22401d(0x261)]};}function Ue(_0x8b7fcd){const _0x58cce1=_0x5e70aa;var _0x37f01e,_0x76b98d,_0x24e7da,_0x1419f6,_0x583743,_0x781d3f,_0x200d8b,_0x1d482b,_0x760310;return{..._0x8b7fcd,'paragraphs':(_0x37f01e=_0x8b7fcd[_0x58cce1(0x1ee)])==null?void 0x0:_0x37f01e[_0x58cce1(0x214)](_0x2a2452=>({..._0x2a2452,'bullet':k(_0x2a2452['bullet']),'paragraphStyle':k(_0x2a2452['paragraphStyle'])})),'sectionBreaks':(_0x76b98d=_0x8b7fcd[_0x58cce1(0x256)])==null?void 0x0:_0x76b98d[_0x58cce1(0x214)](_0x15dd21=>({..._0x15dd21})),'textRuns':(_0x24e7da=_0x8b7fcd[_0x58cce1(0x202)])==null?void 0x0:_0x24e7da['map'](_0x156d10=>({..._0x156d10})),'tables':(_0x1419f6=_0x8b7fcd['tables'])==null?void 0x0:_0x1419f6['map'](_0x190041=>({..._0x190041})),'columnGroups':(_0x583743=_0x8b7fcd['columnGroups'])==null?void 0x0:_0x583743['map'](_0x1ba2b8=>{const _0x9014f6=_0x58cce1;var _0x464605;return{..._0x1ba2b8,'columns':(_0x464605=_0x1ba2b8[_0x9014f6(0x21c)])==null?void 0x0:_0x464605['map'](_0x7b8cae=>k(_0x7b8cae))};}),'blockRanges':(_0x781d3f=_0x8b7fcd[_0x58cce1(0x221)])==null?void 0x0:_0x781d3f[_0x58cce1(0x214)](_0x51b8e1=>({..._0x51b8e1})),'customRanges':(_0x200d8b=_0x8b7fcd['customRanges'])==null?void 0x0:_0x200d8b[_0x58cce1(0x214)](_0x44ac1b=>({..._0x44ac1b})),'customDecorations':(_0x1d482b=_0x8b7fcd['customDecorations'])==null?void 0x0:_0x1d482b[_0x58cce1(0x214)](_0x5aafac=>({..._0x5aafac})),'customBlocks':(_0x760310=_0x8b7fcd[_0x58cce1(0x223)])==null?void 0x0:_0x760310[_0x58cce1(0x214)](_0x19c664=>({..._0x19c664}))};}function k(_0x2249f6){const _0x2c2233=_0x5e70aa;return Array[_0x2c2233(0x1e7)](_0x2249f6)?_0x2249f6[_0x2c2233(0x214)](_0x8e4901=>k(_0x8e4901)):!_0x2249f6||typeof _0x2249f6!=_0x2c2233(0x216)?_0x2249f6:Object[_0x2c2233(0x201)](Object['entries'](_0x2249f6)[_0x2c2233(0x214)](([_0x56a0ad,_0x53d430])=>[_0x56a0ad,k(_0x53d430)]));}function A(_0xbc4c5f){const _0x4e5f76=_0x5e70aa;if(!_0xbc4c5f['body'])throw Error(_0x4e5f76(0x1ec));return _0xbc4c5f[_0x4e5f76(0x261)];}function We(_0x3b9d35,_0x2d1368,_0x4add,_0x40d4b0=_0x5e70aa(0x21a)){const _0x288dd0=_0x5e70aa;if(_0x2d1368==null||_0x4add==null){let _0xb2ebfb=Ke(_0x3b9d35);return{'startOffset':_0xb2ebfb,'endOffset':_0xb2ebfb};}let _0x4a67c5=Math['min'](_0x2d1368,_0x4add),_0x5486de=Math['max'](_0x2d1368,_0x4add),_0x247a64=Ze(_0x3b9d35,_0x4a67c5,_0x5486de);return _0x4a67c5===_0x5486de?_0x40d4b0===_0x288dd0(0x1f8)?{'startOffset':_0x4a67c5,'endOffset':_0x5486de}:Ge(_0x3b9d35,_0x4a67c5,_0x247a64):Je(_0x3b9d35,_0x4a67c5,_0x5486de,_0x247a64);}function Ge(_0x5d650d,_0x4ebfd4,_0x1daa73){const _0x30b9c3=_0x5e70aa;let _0x14bc06=Ye(_0x5d650d,_0x4ebfd4);if(_0x14bc06){let _0x298647=j(_0x5d650d,_0x14bc06,_0x1daa73);if(_0x298647<_0x14bc06[_0x30b9c3(0x1ef)])return{'startOffset':_0x298647,'endOffset':_0x1daa73?Math[_0x30b9c3(0x1e4)](_0x14bc06[_0x30b9c3(0x1ef)]+0x1,_0x1daa73[_0x30b9c3(0x246)]):_0x14bc06[_0x30b9c3(0x1ef)]+0x1};}let _0x5ad781=_0x4ebfd4===0x0&&_0x5d650d[_0x30b9c3(0x251)][0x0]===_0x430e4a[_0x30b9c3(0x24f)]?0x1:_0x4ebfd4;return{'startOffset':_0x5ad781,'endOffset':_0x5ad781};}function _0x196d(_0x1f0c12,_0x44237a){_0x1f0c12=_0x1f0c12-0x1e4;const _0xfdd710=_0xfdd7();let _0x196dfb=_0xfdd710[_0x1f0c12];return _0x196dfb;}function Ke(_0x46da8e){const _0x1ebe90=_0x5e70aa;return _0x46da8e[_0x1ebe90(0x251)]['endsWith'](_0x430e4a[_0x1ebe90(0x23e)])?Math['max'](0x0,_0x46da8e['dataStream'][_0x1ebe90(0x275)]-0x1):_0x46da8e[_0x1ebe90(0x251)][_0x1ebe90(0x275)];}function qe(_0x5ab6a3,_0xbb8e05,_0xfdf0d6){const _0xca0928=_0x5e70aa;var _0x4a82cd;let _0x64938a=Math[_0xca0928(0x1e4)](_0xbb8e05,_0xfdf0d6),_0x5320a1=Math['max'](_0xbb8e05,_0xfdf0d6);return!!((_0x4a82cd=_0x5ab6a3[_0xca0928(0x268)])!=null&&_0x4a82cd[_0xca0928(0x1f3)](_0x252850=>_0x64938a>_0x252850[_0xca0928(0x1ef)]&&_0x64938a<_0x252850[_0xca0928(0x267)]||_0x5320a1>_0x252850[_0xca0928(0x1ef)]&&_0x5320a1<_0x252850['endIndex']||_0x64938a<=_0x252850['startIndex']&&_0x5320a1>=_0x252850['endIndex']));}function Je(_0xa99559,_0x2a90bc,_0xcbcedd,_0x5e0c11){const _0x20f1c0=_0x5e70aa;let _0x2ef573=[..._0xa99559[_0x20f1c0(0x1ee)]??[]][_0x20f1c0(0x26b)]((_0x21b45a,_0x1777d1)=>_0x21b45a[_0x20f1c0(0x1ef)]-_0x1777d1[_0x20f1c0(0x1ef)]),_0x1fe997=_0x1f839d(_0xa99559),_0x53209a=_0x2ef573[_0x20f1c0(0x286)](_0x2bf147=>j(_0xa99559,_0x2bf147,_0x5e0c11,_0x1fe997)<=_0x2a90bc&&_0x2a90bc<=_0x2bf147[_0x20f1c0(0x1ef)]),_0xf2ddc1=_0x2ef573[_0x20f1c0(0x286)](_0x4719ad=>_0x4719ad[_0x20f1c0(0x1ef)]>=_0xcbcedd-0x1)??_0x2ef573[_0x2ef573[_0x20f1c0(0x275)]-0x1];return{'startOffset':_0x53209a?j(_0xa99559,_0x53209a,_0x5e0c11,_0x1fe997):_0x2a90bc,'endOffset':_0xf2ddc1?Xe(_0xf2ddc1,_0x5e0c11):_0xcbcedd};}function Ye(_0x45e59b,_0x5b64f0){const _0x43416b=_0x5e70aa;let _0x337c1f=[..._0x45e59b[_0x43416b(0x1ee)]??[]]['sort']((_0x5bf49d,_0x33ca6e)=>_0x5bf49d[_0x43416b(0x1ef)]-_0x33ca6e['startIndex']),_0x22d0aa=_0x1f839d(_0x45e59b);return _0x337c1f['find'](_0x5e194e=>(_0x22d0aa['get'](_0x5e194e['startIndex'])??0x0)<=_0x5b64f0&&_0x5b64f0<=_0x5e194e[_0x43416b(0x1ef)]);}function j(_0x6e7214,_0x424195,_0x3c9bdb,_0x3fb235){const _0x2c70dc=_0x5e70aa;let _0x343115=(_0x3fb235==null?void 0x0:_0x3fb235['get'](_0x424195['startIndex']))??_0x3d99b8(_0x6e7214,_0x424195);return _0x3c9bdb?Math[_0x2c70dc(0x22c)](_0x343115,_0x3c9bdb[_0x2c70dc(0x240)]):_0x343115;}function Xe(_0x3c3fa9,_0x547718){const _0x64deb8=_0x5e70aa;let _0x1d3147=_0x3c3fa9[_0x64deb8(0x1ef)]+0x1;return _0x547718?Math[_0x64deb8(0x1e4)](_0x1d3147,_0x547718[_0x64deb8(0x246)]):_0x1d3147;}function Ze(_0x5c6968,_0xaa94c8,_0x4d4743){const _0x2eb446=_0x5e70aa;let _0x192a4a=Qe(_0x5c6968,_0xaa94c8),_0x4ddea8=Qe(_0x5c6968,_0xaa94c8===_0x4d4743?_0x4d4743:Math[_0x2eb446(0x22c)](_0xaa94c8,_0x4d4743-0x1));if(_0x192a4a||_0x4ddea8){if(!_0x192a4a||!_0x4ddea8||_0x192a4a[_0x2eb446(0x28a)]!==_0x4ddea8[_0x2eb446(0x28a)]||_0x192a4a['endTokenOffset']!==_0x4ddea8[_0x2eb446(0x1f5)])throw new E();return _0x192a4a;}}function Qe(_0x40d2b0,_0x2ba85b){const _0x1d1b73=_0x5e70aa;let _0x39831d=_0x40d2b0[_0x1d1b73(0x251)],_0xaeece8=-0x1;for(let _0x58e6d3=Math[_0x1d1b73(0x1e4)](_0x2ba85b,_0x39831d[_0x1d1b73(0x275)]-0x1);_0x58e6d3>=0x0;_0x58e6d3--){let _0x1222b4=_0x39831d[_0x58e6d3];if(_0x1222b4===_0x430e4a[_0x1d1b73(0x241)])return;if(_0x1222b4===_0x430e4a[_0x1d1b73(0x288)]){_0xaeece8=_0x58e6d3;break;}}if(_0xaeece8<0x0)return;let _0x440a01=_0x39831d[_0x1d1b73(0x20d)](_0x430e4a[_0x1d1b73(0x241)],_0xaeece8+0x1);if(!(_0x440a01<0x0||_0x2ba85b<_0xaeece8+0x1||_0x2ba85b>_0x440a01-0x1))return{'startOffset':_0xaeece8+0x1,'endOffset':Math['max'](_0xaeece8+0x1,_0x440a01-0x1),'startTokenOffset':_0xaeece8,'endTokenOffset':_0x440a01};}function M(_0xb27f9){const _0x9422ec=_0x5e70aa;return _0x25d697(_0xb27f9)[_0x9422ec(0x246)]-0x1;}function $e(_0x4df216,_0x2afff8,_0x4ca60c,_0x437503){const _0x4fe7c7=_0x5e70aa;let _0x5525ed=M(_0x2afff8),_0x46853d=(_0x4df216['paragraphs']??[])[_0x4fe7c7(0x286)](_0x17d020=>_0x17d020[_0x4fe7c7(0x1ef)]===_0x5525ed+0x1);if(!_0x46853d||_0x437503!=null&&_0x46853d[_0x4fe7c7(0x1ef)]!==_0x437503||_0x4ca60c!=null&&(_0x4ca60c<_0x5525ed||_0x4ca60c>_0x46853d[_0x4fe7c7(0x1ef)]+0x1)||_0x4df216['dataStream'][_0x46853d[_0x4fe7c7(0x1ef)]]!==_0x430e4a[_0x4fe7c7(0x24f)])return null;let _0x11d479=_0x3d99b8(_0x4df216,_0x46853d),_0x35c5bb=_0x4df216[_0x4fe7c7(0x251)][_0x4fe7c7(0x20f)](_0x11d479,_0x46853d[_0x4fe7c7(0x1ef)]);return Array[_0x4fe7c7(0x26d)](_0x35c5bb)['every'](_0x336df7=>_0x336df7===_0x430e4a[_0x4fe7c7(0x1f9)])?{'paragraph':_0x46853d,'endTokenOffset':_0x5525ed}:null;}function N(_0x13f514,_0x2fda48){const _0x5a3413=_0x5e70aa;var _0x46ef98;let _0x35fcf5=M(_0x2fda48),_0x999c02=_0x13f514[_0x5a3413(0x251)][_0x35fcf5+0x1];(_0x999c02===_0x430e4a[_0x5a3413(0x23e)]||_0x999c02===void 0x0)&&P(_0x13f514,_0x35fcf5+0x1,_0x430e4a[_0x5a3413(0x24f)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0xb483bf(new Set((_0x46ef98=_0x13f514[_0x5a3413(0x1ee)])==null?void 0x0:_0x46ef98[_0x5a3413(0x214)](_0x56b583=>_0x56b583['paragraphId'])))}]});}function P(_0x2dc3d5,_0x274c62,_0x377b13,_0x7c61fb={}){const _0x55ef28=_0x5e70aa;var _0x547b0f,_0x3a891d;_0x377b13&&(_0x2dc3d5[_0x55ef28(0x251)]=''+_0x2dc3d5[_0x55ef28(0x251)][_0x55ef28(0x20f)](0x0,_0x274c62)+_0x377b13+_0x2dc3d5['dataStream']['slice'](_0x274c62),et(_0x2dc3d5,_0x274c62,_0x377b13[_0x55ef28(0x275)]),(_0x547b0f=_0x7c61fb[_0x55ef28(0x1ee)])!=null&&_0x547b0f[_0x55ef28(0x275)]&&(_0x2dc3d5['paragraphs']=[..._0x2dc3d5['paragraphs']??[],..._0x7c61fb[_0x55ef28(0x1ee)][_0x55ef28(0x214)](_0x1d2672=>({..._0x1d2672,'startIndex':_0x1d2672[_0x55ef28(0x1ef)]+_0x274c62}))][_0x55ef28(0x26b)]((_0x176017,_0x9f7351)=>_0x176017[_0x55ef28(0x1ef)]-_0x9f7351['startIndex'])),(_0x3a891d=_0x7c61fb[_0x55ef28(0x221)])!=null&&_0x3a891d[_0x55ef28(0x275)]&&(_0x2dc3d5['blockRanges']=[..._0x2dc3d5[_0x55ef28(0x221)]??[],..._0x7c61fb['blockRanges'][_0x55ef28(0x214)](_0x4559c2=>({..._0x4559c2,'startIndex':_0x4559c2[_0x55ef28(0x1ef)]+_0x274c62,'endIndex':_0x4559c2[_0x55ef28(0x267)]+_0x274c62}))][_0x55ef28(0x26b)]((_0x436ed0,_0x1f93dc)=>_0x436ed0['startIndex']-_0x1f93dc['startIndex'])));}function F(_0x577f7b,_0x3ea8c1,_0x37adbf){const _0x5bc266=_0x5e70aa;let _0x8bc539=_0x37adbf-_0x3ea8c1;_0x577f7b[_0x5bc266(0x251)]=''+_0x577f7b['dataStream'][_0x5bc266(0x20f)](0x0,_0x3ea8c1)+_0x577f7b[_0x5bc266(0x251)]['slice'](_0x37adbf),tt(_0x577f7b,_0x3ea8c1,_0x8bc539);}function et(_0x43da06,_0x122906,_0x1a2954){const _0x495803=_0x5e70aa;_0x43da06[_0x495803(0x1ee)]=I(_0x43da06['paragraphs'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x256)]=I(_0x43da06[_0x495803(0x256)],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x223)]=I(_0x43da06['customBlocks'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x202)]=nt(_0x43da06['textRuns'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x268)]=rt(_0x43da06['tables'],_0x122906,_0x1a2954),_0x43da06['columnGroups']=R(_0x43da06['columnGroups'],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x21b)]=R(_0x43da06[_0x495803(0x21b)],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x206)]=R(_0x43da06[_0x495803(0x206)],_0x122906,_0x1a2954),_0x43da06[_0x495803(0x221)]=R(_0x43da06[_0x495803(0x221)],_0x122906,_0x1a2954);}function tt(_0x5d1e27,_0x3bbb3b,_0x33d7b8){const _0x38253a=_0x5e70aa;var _0x35b39d,_0x372b74;_0x5d1e27[_0x38253a(0x1ee)]=L(_0x5d1e27[_0x38253a(0x1ee)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x256)]=L(_0x5d1e27[_0x38253a(0x256)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x223)]=L(_0x5d1e27[_0x38253a(0x223)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x202)]=(_0x35b39d=it((_0x372b74=_0x5d1e27['textRuns'])==null?void 0x0:_0x372b74['map'](_0x2ad87d=>({..._0x2ad87d,'startIndex':_0x2ad87d['st'],'endIndex':_0x2ad87d['ed']})),_0x3bbb3b,_0x33d7b8))==null?void 0x0:_0x35b39d['map'](_0x9bdb86=>{let {startIndex:_0x140991,endIndex:_0x9145d6,..._0x49ebfb}=_0x9bdb86;return{..._0x49ebfb,'st':_0x140991,'ed':_0x9145d6};}),_0x5d1e27[_0x38253a(0x268)]=it(_0x5d1e27[_0x38253a(0x268)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x1fe)]=z(_0x5d1e27[_0x38253a(0x1fe)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x21b)]=z(_0x5d1e27[_0x38253a(0x21b)],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x206)]=z(_0x5d1e27['customDecorations'],_0x3bbb3b,_0x33d7b8),_0x5d1e27[_0x38253a(0x221)]=z(_0x5d1e27[_0x38253a(0x221)],_0x3bbb3b,_0x33d7b8);}function I(_0x6570a7,_0x270242,_0x235bd2){const _0x44287f=_0x5e70aa;return _0x6570a7==null?void 0x0:_0x6570a7[_0x44287f(0x214)](_0x5c005d=>_0x5c005d[_0x44287f(0x1ef)]>=_0x270242?{..._0x5c005d,'startIndex':_0x5c005d[_0x44287f(0x1ef)]+_0x235bd2}:_0x5c005d);}function L(_0x2378ed,_0x2662c9,_0x551562){const _0x2e5386=_0x5e70aa;let _0x5c6c32=_0x2662c9+_0x551562;return _0x2378ed==null?void 0x0:_0x2378ed['map'](_0x541ebc=>_0x541ebc[_0x2e5386(0x1ef)]>=_0x2662c9&&_0x541ebc[_0x2e5386(0x1ef)]<_0x5c6c32?null:_0x541ebc[_0x2e5386(0x1ef)]>=_0x5c6c32?{..._0x541ebc,'startIndex':_0x541ebc[_0x2e5386(0x1ef)]-_0x551562}:_0x541ebc)['filter'](_0x3b10e7=>_0x3b10e7!=null);}function nt(_0x4c7e36,_0x1137f9,_0x5f0a97){const _0x202ce4=_0x5e70aa;return _0x4c7e36==null?void 0x0:_0x4c7e36[_0x202ce4(0x214)](_0x23f972=>_0x23f972['st']>=_0x1137f9?{..._0x23f972,'st':_0x23f972['st']+_0x5f0a97,'ed':_0x23f972['ed']+_0x5f0a97}:_0x23f972['ed']>_0x1137f9?{..._0x23f972,'ed':_0x23f972['ed']+_0x5f0a97}:_0x23f972);}function R(_0x4bcd6e,_0x42bc5e,_0x49fb14){const _0x46b157=_0x5e70aa;return _0x4bcd6e==null?void 0x0:_0x4bcd6e[_0x46b157(0x214)](_0xafeaf5=>_0x381408(_0xafeaf5,_0x42bc5e,_0x49fb14));}function rt(_0x4b30de,_0x3d69e4,_0x12b5b7){const _0x29eb07=_0x5e70aa;return _0x4b30de==null?void 0x0:_0x4b30de[_0x29eb07(0x214)](_0x36e6ea=>_0x29d384(_0x36e6ea,_0x3d69e4,_0x12b5b7));}function z(_0x2edcf6,_0x53211d,_0x34084e){const _0x1fe53c=_0x5e70aa;return _0x2edcf6==null?void 0x0:_0x2edcf6[_0x1fe53c(0x214)](_0x2680c8=>_0x42032c(_0x2680c8,_0x53211d,_0x34084e))[_0x1fe53c(0x222)](_0x18e39d=>_0x18e39d!=null);}function it(_0x12bc29,_0xea50d2,_0x28847b){const _0x1dd144=_0x5e70aa;return _0x12bc29==null?void 0x0:_0x12bc29[_0x1dd144(0x214)](_0x553b30=>_0x1caa6f(_0x553b30,_0xea50d2,_0x28847b))['filter'](_0x1bf902=>_0x1bf902!=null);}const at={'id':'docs-code.command.insert-below','type':_0x2aabf9[_0x5e70aa(0x242)],'handler':_0x3cd532=>{const _0x537579=_0x5e70aa;var _0x19b1ef;if(_0x2f5dc4(G(_0x3cd532)))return!0x1;let _0x1ee139=_0xf77ce(_0x3cd532);if(_0x1ee139)return _0x3cd532[_0x537579(0x272)](_0x345515)[_0x537579(0x20a)](B['id'],{'startOffset':_0x1ee139['startOffset'],'endOffset':_0x1ee139[_0x537579(0x246)],'insertionMode':_0x537579(0x1f8),'unitId':_0x1ee139[_0x537579(0x236)]});let _0x3619e4=ft(_0x3cd532);if(!_0x3619e4)return!0x1;let _0x20f1bb=(_0x19b1ef=_0x3cd532[_0x537579(0x272)](_0x7eb0f5)[_0x537579(0x204)](_0x221a97[_0x537579(0x1f6)]))==null?void 0x0:_0x19b1ef[_0x537579(0x23c)](),_0x47bfee=_0x20f1bb?_0x39af8b(_0x20f1bb,_0x3619e4):_0x3619e4[_0x537579(0x1ef)]+0x1;return _0x3cd532[_0x537579(0x272)](_0x345515)[_0x537579(0x20a)](B['id'],{'startOffset':_0x47bfee,'endOffset':_0x47bfee});}},ot={'id':'docs-code.command.consume-boundary-delete','type':_0x2aabf9[_0x5e70aa(0x242)],'handler':()=>!0x0},B={'id':_0x5e70aa(0x270),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x12a2e9,_0x49c5bc)=>{const _0x1b92f9=_0x5e70aa;let _0x117cf2=W(_0x12a2e9,_0x49c5bc==null?void 0x0:_0x49c5bc[_0x1b92f9(0x236)]);if(!_0x117cf2)return!0x1;let _0x4f101b=G(_0x12a2e9);if(_0x2f5dc4(_0x4f101b))return!0x1;let _0x54aa34=_0x117cf2[_0x1b92f9(0x22f)][_0x1b92f9(0x262)](_0x117cf2[_0x1b92f9(0x236)]),_0x2b0d83=lt(_0x49c5bc,_0x4f101b),_0x1b89ab=ut(_0x117cf2['previousDocumentData'],_0x2b0d83);if(_0x1b89ab){if(_0x1b89ab[_0x1b92f9(0x1e9)]!==_0x58ea90[_0x1b92f9(0x218)])return!0x1;let _0x179e7c=D({'blockId':_0x1b89ab[_0x1b92f9(0x205)],'documentData':_0x117cf2[_0x1b92f9(0x21e)],'metadata':_0x54aa34});if(!_0x179e7c)return!0x1;let _0x12f3f0=Y(_0x117cf2['commandService'],_0x117cf2[_0x1b92f9(0x274)],_0x117cf2[_0x1b92f9(0x236)],_0x117cf2[_0x1b92f9(0x21e)],_0x179e7c[_0x1b92f9(0x232)],B['id'],_0x179e7c[_0x1b92f9(0x215)]);return _0x12f3f0&&_0x179e7c[_0x1b92f9(0x1eb)]&&_0x117cf2[_0x1b92f9(0x22f)]['deserialize'](_0x117cf2['unitId'],_0x179e7c[_0x1b92f9(0x1eb)]),_0x12f3f0;}let _0x24163f=(_0x49c5bc==null?void 0x0:_0x49c5bc[_0x1b92f9(0x205)])??_0x185e0f(0x6),_0x471bcb;try{_0x471bcb=De({'blockId':_0x24163f,'config':_0x49c5bc==null?void 0x0:_0x49c5bc[_0x1b92f9(0x285)],'documentData':_0x117cf2[_0x1b92f9(0x21e)],'endOffset':_0x2b0d83==null?void 0x0:_0x2b0d83['endOffset'],'insertionMode':_0x49c5bc==null?void 0x0:_0x49c5bc['insertionMode'],'metadata':_0x54aa34,'startOffset':_0x2b0d83==null?void 0x0:_0x2b0d83[_0x1b92f9(0x240)]});}catch(_0x394658){if(_0x394658 instanceof E)return!0x1;throw _0x394658;}let _0xe28ffd=Y(_0x117cf2[_0x1b92f9(0x276)],_0x117cf2['selectionManager'],_0x117cf2['unitId'],_0x117cf2[_0x1b92f9(0x21e)],_0x471bcb[_0x1b92f9(0x232)],B['id'],_0x471bcb[_0x1b92f9(0x215)]);return _0xe28ffd&&_0x471bcb[_0x1b92f9(0x1eb)]&&_0x117cf2[_0x1b92f9(0x22f)][_0x1b92f9(0x213)](_0x117cf2[_0x1b92f9(0x236)],_0x471bcb[_0x1b92f9(0x1eb)]),_0xe28ffd;}},st={'id':_0x5e70aa(0x27a),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x461f14,_0x76c611)=>{const _0x2944a0=_0x5e70aa;if(!_0x76c611)return!0x1;let _0x3e378f=W(_0x461f14,_0x76c611['unitId']);if(!_0x3e378f)return!0x1;let _0x1e8e3a=je({'blockId':_0x76c611[_0x2944a0(0x205)],'config':_0x76c611['config'],'documentData':_0x3e378f[_0x2944a0(0x21e)],'metadata':_0x3e378f['model'][_0x2944a0(0x262)](_0x3e378f[_0x2944a0(0x236)])});return _0x1e8e3a[_0x2944a0(0x1eb)]&&_0x3e378f[_0x2944a0(0x22f)][_0x2944a0(0x213)](_0x3e378f[_0x2944a0(0x236)],_0x1e8e3a[_0x2944a0(0x1eb)]),!0x0;}},ct={'id':_0x5e70aa(0x289),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x4ef755,_0x1d55d5)=>V[_0x5e70aa(0x24e)](_0x4ef755,_0x1d55d5)},V={'id':_0x5e70aa(0x248),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x81a8db,_0x18c032)=>{const _0x2199be=_0x5e70aa;if(!_0x18c032)return!0x1;let _0x2529ba=W(_0x81a8db,_0x18c032==null?void 0x0:_0x18c032[_0x2199be(0x236)]);if(!_0x2529ba)return!0x1;let _0x411b5b=D({'blockId':_0x18c032['blockId'],'documentData':_0x2529ba[_0x2199be(0x21e)],'metadata':_0x2529ba[_0x2199be(0x22f)][_0x2199be(0x262)](_0x2529ba[_0x2199be(0x236)])});if(!_0x411b5b)return!0x1;let _0x27b733=Y(_0x2529ba[_0x2199be(0x276)],_0x2529ba[_0x2199be(0x274)],_0x2529ba['unitId'],_0x2529ba[_0x2199be(0x21e)],_0x411b5b[_0x2199be(0x232)],V['id'],_0x411b5b[_0x2199be(0x215)]);return _0x27b733&&_0x411b5b['nextMetadata']&&_0x2529ba[_0x2199be(0x22f)][_0x2199be(0x213)](_0x2529ba[_0x2199be(0x236)],_0x411b5b[_0x2199be(0x1eb)]),_0x27b733;}},H={'id':_0x5e70aa(0x26a),'type':_0x2aabf9[_0x5e70aa(0x242)],'handler':(_0x280fec,_0x421b89)=>{const _0x2d03ab=_0x5e70aa;if(!_0x421b89)return!0x1;let _0x479ab9=W(_0x280fec,_0x421b89==null?void 0x0:_0x421b89['unitId']);if(!_0x479ab9)return!0x1;let _0x200336=Me({'blockId':_0x421b89['blockId'],'documentData':_0x479ab9['previousDocumentData'],'metadata':_0x479ab9[_0x2d03ab(0x22f)]['serialize'](_0x479ab9[_0x2d03ab(0x236)])});if(!_0x200336)return!0x1;let _0x4f6699=Y(_0x479ab9[_0x2d03ab(0x276)],_0x479ab9[_0x2d03ab(0x274)],_0x479ab9[_0x2d03ab(0x236)],_0x479ab9[_0x2d03ab(0x21e)],_0x200336['nextDocumentData'],H['id'],_0x200336[_0x2d03ab(0x215)]);return _0x4f6699&&_0x200336[_0x2d03ab(0x1eb)]&&_0x479ab9[_0x2d03ab(0x22f)][_0x2d03ab(0x213)](_0x479ab9[_0x2d03ab(0x236)],_0x200336[_0x2d03ab(0x1eb)]),_0x4f6699;}},U={'id':_0x5e70aa(0x259),'type':_0x2aabf9['COMMAND'],'handler':(_0x404910,_0x447b0c)=>{const _0x2b7736=_0x5e70aa;var _0x1259ca;let _0x640ac7=W(_0x404910,_0x447b0c==null?void 0x0:_0x447b0c[_0x2b7736(0x236)]);if(!_0x640ac7)return!0x1;let _0x67db6b=(_0x447b0c==null?void 0x0:_0x447b0c[_0x2b7736(0x215)])??((_0x1259ca=G(_0x404910))==null?void 0x0:_0x1259ca[_0x2b7736(0x240)]);if(_0x67db6b==null)return!0x1;let _0x150f6f=Ne({'cursorOffset':_0x67db6b,'documentData':_0x640ac7[_0x2b7736(0x21e)],'paragraphStartIndex':_0x447b0c==null?void 0x0:_0x447b0c[_0x2b7736(0x20e)]});return _0x150f6f?Y(_0x640ac7[_0x2b7736(0x276)],_0x640ac7[_0x2b7736(0x274)],_0x640ac7[_0x2b7736(0x236)],_0x640ac7[_0x2b7736(0x21e)],_0x150f6f[_0x2b7736(0x232)],U['id'],_0x150f6f[_0x2b7736(0x215)]):!0x1;}};function W(_0x2b7c3f,_0x379d5d){const _0x4d9a02=_0x5e70aa;let _0x39e3ee=_0x2b7c3f[_0x4d9a02(0x272)](_0x7eb0f5),_0x1c88f6=_0x379d5d?_0x39e3ee['getUnit'](_0x379d5d,_0x221a97[_0x4d9a02(0x1f6)]):_0x39e3ee['getCurrentUnitOfType'](_0x221a97[_0x4d9a02(0x1f6)]);return _0x1c88f6?{'commandService':_0x2b7c3f['get'](_0x345515),'model':_0x2b7c3f[_0x4d9a02(0x272)](w),'previousDocumentData':_0x1c88f6['getSnapshot'](),'selectionManager':_0x2b7c3f[_0x4d9a02(0x272)](_0x1dae47),'unitId':_0x1c88f6['getUnitId']()}:null;}function G(_0x4215f7){const _0x3de8b2=_0x5e70aa;var _0x2523f9;return(_0x2523f9=_0x4215f7[_0x3de8b2(0x272)](_0x1dae47)['getTextRanges']())==null?void 0x0:_0x2523f9[0x0];}function lt(_0x2de21f,_0x4ad08b){const _0x1e8c19=_0x5e70aa;let _0x534682=(_0x2de21f==null?void 0x0:_0x2de21f['startOffset'])??(_0x4ad08b==null?void 0x0:_0x4ad08b[_0x1e8c19(0x240)]),_0x4d6bee=(_0x2de21f==null?void 0x0:_0x2de21f['endOffset'])??(_0x4ad08b==null?void 0x0:_0x4ad08b[_0x1e8c19(0x246)]);if(_0x534682!=null&&_0x4d6bee!=null)return{'endOffset':Math[_0x1e8c19(0x22c)](_0x534682,_0x4d6bee),'startOffset':Math[_0x1e8c19(0x1e4)](_0x534682,_0x4d6bee)};}function ut(_0x32fa97,_0x59f764){const _0x17e4b4=_0x5e70aa;var _0x471210;if(!_0x59f764)return;let _0x87b4d5=dt(_0x59f764);return(_0x471210=_0x32fa97[_0x17e4b4(0x261)])==null||(_0x471210=_0x471210[_0x17e4b4(0x221)])==null?void 0x0:_0x471210[_0x17e4b4(0x286)](_0xac1722=>{const _0x3aabd9=_0x17e4b4;let _0x105d8a=_0x25d697(_0xac1722);return _0x59f764[_0x3aabd9(0x240)]===_0x59f764['endOffset']?_0x22cea4(_0x105d8a,_0x87b4d5):_0x5ecdee(_0x105d8a,_0x87b4d5);});}function dt(_0x4ec764){const _0x32af95=_0x5e70aa;return _0x4ec764[_0x32af95(0x240)]===_0x4ec764[_0x32af95(0x246)]?_0x4ec764[_0x32af95(0x240)]:_0x4ec764[_0x32af95(0x240)]+0x1;}function ft(_0x52a504){const _0x3d5717=_0x5e70aa;let _0x1c2ecf=G(_0x52a504);if(!_0x1c2ecf)return null;let _0x4001d3=_0x52a504[_0x3d5717(0x272)](_0x7eb0f5)['getCurrentUnitOfType'](_0x221a97[_0x3d5717(0x1f6)]),_0x2be849=_0x4001d3==null?void 0x0:_0x4001d3[_0x3d5717(0x23c)]();return _0x2be849?_0x101a6d['range'][_0x3d5717(0x277)](_0x1c2ecf,_0x2be849[_0x3d5717(0x1ee)]??[],_0x2be849[_0x3d5717(0x251)]??'')[0x0]??null:null;}function pt(_0x282ec1,_0x478f5c){const _0x273006=_0x5e70aa;let _0x17ded7=_0x282ec1[_0x273006(0x261)],_0x5b6387=_0x478f5c[_0x273006(0x261)],_0x35f011=_0x2fc954(_0x17ded7,_0x5b6387);return[_0x35f011&&_0x5b6387?mt(_0x5b6387,_0x35f011):null,_0x35f011?null:ht(_0x17ded7,_0x5b6387)][_0x273006(0x222)](Boolean)[_0x273006(0x255)]((_0x21b205,_0x100a82)=>_0x2e6159[_0x273006(0x23b)](_0x21b205,_0x100a82),null);}function mt(_0x57c0a3,_0x1c11f4){const _0x56d0ee=_0x5e70aa;let _0x49378c=new _0x4f8d7c();return _0x49378c[_0x56d0ee(0x209)](_0x1c11f4['start']),_0x1c11f4['insertLength']>0x0&&_0x49378c['insert'](_0x1c11f4[_0x56d0ee(0x278)],_0x201241(_0x57c0a3,_0x1c11f4[_0x56d0ee(0x26c)],_0x1c11f4[_0x56d0ee(0x26c)]+_0x1c11f4[_0x56d0ee(0x278)],!0x1)),_0x1c11f4['deleteLength']>0x0&&_0x49378c['delete'](_0x1c11f4[_0x56d0ee(0x27c)]),_0x2e6159[_0x56d0ee(0x234)]()['editOp'](_0x49378c[_0x56d0ee(0x262)](),[_0x56d0ee(0x261)]);}function ht(_0x641efe,_0xf7e7f3){const _0x2fe709=_0x5e70aa;let _0x3dafa9=[],_0x1b433a=_0x641efe?_t(_0x641efe):void 0x0,_0x47a8db=_0xf7e7f3?_t(_0xf7e7f3):void 0x0;for(let _0x6a10ee of gt)K(_0x2e6159[_0x2fe709(0x234)](),['body',_0x6a10ee],_0x1b433a==null?void 0x0:_0x1b433a[_0x6a10ee],_0x47a8db==null?void 0x0:_0x47a8db[_0x6a10ee],_0x3dafa9);return _0x3dafa9['reduce']((_0x3f23dc,_0x245e21)=>_0x2e6159['compose'](_0x3f23dc,_0x245e21),null);}const gt=[_0x5e70aa(0x1ee),'sectionBreaks',_0x5e70aa(0x268),_0x5e70aa(0x1fe),_0x5e70aa(0x221),_0x5e70aa(0x223),'customRanges',_0x5e70aa(0x206),_0x5e70aa(0x202)];function _t(_0x1657cb){return _0x1657cb;}function K(_0x5186b0,_0x35482b,_0x5b7d6d,_0x2d0a61,_0x390598){const _0x4a385d=_0x5e70aa;if(!J(_0x5b7d6d,_0x2d0a61)){if(_0x5b7d6d==null){_0x390598[_0x4a385d(0x239)](_0x5186b0['insertOp'](_0x35482b,_0x2d0a61));return;}if(_0x2d0a61==null){_0x390598[_0x4a385d(0x239)](_0x5186b0[_0x4a385d(0x24b)](_0x35482b,_0x5b7d6d));return;}if(Array[_0x4a385d(0x1e7)](_0x5b7d6d)&&Array[_0x4a385d(0x1e7)](_0x2d0a61)){vt(_0x5186b0,_0x35482b,_0x5b7d6d,_0x2d0a61,_0x390598);return;}if(q(_0x5b7d6d)&&q(_0x2d0a61)){new Set([...Object[_0x4a385d(0x225)](_0x5b7d6d),...Object[_0x4a385d(0x225)](_0x2d0a61)])[_0x4a385d(0x23f)](_0xa365af=>{K(_0x5186b0,[..._0x35482b,_0xa365af],_0x5b7d6d[_0xa365af],_0x2d0a61[_0xa365af],_0x390598);});return;}_0x390598['push'](_0x5186b0[_0x4a385d(0x283)](_0x35482b,_0x5b7d6d,_0x2d0a61));}}function vt(_0x39a131,_0x8cce26,_0x224bc1,_0x322296,_0x1215b3){const _0x7b56f4=_0x5e70aa;if(_0x224bc1[_0x7b56f4(0x275)]===_0x322296[_0x7b56f4(0x275)]){_0x224bc1[_0x7b56f4(0x23f)]((_0x549d26,_0xe58a9c)=>K(_0x39a131,[..._0x8cce26,_0xe58a9c],_0x549d26,_0x322296[_0xe58a9c],_0x1215b3));return;}let _0x3c61c3=0x0;for(;_0x3c61c3<_0x224bc1[_0x7b56f4(0x275)]&&_0x3c61c3<_0x322296['length']&&J(_0x224bc1[_0x3c61c3],_0x322296[_0x3c61c3]);)_0x3c61c3++;let _0x338426=_0x224bc1['length']-0x1,_0x22c1f1=_0x322296[_0x7b56f4(0x275)]-0x1;for(;_0x338426>=_0x3c61c3&&_0x22c1f1>=_0x3c61c3&&J(_0x224bc1[_0x338426],_0x322296[_0x22c1f1]);)_0x338426--,_0x22c1f1--;for(let _0x32c34a=_0x338426;_0x32c34a>=_0x3c61c3;_0x32c34a--)_0x1215b3[_0x7b56f4(0x239)](_0x39a131['removeOp']([..._0x8cce26,_0x32c34a],_0x224bc1[_0x32c34a]));for(let _0x28c6db=_0x3c61c3;_0x28c6db<=_0x22c1f1;_0x28c6db++)_0x1215b3[_0x7b56f4(0x239)](_0x39a131[_0x7b56f4(0x212)]([..._0x8cce26,_0x28c6db],_0x322296[_0x28c6db]));}function q(_0xf0ee08){const _0x58bde0=_0x5e70aa;return typeof _0xf0ee08=='object'&&!!_0xf0ee08&&!Array[_0x58bde0(0x1e7)](_0xf0ee08);}function J(_0x15ac8b,_0x311680){const _0x23536a=_0x5e70aa;return JSON[_0x23536a(0x226)](_0x15ac8b)===JSON[_0x23536a(0x226)](_0x311680);}function Y(_0xe966d,_0x59b731,_0x355532,_0x7c94af,_0x2d268a,_0x403374,_0x200dca){const _0x8ad872=_0x5e70aa;let _0x32351b=pt(_0x7c94af,_0x2d268a);return _0x32351b?!!_0xe966d[_0x8ad872(0x20a)](_0x59a84f['id'],{'unitId':_0x355532,'actions':_0x32351b,'textRanges':[{'startOffset':_0x200dca,'endOffset':_0x200dca,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x403374}):(_0x59b731[_0x8ad872(0x1ed)]([{'startOffset':_0x200dca,'endOffset':_0x200dca}],{'unitId':_0x355532,'subUnitId':_0x355532},!0x1),!0x0);}const X=_0x5e70aa(0x20c);function _0xfdd7(){const _0xacc6b1=['@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','deleteLength','docs-code.mutation.remove-config','entries','indentStart','6265ZwLWvH','2188188STiAQd','_docsCodeModel','replaceOp','packageName','config','find','registerCommand','TABLE_CELL_START','docs-code.command.exit','startTokenOffset','symbol','setCodeConfig','asObservable','min','FALSE','disposeWithMe','isArray','18dAoYLM','blockType','paragraph','nextMetadata','Document\x20body\x20is\x20required','replaceDocRanges','paragraphs','startIndex','_configService','add','_resourceManagerService','some','insertionMode','endTokenOffset','UNIVER_DOC','spaceBelow','insert-new','BLOCK_END','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','indentEnd','_config','BLOCK_START','columnGroups','function','_injector','fromEntries','textRuns','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','getCurrentUnitOfType','blockId','customDecorations','version','keepNext','retain','syncExecuteCommand','set','DOC_CODE_PLUGIN','indexOf','paragraphStartIndex','slice','704671byvKJx','documentData','insertOp','deserialize','map','cursorOffset','object','parse','CODE','complete','convert-paragraph','customRanges','columns','widowControl','previousDocumentData','removeCode','getCodeConfig','blockRanges','filter','customBlocks','onStarting','keys','stringify','MUTATION','6petvPR','constructor','defineProperty','285859zEzqFZ','max','iterator','1.0.4','model','type','paragraphStyle','nextDocumentData','24ouFqbN','getInstance','TRUE','unitId','codes','right','push','getOwnPropertyDescriptor','compose','getBody','_resources','SECTION_BREAK','forEach','startOffset','TABLE_CELL_END','COMMAND','docs-code.mutation.set-config','delete','_initResource','endOffset','monospace','docs-code.command.unwrap','@univerjs-pro/docs-code','_setResource','removeOp','_commandService','36lSHXMY','handler','PARAGRAPH','setConfig','dataStream','clear','direction','36haXhAH','reduce','sectionBreaks','change$','next','docs-code.command.cancel-empty-paragraph','docs-code.config','default','registerPluginResource','pluginName','toPrimitive','962GYxIus','keepLines','body','serialize','_change$','removeUnit','spaceAbove','string','endIndex','tables','decorate','docs-code.command.remove','sort','start','from','textStyle','metadata','docs-code.command.insert','prototype','get','40840vUFSxv','selectionManager','length','commandService','getParagraphsInRange','insertLength','11620DbYTVw','docs-code.command.update'];_0xfdd7=function(){return _0xacc6b1;};return _0xfdd7();}var yt=_0x5e70aa(0x249),bt=_0x5e70aa(0x22e);const xt={};function Z(_0x22cf60,_0x2a0449){return function(_0x149921,_0x4142d3){_0x2a0449(_0x149921,_0x4142d3,_0x22cf60);};}function St(_0x4e637d,_0x5d66cf,_0x4cfc91,_0x80939d){const _0x22a46f=_0x5e70aa;var _0x33ec63=arguments[_0x22a46f(0x275)],_0x488d09=_0x33ec63<0x3?_0x5d66cf:_0x80939d===null?_0x80939d=Object[_0x22a46f(0x23a)](_0x5d66cf,_0x4cfc91):_0x80939d,_0x58915e;if(typeof Reflect==_0x22a46f(0x216)&&typeof Reflect[_0x22a46f(0x269)]==_0x22a46f(0x1ff))_0x488d09=Reflect[_0x22a46f(0x269)](_0x4e637d,_0x5d66cf,_0x4cfc91,_0x80939d);else{for(var _0xa2b901=_0x4e637d['length']-0x1;_0xa2b901>=0x0;_0xa2b901--)(_0x58915e=_0x4e637d[_0xa2b901])&&(_0x488d09=(_0x33ec63<0x3?_0x58915e(_0x488d09):_0x33ec63>0x3?_0x58915e(_0x5d66cf,_0x4cfc91,_0x488d09):_0x58915e(_0x5d66cf,_0x4cfc91))||_0x488d09);}return _0x33ec63>0x3&&_0x488d09&&Object[_0x22a46f(0x22a)](_0x5d66cf,_0x4cfc91,_0x488d09),_0x488d09;}let Q=class extends _0xda6805{constructor(_0x239f8f,_0x243a5d){super(),this['_resourceManagerService']=_0x239f8f,this['_docsCodeModel']=_0x243a5d,this['_initResource']();}[_0x5e70aa(0x245)](){const _0x34e830=_0x5e70aa;this[_0x34e830(0x1e6)](this[_0x34e830(0x1f2)][_0x34e830(0x25c)]({'pluginName':X,'businesses':[_0x221a97[_0x34e830(0x1f6)]],'toJson':_0x4c54dc=>JSON[_0x34e830(0x226)](this[_0x34e830(0x282)][_0x34e830(0x262)](_0x4c54dc)),'parseJson':_0x4f705a=>y(JSON[_0x34e830(0x217)](_0x4f705a)),'onLoad':(_0x39c309,_0x5103bb)=>this['_docsCodeModel'][_0x34e830(0x213)](_0x39c309,_0x5103bb),'onUnLoad':_0x2a3c28=>this[_0x34e830(0x282)][_0x34e830(0x264)](_0x2a3c28)}));}};Q=St([Z(0x0,_0x2b7a1e),Z(0x1,_0x1376f9(w))],Q);let $=class extends _0x29051f{constructor(_0x5653cf=xt,_0x11564d,_0x3f789c,_0x11026a){const _0x7b739f=_0x5e70aa;super(),this[_0x7b739f(0x1fc)]=_0x5653cf,this['_injector']=_0x11564d,this[_0x7b739f(0x24c)]=_0x3f789c,this[_0x7b739f(0x1f0)]=_0x11026a;let {..._0x1b5c86}=_0x56f20c({},xt,this['_config']);this[_0x7b739f(0x1f0)][_0x7b739f(0x250)](_0x7b739f(0x25a),_0x1b5c86);}[_0x5e70aa(0x224)](){const _0x1c93c5=_0x5e70aa;this['_injector'][_0x1c93c5(0x1f1)]([w]),this[_0x1c93c5(0x200)][_0x1c93c5(0x1f1)]([Q]),this[_0x1c93c5(0x200)]['get'](w),this[_0x1c93c5(0x200)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x1c93c5(0x23f)](_0x11aa24=>this[_0x1c93c5(0x1e6)](this[_0x1c93c5(0x24c)][_0x1c93c5(0x287)](_0x11aa24)));}};C($,_0x5e70aa(0x25d),X),C($,_0x5e70aa(0x284),yt),C($,_0x5e70aa(0x207),bt),C($,_0x5e70aa(0x230),_0x221a97[_0x5e70aa(0x1f6)]),$=St([_0xbd1de2(_0x140279,_0x3f4352),Z(0x1,_0x1376f9(_0x18c912)),Z(0x2,_0x345515),Z(0x3,_0x42cbf8)],$);export{X as DOCS_CODE_PLUGIN,U as DocsCodeCancelEmptyParagraphCommand,ot as DocsCodeConsumeBoundaryDeleteCommand,at as DocsCodeInsertBelowCommand,B as DocsCodeInsertCommand,w as DocsCodeModel,H as DocsCodeRemoveCommand,V as DocsCodeUnwrapCommand,st as DocsCodeUpdateCommand,T as RemoveDocsCodeConfigMutation,Te as SetDocsCodeConfigMutation,$ as UniverDocsCodePlugin,Ne as buildCancelEmptyCodeParagraphActions,Ie as isCodeBoundaryDelete,v as normalizeDocsCodeConfig,y as normalizeDocsCodeMetadataResource};
|