@univerjs-pro/docs-code 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/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 _0x5af448=_0x26ed;(function(_0xdf62e7,_0x1ba28f){const _0x1eb134=_0x26ed,_0x2ef69b=_0xdf62e7();while(!![]){try{const _0x3f9b9d=parseInt(_0x1eb134(0x162))/0x1+-parseInt(_0x1eb134(0x1a6))/0x2*(-parseInt(_0x1eb134(0x1b2))/0x3)+parseInt(_0x1eb134(0x1bd))/0x4+parseInt(_0x1eb134(0x178))/0x5*(-parseInt(_0x1eb134(0x176))/0x6)+-parseInt(_0x1eb134(0x16c))/0x7+-parseInt(_0x1eb134(0x1f3))/0x8+-parseInt(_0x1eb134(0x1ec))/0x9;if(_0x3f9b9d===_0x1ba28f)break;else _0x2ef69b['push'](_0x2ef69b['shift']());}catch(_0x55975f){_0x2ef69b['push'](_0x2ef69b['shift']());}}}(_0x2936,0x70dc2));import{BooleanNumber as _0xacb120,BuildTextUtils as _0x59cd88,CommandType as _0x4c164f,DataStreamTreeTokenType as _0xe09000,DependentOn as _0x4db280,Disposable as _0x1ddee2,DocumentBlockRangeType as _0x8689f3,ICommandService as _0x6359aa,IConfigService as _0x336315,IResourceManagerService as _0x1fcb3e,IUniverInstanceService as _0x1afda3,Inject as _0x22acd5,Injector as _0x462910,JSONX as _0x235eff,Plugin as _0x537f2b,TextX as _0x2f1bce,UniverInstanceType as _0x3a8083,containsInteriorInsertionOffset as _0x4d26c0,containsStreamIndex as _0x1ce7f1,createParagraphId as _0x4c2e1e,generateRandomId as _0x220f54,getBlockRangeInterval as _0x5d8873,getBodySliceForTextXAction as _0x4a9b32,getParagraphContentStartOffset as _0x30e24f,getParagraphContentStartOffsets as _0x27c03f,getParagraphFollowingBlockOffset as _0x1f33a7,getSingleDataStreamChange as _0x514248,intersectsOperationalIntervals as _0x1cbea0,merge as _0x1b4ff5,shiftExclusiveRangeOnDelete as _0x48996e,shiftExclusiveRangeOnInsert as _0x2f36d2,shiftInclusiveRangeOnDelete as _0x1e00bb,shiftInclusiveRangeOnInsert as _0x36a074}from'@univerjs/core';import{Subject as _0x4870b4}from'rxjs';import{DocSelectionManagerService as _0x235b8c,RichTextEditingMutation as _0x579991,UniverDocsPlugin as _0x15d972,getContentInsertRange as _0x4474d4,isHeaderFooterSelection as _0x14cbd8}from'@univerjs/docs';import{UniverLicensePlugin as _0x4b33a5}from'@univerjs-pro/license';const Se={'language':_0x5af448(0x1e1),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x1b7443){return{...Se,..._0x1b7443};}function y(_0x1a18b6){const _0x2dd836=_0x5af448;let _0x2ed990=(_0x1a18b6==null?void 0x0:_0x1a18b6[_0x2dd836(0x1b3)])??{};return{'codes':Object[_0x2dd836(0x184)](Object['entries'](_0x2ed990)[_0x2dd836(0x1e9)](([_0x148552,_0x3b6f1d])=>[_0x148552,v(_0x3b6f1d)]))};}function b(_0x3aab52,_0x119d47,_0x412d82){const _0x1a450b=_0x5af448;let _0x51f151=y(_0x3aab52);return _0x51f151[_0x1a450b(0x1b3)][_0x119d47]=v({..._0x51f151[_0x1a450b(0x1b3)][_0x119d47],..._0x412d82}),_0x51f151;}function x(_0x2696ab,_0x538656){const _0x1a788d=_0x5af448;let _0x134df3=y(_0x2696ab);return delete _0x134df3[_0x1a788d(0x1b3)][_0x538656],_0x134df3;}function S(_0x2b435c){'@babel/helpers - typeof';const _0x1b6d95=_0x5af448;return S=typeof Symbol==_0x1b6d95(0x175)&&typeof Symbol['iterator']==_0x1b6d95(0x1af)?function(_0x408b06){return typeof _0x408b06;}:function(_0x9979e4){const _0x2aa43d=_0x1b6d95;return _0x9979e4&&typeof Symbol==_0x2aa43d(0x175)&&_0x9979e4[_0x2aa43d(0x1f4)]===Symbol&&_0x9979e4!==Symbol[_0x2aa43d(0x17f)]?_0x2aa43d(0x1af):typeof _0x9979e4;},S(_0x2b435c);}function Ce(_0x31f403,_0x5318c8){const _0x52499a=_0x5af448;if(S(_0x31f403)!=_0x52499a(0x187)||!_0x31f403)return _0x31f403;var _0x4007ac=_0x31f403[Symbol[_0x52499a(0x1be)]];if(_0x4007ac!==void 0x0){var _0x34db6e=_0x4007ac[_0x52499a(0x1c0)](_0x31f403,_0x5318c8||_0x52499a(0x1dd));if(S(_0x34db6e)!=_0x52499a(0x187))return _0x34db6e;throw TypeError(_0x52499a(0x19a));}return(_0x5318c8===_0x52499a(0x17d)?String:Number)(_0x31f403);}function we(_0x102e2b){var _0xc73953=Ce(_0x102e2b,'string');return S(_0xc73953)=='symbol'?_0xc73953:_0xc73953+'';}function C(_0xc8c762,_0x3eb6ac,_0x40e14a){const _0x350630=_0x5af448;return(_0x3eb6ac=we(_0x3eb6ac))in _0xc8c762?Object[_0x350630(0x19b)](_0xc8c762,_0x3eb6ac,{'value':_0x40e14a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc8c762[_0x3eb6ac]=_0x40e14a,_0xc8c762;}var w=class extends _0x1ddee2{constructor(..._0xa58b52){const _0x576c6a=_0x5af448;super(..._0xa58b52),C(this,_0x576c6a(0x1a7),new Map()),C(this,_0x576c6a(0x18c),new _0x4870b4()),C(this,_0x576c6a(0x1fb),this['_change$'][_0x576c6a(0x166)]());}[_0x5af448(0x1eb)](_0x161133,_0x1d3cc2){const _0x31c36d=_0x5af448;return y(this[_0x31c36d(0x1a7)][_0x31c36d(0x1e2)](_0x161133))['codes'][_0x1d3cc2];}['setCodeConfig'](_0x164c38,_0x417206,_0x4827dd){const _0x1d0184=_0x5af448;this[_0x1d0184(0x1f9)](_0x164c38,_0x417206,b(this[_0x1d0184(0x1a7)][_0x1d0184(0x1e2)](_0x164c38),_0x417206,_0x4827dd));}[_0x5af448(0x1ff)](_0x27f447,_0x35280b){const _0x12f8af=_0x5af448;this[_0x12f8af(0x1f9)](_0x27f447,_0x35280b,x(this[_0x12f8af(0x1a7)][_0x12f8af(0x1e2)](_0x27f447),_0x35280b));}['serialize'](_0x5674fc){const _0x3580da=_0x5af448;return y(this[_0x3580da(0x1a7)][_0x3580da(0x1e2)](_0x5674fc));}['deserialize'](_0x56bf5f,_0x2cdb58){const _0x42f6b0=_0x5af448;this['_resources'][_0x42f6b0(0x163)](_0x56bf5f,y(_0x2cdb58)),this[_0x42f6b0(0x18c)][_0x42f6b0(0x197)]({'unitId':_0x56bf5f});}[_0x5af448(0x1d8)](_0x5e681f){const _0x25e957=_0x5af448;this[_0x25e957(0x1a7)]['delete'](_0x5e681f),this[_0x25e957(0x18c)][_0x25e957(0x197)]({'unitId':_0x5e681f});}[_0x5af448(0x1e0)](){const _0x242d9c=_0x5af448;super['dispose'](),this[_0x242d9c(0x1a7)]['clear'](),this[_0x242d9c(0x18c)]['complete']();}[_0x5af448(0x1f9)](_0x51c4e5,_0xb8313d,_0x3d3477){const _0x5868f4=_0x5af448;this[_0x5868f4(0x1a7)][_0x5868f4(0x163)](_0x51c4e5,_0x3d3477),this[_0x5868f4(0x18c)][_0x5868f4(0x197)]({'unitId':_0x51c4e5,'blockId':_0xb8313d});}};const Te={'id':_0x5af448(0x179),'type':_0x4c164f[_0x5af448(0x191)],'handler':(_0x4f01d8,_0x5a3428)=>!(_0x5a3428!=null&&_0x5a3428['unitId'])||!_0x5a3428[_0x5af448(0x170)]?!0x1:(_0x4f01d8[_0x5af448(0x1e2)](w)[_0x5af448(0x1cc)](_0x5a3428[_0x5af448(0x1fe)],_0x5a3428[_0x5af448(0x170)],_0x5a3428[_0x5af448(0x185)]),!0x0)},T={'id':_0x5af448(0x1b8),'type':_0x4c164f[_0x5af448(0x191)],'handler':(_0x492c24,_0x96326)=>!(_0x96326!=null&&_0x96326[_0x5af448(0x1fe)])||!_0x96326[_0x5af448(0x170)]?!0x1:(_0x492c24[_0x5af448(0x1e2)](w)['removeCode'](_0x96326[_0x5af448(0x1fe)],_0x96326['blockId']),!0x0)},Ee=_0x5af448(0x186);var E=class extends Error{constructor(_0x407778=_0x5af448(0x171)){super(_0x407778);}};function De(_0x1fafba){const _0x55d9bf=_0x5af448;var _0x253d86;let _0x3dd092=O(_0x1fafba['documentData']),_0x4e8195=A(_0x3dd092),_0x1e2e3c=ke(_0x1fafba[_0x55d9bf(0x1bc)],_0x1fafba[_0x55d9bf(0x1b5)]),_0x548cae=_0x1e2e3c?(_0x253d86=_0x4e8195['blockRanges'])==null?void 0x0:_0x253d86[_0x55d9bf(0x16a)](_0x1662da=>{const _0x3c67f5=_0x55d9bf;let _0x516d96=_0x5d8873(_0x1662da);return _0x516d96[_0x3c67f5(0x1bc)]===_0x1e2e3c[_0x3c67f5(0x1bc)]&&_0x516d96[_0x3c67f5(0x1b5)]===_0x1e2e3c['endOffset'];}):void 0x0,{startOffset:_0x12ff33,endOffset:_0x53c6b8}=_0x548cae?_0x1e2e3c:We(_0x4e8195,_0x1fafba[_0x55d9bf(0x1bc)],_0x1fafba[_0x55d9bf(0x1b5)],_0x1fafba[_0x55d9bf(0x188)]);if(!_0x548cae&&Ae(_0x4e8195,_0x12ff33,_0x53c6b8))throw new E(_0x55d9bf(0x1c4));let _0x131064=qe(_0x4e8195,_0x12ff33,_0x53c6b8),_0xb521ce=(_0x548cae==null?void 0x0:_0x548cae[_0x55d9bf(0x170)])??_0x1fafba[_0x55d9bf(0x170)],_0x2aac06=b(_0x1fafba[_0x55d9bf(0x1f5)],_0xb521ce,{...Se,..._0x1fafba['config']});if(_0x548cae)return _0x548cae[_0x55d9bf(0x180)]=_0x8689f3['CODE'],Oe(_0x4e8195,_0x12ff33,_0x53c6b8),ze(_0x4e8195,_0x12ff33,_0x53c6b8,_0x131064),N(_0x4e8195,_0x548cae),{'nextDocumentData':_0x3dd092,'nextMetadata':_0x2aac06,'cursorOffset':_0x12ff33+0x1};if(_0x12ff33===_0x53c6b8){var _0x7bbca2,_0x44b644;let _0x42da99=''+_0xe09000[_0x55d9bf(0x17b)]+_0xe09000[_0x55d9bf(0x160)]+_0xe09000[_0x55d9bf(0x1a0)];P(_0x4e8195,_0x12ff33,_0x42da99,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4c2e1e(new Set((_0x7bbca2=_0x4e8195['paragraphs'])==null?void 0x0:_0x7bbca2[_0x55d9bf(0x1e9)](_0x2445c1=>_0x2445c1['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x131064)}],'blockRanges':[{'blockId':_0xb521ce,'blockType':_0x8689f3[_0x55d9bf(0x1ee)],'startIndex':0x0,'endIndex':_0x42da99[_0x55d9bf(0x183)]-0x1}]});let _0xb93b7f=(_0x44b644=_0x4e8195[_0x55d9bf(0x18e)])==null?void 0x0:_0x44b644[_0x55d9bf(0x16a)](_0x4440ee=>_0x4440ee[_0x55d9bf(0x170)]===_0xb521ce);return _0xb93b7f&&N(_0x4e8195,_0xb93b7f),{'nextDocumentData':_0x3dd092,'nextMetadata':_0x2aac06,'cursorOffset':_0x12ff33+0x1};}P(_0x4e8195,_0x53c6b8,_0xe09000[_0x55d9bf(0x1a0)]),P(_0x4e8195,_0x12ff33,_0xe09000[_0x55d9bf(0x17b)]),ze(_0x4e8195,_0x12ff33,_0x53c6b8+0x1,_0x131064);let _0x488854={'blockId':_0xb521ce,'blockType':_0x8689f3['CODE'],'startIndex':_0x12ff33,'endIndex':_0x53c6b8+0x1};return _0x4e8195['blockRanges']=[..._0x4e8195[_0x55d9bf(0x18e)]??[],_0x488854]['sort']((_0x3d607a,_0x3abc61)=>_0x3d607a[_0x55d9bf(0x1bf)]-_0x3abc61[_0x55d9bf(0x1bf)]),N(_0x4e8195,_0x488854),{'nextDocumentData':_0x3dd092,'nextMetadata':_0x2aac06,'cursorOffset':_0x12ff33+0x1};}function Oe(_0x25d443,_0x4a8e4d,_0x14fd77){const _0x2151e5=_0x5af448;(_0x25d443[_0x2151e5(0x195)]??[])['filter'](_0x1266e7=>_0x1266e7[_0x2151e5(0x1bf)]>_0x4a8e4d&&_0x1266e7['startIndex']<_0x14fd77)[_0x2151e5(0x1d7)](_0x375f95=>{const _0x23b6d3=_0x2151e5;let _0x19034e={..._0x375f95[_0x23b6d3(0x1a8)]??{}};delete _0x19034e[_0x23b6d3(0x1ed)],delete _0x19034e[_0x23b6d3(0x1b6)],_0x375f95[_0x23b6d3(0x1a8)]=_0x19034e;});}function ke(_0x5a3ed1,_0x10ecd8){const _0x39d2e0=_0x5af448;return _0x5a3ed1==null||_0x10ecd8==null||_0x5a3ed1===_0x10ecd8?null:{'startOffset':Math['min'](_0x5a3ed1,_0x10ecd8),'endOffset':Math[_0x39d2e0(0x1c7)](_0x5a3ed1,_0x10ecd8)};}function Ae(_0xf133aa,_0x167283,_0x4e0988){const _0x2c5570=_0x5af448;return(_0xf133aa[_0x2c5570(0x18e)]??[])[_0x2c5570(0x1cb)](_0xb97fc4=>{let _0x395fb0=_0x5d8873(_0xb97fc4);return _0x167283===_0x4e0988?_0x4d26c0(_0x395fb0,_0x167283):_0x1cbea0(_0x395fb0,{'startOffset':_0x167283,'endOffset':_0x4e0988});});}function je(_0x31f2e4){const _0x56345a=_0x5af448;return{'nextDocumentData':O(_0x31f2e4[_0x56345a(0x1c2)]),'nextMetadata':b(_0x31f2e4['metadata'],_0x31f2e4[_0x56345a(0x170)],_0x31f2e4[_0x56345a(0x185)]),'cursorOffset':0x0};}function D(_0x2864b8){const _0x54f691=_0x5af448;let _0x3dc60f=O(_0x2864b8[_0x54f691(0x1c2)]),_0x4527a2=A(_0x3dc60f),_0x29a06c=Fe(_0x4527a2,_0x2864b8[_0x54f691(0x170)]);if(!_0x29a06c)return null;let _0x5dd5eb=He(_0x4527a2,_0x29a06c);return{'nextDocumentData':_0x3dc60f,'nextMetadata':x(_0x2864b8[_0x54f691(0x1f5)],_0x2864b8['blockId']),'cursorOffset':_0x5dd5eb};}function Me(_0x3601a0){const _0x1e092b=_0x5af448;var _0x348e8a;let _0x508b55=O(_0x3601a0['documentData']),_0x4f8a84=A(_0x508b55),_0x2cc63d=Fe(_0x4f8a84,_0x3601a0[_0x1e092b(0x170)]);if(!_0x2cc63d)return null;let _0x5da37e=_0x5d8873(_0x2cc63d);return F(_0x4f8a84,_0x5da37e['startOffset'],_0x5da37e[_0x1e092b(0x1b5)]),_0x4f8a84[_0x1e092b(0x18e)]=(_0x348e8a=_0x4f8a84[_0x1e092b(0x18e)])==null?void 0x0:_0x348e8a['filter'](_0x49440a=>_0x49440a[_0x1e092b(0x170)]!==_0x3601a0['blockId']),{'nextDocumentData':_0x508b55,'nextMetadata':x(_0x3601a0[_0x1e092b(0x1f5)],_0x3601a0[_0x1e092b(0x170)]),'cursorOffset':_0x2cc63d[_0x1e092b(0x1bf)]};}function Ne(_0x3554c6){const _0x377dc9=_0x5af448;let _0x33b07d=O(_0x3554c6[_0x377dc9(0x1c2)]),_0x5b0e57=A(_0x33b07d),_0x1e1d36=Le(_0x5b0e57,_0x3554c6[_0x377dc9(0x172)]);return _0x1e1d36&&Pe(_0x33b07d,_0x5b0e57,_0x1e1d36,_0x3554c6['cursorOffset'],_0x3554c6['paragraphStartIndex'])||null;}function Pe(_0x330de4,_0x1e5083,_0x2cbf5e,_0x48c97c,_0x244e68){const _0xc0b66b=_0x5af448;let _0x4d8fe8=$e(_0x1e5083,_0x2cbf5e,_0x48c97c,_0x244e68);if(!_0x4d8fe8)return null;let _0x2c5e6f=_0x4d8fe8[_0xc0b66b(0x17a)]-0x1;return F(_0x1e5083,_0x4d8fe8[_0xc0b66b(0x1ac)]['startIndex'],_0x4d8fe8[_0xc0b66b(0x1ac)]['startIndex']+0x1),{'nextDocumentData':_0x330de4,'cursorOffset':_0x2c5e6f};}function Fe(_0x4cfbe1,_0x1fefa8){const _0x521e72=_0x5af448;var _0x4e5763;return _0x4cfbe1==null||(_0x4e5763=_0x4cfbe1[_0x521e72(0x18e)])==null?void 0x0:_0x4e5763[_0x521e72(0x16a)](_0x2fd4bb=>_0x2fd4bb[_0x521e72(0x180)]===_0x8689f3[_0x521e72(0x1ee)]&&_0x2fd4bb[_0x521e72(0x170)]===_0x1fefa8);}function Ie(_0x1b62b5){const _0xa11c9=_0x5af448;let _0x18faae=_0x1b62b5[_0xa11c9(0x1c2)][_0xa11c9(0x1a9)];if(!_0x18faae)return!0x1;let _0x33ca30=_0x1b62b5[_0xa11c9(0x1aa)]==='left'?_0x1b62b5[_0xa11c9(0x172)]-0x1:_0x1b62b5['cursorOffset'],_0x35d07a=_0x1b62b5['direction']===_0xa11c9(0x1e7)?_0x1b62b5[_0xa11c9(0x172)]+0x1:_0x33ca30;return(_0x18faae['blockRanges']??[])[_0xa11c9(0x1cb)](_0x36ba64=>_0x36ba64[_0xa11c9(0x180)]===_0x8689f3[_0xa11c9(0x1ee)]?_0x33ca30===_0x36ba64[_0xa11c9(0x1bf)]||_0x33ca30===_0x36ba64[_0xa11c9(0x16d)]||_0x35d07a===_0x36ba64[_0xa11c9(0x1bf)]||_0x35d07a===_0x36ba64[_0xa11c9(0x16d)]:!0x1);}function Le(_0x14a643,_0x4dc484){const _0x4b516c=_0x5af448;var _0x1a0870;return(_0x1a0870=_0x14a643[_0x4b516c(0x18e)])==null?void 0x0:_0x1a0870[_0x4b516c(0x16a)](_0x227eb2=>{const _0x5d9a04=_0x4b516c;let _0x30d708=M(_0x227eb2);return _0x227eb2[_0x5d9a04(0x180)]===_0x8689f3[_0x5d9a04(0x1ee)]&&_0x227eb2[_0x5d9a04(0x1bf)]<=_0x4dc484&&_0x4dc484<=_0x30d708+0x2;});}function Re(_0x73a82b,_0xec4a9f,_0x1fc722=!0x1){const _0x456c72=_0x5af448;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0xacb120[_0x456c72(0x1b1)],'keepNext':_0xec4a9f?_0xacb120['FALSE']:_0xacb120[_0x456c72(0x1b1)],'widowControl':_0xacb120[_0x456c72(0x1b1)],..._0x73a82b&&_0x1fc722?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x2ee977,_0x5489fb,_0x28d8f8,_0x2aaead=!0x1){const _0x1c704b=_0x5af448;let _0x194a79=(_0x2ee977[_0x1c704b(0x195)]??[])[_0x1c704b(0x1ef)](_0x109dda=>_0x109dda['startIndex']>_0x5489fb&&_0x109dda[_0x1c704b(0x1bf)]<_0x28d8f8);_0x194a79[_0x1c704b(0x1d7)]((_0x981ee9,_0x4f6761)=>{const _0x23009c=_0x1c704b;_0x981ee9[_0x23009c(0x1a8)]={..._0x981ee9[_0x23009c(0x1a8)]??{},...Re(_0x4f6761===0x0,_0x4f6761===_0x194a79[_0x23009c(0x183)]-0x1,_0x2aaead)};});}function Be(_0x28f1c0){const _0x4ff1c5=_0x5af448;var _0x153ec7,_0x1adf73;let _0x426af4={..._0x28f1c0??{}};return delete _0x426af4[_0x4ff1c5(0x1a2)],delete _0x426af4[_0x4ff1c5(0x174)],delete _0x426af4['spaceAbove'],delete _0x426af4[_0x4ff1c5(0x1b6)],delete _0x426af4['keepLines'],delete _0x426af4['keepNext'],delete _0x426af4['widowControl'],((_0x153ec7=_0x426af4[_0x4ff1c5(0x1ea)])==null?void 0x0:_0x153ec7['ff'])===Ee&&((_0x1adf73=_0x426af4['textStyle'])==null?void 0x0:_0x1adf73['fs'])===0xc&&delete _0x426af4[_0x4ff1c5(0x1ea)],_0x426af4;}function Ve(_0x460843,_0x3c4893){const _0x43624e=_0x5af448;let _0x2ccda7=M(_0x3c4893);return(_0x460843['paragraphs']??[])['filter'](_0x55d770=>_0x55d770[_0x43624e(0x1bf)]>_0x3c4893[_0x43624e(0x1bf)]&&_0x55d770[_0x43624e(0x1bf)]<_0x2ccda7);}function He(_0x24f5a9,_0x379330){const _0x141ef9=_0x5af448;var _0x17ffbb;let _0x5ec7e1=M(_0x379330);return Ve(_0x24f5a9,_0x379330)[_0x141ef9(0x1d7)](_0x69a15=>{const _0x29e0cb=_0x141ef9;_0x69a15[_0x29e0cb(0x1a8)]=Be(_0x69a15[_0x29e0cb(0x1a8)]);}),F(_0x24f5a9,_0x5ec7e1,_0x5ec7e1+0x1),F(_0x24f5a9,_0x379330[_0x141ef9(0x1bf)],_0x379330['startIndex']+0x1),_0x24f5a9[_0x141ef9(0x18e)]=(_0x17ffbb=_0x24f5a9[_0x141ef9(0x18e)])==null?void 0x0:_0x17ffbb['filter'](_0x326424=>_0x326424[_0x141ef9(0x170)]!==_0x379330[_0x141ef9(0x170)]),_0x379330[_0x141ef9(0x1bf)];}function O(_0x525741){const _0x4d4414=_0x5af448;return{..._0x525741,'body':_0x525741[_0x4d4414(0x1a9)]?Ue(_0x525741[_0x4d4414(0x1a9)]):_0x525741[_0x4d4414(0x1a9)]};}function Ue(_0xa2cf2d){const _0x2b1bc8=_0x5af448;var _0x33b5fa,_0x1b53ed,_0x30838d,_0x9da526,_0xb24c53,_0x5489c4,_0x144ce3,_0x297f3f,_0x508bdc;return{..._0xa2cf2d,'paragraphs':(_0x33b5fa=_0xa2cf2d[_0x2b1bc8(0x195)])==null?void 0x0:_0x33b5fa['map'](_0xcf7a1c=>({..._0xcf7a1c,'bullet':k(_0xcf7a1c[_0x2b1bc8(0x194)]),'paragraphStyle':k(_0xcf7a1c[_0x2b1bc8(0x1a8)])})),'sectionBreaks':(_0x1b53ed=_0xa2cf2d[_0x2b1bc8(0x1c9)])==null?void 0x0:_0x1b53ed[_0x2b1bc8(0x1e9)](_0x4c5930=>({..._0x4c5930})),'textRuns':(_0x30838d=_0xa2cf2d[_0x2b1bc8(0x1ab)])==null?void 0x0:_0x30838d[_0x2b1bc8(0x1e9)](_0x1f69b0=>({..._0x1f69b0})),'tables':(_0x9da526=_0xa2cf2d['tables'])==null?void 0x0:_0x9da526[_0x2b1bc8(0x1e9)](_0x11de19=>({..._0x11de19})),'columnGroups':(_0xb24c53=_0xa2cf2d[_0x2b1bc8(0x1c3)])==null?void 0x0:_0xb24c53[_0x2b1bc8(0x1e9)](_0x5a3a4c=>{const _0x546d1e=_0x2b1bc8;var _0x1de864;return{..._0x5a3a4c,'columns':(_0x1de864=_0x5a3a4c['columns'])==null?void 0x0:_0x1de864[_0x546d1e(0x1e9)](_0x329863=>k(_0x329863))};}),'blockRanges':(_0x5489c4=_0xa2cf2d[_0x2b1bc8(0x18e)])==null?void 0x0:_0x5489c4[_0x2b1bc8(0x1e9)](_0xb22a82=>({..._0xb22a82})),'customRanges':(_0x144ce3=_0xa2cf2d[_0x2b1bc8(0x17c)])==null?void 0x0:_0x144ce3[_0x2b1bc8(0x1e9)](_0x5dfa9c=>({..._0x5dfa9c})),'customDecorations':(_0x297f3f=_0xa2cf2d[_0x2b1bc8(0x1cf)])==null?void 0x0:_0x297f3f[_0x2b1bc8(0x1e9)](_0x5094d3=>({..._0x5094d3})),'customBlocks':(_0x508bdc=_0xa2cf2d[_0x2b1bc8(0x189)])==null?void 0x0:_0x508bdc[_0x2b1bc8(0x1e9)](_0x2f96dc=>({..._0x2f96dc}))};}function k(_0x38315a){const _0x2d62c2=_0x5af448;return Array[_0x2d62c2(0x18a)](_0x38315a)?_0x38315a[_0x2d62c2(0x1e9)](_0x5bbf36=>k(_0x5bbf36)):!_0x38315a||typeof _0x38315a!=_0x2d62c2(0x187)?_0x38315a:Object[_0x2d62c2(0x184)](Object['entries'](_0x38315a)[_0x2d62c2(0x1e9)](([_0x3d1bd1,_0x3340ff])=>[_0x3d1bd1,k(_0x3340ff)]));}function A(_0x1eaa5b){const _0x3e0206=_0x5af448;if(!_0x1eaa5b[_0x3e0206(0x1a9)])throw Error(_0x3e0206(0x1f8));return _0x1eaa5b[_0x3e0206(0x1a9)];}function We(_0x5da6e1,_0x17de07,_0x34c4d7,_0x3a65e6='convert-paragraph'){const _0x2ef646=_0x5af448;if(_0x17de07==null||_0x34c4d7==null){let _0xeb7b36=Ke(_0x5da6e1);return{'startOffset':_0xeb7b36,'endOffset':_0xeb7b36};}let _0x55df7e=Math[_0x2ef646(0x1d4)](_0x17de07,_0x34c4d7),_0x15a9f6=Math[_0x2ef646(0x1c7)](_0x17de07,_0x34c4d7),_0x2eb305=Ze(_0x5da6e1,_0x55df7e,_0x15a9f6);return _0x55df7e===_0x15a9f6?_0x3a65e6==='insert-new'?{'startOffset':_0x55df7e,'endOffset':_0x15a9f6}:Ge(_0x5da6e1,_0x55df7e,_0x2eb305):Je(_0x5da6e1,_0x55df7e,_0x15a9f6,_0x2eb305);}function Ge(_0x519cb2,_0x44b93f,_0x3e63c2){const _0x36002c=_0x5af448;let _0x4c565a=Ye(_0x519cb2,_0x44b93f);if(_0x4c565a){let _0x7a7c1=j(_0x519cb2,_0x4c565a,_0x3e63c2);if(_0x7a7c1<_0x4c565a['startIndex'])return{'startOffset':_0x7a7c1,'endOffset':_0x3e63c2?Math[_0x36002c(0x1d4)](_0x4c565a[_0x36002c(0x1bf)]+0x1,_0x3e63c2['endOffset']):_0x4c565a[_0x36002c(0x1bf)]+0x1};}let _0x5046ce=_0x44b93f===0x0&&_0x519cb2[_0x36002c(0x1b4)][0x0]===_0xe09000[_0x36002c(0x160)]?0x1:_0x44b93f;return{'startOffset':_0x5046ce,'endOffset':_0x5046ce};}function Ke(_0x480467){const _0x3b5a4c=_0x5af448;return _0x480467[_0x3b5a4c(0x1b4)][_0x3b5a4c(0x1f7)](_0xe09000[_0x3b5a4c(0x1ca)])?Math[_0x3b5a4c(0x1c7)](0x0,_0x480467[_0x3b5a4c(0x1b4)][_0x3b5a4c(0x183)]-0x1):_0x480467[_0x3b5a4c(0x1b4)][_0x3b5a4c(0x183)];}function qe(_0x2c6a2b,_0x2fb5f5,_0x206272){const _0x33a179=_0x5af448;var _0x202336;let _0x46019b=Math[_0x33a179(0x1d4)](_0x2fb5f5,_0x206272),_0x29b339=Math[_0x33a179(0x1c7)](_0x2fb5f5,_0x206272);return!!((_0x202336=_0x2c6a2b[_0x33a179(0x164)])!=null&&_0x202336[_0x33a179(0x1cb)](_0x300e91=>_0x46019b>_0x300e91[_0x33a179(0x1bf)]&&_0x46019b<_0x300e91['endIndex']||_0x29b339>_0x300e91[_0x33a179(0x1bf)]&&_0x29b339<_0x300e91[_0x33a179(0x16d)]||_0x46019b<=_0x300e91[_0x33a179(0x1bf)]&&_0x29b339>=_0x300e91[_0x33a179(0x16d)]));}function Je(_0x51aa45,_0x2bf355,_0x7a15d5,_0x1158c0){const _0x4b75ad=_0x5af448;let _0x255ef=[..._0x51aa45[_0x4b75ad(0x195)]??[]][_0x4b75ad(0x1ae)]((_0x10d997,_0x50f357)=>_0x10d997['startIndex']-_0x50f357['startIndex']),_0x2ac4f1=_0x27c03f(_0x51aa45),_0x356775=_0x255ef['find'](_0x18729a=>j(_0x51aa45,_0x18729a,_0x1158c0,_0x2ac4f1)<=_0x2bf355&&_0x2bf355<=_0x18729a[_0x4b75ad(0x1bf)]),_0x5ea64e=_0x255ef[_0x4b75ad(0x16a)](_0x8ce5fa=>_0x8ce5fa[_0x4b75ad(0x1bf)]>=_0x7a15d5-0x1)??_0x255ef[_0x255ef[_0x4b75ad(0x183)]-0x1];return{'startOffset':_0x356775?j(_0x51aa45,_0x356775,_0x1158c0,_0x2ac4f1):_0x2bf355,'endOffset':_0x5ea64e?Xe(_0x5ea64e,_0x1158c0):_0x7a15d5};}function Ye(_0x2805b3,_0x52664e){const _0x114d63=_0x5af448;let _0x580851=[..._0x2805b3['paragraphs']??[]]['sort']((_0x146f50,_0x24d6c2)=>_0x146f50['startIndex']-_0x24d6c2['startIndex']),_0x5c45f9=_0x27c03f(_0x2805b3);return _0x580851['find'](_0x1d6d95=>(_0x5c45f9[_0x114d63(0x1e2)](_0x1d6d95['startIndex'])??0x0)<=_0x52664e&&_0x52664e<=_0x1d6d95['startIndex']);}function j(_0xf4f0d5,_0x2aa09b,_0x532645,_0x2c4eb0){const _0x42e3c1=_0x5af448;let _0x2269bb=(_0x2c4eb0==null?void 0x0:_0x2c4eb0[_0x42e3c1(0x1e2)](_0x2aa09b[_0x42e3c1(0x1bf)]))??_0x30e24f(_0xf4f0d5,_0x2aa09b);return _0x532645?Math[_0x42e3c1(0x1c7)](_0x2269bb,_0x532645[_0x42e3c1(0x1bc)]):_0x2269bb;}function Xe(_0x16aa0e,_0x465617){const _0x4f9afe=_0x5af448;let _0x241859=_0x16aa0e[_0x4f9afe(0x1bf)]+0x1;return _0x465617?Math[_0x4f9afe(0x1d4)](_0x241859,_0x465617[_0x4f9afe(0x1b5)]):_0x241859;}function Ze(_0x3bd2b5,_0x25890c,_0x130958){const _0x43cb82=_0x5af448;let _0x50bbc7=Qe(_0x3bd2b5,_0x25890c),_0x475140=Qe(_0x3bd2b5,_0x25890c===_0x130958?_0x130958:Math['max'](_0x25890c,_0x130958-0x1));if(_0x50bbc7||_0x475140){if(!_0x50bbc7||!_0x475140||_0x50bbc7['startTokenOffset']!==_0x475140[_0x43cb82(0x18d)]||_0x50bbc7[_0x43cb82(0x17a)]!==_0x475140[_0x43cb82(0x17a)])throw new E();return _0x50bbc7;}}function Qe(_0x3b0101,_0x38e929){const _0x3ce54d=_0x5af448;let _0x40e872=_0x3b0101[_0x3ce54d(0x1b4)],_0x3a8226=-0x1;for(let _0x91f5fc=Math['min'](_0x38e929,_0x40e872[_0x3ce54d(0x183)]-0x1);_0x91f5fc>=0x0;_0x91f5fc--){let _0x49345b=_0x40e872[_0x91f5fc];if(_0x49345b===_0xe09000[_0x3ce54d(0x1e3)])return;if(_0x49345b===_0xe09000['TABLE_CELL_START']){_0x3a8226=_0x91f5fc;break;}}if(_0x3a8226<0x0)return;let _0x2042f4=_0x40e872['indexOf'](_0xe09000[_0x3ce54d(0x1e3)],_0x3a8226+0x1);if(!(_0x2042f4<0x0||_0x38e929<_0x3a8226+0x1||_0x38e929>_0x2042f4-0x1))return{'startOffset':_0x3a8226+0x1,'endOffset':Math[_0x3ce54d(0x1c7)](_0x3a8226+0x1,_0x2042f4-0x1),'startTokenOffset':_0x3a8226,'endTokenOffset':_0x2042f4};}function M(_0x2abe05){const _0x24d5a7=_0x5af448;return _0x5d8873(_0x2abe05)[_0x24d5a7(0x1b5)]-0x1;}function $e(_0x3b093d,_0x2034fb,_0x68bd49,_0x288e72){const _0x54fb3e=_0x5af448;let _0x4e3983=M(_0x2034fb),_0x1f58dc=(_0x3b093d[_0x54fb3e(0x195)]??[])[_0x54fb3e(0x16a)](_0x2036da=>_0x2036da[_0x54fb3e(0x1bf)]===_0x4e3983+0x1);if(!_0x1f58dc||_0x288e72!=null&&_0x1f58dc[_0x54fb3e(0x1bf)]!==_0x288e72||_0x68bd49!=null&&(_0x68bd49<_0x4e3983||_0x68bd49>_0x1f58dc['startIndex']+0x1)||_0x3b093d[_0x54fb3e(0x1b4)][_0x1f58dc[_0x54fb3e(0x1bf)]]!==_0xe09000[_0x54fb3e(0x160)])return null;let _0x40b38f=_0x30e24f(_0x3b093d,_0x1f58dc),_0x4c2412=_0x3b093d[_0x54fb3e(0x1b4)]['slice'](_0x40b38f,_0x1f58dc[_0x54fb3e(0x1bf)]);return Array[_0x54fb3e(0x1fd)](_0x4c2412)[_0x54fb3e(0x167)](_0x4ad67b=>_0x4ad67b===_0xe09000[_0x54fb3e(0x1a0)])?{'paragraph':_0x1f58dc,'endTokenOffset':_0x4e3983}:null;}function N(_0x5a1336,_0x483373){const _0x145c4b=_0x5af448;var _0x55a30e;let _0x32c867=M(_0x483373),_0x45351b=_0x5a1336[_0x145c4b(0x1b4)][_0x32c867+0x1];(_0x45351b===_0xe09000[_0x145c4b(0x1ca)]||_0x45351b===void 0x0)&&P(_0x5a1336,_0x32c867+0x1,_0xe09000['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4c2e1e(new Set((_0x55a30e=_0x5a1336[_0x145c4b(0x195)])==null?void 0x0:_0x55a30e[_0x145c4b(0x1e9)](_0x43e6de=>_0x43e6de[_0x145c4b(0x18f)])))}]});}function P(_0x198562,_0x29555b,_0x28e2aa,_0x12e331={}){const _0x4899c4=_0x5af448;var _0x2026b8,_0x5ac821;_0x28e2aa&&(_0x198562[_0x4899c4(0x1b4)]=''+_0x198562[_0x4899c4(0x1b4)][_0x4899c4(0x1c1)](0x0,_0x29555b)+_0x28e2aa+_0x198562[_0x4899c4(0x1b4)]['slice'](_0x29555b),et(_0x198562,_0x29555b,_0x28e2aa[_0x4899c4(0x183)]),(_0x2026b8=_0x12e331[_0x4899c4(0x195)])!=null&&_0x2026b8[_0x4899c4(0x183)]&&(_0x198562['paragraphs']=[..._0x198562[_0x4899c4(0x195)]??[],..._0x12e331[_0x4899c4(0x195)][_0x4899c4(0x1e9)](_0x7c701f=>({..._0x7c701f,'startIndex':_0x7c701f[_0x4899c4(0x1bf)]+_0x29555b}))][_0x4899c4(0x1ae)]((_0x2c5a45,_0x17d26f)=>_0x2c5a45[_0x4899c4(0x1bf)]-_0x17d26f['startIndex'])),(_0x5ac821=_0x12e331[_0x4899c4(0x18e)])!=null&&_0x5ac821[_0x4899c4(0x183)]&&(_0x198562['blockRanges']=[..._0x198562[_0x4899c4(0x18e)]??[],..._0x12e331[_0x4899c4(0x18e)]['map'](_0x12436f=>({..._0x12436f,'startIndex':_0x12436f[_0x4899c4(0x1bf)]+_0x29555b,'endIndex':_0x12436f[_0x4899c4(0x16d)]+_0x29555b}))][_0x4899c4(0x1ae)]((_0x80fa48,_0x3959a8)=>_0x80fa48[_0x4899c4(0x1bf)]-_0x3959a8['startIndex'])));}function F(_0x5ce172,_0x40d15f,_0x586efc){const _0x1d96ed=_0x5af448;let _0x4f5e7c=_0x586efc-_0x40d15f;_0x5ce172[_0x1d96ed(0x1b4)]=''+_0x5ce172[_0x1d96ed(0x1b4)][_0x1d96ed(0x1c1)](0x0,_0x40d15f)+_0x5ce172['dataStream'][_0x1d96ed(0x1c1)](_0x586efc),tt(_0x5ce172,_0x40d15f,_0x4f5e7c);}function et(_0x35b86c,_0x715831,_0x52caed){const _0x1cc6d8=_0x5af448;_0x35b86c[_0x1cc6d8(0x195)]=I(_0x35b86c[_0x1cc6d8(0x195)],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x1c9)]=I(_0x35b86c['sectionBreaks'],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x189)]=I(_0x35b86c[_0x1cc6d8(0x189)],_0x715831,_0x52caed),_0x35b86c['textRuns']=nt(_0x35b86c[_0x1cc6d8(0x1ab)],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x164)]=rt(_0x35b86c[_0x1cc6d8(0x164)],_0x715831,_0x52caed),_0x35b86c['columnGroups']=R(_0x35b86c[_0x1cc6d8(0x1c3)],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x17c)]=R(_0x35b86c['customRanges'],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x1cf)]=R(_0x35b86c[_0x1cc6d8(0x1cf)],_0x715831,_0x52caed),_0x35b86c['blockRanges']=R(_0x35b86c['blockRanges'],_0x715831,_0x52caed);}function tt(_0x2173e1,_0x3cf85f,_0x14b7af){const _0x8e7fe0=_0x5af448;var _0x5b7df4,_0x30471e;_0x2173e1['paragraphs']=L(_0x2173e1[_0x8e7fe0(0x195)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1c9)]=L(_0x2173e1[_0x8e7fe0(0x1c9)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x189)]=L(_0x2173e1[_0x8e7fe0(0x189)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1ab)]=(_0x5b7df4=it((_0x30471e=_0x2173e1[_0x8e7fe0(0x1ab)])==null?void 0x0:_0x30471e['map'](_0x17270f=>({..._0x17270f,'startIndex':_0x17270f['st'],'endIndex':_0x17270f['ed']})),_0x3cf85f,_0x14b7af))==null?void 0x0:_0x5b7df4['map'](_0x5c943a=>{let {startIndex:_0x7e68fd,endIndex:_0x1291e8,..._0x56c301}=_0x5c943a;return{..._0x56c301,'st':_0x7e68fd,'ed':_0x1291e8};}),_0x2173e1[_0x8e7fe0(0x164)]=it(_0x2173e1['tables'],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1c3)]=z(_0x2173e1[_0x8e7fe0(0x1c3)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x17c)]=z(_0x2173e1[_0x8e7fe0(0x17c)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1cf)]=z(_0x2173e1[_0x8e7fe0(0x1cf)],_0x3cf85f,_0x14b7af),_0x2173e1['blockRanges']=z(_0x2173e1['blockRanges'],_0x3cf85f,_0x14b7af);}function I(_0x781414,_0x6a13ec,_0x29bafe){const _0x2707ff=_0x5af448;return _0x781414==null?void 0x0:_0x781414['map'](_0x4eb77d=>_0x4eb77d[_0x2707ff(0x1bf)]>=_0x6a13ec?{..._0x4eb77d,'startIndex':_0x4eb77d[_0x2707ff(0x1bf)]+_0x29bafe}:_0x4eb77d);}function L(_0x290476,_0x5a3acc,_0x46523a){const _0x4f9139=_0x5af448;let _0x58fa0d=_0x5a3acc+_0x46523a;return _0x290476==null?void 0x0:_0x290476[_0x4f9139(0x1e9)](_0x550987=>_0x550987['startIndex']>=_0x5a3acc&&_0x550987[_0x4f9139(0x1bf)]<_0x58fa0d?null:_0x550987[_0x4f9139(0x1bf)]>=_0x58fa0d?{..._0x550987,'startIndex':_0x550987[_0x4f9139(0x1bf)]-_0x46523a}:_0x550987)[_0x4f9139(0x1ef)](_0x1beff3=>_0x1beff3!=null);}function nt(_0x4c6947,_0x5098e9,_0x5a1d16){return _0x4c6947==null?void 0x0:_0x4c6947['map'](_0x24ecc0=>_0x24ecc0['st']>=_0x5098e9?{..._0x24ecc0,'st':_0x24ecc0['st']+_0x5a1d16,'ed':_0x24ecc0['ed']+_0x5a1d16}:_0x24ecc0['ed']>_0x5098e9?{..._0x24ecc0,'ed':_0x24ecc0['ed']+_0x5a1d16}:_0x24ecc0);}function R(_0x4e5f5b,_0x52d0f2,_0x524246){const _0x408c3=_0x5af448;return _0x4e5f5b==null?void 0x0:_0x4e5f5b[_0x408c3(0x1e9)](_0x1c81bf=>_0x36a074(_0x1c81bf,_0x52d0f2,_0x524246));}function rt(_0x178301,_0x4eed42,_0x2dfc5d){return _0x178301==null?void 0x0:_0x178301['map'](_0x2477ac=>_0x2f36d2(_0x2477ac,_0x4eed42,_0x2dfc5d));}function z(_0x3667e0,_0xdec1bb,_0x462c6e){const _0x4ac15e=_0x5af448;return _0x3667e0==null?void 0x0:_0x3667e0[_0x4ac15e(0x1e9)](_0x5b04cc=>_0x1e00bb(_0x5b04cc,_0xdec1bb,_0x462c6e))['filter'](_0x2eb120=>_0x2eb120!=null);}function it(_0x16d5a3,_0x21d960,_0x23cb24){const _0x4d3163=_0x5af448;return _0x16d5a3==null?void 0x0:_0x16d5a3[_0x4d3163(0x1e9)](_0x4b5051=>_0x48996e(_0x4b5051,_0x21d960,_0x23cb24))[_0x4d3163(0x1ef)](_0x4ff79d=>_0x4ff79d!=null);}const at={'id':_0x5af448(0x1d0),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':_0x8c9e8=>{const _0x4c5b6b=_0x5af448;var _0x561c03;if(_0x14cbd8(G(_0x8c9e8)))return!0x1;let _0x124119=_0x4474d4(_0x8c9e8);if(_0x124119)return _0x8c9e8[_0x4c5b6b(0x1e2)](_0x6359aa)['syncExecuteCommand'](B['id'],{'startOffset':_0x124119['startOffset'],'endOffset':_0x124119[_0x4c5b6b(0x1b5)],'insertionMode':_0x4c5b6b(0x190),'unitId':_0x124119[_0x4c5b6b(0x1fe)]});let _0x17f12e=ft(_0x8c9e8);if(!_0x17f12e)return!0x1;let _0xc900fb=(_0x561c03=_0x8c9e8[_0x4c5b6b(0x1e2)](_0x1afda3)[_0x4c5b6b(0x1bb)](_0x3a8083[_0x4c5b6b(0x193)]))==null?void 0x0:_0x561c03['getBody'](),_0x55eeff=_0xc900fb?_0x1f33a7(_0xc900fb,_0x17f12e):_0x17f12e[_0x4c5b6b(0x1bf)]+0x1;return _0x8c9e8[_0x4c5b6b(0x1e2)](_0x6359aa)[_0x4c5b6b(0x1e6)](B['id'],{'startOffset':_0x55eeff,'endOffset':_0x55eeff});}},ot={'id':'docs-code.command.consume-boundary-delete','type':_0x4c164f['COMMAND'],'handler':()=>!0x0},B={'id':_0x5af448(0x161),'type':_0x4c164f['COMMAND'],'handler':(_0x972bf2,_0x1d30c8)=>{const _0x3f994f=_0x5af448;let _0x12fd84=W(_0x972bf2,_0x1d30c8==null?void 0x0:_0x1d30c8[_0x3f994f(0x1fe)]);if(!_0x12fd84)return!0x1;let _0x2a7c61=G(_0x972bf2);if(_0x14cbd8(_0x2a7c61))return!0x1;let _0x5cae9b=_0x12fd84[_0x3f994f(0x1a1)]['serialize'](_0x12fd84[_0x3f994f(0x1fe)]),_0x3ccda5=lt(_0x1d30c8,_0x2a7c61),_0x4c6c0e=ut(_0x12fd84[_0x3f994f(0x168)],_0x3ccda5);if(_0x4c6c0e){if(_0x4c6c0e['blockType']!==_0x8689f3['CODE'])return!0x1;let _0x1b0c3f=D({'blockId':_0x4c6c0e[_0x3f994f(0x170)],'documentData':_0x12fd84['previousDocumentData'],'metadata':_0x5cae9b});if(!_0x1b0c3f)return!0x1;let _0x237ead=Y(_0x12fd84['commandService'],_0x12fd84['selectionManager'],_0x12fd84[_0x3f994f(0x1fe)],_0x12fd84[_0x3f994f(0x168)],_0x1b0c3f['nextDocumentData'],B['id'],_0x1b0c3f[_0x3f994f(0x172)]);return _0x237ead&&_0x1b0c3f[_0x3f994f(0x1f6)]&&_0x12fd84['model'][_0x3f994f(0x173)](_0x12fd84[_0x3f994f(0x1fe)],_0x1b0c3f[_0x3f994f(0x1f6)]),_0x237ead;}let _0x42a293=(_0x1d30c8==null?void 0x0:_0x1d30c8['blockId'])??_0x220f54(0x6),_0x1a44ae;try{_0x1a44ae=De({'blockId':_0x42a293,'config':_0x1d30c8==null?void 0x0:_0x1d30c8[_0x3f994f(0x185)],'documentData':_0x12fd84['previousDocumentData'],'endOffset':_0x3ccda5==null?void 0x0:_0x3ccda5[_0x3f994f(0x1b5)],'insertionMode':_0x1d30c8==null?void 0x0:_0x1d30c8[_0x3f994f(0x188)],'metadata':_0x5cae9b,'startOffset':_0x3ccda5==null?void 0x0:_0x3ccda5[_0x3f994f(0x1bc)]});}catch(_0x24e1e7){if(_0x24e1e7 instanceof E)return!0x1;throw _0x24e1e7;}let _0x2556ad=Y(_0x12fd84['commandService'],_0x12fd84[_0x3f994f(0x1dc)],_0x12fd84[_0x3f994f(0x1fe)],_0x12fd84[_0x3f994f(0x168)],_0x1a44ae['nextDocumentData'],B['id'],_0x1a44ae[_0x3f994f(0x172)]);return _0x2556ad&&_0x1a44ae['nextMetadata']&&_0x12fd84[_0x3f994f(0x1a1)][_0x3f994f(0x173)](_0x12fd84[_0x3f994f(0x1fe)],_0x1a44ae[_0x3f994f(0x1f6)]),_0x2556ad;}},st={'id':_0x5af448(0x1da),'type':_0x4c164f['COMMAND'],'handler':(_0x4503fb,_0x25cf09)=>{const _0x8d7738=_0x5af448;if(!_0x25cf09)return!0x1;let _0xdfdf79=W(_0x4503fb,_0x25cf09[_0x8d7738(0x1fe)]);if(!_0xdfdf79)return!0x1;let _0x29bf28=je({'blockId':_0x25cf09[_0x8d7738(0x170)],'config':_0x25cf09[_0x8d7738(0x185)],'documentData':_0xdfdf79['previousDocumentData'],'metadata':_0xdfdf79[_0x8d7738(0x1a1)]['serialize'](_0xdfdf79[_0x8d7738(0x1fe)])});return _0x29bf28[_0x8d7738(0x1f6)]&&_0xdfdf79[_0x8d7738(0x1a1)][_0x8d7738(0x173)](_0xdfdf79[_0x8d7738(0x1fe)],_0x29bf28[_0x8d7738(0x1f6)]),!0x0;}},ct={'id':_0x5af448(0x1d6),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x522347,_0x294567)=>V[_0x5af448(0x1d1)](_0x522347,_0x294567)},V={'id':_0x5af448(0x1f1),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x27959a,_0x3c2a34)=>{const _0x5c69f5=_0x5af448;if(!_0x3c2a34)return!0x1;let _0xce3195=W(_0x27959a,_0x3c2a34==null?void 0x0:_0x3c2a34[_0x5c69f5(0x1fe)]);if(!_0xce3195)return!0x1;let _0x54ebe7=D({'blockId':_0x3c2a34[_0x5c69f5(0x170)],'documentData':_0xce3195[_0x5c69f5(0x168)],'metadata':_0xce3195[_0x5c69f5(0x1a1)][_0x5c69f5(0x1a4)](_0xce3195[_0x5c69f5(0x1fe)])});if(!_0x54ebe7)return!0x1;let _0x13e910=Y(_0xce3195[_0x5c69f5(0x1f2)],_0xce3195[_0x5c69f5(0x1dc)],_0xce3195[_0x5c69f5(0x1fe)],_0xce3195[_0x5c69f5(0x168)],_0x54ebe7[_0x5c69f5(0x169)],V['id'],_0x54ebe7[_0x5c69f5(0x172)]);return _0x13e910&&_0x54ebe7['nextMetadata']&&_0xce3195[_0x5c69f5(0x1a1)]['deserialize'](_0xce3195[_0x5c69f5(0x1fe)],_0x54ebe7[_0x5c69f5(0x1f6)]),_0x13e910;}},H={'id':_0x5af448(0x181),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x1f8852,_0xcffbf7)=>{const _0x20b524=_0x5af448;if(!_0xcffbf7)return!0x1;let _0x5f0744=W(_0x1f8852,_0xcffbf7==null?void 0x0:_0xcffbf7[_0x20b524(0x1fe)]);if(!_0x5f0744)return!0x1;let _0x223855=Me({'blockId':_0xcffbf7[_0x20b524(0x170)],'documentData':_0x5f0744[_0x20b524(0x168)],'metadata':_0x5f0744[_0x20b524(0x1a1)][_0x20b524(0x1a4)](_0x5f0744['unitId'])});if(!_0x223855)return!0x1;let _0x591580=Y(_0x5f0744[_0x20b524(0x1f2)],_0x5f0744['selectionManager'],_0x5f0744[_0x20b524(0x1fe)],_0x5f0744['previousDocumentData'],_0x223855['nextDocumentData'],H['id'],_0x223855[_0x20b524(0x172)]);return _0x591580&&_0x223855[_0x20b524(0x1f6)]&&_0x5f0744['model'][_0x20b524(0x173)](_0x5f0744[_0x20b524(0x1fe)],_0x223855[_0x20b524(0x1f6)]),_0x591580;}},U={'id':_0x5af448(0x1db),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x3639ab,_0x8d832d)=>{const _0x39be3a=_0x5af448;var _0xe494af;let _0x346d8a=W(_0x3639ab,_0x8d832d==null?void 0x0:_0x8d832d[_0x39be3a(0x1fe)]);if(!_0x346d8a)return!0x1;let _0x1d607a=(_0x8d832d==null?void 0x0:_0x8d832d[_0x39be3a(0x172)])??((_0xe494af=G(_0x3639ab))==null?void 0x0:_0xe494af[_0x39be3a(0x1bc)]);if(_0x1d607a==null)return!0x1;let _0x34c00a=Ne({'cursorOffset':_0x1d607a,'documentData':_0x346d8a[_0x39be3a(0x168)],'paragraphStartIndex':_0x8d832d==null?void 0x0:_0x8d832d[_0x39be3a(0x1fa)]});return _0x34c00a?Y(_0x346d8a[_0x39be3a(0x1f2)],_0x346d8a['selectionManager'],_0x346d8a[_0x39be3a(0x1fe)],_0x346d8a['previousDocumentData'],_0x34c00a[_0x39be3a(0x169)],U['id'],_0x34c00a[_0x39be3a(0x172)]):!0x1;}};function W(_0x329c7f,_0x3e7957){const _0xedab82=_0x5af448;let _0x510052=_0x329c7f['get'](_0x1afda3),_0x425134=_0x3e7957?_0x510052[_0xedab82(0x1ce)](_0x3e7957,_0x3a8083[_0xedab82(0x193)]):_0x510052[_0xedab82(0x1bb)](_0x3a8083[_0xedab82(0x193)]);return _0x425134?{'commandService':_0x329c7f[_0xedab82(0x1e2)](_0x6359aa),'model':_0x329c7f[_0xedab82(0x1e2)](w),'previousDocumentData':_0x425134[_0xedab82(0x192)](),'selectionManager':_0x329c7f[_0xedab82(0x1e2)](_0x235b8c),'unitId':_0x425134[_0xedab82(0x182)]()}:null;}function G(_0x2f0d5e){const _0x3c9eb0=_0x5af448;var _0x44d6d1;return(_0x44d6d1=_0x2f0d5e[_0x3c9eb0(0x1e2)](_0x235b8c)[_0x3c9eb0(0x19d)]())==null?void 0x0:_0x44d6d1[0x0];}function lt(_0x5ccc0d,_0x1a3a19){const _0x43ffe6=_0x5af448;let _0x144718=(_0x5ccc0d==null?void 0x0:_0x5ccc0d['startOffset'])??(_0x1a3a19==null?void 0x0:_0x1a3a19[_0x43ffe6(0x1bc)]),_0x1a5ffe=(_0x5ccc0d==null?void 0x0:_0x5ccc0d['endOffset'])??(_0x1a3a19==null?void 0x0:_0x1a3a19[_0x43ffe6(0x1b5)]);if(_0x144718!=null&&_0x1a5ffe!=null)return{'endOffset':Math[_0x43ffe6(0x1c7)](_0x144718,_0x1a5ffe),'startOffset':Math[_0x43ffe6(0x1d4)](_0x144718,_0x1a5ffe)};}function ut(_0x542763,_0x24083a){const _0x2ace40=_0x5af448;var _0x2e6b3b;if(!_0x24083a)return;let _0x36d75f=dt(_0x24083a);return(_0x2e6b3b=_0x542763['body'])==null||(_0x2e6b3b=_0x2e6b3b['blockRanges'])==null?void 0x0:_0x2e6b3b[_0x2ace40(0x16a)](_0x266f47=>{const _0x2ec773=_0x2ace40;let _0x2f54c=_0x5d8873(_0x266f47);return _0x24083a['startOffset']===_0x24083a[_0x2ec773(0x1b5)]?_0x4d26c0(_0x2f54c,_0x36d75f):_0x1ce7f1(_0x2f54c,_0x36d75f);});}function dt(_0x1337b4){const _0x38abe1=_0x5af448;return _0x1337b4[_0x38abe1(0x1bc)]===_0x1337b4[_0x38abe1(0x1b5)]?_0x1337b4['startOffset']:_0x1337b4[_0x38abe1(0x1bc)]+0x1;}function ft(_0x28f15f){const _0x4ef729=_0x5af448;let _0xae4325=G(_0x28f15f);if(!_0xae4325)return null;let _0x371915=_0x28f15f[_0x4ef729(0x1e2)](_0x1afda3)[_0x4ef729(0x1bb)](_0x3a8083[_0x4ef729(0x193)]),_0x1b4cb4=_0x371915==null?void 0x0:_0x371915['getBody']();return _0x1b4cb4?_0x59cd88[_0x4ef729(0x199)][_0x4ef729(0x1df)](_0xae4325,_0x1b4cb4[_0x4ef729(0x195)]??[],_0x1b4cb4[_0x4ef729(0x1b4)]??'')[0x0]??null:null;}function pt(_0x98e359,_0x4a2a58){const _0x1d5be4=_0x5af448;let _0x5b6158=_0x98e359[_0x1d5be4(0x1a9)],_0x3002b0=_0x4a2a58[_0x1d5be4(0x1a9)],_0x29c594=_0x514248(_0x5b6158,_0x3002b0);return[_0x29c594&&_0x3002b0?mt(_0x3002b0,_0x29c594):null,_0x29c594?null:ht(_0x5b6158,_0x3002b0)][_0x1d5be4(0x1ef)](Boolean)['reduce']((_0x5a4253,_0x386cd9)=>_0x235eff[_0x1d5be4(0x1ad)](_0x5a4253,_0x386cd9),null);}function mt(_0x1240db,_0x48974e){const _0x452785=_0x5af448;let _0x28b40e=new _0x2f1bce();return _0x28b40e[_0x452785(0x16f)](_0x48974e[_0x452785(0x1c6)]),_0x48974e[_0x452785(0x1e8)]>0x0&&_0x28b40e[_0x452785(0x1ba)](_0x48974e[_0x452785(0x1e8)],_0x4a9b32(_0x1240db,_0x48974e[_0x452785(0x1c6)],_0x48974e[_0x452785(0x1c6)]+_0x48974e[_0x452785(0x1e8)],!0x1)),_0x48974e[_0x452785(0x1d9)]>0x0&&_0x28b40e['delete'](_0x48974e['deleteLength']),_0x235eff['getInstance']()[_0x452785(0x1c8)](_0x28b40e[_0x452785(0x1a4)](),[_0x452785(0x1a9)]);}function ht(_0x287dc5,_0x23d209){const _0x76427c=_0x5af448;let _0x7e1e13=[],_0x182d2a=_0x287dc5?_t(_0x287dc5):void 0x0,_0x317f54=_0x23d209?_t(_0x23d209):void 0x0;for(let _0xbf68da of gt)K(_0x235eff[_0x76427c(0x198)](),[_0x76427c(0x1a9),_0xbf68da],_0x182d2a==null?void 0x0:_0x182d2a[_0xbf68da],_0x317f54==null?void 0x0:_0x317f54[_0xbf68da],_0x7e1e13);return _0x7e1e13[_0x76427c(0x196)]((_0x5b21bd,_0x27f0b2)=>_0x235eff[_0x76427c(0x1ad)](_0x5b21bd,_0x27f0b2),null);}const gt=['paragraphs','sectionBreaks','tables',_0x5af448(0x1c3),_0x5af448(0x18e),'customBlocks','customRanges',_0x5af448(0x1cf),_0x5af448(0x1ab)];function _t(_0x3e6349){return _0x3e6349;}function _0x2936(){const _0x34cefa=['prototype','blockType','docs-code.command.remove','getUnitId','length','fromEntries','config','monospace','object','insertionMode','customBlocks','isArray','onStarting','_change$','startTokenOffset','blockRanges','paragraphId','insert-new','MUTATION','getSnapshot','UNIVER_DOC','bullet','paragraphs','reduce','next','getInstance','range','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','insertOp','getTextRanges','@univerjs-pro/docs-code','1.3.0','BLOCK_END','model','indentEnd','DOC_CODE_PLUGIN','serialize','parse','28230fvJnDh','_resources','paragraphStyle','body','direction','textRuns','paragraph','compose','sort','symbol','keys','TRUE','66vnSHRB','codes','dataStream','endOffset','spaceBelow','registerCommand','docs-code.mutation.remove-config','_resourceManagerService','insert','getCurrentUnitOfType','startOffset','3532652SpvRIo','toPrimitive','startIndex','call','slice','documentData','columnGroups','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','replaceDocRanges','start','max','editOp','sectionBreaks','SECTION_BREAK','some','setCodeConfig','decorate','getUnit','customDecorations','docs-code.command.insert-below','handler','push','_docsCodeModel','min','disposeWithMe','docs-code.command.exit','forEach','removeUnit','deleteLength','docs-code.command.update','docs-code.command.cancel-empty-paragraph','selectionManager','default','add','getParagraphsInRange','dispose','javascript','get','TABLE_CELL_END','COMMAND','removeOp','syncExecuteCommand','right','insertLength','map','textStyle','getCodeConfig','7171191nYyhKv','spaceAbove','CODE','filter','_configService','docs-code.command.unwrap','commandService','3895440wpCnbF','constructor','metadata','nextMetadata','endsWith','Document\x20body\x20is\x20required','_setResource','paragraphStartIndex','change$','getOwnPropertyDescriptor','from','unitId','removeCode','PARAGRAPH','docs-code.command.insert','793916NgZqUQ','set','tables','_commandService','asObservable','every','previousDocumentData','nextDocumentData','find','stringify','12726LsLDry','endIndex','_initResource','retain','blockId','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','cursorOffset','deserialize','indentStart','function','1438728rfqfyh','_injector','5tONPeo','docs-code.mutation.set-config','endTokenOffset','BLOCK_START','customRanges','string','_config'];_0x2936=function(){return _0x34cefa;};return _0x2936();}function K(_0x5704e6,_0x56ff42,_0x4a5c6b,_0x2f6917,_0x155983){const _0x518d00=_0x5af448;J(_0x4a5c6b,_0x2f6917)||(_0x4a5c6b==null?_0x155983[_0x518d00(0x1d2)](_0x5704e6[_0x518d00(0x19c)](_0x56ff42,_0x2f6917)):_0x2f6917==null?_0x155983[_0x518d00(0x1d2)](_0x5704e6['removeOp'](_0x56ff42,_0x4a5c6b)):Array[_0x518d00(0x18a)](_0x4a5c6b)&&Array[_0x518d00(0x18a)](_0x2f6917)?vt(_0x5704e6,_0x56ff42,_0x4a5c6b,_0x2f6917,_0x155983):q(_0x4a5c6b)&&q(_0x2f6917)?new Set([...Object['keys'](_0x4a5c6b),...Object[_0x518d00(0x1b0)](_0x2f6917)])[_0x518d00(0x1d7)](_0x72b69a=>{K(_0x5704e6,[..._0x56ff42,_0x72b69a],_0x4a5c6b[_0x72b69a],_0x2f6917[_0x72b69a],_0x155983);}):_0x155983[_0x518d00(0x1d2)](_0x5704e6['replaceOp'](_0x56ff42,_0x4a5c6b,_0x2f6917)));}function vt(_0x51a48d,_0x1e5460,_0x1ef637,_0x2b37f0,_0x13bffc){const _0x7824ed=_0x5af448;if(_0x1ef637['length']===_0x2b37f0[_0x7824ed(0x183)]){_0x1ef637[_0x7824ed(0x1d7)]((_0x547810,_0x53cb0b)=>K(_0x51a48d,[..._0x1e5460,_0x53cb0b],_0x547810,_0x2b37f0[_0x53cb0b],_0x13bffc));return;}let _0x1e2e42=0x0;for(;_0x1e2e42<_0x1ef637[_0x7824ed(0x183)]&&_0x1e2e42<_0x2b37f0[_0x7824ed(0x183)]&&J(_0x1ef637[_0x1e2e42],_0x2b37f0[_0x1e2e42]);)_0x1e2e42++;let _0x5570dd=_0x1ef637[_0x7824ed(0x183)]-0x1,_0xa1eddf=_0x2b37f0['length']-0x1;for(;_0x5570dd>=_0x1e2e42&&_0xa1eddf>=_0x1e2e42&&J(_0x1ef637[_0x5570dd],_0x2b37f0[_0xa1eddf]);)_0x5570dd--,_0xa1eddf--;for(let _0x1d067f=_0x5570dd;_0x1d067f>=_0x1e2e42;_0x1d067f--)_0x13bffc[_0x7824ed(0x1d2)](_0x51a48d[_0x7824ed(0x1e5)]([..._0x1e5460,_0x1d067f],_0x1ef637[_0x1d067f]));for(let _0x2cdc2d=_0x1e2e42;_0x2cdc2d<=_0xa1eddf;_0x2cdc2d++)_0x13bffc['push'](_0x51a48d['insertOp']([..._0x1e5460,_0x2cdc2d],_0x2b37f0[_0x2cdc2d]));}function q(_0x35b6ea){const _0x5b7e58=_0x5af448;return typeof _0x35b6ea==_0x5b7e58(0x187)&&!!_0x35b6ea&&!Array[_0x5b7e58(0x18a)](_0x35b6ea);}function J(_0x57e146,_0x2d743b){const _0x535b4d=_0x5af448;return JSON[_0x535b4d(0x16b)](_0x57e146)===JSON[_0x535b4d(0x16b)](_0x2d743b);}function Y(_0x4f3f22,_0x1ff2c5,_0xe271f3,_0x3d3e75,_0x8b08f1,_0xa472c9,_0x53efa8){const _0x1bed1a=_0x5af448;let _0xd36593=pt(_0x3d3e75,_0x8b08f1);return _0xd36593?!!_0x4f3f22[_0x1bed1a(0x1e6)](_0x579991['id'],{'unitId':_0xe271f3,'actions':_0xd36593,'textRanges':[{'startOffset':_0x53efa8,'endOffset':_0x53efa8,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xa472c9}):(_0x1ff2c5[_0x1bed1a(0x1c5)]([{'startOffset':_0x53efa8,'endOffset':_0x53efa8}],{'unitId':_0xe271f3,'subUnitId':_0xe271f3},!0x1),!0x0);}const X=_0x5af448(0x1a3);var yt=_0x5af448(0x19e),bt=_0x5af448(0x19f);const xt={};function Z(_0x32c588,_0x23734d){return function(_0x2ce79f,_0x5d397c){_0x23734d(_0x2ce79f,_0x5d397c,_0x32c588);};}function _0x26ed(_0x5298ba,_0x6b3bce){_0x5298ba=_0x5298ba-0x160;const _0x293690=_0x2936();let _0x26ed40=_0x293690[_0x5298ba];return _0x26ed40;}function St(_0x560bd6,_0x1c3113,_0x5c2f6f,_0x1208b6){const _0x1982b0=_0x5af448;var _0x1273e4=arguments[_0x1982b0(0x183)],_0xe20e1e=_0x1273e4<0x3?_0x1c3113:_0x1208b6===null?_0x1208b6=Object[_0x1982b0(0x1fc)](_0x1c3113,_0x5c2f6f):_0x1208b6,_0x2ae72c;if(typeof Reflect==_0x1982b0(0x187)&&typeof Reflect[_0x1982b0(0x1cd)]==_0x1982b0(0x175))_0xe20e1e=Reflect['decorate'](_0x560bd6,_0x1c3113,_0x5c2f6f,_0x1208b6);else{for(var _0x5d42f5=_0x560bd6[_0x1982b0(0x183)]-0x1;_0x5d42f5>=0x0;_0x5d42f5--)(_0x2ae72c=_0x560bd6[_0x5d42f5])&&(_0xe20e1e=(_0x1273e4<0x3?_0x2ae72c(_0xe20e1e):_0x1273e4>0x3?_0x2ae72c(_0x1c3113,_0x5c2f6f,_0xe20e1e):_0x2ae72c(_0x1c3113,_0x5c2f6f))||_0xe20e1e);}return _0x1273e4>0x3&&_0xe20e1e&&Object[_0x1982b0(0x19b)](_0x1c3113,_0x5c2f6f,_0xe20e1e),_0xe20e1e;}let Q=class extends _0x1ddee2{constructor(_0xf49ea3,_0x4344a2){const _0x2e7934=_0x5af448;super(),this[_0x2e7934(0x1b9)]=_0xf49ea3,this['_docsCodeModel']=_0x4344a2,this[_0x2e7934(0x16e)]();}[_0x5af448(0x16e)](){const _0x289c5e=_0x5af448;this[_0x289c5e(0x1d5)](this[_0x289c5e(0x1b9)]['registerPluginResource']({'pluginName':X,'businesses':[_0x3a8083[_0x289c5e(0x193)]],'toJson':_0x8c7606=>JSON[_0x289c5e(0x16b)](this[_0x289c5e(0x1d3)]['serialize'](_0x8c7606)),'parseJson':_0x5c1225=>y(JSON[_0x289c5e(0x1a5)](_0x5c1225)),'onLoad':(_0x48e1bf,_0x1166bd)=>this[_0x289c5e(0x1d3)][_0x289c5e(0x173)](_0x48e1bf,_0x1166bd),'onUnLoad':_0x275d61=>this[_0x289c5e(0x1d3)]['removeUnit'](_0x275d61)}));}};Q=St([Z(0x0,_0x1fcb3e),Z(0x1,_0x22acd5(w))],Q);let $=class extends _0x537f2b{constructor(_0x197a69=xt,_0x53c670,_0x10b748,_0x14e981){const _0x189cbf=_0x5af448;super(),this[_0x189cbf(0x17e)]=_0x197a69,this[_0x189cbf(0x177)]=_0x53c670,this[_0x189cbf(0x165)]=_0x10b748,this[_0x189cbf(0x1f0)]=_0x14e981;let {..._0x1602a1}=_0x1b4ff5({},xt,this[_0x189cbf(0x17e)]);this[_0x189cbf(0x1f0)]['setConfig']('docs-code.config',_0x1602a1);}[_0x5af448(0x18b)](){const _0x52dd05=_0x5af448;this[_0x52dd05(0x177)]['add']([w]),this[_0x52dd05(0x177)][_0x52dd05(0x1de)]([Q]),this['_injector'][_0x52dd05(0x1e2)](w),this[_0x52dd05(0x177)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T]['forEach'](_0x6ed2c3=>this['disposeWithMe'](this[_0x52dd05(0x165)][_0x52dd05(0x1b7)](_0x6ed2c3)));}};C($,'pluginName',X),C($,'packageName',yt),C($,'version',bt),C($,'type',_0x3a8083['UNIVER_DOC']),$=St([_0x4db280(_0x4b33a5,_0x15d972),Z(0x1,_0x22acd5(_0x462910)),Z(0x2,_0x6359aa),Z(0x3,_0x336315)],$);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 _0x3347ac=_0x18f6;(function(_0x487f3d,_0x46e1c3){var _0x2d957c=_0x18f6,_0x59e3b4=_0x487f3d();while(!![]){try{var _0xffdf14=-parseInt(_0x2d957c(0xe9))/0x1*(-parseInt(_0x2d957c(0x10f))/0x2)+parseInt(_0x2d957c(0xdb))/0x3*(parseInt(_0x2d957c(0xdc))/0x4)+-parseInt(_0x2d957c(0xe7))/0x5*(parseInt(_0x2d957c(0xd7))/0x6)+parseInt(_0x2d957c(0x103))/0x7*(parseInt(_0x2d957c(0x10a))/0x8)+parseInt(_0x2d957c(0xe3))/0x9*(-parseInt(_0x2d957c(0xfb))/0xa)+parseInt(_0x2d957c(0xf5))/0xb*(-parseInt(_0x2d957c(0xed))/0xc)+parseInt(_0x2d957c(0xf4))/0xd;if(_0xffdf14===_0x46e1c3)break;else _0x59e3b4['push'](_0x59e3b4['shift']());}catch(_0x40242e){_0x59e3b4['push'](_0x59e3b4['shift']());}}}(_0x4a49,0x734d2));import{DocsCodeInsertCommand as _0x59cb5d,DocsCodeModel as _0x40a00e,DocsCodeRemoveCommand as _0x256b63,DocsCodeUnwrapCommand as _0xaf85ab,DocsCodeUpdateCommand as _0x31cdd3,normalizeDocsCodeConfig as _0x5a71bf}from'@univerjs-pro/docs-code';import{DataStreamTreeTokenType as _0x118512,DocumentBlockRangeType as _0x5c4620,ICommandService as _0x40c345,Inject as _0x17d1a7,Injector as _0x118e46,generateRandomId as _0x3bb2dc}from'@univerjs/core';import{FDocument as _0x3f0eb7,isParagraphFacade as _0x3148a1}from'@univerjs/docs/facade';function m(_0x43a999){'@babel/helpers - typeof';var _0x5640c7=_0x18f6;return m=typeof Symbol==_0x5640c7(0x10c)&&typeof Symbol['iterator']==_0x5640c7(0xe5)?function(_0x54d35d){return typeof _0x54d35d;}:function(_0x95e6a3){var _0x1870c1=_0x5640c7;return _0x95e6a3&&typeof Symbol==_0x1870c1(0x10c)&&_0x95e6a3[_0x1870c1(0x106)]===Symbol&&_0x95e6a3!==Symbol[_0x1870c1(0xf2)]?_0x1870c1(0xe5):typeof _0x95e6a3;},m(_0x43a999);}function h(_0x5a394a,_0x399df8){var _0x4ff5bb=_0x18f6;if(m(_0x5a394a)!=_0x4ff5bb(0x115)||!_0x5a394a)return _0x5a394a;var _0x3cd379=_0x5a394a[Symbol['toPrimitive']];if(_0x3cd379!==void 0x0){var _0x41b000=_0x3cd379[_0x4ff5bb(0xf6)](_0x5a394a,_0x399df8||'default');if(m(_0x41b000)!=_0x4ff5bb(0x115))return _0x41b000;throw TypeError(_0x4ff5bb(0xe6));}return(_0x399df8===_0x4ff5bb(0xda)?String:Number)(_0x5a394a);}function g(_0x2d2b89){var _0x54194f=_0x18f6,_0x311cef=h(_0x2d2b89,'string');return m(_0x311cef)==_0x54194f(0xe5)?_0x311cef:_0x311cef+'';}function _(_0x3974ee,_0x433b6a,_0x1168f0){var _0x97535f=_0x18f6;return(_0x433b6a=g(_0x433b6a))in _0x3974ee?Object[_0x97535f(0xe2)](_0x3974ee,_0x433b6a,{'value':_0x1168f0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3974ee[_0x433b6a]=_0x1168f0,_0x3974ee;}function _0x4a49(){var _0x3a0ec0=['text','SECTION_BREAK','147540BbGzhA','length','_blockId','getOwnPropertyDescriptor','_getBlockRange','prototype','BLOCK_END','1377909zDpLdA','473YCNfGa','call','find','decorate','filter','map','1030dwUJMo','updateConfig','save','_getBlockRanges','getCodeAt','getRange','dataStream','getText','87731nnlCEG','BLOCK_START','extend','constructor','getConfig','getCodes','findCodes','408PuYoXr','join','function','createInstance','slice','2rrZAcX','getId','includes','describe','blockType','config','object','_injector','blockId','getCode','PARAGRAPH','get','CODE','18gbmvCO','startIndex','getCodeConfig','string','591ofYecv','4924XBiKZC','_unitId','syncExecuteCommand','_getDocumentData','_createFDocumentCode','blockRanges','defineProperty','41382ZBpyAp','some','symbol','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','512635UVPcMj','endIndex','794451yUnxBG','replace'];_0x4a49=function(){return _0x3a0ec0;};return _0x4a49();}function v(_0x2c0cb1,_0x1a2836){return function(_0x71d96c,_0x300484){_0x1a2836(_0x71d96c,_0x300484,_0x2c0cb1);};}function y(_0x498d81,_0x410179,_0x547b6e,_0x11dc5f){var _0x7b327b=_0x18f6,_0x57f549=arguments[_0x7b327b(0xee)],_0x485a6e=_0x57f549<0x3?_0x410179:_0x11dc5f===null?_0x11dc5f=Object[_0x7b327b(0xf0)](_0x410179,_0x547b6e):_0x11dc5f,_0x32985d;if(typeof Reflect=='object'&&typeof Reflect[_0x7b327b(0xf8)]==_0x7b327b(0x10c))_0x485a6e=Reflect[_0x7b327b(0xf8)](_0x498d81,_0x410179,_0x547b6e,_0x11dc5f);else{for(var _0x74f1de=_0x498d81[_0x7b327b(0xee)]-0x1;_0x74f1de>=0x0;_0x74f1de--)(_0x32985d=_0x498d81[_0x74f1de])&&(_0x485a6e=(_0x57f549<0x3?_0x32985d(_0x485a6e):_0x57f549>0x3?_0x32985d(_0x410179,_0x547b6e,_0x485a6e):_0x32985d(_0x410179,_0x547b6e))||_0x485a6e);}return _0x57f549>0x3&&_0x485a6e&&Object[_0x7b327b(0xe2)](_0x410179,_0x547b6e,_0x485a6e),_0x485a6e;}let b=class{constructor(_0x3e0171,_0x4b8058,_0x535af5){var _0x17e94e=_0x18f6;this['_document']=_0x3e0171,this[_0x17e94e(0xef)]=_0x4b8058,this['_injector']=_0x535af5,_(this,_0x17e94e(0xdd),void 0x0),this['_unitId']=this['_document'][_0x17e94e(0x110)]();}[_0x3347ac(0x110)](){var _0xf48a03=_0x3347ac;return this[_0xf48a03(0xef)];}[_0x3347ac(0x100)](){var _0x5e2a69=_0x3347ac;let _0x546669=this[_0x5e2a69(0xf1)]();return _0x546669?{'blockId':_0x546669[_0x5e2a69(0x117)],'endIndex':_0x546669[_0x5e2a69(0xe8)],'startIndex':_0x546669[_0x5e2a69(0xd8)]}:null;}[_0x3347ac(0x102)](){var _0x46485a=_0x3347ac,_0x361dab;let _0x2803ce=this[_0x46485a(0xf1)](),_0x3e74ac=(_0x361dab=this[_0x46485a(0xdf)]()['body'])==null?void 0x0:_0x361dab[_0x46485a(0x101)];return!_0x2803ce||!_0x3e74ac?'':x(_0x3e74ac[_0x46485a(0x10e)](_0x2803ce[_0x46485a(0xd8)]+0x1,_0x2803ce[_0x46485a(0xe8)]));}[_0x3347ac(0x112)](){var _0x26f8f2=_0x3347ac;let _0x145c1b=this[_0x26f8f2(0x100)]();return _0x145c1b?{..._0x145c1b,'config':this[_0x26f8f2(0x107)](),'text':this['getText'](),'type':_0x5c4620[_0x26f8f2(0xd6)]}:null;}[_0x3347ac(0x107)](){var _0x4e983a=_0x3347ac;let _0x3504a0=this[_0x4e983a(0x116)][_0x4e983a(0x11a)](_0x40a00e);return _0x5a71bf(_0x3504a0[_0x4e983a(0xd9)](this[_0x4e983a(0xdd)],this[_0x4e983a(0xef)]));}[_0x3347ac(0xfc)](_0x15e1f8){var _0x3ca89f=_0x3347ac;return this[_0x3ca89f(0x116)][_0x3ca89f(0x11a)](_0x40c345)[_0x3ca89f(0xde)](_0x31cdd3['id'],{'blockId':this['_blockId'],'config':_0x15e1f8[_0x3ca89f(0x114)],'unitId':this[_0x3ca89f(0xdd)]});}['unwrap'](){var _0x67641=_0x3347ac;return this[_0x67641(0x116)]['get'](_0x40c345)['syncExecuteCommand'](_0xaf85ab['id'],{'blockId':this[_0x67641(0xef)],'unitId':this['_unitId']});}['remove'](){var _0x5f18ec=_0x3347ac;return this[_0x5f18ec(0x116)][_0x5f18ec(0x11a)](_0x40c345)[_0x5f18ec(0xde)](_0x256b63['id'],{'blockId':this[_0x5f18ec(0xef)],'unitId':this[_0x5f18ec(0xdd)]});}['_getBlockRange'](){var _0x2b42eb=_0x3347ac,_0x3f4ae2;return((_0x3f4ae2=this['_getDocumentData']()['body'])==null||(_0x3f4ae2=_0x3f4ae2[_0x2b42eb(0xe1)])==null?void 0x0:_0x3f4ae2[_0x2b42eb(0xf7)](_0x5bd92d=>_0x5bd92d['blockId']===this[_0x2b42eb(0xef)]&&_0x5bd92d[_0x2b42eb(0x113)]===_0x5c4620['CODE']))??null;}['_getDocumentData'](){var _0xf3cb66=_0x3347ac;return this['_document'][_0xf3cb66(0xfd)]();}};b=y([v(0x2,_0x17d1a7(_0x118e46))],b);function x(_0x1a39e2){var _0x25177f=_0x3347ac;return Array['from'](_0x1a39e2)[_0x25177f(0xfa)](_0x408916=>_0x408916===_0x118512[_0x25177f(0x119)]?'\x0a':_0x408916)['filter'](_0x22a40b=>_0x22a40b!==_0x118512[_0x25177f(0x104)]&&_0x22a40b!==_0x118512[_0x25177f(0xf3)]&&_0x22a40b!==_0x118512[_0x25177f(0xec)])[_0x25177f(0x10b)]('')[_0x25177f(0xea)](/\n$/,'');}function _0x18f6(_0x4d47ab,_0x1972bc){_0x4d47ab=_0x4d47ab-0xd6;var _0x4a49ef=_0x4a49();var _0x18f6ff=_0x4a49ef[_0x4d47ab];return _0x18f6ff;}var S=class extends _0x3f0eb7{['getCodes'](){var _0x13a210=_0x3347ac;return this['_getBlockRanges']()[_0x13a210(0xf9)](_0x3509c2=>_0x3509c2[_0x13a210(0x113)]===_0x5c4620[_0x13a210(0xd6)])[_0x13a210(0xfa)](_0x290a9f=>this[_0x13a210(0xe0)](_0x290a9f[_0x13a210(0x117)]));}[_0x3347ac(0x118)](_0x30a4d6){var _0x20d988=_0x3347ac;return this[_0x20d988(0xfe)]()[_0x20d988(0xe4)](_0x3ec3cf=>_0x3ec3cf['blockId']===_0x30a4d6&&_0x3ec3cf[_0x20d988(0x113)]===_0x5c4620[_0x20d988(0xd6)])?this[_0x20d988(0xe0)](_0x30a4d6):null;}[_0x3347ac(0xff)](_0x2b2287){var _0x4701f5=_0x3347ac;let _0x3ecb08=this[_0x4701f5(0xfe)]()[_0x4701f5(0xf7)](_0x53974c=>_0x53974c['blockType']===_0x5c4620['CODE']&&_0x53974c['startIndex']<=_0x2b2287&&_0x2b2287<=_0x53974c[_0x4701f5(0xe8)]);return _0x3ecb08?this['_createFDocumentCode'](_0x3ecb08[_0x4701f5(0x117)]):null;}['findCodeByText'](_0x350e4c){var _0x333ff8=_0x3347ac;return this[_0x333ff8(0x109)](_0x350e4c)[0x0]??null;}['findCodes'](_0x457cc9){var _0x1a4438=_0x3347ac;let _0xe11b6b=typeof _0x457cc9==_0x1a4438(0xda)?{'text':_0x457cc9}:_0x457cc9;return this[_0x1a4438(0x108)]()[_0x1a4438(0xf9)](_0x11d5a1=>!(_0xe11b6b[_0x1a4438(0x117)]&&_0x11d5a1[_0x1a4438(0x110)]()!==_0xe11b6b[_0x1a4438(0x117)]||_0xe11b6b[_0x1a4438(0xeb)]&&!_0x11d5a1['getText']()[_0x1a4438(0x111)](_0xe11b6b[_0x1a4438(0xeb)])));}['insertCode'](_0x5d9a87={},_0x2141bf={}){var _0x3e73a3=_0x3347ac;let _0x131aeb=this['_injector'][_0x3e73a3(0x11a)](_0x40c345),_0x85a178=_0x3148a1(_0x5d9a87)?{..._0x2141bf,..._0x5d9a87[_0x3e73a3(0x100)]()}:_0x5d9a87,_0x140dc3=_0x85a178['blockId']??_0x3bb2dc(0x6);return _0x131aeb['syncExecuteCommand'](_0x59cb5d['id'],{..._0x85a178,'blockId':_0x140dc3,'unitId':this[_0x3e73a3(0x110)]()})?this[_0x3e73a3(0x118)](_0x140dc3):null;}['_getBlockRanges'](){var _0x2a9bb3=_0x3347ac,_0x486806;return((_0x486806=this[_0x2a9bb3(0xfd)]()['body'])==null?void 0x0:_0x486806[_0x2a9bb3(0xe1)])??[];}[_0x3347ac(0xe0)](_0x4ac979){var _0x4b0d77=_0x3347ac;return this[_0x4b0d77(0x116)][_0x4b0d77(0x10d)](b,this,_0x4ac979);}};_0x3f0eb7[_0x3347ac(0x105)](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 _0x5af448=_0x26ed;(function(_0xdf62e7,_0x1ba28f){const _0x1eb134=_0x26ed,_0x2ef69b=_0xdf62e7();while(!![]){try{const _0x3f9b9d=parseInt(_0x1eb134(0x162))/0x1+-parseInt(_0x1eb134(0x1a6))/0x2*(-parseInt(_0x1eb134(0x1b2))/0x3)+parseInt(_0x1eb134(0x1bd))/0x4+parseInt(_0x1eb134(0x178))/0x5*(-parseInt(_0x1eb134(0x176))/0x6)+-parseInt(_0x1eb134(0x16c))/0x7+-parseInt(_0x1eb134(0x1f3))/0x8+-parseInt(_0x1eb134(0x1ec))/0x9;if(_0x3f9b9d===_0x1ba28f)break;else _0x2ef69b['push'](_0x2ef69b['shift']());}catch(_0x55975f){_0x2ef69b['push'](_0x2ef69b['shift']());}}}(_0x2936,0x70dc2));import{BooleanNumber as _0xacb120,BuildTextUtils as _0x59cd88,CommandType as _0x4c164f,DataStreamTreeTokenType as _0xe09000,DependentOn as _0x4db280,Disposable as _0x1ddee2,DocumentBlockRangeType as _0x8689f3,ICommandService as _0x6359aa,IConfigService as _0x336315,IResourceManagerService as _0x1fcb3e,IUniverInstanceService as _0x1afda3,Inject as _0x22acd5,Injector as _0x462910,JSONX as _0x235eff,Plugin as _0x537f2b,TextX as _0x2f1bce,UniverInstanceType as _0x3a8083,containsInteriorInsertionOffset as _0x4d26c0,containsStreamIndex as _0x1ce7f1,createParagraphId as _0x4c2e1e,generateRandomId as _0x220f54,getBlockRangeInterval as _0x5d8873,getBodySliceForTextXAction as _0x4a9b32,getParagraphContentStartOffset as _0x30e24f,getParagraphContentStartOffsets as _0x27c03f,getParagraphFollowingBlockOffset as _0x1f33a7,getSingleDataStreamChange as _0x514248,intersectsOperationalIntervals as _0x1cbea0,merge as _0x1b4ff5,shiftExclusiveRangeOnDelete as _0x48996e,shiftExclusiveRangeOnInsert as _0x2f36d2,shiftInclusiveRangeOnDelete as _0x1e00bb,shiftInclusiveRangeOnInsert as _0x36a074}from'@univerjs/core';import{Subject as _0x4870b4}from'rxjs';import{DocSelectionManagerService as _0x235b8c,RichTextEditingMutation as _0x579991,UniverDocsPlugin as _0x15d972,getContentInsertRange as _0x4474d4,isHeaderFooterSelection as _0x14cbd8}from'@univerjs/docs';import{UniverLicensePlugin as _0x4b33a5}from'@univerjs-pro/license';const Se={'language':_0x5af448(0x1e1),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function v(_0x1b7443){return{...Se,..._0x1b7443};}function y(_0x1a18b6){const _0x2dd836=_0x5af448;let _0x2ed990=(_0x1a18b6==null?void 0x0:_0x1a18b6[_0x2dd836(0x1b3)])??{};return{'codes':Object[_0x2dd836(0x184)](Object['entries'](_0x2ed990)[_0x2dd836(0x1e9)](([_0x148552,_0x3b6f1d])=>[_0x148552,v(_0x3b6f1d)]))};}function b(_0x3aab52,_0x119d47,_0x412d82){const _0x1a450b=_0x5af448;let _0x51f151=y(_0x3aab52);return _0x51f151[_0x1a450b(0x1b3)][_0x119d47]=v({..._0x51f151[_0x1a450b(0x1b3)][_0x119d47],..._0x412d82}),_0x51f151;}function x(_0x2696ab,_0x538656){const _0x1a788d=_0x5af448;let _0x134df3=y(_0x2696ab);return delete _0x134df3[_0x1a788d(0x1b3)][_0x538656],_0x134df3;}function S(_0x2b435c){'@babel/helpers - typeof';const _0x1b6d95=_0x5af448;return S=typeof Symbol==_0x1b6d95(0x175)&&typeof Symbol['iterator']==_0x1b6d95(0x1af)?function(_0x408b06){return typeof _0x408b06;}:function(_0x9979e4){const _0x2aa43d=_0x1b6d95;return _0x9979e4&&typeof Symbol==_0x2aa43d(0x175)&&_0x9979e4[_0x2aa43d(0x1f4)]===Symbol&&_0x9979e4!==Symbol[_0x2aa43d(0x17f)]?_0x2aa43d(0x1af):typeof _0x9979e4;},S(_0x2b435c);}function Ce(_0x31f403,_0x5318c8){const _0x52499a=_0x5af448;if(S(_0x31f403)!=_0x52499a(0x187)||!_0x31f403)return _0x31f403;var _0x4007ac=_0x31f403[Symbol[_0x52499a(0x1be)]];if(_0x4007ac!==void 0x0){var _0x34db6e=_0x4007ac[_0x52499a(0x1c0)](_0x31f403,_0x5318c8||_0x52499a(0x1dd));if(S(_0x34db6e)!=_0x52499a(0x187))return _0x34db6e;throw TypeError(_0x52499a(0x19a));}return(_0x5318c8===_0x52499a(0x17d)?String:Number)(_0x31f403);}function we(_0x102e2b){var _0xc73953=Ce(_0x102e2b,'string');return S(_0xc73953)=='symbol'?_0xc73953:_0xc73953+'';}function C(_0xc8c762,_0x3eb6ac,_0x40e14a){const _0x350630=_0x5af448;return(_0x3eb6ac=we(_0x3eb6ac))in _0xc8c762?Object[_0x350630(0x19b)](_0xc8c762,_0x3eb6ac,{'value':_0x40e14a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc8c762[_0x3eb6ac]=_0x40e14a,_0xc8c762;}var w=class extends _0x1ddee2{constructor(..._0xa58b52){const _0x576c6a=_0x5af448;super(..._0xa58b52),C(this,_0x576c6a(0x1a7),new Map()),C(this,_0x576c6a(0x18c),new _0x4870b4()),C(this,_0x576c6a(0x1fb),this['_change$'][_0x576c6a(0x166)]());}[_0x5af448(0x1eb)](_0x161133,_0x1d3cc2){const _0x31c36d=_0x5af448;return y(this[_0x31c36d(0x1a7)][_0x31c36d(0x1e2)](_0x161133))['codes'][_0x1d3cc2];}['setCodeConfig'](_0x164c38,_0x417206,_0x4827dd){const _0x1d0184=_0x5af448;this[_0x1d0184(0x1f9)](_0x164c38,_0x417206,b(this[_0x1d0184(0x1a7)][_0x1d0184(0x1e2)](_0x164c38),_0x417206,_0x4827dd));}[_0x5af448(0x1ff)](_0x27f447,_0x35280b){const _0x12f8af=_0x5af448;this[_0x12f8af(0x1f9)](_0x27f447,_0x35280b,x(this[_0x12f8af(0x1a7)][_0x12f8af(0x1e2)](_0x27f447),_0x35280b));}['serialize'](_0x5674fc){const _0x3580da=_0x5af448;return y(this[_0x3580da(0x1a7)][_0x3580da(0x1e2)](_0x5674fc));}['deserialize'](_0x56bf5f,_0x2cdb58){const _0x42f6b0=_0x5af448;this['_resources'][_0x42f6b0(0x163)](_0x56bf5f,y(_0x2cdb58)),this[_0x42f6b0(0x18c)][_0x42f6b0(0x197)]({'unitId':_0x56bf5f});}[_0x5af448(0x1d8)](_0x5e681f){const _0x25e957=_0x5af448;this[_0x25e957(0x1a7)]['delete'](_0x5e681f),this[_0x25e957(0x18c)][_0x25e957(0x197)]({'unitId':_0x5e681f});}[_0x5af448(0x1e0)](){const _0x242d9c=_0x5af448;super['dispose'](),this[_0x242d9c(0x1a7)]['clear'](),this[_0x242d9c(0x18c)]['complete']();}[_0x5af448(0x1f9)](_0x51c4e5,_0xb8313d,_0x3d3477){const _0x5868f4=_0x5af448;this[_0x5868f4(0x1a7)][_0x5868f4(0x163)](_0x51c4e5,_0x3d3477),this[_0x5868f4(0x18c)][_0x5868f4(0x197)]({'unitId':_0x51c4e5,'blockId':_0xb8313d});}};const Te={'id':_0x5af448(0x179),'type':_0x4c164f[_0x5af448(0x191)],'handler':(_0x4f01d8,_0x5a3428)=>!(_0x5a3428!=null&&_0x5a3428['unitId'])||!_0x5a3428[_0x5af448(0x170)]?!0x1:(_0x4f01d8[_0x5af448(0x1e2)](w)[_0x5af448(0x1cc)](_0x5a3428[_0x5af448(0x1fe)],_0x5a3428[_0x5af448(0x170)],_0x5a3428[_0x5af448(0x185)]),!0x0)},T={'id':_0x5af448(0x1b8),'type':_0x4c164f[_0x5af448(0x191)],'handler':(_0x492c24,_0x96326)=>!(_0x96326!=null&&_0x96326[_0x5af448(0x1fe)])||!_0x96326[_0x5af448(0x170)]?!0x1:(_0x492c24[_0x5af448(0x1e2)](w)['removeCode'](_0x96326[_0x5af448(0x1fe)],_0x96326['blockId']),!0x0)},Ee=_0x5af448(0x186);var E=class extends Error{constructor(_0x407778=_0x5af448(0x171)){super(_0x407778);}};function De(_0x1fafba){const _0x55d9bf=_0x5af448;var _0x253d86;let _0x3dd092=O(_0x1fafba['documentData']),_0x4e8195=A(_0x3dd092),_0x1e2e3c=ke(_0x1fafba[_0x55d9bf(0x1bc)],_0x1fafba[_0x55d9bf(0x1b5)]),_0x548cae=_0x1e2e3c?(_0x253d86=_0x4e8195['blockRanges'])==null?void 0x0:_0x253d86[_0x55d9bf(0x16a)](_0x1662da=>{const _0x3c67f5=_0x55d9bf;let _0x516d96=_0x5d8873(_0x1662da);return _0x516d96[_0x3c67f5(0x1bc)]===_0x1e2e3c[_0x3c67f5(0x1bc)]&&_0x516d96[_0x3c67f5(0x1b5)]===_0x1e2e3c['endOffset'];}):void 0x0,{startOffset:_0x12ff33,endOffset:_0x53c6b8}=_0x548cae?_0x1e2e3c:We(_0x4e8195,_0x1fafba[_0x55d9bf(0x1bc)],_0x1fafba[_0x55d9bf(0x1b5)],_0x1fafba[_0x55d9bf(0x188)]);if(!_0x548cae&&Ae(_0x4e8195,_0x12ff33,_0x53c6b8))throw new E(_0x55d9bf(0x1c4));let _0x131064=qe(_0x4e8195,_0x12ff33,_0x53c6b8),_0xb521ce=(_0x548cae==null?void 0x0:_0x548cae[_0x55d9bf(0x170)])??_0x1fafba[_0x55d9bf(0x170)],_0x2aac06=b(_0x1fafba[_0x55d9bf(0x1f5)],_0xb521ce,{...Se,..._0x1fafba['config']});if(_0x548cae)return _0x548cae[_0x55d9bf(0x180)]=_0x8689f3['CODE'],Oe(_0x4e8195,_0x12ff33,_0x53c6b8),ze(_0x4e8195,_0x12ff33,_0x53c6b8,_0x131064),N(_0x4e8195,_0x548cae),{'nextDocumentData':_0x3dd092,'nextMetadata':_0x2aac06,'cursorOffset':_0x12ff33+0x1};if(_0x12ff33===_0x53c6b8){var _0x7bbca2,_0x44b644;let _0x42da99=''+_0xe09000[_0x55d9bf(0x17b)]+_0xe09000[_0x55d9bf(0x160)]+_0xe09000[_0x55d9bf(0x1a0)];P(_0x4e8195,_0x12ff33,_0x42da99,{'paragraphs':[{'startIndex':0x1,'paragraphId':_0x4c2e1e(new Set((_0x7bbca2=_0x4e8195['paragraphs'])==null?void 0x0:_0x7bbca2[_0x55d9bf(0x1e9)](_0x2445c1=>_0x2445c1['paragraphId']))),'paragraphStyle':Re(!0x0,!0x0,_0x131064)}],'blockRanges':[{'blockId':_0xb521ce,'blockType':_0x8689f3[_0x55d9bf(0x1ee)],'startIndex':0x0,'endIndex':_0x42da99[_0x55d9bf(0x183)]-0x1}]});let _0xb93b7f=(_0x44b644=_0x4e8195[_0x55d9bf(0x18e)])==null?void 0x0:_0x44b644[_0x55d9bf(0x16a)](_0x4440ee=>_0x4440ee[_0x55d9bf(0x170)]===_0xb521ce);return _0xb93b7f&&N(_0x4e8195,_0xb93b7f),{'nextDocumentData':_0x3dd092,'nextMetadata':_0x2aac06,'cursorOffset':_0x12ff33+0x1};}P(_0x4e8195,_0x53c6b8,_0xe09000[_0x55d9bf(0x1a0)]),P(_0x4e8195,_0x12ff33,_0xe09000[_0x55d9bf(0x17b)]),ze(_0x4e8195,_0x12ff33,_0x53c6b8+0x1,_0x131064);let _0x488854={'blockId':_0xb521ce,'blockType':_0x8689f3['CODE'],'startIndex':_0x12ff33,'endIndex':_0x53c6b8+0x1};return _0x4e8195['blockRanges']=[..._0x4e8195[_0x55d9bf(0x18e)]??[],_0x488854]['sort']((_0x3d607a,_0x3abc61)=>_0x3d607a[_0x55d9bf(0x1bf)]-_0x3abc61[_0x55d9bf(0x1bf)]),N(_0x4e8195,_0x488854),{'nextDocumentData':_0x3dd092,'nextMetadata':_0x2aac06,'cursorOffset':_0x12ff33+0x1};}function Oe(_0x25d443,_0x4a8e4d,_0x14fd77){const _0x2151e5=_0x5af448;(_0x25d443[_0x2151e5(0x195)]??[])['filter'](_0x1266e7=>_0x1266e7[_0x2151e5(0x1bf)]>_0x4a8e4d&&_0x1266e7['startIndex']<_0x14fd77)[_0x2151e5(0x1d7)](_0x375f95=>{const _0x23b6d3=_0x2151e5;let _0x19034e={..._0x375f95[_0x23b6d3(0x1a8)]??{}};delete _0x19034e[_0x23b6d3(0x1ed)],delete _0x19034e[_0x23b6d3(0x1b6)],_0x375f95[_0x23b6d3(0x1a8)]=_0x19034e;});}function ke(_0x5a3ed1,_0x10ecd8){const _0x39d2e0=_0x5af448;return _0x5a3ed1==null||_0x10ecd8==null||_0x5a3ed1===_0x10ecd8?null:{'startOffset':Math['min'](_0x5a3ed1,_0x10ecd8),'endOffset':Math[_0x39d2e0(0x1c7)](_0x5a3ed1,_0x10ecd8)};}function Ae(_0xf133aa,_0x167283,_0x4e0988){const _0x2c5570=_0x5af448;return(_0xf133aa[_0x2c5570(0x18e)]??[])[_0x2c5570(0x1cb)](_0xb97fc4=>{let _0x395fb0=_0x5d8873(_0xb97fc4);return _0x167283===_0x4e0988?_0x4d26c0(_0x395fb0,_0x167283):_0x1cbea0(_0x395fb0,{'startOffset':_0x167283,'endOffset':_0x4e0988});});}function je(_0x31f2e4){const _0x56345a=_0x5af448;return{'nextDocumentData':O(_0x31f2e4[_0x56345a(0x1c2)]),'nextMetadata':b(_0x31f2e4['metadata'],_0x31f2e4[_0x56345a(0x170)],_0x31f2e4[_0x56345a(0x185)]),'cursorOffset':0x0};}function D(_0x2864b8){const _0x54f691=_0x5af448;let _0x3dc60f=O(_0x2864b8[_0x54f691(0x1c2)]),_0x4527a2=A(_0x3dc60f),_0x29a06c=Fe(_0x4527a2,_0x2864b8[_0x54f691(0x170)]);if(!_0x29a06c)return null;let _0x5dd5eb=He(_0x4527a2,_0x29a06c);return{'nextDocumentData':_0x3dc60f,'nextMetadata':x(_0x2864b8[_0x54f691(0x1f5)],_0x2864b8['blockId']),'cursorOffset':_0x5dd5eb};}function Me(_0x3601a0){const _0x1e092b=_0x5af448;var _0x348e8a;let _0x508b55=O(_0x3601a0['documentData']),_0x4f8a84=A(_0x508b55),_0x2cc63d=Fe(_0x4f8a84,_0x3601a0[_0x1e092b(0x170)]);if(!_0x2cc63d)return null;let _0x5da37e=_0x5d8873(_0x2cc63d);return F(_0x4f8a84,_0x5da37e['startOffset'],_0x5da37e[_0x1e092b(0x1b5)]),_0x4f8a84[_0x1e092b(0x18e)]=(_0x348e8a=_0x4f8a84[_0x1e092b(0x18e)])==null?void 0x0:_0x348e8a['filter'](_0x49440a=>_0x49440a[_0x1e092b(0x170)]!==_0x3601a0['blockId']),{'nextDocumentData':_0x508b55,'nextMetadata':x(_0x3601a0[_0x1e092b(0x1f5)],_0x3601a0[_0x1e092b(0x170)]),'cursorOffset':_0x2cc63d[_0x1e092b(0x1bf)]};}function Ne(_0x3554c6){const _0x377dc9=_0x5af448;let _0x33b07d=O(_0x3554c6[_0x377dc9(0x1c2)]),_0x5b0e57=A(_0x33b07d),_0x1e1d36=Le(_0x5b0e57,_0x3554c6[_0x377dc9(0x172)]);return _0x1e1d36&&Pe(_0x33b07d,_0x5b0e57,_0x1e1d36,_0x3554c6['cursorOffset'],_0x3554c6['paragraphStartIndex'])||null;}function Pe(_0x330de4,_0x1e5083,_0x2cbf5e,_0x48c97c,_0x244e68){const _0xc0b66b=_0x5af448;let _0x4d8fe8=$e(_0x1e5083,_0x2cbf5e,_0x48c97c,_0x244e68);if(!_0x4d8fe8)return null;let _0x2c5e6f=_0x4d8fe8[_0xc0b66b(0x17a)]-0x1;return F(_0x1e5083,_0x4d8fe8[_0xc0b66b(0x1ac)]['startIndex'],_0x4d8fe8[_0xc0b66b(0x1ac)]['startIndex']+0x1),{'nextDocumentData':_0x330de4,'cursorOffset':_0x2c5e6f};}function Fe(_0x4cfbe1,_0x1fefa8){const _0x521e72=_0x5af448;var _0x4e5763;return _0x4cfbe1==null||(_0x4e5763=_0x4cfbe1[_0x521e72(0x18e)])==null?void 0x0:_0x4e5763[_0x521e72(0x16a)](_0x2fd4bb=>_0x2fd4bb[_0x521e72(0x180)]===_0x8689f3[_0x521e72(0x1ee)]&&_0x2fd4bb[_0x521e72(0x170)]===_0x1fefa8);}function Ie(_0x1b62b5){const _0xa11c9=_0x5af448;let _0x18faae=_0x1b62b5[_0xa11c9(0x1c2)][_0xa11c9(0x1a9)];if(!_0x18faae)return!0x1;let _0x33ca30=_0x1b62b5[_0xa11c9(0x1aa)]==='left'?_0x1b62b5[_0xa11c9(0x172)]-0x1:_0x1b62b5['cursorOffset'],_0x35d07a=_0x1b62b5['direction']===_0xa11c9(0x1e7)?_0x1b62b5[_0xa11c9(0x172)]+0x1:_0x33ca30;return(_0x18faae['blockRanges']??[])[_0xa11c9(0x1cb)](_0x36ba64=>_0x36ba64[_0xa11c9(0x180)]===_0x8689f3[_0xa11c9(0x1ee)]?_0x33ca30===_0x36ba64[_0xa11c9(0x1bf)]||_0x33ca30===_0x36ba64[_0xa11c9(0x16d)]||_0x35d07a===_0x36ba64[_0xa11c9(0x1bf)]||_0x35d07a===_0x36ba64[_0xa11c9(0x16d)]:!0x1);}function Le(_0x14a643,_0x4dc484){const _0x4b516c=_0x5af448;var _0x1a0870;return(_0x1a0870=_0x14a643[_0x4b516c(0x18e)])==null?void 0x0:_0x1a0870[_0x4b516c(0x16a)](_0x227eb2=>{const _0x5d9a04=_0x4b516c;let _0x30d708=M(_0x227eb2);return _0x227eb2[_0x5d9a04(0x180)]===_0x8689f3[_0x5d9a04(0x1ee)]&&_0x227eb2[_0x5d9a04(0x1bf)]<=_0x4dc484&&_0x4dc484<=_0x30d708+0x2;});}function Re(_0x73a82b,_0xec4a9f,_0x1fc722=!0x1){const _0x456c72=_0x5af448;return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},'keepLines':_0xacb120[_0x456c72(0x1b1)],'keepNext':_0xec4a9f?_0xacb120['FALSE']:_0xacb120[_0x456c72(0x1b1)],'widowControl':_0xacb120[_0x456c72(0x1b1)],..._0x73a82b&&_0x1fc722?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':Ee,'fs':0xc}};}function ze(_0x2ee977,_0x5489fb,_0x28d8f8,_0x2aaead=!0x1){const _0x1c704b=_0x5af448;let _0x194a79=(_0x2ee977[_0x1c704b(0x195)]??[])[_0x1c704b(0x1ef)](_0x109dda=>_0x109dda['startIndex']>_0x5489fb&&_0x109dda[_0x1c704b(0x1bf)]<_0x28d8f8);_0x194a79[_0x1c704b(0x1d7)]((_0x981ee9,_0x4f6761)=>{const _0x23009c=_0x1c704b;_0x981ee9[_0x23009c(0x1a8)]={..._0x981ee9[_0x23009c(0x1a8)]??{},...Re(_0x4f6761===0x0,_0x4f6761===_0x194a79[_0x23009c(0x183)]-0x1,_0x2aaead)};});}function Be(_0x28f1c0){const _0x4ff1c5=_0x5af448;var _0x153ec7,_0x1adf73;let _0x426af4={..._0x28f1c0??{}};return delete _0x426af4[_0x4ff1c5(0x1a2)],delete _0x426af4[_0x4ff1c5(0x174)],delete _0x426af4['spaceAbove'],delete _0x426af4[_0x4ff1c5(0x1b6)],delete _0x426af4['keepLines'],delete _0x426af4['keepNext'],delete _0x426af4['widowControl'],((_0x153ec7=_0x426af4[_0x4ff1c5(0x1ea)])==null?void 0x0:_0x153ec7['ff'])===Ee&&((_0x1adf73=_0x426af4['textStyle'])==null?void 0x0:_0x1adf73['fs'])===0xc&&delete _0x426af4[_0x4ff1c5(0x1ea)],_0x426af4;}function Ve(_0x460843,_0x3c4893){const _0x43624e=_0x5af448;let _0x2ccda7=M(_0x3c4893);return(_0x460843['paragraphs']??[])['filter'](_0x55d770=>_0x55d770[_0x43624e(0x1bf)]>_0x3c4893[_0x43624e(0x1bf)]&&_0x55d770[_0x43624e(0x1bf)]<_0x2ccda7);}function He(_0x24f5a9,_0x379330){const _0x141ef9=_0x5af448;var _0x17ffbb;let _0x5ec7e1=M(_0x379330);return Ve(_0x24f5a9,_0x379330)[_0x141ef9(0x1d7)](_0x69a15=>{const _0x29e0cb=_0x141ef9;_0x69a15[_0x29e0cb(0x1a8)]=Be(_0x69a15[_0x29e0cb(0x1a8)]);}),F(_0x24f5a9,_0x5ec7e1,_0x5ec7e1+0x1),F(_0x24f5a9,_0x379330[_0x141ef9(0x1bf)],_0x379330['startIndex']+0x1),_0x24f5a9[_0x141ef9(0x18e)]=(_0x17ffbb=_0x24f5a9[_0x141ef9(0x18e)])==null?void 0x0:_0x17ffbb['filter'](_0x326424=>_0x326424[_0x141ef9(0x170)]!==_0x379330[_0x141ef9(0x170)]),_0x379330[_0x141ef9(0x1bf)];}function O(_0x525741){const _0x4d4414=_0x5af448;return{..._0x525741,'body':_0x525741[_0x4d4414(0x1a9)]?Ue(_0x525741[_0x4d4414(0x1a9)]):_0x525741[_0x4d4414(0x1a9)]};}function Ue(_0xa2cf2d){const _0x2b1bc8=_0x5af448;var _0x33b5fa,_0x1b53ed,_0x30838d,_0x9da526,_0xb24c53,_0x5489c4,_0x144ce3,_0x297f3f,_0x508bdc;return{..._0xa2cf2d,'paragraphs':(_0x33b5fa=_0xa2cf2d[_0x2b1bc8(0x195)])==null?void 0x0:_0x33b5fa['map'](_0xcf7a1c=>({..._0xcf7a1c,'bullet':k(_0xcf7a1c[_0x2b1bc8(0x194)]),'paragraphStyle':k(_0xcf7a1c[_0x2b1bc8(0x1a8)])})),'sectionBreaks':(_0x1b53ed=_0xa2cf2d[_0x2b1bc8(0x1c9)])==null?void 0x0:_0x1b53ed[_0x2b1bc8(0x1e9)](_0x4c5930=>({..._0x4c5930})),'textRuns':(_0x30838d=_0xa2cf2d[_0x2b1bc8(0x1ab)])==null?void 0x0:_0x30838d[_0x2b1bc8(0x1e9)](_0x1f69b0=>({..._0x1f69b0})),'tables':(_0x9da526=_0xa2cf2d['tables'])==null?void 0x0:_0x9da526[_0x2b1bc8(0x1e9)](_0x11de19=>({..._0x11de19})),'columnGroups':(_0xb24c53=_0xa2cf2d[_0x2b1bc8(0x1c3)])==null?void 0x0:_0xb24c53[_0x2b1bc8(0x1e9)](_0x5a3a4c=>{const _0x546d1e=_0x2b1bc8;var _0x1de864;return{..._0x5a3a4c,'columns':(_0x1de864=_0x5a3a4c['columns'])==null?void 0x0:_0x1de864[_0x546d1e(0x1e9)](_0x329863=>k(_0x329863))};}),'blockRanges':(_0x5489c4=_0xa2cf2d[_0x2b1bc8(0x18e)])==null?void 0x0:_0x5489c4[_0x2b1bc8(0x1e9)](_0xb22a82=>({..._0xb22a82})),'customRanges':(_0x144ce3=_0xa2cf2d[_0x2b1bc8(0x17c)])==null?void 0x0:_0x144ce3[_0x2b1bc8(0x1e9)](_0x5dfa9c=>({..._0x5dfa9c})),'customDecorations':(_0x297f3f=_0xa2cf2d[_0x2b1bc8(0x1cf)])==null?void 0x0:_0x297f3f[_0x2b1bc8(0x1e9)](_0x5094d3=>({..._0x5094d3})),'customBlocks':(_0x508bdc=_0xa2cf2d[_0x2b1bc8(0x189)])==null?void 0x0:_0x508bdc[_0x2b1bc8(0x1e9)](_0x2f96dc=>({..._0x2f96dc}))};}function k(_0x38315a){const _0x2d62c2=_0x5af448;return Array[_0x2d62c2(0x18a)](_0x38315a)?_0x38315a[_0x2d62c2(0x1e9)](_0x5bbf36=>k(_0x5bbf36)):!_0x38315a||typeof _0x38315a!=_0x2d62c2(0x187)?_0x38315a:Object[_0x2d62c2(0x184)](Object['entries'](_0x38315a)[_0x2d62c2(0x1e9)](([_0x3d1bd1,_0x3340ff])=>[_0x3d1bd1,k(_0x3340ff)]));}function A(_0x1eaa5b){const _0x3e0206=_0x5af448;if(!_0x1eaa5b[_0x3e0206(0x1a9)])throw Error(_0x3e0206(0x1f8));return _0x1eaa5b[_0x3e0206(0x1a9)];}function We(_0x5da6e1,_0x17de07,_0x34c4d7,_0x3a65e6='convert-paragraph'){const _0x2ef646=_0x5af448;if(_0x17de07==null||_0x34c4d7==null){let _0xeb7b36=Ke(_0x5da6e1);return{'startOffset':_0xeb7b36,'endOffset':_0xeb7b36};}let _0x55df7e=Math[_0x2ef646(0x1d4)](_0x17de07,_0x34c4d7),_0x15a9f6=Math[_0x2ef646(0x1c7)](_0x17de07,_0x34c4d7),_0x2eb305=Ze(_0x5da6e1,_0x55df7e,_0x15a9f6);return _0x55df7e===_0x15a9f6?_0x3a65e6==='insert-new'?{'startOffset':_0x55df7e,'endOffset':_0x15a9f6}:Ge(_0x5da6e1,_0x55df7e,_0x2eb305):Je(_0x5da6e1,_0x55df7e,_0x15a9f6,_0x2eb305);}function Ge(_0x519cb2,_0x44b93f,_0x3e63c2){const _0x36002c=_0x5af448;let _0x4c565a=Ye(_0x519cb2,_0x44b93f);if(_0x4c565a){let _0x7a7c1=j(_0x519cb2,_0x4c565a,_0x3e63c2);if(_0x7a7c1<_0x4c565a['startIndex'])return{'startOffset':_0x7a7c1,'endOffset':_0x3e63c2?Math[_0x36002c(0x1d4)](_0x4c565a[_0x36002c(0x1bf)]+0x1,_0x3e63c2['endOffset']):_0x4c565a[_0x36002c(0x1bf)]+0x1};}let _0x5046ce=_0x44b93f===0x0&&_0x519cb2[_0x36002c(0x1b4)][0x0]===_0xe09000[_0x36002c(0x160)]?0x1:_0x44b93f;return{'startOffset':_0x5046ce,'endOffset':_0x5046ce};}function Ke(_0x480467){const _0x3b5a4c=_0x5af448;return _0x480467[_0x3b5a4c(0x1b4)][_0x3b5a4c(0x1f7)](_0xe09000[_0x3b5a4c(0x1ca)])?Math[_0x3b5a4c(0x1c7)](0x0,_0x480467[_0x3b5a4c(0x1b4)][_0x3b5a4c(0x183)]-0x1):_0x480467[_0x3b5a4c(0x1b4)][_0x3b5a4c(0x183)];}function qe(_0x2c6a2b,_0x2fb5f5,_0x206272){const _0x33a179=_0x5af448;var _0x202336;let _0x46019b=Math[_0x33a179(0x1d4)](_0x2fb5f5,_0x206272),_0x29b339=Math[_0x33a179(0x1c7)](_0x2fb5f5,_0x206272);return!!((_0x202336=_0x2c6a2b[_0x33a179(0x164)])!=null&&_0x202336[_0x33a179(0x1cb)](_0x300e91=>_0x46019b>_0x300e91[_0x33a179(0x1bf)]&&_0x46019b<_0x300e91['endIndex']||_0x29b339>_0x300e91[_0x33a179(0x1bf)]&&_0x29b339<_0x300e91[_0x33a179(0x16d)]||_0x46019b<=_0x300e91[_0x33a179(0x1bf)]&&_0x29b339>=_0x300e91[_0x33a179(0x16d)]));}function Je(_0x51aa45,_0x2bf355,_0x7a15d5,_0x1158c0){const _0x4b75ad=_0x5af448;let _0x255ef=[..._0x51aa45[_0x4b75ad(0x195)]??[]][_0x4b75ad(0x1ae)]((_0x10d997,_0x50f357)=>_0x10d997['startIndex']-_0x50f357['startIndex']),_0x2ac4f1=_0x27c03f(_0x51aa45),_0x356775=_0x255ef['find'](_0x18729a=>j(_0x51aa45,_0x18729a,_0x1158c0,_0x2ac4f1)<=_0x2bf355&&_0x2bf355<=_0x18729a[_0x4b75ad(0x1bf)]),_0x5ea64e=_0x255ef[_0x4b75ad(0x16a)](_0x8ce5fa=>_0x8ce5fa[_0x4b75ad(0x1bf)]>=_0x7a15d5-0x1)??_0x255ef[_0x255ef[_0x4b75ad(0x183)]-0x1];return{'startOffset':_0x356775?j(_0x51aa45,_0x356775,_0x1158c0,_0x2ac4f1):_0x2bf355,'endOffset':_0x5ea64e?Xe(_0x5ea64e,_0x1158c0):_0x7a15d5};}function Ye(_0x2805b3,_0x52664e){const _0x114d63=_0x5af448;let _0x580851=[..._0x2805b3['paragraphs']??[]]['sort']((_0x146f50,_0x24d6c2)=>_0x146f50['startIndex']-_0x24d6c2['startIndex']),_0x5c45f9=_0x27c03f(_0x2805b3);return _0x580851['find'](_0x1d6d95=>(_0x5c45f9[_0x114d63(0x1e2)](_0x1d6d95['startIndex'])??0x0)<=_0x52664e&&_0x52664e<=_0x1d6d95['startIndex']);}function j(_0xf4f0d5,_0x2aa09b,_0x532645,_0x2c4eb0){const _0x42e3c1=_0x5af448;let _0x2269bb=(_0x2c4eb0==null?void 0x0:_0x2c4eb0[_0x42e3c1(0x1e2)](_0x2aa09b[_0x42e3c1(0x1bf)]))??_0x30e24f(_0xf4f0d5,_0x2aa09b);return _0x532645?Math[_0x42e3c1(0x1c7)](_0x2269bb,_0x532645[_0x42e3c1(0x1bc)]):_0x2269bb;}function Xe(_0x16aa0e,_0x465617){const _0x4f9afe=_0x5af448;let _0x241859=_0x16aa0e[_0x4f9afe(0x1bf)]+0x1;return _0x465617?Math[_0x4f9afe(0x1d4)](_0x241859,_0x465617[_0x4f9afe(0x1b5)]):_0x241859;}function Ze(_0x3bd2b5,_0x25890c,_0x130958){const _0x43cb82=_0x5af448;let _0x50bbc7=Qe(_0x3bd2b5,_0x25890c),_0x475140=Qe(_0x3bd2b5,_0x25890c===_0x130958?_0x130958:Math['max'](_0x25890c,_0x130958-0x1));if(_0x50bbc7||_0x475140){if(!_0x50bbc7||!_0x475140||_0x50bbc7['startTokenOffset']!==_0x475140[_0x43cb82(0x18d)]||_0x50bbc7[_0x43cb82(0x17a)]!==_0x475140[_0x43cb82(0x17a)])throw new E();return _0x50bbc7;}}function Qe(_0x3b0101,_0x38e929){const _0x3ce54d=_0x5af448;let _0x40e872=_0x3b0101[_0x3ce54d(0x1b4)],_0x3a8226=-0x1;for(let _0x91f5fc=Math['min'](_0x38e929,_0x40e872[_0x3ce54d(0x183)]-0x1);_0x91f5fc>=0x0;_0x91f5fc--){let _0x49345b=_0x40e872[_0x91f5fc];if(_0x49345b===_0xe09000[_0x3ce54d(0x1e3)])return;if(_0x49345b===_0xe09000['TABLE_CELL_START']){_0x3a8226=_0x91f5fc;break;}}if(_0x3a8226<0x0)return;let _0x2042f4=_0x40e872['indexOf'](_0xe09000[_0x3ce54d(0x1e3)],_0x3a8226+0x1);if(!(_0x2042f4<0x0||_0x38e929<_0x3a8226+0x1||_0x38e929>_0x2042f4-0x1))return{'startOffset':_0x3a8226+0x1,'endOffset':Math[_0x3ce54d(0x1c7)](_0x3a8226+0x1,_0x2042f4-0x1),'startTokenOffset':_0x3a8226,'endTokenOffset':_0x2042f4};}function M(_0x2abe05){const _0x24d5a7=_0x5af448;return _0x5d8873(_0x2abe05)[_0x24d5a7(0x1b5)]-0x1;}function $e(_0x3b093d,_0x2034fb,_0x68bd49,_0x288e72){const _0x54fb3e=_0x5af448;let _0x4e3983=M(_0x2034fb),_0x1f58dc=(_0x3b093d[_0x54fb3e(0x195)]??[])[_0x54fb3e(0x16a)](_0x2036da=>_0x2036da[_0x54fb3e(0x1bf)]===_0x4e3983+0x1);if(!_0x1f58dc||_0x288e72!=null&&_0x1f58dc[_0x54fb3e(0x1bf)]!==_0x288e72||_0x68bd49!=null&&(_0x68bd49<_0x4e3983||_0x68bd49>_0x1f58dc['startIndex']+0x1)||_0x3b093d[_0x54fb3e(0x1b4)][_0x1f58dc[_0x54fb3e(0x1bf)]]!==_0xe09000[_0x54fb3e(0x160)])return null;let _0x40b38f=_0x30e24f(_0x3b093d,_0x1f58dc),_0x4c2412=_0x3b093d[_0x54fb3e(0x1b4)]['slice'](_0x40b38f,_0x1f58dc[_0x54fb3e(0x1bf)]);return Array[_0x54fb3e(0x1fd)](_0x4c2412)[_0x54fb3e(0x167)](_0x4ad67b=>_0x4ad67b===_0xe09000[_0x54fb3e(0x1a0)])?{'paragraph':_0x1f58dc,'endTokenOffset':_0x4e3983}:null;}function N(_0x5a1336,_0x483373){const _0x145c4b=_0x5af448;var _0x55a30e;let _0x32c867=M(_0x483373),_0x45351b=_0x5a1336[_0x145c4b(0x1b4)][_0x32c867+0x1];(_0x45351b===_0xe09000[_0x145c4b(0x1ca)]||_0x45351b===void 0x0)&&P(_0x5a1336,_0x32c867+0x1,_0xe09000['PARAGRAPH'],{'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4c2e1e(new Set((_0x55a30e=_0x5a1336[_0x145c4b(0x195)])==null?void 0x0:_0x55a30e[_0x145c4b(0x1e9)](_0x43e6de=>_0x43e6de[_0x145c4b(0x18f)])))}]});}function P(_0x198562,_0x29555b,_0x28e2aa,_0x12e331={}){const _0x4899c4=_0x5af448;var _0x2026b8,_0x5ac821;_0x28e2aa&&(_0x198562[_0x4899c4(0x1b4)]=''+_0x198562[_0x4899c4(0x1b4)][_0x4899c4(0x1c1)](0x0,_0x29555b)+_0x28e2aa+_0x198562[_0x4899c4(0x1b4)]['slice'](_0x29555b),et(_0x198562,_0x29555b,_0x28e2aa[_0x4899c4(0x183)]),(_0x2026b8=_0x12e331[_0x4899c4(0x195)])!=null&&_0x2026b8[_0x4899c4(0x183)]&&(_0x198562['paragraphs']=[..._0x198562[_0x4899c4(0x195)]??[],..._0x12e331[_0x4899c4(0x195)][_0x4899c4(0x1e9)](_0x7c701f=>({..._0x7c701f,'startIndex':_0x7c701f[_0x4899c4(0x1bf)]+_0x29555b}))][_0x4899c4(0x1ae)]((_0x2c5a45,_0x17d26f)=>_0x2c5a45[_0x4899c4(0x1bf)]-_0x17d26f['startIndex'])),(_0x5ac821=_0x12e331[_0x4899c4(0x18e)])!=null&&_0x5ac821[_0x4899c4(0x183)]&&(_0x198562['blockRanges']=[..._0x198562[_0x4899c4(0x18e)]??[],..._0x12e331[_0x4899c4(0x18e)]['map'](_0x12436f=>({..._0x12436f,'startIndex':_0x12436f[_0x4899c4(0x1bf)]+_0x29555b,'endIndex':_0x12436f[_0x4899c4(0x16d)]+_0x29555b}))][_0x4899c4(0x1ae)]((_0x80fa48,_0x3959a8)=>_0x80fa48[_0x4899c4(0x1bf)]-_0x3959a8['startIndex'])));}function F(_0x5ce172,_0x40d15f,_0x586efc){const _0x1d96ed=_0x5af448;let _0x4f5e7c=_0x586efc-_0x40d15f;_0x5ce172[_0x1d96ed(0x1b4)]=''+_0x5ce172[_0x1d96ed(0x1b4)][_0x1d96ed(0x1c1)](0x0,_0x40d15f)+_0x5ce172['dataStream'][_0x1d96ed(0x1c1)](_0x586efc),tt(_0x5ce172,_0x40d15f,_0x4f5e7c);}function et(_0x35b86c,_0x715831,_0x52caed){const _0x1cc6d8=_0x5af448;_0x35b86c[_0x1cc6d8(0x195)]=I(_0x35b86c[_0x1cc6d8(0x195)],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x1c9)]=I(_0x35b86c['sectionBreaks'],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x189)]=I(_0x35b86c[_0x1cc6d8(0x189)],_0x715831,_0x52caed),_0x35b86c['textRuns']=nt(_0x35b86c[_0x1cc6d8(0x1ab)],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x164)]=rt(_0x35b86c[_0x1cc6d8(0x164)],_0x715831,_0x52caed),_0x35b86c['columnGroups']=R(_0x35b86c[_0x1cc6d8(0x1c3)],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x17c)]=R(_0x35b86c['customRanges'],_0x715831,_0x52caed),_0x35b86c[_0x1cc6d8(0x1cf)]=R(_0x35b86c[_0x1cc6d8(0x1cf)],_0x715831,_0x52caed),_0x35b86c['blockRanges']=R(_0x35b86c['blockRanges'],_0x715831,_0x52caed);}function tt(_0x2173e1,_0x3cf85f,_0x14b7af){const _0x8e7fe0=_0x5af448;var _0x5b7df4,_0x30471e;_0x2173e1['paragraphs']=L(_0x2173e1[_0x8e7fe0(0x195)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1c9)]=L(_0x2173e1[_0x8e7fe0(0x1c9)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x189)]=L(_0x2173e1[_0x8e7fe0(0x189)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1ab)]=(_0x5b7df4=it((_0x30471e=_0x2173e1[_0x8e7fe0(0x1ab)])==null?void 0x0:_0x30471e['map'](_0x17270f=>({..._0x17270f,'startIndex':_0x17270f['st'],'endIndex':_0x17270f['ed']})),_0x3cf85f,_0x14b7af))==null?void 0x0:_0x5b7df4['map'](_0x5c943a=>{let {startIndex:_0x7e68fd,endIndex:_0x1291e8,..._0x56c301}=_0x5c943a;return{..._0x56c301,'st':_0x7e68fd,'ed':_0x1291e8};}),_0x2173e1[_0x8e7fe0(0x164)]=it(_0x2173e1['tables'],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1c3)]=z(_0x2173e1[_0x8e7fe0(0x1c3)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x17c)]=z(_0x2173e1[_0x8e7fe0(0x17c)],_0x3cf85f,_0x14b7af),_0x2173e1[_0x8e7fe0(0x1cf)]=z(_0x2173e1[_0x8e7fe0(0x1cf)],_0x3cf85f,_0x14b7af),_0x2173e1['blockRanges']=z(_0x2173e1['blockRanges'],_0x3cf85f,_0x14b7af);}function I(_0x781414,_0x6a13ec,_0x29bafe){const _0x2707ff=_0x5af448;return _0x781414==null?void 0x0:_0x781414['map'](_0x4eb77d=>_0x4eb77d[_0x2707ff(0x1bf)]>=_0x6a13ec?{..._0x4eb77d,'startIndex':_0x4eb77d[_0x2707ff(0x1bf)]+_0x29bafe}:_0x4eb77d);}function L(_0x290476,_0x5a3acc,_0x46523a){const _0x4f9139=_0x5af448;let _0x58fa0d=_0x5a3acc+_0x46523a;return _0x290476==null?void 0x0:_0x290476[_0x4f9139(0x1e9)](_0x550987=>_0x550987['startIndex']>=_0x5a3acc&&_0x550987[_0x4f9139(0x1bf)]<_0x58fa0d?null:_0x550987[_0x4f9139(0x1bf)]>=_0x58fa0d?{..._0x550987,'startIndex':_0x550987[_0x4f9139(0x1bf)]-_0x46523a}:_0x550987)[_0x4f9139(0x1ef)](_0x1beff3=>_0x1beff3!=null);}function nt(_0x4c6947,_0x5098e9,_0x5a1d16){return _0x4c6947==null?void 0x0:_0x4c6947['map'](_0x24ecc0=>_0x24ecc0['st']>=_0x5098e9?{..._0x24ecc0,'st':_0x24ecc0['st']+_0x5a1d16,'ed':_0x24ecc0['ed']+_0x5a1d16}:_0x24ecc0['ed']>_0x5098e9?{..._0x24ecc0,'ed':_0x24ecc0['ed']+_0x5a1d16}:_0x24ecc0);}function R(_0x4e5f5b,_0x52d0f2,_0x524246){const _0x408c3=_0x5af448;return _0x4e5f5b==null?void 0x0:_0x4e5f5b[_0x408c3(0x1e9)](_0x1c81bf=>_0x36a074(_0x1c81bf,_0x52d0f2,_0x524246));}function rt(_0x178301,_0x4eed42,_0x2dfc5d){return _0x178301==null?void 0x0:_0x178301['map'](_0x2477ac=>_0x2f36d2(_0x2477ac,_0x4eed42,_0x2dfc5d));}function z(_0x3667e0,_0xdec1bb,_0x462c6e){const _0x4ac15e=_0x5af448;return _0x3667e0==null?void 0x0:_0x3667e0[_0x4ac15e(0x1e9)](_0x5b04cc=>_0x1e00bb(_0x5b04cc,_0xdec1bb,_0x462c6e))['filter'](_0x2eb120=>_0x2eb120!=null);}function it(_0x16d5a3,_0x21d960,_0x23cb24){const _0x4d3163=_0x5af448;return _0x16d5a3==null?void 0x0:_0x16d5a3[_0x4d3163(0x1e9)](_0x4b5051=>_0x48996e(_0x4b5051,_0x21d960,_0x23cb24))[_0x4d3163(0x1ef)](_0x4ff79d=>_0x4ff79d!=null);}const at={'id':_0x5af448(0x1d0),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':_0x8c9e8=>{const _0x4c5b6b=_0x5af448;var _0x561c03;if(_0x14cbd8(G(_0x8c9e8)))return!0x1;let _0x124119=_0x4474d4(_0x8c9e8);if(_0x124119)return _0x8c9e8[_0x4c5b6b(0x1e2)](_0x6359aa)['syncExecuteCommand'](B['id'],{'startOffset':_0x124119['startOffset'],'endOffset':_0x124119[_0x4c5b6b(0x1b5)],'insertionMode':_0x4c5b6b(0x190),'unitId':_0x124119[_0x4c5b6b(0x1fe)]});let _0x17f12e=ft(_0x8c9e8);if(!_0x17f12e)return!0x1;let _0xc900fb=(_0x561c03=_0x8c9e8[_0x4c5b6b(0x1e2)](_0x1afda3)[_0x4c5b6b(0x1bb)](_0x3a8083[_0x4c5b6b(0x193)]))==null?void 0x0:_0x561c03['getBody'](),_0x55eeff=_0xc900fb?_0x1f33a7(_0xc900fb,_0x17f12e):_0x17f12e[_0x4c5b6b(0x1bf)]+0x1;return _0x8c9e8[_0x4c5b6b(0x1e2)](_0x6359aa)[_0x4c5b6b(0x1e6)](B['id'],{'startOffset':_0x55eeff,'endOffset':_0x55eeff});}},ot={'id':'docs-code.command.consume-boundary-delete','type':_0x4c164f['COMMAND'],'handler':()=>!0x0},B={'id':_0x5af448(0x161),'type':_0x4c164f['COMMAND'],'handler':(_0x972bf2,_0x1d30c8)=>{const _0x3f994f=_0x5af448;let _0x12fd84=W(_0x972bf2,_0x1d30c8==null?void 0x0:_0x1d30c8[_0x3f994f(0x1fe)]);if(!_0x12fd84)return!0x1;let _0x2a7c61=G(_0x972bf2);if(_0x14cbd8(_0x2a7c61))return!0x1;let _0x5cae9b=_0x12fd84[_0x3f994f(0x1a1)]['serialize'](_0x12fd84[_0x3f994f(0x1fe)]),_0x3ccda5=lt(_0x1d30c8,_0x2a7c61),_0x4c6c0e=ut(_0x12fd84[_0x3f994f(0x168)],_0x3ccda5);if(_0x4c6c0e){if(_0x4c6c0e['blockType']!==_0x8689f3['CODE'])return!0x1;let _0x1b0c3f=D({'blockId':_0x4c6c0e[_0x3f994f(0x170)],'documentData':_0x12fd84['previousDocumentData'],'metadata':_0x5cae9b});if(!_0x1b0c3f)return!0x1;let _0x237ead=Y(_0x12fd84['commandService'],_0x12fd84['selectionManager'],_0x12fd84[_0x3f994f(0x1fe)],_0x12fd84[_0x3f994f(0x168)],_0x1b0c3f['nextDocumentData'],B['id'],_0x1b0c3f[_0x3f994f(0x172)]);return _0x237ead&&_0x1b0c3f[_0x3f994f(0x1f6)]&&_0x12fd84['model'][_0x3f994f(0x173)](_0x12fd84[_0x3f994f(0x1fe)],_0x1b0c3f[_0x3f994f(0x1f6)]),_0x237ead;}let _0x42a293=(_0x1d30c8==null?void 0x0:_0x1d30c8['blockId'])??_0x220f54(0x6),_0x1a44ae;try{_0x1a44ae=De({'blockId':_0x42a293,'config':_0x1d30c8==null?void 0x0:_0x1d30c8[_0x3f994f(0x185)],'documentData':_0x12fd84['previousDocumentData'],'endOffset':_0x3ccda5==null?void 0x0:_0x3ccda5[_0x3f994f(0x1b5)],'insertionMode':_0x1d30c8==null?void 0x0:_0x1d30c8[_0x3f994f(0x188)],'metadata':_0x5cae9b,'startOffset':_0x3ccda5==null?void 0x0:_0x3ccda5[_0x3f994f(0x1bc)]});}catch(_0x24e1e7){if(_0x24e1e7 instanceof E)return!0x1;throw _0x24e1e7;}let _0x2556ad=Y(_0x12fd84['commandService'],_0x12fd84[_0x3f994f(0x1dc)],_0x12fd84[_0x3f994f(0x1fe)],_0x12fd84[_0x3f994f(0x168)],_0x1a44ae['nextDocumentData'],B['id'],_0x1a44ae[_0x3f994f(0x172)]);return _0x2556ad&&_0x1a44ae['nextMetadata']&&_0x12fd84[_0x3f994f(0x1a1)][_0x3f994f(0x173)](_0x12fd84[_0x3f994f(0x1fe)],_0x1a44ae[_0x3f994f(0x1f6)]),_0x2556ad;}},st={'id':_0x5af448(0x1da),'type':_0x4c164f['COMMAND'],'handler':(_0x4503fb,_0x25cf09)=>{const _0x8d7738=_0x5af448;if(!_0x25cf09)return!0x1;let _0xdfdf79=W(_0x4503fb,_0x25cf09[_0x8d7738(0x1fe)]);if(!_0xdfdf79)return!0x1;let _0x29bf28=je({'blockId':_0x25cf09[_0x8d7738(0x170)],'config':_0x25cf09[_0x8d7738(0x185)],'documentData':_0xdfdf79['previousDocumentData'],'metadata':_0xdfdf79[_0x8d7738(0x1a1)]['serialize'](_0xdfdf79[_0x8d7738(0x1fe)])});return _0x29bf28[_0x8d7738(0x1f6)]&&_0xdfdf79[_0x8d7738(0x1a1)][_0x8d7738(0x173)](_0xdfdf79[_0x8d7738(0x1fe)],_0x29bf28[_0x8d7738(0x1f6)]),!0x0;}},ct={'id':_0x5af448(0x1d6),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x522347,_0x294567)=>V[_0x5af448(0x1d1)](_0x522347,_0x294567)},V={'id':_0x5af448(0x1f1),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x27959a,_0x3c2a34)=>{const _0x5c69f5=_0x5af448;if(!_0x3c2a34)return!0x1;let _0xce3195=W(_0x27959a,_0x3c2a34==null?void 0x0:_0x3c2a34[_0x5c69f5(0x1fe)]);if(!_0xce3195)return!0x1;let _0x54ebe7=D({'blockId':_0x3c2a34[_0x5c69f5(0x170)],'documentData':_0xce3195[_0x5c69f5(0x168)],'metadata':_0xce3195[_0x5c69f5(0x1a1)][_0x5c69f5(0x1a4)](_0xce3195[_0x5c69f5(0x1fe)])});if(!_0x54ebe7)return!0x1;let _0x13e910=Y(_0xce3195[_0x5c69f5(0x1f2)],_0xce3195[_0x5c69f5(0x1dc)],_0xce3195[_0x5c69f5(0x1fe)],_0xce3195[_0x5c69f5(0x168)],_0x54ebe7[_0x5c69f5(0x169)],V['id'],_0x54ebe7[_0x5c69f5(0x172)]);return _0x13e910&&_0x54ebe7['nextMetadata']&&_0xce3195[_0x5c69f5(0x1a1)]['deserialize'](_0xce3195[_0x5c69f5(0x1fe)],_0x54ebe7[_0x5c69f5(0x1f6)]),_0x13e910;}},H={'id':_0x5af448(0x181),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x1f8852,_0xcffbf7)=>{const _0x20b524=_0x5af448;if(!_0xcffbf7)return!0x1;let _0x5f0744=W(_0x1f8852,_0xcffbf7==null?void 0x0:_0xcffbf7[_0x20b524(0x1fe)]);if(!_0x5f0744)return!0x1;let _0x223855=Me({'blockId':_0xcffbf7[_0x20b524(0x170)],'documentData':_0x5f0744[_0x20b524(0x168)],'metadata':_0x5f0744[_0x20b524(0x1a1)][_0x20b524(0x1a4)](_0x5f0744['unitId'])});if(!_0x223855)return!0x1;let _0x591580=Y(_0x5f0744[_0x20b524(0x1f2)],_0x5f0744['selectionManager'],_0x5f0744[_0x20b524(0x1fe)],_0x5f0744['previousDocumentData'],_0x223855['nextDocumentData'],H['id'],_0x223855[_0x20b524(0x172)]);return _0x591580&&_0x223855[_0x20b524(0x1f6)]&&_0x5f0744['model'][_0x20b524(0x173)](_0x5f0744[_0x20b524(0x1fe)],_0x223855[_0x20b524(0x1f6)]),_0x591580;}},U={'id':_0x5af448(0x1db),'type':_0x4c164f[_0x5af448(0x1e4)],'handler':(_0x3639ab,_0x8d832d)=>{const _0x39be3a=_0x5af448;var _0xe494af;let _0x346d8a=W(_0x3639ab,_0x8d832d==null?void 0x0:_0x8d832d[_0x39be3a(0x1fe)]);if(!_0x346d8a)return!0x1;let _0x1d607a=(_0x8d832d==null?void 0x0:_0x8d832d[_0x39be3a(0x172)])??((_0xe494af=G(_0x3639ab))==null?void 0x0:_0xe494af[_0x39be3a(0x1bc)]);if(_0x1d607a==null)return!0x1;let _0x34c00a=Ne({'cursorOffset':_0x1d607a,'documentData':_0x346d8a[_0x39be3a(0x168)],'paragraphStartIndex':_0x8d832d==null?void 0x0:_0x8d832d[_0x39be3a(0x1fa)]});return _0x34c00a?Y(_0x346d8a[_0x39be3a(0x1f2)],_0x346d8a['selectionManager'],_0x346d8a[_0x39be3a(0x1fe)],_0x346d8a['previousDocumentData'],_0x34c00a[_0x39be3a(0x169)],U['id'],_0x34c00a[_0x39be3a(0x172)]):!0x1;}};function W(_0x329c7f,_0x3e7957){const _0xedab82=_0x5af448;let _0x510052=_0x329c7f['get'](_0x1afda3),_0x425134=_0x3e7957?_0x510052[_0xedab82(0x1ce)](_0x3e7957,_0x3a8083[_0xedab82(0x193)]):_0x510052[_0xedab82(0x1bb)](_0x3a8083[_0xedab82(0x193)]);return _0x425134?{'commandService':_0x329c7f[_0xedab82(0x1e2)](_0x6359aa),'model':_0x329c7f[_0xedab82(0x1e2)](w),'previousDocumentData':_0x425134[_0xedab82(0x192)](),'selectionManager':_0x329c7f[_0xedab82(0x1e2)](_0x235b8c),'unitId':_0x425134[_0xedab82(0x182)]()}:null;}function G(_0x2f0d5e){const _0x3c9eb0=_0x5af448;var _0x44d6d1;return(_0x44d6d1=_0x2f0d5e[_0x3c9eb0(0x1e2)](_0x235b8c)[_0x3c9eb0(0x19d)]())==null?void 0x0:_0x44d6d1[0x0];}function lt(_0x5ccc0d,_0x1a3a19){const _0x43ffe6=_0x5af448;let _0x144718=(_0x5ccc0d==null?void 0x0:_0x5ccc0d['startOffset'])??(_0x1a3a19==null?void 0x0:_0x1a3a19[_0x43ffe6(0x1bc)]),_0x1a5ffe=(_0x5ccc0d==null?void 0x0:_0x5ccc0d['endOffset'])??(_0x1a3a19==null?void 0x0:_0x1a3a19[_0x43ffe6(0x1b5)]);if(_0x144718!=null&&_0x1a5ffe!=null)return{'endOffset':Math[_0x43ffe6(0x1c7)](_0x144718,_0x1a5ffe),'startOffset':Math[_0x43ffe6(0x1d4)](_0x144718,_0x1a5ffe)};}function ut(_0x542763,_0x24083a){const _0x2ace40=_0x5af448;var _0x2e6b3b;if(!_0x24083a)return;let _0x36d75f=dt(_0x24083a);return(_0x2e6b3b=_0x542763['body'])==null||(_0x2e6b3b=_0x2e6b3b['blockRanges'])==null?void 0x0:_0x2e6b3b[_0x2ace40(0x16a)](_0x266f47=>{const _0x2ec773=_0x2ace40;let _0x2f54c=_0x5d8873(_0x266f47);return _0x24083a['startOffset']===_0x24083a[_0x2ec773(0x1b5)]?_0x4d26c0(_0x2f54c,_0x36d75f):_0x1ce7f1(_0x2f54c,_0x36d75f);});}function dt(_0x1337b4){const _0x38abe1=_0x5af448;return _0x1337b4[_0x38abe1(0x1bc)]===_0x1337b4[_0x38abe1(0x1b5)]?_0x1337b4['startOffset']:_0x1337b4[_0x38abe1(0x1bc)]+0x1;}function ft(_0x28f15f){const _0x4ef729=_0x5af448;let _0xae4325=G(_0x28f15f);if(!_0xae4325)return null;let _0x371915=_0x28f15f[_0x4ef729(0x1e2)](_0x1afda3)[_0x4ef729(0x1bb)](_0x3a8083[_0x4ef729(0x193)]),_0x1b4cb4=_0x371915==null?void 0x0:_0x371915['getBody']();return _0x1b4cb4?_0x59cd88[_0x4ef729(0x199)][_0x4ef729(0x1df)](_0xae4325,_0x1b4cb4[_0x4ef729(0x195)]??[],_0x1b4cb4[_0x4ef729(0x1b4)]??'')[0x0]??null:null;}function pt(_0x98e359,_0x4a2a58){const _0x1d5be4=_0x5af448;let _0x5b6158=_0x98e359[_0x1d5be4(0x1a9)],_0x3002b0=_0x4a2a58[_0x1d5be4(0x1a9)],_0x29c594=_0x514248(_0x5b6158,_0x3002b0);return[_0x29c594&&_0x3002b0?mt(_0x3002b0,_0x29c594):null,_0x29c594?null:ht(_0x5b6158,_0x3002b0)][_0x1d5be4(0x1ef)](Boolean)['reduce']((_0x5a4253,_0x386cd9)=>_0x235eff[_0x1d5be4(0x1ad)](_0x5a4253,_0x386cd9),null);}function mt(_0x1240db,_0x48974e){const _0x452785=_0x5af448;let _0x28b40e=new _0x2f1bce();return _0x28b40e[_0x452785(0x16f)](_0x48974e[_0x452785(0x1c6)]),_0x48974e[_0x452785(0x1e8)]>0x0&&_0x28b40e[_0x452785(0x1ba)](_0x48974e[_0x452785(0x1e8)],_0x4a9b32(_0x1240db,_0x48974e[_0x452785(0x1c6)],_0x48974e[_0x452785(0x1c6)]+_0x48974e[_0x452785(0x1e8)],!0x1)),_0x48974e[_0x452785(0x1d9)]>0x0&&_0x28b40e['delete'](_0x48974e['deleteLength']),_0x235eff['getInstance']()[_0x452785(0x1c8)](_0x28b40e[_0x452785(0x1a4)](),[_0x452785(0x1a9)]);}function ht(_0x287dc5,_0x23d209){const _0x76427c=_0x5af448;let _0x7e1e13=[],_0x182d2a=_0x287dc5?_t(_0x287dc5):void 0x0,_0x317f54=_0x23d209?_t(_0x23d209):void 0x0;for(let _0xbf68da of gt)K(_0x235eff[_0x76427c(0x198)](),[_0x76427c(0x1a9),_0xbf68da],_0x182d2a==null?void 0x0:_0x182d2a[_0xbf68da],_0x317f54==null?void 0x0:_0x317f54[_0xbf68da],_0x7e1e13);return _0x7e1e13[_0x76427c(0x196)]((_0x5b21bd,_0x27f0b2)=>_0x235eff[_0x76427c(0x1ad)](_0x5b21bd,_0x27f0b2),null);}const gt=['paragraphs','sectionBreaks','tables',_0x5af448(0x1c3),_0x5af448(0x18e),'customBlocks','customRanges',_0x5af448(0x1cf),_0x5af448(0x1ab)];function _t(_0x3e6349){return _0x3e6349;}function _0x2936(){const _0x34cefa=['prototype','blockType','docs-code.command.remove','getUnitId','length','fromEntries','config','monospace','object','insertionMode','customBlocks','isArray','onStarting','_change$','startTokenOffset','blockRanges','paragraphId','insert-new','MUTATION','getSnapshot','UNIVER_DOC','bullet','paragraphs','reduce','next','getInstance','range','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','defineProperty','insertOp','getTextRanges','@univerjs-pro/docs-code','1.3.0','BLOCK_END','model','indentEnd','DOC_CODE_PLUGIN','serialize','parse','28230fvJnDh','_resources','paragraphStyle','body','direction','textRuns','paragraph','compose','sort','symbol','keys','TRUE','66vnSHRB','codes','dataStream','endOffset','spaceBelow','registerCommand','docs-code.mutation.remove-config','_resourceManagerService','insert','getCurrentUnitOfType','startOffset','3532652SpvRIo','toPrimitive','startIndex','call','slice','documentData','columnGroups','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','replaceDocRanges','start','max','editOp','sectionBreaks','SECTION_BREAK','some','setCodeConfig','decorate','getUnit','customDecorations','docs-code.command.insert-below','handler','push','_docsCodeModel','min','disposeWithMe','docs-code.command.exit','forEach','removeUnit','deleteLength','docs-code.command.update','docs-code.command.cancel-empty-paragraph','selectionManager','default','add','getParagraphsInRange','dispose','javascript','get','TABLE_CELL_END','COMMAND','removeOp','syncExecuteCommand','right','insertLength','map','textStyle','getCodeConfig','7171191nYyhKv','spaceAbove','CODE','filter','_configService','docs-code.command.unwrap','commandService','3895440wpCnbF','constructor','metadata','nextMetadata','endsWith','Document\x20body\x20is\x20required','_setResource','paragraphStartIndex','change$','getOwnPropertyDescriptor','from','unitId','removeCode','PARAGRAPH','docs-code.command.insert','793916NgZqUQ','set','tables','_commandService','asObservable','every','previousDocumentData','nextDocumentData','find','stringify','12726LsLDry','endIndex','_initResource','retain','blockId','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','cursorOffset','deserialize','indentStart','function','1438728rfqfyh','_injector','5tONPeo','docs-code.mutation.set-config','endTokenOffset','BLOCK_START','customRanges','string','_config'];_0x2936=function(){return _0x34cefa;};return _0x2936();}function K(_0x5704e6,_0x56ff42,_0x4a5c6b,_0x2f6917,_0x155983){const _0x518d00=_0x5af448;J(_0x4a5c6b,_0x2f6917)||(_0x4a5c6b==null?_0x155983[_0x518d00(0x1d2)](_0x5704e6[_0x518d00(0x19c)](_0x56ff42,_0x2f6917)):_0x2f6917==null?_0x155983[_0x518d00(0x1d2)](_0x5704e6['removeOp'](_0x56ff42,_0x4a5c6b)):Array[_0x518d00(0x18a)](_0x4a5c6b)&&Array[_0x518d00(0x18a)](_0x2f6917)?vt(_0x5704e6,_0x56ff42,_0x4a5c6b,_0x2f6917,_0x155983):q(_0x4a5c6b)&&q(_0x2f6917)?new Set([...Object['keys'](_0x4a5c6b),...Object[_0x518d00(0x1b0)](_0x2f6917)])[_0x518d00(0x1d7)](_0x72b69a=>{K(_0x5704e6,[..._0x56ff42,_0x72b69a],_0x4a5c6b[_0x72b69a],_0x2f6917[_0x72b69a],_0x155983);}):_0x155983[_0x518d00(0x1d2)](_0x5704e6['replaceOp'](_0x56ff42,_0x4a5c6b,_0x2f6917)));}function vt(_0x51a48d,_0x1e5460,_0x1ef637,_0x2b37f0,_0x13bffc){const _0x7824ed=_0x5af448;if(_0x1ef637['length']===_0x2b37f0[_0x7824ed(0x183)]){_0x1ef637[_0x7824ed(0x1d7)]((_0x547810,_0x53cb0b)=>K(_0x51a48d,[..._0x1e5460,_0x53cb0b],_0x547810,_0x2b37f0[_0x53cb0b],_0x13bffc));return;}let _0x1e2e42=0x0;for(;_0x1e2e42<_0x1ef637[_0x7824ed(0x183)]&&_0x1e2e42<_0x2b37f0[_0x7824ed(0x183)]&&J(_0x1ef637[_0x1e2e42],_0x2b37f0[_0x1e2e42]);)_0x1e2e42++;let _0x5570dd=_0x1ef637[_0x7824ed(0x183)]-0x1,_0xa1eddf=_0x2b37f0['length']-0x1;for(;_0x5570dd>=_0x1e2e42&&_0xa1eddf>=_0x1e2e42&&J(_0x1ef637[_0x5570dd],_0x2b37f0[_0xa1eddf]);)_0x5570dd--,_0xa1eddf--;for(let _0x1d067f=_0x5570dd;_0x1d067f>=_0x1e2e42;_0x1d067f--)_0x13bffc[_0x7824ed(0x1d2)](_0x51a48d[_0x7824ed(0x1e5)]([..._0x1e5460,_0x1d067f],_0x1ef637[_0x1d067f]));for(let _0x2cdc2d=_0x1e2e42;_0x2cdc2d<=_0xa1eddf;_0x2cdc2d++)_0x13bffc['push'](_0x51a48d['insertOp']([..._0x1e5460,_0x2cdc2d],_0x2b37f0[_0x2cdc2d]));}function q(_0x35b6ea){const _0x5b7e58=_0x5af448;return typeof _0x35b6ea==_0x5b7e58(0x187)&&!!_0x35b6ea&&!Array[_0x5b7e58(0x18a)](_0x35b6ea);}function J(_0x57e146,_0x2d743b){const _0x535b4d=_0x5af448;return JSON[_0x535b4d(0x16b)](_0x57e146)===JSON[_0x535b4d(0x16b)](_0x2d743b);}function Y(_0x4f3f22,_0x1ff2c5,_0xe271f3,_0x3d3e75,_0x8b08f1,_0xa472c9,_0x53efa8){const _0x1bed1a=_0x5af448;let _0xd36593=pt(_0x3d3e75,_0x8b08f1);return _0xd36593?!!_0x4f3f22[_0x1bed1a(0x1e6)](_0x579991['id'],{'unitId':_0xe271f3,'actions':_0xd36593,'textRanges':[{'startOffset':_0x53efa8,'endOffset':_0x53efa8,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0xa472c9}):(_0x1ff2c5[_0x1bed1a(0x1c5)]([{'startOffset':_0x53efa8,'endOffset':_0x53efa8}],{'unitId':_0xe271f3,'subUnitId':_0xe271f3},!0x1),!0x0);}const X=_0x5af448(0x1a3);var yt=_0x5af448(0x19e),bt=_0x5af448(0x19f);const xt={};function Z(_0x32c588,_0x23734d){return function(_0x2ce79f,_0x5d397c){_0x23734d(_0x2ce79f,_0x5d397c,_0x32c588);};}function _0x26ed(_0x5298ba,_0x6b3bce){_0x5298ba=_0x5298ba-0x160;const _0x293690=_0x2936();let _0x26ed40=_0x293690[_0x5298ba];return _0x26ed40;}function St(_0x560bd6,_0x1c3113,_0x5c2f6f,_0x1208b6){const _0x1982b0=_0x5af448;var _0x1273e4=arguments[_0x1982b0(0x183)],_0xe20e1e=_0x1273e4<0x3?_0x1c3113:_0x1208b6===null?_0x1208b6=Object[_0x1982b0(0x1fc)](_0x1c3113,_0x5c2f6f):_0x1208b6,_0x2ae72c;if(typeof Reflect==_0x1982b0(0x187)&&typeof Reflect[_0x1982b0(0x1cd)]==_0x1982b0(0x175))_0xe20e1e=Reflect['decorate'](_0x560bd6,_0x1c3113,_0x5c2f6f,_0x1208b6);else{for(var _0x5d42f5=_0x560bd6[_0x1982b0(0x183)]-0x1;_0x5d42f5>=0x0;_0x5d42f5--)(_0x2ae72c=_0x560bd6[_0x5d42f5])&&(_0xe20e1e=(_0x1273e4<0x3?_0x2ae72c(_0xe20e1e):_0x1273e4>0x3?_0x2ae72c(_0x1c3113,_0x5c2f6f,_0xe20e1e):_0x2ae72c(_0x1c3113,_0x5c2f6f))||_0xe20e1e);}return _0x1273e4>0x3&&_0xe20e1e&&Object[_0x1982b0(0x19b)](_0x1c3113,_0x5c2f6f,_0xe20e1e),_0xe20e1e;}let Q=class extends _0x1ddee2{constructor(_0xf49ea3,_0x4344a2){const _0x2e7934=_0x5af448;super(),this[_0x2e7934(0x1b9)]=_0xf49ea3,this['_docsCodeModel']=_0x4344a2,this[_0x2e7934(0x16e)]();}[_0x5af448(0x16e)](){const _0x289c5e=_0x5af448;this[_0x289c5e(0x1d5)](this[_0x289c5e(0x1b9)]['registerPluginResource']({'pluginName':X,'businesses':[_0x3a8083[_0x289c5e(0x193)]],'toJson':_0x8c7606=>JSON[_0x289c5e(0x16b)](this[_0x289c5e(0x1d3)]['serialize'](_0x8c7606)),'parseJson':_0x5c1225=>y(JSON[_0x289c5e(0x1a5)](_0x5c1225)),'onLoad':(_0x48e1bf,_0x1166bd)=>this[_0x289c5e(0x1d3)][_0x289c5e(0x173)](_0x48e1bf,_0x1166bd),'onUnLoad':_0x275d61=>this[_0x289c5e(0x1d3)]['removeUnit'](_0x275d61)}));}};Q=St([Z(0x0,_0x1fcb3e),Z(0x1,_0x22acd5(w))],Q);let $=class extends _0x537f2b{constructor(_0x197a69=xt,_0x53c670,_0x10b748,_0x14e981){const _0x189cbf=_0x5af448;super(),this[_0x189cbf(0x17e)]=_0x197a69,this[_0x189cbf(0x177)]=_0x53c670,this[_0x189cbf(0x165)]=_0x10b748,this[_0x189cbf(0x1f0)]=_0x14e981;let {..._0x1602a1}=_0x1b4ff5({},xt,this[_0x189cbf(0x17e)]);this[_0x189cbf(0x1f0)]['setConfig']('docs-code.config',_0x1602a1);}[_0x5af448(0x18b)](){const _0x52dd05=_0x5af448;this[_0x52dd05(0x177)]['add']([w]),this[_0x52dd05(0x177)][_0x52dd05(0x1de)]([Q]),this['_injector'][_0x52dd05(0x1e2)](w),this[_0x52dd05(0x177)]['get'](Q),[B,at,st,V,H,ct,U,ot,Te,T]['forEach'](_0x6ed2c3=>this['disposeWithMe'](this[_0x52dd05(0x165)][_0x52dd05(0x1b7)](_0x6ed2c3)));}};C($,'pluginName',X),C($,'packageName',yt),C($,'version',bt),C($,'type',_0x3a8083['UNIVER_DOC']),$=St([_0x4db280(_0x4b33a5,_0x15d972),Z(0x1,_0x22acd5(_0x462910)),Z(0x2,_0x6359aa),Z(0x3,_0x336315)],$);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};