@univerjs-pro/docs-code 1.2.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x38ccbe=_0x3bd1;(function(_0x4bb629,_0x377859){const _0x32f79d=_0x3bd1,_0x4192ea=_0x4bb629();while(!![]){try{const _0x4ddd94=-parseInt(_0x32f79d(0x1f6))/0x1*(parseInt(_0x32f79d(0x23d))/0x2)+parseInt(_0x32f79d(0x1f1))/0x3*(-parseInt(_0x32f79d(0x24a))/0x4)+-parseInt(_0x32f79d(0x1e9))/0x5*(-parseInt(_0x32f79d(0x1d9))/0x6)+parseInt(_0x32f79d(0x1fa))/0x7*(-parseInt(_0x32f79d(0x209))/0x8)+-parseInt(_0x32f79d(0x1c7))/0x9+parseInt(_0x32f79d(0x23a))/0xa*(parseInt(_0x32f79d(0x20b))/0xb)+-parseInt(_0x32f79d(0x218))/0xc*(-parseInt(_0x32f79d(0x1dc))/0xd);if(_0x4ddd94===_0x377859)break;else _0x4192ea['push'](_0x4192ea['shift']());}catch(_0xcb812b){_0x4192ea['push'](_0x4192ea['shift']());}}}(_0x24a1,0x25715));import{BooleanNumber as _0x13bc9a,BuildTextUtils as _0x499c92,CommandType as _0x3bfa60,DataStreamTreeTokenType as _0x2bd879,DependentOn as _0x396b79,Disposable as _0x57fd06,DocumentBlockRangeType as _0x1eda82,ICommandService as _0xdb0750,IConfigService as _0xbac78a,IResourceManagerService as _0x240e67,IUniverInstanceService as _0x5a5f70,Inject as _0x721b34,Injector as _0x468616,JSONX as _0x4fed8a,Plugin as _0x306d08,TextX as _0x419f99,UniverInstanceType as _0x4b2cc7,containsInteriorInsertionOffset as _0x295484,containsStreamIndex as _0x1a3297,createParagraphId as _0x3aac9b,generateRandomId as _0x58a671,getBlockRangeInterval as _0x50e957,getBodySliceForTextXAction as _0x984afb,getParagraphContentStartOffset as _0x4a227f,getParagraphContentStartOffsets as _0x51a758,getParagraphFollowingBlockOffset as _0xb48c5,getSingleDataStreamChange as _0x413f3d,intersectsOperationalIntervals as _0x2347a1,merge as _0x508a50,shiftExclusiveRangeOnDelete as _0x165f7b,shiftExclusiveRangeOnInsert as _0x829088,shiftInclusiveRangeOnDelete as _0x2199d2,shiftInclusiveRangeOnInsert as _0x2201ac}from'@univerjs/core';import{Subject as _0x348405}from'rxjs';import{DocSelectionManagerService as _0x494e3c,RichTextEditingMutation as _0x36892e,UniverDocsPlugin as _0x35d67d,getContentInsertRange as _0x32742b,isHeaderFooterSelection as _0x33c357}from'@univerjs/docs';import{UniverLicensePlugin as _0x2122b7}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x406fe2){return{...Se,..._0x406fe2};}function y(_0x195955){const _0x508eb9=_0x3bd1;let _0x247e13=(_0x195955==null?void 0x0:_0x195955[_0x508eb9(0x257)])??{};return{'codes':Object[_0x508eb9(0x1f0)](Object[_0x508eb9(0x235)](_0x247e13)[_0x508eb9(0x1c4)](([_0x397fb8,_0x524bc7])=>[_0x397fb8,v(_0x524bc7)]))};}function b(_0x4144f8,_0x244153,_0x46e1f1){const _0x35f12e=_0x3bd1;let _0x541333=y(_0x4144f8);return _0x541333[_0x35f12e(0x257)][_0x244153]=v({..._0x541333[_0x35f12e(0x257)][_0x244153],..._0x46e1f1}),_0x541333;}function x(_0x2f47dd,_0x54917c){const _0xf7647f=_0x3bd1;let _0x31c965=y(_0x2f47dd);return delete _0x31c965[_0xf7647f(0x257)][_0x54917c],_0x31c965;}function S(_0x54b4d6){'@babel/helpers - typeof';const _0x55b13a=_0x3bd1;return S=typeof Symbol==_0x55b13a(0x1e7)&&typeof Symbol[_0x55b13a(0x1ff)]==_0x55b13a(0x1cb)?function(_0x665d98){return typeof _0x665d98;}:function(_0x57d91e){const _0x1b481d=_0x55b13a;return _0x57d91e&&typeof Symbol==_0x1b481d(0x1e7)&&_0x57d91e[_0x1b481d(0x220)]===Symbol&&_0x57d91e!==Symbol['prototype']?_0x1b481d(0x1cb):typeof _0x57d91e;},S(_0x54b4d6);}function Ce(_0x1476c4,_0x3dfc53){const _0x59ec6e=_0x3bd1;if(S(_0x1476c4)!=_0x59ec6e(0x243)||!_0x1476c4)return _0x1476c4;var _0x377cbc=_0x1476c4[Symbol[_0x59ec6e(0x1f2)]];if(_0x377cbc!==void 0x0){var _0x572ef9=_0x377cbc[_0x59ec6e(0x211)](_0x1476c4,_0x3dfc53||_0x59ec6e(0x1c6));if(S(_0x572ef9)!=_0x59ec6e(0x243))return _0x572ef9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3dfc53===_0x59ec6e(0x250)?String:Number)(_0x1476c4);}function we(_0x16503a){const _0x1af9f2=_0x3bd1;var _0x59cd63=Ce(_0x16503a,_0x1af9f2(0x250));return S(_0x59cd63)==_0x1af9f2(0x1cb)?_0x59cd63:_0x59cd63+'';}function C(_0x514b4d,_0x369f1a,_0x134a6e){const _0x403fb0=_0x3bd1;return(_0x369f1a=we(_0x369f1a))in _0x514b4d?Object[_0x403fb0(0x20f)](_0x514b4d,_0x369f1a,{'value':_0x134a6e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x514b4d[_0x369f1a]=_0x134a6e,_0x514b4d;}var w=class extends _0x57fd06{constructor(..._0x52ed55){const _0x4b01c0=_0x3bd1;super(..._0x52ed55),C(this,'_resources',new Map()),C(this,_0x4b01c0(0x21e),new _0x348405()),C(this,_0x4b01c0(0x22e),this[_0x4b01c0(0x21e)]['asObservable']());}['getCodeConfig'](_0x17db02,_0x4db4d1){const _0x965200=_0x3bd1;return y(this[_0x965200(0x1c9)][_0x965200(0x1fb)](_0x17db02))['codes'][_0x4db4d1];}[_0x38ccbe(0x231)](_0x123fce,_0x206af9,_0x4a45d8){const _0x3080ad=_0x38ccbe;this[_0x3080ad(0x1d3)](_0x123fce,_0x206af9,b(this[_0x3080ad(0x1c9)][_0x3080ad(0x1fb)](_0x123fce),_0x206af9,_0x4a45d8));}[_0x38ccbe(0x1c8)](_0x4b7e18,_0x4273c1){const _0xd4509f=_0x38ccbe;this['_setResource'](_0x4b7e18,_0x4273c1,x(this[_0xd4509f(0x1c9)]['get'](_0x4b7e18),_0x4273c1));}['serialize'](_0x423166){const _0x3fdd15=_0x38ccbe;return y(this[_0x3fdd15(0x1c9)][_0x3fdd15(0x1fb)](_0x423166));}[_0x38ccbe(0x1d2)](_0x39a5d0,_0x15b767){const _0x4a0548=_0x38ccbe;this[_0x4a0548(0x1c9)][_0x4a0548(0x22f)](_0x39a5d0,y(_0x15b767)),this[_0x4a0548(0x21e)]['next']({'unitId':_0x39a5d0});}[_0x38ccbe(0x260)](_0x2db8eb){const _0x4aae28=_0x38ccbe;this[_0x4aae28(0x1c9)][_0x4aae28(0x259)](_0x2db8eb),this[_0x4aae28(0x21e)][_0x4aae28(0x1da)]({'unitId':_0x2db8eb});}[_0x38ccbe(0x1e4)](){const _0x4f2bff=_0x38ccbe;super[_0x4f2bff(0x1e4)](),this[_0x4f2bff(0x1c9)][_0x4f2bff(0x23b)](),this[_0x4f2bff(0x21e)][_0x4f2bff(0x245)]();}[_0x38ccbe(0x1d3)](_0x3a502c,_0xf8a481,_0x3041d4){const _0x56bd5d=_0x38ccbe;this[_0x56bd5d(0x1c9)][_0x56bd5d(0x22f)](_0x3a502c,_0x3041d4),this['_change$'][_0x56bd5d(0x1da)]({'unitId':_0x3a502c,'blockId':_0xf8a481});}};const Te={'id':_0x38ccbe(0x261),'type':_0x3bfa60['MUTATION'],'handler':(_0xfca747,_0x5643cb)=>!(_0x5643cb!=null&&_0x5643cb['unitId'])||!_0x5643cb[_0x38ccbe(0x208)]?!0x1:(_0xfca747[_0x38ccbe(0x1fb)](w)[_0x38ccbe(0x231)](_0x5643cb[_0x38ccbe(0x1cd)],_0x5643cb[_0x38ccbe(0x208)],_0x5643cb['config']),!0x0)},T={'id':'docs-code.mutation.remove-config','type':_0x3bfa60['MUTATION'],'handler':(_0x116bf2,_0x1d476c)=>!(_0x1d476c!=null&&_0x1d476c[_0x38ccbe(0x1cd)])||!_0x1d476c[_0x38ccbe(0x208)]?!0x1:(_0x116bf2['get'](w)[_0x38ccbe(0x1c8)](_0x1d476c['unitId'],_0x1d476c[_0x38ccbe(0x208)]),!0x0)},Ee=_0x38ccbe(0x1ef);var E=class extends Error{constructor(_0x4ffdbc='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x4ffdbc);}};function De(_0x245037){const _0x8c54=_0x38ccbe;var _0x57a247;let _0xbefa52=O(_0x245037[_0x8c54(0x21a)]),_0x3be7d7=A(_0xbefa52),_0x1cf925=ke(_0x245037[_0x8c54(0x236)],_0x245037[_0x8c54(0x256)]),_0x447f53=_0x1cf925?(_0x57a247=_0x3be7d7[_0x8c54(0x246)])==null?void 0x0:_0x57a247[_0x8c54(0x23e)](_0x2ac35b=>{const _0x3e329b=_0x8c54;let _0x42966b=_0x50e957(_0x2ac35b);return _0x42966b[_0x3e329b(0x236)]===_0x1cf925[_0x3e329b(0x236)]&&_0x42966b[_0x3e329b(0x256)]===_0x1cf925['endOffset'];}):void 0x0,{startOffset:_0x6ac526,endOffset:_0x5c52bb}=_0x447f53?_0x1cf925:We(_0x3be7d7,_0x245037[_0x8c54(0x236)],_0x245037[_0x8c54(0x256)],_0x245037['insertionMode']);if(!_0x447f53&&Ae(_0x3be7d7,_0x6ac526,_0x5c52bb))throw new E(_0x8c54(0x1c5));let _0x1a71d0=qe(_0x3be7d7,_0x6ac526,_0x5c52bb),_0x4ea6bb=(_0x447f53==null?void 0x0:_0x447f53[_0x8c54(0x208)])??_0x245037['blockId'],_0x6d3a12=b(_0x245037[_0x8c54(0x202)],_0x4ea6bb,{...Se,..._0x245037[_0x8c54(0x210)]});if(_0x447f53)return _0x447f53['blockType']=_0x1eda82['CODE'],Oe(_0x3be7d7,_0x6ac526,_0x5c52bb),ze(_0x3be7d7,_0x6ac526,_0x5c52bb,_0x1a71d0),N(_0x3be7d7,_0x447f53),{'nextDocumentData':_0xbefa52,'nextMetadata':_0x6d3a12,'cursorOffset':_0x6ac526+0x1};if(_0x6ac526===_0x5c52bb){var _0x45269e,_0x3c80c6;let _0x675199=''+_0x2bd879[_0x8c54(0x1f8)]+_0x2bd879[_0x8c54(0x22c)]+_0x2bd879['BLOCK_END'];P(_0x3be7d7,_0x6ac526,_0x675199,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x3aac9b(new Set((_0x45269e=_0x3be7d7[_0x8c54(0x20a)])==null?void 0x0:_0x45269e['map'](_0x137aab=>_0x137aab['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x1a71d0)}],'blockRanges':[{'blockId':_0x4ea6bb,'blockType':_0x1eda82[_0x8c54(0x233)],'startIndex':0x0,'endIndex':_0x675199[_0x8c54(0x238)]-0x1}]});let _0x588e98=(_0x3c80c6=_0x3be7d7['blockRanges'])==null?void 0x0:_0x3c80c6['find'](_0x3f6a51=>_0x3f6a51[_0x8c54(0x208)]===_0x4ea6bb);return _0x588e98&&N(_0x3be7d7,_0x588e98),{'nextDocumentData':_0xbefa52,'nextMetadata':_0x6d3a12,'cursorOffset':_0x6ac526+0x1};}P(_0x3be7d7,_0x5c52bb,_0x2bd879[_0x8c54(0x205)]),P(_0x3be7d7,_0x6ac526,_0x2bd879['BLOCK_START']),ze(_0x3be7d7,_0x6ac526,_0x5c52bb+0x1,_0x1a71d0);let _0x192dc9={'blockId':_0x4ea6bb,'blockType':_0x1eda82[_0x8c54(0x233)],'startIndex':_0x6ac526,'endIndex':_0x5c52bb+0x1};return _0x3be7d7[_0x8c54(0x246)]=[..._0x3be7d7[_0x8c54(0x246)]??[],_0x192dc9][_0x8c54(0x252)]((_0x166f11,_0x4a40f1)=>_0x166f11[_0x8c54(0x1ed)]-_0x4a40f1[_0x8c54(0x1ed)]),N(_0x3be7d7,_0x192dc9),{'nextDocumentData':_0xbefa52,'nextMetadata':_0x6d3a12,'cursorOffset':_0x6ac526+0x1};}function Oe(_0x2da713,_0x11b264,_0x1d04c8){const _0x5d80a1=_0x38ccbe;(_0x2da713[_0x5d80a1(0x20a)]??[])[_0x5d80a1(0x22a)](_0x4f4e6c=>_0x4f4e6c[_0x5d80a1(0x1ed)]>_0x11b264&&_0x4f4e6c[_0x5d80a1(0x1ed)]<_0x1d04c8)['forEach'](_0x1c55dd=>{const _0xfdf5c1=_0x5d80a1;let _0x2da4f7={..._0x1c55dd[_0xfdf5c1(0x251)]??{}};delete _0x2da4f7['spaceAbove'],delete _0x2da4f7['spaceBelow'],_0x1c55dd[_0xfdf5c1(0x251)]=_0x2da4f7;});}function ke(_0x441365,_0x11ca0d){const _0x54c38b=_0x38ccbe;return _0x441365==null||_0x11ca0d==null||_0x441365===_0x11ca0d?null:{'startOffset':Math[_0x54c38b(0x1dd)](_0x441365,_0x11ca0d),'endOffset':Math[_0x54c38b(0x206)](_0x441365,_0x11ca0d)};}function Ae(_0xcc72c5,_0x2a82b4,_0x4bd57b){const _0x4090d3=_0x38ccbe;return(_0xcc72c5[_0x4090d3(0x246)]??[])['some'](_0x59e9bb=>{let _0xbec2c=_0x50e957(_0x59e9bb);return _0x2a82b4===_0x4bd57b?_0x295484(_0xbec2c,_0x2a82b4):_0x2347a1(_0xbec2c,{'startOffset':_0x2a82b4,'endOffset':_0x4bd57b});});}function je(_0x469863){const _0x41f852=_0x38ccbe;return{'nextDocumentData':O(_0x469863[_0x41f852(0x21a)]),'nextMetadata':b(_0x469863['metadata'],_0x469863[_0x41f852(0x208)],_0x469863[_0x41f852(0x210)]),'cursorOffset':0x0};}function D(_0x343a88){const _0x10cae3=_0x38ccbe;let _0x1b3b2c=O(_0x343a88[_0x10cae3(0x21a)]),_0x1619e4=A(_0x1b3b2c),_0x4714f4=Fe(_0x1619e4,_0x343a88[_0x10cae3(0x208)]);if(!_0x4714f4)return null;let _0x4d1f23=He(_0x1619e4,_0x4714f4);return{'nextDocumentData':_0x1b3b2c,'nextMetadata':x(_0x343a88['metadata'],_0x343a88[_0x10cae3(0x208)]),'cursorOffset':_0x4d1f23};}function Me(_0x421c29){const _0x5793c3=_0x38ccbe;var _0x118522;let _0x16e622=O(_0x421c29['documentData']),_0x276439=A(_0x16e622),_0x2099cc=Fe(_0x276439,_0x421c29[_0x5793c3(0x208)]);if(!_0x2099cc)return null;let _0x3227fd=_0x50e957(_0x2099cc);return F(_0x276439,_0x3227fd[_0x5793c3(0x236)],_0x3227fd[_0x5793c3(0x256)]),_0x276439[_0x5793c3(0x246)]=(_0x118522=_0x276439[_0x5793c3(0x246)])==null?void 0x0:_0x118522[_0x5793c3(0x22a)](_0xb1fbff=>_0xb1fbff[_0x5793c3(0x208)]!==_0x421c29[_0x5793c3(0x208)]),{'nextDocumentData':_0x16e622,'nextMetadata':x(_0x421c29['metadata'],_0x421c29[_0x5793c3(0x208)]),'cursorOffset':_0x2099cc['startIndex']};}function Ne(_0x5794ae){const _0x1182c4=_0x38ccbe;let _0x14861e=O(_0x5794ae['documentData']),_0x3c7af8=A(_0x14861e),_0x4d9707=Le(_0x3c7af8,_0x5794ae[_0x1182c4(0x21d)]);return _0x4d9707&&Pe(_0x14861e,_0x3c7af8,_0x4d9707,_0x5794ae['cursorOffset'],_0x5794ae['paragraphStartIndex'])||null;}function _0x3bd1(_0x37dded,_0x8b9850){_0x37dded=_0x37dded-0x1c4;const _0x24a10c=_0x24a1();let _0x3bd146=_0x24a10c[_0x37dded];return _0x3bd146;}function Pe(_0xf2339b,_0x2083fe,_0x3c3255,_0x440a5e,_0x23522e){const _0x32620a=_0x38ccbe;let _0x4781c3=$e(_0x2083fe,_0x3c3255,_0x440a5e,_0x23522e);if(!_0x4781c3)return null;let _0x46d586=_0x4781c3['endTokenOffset']-0x1;return F(_0x2083fe,_0x4781c3['paragraph'][_0x32620a(0x1ed)],_0x4781c3[_0x32620a(0x227)][_0x32620a(0x1ed)]+0x1),{'nextDocumentData':_0xf2339b,'cursorOffset':_0x46d586};}function Fe(_0x3fb20e,_0x1443e0){const _0x2b3f70=_0x38ccbe;var _0x47e99b;return _0x3fb20e==null||(_0x47e99b=_0x3fb20e[_0x2b3f70(0x246)])==null?void 0x0:_0x47e99b['find'](_0x38bae9=>_0x38bae9['blockType']===_0x1eda82['CODE']&&_0x38bae9[_0x2b3f70(0x208)]===_0x1443e0);}function Ie(_0x11db60){const _0x211cf9=_0x38ccbe;let _0x5e0371=_0x11db60['documentData'][_0x211cf9(0x204)];if(!_0x5e0371)return!0x1;let _0x5d191e=_0x11db60[_0x211cf9(0x258)]===_0x211cf9(0x215)?_0x11db60['cursorOffset']-0x1:_0x11db60['cursorOffset'],_0x486b1b=_0x11db60['direction']==='right'?_0x11db60['cursorOffset']+0x1:_0x5d191e;return(_0x5e0371[_0x211cf9(0x246)]??[])[_0x211cf9(0x216)](_0x4f8ac1=>_0x4f8ac1['blockType']===_0x1eda82[_0x211cf9(0x233)]?_0x5d191e===_0x4f8ac1[_0x211cf9(0x1ed)]||_0x5d191e===_0x4f8ac1[_0x211cf9(0x201)]||_0x486b1b===_0x4f8ac1['startIndex']||_0x486b1b===_0x4f8ac1[_0x211cf9(0x201)]:!0x1);}function Le(_0x51a8d9,_0x4c3fc5){const _0x370a48=_0x38ccbe;var _0xdeda51;return(_0xdeda51=_0x51a8d9[_0x370a48(0x246)])==null?void 0x0:_0xdeda51[_0x370a48(0x23e)](_0x3c0c15=>{const _0x59a99c=_0x370a48;let _0x5a6770=M(_0x3c0c15);return _0x3c0c15['blockType']===_0x1eda82[_0x59a99c(0x233)]&&_0x3c0c15[_0x59a99c(0x1ed)]<=_0x4c3fc5&&_0x4c3fc5<=_0x5a6770+0x2;});}function Re(_0x269d27,_0x2d4cba,_0x2bc60b=!0x1){const _0x481648=_0x38ccbe;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x13bc9a[_0x481648(0x223)],'keepNext':_0x2d4cba?_0x13bc9a[_0x481648(0x1e8)]:_0x13bc9a['TRUE'],'widowControl':_0x13bc9a[_0x481648(0x223)],..._0x269d27&&_0x2bc60b?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x5bf56b,_0x5cb83d,_0x2bde52,_0x426ab7=!0x1){const _0x4b3bc3=_0x38ccbe;let _0x33b7f0=(_0x5bf56b['paragraphs']??[])[_0x4b3bc3(0x22a)](_0x386642=>_0x386642[_0x4b3bc3(0x1ed)]>_0x5cb83d&&_0x386642[_0x4b3bc3(0x1ed)]<_0x2bde52);_0x33b7f0[_0x4b3bc3(0x203)]((_0x5defe9,_0x225fdd)=>{const _0x38e9f5=_0x4b3bc3;_0x5defe9[_0x38e9f5(0x251)]={..._0x5defe9['paragraphStyle']??{},...Re(_0x225fdd===0x0,_0x225fdd===_0x33b7f0['length']-0x1,_0x426ab7)};});}function Be(_0x3ace13){const _0x36cac2=_0x38ccbe;var _0x3e249e,_0x3c6f4c;let _0x5413db={..._0x3ace13??{}};return delete _0x5413db[_0x36cac2(0x23f)],delete _0x5413db['indentStart'],delete _0x5413db['spaceAbove'],delete _0x5413db[_0x36cac2(0x1d8)],delete _0x5413db[_0x36cac2(0x24e)],delete _0x5413db[_0x36cac2(0x25b)],delete _0x5413db[_0x36cac2(0x1ca)],((_0x3e249e=_0x5413db['textStyle'])==null?void 0x0:_0x3e249e['ff'])===Ee&&((_0x3c6f4c=_0x5413db[_0x36cac2(0x20e)])==null?void 0x0:_0x3c6f4c['fs'])===0xc&&delete _0x5413db[_0x36cac2(0x20e)],_0x5413db;}function Ve(_0x533c5d,_0x2ffd3e){const _0x4a7a3b=_0x38ccbe;let _0x11ffb6=M(_0x2ffd3e);return(_0x533c5d[_0x4a7a3b(0x20a)]??[])[_0x4a7a3b(0x22a)](_0x249581=>_0x249581[_0x4a7a3b(0x1ed)]>_0x2ffd3e['startIndex']&&_0x249581[_0x4a7a3b(0x1ed)]<_0x11ffb6);}function He(_0x15ca2d,_0x1a7100){const _0xb6947d=_0x38ccbe;var _0x3e9ad4;let _0x49f632=M(_0x1a7100);return Ve(_0x15ca2d,_0x1a7100)[_0xb6947d(0x203)](_0x17521f=>{const _0x123049=_0xb6947d;_0x17521f[_0x123049(0x251)]=Be(_0x17521f[_0x123049(0x251)]);}),F(_0x15ca2d,_0x49f632,_0x49f632+0x1),F(_0x15ca2d,_0x1a7100[_0xb6947d(0x1ed)],_0x1a7100[_0xb6947d(0x1ed)]+0x1),_0x15ca2d[_0xb6947d(0x246)]=(_0x3e9ad4=_0x15ca2d[_0xb6947d(0x246)])==null?void 0x0:_0x3e9ad4[_0xb6947d(0x22a)](_0x5e3168=>_0x5e3168[_0xb6947d(0x208)]!==_0x1a7100[_0xb6947d(0x208)]),_0x1a7100['startIndex'];}function O(_0x596822){const _0x54e887=_0x38ccbe;return{..._0x596822,'body':_0x596822[_0x54e887(0x204)]?Ue(_0x596822[_0x54e887(0x204)]):_0x596822['body']};}function Ue(_0x57b892){const _0x1f1d70=_0x38ccbe;var _0x573591,_0x9c19b9,_0x1d4292,_0x58f2f3,_0xb9336f,_0x570c72,_0x51133b,_0x2b4dd7,_0x1316a7;return{..._0x57b892,'paragraphs':(_0x573591=_0x57b892[_0x1f1d70(0x20a)])==null?void 0x0:_0x573591['map'](_0x3a3224=>({..._0x3a3224,'bullet':k(_0x3a3224[_0x1f1d70(0x20d)]),'paragraphStyle':k(_0x3a3224[_0x1f1d70(0x251)])})),'sectionBreaks':(_0x9c19b9=_0x57b892['sectionBreaks'])==null?void 0x0:_0x9c19b9['map'](_0x5cde8f=>({..._0x5cde8f})),'textRuns':(_0x1d4292=_0x57b892['textRuns'])==null?void 0x0:_0x1d4292[_0x1f1d70(0x1c4)](_0x29dad1=>({..._0x29dad1})),'tables':(_0x58f2f3=_0x57b892[_0x1f1d70(0x226)])==null?void 0x0:_0x58f2f3['map'](_0x6bcc23=>({..._0x6bcc23})),'columnGroups':(_0xb9336f=_0x57b892[_0x1f1d70(0x265)])==null?void 0x0:_0xb9336f[_0x1f1d70(0x1c4)](_0x594843=>{const _0x499e60=_0x1f1d70;var _0x20fb47;return{..._0x594843,'columns':(_0x20fb47=_0x594843[_0x499e60(0x1ce)])==null?void 0x0:_0x20fb47[_0x499e60(0x1c4)](_0xf01bd3=>k(_0xf01bd3))};}),'blockRanges':(_0x570c72=_0x57b892['blockRanges'])==null?void 0x0:_0x570c72[_0x1f1d70(0x1c4)](_0x2f4675=>({..._0x2f4675})),'customRanges':(_0x51133b=_0x57b892['customRanges'])==null?void 0x0:_0x51133b['map'](_0x2f9366=>({..._0x2f9366})),'customDecorations':(_0x2b4dd7=_0x57b892[_0x1f1d70(0x1fd)])==null?void 0x0:_0x2b4dd7[_0x1f1d70(0x1c4)](_0x290f09=>({..._0x290f09})),'customBlocks':(_0x1316a7=_0x57b892[_0x1f1d70(0x1cf)])==null?void 0x0:_0x1316a7[_0x1f1d70(0x1c4)](_0x3a283a=>({..._0x3a283a}))};}function k(_0x469b89){const _0x2a70d5=_0x38ccbe;return Array['isArray'](_0x469b89)?_0x469b89[_0x2a70d5(0x1c4)](_0x4683fa=>k(_0x4683fa)):!_0x469b89||typeof _0x469b89!=_0x2a70d5(0x243)?_0x469b89:Object[_0x2a70d5(0x1f0)](Object['entries'](_0x469b89)[_0x2a70d5(0x1c4)](([_0x46ef6a,_0x3d2ccb])=>[_0x46ef6a,k(_0x3d2ccb)]));}function A(_0x3c08f4){const _0x5ecdd0=_0x38ccbe;if(!_0x3c08f4[_0x5ecdd0(0x204)])throw Error(_0x5ecdd0(0x1d6));return _0x3c08f4[_0x5ecdd0(0x204)];}function We(_0x432fcf,_0x32fa78,_0x443bb0,_0x15c453='convert-paragraph'){const _0x14d092=_0x38ccbe;if(_0x32fa78==null||_0x443bb0==null){let _0x28c43e=Ke(_0x432fcf);return{'startOffset':_0x28c43e,'endOffset':_0x28c43e};}let _0x4950e0=Math[_0x14d092(0x1dd)](_0x32fa78,_0x443bb0),_0x2de79d=Math['max'](_0x32fa78,_0x443bb0),_0x5fe4c3=Ze(_0x432fcf,_0x4950e0,_0x2de79d);return _0x4950e0===_0x2de79d?_0x15c453==='insert-new'?{'startOffset':_0x4950e0,'endOffset':_0x2de79d}:Ge(_0x432fcf,_0x4950e0,_0x5fe4c3):Je(_0x432fcf,_0x4950e0,_0x2de79d,_0x5fe4c3);}function Ge(_0x45bb4e,_0x1edea1,_0x1198fd){const _0xf90441=_0x38ccbe;let _0x57be51=Ye(_0x45bb4e,_0x1edea1);if(_0x57be51){let _0x30ea01=j(_0x45bb4e,_0x57be51,_0x1198fd);if(_0x30ea01<_0x57be51[_0xf90441(0x1ed)])return{'startOffset':_0x30ea01,'endOffset':_0x1198fd?Math[_0xf90441(0x1dd)](_0x57be51['startIndex']+0x1,_0x1198fd[_0xf90441(0x256)]):_0x57be51[_0xf90441(0x1ed)]+0x1};}let _0x52523f=_0x1edea1===0x0&&_0x45bb4e[_0xf90441(0x200)][0x0]===_0x2bd879['PARAGRAPH']?0x1:_0x1edea1;return{'startOffset':_0x52523f,'endOffset':_0x52523f};}function Ke(_0x4ea3dd){const _0x44b073=_0x38ccbe;return _0x4ea3dd[_0x44b073(0x200)][_0x44b073(0x25d)](_0x2bd879[_0x44b073(0x1ee)])?Math[_0x44b073(0x206)](0x0,_0x4ea3dd[_0x44b073(0x200)][_0x44b073(0x238)]-0x1):_0x4ea3dd[_0x44b073(0x200)][_0x44b073(0x238)];}function qe(_0x18589a,_0x23b6e3,_0x186214){const _0x584d3e=_0x38ccbe;var _0x1eba82;let _0x2778d0=Math[_0x584d3e(0x1dd)](_0x23b6e3,_0x186214),_0x475b0a=Math[_0x584d3e(0x206)](_0x23b6e3,_0x186214);return!!((_0x1eba82=_0x18589a['tables'])!=null&&_0x1eba82[_0x584d3e(0x216)](_0x5ddc49=>_0x2778d0>_0x5ddc49['startIndex']&&_0x2778d0<_0x5ddc49[_0x584d3e(0x201)]||_0x475b0a>_0x5ddc49[_0x584d3e(0x1ed)]&&_0x475b0a<_0x5ddc49[_0x584d3e(0x201)]||_0x2778d0<=_0x5ddc49[_0x584d3e(0x1ed)]&&_0x475b0a>=_0x5ddc49['endIndex']));}function Je(_0x260a44,_0x396049,_0x170424,_0x1e4d32){const _0x5e5b0f=_0x38ccbe;let _0x3a9674=[..._0x260a44['paragraphs']??[]][_0x5e5b0f(0x252)]((_0xd54c7,_0x35504f)=>_0xd54c7[_0x5e5b0f(0x1ed)]-_0x35504f[_0x5e5b0f(0x1ed)]),_0x5c8898=_0x51a758(_0x260a44),_0x8157cf=_0x3a9674[_0x5e5b0f(0x23e)](_0xa6aaf9=>j(_0x260a44,_0xa6aaf9,_0x1e4d32,_0x5c8898)<=_0x396049&&_0x396049<=_0xa6aaf9[_0x5e5b0f(0x1ed)]),_0x4ed16f=_0x3a9674[_0x5e5b0f(0x23e)](_0x5b1fa1=>_0x5b1fa1[_0x5e5b0f(0x1ed)]>=_0x170424-0x1)??_0x3a9674[_0x3a9674[_0x5e5b0f(0x238)]-0x1];return{'startOffset':_0x8157cf?j(_0x260a44,_0x8157cf,_0x1e4d32,_0x5c8898):_0x396049,'endOffset':_0x4ed16f?Xe(_0x4ed16f,_0x1e4d32):_0x170424};}function Ye(_0x1e4c36,_0xef3538){const _0x33de34=_0x38ccbe;let _0x527b98=[..._0x1e4c36[_0x33de34(0x20a)]??[]][_0x33de34(0x252)]((_0xa74b6b,_0x4064bb)=>_0xa74b6b[_0x33de34(0x1ed)]-_0x4064bb[_0x33de34(0x1ed)]),_0x1b2adf=_0x51a758(_0x1e4c36);return _0x527b98['find'](_0xf38aed=>(_0x1b2adf[_0x33de34(0x1fb)](_0xf38aed[_0x33de34(0x1ed)])??0x0)<=_0xef3538&&_0xef3538<=_0xf38aed[_0x33de34(0x1ed)]);}function j(_0x3b371e,_0x3020ec,_0x3a480b,_0xffd34){const _0x428228=_0x38ccbe;let _0x2b24b5=(_0xffd34==null?void 0x0:_0xffd34['get'](_0x3020ec['startIndex']))??_0x4a227f(_0x3b371e,_0x3020ec);return _0x3a480b?Math[_0x428228(0x206)](_0x2b24b5,_0x3a480b[_0x428228(0x236)]):_0x2b24b5;}function Xe(_0x4744d8,_0x41c92){const _0x386387=_0x38ccbe;let _0x118b7d=_0x4744d8[_0x386387(0x1ed)]+0x1;return _0x41c92?Math[_0x386387(0x1dd)](_0x118b7d,_0x41c92[_0x386387(0x256)]):_0x118b7d;}function Ze(_0x30dc93,_0x185c23,_0x3ef897){const _0x5ac8d2=_0x38ccbe;let _0x3a5e70=Qe(_0x30dc93,_0x185c23),_0x324cf9=Qe(_0x30dc93,_0x185c23===_0x3ef897?_0x3ef897:Math[_0x5ac8d2(0x206)](_0x185c23,_0x3ef897-0x1));if(_0x3a5e70||_0x324cf9){if(!_0x3a5e70||!_0x324cf9||_0x3a5e70[_0x5ac8d2(0x237)]!==_0x324cf9[_0x5ac8d2(0x237)]||_0x3a5e70[_0x5ac8d2(0x23c)]!==_0x324cf9['endTokenOffset'])throw new E();return _0x3a5e70;}}function Qe(_0xb2f238,_0x8e5c40){const _0x41933f=_0x38ccbe;let _0x19a032=_0xb2f238['dataStream'],_0x38c2ee=-0x1;for(let _0xf39a77=Math[_0x41933f(0x1dd)](_0x8e5c40,_0x19a032[_0x41933f(0x238)]-0x1);_0xf39a77>=0x0;_0xf39a77--){let _0x390a66=_0x19a032[_0xf39a77];if(_0x390a66===_0x2bd879[_0x41933f(0x253)])return;if(_0x390a66===_0x2bd879[_0x41933f(0x1ea)]){_0x38c2ee=_0xf39a77;break;}}if(_0x38c2ee<0x0)return;let _0x36873a=_0x19a032['indexOf'](_0x2bd879['TABLE_CELL_END'],_0x38c2ee+0x1);if(!(_0x36873a<0x0||_0x8e5c40<_0x38c2ee+0x1||_0x8e5c40>_0x36873a-0x1))return{'startOffset':_0x38c2ee+0x1,'endOffset':Math['max'](_0x38c2ee+0x1,_0x36873a-0x1),'startTokenOffset':_0x38c2ee,'endTokenOffset':_0x36873a};}function M(_0x361a07){const _0x22ead6=_0x38ccbe;return _0x50e957(_0x361a07)[_0x22ead6(0x256)]-0x1;}function $e(_0x221e70,_0x5a2b4c,_0x56e60e,_0x58772){const _0x26bed4=_0x38ccbe;let _0x3f5ab0=M(_0x5a2b4c),_0x366d08=(_0x221e70['paragraphs']??[])[_0x26bed4(0x23e)](_0x1df956=>_0x1df956['startIndex']===_0x3f5ab0+0x1);if(!_0x366d08||_0x58772!=null&&_0x366d08[_0x26bed4(0x1ed)]!==_0x58772||_0x56e60e!=null&&(_0x56e60e<_0x3f5ab0||_0x56e60e>_0x366d08['startIndex']+0x1)||_0x221e70[_0x26bed4(0x200)][_0x366d08['startIndex']]!==_0x2bd879[_0x26bed4(0x22c)])return null;let _0x4a67b5=_0x4a227f(_0x221e70,_0x366d08),_0xc6f3ff=_0x221e70[_0x26bed4(0x200)][_0x26bed4(0x264)](_0x4a67b5,_0x366d08[_0x26bed4(0x1ed)]);return Array[_0x26bed4(0x20c)](_0xc6f3ff)[_0x26bed4(0x1f9)](_0x2861a9=>_0x2861a9===_0x2bd879[_0x26bed4(0x205)])?{'paragraph':_0x366d08,'endTokenOffset':_0x3f5ab0}:null;}function N(_0x113f9f,_0x4bb66a){const _0x18b481=_0x38ccbe;var _0x1e2a81;let _0x40b0a6=M(_0x4bb66a),_0x2f17ae=_0x113f9f[_0x18b481(0x200)][_0x40b0a6+0x1];(_0x2f17ae===_0x2bd879[_0x18b481(0x1ee)]||_0x2f17ae===void 0x0)&&P(_0x113f9f,_0x40b0a6+0x1,_0x2bd879['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3aac9b(new Set((_0x1e2a81=_0x113f9f['paragraphs'])==null?void 0x0:_0x1e2a81[_0x18b481(0x1c4)](_0x2e3359=>_0x2e3359[_0x18b481(0x249)])))}]});}function P(_0x403491,_0x2e0300,_0x4eab62,_0x238697={}){const _0x2b2915=_0x38ccbe;var _0x390967,_0x13d2fb;_0x4eab62&&(_0x403491[_0x2b2915(0x200)]=''+_0x403491[_0x2b2915(0x200)]['slice'](0x0,_0x2e0300)+_0x4eab62+_0x403491[_0x2b2915(0x200)][_0x2b2915(0x264)](_0x2e0300),et(_0x403491,_0x2e0300,_0x4eab62[_0x2b2915(0x238)]),(_0x390967=_0x238697[_0x2b2915(0x20a)])!=null&&_0x390967[_0x2b2915(0x238)]&&(_0x403491['paragraphs']=[..._0x403491[_0x2b2915(0x20a)]??[],..._0x238697[_0x2b2915(0x20a)][_0x2b2915(0x1c4)](_0x49cf5c=>({..._0x49cf5c,'startIndex':_0x49cf5c['startIndex']+_0x2e0300}))][_0x2b2915(0x252)]((_0x19e9ea,_0x5d53d3)=>_0x19e9ea[_0x2b2915(0x1ed)]-_0x5d53d3[_0x2b2915(0x1ed)])),(_0x13d2fb=_0x238697[_0x2b2915(0x246)])!=null&&_0x13d2fb[_0x2b2915(0x238)]&&(_0x403491[_0x2b2915(0x246)]=[..._0x403491[_0x2b2915(0x246)]??[],..._0x238697[_0x2b2915(0x246)]['map'](_0x81b99d=>({..._0x81b99d,'startIndex':_0x81b99d['startIndex']+_0x2e0300,'endIndex':_0x81b99d['endIndex']+_0x2e0300}))][_0x2b2915(0x252)]((_0x2bd270,_0x1d65da)=>_0x2bd270[_0x2b2915(0x1ed)]-_0x1d65da['startIndex'])));}function F(_0x27abcb,_0x2c95c7,_0x27d726){const _0x644d4=_0x38ccbe;let _0x52efab=_0x27d726-_0x2c95c7;_0x27abcb['dataStream']=''+_0x27abcb['dataStream'][_0x644d4(0x264)](0x0,_0x2c95c7)+_0x27abcb[_0x644d4(0x200)]['slice'](_0x27d726),tt(_0x27abcb,_0x2c95c7,_0x52efab);}function _0x24a1(){const _0x2ad876=['spaceBelow','66QrGPKG','next','_commandService','32461OvSKYK','min','docs-code.command.insert','getTextRanges','parse','insertLength','UNIVER_DOC','_config','dispose','decorate','insert-new','function','FALSE','78745DvuRFF','TABLE_CELL_START','blockType','onStarting','startIndex','SECTION_BREAK','monospace','fromEntries','60pdDpzX','toPrimitive','commandService','1.2.0','disposeWithMe','6BwRzVa','previousDocumentData','BLOCK_START','every','130508vbZFCx','get','keys','customDecorations','docs-code.command.cancel-empty-paragraph','iterator','dataStream','endIndex','metadata','forEach','body','BLOCK_END','max','docs-code.command.exit','blockId','88SMqXoN','paragraphs','7381lPdZlA','from','bullet','textStyle','defineProperty','config','call','registerCommand','serialize','stringify','left','some','_resourceManagerService','3372tzHAJl','insertionMode','documentData','packageName','docs-code.command.unwrap','cursorOffset','_change$','docs-code.command.update','constructor','insert','selectionManager','TRUE','_docsCodeModel','deleteLength','tables','paragraph','range','registerPluginResource','filter','nextMetadata','PARAGRAPH','docs-code.command.remove','change$','set','replaceDocRanges','setCodeConfig','add','CODE','replaceOp','entries','startOffset','startTokenOffset','length','getSnapshot','1090DkASBH','clear','endTokenOffset','34420uvUJIW','find','indentEnd','nextDocumentData','getCurrentUnitOfType','setConfig','object','sectionBreaks','complete','blockRanges','insertOp','removeOp','paragraphId','54508tlBEAr','docs-code.config','COMMAND','isArray','keepLines','getBody','string','paragraphStyle','sort','TABLE_CELL_END','model','push','endOffset','codes','direction','delete','getInstance','keepNext','_injector','endsWith','editOp','getOwnPropertyDescriptor','removeUnit','docs-code.mutation.set-config','start','handler','slice','columnGroups','DOC_CODE_PLUGIN','textRuns','map','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','default','1924074bazJUB','removeCode','_resources','widowControl','symbol','_initResource','unitId','columns','customBlocks','pluginName','syncExecuteCommand','deserialize','_setResource','paragraphStartIndex','customRanges','Document\x20body\x20is\x20required','_configService'];_0x24a1=function(){return _0x2ad876;};return _0x24a1();}function et(_0x2f22b0,_0x1fa5c3,_0x386a1f){const _0x3a8feb=_0x38ccbe;_0x2f22b0[_0x3a8feb(0x20a)]=I(_0x2f22b0[_0x3a8feb(0x20a)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x244)]=I(_0x2f22b0[_0x3a8feb(0x244)],_0x1fa5c3,_0x386a1f),_0x2f22b0['customBlocks']=I(_0x2f22b0[_0x3a8feb(0x1cf)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x267)]=nt(_0x2f22b0[_0x3a8feb(0x267)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x226)]=rt(_0x2f22b0[_0x3a8feb(0x226)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x265)]=R(_0x2f22b0[_0x3a8feb(0x265)],_0x1fa5c3,_0x386a1f),_0x2f22b0['customRanges']=R(_0x2f22b0[_0x3a8feb(0x1d5)],_0x1fa5c3,_0x386a1f),_0x2f22b0['customDecorations']=R(_0x2f22b0[_0x3a8feb(0x1fd)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x246)]=R(_0x2f22b0[_0x3a8feb(0x246)],_0x1fa5c3,_0x386a1f);}function tt(_0x23ea0d,_0x2d03e2,_0x1689cb){const _0x44853c=_0x38ccbe;var _0x5dfbc6,_0x1d0f5d;_0x23ea0d[_0x44853c(0x20a)]=L(_0x23ea0d[_0x44853c(0x20a)],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x244)]=L(_0x23ea0d['sectionBreaks'],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x1cf)]=L(_0x23ea0d[_0x44853c(0x1cf)],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x267)]=(_0x5dfbc6=it((_0x1d0f5d=_0x23ea0d[_0x44853c(0x267)])==null?void 0x0:_0x1d0f5d[_0x44853c(0x1c4)](_0x51b9f5=>({..._0x51b9f5,'startIndex':_0x51b9f5['st'],'endIndex':_0x51b9f5['ed']})),_0x2d03e2,_0x1689cb))==null?void 0x0:_0x5dfbc6[_0x44853c(0x1c4)](_0x5b03d6=>{let {startIndex:_0x29c40e,endIndex:_0x436c3b,..._0x3f742e}=_0x5b03d6;return{..._0x3f742e,'st':_0x29c40e,'ed':_0x436c3b};}),_0x23ea0d[_0x44853c(0x226)]=it(_0x23ea0d['tables'],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x265)]=z(_0x23ea0d['columnGroups'],_0x2d03e2,_0x1689cb),_0x23ea0d['customRanges']=z(_0x23ea0d[_0x44853c(0x1d5)],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x1fd)]=z(_0x23ea0d['customDecorations'],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x246)]=z(_0x23ea0d[_0x44853c(0x246)],_0x2d03e2,_0x1689cb);}function I(_0x567ff1,_0x28a723,_0x4714c1){const _0x2bd168=_0x38ccbe;return _0x567ff1==null?void 0x0:_0x567ff1['map'](_0x5a52f3=>_0x5a52f3[_0x2bd168(0x1ed)]>=_0x28a723?{..._0x5a52f3,'startIndex':_0x5a52f3[_0x2bd168(0x1ed)]+_0x4714c1}:_0x5a52f3);}function L(_0x22a1dd,_0x30152a,_0x2b54b1){const _0x45fc75=_0x38ccbe;let _0x4a4c49=_0x30152a+_0x2b54b1;return _0x22a1dd==null?void 0x0:_0x22a1dd[_0x45fc75(0x1c4)](_0x467002=>_0x467002[_0x45fc75(0x1ed)]>=_0x30152a&&_0x467002['startIndex']<_0x4a4c49?null:_0x467002['startIndex']>=_0x4a4c49?{..._0x467002,'startIndex':_0x467002[_0x45fc75(0x1ed)]-_0x2b54b1}:_0x467002)['filter'](_0x44ae78=>_0x44ae78!=null);}function nt(_0x351ae2,_0x4a38b4,_0x16c971){return _0x351ae2==null?void 0x0:_0x351ae2['map'](_0x4c2ad9=>_0x4c2ad9['st']>=_0x4a38b4?{..._0x4c2ad9,'st':_0x4c2ad9['st']+_0x16c971,'ed':_0x4c2ad9['ed']+_0x16c971}:_0x4c2ad9['ed']>_0x4a38b4?{..._0x4c2ad9,'ed':_0x4c2ad9['ed']+_0x16c971}:_0x4c2ad9);}function R(_0x1ecf3b,_0x488d22,_0x51ada8){const _0x1fad59=_0x38ccbe;return _0x1ecf3b==null?void 0x0:_0x1ecf3b[_0x1fad59(0x1c4)](_0x49793d=>_0x2201ac(_0x49793d,_0x488d22,_0x51ada8));}function rt(_0x44a5b0,_0x4a90b2,_0xc65263){const _0x452b68=_0x38ccbe;return _0x44a5b0==null?void 0x0:_0x44a5b0[_0x452b68(0x1c4)](_0x4895e0=>_0x829088(_0x4895e0,_0x4a90b2,_0xc65263));}function z(_0x1bb3db,_0x366a36,_0x298b8e){const _0x31b596=_0x38ccbe;return _0x1bb3db==null?void 0x0:_0x1bb3db[_0x31b596(0x1c4)](_0x109406=>_0x2199d2(_0x109406,_0x366a36,_0x298b8e))[_0x31b596(0x22a)](_0x315ddf=>_0x315ddf!=null);}function it(_0x34b7ed,_0x42bb46,_0x32450d){const _0x349996=_0x38ccbe;return _0x34b7ed==null?void 0x0:_0x34b7ed[_0x349996(0x1c4)](_0x518fb3=>_0x165f7b(_0x518fb3,_0x42bb46,_0x32450d))[_0x349996(0x22a)](_0x3bda17=>_0x3bda17!=null);}const at={'id':'docs-code.command.insert-below','type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':_0x18e735=>{const _0x2bac81=_0x38ccbe;var _0x1adc8b;if(_0x33c357(G(_0x18e735)))return!0x1;let _0x4fcb24=_0x32742b(_0x18e735);if(_0x4fcb24)return _0x18e735['get'](_0xdb0750)['syncExecuteCommand'](B['id'],{'startOffset':_0x4fcb24[_0x2bac81(0x236)],'endOffset':_0x4fcb24[_0x2bac81(0x256)],'insertionMode':_0x2bac81(0x1e6),'unitId':_0x4fcb24['unitId']});let _0x3c794c=ft(_0x18e735);if(!_0x3c794c)return!0x1;let _0x4856c8=(_0x1adc8b=_0x18e735['get'](_0x5a5f70)[_0x2bac81(0x241)](_0x4b2cc7[_0x2bac81(0x1e2)]))==null?void 0x0:_0x1adc8b[_0x2bac81(0x24f)](),_0x2c1605=_0x4856c8?_0xb48c5(_0x4856c8,_0x3c794c):_0x3c794c[_0x2bac81(0x1ed)]+0x1;return _0x18e735['get'](_0xdb0750)[_0x2bac81(0x1d1)](B['id'],{'startOffset':_0x2c1605,'endOffset':_0x2c1605});}},ot={'id':'docs-code.command.consume-boundary-delete','type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':()=>!0x0},B={'id':_0x38ccbe(0x1de),'type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':(_0x287619,_0x512cd0)=>{const _0x60cebe=_0x38ccbe;let _0xf3e920=W(_0x287619,_0x512cd0==null?void 0x0:_0x512cd0[_0x60cebe(0x1cd)]);if(!_0xf3e920)return!0x1;let _0x14679c=G(_0x287619);if(_0x33c357(_0x14679c))return!0x1;let _0x539271=_0xf3e920['model'][_0x60cebe(0x213)](_0xf3e920['unitId']),_0x1da855=lt(_0x512cd0,_0x14679c),_0x60ea6f=ut(_0xf3e920[_0x60cebe(0x1f7)],_0x1da855);if(_0x60ea6f){if(_0x60ea6f[_0x60cebe(0x1eb)]!==_0x1eda82[_0x60cebe(0x233)])return!0x1;let _0x91cd40=D({'blockId':_0x60ea6f[_0x60cebe(0x208)],'documentData':_0xf3e920[_0x60cebe(0x1f7)],'metadata':_0x539271});if(!_0x91cd40)return!0x1;let _0x47c7ce=Y(_0xf3e920[_0x60cebe(0x1f3)],_0xf3e920[_0x60cebe(0x222)],_0xf3e920['unitId'],_0xf3e920['previousDocumentData'],_0x91cd40['nextDocumentData'],B['id'],_0x91cd40[_0x60cebe(0x21d)]);return _0x47c7ce&&_0x91cd40[_0x60cebe(0x22b)]&&_0xf3e920[_0x60cebe(0x254)]['deserialize'](_0xf3e920[_0x60cebe(0x1cd)],_0x91cd40['nextMetadata']),_0x47c7ce;}let _0x147853=(_0x512cd0==null?void 0x0:_0x512cd0[_0x60cebe(0x208)])??_0x58a671(0x6),_0x4ab8ad;try{_0x4ab8ad=De({'blockId':_0x147853,'config':_0x512cd0==null?void 0x0:_0x512cd0['config'],'documentData':_0xf3e920[_0x60cebe(0x1f7)],'endOffset':_0x1da855==null?void 0x0:_0x1da855[_0x60cebe(0x256)],'insertionMode':_0x512cd0==null?void 0x0:_0x512cd0[_0x60cebe(0x219)],'metadata':_0x539271,'startOffset':_0x1da855==null?void 0x0:_0x1da855[_0x60cebe(0x236)]});}catch(_0x45063c){if(_0x45063c instanceof E)return!0x1;throw _0x45063c;}let _0x375937=Y(_0xf3e920[_0x60cebe(0x1f3)],_0xf3e920[_0x60cebe(0x222)],_0xf3e920[_0x60cebe(0x1cd)],_0xf3e920[_0x60cebe(0x1f7)],_0x4ab8ad[_0x60cebe(0x240)],B['id'],_0x4ab8ad[_0x60cebe(0x21d)]);return _0x375937&&_0x4ab8ad['nextMetadata']&&_0xf3e920[_0x60cebe(0x254)][_0x60cebe(0x1d2)](_0xf3e920[_0x60cebe(0x1cd)],_0x4ab8ad[_0x60cebe(0x22b)]),_0x375937;}},st={'id':_0x38ccbe(0x21f),'type':_0x3bfa60['COMMAND'],'handler':(_0x19fb02,_0x78a5d2)=>{const _0x4f2bbe=_0x38ccbe;if(!_0x78a5d2)return!0x1;let _0x437c85=W(_0x19fb02,_0x78a5d2[_0x4f2bbe(0x1cd)]);if(!_0x437c85)return!0x1;let _0x1315ca=je({'blockId':_0x78a5d2[_0x4f2bbe(0x208)],'config':_0x78a5d2[_0x4f2bbe(0x210)],'documentData':_0x437c85[_0x4f2bbe(0x1f7)],'metadata':_0x437c85[_0x4f2bbe(0x254)][_0x4f2bbe(0x213)](_0x437c85[_0x4f2bbe(0x1cd)])});return _0x1315ca[_0x4f2bbe(0x22b)]&&_0x437c85[_0x4f2bbe(0x254)]['deserialize'](_0x437c85[_0x4f2bbe(0x1cd)],_0x1315ca[_0x4f2bbe(0x22b)]),!0x0;}},ct={'id':_0x38ccbe(0x207),'type':_0x3bfa60['COMMAND'],'handler':(_0x3316e6,_0x13be02)=>V[_0x38ccbe(0x263)](_0x3316e6,_0x13be02)},V={'id':_0x38ccbe(0x21c),'type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':(_0x3812f9,_0xcab7)=>{const _0x4f0329=_0x38ccbe;if(!_0xcab7)return!0x1;let _0x586ade=W(_0x3812f9,_0xcab7==null?void 0x0:_0xcab7['unitId']);if(!_0x586ade)return!0x1;let _0x5f24b6=D({'blockId':_0xcab7[_0x4f0329(0x208)],'documentData':_0x586ade[_0x4f0329(0x1f7)],'metadata':_0x586ade['model'][_0x4f0329(0x213)](_0x586ade[_0x4f0329(0x1cd)])});if(!_0x5f24b6)return!0x1;let _0x5b81e5=Y(_0x586ade[_0x4f0329(0x1f3)],_0x586ade[_0x4f0329(0x222)],_0x586ade[_0x4f0329(0x1cd)],_0x586ade[_0x4f0329(0x1f7)],_0x5f24b6[_0x4f0329(0x240)],V['id'],_0x5f24b6[_0x4f0329(0x21d)]);return _0x5b81e5&&_0x5f24b6['nextMetadata']&&_0x586ade[_0x4f0329(0x254)][_0x4f0329(0x1d2)](_0x586ade[_0x4f0329(0x1cd)],_0x5f24b6[_0x4f0329(0x22b)]),_0x5b81e5;}},H={'id':_0x38ccbe(0x22d),'type':_0x3bfa60['COMMAND'],'handler':(_0x48229b,_0x24792d)=>{const _0x536a94=_0x38ccbe;if(!_0x24792d)return!0x1;let _0x5e3db0=W(_0x48229b,_0x24792d==null?void 0x0:_0x24792d['unitId']);if(!_0x5e3db0)return!0x1;let _0x179eef=Me({'blockId':_0x24792d[_0x536a94(0x208)],'documentData':_0x5e3db0[_0x536a94(0x1f7)],'metadata':_0x5e3db0[_0x536a94(0x254)]['serialize'](_0x5e3db0['unitId'])});if(!_0x179eef)return!0x1;let _0x57de0f=Y(_0x5e3db0['commandService'],_0x5e3db0[_0x536a94(0x222)],_0x5e3db0['unitId'],_0x5e3db0[_0x536a94(0x1f7)],_0x179eef['nextDocumentData'],H['id'],_0x179eef[_0x536a94(0x21d)]);return _0x57de0f&&_0x179eef[_0x536a94(0x22b)]&&_0x5e3db0['model'][_0x536a94(0x1d2)](_0x5e3db0[_0x536a94(0x1cd)],_0x179eef['nextMetadata']),_0x57de0f;}},U={'id':_0x38ccbe(0x1fe),'type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':(_0x49304b,_0x556ccc)=>{const _0x286ee2=_0x38ccbe;var _0x285cfb;let _0x2fd8f3=W(_0x49304b,_0x556ccc==null?void 0x0:_0x556ccc['unitId']);if(!_0x2fd8f3)return!0x1;let _0x3d7b93=(_0x556ccc==null?void 0x0:_0x556ccc[_0x286ee2(0x21d)])??((_0x285cfb=G(_0x49304b))==null?void 0x0:_0x285cfb[_0x286ee2(0x236)]);if(_0x3d7b93==null)return!0x1;let _0x5525e3=Ne({'cursorOffset':_0x3d7b93,'documentData':_0x2fd8f3[_0x286ee2(0x1f7)],'paragraphStartIndex':_0x556ccc==null?void 0x0:_0x556ccc[_0x286ee2(0x1d4)]});return _0x5525e3?Y(_0x2fd8f3[_0x286ee2(0x1f3)],_0x2fd8f3[_0x286ee2(0x222)],_0x2fd8f3['unitId'],_0x2fd8f3['previousDocumentData'],_0x5525e3[_0x286ee2(0x240)],U['id'],_0x5525e3[_0x286ee2(0x21d)]):!0x1;}};function W(_0x58a464,_0x2bb19f){const _0x271aad=_0x38ccbe;let _0x2e8c77=_0x58a464[_0x271aad(0x1fb)](_0x5a5f70),_0x3845c9=_0x2bb19f?_0x2e8c77['getUnit'](_0x2bb19f,_0x4b2cc7[_0x271aad(0x1e2)]):_0x2e8c77[_0x271aad(0x241)](_0x4b2cc7[_0x271aad(0x1e2)]);return _0x3845c9?{'commandService':_0x58a464[_0x271aad(0x1fb)](_0xdb0750),'model':_0x58a464[_0x271aad(0x1fb)](w),'previousDocumentData':_0x3845c9[_0x271aad(0x239)](),'selectionManager':_0x58a464['get'](_0x494e3c),'unitId':_0x3845c9['getUnitId']()}:null;}function G(_0x1748ad){const _0x1cf8fa=_0x38ccbe;var _0xc84f27;return(_0xc84f27=_0x1748ad['get'](_0x494e3c)[_0x1cf8fa(0x1df)]())==null?void 0x0:_0xc84f27[0x0];}function lt(_0x48cdff,_0x23207c){const _0x24509f=_0x38ccbe;let _0x163bdf=(_0x48cdff==null?void 0x0:_0x48cdff[_0x24509f(0x236)])??(_0x23207c==null?void 0x0:_0x23207c[_0x24509f(0x236)]),_0x37f8a7=(_0x48cdff==null?void 0x0:_0x48cdff[_0x24509f(0x256)])??(_0x23207c==null?void 0x0:_0x23207c[_0x24509f(0x256)]);if(_0x163bdf!=null&&_0x37f8a7!=null)return{'endOffset':Math[_0x24509f(0x206)](_0x163bdf,_0x37f8a7),'startOffset':Math['min'](_0x163bdf,_0x37f8a7)};}function ut(_0xb23657,_0x244ea0){const _0x3d30d4=_0x38ccbe;var _0x162dab;if(!_0x244ea0)return;let _0x581a27=dt(_0x244ea0);return(_0x162dab=_0xb23657[_0x3d30d4(0x204)])==null||(_0x162dab=_0x162dab[_0x3d30d4(0x246)])==null?void 0x0:_0x162dab[_0x3d30d4(0x23e)](_0x59f79d=>{const _0x1af151=_0x3d30d4;let _0x338b59=_0x50e957(_0x59f79d);return _0x244ea0[_0x1af151(0x236)]===_0x244ea0['endOffset']?_0x295484(_0x338b59,_0x581a27):_0x1a3297(_0x338b59,_0x581a27);});}function dt(_0x3c2f7d){const _0x21d9b4=_0x38ccbe;return _0x3c2f7d['startOffset']===_0x3c2f7d['endOffset']?_0x3c2f7d['startOffset']:_0x3c2f7d[_0x21d9b4(0x236)]+0x1;}function ft(_0x596db9){const _0x1a9073=_0x38ccbe;let _0x385bef=G(_0x596db9);if(!_0x385bef)return null;let _0x2fef1a=_0x596db9['get'](_0x5a5f70)[_0x1a9073(0x241)](_0x4b2cc7[_0x1a9073(0x1e2)]),_0x3b00a7=_0x2fef1a==null?void 0x0:_0x2fef1a[_0x1a9073(0x24f)]();return _0x3b00a7?_0x499c92[_0x1a9073(0x228)]['getParagraphsInRange'](_0x385bef,_0x3b00a7[_0x1a9073(0x20a)]??[],_0x3b00a7['dataStream']??'')[0x0]??null:null;}function pt(_0x586a03,_0x11695d){const _0x3cdd48=_0x38ccbe;let _0x499a08=_0x586a03[_0x3cdd48(0x204)],_0x42c280=_0x11695d[_0x3cdd48(0x204)],_0x1c605e=_0x413f3d(_0x499a08,_0x42c280);return[_0x1c605e&&_0x42c280?mt(_0x42c280,_0x1c605e):null,_0x1c605e?null:ht(_0x499a08,_0x42c280)]['filter'](Boolean)['reduce']((_0x1202a9,_0x3c8e5c)=>_0x4fed8a['compose'](_0x1202a9,_0x3c8e5c),null);}function mt(_0x7f32b4,_0x42f502){const _0x56e9b6=_0x38ccbe;let _0x5cb12f=new _0x419f99();return _0x5cb12f['retain'](_0x42f502[_0x56e9b6(0x262)]),_0x42f502['insertLength']>0x0&&_0x5cb12f[_0x56e9b6(0x221)](_0x42f502[_0x56e9b6(0x1e1)],_0x984afb(_0x7f32b4,_0x42f502[_0x56e9b6(0x262)],_0x42f502['start']+_0x42f502[_0x56e9b6(0x1e1)],!0x1)),_0x42f502[_0x56e9b6(0x225)]>0x0&&_0x5cb12f['delete'](_0x42f502['deleteLength']),_0x4fed8a[_0x56e9b6(0x25a)]()[_0x56e9b6(0x25e)](_0x5cb12f[_0x56e9b6(0x213)](),[_0x56e9b6(0x204)]);}function ht(_0x4bdb33,_0x3548c1){const _0x5215aa=_0x38ccbe;let _0x26b605=[],_0xe10693=_0x4bdb33?_t(_0x4bdb33):void 0x0,_0x32d4a4=_0x3548c1?_t(_0x3548c1):void 0x0;for(let _0x644a00 of gt)K(_0x4fed8a[_0x5215aa(0x25a)](),[_0x5215aa(0x204),_0x644a00],_0xe10693==null?void 0x0:_0xe10693[_0x644a00],_0x32d4a4==null?void 0x0:_0x32d4a4[_0x644a00],_0x26b605);return _0x26b605['reduce']((_0xc27d44,_0x3ed565)=>_0x4fed8a['compose'](_0xc27d44,_0x3ed565),null);}const gt=[_0x38ccbe(0x20a),_0x38ccbe(0x244),'tables',_0x38ccbe(0x265),_0x38ccbe(0x246),'customBlocks','customRanges','customDecorations','textRuns'];function _t(_0x4c0665){return _0x4c0665;}function K(_0x33a683,_0x5e46c2,_0x336cfc,_0x141c1d,_0x108931){const _0x4bff14=_0x38ccbe;J(_0x336cfc,_0x141c1d)||(_0x336cfc==null?_0x108931[_0x4bff14(0x255)](_0x33a683[_0x4bff14(0x247)](_0x5e46c2,_0x141c1d)):_0x141c1d==null?_0x108931['push'](_0x33a683[_0x4bff14(0x248)](_0x5e46c2,_0x336cfc)):Array[_0x4bff14(0x24d)](_0x336cfc)&&Array[_0x4bff14(0x24d)](_0x141c1d)?vt(_0x33a683,_0x5e46c2,_0x336cfc,_0x141c1d,_0x108931):q(_0x336cfc)&&q(_0x141c1d)?new Set([...Object[_0x4bff14(0x1fc)](_0x336cfc),...Object[_0x4bff14(0x1fc)](_0x141c1d)])[_0x4bff14(0x203)](_0x297ae0=>{K(_0x33a683,[..._0x5e46c2,_0x297ae0],_0x336cfc[_0x297ae0],_0x141c1d[_0x297ae0],_0x108931);}):_0x108931[_0x4bff14(0x255)](_0x33a683[_0x4bff14(0x234)](_0x5e46c2,_0x336cfc,_0x141c1d)));}function vt(_0x5ad7c3,_0x2a23f4,_0x2e1819,_0x1b6803,_0x2adef8){const _0x137d34=_0x38ccbe;if(_0x2e1819[_0x137d34(0x238)]===_0x1b6803[_0x137d34(0x238)]){_0x2e1819['forEach']((_0x20fcad,_0x2469f5)=>K(_0x5ad7c3,[..._0x2a23f4,_0x2469f5],_0x20fcad,_0x1b6803[_0x2469f5],_0x2adef8));return;}let _0x25ff02=0x0;for(;_0x25ff02<_0x2e1819[_0x137d34(0x238)]&&_0x25ff02<_0x1b6803[_0x137d34(0x238)]&&J(_0x2e1819[_0x25ff02],_0x1b6803[_0x25ff02]);)_0x25ff02++;let _0x127481=_0x2e1819[_0x137d34(0x238)]-0x1,_0x4ed762=_0x1b6803[_0x137d34(0x238)]-0x1;for(;_0x127481>=_0x25ff02&&_0x4ed762>=_0x25ff02&&J(_0x2e1819[_0x127481],_0x1b6803[_0x4ed762]);)_0x127481--,_0x4ed762--;for(let _0xf8c742=_0x127481;_0xf8c742>=_0x25ff02;_0xf8c742--)_0x2adef8[_0x137d34(0x255)](_0x5ad7c3[_0x137d34(0x248)]([..._0x2a23f4,_0xf8c742],_0x2e1819[_0xf8c742]));for(let _0x4e39f9=_0x25ff02;_0x4e39f9<=_0x4ed762;_0x4e39f9++)_0x2adef8[_0x137d34(0x255)](_0x5ad7c3['insertOp']([..._0x2a23f4,_0x4e39f9],_0x1b6803[_0x4e39f9]));}function q(_0x4ba71a){const _0x1360e7=_0x38ccbe;return typeof _0x4ba71a==_0x1360e7(0x243)&&!!_0x4ba71a&&!Array['isArray'](_0x4ba71a);}function J(_0x1f70b3,_0x297d02){const _0x4b45ed=_0x38ccbe;return JSON['stringify'](_0x1f70b3)===JSON[_0x4b45ed(0x214)](_0x297d02);}function Y(_0x4486bf,_0x18c556,_0x14db3b,_0x3ecfe4,_0x501e21,_0x49df3f,_0x5441fc){const _0x11f761=_0x38ccbe;let _0x405697=pt(_0x3ecfe4,_0x501e21);return _0x405697?!!_0x4486bf[_0x11f761(0x1d1)](_0x36892e['id'],{'unitId':_0x14db3b,'actions':_0x405697,'textRanges':[{'startOffset':_0x5441fc,'endOffset':_0x5441fc,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x49df3f}):(_0x18c556[_0x11f761(0x230)]([{'startOffset':_0x5441fc,'endOffset':_0x5441fc}],{'unitId':_0x14db3b,'subUnitId':_0x14db3b},!0x1),!0x0);}const X=_0x38ccbe(0x266);var yt='@univerjs-pro/docs-code',bt=_0x38ccbe(0x1f4);const xt={};function Z(_0x3041bf,_0x5bfaa6){return function(_0x5a5d38,_0x4984ad){_0x5bfaa6(_0x5a5d38,_0x4984ad,_0x3041bf);};}function St(_0x3b705c,_0x27fc12,_0x3493ad,_0xe1d964){const _0x50afa4=_0x38ccbe;var _0xacf078=arguments[_0x50afa4(0x238)],_0x18f88b=_0xacf078<0x3?_0x27fc12:_0xe1d964===null?_0xe1d964=Object[_0x50afa4(0x25f)](_0x27fc12,_0x3493ad):_0xe1d964,_0x34c9cc;if(typeof Reflect==_0x50afa4(0x243)&&typeof Reflect[_0x50afa4(0x1e5)]=='function')_0x18f88b=Reflect[_0x50afa4(0x1e5)](_0x3b705c,_0x27fc12,_0x3493ad,_0xe1d964);else{for(var _0x159c7e=_0x3b705c[_0x50afa4(0x238)]-0x1;_0x159c7e>=0x0;_0x159c7e--)(_0x34c9cc=_0x3b705c[_0x159c7e])&&(_0x18f88b=(_0xacf078<0x3?_0x34c9cc(_0x18f88b):_0xacf078>0x3?_0x34c9cc(_0x27fc12,_0x3493ad,_0x18f88b):_0x34c9cc(_0x27fc12,_0x3493ad))||_0x18f88b);}return _0xacf078>0x3&&_0x18f88b&&Object[_0x50afa4(0x20f)](_0x27fc12,_0x3493ad,_0x18f88b),_0x18f88b;}let Q=class extends _0x57fd06{constructor(_0x21b8f1,_0x17b77d){const _0xfd98ea=_0x38ccbe;super(),this['_resourceManagerService']=_0x21b8f1,this[_0xfd98ea(0x224)]=_0x17b77d,this[_0xfd98ea(0x1cc)]();}['_initResource'](){const _0x49c2f1=_0x38ccbe;this[_0x49c2f1(0x1f5)](this[_0x49c2f1(0x217)][_0x49c2f1(0x229)]({'pluginName':X,'businesses':[_0x4b2cc7[_0x49c2f1(0x1e2)]],'toJson':_0x568ad6=>JSON[_0x49c2f1(0x214)](this[_0x49c2f1(0x224)][_0x49c2f1(0x213)](_0x568ad6)),'parseJson':_0x3f38be=>y(JSON[_0x49c2f1(0x1e0)](_0x3f38be)),'onLoad':(_0x23b19c,_0x53bd41)=>this[_0x49c2f1(0x224)][_0x49c2f1(0x1d2)](_0x23b19c,_0x53bd41),'onUnLoad':_0x54848d=>this[_0x49c2f1(0x224)][_0x49c2f1(0x260)](_0x54848d)}));}};Q=St([Z(0x0,_0x240e67),Z(0x1,_0x721b34(w))],Q);let $=class extends _0x306d08{constructor(_0x402f77=xt,_0x532549,_0x2d4164,_0x30b061){const _0x342aaf=_0x38ccbe;super(),this[_0x342aaf(0x1e3)]=_0x402f77,this[_0x342aaf(0x25c)]=_0x532549,this[_0x342aaf(0x1db)]=_0x2d4164,this[_0x342aaf(0x1d7)]=_0x30b061;let {..._0x217f10}=_0x508a50({},xt,this['_config']);this[_0x342aaf(0x1d7)][_0x342aaf(0x242)](_0x342aaf(0x24b),_0x217f10);}[_0x38ccbe(0x1ec)](){const _0x4937e2=_0x38ccbe;this['_injector'][_0x4937e2(0x232)]([w]),this[_0x4937e2(0x25c)][_0x4937e2(0x232)]([Q]),this[_0x4937e2(0x25c)][_0x4937e2(0x1fb)](w),this['_injector'][_0x4937e2(0x1fb)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x4937e2(0x203)](_0x2cae77=>this[_0x4937e2(0x1f5)](this[_0x4937e2(0x1db)][_0x4937e2(0x212)](_0x2cae77)));}};C($,_0x38ccbe(0x1d0),X),C($,_0x38ccbe(0x21b),yt),C($,'version',bt),C($,'type',_0x4b2cc7['UNIVER_DOC']),$=St([_0x396b79(_0x2122b7,_0x35d67d),Z(0x1,_0x721b34(_0x468616)),Z(0x2,_0xdb0750),Z(0x3,_0xbac78a)],$);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 _0x4278ec=_0x57e9;(function(_0x5eb901,_0x20fe75){const _0x230bba=_0x57e9,_0x50a2f6=_0x5eb901();while(!![]){try{const _0x48f18c=parseInt(_0x230bba(0x10f))/0x1*(parseInt(_0x230bba(0x108))/0x2)+parseInt(_0x230bba(0x120))/0x3*(-parseInt(_0x230bba(0x90))/0x4)+parseInt(_0x230bba(0xf6))/0x5*(parseInt(_0x230bba(0xd1))/0x6)+-parseInt(_0x230bba(0xcb))/0x7*(-parseInt(_0x230bba(0xec))/0x8)+parseInt(_0x230bba(0x9a))/0x9+-parseInt(_0x230bba(0xb8))/0xa*(parseInt(_0x230bba(0x102))/0xb)+-parseInt(_0x230bba(0x12d))/0xc*(parseInt(_0x230bba(0xe0))/0xd);if(_0x48f18c===_0x20fe75)break;else _0x50a2f6['push'](_0x50a2f6['shift']());}catch(_0x40a7cb){_0x50a2f6['push'](_0x50a2f6['shift']());}}}(_0x1bbf,0x459a3));import{BooleanNumber as _0x4f8efa,BuildTextUtils as _0x20804f,CommandType as _0x45294c,DataStreamTreeTokenType as _0x9c6192,DependentOn as _0x85efd,Disposable as _0x1ccbbc,DocumentBlockRangeType as _0xac67e3,ICommandService as _0x1a34c1,IConfigService as _0x48b9b0,IResourceManagerService as _0x134f76,IUniverInstanceService as _0x2fe26f,Inject as _0x2b0865,Injector as _0x650f9e,JSONX as _0xa0927a,Plugin as _0x25c4b9,TextX as _0xaed83f,UniverInstanceType as _0x30a10b,containsInteriorInsertionOffset as _0x27820e,containsStreamIndex as _0x42e0ef,createParagraphId as _0x533df7,generateRandomId as _0x5a5615,getBlockRangeInterval as _0x49707a,getBodySliceForTextXAction as _0x285f89,getParagraphContentStartOffset as _0x2c079f,getParagraphContentStartOffsets as _0x252574,getParagraphFollowingBlockOffset as _0x3f9e16,getSingleDataStreamChange as _0x460607,intersectsOperationalIntervals as _0x575561,merge as _0x374a9d,shiftExclusiveRangeOnDelete as _0x345255,shiftExclusiveRangeOnInsert as _0x1e6f2b,shiftInclusiveRangeOnDelete as _0x31e1ac,shiftInclusiveRangeOnInsert as _0x1bfd00}from'@univerjs/core';import{Subject as _0x153d32}from'rxjs';import{DocSelectionManagerService as _0x1e01f3,RichTextEditingMutation as _0x31ecbf,UniverDocsPlugin as _0x1e99e0,getContentInsertRange as _0x312935,isHeaderFooterSelection as _0x129d5b}from'@univerjs/docs';import{UniverLicensePlugin as _0x509979}from'@univerjs-pro/license';const Se={'language':_0x4278ec(0xf0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x5ab11d){return{...Se,..._0x5ab11d};}function y(_0x25d486){const _0x24d0a5=_0x4278ec;let _0x637a2=(_0x25d486==null?void 0x0:_0x25d486[_0x24d0a5(0x131)])??{};return{'codes':Object[_0x24d0a5(0xe8)](Object['entries'](_0x637a2)['map'](([_0x59d4fa,_0x297de4])=>[_0x59d4fa,v(_0x297de4)]))};}function b(_0x13afda,_0x4759a3,_0x3b1579){const _0x1765d3=_0x4278ec;let _0x2ccb3f=y(_0x13afda);return _0x2ccb3f[_0x1765d3(0x131)][_0x4759a3]=v({..._0x2ccb3f[_0x1765d3(0x131)][_0x4759a3],..._0x3b1579}),_0x2ccb3f;}function x(_0x28559a,_0x4ad6cc){let _0x389c92=y(_0x28559a);return delete _0x389c92['codes'][_0x4ad6cc],_0x389c92;}function S(_0x7a3fda){'@babel/helpers - typeof';const _0x25854f=_0x4278ec;return S=typeof Symbol=='function'&&typeof Symbol[_0x25854f(0xf2)]==_0x25854f(0xfd)?function(_0x495a08){return typeof _0x495a08;}:function(_0x275985){const _0x49fb8c=_0x25854f;return _0x275985&&typeof Symbol==_0x49fb8c(0x110)&&_0x275985[_0x49fb8c(0x118)]===Symbol&&_0x275985!==Symbol[_0x49fb8c(0xad)]?_0x49fb8c(0xfd):typeof _0x275985;},S(_0x7a3fda);}function Ce(_0x541168,_0x42e574){const _0x4f09fb=_0x4278ec;if(S(_0x541168)!=_0x4f09fb(0xfc)||!_0x541168)return _0x541168;var _0x59b222=_0x541168[Symbol[_0x4f09fb(0x104)]];if(_0x59b222!==void 0x0){var _0x4b6147=_0x59b222[_0x4f09fb(0x12f)](_0x541168,_0x42e574||_0x4f09fb(0xef));if(S(_0x4b6147)!=_0x4f09fb(0xfc))return _0x4b6147;throw TypeError(_0x4f09fb(0xa6));}return(_0x42e574===_0x4f09fb(0xb4)?String:Number)(_0x541168);}function we(_0x18759f){const _0x20767f=_0x4278ec;var _0x50acb2=Ce(_0x18759f,_0x20767f(0xb4));return S(_0x50acb2)==_0x20767f(0xfd)?_0x50acb2:_0x50acb2+'';}function C(_0x39820f,_0x34e195,_0x33b0e3){const _0x4b2f16=_0x4278ec;return(_0x34e195=we(_0x34e195))in _0x39820f?Object[_0x4b2f16(0xc7)](_0x39820f,_0x34e195,{'value':_0x33b0e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39820f[_0x34e195]=_0x33b0e3,_0x39820f;}var w=class extends _0x1ccbbc{constructor(..._0x40e67f){const _0x1fee74=_0x4278ec;super(..._0x40e67f),C(this,_0x1fee74(0xbc),new Map()),C(this,'_change$',new _0x153d32()),C(this,_0x1fee74(0xd9),this[_0x1fee74(0x9d)][_0x1fee74(0xd0)]());}['getCodeConfig'](_0x263c57,_0x55d991){const _0x23407f=_0x4278ec;return y(this['_resources'][_0x23407f(0x135)](_0x263c57))[_0x23407f(0x131)][_0x55d991];}['setCodeConfig'](_0x2ffd75,_0x5bffca,_0x47f2fc){const _0x3b1a9c=_0x4278ec;this[_0x3b1a9c(0x9e)](_0x2ffd75,_0x5bffca,b(this[_0x3b1a9c(0xbc)][_0x3b1a9c(0x135)](_0x2ffd75),_0x5bffca,_0x47f2fc));}[_0x4278ec(0x109)](_0x4df8e7,_0x145cbc){const _0xb6fd43=_0x4278ec;this[_0xb6fd43(0x9e)](_0x4df8e7,_0x145cbc,x(this['_resources'][_0xb6fd43(0x135)](_0x4df8e7),_0x145cbc));}[_0x4278ec(0xba)](_0x21186c){const _0x444438=_0x4278ec;return y(this[_0x444438(0xbc)][_0x444438(0x135)](_0x21186c));}['deserialize'](_0x1bd1ce,_0x520467){const _0x31036a=_0x4278ec;this[_0x31036a(0xbc)][_0x31036a(0xca)](_0x1bd1ce,y(_0x520467)),this[_0x31036a(0x9d)][_0x31036a(0xb2)]({'unitId':_0x1bd1ce});}['removeUnit'](_0x3a5734){const _0x25c212=_0x4278ec;this[_0x25c212(0xbc)]['delete'](_0x3a5734),this['_change$'][_0x25c212(0xb2)]({'unitId':_0x3a5734});}[_0x4278ec(0x115)](){const _0x5b1558=_0x4278ec;super[_0x5b1558(0x115)](),this[_0x5b1558(0xbc)][_0x5b1558(0xd3)](),this[_0x5b1558(0x9d)][_0x5b1558(0x97)]();}[_0x4278ec(0x9e)](_0x330815,_0x557e9b,_0x51adf5){const _0x23deb2=_0x4278ec;this[_0x23deb2(0xbc)][_0x23deb2(0xca)](_0x330815,_0x51adf5),this[_0x23deb2(0x9d)][_0x23deb2(0xb2)]({'unitId':_0x330815,'blockId':_0x557e9b});}};const Te={'id':'docs-code.mutation.set-config','type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x57a2a7,_0x2397dd)=>!(_0x2397dd!=null&&_0x2397dd[_0x4278ec(0xdb)])||!_0x2397dd['blockId']?!0x1:(_0x57a2a7[_0x4278ec(0x135)](w)[_0x4278ec(0xeb)](_0x2397dd[_0x4278ec(0xdb)],_0x2397dd[_0x4278ec(0xbe)],_0x2397dd[_0x4278ec(0xf5)]),!0x0)},T={'id':_0x4278ec(0xab),'type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x6153d9,_0x1427ab)=>!(_0x1427ab!=null&&_0x1427ab['unitId'])||!_0x1427ab[_0x4278ec(0xbe)]?!0x1:(_0x6153d9[_0x4278ec(0x135)](w)['removeCode'](_0x1427ab[_0x4278ec(0xdb)],_0x1427ab[_0x4278ec(0xbe)]),!0x0)},Ee=_0x4278ec(0x10e);var E=class extends Error{constructor(_0x3910da=_0x4278ec(0xf7)){super(_0x3910da);}};function De(_0x5768e2){const _0x3ab8cf=_0x4278ec;var _0x5b2680;let _0x385293=O(_0x5768e2[_0x3ab8cf(0xe4)]),_0x5c407c=A(_0x385293),_0x4c1823=ke(_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2[_0x3ab8cf(0xb3)]),_0x4eecfd=_0x4c1823?(_0x5b2680=_0x5c407c['blockRanges'])==null?void 0x0:_0x5b2680[_0x3ab8cf(0x13a)](_0x5c0d7f=>{const _0x1cfc48=_0x3ab8cf;let _0x2458c1=_0x49707a(_0x5c0d7f);return _0x2458c1[_0x1cfc48(0x129)]===_0x4c1823['startOffset']&&_0x2458c1[_0x1cfc48(0xb3)]===_0x4c1823[_0x1cfc48(0xb3)];}):void 0x0,{startOffset:_0x174cd2,endOffset:_0x7e7aa5}=_0x4eecfd?_0x4c1823:We(_0x5c407c,_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2['endOffset'],_0x5768e2[_0x3ab8cf(0xdf)]);if(!_0x4eecfd&&Ae(_0x5c407c,_0x174cd2,_0x7e7aa5))throw new E(_0x3ab8cf(0xa8));let _0x148c75=qe(_0x5c407c,_0x174cd2,_0x7e7aa5),_0x309cb8=(_0x4eecfd==null?void 0x0:_0x4eecfd['blockId'])??_0x5768e2['blockId'],_0x127ca3=b(_0x5768e2[_0x3ab8cf(0x95)],_0x309cb8,{...Se,..._0x5768e2[_0x3ab8cf(0xf5)]});if(_0x4eecfd)return _0x4eecfd[_0x3ab8cf(0xa1)]=_0xac67e3[_0x3ab8cf(0xa7)],Oe(_0x5c407c,_0x174cd2,_0x7e7aa5),ze(_0x5c407c,_0x174cd2,_0x7e7aa5,_0x148c75),N(_0x5c407c,_0x4eecfd),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};if(_0x174cd2===_0x7e7aa5){var _0xb545db,_0x3d3c75;let _0x17549d=''+_0x9c6192['BLOCK_START']+_0x9c6192['PARAGRAPH']+_0x9c6192[_0x3ab8cf(0xd7)];P(_0x5c407c,_0x174cd2,_0x17549d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x533df7(new Set((_0xb545db=_0x5c407c[_0x3ab8cf(0x114)])==null?void 0x0:_0xb545db['map'](_0xa0ec52=>_0xa0ec52[_0x3ab8cf(0x134)]))),'paragraphStyle':Re(!0x0,!0x0,_0x148c75)}],'blockRanges':[{'blockId':_0x309cb8,'blockType':_0xac67e3[_0x3ab8cf(0xa7)],'startIndex':0x0,'endIndex':_0x17549d[_0x3ab8cf(0xee)]-0x1}]});let _0x2418c1=(_0x3d3c75=_0x5c407c['blockRanges'])==null?void 0x0:_0x3d3c75['find'](_0x10c901=>_0x10c901[_0x3ab8cf(0xbe)]===_0x309cb8);return _0x2418c1&&N(_0x5c407c,_0x2418c1),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}P(_0x5c407c,_0x7e7aa5,_0x9c6192['BLOCK_END']),P(_0x5c407c,_0x174cd2,_0x9c6192[_0x3ab8cf(0xde)]),ze(_0x5c407c,_0x174cd2,_0x7e7aa5+0x1,_0x148c75);let _0x251cb8={'blockId':_0x309cb8,'blockType':_0xac67e3['CODE'],'startIndex':_0x174cd2,'endIndex':_0x7e7aa5+0x1};return _0x5c407c[_0x3ab8cf(0x12e)]=[..._0x5c407c['blockRanges']??[],_0x251cb8]['sort']((_0xdde982,_0x5b39bd)=>_0xdde982[_0x3ab8cf(0x11e)]-_0x5b39bd[_0x3ab8cf(0x11e)]),N(_0x5c407c,_0x251cb8),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}function Oe(_0x1a5fb6,_0x43e243,_0x415605){const _0x285677=_0x4278ec;(_0x1a5fb6['paragraphs']??[])[_0x285677(0xd2)](_0x242975=>_0x242975[_0x285677(0x11e)]>_0x43e243&&_0x242975[_0x285677(0x11e)]<_0x415605)['forEach'](_0x37572c=>{const _0x193020=_0x285677;let _0x164a09={..._0x37572c['paragraphStyle']??{}};delete _0x164a09['spaceAbove'],delete _0x164a09['spaceBelow'],_0x37572c[_0x193020(0xff)]=_0x164a09;});}function ke(_0x56e8fa,_0x3b2f1f){const _0xc984d8=_0x4278ec;return _0x56e8fa==null||_0x3b2f1f==null||_0x56e8fa===_0x3b2f1f?null:{'startOffset':Math['min'](_0x56e8fa,_0x3b2f1f),'endOffset':Math[_0xc984d8(0xc8)](_0x56e8fa,_0x3b2f1f)};}function Ae(_0x333ea3,_0x3b7d41,_0x44e583){const _0x2f0c23=_0x4278ec;return(_0x333ea3[_0x2f0c23(0x12e)]??[])[_0x2f0c23(0xa4)](_0x231356=>{let _0x4b6582=_0x49707a(_0x231356);return _0x3b7d41===_0x44e583?_0x27820e(_0x4b6582,_0x3b7d41):_0x575561(_0x4b6582,{'startOffset':_0x3b7d41,'endOffset':_0x44e583});});}function je(_0x5c5225){const _0x18f327=_0x4278ec;return{'nextDocumentData':O(_0x5c5225[_0x18f327(0xe4)]),'nextMetadata':b(_0x5c5225[_0x18f327(0x95)],_0x5c5225['blockId'],_0x5c5225[_0x18f327(0xf5)]),'cursorOffset':0x0};}function D(_0x5171b0){const _0x2aa84a=_0x4278ec;let _0x40cf8e=O(_0x5171b0[_0x2aa84a(0xe4)]),_0x34b88b=A(_0x40cf8e),_0x505ba9=Fe(_0x34b88b,_0x5171b0['blockId']);if(!_0x505ba9)return null;let _0x192333=He(_0x34b88b,_0x505ba9);return{'nextDocumentData':_0x40cf8e,'nextMetadata':x(_0x5171b0[_0x2aa84a(0x95)],_0x5171b0[_0x2aa84a(0xbe)]),'cursorOffset':_0x192333};}function Me(_0x51070a){const _0x392db3=_0x4278ec;var _0x2de64f;let _0x2174f6=O(_0x51070a[_0x392db3(0xe4)]),_0x1afde4=A(_0x2174f6),_0x55f632=Fe(_0x1afde4,_0x51070a[_0x392db3(0xbe)]);if(!_0x55f632)return null;let _0x3c1a86=_0x49707a(_0x55f632);return F(_0x1afde4,_0x3c1a86[_0x392db3(0x129)],_0x3c1a86['endOffset']),_0x1afde4[_0x392db3(0x12e)]=(_0x2de64f=_0x1afde4[_0x392db3(0x12e)])==null?void 0x0:_0x2de64f['filter'](_0x9bc0c=>_0x9bc0c[_0x392db3(0xbe)]!==_0x51070a[_0x392db3(0xbe)]),{'nextDocumentData':_0x2174f6,'nextMetadata':x(_0x51070a['metadata'],_0x51070a['blockId']),'cursorOffset':_0x55f632[_0x392db3(0x11e)]};}function Ne(_0x17c178){const _0xd1bd5a=_0x4278ec;let _0x5af1c9=O(_0x17c178['documentData']),_0x4280ee=A(_0x5af1c9),_0x26563f=Le(_0x4280ee,_0x17c178[_0xd1bd5a(0x128)]);return _0x26563f&&Pe(_0x5af1c9,_0x4280ee,_0x26563f,_0x17c178[_0xd1bd5a(0x128)],_0x17c178[_0xd1bd5a(0xe1)])||null;}function Pe(_0x6dfeef,_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d){const _0x5c4782=_0x4278ec;let _0x274a63=$e(_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d);if(!_0x274a63)return null;let _0x56a1f8=_0x274a63[_0x5c4782(0x12c)]-0x1;return F(_0x5cf591,_0x274a63['paragraph']['startIndex'],_0x274a63['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x6dfeef,'cursorOffset':_0x56a1f8};}function Fe(_0x2b94ca,_0xe19299){const _0xb92379=_0x4278ec;var _0x5d86f3;return _0x2b94ca==null||(_0x5d86f3=_0x2b94ca[_0xb92379(0x12e)])==null?void 0x0:_0x5d86f3[_0xb92379(0x13a)](_0x9070aa=>_0x9070aa[_0xb92379(0xa1)]===_0xac67e3[_0xb92379(0xa7)]&&_0x9070aa[_0xb92379(0xbe)]===_0xe19299);}function Ie(_0x14067c){const _0xcf7096=_0x4278ec;let _0x44efd2=_0x14067c[_0xcf7096(0xe4)]['body'];if(!_0x44efd2)return!0x1;let _0x184e2e=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xd5)?_0x14067c[_0xcf7096(0x128)]-0x1:_0x14067c[_0xcf7096(0x128)],_0x5d9fd3=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xac)?_0x14067c[_0xcf7096(0x128)]+0x1:_0x184e2e;return(_0x44efd2[_0xcf7096(0x12e)]??[])['some'](_0x3f6203=>_0x3f6203[_0xcf7096(0xa1)]===_0xac67e3[_0xcf7096(0xa7)]?_0x184e2e===_0x3f6203['startIndex']||_0x184e2e===_0x3f6203[_0xcf7096(0xf4)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0x11e)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0xf4)]:!0x1);}function Le(_0x5df646,_0x3db6f0){const _0x504bc4=_0x4278ec;var _0x48f6d0;return(_0x48f6d0=_0x5df646['blockRanges'])==null?void 0x0:_0x48f6d0[_0x504bc4(0x13a)](_0x14330b=>{const _0x48c594=_0x504bc4;let _0x5b29af=M(_0x14330b);return _0x14330b[_0x48c594(0xa1)]===_0xac67e3[_0x48c594(0xa7)]&&_0x14330b['startIndex']<=_0x3db6f0&&_0x3db6f0<=_0x5b29af+0x2;});}function Re(_0x506a7b,_0x584177,_0x186290=!0x1){const _0x333324=_0x4278ec;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x4f8efa[_0x333324(0xb6)],'keepNext':_0x584177?_0x4f8efa[_0x333324(0xae)]:_0x4f8efa[_0x333324(0xb6)],'widowControl':_0x4f8efa[_0x333324(0xb6)],..._0x506a7b&&_0x186290?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x780c84,_0x506553,_0x4460e1,_0x2dd2cb=!0x1){const _0x4ae25f=_0x4278ec;let _0x7d349c=(_0x780c84[_0x4ae25f(0x114)]??[])[_0x4ae25f(0xd2)](_0x989f18=>_0x989f18[_0x4ae25f(0x11e)]>_0x506553&&_0x989f18['startIndex']<_0x4460e1);_0x7d349c[_0x4ae25f(0xb9)]((_0x36c554,_0x3ff6a2)=>{const _0x859df4=_0x4ae25f;_0x36c554[_0x859df4(0xff)]={..._0x36c554['paragraphStyle']??{},...Re(_0x3ff6a2===0x0,_0x3ff6a2===_0x7d349c[_0x859df4(0xee)]-0x1,_0x2dd2cb)};});}function Be(_0x17b32d){const _0x33c996=_0x4278ec;var _0x3ff0a3,_0xca9892;let _0xaf8659={..._0x17b32d??{}};return delete _0xaf8659[_0x33c996(0x111)],delete _0xaf8659[_0x33c996(0xce)],delete _0xaf8659[_0x33c996(0x119)],delete _0xaf8659[_0x33c996(0x105)],delete _0xaf8659[_0x33c996(0xa2)],delete _0xaf8659['keepNext'],delete _0xaf8659['widowControl'],((_0x3ff0a3=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0x3ff0a3['ff'])===Ee&&((_0xca9892=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0xca9892['fs'])===0xc&&delete _0xaf8659[_0x33c996(0xe7)],_0xaf8659;}function Ve(_0x3bc1ae,_0x100579){const _0x51a840=_0x4278ec;let _0x903092=M(_0x100579);return(_0x3bc1ae[_0x51a840(0x114)]??[])[_0x51a840(0xd2)](_0x2c18ad=>_0x2c18ad['startIndex']>_0x100579[_0x51a840(0x11e)]&&_0x2c18ad[_0x51a840(0x11e)]<_0x903092);}function He(_0x13e21f,_0x2943a0){const _0xc7b520=_0x4278ec;var _0x4e17cc;let _0x522543=M(_0x2943a0);return Ve(_0x13e21f,_0x2943a0)[_0xc7b520(0xb9)](_0x4ba7e7=>{const _0xc65aee=_0xc7b520;_0x4ba7e7['paragraphStyle']=Be(_0x4ba7e7[_0xc65aee(0xff)]);}),F(_0x13e21f,_0x522543,_0x522543+0x1),F(_0x13e21f,_0x2943a0[_0xc7b520(0x11e)],_0x2943a0[_0xc7b520(0x11e)]+0x1),_0x13e21f[_0xc7b520(0x12e)]=(_0x4e17cc=_0x13e21f[_0xc7b520(0x12e)])==null?void 0x0:_0x4e17cc[_0xc7b520(0xd2)](_0x19c450=>_0x19c450['blockId']!==_0x2943a0[_0xc7b520(0xbe)]),_0x2943a0[_0xc7b520(0x11e)];}function O(_0x4d861a){const _0x26c47c=_0x4278ec;return{..._0x4d861a,'body':_0x4d861a['body']?Ue(_0x4d861a[_0x26c47c(0x133)]):_0x4d861a[_0x26c47c(0x133)]};}function Ue(_0x7df0d4){const _0xf877d9=_0x4278ec;var _0x3b3d43,_0x31d4d4,_0x4756b9,_0x26c2e8,_0x27d7a5,_0x40625f,_0x55dfb3,_0x29bf82,_0x255108;return{..._0x7df0d4,'paragraphs':(_0x3b3d43=_0x7df0d4[_0xf877d9(0x114)])==null?void 0x0:_0x3b3d43[_0xf877d9(0xd6)](_0x322a07=>({..._0x322a07,'bullet':k(_0x322a07[_0xf877d9(0xb0)]),'paragraphStyle':k(_0x322a07[_0xf877d9(0xff)])})),'sectionBreaks':(_0x31d4d4=_0x7df0d4[_0xf877d9(0xa9)])==null?void 0x0:_0x31d4d4['map'](_0x335fa2=>({..._0x335fa2})),'textRuns':(_0x4756b9=_0x7df0d4[_0xf877d9(0xdc)])==null?void 0x0:_0x4756b9[_0xf877d9(0xd6)](_0x2cbecc=>({..._0x2cbecc})),'tables':(_0x26c2e8=_0x7df0d4['tables'])==null?void 0x0:_0x26c2e8[_0xf877d9(0xd6)](_0x2a1856=>({..._0x2a1856})),'columnGroups':(_0x27d7a5=_0x7df0d4[_0xf877d9(0xe5)])==null?void 0x0:_0x27d7a5[_0xf877d9(0xd6)](_0x2d7ee7=>{const _0x562567=_0xf877d9;var _0x3ec770;return{..._0x2d7ee7,'columns':(_0x3ec770=_0x2d7ee7[_0x562567(0x103)])==null?void 0x0:_0x3ec770['map'](_0x109882=>k(_0x109882))};}),'blockRanges':(_0x40625f=_0x7df0d4[_0xf877d9(0x12e)])==null?void 0x0:_0x40625f[_0xf877d9(0xd6)](_0x566ea8=>({..._0x566ea8})),'customRanges':(_0x55dfb3=_0x7df0d4[_0xf877d9(0xf9)])==null?void 0x0:_0x55dfb3['map'](_0x6135d3=>({..._0x6135d3})),'customDecorations':(_0x29bf82=_0x7df0d4[_0xf877d9(0x137)])==null?void 0x0:_0x29bf82[_0xf877d9(0xd6)](_0x406b97=>({..._0x406b97})),'customBlocks':(_0x255108=_0x7df0d4[_0xf877d9(0xed)])==null?void 0x0:_0x255108[_0xf877d9(0xd6)](_0x514e37=>({..._0x514e37}))};}function k(_0x3a2043){const _0x121e16=_0x4278ec;return Array[_0x121e16(0x13b)](_0x3a2043)?_0x3a2043[_0x121e16(0xd6)](_0xc21281=>k(_0xc21281)):!_0x3a2043||typeof _0x3a2043!=_0x121e16(0xfc)?_0x3a2043:Object[_0x121e16(0xe8)](Object[_0x121e16(0x127)](_0x3a2043)[_0x121e16(0xd6)](([_0x5f2a9f,_0x5a5330])=>[_0x5f2a9f,k(_0x5a5330)]));}function A(_0x3a0919){const _0x5efd6b=_0x4278ec;if(!_0x3a0919[_0x5efd6b(0x133)])throw Error(_0x5efd6b(0x113));return _0x3a0919[_0x5efd6b(0x133)];}function We(_0x3c637a,_0x1d7cf6,_0x2cc790,_0x30a9e4='convert-paragraph'){if(_0x1d7cf6==null||_0x2cc790==null){let _0x539f0f=Ke(_0x3c637a);return{'startOffset':_0x539f0f,'endOffset':_0x539f0f};}let _0x498904=Math['min'](_0x1d7cf6,_0x2cc790),_0x15d2c5=Math['max'](_0x1d7cf6,_0x2cc790),_0x3825c3=Ze(_0x3c637a,_0x498904,_0x15d2c5);return _0x498904===_0x15d2c5?_0x30a9e4==='insert-new'?{'startOffset':_0x498904,'endOffset':_0x15d2c5}:Ge(_0x3c637a,_0x498904,_0x3825c3):Je(_0x3c637a,_0x498904,_0x15d2c5,_0x3825c3);}function Ge(_0x55d6d2,_0x1ca4b8,_0x1b16ae){const _0x1443db=_0x4278ec;let _0x5bf386=Ye(_0x55d6d2,_0x1ca4b8);if(_0x5bf386){let _0x30f00c=j(_0x55d6d2,_0x5bf386,_0x1b16ae);if(_0x30f00c<_0x5bf386[_0x1443db(0x11e)])return{'startOffset':_0x30f00c,'endOffset':_0x1b16ae?Math[_0x1443db(0x9b)](_0x5bf386[_0x1443db(0x11e)]+0x1,_0x1b16ae[_0x1443db(0xb3)]):_0x5bf386[_0x1443db(0x11e)]+0x1};}let _0x439016=_0x1ca4b8===0x0&&_0x55d6d2[_0x1443db(0x94)][0x0]===_0x9c6192[_0x1443db(0x12b)]?0x1:_0x1ca4b8;return{'startOffset':_0x439016,'endOffset':_0x439016};}function Ke(_0x3c09dd){const _0x4564d1=_0x4278ec;return _0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xf3)](_0x9c6192[_0x4564d1(0xb7)])?Math[_0x4564d1(0xc8)](0x0,_0x3c09dd['dataStream'][_0x4564d1(0xee)]-0x1):_0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xee)];}function qe(_0x239c15,_0x1dffd2,_0x2f6e45){const _0xc12cd9=_0x4278ec;var _0x356ba0;let _0x44c636=Math[_0xc12cd9(0x9b)](_0x1dffd2,_0x2f6e45),_0x666067=Math[_0xc12cd9(0xc8)](_0x1dffd2,_0x2f6e45);return!!((_0x356ba0=_0x239c15[_0xc12cd9(0xe3)])!=null&&_0x356ba0[_0xc12cd9(0xa4)](_0x56ffab=>_0x44c636>_0x56ffab[_0xc12cd9(0x11e)]&&_0x44c636<_0x56ffab[_0xc12cd9(0xf4)]||_0x666067>_0x56ffab[_0xc12cd9(0x11e)]&&_0x666067<_0x56ffab[_0xc12cd9(0xf4)]||_0x44c636<=_0x56ffab['startIndex']&&_0x666067>=_0x56ffab['endIndex']));}function Je(_0x415bde,_0x58628d,_0x20baa9,_0x426421){const _0x3ca067=_0x4278ec;let _0x23ead5=[..._0x415bde[_0x3ca067(0x114)]??[]]['sort']((_0x27d751,_0x4680eb)=>_0x27d751[_0x3ca067(0x11e)]-_0x4680eb[_0x3ca067(0x11e)]),_0x589be5=_0x252574(_0x415bde),_0x3c4764=_0x23ead5[_0x3ca067(0x13a)](_0x2f9650=>j(_0x415bde,_0x2f9650,_0x426421,_0x589be5)<=_0x58628d&&_0x58628d<=_0x2f9650[_0x3ca067(0x11e)]),_0x355abb=_0x23ead5['find'](_0x44c0ac=>_0x44c0ac[_0x3ca067(0x11e)]>=_0x20baa9-0x1)??_0x23ead5[_0x23ead5['length']-0x1];return{'startOffset':_0x3c4764?j(_0x415bde,_0x3c4764,_0x426421,_0x589be5):_0x58628d,'endOffset':_0x355abb?Xe(_0x355abb,_0x426421):_0x20baa9};}function Ye(_0x3ec74f,_0x5bab14){const _0x5d9622=_0x4278ec;let _0x2652e2=[..._0x3ec74f[_0x5d9622(0x114)]??[]][_0x5d9622(0xe6)]((_0x4820f5,_0x2ce758)=>_0x4820f5[_0x5d9622(0x11e)]-_0x2ce758[_0x5d9622(0x11e)]),_0xbe5f49=_0x252574(_0x3ec74f);return _0x2652e2['find'](_0x4a385d=>(_0xbe5f49[_0x5d9622(0x135)](_0x4a385d[_0x5d9622(0x11e)])??0x0)<=_0x5bab14&&_0x5bab14<=_0x4a385d[_0x5d9622(0x11e)]);}function j(_0x4c1279,_0x40a1ec,_0xe1c295,_0x428543){const _0x2f6500=_0x4278ec;let _0x4cd54f=(_0x428543==null?void 0x0:_0x428543[_0x2f6500(0x135)](_0x40a1ec[_0x2f6500(0x11e)]))??_0x2c079f(_0x4c1279,_0x40a1ec);return _0xe1c295?Math[_0x2f6500(0xc8)](_0x4cd54f,_0xe1c295[_0x2f6500(0x129)]):_0x4cd54f;}function Xe(_0x3f5211,_0x1ff471){const _0x2aa80e=_0x4278ec;let _0x10f21e=_0x3f5211['startIndex']+0x1;return _0x1ff471?Math[_0x2aa80e(0x9b)](_0x10f21e,_0x1ff471[_0x2aa80e(0xb3)]):_0x10f21e;}function Ze(_0x26828e,_0x155f06,_0x4e556e){const _0xd884a5=_0x4278ec;let _0x50e8ce=Qe(_0x26828e,_0x155f06),_0x434e84=Qe(_0x26828e,_0x155f06===_0x4e556e?_0x4e556e:Math[_0xd884a5(0xc8)](_0x155f06,_0x4e556e-0x1));if(_0x50e8ce||_0x434e84){if(!_0x50e8ce||!_0x434e84||_0x50e8ce[_0xd884a5(0xdd)]!==_0x434e84[_0xd884a5(0xdd)]||_0x50e8ce[_0xd884a5(0x12c)]!==_0x434e84[_0xd884a5(0x12c)])throw new E();return _0x50e8ce;}}function Qe(_0x23e68e,_0x3ee240){const _0x4049ca=_0x4278ec;let _0x3bd4d8=_0x23e68e['dataStream'],_0x36ad1b=-0x1;for(let _0x4be5bc=Math['min'](_0x3ee240,_0x3bd4d8['length']-0x1);_0x4be5bc>=0x0;_0x4be5bc--){let _0x52708b=_0x3bd4d8[_0x4be5bc];if(_0x52708b===_0x9c6192[_0x4049ca(0xd4)])return;if(_0x52708b===_0x9c6192[_0x4049ca(0x11d)]){_0x36ad1b=_0x4be5bc;break;}}if(_0x36ad1b<0x0)return;let _0x24c6c0=_0x3bd4d8['indexOf'](_0x9c6192[_0x4049ca(0xd4)],_0x36ad1b+0x1);if(!(_0x24c6c0<0x0||_0x3ee240<_0x36ad1b+0x1||_0x3ee240>_0x24c6c0-0x1))return{'startOffset':_0x36ad1b+0x1,'endOffset':Math[_0x4049ca(0xc8)](_0x36ad1b+0x1,_0x24c6c0-0x1),'startTokenOffset':_0x36ad1b,'endTokenOffset':_0x24c6c0};}function M(_0x1cb890){const _0x1ca672=_0x4278ec;return _0x49707a(_0x1cb890)[_0x1ca672(0xb3)]-0x1;}function $e(_0x200fec,_0xe19ae7,_0x507e60,_0x368e88){const _0x1953db=_0x4278ec;let _0x74ef88=M(_0xe19ae7),_0x40a918=(_0x200fec[_0x1953db(0x114)]??[])[_0x1953db(0x13a)](_0x320ea7=>_0x320ea7[_0x1953db(0x11e)]===_0x74ef88+0x1);if(!_0x40a918||_0x368e88!=null&&_0x40a918[_0x1953db(0x11e)]!==_0x368e88||_0x507e60!=null&&(_0x507e60<_0x74ef88||_0x507e60>_0x40a918[_0x1953db(0x11e)]+0x1)||_0x200fec[_0x1953db(0x94)][_0x40a918[_0x1953db(0x11e)]]!==_0x9c6192[_0x1953db(0x12b)])return null;let _0x1abc5b=_0x2c079f(_0x200fec,_0x40a918),_0x3b97aa=_0x200fec[_0x1953db(0x94)][_0x1953db(0x122)](_0x1abc5b,_0x40a918[_0x1953db(0x11e)]);return Array['from'](_0x3b97aa)[_0x1953db(0x126)](_0x3d8cb8=>_0x3d8cb8===_0x9c6192[_0x1953db(0xd7)])?{'paragraph':_0x40a918,'endTokenOffset':_0x74ef88}:null;}function N(_0x20cfae,_0x2cf9bd){const _0x35dd77=_0x4278ec;var _0xc7c892;let _0x56d708=M(_0x2cf9bd),_0x50fd67=_0x20cfae[_0x35dd77(0x94)][_0x56d708+0x1];(_0x50fd67===_0x9c6192[_0x35dd77(0xb7)]||_0x50fd67===void 0x0)&&P(_0x20cfae,_0x56d708+0x1,_0x9c6192[_0x35dd77(0x12b)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x533df7(new Set((_0xc7c892=_0x20cfae[_0x35dd77(0x114)])==null?void 0x0:_0xc7c892[_0x35dd77(0xd6)](_0x27471d=>_0x27471d[_0x35dd77(0x134)])))}]});}function P(_0x4db0fe,_0x2b41bc,_0x5e0856,_0x556c5c={}){const _0x1b1955=_0x4278ec;var _0x40fe5b,_0x2ca786;_0x5e0856&&(_0x4db0fe['dataStream']=''+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](0x0,_0x2b41bc)+_0x5e0856+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](_0x2b41bc),et(_0x4db0fe,_0x2b41bc,_0x5e0856[_0x1b1955(0xee)]),(_0x40fe5b=_0x556c5c[_0x1b1955(0x114)])!=null&&_0x40fe5b[_0x1b1955(0xee)]&&(_0x4db0fe[_0x1b1955(0x114)]=[..._0x4db0fe[_0x1b1955(0x114)]??[],..._0x556c5c['paragraphs'][_0x1b1955(0xd6)](_0x423b46=>({..._0x423b46,'startIndex':_0x423b46[_0x1b1955(0x11e)]+_0x2b41bc}))]['sort']((_0x30c416,_0x14f1aa)=>_0x30c416[_0x1b1955(0x11e)]-_0x14f1aa[_0x1b1955(0x11e)])),(_0x2ca786=_0x556c5c[_0x1b1955(0x12e)])!=null&&_0x2ca786['length']&&(_0x4db0fe[_0x1b1955(0x12e)]=[..._0x4db0fe[_0x1b1955(0x12e)]??[],..._0x556c5c[_0x1b1955(0x12e)][_0x1b1955(0xd6)](_0x2bfd5e=>({..._0x2bfd5e,'startIndex':_0x2bfd5e[_0x1b1955(0x11e)]+_0x2b41bc,'endIndex':_0x2bfd5e[_0x1b1955(0xf4)]+_0x2b41bc}))][_0x1b1955(0xe6)]((_0x322b9c,_0x2b121b)=>_0x322b9c['startIndex']-_0x2b121b[_0x1b1955(0x11e)])));}function F(_0xebcfbc,_0x63dd34,_0x13fb09){const _0x323100=_0x4278ec;let _0x206930=_0x13fb09-_0x63dd34;_0xebcfbc[_0x323100(0x94)]=''+_0xebcfbc['dataStream'][_0x323100(0x122)](0x0,_0x63dd34)+_0xebcfbc[_0x323100(0x94)][_0x323100(0x122)](_0x13fb09),tt(_0xebcfbc,_0x63dd34,_0x206930);}function et(_0x5bb7ca,_0x25b707,_0x372b5e){const _0x527b28=_0x4278ec;_0x5bb7ca[_0x527b28(0x114)]=I(_0x5bb7ca['paragraphs'],_0x25b707,_0x372b5e),_0x5bb7ca['sectionBreaks']=I(_0x5bb7ca[_0x527b28(0xa9)],_0x25b707,_0x372b5e),_0x5bb7ca['customBlocks']=I(_0x5bb7ca[_0x527b28(0xed)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xdc)]=nt(_0x5bb7ca[_0x527b28(0xdc)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe3)]=rt(_0x5bb7ca[_0x527b28(0xe3)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe5)]=R(_0x5bb7ca['columnGroups'],_0x25b707,_0x372b5e),_0x5bb7ca['customRanges']=R(_0x5bb7ca['customRanges'],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x137)]=R(_0x5bb7ca[_0x527b28(0x137)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x12e)]=R(_0x5bb7ca[_0x527b28(0x12e)],_0x25b707,_0x372b5e);}function tt(_0x541b6f,_0x3e4a67,_0x340ec3){const _0x35ef9b=_0x4278ec;var _0xa19bb9,_0x31f6f7;_0x541b6f[_0x35ef9b(0x114)]=L(_0x541b6f[_0x35ef9b(0x114)],_0x3e4a67,_0x340ec3),_0x541b6f['sectionBreaks']=L(_0x541b6f[_0x35ef9b(0xa9)],_0x3e4a67,_0x340ec3),_0x541b6f['customBlocks']=L(_0x541b6f[_0x35ef9b(0xed)],_0x3e4a67,_0x340ec3),_0x541b6f['textRuns']=(_0xa19bb9=it((_0x31f6f7=_0x541b6f[_0x35ef9b(0xdc)])==null?void 0x0:_0x31f6f7['map'](_0x19e291=>({..._0x19e291,'startIndex':_0x19e291['st'],'endIndex':_0x19e291['ed']})),_0x3e4a67,_0x340ec3))==null?void 0x0:_0xa19bb9['map'](_0x5d425c=>{let {startIndex:_0x449124,endIndex:_0x1dec64,..._0x12b2f3}=_0x5d425c;return{..._0x12b2f3,'st':_0x449124,'ed':_0x1dec64};}),_0x541b6f['tables']=it(_0x541b6f[_0x35ef9b(0xe3)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0xe5)]=z(_0x541b6f[_0x35ef9b(0xe5)],_0x3e4a67,_0x340ec3),_0x541b6f['customRanges']=z(_0x541b6f[_0x35ef9b(0xf9)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x137)]=z(_0x541b6f[_0x35ef9b(0x137)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x12e)]=z(_0x541b6f[_0x35ef9b(0x12e)],_0x3e4a67,_0x340ec3);}function I(_0x177747,_0x10aab4,_0x1de7a3){const _0x2f2252=_0x4278ec;return _0x177747==null?void 0x0:_0x177747[_0x2f2252(0xd6)](_0x52c550=>_0x52c550[_0x2f2252(0x11e)]>=_0x10aab4?{..._0x52c550,'startIndex':_0x52c550[_0x2f2252(0x11e)]+_0x1de7a3}:_0x52c550);}function L(_0x48d4a1,_0x6e559b,_0x30c7c9){const _0x38c88e=_0x4278ec;let _0x259894=_0x6e559b+_0x30c7c9;return _0x48d4a1==null?void 0x0:_0x48d4a1['map'](_0x6327a3=>_0x6327a3['startIndex']>=_0x6e559b&&_0x6327a3['startIndex']<_0x259894?null:_0x6327a3[_0x38c88e(0x11e)]>=_0x259894?{..._0x6327a3,'startIndex':_0x6327a3[_0x38c88e(0x11e)]-_0x30c7c9}:_0x6327a3)[_0x38c88e(0xd2)](_0x333ad6=>_0x333ad6!=null);}function nt(_0x620631,_0x606bac,_0x62b0){const _0x528aaf=_0x4278ec;return _0x620631==null?void 0x0:_0x620631[_0x528aaf(0xd6)](_0x4f1369=>_0x4f1369['st']>=_0x606bac?{..._0x4f1369,'st':_0x4f1369['st']+_0x62b0,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369['ed']>_0x606bac?{..._0x4f1369,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369);}function R(_0x20bd3e,_0x27d4a0,_0x1a7f07){const _0x25b3e9=_0x4278ec;return _0x20bd3e==null?void 0x0:_0x20bd3e[_0x25b3e9(0xd6)](_0x432b51=>_0x1bfd00(_0x432b51,_0x27d4a0,_0x1a7f07));}function rt(_0x4582f4,_0x7f83e1,_0x39297e){return _0x4582f4==null?void 0x0:_0x4582f4['map'](_0x383987=>_0x1e6f2b(_0x383987,_0x7f83e1,_0x39297e));}function z(_0x44b577,_0x4e33bf,_0x5d3cf8){const _0xf0f030=_0x4278ec;return _0x44b577==null?void 0x0:_0x44b577['map'](_0x3b6ea6=>_0x31e1ac(_0x3b6ea6,_0x4e33bf,_0x5d3cf8))[_0xf0f030(0xd2)](_0x4b529c=>_0x4b529c!=null);}function it(_0xfbe575,_0x4071dd,_0x237bb0){const _0x5e6f97=_0x4278ec;return _0xfbe575==null?void 0x0:_0xfbe575['map'](_0x365efb=>_0x345255(_0x365efb,_0x4071dd,_0x237bb0))[_0x5e6f97(0xd2)](_0x5042d2=>_0x5042d2!=null);}const at={'id':_0x4278ec(0xfa),'type':_0x45294c[_0x4278ec(0x123)],'handler':_0x1727c9=>{const _0x3d5d08=_0x4278ec;var _0x36e453;if(_0x129d5b(G(_0x1727c9)))return!0x1;let _0x50917d=_0x312935(_0x1727c9);if(_0x50917d)return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x50917d[_0x3d5d08(0x129)],'endOffset':_0x50917d[_0x3d5d08(0xb3)],'insertionMode':'insert-new','unitId':_0x50917d[_0x3d5d08(0xdb)]});let _0x5c019e=ft(_0x1727c9);if(!_0x5c019e)return!0x1;let _0x4b7ab4=(_0x36e453=_0x1727c9[_0x3d5d08(0x135)](_0x2fe26f)[_0x3d5d08(0x91)](_0x30a10b[_0x3d5d08(0x11a)]))==null?void 0x0:_0x36e453[_0x3d5d08(0xd8)](),_0x266993=_0x4b7ab4?_0x3f9e16(_0x4b7ab4,_0x5c019e):_0x5c019e[_0x3d5d08(0x11e)]+0x1;return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x266993,'endOffset':_0x266993});}},ot={'id':_0x4278ec(0xfe),'type':_0x45294c[_0x4278ec(0x123)],'handler':()=>!0x0},B={'id':_0x4278ec(0x107),'type':_0x45294c['COMMAND'],'handler':(_0x3660cf,_0x3d4f64)=>{const _0x3b3035=_0x4278ec;let _0x434561=W(_0x3660cf,_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdb)]);if(!_0x434561)return!0x1;let _0xd11848=G(_0x3660cf);if(_0x129d5b(_0xd11848))return!0x1;let _0x5d5015=_0x434561['model']['serialize'](_0x434561[_0x3b3035(0xdb)]),_0x2650b3=lt(_0x3d4f64,_0xd11848),_0x3b8371=ut(_0x434561['previousDocumentData'],_0x2650b3);if(_0x3b8371){if(_0x3b8371[_0x3b3035(0xa1)]!==_0xac67e3['CODE'])return!0x1;let _0x1a99ed=D({'blockId':_0x3b8371[_0x3b3035(0xbe)],'documentData':_0x434561[_0x3b3035(0x10d)],'metadata':_0x5d5015});if(!_0x1a99ed)return!0x1;let _0x469aad=Y(_0x434561['commandService'],_0x434561[_0x3b3035(0x98)],_0x434561['unitId'],_0x434561[_0x3b3035(0x10d)],_0x1a99ed[_0x3b3035(0xc2)],B['id'],_0x1a99ed[_0x3b3035(0x128)]);return _0x469aad&&_0x1a99ed[_0x3b3035(0xfb)]&&_0x434561[_0x3b3035(0x92)][_0x3b3035(0x101)](_0x434561['unitId'],_0x1a99ed[_0x3b3035(0xfb)]),_0x469aad;}let _0x340672=(_0x3d4f64==null?void 0x0:_0x3d4f64['blockId'])??_0x5a5615(0x6),_0x30fbf4;try{_0x30fbf4=De({'blockId':_0x340672,'config':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xf5)],'documentData':_0x434561[_0x3b3035(0x10d)],'endOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0xb3)],'insertionMode':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdf)],'metadata':_0x5d5015,'startOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0x129)]});}catch(_0x1133d0){if(_0x1133d0 instanceof E)return!0x1;throw _0x1133d0;}let _0x4709b1=Y(_0x434561[_0x3b3035(0xc1)],_0x434561[_0x3b3035(0x98)],_0x434561[_0x3b3035(0xdb)],_0x434561['previousDocumentData'],_0x30fbf4[_0x3b3035(0xc2)],B['id'],_0x30fbf4[_0x3b3035(0x128)]);return _0x4709b1&&_0x30fbf4[_0x3b3035(0xfb)]&&_0x434561['model']['deserialize'](_0x434561[_0x3b3035(0xdb)],_0x30fbf4[_0x3b3035(0xfb)]),_0x4709b1;}},st={'id':'docs-code.command.update','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x508654,_0x16caba)=>{const _0x232c1e=_0x4278ec;if(!_0x16caba)return!0x1;let _0x5b8988=W(_0x508654,_0x16caba[_0x232c1e(0xdb)]);if(!_0x5b8988)return!0x1;let _0x4cf19b=je({'blockId':_0x16caba[_0x232c1e(0xbe)],'config':_0x16caba[_0x232c1e(0xf5)],'documentData':_0x5b8988[_0x232c1e(0x10d)],'metadata':_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0xba)](_0x5b8988[_0x232c1e(0xdb)])});return _0x4cf19b[_0x232c1e(0xfb)]&&_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0x101)](_0x5b8988['unitId'],_0x4cf19b[_0x232c1e(0xfb)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x2b17b9,_0x403216)=>V[_0x4278ec(0x12a)](_0x2b17b9,_0x403216)},V={'id':_0x4278ec(0xea),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x3dd3c0,_0x3a39df)=>{const _0x2fbb82=_0x4278ec;if(!_0x3a39df)return!0x1;let _0xf6c97e=W(_0x3dd3c0,_0x3a39df==null?void 0x0:_0x3a39df[_0x2fbb82(0xdb)]);if(!_0xf6c97e)return!0x1;let _0x353279=D({'blockId':_0x3a39df[_0x2fbb82(0xbe)],'documentData':_0xf6c97e[_0x2fbb82(0x10d)],'metadata':_0xf6c97e[_0x2fbb82(0x92)]['serialize'](_0xf6c97e[_0x2fbb82(0xdb)])});if(!_0x353279)return!0x1;let _0x54f7d5=Y(_0xf6c97e[_0x2fbb82(0xc1)],_0xf6c97e[_0x2fbb82(0x98)],_0xf6c97e[_0x2fbb82(0xdb)],_0xf6c97e[_0x2fbb82(0x10d)],_0x353279[_0x2fbb82(0xc2)],V['id'],_0x353279[_0x2fbb82(0x128)]);return _0x54f7d5&&_0x353279['nextMetadata']&&_0xf6c97e[_0x2fbb82(0x92)][_0x2fbb82(0x101)](_0xf6c97e[_0x2fbb82(0xdb)],_0x353279['nextMetadata']),_0x54f7d5;}},H={'id':_0x4278ec(0x11c),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x36a0ff,_0x5846b7)=>{const _0x50f844=_0x4278ec;if(!_0x5846b7)return!0x1;let _0x58d4c2=W(_0x36a0ff,_0x5846b7==null?void 0x0:_0x5846b7[_0x50f844(0xdb)]);if(!_0x58d4c2)return!0x1;let _0x46ed19=Me({'blockId':_0x5846b7[_0x50f844(0xbe)],'documentData':_0x58d4c2[_0x50f844(0x10d)],'metadata':_0x58d4c2['model']['serialize'](_0x58d4c2[_0x50f844(0xdb)])});if(!_0x46ed19)return!0x1;let _0x46623a=Y(_0x58d4c2['commandService'],_0x58d4c2[_0x50f844(0x98)],_0x58d4c2['unitId'],_0x58d4c2[_0x50f844(0x10d)],_0x46ed19[_0x50f844(0xc2)],H['id'],_0x46ed19[_0x50f844(0x128)]);return _0x46623a&&_0x46ed19[_0x50f844(0xfb)]&&_0x58d4c2[_0x50f844(0x92)][_0x50f844(0x101)](_0x58d4c2[_0x50f844(0xdb)],_0x46ed19[_0x50f844(0xfb)]),_0x46623a;}},U={'id':'docs-code.command.cancel-empty-paragraph','type':_0x45294c['COMMAND'],'handler':(_0x564410,_0x5abb36)=>{const _0x227453=_0x4278ec;var _0x41f562;let _0x41e53c=W(_0x564410,_0x5abb36==null?void 0x0:_0x5abb36['unitId']);if(!_0x41e53c)return!0x1;let _0x4bacbc=(_0x5abb36==null?void 0x0:_0x5abb36[_0x227453(0x128)])??((_0x41f562=G(_0x564410))==null?void 0x0:_0x41f562[_0x227453(0x129)]);if(_0x4bacbc==null)return!0x1;let _0x408cdf=Ne({'cursorOffset':_0x4bacbc,'documentData':_0x41e53c[_0x227453(0x10d)],'paragraphStartIndex':_0x5abb36==null?void 0x0:_0x5abb36['paragraphStartIndex']});return _0x408cdf?Y(_0x41e53c['commandService'],_0x41e53c[_0x227453(0x98)],_0x41e53c[_0x227453(0xdb)],_0x41e53c[_0x227453(0x10d)],_0x408cdf[_0x227453(0xc2)],U['id'],_0x408cdf['cursorOffset']):!0x1;}};function W(_0x477734,_0x34c9d4){const _0x222556=_0x4278ec;let _0x1b41e2=_0x477734['get'](_0x2fe26f),_0x50162d=_0x34c9d4?_0x1b41e2[_0x222556(0x10b)](_0x34c9d4,_0x30a10b[_0x222556(0x11a)]):_0x1b41e2[_0x222556(0x91)](_0x30a10b[_0x222556(0x11a)]);return _0x50162d?{'commandService':_0x477734[_0x222556(0x135)](_0x1a34c1),'model':_0x477734[_0x222556(0x135)](w),'previousDocumentData':_0x50162d[_0x222556(0xa5)](),'selectionManager':_0x477734[_0x222556(0x135)](_0x1e01f3),'unitId':_0x50162d[_0x222556(0xaf)]()}:null;}function G(_0x1c881b){const _0x2ee128=_0x4278ec;var _0x4062a2;return(_0x4062a2=_0x1c881b[_0x2ee128(0x135)](_0x1e01f3)[_0x2ee128(0x117)]())==null?void 0x0:_0x4062a2[0x0];}function lt(_0x6c0fa8,_0x1d2352){const _0x433029=_0x4278ec;let _0x33d9fd=(_0x6c0fa8==null?void 0x0:_0x6c0fa8['startOffset'])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0x129)]),_0x1acb7c=(_0x6c0fa8==null?void 0x0:_0x6c0fa8[_0x433029(0xb3)])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0xb3)]);if(_0x33d9fd!=null&&_0x1acb7c!=null)return{'endOffset':Math[_0x433029(0xc8)](_0x33d9fd,_0x1acb7c),'startOffset':Math[_0x433029(0x9b)](_0x33d9fd,_0x1acb7c)};}function ut(_0x55f3a9,_0x59f0a7){const _0x83f9a=_0x4278ec;var _0x28f028;if(!_0x59f0a7)return;let _0x847246=dt(_0x59f0a7);return(_0x28f028=_0x55f3a9[_0x83f9a(0x133)])==null||(_0x28f028=_0x28f028['blockRanges'])==null?void 0x0:_0x28f028[_0x83f9a(0x13a)](_0x329b8a=>{const _0x54e421=_0x83f9a;let _0x41c58d=_0x49707a(_0x329b8a);return _0x59f0a7[_0x54e421(0x129)]===_0x59f0a7[_0x54e421(0xb3)]?_0x27820e(_0x41c58d,_0x847246):_0x42e0ef(_0x41c58d,_0x847246);});}function dt(_0x1bf3e5){const _0x4ef606=_0x4278ec;return _0x1bf3e5['startOffset']===_0x1bf3e5[_0x4ef606(0xb3)]?_0x1bf3e5[_0x4ef606(0x129)]:_0x1bf3e5[_0x4ef606(0x129)]+0x1;}function ft(_0x5ecbff){const _0x140f36=_0x4278ec;let _0x20b402=G(_0x5ecbff);if(!_0x20b402)return null;let _0x2dd1e8=_0x5ecbff[_0x140f36(0x135)](_0x2fe26f)[_0x140f36(0x91)](_0x30a10b['UNIVER_DOC']),_0x20d771=_0x2dd1e8==null?void 0x0:_0x2dd1e8[_0x140f36(0xd8)]();return _0x20d771?_0x20804f['range'][_0x140f36(0xaa)](_0x20b402,_0x20d771[_0x140f36(0x114)]??[],_0x20d771[_0x140f36(0x94)]??'')[0x0]??null:null;}function pt(_0x54b88e,_0x1fba91){const _0x47d867=_0x4278ec;let _0x490fd4=_0x54b88e[_0x47d867(0x133)],_0x4fddd8=_0x1fba91['body'],_0x2c4c33=_0x460607(_0x490fd4,_0x4fddd8);return[_0x2c4c33&&_0x4fddd8?mt(_0x4fddd8,_0x2c4c33):null,_0x2c4c33?null:ht(_0x490fd4,_0x4fddd8)][_0x47d867(0xd2)](Boolean)[_0x47d867(0xcd)]((_0x46a640,_0x3e5ae8)=>_0xa0927a[_0x47d867(0xb1)](_0x46a640,_0x3e5ae8),null);}function mt(_0x4b826f,_0x3dd650){const _0x3bdf18=_0x4278ec;let _0x140dab=new _0xaed83f();return _0x140dab[_0x3bdf18(0x139)](_0x3dd650[_0x3bdf18(0xa0)]),_0x3dd650[_0x3bdf18(0x121)]>0x0&&_0x140dab[_0x3bdf18(0x9c)](_0x3dd650[_0x3bdf18(0x121)],_0x285f89(_0x4b826f,_0x3dd650[_0x3bdf18(0xa0)],_0x3dd650[_0x3bdf18(0xa0)]+_0x3dd650['insertLength'],!0x1)),_0x3dd650[_0x3bdf18(0xbf)]>0x0&&_0x140dab[_0x3bdf18(0xc6)](_0x3dd650[_0x3bdf18(0xbf)]),_0xa0927a[_0x3bdf18(0xe2)]()[_0x3bdf18(0x10a)](_0x140dab[_0x3bdf18(0xba)](),[_0x3bdf18(0x133)]);}function ht(_0x10df4f,_0x37288b){const _0x13f1f3=_0x4278ec;let _0x93618=[],_0x5aeb35=_0x10df4f?_t(_0x10df4f):void 0x0,_0x11a88e=_0x37288b?_t(_0x37288b):void 0x0;for(let _0x1cf5e6 of gt)K(_0xa0927a[_0x13f1f3(0xe2)](),[_0x13f1f3(0x133),_0x1cf5e6],_0x5aeb35==null?void 0x0:_0x5aeb35[_0x1cf5e6],_0x11a88e==null?void 0x0:_0x11a88e[_0x1cf5e6],_0x93618);return _0x93618[_0x13f1f3(0xcd)]((_0x5bd6b7,_0x239a68)=>_0xa0927a['compose'](_0x5bd6b7,_0x239a68),null);}const gt=[_0x4278ec(0x114),_0x4278ec(0xa9),_0x4278ec(0xe3),_0x4278ec(0xe5),_0x4278ec(0x12e),'customBlocks','customRanges',_0x4278ec(0x137),_0x4278ec(0xdc)];function _t(_0x165bfa){return _0x165bfa;}function K(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e){const _0x47049d=_0x4278ec;J(_0x4801ac,_0x13a8c8)||(_0x4801ac==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0xf1)](_0x3ba98a,_0x13a8c8)):_0x13a8c8==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771['removeOp'](_0x3ba98a,_0x4801ac)):Array[_0x47049d(0x13b)](_0x4801ac)&&Array['isArray'](_0x13a8c8)?vt(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e):q(_0x4801ac)&&q(_0x13a8c8)?new Set([...Object['keys'](_0x4801ac),...Object[_0x47049d(0xc4)](_0x13a8c8)])[_0x47049d(0xb9)](_0x118146=>{K(_0x5b2771,[..._0x3ba98a,_0x118146],_0x4801ac[_0x118146],_0x13a8c8[_0x118146],_0x13ae3e);}):_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0x124)](_0x3ba98a,_0x4801ac,_0x13a8c8)));}function vt(_0x4a4b23,_0x4b7c3c,_0x380b93,_0x553172,_0x8dd336){const _0x31610b=_0x4278ec;if(_0x380b93['length']===_0x553172[_0x31610b(0xee)]){_0x380b93[_0x31610b(0xb9)]((_0xf0243e,_0x2829ba)=>K(_0x4a4b23,[..._0x4b7c3c,_0x2829ba],_0xf0243e,_0x553172[_0x2829ba],_0x8dd336));return;}let _0x1fc3d8=0x0;for(;_0x1fc3d8<_0x380b93[_0x31610b(0xee)]&&_0x1fc3d8<_0x553172[_0x31610b(0xee)]&&J(_0x380b93[_0x1fc3d8],_0x553172[_0x1fc3d8]);)_0x1fc3d8++;let _0x3c9026=_0x380b93[_0x31610b(0xee)]-0x1,_0x3c63d9=_0x553172[_0x31610b(0xee)]-0x1;for(;_0x3c9026>=_0x1fc3d8&&_0x3c63d9>=_0x1fc3d8&&J(_0x380b93[_0x3c9026],_0x553172[_0x3c63d9]);)_0x3c9026--,_0x3c63d9--;for(let _0x28b19a=_0x3c9026;_0x28b19a>=_0x1fc3d8;_0x28b19a--)_0x8dd336['push'](_0x4a4b23['removeOp']([..._0x4b7c3c,_0x28b19a],_0x380b93[_0x28b19a]));for(let _0x43491d=_0x1fc3d8;_0x43491d<=_0x3c63d9;_0x43491d++)_0x8dd336['push'](_0x4a4b23[_0x31610b(0xf1)]([..._0x4b7c3c,_0x43491d],_0x553172[_0x43491d]));}function q(_0x115ee4){const _0x32fdf5=_0x4278ec;return typeof _0x115ee4==_0x32fdf5(0xfc)&&!!_0x115ee4&&!Array['isArray'](_0x115ee4);}function J(_0x5981b2,_0x4e08df){const _0x1c72a9=_0x4278ec;return JSON[_0x1c72a9(0x125)](_0x5981b2)===JSON[_0x1c72a9(0x125)](_0x4e08df);}function Y(_0x3e8cdb,_0x3fc174,_0x4e93a6,_0x20e275,_0x529f85,_0x1e9b12,_0x46a8f6){const _0x4ac24e=_0x4278ec;let _0x3c2a98=pt(_0x20e275,_0x529f85);return _0x3c2a98?!!_0x3e8cdb[_0x4ac24e(0xcf)](_0x31ecbf['id'],{'unitId':_0x4e93a6,'actions':_0x3c2a98,'textRanges':[{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x1e9b12}):(_0x3fc174[_0x4ac24e(0x106)]([{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6}],{'unitId':_0x4e93a6,'subUnitId':_0x4e93a6},!0x1),!0x0);}const X=_0x4278ec(0x100);function _0x57e9(_0x26229e,_0x3b7941){_0x26229e=_0x26229e-0x90;const _0x1bbf03=_0x1bbf();let _0x57e903=_0x1bbf03[_0x26229e];return _0x57e903;}var yt=_0x4278ec(0x130),bt=_0x4278ec(0xf8);const xt={};function Z(_0x4954a6,_0x5978aa){return function(_0x47b23a,_0x2a1b54){_0x5978aa(_0x47b23a,_0x2a1b54,_0x4954a6);};}function St(_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a){const _0x4d29b1=_0x4278ec;var _0x312df7=arguments[_0x4d29b1(0xee)],_0x7ca8f1=_0x312df7<0x3?_0x21fee1:_0x2e442a===null?_0x2e442a=Object['getOwnPropertyDescriptor'](_0x21fee1,_0x52db37):_0x2e442a,_0x22a74e;if(typeof Reflect==_0x4d29b1(0xfc)&&typeof Reflect['decorate']==_0x4d29b1(0x110))_0x7ca8f1=Reflect[_0x4d29b1(0x11b)](_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a);else{for(var _0x1e69a2=_0x1e83df['length']-0x1;_0x1e69a2>=0x0;_0x1e69a2--)(_0x22a74e=_0x1e83df[_0x1e69a2])&&(_0x7ca8f1=(_0x312df7<0x3?_0x22a74e(_0x7ca8f1):_0x312df7>0x3?_0x22a74e(_0x21fee1,_0x52db37,_0x7ca8f1):_0x22a74e(_0x21fee1,_0x52db37))||_0x7ca8f1);}return _0x312df7>0x3&&_0x7ca8f1&&Object[_0x4d29b1(0xc7)](_0x21fee1,_0x52db37,_0x7ca8f1),_0x7ca8f1;}let Q=class extends _0x1ccbbc{constructor(_0x27edf5,_0x491879){const _0x4d286a=_0x4278ec;super(),this['_resourceManagerService']=_0x27edf5,this[_0x4d286a(0x138)]=_0x491879,this[_0x4d286a(0xc5)]();}[_0x4278ec(0xc5)](){const _0x326ba8=_0x4278ec;this['disposeWithMe'](this[_0x326ba8(0xb5)][_0x326ba8(0xcc)]({'pluginName':X,'businesses':[_0x30a10b[_0x326ba8(0x11a)]],'toJson':_0x2c517d=>JSON[_0x326ba8(0x125)](this[_0x326ba8(0x138)][_0x326ba8(0xba)](_0x2c517d)),'parseJson':_0x3c5a02=>y(JSON['parse'](_0x3c5a02)),'onLoad':(_0x4071fe,_0x462d17)=>this[_0x326ba8(0x138)]['deserialize'](_0x4071fe,_0x462d17),'onUnLoad':_0x2343a1=>this[_0x326ba8(0x138)][_0x326ba8(0x11f)](_0x2343a1)}));}};Q=St([Z(0x0,_0x134f76),Z(0x1,_0x2b0865(w))],Q);function _0x1bbf(){const _0x14a5e0=['blockRanges','call','@univerjs-pro/docs-code','codes','registerCommand','body','paragraphId','get','setConfig','customDecorations','_docsCodeModel','retain','find','isArray','4AHSlWa','getCurrentUnitOfType','model','push','dataStream','metadata','_configService','complete','selectionManager','MUTATION','1394667bOuSLk','min','insert','_change$','_setResource','direction','start','blockType','keepLines','disposeWithMe','some','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CODE','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','sectionBreaks','getParagraphsInRange','docs-code.mutation.remove-config','right','prototype','FALSE','getUnitId','bullet','compose','next','endOffset','string','_resourceManagerService','TRUE','SECTION_BREAK','3999970akNuVN','forEach','serialize','onStarting','_resources','type','blockId','deleteLength','docs-code.config','commandService','nextDocumentData','packageName','keys','_initResource','delete','defineProperty','max','version','set','795179QDsyBD','registerPluginResource','reduce','indentStart','syncExecuteCommand','asObservable','1974AOwdEN','filter','clear','TABLE_CELL_END','left','map','BLOCK_END','getBody','change$','_commandService','unitId','textRuns','startTokenOffset','BLOCK_START','insertionMode','233337IvatbR','paragraphStartIndex','getInstance','tables','documentData','columnGroups','sort','textStyle','fromEntries','_config','docs-code.command.unwrap','setCodeConfig','24odtdFJ','customBlocks','length','default','javascript','insertOp','iterator','endsWith','endIndex','config','6895vXgSeP','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','1.3.1','customRanges','docs-code.command.insert-below','nextMetadata','object','symbol','docs-code.command.consume-boundary-delete','paragraphStyle','DOC_CODE_PLUGIN','deserialize','11LAAFoL','columns','toPrimitive','spaceBelow','replaceDocRanges','docs-code.command.insert','2wyLwUB','removeCode','editOp','getUnit','pluginName','previousDocumentData','monospace','327052jloilN','function','indentEnd','_injector','Document\x20body\x20is\x20required','paragraphs','dispose','add','getTextRanges','constructor','spaceAbove','UNIVER_DOC','decorate','docs-code.command.remove','TABLE_CELL_START','startIndex','removeUnit','266511iUYQom','insertLength','slice','COMMAND','replaceOp','stringify','every','entries','cursorOffset','startOffset','handler','PARAGRAPH','endTokenOffset','336nbPQzl'];_0x1bbf=function(){return _0x14a5e0;};return _0x1bbf();}let $=class extends _0x25c4b9{constructor(_0x33570e=xt,_0x3481ce,_0x5790d7,_0x3c57df){const _0x51d1fc=_0x4278ec;super(),this['_config']=_0x33570e,this[_0x51d1fc(0x112)]=_0x3481ce,this[_0x51d1fc(0xda)]=_0x5790d7,this[_0x51d1fc(0x96)]=_0x3c57df;let {..._0x89248c}=_0x374a9d({},xt,this[_0x51d1fc(0xe9)]);this[_0x51d1fc(0x96)][_0x51d1fc(0x136)](_0x51d1fc(0xc0),_0x89248c);}[_0x4278ec(0xbb)](){const _0x55fe69=_0x4278ec;this[_0x55fe69(0x112)][_0x55fe69(0x116)]([w]),this['_injector'][_0x55fe69(0x116)]([Q]),this['_injector']['get'](w),this[_0x55fe69(0x112)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x55fe69(0xb9)](_0x390560=>this[_0x55fe69(0xa3)](this[_0x55fe69(0xda)][_0x55fe69(0x132)](_0x390560)));}};C($,_0x4278ec(0x10c),X),C($,_0x4278ec(0xc3),yt),C($,_0x4278ec(0xc9),bt),C($,_0x4278ec(0xbd),_0x30a10b[_0x4278ec(0x11a)]),$=St([_0x85efd(_0x509979,_0x1e99e0),Z(0x1,_0x2b0865(_0x650f9e)),Z(0x2,_0x1a34c1),Z(0x3,_0x48b9b0)],$);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 _0x15446c=_0x3d13;(function(_0x5cd14e,_0x371cc9){var _0x17d229=_0x3d13,_0x589644=_0x5cd14e();while(!![]){try{var _0x4b0a20=parseInt(_0x17d229(0x1ba))/0x1*(-parseInt(_0x17d229(0x1a5))/0x2)+parseInt(_0x17d229(0x1d3))/0x3*(parseInt(_0x17d229(0x19f))/0x4)+-parseInt(_0x17d229(0x1be))/0x5+-parseInt(_0x17d229(0x1a7))/0x6*(parseInt(_0x17d229(0x1d2))/0x7)+-parseInt(_0x17d229(0x1a9))/0x8+parseInt(_0x17d229(0x1d9))/0x9+parseInt(_0x17d229(0x1b3))/0xa*(parseInt(_0x17d229(0x1cc))/0xb);if(_0x4b0a20===_0x371cc9)break;else _0x589644['push'](_0x589644['shift']());}catch(_0x20e9fb){_0x589644['push'](_0x589644['shift']());}}}(_0x26bb,0x1c659));import{DocsCodeInsertCommand as _0x35c08b,DocsCodeModel as _0x46c96c,DocsCodeRemoveCommand as _0x29b805,DocsCodeUnwrapCommand as _0x29572c,DocsCodeUpdateCommand as _0x10ba3f,normalizeDocsCodeConfig as _0x301f3a}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x415f91,DocumentBlockRangeType as _0x956497,ICommandService as _0x29fab8,Inject as _0x3bf9f4,Injector as _0x516525,generateRandomId as _0x1ec0c6}from'@univerjs/core';function _0x3d13(_0x4036df,_0x41ed8d){_0x4036df=_0x4036df-0x198;var _0x26bbef=_0x26bb();var _0x3d13c4=_0x26bbef[_0x4036df];return _0x3d13c4;}import{FDocument as _0x193b6d,isParagraphFacade as _0x1b4abd}from'@univerjs/docs/facade';function m(_0x5eb12e){'@babel/helpers - typeof';var _0x1febfa=_0x3d13;return m=typeof Symbol=='function'&&typeof Symbol[_0x1febfa(0x1af)]==_0x1febfa(0x1bf)?function(_0x41552e){return typeof _0x41552e;}:function(_0x5cddb5){var _0x5bce6c=_0x1febfa;return _0x5cddb5&&typeof Symbol==_0x5bce6c(0x1d6)&&_0x5cddb5[_0x5bce6c(0x1c4)]===Symbol&&_0x5cddb5!==Symbol[_0x5bce6c(0x1b5)]?_0x5bce6c(0x1bf):typeof _0x5cddb5;},m(_0x5eb12e);}function h(_0x114aed,_0x5ae558){var _0x1c06f9=_0x3d13;if(m(_0x114aed)!=_0x1c06f9(0x19c)||!_0x114aed)return _0x114aed;var _0x3167aa=_0x114aed[Symbol[_0x1c06f9(0x1ca)]];if(_0x3167aa!==void 0x0){var _0x4e68e6=_0x3167aa[_0x1c06f9(0x19e)](_0x114aed,_0x5ae558||_0x1c06f9(0x1d7));if(m(_0x4e68e6)!=_0x1c06f9(0x19c))return _0x4e68e6;throw TypeError(_0x1c06f9(0x1d8));}return(_0x5ae558===_0x1c06f9(0x1d5)?String:Number)(_0x114aed);}function g(_0x2818d1){var _0x3ad5aa=_0x3d13,_0x288fe7=h(_0x2818d1,_0x3ad5aa(0x1d5));return m(_0x288fe7)==_0x3ad5aa(0x1bf)?_0x288fe7:_0x288fe7+'';}function _(_0x444bf8,_0x1b7f24,_0x27ef07){var _0x55f117=_0x3d13;return(_0x1b7f24=g(_0x1b7f24))in _0x444bf8?Object[_0x55f117(0x1b2)](_0x444bf8,_0x1b7f24,{'value':_0x27ef07,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x444bf8[_0x1b7f24]=_0x27ef07,_0x444bf8;}function v(_0x17d448,_0x28a3e8){return function(_0x45de54,_0x1731ec){_0x28a3e8(_0x45de54,_0x1731ec,_0x17d448);};}function y(_0x38dedd,_0x4ab3b1,_0x39a00b,_0x4f427c){var _0x76dcb0=_0x3d13,_0x12150f=arguments[_0x76dcb0(0x1bb)],_0xf550=_0x12150f<0x3?_0x4ab3b1:_0x4f427c===null?_0x4f427c=Object['getOwnPropertyDescriptor'](_0x4ab3b1,_0x39a00b):_0x4f427c,_0x3f7cc2;if(typeof Reflect==_0x76dcb0(0x19c)&&typeof Reflect[_0x76dcb0(0x1c2)]==_0x76dcb0(0x1d6))_0xf550=Reflect['decorate'](_0x38dedd,_0x4ab3b1,_0x39a00b,_0x4f427c);else{for(var _0x3dc68a=_0x38dedd['length']-0x1;_0x3dc68a>=0x0;_0x3dc68a--)(_0x3f7cc2=_0x38dedd[_0x3dc68a])&&(_0xf550=(_0x12150f<0x3?_0x3f7cc2(_0xf550):_0x12150f>0x3?_0x3f7cc2(_0x4ab3b1,_0x39a00b,_0xf550):_0x3f7cc2(_0x4ab3b1,_0x39a00b))||_0xf550);}return _0x12150f>0x3&&_0xf550&&Object['defineProperty'](_0x4ab3b1,_0x39a00b,_0xf550),_0xf550;}function _0x26bb(){var _0x190213=['describe','115507gakYHJ','8937UNeeXo','PARAGRAPH','string','function','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1846719PGvJnR','getCode','syncExecuteCommand','includes','unwrap','object','findCodes','call','268OLStxj','findCodeByText','getRange','_unitId','map','dataStream','4QVAkNG','_createFDocumentCode','6WxVKuJ','getId','1209808sWFEUw','blockType','updateConfig','replace','find','_getBlockRange','iterator','text','_blockId','defineProperty','612310ioCJRA','startIndex','prototype','join','BLOCK_START','getCodes','some','109284vJhFcs','length','getText','getConfig','1041655FMSbIn','symbol','blockId','BLOCK_END','decorate','endIndex','constructor','CODE','_getBlockRanges','blockRanges','filter','_injector','toPrimitive','get','55ZQoUQy','_document','_getDocumentData','body','getCodeConfig'];_0x26bb=function(){return _0x190213;};return _0x26bb();}let b=class{constructor(_0x46ad6d,_0x468803,_0x2661eb){var _0x21e4d6=_0x3d13;this[_0x21e4d6(0x1cd)]=_0x46ad6d,this[_0x21e4d6(0x1b1)]=_0x468803,this[_0x21e4d6(0x1c9)]=_0x2661eb,_(this,'_unitId',void 0x0),this[_0x21e4d6(0x1a2)]=this[_0x21e4d6(0x1cd)][_0x21e4d6(0x1a8)]();}[_0x15446c(0x1a8)](){var _0x2359e2=_0x15446c;return this[_0x2359e2(0x1b1)];}[_0x15446c(0x1a1)](){var _0x15347e=_0x15446c;let _0x111b16=this[_0x15347e(0x1ae)]();return _0x111b16?{'blockId':_0x111b16[_0x15347e(0x1c0)],'endIndex':_0x111b16[_0x15347e(0x1c3)],'startIndex':_0x111b16[_0x15347e(0x1b4)]}:null;}['getText'](){var _0x29d429=_0x15446c,_0x1a7552;let _0x3f879b=this[_0x29d429(0x1ae)](),_0x3145f1=(_0x1a7552=this['_getDocumentData']()[_0x29d429(0x1cf)])==null?void 0x0:_0x1a7552[_0x29d429(0x1a4)];return!_0x3f879b||!_0x3145f1?'':x(_0x3145f1['slice'](_0x3f879b[_0x29d429(0x1b4)]+0x1,_0x3f879b[_0x29d429(0x1c3)]));}[_0x15446c(0x1d1)](){var _0x52e736=_0x15446c;let _0x31f8bd=this['getRange']();return _0x31f8bd?{..._0x31f8bd,'config':this[_0x52e736(0x1bd)](),'text':this[_0x52e736(0x1bc)](),'type':_0x956497['CODE']}:null;}['getConfig'](){var _0x1bfacf=_0x15446c;let _0x1722ad=this['_injector'][_0x1bfacf(0x1cb)](_0x46c96c);return _0x301f3a(_0x1722ad[_0x1bfacf(0x1d0)](this[_0x1bfacf(0x1a2)],this[_0x1bfacf(0x1b1)]));}[_0x15446c(0x1ab)](_0x4d5f95){var _0x1a032a=_0x15446c;return this['_injector'][_0x1a032a(0x1cb)](_0x29fab8)[_0x1a032a(0x199)](_0x10ba3f['id'],{'blockId':this[_0x1a032a(0x1b1)],'config':_0x4d5f95['config'],'unitId':this[_0x1a032a(0x1a2)]});}[_0x15446c(0x19b)](){var _0xa5de65=_0x15446c;return this[_0xa5de65(0x1c9)][_0xa5de65(0x1cb)](_0x29fab8)[_0xa5de65(0x199)](_0x29572c['id'],{'blockId':this['_blockId'],'unitId':this[_0xa5de65(0x1a2)]});}['remove'](){var _0x10588f=_0x15446c;return this['_injector']['get'](_0x29fab8)[_0x10588f(0x199)](_0x29b805['id'],{'blockId':this[_0x10588f(0x1b1)],'unitId':this['_unitId']});}['_getBlockRange'](){var _0x41b825=_0x15446c,_0x2a3824;return((_0x2a3824=this[_0x41b825(0x1ce)]()[_0x41b825(0x1cf)])==null||(_0x2a3824=_0x2a3824[_0x41b825(0x1c7)])==null?void 0x0:_0x2a3824[_0x41b825(0x1ad)](_0x5f3702=>_0x5f3702['blockId']===this[_0x41b825(0x1b1)]&&_0x5f3702[_0x41b825(0x1aa)]===_0x956497[_0x41b825(0x1c5)]))??null;}[_0x15446c(0x1ce)](){var _0x39d469=_0x15446c;return this[_0x39d469(0x1cd)]['save']();}};b=y([v(0x2,_0x3bf9f4(_0x516525))],b);function x(_0xd8d3c3){var _0x55948f=_0x15446c;return Array['from'](_0xd8d3c3)['map'](_0x4b767e=>_0x4b767e===_0x415f91[_0x55948f(0x1d4)]?'\x0a':_0x4b767e)[_0x55948f(0x1c8)](_0x3b4069=>_0x3b4069!==_0x415f91[_0x55948f(0x1b7)]&&_0x3b4069!==_0x415f91[_0x55948f(0x1c1)]&&_0x3b4069!==_0x415f91['SECTION_BREAK'])[_0x55948f(0x1b6)]('')[_0x55948f(0x1ac)](/\n$/,'');}var S=class extends _0x193b6d{[_0x15446c(0x1b8)](){var _0x173eaf=_0x15446c;return this[_0x173eaf(0x1c6)]()[_0x173eaf(0x1c8)](_0x29f6cf=>_0x29f6cf['blockType']===_0x956497[_0x173eaf(0x1c5)])[_0x173eaf(0x1a3)](_0x111fea=>this[_0x173eaf(0x1a6)](_0x111fea['blockId']));}['getCode'](_0x431512){var _0x562df3=_0x15446c;return this[_0x562df3(0x1c6)]()[_0x562df3(0x1b9)](_0xf10cf1=>_0xf10cf1[_0x562df3(0x1c0)]===_0x431512&&_0xf10cf1[_0x562df3(0x1aa)]===_0x956497['CODE'])?this[_0x562df3(0x1a6)](_0x431512):null;}['getCodeAt'](_0x4efedd){var _0x2da1ea=_0x15446c;let _0x34b71b=this[_0x2da1ea(0x1c6)]()[_0x2da1ea(0x1ad)](_0x4f8da0=>_0x4f8da0[_0x2da1ea(0x1aa)]===_0x956497['CODE']&&_0x4f8da0[_0x2da1ea(0x1b4)]<=_0x4efedd&&_0x4efedd<=_0x4f8da0[_0x2da1ea(0x1c3)]);return _0x34b71b?this[_0x2da1ea(0x1a6)](_0x34b71b[_0x2da1ea(0x1c0)]):null;}[_0x15446c(0x1a0)](_0x41778f){return this['findCodes'](_0x41778f)[0x0]??null;}[_0x15446c(0x19d)](_0xa149c7){var _0x445967=_0x15446c;let _0x549ada=typeof _0xa149c7==_0x445967(0x1d5)?{'text':_0xa149c7}:_0xa149c7;return this[_0x445967(0x1b8)]()[_0x445967(0x1c8)](_0x7d5618=>!(_0x549ada['blockId']&&_0x7d5618['getId']()!==_0x549ada[_0x445967(0x1c0)]||_0x549ada[_0x445967(0x1b0)]&&!_0x7d5618[_0x445967(0x1bc)]()[_0x445967(0x19a)](_0x549ada[_0x445967(0x1b0)])));}['insertCode'](_0x25a0a7={},_0x12bf5e={}){var _0x5cc534=_0x15446c;let _0x4a5849=this[_0x5cc534(0x1c9)][_0x5cc534(0x1cb)](_0x29fab8),_0x80fe3e=_0x1b4abd(_0x25a0a7)?{..._0x12bf5e,..._0x25a0a7[_0x5cc534(0x1a1)]()}:_0x25a0a7,_0xb915e1=_0x80fe3e[_0x5cc534(0x1c0)]??_0x1ec0c6(0x6);return _0x4a5849[_0x5cc534(0x199)](_0x35c08b['id'],{..._0x80fe3e,'blockId':_0xb915e1,'unitId':this[_0x5cc534(0x1a8)]()})?this[_0x5cc534(0x198)](_0xb915e1):null;}[_0x15446c(0x1c6)](){var _0x486b62=_0x15446c,_0x39b919;return((_0x39b919=this['save']()[_0x486b62(0x1cf)])==null?void 0x0:_0x39b919[_0x486b62(0x1c7)])??[];}[_0x15446c(0x1a6)](_0xae86bb){return this['_injector']['createInstance'](b,this,_0xae86bb);}};_0x193b6d['extend'](S);export{b as FDocumentCode};
1
+ var _0x523619=_0x3e77;function _0x273d(){var _0x523f53=['15656mvVdiS','find','replace','defineProperty','function','filter','_unitId','CODE','3LhfaaV','_injector','body','endIndex','getText','remove','slice','8488578etzGfD','_blockId','_document','SECTION_BREAK','extend','blockId','config','includes','findCodeByText','2621020gSPome','getCodeAt','getCodeConfig','getId','constructor','10PxHSAd','map','_getBlockRange','from','prototype','7KLoOsw','getRange','iterator','BLOCK_START','default','insertCode','_getDocumentData','8699273NUgBsH','888288fBJPci','unwrap','call','5097752SEzUWm','decorate','BLOCK_END','startIndex','get','describe','_getBlockRanges','toPrimitive','_createFDocumentCode','622666mMSqVf','4239YXFynn','some','save','getConfig','text','object','updateConfig','getCodes','blockRanges','createInstance','blockType','string','getCode','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','syncExecuteCommand'];_0x273d=function(){return _0x523f53;};return _0x273d();}(function(_0x335eb2,_0x65d4a4){var _0x9e8b56=_0x3e77,_0x562101=_0x335eb2();while(!![]){try{var _0x201c67=parseInt(_0x9e8b56(0x178))/0x1+parseInt(_0x9e8b56(0x184))/0x2+parseInt(_0x9e8b56(0x156))/0x3*(-parseInt(_0x9e8b56(0x17b))/0x4)+parseInt(_0x9e8b56(0x166))/0x5+parseInt(_0x9e8b56(0x15d))/0x6*(-parseInt(_0x9e8b56(0x170))/0x7)+-parseInt(_0x9e8b56(0x14e))/0x8*(-parseInt(_0x9e8b56(0x185))/0x9)+-parseInt(_0x9e8b56(0x16b))/0xa*(-parseInt(_0x9e8b56(0x177))/0xb);if(_0x201c67===_0x65d4a4)break;else _0x562101['push'](_0x562101['shift']());}catch(_0x42a83b){_0x562101['push'](_0x562101['shift']());}}}(_0x273d,0xb66ce));import{DocsCodeInsertCommand as _0x1084c1,DocsCodeModel as _0x1795d6,DocsCodeRemoveCommand as _0x388fa1,DocsCodeUnwrapCommand as _0x5d55d7,DocsCodeUpdateCommand as _0x37caab,normalizeDocsCodeConfig as _0x5d2e3b}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0xe08ab3,DocumentBlockRangeType as _0x1a5759,ICommandService as _0x55e8a6,Inject as _0x352200,Injector as _0x491548,generateRandomId as _0x535c1d}from'@univerjs/core';import{FDocument as _0x5dacc6,isParagraphFacade as _0x3dd811}from'@univerjs/docs/facade';function m(_0x4111a0){'@babel/helpers - typeof';var _0x563b17=_0x3e77;return m=typeof Symbol=='function'&&typeof Symbol[_0x563b17(0x172)]==_0x563b17(0x14c)?function(_0x28e975){return typeof _0x28e975;}:function(_0x42fb57){var _0x561bc2=_0x563b17;return _0x42fb57&&typeof Symbol==_0x561bc2(0x152)&&_0x42fb57[_0x561bc2(0x16a)]===Symbol&&_0x42fb57!==Symbol[_0x561bc2(0x16f)]?'symbol':typeof _0x42fb57;},m(_0x4111a0);}function h(_0x3c2f8c,_0x1b68db){var _0x53a937=_0x3e77;if(m(_0x3c2f8c)!=_0x53a937(0x143)||!_0x3c2f8c)return _0x3c2f8c;var _0x2be133=_0x3c2f8c[Symbol[_0x53a937(0x182)]];if(_0x2be133!==void 0x0){var _0x137533=_0x2be133[_0x53a937(0x17a)](_0x3c2f8c,_0x1b68db||_0x53a937(0x174));if(m(_0x137533)!=_0x53a937(0x143))return _0x137533;throw TypeError(_0x53a937(0x14b));}return(_0x1b68db===_0x53a937(0x149)?String:Number)(_0x3c2f8c);}function g(_0x1be631){var _0x5ad09f=h(_0x1be631,'string');return m(_0x5ad09f)=='symbol'?_0x5ad09f:_0x5ad09f+'';}function _(_0x589346,_0x9f4f2f,_0x17b56b){var _0x56be00=_0x3e77;return(_0x9f4f2f=g(_0x9f4f2f))in _0x589346?Object[_0x56be00(0x151)](_0x589346,_0x9f4f2f,{'value':_0x17b56b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x589346[_0x9f4f2f]=_0x17b56b,_0x589346;}function v(_0x8347f5,_0x32761b){return function(_0x2b6eba,_0x140e4b){_0x32761b(_0x2b6eba,_0x140e4b,_0x8347f5);};}function y(_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18){var _0x452aa2=_0x3e77,_0x469f3f=arguments['length'],_0x4c9071=_0x469f3f<0x3?_0x3e0a75:_0x200c18===null?_0x200c18=Object['getOwnPropertyDescriptor'](_0x3e0a75,_0x5db6d9):_0x200c18,_0xdefea2;if(typeof Reflect=='object'&&typeof Reflect[_0x452aa2(0x17c)]=='function')_0x4c9071=Reflect[_0x452aa2(0x17c)](_0x917fa5,_0x3e0a75,_0x5db6d9,_0x200c18);else{for(var _0x23dc93=_0x917fa5['length']-0x1;_0x23dc93>=0x0;_0x23dc93--)(_0xdefea2=_0x917fa5[_0x23dc93])&&(_0x4c9071=(_0x469f3f<0x3?_0xdefea2(_0x4c9071):_0x469f3f>0x3?_0xdefea2(_0x3e0a75,_0x5db6d9,_0x4c9071):_0xdefea2(_0x3e0a75,_0x5db6d9))||_0x4c9071);}return _0x469f3f>0x3&&_0x4c9071&&Object[_0x452aa2(0x151)](_0x3e0a75,_0x5db6d9,_0x4c9071),_0x4c9071;}let b=class{constructor(_0x249e1f,_0x80a068,_0x2150fe){var _0x97f0c8=_0x3e77;this['_document']=_0x249e1f,this[_0x97f0c8(0x15e)]=_0x80a068,this[_0x97f0c8(0x157)]=_0x2150fe,_(this,'_unitId',void 0x0),this[_0x97f0c8(0x154)]=this[_0x97f0c8(0x15f)][_0x97f0c8(0x169)]();}['getId'](){var _0x57ef20=_0x3e77;return this[_0x57ef20(0x15e)];}['getRange'](){var _0x349ee2=_0x3e77;let _0x3b5498=this['_getBlockRange']();return _0x3b5498?{'blockId':_0x3b5498['blockId'],'endIndex':_0x3b5498[_0x349ee2(0x159)],'startIndex':_0x3b5498['startIndex']}:null;}['getText'](){var _0xe8ffa5=_0x3e77,_0x39733d;let _0x1dc5a4=this['_getBlockRange'](),_0x305235=(_0x39733d=this['_getDocumentData']()[_0xe8ffa5(0x158)])==null?void 0x0:_0x39733d['dataStream'];return!_0x1dc5a4||!_0x305235?'':x(_0x305235[_0xe8ffa5(0x15c)](_0x1dc5a4[_0xe8ffa5(0x17e)]+0x1,_0x1dc5a4[_0xe8ffa5(0x159)]));}[_0x523619(0x180)](){var _0x25ce3f=_0x523619;let _0x572501=this[_0x25ce3f(0x171)]();return _0x572501?{..._0x572501,'config':this[_0x25ce3f(0x141)](),'text':this['getText'](),'type':_0x1a5759['CODE']}:null;}['getConfig'](){var _0x25bf1f=_0x523619;let _0x126f12=this[_0x25bf1f(0x157)][_0x25bf1f(0x17f)](_0x1795d6);return _0x5d2e3b(_0x126f12[_0x25bf1f(0x168)](this[_0x25bf1f(0x154)],this[_0x25bf1f(0x15e)]));}[_0x523619(0x144)](_0xd0d1ba){var _0x3b3774=_0x523619;return this[_0x3b3774(0x157)][_0x3b3774(0x17f)](_0x55e8a6)[_0x3b3774(0x14d)](_0x37caab['id'],{'blockId':this[_0x3b3774(0x15e)],'config':_0xd0d1ba[_0x3b3774(0x163)],'unitId':this[_0x3b3774(0x154)]});}[_0x523619(0x179)](){var _0x4095b0=_0x523619;return this['_injector']['get'](_0x55e8a6)['syncExecuteCommand'](_0x5d55d7['id'],{'blockId':this[_0x4095b0(0x15e)],'unitId':this[_0x4095b0(0x154)]});}[_0x523619(0x15b)](){var _0x4a1189=_0x523619;return this['_injector'][_0x4a1189(0x17f)](_0x55e8a6)[_0x4a1189(0x14d)](_0x388fa1['id'],{'blockId':this[_0x4a1189(0x15e)],'unitId':this[_0x4a1189(0x154)]});}[_0x523619(0x16d)](){var _0x59b8e8=_0x523619,_0x19e168;return((_0x19e168=this[_0x59b8e8(0x176)]()[_0x59b8e8(0x158)])==null||(_0x19e168=_0x19e168[_0x59b8e8(0x146)])==null?void 0x0:_0x19e168[_0x59b8e8(0x14f)](_0x1cc644=>_0x1cc644[_0x59b8e8(0x162)]===this[_0x59b8e8(0x15e)]&&_0x1cc644[_0x59b8e8(0x148)]===_0x1a5759[_0x59b8e8(0x155)]))??null;}[_0x523619(0x176)](){var _0x308cab=_0x523619;return this['_document'][_0x308cab(0x187)]();}};b=y([v(0x2,_0x352200(_0x491548))],b);function _0x3e77(_0x8ff20b,_0xa1f21d){_0x8ff20b=_0x8ff20b-0x141;var _0x273dcc=_0x273d();var _0x3e77d2=_0x273dcc[_0x8ff20b];return _0x3e77d2;}function x(_0xaa9811){var _0x7b1757=_0x523619;return Array[_0x7b1757(0x16e)](_0xaa9811)[_0x7b1757(0x16c)](_0x4c79d4=>_0x4c79d4===_0xe08ab3['PARAGRAPH']?'\x0a':_0x4c79d4)['filter'](_0x2e89ba=>_0x2e89ba!==_0xe08ab3[_0x7b1757(0x173)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x17d)]&&_0x2e89ba!==_0xe08ab3[_0x7b1757(0x160)])['join']('')[_0x7b1757(0x150)](/\n$/,'');}var S=class extends _0x5dacc6{[_0x523619(0x145)](){var _0x1c31c3=_0x523619;return this['_getBlockRanges']()[_0x1c31c3(0x153)](_0x4701e5=>_0x4701e5[_0x1c31c3(0x148)]===_0x1a5759['CODE'])[_0x1c31c3(0x16c)](_0x2d2585=>this[_0x1c31c3(0x183)](_0x2d2585[_0x1c31c3(0x162)]));}[_0x523619(0x14a)](_0x4f9c6e){var _0x1a3f5b=_0x523619;return this[_0x1a3f5b(0x181)]()[_0x1a3f5b(0x186)](_0x31a680=>_0x31a680[_0x1a3f5b(0x162)]===_0x4f9c6e&&_0x31a680[_0x1a3f5b(0x148)]===_0x1a5759[_0x1a3f5b(0x155)])?this[_0x1a3f5b(0x183)](_0x4f9c6e):null;}[_0x523619(0x167)](_0x3ab4f4){var _0x1837da=_0x523619;let _0x1912b7=this[_0x1837da(0x181)]()[_0x1837da(0x14f)](_0x4d6e7f=>_0x4d6e7f[_0x1837da(0x148)]===_0x1a5759[_0x1837da(0x155)]&&_0x4d6e7f[_0x1837da(0x17e)]<=_0x3ab4f4&&_0x3ab4f4<=_0x4d6e7f['endIndex']);return _0x1912b7?this[_0x1837da(0x183)](_0x1912b7[_0x1837da(0x162)]):null;}[_0x523619(0x165)](_0x3555cb){return this['findCodes'](_0x3555cb)[0x0]??null;}['findCodes'](_0x96085c){var _0x180fb6=_0x523619;let _0x5898c7=typeof _0x96085c==_0x180fb6(0x149)?{'text':_0x96085c}:_0x96085c;return this[_0x180fb6(0x145)]()[_0x180fb6(0x153)](_0x57de9a=>!(_0x5898c7[_0x180fb6(0x162)]&&_0x57de9a['getId']()!==_0x5898c7['blockId']||_0x5898c7[_0x180fb6(0x142)]&&!_0x57de9a[_0x180fb6(0x15a)]()[_0x180fb6(0x164)](_0x5898c7[_0x180fb6(0x142)])));}[_0x523619(0x175)](_0x45ec4a={},_0x338f7e={}){var _0x18a3d3=_0x523619;let _0x100377=this[_0x18a3d3(0x157)][_0x18a3d3(0x17f)](_0x55e8a6),_0x4b99fe=_0x3dd811(_0x45ec4a)?{..._0x338f7e,..._0x45ec4a['getRange']()}:_0x45ec4a,_0x4f4ec7=_0x4b99fe[_0x18a3d3(0x162)]??_0x535c1d(0x6);return _0x100377[_0x18a3d3(0x14d)](_0x1084c1['id'],{..._0x4b99fe,'blockId':_0x4f4ec7,'unitId':this[_0x18a3d3(0x169)]()})?this[_0x18a3d3(0x14a)](_0x4f4ec7):null;}['_getBlockRanges'](){var _0x36d51a=_0x523619,_0x4e0b53;return((_0x4e0b53=this[_0x36d51a(0x187)]()[_0x36d51a(0x158)])==null?void 0x0:_0x4e0b53['blockRanges'])??[];}[_0x523619(0x183)](_0x400106){var _0x4e0cab=_0x523619;return this[_0x4e0cab(0x157)][_0x4e0cab(0x147)](b,this,_0x400106);}};_0x5dacc6[_0x523619(0x161)](S);export{b as FDocumentCode};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x38ccbe=_0x3bd1;(function(_0x4bb629,_0x377859){const _0x32f79d=_0x3bd1,_0x4192ea=_0x4bb629();while(!![]){try{const _0x4ddd94=-parseInt(_0x32f79d(0x1f6))/0x1*(parseInt(_0x32f79d(0x23d))/0x2)+parseInt(_0x32f79d(0x1f1))/0x3*(-parseInt(_0x32f79d(0x24a))/0x4)+-parseInt(_0x32f79d(0x1e9))/0x5*(-parseInt(_0x32f79d(0x1d9))/0x6)+parseInt(_0x32f79d(0x1fa))/0x7*(-parseInt(_0x32f79d(0x209))/0x8)+-parseInt(_0x32f79d(0x1c7))/0x9+parseInt(_0x32f79d(0x23a))/0xa*(parseInt(_0x32f79d(0x20b))/0xb)+-parseInt(_0x32f79d(0x218))/0xc*(-parseInt(_0x32f79d(0x1dc))/0xd);if(_0x4ddd94===_0x377859)break;else _0x4192ea['push'](_0x4192ea['shift']());}catch(_0xcb812b){_0x4192ea['push'](_0x4192ea['shift']());}}}(_0x24a1,0x25715));import{BooleanNumber as _0x13bc9a,BuildTextUtils as _0x499c92,CommandType as _0x3bfa60,DataStreamTreeTokenType as _0x2bd879,DependentOn as _0x396b79,Disposable as _0x57fd06,DocumentBlockRangeType as _0x1eda82,ICommandService as _0xdb0750,IConfigService as _0xbac78a,IResourceManagerService as _0x240e67,IUniverInstanceService as _0x5a5f70,Inject as _0x721b34,Injector as _0x468616,JSONX as _0x4fed8a,Plugin as _0x306d08,TextX as _0x419f99,UniverInstanceType as _0x4b2cc7,containsInteriorInsertionOffset as _0x295484,containsStreamIndex as _0x1a3297,createParagraphId as _0x3aac9b,generateRandomId as _0x58a671,getBlockRangeInterval as _0x50e957,getBodySliceForTextXAction as _0x984afb,getParagraphContentStartOffset as _0x4a227f,getParagraphContentStartOffsets as _0x51a758,getParagraphFollowingBlockOffset as _0xb48c5,getSingleDataStreamChange as _0x413f3d,intersectsOperationalIntervals as _0x2347a1,merge as _0x508a50,shiftExclusiveRangeOnDelete as _0x165f7b,shiftExclusiveRangeOnInsert as _0x829088,shiftInclusiveRangeOnDelete as _0x2199d2,shiftInclusiveRangeOnInsert as _0x2201ac}from'@univerjs/core';import{Subject as _0x348405}from'rxjs';import{DocSelectionManagerService as _0x494e3c,RichTextEditingMutation as _0x36892e,UniverDocsPlugin as _0x35d67d,getContentInsertRange as _0x32742b,isHeaderFooterSelection as _0x33c357}from'@univerjs/docs';import{UniverLicensePlugin as _0x2122b7}from'@univerjs-pro/license';const Se={'language':'javascript','showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x406fe2){return{...Se,..._0x406fe2};}function y(_0x195955){const _0x508eb9=_0x3bd1;let _0x247e13=(_0x195955==null?void 0x0:_0x195955[_0x508eb9(0x257)])??{};return{'codes':Object[_0x508eb9(0x1f0)](Object[_0x508eb9(0x235)](_0x247e13)[_0x508eb9(0x1c4)](([_0x397fb8,_0x524bc7])=>[_0x397fb8,v(_0x524bc7)]))};}function b(_0x4144f8,_0x244153,_0x46e1f1){const _0x35f12e=_0x3bd1;let _0x541333=y(_0x4144f8);return _0x541333[_0x35f12e(0x257)][_0x244153]=v({..._0x541333[_0x35f12e(0x257)][_0x244153],..._0x46e1f1}),_0x541333;}function x(_0x2f47dd,_0x54917c){const _0xf7647f=_0x3bd1;let _0x31c965=y(_0x2f47dd);return delete _0x31c965[_0xf7647f(0x257)][_0x54917c],_0x31c965;}function S(_0x54b4d6){'@babel/helpers - typeof';const _0x55b13a=_0x3bd1;return S=typeof Symbol==_0x55b13a(0x1e7)&&typeof Symbol[_0x55b13a(0x1ff)]==_0x55b13a(0x1cb)?function(_0x665d98){return typeof _0x665d98;}:function(_0x57d91e){const _0x1b481d=_0x55b13a;return _0x57d91e&&typeof Symbol==_0x1b481d(0x1e7)&&_0x57d91e[_0x1b481d(0x220)]===Symbol&&_0x57d91e!==Symbol['prototype']?_0x1b481d(0x1cb):typeof _0x57d91e;},S(_0x54b4d6);}function Ce(_0x1476c4,_0x3dfc53){const _0x59ec6e=_0x3bd1;if(S(_0x1476c4)!=_0x59ec6e(0x243)||!_0x1476c4)return _0x1476c4;var _0x377cbc=_0x1476c4[Symbol[_0x59ec6e(0x1f2)]];if(_0x377cbc!==void 0x0){var _0x572ef9=_0x377cbc[_0x59ec6e(0x211)](_0x1476c4,_0x3dfc53||_0x59ec6e(0x1c6));if(S(_0x572ef9)!=_0x59ec6e(0x243))return _0x572ef9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3dfc53===_0x59ec6e(0x250)?String:Number)(_0x1476c4);}function we(_0x16503a){const _0x1af9f2=_0x3bd1;var _0x59cd63=Ce(_0x16503a,_0x1af9f2(0x250));return S(_0x59cd63)==_0x1af9f2(0x1cb)?_0x59cd63:_0x59cd63+'';}function C(_0x514b4d,_0x369f1a,_0x134a6e){const _0x403fb0=_0x3bd1;return(_0x369f1a=we(_0x369f1a))in _0x514b4d?Object[_0x403fb0(0x20f)](_0x514b4d,_0x369f1a,{'value':_0x134a6e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x514b4d[_0x369f1a]=_0x134a6e,_0x514b4d;}var w=class extends _0x57fd06{constructor(..._0x52ed55){const _0x4b01c0=_0x3bd1;super(..._0x52ed55),C(this,'_resources',new Map()),C(this,_0x4b01c0(0x21e),new _0x348405()),C(this,_0x4b01c0(0x22e),this[_0x4b01c0(0x21e)]['asObservable']());}['getCodeConfig'](_0x17db02,_0x4db4d1){const _0x965200=_0x3bd1;return y(this[_0x965200(0x1c9)][_0x965200(0x1fb)](_0x17db02))['codes'][_0x4db4d1];}[_0x38ccbe(0x231)](_0x123fce,_0x206af9,_0x4a45d8){const _0x3080ad=_0x38ccbe;this[_0x3080ad(0x1d3)](_0x123fce,_0x206af9,b(this[_0x3080ad(0x1c9)][_0x3080ad(0x1fb)](_0x123fce),_0x206af9,_0x4a45d8));}[_0x38ccbe(0x1c8)](_0x4b7e18,_0x4273c1){const _0xd4509f=_0x38ccbe;this['_setResource'](_0x4b7e18,_0x4273c1,x(this[_0xd4509f(0x1c9)]['get'](_0x4b7e18),_0x4273c1));}['serialize'](_0x423166){const _0x3fdd15=_0x38ccbe;return y(this[_0x3fdd15(0x1c9)][_0x3fdd15(0x1fb)](_0x423166));}[_0x38ccbe(0x1d2)](_0x39a5d0,_0x15b767){const _0x4a0548=_0x38ccbe;this[_0x4a0548(0x1c9)][_0x4a0548(0x22f)](_0x39a5d0,y(_0x15b767)),this[_0x4a0548(0x21e)]['next']({'unitId':_0x39a5d0});}[_0x38ccbe(0x260)](_0x2db8eb){const _0x4aae28=_0x38ccbe;this[_0x4aae28(0x1c9)][_0x4aae28(0x259)](_0x2db8eb),this[_0x4aae28(0x21e)][_0x4aae28(0x1da)]({'unitId':_0x2db8eb});}[_0x38ccbe(0x1e4)](){const _0x4f2bff=_0x38ccbe;super[_0x4f2bff(0x1e4)](),this[_0x4f2bff(0x1c9)][_0x4f2bff(0x23b)](),this[_0x4f2bff(0x21e)][_0x4f2bff(0x245)]();}[_0x38ccbe(0x1d3)](_0x3a502c,_0xf8a481,_0x3041d4){const _0x56bd5d=_0x38ccbe;this[_0x56bd5d(0x1c9)][_0x56bd5d(0x22f)](_0x3a502c,_0x3041d4),this['_change$'][_0x56bd5d(0x1da)]({'unitId':_0x3a502c,'blockId':_0xf8a481});}};const Te={'id':_0x38ccbe(0x261),'type':_0x3bfa60['MUTATION'],'handler':(_0xfca747,_0x5643cb)=>!(_0x5643cb!=null&&_0x5643cb['unitId'])||!_0x5643cb[_0x38ccbe(0x208)]?!0x1:(_0xfca747[_0x38ccbe(0x1fb)](w)[_0x38ccbe(0x231)](_0x5643cb[_0x38ccbe(0x1cd)],_0x5643cb[_0x38ccbe(0x208)],_0x5643cb['config']),!0x0)},T={'id':'docs-code.mutation.remove-config','type':_0x3bfa60['MUTATION'],'handler':(_0x116bf2,_0x1d476c)=>!(_0x1d476c!=null&&_0x1d476c[_0x38ccbe(0x1cd)])||!_0x1d476c[_0x38ccbe(0x208)]?!0x1:(_0x116bf2['get'](w)[_0x38ccbe(0x1c8)](_0x1d476c['unitId'],_0x1d476c[_0x38ccbe(0x208)]),!0x0)},Ee=_0x38ccbe(0x1ef);var E=class extends Error{constructor(_0x4ffdbc='Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries'){super(_0x4ffdbc);}};function De(_0x245037){const _0x8c54=_0x38ccbe;var _0x57a247;let _0xbefa52=O(_0x245037[_0x8c54(0x21a)]),_0x3be7d7=A(_0xbefa52),_0x1cf925=ke(_0x245037[_0x8c54(0x236)],_0x245037[_0x8c54(0x256)]),_0x447f53=_0x1cf925?(_0x57a247=_0x3be7d7[_0x8c54(0x246)])==null?void 0x0:_0x57a247[_0x8c54(0x23e)](_0x2ac35b=>{const _0x3e329b=_0x8c54;let _0x42966b=_0x50e957(_0x2ac35b);return _0x42966b[_0x3e329b(0x236)]===_0x1cf925[_0x3e329b(0x236)]&&_0x42966b[_0x3e329b(0x256)]===_0x1cf925['endOffset'];}):void 0x0,{startOffset:_0x6ac526,endOffset:_0x5c52bb}=_0x447f53?_0x1cf925:We(_0x3be7d7,_0x245037[_0x8c54(0x236)],_0x245037[_0x8c54(0x256)],_0x245037['insertionMode']);if(!_0x447f53&&Ae(_0x3be7d7,_0x6ac526,_0x5c52bb))throw new E(_0x8c54(0x1c5));let _0x1a71d0=qe(_0x3be7d7,_0x6ac526,_0x5c52bb),_0x4ea6bb=(_0x447f53==null?void 0x0:_0x447f53[_0x8c54(0x208)])??_0x245037['blockId'],_0x6d3a12=b(_0x245037[_0x8c54(0x202)],_0x4ea6bb,{...Se,..._0x245037[_0x8c54(0x210)]});if(_0x447f53)return _0x447f53['blockType']=_0x1eda82['CODE'],Oe(_0x3be7d7,_0x6ac526,_0x5c52bb),ze(_0x3be7d7,_0x6ac526,_0x5c52bb,_0x1a71d0),N(_0x3be7d7,_0x447f53),{'nextDocumentData':_0xbefa52,'nextMetadata':_0x6d3a12,'cursorOffset':_0x6ac526+0x1};if(_0x6ac526===_0x5c52bb){var _0x45269e,_0x3c80c6;let _0x675199=''+_0x2bd879[_0x8c54(0x1f8)]+_0x2bd879[_0x8c54(0x22c)]+_0x2bd879['BLOCK_END'];P(_0x3be7d7,_0x6ac526,_0x675199,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x3aac9b(new Set((_0x45269e=_0x3be7d7[_0x8c54(0x20a)])==null?void 0x0:_0x45269e['map'](_0x137aab=>_0x137aab['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x1a71d0)}],'blockRanges':[{'blockId':_0x4ea6bb,'blockType':_0x1eda82[_0x8c54(0x233)],'startIndex':0x0,'endIndex':_0x675199[_0x8c54(0x238)]-0x1}]});let _0x588e98=(_0x3c80c6=_0x3be7d7['blockRanges'])==null?void 0x0:_0x3c80c6['find'](_0x3f6a51=>_0x3f6a51[_0x8c54(0x208)]===_0x4ea6bb);return _0x588e98&&N(_0x3be7d7,_0x588e98),{'nextDocumentData':_0xbefa52,'nextMetadata':_0x6d3a12,'cursorOffset':_0x6ac526+0x1};}P(_0x3be7d7,_0x5c52bb,_0x2bd879[_0x8c54(0x205)]),P(_0x3be7d7,_0x6ac526,_0x2bd879['BLOCK_START']),ze(_0x3be7d7,_0x6ac526,_0x5c52bb+0x1,_0x1a71d0);let _0x192dc9={'blockId':_0x4ea6bb,'blockType':_0x1eda82[_0x8c54(0x233)],'startIndex':_0x6ac526,'endIndex':_0x5c52bb+0x1};return _0x3be7d7[_0x8c54(0x246)]=[..._0x3be7d7[_0x8c54(0x246)]??[],_0x192dc9][_0x8c54(0x252)]((_0x166f11,_0x4a40f1)=>_0x166f11[_0x8c54(0x1ed)]-_0x4a40f1[_0x8c54(0x1ed)]),N(_0x3be7d7,_0x192dc9),{'nextDocumentData':_0xbefa52,'nextMetadata':_0x6d3a12,'cursorOffset':_0x6ac526+0x1};}function Oe(_0x2da713,_0x11b264,_0x1d04c8){const _0x5d80a1=_0x38ccbe;(_0x2da713[_0x5d80a1(0x20a)]??[])[_0x5d80a1(0x22a)](_0x4f4e6c=>_0x4f4e6c[_0x5d80a1(0x1ed)]>_0x11b264&&_0x4f4e6c[_0x5d80a1(0x1ed)]<_0x1d04c8)['forEach'](_0x1c55dd=>{const _0xfdf5c1=_0x5d80a1;let _0x2da4f7={..._0x1c55dd[_0xfdf5c1(0x251)]??{}};delete _0x2da4f7['spaceAbove'],delete _0x2da4f7['spaceBelow'],_0x1c55dd[_0xfdf5c1(0x251)]=_0x2da4f7;});}function ke(_0x441365,_0x11ca0d){const _0x54c38b=_0x38ccbe;return _0x441365==null||_0x11ca0d==null||_0x441365===_0x11ca0d?null:{'startOffset':Math[_0x54c38b(0x1dd)](_0x441365,_0x11ca0d),'endOffset':Math[_0x54c38b(0x206)](_0x441365,_0x11ca0d)};}function Ae(_0xcc72c5,_0x2a82b4,_0x4bd57b){const _0x4090d3=_0x38ccbe;return(_0xcc72c5[_0x4090d3(0x246)]??[])['some'](_0x59e9bb=>{let _0xbec2c=_0x50e957(_0x59e9bb);return _0x2a82b4===_0x4bd57b?_0x295484(_0xbec2c,_0x2a82b4):_0x2347a1(_0xbec2c,{'startOffset':_0x2a82b4,'endOffset':_0x4bd57b});});}function je(_0x469863){const _0x41f852=_0x38ccbe;return{'nextDocumentData':O(_0x469863[_0x41f852(0x21a)]),'nextMetadata':b(_0x469863['metadata'],_0x469863[_0x41f852(0x208)],_0x469863[_0x41f852(0x210)]),'cursorOffset':0x0};}function D(_0x343a88){const _0x10cae3=_0x38ccbe;let _0x1b3b2c=O(_0x343a88[_0x10cae3(0x21a)]),_0x1619e4=A(_0x1b3b2c),_0x4714f4=Fe(_0x1619e4,_0x343a88[_0x10cae3(0x208)]);if(!_0x4714f4)return null;let _0x4d1f23=He(_0x1619e4,_0x4714f4);return{'nextDocumentData':_0x1b3b2c,'nextMetadata':x(_0x343a88['metadata'],_0x343a88[_0x10cae3(0x208)]),'cursorOffset':_0x4d1f23};}function Me(_0x421c29){const _0x5793c3=_0x38ccbe;var _0x118522;let _0x16e622=O(_0x421c29['documentData']),_0x276439=A(_0x16e622),_0x2099cc=Fe(_0x276439,_0x421c29[_0x5793c3(0x208)]);if(!_0x2099cc)return null;let _0x3227fd=_0x50e957(_0x2099cc);return F(_0x276439,_0x3227fd[_0x5793c3(0x236)],_0x3227fd[_0x5793c3(0x256)]),_0x276439[_0x5793c3(0x246)]=(_0x118522=_0x276439[_0x5793c3(0x246)])==null?void 0x0:_0x118522[_0x5793c3(0x22a)](_0xb1fbff=>_0xb1fbff[_0x5793c3(0x208)]!==_0x421c29[_0x5793c3(0x208)]),{'nextDocumentData':_0x16e622,'nextMetadata':x(_0x421c29['metadata'],_0x421c29[_0x5793c3(0x208)]),'cursorOffset':_0x2099cc['startIndex']};}function Ne(_0x5794ae){const _0x1182c4=_0x38ccbe;let _0x14861e=O(_0x5794ae['documentData']),_0x3c7af8=A(_0x14861e),_0x4d9707=Le(_0x3c7af8,_0x5794ae[_0x1182c4(0x21d)]);return _0x4d9707&&Pe(_0x14861e,_0x3c7af8,_0x4d9707,_0x5794ae['cursorOffset'],_0x5794ae['paragraphStartIndex'])||null;}function _0x3bd1(_0x37dded,_0x8b9850){_0x37dded=_0x37dded-0x1c4;const _0x24a10c=_0x24a1();let _0x3bd146=_0x24a10c[_0x37dded];return _0x3bd146;}function Pe(_0xf2339b,_0x2083fe,_0x3c3255,_0x440a5e,_0x23522e){const _0x32620a=_0x38ccbe;let _0x4781c3=$e(_0x2083fe,_0x3c3255,_0x440a5e,_0x23522e);if(!_0x4781c3)return null;let _0x46d586=_0x4781c3['endTokenOffset']-0x1;return F(_0x2083fe,_0x4781c3['paragraph'][_0x32620a(0x1ed)],_0x4781c3[_0x32620a(0x227)][_0x32620a(0x1ed)]+0x1),{'nextDocumentData':_0xf2339b,'cursorOffset':_0x46d586};}function Fe(_0x3fb20e,_0x1443e0){const _0x2b3f70=_0x38ccbe;var _0x47e99b;return _0x3fb20e==null||(_0x47e99b=_0x3fb20e[_0x2b3f70(0x246)])==null?void 0x0:_0x47e99b['find'](_0x38bae9=>_0x38bae9['blockType']===_0x1eda82['CODE']&&_0x38bae9[_0x2b3f70(0x208)]===_0x1443e0);}function Ie(_0x11db60){const _0x211cf9=_0x38ccbe;let _0x5e0371=_0x11db60['documentData'][_0x211cf9(0x204)];if(!_0x5e0371)return!0x1;let _0x5d191e=_0x11db60[_0x211cf9(0x258)]===_0x211cf9(0x215)?_0x11db60['cursorOffset']-0x1:_0x11db60['cursorOffset'],_0x486b1b=_0x11db60['direction']==='right'?_0x11db60['cursorOffset']+0x1:_0x5d191e;return(_0x5e0371[_0x211cf9(0x246)]??[])[_0x211cf9(0x216)](_0x4f8ac1=>_0x4f8ac1['blockType']===_0x1eda82[_0x211cf9(0x233)]?_0x5d191e===_0x4f8ac1[_0x211cf9(0x1ed)]||_0x5d191e===_0x4f8ac1[_0x211cf9(0x201)]||_0x486b1b===_0x4f8ac1['startIndex']||_0x486b1b===_0x4f8ac1[_0x211cf9(0x201)]:!0x1);}function Le(_0x51a8d9,_0x4c3fc5){const _0x370a48=_0x38ccbe;var _0xdeda51;return(_0xdeda51=_0x51a8d9[_0x370a48(0x246)])==null?void 0x0:_0xdeda51[_0x370a48(0x23e)](_0x3c0c15=>{const _0x59a99c=_0x370a48;let _0x5a6770=M(_0x3c0c15);return _0x3c0c15['blockType']===_0x1eda82[_0x59a99c(0x233)]&&_0x3c0c15[_0x59a99c(0x1ed)]<=_0x4c3fc5&&_0x4c3fc5<=_0x5a6770+0x2;});}function Re(_0x269d27,_0x2d4cba,_0x2bc60b=!0x1){const _0x481648=_0x38ccbe;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x13bc9a[_0x481648(0x223)],'keepNext':_0x2d4cba?_0x13bc9a[_0x481648(0x1e8)]:_0x13bc9a['TRUE'],'widowControl':_0x13bc9a[_0x481648(0x223)],..._0x269d27&&_0x2bc60b?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x5bf56b,_0x5cb83d,_0x2bde52,_0x426ab7=!0x1){const _0x4b3bc3=_0x38ccbe;let _0x33b7f0=(_0x5bf56b['paragraphs']??[])[_0x4b3bc3(0x22a)](_0x386642=>_0x386642[_0x4b3bc3(0x1ed)]>_0x5cb83d&&_0x386642[_0x4b3bc3(0x1ed)]<_0x2bde52);_0x33b7f0[_0x4b3bc3(0x203)]((_0x5defe9,_0x225fdd)=>{const _0x38e9f5=_0x4b3bc3;_0x5defe9[_0x38e9f5(0x251)]={..._0x5defe9['paragraphStyle']??{},...Re(_0x225fdd===0x0,_0x225fdd===_0x33b7f0['length']-0x1,_0x426ab7)};});}function Be(_0x3ace13){const _0x36cac2=_0x38ccbe;var _0x3e249e,_0x3c6f4c;let _0x5413db={..._0x3ace13??{}};return delete _0x5413db[_0x36cac2(0x23f)],delete _0x5413db['indentStart'],delete _0x5413db['spaceAbove'],delete _0x5413db[_0x36cac2(0x1d8)],delete _0x5413db[_0x36cac2(0x24e)],delete _0x5413db[_0x36cac2(0x25b)],delete _0x5413db[_0x36cac2(0x1ca)],((_0x3e249e=_0x5413db['textStyle'])==null?void 0x0:_0x3e249e['ff'])===Ee&&((_0x3c6f4c=_0x5413db[_0x36cac2(0x20e)])==null?void 0x0:_0x3c6f4c['fs'])===0xc&&delete _0x5413db[_0x36cac2(0x20e)],_0x5413db;}function Ve(_0x533c5d,_0x2ffd3e){const _0x4a7a3b=_0x38ccbe;let _0x11ffb6=M(_0x2ffd3e);return(_0x533c5d[_0x4a7a3b(0x20a)]??[])[_0x4a7a3b(0x22a)](_0x249581=>_0x249581[_0x4a7a3b(0x1ed)]>_0x2ffd3e['startIndex']&&_0x249581[_0x4a7a3b(0x1ed)]<_0x11ffb6);}function He(_0x15ca2d,_0x1a7100){const _0xb6947d=_0x38ccbe;var _0x3e9ad4;let _0x49f632=M(_0x1a7100);return Ve(_0x15ca2d,_0x1a7100)[_0xb6947d(0x203)](_0x17521f=>{const _0x123049=_0xb6947d;_0x17521f[_0x123049(0x251)]=Be(_0x17521f[_0x123049(0x251)]);}),F(_0x15ca2d,_0x49f632,_0x49f632+0x1),F(_0x15ca2d,_0x1a7100[_0xb6947d(0x1ed)],_0x1a7100[_0xb6947d(0x1ed)]+0x1),_0x15ca2d[_0xb6947d(0x246)]=(_0x3e9ad4=_0x15ca2d[_0xb6947d(0x246)])==null?void 0x0:_0x3e9ad4[_0xb6947d(0x22a)](_0x5e3168=>_0x5e3168[_0xb6947d(0x208)]!==_0x1a7100[_0xb6947d(0x208)]),_0x1a7100['startIndex'];}function O(_0x596822){const _0x54e887=_0x38ccbe;return{..._0x596822,'body':_0x596822[_0x54e887(0x204)]?Ue(_0x596822[_0x54e887(0x204)]):_0x596822['body']};}function Ue(_0x57b892){const _0x1f1d70=_0x38ccbe;var _0x573591,_0x9c19b9,_0x1d4292,_0x58f2f3,_0xb9336f,_0x570c72,_0x51133b,_0x2b4dd7,_0x1316a7;return{..._0x57b892,'paragraphs':(_0x573591=_0x57b892[_0x1f1d70(0x20a)])==null?void 0x0:_0x573591['map'](_0x3a3224=>({..._0x3a3224,'bullet':k(_0x3a3224[_0x1f1d70(0x20d)]),'paragraphStyle':k(_0x3a3224[_0x1f1d70(0x251)])})),'sectionBreaks':(_0x9c19b9=_0x57b892['sectionBreaks'])==null?void 0x0:_0x9c19b9['map'](_0x5cde8f=>({..._0x5cde8f})),'textRuns':(_0x1d4292=_0x57b892['textRuns'])==null?void 0x0:_0x1d4292[_0x1f1d70(0x1c4)](_0x29dad1=>({..._0x29dad1})),'tables':(_0x58f2f3=_0x57b892[_0x1f1d70(0x226)])==null?void 0x0:_0x58f2f3['map'](_0x6bcc23=>({..._0x6bcc23})),'columnGroups':(_0xb9336f=_0x57b892[_0x1f1d70(0x265)])==null?void 0x0:_0xb9336f[_0x1f1d70(0x1c4)](_0x594843=>{const _0x499e60=_0x1f1d70;var _0x20fb47;return{..._0x594843,'columns':(_0x20fb47=_0x594843[_0x499e60(0x1ce)])==null?void 0x0:_0x20fb47[_0x499e60(0x1c4)](_0xf01bd3=>k(_0xf01bd3))};}),'blockRanges':(_0x570c72=_0x57b892['blockRanges'])==null?void 0x0:_0x570c72[_0x1f1d70(0x1c4)](_0x2f4675=>({..._0x2f4675})),'customRanges':(_0x51133b=_0x57b892['customRanges'])==null?void 0x0:_0x51133b['map'](_0x2f9366=>({..._0x2f9366})),'customDecorations':(_0x2b4dd7=_0x57b892[_0x1f1d70(0x1fd)])==null?void 0x0:_0x2b4dd7[_0x1f1d70(0x1c4)](_0x290f09=>({..._0x290f09})),'customBlocks':(_0x1316a7=_0x57b892[_0x1f1d70(0x1cf)])==null?void 0x0:_0x1316a7[_0x1f1d70(0x1c4)](_0x3a283a=>({..._0x3a283a}))};}function k(_0x469b89){const _0x2a70d5=_0x38ccbe;return Array['isArray'](_0x469b89)?_0x469b89[_0x2a70d5(0x1c4)](_0x4683fa=>k(_0x4683fa)):!_0x469b89||typeof _0x469b89!=_0x2a70d5(0x243)?_0x469b89:Object[_0x2a70d5(0x1f0)](Object['entries'](_0x469b89)[_0x2a70d5(0x1c4)](([_0x46ef6a,_0x3d2ccb])=>[_0x46ef6a,k(_0x3d2ccb)]));}function A(_0x3c08f4){const _0x5ecdd0=_0x38ccbe;if(!_0x3c08f4[_0x5ecdd0(0x204)])throw Error(_0x5ecdd0(0x1d6));return _0x3c08f4[_0x5ecdd0(0x204)];}function We(_0x432fcf,_0x32fa78,_0x443bb0,_0x15c453='convert-paragraph'){const _0x14d092=_0x38ccbe;if(_0x32fa78==null||_0x443bb0==null){let _0x28c43e=Ke(_0x432fcf);return{'startOffset':_0x28c43e,'endOffset':_0x28c43e};}let _0x4950e0=Math[_0x14d092(0x1dd)](_0x32fa78,_0x443bb0),_0x2de79d=Math['max'](_0x32fa78,_0x443bb0),_0x5fe4c3=Ze(_0x432fcf,_0x4950e0,_0x2de79d);return _0x4950e0===_0x2de79d?_0x15c453==='insert-new'?{'startOffset':_0x4950e0,'endOffset':_0x2de79d}:Ge(_0x432fcf,_0x4950e0,_0x5fe4c3):Je(_0x432fcf,_0x4950e0,_0x2de79d,_0x5fe4c3);}function Ge(_0x45bb4e,_0x1edea1,_0x1198fd){const _0xf90441=_0x38ccbe;let _0x57be51=Ye(_0x45bb4e,_0x1edea1);if(_0x57be51){let _0x30ea01=j(_0x45bb4e,_0x57be51,_0x1198fd);if(_0x30ea01<_0x57be51[_0xf90441(0x1ed)])return{'startOffset':_0x30ea01,'endOffset':_0x1198fd?Math[_0xf90441(0x1dd)](_0x57be51['startIndex']+0x1,_0x1198fd[_0xf90441(0x256)]):_0x57be51[_0xf90441(0x1ed)]+0x1};}let _0x52523f=_0x1edea1===0x0&&_0x45bb4e[_0xf90441(0x200)][0x0]===_0x2bd879['PARAGRAPH']?0x1:_0x1edea1;return{'startOffset':_0x52523f,'endOffset':_0x52523f};}function Ke(_0x4ea3dd){const _0x44b073=_0x38ccbe;return _0x4ea3dd[_0x44b073(0x200)][_0x44b073(0x25d)](_0x2bd879[_0x44b073(0x1ee)])?Math[_0x44b073(0x206)](0x0,_0x4ea3dd[_0x44b073(0x200)][_0x44b073(0x238)]-0x1):_0x4ea3dd[_0x44b073(0x200)][_0x44b073(0x238)];}function qe(_0x18589a,_0x23b6e3,_0x186214){const _0x584d3e=_0x38ccbe;var _0x1eba82;let _0x2778d0=Math[_0x584d3e(0x1dd)](_0x23b6e3,_0x186214),_0x475b0a=Math[_0x584d3e(0x206)](_0x23b6e3,_0x186214);return!!((_0x1eba82=_0x18589a['tables'])!=null&&_0x1eba82[_0x584d3e(0x216)](_0x5ddc49=>_0x2778d0>_0x5ddc49['startIndex']&&_0x2778d0<_0x5ddc49[_0x584d3e(0x201)]||_0x475b0a>_0x5ddc49[_0x584d3e(0x1ed)]&&_0x475b0a<_0x5ddc49[_0x584d3e(0x201)]||_0x2778d0<=_0x5ddc49[_0x584d3e(0x1ed)]&&_0x475b0a>=_0x5ddc49['endIndex']));}function Je(_0x260a44,_0x396049,_0x170424,_0x1e4d32){const _0x5e5b0f=_0x38ccbe;let _0x3a9674=[..._0x260a44['paragraphs']??[]][_0x5e5b0f(0x252)]((_0xd54c7,_0x35504f)=>_0xd54c7[_0x5e5b0f(0x1ed)]-_0x35504f[_0x5e5b0f(0x1ed)]),_0x5c8898=_0x51a758(_0x260a44),_0x8157cf=_0x3a9674[_0x5e5b0f(0x23e)](_0xa6aaf9=>j(_0x260a44,_0xa6aaf9,_0x1e4d32,_0x5c8898)<=_0x396049&&_0x396049<=_0xa6aaf9[_0x5e5b0f(0x1ed)]),_0x4ed16f=_0x3a9674[_0x5e5b0f(0x23e)](_0x5b1fa1=>_0x5b1fa1[_0x5e5b0f(0x1ed)]>=_0x170424-0x1)??_0x3a9674[_0x3a9674[_0x5e5b0f(0x238)]-0x1];return{'startOffset':_0x8157cf?j(_0x260a44,_0x8157cf,_0x1e4d32,_0x5c8898):_0x396049,'endOffset':_0x4ed16f?Xe(_0x4ed16f,_0x1e4d32):_0x170424};}function Ye(_0x1e4c36,_0xef3538){const _0x33de34=_0x38ccbe;let _0x527b98=[..._0x1e4c36[_0x33de34(0x20a)]??[]][_0x33de34(0x252)]((_0xa74b6b,_0x4064bb)=>_0xa74b6b[_0x33de34(0x1ed)]-_0x4064bb[_0x33de34(0x1ed)]),_0x1b2adf=_0x51a758(_0x1e4c36);return _0x527b98['find'](_0xf38aed=>(_0x1b2adf[_0x33de34(0x1fb)](_0xf38aed[_0x33de34(0x1ed)])??0x0)<=_0xef3538&&_0xef3538<=_0xf38aed[_0x33de34(0x1ed)]);}function j(_0x3b371e,_0x3020ec,_0x3a480b,_0xffd34){const _0x428228=_0x38ccbe;let _0x2b24b5=(_0xffd34==null?void 0x0:_0xffd34['get'](_0x3020ec['startIndex']))??_0x4a227f(_0x3b371e,_0x3020ec);return _0x3a480b?Math[_0x428228(0x206)](_0x2b24b5,_0x3a480b[_0x428228(0x236)]):_0x2b24b5;}function Xe(_0x4744d8,_0x41c92){const _0x386387=_0x38ccbe;let _0x118b7d=_0x4744d8[_0x386387(0x1ed)]+0x1;return _0x41c92?Math[_0x386387(0x1dd)](_0x118b7d,_0x41c92[_0x386387(0x256)]):_0x118b7d;}function Ze(_0x30dc93,_0x185c23,_0x3ef897){const _0x5ac8d2=_0x38ccbe;let _0x3a5e70=Qe(_0x30dc93,_0x185c23),_0x324cf9=Qe(_0x30dc93,_0x185c23===_0x3ef897?_0x3ef897:Math[_0x5ac8d2(0x206)](_0x185c23,_0x3ef897-0x1));if(_0x3a5e70||_0x324cf9){if(!_0x3a5e70||!_0x324cf9||_0x3a5e70[_0x5ac8d2(0x237)]!==_0x324cf9[_0x5ac8d2(0x237)]||_0x3a5e70[_0x5ac8d2(0x23c)]!==_0x324cf9['endTokenOffset'])throw new E();return _0x3a5e70;}}function Qe(_0xb2f238,_0x8e5c40){const _0x41933f=_0x38ccbe;let _0x19a032=_0xb2f238['dataStream'],_0x38c2ee=-0x1;for(let _0xf39a77=Math[_0x41933f(0x1dd)](_0x8e5c40,_0x19a032[_0x41933f(0x238)]-0x1);_0xf39a77>=0x0;_0xf39a77--){let _0x390a66=_0x19a032[_0xf39a77];if(_0x390a66===_0x2bd879[_0x41933f(0x253)])return;if(_0x390a66===_0x2bd879[_0x41933f(0x1ea)]){_0x38c2ee=_0xf39a77;break;}}if(_0x38c2ee<0x0)return;let _0x36873a=_0x19a032['indexOf'](_0x2bd879['TABLE_CELL_END'],_0x38c2ee+0x1);if(!(_0x36873a<0x0||_0x8e5c40<_0x38c2ee+0x1||_0x8e5c40>_0x36873a-0x1))return{'startOffset':_0x38c2ee+0x1,'endOffset':Math['max'](_0x38c2ee+0x1,_0x36873a-0x1),'startTokenOffset':_0x38c2ee,'endTokenOffset':_0x36873a};}function M(_0x361a07){const _0x22ead6=_0x38ccbe;return _0x50e957(_0x361a07)[_0x22ead6(0x256)]-0x1;}function $e(_0x221e70,_0x5a2b4c,_0x56e60e,_0x58772){const _0x26bed4=_0x38ccbe;let _0x3f5ab0=M(_0x5a2b4c),_0x366d08=(_0x221e70['paragraphs']??[])[_0x26bed4(0x23e)](_0x1df956=>_0x1df956['startIndex']===_0x3f5ab0+0x1);if(!_0x366d08||_0x58772!=null&&_0x366d08[_0x26bed4(0x1ed)]!==_0x58772||_0x56e60e!=null&&(_0x56e60e<_0x3f5ab0||_0x56e60e>_0x366d08['startIndex']+0x1)||_0x221e70[_0x26bed4(0x200)][_0x366d08['startIndex']]!==_0x2bd879[_0x26bed4(0x22c)])return null;let _0x4a67b5=_0x4a227f(_0x221e70,_0x366d08),_0xc6f3ff=_0x221e70[_0x26bed4(0x200)][_0x26bed4(0x264)](_0x4a67b5,_0x366d08[_0x26bed4(0x1ed)]);return Array[_0x26bed4(0x20c)](_0xc6f3ff)[_0x26bed4(0x1f9)](_0x2861a9=>_0x2861a9===_0x2bd879[_0x26bed4(0x205)])?{'paragraph':_0x366d08,'endTokenOffset':_0x3f5ab0}:null;}function N(_0x113f9f,_0x4bb66a){const _0x18b481=_0x38ccbe;var _0x1e2a81;let _0x40b0a6=M(_0x4bb66a),_0x2f17ae=_0x113f9f[_0x18b481(0x200)][_0x40b0a6+0x1];(_0x2f17ae===_0x2bd879[_0x18b481(0x1ee)]||_0x2f17ae===void 0x0)&&P(_0x113f9f,_0x40b0a6+0x1,_0x2bd879['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3aac9b(new Set((_0x1e2a81=_0x113f9f['paragraphs'])==null?void 0x0:_0x1e2a81[_0x18b481(0x1c4)](_0x2e3359=>_0x2e3359[_0x18b481(0x249)])))}]});}function P(_0x403491,_0x2e0300,_0x4eab62,_0x238697={}){const _0x2b2915=_0x38ccbe;var _0x390967,_0x13d2fb;_0x4eab62&&(_0x403491[_0x2b2915(0x200)]=''+_0x403491[_0x2b2915(0x200)]['slice'](0x0,_0x2e0300)+_0x4eab62+_0x403491[_0x2b2915(0x200)][_0x2b2915(0x264)](_0x2e0300),et(_0x403491,_0x2e0300,_0x4eab62[_0x2b2915(0x238)]),(_0x390967=_0x238697[_0x2b2915(0x20a)])!=null&&_0x390967[_0x2b2915(0x238)]&&(_0x403491['paragraphs']=[..._0x403491[_0x2b2915(0x20a)]??[],..._0x238697[_0x2b2915(0x20a)][_0x2b2915(0x1c4)](_0x49cf5c=>({..._0x49cf5c,'startIndex':_0x49cf5c['startIndex']+_0x2e0300}))][_0x2b2915(0x252)]((_0x19e9ea,_0x5d53d3)=>_0x19e9ea[_0x2b2915(0x1ed)]-_0x5d53d3[_0x2b2915(0x1ed)])),(_0x13d2fb=_0x238697[_0x2b2915(0x246)])!=null&&_0x13d2fb[_0x2b2915(0x238)]&&(_0x403491[_0x2b2915(0x246)]=[..._0x403491[_0x2b2915(0x246)]??[],..._0x238697[_0x2b2915(0x246)]['map'](_0x81b99d=>({..._0x81b99d,'startIndex':_0x81b99d['startIndex']+_0x2e0300,'endIndex':_0x81b99d['endIndex']+_0x2e0300}))][_0x2b2915(0x252)]((_0x2bd270,_0x1d65da)=>_0x2bd270[_0x2b2915(0x1ed)]-_0x1d65da['startIndex'])));}function F(_0x27abcb,_0x2c95c7,_0x27d726){const _0x644d4=_0x38ccbe;let _0x52efab=_0x27d726-_0x2c95c7;_0x27abcb['dataStream']=''+_0x27abcb['dataStream'][_0x644d4(0x264)](0x0,_0x2c95c7)+_0x27abcb[_0x644d4(0x200)]['slice'](_0x27d726),tt(_0x27abcb,_0x2c95c7,_0x52efab);}function _0x24a1(){const _0x2ad876=['spaceBelow','66QrGPKG','next','_commandService','32461OvSKYK','min','docs-code.command.insert','getTextRanges','parse','insertLength','UNIVER_DOC','_config','dispose','decorate','insert-new','function','FALSE','78745DvuRFF','TABLE_CELL_START','blockType','onStarting','startIndex','SECTION_BREAK','monospace','fromEntries','60pdDpzX','toPrimitive','commandService','1.2.0','disposeWithMe','6BwRzVa','previousDocumentData','BLOCK_START','every','130508vbZFCx','get','keys','customDecorations','docs-code.command.cancel-empty-paragraph','iterator','dataStream','endIndex','metadata','forEach','body','BLOCK_END','max','docs-code.command.exit','blockId','88SMqXoN','paragraphs','7381lPdZlA','from','bullet','textStyle','defineProperty','config','call','registerCommand','serialize','stringify','left','some','_resourceManagerService','3372tzHAJl','insertionMode','documentData','packageName','docs-code.command.unwrap','cursorOffset','_change$','docs-code.command.update','constructor','insert','selectionManager','TRUE','_docsCodeModel','deleteLength','tables','paragraph','range','registerPluginResource','filter','nextMetadata','PARAGRAPH','docs-code.command.remove','change$','set','replaceDocRanges','setCodeConfig','add','CODE','replaceOp','entries','startOffset','startTokenOffset','length','getSnapshot','1090DkASBH','clear','endTokenOffset','34420uvUJIW','find','indentEnd','nextDocumentData','getCurrentUnitOfType','setConfig','object','sectionBreaks','complete','blockRanges','insertOp','removeOp','paragraphId','54508tlBEAr','docs-code.config','COMMAND','isArray','keepLines','getBody','string','paragraphStyle','sort','TABLE_CELL_END','model','push','endOffset','codes','direction','delete','getInstance','keepNext','_injector','endsWith','editOp','getOwnPropertyDescriptor','removeUnit','docs-code.mutation.set-config','start','handler','slice','columnGroups','DOC_CODE_PLUGIN','textRuns','map','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','default','1924074bazJUB','removeCode','_resources','widowControl','symbol','_initResource','unitId','columns','customBlocks','pluginName','syncExecuteCommand','deserialize','_setResource','paragraphStartIndex','customRanges','Document\x20body\x20is\x20required','_configService'];_0x24a1=function(){return _0x2ad876;};return _0x24a1();}function et(_0x2f22b0,_0x1fa5c3,_0x386a1f){const _0x3a8feb=_0x38ccbe;_0x2f22b0[_0x3a8feb(0x20a)]=I(_0x2f22b0[_0x3a8feb(0x20a)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x244)]=I(_0x2f22b0[_0x3a8feb(0x244)],_0x1fa5c3,_0x386a1f),_0x2f22b0['customBlocks']=I(_0x2f22b0[_0x3a8feb(0x1cf)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x267)]=nt(_0x2f22b0[_0x3a8feb(0x267)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x226)]=rt(_0x2f22b0[_0x3a8feb(0x226)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x265)]=R(_0x2f22b0[_0x3a8feb(0x265)],_0x1fa5c3,_0x386a1f),_0x2f22b0['customRanges']=R(_0x2f22b0[_0x3a8feb(0x1d5)],_0x1fa5c3,_0x386a1f),_0x2f22b0['customDecorations']=R(_0x2f22b0[_0x3a8feb(0x1fd)],_0x1fa5c3,_0x386a1f),_0x2f22b0[_0x3a8feb(0x246)]=R(_0x2f22b0[_0x3a8feb(0x246)],_0x1fa5c3,_0x386a1f);}function tt(_0x23ea0d,_0x2d03e2,_0x1689cb){const _0x44853c=_0x38ccbe;var _0x5dfbc6,_0x1d0f5d;_0x23ea0d[_0x44853c(0x20a)]=L(_0x23ea0d[_0x44853c(0x20a)],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x244)]=L(_0x23ea0d['sectionBreaks'],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x1cf)]=L(_0x23ea0d[_0x44853c(0x1cf)],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x267)]=(_0x5dfbc6=it((_0x1d0f5d=_0x23ea0d[_0x44853c(0x267)])==null?void 0x0:_0x1d0f5d[_0x44853c(0x1c4)](_0x51b9f5=>({..._0x51b9f5,'startIndex':_0x51b9f5['st'],'endIndex':_0x51b9f5['ed']})),_0x2d03e2,_0x1689cb))==null?void 0x0:_0x5dfbc6[_0x44853c(0x1c4)](_0x5b03d6=>{let {startIndex:_0x29c40e,endIndex:_0x436c3b,..._0x3f742e}=_0x5b03d6;return{..._0x3f742e,'st':_0x29c40e,'ed':_0x436c3b};}),_0x23ea0d[_0x44853c(0x226)]=it(_0x23ea0d['tables'],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x265)]=z(_0x23ea0d['columnGroups'],_0x2d03e2,_0x1689cb),_0x23ea0d['customRanges']=z(_0x23ea0d[_0x44853c(0x1d5)],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x1fd)]=z(_0x23ea0d['customDecorations'],_0x2d03e2,_0x1689cb),_0x23ea0d[_0x44853c(0x246)]=z(_0x23ea0d[_0x44853c(0x246)],_0x2d03e2,_0x1689cb);}function I(_0x567ff1,_0x28a723,_0x4714c1){const _0x2bd168=_0x38ccbe;return _0x567ff1==null?void 0x0:_0x567ff1['map'](_0x5a52f3=>_0x5a52f3[_0x2bd168(0x1ed)]>=_0x28a723?{..._0x5a52f3,'startIndex':_0x5a52f3[_0x2bd168(0x1ed)]+_0x4714c1}:_0x5a52f3);}function L(_0x22a1dd,_0x30152a,_0x2b54b1){const _0x45fc75=_0x38ccbe;let _0x4a4c49=_0x30152a+_0x2b54b1;return _0x22a1dd==null?void 0x0:_0x22a1dd[_0x45fc75(0x1c4)](_0x467002=>_0x467002[_0x45fc75(0x1ed)]>=_0x30152a&&_0x467002['startIndex']<_0x4a4c49?null:_0x467002['startIndex']>=_0x4a4c49?{..._0x467002,'startIndex':_0x467002[_0x45fc75(0x1ed)]-_0x2b54b1}:_0x467002)['filter'](_0x44ae78=>_0x44ae78!=null);}function nt(_0x351ae2,_0x4a38b4,_0x16c971){return _0x351ae2==null?void 0x0:_0x351ae2['map'](_0x4c2ad9=>_0x4c2ad9['st']>=_0x4a38b4?{..._0x4c2ad9,'st':_0x4c2ad9['st']+_0x16c971,'ed':_0x4c2ad9['ed']+_0x16c971}:_0x4c2ad9['ed']>_0x4a38b4?{..._0x4c2ad9,'ed':_0x4c2ad9['ed']+_0x16c971}:_0x4c2ad9);}function R(_0x1ecf3b,_0x488d22,_0x51ada8){const _0x1fad59=_0x38ccbe;return _0x1ecf3b==null?void 0x0:_0x1ecf3b[_0x1fad59(0x1c4)](_0x49793d=>_0x2201ac(_0x49793d,_0x488d22,_0x51ada8));}function rt(_0x44a5b0,_0x4a90b2,_0xc65263){const _0x452b68=_0x38ccbe;return _0x44a5b0==null?void 0x0:_0x44a5b0[_0x452b68(0x1c4)](_0x4895e0=>_0x829088(_0x4895e0,_0x4a90b2,_0xc65263));}function z(_0x1bb3db,_0x366a36,_0x298b8e){const _0x31b596=_0x38ccbe;return _0x1bb3db==null?void 0x0:_0x1bb3db[_0x31b596(0x1c4)](_0x109406=>_0x2199d2(_0x109406,_0x366a36,_0x298b8e))[_0x31b596(0x22a)](_0x315ddf=>_0x315ddf!=null);}function it(_0x34b7ed,_0x42bb46,_0x32450d){const _0x349996=_0x38ccbe;return _0x34b7ed==null?void 0x0:_0x34b7ed[_0x349996(0x1c4)](_0x518fb3=>_0x165f7b(_0x518fb3,_0x42bb46,_0x32450d))[_0x349996(0x22a)](_0x3bda17=>_0x3bda17!=null);}const at={'id':'docs-code.command.insert-below','type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':_0x18e735=>{const _0x2bac81=_0x38ccbe;var _0x1adc8b;if(_0x33c357(G(_0x18e735)))return!0x1;let _0x4fcb24=_0x32742b(_0x18e735);if(_0x4fcb24)return _0x18e735['get'](_0xdb0750)['syncExecuteCommand'](B['id'],{'startOffset':_0x4fcb24[_0x2bac81(0x236)],'endOffset':_0x4fcb24[_0x2bac81(0x256)],'insertionMode':_0x2bac81(0x1e6),'unitId':_0x4fcb24['unitId']});let _0x3c794c=ft(_0x18e735);if(!_0x3c794c)return!0x1;let _0x4856c8=(_0x1adc8b=_0x18e735['get'](_0x5a5f70)[_0x2bac81(0x241)](_0x4b2cc7[_0x2bac81(0x1e2)]))==null?void 0x0:_0x1adc8b[_0x2bac81(0x24f)](),_0x2c1605=_0x4856c8?_0xb48c5(_0x4856c8,_0x3c794c):_0x3c794c[_0x2bac81(0x1ed)]+0x1;return _0x18e735['get'](_0xdb0750)[_0x2bac81(0x1d1)](B['id'],{'startOffset':_0x2c1605,'endOffset':_0x2c1605});}},ot={'id':'docs-code.command.consume-boundary-delete','type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':()=>!0x0},B={'id':_0x38ccbe(0x1de),'type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':(_0x287619,_0x512cd0)=>{const _0x60cebe=_0x38ccbe;let _0xf3e920=W(_0x287619,_0x512cd0==null?void 0x0:_0x512cd0[_0x60cebe(0x1cd)]);if(!_0xf3e920)return!0x1;let _0x14679c=G(_0x287619);if(_0x33c357(_0x14679c))return!0x1;let _0x539271=_0xf3e920['model'][_0x60cebe(0x213)](_0xf3e920['unitId']),_0x1da855=lt(_0x512cd0,_0x14679c),_0x60ea6f=ut(_0xf3e920[_0x60cebe(0x1f7)],_0x1da855);if(_0x60ea6f){if(_0x60ea6f[_0x60cebe(0x1eb)]!==_0x1eda82[_0x60cebe(0x233)])return!0x1;let _0x91cd40=D({'blockId':_0x60ea6f[_0x60cebe(0x208)],'documentData':_0xf3e920[_0x60cebe(0x1f7)],'metadata':_0x539271});if(!_0x91cd40)return!0x1;let _0x47c7ce=Y(_0xf3e920[_0x60cebe(0x1f3)],_0xf3e920[_0x60cebe(0x222)],_0xf3e920['unitId'],_0xf3e920['previousDocumentData'],_0x91cd40['nextDocumentData'],B['id'],_0x91cd40[_0x60cebe(0x21d)]);return _0x47c7ce&&_0x91cd40[_0x60cebe(0x22b)]&&_0xf3e920[_0x60cebe(0x254)]['deserialize'](_0xf3e920[_0x60cebe(0x1cd)],_0x91cd40['nextMetadata']),_0x47c7ce;}let _0x147853=(_0x512cd0==null?void 0x0:_0x512cd0[_0x60cebe(0x208)])??_0x58a671(0x6),_0x4ab8ad;try{_0x4ab8ad=De({'blockId':_0x147853,'config':_0x512cd0==null?void 0x0:_0x512cd0['config'],'documentData':_0xf3e920[_0x60cebe(0x1f7)],'endOffset':_0x1da855==null?void 0x0:_0x1da855[_0x60cebe(0x256)],'insertionMode':_0x512cd0==null?void 0x0:_0x512cd0[_0x60cebe(0x219)],'metadata':_0x539271,'startOffset':_0x1da855==null?void 0x0:_0x1da855[_0x60cebe(0x236)]});}catch(_0x45063c){if(_0x45063c instanceof E)return!0x1;throw _0x45063c;}let _0x375937=Y(_0xf3e920[_0x60cebe(0x1f3)],_0xf3e920[_0x60cebe(0x222)],_0xf3e920[_0x60cebe(0x1cd)],_0xf3e920[_0x60cebe(0x1f7)],_0x4ab8ad[_0x60cebe(0x240)],B['id'],_0x4ab8ad[_0x60cebe(0x21d)]);return _0x375937&&_0x4ab8ad['nextMetadata']&&_0xf3e920[_0x60cebe(0x254)][_0x60cebe(0x1d2)](_0xf3e920[_0x60cebe(0x1cd)],_0x4ab8ad[_0x60cebe(0x22b)]),_0x375937;}},st={'id':_0x38ccbe(0x21f),'type':_0x3bfa60['COMMAND'],'handler':(_0x19fb02,_0x78a5d2)=>{const _0x4f2bbe=_0x38ccbe;if(!_0x78a5d2)return!0x1;let _0x437c85=W(_0x19fb02,_0x78a5d2[_0x4f2bbe(0x1cd)]);if(!_0x437c85)return!0x1;let _0x1315ca=je({'blockId':_0x78a5d2[_0x4f2bbe(0x208)],'config':_0x78a5d2[_0x4f2bbe(0x210)],'documentData':_0x437c85[_0x4f2bbe(0x1f7)],'metadata':_0x437c85[_0x4f2bbe(0x254)][_0x4f2bbe(0x213)](_0x437c85[_0x4f2bbe(0x1cd)])});return _0x1315ca[_0x4f2bbe(0x22b)]&&_0x437c85[_0x4f2bbe(0x254)]['deserialize'](_0x437c85[_0x4f2bbe(0x1cd)],_0x1315ca[_0x4f2bbe(0x22b)]),!0x0;}},ct={'id':_0x38ccbe(0x207),'type':_0x3bfa60['COMMAND'],'handler':(_0x3316e6,_0x13be02)=>V[_0x38ccbe(0x263)](_0x3316e6,_0x13be02)},V={'id':_0x38ccbe(0x21c),'type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':(_0x3812f9,_0xcab7)=>{const _0x4f0329=_0x38ccbe;if(!_0xcab7)return!0x1;let _0x586ade=W(_0x3812f9,_0xcab7==null?void 0x0:_0xcab7['unitId']);if(!_0x586ade)return!0x1;let _0x5f24b6=D({'blockId':_0xcab7[_0x4f0329(0x208)],'documentData':_0x586ade[_0x4f0329(0x1f7)],'metadata':_0x586ade['model'][_0x4f0329(0x213)](_0x586ade[_0x4f0329(0x1cd)])});if(!_0x5f24b6)return!0x1;let _0x5b81e5=Y(_0x586ade[_0x4f0329(0x1f3)],_0x586ade[_0x4f0329(0x222)],_0x586ade[_0x4f0329(0x1cd)],_0x586ade[_0x4f0329(0x1f7)],_0x5f24b6[_0x4f0329(0x240)],V['id'],_0x5f24b6[_0x4f0329(0x21d)]);return _0x5b81e5&&_0x5f24b6['nextMetadata']&&_0x586ade[_0x4f0329(0x254)][_0x4f0329(0x1d2)](_0x586ade[_0x4f0329(0x1cd)],_0x5f24b6[_0x4f0329(0x22b)]),_0x5b81e5;}},H={'id':_0x38ccbe(0x22d),'type':_0x3bfa60['COMMAND'],'handler':(_0x48229b,_0x24792d)=>{const _0x536a94=_0x38ccbe;if(!_0x24792d)return!0x1;let _0x5e3db0=W(_0x48229b,_0x24792d==null?void 0x0:_0x24792d['unitId']);if(!_0x5e3db0)return!0x1;let _0x179eef=Me({'blockId':_0x24792d[_0x536a94(0x208)],'documentData':_0x5e3db0[_0x536a94(0x1f7)],'metadata':_0x5e3db0[_0x536a94(0x254)]['serialize'](_0x5e3db0['unitId'])});if(!_0x179eef)return!0x1;let _0x57de0f=Y(_0x5e3db0['commandService'],_0x5e3db0[_0x536a94(0x222)],_0x5e3db0['unitId'],_0x5e3db0[_0x536a94(0x1f7)],_0x179eef['nextDocumentData'],H['id'],_0x179eef[_0x536a94(0x21d)]);return _0x57de0f&&_0x179eef[_0x536a94(0x22b)]&&_0x5e3db0['model'][_0x536a94(0x1d2)](_0x5e3db0[_0x536a94(0x1cd)],_0x179eef['nextMetadata']),_0x57de0f;}},U={'id':_0x38ccbe(0x1fe),'type':_0x3bfa60[_0x38ccbe(0x24c)],'handler':(_0x49304b,_0x556ccc)=>{const _0x286ee2=_0x38ccbe;var _0x285cfb;let _0x2fd8f3=W(_0x49304b,_0x556ccc==null?void 0x0:_0x556ccc['unitId']);if(!_0x2fd8f3)return!0x1;let _0x3d7b93=(_0x556ccc==null?void 0x0:_0x556ccc[_0x286ee2(0x21d)])??((_0x285cfb=G(_0x49304b))==null?void 0x0:_0x285cfb[_0x286ee2(0x236)]);if(_0x3d7b93==null)return!0x1;let _0x5525e3=Ne({'cursorOffset':_0x3d7b93,'documentData':_0x2fd8f3[_0x286ee2(0x1f7)],'paragraphStartIndex':_0x556ccc==null?void 0x0:_0x556ccc[_0x286ee2(0x1d4)]});return _0x5525e3?Y(_0x2fd8f3[_0x286ee2(0x1f3)],_0x2fd8f3[_0x286ee2(0x222)],_0x2fd8f3['unitId'],_0x2fd8f3['previousDocumentData'],_0x5525e3[_0x286ee2(0x240)],U['id'],_0x5525e3[_0x286ee2(0x21d)]):!0x1;}};function W(_0x58a464,_0x2bb19f){const _0x271aad=_0x38ccbe;let _0x2e8c77=_0x58a464[_0x271aad(0x1fb)](_0x5a5f70),_0x3845c9=_0x2bb19f?_0x2e8c77['getUnit'](_0x2bb19f,_0x4b2cc7[_0x271aad(0x1e2)]):_0x2e8c77[_0x271aad(0x241)](_0x4b2cc7[_0x271aad(0x1e2)]);return _0x3845c9?{'commandService':_0x58a464[_0x271aad(0x1fb)](_0xdb0750),'model':_0x58a464[_0x271aad(0x1fb)](w),'previousDocumentData':_0x3845c9[_0x271aad(0x239)](),'selectionManager':_0x58a464['get'](_0x494e3c),'unitId':_0x3845c9['getUnitId']()}:null;}function G(_0x1748ad){const _0x1cf8fa=_0x38ccbe;var _0xc84f27;return(_0xc84f27=_0x1748ad['get'](_0x494e3c)[_0x1cf8fa(0x1df)]())==null?void 0x0:_0xc84f27[0x0];}function lt(_0x48cdff,_0x23207c){const _0x24509f=_0x38ccbe;let _0x163bdf=(_0x48cdff==null?void 0x0:_0x48cdff[_0x24509f(0x236)])??(_0x23207c==null?void 0x0:_0x23207c[_0x24509f(0x236)]),_0x37f8a7=(_0x48cdff==null?void 0x0:_0x48cdff[_0x24509f(0x256)])??(_0x23207c==null?void 0x0:_0x23207c[_0x24509f(0x256)]);if(_0x163bdf!=null&&_0x37f8a7!=null)return{'endOffset':Math[_0x24509f(0x206)](_0x163bdf,_0x37f8a7),'startOffset':Math['min'](_0x163bdf,_0x37f8a7)};}function ut(_0xb23657,_0x244ea0){const _0x3d30d4=_0x38ccbe;var _0x162dab;if(!_0x244ea0)return;let _0x581a27=dt(_0x244ea0);return(_0x162dab=_0xb23657[_0x3d30d4(0x204)])==null||(_0x162dab=_0x162dab[_0x3d30d4(0x246)])==null?void 0x0:_0x162dab[_0x3d30d4(0x23e)](_0x59f79d=>{const _0x1af151=_0x3d30d4;let _0x338b59=_0x50e957(_0x59f79d);return _0x244ea0[_0x1af151(0x236)]===_0x244ea0['endOffset']?_0x295484(_0x338b59,_0x581a27):_0x1a3297(_0x338b59,_0x581a27);});}function dt(_0x3c2f7d){const _0x21d9b4=_0x38ccbe;return _0x3c2f7d['startOffset']===_0x3c2f7d['endOffset']?_0x3c2f7d['startOffset']:_0x3c2f7d[_0x21d9b4(0x236)]+0x1;}function ft(_0x596db9){const _0x1a9073=_0x38ccbe;let _0x385bef=G(_0x596db9);if(!_0x385bef)return null;let _0x2fef1a=_0x596db9['get'](_0x5a5f70)[_0x1a9073(0x241)](_0x4b2cc7[_0x1a9073(0x1e2)]),_0x3b00a7=_0x2fef1a==null?void 0x0:_0x2fef1a[_0x1a9073(0x24f)]();return _0x3b00a7?_0x499c92[_0x1a9073(0x228)]['getParagraphsInRange'](_0x385bef,_0x3b00a7[_0x1a9073(0x20a)]??[],_0x3b00a7['dataStream']??'')[0x0]??null:null;}function pt(_0x586a03,_0x11695d){const _0x3cdd48=_0x38ccbe;let _0x499a08=_0x586a03[_0x3cdd48(0x204)],_0x42c280=_0x11695d[_0x3cdd48(0x204)],_0x1c605e=_0x413f3d(_0x499a08,_0x42c280);return[_0x1c605e&&_0x42c280?mt(_0x42c280,_0x1c605e):null,_0x1c605e?null:ht(_0x499a08,_0x42c280)]['filter'](Boolean)['reduce']((_0x1202a9,_0x3c8e5c)=>_0x4fed8a['compose'](_0x1202a9,_0x3c8e5c),null);}function mt(_0x7f32b4,_0x42f502){const _0x56e9b6=_0x38ccbe;let _0x5cb12f=new _0x419f99();return _0x5cb12f['retain'](_0x42f502[_0x56e9b6(0x262)]),_0x42f502['insertLength']>0x0&&_0x5cb12f[_0x56e9b6(0x221)](_0x42f502[_0x56e9b6(0x1e1)],_0x984afb(_0x7f32b4,_0x42f502[_0x56e9b6(0x262)],_0x42f502['start']+_0x42f502[_0x56e9b6(0x1e1)],!0x1)),_0x42f502[_0x56e9b6(0x225)]>0x0&&_0x5cb12f['delete'](_0x42f502['deleteLength']),_0x4fed8a[_0x56e9b6(0x25a)]()[_0x56e9b6(0x25e)](_0x5cb12f[_0x56e9b6(0x213)](),[_0x56e9b6(0x204)]);}function ht(_0x4bdb33,_0x3548c1){const _0x5215aa=_0x38ccbe;let _0x26b605=[],_0xe10693=_0x4bdb33?_t(_0x4bdb33):void 0x0,_0x32d4a4=_0x3548c1?_t(_0x3548c1):void 0x0;for(let _0x644a00 of gt)K(_0x4fed8a[_0x5215aa(0x25a)](),[_0x5215aa(0x204),_0x644a00],_0xe10693==null?void 0x0:_0xe10693[_0x644a00],_0x32d4a4==null?void 0x0:_0x32d4a4[_0x644a00],_0x26b605);return _0x26b605['reduce']((_0xc27d44,_0x3ed565)=>_0x4fed8a['compose'](_0xc27d44,_0x3ed565),null);}const gt=[_0x38ccbe(0x20a),_0x38ccbe(0x244),'tables',_0x38ccbe(0x265),_0x38ccbe(0x246),'customBlocks','customRanges','customDecorations','textRuns'];function _t(_0x4c0665){return _0x4c0665;}function K(_0x33a683,_0x5e46c2,_0x336cfc,_0x141c1d,_0x108931){const _0x4bff14=_0x38ccbe;J(_0x336cfc,_0x141c1d)||(_0x336cfc==null?_0x108931[_0x4bff14(0x255)](_0x33a683[_0x4bff14(0x247)](_0x5e46c2,_0x141c1d)):_0x141c1d==null?_0x108931['push'](_0x33a683[_0x4bff14(0x248)](_0x5e46c2,_0x336cfc)):Array[_0x4bff14(0x24d)](_0x336cfc)&&Array[_0x4bff14(0x24d)](_0x141c1d)?vt(_0x33a683,_0x5e46c2,_0x336cfc,_0x141c1d,_0x108931):q(_0x336cfc)&&q(_0x141c1d)?new Set([...Object[_0x4bff14(0x1fc)](_0x336cfc),...Object[_0x4bff14(0x1fc)](_0x141c1d)])[_0x4bff14(0x203)](_0x297ae0=>{K(_0x33a683,[..._0x5e46c2,_0x297ae0],_0x336cfc[_0x297ae0],_0x141c1d[_0x297ae0],_0x108931);}):_0x108931[_0x4bff14(0x255)](_0x33a683[_0x4bff14(0x234)](_0x5e46c2,_0x336cfc,_0x141c1d)));}function vt(_0x5ad7c3,_0x2a23f4,_0x2e1819,_0x1b6803,_0x2adef8){const _0x137d34=_0x38ccbe;if(_0x2e1819[_0x137d34(0x238)]===_0x1b6803[_0x137d34(0x238)]){_0x2e1819['forEach']((_0x20fcad,_0x2469f5)=>K(_0x5ad7c3,[..._0x2a23f4,_0x2469f5],_0x20fcad,_0x1b6803[_0x2469f5],_0x2adef8));return;}let _0x25ff02=0x0;for(;_0x25ff02<_0x2e1819[_0x137d34(0x238)]&&_0x25ff02<_0x1b6803[_0x137d34(0x238)]&&J(_0x2e1819[_0x25ff02],_0x1b6803[_0x25ff02]);)_0x25ff02++;let _0x127481=_0x2e1819[_0x137d34(0x238)]-0x1,_0x4ed762=_0x1b6803[_0x137d34(0x238)]-0x1;for(;_0x127481>=_0x25ff02&&_0x4ed762>=_0x25ff02&&J(_0x2e1819[_0x127481],_0x1b6803[_0x4ed762]);)_0x127481--,_0x4ed762--;for(let _0xf8c742=_0x127481;_0xf8c742>=_0x25ff02;_0xf8c742--)_0x2adef8[_0x137d34(0x255)](_0x5ad7c3[_0x137d34(0x248)]([..._0x2a23f4,_0xf8c742],_0x2e1819[_0xf8c742]));for(let _0x4e39f9=_0x25ff02;_0x4e39f9<=_0x4ed762;_0x4e39f9++)_0x2adef8[_0x137d34(0x255)](_0x5ad7c3['insertOp']([..._0x2a23f4,_0x4e39f9],_0x1b6803[_0x4e39f9]));}function q(_0x4ba71a){const _0x1360e7=_0x38ccbe;return typeof _0x4ba71a==_0x1360e7(0x243)&&!!_0x4ba71a&&!Array['isArray'](_0x4ba71a);}function J(_0x1f70b3,_0x297d02){const _0x4b45ed=_0x38ccbe;return JSON['stringify'](_0x1f70b3)===JSON[_0x4b45ed(0x214)](_0x297d02);}function Y(_0x4486bf,_0x18c556,_0x14db3b,_0x3ecfe4,_0x501e21,_0x49df3f,_0x5441fc){const _0x11f761=_0x38ccbe;let _0x405697=pt(_0x3ecfe4,_0x501e21);return _0x405697?!!_0x4486bf[_0x11f761(0x1d1)](_0x36892e['id'],{'unitId':_0x14db3b,'actions':_0x405697,'textRanges':[{'startOffset':_0x5441fc,'endOffset':_0x5441fc,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x49df3f}):(_0x18c556[_0x11f761(0x230)]([{'startOffset':_0x5441fc,'endOffset':_0x5441fc}],{'unitId':_0x14db3b,'subUnitId':_0x14db3b},!0x1),!0x0);}const X=_0x38ccbe(0x266);var yt='@univerjs-pro/docs-code',bt=_0x38ccbe(0x1f4);const xt={};function Z(_0x3041bf,_0x5bfaa6){return function(_0x5a5d38,_0x4984ad){_0x5bfaa6(_0x5a5d38,_0x4984ad,_0x3041bf);};}function St(_0x3b705c,_0x27fc12,_0x3493ad,_0xe1d964){const _0x50afa4=_0x38ccbe;var _0xacf078=arguments[_0x50afa4(0x238)],_0x18f88b=_0xacf078<0x3?_0x27fc12:_0xe1d964===null?_0xe1d964=Object[_0x50afa4(0x25f)](_0x27fc12,_0x3493ad):_0xe1d964,_0x34c9cc;if(typeof Reflect==_0x50afa4(0x243)&&typeof Reflect[_0x50afa4(0x1e5)]=='function')_0x18f88b=Reflect[_0x50afa4(0x1e5)](_0x3b705c,_0x27fc12,_0x3493ad,_0xe1d964);else{for(var _0x159c7e=_0x3b705c[_0x50afa4(0x238)]-0x1;_0x159c7e>=0x0;_0x159c7e--)(_0x34c9cc=_0x3b705c[_0x159c7e])&&(_0x18f88b=(_0xacf078<0x3?_0x34c9cc(_0x18f88b):_0xacf078>0x3?_0x34c9cc(_0x27fc12,_0x3493ad,_0x18f88b):_0x34c9cc(_0x27fc12,_0x3493ad))||_0x18f88b);}return _0xacf078>0x3&&_0x18f88b&&Object[_0x50afa4(0x20f)](_0x27fc12,_0x3493ad,_0x18f88b),_0x18f88b;}let Q=class extends _0x57fd06{constructor(_0x21b8f1,_0x17b77d){const _0xfd98ea=_0x38ccbe;super(),this['_resourceManagerService']=_0x21b8f1,this[_0xfd98ea(0x224)]=_0x17b77d,this[_0xfd98ea(0x1cc)]();}['_initResource'](){const _0x49c2f1=_0x38ccbe;this[_0x49c2f1(0x1f5)](this[_0x49c2f1(0x217)][_0x49c2f1(0x229)]({'pluginName':X,'businesses':[_0x4b2cc7[_0x49c2f1(0x1e2)]],'toJson':_0x568ad6=>JSON[_0x49c2f1(0x214)](this[_0x49c2f1(0x224)][_0x49c2f1(0x213)](_0x568ad6)),'parseJson':_0x3f38be=>y(JSON[_0x49c2f1(0x1e0)](_0x3f38be)),'onLoad':(_0x23b19c,_0x53bd41)=>this[_0x49c2f1(0x224)][_0x49c2f1(0x1d2)](_0x23b19c,_0x53bd41),'onUnLoad':_0x54848d=>this[_0x49c2f1(0x224)][_0x49c2f1(0x260)](_0x54848d)}));}};Q=St([Z(0x0,_0x240e67),Z(0x1,_0x721b34(w))],Q);let $=class extends _0x306d08{constructor(_0x402f77=xt,_0x532549,_0x2d4164,_0x30b061){const _0x342aaf=_0x38ccbe;super(),this[_0x342aaf(0x1e3)]=_0x402f77,this[_0x342aaf(0x25c)]=_0x532549,this[_0x342aaf(0x1db)]=_0x2d4164,this[_0x342aaf(0x1d7)]=_0x30b061;let {..._0x217f10}=_0x508a50({},xt,this['_config']);this[_0x342aaf(0x1d7)][_0x342aaf(0x242)](_0x342aaf(0x24b),_0x217f10);}[_0x38ccbe(0x1ec)](){const _0x4937e2=_0x38ccbe;this['_injector'][_0x4937e2(0x232)]([w]),this[_0x4937e2(0x25c)][_0x4937e2(0x232)]([Q]),this[_0x4937e2(0x25c)][_0x4937e2(0x1fb)](w),this['_injector'][_0x4937e2(0x1fb)](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x4937e2(0x203)](_0x2cae77=>this[_0x4937e2(0x1f5)](this[_0x4937e2(0x1db)][_0x4937e2(0x212)](_0x2cae77)));}};C($,_0x38ccbe(0x1d0),X),C($,_0x38ccbe(0x21b),yt),C($,'version',bt),C($,'type',_0x4b2cc7['UNIVER_DOC']),$=St([_0x396b79(_0x2122b7,_0x35d67d),Z(0x1,_0x721b34(_0x468616)),Z(0x2,_0xdb0750),Z(0x3,_0xbac78a)],$);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 _0x4278ec=_0x57e9;(function(_0x5eb901,_0x20fe75){const _0x230bba=_0x57e9,_0x50a2f6=_0x5eb901();while(!![]){try{const _0x48f18c=parseInt(_0x230bba(0x10f))/0x1*(parseInt(_0x230bba(0x108))/0x2)+parseInt(_0x230bba(0x120))/0x3*(-parseInt(_0x230bba(0x90))/0x4)+parseInt(_0x230bba(0xf6))/0x5*(parseInt(_0x230bba(0xd1))/0x6)+-parseInt(_0x230bba(0xcb))/0x7*(-parseInt(_0x230bba(0xec))/0x8)+parseInt(_0x230bba(0x9a))/0x9+-parseInt(_0x230bba(0xb8))/0xa*(parseInt(_0x230bba(0x102))/0xb)+-parseInt(_0x230bba(0x12d))/0xc*(parseInt(_0x230bba(0xe0))/0xd);if(_0x48f18c===_0x20fe75)break;else _0x50a2f6['push'](_0x50a2f6['shift']());}catch(_0x40a7cb){_0x50a2f6['push'](_0x50a2f6['shift']());}}}(_0x1bbf,0x459a3));import{BooleanNumber as _0x4f8efa,BuildTextUtils as _0x20804f,CommandType as _0x45294c,DataStreamTreeTokenType as _0x9c6192,DependentOn as _0x85efd,Disposable as _0x1ccbbc,DocumentBlockRangeType as _0xac67e3,ICommandService as _0x1a34c1,IConfigService as _0x48b9b0,IResourceManagerService as _0x134f76,IUniverInstanceService as _0x2fe26f,Inject as _0x2b0865,Injector as _0x650f9e,JSONX as _0xa0927a,Plugin as _0x25c4b9,TextX as _0xaed83f,UniverInstanceType as _0x30a10b,containsInteriorInsertionOffset as _0x27820e,containsStreamIndex as _0x42e0ef,createParagraphId as _0x533df7,generateRandomId as _0x5a5615,getBlockRangeInterval as _0x49707a,getBodySliceForTextXAction as _0x285f89,getParagraphContentStartOffset as _0x2c079f,getParagraphContentStartOffsets as _0x252574,getParagraphFollowingBlockOffset as _0x3f9e16,getSingleDataStreamChange as _0x460607,intersectsOperationalIntervals as _0x575561,merge as _0x374a9d,shiftExclusiveRangeOnDelete as _0x345255,shiftExclusiveRangeOnInsert as _0x1e6f2b,shiftInclusiveRangeOnDelete as _0x31e1ac,shiftInclusiveRangeOnInsert as _0x1bfd00}from'@univerjs/core';import{Subject as _0x153d32}from'rxjs';import{DocSelectionManagerService as _0x1e01f3,RichTextEditingMutation as _0x31ecbf,UniverDocsPlugin as _0x1e99e0,getContentInsertRange as _0x312935,isHeaderFooterSelection as _0x129d5b}from'@univerjs/docs';import{UniverLicensePlugin as _0x509979}from'@univerjs-pro/license';const Se={'language':_0x4278ec(0xf0),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x5ab11d){return{...Se,..._0x5ab11d};}function y(_0x25d486){const _0x24d0a5=_0x4278ec;let _0x637a2=(_0x25d486==null?void 0x0:_0x25d486[_0x24d0a5(0x131)])??{};return{'codes':Object[_0x24d0a5(0xe8)](Object['entries'](_0x637a2)['map'](([_0x59d4fa,_0x297de4])=>[_0x59d4fa,v(_0x297de4)]))};}function b(_0x13afda,_0x4759a3,_0x3b1579){const _0x1765d3=_0x4278ec;let _0x2ccb3f=y(_0x13afda);return _0x2ccb3f[_0x1765d3(0x131)][_0x4759a3]=v({..._0x2ccb3f[_0x1765d3(0x131)][_0x4759a3],..._0x3b1579}),_0x2ccb3f;}function x(_0x28559a,_0x4ad6cc){let _0x389c92=y(_0x28559a);return delete _0x389c92['codes'][_0x4ad6cc],_0x389c92;}function S(_0x7a3fda){'@babel/helpers - typeof';const _0x25854f=_0x4278ec;return S=typeof Symbol=='function'&&typeof Symbol[_0x25854f(0xf2)]==_0x25854f(0xfd)?function(_0x495a08){return typeof _0x495a08;}:function(_0x275985){const _0x49fb8c=_0x25854f;return _0x275985&&typeof Symbol==_0x49fb8c(0x110)&&_0x275985[_0x49fb8c(0x118)]===Symbol&&_0x275985!==Symbol[_0x49fb8c(0xad)]?_0x49fb8c(0xfd):typeof _0x275985;},S(_0x7a3fda);}function Ce(_0x541168,_0x42e574){const _0x4f09fb=_0x4278ec;if(S(_0x541168)!=_0x4f09fb(0xfc)||!_0x541168)return _0x541168;var _0x59b222=_0x541168[Symbol[_0x4f09fb(0x104)]];if(_0x59b222!==void 0x0){var _0x4b6147=_0x59b222[_0x4f09fb(0x12f)](_0x541168,_0x42e574||_0x4f09fb(0xef));if(S(_0x4b6147)!=_0x4f09fb(0xfc))return _0x4b6147;throw TypeError(_0x4f09fb(0xa6));}return(_0x42e574===_0x4f09fb(0xb4)?String:Number)(_0x541168);}function we(_0x18759f){const _0x20767f=_0x4278ec;var _0x50acb2=Ce(_0x18759f,_0x20767f(0xb4));return S(_0x50acb2)==_0x20767f(0xfd)?_0x50acb2:_0x50acb2+'';}function C(_0x39820f,_0x34e195,_0x33b0e3){const _0x4b2f16=_0x4278ec;return(_0x34e195=we(_0x34e195))in _0x39820f?Object[_0x4b2f16(0xc7)](_0x39820f,_0x34e195,{'value':_0x33b0e3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39820f[_0x34e195]=_0x33b0e3,_0x39820f;}var w=class extends _0x1ccbbc{constructor(..._0x40e67f){const _0x1fee74=_0x4278ec;super(..._0x40e67f),C(this,_0x1fee74(0xbc),new Map()),C(this,'_change$',new _0x153d32()),C(this,_0x1fee74(0xd9),this[_0x1fee74(0x9d)][_0x1fee74(0xd0)]());}['getCodeConfig'](_0x263c57,_0x55d991){const _0x23407f=_0x4278ec;return y(this['_resources'][_0x23407f(0x135)](_0x263c57))[_0x23407f(0x131)][_0x55d991];}['setCodeConfig'](_0x2ffd75,_0x5bffca,_0x47f2fc){const _0x3b1a9c=_0x4278ec;this[_0x3b1a9c(0x9e)](_0x2ffd75,_0x5bffca,b(this[_0x3b1a9c(0xbc)][_0x3b1a9c(0x135)](_0x2ffd75),_0x5bffca,_0x47f2fc));}[_0x4278ec(0x109)](_0x4df8e7,_0x145cbc){const _0xb6fd43=_0x4278ec;this[_0xb6fd43(0x9e)](_0x4df8e7,_0x145cbc,x(this['_resources'][_0xb6fd43(0x135)](_0x4df8e7),_0x145cbc));}[_0x4278ec(0xba)](_0x21186c){const _0x444438=_0x4278ec;return y(this[_0x444438(0xbc)][_0x444438(0x135)](_0x21186c));}['deserialize'](_0x1bd1ce,_0x520467){const _0x31036a=_0x4278ec;this[_0x31036a(0xbc)][_0x31036a(0xca)](_0x1bd1ce,y(_0x520467)),this[_0x31036a(0x9d)][_0x31036a(0xb2)]({'unitId':_0x1bd1ce});}['removeUnit'](_0x3a5734){const _0x25c212=_0x4278ec;this[_0x25c212(0xbc)]['delete'](_0x3a5734),this['_change$'][_0x25c212(0xb2)]({'unitId':_0x3a5734});}[_0x4278ec(0x115)](){const _0x5b1558=_0x4278ec;super[_0x5b1558(0x115)](),this[_0x5b1558(0xbc)][_0x5b1558(0xd3)](),this[_0x5b1558(0x9d)][_0x5b1558(0x97)]();}[_0x4278ec(0x9e)](_0x330815,_0x557e9b,_0x51adf5){const _0x23deb2=_0x4278ec;this[_0x23deb2(0xbc)][_0x23deb2(0xca)](_0x330815,_0x51adf5),this[_0x23deb2(0x9d)][_0x23deb2(0xb2)]({'unitId':_0x330815,'blockId':_0x557e9b});}};const Te={'id':'docs-code.mutation.set-config','type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x57a2a7,_0x2397dd)=>!(_0x2397dd!=null&&_0x2397dd[_0x4278ec(0xdb)])||!_0x2397dd['blockId']?!0x1:(_0x57a2a7[_0x4278ec(0x135)](w)[_0x4278ec(0xeb)](_0x2397dd[_0x4278ec(0xdb)],_0x2397dd[_0x4278ec(0xbe)],_0x2397dd[_0x4278ec(0xf5)]),!0x0)},T={'id':_0x4278ec(0xab),'type':_0x45294c[_0x4278ec(0x99)],'handler':(_0x6153d9,_0x1427ab)=>!(_0x1427ab!=null&&_0x1427ab['unitId'])||!_0x1427ab[_0x4278ec(0xbe)]?!0x1:(_0x6153d9[_0x4278ec(0x135)](w)['removeCode'](_0x1427ab[_0x4278ec(0xdb)],_0x1427ab[_0x4278ec(0xbe)]),!0x0)},Ee=_0x4278ec(0x10e);var E=class extends Error{constructor(_0x3910da=_0x4278ec(0xf7)){super(_0x3910da);}};function De(_0x5768e2){const _0x3ab8cf=_0x4278ec;var _0x5b2680;let _0x385293=O(_0x5768e2[_0x3ab8cf(0xe4)]),_0x5c407c=A(_0x385293),_0x4c1823=ke(_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2[_0x3ab8cf(0xb3)]),_0x4eecfd=_0x4c1823?(_0x5b2680=_0x5c407c['blockRanges'])==null?void 0x0:_0x5b2680[_0x3ab8cf(0x13a)](_0x5c0d7f=>{const _0x1cfc48=_0x3ab8cf;let _0x2458c1=_0x49707a(_0x5c0d7f);return _0x2458c1[_0x1cfc48(0x129)]===_0x4c1823['startOffset']&&_0x2458c1[_0x1cfc48(0xb3)]===_0x4c1823[_0x1cfc48(0xb3)];}):void 0x0,{startOffset:_0x174cd2,endOffset:_0x7e7aa5}=_0x4eecfd?_0x4c1823:We(_0x5c407c,_0x5768e2[_0x3ab8cf(0x129)],_0x5768e2['endOffset'],_0x5768e2[_0x3ab8cf(0xdf)]);if(!_0x4eecfd&&Ae(_0x5c407c,_0x174cd2,_0x7e7aa5))throw new E(_0x3ab8cf(0xa8));let _0x148c75=qe(_0x5c407c,_0x174cd2,_0x7e7aa5),_0x309cb8=(_0x4eecfd==null?void 0x0:_0x4eecfd['blockId'])??_0x5768e2['blockId'],_0x127ca3=b(_0x5768e2[_0x3ab8cf(0x95)],_0x309cb8,{...Se,..._0x5768e2[_0x3ab8cf(0xf5)]});if(_0x4eecfd)return _0x4eecfd[_0x3ab8cf(0xa1)]=_0xac67e3[_0x3ab8cf(0xa7)],Oe(_0x5c407c,_0x174cd2,_0x7e7aa5),ze(_0x5c407c,_0x174cd2,_0x7e7aa5,_0x148c75),N(_0x5c407c,_0x4eecfd),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};if(_0x174cd2===_0x7e7aa5){var _0xb545db,_0x3d3c75;let _0x17549d=''+_0x9c6192['BLOCK_START']+_0x9c6192['PARAGRAPH']+_0x9c6192[_0x3ab8cf(0xd7)];P(_0x5c407c,_0x174cd2,_0x17549d,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x533df7(new Set((_0xb545db=_0x5c407c[_0x3ab8cf(0x114)])==null?void 0x0:_0xb545db['map'](_0xa0ec52=>_0xa0ec52[_0x3ab8cf(0x134)]))),'paragraphStyle':Re(!0x0,!0x0,_0x148c75)}],'blockRanges':[{'blockId':_0x309cb8,'blockType':_0xac67e3[_0x3ab8cf(0xa7)],'startIndex':0x0,'endIndex':_0x17549d[_0x3ab8cf(0xee)]-0x1}]});let _0x2418c1=(_0x3d3c75=_0x5c407c['blockRanges'])==null?void 0x0:_0x3d3c75['find'](_0x10c901=>_0x10c901[_0x3ab8cf(0xbe)]===_0x309cb8);return _0x2418c1&&N(_0x5c407c,_0x2418c1),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}P(_0x5c407c,_0x7e7aa5,_0x9c6192['BLOCK_END']),P(_0x5c407c,_0x174cd2,_0x9c6192[_0x3ab8cf(0xde)]),ze(_0x5c407c,_0x174cd2,_0x7e7aa5+0x1,_0x148c75);let _0x251cb8={'blockId':_0x309cb8,'blockType':_0xac67e3['CODE'],'startIndex':_0x174cd2,'endIndex':_0x7e7aa5+0x1};return _0x5c407c[_0x3ab8cf(0x12e)]=[..._0x5c407c['blockRanges']??[],_0x251cb8]['sort']((_0xdde982,_0x5b39bd)=>_0xdde982[_0x3ab8cf(0x11e)]-_0x5b39bd[_0x3ab8cf(0x11e)]),N(_0x5c407c,_0x251cb8),{'nextDocumentData':_0x385293,'nextMetadata':_0x127ca3,'cursorOffset':_0x174cd2+0x1};}function Oe(_0x1a5fb6,_0x43e243,_0x415605){const _0x285677=_0x4278ec;(_0x1a5fb6['paragraphs']??[])[_0x285677(0xd2)](_0x242975=>_0x242975[_0x285677(0x11e)]>_0x43e243&&_0x242975[_0x285677(0x11e)]<_0x415605)['forEach'](_0x37572c=>{const _0x193020=_0x285677;let _0x164a09={..._0x37572c['paragraphStyle']??{}};delete _0x164a09['spaceAbove'],delete _0x164a09['spaceBelow'],_0x37572c[_0x193020(0xff)]=_0x164a09;});}function ke(_0x56e8fa,_0x3b2f1f){const _0xc984d8=_0x4278ec;return _0x56e8fa==null||_0x3b2f1f==null||_0x56e8fa===_0x3b2f1f?null:{'startOffset':Math['min'](_0x56e8fa,_0x3b2f1f),'endOffset':Math[_0xc984d8(0xc8)](_0x56e8fa,_0x3b2f1f)};}function Ae(_0x333ea3,_0x3b7d41,_0x44e583){const _0x2f0c23=_0x4278ec;return(_0x333ea3[_0x2f0c23(0x12e)]??[])[_0x2f0c23(0xa4)](_0x231356=>{let _0x4b6582=_0x49707a(_0x231356);return _0x3b7d41===_0x44e583?_0x27820e(_0x4b6582,_0x3b7d41):_0x575561(_0x4b6582,{'startOffset':_0x3b7d41,'endOffset':_0x44e583});});}function je(_0x5c5225){const _0x18f327=_0x4278ec;return{'nextDocumentData':O(_0x5c5225[_0x18f327(0xe4)]),'nextMetadata':b(_0x5c5225[_0x18f327(0x95)],_0x5c5225['blockId'],_0x5c5225[_0x18f327(0xf5)]),'cursorOffset':0x0};}function D(_0x5171b0){const _0x2aa84a=_0x4278ec;let _0x40cf8e=O(_0x5171b0[_0x2aa84a(0xe4)]),_0x34b88b=A(_0x40cf8e),_0x505ba9=Fe(_0x34b88b,_0x5171b0['blockId']);if(!_0x505ba9)return null;let _0x192333=He(_0x34b88b,_0x505ba9);return{'nextDocumentData':_0x40cf8e,'nextMetadata':x(_0x5171b0[_0x2aa84a(0x95)],_0x5171b0[_0x2aa84a(0xbe)]),'cursorOffset':_0x192333};}function Me(_0x51070a){const _0x392db3=_0x4278ec;var _0x2de64f;let _0x2174f6=O(_0x51070a[_0x392db3(0xe4)]),_0x1afde4=A(_0x2174f6),_0x55f632=Fe(_0x1afde4,_0x51070a[_0x392db3(0xbe)]);if(!_0x55f632)return null;let _0x3c1a86=_0x49707a(_0x55f632);return F(_0x1afde4,_0x3c1a86[_0x392db3(0x129)],_0x3c1a86['endOffset']),_0x1afde4[_0x392db3(0x12e)]=(_0x2de64f=_0x1afde4[_0x392db3(0x12e)])==null?void 0x0:_0x2de64f['filter'](_0x9bc0c=>_0x9bc0c[_0x392db3(0xbe)]!==_0x51070a[_0x392db3(0xbe)]),{'nextDocumentData':_0x2174f6,'nextMetadata':x(_0x51070a['metadata'],_0x51070a['blockId']),'cursorOffset':_0x55f632[_0x392db3(0x11e)]};}function Ne(_0x17c178){const _0xd1bd5a=_0x4278ec;let _0x5af1c9=O(_0x17c178['documentData']),_0x4280ee=A(_0x5af1c9),_0x26563f=Le(_0x4280ee,_0x17c178[_0xd1bd5a(0x128)]);return _0x26563f&&Pe(_0x5af1c9,_0x4280ee,_0x26563f,_0x17c178[_0xd1bd5a(0x128)],_0x17c178[_0xd1bd5a(0xe1)])||null;}function Pe(_0x6dfeef,_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d){const _0x5c4782=_0x4278ec;let _0x274a63=$e(_0x5cf591,_0x3a9080,_0x228ba8,_0x50608d);if(!_0x274a63)return null;let _0x56a1f8=_0x274a63[_0x5c4782(0x12c)]-0x1;return F(_0x5cf591,_0x274a63['paragraph']['startIndex'],_0x274a63['paragraph']['startIndex']+0x1),{'nextDocumentData':_0x6dfeef,'cursorOffset':_0x56a1f8};}function Fe(_0x2b94ca,_0xe19299){const _0xb92379=_0x4278ec;var _0x5d86f3;return _0x2b94ca==null||(_0x5d86f3=_0x2b94ca[_0xb92379(0x12e)])==null?void 0x0:_0x5d86f3[_0xb92379(0x13a)](_0x9070aa=>_0x9070aa[_0xb92379(0xa1)]===_0xac67e3[_0xb92379(0xa7)]&&_0x9070aa[_0xb92379(0xbe)]===_0xe19299);}function Ie(_0x14067c){const _0xcf7096=_0x4278ec;let _0x44efd2=_0x14067c[_0xcf7096(0xe4)]['body'];if(!_0x44efd2)return!0x1;let _0x184e2e=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xd5)?_0x14067c[_0xcf7096(0x128)]-0x1:_0x14067c[_0xcf7096(0x128)],_0x5d9fd3=_0x14067c[_0xcf7096(0x9f)]===_0xcf7096(0xac)?_0x14067c[_0xcf7096(0x128)]+0x1:_0x184e2e;return(_0x44efd2[_0xcf7096(0x12e)]??[])['some'](_0x3f6203=>_0x3f6203[_0xcf7096(0xa1)]===_0xac67e3[_0xcf7096(0xa7)]?_0x184e2e===_0x3f6203['startIndex']||_0x184e2e===_0x3f6203[_0xcf7096(0xf4)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0x11e)]||_0x5d9fd3===_0x3f6203[_0xcf7096(0xf4)]:!0x1);}function Le(_0x5df646,_0x3db6f0){const _0x504bc4=_0x4278ec;var _0x48f6d0;return(_0x48f6d0=_0x5df646['blockRanges'])==null?void 0x0:_0x48f6d0[_0x504bc4(0x13a)](_0x14330b=>{const _0x48c594=_0x504bc4;let _0x5b29af=M(_0x14330b);return _0x14330b[_0x48c594(0xa1)]===_0xac67e3[_0x48c594(0xa7)]&&_0x14330b['startIndex']<=_0x3db6f0&&_0x3db6f0<=_0x5b29af+0x2;});}function Re(_0x506a7b,_0x584177,_0x186290=!0x1){const _0x333324=_0x4278ec;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0x4f8efa[_0x333324(0xb6)],'keepNext':_0x584177?_0x4f8efa[_0x333324(0xae)]:_0x4f8efa[_0x333324(0xb6)],'widowControl':_0x4f8efa[_0x333324(0xb6)],..._0x506a7b&&_0x186290?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x780c84,_0x506553,_0x4460e1,_0x2dd2cb=!0x1){const _0x4ae25f=_0x4278ec;let _0x7d349c=(_0x780c84[_0x4ae25f(0x114)]??[])[_0x4ae25f(0xd2)](_0x989f18=>_0x989f18[_0x4ae25f(0x11e)]>_0x506553&&_0x989f18['startIndex']<_0x4460e1);_0x7d349c[_0x4ae25f(0xb9)]((_0x36c554,_0x3ff6a2)=>{const _0x859df4=_0x4ae25f;_0x36c554[_0x859df4(0xff)]={..._0x36c554['paragraphStyle']??{},...Re(_0x3ff6a2===0x0,_0x3ff6a2===_0x7d349c[_0x859df4(0xee)]-0x1,_0x2dd2cb)};});}function Be(_0x17b32d){const _0x33c996=_0x4278ec;var _0x3ff0a3,_0xca9892;let _0xaf8659={..._0x17b32d??{}};return delete _0xaf8659[_0x33c996(0x111)],delete _0xaf8659[_0x33c996(0xce)],delete _0xaf8659[_0x33c996(0x119)],delete _0xaf8659[_0x33c996(0x105)],delete _0xaf8659[_0x33c996(0xa2)],delete _0xaf8659['keepNext'],delete _0xaf8659['widowControl'],((_0x3ff0a3=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0x3ff0a3['ff'])===Ee&&((_0xca9892=_0xaf8659[_0x33c996(0xe7)])==null?void 0x0:_0xca9892['fs'])===0xc&&delete _0xaf8659[_0x33c996(0xe7)],_0xaf8659;}function Ve(_0x3bc1ae,_0x100579){const _0x51a840=_0x4278ec;let _0x903092=M(_0x100579);return(_0x3bc1ae[_0x51a840(0x114)]??[])[_0x51a840(0xd2)](_0x2c18ad=>_0x2c18ad['startIndex']>_0x100579[_0x51a840(0x11e)]&&_0x2c18ad[_0x51a840(0x11e)]<_0x903092);}function He(_0x13e21f,_0x2943a0){const _0xc7b520=_0x4278ec;var _0x4e17cc;let _0x522543=M(_0x2943a0);return Ve(_0x13e21f,_0x2943a0)[_0xc7b520(0xb9)](_0x4ba7e7=>{const _0xc65aee=_0xc7b520;_0x4ba7e7['paragraphStyle']=Be(_0x4ba7e7[_0xc65aee(0xff)]);}),F(_0x13e21f,_0x522543,_0x522543+0x1),F(_0x13e21f,_0x2943a0[_0xc7b520(0x11e)],_0x2943a0[_0xc7b520(0x11e)]+0x1),_0x13e21f[_0xc7b520(0x12e)]=(_0x4e17cc=_0x13e21f[_0xc7b520(0x12e)])==null?void 0x0:_0x4e17cc[_0xc7b520(0xd2)](_0x19c450=>_0x19c450['blockId']!==_0x2943a0[_0xc7b520(0xbe)]),_0x2943a0[_0xc7b520(0x11e)];}function O(_0x4d861a){const _0x26c47c=_0x4278ec;return{..._0x4d861a,'body':_0x4d861a['body']?Ue(_0x4d861a[_0x26c47c(0x133)]):_0x4d861a[_0x26c47c(0x133)]};}function Ue(_0x7df0d4){const _0xf877d9=_0x4278ec;var _0x3b3d43,_0x31d4d4,_0x4756b9,_0x26c2e8,_0x27d7a5,_0x40625f,_0x55dfb3,_0x29bf82,_0x255108;return{..._0x7df0d4,'paragraphs':(_0x3b3d43=_0x7df0d4[_0xf877d9(0x114)])==null?void 0x0:_0x3b3d43[_0xf877d9(0xd6)](_0x322a07=>({..._0x322a07,'bullet':k(_0x322a07[_0xf877d9(0xb0)]),'paragraphStyle':k(_0x322a07[_0xf877d9(0xff)])})),'sectionBreaks':(_0x31d4d4=_0x7df0d4[_0xf877d9(0xa9)])==null?void 0x0:_0x31d4d4['map'](_0x335fa2=>({..._0x335fa2})),'textRuns':(_0x4756b9=_0x7df0d4[_0xf877d9(0xdc)])==null?void 0x0:_0x4756b9[_0xf877d9(0xd6)](_0x2cbecc=>({..._0x2cbecc})),'tables':(_0x26c2e8=_0x7df0d4['tables'])==null?void 0x0:_0x26c2e8[_0xf877d9(0xd6)](_0x2a1856=>({..._0x2a1856})),'columnGroups':(_0x27d7a5=_0x7df0d4[_0xf877d9(0xe5)])==null?void 0x0:_0x27d7a5[_0xf877d9(0xd6)](_0x2d7ee7=>{const _0x562567=_0xf877d9;var _0x3ec770;return{..._0x2d7ee7,'columns':(_0x3ec770=_0x2d7ee7[_0x562567(0x103)])==null?void 0x0:_0x3ec770['map'](_0x109882=>k(_0x109882))};}),'blockRanges':(_0x40625f=_0x7df0d4[_0xf877d9(0x12e)])==null?void 0x0:_0x40625f[_0xf877d9(0xd6)](_0x566ea8=>({..._0x566ea8})),'customRanges':(_0x55dfb3=_0x7df0d4[_0xf877d9(0xf9)])==null?void 0x0:_0x55dfb3['map'](_0x6135d3=>({..._0x6135d3})),'customDecorations':(_0x29bf82=_0x7df0d4[_0xf877d9(0x137)])==null?void 0x0:_0x29bf82[_0xf877d9(0xd6)](_0x406b97=>({..._0x406b97})),'customBlocks':(_0x255108=_0x7df0d4[_0xf877d9(0xed)])==null?void 0x0:_0x255108[_0xf877d9(0xd6)](_0x514e37=>({..._0x514e37}))};}function k(_0x3a2043){const _0x121e16=_0x4278ec;return Array[_0x121e16(0x13b)](_0x3a2043)?_0x3a2043[_0x121e16(0xd6)](_0xc21281=>k(_0xc21281)):!_0x3a2043||typeof _0x3a2043!=_0x121e16(0xfc)?_0x3a2043:Object[_0x121e16(0xe8)](Object[_0x121e16(0x127)](_0x3a2043)[_0x121e16(0xd6)](([_0x5f2a9f,_0x5a5330])=>[_0x5f2a9f,k(_0x5a5330)]));}function A(_0x3a0919){const _0x5efd6b=_0x4278ec;if(!_0x3a0919[_0x5efd6b(0x133)])throw Error(_0x5efd6b(0x113));return _0x3a0919[_0x5efd6b(0x133)];}function We(_0x3c637a,_0x1d7cf6,_0x2cc790,_0x30a9e4='convert-paragraph'){if(_0x1d7cf6==null||_0x2cc790==null){let _0x539f0f=Ke(_0x3c637a);return{'startOffset':_0x539f0f,'endOffset':_0x539f0f};}let _0x498904=Math['min'](_0x1d7cf6,_0x2cc790),_0x15d2c5=Math['max'](_0x1d7cf6,_0x2cc790),_0x3825c3=Ze(_0x3c637a,_0x498904,_0x15d2c5);return _0x498904===_0x15d2c5?_0x30a9e4==='insert-new'?{'startOffset':_0x498904,'endOffset':_0x15d2c5}:Ge(_0x3c637a,_0x498904,_0x3825c3):Je(_0x3c637a,_0x498904,_0x15d2c5,_0x3825c3);}function Ge(_0x55d6d2,_0x1ca4b8,_0x1b16ae){const _0x1443db=_0x4278ec;let _0x5bf386=Ye(_0x55d6d2,_0x1ca4b8);if(_0x5bf386){let _0x30f00c=j(_0x55d6d2,_0x5bf386,_0x1b16ae);if(_0x30f00c<_0x5bf386[_0x1443db(0x11e)])return{'startOffset':_0x30f00c,'endOffset':_0x1b16ae?Math[_0x1443db(0x9b)](_0x5bf386[_0x1443db(0x11e)]+0x1,_0x1b16ae[_0x1443db(0xb3)]):_0x5bf386[_0x1443db(0x11e)]+0x1};}let _0x439016=_0x1ca4b8===0x0&&_0x55d6d2[_0x1443db(0x94)][0x0]===_0x9c6192[_0x1443db(0x12b)]?0x1:_0x1ca4b8;return{'startOffset':_0x439016,'endOffset':_0x439016};}function Ke(_0x3c09dd){const _0x4564d1=_0x4278ec;return _0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xf3)](_0x9c6192[_0x4564d1(0xb7)])?Math[_0x4564d1(0xc8)](0x0,_0x3c09dd['dataStream'][_0x4564d1(0xee)]-0x1):_0x3c09dd[_0x4564d1(0x94)][_0x4564d1(0xee)];}function qe(_0x239c15,_0x1dffd2,_0x2f6e45){const _0xc12cd9=_0x4278ec;var _0x356ba0;let _0x44c636=Math[_0xc12cd9(0x9b)](_0x1dffd2,_0x2f6e45),_0x666067=Math[_0xc12cd9(0xc8)](_0x1dffd2,_0x2f6e45);return!!((_0x356ba0=_0x239c15[_0xc12cd9(0xe3)])!=null&&_0x356ba0[_0xc12cd9(0xa4)](_0x56ffab=>_0x44c636>_0x56ffab[_0xc12cd9(0x11e)]&&_0x44c636<_0x56ffab[_0xc12cd9(0xf4)]||_0x666067>_0x56ffab[_0xc12cd9(0x11e)]&&_0x666067<_0x56ffab[_0xc12cd9(0xf4)]||_0x44c636<=_0x56ffab['startIndex']&&_0x666067>=_0x56ffab['endIndex']));}function Je(_0x415bde,_0x58628d,_0x20baa9,_0x426421){const _0x3ca067=_0x4278ec;let _0x23ead5=[..._0x415bde[_0x3ca067(0x114)]??[]]['sort']((_0x27d751,_0x4680eb)=>_0x27d751[_0x3ca067(0x11e)]-_0x4680eb[_0x3ca067(0x11e)]),_0x589be5=_0x252574(_0x415bde),_0x3c4764=_0x23ead5[_0x3ca067(0x13a)](_0x2f9650=>j(_0x415bde,_0x2f9650,_0x426421,_0x589be5)<=_0x58628d&&_0x58628d<=_0x2f9650[_0x3ca067(0x11e)]),_0x355abb=_0x23ead5['find'](_0x44c0ac=>_0x44c0ac[_0x3ca067(0x11e)]>=_0x20baa9-0x1)??_0x23ead5[_0x23ead5['length']-0x1];return{'startOffset':_0x3c4764?j(_0x415bde,_0x3c4764,_0x426421,_0x589be5):_0x58628d,'endOffset':_0x355abb?Xe(_0x355abb,_0x426421):_0x20baa9};}function Ye(_0x3ec74f,_0x5bab14){const _0x5d9622=_0x4278ec;let _0x2652e2=[..._0x3ec74f[_0x5d9622(0x114)]??[]][_0x5d9622(0xe6)]((_0x4820f5,_0x2ce758)=>_0x4820f5[_0x5d9622(0x11e)]-_0x2ce758[_0x5d9622(0x11e)]),_0xbe5f49=_0x252574(_0x3ec74f);return _0x2652e2['find'](_0x4a385d=>(_0xbe5f49[_0x5d9622(0x135)](_0x4a385d[_0x5d9622(0x11e)])??0x0)<=_0x5bab14&&_0x5bab14<=_0x4a385d[_0x5d9622(0x11e)]);}function j(_0x4c1279,_0x40a1ec,_0xe1c295,_0x428543){const _0x2f6500=_0x4278ec;let _0x4cd54f=(_0x428543==null?void 0x0:_0x428543[_0x2f6500(0x135)](_0x40a1ec[_0x2f6500(0x11e)]))??_0x2c079f(_0x4c1279,_0x40a1ec);return _0xe1c295?Math[_0x2f6500(0xc8)](_0x4cd54f,_0xe1c295[_0x2f6500(0x129)]):_0x4cd54f;}function Xe(_0x3f5211,_0x1ff471){const _0x2aa80e=_0x4278ec;let _0x10f21e=_0x3f5211['startIndex']+0x1;return _0x1ff471?Math[_0x2aa80e(0x9b)](_0x10f21e,_0x1ff471[_0x2aa80e(0xb3)]):_0x10f21e;}function Ze(_0x26828e,_0x155f06,_0x4e556e){const _0xd884a5=_0x4278ec;let _0x50e8ce=Qe(_0x26828e,_0x155f06),_0x434e84=Qe(_0x26828e,_0x155f06===_0x4e556e?_0x4e556e:Math[_0xd884a5(0xc8)](_0x155f06,_0x4e556e-0x1));if(_0x50e8ce||_0x434e84){if(!_0x50e8ce||!_0x434e84||_0x50e8ce[_0xd884a5(0xdd)]!==_0x434e84[_0xd884a5(0xdd)]||_0x50e8ce[_0xd884a5(0x12c)]!==_0x434e84[_0xd884a5(0x12c)])throw new E();return _0x50e8ce;}}function Qe(_0x23e68e,_0x3ee240){const _0x4049ca=_0x4278ec;let _0x3bd4d8=_0x23e68e['dataStream'],_0x36ad1b=-0x1;for(let _0x4be5bc=Math['min'](_0x3ee240,_0x3bd4d8['length']-0x1);_0x4be5bc>=0x0;_0x4be5bc--){let _0x52708b=_0x3bd4d8[_0x4be5bc];if(_0x52708b===_0x9c6192[_0x4049ca(0xd4)])return;if(_0x52708b===_0x9c6192[_0x4049ca(0x11d)]){_0x36ad1b=_0x4be5bc;break;}}if(_0x36ad1b<0x0)return;let _0x24c6c0=_0x3bd4d8['indexOf'](_0x9c6192[_0x4049ca(0xd4)],_0x36ad1b+0x1);if(!(_0x24c6c0<0x0||_0x3ee240<_0x36ad1b+0x1||_0x3ee240>_0x24c6c0-0x1))return{'startOffset':_0x36ad1b+0x1,'endOffset':Math[_0x4049ca(0xc8)](_0x36ad1b+0x1,_0x24c6c0-0x1),'startTokenOffset':_0x36ad1b,'endTokenOffset':_0x24c6c0};}function M(_0x1cb890){const _0x1ca672=_0x4278ec;return _0x49707a(_0x1cb890)[_0x1ca672(0xb3)]-0x1;}function $e(_0x200fec,_0xe19ae7,_0x507e60,_0x368e88){const _0x1953db=_0x4278ec;let _0x74ef88=M(_0xe19ae7),_0x40a918=(_0x200fec[_0x1953db(0x114)]??[])[_0x1953db(0x13a)](_0x320ea7=>_0x320ea7[_0x1953db(0x11e)]===_0x74ef88+0x1);if(!_0x40a918||_0x368e88!=null&&_0x40a918[_0x1953db(0x11e)]!==_0x368e88||_0x507e60!=null&&(_0x507e60<_0x74ef88||_0x507e60>_0x40a918[_0x1953db(0x11e)]+0x1)||_0x200fec[_0x1953db(0x94)][_0x40a918[_0x1953db(0x11e)]]!==_0x9c6192[_0x1953db(0x12b)])return null;let _0x1abc5b=_0x2c079f(_0x200fec,_0x40a918),_0x3b97aa=_0x200fec[_0x1953db(0x94)][_0x1953db(0x122)](_0x1abc5b,_0x40a918[_0x1953db(0x11e)]);return Array['from'](_0x3b97aa)[_0x1953db(0x126)](_0x3d8cb8=>_0x3d8cb8===_0x9c6192[_0x1953db(0xd7)])?{'paragraph':_0x40a918,'endTokenOffset':_0x74ef88}:null;}function N(_0x20cfae,_0x2cf9bd){const _0x35dd77=_0x4278ec;var _0xc7c892;let _0x56d708=M(_0x2cf9bd),_0x50fd67=_0x20cfae[_0x35dd77(0x94)][_0x56d708+0x1];(_0x50fd67===_0x9c6192[_0x35dd77(0xb7)]||_0x50fd67===void 0x0)&&P(_0x20cfae,_0x56d708+0x1,_0x9c6192[_0x35dd77(0x12b)],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x533df7(new Set((_0xc7c892=_0x20cfae[_0x35dd77(0x114)])==null?void 0x0:_0xc7c892[_0x35dd77(0xd6)](_0x27471d=>_0x27471d[_0x35dd77(0x134)])))}]});}function P(_0x4db0fe,_0x2b41bc,_0x5e0856,_0x556c5c={}){const _0x1b1955=_0x4278ec;var _0x40fe5b,_0x2ca786;_0x5e0856&&(_0x4db0fe['dataStream']=''+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](0x0,_0x2b41bc)+_0x5e0856+_0x4db0fe[_0x1b1955(0x94)][_0x1b1955(0x122)](_0x2b41bc),et(_0x4db0fe,_0x2b41bc,_0x5e0856[_0x1b1955(0xee)]),(_0x40fe5b=_0x556c5c[_0x1b1955(0x114)])!=null&&_0x40fe5b[_0x1b1955(0xee)]&&(_0x4db0fe[_0x1b1955(0x114)]=[..._0x4db0fe[_0x1b1955(0x114)]??[],..._0x556c5c['paragraphs'][_0x1b1955(0xd6)](_0x423b46=>({..._0x423b46,'startIndex':_0x423b46[_0x1b1955(0x11e)]+_0x2b41bc}))]['sort']((_0x30c416,_0x14f1aa)=>_0x30c416[_0x1b1955(0x11e)]-_0x14f1aa[_0x1b1955(0x11e)])),(_0x2ca786=_0x556c5c[_0x1b1955(0x12e)])!=null&&_0x2ca786['length']&&(_0x4db0fe[_0x1b1955(0x12e)]=[..._0x4db0fe[_0x1b1955(0x12e)]??[],..._0x556c5c[_0x1b1955(0x12e)][_0x1b1955(0xd6)](_0x2bfd5e=>({..._0x2bfd5e,'startIndex':_0x2bfd5e[_0x1b1955(0x11e)]+_0x2b41bc,'endIndex':_0x2bfd5e[_0x1b1955(0xf4)]+_0x2b41bc}))][_0x1b1955(0xe6)]((_0x322b9c,_0x2b121b)=>_0x322b9c['startIndex']-_0x2b121b[_0x1b1955(0x11e)])));}function F(_0xebcfbc,_0x63dd34,_0x13fb09){const _0x323100=_0x4278ec;let _0x206930=_0x13fb09-_0x63dd34;_0xebcfbc[_0x323100(0x94)]=''+_0xebcfbc['dataStream'][_0x323100(0x122)](0x0,_0x63dd34)+_0xebcfbc[_0x323100(0x94)][_0x323100(0x122)](_0x13fb09),tt(_0xebcfbc,_0x63dd34,_0x206930);}function et(_0x5bb7ca,_0x25b707,_0x372b5e){const _0x527b28=_0x4278ec;_0x5bb7ca[_0x527b28(0x114)]=I(_0x5bb7ca['paragraphs'],_0x25b707,_0x372b5e),_0x5bb7ca['sectionBreaks']=I(_0x5bb7ca[_0x527b28(0xa9)],_0x25b707,_0x372b5e),_0x5bb7ca['customBlocks']=I(_0x5bb7ca[_0x527b28(0xed)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xdc)]=nt(_0x5bb7ca[_0x527b28(0xdc)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe3)]=rt(_0x5bb7ca[_0x527b28(0xe3)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0xe5)]=R(_0x5bb7ca['columnGroups'],_0x25b707,_0x372b5e),_0x5bb7ca['customRanges']=R(_0x5bb7ca['customRanges'],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x137)]=R(_0x5bb7ca[_0x527b28(0x137)],_0x25b707,_0x372b5e),_0x5bb7ca[_0x527b28(0x12e)]=R(_0x5bb7ca[_0x527b28(0x12e)],_0x25b707,_0x372b5e);}function tt(_0x541b6f,_0x3e4a67,_0x340ec3){const _0x35ef9b=_0x4278ec;var _0xa19bb9,_0x31f6f7;_0x541b6f[_0x35ef9b(0x114)]=L(_0x541b6f[_0x35ef9b(0x114)],_0x3e4a67,_0x340ec3),_0x541b6f['sectionBreaks']=L(_0x541b6f[_0x35ef9b(0xa9)],_0x3e4a67,_0x340ec3),_0x541b6f['customBlocks']=L(_0x541b6f[_0x35ef9b(0xed)],_0x3e4a67,_0x340ec3),_0x541b6f['textRuns']=(_0xa19bb9=it((_0x31f6f7=_0x541b6f[_0x35ef9b(0xdc)])==null?void 0x0:_0x31f6f7['map'](_0x19e291=>({..._0x19e291,'startIndex':_0x19e291['st'],'endIndex':_0x19e291['ed']})),_0x3e4a67,_0x340ec3))==null?void 0x0:_0xa19bb9['map'](_0x5d425c=>{let {startIndex:_0x449124,endIndex:_0x1dec64,..._0x12b2f3}=_0x5d425c;return{..._0x12b2f3,'st':_0x449124,'ed':_0x1dec64};}),_0x541b6f['tables']=it(_0x541b6f[_0x35ef9b(0xe3)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0xe5)]=z(_0x541b6f[_0x35ef9b(0xe5)],_0x3e4a67,_0x340ec3),_0x541b6f['customRanges']=z(_0x541b6f[_0x35ef9b(0xf9)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x137)]=z(_0x541b6f[_0x35ef9b(0x137)],_0x3e4a67,_0x340ec3),_0x541b6f[_0x35ef9b(0x12e)]=z(_0x541b6f[_0x35ef9b(0x12e)],_0x3e4a67,_0x340ec3);}function I(_0x177747,_0x10aab4,_0x1de7a3){const _0x2f2252=_0x4278ec;return _0x177747==null?void 0x0:_0x177747[_0x2f2252(0xd6)](_0x52c550=>_0x52c550[_0x2f2252(0x11e)]>=_0x10aab4?{..._0x52c550,'startIndex':_0x52c550[_0x2f2252(0x11e)]+_0x1de7a3}:_0x52c550);}function L(_0x48d4a1,_0x6e559b,_0x30c7c9){const _0x38c88e=_0x4278ec;let _0x259894=_0x6e559b+_0x30c7c9;return _0x48d4a1==null?void 0x0:_0x48d4a1['map'](_0x6327a3=>_0x6327a3['startIndex']>=_0x6e559b&&_0x6327a3['startIndex']<_0x259894?null:_0x6327a3[_0x38c88e(0x11e)]>=_0x259894?{..._0x6327a3,'startIndex':_0x6327a3[_0x38c88e(0x11e)]-_0x30c7c9}:_0x6327a3)[_0x38c88e(0xd2)](_0x333ad6=>_0x333ad6!=null);}function nt(_0x620631,_0x606bac,_0x62b0){const _0x528aaf=_0x4278ec;return _0x620631==null?void 0x0:_0x620631[_0x528aaf(0xd6)](_0x4f1369=>_0x4f1369['st']>=_0x606bac?{..._0x4f1369,'st':_0x4f1369['st']+_0x62b0,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369['ed']>_0x606bac?{..._0x4f1369,'ed':_0x4f1369['ed']+_0x62b0}:_0x4f1369);}function R(_0x20bd3e,_0x27d4a0,_0x1a7f07){const _0x25b3e9=_0x4278ec;return _0x20bd3e==null?void 0x0:_0x20bd3e[_0x25b3e9(0xd6)](_0x432b51=>_0x1bfd00(_0x432b51,_0x27d4a0,_0x1a7f07));}function rt(_0x4582f4,_0x7f83e1,_0x39297e){return _0x4582f4==null?void 0x0:_0x4582f4['map'](_0x383987=>_0x1e6f2b(_0x383987,_0x7f83e1,_0x39297e));}function z(_0x44b577,_0x4e33bf,_0x5d3cf8){const _0xf0f030=_0x4278ec;return _0x44b577==null?void 0x0:_0x44b577['map'](_0x3b6ea6=>_0x31e1ac(_0x3b6ea6,_0x4e33bf,_0x5d3cf8))[_0xf0f030(0xd2)](_0x4b529c=>_0x4b529c!=null);}function it(_0xfbe575,_0x4071dd,_0x237bb0){const _0x5e6f97=_0x4278ec;return _0xfbe575==null?void 0x0:_0xfbe575['map'](_0x365efb=>_0x345255(_0x365efb,_0x4071dd,_0x237bb0))[_0x5e6f97(0xd2)](_0x5042d2=>_0x5042d2!=null);}const at={'id':_0x4278ec(0xfa),'type':_0x45294c[_0x4278ec(0x123)],'handler':_0x1727c9=>{const _0x3d5d08=_0x4278ec;var _0x36e453;if(_0x129d5b(G(_0x1727c9)))return!0x1;let _0x50917d=_0x312935(_0x1727c9);if(_0x50917d)return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x50917d[_0x3d5d08(0x129)],'endOffset':_0x50917d[_0x3d5d08(0xb3)],'insertionMode':'insert-new','unitId':_0x50917d[_0x3d5d08(0xdb)]});let _0x5c019e=ft(_0x1727c9);if(!_0x5c019e)return!0x1;let _0x4b7ab4=(_0x36e453=_0x1727c9[_0x3d5d08(0x135)](_0x2fe26f)[_0x3d5d08(0x91)](_0x30a10b[_0x3d5d08(0x11a)]))==null?void 0x0:_0x36e453[_0x3d5d08(0xd8)](),_0x266993=_0x4b7ab4?_0x3f9e16(_0x4b7ab4,_0x5c019e):_0x5c019e[_0x3d5d08(0x11e)]+0x1;return _0x1727c9[_0x3d5d08(0x135)](_0x1a34c1)[_0x3d5d08(0xcf)](B['id'],{'startOffset':_0x266993,'endOffset':_0x266993});}},ot={'id':_0x4278ec(0xfe),'type':_0x45294c[_0x4278ec(0x123)],'handler':()=>!0x0},B={'id':_0x4278ec(0x107),'type':_0x45294c['COMMAND'],'handler':(_0x3660cf,_0x3d4f64)=>{const _0x3b3035=_0x4278ec;let _0x434561=W(_0x3660cf,_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdb)]);if(!_0x434561)return!0x1;let _0xd11848=G(_0x3660cf);if(_0x129d5b(_0xd11848))return!0x1;let _0x5d5015=_0x434561['model']['serialize'](_0x434561[_0x3b3035(0xdb)]),_0x2650b3=lt(_0x3d4f64,_0xd11848),_0x3b8371=ut(_0x434561['previousDocumentData'],_0x2650b3);if(_0x3b8371){if(_0x3b8371[_0x3b3035(0xa1)]!==_0xac67e3['CODE'])return!0x1;let _0x1a99ed=D({'blockId':_0x3b8371[_0x3b3035(0xbe)],'documentData':_0x434561[_0x3b3035(0x10d)],'metadata':_0x5d5015});if(!_0x1a99ed)return!0x1;let _0x469aad=Y(_0x434561['commandService'],_0x434561[_0x3b3035(0x98)],_0x434561['unitId'],_0x434561[_0x3b3035(0x10d)],_0x1a99ed[_0x3b3035(0xc2)],B['id'],_0x1a99ed[_0x3b3035(0x128)]);return _0x469aad&&_0x1a99ed[_0x3b3035(0xfb)]&&_0x434561[_0x3b3035(0x92)][_0x3b3035(0x101)](_0x434561['unitId'],_0x1a99ed[_0x3b3035(0xfb)]),_0x469aad;}let _0x340672=(_0x3d4f64==null?void 0x0:_0x3d4f64['blockId'])??_0x5a5615(0x6),_0x30fbf4;try{_0x30fbf4=De({'blockId':_0x340672,'config':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xf5)],'documentData':_0x434561[_0x3b3035(0x10d)],'endOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0xb3)],'insertionMode':_0x3d4f64==null?void 0x0:_0x3d4f64[_0x3b3035(0xdf)],'metadata':_0x5d5015,'startOffset':_0x2650b3==null?void 0x0:_0x2650b3[_0x3b3035(0x129)]});}catch(_0x1133d0){if(_0x1133d0 instanceof E)return!0x1;throw _0x1133d0;}let _0x4709b1=Y(_0x434561[_0x3b3035(0xc1)],_0x434561[_0x3b3035(0x98)],_0x434561[_0x3b3035(0xdb)],_0x434561['previousDocumentData'],_0x30fbf4[_0x3b3035(0xc2)],B['id'],_0x30fbf4[_0x3b3035(0x128)]);return _0x4709b1&&_0x30fbf4[_0x3b3035(0xfb)]&&_0x434561['model']['deserialize'](_0x434561[_0x3b3035(0xdb)],_0x30fbf4[_0x3b3035(0xfb)]),_0x4709b1;}},st={'id':'docs-code.command.update','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x508654,_0x16caba)=>{const _0x232c1e=_0x4278ec;if(!_0x16caba)return!0x1;let _0x5b8988=W(_0x508654,_0x16caba[_0x232c1e(0xdb)]);if(!_0x5b8988)return!0x1;let _0x4cf19b=je({'blockId':_0x16caba[_0x232c1e(0xbe)],'config':_0x16caba[_0x232c1e(0xf5)],'documentData':_0x5b8988[_0x232c1e(0x10d)],'metadata':_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0xba)](_0x5b8988[_0x232c1e(0xdb)])});return _0x4cf19b[_0x232c1e(0xfb)]&&_0x5b8988[_0x232c1e(0x92)][_0x232c1e(0x101)](_0x5b8988['unitId'],_0x4cf19b[_0x232c1e(0xfb)]),!0x0;}},ct={'id':'docs-code.command.exit','type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x2b17b9,_0x403216)=>V[_0x4278ec(0x12a)](_0x2b17b9,_0x403216)},V={'id':_0x4278ec(0xea),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x3dd3c0,_0x3a39df)=>{const _0x2fbb82=_0x4278ec;if(!_0x3a39df)return!0x1;let _0xf6c97e=W(_0x3dd3c0,_0x3a39df==null?void 0x0:_0x3a39df[_0x2fbb82(0xdb)]);if(!_0xf6c97e)return!0x1;let _0x353279=D({'blockId':_0x3a39df[_0x2fbb82(0xbe)],'documentData':_0xf6c97e[_0x2fbb82(0x10d)],'metadata':_0xf6c97e[_0x2fbb82(0x92)]['serialize'](_0xf6c97e[_0x2fbb82(0xdb)])});if(!_0x353279)return!0x1;let _0x54f7d5=Y(_0xf6c97e[_0x2fbb82(0xc1)],_0xf6c97e[_0x2fbb82(0x98)],_0xf6c97e[_0x2fbb82(0xdb)],_0xf6c97e[_0x2fbb82(0x10d)],_0x353279[_0x2fbb82(0xc2)],V['id'],_0x353279[_0x2fbb82(0x128)]);return _0x54f7d5&&_0x353279['nextMetadata']&&_0xf6c97e[_0x2fbb82(0x92)][_0x2fbb82(0x101)](_0xf6c97e[_0x2fbb82(0xdb)],_0x353279['nextMetadata']),_0x54f7d5;}},H={'id':_0x4278ec(0x11c),'type':_0x45294c[_0x4278ec(0x123)],'handler':(_0x36a0ff,_0x5846b7)=>{const _0x50f844=_0x4278ec;if(!_0x5846b7)return!0x1;let _0x58d4c2=W(_0x36a0ff,_0x5846b7==null?void 0x0:_0x5846b7[_0x50f844(0xdb)]);if(!_0x58d4c2)return!0x1;let _0x46ed19=Me({'blockId':_0x5846b7[_0x50f844(0xbe)],'documentData':_0x58d4c2[_0x50f844(0x10d)],'metadata':_0x58d4c2['model']['serialize'](_0x58d4c2[_0x50f844(0xdb)])});if(!_0x46ed19)return!0x1;let _0x46623a=Y(_0x58d4c2['commandService'],_0x58d4c2[_0x50f844(0x98)],_0x58d4c2['unitId'],_0x58d4c2[_0x50f844(0x10d)],_0x46ed19[_0x50f844(0xc2)],H['id'],_0x46ed19[_0x50f844(0x128)]);return _0x46623a&&_0x46ed19[_0x50f844(0xfb)]&&_0x58d4c2[_0x50f844(0x92)][_0x50f844(0x101)](_0x58d4c2[_0x50f844(0xdb)],_0x46ed19[_0x50f844(0xfb)]),_0x46623a;}},U={'id':'docs-code.command.cancel-empty-paragraph','type':_0x45294c['COMMAND'],'handler':(_0x564410,_0x5abb36)=>{const _0x227453=_0x4278ec;var _0x41f562;let _0x41e53c=W(_0x564410,_0x5abb36==null?void 0x0:_0x5abb36['unitId']);if(!_0x41e53c)return!0x1;let _0x4bacbc=(_0x5abb36==null?void 0x0:_0x5abb36[_0x227453(0x128)])??((_0x41f562=G(_0x564410))==null?void 0x0:_0x41f562[_0x227453(0x129)]);if(_0x4bacbc==null)return!0x1;let _0x408cdf=Ne({'cursorOffset':_0x4bacbc,'documentData':_0x41e53c[_0x227453(0x10d)],'paragraphStartIndex':_0x5abb36==null?void 0x0:_0x5abb36['paragraphStartIndex']});return _0x408cdf?Y(_0x41e53c['commandService'],_0x41e53c[_0x227453(0x98)],_0x41e53c[_0x227453(0xdb)],_0x41e53c[_0x227453(0x10d)],_0x408cdf[_0x227453(0xc2)],U['id'],_0x408cdf['cursorOffset']):!0x1;}};function W(_0x477734,_0x34c9d4){const _0x222556=_0x4278ec;let _0x1b41e2=_0x477734['get'](_0x2fe26f),_0x50162d=_0x34c9d4?_0x1b41e2[_0x222556(0x10b)](_0x34c9d4,_0x30a10b[_0x222556(0x11a)]):_0x1b41e2[_0x222556(0x91)](_0x30a10b[_0x222556(0x11a)]);return _0x50162d?{'commandService':_0x477734[_0x222556(0x135)](_0x1a34c1),'model':_0x477734[_0x222556(0x135)](w),'previousDocumentData':_0x50162d[_0x222556(0xa5)](),'selectionManager':_0x477734[_0x222556(0x135)](_0x1e01f3),'unitId':_0x50162d[_0x222556(0xaf)]()}:null;}function G(_0x1c881b){const _0x2ee128=_0x4278ec;var _0x4062a2;return(_0x4062a2=_0x1c881b[_0x2ee128(0x135)](_0x1e01f3)[_0x2ee128(0x117)]())==null?void 0x0:_0x4062a2[0x0];}function lt(_0x6c0fa8,_0x1d2352){const _0x433029=_0x4278ec;let _0x33d9fd=(_0x6c0fa8==null?void 0x0:_0x6c0fa8['startOffset'])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0x129)]),_0x1acb7c=(_0x6c0fa8==null?void 0x0:_0x6c0fa8[_0x433029(0xb3)])??(_0x1d2352==null?void 0x0:_0x1d2352[_0x433029(0xb3)]);if(_0x33d9fd!=null&&_0x1acb7c!=null)return{'endOffset':Math[_0x433029(0xc8)](_0x33d9fd,_0x1acb7c),'startOffset':Math[_0x433029(0x9b)](_0x33d9fd,_0x1acb7c)};}function ut(_0x55f3a9,_0x59f0a7){const _0x83f9a=_0x4278ec;var _0x28f028;if(!_0x59f0a7)return;let _0x847246=dt(_0x59f0a7);return(_0x28f028=_0x55f3a9[_0x83f9a(0x133)])==null||(_0x28f028=_0x28f028['blockRanges'])==null?void 0x0:_0x28f028[_0x83f9a(0x13a)](_0x329b8a=>{const _0x54e421=_0x83f9a;let _0x41c58d=_0x49707a(_0x329b8a);return _0x59f0a7[_0x54e421(0x129)]===_0x59f0a7[_0x54e421(0xb3)]?_0x27820e(_0x41c58d,_0x847246):_0x42e0ef(_0x41c58d,_0x847246);});}function dt(_0x1bf3e5){const _0x4ef606=_0x4278ec;return _0x1bf3e5['startOffset']===_0x1bf3e5[_0x4ef606(0xb3)]?_0x1bf3e5[_0x4ef606(0x129)]:_0x1bf3e5[_0x4ef606(0x129)]+0x1;}function ft(_0x5ecbff){const _0x140f36=_0x4278ec;let _0x20b402=G(_0x5ecbff);if(!_0x20b402)return null;let _0x2dd1e8=_0x5ecbff[_0x140f36(0x135)](_0x2fe26f)[_0x140f36(0x91)](_0x30a10b['UNIVER_DOC']),_0x20d771=_0x2dd1e8==null?void 0x0:_0x2dd1e8[_0x140f36(0xd8)]();return _0x20d771?_0x20804f['range'][_0x140f36(0xaa)](_0x20b402,_0x20d771[_0x140f36(0x114)]??[],_0x20d771[_0x140f36(0x94)]??'')[0x0]??null:null;}function pt(_0x54b88e,_0x1fba91){const _0x47d867=_0x4278ec;let _0x490fd4=_0x54b88e[_0x47d867(0x133)],_0x4fddd8=_0x1fba91['body'],_0x2c4c33=_0x460607(_0x490fd4,_0x4fddd8);return[_0x2c4c33&&_0x4fddd8?mt(_0x4fddd8,_0x2c4c33):null,_0x2c4c33?null:ht(_0x490fd4,_0x4fddd8)][_0x47d867(0xd2)](Boolean)[_0x47d867(0xcd)]((_0x46a640,_0x3e5ae8)=>_0xa0927a[_0x47d867(0xb1)](_0x46a640,_0x3e5ae8),null);}function mt(_0x4b826f,_0x3dd650){const _0x3bdf18=_0x4278ec;let _0x140dab=new _0xaed83f();return _0x140dab[_0x3bdf18(0x139)](_0x3dd650[_0x3bdf18(0xa0)]),_0x3dd650[_0x3bdf18(0x121)]>0x0&&_0x140dab[_0x3bdf18(0x9c)](_0x3dd650[_0x3bdf18(0x121)],_0x285f89(_0x4b826f,_0x3dd650[_0x3bdf18(0xa0)],_0x3dd650[_0x3bdf18(0xa0)]+_0x3dd650['insertLength'],!0x1)),_0x3dd650[_0x3bdf18(0xbf)]>0x0&&_0x140dab[_0x3bdf18(0xc6)](_0x3dd650[_0x3bdf18(0xbf)]),_0xa0927a[_0x3bdf18(0xe2)]()[_0x3bdf18(0x10a)](_0x140dab[_0x3bdf18(0xba)](),[_0x3bdf18(0x133)]);}function ht(_0x10df4f,_0x37288b){const _0x13f1f3=_0x4278ec;let _0x93618=[],_0x5aeb35=_0x10df4f?_t(_0x10df4f):void 0x0,_0x11a88e=_0x37288b?_t(_0x37288b):void 0x0;for(let _0x1cf5e6 of gt)K(_0xa0927a[_0x13f1f3(0xe2)](),[_0x13f1f3(0x133),_0x1cf5e6],_0x5aeb35==null?void 0x0:_0x5aeb35[_0x1cf5e6],_0x11a88e==null?void 0x0:_0x11a88e[_0x1cf5e6],_0x93618);return _0x93618[_0x13f1f3(0xcd)]((_0x5bd6b7,_0x239a68)=>_0xa0927a['compose'](_0x5bd6b7,_0x239a68),null);}const gt=[_0x4278ec(0x114),_0x4278ec(0xa9),_0x4278ec(0xe3),_0x4278ec(0xe5),_0x4278ec(0x12e),'customBlocks','customRanges',_0x4278ec(0x137),_0x4278ec(0xdc)];function _t(_0x165bfa){return _0x165bfa;}function K(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e){const _0x47049d=_0x4278ec;J(_0x4801ac,_0x13a8c8)||(_0x4801ac==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0xf1)](_0x3ba98a,_0x13a8c8)):_0x13a8c8==null?_0x13ae3e[_0x47049d(0x93)](_0x5b2771['removeOp'](_0x3ba98a,_0x4801ac)):Array[_0x47049d(0x13b)](_0x4801ac)&&Array['isArray'](_0x13a8c8)?vt(_0x5b2771,_0x3ba98a,_0x4801ac,_0x13a8c8,_0x13ae3e):q(_0x4801ac)&&q(_0x13a8c8)?new Set([...Object['keys'](_0x4801ac),...Object[_0x47049d(0xc4)](_0x13a8c8)])[_0x47049d(0xb9)](_0x118146=>{K(_0x5b2771,[..._0x3ba98a,_0x118146],_0x4801ac[_0x118146],_0x13a8c8[_0x118146],_0x13ae3e);}):_0x13ae3e[_0x47049d(0x93)](_0x5b2771[_0x47049d(0x124)](_0x3ba98a,_0x4801ac,_0x13a8c8)));}function vt(_0x4a4b23,_0x4b7c3c,_0x380b93,_0x553172,_0x8dd336){const _0x31610b=_0x4278ec;if(_0x380b93['length']===_0x553172[_0x31610b(0xee)]){_0x380b93[_0x31610b(0xb9)]((_0xf0243e,_0x2829ba)=>K(_0x4a4b23,[..._0x4b7c3c,_0x2829ba],_0xf0243e,_0x553172[_0x2829ba],_0x8dd336));return;}let _0x1fc3d8=0x0;for(;_0x1fc3d8<_0x380b93[_0x31610b(0xee)]&&_0x1fc3d8<_0x553172[_0x31610b(0xee)]&&J(_0x380b93[_0x1fc3d8],_0x553172[_0x1fc3d8]);)_0x1fc3d8++;let _0x3c9026=_0x380b93[_0x31610b(0xee)]-0x1,_0x3c63d9=_0x553172[_0x31610b(0xee)]-0x1;for(;_0x3c9026>=_0x1fc3d8&&_0x3c63d9>=_0x1fc3d8&&J(_0x380b93[_0x3c9026],_0x553172[_0x3c63d9]);)_0x3c9026--,_0x3c63d9--;for(let _0x28b19a=_0x3c9026;_0x28b19a>=_0x1fc3d8;_0x28b19a--)_0x8dd336['push'](_0x4a4b23['removeOp']([..._0x4b7c3c,_0x28b19a],_0x380b93[_0x28b19a]));for(let _0x43491d=_0x1fc3d8;_0x43491d<=_0x3c63d9;_0x43491d++)_0x8dd336['push'](_0x4a4b23[_0x31610b(0xf1)]([..._0x4b7c3c,_0x43491d],_0x553172[_0x43491d]));}function q(_0x115ee4){const _0x32fdf5=_0x4278ec;return typeof _0x115ee4==_0x32fdf5(0xfc)&&!!_0x115ee4&&!Array['isArray'](_0x115ee4);}function J(_0x5981b2,_0x4e08df){const _0x1c72a9=_0x4278ec;return JSON[_0x1c72a9(0x125)](_0x5981b2)===JSON[_0x1c72a9(0x125)](_0x4e08df);}function Y(_0x3e8cdb,_0x3fc174,_0x4e93a6,_0x20e275,_0x529f85,_0x1e9b12,_0x46a8f6){const _0x4ac24e=_0x4278ec;let _0x3c2a98=pt(_0x20e275,_0x529f85);return _0x3c2a98?!!_0x3e8cdb[_0x4ac24e(0xcf)](_0x31ecbf['id'],{'unitId':_0x4e93a6,'actions':_0x3c2a98,'textRanges':[{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x1e9b12}):(_0x3fc174[_0x4ac24e(0x106)]([{'startOffset':_0x46a8f6,'endOffset':_0x46a8f6}],{'unitId':_0x4e93a6,'subUnitId':_0x4e93a6},!0x1),!0x0);}const X=_0x4278ec(0x100);function _0x57e9(_0x26229e,_0x3b7941){_0x26229e=_0x26229e-0x90;const _0x1bbf03=_0x1bbf();let _0x57e903=_0x1bbf03[_0x26229e];return _0x57e903;}var yt=_0x4278ec(0x130),bt=_0x4278ec(0xf8);const xt={};function Z(_0x4954a6,_0x5978aa){return function(_0x47b23a,_0x2a1b54){_0x5978aa(_0x47b23a,_0x2a1b54,_0x4954a6);};}function St(_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a){const _0x4d29b1=_0x4278ec;var _0x312df7=arguments[_0x4d29b1(0xee)],_0x7ca8f1=_0x312df7<0x3?_0x21fee1:_0x2e442a===null?_0x2e442a=Object['getOwnPropertyDescriptor'](_0x21fee1,_0x52db37):_0x2e442a,_0x22a74e;if(typeof Reflect==_0x4d29b1(0xfc)&&typeof Reflect['decorate']==_0x4d29b1(0x110))_0x7ca8f1=Reflect[_0x4d29b1(0x11b)](_0x1e83df,_0x21fee1,_0x52db37,_0x2e442a);else{for(var _0x1e69a2=_0x1e83df['length']-0x1;_0x1e69a2>=0x0;_0x1e69a2--)(_0x22a74e=_0x1e83df[_0x1e69a2])&&(_0x7ca8f1=(_0x312df7<0x3?_0x22a74e(_0x7ca8f1):_0x312df7>0x3?_0x22a74e(_0x21fee1,_0x52db37,_0x7ca8f1):_0x22a74e(_0x21fee1,_0x52db37))||_0x7ca8f1);}return _0x312df7>0x3&&_0x7ca8f1&&Object[_0x4d29b1(0xc7)](_0x21fee1,_0x52db37,_0x7ca8f1),_0x7ca8f1;}let Q=class extends _0x1ccbbc{constructor(_0x27edf5,_0x491879){const _0x4d286a=_0x4278ec;super(),this['_resourceManagerService']=_0x27edf5,this[_0x4d286a(0x138)]=_0x491879,this[_0x4d286a(0xc5)]();}[_0x4278ec(0xc5)](){const _0x326ba8=_0x4278ec;this['disposeWithMe'](this[_0x326ba8(0xb5)][_0x326ba8(0xcc)]({'pluginName':X,'businesses':[_0x30a10b[_0x326ba8(0x11a)]],'toJson':_0x2c517d=>JSON[_0x326ba8(0x125)](this[_0x326ba8(0x138)][_0x326ba8(0xba)](_0x2c517d)),'parseJson':_0x3c5a02=>y(JSON['parse'](_0x3c5a02)),'onLoad':(_0x4071fe,_0x462d17)=>this[_0x326ba8(0x138)]['deserialize'](_0x4071fe,_0x462d17),'onUnLoad':_0x2343a1=>this[_0x326ba8(0x138)][_0x326ba8(0x11f)](_0x2343a1)}));}};Q=St([Z(0x0,_0x134f76),Z(0x1,_0x2b0865(w))],Q);function _0x1bbf(){const _0x14a5e0=['blockRanges','call','@univerjs-pro/docs-code','codes','registerCommand','body','paragraphId','get','setConfig','customDecorations','_docsCodeModel','retain','find','isArray','4AHSlWa','getCurrentUnitOfType','model','push','dataStream','metadata','_configService','complete','selectionManager','MUTATION','1394667bOuSLk','min','insert','_change$','_setResource','direction','start','blockType','keepLines','disposeWithMe','some','getSnapshot','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CODE','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','sectionBreaks','getParagraphsInRange','docs-code.mutation.remove-config','right','prototype','FALSE','getUnitId','bullet','compose','next','endOffset','string','_resourceManagerService','TRUE','SECTION_BREAK','3999970akNuVN','forEach','serialize','onStarting','_resources','type','blockId','deleteLength','docs-code.config','commandService','nextDocumentData','packageName','keys','_initResource','delete','defineProperty','max','version','set','795179QDsyBD','registerPluginResource','reduce','indentStart','syncExecuteCommand','asObservable','1974AOwdEN','filter','clear','TABLE_CELL_END','left','map','BLOCK_END','getBody','change$','_commandService','unitId','textRuns','startTokenOffset','BLOCK_START','insertionMode','233337IvatbR','paragraphStartIndex','getInstance','tables','documentData','columnGroups','sort','textStyle','fromEntries','_config','docs-code.command.unwrap','setCodeConfig','24odtdFJ','customBlocks','length','default','javascript','insertOp','iterator','endsWith','endIndex','config','6895vXgSeP','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','1.3.1','customRanges','docs-code.command.insert-below','nextMetadata','object','symbol','docs-code.command.consume-boundary-delete','paragraphStyle','DOC_CODE_PLUGIN','deserialize','11LAAFoL','columns','toPrimitive','spaceBelow','replaceDocRanges','docs-code.command.insert','2wyLwUB','removeCode','editOp','getUnit','pluginName','previousDocumentData','monospace','327052jloilN','function','indentEnd','_injector','Document\x20body\x20is\x20required','paragraphs','dispose','add','getTextRanges','constructor','spaceAbove','UNIVER_DOC','decorate','docs-code.command.remove','TABLE_CELL_START','startIndex','removeUnit','266511iUYQom','insertLength','slice','COMMAND','replaceOp','stringify','every','entries','cursorOffset','startOffset','handler','PARAGRAPH','endTokenOffset','336nbPQzl'];_0x1bbf=function(){return _0x14a5e0;};return _0x1bbf();}let $=class extends _0x25c4b9{constructor(_0x33570e=xt,_0x3481ce,_0x5790d7,_0x3c57df){const _0x51d1fc=_0x4278ec;super(),this['_config']=_0x33570e,this[_0x51d1fc(0x112)]=_0x3481ce,this[_0x51d1fc(0xda)]=_0x5790d7,this[_0x51d1fc(0x96)]=_0x3c57df;let {..._0x89248c}=_0x374a9d({},xt,this[_0x51d1fc(0xe9)]);this[_0x51d1fc(0x96)][_0x51d1fc(0x136)](_0x51d1fc(0xc0),_0x89248c);}[_0x4278ec(0xbb)](){const _0x55fe69=_0x4278ec;this[_0x55fe69(0x112)][_0x55fe69(0x116)]([w]),this['_injector'][_0x55fe69(0x116)]([Q]),this['_injector']['get'](w),this[_0x55fe69(0x112)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T][_0x55fe69(0xb9)](_0x390560=>this[_0x55fe69(0xa3)](this[_0x55fe69(0xda)][_0x55fe69(0x132)](_0x390560)));}};C($,_0x4278ec(0x10c),X),C($,_0x4278ec(0xc3),yt),C($,_0x4278ec(0xc9),bt),C($,_0x4278ec(0xbd),_0x30a10b[_0x4278ec(0x11a)]),$=St([_0x85efd(_0x509979,_0x1e99e0),Z(0x1,_0x2b0865(_0x650f9e)),Z(0x2,_0x1a34c1),Z(0x3,_0x48b9b0)],$);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};