@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231009.0 → 0.0.0-nightly-20231011.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/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3413=['source','_handleOperation','RevisionTracker','documentFragment','path','position','_loadState','_getFromVersion','_revisionDataBuilder','_handleSplitOperation','_markers','elementEnd','length','filter','rootsAttributes','attributes','_update','_loadedStateData','useFillerType','_startingVersion','_source','addRevisionData','dataToMarker','text','_setAttribute','markerToData','from','addRevision','insertions','type','_getState','_removeRevisionMarkers','_getVidAttributeName','_processRootBeforeSave','_execute','createPositionBefore','NEGATIVE_INFINITY','has','data','createPositionAfter','fromVersion','_loadRevisionData','split','_makeIdsRoot','_diffRoots','_saveMetaData','authorsIds','_reset','getData','createPositionFromPath','createRange','fromEntries','getMovedRangeStart','insertion','add','isEnabled','_baseRoots','getTime','getNodeByPath','editing','dataDowncast','start','parse','toModel','history','_isAttached','PendingActions','element','range','getChild','repository','map','getChildren','values','roots','_operations','childCount','collaboration.channelId','_fixRange','affectsData','howMany','_handleMergeOperation','_setConversion','nodes','Users','keys','marker','clear','setRevisionData','_fixPosition','sendBufferedUpdates','deletions','_transformMarkers','createdAt','_touchedMarkers','_touched','createRangeIn','offsetSize','changeRootAttribute','insert','toVersion','then','getRange','stickiness','getRevisions','creator','_diffRootsAttributes','sourcePosition','markers','vid','createRevision','delete','_cloneOperation','_makeRevision','_touchedRoots','getLatestVersion','_handleMoveOperation','set','$graveyard','_makeModelFromViewString','revision-end','_applyOperations','_initialRevisionId','_idsRoots','baseVersion','_prepareViewToSave','for','document','editor','key','_handleRootOperation','buildRevisionData','model','_startingRevisionId','_appendChild','adapter','_createCurrentRevision','PENDING_ACTION_REVISION_HISTORY','getAttributes','getUser','init','offset','vid_end','authors','view','plugins','_getPreviousFrom','revisionHistory.resumeUnsavedRevision','getTransformedByOperation','forEach','creatorId','isReady','get','_findInsertionIndex','children','getWalker','processor','userId','getRevision','oldRange','isAdd','previousPosition','_createInitialRevision','_handleRootAttributeOperation','_removeMetaData','attachChange','vid_start','toData','keepParagraph','RealTimeCollaborationClient','size','version','getIndex','_continueCurrentRevision','getRoot','push','root','clone','item','updateRevisions','startsWith','toView','locale','loadState','getRevisionRootsAttributes','getCurrentRevisionId','_savedMetaData','saveRevision','move','_getBaseVids','initialData','_authorId','stringify','merge','tableCell','_markChanges','end','find','graveyardPosition','string','resolve','_addPendingAction','_pendingAction','attributesAfter','_removePendingAction','currentRevision','targetPosition','name','includes','reInit','default','addRootAttribute','$text','isAttached','_baseRootsAttributes','bind','_clone','_insertChild','getAncestors','_getViewJson','revision','_handleInsertOperation','getAttribute','_fixOperation','conversion','_generateTape','_handleMarkerOperation','parent','data-revision-','finally','_lastFrom','getRevisionDocumentData','getRootNames','elementStart','_baseIdsRoots','slice','rootName','_revisionId','sort','update','RevisionsRepository','insertionPosition','config','newRange','addRoot','revision:','_bufferUpdate','_lastTo','newValue','_bufferedUpdates','diffData','_copyMarkers','isEqual','ready','reverse'];(function(_0x30a4d1,_0x34139a){const _0x5779a1=function(_0xad33bb){while(--_0xad33bb){_0x30a4d1['push'](_0x30a4d1['shift']());}};_0x5779a1(++_0x34139a);}(_0x3413,0x70));const _0x5779=function(_0x30a4d1,_0x34139a){_0x30a4d1=_0x30a4d1-0x0;let _0x5779a1=_0x3413[_0x30a4d1];return _0x5779a1;};import{Users as _0x2fb386}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xa4e993,PendingActions as _0x36ba0a}from'ckeditor5/src/core';import{logWarning as _0x437c49,uid as _0x54a455}from'ckeditor5/src/utils';import{Position as _0x59e44b,Range as _0x3b7305,Element as _0x531e94,DocumentFragment as _0x2d3eef,ViewText as _0x3c27ae,ViewElement as _0xf5a0a5,ViewContainerElement as _0x18af0b,ViewAttributeElement as _0x2588ec,ViewEmptyElement as _0x52cdad,ViewRawElement as _0x4f2d83,ViewUIElement as _0x3271a8,ViewDocumentFragment as _0x38fcfa}from'ckeditor5/src/engine';import _0x5ce2f7 from'./revisionsrepository';import{getTranslation as _0x2f71b0}from'./utils/common-translations';import{cloneDeep as _0xdaae97,isEqual as _0x4a1bba}from'lodash-es';const B={'c':_0x18af0b,'a':_0x2588ec,'e':_0x52cdad,'r':_0x4f2d83,'u':_0x3271a8};export default class l extends _0xa4e993{static get['pluginName'](){return _0x5779('0x91');}static get['requires'](){return[_0x2fb386,_0x5ce2f7,_0x36ba0a];}constructor(_0x11deb3){super(_0x11deb3),this['adapter']=null,this[_0x5779('0x5d')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x5779('0xa')]=this['editor'][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0xdc'))||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2f59e5=_0x54a455();this[_0x5779('0xa3')]={'history':this['editor'][_0x5779('0x14')]['document']['history'],'getLatestVersion':()=>Promise[_0x5779('0x58')](this['editor'][_0x5779('0x14')]['document'][_0x5779('0x3b')]),'getCurrentRevisionId':()=>_0x2f59e5},this['set'](_0x5779('0x27'),!0x1),this[_0x5779('0x5')](_0x5779('0xc6'),!0x0),this[_0x5779('0x5')]('_isPendingUpdate',!0x1),this[_0x5779('0x10')]['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5779('0x10')][_0x5779('0x70')][_0x5779('0xe')]('upcast')[_0x5779('0xa5')]({'view':_0x5779('0x6c')});}[_0x5779('0x1c')](){this['repository']=this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0x80')),this[_0x5779('0xe1')](),this['editor']['data']['on'](_0x5779('0x8d'),()=>{const _0x146441=this[_0x5779('0xd5')][_0x5779('0x2e')](0x0),_0x5a0724=_0x146441&&null===_0x146441['creator']?_0x146441:null;if(this[_0x5779('0x3d')]=!!_0x5a0724&&this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x23')),this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0xb4')](_0x5779('0x39'))){const _0x58e820=this[_0x5779('0xa3')]['getCurrentRevisionId'](),_0x12c6a8=this[_0x5779('0xd5')][_0x5779('0x2e')](_0x58e820);if(_0x12c6a8)this[_0x5779('0xa2')]=_0x12c6a8[_0x5779('0xb7')],this[_0x5779('0x3d')]=!0x1;else{const _0x11a1bb=this[_0x5779('0xa3')][_0x5779('0xcf')][_0x5779('0xda')][_0x5779('0x55')](_0x36ff88=>!_0x36ff88['_isInit']),_0x54f911=_0x11a1bb?_0x11a1bb[_0x5779('0xc')]:this[_0x5779('0xa3')][_0x5779('0xcf')]['version'];_0x146441?(_0x146441[_0x5779('0xf3')]<_0x54f911&&_0x146441[_0x5779('0x9f')]({'toVersion':_0x54f911}),this[_0x5779('0x3d')]?(this[_0x5779('0xa3')][_0x5779('0x49')]=()=>_0x5a0724['id'],this[_0x5779('0xa2')]=_0x5a0724['fromVersion']):(this[_0x5779('0xa2')]=_0x146441[_0x5779('0xf3')],this[_0x5779('0x3d')]=!0x1)):(this[_0x5779('0xa2')]=_0x54f911,this['_continueCurrentRevision']=!0x1);}}else _0x5a0724&&(this[_0x5779('0x10')]['model'][_0x5779('0xf')]['history']['version']=Math['max'](_0x5a0724[_0x5779('0xf3')],this['editor'][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0xcf')][_0x5779('0x3b')]),_0x5a0724[_0x5779('0xb7')]===_0x5a0724[_0x5779('0xf3')]?(0x0!==_0x5a0724[_0x5779('0xb7')]&&(this[_0x5779('0xa3')][_0x5779('0x49')]=()=>_0x5a0724['id']),this[_0x5779('0x3d')]=!0x1):this[_0x5779('0x3d')]&&(this[_0x5779('0xa3')]['getCurrentRevisionId']=()=>_0x5a0724['id'],this['_startingVersion']=_0x5a0724[_0x5779('0xb7')])),this[_0x5779('0x3d')]||(this[_0x5779('0xa2')]=this[_0x5779('0x10')][_0x5779('0x14')]['document'][_0x5779('0x3b')]);this['_revisionDataBuilder'][_0x5779('0x1c')](this[_0x5779('0xa3')][_0x5779('0xcf')]),this[_0x5779('0x32')](this[_0x5779('0xa2')]),this[_0x5779('0x18')](this[_0x5779('0xa2')]),this[_0x5779('0x17')]&&this[_0x5779('0xe9')]();}),this[_0x5779('0x67')]('isReady')['to'](this,'_isPendingUpdate',_0x18ce2b=>!_0x18ce2b);}async['afterInit'](){if(this[_0x5779('0xd5')][_0x5779('0x9b')]>0x0){const _0x30205e=this['repository']['getRevision'](0x0),_0x5dccd9=await this[_0x5779('0x77')](_0x30205e),_0x4f3e04=await this[_0x5779('0x48')](_0x30205e);this['_replaceEditorDataWithRevisionData'](_0x5dccd9,_0x4f3e04);}}['setSource'](_0x5356e1){this[_0x5779('0xa3')]=_0x5356e1;}async[_0x5779('0x7f')](){const _0x5a31ee=await this[_0x5779('0xa3')][_0x5779('0x3')]();if(_0x5a31ee>this[_0x5779('0x5d')][_0x5779('0xf3')]){await this[_0x5779('0x95')]();const _0x43f59c=this['buildRevisionData']({'revision':this[_0x5779('0x5d')],'to':_0x5a31ee});_0x43f59c[_0x5779('0x1f')]=_0x43f59c[_0x5779('0xbd')]['map'](_0x40de40=>this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))[_0x5779('0x1b')](_0x40de40)),this[_0x5779('0x5d')][_0x5779('0x9f')](_0x43f59c);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5779('0xa0')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x5779('0x97')][_0x5779('0x47')](this[_0x5779('0x5d')]),this[_0x5779('0xa0')]={'fromVersion':this[_0x5779('0x5d')][_0x5779('0xb7')],'authors':this[_0x5779('0x5d')][_0x5779('0x1f')][_0x5779('0x7b')]()});}async[_0x5779('0x4b')](_0x3b55d4={},_0x2a7f5a=null){const _0x38eb67=[];await this[_0x5779('0x95')](),this['_continueCurrentRevision']=!0x1,_0x2a7f5a>this[_0x5779('0x5d')][_0x5779('0xf3')]&&(_0x2a7f5a=null),null===_0x2a7f5a&&(_0x2a7f5a=await this['_source'][_0x5779('0x3')]());const _0xaccd2e=this[_0x5779('0x96')](_0x2a7f5a),_0x2fc9f1=this[_0x5779('0x13')]({'from':_0xaccd2e,'to':_0x2a7f5a});if(this[_0x5779('0x5d')][_0x5779('0xf3')]<_0x2a7f5a){const _0x32e7ea=this[_0x5779('0x13')]({'revision':this[_0x5779('0x5d')],'from':_0x2a7f5a,'to':_0x2a7f5a});_0x32e7ea[_0x5779('0x1f')]=[],_0x32e7ea['authorsIds']=[],_0x32e7ea['id']=this[_0x5779('0x5d')]['id'],this['currentRevision'][_0x5779('0x9f')](_0x32e7ea,!0x0),delete _0x32e7ea[_0x5779('0x1f')],_0x38eb67[_0x5779('0x3f')](_0x32e7ea);}_0x3b55d4['creatorId']=this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x3b55d4[_0x5779('0x5f')]=_0x3b55d4[_0x5779('0x5f')]||null,_0x3b55d4['id']=_0x3b55d4['id']||_0x54a455(),_0x3b55d4={..._0x3b55d4,..._0x2fc9f1};const _0x56bcb4=this['addRevisionData'](_0x3b55d4);_0x38eb67[_0x5779('0x3f')](_0x3b55d4);const _0x520d10=this['repository'][_0x5779('0x3c')](_0x56bcb4);if(0x0!==_0x520d10){const _0x57e14a=this[_0x5779('0xd5')][_0x5779('0x2e')](_0x520d10-0x1);if(_0x57e14a[_0x5779('0xb7')]!==_0x2a7f5a){const _0x583c40=this[_0x5779('0x97')]['getData'](_0x2a7f5a,_0x57e14a[_0x5779('0xf3')]),_0x52e33d={'id':_0x57e14a['id'],'diffData':_0x583c40['diffData'],'authorsIds':_0x583c40[_0x5779('0xbd')],'authors':_0x583c40[_0x5779('0xbd')][_0x5779('0xd6')](_0x2f5c75=>this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')]('Users')[_0x5779('0x1b')](_0x2f5c75)),'fromVersion':_0x2a7f5a};_0x57e14a===this['currentRevision']&&(_0x52e33d[_0x5779('0xec')]=new Date(_0x3b55d4[_0x5779('0xec')][_0x5779('0xc8')]()+0xa)),_0x57e14a['_update'](_0x52e33d,!0x0),delete _0x52e33d[_0x5779('0x1f')],_0x38eb67['push'](_0x52e33d);}}if(this[_0x5779('0x17')]){for(const _0x518710 of _0x38eb67)this[_0x5779('0x86')](_0x518710['id'],_0x518710,!0x0);this[_0x5779('0xe9')]();}return _0x56bcb4;}[_0x5779('0xa4')](_0x51e79c){const _0x2c136c=this['repository'][_0x5779('0xfd')](_0x51e79c);return this[_0x5779('0x17')]&&_0x2c136c['on'](_0x5779('0x9f'),(_0x173acf,_0x92802c,_0x1a0075)=>{_0x1a0075||(this['_bufferUpdate'](_0x92802c['id'],_0x92802c,!0x0),this[_0x5779('0xe9')]());}),this[_0x5779('0xd5')][_0x5779('0xaa')](_0x2c136c,this['_findInsertionIndex'](_0x2c136c)),_0x2c136c;}async[_0x5779('0x77')](_0x2bfbd3){await this[_0x5779('0xb8')](_0x2bfbd3);const _0x463450={};for(const _0x25a92d in _0x2bfbd3[_0x5779('0x8a')]){if(_0x2bfbd3[_0x5779('0x8a')][_0x25a92d][_0x5779('0x35')]&&!_0x2bfbd3[_0x5779('0x8a')][_0x25a92d][_0x5779('0x35')]['isAttached'])continue;const _0x2cbba2=this[_0x5779('0xae')](JSON[_0x5779('0xcd')](_0x2bfbd3['diffData'][_0x25a92d][_0x5779('0xab')])),_0x590796=this[_0x5779('0x10')][_0x5779('0xca')][_0x5779('0x20')][_0x5779('0xf')],_0x2bc190=new _0x38fcfa(_0x590796,_0x2cbba2['map'](_0x5922f6=>J(_0x5922f6,this['editor'])));this[_0x5779('0x10')]['data'][_0x5779('0x2c')]['useFillerType']('marked'),_0x463450[_0x25a92d]=this[_0x5779('0x10')][_0x5779('0xb5')]['processor'][_0x5779('0x37')](_0x2bc190),this[_0x5779('0x10')][_0x5779('0xb5')][_0x5779('0x2c')][_0x5779('0xa1')](_0x5779('0x62'));}return _0x463450;}async[_0x5779('0x48')](_0x757c18){await this[_0x5779('0xb8')](_0x757c18);const _0xf4df2={};for(const _0x100e1c in _0x757c18[_0x5779('0x8a')])_0x757c18['diffData'][_0x100e1c][_0x5779('0x35')]&&!_0x757c18[_0x5779('0x8a')][_0x100e1c]['attachChange'][_0x5779('0x65')]||(_0xf4df2[_0x100e1c]=_0x757c18[_0x5779('0x8a')][_0x100e1c][_0x5779('0x5b')]||{});return _0xf4df2;}[_0x5779('0xe9')](){if(0x0===this['_bufferedUpdates'][_0x5779('0x3a')])return;if(this['_isPendingUpdate'])return;let _0x4a0aa4=Array[_0x5779('0xa9')](this[_0x5779('0x89')][_0x5779('0xd8')]());this[_0x5779('0x89')]['clear']();for(let _0x14efed=0x0;_0x14efed<_0x4a0aa4[_0x5779('0x9b')];_0x14efed++){const _0x598899=_0x4a0aa4[_0x14efed];let _0x24627c=!0x1;for(const _0x103aba of Object['keys'](_0x598899))void 0x0===_0x598899[_0x103aba]?delete _0x598899[_0x103aba]:'id'!==_0x103aba&&(_0x24627c=!0x0);_0x24627c||(_0x4a0aa4[_0x14efed]=null);}if(_0x4a0aa4=_0x4a0aa4[_0x5779('0x9c')](_0x3ec6d5=>null!==_0x3ec6d5),!_0x4a0aa4[_0x5779('0x9b')])return;for(let _0x19cfde=0x0;_0x19cfde<_0x4a0aa4[_0x5779('0x9b')];_0x19cfde++){const _0x1e6889=_0x4a0aa4[_0x19cfde];void 0x0!==_0x1e6889[_0x5779('0xb7')]&&void 0x0===_0x1e6889['toVersion']&&(_0x1e6889[_0x5779('0xf3')]=this[_0x5779('0xd5')]['getRevision'](_0x1e6889['id'])[_0x5779('0xf3')]),void 0x0!==_0x1e6889[_0x5779('0xf3')]&&void 0x0===_0x1e6889[_0x5779('0xb7')]&&(_0x1e6889['fromVersion']=this[_0x5779('0xd5')]['getRevision'](_0x1e6889['id'])[_0x5779('0xb7')]);}const _0x52e993=this['editor'][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0xdc'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x5779('0x17')][_0x5779('0x43')](_0x4a0aa4,_0x52e993)[_0x5779('0x75')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5e1dfd=>{if(_0x5e1dfd)for(const _0x4d065a of _0x5e1dfd)this[_0x5779('0xe7')]({'id':_0x4d065a['id'],'createdAt':_0x4d065a[_0x5779('0xec')]});this[_0x5779('0x5c')](),this[_0x5779('0xe9')]();});}['_replaceEditorDataWithRevisionData'](_0x118483,_0x45ab7d){let _0x94ae87=this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x4e')),_0x215478=this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x9d'));if(void 0x0===_0x94ae87){_0x94ae87={};for(const _0x5cd00c of this['editor'][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x78')]())_0x94ae87[_0x5cd00c]='';}if(_0x5779('0x57')==typeof _0x94ae87&&(_0x94ae87={'main':_0x94ae87}),void 0x0===_0x215478){_0x215478={};for(const _0x356ecb of this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x78')]())_0x215478[_0x356ecb]={};}let _0x337b90=!0x1;const _0x621075=Object[_0x5779('0xe4')](_0x94ae87),_0x5ab5b5=Object[_0x5779('0xe4')](_0x118483);for(const _0x1b1ee2 of _0x621075){if(_0x94ae87[_0x1b1ee2]!==_0x118483[_0x1b1ee2]&&''!==_0x94ae87[_0x1b1ee2]['trim']()){_0x337b90=!0x0;break;}if(!_0x4a1bba(_0x215478[_0x1b1ee2],_0x45ab7d[_0x1b1ee2])&&Object['keys'](_0x215478[_0x1b1ee2])[_0x5779('0x9b')]>0x0){_0x337b90=!0x0;break;}}_0x337b90||(_0x337b90=_0x5ab5b5['some'](_0x3ed5ad=>!this['editor']['model']['document'][_0x5779('0x3e')](_0x3ed5ad))),_0x337b90&&_0x437c49('editor-initial-data-replaced-with-revision-data',{'editorData':_0x94ae87,'editorRootsAttributes':_0x215478,'revisionData':_0x118483,'revisionRootsAttributes':_0x45ab7d}),this['editor'][_0x5779('0x82')][_0x5779('0x5')](_0x5779('0x4e'),_0x118483),this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x5')]('rootsAttributes',_0x45ab7d);}[_0x5779('0x59')](){if(!this[_0x5779('0x5a')]){const _0x3f0dff=this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')]('PendingActions');this[_0x5779('0x5a')]=_0x3f0dff[_0x5779('0xc5')](_0x2f71b0(this['editor'][_0x5779('0x46')],_0x5779('0x19')));}}[_0x5779('0x5c')](){this[_0x5779('0x5a')]&&(this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xd1'))['remove'](this['_pendingAction']),this['_pendingAction']=null);}[_0x5779('0x29')](_0x17a2c0){const _0x223b13=this[_0x5779('0xd5')]['getRevisions']();_0x223b13[_0x5779('0x8e')]();let _0x2ddfb4=0x0;for(;_0x2ddfb4<_0x223b13[_0x5779('0x9b')];){const _0x31fe5b=_0x223b13[_0x2ddfb4];if(_0x31fe5b===this[_0x5779('0x5d')]){_0x2ddfb4++;continue;}if(_0x31fe5b['id']===this[_0x5779('0xa')])break;const _0x148c85=_0x17a2c0[_0x5779('0xf3')]-_0x31fe5b[_0x5779('0xf3')]||_0x17a2c0[_0x5779('0xb7')]-_0x31fe5b['fromVersion'];if(_0x148c85>0x0)break;if(_0x148c85<0x0)_0x2ddfb4++;else{if(!_0x17a2c0[_0x5779('0xf8')]&&_0x31fe5b[_0x5779('0xf8')])break;if(_0x31fe5b[_0x5779('0xf8')]||!_0x17a2c0[_0x5779('0xf8')]){if(_0x17a2c0[_0x5779('0xec')]>_0x31fe5b['createdAt'])break;_0x2ddfb4++;}else _0x2ddfb4++;}}return _0x2ddfb4;}['setRevisionData'](_0x4bd887){const _0x370ae3=this['repository'][_0x5779('0x2e')](_0x4bd887['id']);if(_0x4bd887[_0x5779('0xec')]&&(_0x4bd887['createdAt']=new Date(_0x4bd887[_0x5779('0xec')])),_0x4bd887[_0x5779('0xbd')]){const _0x326e32=this['editor'][_0x5779('0x21')][_0x5779('0x28')]('Users');_0x4bd887[_0x5779('0x1f')]=_0x4bd887[_0x5779('0xbd')]['map'](_0x40056f=>_0x326e32[_0x5779('0x1b')](_0x40056f));}_0x370ae3[_0x5779('0x9f')](_0x4bd887,!0x0);}['buildRevisionData']({revision:_0x45e12d=null,from:_0x5cd803=null,to:_0x5e1a5f=null}){_0x5cd803=null!==_0x5cd803?_0x5cd803:_0x45e12d[_0x5779('0xb7')],_0x5e1a5f=null!==_0x5e1a5f?_0x5e1a5f:_0x45e12d[_0x5779('0xf3')];const _0x1c3d8f=this['_revisionDataBuilder'][_0x5779('0xbf')](_0x5cd803,_0x5e1a5f),_0x17043b={'diffData':_0x1c3d8f['diffData'],'authorsIds':_0x1c3d8f[_0x5779('0xbd')],'fromVersion':_0x5cd803,'toVersion':_0x5e1a5f};if(!_0x45e12d||_0x5e1a5f!==_0x45e12d[_0x5779('0xf3')]){const _0x511842=_0x5e1a5f-0x1,_0x48c06c=this[_0x5779('0xa3')][_0x5779('0xcf')]['getOperation'](_0x511842);_0x17043b['createdAt']=_0x48c06c&&_0x48c06c[_0x5779('0xec')]||new Date();}if(this[_0x5779('0xa0')]&&_0x5cd803===this['_loadedStateData'][_0x5779('0xb7')])for(const _0x524ca6 of this[_0x5779('0xa0')][_0x5779('0x1f')])_0x17043b['authorsIds'][_0x5779('0x60')](_0x524ca6['id'])||_0x17043b[_0x5779('0xbd')][_0x5779('0x3f')](_0x524ca6['id']);return _0x17043b;}['_loadRevisionData'](_0x14841){if(!_0x14841||_0x14841[_0x5779('0x8a')])return Promise[_0x5779('0x58')]();{const _0x55f1e0=this['editor']['config'][_0x5779('0x28')](_0x5779('0xdc'));return this['adapter'][_0x5779('0x2e')]({'channelId':_0x55f1e0,'revisionId':_0x14841['id']})[_0x5779('0xf4')](_0x405adf=>{_0x14841[_0x5779('0x8a')]=_0x405adf[_0x5779('0x8a')];});}}[_0x5779('0x86')](_0x4ce87b,_0x580115,_0x3a2c6d){if(this[_0x5779('0x89')]['has'](_0x4ce87b)){const _0x56bc22=this[_0x5779('0x89')][_0x5779('0x28')](_0x4ce87b);_0x580115=_0x3a2c6d?{..._0x56bc22,..._0x580115}:{..._0x580115,..._0x56bc22};}this[_0x5779('0x89')]['set'](_0x4ce87b,_0x580115);}['_getFromVersion'](_0x1d8ba6){const _0x3fce52=this['repository'][_0x5779('0xf7')]();_0x3fce52[_0x5779('0x8e')](),_0x3fce52['shift']();const _0x1c06e8=_0x3fce52[_0x5779('0x55')](_0x30c467=>_0x30c467['toVersion']<=_0x1d8ba6)[_0x5779('0xf3')];return _0x1c06e8<this['_startingVersion']?this['_startingVersion']:_0x1c06e8;}['_createInitialRevision'](_0x5df7c9){const _0x11dba3=this['repository'][_0x5779('0x2e')](this[_0x5779('0xd5')][_0x5779('0x9b')]-0x1);if(_0x11dba3)this['_initialRevisionId']=_0x11dba3['id'];else{const _0x4c3808=!this[_0x5779('0x10')]['model'][_0x5779('0xf')][_0x5779('0xd9')]['find'](_0x20cf09=>this['editor'][_0x5779('0x14')]['hasContent'](_0x20cf09)),_0x1a5012=this['editor'][_0x5779('0x21')]['get']('Users')['me']['id'],_0xb64885=_0x2f71b0(this['editor'][_0x5779('0x46')],_0x4c3808?'Empty\x20document':'Initial\x20revision');this[_0x5779('0x1')]({'from':_0x5df7c9,'to':_0x5df7c9,'id':this[_0x5779('0xa')],'name':_0xb64885,'creatorId':_0x1a5012});}}[_0x5779('0x18')](_0x560f75){const _0x19a884=this[_0x5779('0xa3')][_0x5779('0x49')]();this[_0x5779('0x5d')]=this[_0x5779('0xd5')]['getRevision'](_0x19a884),this['currentRevision']||(this[_0x5779('0x5d')]=this['_makeRevision']({'from':_0x560f75,'to':_0x560f75,'id':_0x19a884,'name':'','creatorId':null}));}[_0x5779('0x1')]({name:_0x34fa6d,from:_0x36add4,to:_0x4e5ca0,creatorId:_0x41cc79,id:_0x589aa0}){const _0x5a230b=this[_0x5779('0x13')]({'from':_0x36add4,'to':_0x4e5ca0});_0x5a230b[_0x5779('0x5f')]=_0x34fa6d,_0x5a230b[_0x5779('0x26')]=_0x41cc79,_0x5a230b['id']=_0x589aa0;const _0x582f45=this[_0x5779('0xa4')](_0x5a230b);return this[_0x5779('0x17')]&&this[_0x5779('0x86')](_0x5a230b['id'],_0x5a230b,!0x0),_0x582f45;}[_0x5779('0xe1')](){this[_0x5779('0x10')][_0x5779('0x70')][_0x5779('0xe')](_0x5779('0xcb'))[_0x5779('0xa8')]({'model':_0x5779('0x6c')});}[_0x5779('0xae')](_0x4c6adc){return(_0x4c6adc=_0x4c6adc[_0x5779('0x9c')](_0x5926c8=>!_0x5926c8[_0x5779('0x5f')]||'revision-start'!==_0x5926c8['name']&&_0x5779('0x8')!==_0x5926c8[_0x5779('0x5f')]))[_0x5779('0x25')](_0x15bfdf=>{_0x5779('0x57')!=typeof _0x15bfdf&&(_0x15bfdf[_0x5779('0x2a')]=this[_0x5779('0xae')](_0x15bfdf[_0x5779('0x2a')]),_0x15bfdf[_0x5779('0x9e')]=_0x15bfdf[_0x5779('0x9e')]['filter'](_0x5e00ce=>!_0x5e00ce[0x0][_0x5779('0x44')](_0x5779('0x74'))));}),_0x4c6adc;}}function J(_0x537429,_0x2883a3){const _0x1a3ade=_0x2883a3[_0x5779('0xca')]['view'][_0x5779('0xf')];if(_0x5779('0x57')==typeof _0x537429)return new _0x3c27ae(_0x1a3ade,_0x537429);{const _0x5bf9aa=_0x537429['children'][_0x5779('0xd6')](_0x251689=>J(_0x251689,_0x2883a3));return new(B[_0x537429['type']]||_0xf5a0a5)(_0x1a3ade,_0x537429[_0x5779('0x5f')],_0x537429[_0x5779('0x9e')],_0x5bf9aa);}}class H{constructor(_0x2e752f){this[_0x5779('0x10')]=_0x2e752f,this[_0x5779('0x4a')]=new Map(),this[_0x5779('0x76')]=-0x1,this[_0x5779('0x87')]=-0x1,this['_markers']=new Map(),this[_0x5779('0xbb')]=new Map(),this[_0x5779('0xf9')]=new Map(),this[_0x5779('0xc7')]=new Map(),this[_0x5779('0x66')]=new Map(),this[_0x5779('0xb')]=new Map(),this[_0x5779('0x7a')]=new Map(),this[_0x5779('0xee')]=new Map(),this[_0x5779('0xed')]=new Map(),this[_0x5779('0x2')]=new Map(),this[_0x5779('0x7d')]=0x1;}[_0x5779('0x1c')](_0x81ef5){this[_0x5779('0x8f')]=_0x81ef5;const _0x4ddefd=new Map(),_0x1b96b5=new Map(),_0xe1ce29=this[_0x5779('0x10')][_0x5779('0x14')]['document'][_0x5779('0xd9')][_0x5779('0xd6')](_0x380660=>_0x380660['rootName']);for(const _0x4af762 of _0xe1ce29){const _0x27bfd7=this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x3e')](_0x4af762),_0x3a40d7=q(_0x27bfd7);_0x4ddefd[_0x5779('0x5')](_0x4af762,_0x3a40d7),_0x1b96b5[_0x5779('0x5')](_0x4af762,Object[_0x5779('0xc2')](_0x27bfd7['getAttributes']()));}const _0x49cd37=Array[_0x5779('0xa9')](this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xfb')])[_0x5779('0xd6')](_0x2b8306=>[_0x2b8306[_0x5779('0x5f')],_0x2b8306[_0x5779('0xf5')]()]),_0x29b8d1=this['source']['version'];this[_0x5779('0xbc')](_0x29b8d1,_0x4ddefd,_0x49cd37,_0x1b96b5),this['_startingRevisionId']=this[_0x5779('0x7d')];const _0xa141c8=new Map(),_0x5109bf=new Map();for(const _0x1ba16e of _0xe1ce29){const _0xb32f75=G(_0x1ba16e);_0xa141c8[_0x5779('0x5')](_0x1ba16e,_0xb32f75),_0x5109bf[_0x5779('0x5')](_0x1ba16e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa141c8,[],_0x5109bf);}[_0x5779('0xbf')](_0x27cc14,_0x9788fc){if(this[_0x5779('0x76')]===_0x27cc14&&this[_0x5779('0x87')]<=_0x9788fc)this[_0x5779('0x4a')][_0x5779('0x3a')]>0x1&&this[_0x5779('0x34')](this[_0x5779('0x87')]),this[_0x5779('0x9')](this[_0x5779('0x87')],_0x9788fc,!0x0);else{if(!this[_0x5779('0x4a')]['has'](_0x27cc14)){const _0x28ce64=this[_0x5779('0x22')](_0x27cc14);this['_calculateMetaData'](_0x28ce64,_0x27cc14,!0x1);}this['_calculateMetaData'](_0x27cc14,_0x9788fc,!0x0);}return this[_0x5779('0x76')]=_0x27cc14,this[_0x5779('0x87')]=_0x9788fc,this[_0x5779('0xad')]();}['loadState'](_0x5a4b37){this[_0x5779('0xbe')](),this[_0x5779('0x76')]=_0x5a4b37[_0x5779('0xb7')],this[_0x5779('0x87')]=_0x5a4b37['toVersion'];for(const _0x3de72d in _0x5a4b37[_0x5779('0x8a')]){const _0x228a31=_0x5a4b37['diffData'][_0x3de72d][_0x5779('0x35')],_0x3fd03e=_0xdaae97(_0x5a4b37[_0x5779('0x8a')][_0x3de72d]['attributesBefore'])||{},_0x5d5de3=this[_0x5779('0x7')](_0x5a4b37[_0x5779('0x8a')][_0x3de72d]['deletions']);_0x5d5de3[_0x5779('0x7c')]=_0x3de72d,_0x5d5de3[_0x5779('0xd0')]=!_0x228a31||!_0x228a31[_0x5779('0x65')],_0x5d5de3[_0x5779('0x65')]=()=>_0x5d5de3[_0x5779('0xd0')],this[_0x5779('0xc7')]['set'](_0x3de72d,_0x5d5de3),this[_0x5779('0x66')][_0x5779('0x5')](_0x3de72d,_0x3fd03e),_0x228a31&&this[_0x5779('0x2')][_0x5779('0x5')](_0x3de72d,_0x228a31);const _0x10c087=this[_0x5779('0xba')](_0x5d5de3);this[_0x5779('0x7a')]['set'](_0x3de72d,_0x10c087);for(const [_0x43c688,_0x5d7b34]of _0x5d5de3[_0x5779('0xfb')]){if(!_0x43c688[_0x5779('0x44')](_0x5779('0x85')))continue;const _0x42b508=_0x43c688[_0x5779('0xb9')](':')[0x2];for(const _0x1beb22 of _0x5d7b34[_0x5779('0x2b')]({'singleCharacters':!0x0})){const _0x3c9fc5=this[_0x5779('0xaf')](_0x1beb22),_0x43aa16=_0x5779('0x9a')==_0x1beb22[_0x5779('0xac')]?_0x1beb22[_0x5779('0x31')]['path'][_0x5779('0x7b')](0x0,-0x1):_0x1beb22['previousPosition'][_0x5779('0x93')],_0x519323=_0x10c087['getNodeByPath'](_0x43aa16)[_0x5779('0x6e')](_0x3c9fc5);this[_0x5779('0xee')][_0x5779('0x5')](_0x519323,{'userId':_0x42b508});}}}this[_0x5779('0x15')]=this[_0x5779('0x7d')];const _0x240207=[...Array(this[_0x5779('0x7d')])['keys']()][_0x5779('0x7b')](0x1)[_0x5779('0x9c')](_0x3b7852=>!this[_0x5779('0xee')][_0x5779('0xb4')](_0x3b7852));let _0x4e6022=0x0;const _0x114d7a=new Map();for(const _0xc7592b in _0x5a4b37['diffData']){const _0x4aba98=_0x5a4b37[_0x5779('0x8a')][_0xc7592b]['attachChange'],_0x4a2ce4=_0xdaae97(_0x5a4b37['diffData'][_0xc7592b][_0x5779('0x5b')])||{},_0x4d26c6=this['_makeModelFromViewString'](_0x5a4b37[_0x5779('0x8a')][_0xc7592b][_0x5779('0xab')]);_0x4d26c6[_0x5779('0x7c')]=_0xc7592b,_0x4d26c6[_0x5779('0xd0')]=!_0x4aba98||_0x4aba98[_0x5779('0x65')],_0x4d26c6['isAttached']=()=>_0x4d26c6[_0x5779('0xd0')],this[_0x5779('0xbb')]['set'](_0xc7592b,_0x4d26c6),this[_0x5779('0xf9')]['set'](_0xc7592b,_0x4a2ce4);const _0x4af268=this[_0x5779('0xba')](_0x4d26c6,Number[_0x5779('0xb3')]);this['_idsRoots'][_0x5779('0x5')](_0xc7592b,_0x4af268),_0x114d7a['set'](_0xc7592b,_0x4d26c6[_0x5779('0x65')]()?_0x4a2ce4:{});for(const [_0x8f9f23,_0x516889]of _0x4d26c6[_0x5779('0xfb')]){if(!_0x8f9f23[_0x5779('0x44')]('revision:'))continue;const _0xb99edd=_0x8f9f23[_0x5779('0xb9')](':')[0x2];for(const _0x5ac701 of _0x516889['getWalker']({'singleCharacters':!0x0})){const _0x273184=this[_0x5779('0xaf')](_0x5ac701),_0x3b2d85=this[_0x5779('0x7d')]++,_0x1286c9=_0x5779('0x9a')==_0x5ac701[_0x5779('0xac')]?_0x5ac701['previousPosition'][_0x5779('0x93')]['slice'](0x0,-0x1):_0x5ac701['previousPosition']['path'];_0x4af268[_0x5779('0xc9')](_0x1286c9)['_setAttribute'](_0x273184,_0x3b2d85),this[_0x5779('0xee')][_0x5779('0x5')](_0x3b2d85,{'userId':_0xb99edd});}}for(const _0x204c21 of this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xef')](_0x4d26c6)[_0x5779('0x2b')]({'singleCharacters':!0x0})){const _0x32aa20=this[_0x5779('0xaf')](_0x204c21),_0x18419b=_0x5779('0x9a')==_0x204c21[_0x5779('0xac')]?_0x204c21[_0x5779('0x31')]['path']['slice'](0x0,-0x1):_0x204c21[_0x5779('0x31')][_0x5779('0x93')],_0x2b5b22=_0x4af268['getNodeByPath'](_0x18419b);_0x2b5b22[_0x5779('0x6e')](_0x32aa20)>0x0||_0x2b5b22[_0x5779('0xa7')](_0x32aa20,_0x240207[_0x4e6022++]);}for(const [_0x150c0e,_0xddaa02]of _0x4d26c6['markers'])_0x150c0e[_0x5779('0x44')](_0x5779('0x85'))||this['_markers'][_0x5779('0x5')](_0x150c0e,_0xddaa02);}const _0x522bd9=G(_0x5779('0x6'));this['_baseRoots'][_0x5779('0x5')](_0x5779('0x6'),_0x522bd9),this[_0x5779('0x7a')]['set'](_0x5779('0x6'),this[_0x5779('0xba')](_0x522bd9,0x1));const _0x1c2a80=G(_0x5779('0x6'));this['_diffRoots']['set'](_0x5779('0x6'),_0x1c2a80),this['_idsRoots'][_0x5779('0x5')](_0x5779('0x6'),this['_makeIdsRoot'](_0x1c2a80,0x1));const _0x33c425=Array['from'](this[_0x5779('0xbb')])[_0x5779('0xd6')](([_0x584a2d,_0x40ede0])=>[_0x584a2d,q(_0x40ede0)]);this[_0x5779('0xbc')](this['_lastTo'],_0x33c425,this[_0x5779('0x99')],_0x114d7a);}[_0x5779('0x7')](_0x45f9dd){const _0x44ca49=JSON['parse'](_0x45f9dd),_0x262002=this[_0x5779('0x10')]['editing'][_0x5779('0x20')][_0x5779('0xf')],_0x27654a=new _0x38fcfa(_0x262002,_0x44ca49[_0x5779('0xd6')](_0x23fc86=>J(_0x23fc86,this[_0x5779('0x10')])));return this['editor']['data'][_0x5779('0xce')](_0x27654a);}[_0x5779('0xbc')](_0x46e4bb,_0x1c59bf,_0x5caa57,_0x229a29){const _0x341b54=new Map(_0x1c59bf),_0x45a362=new Map(_0xdaae97(_0x229a29)),_0x2a4a5b=new Map();for(const [_0x49232b,_0x54be42]of _0x5caa57)_0x2a4a5b[_0x5779('0x5')](_0x49232b,{'start':_0x54be42[_0x5779('0xcc')]['clone'](),'end':_0x54be42[_0x5779('0x54')]['clone'](),'rootName':_0x54be42[_0x5779('0x40')][_0x5779('0x7c')]});this[_0x5779('0x4a')][_0x5779('0x5')](_0x46e4bb,{'roots':_0x341b54,'markers':_0x2a4a5b,'rootsAttributes':_0x45a362});}[_0x5779('0x34')](_0x49c6cc){this[_0x5779('0x4a')][_0x5779('0xfe')](_0x49c6cc);}[_0x5779('0x61')](){this[_0x5779('0xbe')](),this[_0x5779('0x76')]=-0x1,this['_lastTo']=-0x1,this[_0x5779('0x4a')][_0x5779('0xe6')](),this[_0x5779('0x1c')](this[_0x5779('0x8f')]);}[_0x5779('0xbe')](){this[_0x5779('0xee')][_0x5779('0xe6')](),this[_0x5779('0xed')][_0x5779('0xe6')](),this[_0x5779('0x2')]['clear'](),this[_0x5779('0xbb')][_0x5779('0xe6')](),this[_0x5779('0xf9')][_0x5779('0xe6')](),this[_0x5779('0xc7')][_0x5779('0xe6')](),this['_baseRootsAttributes'][_0x5779('0xe6')](),this[_0x5779('0xb')][_0x5779('0xe6')](),this[_0x5779('0x7a')][_0x5779('0xe6')](),this[_0x5779('0x99')][_0x5779('0xe6')](),this[_0x5779('0x7d')]=0x1,this[_0x5779('0x15')]=this[_0x5779('0x7d')];}[_0x5779('0xba')](_0x323b62,_0x57b85e=null){let _0x3224f2=null;_0x323b62['is'](_0x5779('0x92'))||(_0x3224f2=new _0x531e94(_0x323b62['name'],{'vid_start':null===_0x57b85e?this[_0x5779('0x7d')]++:_0x57b85e++}));const _0x5ac0a8=[];for(const _0x1a3b65 of _0x323b62['getChildren']())if(_0x1a3b65['is'](_0x5779('0xd2'))){_0x5ac0a8[_0x5779('0x3f')](this[_0x5779('0xba')](_0x1a3b65,_0x57b85e));const _0x242742=_0x5ac0a8[_0x5ac0a8[_0x5779('0x9b')]-0x1];null!==_0x57b85e&&(_0x57b85e=_0x242742['is'](_0x5779('0xd2'),_0x5779('0x64'))?_0x242742[_0x5779('0x6e')](_0x5779('0xfc'))+0x1:_0x242742['getAttribute'](_0x5779('0x1e'))+0x1);}else for(let _0x5a4609=0x0;_0x5a4609<_0x1a3b65[_0x5779('0xf0')];_0x5a4609++)_0x5ac0a8['push'](new _0x531e94(_0x5779('0x64'),{'vid':null===_0x57b85e?this[_0x5779('0x7d')]++:_0x57b85e++}));if(_0x323b62['is']('documentFragment')){const _0x50e4c9=G(_0x323b62[_0x5779('0x7c')]);return _0x50e4c9[_0x5779('0x69')](0x0,_0x5ac0a8),_0x50e4c9;}return _0x3224f2['_setAttribute'](_0x5779('0x1e'),null===_0x57b85e?this['_revisionId']++:_0x57b85e++),_0x3224f2[_0x5779('0x69')](0x0,_0x5ac0a8),_0x3224f2;}['_calculateMetaData'](_0x276af1,_0x5c08d3,_0x56bbc0){this[_0x5779('0xbe')]();const {roots:_0x597bf3,markers:_0x1b22ca,rootsAttributes:_0x285e62}=this[_0x5779('0x4a')][_0x5779('0x28')](_0x276af1);this[_0x5779('0xc7')]=new Map(_0x597bf3),this[_0x5779('0x66')]=new Map(_0xdaae97(_0x285e62));for(const [_0x5defb6,_0x5f176e]of this[_0x5779('0xc7')])if(_0x5779('0x6')!==_0x5defb6&&(this[_0x5779('0xbb')][_0x5779('0x5')](_0x5defb6,q(_0x5f176e)),this[_0x5779('0xf9')]=new Map(_0xdaae97(_0x285e62)),_0x56bbc0)){const _0x3f34d1=this[_0x5779('0x7d')];this[_0x5779('0xb')][_0x5779('0x5')](_0x5defb6,this[_0x5779('0xba')](_0x5f176e)),this[_0x5779('0x7a')][_0x5779('0x5')](_0x5defb6,this[_0x5779('0xba')](_0x5f176e,_0x3f34d1));}this[_0x5779('0x15')]=this[_0x5779('0x7d')],this[_0x5779('0xbb')][_0x5779('0x5')](_0x5779('0x6'),q(this[_0x5779('0xc7')][_0x5779('0x28')]('$graveyard'))),_0x56bbc0&&this[_0x5779('0xb')]['set'](_0x5779('0x6'),this['_makeIdsRoot'](this[_0x5779('0xc7')][_0x5779('0x28')](_0x5779('0x6'))));for(const [_0x48e2c4,_0x310127]of _0x1b22ca){const _0x1fe115=this[_0x5779('0xc7')]['get'](_0x310127[_0x5779('0x7c')]),_0xdb82c5=this['_diffRoots'][_0x5779('0x28')](_0x310127[_0x5779('0x7c')]),_0x1b0872=new _0x3b7305(this[_0x5779('0xe8')](_0x310127[_0x5779('0xcc')],_0x1fe115),this['_fixPosition'](_0x310127[_0x5779('0x54')],_0x1fe115)),_0x5ea63a=this[_0x5779('0xdd')](_0x1b0872,_0xdb82c5);_0x1fe115[_0x5779('0xfb')][_0x5779('0x5')](_0x48e2c4,_0x1b0872),this[_0x5779('0x99')][_0x5779('0x5')](_0x48e2c4,_0x5ea63a);}this['_applyOperations'](_0x276af1,_0x5c08d3,_0x56bbc0);}['_applyOperations'](_0x66bd2b,_0x2d2952,_0x475d69){for(const _0x141398 of this[_0x5779('0x8f')]['getOperations'](_0x66bd2b,_0x2d2952))this['_handleOperation'](_0x141398,_0x475d69);for(const _0x224e05 of this['_diffRoots'][_0x5779('0xd8')]())_0x224e05[_0x5779('0xfb')][_0x5779('0xe6')]();for(const [_0x7c63c7,_0x38c959]of this[_0x5779('0x99')]){this[_0x5779('0xbb')]['get'](_0x38c959[_0x5779('0x40')][_0x5779('0x7c')])[_0x5779('0xfb')][_0x5779('0x5')](_0x7c63c7,_0x38c959[_0x5779('0x41')]());}const _0x26d21b=new Map(),_0x13334e=new Map();for(const [_0x53e25f,_0x49f5d8]of this[_0x5779('0xbb')])_0x26d21b[_0x5779('0x5')](_0x53e25f,q(_0x49f5d8)),_0x13334e['set'](_0x53e25f,this['_diffRootsAttributes'][_0x5779('0x28')](_0x53e25f));this[_0x5779('0xbc')](_0x2d2952,_0x26d21b,this[_0x5779('0x99')],_0x13334e);}['_getPreviousFrom'](_0x8594bb){const _0x1b09bc=Array[_0x5779('0xa9')](this[_0x5779('0x4a')][_0x5779('0xe4')]());_0x1b09bc[_0x5779('0x7e')]((_0x2f29d2,_0x1ae6af)=>_0x2f29d2-_0x1ae6af),_0x1b09bc[_0x5779('0x8e')]();for(const _0x55c0de of _0x1b09bc)if(_0x55c0de<_0x8594bb)return _0x55c0de;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x592ef6,_0x4af723){const _0x2f48a6=Array['from'](_0x4af723['markers'])[_0x5779('0xd6')](([_0xfeb3,_0x45ffc7])=>[_0xfeb3,this['_fixRange'](_0x45ffc7,_0x592ef6)]);_0x592ef6['markers']=new Map(_0x2f48a6);}[_0x5779('0xeb')](_0x191551){for(const _0x170014 of this['_markers'][_0x5779('0xd8')]()){const _0x1cf515=_0x170014[_0x5779('0x24')](_0x191551),_0x457cf5=_0x3b7305['_createFromRanges'](_0x1cf515);_0x170014['start']=_0x457cf5[_0x5779('0xcc')],_0x170014['end']=_0x457cf5[_0x5779('0x54')];}}[_0x5779('0x90')](_0x87b0e6,_0x1233ba){if(_0x5779('0x84')==_0x87b0e6[_0x5779('0xac')]||'detachRoot'==_0x87b0e6[_0x5779('0xac')])return void this[_0x5779('0x12')](_0x87b0e6,_0x1233ba);if(_0x5779('0xf2')==_0x87b0e6['type']){const _0x47a08a=_0x87b0e6['position'][_0x5779('0x40')][_0x5779('0x7c')];this[_0x5779('0xbb')][_0x5779('0xb4')](_0x47a08a)||(this[_0x5779('0xbb')][_0x5779('0x5')](_0x47a08a,G(_0x47a08a,!0x0)),this['_diffRootsAttributes'][_0x5779('0x5')](_0x47a08a,{}),_0x1233ba&&this[_0x5779('0xb')][_0x5779('0x5')](_0x47a08a,G(_0x47a08a,!0x0)));}else{if(_0x5779('0x63')==_0x87b0e6[_0x5779('0xac')]||'removeRootAttribute'==_0x87b0e6['type']||_0x5779('0xf1')==_0x87b0e6['type'])return void this[_0x5779('0x33')](_0x87b0e6);}const _0x3a5f53=this['_cloneOperation'](_0x87b0e6,this['_diffRoots']);if(_0x5779('0xe5')!==_0x87b0e6['type']&&(_0x3a5f53['_execute'](),this[_0x5779('0xeb')](_0x3a5f53)),_0x1233ba)switch(_0x3a5f53['type']){case'insert':this[_0x5779('0x6d')](_0x87b0e6);break;case _0x5779('0x4c'):case'remove':case'reinsert':this[_0x5779('0x4')](_0x87b0e6);break;case _0x5779('0x51'):this[_0x5779('0xe0')](_0x87b0e6);break;case'split':this[_0x5779('0x98')](_0x87b0e6);break;case'marker':this[_0x5779('0x72')](_0x87b0e6);}}[_0x5779('0x0')](_0x16d1ad,_0x5b2674){const _0x1b07b9=_0x16d1ad[_0x5779('0x41')]();return _0x1b07b9[_0x5779('0x4f')]=_0x16d1ad[_0x5779('0x4f')],this[_0x5779('0x6f')](_0x1b07b9,_0x5b2674),_0x1b07b9;}[_0x5779('0x4d')](_0x688d02){return _0x688d02[_0x5779('0xd6')](_0x1068d6=>{const _0x4048dc=this[_0x5779('0xaf')](_0x1068d6);return Number(_0x1068d6[_0x5779('0x42')]['getAttribute'](_0x4048dc));});}[_0x5779('0x71')](_0x38c822,_0x1e597c){if(_0x38c822['is'](_0x5779('0xd2'),_0x5779('0x64')))_0x1e597c['push']({'item':_0x38c822,'type':_0x5779('0xa6')});else{_0x38c822['is'](_0x5779('0xd2'))&&_0x1e597c[_0x5779('0x3f')]({'item':_0x38c822,'type':'elementStart'});for(const _0x14c5a5 of _0x38c822[_0x5779('0xd7')]())this[_0x5779('0x71')](_0x14c5a5,_0x1e597c);_0x38c822['is'](_0x5779('0xd2'))&&_0x1e597c[_0x5779('0x3f')]({'item':_0x38c822,'type':_0x5779('0x9a')});}return _0x1e597c;}[_0x5779('0xad')](){const _0x3c4519=new Map(this[_0x5779('0xee')]),_0x27e27d=new Map(_0x3c4519),_0x303639=new Map(),_0x11ec5f={'insertions':{},'deletions':{}},_0x389673={'insertions':{},'deletions':{}},_0xdd673=new Map(),_0x1d663b=new Set([...this[_0x5779('0xc7')]['keys'](),...this[_0x5779('0xbb')][_0x5779('0xe4')]()]);_0x1d663b['delete'](_0x5779('0x6'));for(const _0x3e4839 of _0x1d663b){const _0x3e03c3=this[_0x5779('0xbb')][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1),_0x101b66=this['_baseRoots'][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1);_0x3e03c3['isAttached']()||_0x101b66['isAttached']()?(_0x11ec5f[_0x5779('0xab')][_0x3e4839]=q(_0x3e03c3),_0x11ec5f[_0x5779('0xea')][_0x3e4839]=q(_0x101b66),this[_0x5779('0x8b')](_0x11ec5f[_0x5779('0xea')][_0x3e4839],_0x101b66),this[_0x5779('0x8b')](_0x11ec5f[_0x5779('0xab')][_0x3e4839],_0x3e03c3),_0x389673[_0x5779('0xab')][_0x3e4839]=this[_0x5779('0x71')](this[_0x5779('0xb')][_0x5779('0x28')](_0x3e4839),[]),_0x389673[_0x5779('0xea')][_0x3e4839]=this[_0x5779('0x71')](this[_0x5779('0x7a')][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1),[])):_0x1d663b[_0x5779('0xfe')](_0x3e4839);}for(const _0x3d1f19 of _0x1d663b){const _0x35320f=_0x389673[_0x5779('0xab')][_0x3d1f19];for(const _0x1afa60 of _0x35320f){const _0x65fed3=this[_0x5779('0xaf')](_0x1afa60),_0x127c8f=_0x1afa60[_0x5779('0x42')]['getAttribute'](_0x65fed3);_0x27e27d[_0x5779('0xfe')](_0x127c8f),_0x127c8f>=this['_startingRevisionId']&&_0x303639[_0x5779('0x5')](_0x127c8f,_0x3c4519['get'](_0x127c8f));}}for(const _0x28e968 of _0x1d663b){const _0x3b0637=_0x389673['insertions'][_0x28e968],_0x11f462=this[_0x5779('0x4d')](_0x389673['deletions'][_0x28e968]);let _0x435b82=0x0;for(const _0x4e8d0b of _0x3b0637){const _0x29dbbc=this[_0x5779('0xaf')](_0x4e8d0b),_0x3ab27e=_0x4e8d0b['item'][_0x5779('0x6e')](_0x29dbbc);if(!_0x303639['has'](_0x3ab27e)&&!_0xdd673[_0x5779('0xb4')](_0x3ab27e)){if(_0x27e27d[_0x5779('0xb4')](_0x3ab27e))_0x435b82++;else{if(_0x3ab27e!=_0x11f462[_0x435b82]){const _0x3b6cc9=_0x3c4519[_0x5779('0x28')](_0x3ab27e)||_0x3c4519[_0x5779('0x28')](_0x11f462[_0x435b82]);for(;_0x3ab27e!=_0x11f462[_0x435b82];)_0x27e27d[_0x5779('0xb4')](_0x11f462[_0x435b82])||(_0xdd673[_0x5779('0x5')](_0x11f462[_0x435b82],_0x3b6cc9),_0x3c4519['set'](_0x11f462[_0x435b82],_0x3b6cc9)),_0x435b82++;}_0x435b82++;}}}}for(const _0x24959f of _0x1d663b){const _0x13c828=_0x389673[_0x5779('0xab')][_0x24959f];for(const _0x14bb7d of _0x13c828){const _0x368668=this['_getVidAttributeName'](_0x14bb7d),_0x3b9891=_0x14bb7d[_0x5779('0x42')][_0x5779('0x6e')](_0x368668);if(_0xdd673[_0x5779('0xb4')](_0x3b9891)){const _0x266fcf=_0xdd673[_0x5779('0x28')](_0x3b9891);_0x27e27d[_0x5779('0xb4')](_0x3b9891)||_0x27e27d[_0x5779('0x5')](_0x3b9891,{..._0x266fcf}),_0x303639[_0x5779('0x5')](_0x3b9891,{..._0x266fcf});}}}for(const _0x5024cd of _0x27e27d['keys']())_0x5024cd>=this['_startingRevisionId']&&_0x27e27d[_0x5779('0xfe')](_0x5024cd);const _0x557e19=new Map();for(const _0x5148c6 of _0x1d663b){let _0x1bafbd=_0x389673['insertions'][_0x5148c6];for(const _0x31f241 of _0x1bafbd)if(_0x31f241[_0x5779('0x42')]['is'](_0x5779('0xd2'),_0x5779('0x52'))){const _0x37f1b9=this[_0x5779('0xaf')](_0x31f241),_0x22696f=_0x31f241['item'][_0x5779('0x6e')](_0x37f1b9);if(_0x303639[_0x5779('0xb4')](_0x22696f)){const _0x4d9e20=_0x31f241[_0x5779('0x42')]['parent']['parent'][_0x5779('0x6e')](_0x5779('0x36')),_0x51a5bc=_0x557e19[_0x5779('0x28')](_0x4d9e20)||new Set();_0x51a5bc['add'](_0x303639[_0x5779('0x28')](_0x22696f)['userId']),_0x557e19[_0x5779('0x5')](_0x4d9e20,_0x51a5bc);}}_0x1bafbd=_0x389673[_0x5779('0xea')][_0x5148c6];for(const _0xff04a6 of _0x1bafbd)if(_0xff04a6[_0x5779('0x42')]['is']('element','tableCell')){const _0x2fa75d=this[_0x5779('0xaf')](_0xff04a6),_0x190e7a=_0xff04a6['item'][_0x5779('0x6e')](_0x2fa75d);if(_0x27e27d[_0x5779('0xb4')](_0x190e7a)){const _0x8976d6=_0xff04a6[_0x5779('0x42')][_0x5779('0x73')][_0x5779('0x73')]['getAttribute'](_0x5779('0x36')),_0x3c9945=_0x557e19[_0x5779('0x28')](_0x8976d6)||new Set();_0x3c9945['add'](_0x27e27d[_0x5779('0x28')](_0x190e7a)[_0x5779('0x2d')]),_0x557e19[_0x5779('0x5')](_0x8976d6,_0x3c9945);}}for(const _0x2f0465 of _0x557e19[_0x5779('0xe4')]())(_0x303639[_0x5779('0xb4')](_0x2f0465)||_0x27e27d[_0x5779('0xb4')](_0x2f0465))&&_0x557e19['delete'](_0x2f0465);}for(const _0xa6c7ec of _0x1d663b){const _0x171bdd=_0x389673[_0x5779('0xab')][_0xa6c7ec];let _0x5676fc=null,_0x50e646=null;for(const _0x1dc407 of _0x171bdd){const _0x5480b9=this['_getVidAttributeName'](_0x1dc407),_0x4059f8=_0x1dc407[_0x5779('0x42')][_0x5779('0x6e')](_0x5480b9),_0x227bc6=_0x557e19[_0x5779('0x28')](_0x4059f8);_0x227bc6&&_0x5779('0x79')==_0x1dc407['type']&&(_0x5676fc=Array['from'](_0x227bc6)[0x0],_0x50e646=_0x1dc407[_0x5779('0x42')][_0x5779('0x6e')](_0x5779('0x1e'))),_0x5676fc&&(_0x27e27d[_0x5779('0x5')](_0x4059f8,{'userId':_0x5676fc}),_0x303639[_0x5779('0x5')](_0x4059f8,{'userId':_0x5676fc})),_0x4059f8==_0x50e646&&(_0x5676fc=null,_0x50e646=null);}}const _0x1b5001={},_0x51a370=new Set();for(const _0x52b11c of _0x1d663b){const _0x3ebb17=_0x11ec5f[_0x5779('0xea')][_0x52b11c],_0x5ab00e=_0x11ec5f[_0x5779('0xab')][_0x52b11c];for(const {userId:_0x443ea1}of this[_0x5779('0xed')]['values']())null!==_0x443ea1&&_0x51a370[_0x5779('0xc5')](_0x443ea1);for(const {userId:_0x5f11b8}of this[_0x5779('0x2')]['values']())null!==_0x5f11b8&&_0x51a370[_0x5779('0xc5')](_0x5f11b8);this['_markChanges'](_0x5ab00e,_0x389673[_0x5779('0xab')][_0x52b11c],_0x303639,_0x5779('0xc4'),_0x51a370),this[_0x5779('0x53')](_0x3ebb17,_0x389673['deletions'][_0x52b11c],_0x27e27d,'deletion',_0x51a370),_0x1b5001[_0x52b11c]={'insertions':this[_0x5779('0xd')](_0x5ab00e),'deletions':this['_prepareViewToSave'](_0x3ebb17),'attachChange':this[_0x5779('0x2')][_0x5779('0x28')](_0x52b11c)||null,'attributesBefore':_0xdaae97(this[_0x5779('0x66')][_0x5779('0x28')](_0x52b11c))||{},'attributesAfter':_0xdaae97(this[_0x5779('0xf9')][_0x5779('0x28')](_0x52b11c))};}return{'diffData':_0x1b5001,'authorsIds':Array[_0x5779('0xa9')](_0x51a370)};}['_processRootBeforeSave'](_0x2b4464){for(const [,_0x2df4e9]of _0x2b4464[_0x5779('0xfb')]){const _0x65f1b1=_0x2df4e9['start'][_0x5779('0x6a')]()['filter'](_0x54184b=>_0x5779('0x52')==_0x54184b[_0x5779('0x5f')]);for(const _0xa1a3d7 of _0x65f1b1)0x1==_0xa1a3d7[_0x5779('0xdb')]&&_0xa1a3d7['getChild'](0x0)['is'](_0x5779('0xd2'),'paragraph')&&_0xa1a3d7[_0x5779('0xd4')](0x0)[_0x5779('0xa7')](_0x5779('0x38'),!0x0);}}['_prepareViewToSave'](_0x383542){this[_0x5779('0xb0')](_0x383542);const _0xd8ad68=this['editor'][_0x5779('0xb5')][_0x5779('0x45')](_0x383542,{}),_0xb1d726=Array[_0x5779('0xa9')](_0xd8ad68[_0x5779('0xd7')]())[_0x5779('0xd6')](_0x1f1d97=>this[_0x5779('0x6b')](_0x1f1d97));return JSON[_0x5779('0x50')](_0xb1d726);}[_0x5779('0x6b')](_0x2b90da){if(_0x2b90da['is'](_0x5779('0x64')))return _0x2b90da['data'];{const _0x4e1a95=_0x2b90da;return{'type':Object[_0x5779('0xe4')](B)[_0x5779('0x55')](_0x28fa9d=>_0x2b90da instanceof B[_0x28fa9d]),'name':_0x4e1a95[_0x5779('0x5f')],'attributes':Array[_0x5779('0xa9')](_0x4e1a95[_0x5779('0x1a')]()),'children':Array[_0x5779('0xa9')](_0x4e1a95[_0x5779('0xd7')]())[_0x5779('0xd6')](_0x1ab124=>this[_0x5779('0x6b')](_0x1ab124))};}}[_0x5779('0x53')](_0x3f9d68,_0x483c88,_0x299e3f,_0x2e4d14,_0x3f49e9){let _0x40b525=null,_0x5694c7=null,_0x59fb1d=0x0;const _0x586caf=this['editor'][_0x5779('0x14')];for(let _0x57551e=0x0;_0x57551e<_0x483c88[_0x5779('0x9b')];_0x57551e++){const _0x69243e=this[_0x5779('0xaf')](_0x483c88[_0x57551e]),_0x5a7bcd=_0x483c88[_0x57551e][_0x5779('0x42')][_0x5779('0x6e')](_0x69243e),_0x5db531=_0x299e3f['get'](_0x5a7bcd),_0x15dca1=_0x57551e==_0x483c88[_0x5779('0x9b')]-0x1;(!_0x40b525&&_0x5db531&&(_0x40b525=_0x5db531,_0x5694c7=_0x483c88[_0x57551e]),_0x40b525&&(!_0x5db531||_0x5db531[_0x5779('0x2d')]!=_0x40b525['userId']))&&(_0x56ec19(_0x5db531,L(_0x5694c7,_0x3f9d68,_0x586caf),L(_0x483c88[_0x57551e],_0x3f9d68,_0x586caf)),_0x40b525=_0x5db531||null,_0x5694c7=_0x5db531?_0x483c88[_0x57551e]:null),_0x40b525&&_0x15dca1&&_0x56ec19(_0x5db531,L(_0x5694c7,_0x3f9d68,_0x586caf),W(_0x483c88[_0x57551e],_0x3f9d68,_0x586caf));}function _0x56ec19(_0xcd2d0a,_0x2b12ab,_0x164bdf){const _0x14f3c8=_0x40b525[_0x5779('0x2d')],_0x3cd704=_0x5779('0x85')+_0x2e4d14+':'+_0x14f3c8+':'+_0x59fb1d++,_0x35ed2a=_0x586caf[_0x5779('0xc1')](_0x2b12ab,_0x164bdf);_0x3f9d68[_0x5779('0xfb')][_0x5779('0x5')](_0x3cd704,_0x35ed2a),null!==_0x14f3c8&&_0x3f49e9[_0x5779('0xc5')](_0x14f3c8);}}[_0x5779('0xaf')](_0x2c58b0){switch(_0x2c58b0[_0x5779('0xac')]){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}[_0x5779('0x6f')](_0x3ad837,_0x581139){_0x3ad837[_0x5779('0xc')]=null;for(const _0x9024b8 in _0x3ad837){const _0x5470b9=_0x3ad837[_0x9024b8];if(_0x5470b9 instanceof _0x59e44b){const _0x7a9c8e=_0x581139[_0x5779('0x28')](_0x5470b9[_0x5779('0x40')]['rootName']);_0x3ad837[_0x9024b8]=this[_0x5779('0xe8')](_0x5470b9,_0x7a9c8e);}if(_0x5470b9 instanceof _0x3b7305){const _0x1cb89a=_0x581139['get'](_0x5470b9[_0x5779('0x40')][_0x5779('0x7c')]);_0x3ad837[_0x9024b8]=this['_fixRange'](_0x5470b9,_0x1cb89a);}_0x5779('0x40')===_0x9024b8&&(_0x3ad837[_0x5779('0x40')]=_0x581139['get'](_0x3ad837['root']['rootName']));}}[_0x5779('0xdd')](_0x3abc3c,_0x3df8b2){return this[_0x5779('0x10')][_0x5779('0x14')]['createRange'](this[_0x5779('0xe8')](_0x3abc3c[_0x5779('0xcc')],_0x3df8b2),this[_0x5779('0xe8')](_0x3abc3c[_0x5779('0x54')],_0x3df8b2));}[_0x5779('0xe8')](_0x279b9d,_0x21bf8f){return this['editor']['model'][_0x5779('0xc0')](_0x21bf8f,_0x279b9d[_0x5779('0x93')],_0x279b9d[_0x5779('0xf6')]);}[_0x5779('0x6d')](_0x33ca01){const _0x2eabbe=this[_0x5779('0xb')][_0x5779('0x28')](_0x33ca01[_0x5779('0x94')][_0x5779('0x40')][_0x5779('0x7c')]),_0x25772e=this[_0x5779('0xe8')](_0x33ca01[_0x5779('0x94')],_0x2eabbe),_0x7129fa=null===_0x33ca01[_0x5779('0x4f')]?null:_0x33ca01['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0xdbc14=_0x25772e[_0x5779('0x73')],_0x249240=this[_0x5779('0x7d')],_0x3987e6=[];for(const _0x16fbaf of _0x33ca01[_0x5779('0xe2')])if(_0x16fbaf['is']('element'))_0x3987e6[_0x5779('0x3f')](this[_0x5779('0xba')](_0x16fbaf));else for(let _0x2bd5bd=0x0;_0x2bd5bd<_0x16fbaf[_0x5779('0xf0')];_0x2bd5bd++)_0x3987e6['push'](new _0x531e94(_0x5779('0x64'),{'vid':this[_0x5779('0x7d')]++}));const _0x1fb4b5=this[_0x5779('0x7d')];for(let _0x1e9849=_0x249240;_0x1e9849<_0x1fb4b5;_0x1e9849++)this[_0x5779('0xee')][_0x5779('0x5')](_0x1e9849,{'userId':_0x7129fa});_0xdbc14[_0x5779('0x69')](_0x25772e[_0x5779('0x1d')],_0x3987e6);}[_0x5779('0x4')](_0x585bee){(_0x585bee=this['_cloneOperation'](_0x585bee,this[_0x5779('0xb')]))[_0x5779('0xb1')]();const _0x5516c=null===_0x585bee[_0x5779('0x4f')]?null:_0x585bee[_0x5779('0x4f')]||this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x46dffb=_0x585bee[_0x5779('0xc3')](),_0x440908=_0x46dffb[_0x5779('0x73')],_0x282d5e=_0x46dffb[_0x5779('0x1d')];!function _0x19f222(_0x1e9b20,_0x4561dc,_0x21dcf6,_0x16c16e){for(let _0x3e82ed=_0x21dcf6;_0x3e82ed<_0x16c16e;_0x3e82ed++){const _0x8eaa14=_0x4561dc[_0x5779('0xd4')](_0x3e82ed);_0x8eaa14['is'](_0x5779('0xd2'),_0x5779('0x64'))?_0x1e9b20[_0x5779('0x5')](_0x8eaa14[_0x5779('0x6e')]('vid'),{'userId':_0x5516c}):(_0x1e9b20['set'](_0x8eaa14[_0x5779('0x6e')]('vid_start'),{'userId':_0x5516c}),_0x19f222(_0x1e9b20,_0x8eaa14,0x0,_0x8eaa14[_0x5779('0xdb')]),_0x1e9b20[_0x5779('0x5')](_0x8eaa14[_0x5779('0x6e')]('vid_end'),{'userId':_0x5516c}));}}(this[_0x5779('0xee')],_0x440908,_0x282d5e,_0x282d5e+_0x585bee[_0x5779('0xdf')]);}[_0x5779('0xe0')](_0x3db4b5){const _0x231d60=null===(_0x3db4b5=this[_0x5779('0x0')](_0x3db4b5,this[_0x5779('0xb')]))[_0x5779('0x4f')]?null:_0x3db4b5['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0xe3'))['me']['id'],_0x378672=_0x3db4b5[_0x5779('0x5e')]['parent'],_0x4f176a=_0x3db4b5[_0x5779('0xfa')][_0x5779('0x73')],_0x457b77=_0x378672[_0x5779('0x6e')](_0x5779('0x1e')),_0x26e117=_0x4f176a[_0x5779('0x6e')](_0x5779('0x36'));_0x378672['_setAttribute'](_0x5779('0x1e'),_0x4f176a['getAttribute'](_0x5779('0x1e'))),_0x4f176a[_0x5779('0xa7')](_0x5779('0x1e'),_0x457b77),this[_0x5779('0xee')][_0x5779('0x5')](_0x26e117,{'userId':_0x231d60}),this[_0x5779('0xee')][_0x5779('0x5')](_0x457b77,{'userId':_0x231d60}),_0x3db4b5[_0x5779('0xb1')]();}[_0x5779('0x98')](_0x196e9e){const _0x2a4ad2=null===(_0x196e9e=this[_0x5779('0x0')](_0x196e9e,this[_0x5779('0xb')]))['_authorId']?null:_0x196e9e['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x1622a7=_0x196e9e[_0x5779('0x56')],_0x39bf60=_0x196e9e['splitPosition']['parent'];_0x196e9e[_0x5779('0xb1')]();const _0x5a27fa=_0x39bf60[_0x5779('0x6e')]('vid_end'),_0x172bd7=_0x196e9e[_0x5779('0x81')]['nodeAfter'];if(_0x1622a7){const _0x3e3916=_0x172bd7['getAttribute']('vid_end'),_0x15534b=_0x39bf60[_0x5779('0x6e')](_0x5779('0x1e'));_0x39bf60[_0x5779('0xa7')](_0x5779('0x1e'),_0x3e3916),_0x172bd7[_0x5779('0xa7')](_0x5779('0x1e'),_0x15534b),this[_0x5779('0xee')][_0x5779('0x5')](_0x39bf60['getAttribute']('vid_end'),{'userId':_0x2a4ad2}),this[_0x5779('0xee')][_0x5779('0x5')](_0x172bd7['getAttribute']('vid_start'),{'userId':_0x2a4ad2});}else{const _0x32f9ca=this['_revisionId']++,_0x55b592=this[_0x5779('0x7d')]++;_0x39bf60['_setAttribute'](_0x5779('0x1e'),_0x32f9ca),_0x172bd7[_0x5779('0xa7')]('vid_start',_0x55b592),_0x172bd7[_0x5779('0xa7')](_0x5779('0x1e'),_0x5a27fa),this['_touched']['set'](_0x32f9ca,{'userId':_0x2a4ad2}),this['_touched']['set'](_0x55b592,{'userId':_0x2a4ad2});}}[_0x5779('0x72')](_0x27060b){if(!_0x27060b[_0x5779('0xde')])return;const _0x13cc77=(_0x27060b=this[_0x5779('0x0')](_0x27060b,this[_0x5779('0xbb')]))['oldRange']?_0x27060b['oldRange'][_0x5779('0x40')]:null,_0x47b1e3=_0x27060b[_0x5779('0x83')]?_0x27060b['newRange']['root']:null;_0x13cc77&&this['_markers'][_0x5779('0xfe')](_0x27060b[_0x5779('0x5f')]),_0x47b1e3&&this[_0x5779('0x99')][_0x5779('0x5')](_0x27060b[_0x5779('0x5f')],_0x27060b[_0x5779('0x83')][_0x5779('0x41')]());const _0x112e90=null===_0x27060b[_0x5779('0x4f')]?null:_0x27060b[_0x5779('0x4f')]||this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0xe3'))['me']['id'],_0x185d69=_0x27060b[_0x5779('0x5f')];if(!this[_0x5779('0xed')][_0x5779('0xb4')](_0x185d69))return void this['_touchedMarkers'][_0x5779('0x5')](_0x185d69,{'range':_0x27060b[_0x5779('0x2f')],'userId':_0x112e90});const _0x37c1ca=this['_touchedMarkers'][_0x5779('0x28')](_0x185d69),_0x256d6b=_0x37c1ca[_0x5779('0xd3')],_0x51ab46=_0x27060b['newRange'];null==_0x256d6b&&null==_0x51ab46||_0x256d6b&&_0x51ab46&&_0x256d6b[_0x5779('0x8c')](_0x51ab46)?this[_0x5779('0xed')]['delete'](_0x27060b[_0x5779('0x5f')]):_0x37c1ca[_0x5779('0x2d')]=_0x112e90;}[_0x5779('0x12')](_0x2fa120,_0x32f43e){this[_0x5779('0xbb')]['has'](_0x2fa120[_0x5779('0x7c')])?this[_0x5779('0xbb')]['get'](_0x2fa120[_0x5779('0x7c')])[_0x5779('0xd0')]=_0x2fa120[_0x5779('0x30')]:(this['_diffRoots']['set'](_0x2fa120[_0x5779('0x7c')],G(_0x2fa120['rootName'],!0x0)),this[_0x5779('0xf9')][_0x5779('0x5')](_0x2fa120[_0x5779('0x7c')],{}),_0x32f43e&&this[_0x5779('0xb')]['set'](_0x2fa120[_0x5779('0x7c')],G(_0x2fa120['rootName'],!0x0)));const _0xb0b0b4=null===_0x2fa120[_0x5779('0x4f')]?null:_0x2fa120[_0x5779('0x4f')]||this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x9bfcf5=this[_0x5779('0x2')][_0x5779('0x28')](_0x2fa120[_0x5779('0x7c')]);_0x9bfcf5&&_0x9bfcf5[_0x5779('0x2d')]===_0xb0b0b4?this[_0x5779('0x2')][_0x5779('0xfe')](_0x2fa120['rootName']):this[_0x5779('0x2')]['set'](_0x2fa120[_0x5779('0x7c')],{'userId':_0xb0b0b4,'isAttached':_0x2fa120[_0x5779('0x30')]});}[_0x5779('0x33')](_0x496da4){const _0x1105dd=this[_0x5779('0xf9')][_0x5779('0x28')](_0x496da4[_0x5779('0x40')][_0x5779('0x7c')]);null===_0x496da4[_0x5779('0x88')]?delete _0x1105dd[_0x496da4[_0x5779('0x11')]]:_0x1105dd[_0x496da4[_0x5779('0x11')]]=_0x496da4[_0x5779('0x88')];}}function q(_0x44c7fc){const _0x4dbd79=G(_0x44c7fc[_0x5779('0x7c')],_0x44c7fc[_0x5779('0x65')]());for(const _0x224484 of _0x44c7fc[_0x5779('0xd7')]()){const _0x910475=_0x224484[_0x5779('0x68')](!0x0);_0x4dbd79[_0x5779('0x16')](_0x910475);}return _0x4dbd79;}function G(_0x1f9d6d,_0x138882=!0x0){const _0x5b884e=new _0x2d3eef();return _0x5b884e['rootName']=_0x1f9d6d,_0x5b884e[_0x5779('0xd0')]=_0x138882,_0x5b884e[_0x5779('0x65')]=()=>_0x5b884e[_0x5779('0xd0')],_0x5b884e;}function L(_0x1117e6,_0xb842c0,_0x37e976){const _0x3bc112=_0x5779('0x9a')==_0x1117e6[_0x5779('0xac')]?_0x37e976['createPositionAt'](_0x1117e6[_0x5779('0x42')],'end'):_0x37e976[_0x5779('0xb2')](_0x1117e6[_0x5779('0x42')]);return _0x37e976['createPositionFromPath'](_0xb842c0,_0x3bc112['path'],_0x3bc112[_0x5779('0xf6')]);}function W(_0xe2bc1c,_0x409a0e,_0x583c49){const _0x58f275=_0x5779('0x79')==_0xe2bc1c[_0x5779('0xac')]?_0x583c49['createPositionAt'](_0xe2bc1c['item'],0x0):_0x583c49[_0x5779('0xb6')](_0xe2bc1c[_0x5779('0x42')]);return _0x583c49[_0x5779('0xc0')](_0x409a0e,_0x58f275[_0x5779('0x93')],_0x58f275[_0x5779('0xf6')]);}
|
|
23
|
+
const _0x3e03=['_markChanges','parent','position','view','revision-start','_createInitialRevision','find','type','text','isReady','_idsRoots','useFillerType','$text','isEnabled','_getBaseVids','_getPreviousFrom','createRange','toData','vid','attachChange','getTime','_update','newRange','_insertChild','_cloneOperation','childCount','split','filter','_continueCurrentRevision','remove','version','_operations','_copyMarkers','getAttribute','createPositionFromPath','getLatestVersion','ready','_prepareViewToSave','getRange','createPositionAt','_transformMarkers','roots','for','toModel','_markers','nodes','previousPosition','clear','RevisionsRepository','get','addRevision','targetPosition','getRoot','loadState','_createCurrentRevision','fromVersion','sendBufferedUpdates','data','offset','_makeIdsRoot','nodeAfter','_applyOperations','adapter','clone','_diffRootsAttributes','root','config','_startingRevisionId','elementEnd','affectsData','PendingActions','_getState','_loadState','_revisionDataBuilder','dataToMarker','getRevisions','getAncestors','children','marked','initialData','set','_lastFrom','authorsIds','conversion','max','offsetSize','_setAttribute','getCurrentRevisionId','source','baseVersion','editing','_saveMetaData','reInit','authors','attributes','range','slice','getData','_bufferedUpdates','add','_pendingAction','_makeModelFromViewString','push','_touchedRoots','_calculateMetaData','string','_baseIdsRoots','upcast','fromEntries','rootsAttributes','_handleOperation','revision:','delete','createRangeIn','PENDING_ACTION_REVISION_HISTORY','_removeRevisionMarkers','_baseRoots','parse','isAdd','RevisionTracker','initial','getNodeByPath','_reset','_execute','createPositionBefore','size','some','_diffRoots','getIndex','revisionHistory.resumeUnsavedRevision','paragraph','_isPendingUpdate','insert','document','Users','history','keys','getRevisionDocumentData','editor-initial-data-replaced-with-revision-data','_handleInsertOperation','resolve','userId','_fixOperation','stickiness','removeRootAttribute','_setConversion','item','revision-end','_getVidAttributeName','_handleRootOperation','insertions','tableCell','_isInit','markers','init','values','collaboration.channelId','RealTimeCollaborationClient','buildRevisionData','_savedMetaData','getAttributes','stringify','_touched','createdAt','getRevision','includes','element','getChild','_getFromVersion','_source','reverse','sort','_touchedMarkers','from','isEqual','_authorId','_addPendingAction','isAttached','_loadRevisionData','setRevisionData','_handleSplitOperation','vid_start','creatorId','getOperation','requires','attributesAfter','_removePendingAction','_fixRange','getChildren','attributesBefore','length','diffData','newValue','getOperations','_getViewJson','documentFragment','_baseRootsAttributes','getRootNames','forEach','toView','currentRevision','editor','vid_end','NEGATIVE_INFINITY','createPositionAfter','_revisionId','_makeRevision','repository','sourcePosition','data-revision-','getWalker','elementStart','has','createRevision','marker','addRevisionData','dataDowncast','shift','_replaceEditorDataWithRevisionData','_isAttached','locale','deletions','startsWith','key','name','map','processor','_createFromRanges','getUser','model','_loadedStateData','splitPosition','plugins','getRevisionRootsAttributes','_initialRevisionId','_startingVersion','insertionPosition','$graveyard','_handleMergeOperation','_bufferUpdate','rootName','_processRootBeforeSave','path','start','toVersion','_fixPosition','default','_findInsertionIndex','creator','_handleRootAttributeOperation','_lastTo','_handleMarkerOperation','_removeMetaData','_generateTape','end'];(function(_0x5a604d,_0x3e03aa){const _0x282adb=function(_0x51913e){while(--_0x51913e){_0x5a604d['push'](_0x5a604d['shift']());}};_0x282adb(++_0x3e03aa);}(_0x3e03,0x1e0));const _0x282a=function(_0x5a604d,_0x3e03aa){_0x5a604d=_0x5a604d-0x0;let _0x282adb=_0x3e03[_0x5a604d];return _0x282adb;};import{Users as _0x37c296}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x46d0fd,PendingActions as _0x5e3720}from'ckeditor5/src/core';import{logWarning as _0x4fd490,uid as _0x17c355}from'ckeditor5/src/utils';import{Position as _0x4b482c,Range as _0x59cef2,Element as _0x3ef850,DocumentFragment as _0x478586,ViewText as _0x246e82,ViewElement as _0x384ef5,ViewContainerElement as _0x6a9943,ViewAttributeElement as _0x4be36b,ViewEmptyElement as _0x44965f,ViewRawElement as _0xe395bd,ViewUIElement as _0x128766,ViewDocumentFragment as _0x46275b}from'ckeditor5/src/engine';import _0x247171 from'./revisionsrepository';import{getTranslation as _0x2be542}from'./utils/common-translations';import{cloneDeep as _0x38d3ff,isEqual as _0x27ceb1}from'lodash-es';const B={'c':_0x6a9943,'a':_0x4be36b,'e':_0x44965f,'r':_0xe395bd,'u':_0x128766};export default class l extends _0x46d0fd{static get['pluginName'](){return _0x282a('0x95');}static get[_0x282a('0xd6')](){return[_0x37c296,_0x247171,_0x5e3720];}constructor(_0x11e09d){super(_0x11e09d),this['adapter']=null,this['currentRevision']=null,this[_0x282a('0x67')]=new H(this[_0x282a('0xe7')]),this['_initialRevisionId']=this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x4f')]('collaboration.channelId')||_0x282a('0x96'),this['_bufferedUpdates']=new Map(),this[_0x282a('0x5')]=null;const _0x35a17a=_0x17c355();this['_source']={'history':this['editor'][_0x282a('0x4')][_0x282a('0xa3')]['history'],'getLatestVersion':()=>Promise[_0x282a('0xaa')](this['editor'][_0x282a('0x4')][_0x282a('0xa3')][_0x282a('0x3c')]),'getCurrentRevisionId':()=>_0x35a17a},this[_0x282a('0x6e')](_0x282a('0x27'),!0x1),this[_0x282a('0x6e')](_0x282a('0x2b'),!0x0),this[_0x282a('0x6e')](_0x282a('0xa1'),!0x1),this[_0x282a('0xe7')][_0x282a('0x60')]['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor'][_0x282a('0x71')][_0x282a('0x48')](_0x282a('0x89'))[_0x282a('0x68')]({'view':'revision'});}[_0x282a('0xb8')](){this[_0x282a('0xed')]=this['editor'][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0x4e')),this[_0x282a('0xaf')](),this['editor'][_0x282a('0x57')]['on'](_0x282a('0x42'),()=>{const _0x1ee1cd=this[_0x282a('0xed')][_0x282a('0xc2')](0x0),_0x5a15f3=_0x1ee1cd&&null===_0x1ee1cd[_0x282a('0x17')]?_0x1ee1cd:null;if(this[_0x282a('0x3a')]=!!_0x5a15f3&&this['editor'][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0x9f')),this['editor']['plugins']['has'](_0x282a('0xbb'))){const _0x44e480=this[_0x282a('0xc7')][_0x282a('0x75')](),_0x34168f=this[_0x282a('0xed')][_0x282a('0xc2')](_0x44e480);if(_0x34168f)this[_0x282a('0xa')]=_0x34168f[_0x282a('0x55')],this[_0x282a('0x3a')]=!0x1;else{const _0x17dd46=this[_0x282a('0xc7')]['history'][_0x282a('0x3d')][_0x282a('0x24')](_0x1e7665=>!_0x1e7665[_0x282a('0xb6')]),_0x141937=_0x17dd46?_0x17dd46[_0x282a('0x77')]:this[_0x282a('0xc7')][_0x282a('0xa5')][_0x282a('0x3c')];_0x1ee1cd?(_0x1ee1cd[_0x282a('0x13')]<_0x141937&&_0x1ee1cd['_update']({'toVersion':_0x141937}),this[_0x282a('0x3a')]?(this[_0x282a('0xc7')][_0x282a('0x75')]=()=>_0x5a15f3['id'],this['_startingVersion']=_0x5a15f3[_0x282a('0x55')]):(this[_0x282a('0xa')]=_0x1ee1cd[_0x282a('0x13')],this['_continueCurrentRevision']=!0x1)):(this[_0x282a('0xa')]=_0x141937,this['_continueCurrentRevision']=!0x1);}}else _0x5a15f3&&(this[_0x282a('0xe7')]['model'][_0x282a('0xa3')]['history']['version']=Math[_0x282a('0x72')](_0x5a15f3[_0x282a('0x13')],this['editor'][_0x282a('0x4')][_0x282a('0xa3')]['history'][_0x282a('0x3c')]),_0x5a15f3['fromVersion']===_0x5a15f3[_0x282a('0x13')]?(0x0!==_0x5a15f3[_0x282a('0x55')]&&(this['_source'][_0x282a('0x75')]=()=>_0x5a15f3['id']),this[_0x282a('0x3a')]=!0x1):this[_0x282a('0x3a')]&&(this[_0x282a('0xc7')]['getCurrentRevisionId']=()=>_0x5a15f3['id'],this['_startingVersion']=_0x5a15f3[_0x282a('0x55')])),this[_0x282a('0x3a')]||(this[_0x282a('0xa')]=this['editor'][_0x282a('0x4')][_0x282a('0xa3')][_0x282a('0x3c')]);this[_0x282a('0x67')][_0x282a('0xb8')](this['_source']['history']),this[_0x282a('0x23')](this['_startingVersion']),this[_0x282a('0x54')](this[_0x282a('0xa')]),this['adapter']&&this[_0x282a('0x56')]();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x5ceb82=>!_0x5ceb82);}async['afterInit'](){if(this[_0x282a('0xed')]['length']>0x0){const _0x3a5b36=this['repository']['getRevision'](0x0),_0x30b44e=await this['getRevisionDocumentData'](_0x3a5b36),_0x2d78ed=await this[_0x282a('0x8')](_0x3a5b36);this[_0x282a('0xf8')](_0x30b44e,_0x2d78ed);}}['setSource'](_0xa4c872){this['_source']=_0xa4c872;}async['update'](){const _0xe501a=await this[_0x282a('0xc7')]['getLatestVersion']();if(_0xe501a>this[_0x282a('0xe6')][_0x282a('0x13')]){await this['_loadState']();const _0x47f104=this[_0x282a('0xbc')]({'revision':this['currentRevision'],'to':_0xe501a});_0x47f104[_0x282a('0x7b')]=_0x47f104[_0x282a('0x70')][_0x282a('0x0')](_0x1dea1c=>this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')]('Users')['getUser'](_0x1dea1c)),this[_0x282a('0xe6')][_0x282a('0x33')](_0x47f104);}}async[_0x282a('0x66')](){this[_0x282a('0x3a')]&&!this[_0x282a('0x5')]&&(await this[_0x282a('0xd0')](this[_0x282a('0xe6')]),this[_0x282a('0x67')][_0x282a('0x53')](this[_0x282a('0xe6')]),this[_0x282a('0x5')]={'fromVersion':this['currentRevision'][_0x282a('0x55')],'authors':this[_0x282a('0xe6')][_0x282a('0x7b')][_0x282a('0x7e')]()});}async['saveRevision'](_0x3658f7={},_0x129fc4=null){const _0x4f0951=[];await this[_0x282a('0x66')](),this['_continueCurrentRevision']=!0x1,_0x129fc4>this[_0x282a('0xe6')]['toVersion']&&(_0x129fc4=null),null===_0x129fc4&&(_0x129fc4=await this[_0x282a('0xc7')][_0x282a('0x41')]());const _0x126602=this[_0x282a('0xc6')](_0x129fc4),_0x23dd83=this[_0x282a('0xbc')]({'from':_0x126602,'to':_0x129fc4});if(this[_0x282a('0xe6')]['toVersion']<_0x129fc4){const _0x1ccb8c=this[_0x282a('0xbc')]({'revision':this['currentRevision'],'from':_0x129fc4,'to':_0x129fc4});_0x1ccb8c[_0x282a('0x7b')]=[],_0x1ccb8c[_0x282a('0x70')]=[],_0x1ccb8c['id']=this[_0x282a('0xe6')]['id'],this[_0x282a('0xe6')]['_update'](_0x1ccb8c,!0x0),delete _0x1ccb8c[_0x282a('0x7b')],_0x4f0951['push'](_0x1ccb8c);}_0x3658f7['creatorId']=this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')]('Users')['me']['id'],_0x3658f7[_0x282a('0xfe')]=_0x3658f7[_0x282a('0xfe')]||null,_0x3658f7['id']=_0x3658f7['id']||_0x17c355(),_0x3658f7={..._0x3658f7,..._0x23dd83};const _0x3c19b0=this[_0x282a('0xf5')](_0x3658f7);_0x4f0951[_0x282a('0x84')](_0x3658f7);const _0x4a201a=this[_0x282a('0xed')][_0x282a('0x9e')](_0x3c19b0);if(0x0!==_0x4a201a){const _0x364119=this['repository'][_0x282a('0xc2')](_0x4a201a-0x1);if(_0x364119[_0x282a('0x55')]!==_0x129fc4){const _0x25de76=this[_0x282a('0x67')]['getData'](_0x129fc4,_0x364119[_0x282a('0x13')]),_0x59fe6c={'id':_0x364119['id'],'diffData':_0x25de76[_0x282a('0xdd')],'authorsIds':_0x25de76['authorsIds'],'authors':_0x25de76[_0x282a('0x70')][_0x282a('0x0')](_0x37c847=>this['editor'][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0xa4'))[_0x282a('0x3')](_0x37c847)),'fromVersion':_0x129fc4};_0x364119===this[_0x282a('0xe6')]&&(_0x59fe6c['createdAt']=new Date(_0x3658f7[_0x282a('0xc1')][_0x282a('0x32')]()+0xa)),_0x364119[_0x282a('0x33')](_0x59fe6c,!0x0),delete _0x59fe6c[_0x282a('0x7b')],_0x4f0951[_0x282a('0x84')](_0x59fe6c);}}if(this[_0x282a('0x5c')]){for(const _0x2d30cf of _0x4f0951)this[_0x282a('0xe')](_0x2d30cf['id'],_0x2d30cf,!0x0);this[_0x282a('0x56')]();}return _0x3c19b0;}[_0x282a('0xf5')](_0xaf0667){const _0xa6cca3=this['repository'][_0x282a('0xf3')](_0xaf0667);return this[_0x282a('0x5c')]&&_0xa6cca3['on'](_0x282a('0x33'),(_0x560221,_0x1fd13b,_0x59085c)=>{_0x59085c||(this['_bufferUpdate'](_0x1fd13b['id'],_0x1fd13b,!0x0),this[_0x282a('0x56')]());}),this[_0x282a('0xed')][_0x282a('0x50')](_0xa6cca3,this[_0x282a('0x16')](_0xa6cca3)),_0xa6cca3;}async[_0x282a('0xa7')](_0x54a7bd){await this[_0x282a('0xd0')](_0x54a7bd);const _0x3a3fde={};for(const _0x31347a in _0x54a7bd[_0x282a('0xdd')]){if(_0x54a7bd[_0x282a('0xdd')][_0x31347a][_0x282a('0x31')]&&!_0x54a7bd[_0x282a('0xdd')][_0x31347a][_0x282a('0x31')][_0x282a('0xcf')])continue;const _0x1bf35c=this[_0x282a('0x91')](JSON[_0x282a('0x93')](_0x54a7bd[_0x282a('0xdd')][_0x31347a][_0x282a('0xb4')])),_0x1cd258=this['editor']['editing'][_0x282a('0x21')][_0x282a('0xa3')],_0x353ebb=new _0x46275b(_0x1cd258,_0x1bf35c[_0x282a('0x0')](_0x4e6187=>J(_0x4e6187,this[_0x282a('0xe7')])));this[_0x282a('0xe7')][_0x282a('0x57')][_0x282a('0x1')][_0x282a('0x29')](_0x282a('0x6c')),_0x3a3fde[_0x31347a]=this[_0x282a('0xe7')][_0x282a('0x57')]['processor'][_0x282a('0x2f')](_0x353ebb),this[_0x282a('0xe7')][_0x282a('0x57')]['processor'][_0x282a('0x29')](_0x282a('0x15'));}return _0x3a3fde;}async[_0x282a('0x8')](_0x365adc){await this['_loadRevisionData'](_0x365adc);const _0x3c03be={};for(const _0x3b2222 in _0x365adc[_0x282a('0xdd')])_0x365adc[_0x282a('0xdd')][_0x3b2222][_0x282a('0x31')]&&!_0x365adc[_0x282a('0xdd')][_0x3b2222][_0x282a('0x31')][_0x282a('0xcf')]||(_0x3c03be[_0x3b2222]=_0x365adc[_0x282a('0xdd')][_0x3b2222][_0x282a('0xd7')]||{});return _0x3c03be;}[_0x282a('0x56')](){if(0x0===this[_0x282a('0x80')][_0x282a('0x9b')])return;if(this[_0x282a('0xa1')])return;let _0x41e411=Array[_0x282a('0xcb')](this['_bufferedUpdates'][_0x282a('0xb9')]());this[_0x282a('0x80')]['clear']();for(let _0x1c0e60=0x0;_0x1c0e60<_0x41e411[_0x282a('0xdc')];_0x1c0e60++){const _0x307f6f=_0x41e411[_0x1c0e60];let _0x2646ce=!0x1;for(const _0x3b20c2 of Object[_0x282a('0xa6')](_0x307f6f))void 0x0===_0x307f6f[_0x3b20c2]?delete _0x307f6f[_0x3b20c2]:'id'!==_0x3b20c2&&(_0x2646ce=!0x0);_0x2646ce||(_0x41e411[_0x1c0e60]=null);}if(_0x41e411=_0x41e411[_0x282a('0x39')](_0x569dc3=>null!==_0x569dc3),!_0x41e411[_0x282a('0xdc')])return;for(let _0x58dead=0x0;_0x58dead<_0x41e411[_0x282a('0xdc')];_0x58dead++){const _0x17c372=_0x41e411[_0x58dead];void 0x0!==_0x17c372[_0x282a('0x55')]&&void 0x0===_0x17c372[_0x282a('0x13')]&&(_0x17c372['toVersion']=this[_0x282a('0xed')][_0x282a('0xc2')](_0x17c372['id'])[_0x282a('0x13')]),void 0x0!==_0x17c372[_0x282a('0x13')]&&void 0x0===_0x17c372[_0x282a('0x55')]&&(_0x17c372[_0x282a('0x55')]=this[_0x282a('0xed')][_0x282a('0xc2')](_0x17c372['id'])[_0x282a('0x55')]);}const _0x575114=this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0xba'));this[_0x282a('0xa1')]=!0x0,this['_addPendingAction'](),this[_0x282a('0x5c')]['updateRevisions'](_0x41e411,_0x575114)['finally'](()=>{this[_0x282a('0xa1')]=!0x1;})['then'](_0x2f65bc=>{if(_0x2f65bc)for(const _0x3887f3 of _0x2f65bc)this[_0x282a('0xd1')]({'id':_0x3887f3['id'],'createdAt':_0x3887f3['createdAt']});this[_0x282a('0xd8')](),this[_0x282a('0x56')]();});}[_0x282a('0xf8')](_0x4ac167,_0x1aec4e){let _0x2c8e62=this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0x6d')),_0x318386=this[_0x282a('0xe7')]['config'][_0x282a('0x4f')](_0x282a('0x8b'));if(void 0x0===_0x2c8e62){_0x2c8e62={};for(const _0x3cba71 of this[_0x282a('0xe7')][_0x282a('0x4')]['document'][_0x282a('0xe3')]())_0x2c8e62[_0x3cba71]='';}if(_0x282a('0x87')==typeof _0x2c8e62&&(_0x2c8e62={'main':_0x2c8e62}),void 0x0===_0x318386){_0x318386={};for(const _0x1275e9 of this[_0x282a('0xe7')][_0x282a('0x4')]['document'][_0x282a('0xe3')]())_0x318386[_0x1275e9]={};}let _0x3177ac=!0x1;const _0xa4c176=Object[_0x282a('0xa6')](_0x2c8e62),_0x36ed58=Object[_0x282a('0xa6')](_0x4ac167);for(const _0x3e3f03 of _0xa4c176){if(_0x2c8e62[_0x3e3f03]!==_0x4ac167[_0x3e3f03]&&''!==_0x2c8e62[_0x3e3f03]['trim']()){_0x3177ac=!0x0;break;}if(!_0x27ceb1(_0x318386[_0x3e3f03],_0x1aec4e[_0x3e3f03])&&Object[_0x282a('0xa6')](_0x318386[_0x3e3f03])[_0x282a('0xdc')]>0x0){_0x3177ac=!0x0;break;}}_0x3177ac||(_0x3177ac=_0x36ed58[_0x282a('0x9c')](_0x189c79=>!this['editor']['model']['document']['getRoot'](_0x189c79))),_0x3177ac&&_0x4fd490(_0x282a('0xa8'),{'editorData':_0x2c8e62,'editorRootsAttributes':_0x318386,'revisionData':_0x4ac167,'revisionRootsAttributes':_0x1aec4e}),this[_0x282a('0xe7')][_0x282a('0x60')][_0x282a('0x6e')]('initialData',_0x4ac167),this['editor']['config'][_0x282a('0x6e')](_0x282a('0x8b'),_0x1aec4e);}[_0x282a('0xce')](){if(!this['_pendingAction']){const _0x1ff8dc=this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0x64'));this[_0x282a('0x82')]=_0x1ff8dc[_0x282a('0x81')](_0x2be542(this[_0x282a('0xe7')][_0x282a('0xfa')],_0x282a('0x90')));}}[_0x282a('0xd8')](){this[_0x282a('0x82')]&&(this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0x64'))[_0x282a('0x3b')](this['_pendingAction']),this[_0x282a('0x82')]=null);}['_findInsertionIndex'](_0x2ebb64){const _0xf72e7b=this[_0x282a('0xed')][_0x282a('0x69')]();_0xf72e7b[_0x282a('0xc8')]();let _0x589228=0x0;for(;_0x589228<_0xf72e7b[_0x282a('0xdc')];){const _0x1ec5fb=_0xf72e7b[_0x589228];if(_0x1ec5fb===this[_0x282a('0xe6')]){_0x589228++;continue;}if(_0x1ec5fb['id']===this['_initialRevisionId'])break;const _0x191f5a=_0x2ebb64['toVersion']-_0x1ec5fb[_0x282a('0x13')]||_0x2ebb64[_0x282a('0x55')]-_0x1ec5fb[_0x282a('0x55')];if(_0x191f5a>0x0)break;if(_0x191f5a<0x0)_0x589228++;else{if(!_0x2ebb64[_0x282a('0x17')]&&_0x1ec5fb[_0x282a('0x17')])break;if(_0x1ec5fb[_0x282a('0x17')]||!_0x2ebb64[_0x282a('0x17')]){if(_0x2ebb64[_0x282a('0xc1')]>_0x1ec5fb['createdAt'])break;_0x589228++;}else _0x589228++;}}return _0x589228;}[_0x282a('0xd1')](_0x36f512){const _0x480edc=this['repository'][_0x282a('0xc2')](_0x36f512['id']);if(_0x36f512[_0x282a('0xc1')]&&(_0x36f512[_0x282a('0xc1')]=new Date(_0x36f512['createdAt'])),_0x36f512['authorsIds']){const _0xc81a13=this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'));_0x36f512['authors']=_0x36f512['authorsIds'][_0x282a('0x0')](_0x5a0b04=>_0xc81a13[_0x282a('0x3')](_0x5a0b04));}_0x480edc['_update'](_0x36f512,!0x0);}[_0x282a('0xbc')]({revision:_0x51bc15=null,from:_0x278cca=null,to:_0x194848=null}){_0x278cca=null!==_0x278cca?_0x278cca:_0x51bc15[_0x282a('0x55')],_0x194848=null!==_0x194848?_0x194848:_0x51bc15['toVersion'];const _0x4470be=this[_0x282a('0x67')]['getData'](_0x278cca,_0x194848),_0xce04dd={'diffData':_0x4470be[_0x282a('0xdd')],'authorsIds':_0x4470be['authorsIds'],'fromVersion':_0x278cca,'toVersion':_0x194848};if(!_0x51bc15||_0x194848!==_0x51bc15['toVersion']){const _0x59c6f6=_0x194848-0x1,_0x17f8f1=this[_0x282a('0xc7')]['history'][_0x282a('0xd5')](_0x59c6f6);_0xce04dd['createdAt']=_0x17f8f1&&_0x17f8f1[_0x282a('0xc1')]||new Date();}if(this['_loadedStateData']&&_0x278cca===this[_0x282a('0x5')][_0x282a('0x55')])for(const _0x33f89b of this[_0x282a('0x5')][_0x282a('0x7b')])_0xce04dd['authorsIds'][_0x282a('0xc3')](_0x33f89b['id'])||_0xce04dd[_0x282a('0x70')][_0x282a('0x84')](_0x33f89b['id']);return _0xce04dd;}['_loadRevisionData'](_0x16f2eb){if(!_0x16f2eb||_0x16f2eb['diffData'])return Promise[_0x282a('0xaa')]();{const _0x54c469=this['editor'][_0x282a('0x60')][_0x282a('0x4f')](_0x282a('0xba'));return this[_0x282a('0x5c')]['getRevision']({'channelId':_0x54c469,'revisionId':_0x16f2eb['id']})['then'](_0x1b0673=>{_0x16f2eb[_0x282a('0xdd')]=_0x1b0673['diffData'];});}}['_bufferUpdate'](_0x180fd7,_0x246967,_0x3ef3d8){if(this[_0x282a('0x80')]['has'](_0x180fd7)){const _0x201ccf=this['_bufferedUpdates'][_0x282a('0x4f')](_0x180fd7);_0x246967=_0x3ef3d8?{..._0x201ccf,..._0x246967}:{..._0x246967,..._0x201ccf};}this[_0x282a('0x80')][_0x282a('0x6e')](_0x180fd7,_0x246967);}[_0x282a('0xc6')](_0x2dc84c){const _0x1eb026=this[_0x282a('0xed')]['getRevisions']();_0x1eb026['reverse'](),_0x1eb026[_0x282a('0xf7')]();const _0x276fef=_0x1eb026['find'](_0xe604a0=>_0xe604a0[_0x282a('0x13')]<=_0x2dc84c)[_0x282a('0x13')];return _0x276fef<this[_0x282a('0xa')]?this['_startingVersion']:_0x276fef;}[_0x282a('0x23')](_0x17708e){const _0x4a3674=this[_0x282a('0xed')][_0x282a('0xc2')](this[_0x282a('0xed')][_0x282a('0xdc')]-0x1);if(_0x4a3674)this[_0x282a('0x9')]=_0x4a3674['id'];else{const _0x358fd8=!this[_0x282a('0xe7')][_0x282a('0x4')]['document']['roots'][_0x282a('0x24')](_0x17cddc=>this['editor']['model']['hasContent'](_0x17cddc)),_0x4a4357=this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'))['me']['id'],_0x1914d8=_0x2be542(this[_0x282a('0xe7')][_0x282a('0xfa')],_0x358fd8?'Empty\x20document':'Initial\x20revision');this[_0x282a('0xec')]({'from':_0x17708e,'to':_0x17708e,'id':this[_0x282a('0x9')],'name':_0x1914d8,'creatorId':_0x4a4357});}}[_0x282a('0x54')](_0x15e7fa){const _0x158f56=this[_0x282a('0xc7')]['getCurrentRevisionId']();this[_0x282a('0xe6')]=this[_0x282a('0xed')]['getRevision'](_0x158f56),this[_0x282a('0xe6')]||(this[_0x282a('0xe6')]=this['_makeRevision']({'from':_0x15e7fa,'to':_0x15e7fa,'id':_0x158f56,'name':'','creatorId':null}));}['_makeRevision']({name:_0x431ca3,from:_0x5ba7d8,to:_0x15e1a5,creatorId:_0x3deab8,id:_0x201782}){const _0x58feac=this[_0x282a('0xbc')]({'from':_0x5ba7d8,'to':_0x15e1a5});_0x58feac[_0x282a('0xfe')]=_0x431ca3,_0x58feac[_0x282a('0xd4')]=_0x3deab8,_0x58feac['id']=_0x201782;const _0x2ec638=this['addRevisionData'](_0x58feac);return this['adapter']&&this[_0x282a('0xe')](_0x58feac['id'],_0x58feac,!0x0),_0x2ec638;}[_0x282a('0xaf')](){this[_0x282a('0xe7')][_0x282a('0x71')][_0x282a('0x48')](_0x282a('0xf6'))['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x256eb1){return(_0x256eb1=_0x256eb1['filter'](_0x448170=>!_0x448170['name']||_0x282a('0x22')!==_0x448170[_0x282a('0xfe')]&&_0x282a('0xb1')!==_0x448170[_0x282a('0xfe')]))[_0x282a('0xe4')](_0x15279b=>{_0x282a('0x87')!=typeof _0x15279b&&(_0x15279b[_0x282a('0x6b')]=this[_0x282a('0x91')](_0x15279b['children']),_0x15279b[_0x282a('0x7c')]=_0x15279b[_0x282a('0x7c')][_0x282a('0x39')](_0x184cd4=>!_0x184cd4[0x0]['startsWith'](_0x282a('0xef'))));}),_0x256eb1;}}function J(_0x256d9b,_0x296596){const _0x14fcc1=_0x296596[_0x282a('0x78')][_0x282a('0x21')]['document'];if(_0x282a('0x87')==typeof _0x256d9b)return new _0x246e82(_0x14fcc1,_0x256d9b);{const _0xfc5a3=_0x256d9b[_0x282a('0x6b')][_0x282a('0x0')](_0x1c164f=>J(_0x1c164f,_0x296596));return new(B[_0x256d9b[(_0x282a('0x25'))]]||_0x384ef5)(_0x14fcc1,_0x256d9b[_0x282a('0xfe')],_0x256d9b[_0x282a('0x7c')],_0xfc5a3);}}class H{constructor(_0x5dd681){this[_0x282a('0xe7')]=_0x5dd681,this[_0x282a('0xbd')]=new Map(),this[_0x282a('0x6f')]=-0x1,this[_0x282a('0x19')]=-0x1,this[_0x282a('0x4a')]=new Map(),this[_0x282a('0x9d')]=new Map(),this[_0x282a('0x5e')]=new Map(),this[_0x282a('0x92')]=new Map(),this[_0x282a('0xe2')]=new Map(),this[_0x282a('0x28')]=new Map(),this[_0x282a('0x88')]=new Map(),this[_0x282a('0xc0')]=new Map(),this[_0x282a('0xca')]=new Map(),this[_0x282a('0x85')]=new Map(),this[_0x282a('0xeb')]=0x1;}[_0x282a('0xb8')](_0x5c09b2){this[_0x282a('0x76')]=_0x5c09b2;const _0xab0e17=new Map(),_0x112100=new Map(),_0x58d8d6=this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0xa3')][_0x282a('0x47')]['map'](_0x569eeb=>_0x569eeb[_0x282a('0xf')]);for(const _0x3c7440 of _0x58d8d6){const _0xca2482=this[_0x282a('0xe7')]['model'][_0x282a('0xa3')][_0x282a('0x52')](_0x3c7440),_0x5e2162=q(_0xca2482);_0xab0e17[_0x282a('0x6e')](_0x3c7440,_0x5e2162),_0x112100['set'](_0x3c7440,Object[_0x282a('0x8a')](_0xca2482['getAttributes']()));}const _0x5f42cb=Array[_0x282a('0xcb')](this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0xb7')])[_0x282a('0x0')](_0x3d9ea1=>[_0x3d9ea1[_0x282a('0xfe')],_0x3d9ea1[_0x282a('0x44')]()]),_0x2d2a56=this[_0x282a('0x76')][_0x282a('0x3c')];this['_saveMetaData'](_0x2d2a56,_0xab0e17,_0x5f42cb,_0x112100),this[_0x282a('0x61')]=this[_0x282a('0xeb')];const _0x6fa13d=new Map(),_0x52b4dc=new Map();for(const _0x4bc7d3 of _0x58d8d6){const _0x5b8bf3=G(_0x4bc7d3);_0x6fa13d[_0x282a('0x6e')](_0x4bc7d3,_0x5b8bf3),_0x52b4dc[_0x282a('0x6e')](_0x4bc7d3,{});}this[_0x282a('0x79')](Number[_0x282a('0xe9')],_0x6fa13d,[],_0x52b4dc);}[_0x282a('0x7f')](_0x522955,_0x5b88c0){if(this[_0x282a('0x6f')]===_0x522955&&this[_0x282a('0x19')]<=_0x5b88c0)this[_0x282a('0xbd')][_0x282a('0x9b')]>0x1&&this[_0x282a('0x1b')](this[_0x282a('0x19')]),this['_applyOperations'](this['_lastTo'],_0x5b88c0,!0x0);else{if(!this[_0x282a('0xbd')]['has'](_0x522955)){const _0x3e6ae4=this['_getPreviousFrom'](_0x522955);this['_calculateMetaData'](_0x3e6ae4,_0x522955,!0x1);}this[_0x282a('0x86')](_0x522955,_0x5b88c0,!0x0);}return this[_0x282a('0x6f')]=_0x522955,this[_0x282a('0x19')]=_0x5b88c0,this[_0x282a('0x65')]();}[_0x282a('0x53')](_0x55caa2){this[_0x282a('0x98')](),this[_0x282a('0x6f')]=_0x55caa2['fromVersion'],this[_0x282a('0x19')]=_0x55caa2[_0x282a('0x13')];for(const _0x5a60b3 in _0x55caa2['diffData']){const _0xe64f4a=_0x55caa2[_0x282a('0xdd')][_0x5a60b3][_0x282a('0x31')],_0x1170e4=_0x38d3ff(_0x55caa2[_0x282a('0xdd')][_0x5a60b3][_0x282a('0xdb')])||{},_0xbedfcd=this[_0x282a('0x83')](_0x55caa2['diffData'][_0x5a60b3][_0x282a('0xfb')]);_0xbedfcd[_0x282a('0xf')]=_0x5a60b3,_0xbedfcd[_0x282a('0xf9')]=!_0xe64f4a||!_0xe64f4a[_0x282a('0xcf')],_0xbedfcd[_0x282a('0xcf')]=()=>_0xbedfcd[_0x282a('0xf9')],this[_0x282a('0x92')]['set'](_0x5a60b3,_0xbedfcd),this[_0x282a('0xe2')][_0x282a('0x6e')](_0x5a60b3,_0x1170e4),_0xe64f4a&&this[_0x282a('0x85')][_0x282a('0x6e')](_0x5a60b3,_0xe64f4a);const _0x19a888=this[_0x282a('0x59')](_0xbedfcd);this[_0x282a('0x88')][_0x282a('0x6e')](_0x5a60b3,_0x19a888);for(const [_0x476215,_0x505a05]of _0xbedfcd['markers']){if(!_0x476215[_0x282a('0xfc')](_0x282a('0x8d')))continue;const _0x4fc837=_0x476215[_0x282a('0x38')](':')[0x2];for(const _0x196302 of _0x505a05[_0x282a('0xf0')]({'singleCharacters':!0x0})){const _0x194bd8=this[_0x282a('0xb2')](_0x196302),_0x569f2f=_0x282a('0x62')==_0x196302['type']?_0x196302['previousPosition']['path'][_0x282a('0x7e')](0x0,-0x1):_0x196302['previousPosition'][_0x282a('0x11')],_0x677c12=_0x19a888['getNodeByPath'](_0x569f2f)[_0x282a('0x3f')](_0x194bd8);this[_0x282a('0xc0')][_0x282a('0x6e')](_0x677c12,{'userId':_0x4fc837});}}}this[_0x282a('0x61')]=this[_0x282a('0xeb')];const _0x28fd8c=[...Array(this[_0x282a('0xeb')])[_0x282a('0xa6')]()][_0x282a('0x7e')](0x1)[_0x282a('0x39')](_0x51fdf1=>!this[_0x282a('0xc0')][_0x282a('0xf2')](_0x51fdf1));let _0x2e15a9=0x0;const _0x1e5155=new Map();for(const _0x25e8e6 in _0x55caa2[_0x282a('0xdd')]){const _0x622de2=_0x55caa2[_0x282a('0xdd')][_0x25e8e6][_0x282a('0x31')],_0x2f0c12=_0x38d3ff(_0x55caa2[_0x282a('0xdd')][_0x25e8e6][_0x282a('0xd7')])||{},_0x4091bf=this[_0x282a('0x83')](_0x55caa2['diffData'][_0x25e8e6][_0x282a('0xb4')]);_0x4091bf[_0x282a('0xf')]=_0x25e8e6,_0x4091bf[_0x282a('0xf9')]=!_0x622de2||_0x622de2[_0x282a('0xcf')],_0x4091bf[_0x282a('0xcf')]=()=>_0x4091bf[_0x282a('0xf9')],this[_0x282a('0x9d')][_0x282a('0x6e')](_0x25e8e6,_0x4091bf),this[_0x282a('0x5e')][_0x282a('0x6e')](_0x25e8e6,_0x2f0c12);const _0x2afa70=this[_0x282a('0x59')](_0x4091bf,Number[_0x282a('0xe9')]);this[_0x282a('0x28')][_0x282a('0x6e')](_0x25e8e6,_0x2afa70),_0x1e5155[_0x282a('0x6e')](_0x25e8e6,_0x4091bf[_0x282a('0xcf')]()?_0x2f0c12:{});for(const [_0x45eca9,_0x5c66a8]of _0x4091bf[_0x282a('0xb7')]){if(!_0x45eca9[_0x282a('0xfc')](_0x282a('0x8d')))continue;const _0x52450f=_0x45eca9['split'](':')[0x2];for(const _0x39b847 of _0x5c66a8[_0x282a('0xf0')]({'singleCharacters':!0x0})){const _0x16ba7f=this['_getVidAttributeName'](_0x39b847),_0x749edf=this[_0x282a('0xeb')]++,_0x327d50=_0x282a('0x62')==_0x39b847[_0x282a('0x25')]?_0x39b847[_0x282a('0x4c')][_0x282a('0x11')][_0x282a('0x7e')](0x0,-0x1):_0x39b847[_0x282a('0x4c')]['path'];_0x2afa70['getNodeByPath'](_0x327d50)[_0x282a('0x74')](_0x16ba7f,_0x749edf),this['_touched'][_0x282a('0x6e')](_0x749edf,{'userId':_0x52450f});}}for(const _0x45c365 of this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0x8f')](_0x4091bf)[_0x282a('0xf0')]({'singleCharacters':!0x0})){const _0x4edb40=this['_getVidAttributeName'](_0x45c365),_0x18333e=_0x282a('0x62')==_0x45c365[_0x282a('0x25')]?_0x45c365[_0x282a('0x4c')][_0x282a('0x11')][_0x282a('0x7e')](0x0,-0x1):_0x45c365['previousPosition'][_0x282a('0x11')],_0x4ac1ff=_0x2afa70[_0x282a('0x97')](_0x18333e);_0x4ac1ff[_0x282a('0x3f')](_0x4edb40)>0x0||_0x4ac1ff[_0x282a('0x74')](_0x4edb40,_0x28fd8c[_0x2e15a9++]);}for(const [_0x2fa5f7,_0x1d1bd4]of _0x4091bf[_0x282a('0xb7')])_0x2fa5f7['startsWith'](_0x282a('0x8d'))||this[_0x282a('0x4a')][_0x282a('0x6e')](_0x2fa5f7,_0x1d1bd4);}const _0x46a526=G(_0x282a('0xc'));this[_0x282a('0x92')][_0x282a('0x6e')](_0x282a('0xc'),_0x46a526),this['_baseIdsRoots'][_0x282a('0x6e')]('$graveyard',this[_0x282a('0x59')](_0x46a526,0x1));const _0x1ee566=G(_0x282a('0xc'));this[_0x282a('0x9d')][_0x282a('0x6e')]('$graveyard',_0x1ee566),this[_0x282a('0x28')][_0x282a('0x6e')](_0x282a('0xc'),this[_0x282a('0x59')](_0x1ee566,0x1));const _0x3aa387=Array[_0x282a('0xcb')](this[_0x282a('0x9d')])[_0x282a('0x0')](([_0x38593a,_0x4b32cf])=>[_0x38593a,q(_0x4b32cf)]);this[_0x282a('0x79')](this['_lastTo'],_0x3aa387,this[_0x282a('0x4a')],_0x1e5155);}['_makeModelFromViewString'](_0x67f467){const _0xf27c76=JSON['parse'](_0x67f467),_0x250973=this['editor'][_0x282a('0x78')]['view']['document'],_0x557dbc=new _0x46275b(_0x250973,_0xf27c76['map'](_0x280f9c=>J(_0x280f9c,this[_0x282a('0xe7')])));return this[_0x282a('0xe7')]['data'][_0x282a('0x49')](_0x557dbc);}['_saveMetaData'](_0x2c4651,_0x561d83,_0x105835,_0x30bd69){const _0x4dba36=new Map(_0x561d83),_0x45c21c=new Map(_0x38d3ff(_0x30bd69)),_0x397192=new Map();for(const [_0x10e3cb,_0x427aec]of _0x105835)_0x397192['set'](_0x10e3cb,{'start':_0x427aec[_0x282a('0x12')][_0x282a('0x5d')](),'end':_0x427aec[_0x282a('0x1d')][_0x282a('0x5d')](),'rootName':_0x427aec[_0x282a('0x5f')][_0x282a('0xf')]});this[_0x282a('0xbd')]['set'](_0x2c4651,{'roots':_0x4dba36,'markers':_0x397192,'rootsAttributes':_0x45c21c});}['_removeMetaData'](_0x4ca679){this[_0x282a('0xbd')][_0x282a('0x8e')](_0x4ca679);}[_0x282a('0x7a')](){this[_0x282a('0x98')](),this[_0x282a('0x6f')]=-0x1,this[_0x282a('0x19')]=-0x1,this[_0x282a('0xbd')]['clear'](),this[_0x282a('0xb8')](this[_0x282a('0x76')]);}[_0x282a('0x98')](){this['_touched']['clear'](),this[_0x282a('0xca')][_0x282a('0x4d')](),this[_0x282a('0x85')][_0x282a('0x4d')](),this[_0x282a('0x9d')][_0x282a('0x4d')](),this['_diffRootsAttributes'][_0x282a('0x4d')](),this[_0x282a('0x92')][_0x282a('0x4d')](),this[_0x282a('0xe2')]['clear'](),this[_0x282a('0x28')][_0x282a('0x4d')](),this[_0x282a('0x88')][_0x282a('0x4d')](),this[_0x282a('0x4a')][_0x282a('0x4d')](),this[_0x282a('0xeb')]=0x1,this[_0x282a('0x61')]=this['_revisionId'];}[_0x282a('0x59')](_0x2a5cd8,_0x1ebec8=null){let _0x23fb0=null;_0x2a5cd8['is'](_0x282a('0xe1'))||(_0x23fb0=new _0x3ef850(_0x2a5cd8['name'],{'vid_start':null===_0x1ebec8?this['_revisionId']++:_0x1ebec8++}));const _0x4d309c=[];for(const _0x40f249 of _0x2a5cd8['getChildren']())if(_0x40f249['is']('element')){_0x4d309c[_0x282a('0x84')](this[_0x282a('0x59')](_0x40f249,_0x1ebec8));const _0x4cf862=_0x4d309c[_0x4d309c[_0x282a('0xdc')]-0x1];null!==_0x1ebec8&&(_0x1ebec8=_0x4cf862['is']('element',_0x282a('0x2a'))?_0x4cf862[_0x282a('0x3f')](_0x282a('0x30'))+0x1:_0x4cf862['getAttribute'](_0x282a('0xe8'))+0x1);}else for(let _0xf69c4c=0x0;_0xf69c4c<_0x40f249['offsetSize'];_0xf69c4c++)_0x4d309c[_0x282a('0x84')](new _0x3ef850(_0x282a('0x2a'),{'vid':null===_0x1ebec8?this[_0x282a('0xeb')]++:_0x1ebec8++}));if(_0x2a5cd8['is'](_0x282a('0xe1'))){const _0x27194e=G(_0x2a5cd8[_0x282a('0xf')]);return _0x27194e['_insertChild'](0x0,_0x4d309c),_0x27194e;}return _0x23fb0[_0x282a('0x74')]('vid_end',null===_0x1ebec8?this[_0x282a('0xeb')]++:_0x1ebec8++),_0x23fb0[_0x282a('0x35')](0x0,_0x4d309c),_0x23fb0;}['_calculateMetaData'](_0x1ccb50,_0x1f7db7,_0x17b065){this[_0x282a('0x98')]();const {roots:_0x479181,markers:_0x209a97,rootsAttributes:_0xc74d0a}=this['_savedMetaData']['get'](_0x1ccb50);this[_0x282a('0x92')]=new Map(_0x479181),this[_0x282a('0xe2')]=new Map(_0x38d3ff(_0xc74d0a));for(const [_0x41a79f,_0xa9200b]of this[_0x282a('0x92')])if(_0x282a('0xc')!==_0x41a79f&&(this[_0x282a('0x9d')][_0x282a('0x6e')](_0x41a79f,q(_0xa9200b)),this['_diffRootsAttributes']=new Map(_0x38d3ff(_0xc74d0a)),_0x17b065)){const _0x4ff3bc=this[_0x282a('0xeb')];this[_0x282a('0x28')][_0x282a('0x6e')](_0x41a79f,this['_makeIdsRoot'](_0xa9200b)),this[_0x282a('0x88')][_0x282a('0x6e')](_0x41a79f,this['_makeIdsRoot'](_0xa9200b,_0x4ff3bc));}this['_startingRevisionId']=this[_0x282a('0xeb')],this[_0x282a('0x9d')][_0x282a('0x6e')](_0x282a('0xc'),q(this[_0x282a('0x92')][_0x282a('0x4f')](_0x282a('0xc')))),_0x17b065&&this[_0x282a('0x28')][_0x282a('0x6e')]('$graveyard',this['_makeIdsRoot'](this[_0x282a('0x92')][_0x282a('0x4f')](_0x282a('0xc'))));for(const [_0x52b489,_0x5af330]of _0x209a97){const _0x26d12f=this['_baseRoots'][_0x282a('0x4f')](_0x5af330[_0x282a('0xf')]),_0x31ccd9=this[_0x282a('0x9d')][_0x282a('0x4f')](_0x5af330[_0x282a('0xf')]),_0x2bae51=new _0x59cef2(this[_0x282a('0x14')](_0x5af330[_0x282a('0x12')],_0x26d12f),this[_0x282a('0x14')](_0x5af330['end'],_0x26d12f)),_0x35e698=this[_0x282a('0xd9')](_0x2bae51,_0x31ccd9);_0x26d12f[_0x282a('0xb7')][_0x282a('0x6e')](_0x52b489,_0x2bae51),this[_0x282a('0x4a')]['set'](_0x52b489,_0x35e698);}this[_0x282a('0x5b')](_0x1ccb50,_0x1f7db7,_0x17b065);}['_applyOperations'](_0x513c03,_0x494d98,_0x4ae70f){for(const _0x11c15e of this['source'][_0x282a('0xdf')](_0x513c03,_0x494d98))this[_0x282a('0x8c')](_0x11c15e,_0x4ae70f);for(const _0x3bf8f3 of this['_diffRoots'][_0x282a('0xb9')]())_0x3bf8f3[_0x282a('0xb7')][_0x282a('0x4d')]();for(const [_0xa04001,_0x4c805f]of this['_markers']){this[_0x282a('0x9d')][_0x282a('0x4f')](_0x4c805f[_0x282a('0x5f')][_0x282a('0xf')])[_0x282a('0xb7')][_0x282a('0x6e')](_0xa04001,_0x4c805f['clone']());}const _0x1747bc=new Map(),_0x5d2cff=new Map();for(const [_0x21917d,_0x30d1c5]of this[_0x282a('0x9d')])_0x1747bc[_0x282a('0x6e')](_0x21917d,q(_0x30d1c5)),_0x5d2cff[_0x282a('0x6e')](_0x21917d,this['_diffRootsAttributes'][_0x282a('0x4f')](_0x21917d));this[_0x282a('0x79')](_0x494d98,_0x1747bc,this[_0x282a('0x4a')],_0x5d2cff);}[_0x282a('0x2d')](_0x2dc423){const _0x1cd83a=Array['from'](this['_savedMetaData']['keys']());_0x1cd83a[_0x282a('0xc9')]((_0x106d06,_0x31252a)=>_0x106d06-_0x31252a),_0x1cd83a['reverse']();for(const _0x55f328 of _0x1cd83a)if(_0x55f328<_0x2dc423)return _0x55f328;return Number[_0x282a('0xe9')];}['_copyMarkers'](_0x4644a5,_0x129557){const _0x1d7fa0=Array[_0x282a('0xcb')](_0x129557[_0x282a('0xb7')])[_0x282a('0x0')](([_0x1edf3e,_0x3e852e])=>[_0x1edf3e,this[_0x282a('0xd9')](_0x3e852e,_0x4644a5)]);_0x4644a5[_0x282a('0xb7')]=new Map(_0x1d7fa0);}[_0x282a('0x46')](_0x44d019){for(const _0x414f99 of this[_0x282a('0x4a')]['values']()){const _0x2ff0f0=_0x414f99['getTransformedByOperation'](_0x44d019),_0x1fb914=_0x59cef2[_0x282a('0x2')](_0x2ff0f0);_0x414f99[_0x282a('0x12')]=_0x1fb914[_0x282a('0x12')],_0x414f99[_0x282a('0x1d')]=_0x1fb914[_0x282a('0x1d')];}}[_0x282a('0x8c')](_0x12ef32,_0x446fa0){if('addRoot'==_0x12ef32[_0x282a('0x25')]||'detachRoot'==_0x12ef32[_0x282a('0x25')])return void this[_0x282a('0xb3')](_0x12ef32,_0x446fa0);if(_0x282a('0xa2')==_0x12ef32[_0x282a('0x25')]){const _0x46b449=_0x12ef32[_0x282a('0x20')][_0x282a('0x5f')]['rootName'];this[_0x282a('0x9d')][_0x282a('0xf2')](_0x46b449)||(this[_0x282a('0x9d')][_0x282a('0x6e')](_0x46b449,G(_0x46b449,!0x0)),this[_0x282a('0x5e')][_0x282a('0x6e')](_0x46b449,{}),_0x446fa0&&this['_idsRoots']['set'](_0x46b449,G(_0x46b449,!0x0)));}else{if('addRootAttribute'==_0x12ef32[_0x282a('0x25')]||_0x282a('0xae')==_0x12ef32[_0x282a('0x25')]||'changeRootAttribute'==_0x12ef32[_0x282a('0x25')])return void this['_handleRootAttributeOperation'](_0x12ef32);}const _0x5956a2=this[_0x282a('0x36')](_0x12ef32,this['_diffRoots']);if('marker'!==_0x12ef32['type']&&(_0x5956a2['_execute'](),this[_0x282a('0x46')](_0x5956a2)),_0x446fa0)switch(_0x5956a2['type']){case'insert':this['_handleInsertOperation'](_0x12ef32);break;case'move':case _0x282a('0x3b'):case'reinsert':this['_handleMoveOperation'](_0x12ef32);break;case'merge':this['_handleMergeOperation'](_0x12ef32);break;case _0x282a('0x38'):this['_handleSplitOperation'](_0x12ef32);break;case _0x282a('0xf4'):this[_0x282a('0x1a')](_0x12ef32);}}[_0x282a('0x36')](_0x12ab6d,_0x5987f2){const _0x332779=_0x12ab6d['clone']();return _0x332779[_0x282a('0xcd')]=_0x12ab6d[_0x282a('0xcd')],this[_0x282a('0xac')](_0x332779,_0x5987f2),_0x332779;}[_0x282a('0x2c')](_0x54e06e){return _0x54e06e[_0x282a('0x0')](_0x75739=>{const _0x12eaf2=this[_0x282a('0xb2')](_0x75739);return Number(_0x75739['item']['getAttribute'](_0x12eaf2));});}['_generateTape'](_0x41dd1b,_0x1649ba){if(_0x41dd1b['is']('element',_0x282a('0x2a')))_0x1649ba[_0x282a('0x84')]({'item':_0x41dd1b,'type':_0x282a('0x26')});else{_0x41dd1b['is'](_0x282a('0xc4'))&&_0x1649ba[_0x282a('0x84')]({'item':_0x41dd1b,'type':_0x282a('0xf1')});for(const _0x4f3fc2 of _0x41dd1b[_0x282a('0xda')]())this[_0x282a('0x1c')](_0x4f3fc2,_0x1649ba);_0x41dd1b['is'](_0x282a('0xc4'))&&_0x1649ba['push']({'item':_0x41dd1b,'type':'elementEnd'});}return _0x1649ba;}[_0x282a('0x65')](){const _0x162c54=new Map(this[_0x282a('0xc0')]),_0x28df6c=new Map(_0x162c54),_0x443be1=new Map(),_0xf579ae={'insertions':{},'deletions':{}},_0x21201c={'insertions':{},'deletions':{}},_0x34b4c0=new Map(),_0x5438d2=new Set([...this[_0x282a('0x92')]['keys'](),...this[_0x282a('0x9d')][_0x282a('0xa6')]()]);_0x5438d2['delete']('$graveyard');for(const _0x3992c5 of _0x5438d2){const _0x49d54d=this[_0x282a('0x9d')][_0x282a('0x4f')](_0x3992c5)||G(_0x3992c5,!0x1),_0x4074b3=this['_baseRoots'][_0x282a('0x4f')](_0x3992c5)||G(_0x3992c5,!0x1);_0x49d54d[_0x282a('0xcf')]()||_0x4074b3[_0x282a('0xcf')]()?(_0xf579ae[_0x282a('0xb4')][_0x3992c5]=q(_0x49d54d),_0xf579ae[_0x282a('0xfb')][_0x3992c5]=q(_0x4074b3),this['_copyMarkers'](_0xf579ae[_0x282a('0xfb')][_0x3992c5],_0x4074b3),this[_0x282a('0x3e')](_0xf579ae['insertions'][_0x3992c5],_0x49d54d),_0x21201c['insertions'][_0x3992c5]=this[_0x282a('0x1c')](this['_idsRoots'][_0x282a('0x4f')](_0x3992c5),[]),_0x21201c[_0x282a('0xfb')][_0x3992c5]=this['_generateTape'](this[_0x282a('0x88')][_0x282a('0x4f')](_0x3992c5)||G(_0x3992c5,!0x1),[])):_0x5438d2[_0x282a('0x8e')](_0x3992c5);}for(const _0x5600d4 of _0x5438d2){const _0xf2a14e=_0x21201c[_0x282a('0xb4')][_0x5600d4];for(const _0x3f8a47 of _0xf2a14e){const _0x331750=this[_0x282a('0xb2')](_0x3f8a47),_0x358359=_0x3f8a47[_0x282a('0xb0')][_0x282a('0x3f')](_0x331750);_0x28df6c[_0x282a('0x8e')](_0x358359),_0x358359>=this[_0x282a('0x61')]&&_0x443be1['set'](_0x358359,_0x162c54[_0x282a('0x4f')](_0x358359));}}for(const _0x3c4029 of _0x5438d2){const _0x230377=_0x21201c['insertions'][_0x3c4029],_0x457b33=this[_0x282a('0x2c')](_0x21201c[_0x282a('0xfb')][_0x3c4029]);let _0x31d456=0x0;for(const _0x50190a of _0x230377){const _0x370634=this[_0x282a('0xb2')](_0x50190a),_0x59e1c5=_0x50190a['item'][_0x282a('0x3f')](_0x370634);if(!_0x443be1[_0x282a('0xf2')](_0x59e1c5)&&!_0x34b4c0[_0x282a('0xf2')](_0x59e1c5)){if(_0x28df6c[_0x282a('0xf2')](_0x59e1c5))_0x31d456++;else{if(_0x59e1c5!=_0x457b33[_0x31d456]){const _0x420ab2=_0x162c54[_0x282a('0x4f')](_0x59e1c5)||_0x162c54['get'](_0x457b33[_0x31d456]);for(;_0x59e1c5!=_0x457b33[_0x31d456];)_0x28df6c[_0x282a('0xf2')](_0x457b33[_0x31d456])||(_0x34b4c0[_0x282a('0x6e')](_0x457b33[_0x31d456],_0x420ab2),_0x162c54['set'](_0x457b33[_0x31d456],_0x420ab2)),_0x31d456++;}_0x31d456++;}}}}for(const _0x1f91af of _0x5438d2){const _0x51cb28=_0x21201c['insertions'][_0x1f91af];for(const _0x34a91c of _0x51cb28){const _0x12c733=this['_getVidAttributeName'](_0x34a91c),_0xe12ad8=_0x34a91c['item'][_0x282a('0x3f')](_0x12c733);if(_0x34b4c0[_0x282a('0xf2')](_0xe12ad8)){const _0x4bd329=_0x34b4c0[_0x282a('0x4f')](_0xe12ad8);_0x28df6c['has'](_0xe12ad8)||_0x28df6c['set'](_0xe12ad8,{..._0x4bd329}),_0x443be1[_0x282a('0x6e')](_0xe12ad8,{..._0x4bd329});}}}for(const _0x50db16 of _0x28df6c[_0x282a('0xa6')]())_0x50db16>=this['_startingRevisionId']&&_0x28df6c[_0x282a('0x8e')](_0x50db16);const _0x2fe216=new Map();for(const _0x506ffc of _0x5438d2){let _0x57a49a=_0x21201c['insertions'][_0x506ffc];for(const _0x48ecfd of _0x57a49a)if(_0x48ecfd[_0x282a('0xb0')]['is']('element',_0x282a('0xb5'))){const _0x251d0d=this[_0x282a('0xb2')](_0x48ecfd),_0x5c3f1c=_0x48ecfd[_0x282a('0xb0')][_0x282a('0x3f')](_0x251d0d);if(_0x443be1['has'](_0x5c3f1c)){const _0x575cdb=_0x48ecfd[_0x282a('0xb0')][_0x282a('0x1f')][_0x282a('0x1f')][_0x282a('0x3f')](_0x282a('0xd3')),_0x176e31=_0x2fe216['get'](_0x575cdb)||new Set();_0x176e31[_0x282a('0x81')](_0x443be1['get'](_0x5c3f1c)['userId']),_0x2fe216[_0x282a('0x6e')](_0x575cdb,_0x176e31);}}_0x57a49a=_0x21201c[_0x282a('0xfb')][_0x506ffc];for(const _0xff7ff5 of _0x57a49a)if(_0xff7ff5[_0x282a('0xb0')]['is'](_0x282a('0xc4'),_0x282a('0xb5'))){const _0xdccd9f=this[_0x282a('0xb2')](_0xff7ff5),_0x2c32fa=_0xff7ff5[_0x282a('0xb0')][_0x282a('0x3f')](_0xdccd9f);if(_0x28df6c[_0x282a('0xf2')](_0x2c32fa)){const _0xc0e286=_0xff7ff5['item'][_0x282a('0x1f')][_0x282a('0x1f')]['getAttribute']('vid_start'),_0x39b7bd=_0x2fe216[_0x282a('0x4f')](_0xc0e286)||new Set();_0x39b7bd[_0x282a('0x81')](_0x28df6c[_0x282a('0x4f')](_0x2c32fa)[_0x282a('0xab')]),_0x2fe216[_0x282a('0x6e')](_0xc0e286,_0x39b7bd);}}for(const _0x5128f5 of _0x2fe216[_0x282a('0xa6')]())(_0x443be1[_0x282a('0xf2')](_0x5128f5)||_0x28df6c[_0x282a('0xf2')](_0x5128f5))&&_0x2fe216[_0x282a('0x8e')](_0x5128f5);}for(const _0x2c2c6d of _0x5438d2){const _0xb11616=_0x21201c['insertions'][_0x2c2c6d];let _0xe58957=null,_0x22c519=null;for(const _0x2351e9 of _0xb11616){const _0x515025=this[_0x282a('0xb2')](_0x2351e9),_0x253e8a=_0x2351e9['item'][_0x282a('0x3f')](_0x515025),_0x323e4c=_0x2fe216['get'](_0x253e8a);_0x323e4c&&_0x282a('0xf1')==_0x2351e9[_0x282a('0x25')]&&(_0xe58957=Array['from'](_0x323e4c)[0x0],_0x22c519=_0x2351e9[_0x282a('0xb0')][_0x282a('0x3f')](_0x282a('0xe8'))),_0xe58957&&(_0x28df6c[_0x282a('0x6e')](_0x253e8a,{'userId':_0xe58957}),_0x443be1[_0x282a('0x6e')](_0x253e8a,{'userId':_0xe58957})),_0x253e8a==_0x22c519&&(_0xe58957=null,_0x22c519=null);}}const _0xb45148={},_0x3605a4=new Set();for(const _0x14fea5 of _0x5438d2){const _0x141396=_0xf579ae[_0x282a('0xfb')][_0x14fea5],_0x187c7c=_0xf579ae[_0x282a('0xb4')][_0x14fea5];for(const {userId:_0x27fa9d}of this[_0x282a('0xca')][_0x282a('0xb9')]())null!==_0x27fa9d&&_0x3605a4['add'](_0x27fa9d);for(const {userId:_0x4754a2}of this[_0x282a('0x85')]['values']())null!==_0x4754a2&&_0x3605a4[_0x282a('0x81')](_0x4754a2);this[_0x282a('0x1e')](_0x187c7c,_0x21201c[_0x282a('0xb4')][_0x14fea5],_0x443be1,'insertion',_0x3605a4),this[_0x282a('0x1e')](_0x141396,_0x21201c[_0x282a('0xfb')][_0x14fea5],_0x28df6c,'deletion',_0x3605a4),_0xb45148[_0x14fea5]={'insertions':this['_prepareViewToSave'](_0x187c7c),'deletions':this[_0x282a('0x43')](_0x141396),'attachChange':this[_0x282a('0x85')][_0x282a('0x4f')](_0x14fea5)||null,'attributesBefore':_0x38d3ff(this['_baseRootsAttributes'][_0x282a('0x4f')](_0x14fea5))||{},'attributesAfter':_0x38d3ff(this['_diffRootsAttributes'][_0x282a('0x4f')](_0x14fea5))};}return{'diffData':_0xb45148,'authorsIds':Array[_0x282a('0xcb')](_0x3605a4)};}[_0x282a('0x10')](_0xf7b9ab){for(const [,_0x3a6278]of _0xf7b9ab[_0x282a('0xb7')]){const _0x43b32b=_0x3a6278[_0x282a('0x12')][_0x282a('0x6a')]()[_0x282a('0x39')](_0x152bff=>_0x282a('0xb5')==_0x152bff[_0x282a('0xfe')]);for(const _0x355dbb of _0x43b32b)0x1==_0x355dbb[_0x282a('0x37')]&&_0x355dbb[_0x282a('0xc5')](0x0)['is']('element',_0x282a('0xa0'))&&_0x355dbb[_0x282a('0xc5')](0x0)[_0x282a('0x74')]('keepParagraph',!0x0);}}[_0x282a('0x43')](_0x588b05){this[_0x282a('0x10')](_0x588b05);const _0xaa35d8=this[_0x282a('0xe7')][_0x282a('0x57')][_0x282a('0xe5')](_0x588b05,{}),_0x257b76=Array[_0x282a('0xcb')](_0xaa35d8[_0x282a('0xda')]())[_0x282a('0x0')](_0x185c36=>this[_0x282a('0xe0')](_0x185c36));return JSON[_0x282a('0xbf')](_0x257b76);}['_getViewJson'](_0x4254d1){if(_0x4254d1['is'](_0x282a('0x2a')))return _0x4254d1[_0x282a('0x57')];{const _0x40757e=_0x4254d1;return{'type':Object['keys'](B)['find'](_0x45f74d=>_0x4254d1 instanceof B[_0x45f74d]),'name':_0x40757e[_0x282a('0xfe')],'attributes':Array[_0x282a('0xcb')](_0x40757e[_0x282a('0xbe')]()),'children':Array[_0x282a('0xcb')](_0x40757e['getChildren']())[_0x282a('0x0')](_0x15a7c7=>this[_0x282a('0xe0')](_0x15a7c7))};}}[_0x282a('0x1e')](_0x440a90,_0x164b32,_0x4c474e,_0x5d52d7,_0x810521){let _0x3f5a27=null,_0x4c9a5f=null,_0x581f61=0x0;const _0x142224=this[_0x282a('0xe7')][_0x282a('0x4')];for(let _0x42866d=0x0;_0x42866d<_0x164b32[_0x282a('0xdc')];_0x42866d++){const _0x301ffe=this['_getVidAttributeName'](_0x164b32[_0x42866d]),_0xa9a766=_0x164b32[_0x42866d]['item'][_0x282a('0x3f')](_0x301ffe),_0x3b2bd6=_0x4c474e[_0x282a('0x4f')](_0xa9a766),_0x9f6c27=_0x42866d==_0x164b32['length']-0x1;(!_0x3f5a27&&_0x3b2bd6&&(_0x3f5a27=_0x3b2bd6,_0x4c9a5f=_0x164b32[_0x42866d]),_0x3f5a27&&(!_0x3b2bd6||_0x3b2bd6[_0x282a('0xab')]!=_0x3f5a27['userId']))&&(_0x1ad05b(_0x3b2bd6,L(_0x4c9a5f,_0x440a90,_0x142224),L(_0x164b32[_0x42866d],_0x440a90,_0x142224)),_0x3f5a27=_0x3b2bd6||null,_0x4c9a5f=_0x3b2bd6?_0x164b32[_0x42866d]:null),_0x3f5a27&&_0x9f6c27&&_0x1ad05b(_0x3b2bd6,L(_0x4c9a5f,_0x440a90,_0x142224),W(_0x164b32[_0x42866d],_0x440a90,_0x142224));}function _0x1ad05b(_0x3de139,_0x48258a,_0x25c9ed){const _0x10f5c8=_0x3f5a27['userId'],_0x13cb6f=_0x282a('0x8d')+_0x5d52d7+':'+_0x10f5c8+':'+_0x581f61++,_0x4204e8=_0x142224['createRange'](_0x48258a,_0x25c9ed);_0x440a90[_0x282a('0xb7')][_0x282a('0x6e')](_0x13cb6f,_0x4204e8),null!==_0x10f5c8&&_0x810521[_0x282a('0x81')](_0x10f5c8);}}[_0x282a('0xb2')](_0x235793){switch(_0x235793['type']){case'elementStart':return _0x282a('0xd3');case _0x282a('0x62'):return _0x282a('0xe8');default:return _0x282a('0x30');}}['_fixOperation'](_0x237664,_0xec5344){_0x237664[_0x282a('0x77')]=null;for(const _0x40eded in _0x237664){const _0x5e5dbd=_0x237664[_0x40eded];if(_0x5e5dbd instanceof _0x4b482c){const _0x19fc24=_0xec5344[_0x282a('0x4f')](_0x5e5dbd['root']['rootName']);_0x237664[_0x40eded]=this[_0x282a('0x14')](_0x5e5dbd,_0x19fc24);}if(_0x5e5dbd instanceof _0x59cef2){const _0x276f27=_0xec5344['get'](_0x5e5dbd[_0x282a('0x5f')][_0x282a('0xf')]);_0x237664[_0x40eded]=this[_0x282a('0xd9')](_0x5e5dbd,_0x276f27);}_0x282a('0x5f')===_0x40eded&&(_0x237664[_0x282a('0x5f')]=_0xec5344[_0x282a('0x4f')](_0x237664[_0x282a('0x5f')][_0x282a('0xf')]));}}['_fixRange'](_0x154296,_0x249a0d){return this[_0x282a('0xe7')][_0x282a('0x4')][_0x282a('0x2e')](this[_0x282a('0x14')](_0x154296[_0x282a('0x12')],_0x249a0d),this[_0x282a('0x14')](_0x154296['end'],_0x249a0d));}[_0x282a('0x14')](_0x5b6e6b,_0x42da4e){return this[_0x282a('0xe7')][_0x282a('0x4')]['createPositionFromPath'](_0x42da4e,_0x5b6e6b['path'],_0x5b6e6b[_0x282a('0xad')]);}[_0x282a('0xa9')](_0x29549f){const _0x2e3a4c=this[_0x282a('0x28')][_0x282a('0x4f')](_0x29549f[_0x282a('0x20')][_0x282a('0x5f')][_0x282a('0xf')]),_0x1c8a8e=this['_fixPosition'](_0x29549f['position'],_0x2e3a4c),_0x57784f=null===_0x29549f[_0x282a('0xcd')]?null:_0x29549f[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0xa4'))['me']['id'],_0x16b68e=_0x1c8a8e[_0x282a('0x1f')],_0x333db8=this['_revisionId'],_0x11848e=[];for(const _0x11a428 of _0x29549f[_0x282a('0x4b')])if(_0x11a428['is']('element'))_0x11848e[_0x282a('0x84')](this['_makeIdsRoot'](_0x11a428));else for(let _0x388f9e=0x0;_0x388f9e<_0x11a428[_0x282a('0x73')];_0x388f9e++)_0x11848e[_0x282a('0x84')](new _0x3ef850(_0x282a('0x2a'),{'vid':this[_0x282a('0xeb')]++}));const _0x2f5525=this[_0x282a('0xeb')];for(let _0x22d323=_0x333db8;_0x22d323<_0x2f5525;_0x22d323++)this[_0x282a('0xc0')]['set'](_0x22d323,{'userId':_0x57784f});_0x16b68e['_insertChild'](_0x1c8a8e[_0x282a('0x58')],_0x11848e);}['_handleMoveOperation'](_0x27f5b8){(_0x27f5b8=this['_cloneOperation'](_0x27f5b8,this['_idsRoots']))['_execute']();const _0x9de2b6=null===_0x27f5b8['_authorId']?null:_0x27f5b8[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')](_0x282a('0xa4'))['me']['id'],_0x27b47f=_0x27f5b8['getMovedRangeStart'](),_0x13354f=_0x27b47f[_0x282a('0x1f')],_0x20d61e=_0x27b47f[_0x282a('0x58')];!function _0xed7593(_0xd00cad,_0x5d9bea,_0x3b2db6,_0x5418b2){for(let _0x266ff0=_0x3b2db6;_0x266ff0<_0x5418b2;_0x266ff0++){const _0x125936=_0x5d9bea[_0x282a('0xc5')](_0x266ff0);_0x125936['is'](_0x282a('0xc4'),_0x282a('0x2a'))?_0xd00cad['set'](_0x125936[_0x282a('0x3f')](_0x282a('0x30')),{'userId':_0x9de2b6}):(_0xd00cad['set'](_0x125936[_0x282a('0x3f')]('vid_start'),{'userId':_0x9de2b6}),_0xed7593(_0xd00cad,_0x125936,0x0,_0x125936[_0x282a('0x37')]),_0xd00cad[_0x282a('0x6e')](_0x125936[_0x282a('0x3f')](_0x282a('0xe8')),{'userId':_0x9de2b6}));}}(this['_touched'],_0x13354f,_0x20d61e,_0x20d61e+_0x27f5b8['howMany']);}[_0x282a('0xd')](_0xdeec8b){const _0x24fc75=null===(_0xdeec8b=this['_cloneOperation'](_0xdeec8b,this[_0x282a('0x28')]))[_0x282a('0xcd')]?null:_0xdeec8b[_0x282a('0xcd')]||this[_0x282a('0xe7')]['plugins'][_0x282a('0x4f')](_0x282a('0xa4'))['me']['id'],_0x38a40e=_0xdeec8b[_0x282a('0x51')][_0x282a('0x1f')],_0x1b5b81=_0xdeec8b[_0x282a('0xee')][_0x282a('0x1f')],_0x436af1=_0x38a40e[_0x282a('0x3f')]('vid_end'),_0x18aec7=_0x1b5b81[_0x282a('0x3f')](_0x282a('0xd3'));_0x38a40e['_setAttribute'](_0x282a('0xe8'),_0x1b5b81['getAttribute'](_0x282a('0xe8'))),_0x1b5b81['_setAttribute'](_0x282a('0xe8'),_0x436af1),this[_0x282a('0xc0')][_0x282a('0x6e')](_0x18aec7,{'userId':_0x24fc75}),this[_0x282a('0xc0')][_0x282a('0x6e')](_0x436af1,{'userId':_0x24fc75}),_0xdeec8b[_0x282a('0x99')]();}[_0x282a('0xd2')](_0x581065){const _0x4d77f4=null===(_0x581065=this['_cloneOperation'](_0x581065,this[_0x282a('0x28')]))[_0x282a('0xcd')]?null:_0x581065['_authorId']||this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'))['me']['id'],_0xed2777=_0x581065['graveyardPosition'],_0x2d1637=_0x581065[_0x282a('0x6')][_0x282a('0x1f')];_0x581065[_0x282a('0x99')]();const _0x59ae86=_0x2d1637[_0x282a('0x3f')](_0x282a('0xe8')),_0x3bb4b3=_0x581065[_0x282a('0xb')][_0x282a('0x5a')];if(_0xed2777){const _0x41cfbe=_0x3bb4b3[_0x282a('0x3f')](_0x282a('0xe8')),_0x3d5b79=_0x2d1637[_0x282a('0x3f')](_0x282a('0xe8'));_0x2d1637[_0x282a('0x74')](_0x282a('0xe8'),_0x41cfbe),_0x3bb4b3[_0x282a('0x74')](_0x282a('0xe8'),_0x3d5b79),this[_0x282a('0xc0')]['set'](_0x2d1637['getAttribute']('vid_end'),{'userId':_0x4d77f4}),this[_0x282a('0xc0')]['set'](_0x3bb4b3[_0x282a('0x3f')](_0x282a('0xd3')),{'userId':_0x4d77f4});}else{const _0x4c2105=this[_0x282a('0xeb')]++,_0x29e787=this['_revisionId']++;_0x2d1637['_setAttribute'](_0x282a('0xe8'),_0x4c2105),_0x3bb4b3[_0x282a('0x74')](_0x282a('0xd3'),_0x29e787),_0x3bb4b3['_setAttribute']('vid_end',_0x59ae86),this[_0x282a('0xc0')][_0x282a('0x6e')](_0x4c2105,{'userId':_0x4d77f4}),this['_touched']['set'](_0x29e787,{'userId':_0x4d77f4});}}[_0x282a('0x1a')](_0xc8a1df){if(!_0xc8a1df[_0x282a('0x63')])return;const _0x34e228=(_0xc8a1df=this[_0x282a('0x36')](_0xc8a1df,this[_0x282a('0x9d')]))['oldRange']?_0xc8a1df['oldRange']['root']:null,_0x136f1e=_0xc8a1df[_0x282a('0x34')]?_0xc8a1df[_0x282a('0x34')][_0x282a('0x5f')]:null;_0x34e228&&this[_0x282a('0x4a')]['delete'](_0xc8a1df[_0x282a('0xfe')]),_0x136f1e&&this[_0x282a('0x4a')][_0x282a('0x6e')](_0xc8a1df[_0x282a('0xfe')],_0xc8a1df[_0x282a('0x34')][_0x282a('0x5d')]());const _0x27159e=null===_0xc8a1df[_0x282a('0xcd')]?null:_0xc8a1df[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')]['get'](_0x282a('0xa4'))['me']['id'],_0xeffe7a=_0xc8a1df[_0x282a('0xfe')];if(!this['_touchedMarkers'][_0x282a('0xf2')](_0xeffe7a))return void this[_0x282a('0xca')][_0x282a('0x6e')](_0xeffe7a,{'range':_0xc8a1df['oldRange'],'userId':_0x27159e});const _0x5283d0=this[_0x282a('0xca')]['get'](_0xeffe7a),_0x9e466a=_0x5283d0[_0x282a('0x7d')],_0x2ca068=_0xc8a1df[_0x282a('0x34')];null==_0x9e466a&&null==_0x2ca068||_0x9e466a&&_0x2ca068&&_0x9e466a[_0x282a('0xcc')](_0x2ca068)?this['_touchedMarkers']['delete'](_0xc8a1df[_0x282a('0xfe')]):_0x5283d0[_0x282a('0xab')]=_0x27159e;}['_handleRootOperation'](_0x5f1439,_0x5722b0){this[_0x282a('0x9d')]['has'](_0x5f1439['rootName'])?this[_0x282a('0x9d')]['get'](_0x5f1439[_0x282a('0xf')])[_0x282a('0xf9')]=_0x5f1439['isAdd']:(this[_0x282a('0x9d')][_0x282a('0x6e')](_0x5f1439['rootName'],G(_0x5f1439[_0x282a('0xf')],!0x0)),this[_0x282a('0x5e')][_0x282a('0x6e')](_0x5f1439['rootName'],{}),_0x5722b0&&this['_idsRoots']['set'](_0x5f1439['rootName'],G(_0x5f1439[_0x282a('0xf')],!0x0)));const _0x2c891b=null===_0x5f1439[_0x282a('0xcd')]?null:_0x5f1439[_0x282a('0xcd')]||this[_0x282a('0xe7')][_0x282a('0x7')][_0x282a('0x4f')]('Users')['me']['id'],_0x114150=this[_0x282a('0x85')][_0x282a('0x4f')](_0x5f1439[_0x282a('0xf')]);_0x114150&&_0x114150[_0x282a('0xab')]===_0x2c891b?this[_0x282a('0x85')][_0x282a('0x8e')](_0x5f1439[_0x282a('0xf')]):this[_0x282a('0x85')][_0x282a('0x6e')](_0x5f1439['rootName'],{'userId':_0x2c891b,'isAttached':_0x5f1439[_0x282a('0x94')]});}[_0x282a('0x18')](_0x2630bc){const _0x18574f=this[_0x282a('0x5e')]['get'](_0x2630bc[_0x282a('0x5f')]['rootName']);null===_0x2630bc[_0x282a('0xde')]?delete _0x18574f[_0x2630bc['key']]:_0x18574f[_0x2630bc[_0x282a('0xfd')]]=_0x2630bc[_0x282a('0xde')];}}function q(_0x4dacb2){const _0x22b413=G(_0x4dacb2[_0x282a('0xf')],_0x4dacb2[_0x282a('0xcf')]());for(const _0x502c35 of _0x4dacb2[_0x282a('0xda')]()){const _0x2ee7fa=_0x502c35['_clone'](!0x0);_0x22b413['_appendChild'](_0x2ee7fa);}return _0x22b413;}function G(_0x3f20fc,_0x540cc7=!0x0){const _0x53bf36=new _0x478586();return _0x53bf36['rootName']=_0x3f20fc,_0x53bf36[_0x282a('0xf9')]=_0x540cc7,_0x53bf36[_0x282a('0xcf')]=()=>_0x53bf36[_0x282a('0xf9')],_0x53bf36;}function L(_0x2f93dd,_0x272adb,_0xf060e1){const _0x278fb4=_0x282a('0x62')==_0x2f93dd['type']?_0xf060e1[_0x282a('0x45')](_0x2f93dd[_0x282a('0xb0')],_0x282a('0x1d')):_0xf060e1[_0x282a('0x9a')](_0x2f93dd[_0x282a('0xb0')]);return _0xf060e1[_0x282a('0x40')](_0x272adb,_0x278fb4[_0x282a('0x11')],_0x278fb4[_0x282a('0xad')]);}function W(_0x392bc8,_0x1208f0,_0x4a064a){const _0x3e45b7=_0x282a('0xf1')==_0x392bc8[_0x282a('0x25')]?_0x4a064a[_0x282a('0x45')](_0x392bc8[_0x282a('0xb0')],0x0):_0x4a064a[_0x282a('0xea')](_0x392bc8['item']);return _0x4a064a['createPositionFromPath'](_0x1208f0,_0x3e45b7[_0x282a('0x11')],_0x3e45b7[_0x282a('0xad')]);}
|